@ws-ui/localization-editor 1.13.0-dev.2 → 1.13.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs.js CHANGED
@@ -1,177 +1,158 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const b=require("react/jsx-runtime"),M=require("react"),un=require("react-dom"),Ft=require("classnames"),Se=require("@ws-ui/shared"),Bt=require("@ws-ui/store"),pe=require("lodash"),Po=require("short-uuid"),Ro=require("./common.cjs.js"),Wm=require("simplebar-react"),Um=require("react-dropzone"),Mo=require("papaparse"),qm=require("jsonschema");function Dh(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const i in e)if(i!=="default"){const n=Object.getOwnPropertyDescriptor(e,i);Object.defineProperty(t,i,n.get?n:{enumerable:!0,get:()=>e[i]})}}return t.default=e,Object.freeze(t)}const q=Dh(M),Gm=Dh(un);function vn(e,t,i){let n=i.initialDeps??[],r,a=!0;function s(){var l,u,c;let h;i.key&&((l=i.debug)!=null&&l.call(i))&&(h=Date.now());const p=e();if(!(p.length!==n.length||p.some((E,v)=>n[v]!==E)))return r;n=p;let m;if(i.key&&((u=i.debug)!=null&&u.call(i))&&(m=Date.now()),r=t(...p),i.key&&((c=i.debug)!=null&&c.call(i))){const E=Math.round((Date.now()-h)*100)/100,v=Math.round((Date.now()-m)*100)/100,k=v/16,S=(w,I)=>{for(w=String(w);w.length<I;)w=" "+w;return w};console.info(`%c⏱ ${S(v,5)} /${S(E,5)} ms`,`
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const C=require("react/jsx-runtime"),V=require("react"),Cr=require("react-dom"),Ue=require("classnames"),Je=require("@ws-ui/icons"),fe=require("@ws-ui/shared"),yt=require("@ws-ui/store"),oe=require("lodash"),ss=require("short-uuid"),os=require("./common.cjs.js"),fd=require("simplebar-react"),pd=require("react-dropzone"),ls=require("papaparse"),dd=require("jsonschema"),Wr=require("@headlessui/react");function zu(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const i=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,i.get?i:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const U=zu(V),Ku=zu(Cr);function Dn(e,t,n){let i=n.initialDeps??[],r,s=!0;function o(){var l,u,f;let p;n.key&&((l=n.debug)!=null&&l.call(n))&&(p=Date.now());const h=e();if(!(h.length!==i.length||h.some((b,v)=>i[v]!==b)))return r;i=h;let m;if(n.key&&((u=n.debug)!=null&&u.call(n))&&(m=Date.now()),r=t(...h),n.key&&((f=n.debug)!=null&&f.call(n))){const b=Math.round((Date.now()-p)*100)/100,v=Math.round((Date.now()-m)*100)/100,S=v/16,E=(k,I)=>{for(k=String(k);k.length<I;)k=" "+k;return k};console.info(`%c⏱ ${E(v,5)} /${E(b,5)} ms`,`
2
2
  font-size: .6rem;
3
3
  font-weight: bold;
4
- color: hsl(${Math.max(0,Math.min(120-120*k,120))}deg 100% 31%);`,i==null?void 0:i.key)}return i!=null&&i.onChange&&!(a&&i.skipInitialOnChange)&&i.onChange(r),a=!1,r}return s.updateDeps=l=>{n=l},s}function hu(e,t){if(e===void 0)throw new Error("Unexpected undefined");return e}const $m=(e,t)=>Math.abs(e-t)<1.01,Jm=(e,t,i)=>{let n;return function(...r){e.clearTimeout(n),n=e.setTimeout(()=>t.apply(this,r),i)}};var xn={};const du=e=>{const{offsetWidth:t,offsetHeight:i}=e;return{width:t,height:i}},Ym=e=>e,Qm=e=>{const t=Math.max(e.startIndex-e.overscan,0),i=Math.min(e.endIndex+e.overscan,e.count-1),n=[];for(let r=t;r<=i;r++)n.push(r);return n},Zm=(e,t)=>{const i=e.scrollElement;if(!i)return;const n=e.targetWindow;if(!n)return;const r=s=>{const{width:l,height:u}=s;t({width:Math.round(l),height:Math.round(u)})};if(r(du(i)),!n.ResizeObserver)return()=>{};const a=new n.ResizeObserver(s=>{const l=()=>{const u=s[0];if(u!=null&&u.borderBoxSize){const c=u.borderBoxSize[0];if(c){r({width:c.inlineSize,height:c.blockSize});return}}r(du(i))};e.options.useAnimationFrameWithResizeObserver?requestAnimationFrame(l):l()});return a.observe(i,{box:"border-box"}),()=>{a.unobserve(i)}},pu={passive:!0},fu=typeof window>"u"?!0:"onscrollend"in window,Xm=(e,t)=>{const i=e.scrollElement;if(!i)return;const n=e.targetWindow;if(!n)return;let r=0;const a=e.options.useScrollendEvent&&fu?()=>{}:Jm(n,()=>{t(r,!1)},e.options.isScrollingResetDelay),s=h=>()=>{const{horizontal:p,isRtl:g}=e.options;r=p?i.scrollLeft*(g&&-1||1):i.scrollTop,a(),t(r,h)},l=s(!0),u=s(!1);i.addEventListener("scroll",l,pu);const c=e.options.useScrollendEvent&&fu;return c&&i.addEventListener("scrollend",u,pu),()=>{i.removeEventListener("scroll",l),c&&i.removeEventListener("scrollend",u)}},ev=(e,t,i)=>{if(t!=null&&t.borderBoxSize){const n=t.borderBoxSize[0];if(n)return Math.round(n[i.options.horizontal?"inlineSize":"blockSize"])}return e[i.options.horizontal?"offsetWidth":"offsetHeight"]},tv=(e,{adjustments:t=0,behavior:i},n)=>{var r,a;const s=e+t;(a=(r=n.scrollElement)==null?void 0:r.scrollTo)==null||a.call(r,{[n.options.horizontal?"left":"top"]:s,behavior:i})};class iv{constructor(t){this.unsubs=[],this.scrollElement=null,this.targetWindow=null,this.isScrolling=!1,this.scrollState=null,this.measurementsCache=[],this.itemSizeCache=new Map,this.laneAssignments=new Map,this.pendingMeasuredCacheIndexes=[],this.prevLanes=void 0,this.lanesChangedFlag=!1,this.lanesSettling=!1,this.scrollRect=null,this.scrollOffset=null,this.scrollDirection=null,this.scrollAdjustments=0,this.elementsCache=new Map,this.now=()=>{var i,n,r;return((r=(n=(i=this.targetWindow)==null?void 0:i.performance)==null?void 0:n.now)==null?void 0:r.call(n))??Date.now()},this.observer=(()=>{let i=null;const n=()=>i||(!this.targetWindow||!this.targetWindow.ResizeObserver?null:i=new this.targetWindow.ResizeObserver(r=>{r.forEach(a=>{const s=()=>{const l=a.target,u=this.indexFromElement(l);if(!l.isConnected){this.observer.unobserve(l);return}this.shouldMeasureDuringScroll(u)&&this.resizeItem(u,this.options.measureElement(l,a,this))};this.options.useAnimationFrameWithResizeObserver?requestAnimationFrame(s):s()})}));return{disconnect:()=>{var r;(r=n())==null||r.disconnect(),i=null},observe:r=>{var a;return(a=n())==null?void 0:a.observe(r,{box:"border-box"})},unobserve:r=>{var a;return(a=n())==null?void 0:a.unobserve(r)}}})(),this.range=null,this.setOptions=i=>{Object.entries(i).forEach(([n,r])=>{typeof r>"u"&&delete i[n]}),this.options={debug:!1,initialOffset:0,overscan:1,paddingStart:0,paddingEnd:0,scrollPaddingStart:0,scrollPaddingEnd:0,horizontal:!1,getItemKey:Ym,rangeExtractor:Qm,onChange:()=>{},measureElement:ev,initialRect:{width:0,height:0},scrollMargin:0,gap:0,indexAttribute:"data-index",initialMeasurementsCache:[],lanes:1,isScrollingResetDelay:150,enabled:!0,isRtl:!1,useScrollendEvent:!1,useAnimationFrameWithResizeObserver:!1,...i}},this.notify=i=>{var n,r;(r=(n=this.options).onChange)==null||r.call(n,this,i)},this.maybeNotify=vn(()=>(this.calculateRange(),[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]),i=>{this.notify(i)},{key:xn.NODE_ENV!=="production"&&"maybeNotify",debug:()=>this.options.debug,initialDeps:[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]}),this.cleanup=()=>{this.unsubs.filter(Boolean).forEach(i=>i()),this.unsubs=[],this.observer.disconnect(),this.rafId!=null&&this.targetWindow&&(this.targetWindow.cancelAnimationFrame(this.rafId),this.rafId=null),this.scrollState=null,this.scrollElement=null,this.targetWindow=null},this._didMount=()=>()=>{this.cleanup()},this._willUpdate=()=>{var i;const n=this.options.enabled?this.options.getScrollElement():null;if(this.scrollElement!==n){if(this.cleanup(),!n){this.maybeNotify();return}this.scrollElement=n,this.scrollElement&&"ownerDocument"in this.scrollElement?this.targetWindow=this.scrollElement.ownerDocument.defaultView:this.targetWindow=((i=this.scrollElement)==null?void 0:i.window)??null,this.elementsCache.forEach(r=>{this.observer.observe(r)}),this.unsubs.push(this.options.observeElementRect(this,r=>{this.scrollRect=r,this.maybeNotify()})),this.unsubs.push(this.options.observeElementOffset(this,(r,a)=>{this.scrollAdjustments=0,this.scrollDirection=a?this.getScrollOffset()<r?"forward":"backward":null,this.scrollOffset=r,this.isScrolling=a,this.scrollState&&this.scheduleScrollReconcile(),this.maybeNotify()})),this._scrollToOffset(this.getScrollOffset(),{adjustments:void 0,behavior:void 0})}},this.rafId=null,this.getSize=()=>this.options.enabled?(this.scrollRect=this.scrollRect??this.options.initialRect,this.scrollRect[this.options.horizontal?"width":"height"]):(this.scrollRect=null,0),this.getScrollOffset=()=>this.options.enabled?(this.scrollOffset=this.scrollOffset??(typeof this.options.initialOffset=="function"?this.options.initialOffset():this.options.initialOffset),this.scrollOffset):(this.scrollOffset=null,0),this.getFurthestMeasurement=(i,n)=>{const r=new Map,a=new Map;for(let s=n-1;s>=0;s--){const l=i[s];if(r.has(l.lane))continue;const u=a.get(l.lane);if(u==null||l.end>u.end?a.set(l.lane,l):l.end<u.end&&r.set(l.lane,!0),r.size===this.options.lanes)break}return a.size===this.options.lanes?Array.from(a.values()).sort((s,l)=>s.end===l.end?s.index-l.index:s.end-l.end)[0]:void 0},this.getMeasurementOptions=vn(()=>[this.options.count,this.options.paddingStart,this.options.scrollMargin,this.options.getItemKey,this.options.enabled,this.options.lanes],(i,n,r,a,s,l)=>(this.prevLanes!==void 0&&this.prevLanes!==l&&(this.lanesChangedFlag=!0),this.prevLanes=l,this.pendingMeasuredCacheIndexes=[],{count:i,paddingStart:n,scrollMargin:r,getItemKey:a,enabled:s,lanes:l}),{key:!1}),this.getMeasurements=vn(()=>[this.getMeasurementOptions(),this.itemSizeCache],({count:i,paddingStart:n,scrollMargin:r,getItemKey:a,enabled:s,lanes:l},u)=>{if(!s)return this.measurementsCache=[],this.itemSizeCache.clear(),this.laneAssignments.clear(),[];if(this.laneAssignments.size>i)for(const g of this.laneAssignments.keys())g>=i&&this.laneAssignments.delete(g);this.lanesChangedFlag&&(this.lanesChangedFlag=!1,this.lanesSettling=!0,this.measurementsCache=[],this.itemSizeCache.clear(),this.laneAssignments.clear(),this.pendingMeasuredCacheIndexes=[]),this.measurementsCache.length===0&&!this.lanesSettling&&(this.measurementsCache=this.options.initialMeasurementsCache,this.measurementsCache.forEach(g=>{this.itemSizeCache.set(g.key,g.size)}));const c=this.lanesSettling?0:this.pendingMeasuredCacheIndexes.length>0?Math.min(...this.pendingMeasuredCacheIndexes):0;this.pendingMeasuredCacheIndexes=[],this.lanesSettling&&this.measurementsCache.length===i&&(this.lanesSettling=!1);const h=this.measurementsCache.slice(0,c),p=new Array(l).fill(void 0);for(let g=0;g<c;g++){const m=h[g];m&&(p[m.lane]=g)}for(let g=c;g<i;g++){const m=a(g),E=this.laneAssignments.get(g);let v,k;if(E!==void 0&&this.options.lanes>1){v=E;const A=p[v],y=A!==void 0?h[A]:void 0;k=y?y.end+this.options.gap:n+r}else{const A=this.options.lanes===1?h[g-1]:this.getFurthestMeasurement(h,g);k=A?A.end+this.options.gap:n+r,v=A?A.lane:g%this.options.lanes,this.options.lanes>1&&this.laneAssignments.set(g,v)}const S=u.get(m),w=typeof S=="number"?S:this.options.estimateSize(g),I=k+w;h[g]={index:g,start:k,size:w,end:I,key:m,lane:v},p[v]=g}return this.measurementsCache=h,h},{key:xn.NODE_ENV!=="production"&&"getMeasurements",debug:()=>this.options.debug}),this.calculateRange=vn(()=>[this.getMeasurements(),this.getSize(),this.getScrollOffset(),this.options.lanes],(i,n,r,a)=>this.range=i.length>0&&n>0?nv({measurements:i,outerSize:n,scrollOffset:r,lanes:a}):null,{key:xn.NODE_ENV!=="production"&&"calculateRange",debug:()=>this.options.debug}),this.getVirtualIndexes=vn(()=>{let i=null,n=null;const r=this.calculateRange();return r&&(i=r.startIndex,n=r.endIndex),this.maybeNotify.updateDeps([this.isScrolling,i,n]),[this.options.rangeExtractor,this.options.overscan,this.options.count,i,n]},(i,n,r,a,s)=>a===null||s===null?[]:i({startIndex:a,endIndex:s,overscan:n,count:r}),{key:xn.NODE_ENV!=="production"&&"getVirtualIndexes",debug:()=>this.options.debug}),this.indexFromElement=i=>{const n=this.options.indexAttribute,r=i.getAttribute(n);return r?parseInt(r,10):(console.warn(`Missing attribute name '${n}={index}' on measured element.`),-1)},this.shouldMeasureDuringScroll=i=>{var n;if(!this.scrollState||this.scrollState.behavior!=="smooth")return!0;const r=this.scrollState.index??((n=this.getVirtualItemForOffset(this.scrollState.lastTargetOffset))==null?void 0:n.index);if(r!==void 0&&this.range){const a=Math.max(this.options.overscan,Math.ceil((this.range.endIndex-this.range.startIndex)/2)),s=Math.max(0,r-a),l=Math.min(this.options.count-1,r+a);return i>=s&&i<=l}return!0},this.measureElement=i=>{if(!i){this.elementsCache.forEach((s,l)=>{s.isConnected||(this.observer.unobserve(s),this.elementsCache.delete(l))});return}const n=this.indexFromElement(i),r=this.options.getItemKey(n),a=this.elementsCache.get(r);a!==i&&(a&&this.observer.unobserve(a),this.observer.observe(i),this.elementsCache.set(r,i)),(!this.isScrolling||this.scrollState)&&this.shouldMeasureDuringScroll(n)&&this.resizeItem(n,this.options.measureElement(i,void 0,this))},this.resizeItem=(i,n)=>{var r;const a=this.measurementsCache[i];if(!a)return;const s=this.itemSizeCache.get(a.key)??a.size,l=n-s;l!==0&&(((r=this.scrollState)==null?void 0:r.behavior)!=="smooth"&&(this.shouldAdjustScrollPositionOnItemSizeChange!==void 0?this.shouldAdjustScrollPositionOnItemSizeChange(a,l,this):a.start<this.getScrollOffset()+this.scrollAdjustments)&&(xn.NODE_ENV!=="production"&&this.options.debug&&console.info("correction",l),this._scrollToOffset(this.getScrollOffset(),{adjustments:this.scrollAdjustments+=l,behavior:void 0})),this.pendingMeasuredCacheIndexes.push(a.index),this.itemSizeCache=new Map(this.itemSizeCache.set(a.key,n)),this.notify(!1))},this.getVirtualItems=vn(()=>[this.getVirtualIndexes(),this.getMeasurements()],(i,n)=>{const r=[];for(let a=0,s=i.length;a<s;a++){const l=i[a],u=n[l];r.push(u)}return r},{key:xn.NODE_ENV!=="production"&&"getVirtualItems",debug:()=>this.options.debug}),this.getVirtualItemForOffset=i=>{const n=this.getMeasurements();if(n.length!==0)return hu(n[Fh(0,n.length-1,r=>hu(n[r]).start,i)])},this.getMaxScrollOffset=()=>{if(!this.scrollElement)return 0;if("scrollHeight"in this.scrollElement)return this.options.horizontal?this.scrollElement.scrollWidth-this.scrollElement.clientWidth:this.scrollElement.scrollHeight-this.scrollElement.clientHeight;{const i=this.scrollElement.document.documentElement;return this.options.horizontal?i.scrollWidth-this.scrollElement.innerWidth:i.scrollHeight-this.scrollElement.innerHeight}},this.getOffsetForAlignment=(i,n,r=0)=>{if(!this.scrollElement)return 0;const a=this.getSize(),s=this.getScrollOffset();n==="auto"&&(n=i>=s+a?"end":"start"),n==="center"?i+=(r-a)/2:n==="end"&&(i-=a);const l=this.getMaxScrollOffset();return Math.max(Math.min(l,i),0)},this.getOffsetForIndex=(i,n="auto")=>{i=Math.max(0,Math.min(i,this.options.count-1));const r=this.getSize(),a=this.getScrollOffset(),s=this.measurementsCache[i];if(!s)return;if(n==="auto")if(s.end>=a+r-this.options.scrollPaddingEnd)n="end";else if(s.start<=a+this.options.scrollPaddingStart)n="start";else return[a,n];if(n==="end"&&i===this.options.count-1)return[this.getMaxScrollOffset(),n];const l=n==="end"?s.end+this.options.scrollPaddingEnd:s.start-this.options.scrollPaddingStart;return[this.getOffsetForAlignment(l,n,s.size),n]},this.scrollToOffset=(i,{align:n="start",behavior:r="auto"}={})=>{const a=this.getOffsetForAlignment(i,n),s=this.now();this.scrollState={index:null,align:n,behavior:r,startedAt:s,lastTargetOffset:a,stableFrames:0},this._scrollToOffset(a,{adjustments:void 0,behavior:r}),this.scheduleScrollReconcile()},this.scrollToIndex=(i,{align:n="auto",behavior:r="auto"}={})=>{i=Math.max(0,Math.min(i,this.options.count-1));const a=this.getOffsetForIndex(i,n);if(!a)return;const[s,l]=a,u=this.now();this.scrollState={index:i,align:l,behavior:r,startedAt:u,lastTargetOffset:s,stableFrames:0},this._scrollToOffset(s,{adjustments:void 0,behavior:r}),this.scheduleScrollReconcile()},this.scrollBy=(i,{behavior:n="auto"}={})=>{const r=this.getScrollOffset()+i,a=this.now();this.scrollState={index:null,align:"start",behavior:n,startedAt:a,lastTargetOffset:r,stableFrames:0},this._scrollToOffset(r,{adjustments:void 0,behavior:n}),this.scheduleScrollReconcile()},this.getTotalSize=()=>{var i;const n=this.getMeasurements();let r;if(n.length===0)r=this.options.paddingStart;else if(this.options.lanes===1)r=((i=n[n.length-1])==null?void 0:i.end)??0;else{const a=Array(this.options.lanes).fill(null);let s=n.length-1;for(;s>=0&&a.some(l=>l===null);){const l=n[s];a[l.lane]===null&&(a[l.lane]=l.end),s--}r=Math.max(...a.filter(l=>l!==null))}return Math.max(r-this.options.scrollMargin+this.options.paddingEnd,0)},this._scrollToOffset=(i,{adjustments:n,behavior:r})=>{this.options.scrollToFn(i,{behavior:r,adjustments:n},this)},this.measure=()=>{this.itemSizeCache=new Map,this.laneAssignments=new Map,this.notify(!1)},this.setOptions(t)}scheduleScrollReconcile(){if(!this.targetWindow){this.scrollState=null;return}this.rafId==null&&(this.rafId=this.targetWindow.requestAnimationFrame(()=>{this.rafId=null,this.reconcileScroll()}))}reconcileScroll(){if(!this.scrollState||!this.scrollElement)return;if(this.now()-this.scrollState.startedAt>5e3){this.scrollState=null;return}const n=this.scrollState.index!=null?this.getOffsetForIndex(this.scrollState.index,this.scrollState.align):void 0,r=n?n[0]:this.scrollState.lastTargetOffset,a=1,s=r!==this.scrollState.lastTargetOffset;if(!s&&$m(r,this.getScrollOffset())){if(this.scrollState.stableFrames++,this.scrollState.stableFrames>=a){this.scrollState=null;return}}else this.scrollState.stableFrames=0,s&&(this.scrollState.lastTargetOffset=r,this.scrollState.behavior="auto",this._scrollToOffset(r,{adjustments:void 0,behavior:"auto"}));this.scheduleScrollReconcile()}}const Fh=(e,t,i,n)=>{for(;e<=t;){const r=(e+t)/2|0,a=i(r);if(a<n)e=r+1;else if(a>n)t=r-1;else return r}return e>0?e-1:0};function nv({measurements:e,outerSize:t,scrollOffset:i,lanes:n}){const r=e.length-1,a=u=>e[u].start;if(e.length<=n)return{startIndex:0,endIndex:r};let s=Fh(0,r,a,i),l=s;if(n===1)for(;l<r&&e[l].end<i+t;)l++;else if(n>1){const u=Array(n).fill(0);for(;l<r&&u.some(h=>h<i+t);){const h=e[l];u[h.lane]=h.end,l++}const c=Array(n).fill(i+t);for(;s>=0&&c.some(h=>h>=i);){const h=e[s];c[h.lane]=h.start,s--}s=Math.max(0,s-s%n),l=Math.min(r,l+(n-1-l%n))}return{startIndex:s,endIndex:l}}const gu=typeof document<"u"?q.useLayoutEffect:q.useEffect;function rv({useFlushSync:e=!0,...t}){const i=q.useReducer(()=>({}),{})[1],n={...t,onChange:(a,s)=>{var l;e&&s?un.flushSync(i):i(),(l=t.onChange)==null||l.call(t,a,s)}},[r]=q.useState(()=>new iv(n));return r.setOptions(n),gu(()=>r._didMount(),[]),gu(()=>r._willUpdate()),r}function av(e){return rv({observeElementRect:Zm,observeElementOffset:Xm,scrollToFn:tv,...e})}var ce={};(function(){try{const e=document.createElement("style");e.setAttribute("data-vite-dev-id","ui-components.css"),e.textContent=`/*! tailwindcss v4.1.18 | MIT License | https://tailwindcss.com */@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-translate-x:0;--tw-translate-y:0;--tw-translate-z:0;--tw-scale-x:1;--tw-scale-y:1;--tw-scale-z:1;--tw-rotate-x:initial;--tw-rotate-y:initial;--tw-rotate-z:initial;--tw-skew-x:initial;--tw-skew-y:initial;--tw-space-y-reverse:0;--tw-space-x-reverse:0;--tw-border-style:solid;--tw-gradient-position:initial;--tw-gradient-from:#0000;--tw-gradient-via:#0000;--tw-gradient-to:#0000;--tw-gradient-stops:initial;--tw-gradient-via-stops:initial;--tw-gradient-from-position:0%;--tw-gradient-via-position:50%;--tw-gradient-to-position:100%;--tw-leading:initial;--tw-font-weight:initial;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000;--tw-outline-style:solid;--tw-blur:initial;--tw-brightness:initial;--tw-contrast:initial;--tw-grayscale:initial;--tw-hue-rotate:initial;--tw-invert:initial;--tw-opacity:initial;--tw-saturate:initial;--tw-sepia:initial;--tw-drop-shadow:initial;--tw-drop-shadow-color:initial;--tw-drop-shadow-alpha:100%;--tw-drop-shadow-size:initial;--tw-duration:initial;--tw-ease:initial}}:root:not(#\\#),:host:not(#\\#){--color-green-500:oklch(72.3% .219 149.579);--color-blue-500:oklch(62.3% .214 259.815);--color-pink-500:oklch(65.6% .241 354.308);--color-gray-50:oklch(98.5% .002 247.839);--color-gray-100:oklch(96.7% .003 264.542);--color-gray-400:oklch(70.7% .022 261.325);--color-gray-500:oklch(55.1% .027 264.364);--color-gray-800:oklch(27.8% .033 256.848);--color-white:#fff;--spacing:.25rem;--container-md:28rem;--text-xs:.65rem;--text-xs--line-height:calc(1/.75);--text-sm:.875rem;--text-sm--line-height:calc(1.25/.875);--text-base:1rem;--text-base--line-height: 1.5 ;--text-lg:1.125rem;--text-lg--line-height:calc(1.75/1.125);--text-xl:1.25rem;--text-xl--line-height:calc(1.75/1.25);--text-2xl:1.5rem;--text-2xl--line-height:calc(2/1.5);--text-3xl:1.875rem;--text-3xl--line-height: 1.2 ;--text-4xl:2.25rem;--text-4xl--line-height:calc(2.5/2.25);--text-5xl:3rem;--text-5xl--line-height:1;--text-6xl:3.75rem;--text-6xl--line-height:1;--text-7xl:4.5rem;--text-7xl--line-height:1;--text-8xl:6rem;--text-8xl--line-height:1;--text-9xl:8rem;--text-9xl--line-height:1;--font-weight-thin:100;--font-weight-medium:500;--font-weight-semibold:600;--font-weight-bold:700;--radius-xs:.125rem;--radius-md:.375rem;--radius-lg:.5rem;--ease-out:cubic-bezier(0,0,.2,1);--ease-in-out:cubic-bezier(.4,0,.2,1);--animate-bounce:bounce 1s infinite;--default-transition-duration:.15s;--default-transition-timing-function:cubic-bezier(.4,0,.2,1);--color-grey-50:var(--ws-grey-50);--color-grey-100:var(--ws-grey-100);--color-grey-200:var(--ws-grey-200);--color-grey-300:var(--ws-grey-300);--color-grey-400:var(--ws-grey-400);--color-grey-500:var(--ws-grey-500);--color-grey-600:var(--ws-grey-600);--color-grey-700:var(--ws-grey-700);--color-grey-800:var(--ws-grey-800);--color-primary-500:var(--ws-primary-500);--color-primary-600:var(--ws-primary-600);--color-primary-700:var(--ws-primary-700);--color-positive-200:var(--ws-positive-200);--color-positive-400:var(--ws-positive-400);--color-positive-500:var(--ws-positive-500);--color-positive-600:var(--ws-positive-600);--color-warning-500:var(--ws-warning-500);--color-negative-400:var(--ws-negative-400);--color-negative-500:var(--ws-negative-500);--text-xxs:.55rem;--text-s:.75rem;--min-height-6:1.5rem;--color-canvas-default:var(--ws-bg-default);--color-canvas-subtle:var(--ws-grey-100);--color-panel:var(--ws-grey-300);--color-panel-subtle:var(--ws-grey-200);--color-card:var(--ws-card-bg);--color-card-border:var(--ws-card-border);--color-body:var(--ws-bg-foreground);--color-body-bg:var(--ws-bg-default);--color-body-light:var(--ws-grey-100);--color-muted:var(--ws-text-muted);--color-neutral:var(--ws-grey-200);--color-button-text:var(--ws-button-fg);--color-primary:var(--ws-primary-default);--color-primary-hover:var(--ws-primary-hover);--color-primary-light:var(--ws-primary-light);--color-primary-dark:var(--ws-primary-dark);--color-positive:var(--ws-positive-500);--color-positive-hover:var(--ws-positive-hover);--color-positive-text:var(--ws-positive-text);--color-positive-bg:var(--ws-positive-bg);--color-positive-light:var(--ws-positive-light);--color-positive-dark:var(--ws-positive-dark);--color-negative:var(--ws-negative-500);--color-negative-hover:var(--ws-negative-hover);--color-negative-text:var(--ws-negative-text);--color-negative-bg:var(--ws-negative-bg);--color-negative-light:var(--ws-negative-light);--color-negative-dark:var(--ws-negative-dark);--color-warning:var(--ws-warning-500);--color-warning-hover:var(--ws-warning-hover);--color-warning-text:var(--ws-warning-text);--color-warning-bg:var(--ws-warning-bg);--color-warning-light:var(--ws-warning-light);--color-warning-dark:var(--ws-warning-dark);--color-input-bg:var(--ws-input-bg);--color-input-border:var(--ws-input-border);--color-input-text:var(--ws-input-text);--color-input-placeholder:var(--ws-input-placeholder);--color-input-focus-border:var(--ws-input-focus-border);--color-select-border:var(--ws-select-border);--color-select-text:var(--ws-select-text);--color-select-list-bg:var(--ws-select-list-bg);--color-input-option-hover-bg:var(--ws-input-option-hover-bg);--color-input-option-active-bg:var(--ws-input-option-active-bg);--color-input-option-active-text:var(--ws-input-option-active-text);--color-input-error-border:var(--ws-input-error-border);--color-input-error-bg:var(--ws-input-error-bg);--color-input-warning-border:var(--ws-input-warning-border);--color-input-warning-bg:var(--ws-input-warning-bg);--color-input-message-bg:var(--ws-input-message-bg);--color-input-message-text:var(--ws-input-message-text);--color-input-disable:var(--ws-disable-input);--color-inactive-text:var(--ws-inactive-text);--color-panel-0:var(--ws-panel-0);--color-panel-1:var(--ws-panel-1);--color-panel-2:var(--ws-panel-2);--color-panel-3:var(--ws-panel-3);--color-panel-4:var(--ws-panel-4);--color-panel-5:var(--ws-panel-5);--color-panel-border-subtle:var(--ws-panel-border-subtle);--color-tab-bg-default:var(--ws-tab-bg-default);--color-tab-border:var(--ws-tab-border);--color-tab-active-bg:var(--ws-tab-active-bg);--color-tab-active-fg:var(--ws-tab-active-fg);--color-tab-inactive-bg:var(--ws-tab-inactive-bg);--color-tab-inactive-fg:var(--ws-tab-inactive-fg);--color-panel-border:var(--ws-panel-border)}.pointer-events-auto:not(#\\#){pointer-events:auto}.pointer-events-none:not(#\\#){pointer-events:none}.collapse:not(#\\#){visibility:collapse}.visible:not(#\\#){visibility:visible}.sr-only:not(#\\#){clip-path:inset(50%);white-space:nowrap;border-width:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.absolute:not(#\\#){position:absolute}.fixed:not(#\\#){position:fixed}.relative:not(#\\#){position:relative}.static:not(#\\#){position:static}.inset-0:not(#\\#){inset:calc(var(--spacing)*0)}.-top-1\\/5:not(#\\#){top:-20%}.top-0:not(#\\#){top:calc(var(--spacing)*0)}.top-1:not(#\\#){top:calc(var(--spacing)*1)}.top-full:not(#\\#){top:100%}.-right-12:not(#\\#){right:calc(var(--spacing)*-12)}.-right-px:not(#\\#){right:-1px}.right-0:not(#\\#){right:calc(var(--spacing)*0)}.right-1:not(#\\#){right:calc(var(--spacing)*1)}.bottom-0:not(#\\#){bottom:calc(var(--spacing)*0)}.bottom-full:not(#\\#){bottom:100%}.-left-px:not(#\\#){left:-1px}.left-0:not(#\\#){left:calc(var(--spacing)*0)}.left-0\\.5:not(#\\#){left:calc(var(--spacing)*.5)}.left-1\\/2:not(#\\#){left:50%}.left-3\\.5:not(#\\#){left:calc(var(--spacing)*3.5)}.left-4:not(#\\#){left:calc(var(--spacing)*4)}.left-4\\.5:not(#\\#){left:calc(var(--spacing)*4.5)}.left-5\\.5:not(#\\#){left:calc(var(--spacing)*5.5)}.left-full:not(#\\#){left:100%}.z-1:not(#\\#){z-index:1}.z-2:not(#\\#){z-index:2}.z-10:not(#\\#){z-index:10}.z-40:not(#\\#){z-index:40}.z-50:not(#\\#){z-index:50}.z-60:not(#\\#){z-index:60}.z-9999:not(#\\#){z-index:9999}.container:not(#\\#){width:100%}@media(min-width:40rem){.container:not(#\\#){max-width:40rem}}@media(min-width:48rem){.container:not(#\\#){max-width:48rem}}@media(min-width:64rem){.container:not(#\\#){max-width:64rem}}@media(min-width:80rem){.container:not(#\\#){max-width:80rem}}@media(min-width:96rem){.container:not(#\\#){max-width:96rem}}.m-0:not(#\\#){margin:calc(var(--spacing)*0)}.m-0\\.5:not(#\\#){margin:calc(var(--spacing)*.5)}.m-px:not(#\\#){margin:1px}.mx-1:not(#\\#){margin-inline:calc(var(--spacing)*1)}.-my-1:not(#\\#){margin-block:calc(var(--spacing)*-1)}.mt-1:not(#\\#){margin-top:calc(var(--spacing)*1)}.mt-2:not(#\\#){margin-top:calc(var(--spacing)*2)}.mt-4:not(#\\#){margin-top:calc(var(--spacing)*4)}.mt-8:not(#\\#){margin-top:calc(var(--spacing)*8)}.mr-1:not(#\\#){margin-right:calc(var(--spacing)*1)}.mr-2:not(#\\#){margin-right:calc(var(--spacing)*2)}.mb-1:not(#\\#){margin-bottom:calc(var(--spacing)*1)}.mb-2:not(#\\#){margin-bottom:calc(var(--spacing)*2)}.mb-4:not(#\\#){margin-bottom:calc(var(--spacing)*4)}.ml-1:not(#\\#){margin-left:calc(var(--spacing)*1)}.ml-1\\.5:not(#\\#){margin-left:calc(var(--spacing)*1.5)}.ml-2:not(#\\#){margin-left:calc(var(--spacing)*2)}.box-border:not(#\\#){box-sizing:border-box}.block:not(#\\#){display:block}.flex:not(#\\#){display:flex}.grid:not(#\\#){display:grid}.hidden:not(#\\#){display:none}.inline:not(#\\#){display:inline}.inline-block:not(#\\#){display:inline-block}.inline-flex:not(#\\#){display:inline-flex}.table:not(#\\#){display:table}.size-1\\.5:not(#\\#){width:calc(var(--spacing)*1.5);height:calc(var(--spacing)*1.5)}.size-1\\.75:not(#\\#){width:calc(var(--spacing)*1.75);height:calc(var(--spacing)*1.75)}.size-2:not(#\\#){width:calc(var(--spacing)*2);height:calc(var(--spacing)*2)}.size-2\\.5:not(#\\#){width:calc(var(--spacing)*2.5);height:calc(var(--spacing)*2.5)}.size-3:not(#\\#){width:calc(var(--spacing)*3);height:calc(var(--spacing)*3)}.size-3\\.5:not(#\\#){width:calc(var(--spacing)*3.5);height:calc(var(--spacing)*3.5)}.size-3\\.25:not(#\\#){width:calc(var(--spacing)*3.25);height:calc(var(--spacing)*3.25)}.size-4:not(#\\#){width:calc(var(--spacing)*4);height:calc(var(--spacing)*4)}.size-5:not(#\\#){width:calc(var(--spacing)*5);height:calc(var(--spacing)*5)}.size-6:not(#\\#){width:calc(var(--spacing)*6);height:calc(var(--spacing)*6)}.size-fit:not(#\\#){width:fit-content;height:fit-content}.h-2:not(#\\#){height:calc(var(--spacing)*2)}.h-3:not(#\\#){height:calc(var(--spacing)*3)}.h-3\\.5:not(#\\#){height:calc(var(--spacing)*3.5)}.h-4:not(#\\#){height:calc(var(--spacing)*4)}.h-4\\.5:not(#\\#){height:calc(var(--spacing)*4.5)}.h-5:not(#\\#){height:calc(var(--spacing)*5)}.h-5\\.5:not(#\\#){height:calc(var(--spacing)*5.5)}.h-6:not(#\\#){height:calc(var(--spacing)*6)}.h-7:not(#\\#){height:calc(var(--spacing)*7)}.h-7\\.5:not(#\\#){height:calc(var(--spacing)*7.5)}.h-8:not(#\\#){height:calc(var(--spacing)*8)}.h-10:not(#\\#){height:calc(var(--spacing)*10)}.h-14:not(#\\#){height:calc(var(--spacing)*14)}.h-20:not(#\\#){height:calc(var(--spacing)*20)}.h-30:not(#\\#){height:calc(var(--spacing)*30)}.h-100:not(#\\#){height:calc(var(--spacing)*100)}.h-fit:not(#\\#){height:fit-content}.h-full:not(#\\#){height:100%}.max-h-\\[400px\\]:not(#\\#){max-height:400px}.max-h-full:not(#\\#){max-height:100%}.min-h-5:not(#\\#){min-height:calc(var(--spacing)*5)}.min-h-6:not(#\\#){min-height:var(--min-height-6)}.min-h-7:not(#\\#){min-height:calc(var(--spacing)*7)}.min-h-\\[100px\\]:not(#\\#){min-height:100px}.min-h-fit:not(#\\#){min-height:fit-content}.min-h-screen:not(#\\#){min-height:100vh}.w-0\\.5:not(#\\#){width:calc(var(--spacing)*.5)}.w-1\\/2:not(#\\#){width:50%}.w-3:not(#\\#){width:calc(var(--spacing)*3)}.w-3\\.5:not(#\\#){width:calc(var(--spacing)*3.5)}.w-4:not(#\\#){width:calc(var(--spacing)*4)}.w-5:not(#\\#){width:calc(var(--spacing)*5)}.w-6:not(#\\#){width:calc(var(--spacing)*6)}.w-7:not(#\\#){width:calc(var(--spacing)*7)}.w-8:not(#\\#){width:calc(var(--spacing)*8)}.w-9:not(#\\#){width:calc(var(--spacing)*9)}.w-11:not(#\\#){width:calc(var(--spacing)*11)}.w-16:not(#\\#){width:calc(var(--spacing)*16)}.w-20:not(#\\#){width:calc(var(--spacing)*20)}.w-32:not(#\\#){width:calc(var(--spacing)*32)}.w-48:not(#\\#){width:calc(var(--spacing)*48)}.w-52:not(#\\#){width:calc(var(--spacing)*52)}.w-60:not(#\\#){width:calc(var(--spacing)*60)}.w-64:not(#\\#){width:calc(var(--spacing)*64)}.w-80:not(#\\#){width:calc(var(--spacing)*80)}.w-96:not(#\\#){width:calc(var(--spacing)*96)}.w-fit:not(#\\#){width:fit-content}.w-full:not(#\\#){width:100%}.w-px:not(#\\#){width:1px}.max-w-100:not(#\\#){max-width:calc(var(--spacing)*100)}.max-w-\\[300px\\]:not(#\\#){max-width:300px}.max-w-md:not(#\\#){max-width:var(--container-md)}.min-w-0:not(#\\#){min-width:calc(var(--spacing)*0)}.min-w-3\\.5:not(#\\#){min-width:calc(var(--spacing)*3.5)}.min-w-4\\.5:not(#\\#){min-width:calc(var(--spacing)*4.5)}.min-w-5:not(#\\#){min-width:calc(var(--spacing)*5)}.min-w-7\\.5:not(#\\#){min-width:calc(var(--spacing)*7.5)}.min-w-50:not(#\\#){min-width:calc(var(--spacing)*50)}.min-w-\\[150px\\]:not(#\\#){min-width:150px}.min-w-fit:not(#\\#){min-width:fit-content}.min-w-full:not(#\\#){min-width:100%}.flex-1:not(#\\#){flex:1}.flex-3:not(#\\#){flex:3}.flex-none:not(#\\#){flex:none}.shrink-0:not(#\\#){flex-shrink:0}.grow:not(#\\#){flex-grow:1}.origin-top-right:not(#\\#){transform-origin:100% 0}.-translate-x-1\\/2:not(#\\#){--tw-translate-x: -50% ;translate:var(--tw-translate-x)var(--tw-translate-y)}.-translate-x-full:not(#\\#){--tw-translate-x:-100%;translate:var(--tw-translate-x)var(--tw-translate-y)}.translate-x-0:not(#\\#){--tw-translate-x:calc(var(--spacing)*0);translate:var(--tw-translate-x)var(--tw-translate-y)}.translate-x-full:not(#\\#){--tw-translate-x:100%;translate:var(--tw-translate-x)var(--tw-translate-y)}.-translate-y-full:not(#\\#){--tw-translate-y:-100%;translate:var(--tw-translate-x)var(--tw-translate-y)}.translate-y-0:not(#\\#){--tw-translate-y:calc(var(--spacing)*0);translate:var(--tw-translate-x)var(--tw-translate-y)}.translate-y-1\\/2:not(#\\#){--tw-translate-y: 50% ;translate:var(--tw-translate-x)var(--tw-translate-y)}.translate-y-full:not(#\\#){--tw-translate-y:100%;translate:var(--tw-translate-x)var(--tw-translate-y)}.scale-0:not(#\\#){--tw-scale-x:0%;--tw-scale-y:0%;--tw-scale-z:0%;scale:var(--tw-scale-x)var(--tw-scale-y)}.scale-95:not(#\\#){--tw-scale-x:95%;--tw-scale-y:95%;--tw-scale-z:95%;scale:var(--tw-scale-x)var(--tw-scale-y)}.scale-100:not(#\\#){--tw-scale-x:100%;--tw-scale-y:100%;--tw-scale-z:100%;scale:var(--tw-scale-x)var(--tw-scale-y)}.scale-110:not(#\\#){--tw-scale-x:110%;--tw-scale-y:110%;--tw-scale-z:110%;scale:var(--tw-scale-x)var(--tw-scale-y)}.-rotate-45:not(#\\#){rotate:-45deg}.rotate-45:not(#\\#){rotate:45deg}.rotate-90:not(#\\#){rotate:90deg}.rotate-180:not(#\\#){rotate:180deg}.transform:not(#\\#){transform:var(--tw-rotate-x,)var(--tw-rotate-y,)var(--tw-rotate-z,)var(--tw-skew-x,)var(--tw-skew-y,)}.animate-bounce:not(#\\#){animation:var(--animate-bounce)}.cursor-auto:not(#\\#){cursor:auto}.cursor-not-allowed:not(#\\#){cursor:not-allowed}.cursor-pointer:not(#\\#){cursor:pointer}.cursor-se-resize:not(#\\#){cursor:se-resize}.resize:not(#\\#){resize:both}.resize-none:not(#\\#){resize:none}.list-disc:not(#\\#){list-style-type:disc}.appearance-none:not(#\\#){-webkit-appearance:none;-moz-appearance:none;appearance:none}.grid-cols-2:not(#\\#){grid-template-columns:repeat(2,minmax(0,1fr))}.grid-cols-3:not(#\\#){grid-template-columns:repeat(3,minmax(0,1fr))}.flex-col:not(#\\#){flex-direction:column}.flex-row:not(#\\#){flex-direction:row}.flex-wrap:not(#\\#){flex-wrap:wrap}.place-content-center:not(#\\#){place-content:center}.place-items-center:not(#\\#){place-items:center}.items-center:not(#\\#){align-items:center}.items-end:not(#\\#){align-items:flex-end}.items-start:not(#\\#){align-items:flex-start}.justify-around:not(#\\#){justify-content:space-around}.justify-between:not(#\\#){justify-content:space-between}.justify-center:not(#\\#){justify-content:center}.gap-0\\.5:not(#\\#){gap:calc(var(--spacing)*.5)}.gap-1:not(#\\#){gap:calc(var(--spacing)*1)}.gap-1\\.5:not(#\\#){gap:calc(var(--spacing)*1.5)}.gap-2:not(#\\#){gap:calc(var(--spacing)*2)}.gap-2\\.5:not(#\\#){gap:calc(var(--spacing)*2.5)}.gap-3:not(#\\#){gap:calc(var(--spacing)*3)}.gap-4:not(#\\#){gap:calc(var(--spacing)*4)}.gap-6:not(#\\#){gap:calc(var(--spacing)*6)}.gap-8:not(#\\#){gap:calc(var(--spacing)*8)}.gap-10:not(#\\#){gap:calc(var(--spacing)*10)}.gap-14:not(#\\#){gap:calc(var(--spacing)*14)}:where(.space-y-1>:not(:last-child)):not(#\\#){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*1)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*1)*calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-2>:not(:last-child)):not(#\\#){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*2)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*2)*calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-3>:not(:last-child)):not(#\\#){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*3)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*3)*calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-4>:not(:last-child)):not(#\\#){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*4)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*4)*calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-5>:not(:last-child)):not(#\\#){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*5)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*5)*calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-6>:not(:last-child)):not(#\\#){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*6)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*6)*calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-8>:not(:last-child)):not(#\\#){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*8)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*8)*calc(1 - var(--tw-space-y-reverse)))}.gap-x-1:not(#\\#){column-gap:calc(var(--spacing)*1)}.gap-x-2:not(#\\#){column-gap:calc(var(--spacing)*2)}.gap-x-3:not(#\\#){column-gap:calc(var(--spacing)*3)}.gap-x-4:not(#\\#){column-gap:calc(var(--spacing)*4)}.gap-x-20:not(#\\#){column-gap:calc(var(--spacing)*20)}:where(.space-x-4>:not(:last-child)):not(#\\#){--tw-space-x-reverse:0;margin-inline-start:calc(calc(var(--spacing)*4)*var(--tw-space-x-reverse));margin-inline-end:calc(calc(var(--spacing)*4)*calc(1 - var(--tw-space-x-reverse)))}.truncate:not(#\\#){text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.overflow-hidden:not(#\\#){overflow:hidden}.overflow-y-auto:not(#\\#){overflow-y:auto}.rounded:not(#\\#){border-radius:.25rem}.rounded-full:not(#\\#){border-radius:3.40282e38px}.rounded-lg:not(#\\#){border-radius:var(--radius-lg)}.rounded-md:not(#\\#){border-radius:var(--radius-md)}.rounded-xs:not(#\\#){border-radius:var(--radius-xs)}.rounded-t:not(#\\#){border-top-left-radius:.25rem;border-top-right-radius:.25rem}.rounded-b:not(#\\#){border-bottom-right-radius:.25rem;border-bottom-left-radius:.25rem}.rounded-b-none:not(#\\#){border-bottom-right-radius:0;border-bottom-left-radius:0}.border:not(#\\#){border-style:var(--tw-border-style);border-width:1px}.border-0:not(#\\#){border-style:var(--tw-border-style);border-width:0}.border-2:not(#\\#){border-style:var(--tw-border-style);border-width:2px}.border-px:not(#\\#){border-width:1px}.divide:not(#\\#){border-width:.5px}.border-t:not(#\\#){border-top-style:var(--tw-border-style);border-top-width:1px}.border-t-0:not(#\\#){border-top-style:var(--tw-border-style);border-top-width:0}.border-r:not(#\\#){border-right-style:var(--tw-border-style);border-right-width:1px}.border-b:not(#\\#){border-bottom-style:var(--tw-border-style);border-bottom-width:1px}.border-b-0:not(#\\#){border-bottom-style:var(--tw-border-style);border-bottom-width:0}.border-dashed:not(#\\#){--tw-border-style:dashed;border-style:dashed}.border-body:not(#\\#){border-color:var(--color-body)}.border-body-light:not(#\\#){border-color:var(--color-body-light)}.border-canvas-default:not(#\\#){border-color:var(--color-canvas-default)}.border-card-border:not(#\\#){border-color:var(--color-card-border)}.border-grey-100:not(#\\#){border-color:var(--color-grey-100)}.border-grey-200:not(#\\#){border-color:var(--color-grey-200)}.border-input-border:not(#\\#){border-color:var(--color-input-border)}.border-input-disable:not(#\\#){border-color:var(--color-input-disable)}.border-input-error-border:not(#\\#){border-color:var(--color-input-error-border)}.border-input-focus-border:not(#\\#){border-color:var(--color-input-focus-border)}.border-input-warning-border:not(#\\#){border-color:var(--color-input-warning-border)}.border-negative:not(#\\#){border-color:var(--color-negative)}.border-negative-500:not(#\\#){border-color:var(--color-negative-500)}.border-neutral:not(#\\#){border-color:var(--color-neutral)}.border-panel:not(#\\#){border-color:var(--color-panel)}.border-panel-border:not(#\\#){border-color:var(--color-panel-border)}.border-panel-border-subtle:not(#\\#){border-color:var(--color-panel-border-subtle)}.border-panel-subtle:not(#\\#){border-color:var(--color-panel-subtle)}.border-positive:not(#\\#){border-color:var(--color-positive)}.border-positive-text:not(#\\#){border-color:var(--color-positive-text)}.border-primary:not(#\\#){border-color:var(--color-primary)}.border-primary-700:not(#\\#){border-color:var(--color-primary-700)}.border-primary-hover:not(#\\#){border-color:var(--color-primary-hover)}.border-select-border:not(#\\#){border-color:var(--color-select-border)}.border-tab-border:not(#\\#){border-color:var(--color-tab-border)}.border-transparent:not(#\\#){border-color:#0000}.border-warning:not(#\\#){border-color:var(--color-warning)}.border-warning-bg:not(#\\#){border-color:var(--color-warning-bg)}.border-white:not(#\\#){border-color:var(--color-white)}.bg-blue-500:not(#\\#){background-color:var(--color-blue-500)}.bg-body:not(#\\#){background-color:var(--color-body)}.bg-body-bg:not(#\\#){background-color:var(--color-body-bg)}.bg-canvas-default:not(#\\#){background-color:var(--color-canvas-default)}.bg-canvas-subtle:not(#\\#){background-color:var(--color-canvas-subtle)}.bg-card:not(#\\#){background-color:var(--color-card)}.bg-gray-100:not(#\\#){background-color:var(--color-gray-100)}.bg-grey-50:not(#\\#){background-color:var(--color-grey-50)}.bg-grey-200:not(#\\#){background-color:var(--color-grey-200)}.bg-grey-300:not(#\\#){background-color:var(--color-grey-300)}.bg-grey-400:not(#\\#){background-color:var(--color-grey-400)}.bg-grey-500:not(#\\#){background-color:var(--color-grey-500)}.bg-grey-600:not(#\\#){background-color:var(--color-grey-600)}.bg-grey-700:not(#\\#){background-color:var(--color-grey-700)}.bg-grey-800:not(#\\#){background-color:var(--color-grey-800)}.bg-input-bg:not(#\\#){background-color:var(--color-input-bg)}.bg-input-border:not(#\\#){background-color:var(--color-input-border)}.bg-input-disable:not(#\\#){background-color:var(--color-input-disable)}.bg-input-error-bg:not(#\\#){background-color:var(--color-input-error-bg)}.bg-input-message-bg:not(#\\#){background-color:var(--color-input-message-bg)}.bg-input-option-active-bg:not(#\\#){background-color:var(--color-input-option-active-bg)}.bg-input-option-hover-bg:not(#\\#){background-color:var(--color-input-option-hover-bg)}.bg-input-text:not(#\\#){background-color:var(--color-input-text)}.bg-input-warning-bg:not(#\\#){background-color:var(--color-input-warning-bg)}.bg-negative:not(#\\#){background-color:var(--color-negative)}.bg-negative-400:not(#\\#){background-color:var(--color-negative-400)}.bg-negative-500:not(#\\#){background-color:var(--color-negative-500)}.bg-negative-bg:not(#\\#){background-color:var(--color-negative-bg)}.bg-negative-hover:not(#\\#){background-color:var(--color-negative-hover)}.bg-negative-light:not(#\\#){background-color:var(--color-negative-light)}.bg-panel:not(#\\#){background-color:var(--color-panel)}.bg-panel-0:not(#\\#){background-color:var(--color-panel-0)}.bg-panel-1:not(#\\#){background-color:var(--color-panel-1)}.bg-panel-2:not(#\\#){background-color:var(--color-panel-2)}.bg-panel-3:not(#\\#){background-color:var(--color-panel-3)}.bg-panel-4:not(#\\#){background-color:var(--color-panel-4)}.bg-panel-5:not(#\\#){background-color:var(--color-panel-5)}.bg-panel-subtle:not(#\\#){background-color:var(--color-panel-subtle)}.bg-positive:not(#\\#){background-color:var(--color-positive)}.bg-positive-200:not(#\\#){background-color:var(--color-positive-200)}.bg-positive-500:not(#\\#){background-color:var(--color-positive-500)}.bg-positive-bg:not(#\\#){background-color:var(--color-positive-bg)}.bg-positive-hover:not(#\\#){background-color:var(--color-positive-hover)}.bg-positive-light:not(#\\#){background-color:var(--color-positive-light)}.bg-primary:not(#\\#){background-color:var(--color-primary)}.bg-primary-500:not(#\\#){background-color:var(--color-primary-500)}.bg-primary-600:not(#\\#){background-color:var(--color-primary-600)}.bg-primary-hover:not(#\\#){background-color:var(--color-primary-hover)}.bg-primary-light:not(#\\#){background-color:var(--color-primary-light)}.bg-primary\\/30:not(#\\#){background-color:var(--color-primary)}@supports (color:color-mix(in lab,red,red)){.bg-primary\\/30:not(#\\#){background-color:color-mix(in oklab,var(--color-primary)30%,transparent)}}.bg-select-list-bg:not(#\\#){background-color:var(--color-select-list-bg)}.bg-tab-active-bg:not(#\\#){background-color:var(--color-tab-active-bg)}.bg-tab-bg-default:not(#\\#){background-color:var(--color-tab-bg-default)}.bg-tab-inactive-bg:not(#\\#){background-color:var(--color-tab-inactive-bg)}.bg-transparent:not(#\\#){background-color:#0000}.bg-warning:not(#\\#){background-color:var(--color-warning)}.bg-warning-500:not(#\\#){background-color:var(--color-warning-500)}.bg-warning-bg:not(#\\#){background-color:var(--color-warning-bg)}.bg-warning-hover:not(#\\#){background-color:var(--color-warning-hover)}.bg-warning-light:not(#\\#){background-color:var(--color-warning-light)}.bg-white:not(#\\#){background-color:var(--color-white)}.bg-linear-to-r:not(#\\#){--tw-gradient-position:to right}@supports (background-image:linear-gradient(in lab,red,red)){.bg-linear-to-r:not(#\\#){--tw-gradient-position:to right in oklab}}.bg-linear-to-r:not(#\\#){background-image:linear-gradient(var(--tw-gradient-stops))}.from-green-500:not(#\\#){--tw-gradient-from:var(--color-green-500);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}.from-primary:not(#\\#){--tw-gradient-from:var(--color-primary);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}.to-blue-500:not(#\\#){--tw-gradient-to:var(--color-blue-500);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}.to-pink-500:not(#\\#){--tw-gradient-to:var(--color-pink-500);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}.stroke-current:not(#\\#){stroke:currentColor}.p-0:not(#\\#){padding:calc(var(--spacing)*0)}.p-0\\.5:not(#\\#){padding:calc(var(--spacing)*.5)}.p-1:not(#\\#){padding:calc(var(--spacing)*1)}.p-1\\!{padding:calc(var(--spacing)*1)!important}.p-1\\.5:not(#\\#){padding:calc(var(--spacing)*1.5)}.p-2:not(#\\#){padding:calc(var(--spacing)*2)}.p-2\\.5:not(#\\#){padding:calc(var(--spacing)*2.5)}.p-3:not(#\\#){padding:calc(var(--spacing)*3)}.p-4:not(#\\#){padding:calc(var(--spacing)*4)}.p-6:not(#\\#){padding:calc(var(--spacing)*6)}.p-8:not(#\\#){padding:calc(var(--spacing)*8)}.p-10:not(#\\#){padding:calc(var(--spacing)*10)}.p-50:not(#\\#){padding:calc(var(--spacing)*50)}.p-px:not(#\\#){padding:1px}.px-0\\.5:not(#\\#){padding-inline:calc(var(--spacing)*.5)}.px-1:not(#\\#){padding-inline:calc(var(--spacing)*1)}.px-1\\.5:not(#\\#){padding-inline:calc(var(--spacing)*1.5)}.px-2:not(#\\#){padding-inline:calc(var(--spacing)*2)}.px-3:not(#\\#){padding-inline:calc(var(--spacing)*3)}.px-4:not(#\\#){padding-inline:calc(var(--spacing)*4)}.px-6:not(#\\#){padding-inline:calc(var(--spacing)*6)}.px-7:not(#\\#){padding-inline:calc(var(--spacing)*7)}.px-8:not(#\\#){padding-inline:calc(var(--spacing)*8)}.py-0\\.5:not(#\\#){padding-block:calc(var(--spacing)*.5)}.py-1:not(#\\#){padding-block:calc(var(--spacing)*1)}.py-1\\.5:not(#\\#){padding-block:calc(var(--spacing)*1.5)}.py-2:not(#\\#){padding-block:calc(var(--spacing)*2)}.py-3:not(#\\#){padding-block:calc(var(--spacing)*3)}.pt-0\\.5:not(#\\#){padding-top:calc(var(--spacing)*.5)}.pt-1:not(#\\#){padding-top:calc(var(--spacing)*1)}.pt-1\\.5:not(#\\#){padding-top:calc(var(--spacing)*1.5)}.pt-2:not(#\\#){padding-top:calc(var(--spacing)*2)}.pl-1:not(#\\#){padding-left:calc(var(--spacing)*1)}.pl-4:not(#\\#){padding-left:calc(var(--spacing)*4)}.text-center:not(#\\#){text-align:center}.text-left:not(#\\#){text-align:left}.text-2xl:not(#\\#){font-size:var(--text-2xl);line-height:var(--tw-leading,var(--text-2xl--line-height))}.text-3xl:not(#\\#){font-size:var(--text-3xl);line-height:var(--tw-leading,var(--text-3xl--line-height))}.text-4xl:not(#\\#){font-size:var(--text-4xl);line-height:var(--tw-leading,var(--text-4xl--line-height))}.text-5xl:not(#\\#){font-size:var(--text-5xl);line-height:var(--tw-leading,var(--text-5xl--line-height))}.text-6xl:not(#\\#){font-size:var(--text-6xl);line-height:var(--tw-leading,var(--text-6xl--line-height))}.text-7xl:not(#\\#){font-size:var(--text-7xl);line-height:var(--tw-leading,var(--text-7xl--line-height))}.text-8xl:not(#\\#){font-size:var(--text-8xl);line-height:var(--tw-leading,var(--text-8xl--line-height))}.text-9xl:not(#\\#){font-size:var(--text-9xl);line-height:var(--tw-leading,var(--text-9xl--line-height))}.text-base:not(#\\#){font-size:var(--text-base);line-height:var(--tw-leading,var(--text-base--line-height))}.text-lg:not(#\\#){font-size:var(--text-lg);line-height:var(--tw-leading,var(--text-lg--line-height))}.text-sm:not(#\\#){font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}.text-xl:not(#\\#){font-size:var(--text-xl);line-height:var(--tw-leading,var(--text-xl--line-height))}.text-xs:not(#\\#){font-size:var(--text-xs);line-height:var(--tw-leading,var(--text-xs--line-height))}.text-s:not(#\\#){font-size:var(--text-s)}.text-xxs:not(#\\#){font-size:var(--text-xxs)}.leading-3:not(#\\#){--tw-leading:calc(var(--spacing)*3);line-height:calc(var(--spacing)*3)}.leading-4:not(#\\#){--tw-leading:calc(var(--spacing)*4);line-height:calc(var(--spacing)*4)}.leading-5:not(#\\#){--tw-leading:calc(var(--spacing)*5);line-height:calc(var(--spacing)*5)}.leading-none:not(#\\#){--tw-leading:1;line-height:1}.font-bold:not(#\\#){--tw-font-weight:var(--font-weight-bold);font-weight:var(--font-weight-bold)}.font-medium:not(#\\#){--tw-font-weight:var(--font-weight-medium);font-weight:var(--font-weight-medium)}.font-semibold:not(#\\#){--tw-font-weight:var(--font-weight-semibold);font-weight:var(--font-weight-semibold)}.font-thin:not(#\\#){--tw-font-weight:var(--font-weight-thin);font-weight:var(--font-weight-thin)}.whitespace-nowrap:not(#\\#){white-space:nowrap}.text-body:not(#\\#){color:var(--color-body)}.text-button-text:not(#\\#){color:var(--color-button-text)}.text-gray-50:not(#\\#){color:var(--color-gray-50)}.text-gray-400:not(#\\#){color:var(--color-gray-400)}.text-gray-500:not(#\\#){color:var(--color-gray-500)}.text-gray-800:not(#\\#){color:var(--color-gray-800)}.text-grey-100:not(#\\#){color:var(--color-grey-100)}.text-grey-200:not(#\\#){color:var(--color-grey-200)}.text-grey-300:not(#\\#){color:var(--color-grey-300)}.text-grey-700:not(#\\#){color:var(--color-grey-700)}.text-inactive-text:not(#\\#){color:var(--color-inactive-text)}.text-inherit:not(#\\#){color:inherit}.text-input-disable:not(#\\#){color:var(--color-input-disable)}.text-input-message-text:not(#\\#){color:var(--color-input-message-text)}.text-input-option-active-text:not(#\\#){color:var(--color-input-option-active-text)}.text-input-placeholder:not(#\\#){color:var(--color-input-placeholder)}.text-input-text:not(#\\#){color:var(--color-input-text)}.text-muted:not(#\\#){color:var(--color-muted)}.text-negative:not(#\\#){color:var(--color-negative)}.text-negative-500:not(#\\#){color:var(--color-negative-500)}.text-negative-dark:not(#\\#){color:var(--color-negative-dark)}.text-negative-text:not(#\\#){color:var(--color-negative-text)}.text-panel-subtle:not(#\\#){color:var(--color-panel-subtle)}.text-positive:not(#\\#){color:var(--color-positive)}.text-positive-500:not(#\\#){color:var(--color-positive-500)}.text-positive-600:not(#\\#){color:var(--color-positive-600)}.text-positive-dark:not(#\\#){color:var(--color-positive-dark)}.text-positive-text:not(#\\#),.text-positive-text\\/70:not(#\\#){color:var(--color-positive-text)}@supports (color:color-mix(in lab,red,red)){.text-positive-text\\/70:not(#\\#){color:color-mix(in oklab,var(--color-positive-text)70%,transparent)}}.text-primary:not(#\\#){color:var(--color-primary)}.text-primary-dark:not(#\\#){color:var(--color-primary-dark)}.text-primary-hover:not(#\\#){color:var(--color-primary-hover)}.text-select-text:not(#\\#){color:var(--color-select-text)}.text-tab-active-fg:not(#\\#){color:var(--color-tab-active-fg)}.text-tab-inactive-fg:not(#\\#){color:var(--color-tab-inactive-fg)}.text-warning:not(#\\#){color:var(--color-warning)}.text-warning-dark:not(#\\#){color:var(--color-warning-dark)}.text-warning-text:not(#\\#){color:var(--color-warning-text)}.capitalize:not(#\\#){text-transform:capitalize}.lowercase:not(#\\#){text-transform:lowercase}.uppercase:not(#\\#){text-transform:uppercase}.italic:not(#\\#){font-style:italic}.underline:not(#\\#){text-decoration-line:underline}.decoration-transparent:not(#\\#){text-decoration-color:#0000}.opacity-0:not(#\\#){opacity:0}.opacity-50:not(#\\#){opacity:.5}.opacity-60:not(#\\#){opacity:.6}.opacity-80:not(#\\#){opacity:.8}.opacity-100:not(#\\#){opacity:1}.shadow:not(#\\#){--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a),0 1px 2px -1px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-inner:not(#\\#){--tw-shadow:inset 0 2px 4px 0 var(--tw-shadow-color,#0000000d);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-lg:not(#\\#){--tw-shadow:0 10px 15px -3px var(--tw-shadow-color,#0000001a),0 4px 6px -4px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-md:not(#\\#){--tw-shadow:0 4px 6px -1px var(--tw-shadow-color,#0000001a),0 2px 4px -2px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-xs:not(#\\#){--tw-shadow:0 1px 2px 0 var(--tw-shadow-color,#0000000d);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.ring-0:not(#\\#){--tw-ring-shadow:var(--tw-ring-inset,)0 0 0 calc(0px + var(--tw-ring-offset-width))var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.ring-1:not(#\\#){--tw-ring-shadow:var(--tw-ring-inset,)0 0 0 calc(1px + var(--tw-ring-offset-width))var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.ring-input-error-border:not(#\\#){--tw-ring-color:var(--color-input-error-border)}.ring-input-focus-border:not(#\\#){--tw-ring-color:var(--color-input-focus-border)}.ring-input-warning-border:not(#\\#){--tw-ring-color:var(--color-input-warning-border)}.ring-positive:not(#\\#){--tw-ring-color:var(--color-positive)}.outline-hidden:not(#\\#){--tw-outline-style:none;outline-style:none}@media(forced-colors:active){.outline-hidden:not(#\\#){outline-offset:2px;outline:2px solid #0000}}.outline:not(#\\#),.outline-1:not(#\\#){outline-style:var(--tw-outline-style);outline-width:1px}.outline-s:not(#\\#){outline-width:.5px}.outline-xs:not(#\\#){outline-width:.3px}.outline-xxs:not(#\\#){outline-width:.1px}.outline-canvas-default:not(#\\#){outline-color:var(--color-canvas-default)}.outline-primary:not(#\\#){outline-color:var(--color-primary)}.blur:not(#\\#){--tw-blur:blur(8px);filter:var(--tw-blur,)var(--tw-brightness,)var(--tw-contrast,)var(--tw-grayscale,)var(--tw-hue-rotate,)var(--tw-invert,)var(--tw-saturate,)var(--tw-sepia,)var(--tw-drop-shadow,)}.filter:not(#\\#){filter:var(--tw-blur,)var(--tw-brightness,)var(--tw-contrast,)var(--tw-grayscale,)var(--tw-hue-rotate,)var(--tw-invert,)var(--tw-saturate,)var(--tw-sepia,)var(--tw-drop-shadow,)}.transition:not(#\\#){transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to,opacity,box-shadow,transform,translate,scale,rotate,filter,-webkit-backdrop-filter,backdrop-filter,display,content-visibility,overlay,pointer-events;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-all:not(#\\#){transition-property:all;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-colors:not(#\\#){transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-opacity:not(#\\#){transition-property:opacity;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-transform:not(#\\#){transition-property:transform,translate,scale,rotate;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.duration-150:not(#\\#){--tw-duration:.15s;transition-duration:.15s}.duration-200:not(#\\#){--tw-duration:.2s;transition-duration:.2s}.duration-300:not(#\\#){--tw-duration:.3s;transition-duration:.3s}.ease-in-out:not(#\\#){--tw-ease:var(--ease-in-out);transition-timing-function:var(--ease-in-out)}.ease-out:not(#\\#){--tw-ease:var(--ease-out);transition-timing-function:var(--ease-out)}.outline-solid:not(#\\#){--tw-outline-style:solid;outline-style:solid}.select-none:not(#\\#){-webkit-user-select:none;user-select:none}@media(hover:hover){.group-hover\\:flex:is(:where(.group):hover *):not(#\\#){display:flex}.group-hover\\:grid:is(:where(.group):hover *):not(#\\#){display:grid}.group-hover\\:border-body:is(:where(.group):hover *):not(#\\#){border-color:var(--color-body)}.group-hover\\:border-negative-text:is(:where(.group):hover *):not(#\\#){border-color:var(--color-negative-text)}.group-hover\\:border-positive-text:is(:where(.group):hover *):not(#\\#){border-color:var(--color-positive-text)}.group-hover\\:border-warning-text:is(:where(.group):hover *):not(#\\#){border-color:var(--color-warning-text)}.group-hover\\:bg-grey-400:is(:where(.group):hover *):not(#\\#){background-color:var(--color-grey-400)}.group-hover\\:bg-negative-hover:is(:where(.group):hover *):not(#\\#){background-color:var(--color-negative-hover)}.group-hover\\:bg-negative-light:is(:where(.group):hover *):not(#\\#){background-color:var(--color-negative-light)}.group-hover\\:bg-positive-hover:is(:where(.group):hover *):not(#\\#){background-color:var(--color-positive-hover)}.group-hover\\:bg-positive-light:is(:where(.group):hover *):not(#\\#){background-color:var(--color-positive-light)}.group-hover\\:bg-primary-hover:is(:where(.group):hover *):not(#\\#){background-color:var(--color-primary-hover)}.group-hover\\:bg-primary-light:is(:where(.group):hover *):not(#\\#){background-color:var(--color-primary-light)}.group-hover\\:bg-warning-hover:is(:where(.group):hover *):not(#\\#){background-color:var(--color-warning-hover)}.group-hover\\:bg-warning-light:is(:where(.group):hover *):not(#\\#){background-color:var(--color-warning-light)}.group-hover\\:opacity-100:is(:where(.group):hover *):not(#\\#){opacity:1}}.placeholder\\:text-sm:not(#\\#)::placeholder{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}.placeholder\\:text-xs:not(#\\#)::placeholder{font-size:var(--text-xs);line-height:var(--tw-leading,var(--text-xs--line-height))}.placeholder\\:text-s:not(#\\#)::placeholder{font-size:var(--text-s)}.placeholder\\:text-input-placeholder:not(#\\#)::placeholder{color:var(--color-input-placeholder)}.placeholder\\:opacity-60:not(#\\#)::placeholder{opacity:.6}.first\\:bottom-full:first-child:not(#\\#){bottom:100%}.first\\:-ml-1\\.5:first-child:not(#\\#){margin-left:calc(var(--spacing)*-1.5)}.first\\:rounded-t:first-child:not(#\\#){border-top-left-radius:.25rem;border-top-right-radius:.25rem}.first\\:rounded-l:first-child:not(#\\#){border-top-left-radius:.25rem;border-bottom-left-radius:.25rem}.last\\:top-full:last-child:not(#\\#){top:100%}.last\\:-mr-1\\.5:last-child:not(#\\#){margin-right:calc(var(--spacing)*-1.5)}.last\\:rounded-r:last-child:not(#\\#){border-top-right-radius:.25rem;border-bottom-right-radius:.25rem}.last\\:rounded-b:last-child:not(#\\#){border-bottom-right-radius:.25rem;border-bottom-left-radius:.25rem}.only\\:top-full:only-child:not(#\\#){top:100%}.only\\:-mx-0\\.5:only-child:not(#\\#){margin-inline:calc(var(--spacing)*-.5)}.only\\:rounded:only-child:not(#\\#){border-radius:.25rem}.only\\:ring-1:only-child:not(#\\#){--tw-ring-shadow:var(--tw-ring-inset,)0 0 0 calc(1px + var(--tw-ring-offset-width))var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.focus-within\\:border-input-error-border:focus-within:not(#\\#){border-color:var(--color-input-error-border)}.focus-within\\:border-input-focus-border:focus-within:not(#\\#){border-color:var(--color-input-focus-border)}.focus-within\\:border-input-warning-border:focus-within:not(#\\#){border-color:var(--color-input-warning-border)}.focus-within\\:border-positive:focus-within:not(#\\#){border-color:var(--color-positive)}@media(hover:hover){.hover\\:border-canvas-default:hover:not(#\\#){border-color:var(--color-canvas-default)}.hover\\:border-canvas-subtle:hover:not(#\\#){border-color:var(--color-canvas-subtle)}.hover\\:border-negative-hover:hover:not(#\\#){border-color:var(--color-negative-hover)}.hover\\:border-positive-hover:hover:not(#\\#){border-color:var(--color-positive-hover)}.hover\\:border-primary-hover:hover:not(#\\#){border-color:var(--color-primary-hover)}.hover\\:border-warning-hover:hover:not(#\\#){border-color:var(--color-warning-hover)}.hover\\:bg-canvas-default:hover:not(#\\#){background-color:var(--color-canvas-default)}.hover\\:bg-canvas-subtle:hover:not(#\\#){background-color:var(--color-canvas-subtle)}.hover\\:bg-grey-500:hover:not(#\\#){background-color:var(--color-grey-500)}.hover\\:bg-grey-700:hover:not(#\\#){background-color:var(--color-grey-700)}.hover\\:bg-input-option-hover-bg:hover:not(#\\#){background-color:var(--color-input-option-hover-bg)}.hover\\:bg-negative:hover:not(#\\#){background-color:var(--color-negative)}.hover\\:bg-negative-hover:hover:not(#\\#){background-color:var(--color-negative-hover)}.hover\\:bg-positive:hover:not(#\\#){background-color:var(--color-positive)}.hover\\:bg-positive-hover:hover:not(#\\#){background-color:var(--color-positive-hover)}.hover\\:bg-primary:hover:not(#\\#){background-color:var(--color-primary)}.hover\\:bg-primary-600:hover:not(#\\#){background-color:var(--color-primary-600)}.hover\\:bg-primary-hover:hover:not(#\\#){background-color:var(--color-primary-hover)}.hover\\:bg-primary\\/20:hover:not(#\\#){background-color:var(--color-primary)}@supports (color:color-mix(in lab,red,red)){.hover\\:bg-primary\\/20:hover:not(#\\#){background-color:color-mix(in oklab,var(--color-primary)20%,transparent)}}.hover\\:bg-transparent:hover:not(#\\#){background-color:#0000}.hover\\:bg-warning:hover:not(#\\#){background-color:var(--color-warning)}.hover\\:bg-warning-hover:hover:not(#\\#){background-color:var(--color-warning-hover)}.hover\\:text-body:hover:not(#\\#){color:var(--color-body)}.hover\\:text-button-text:hover:not(#\\#){color:var(--color-button-text)}.hover\\:text-grey-200:hover:not(#\\#){color:var(--color-grey-200)}.hover\\:text-negative-400:hover:not(#\\#){color:var(--color-negative-400)}.hover\\:text-positive-400:hover:not(#\\#){color:var(--color-positive-400)}.hover\\:text-positive-text:hover:not(#\\#){color:var(--color-positive-text)}.hover\\:text-primary:hover:not(#\\#){color:var(--color-primary)}.hover\\:text-primary-hover:hover:not(#\\#){color:var(--color-primary-hover)}.hover\\:text-tab-active-fg:hover:not(#\\#){color:var(--color-tab-active-fg)}.hover\\:decoration-current:hover:not(#\\#){text-decoration-color:currentColor}}.focus\\:bg-transparent:focus:not(#\\#){background-color:#0000}.focus\\:ring-2:focus:not(#\\#){--tw-ring-shadow:var(--tw-ring-inset,)0 0 0 calc(2px + var(--tw-ring-offset-width))var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.focus\\:ring-negative:focus:not(#\\#){--tw-ring-color:var(--color-negative)}.focus\\:ring-positive:focus:not(#\\#){--tw-ring-color:var(--color-positive)}.focus\\:ring-primary:focus:not(#\\#){--tw-ring-color:var(--color-primary)}.focus\\:ring-warning:focus:not(#\\#){--tw-ring-color:var(--color-warning)}.focus\\:ring-offset-0:focus:not(#\\#){--tw-ring-offset-width:0px;--tw-ring-offset-shadow:var(--tw-ring-inset,)0 0 0 var(--tw-ring-offset-width)var(--tw-ring-offset-color)}.focus\\:ring-offset-2:focus:not(#\\#){--tw-ring-offset-width:2px;--tw-ring-offset-shadow:var(--tw-ring-inset,)0 0 0 var(--tw-ring-offset-width)var(--tw-ring-offset-color)}.focus\\:outline-hidden:focus:not(#\\#){--tw-outline-style:none;outline-style:none}@media(forced-colors:active){.focus\\:outline-hidden:focus:not(#\\#){outline-offset:2px;outline:2px solid #0000}}.focus-visible\\:ring-2:focus-visible:not(#\\#){--tw-ring-shadow:var(--tw-ring-inset,)0 0 0 calc(2px + var(--tw-ring-offset-width))var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.focus-visible\\:ring-primary:focus-visible:not(#\\#){--tw-ring-color:var(--color-primary)}.focus-visible\\:ring-offset-2:focus-visible:not(#\\#){--tw-ring-offset-width:2px;--tw-ring-offset-shadow:var(--tw-ring-inset,)0 0 0 var(--tw-ring-offset-width)var(--tw-ring-offset-color)}:root:not(#\\#){--ws-primary-50:#f2ddff;--ws-primary-100:#edd0ff;--ws-primary-300:#d0acef;--ws-primary-400:#c190ea;--ws-primary-600:#935ebf;--ws-primary-800:#563374;--ws-primary-900:#381e4f;--ws-primary-950:#29133c;--ws-positive-50:#ecf9f2;--ws-positive-100:#d9f2e6;--ws-positive-300:#8ed9b3;--ws-positive-400:#68cd99;--ws-positive-700:#28734d;--ws-positive-800:#28734d;--ws-positive-900:#0d261a;--ws-positive-950:#07130d;--ws-warning-50:#fff7e6;--ws-warning-100:#ffefcc;--ws-warning-300:#fed066;--ws-warning-400:#fdc133;--ws-warning-700:#986a00;--ws-warning-800:#654700;--ws-warning-900:#332300;--ws-warning-950:#191200;--ws-negative-50:#feeeee;--ws-negative-100:#fcdcdc;--ws-negative-300:#f69797;--ws-negative-400:#f37575;--ws-negative-700:#9a3232;--ws-negative-800:#6e2222;--ws-negative-900:#431212;--ws-negative-950:#2e0a0a;--ws-grey-300:#535353;--ws-grey-400:#484848;--ws-grey-600:#3f3f3f;--ws-palette-primary-200:#e0c7f5;--ws-palette-primary-500:#b174e5;--ws-palette-primary-700:#75499a;--ws-button-bg:var(--vscode-button-background,var(--theia-button-background,var(--ws-palette-primary-500)));--ws-button-fg:var(--vscode-button-foreground,var(--theia-button-foreground,var(--ws-palette-white)));--ws-primary-default:var(--ws-button-bg);--ws-button-text:var(--ws-button-fg);--ws-primary-hover:var(--vscode-button-hoverBackground,var(--theia-button-hoverBackground,var(--ws-palette-primary-700)));--ws-primary-light:var(--vscode-editorInfo-foreground,var(--vscode-button-background,var(--theia-button-secondaryForeground,var(--theia-button-background,var(--ws-palette-primary-200)))));--ws-primary-dark:var(--vscode-editor-lineHighlightBackground,var(--vscode-button-foreground,var(--theia-button-secondaryBackground,var(--theia-button-foreground,var(--ws-palette-primary-700)))));--ws-primary-200:var(--ws-primary-light);--ws-primary-500:var(--ws-primary-default);--ws-primary-700:var(--ws-primary-hover);--ws-palette-positive-200:#b3e6cc;--ws-palette-positive-500:#42c080;--ws-palette-positive-600:#359a66;--ws-positive-dark:var(--vscode-gitDecoration-addedResourceForeground,var(--ws-palette-positive-600));--ws-positive-hover:var(--ws-positive-dark);--ws-positive-bg:var(--ws-palette-positive-100);--ws-positive-light:var(--ws-palette-positive-200);--ws-positive-border:var(--ws-positive-500);--ws-positive-text:var(--ws-positive-500);--ws-positive-500:var(--vscode-testing-iconPassed,var(--ws-palette-positive-500));--ws-positive-200:var(--ws-positive-light);--ws-positive-600:var(--ws-positive-dark);--ws-palette-warning-200:#fee099;--ws-palette-warning-500:#fdb100;--ws-palette-warning-600:#ca8e00;--ws-warning-hover:var(--ws-warning-600);--ws-warning-text:var(--ws-warning-500);--ws-warning-border:var(--ws-warning-500);--ws-warning-500:var(--vscode-list-warningForeground,var(--ws-palette-warning-500));--ws-warning-bg:var(--vscode-inputValidation-warningBackground,var(--ws-palette-warning-500));--ws-warning-light:var(--vscode-inputValidation-warningBackground,var(--ws-palette-warning-200));--ws-warning-dark:var(--vscode-inputValidation-warningBackground,var(--ws-palette-warning-600));--ws-warning-200:var(--ws-warning-light);--ws-warning-600:var(--ws-warning-dark);--ws-palette-negative-200:#f9baba;--ws-palette-negative-500:#f05252;--ws-palette-negative-600:#c54242;--ws-negative-hover:var(--ws-negative-600);--ws-negative-text:var(--ws-negative-500);--ws-negative-500:var(--vscode-errorForeground,var(--ws-palette-negative-500));--ws-negative-light:var(--ws-palette-negative-200);--ws-negative-dark:var(--ws-palette-negative-600);--ws-negative-200:var(--ws-negative-light);--ws-negative-600:var(--ws-negative-dark);--ws-palette-white:#fff;--ws-palette-grey-50:#f1f5f9;--ws-palette-grey-100:#ccc;--ws-palette-grey-200:#888;--ws-palette-grey-300:#535353;--ws-palette-grey-400:#484848;--ws-palette-grey-500:#444;--ws-palette-grey-600:#3f3f3f;--ws-palette-grey-700:#393939;--ws-palette-grey-800:#383838;--ws-palette-grey-900:#262626;--ws-palette-grey-950:#151515;--ws-bg-default:var(--vscode-editor-background,var(--theia-editor-background,var(--ws-palette-white)));--ws-bg-foreground:var(--vscode-editor-foreground,var(--theia-editor-foreground,var(--ws-palette-grey-50)));--ws-grey-50:var(--ws-bg-foreground);--ws-grey-100:var(--vscode-panel-background,var(--theia-panel-background,var(--ws-palette-grey-100)));--ws-grey-200:var(--vscode-editor-background,var(--theia-editor-background,var(--ws-palette-grey-200)));--ws-grey-950:var(--vscode-panel-border,var(--theia-border-color,var(--ws-palette-grey-950)));--ws-grey-500:var(--vscode-descriptionForeground,var(--ws-palette-grey-500));--ws-grey-800:var(--vscode-descriptionForeground,var(--ws-palette-grey-800));--ws-card-bg:var(--vscode-editorGroupHeader-tabsBackground,var(--theia-editorGroupHeader-tabsBackground,var(--ws-palette-grey-900)));--ws-card-border:var(--vscode-editorGroupHeader-tabsBorder,var(--theia-editorGroupHeader-tabsBorder,var(--ws-palette-grey-50)));--ws-palette-input-bg:var(--ws-palette-grey-300);--ws-palette-input-border:var(--ws-palette-grey-300);--ws-palette-input-text:var(--ws-palette-grey-50);--ws-palette-input-placeholder:var(--ws-palette-grey-200);--ws-palette-input-focus-border:var(--ws-palette-grey-50);--ws-input-bg:var(--vscode-input-background,var(--vscode-editorWidget-background,var(--theia-input-background,var(--ws-palette-input-bg))));--ws-input-border:var(--vscode-input-border,var(--vscode-panel-border,var(--theia-input-border,var(--ws-palette-input-border))));--ws-input-text:var(--vscode-input-foreground,var(--vscode-editor-foreground,var(--theia-input-foreground,var(--ws-palette-input-text))));--ws-input-placeholder:var(--vscode-input-placeholderForeground,var(--vscode-editor-foreground,var(--theia-input-placeholderForeground,var(--ws-palette-input-placeholder))));--ws-input-focus-border:var(--vscode-focusBorder,var(--vscode-button-background,var(--theia-focusBorder,var(--ws-palette-primary-500))));--ws-select-bg:var(--vscode-dropdown-background,var(--vscode-editorWidget-background,var(--theia-dropdown-background,var(--ws-input-bg))));--ws-select-border:var(--vscode-dropdown-border,var(--vscode-panel-border,var(--theia-dropdown-border,var(--ws-input-border))));--ws-select-text:var(--vscode-dropdown-foreground,var(--vscode-editor-foreground,var(--theia-dropdown-foreground,var(--ws-input-text))));--ws-select-list-bg:var(--vscode-dropdown-listBackground,var(--vscode-editorWidget-background,var(--theia-editorWidget-background,var(--ws-palette-grey-900))));--ws-input-option-hover-bg:var(--vscode-list-hoverBackground,var(--vscode-button-hoverBackground,var(--theia-list-hoverBackground,var(--ws-palette-primary-700))));--ws-input-option-active-bg:var(--vscode-list-activeSelectionBackground,var(--theia-list-activeSelectionBackground,var(--ws-palette-primary-500)));--ws-input-option-active-text:var(--vscode-list-activeSelectionForeground,var(--theia-list-activeSelectionForeground,var(--ws-palette-white)));--ws-input-error-border:var(--vscode-inputValidation-errorBorder,var(--theia-inputValidation-errorBorder,var(--ws-palette-negative-500)));--ws-input-error-bg:var(--vscode-inputValidation-errorBackground,var(--theia-inputValidation-errorBackground,var(--ws-palette-negative-200)));--ws-input-warning-border:var(--vscode-inputValidation-warningBorder,var(--theia-inputValidation-warningBorder,var(--ws-palette-warning-500)));--ws-input-warning-bg:var(--vscode-inputValidation-warningBackground,var(--theia-inputValidation-warningBackground,var(--ws-palette-warning-200)));--ws-input-info-bg:var(--vscode-panel-background,var(--theia-inputValidation-infoBackground,var(--ws-palette-primary-200)));--ws-input-message-bg:var(--vscode-editor-lineHighlightBackground,var(--vscode-editorWidget-background,var(--theia-inputValidation-infoBackground,var(--ws-palette-primary-200))));--ws-input-message-text:var(--vscode-editorInfo-foreground,var(--vscode-editor-foreground,var(--theia-inputValidation-infoForeground,var(--ws-palette-primary-500))));--ws-inactive-text:var(--vscode-disabledForeground,var(--theia-disabled-foreground,var(--ws-palette-grey-200)));--ws-text-muted:var(--vscode-descriptionForeground,var(--vscode-editor-foreground,var(--theia-descriptionForeground,var(--ws-palette-grey-100))));--ws-disable-bg:var(--vscode-button-disabledBackground,var(--theia-button-disabledBackground,var(--ws-palette-grey-300)));--ws-disable-input:var(--vscode-button-disabledBackground,var(--theia-button-disabledBackground,var(--ws-palette-grey-200)));--ws-panel-base-ide:var(--vscode-editor-background,var(--theia-editor-background));--ws-panel-shift-ide:var(--vscode-editor-foreground,var(--theia-panel-foreground));--ws-panel-0-mix:var(--ws-panel-base-ide);--ws-panel-1-mix:var(--ws-panel-base-ide)}@supports (color:color-mix(in lab,red,red)){:root:not(#\\#){--ws-panel-1-mix:color-mix(in srgb,var(--ws-panel-base-ide)96%,var(--ws-panel-shift-ide))}}:root:not(#\\#){--ws-panel-2-mix:var(--ws-panel-base-ide)}@supports (color:color-mix(in lab,red,red)){:root:not(#\\#){--ws-panel-2-mix:color-mix(in srgb,var(--ws-panel-base-ide)92%,var(--ws-panel-shift-ide))}}:root:not(#\\#){--ws-panel-3-mix:var(--ws-panel-base-ide)}@supports (color:color-mix(in lab,red,red)){:root:not(#\\#){--ws-panel-3-mix:color-mix(in srgb,var(--ws-panel-base-ide)88%,var(--ws-panel-shift-ide))}}:root:not(#\\#){--ws-panel-4-mix:var(--ws-panel-base-ide)}@supports (color:color-mix(in lab,red,red)){:root:not(#\\#){--ws-panel-4-mix:color-mix(in srgb,var(--ws-panel-base-ide)84%,var(--ws-panel-shift-ide))}}:root:not(#\\#){--ws-panel-5-mix:var(--ws-panel-base-ide)}@supports (color:color-mix(in lab,red,red)){:root:not(#\\#){--ws-panel-5-mix:color-mix(in srgb,var(--ws-panel-base-ide)80%,var(--ws-panel-shift-ide))}}:root:not(#\\#){--ws-panel-light-mix:var(--ws-panel-base-ide)}@supports (color:color-mix(in lab,red,red)){:root:not(#\\#){--ws-panel-light-mix:color-mix(in srgb,var(--ws-panel-base-ide)70%,var(--ws-panel-shift-ide))}}:root:not(#\\#){--ws-panel-0:var(--ws-panel-0-mix,var(--ws-palette-grey-900));--ws-panel-1:var(--ws-panel-1-mix,var(--ws-palette-grey-700));--ws-panel-2:var(--ws-panel-2-mix,var(--ws-palette-grey-900));--ws-panel-3:var(--ws-panel-3-mix,var(--ws-palette-grey-900));--ws-panel-4:var(--ws-panel-4-mix,var(--ws-palette-grey-300));--ws-panel-5:var(--ws-panel-5-mix,var(--ws-palette-grey-950));--ws-panel-light:var(--ws-panel-light-mix,var(--ws-palette-grey-200));--ws-panel-border-subtle:var(--vscode-panel-border,var(--vscode-tab-border,var(--theia-border-color,var(--ws-palette-grey-100))));--ws-panel-border-strong:var(--vscode-contrastBorder,var(--vscode-focusBorder,var(--theia-contrastBorder,var(--ws-palette-grey-300))));--ws-tab-bg-default:var(--vscode-editorGroupHeader-tabsBackground,var(--vscode-editorWidget-background,var(--ws-palette-grey-900)));--ws-tab-border:var(--vscode-tab-border,var(--vscode-editorGroupHeader-tabsBorder,var(--ws-palette-grey-950)));--ws-tab-active-bg:var(--vscode-tab-activeBackground,var(--ws-palette-grey-800));--ws-tab-active-fg:var(--vscode-tab-activeForeground,var(--vscode-editor-foreground,var(--ws-bg-foreground)));--ws-tab-inactive-bg:var(--vscode-tab-inactiveBackground,var(--ws-palette-grey-900));--ws-tab-inactive-fg:var(--vscode-tab-inactiveForeground,var(--vscode-descriptionForeground,var(--ws-palette-grey-200)));--ws-tab-hover-bg:var(--vscode-tab-hoverBackground,var(--vscode-toolbar-hoverBackground,var(--ws-palette-grey-700)));--ws-panel-header-bg:var(--vscode-sideBarSectionHeader-background,var(--vscode-editorGroupHeader-tabsBackground,var(--ws-palette-grey-800)));--ws-panel-header-fg:var(--vscode-sideBarSectionHeader-foreground,var(--vscode-editor-foreground,var(--ws-bg-foreground)));--ws-panel-bg:var(--vscode-panel-background,var(--vscode-editor-background,var(--ws-bg-default)));--ws-panel-border:var(--vscode-panel-border,var(--vscode-tab-border,var(--ws-palette-grey-950)));--ws-panel-title-active-border:var(--vscode-panelTitle-activeBorder,var(--vscode-focusBorder,var(--ws-palette-primary-500)));--ws-panel-title-active-fg:var(--vscode-panelTitle-activeForeground,var(--vscode-editor-foreground,var(--ws-bg-foreground)));--ws-panel-title-inactive-fg:var(--vscode-panelTitle-inactiveForeground,var(--vscode-descriptionForeground,var(--ws-palette-grey-100)))}.center-absolute:not(#\\#){--tw-translate-x: -50% ;--tw-translate-y: -50% ;translate:var(--tw-translate-x)var(--tw-translate-y);transform:var(--tw-rotate-x,)var(--tw-rotate-y,)var(--tw-rotate-z,)var(--tw-skew-x,)var(--tw-skew-y,);position:absolute;top:50%;left:50%}.ws-group:hover .ws-checkbox-hover-target{opacity:1!important}.simplebar-scrollbar:not(#\\#):before{background-color:#ccc}@property --tw-translate-x{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-y{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-z{syntax:"*";inherits:false;initial-value:0}@property --tw-scale-x{syntax:"*";inherits:false;initial-value:1}@property --tw-scale-y{syntax:"*";inherits:false;initial-value:1}@property --tw-scale-z{syntax:"*";inherits:false;initial-value:1}@property --tw-rotate-x{syntax:"*";inherits:false}@property --tw-rotate-y{syntax:"*";inherits:false}@property --tw-rotate-z{syntax:"*";inherits:false}@property --tw-skew-x{syntax:"*";inherits:false}@property --tw-skew-y{syntax:"*";inherits:false}@property --tw-space-y-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-space-x-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-gradient-position{syntax:"*";inherits:false}@property --tw-gradient-from{syntax:"<color>";inherits:false;initial-value:#0000}@property --tw-gradient-via{syntax:"<color>";inherits:false;initial-value:#0000}@property --tw-gradient-to{syntax:"<color>";inherits:false;initial-value:#0000}@property --tw-gradient-stops{syntax:"*";inherits:false}@property --tw-gradient-via-stops{syntax:"*";inherits:false}@property --tw-gradient-from-position{syntax:"<length-percentage>";inherits:false;initial-value:0%}@property --tw-gradient-via-position{syntax:"<length-percentage>";inherits:false;initial-value:50%}@property --tw-gradient-to-position{syntax:"<length-percentage>";inherits:false;initial-value:100%}@property --tw-leading{syntax:"*";inherits:false}@property --tw-font-weight{syntax:"*";inherits:false}@property --tw-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-shadow-color{syntax:"*";inherits:false}@property --tw-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-inset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:"*";inherits:false}@property --tw-inset-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-ring-color{syntax:"*";inherits:false}@property --tw-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-ring-color{syntax:"*";inherits:false}@property --tw-inset-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-ring-inset{syntax:"*";inherits:false}@property --tw-ring-offset-width{syntax:"<length>";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:"*";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-outline-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-blur{syntax:"*";inherits:false}@property --tw-brightness{syntax:"*";inherits:false}@property --tw-contrast{syntax:"*";inherits:false}@property --tw-grayscale{syntax:"*";inherits:false}@property --tw-hue-rotate{syntax:"*";inherits:false}@property --tw-invert{syntax:"*";inherits:false}@property --tw-opacity{syntax:"*";inherits:false}@property --tw-saturate{syntax:"*";inherits:false}@property --tw-sepia{syntax:"*";inherits:false}@property --tw-drop-shadow{syntax:"*";inherits:false}@property --tw-drop-shadow-color{syntax:"*";inherits:false}@property --tw-drop-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-drop-shadow-size{syntax:"*";inherits:false}@property --tw-duration{syntax:"*";inherits:false}@property --tw-ease{syntax:"*";inherits:false}@keyframes bounce{0%,to{animation-timing-function:cubic-bezier(.8,0,1,1);transform:translateY(-25%)}50%{animation-timing-function:cubic-bezier(0,0,.2,1);transform:none}}[data-simplebar]{position:relative;flex-direction:column;flex-wrap:wrap;justify-content:flex-start;align-content:flex-start;align-items:flex-start}.simplebar-wrapper{overflow:hidden;width:inherit;height:inherit;max-width:inherit;max-height:inherit}.simplebar-mask{direction:inherit;position:absolute;overflow:hidden;padding:0;margin:0;left:0;top:0;bottom:0;right:0;width:auto!important;height:auto!important;z-index:0}.simplebar-offset{direction:inherit!important;box-sizing:inherit!important;resize:none!important;position:absolute;top:0;left:0;bottom:0;right:0;padding:0;margin:0;-webkit-overflow-scrolling:touch}.simplebar-content-wrapper{direction:inherit;box-sizing:border-box!important;position:relative;display:block;height:100%;width:auto;max-width:100%;max-height:100%;overflow:auto;scrollbar-width:none;-ms-overflow-style:none}.simplebar-content-wrapper::-webkit-scrollbar,.simplebar-hide-scrollbar::-webkit-scrollbar{display:none;width:0;height:0}.simplebar-content:after,.simplebar-content:before{content:" ";display:table}.simplebar-placeholder{max-height:100%;max-width:100%;width:100%;pointer-events:none}.simplebar-height-auto-observer-wrapper{box-sizing:inherit!important;height:100%;width:100%;max-width:1px;position:relative;float:left;max-height:1px;overflow:hidden;z-index:-1;padding:0;margin:0;pointer-events:none;flex-grow:inherit;flex-shrink:0;flex-basis:0}.simplebar-height-auto-observer{box-sizing:inherit;display:block;opacity:0;position:absolute;top:0;left:0;height:1000%;width:1000%;min-height:1px;min-width:1px;overflow:hidden;pointer-events:none;z-index:-1}.simplebar-track{z-index:1;position:absolute;right:0;bottom:0;pointer-events:none;overflow:hidden}[data-simplebar].simplebar-dragging,[data-simplebar].simplebar-dragging .simplebar-content{pointer-events:none;-webkit-touch-callout:none;-webkit-user-select:none;-khtml-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}[data-simplebar].simplebar-dragging .simplebar-track{pointer-events:all}.simplebar-scrollbar{position:absolute;left:0;right:0;min-height:10px}.simplebar-scrollbar:before{position:absolute;content:"";background:#000;border-radius:7px;left:2px;right:2px;opacity:0;transition:opacity .2s .5s linear}.simplebar-scrollbar.simplebar-visible:before{opacity:.5;transition-delay:0s;transition-duration:0s}.simplebar-track.simplebar-vertical{top:0;width:11px}.simplebar-scrollbar:before{top:2px;bottom:2px;left:2px;right:2px}.simplebar-track.simplebar-horizontal{left:0;height:11px}.simplebar-track.simplebar-horizontal .simplebar-scrollbar{right:auto;left:0;top:0;bottom:0;min-height:0;min-width:10px;width:auto}[data-simplebar-direction=rtl] .simplebar-track.simplebar-vertical{right:auto;left:0}.simplebar-dummy-scrollbar-size{direction:rtl;position:fixed;opacity:0;visibility:hidden;height:500px;width:500px;overflow-y:hidden;overflow-x:scroll;-ms-overflow-style:scrollbar!important}.simplebar-dummy-scrollbar-size>div{width:200%;height:200%;margin:10px 0}.simplebar-hide-scrollbar{position:fixed;left:0;visibility:hidden;overflow-y:scroll;scrollbar-width:none;-ms-overflow-style:none}
5
- `,document.head.prepend(e)}catch(e){console.error("vite-plugin-inject-css: failed to inject css",e)}})();const Lo=e=>b.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",...e,children:b.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 22c5.523 0 10-4.477 10-10S17.523 2 12 2 2 6.477 2 12s4.477 10 10 10Zm5.645-14.836a.5.5 0 0 0-.707-.034l-7.703 6.997-1.67-1.684a.5.5 0 0 0-.707-.003l-.71.704a.5.5 0 0 0-.003.707l2.386 2.408.266.292a.5.5 0 0 0 .42.162.498.498 0 0 0 .325-.144l.225-.223 8.516-7.736a.5.5 0 0 0 .034-.706l-.672-.74Z",fill:"currentColor"})}),sv=e=>b.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",...e,children:b.jsx("path",{d:"M21.66 6.28a.5.5 0 0 0 0-.697l-.967-.993a.5.5 0 0 0-.716 0L8.499 16.373 4.023 11.78a.5.5 0 0 0-.716 0l-.967.993a.5.5 0 0 0 0 .697l5.889 6.046.014-.014a.377.377 0 0 0 .54 0L21.66 6.28Z",fill:"currentColor"})}),ov=e=>b.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",...e,children:b.jsx("path",{d:"M10.84 2.714c0-.394.346-.714.773-.714h.774c.427 0 .773.32.773.714V9.5h5.025c.427 0 .773.32.773.714v3.572H5.042v-3.572c0-.394.346-.714.773-.714h5.025V2.714ZM5.042 14.5h13.916l1.034 6.685c.067.43-.295.815-.765.815h-2.1l-.681-5.929L15.764 22h-3.236l-.721-2.143L11.086 22h-2.85l-.682-3.929L6.872 22H4.773c-.47 0-.832-.385-.765-.815L5.042 14.5Z",fill:"currentColor"})}),ja=e=>b.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",...e,children:b.jsx("path",{d:"M4.497 5.361a.5.5 0 0 0 0 .707L10.429 12l-5.932 5.932a.5.5 0 0 0 0 .707l.864.864a.5.5 0 0 0 .707 0L12 13.571l5.932 5.932a.5.5 0 0 0 .707 0l.864-.864a.5.5 0 0 0 0-.707L13.571 12l5.932-5.932a.5.5 0 0 0 0-.707l-.864-.864a.5.5 0 0 0-.707 0L12 10.429 6.068 4.497a.5.5 0 0 0-.707 0l-.864.864Z",fill:"currentColor"})}),za=e=>b.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",...e,children:b.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M19.071 19.071c3.905-3.905 3.905-10.237 0-14.142-3.905-3.905-10.237-3.905-14.142 0-3.905 3.905-3.905 10.237 0 14.142 3.905 3.905 10.237 3.905 14.142 0Zm-3.182-4.596a.5.5 0 0 1 0 .707l-.707.707a.5.5 0 0 1-.707 0L12 13.414 9.525 15.89a.5.5 0 0 1-.707 0l-.707-.707a.5.5 0 0 1 0-.707L10.586 12 8.11 9.525a.5.5 0 0 1 0-.707l.707-.707a.5.5 0 0 1 .707 0L12 10.586l2.475-2.475a.5.5 0 0 1 .707 0l.707.707a.5.5 0 0 1 0 .707L13.414 12l2.475 2.475Z",fill:"currentColor"})}),jh=e=>b.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",...e,children:b.jsx("path",{d:"M11.701 18.797c.206.195.52.195.726 0l2.487-2.349-.008-.007 6.973-6.585a.58.58 0 0 0 0-.835l-2.045-1.932a.524.524 0 0 0-.726 0l-7.052 6.66-7.051-6.66a.524.524 0 0 0-.726 0L2.234 9.021a.58.58 0 0 0 0 .835l9.467 8.941Z",fill:"currentColor"})}),Va=e=>b.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",...e,children:[b.jsx("path",{d:"M11.559 15.76a.527.527 0 0 0 .883 0l4.477-6.975A.512.512 0 0 0 16.477 8H14V2.5a.5.5 0 0 0-.5-.5h-3a.5.5 0 0 0-.5.5V8H7.523c-.411 0-.66.444-.442.785l4.478 6.976Z",fill:"currentColor"}),b.jsx("path",{d:"M2.5 14a.5.5 0 0 0-.5.5V20a1 1 0 0 0 1 1h18a1 1 0 0 0 1-1v-5.5a.5.5 0 0 0-.5-.5h-1a.5.5 0 0 0-.5.5V19H4v-4.5a.5.5 0 0 0-.5-.5h-1Z",fill:"currentColor"})]}),Do=e=>b.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",...e,children:b.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11 21c5.523 0 10-4.477 10-10S16.523 1 11 1 1 5.477 1 11s4.477 10 10 10Zm0-14a1 1 0 1 0 0-2 1 1 0 0 0 0 2Zm1 1.5a.5.5 0 0 0-.5-.5h-2a.5.5 0 0 0-.5.5v1a.5.5 0 0 0 .5.5h.5v4h-.5a.5.5 0 0 0-.5.5v1a.5.5 0 0 0 .5.5h3a.5.5 0 0 0 .5-.5v-1a.5.5 0 0 0-.5-.5H12V8.5Z",fill:"currentColor"})}),zh=e=>b.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",...e,children:b.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7.02 4.5a.5.5 0 0 1 .499-.5h.999a.5.5 0 0 1 .499.5V5h5.493a.5.5 0 0 1 .5.5V6a.5.5 0 0 1-.5.5h-1.738c-.023 1.62-.52 3.81-1.938 5.766a9.83 9.83 0 0 1-.701.86c.905.807 2.069 1.546 3.557 2.157a.53.53 0 0 1 .082.042L16.152 9h1.725L22 20h-1.577l-.92-2.46H14.51L13.59 20h-1.577l1.236-3.286a.486.486 0 0 1-.084-.026c-1.715-.698-3.07-1.566-4.128-2.532-1.54 1.243-3.64 2.19-6.443 2.536a.49.49 0 0 1-.544-.443l-.048-.498a.513.513 0 0 1 .45-.553c2.452-.309 4.245-1.112 5.546-2.132a9.933 9.933 0 0 1-1.91-3.624.477.477 0 0 1 .47-.603h.596c.217 0 .405.142.459.353.054.213.115.453.148.538a8.427 8.427 0 0 0 1.333 2.31c.192-.215.367-.434.528-.656A8.793 8.793 0 0 0 11.275 6.5h-8.75a.5.5 0 0 1-.5-.5v-.5a.5.5 0 0 1 .5-.5H7.02v-.5Zm9.986 6.278 2.07 5.587h-4.14l2.07-5.587Z",fill:"currentColor"})}),Vh=e=>b.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",...e,children:[b.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3.7 6.7v13.6h13.6v-8.925c0-.235.19-.425.425-.425h.85c.235 0 .425.19.425.425v9.775c0 .47-.38.85-.85.85H2.85a.85.85 0 0 1-.85-.85V5.85c0-.47.38-.85.85-.85h9.775c.235 0 .425.19.425.425v.85c0 .235-.19.425-.425.425H3.7Z",fill:"currentColor"}),b.jsx("path",{d:"M21.435 2.01a.468.468 0 0 1 .554.555L20.42 9.757a.454.454 0 0 1-.77.215l-1.555-1.555-3.453 3.453a.444.444 0 0 1-.628 0L12.13 9.986a.444.444 0 0 1 0-.628l3.453-3.453-1.555-1.555a.454.454 0 0 1 .215-.77l7.192-1.57Z",fill:"currentColor"})]}),Bh=e=>b.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",...e,children:b.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"m19 10 1.965-1.964a3.536 3.536 0 0 0-5-5L14 5l5 5Zm-1 1-5-5L2.146 16.854a.5.5 0 0 0-.146.353V21.5a.5.5 0 0 0 .5.5h4.293a.5.5 0 0 0 .353-.146L18 11Z",fill:"currentColor"})}),Fo=e=>b.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",...e,children:b.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 22c5.523 0 10-4.477 10-10S17.523 2 12 2 2 6.477 2 12s4.477 10 10 10Zm1-5.5a.5.5 0 0 1-.5.5h-1a.5.5 0 0 1-.5-.5V13H7.5a.5.5 0 0 1-.5-.5v-1a.5.5 0 0 1 .5-.5H11V7.5a.5.5 0 0 1 .5-.5h1a.5.5 0 0 1 .5.5V11h3.5a.5.5 0 0 1 .5.5v1a.5.5 0 0 1-.5.5H13v3.5Z",fill:"currentColor"})}),lv=e=>b.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",...e,children:b.jsx("path",{d:"M20.673 5.133c.136.24.053.55-.185.69l-16.25 9.623a.487.487 0 0 1-.676-.18l-.497-.884a.513.513 0 0 1 .185-.69L19.5 4.069c.238-.141.54-.06.676.18l.497.884ZM20.938 9.657c.136.24.053.55-.185.69L7.925 17.944a.487.487 0 0 1-.676-.181l-.497-.884a.513.513 0 0 1 .185-.69l12.829-7.597c.237-.14.54-.06.675.181l.497.884ZM20.16 15.376c.237-.14.32-.45.184-.69l-.497-.884a.487.487 0 0 0-.676-.18l-7.695 4.556a.513.513 0 0 0-.185.69l.498.884c.135.24.437.322.675.181l7.695-4.557Z",fill:"currentColor"})}),Hh=e=>b.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",...e,children:b.jsx("path",{d:"M9 3a1 1 0 0 1 1-1h4a1 1 0 0 1 1 1v1h6.5a.5.5 0 0 1 .5.5v1a.5.5 0 0 1-.5.5h-19a.5.5 0 0 1-.5-.5v-1a.5.5 0 0 1 .5-.5H9V3ZM4 7h16l-.934 14.071a1 1 0 0 1-.997.929H5.93a1 1 0 0 1-.997-.929L4 7Z",fill:"currentColor"})}),uv=e=>b.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",...e,children:[b.jsx("path",{d:"M2.5 14a.5.5 0 0 0-.5.5V20a1 1 0 0 0 1 1h18a1 1 0 0 0 1-1v-5.5a.5.5 0 0 0-.5-.5h-1a.5.5 0 0 0-.5.5V19H4v-4.5a.5.5 0 0 0-.5-.5h-1Z",fill:"currentColor"}),b.jsx("path",{d:"M12.441 3.24a.527.527 0 0 0-.883 0l-4.477 6.975c-.219.341.031.785.442.785H10v5.5a.5.5 0 0 0 .5.5h3a.5.5 0 0 0 .5-.5V11h2.477c.411 0 .66-.444.442-.785L12.44 3.24Z",fill:"currentColor"})]}),cv=(e,t)=>{const i=new Array(e.length+t.length);for(let n=0;n<e.length;n++)i[n]=e[n];for(let n=0;n<t.length;n++)i[e.length+n]=t[n];return i},hv=(e,t)=>({classGroupId:e,validator:t}),Kh=(e=new Map,t=null,i)=>({nextPart:e,validators:t,classGroupId:i}),va="-",mu=[],dv="arbitrary..",pv=e=>{const t=gv(e),{conflictingClassGroups:i,conflictingClassGroupModifiers:n}=e;return{getClassGroupId:r=>{if(r.startsWith("[")&&r.endsWith("]"))return fv(r);const a=r.split(va),s=a[0]===""&&a.length>1?1:0;return Wh(a,s,t)},getConflictingClassGroupIds:(r,a)=>{if(a){const s=n[r],l=i[r];return s?l?cv(l,s):s:l||mu}return i[r]||mu}}},Wh=(e,t,i)=>{if(e.length-t===0)return i.classGroupId;const n=e[t],r=i.nextPart.get(n);if(r){const u=Wh(e,t+1,r);if(u)return u}const a=i.validators;if(a===null)return;const s=t===0?e.join(va):e.slice(t).join(va),l=a.length;for(let u=0;u<l;u++){const c=a[u];if(c.validator(s))return c.classGroupId}},fv=e=>e.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const t=e.slice(1,-1),i=t.indexOf(":"),n=t.slice(0,i);return n?dv+n:void 0})(),gv=e=>{const{theme:t,classGroups:i}=e;return mv(i,t)},mv=(e,t)=>{const i=Kh();for(const n in e){const r=e[n];jo(r,i,n,t)}return i},jo=(e,t,i,n)=>{const r=e.length;for(let a=0;a<r;a++){const s=e[a];vv(s,t,i,n)}},vv=(e,t,i,n)=>{if(typeof e=="string"){xv(e,t,i);return}if(typeof e=="function"){bv(e,t,i,n);return}yv(e,t,i,n)},xv=(e,t,i)=>{const n=e===""?t:Uh(t,e);n.classGroupId=i},bv=(e,t,i,n)=>{if(wv(e)){jo(e(n),t,i,n);return}t.validators===null&&(t.validators=[]),t.validators.push(hv(i,e))},yv=(e,t,i,n)=>{const r=Object.entries(e),a=r.length;for(let s=0;s<a;s++){const[l,u]=r[s];jo(u,Uh(t,l),i,n)}},Uh=(e,t)=>{let i=e;const n=t.split(va),r=n.length;for(let a=0;a<r;a++){const s=n[a];let l=i.nextPart.get(s);l||(l=Kh(),i.nextPart.set(s,l)),i=l}return i},wv=e=>"isThemeGetter"in e&&e.isThemeGetter===!0,kv=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,i=Object.create(null),n=Object.create(null);const r=(a,s)=>{i[a]=s,t++,t>e&&(t=0,n=i,i=Object.create(null))};return{get(a){let s=i[a];if(s!==void 0)return s;if((s=n[a])!==void 0)return r(a,s),s},set(a,s){a in i?i[a]=s:r(a,s)}}},ro="!",vu=":",Sv=[],xu=(e,t,i,n,r)=>({modifiers:e,hasImportantModifier:t,baseClassName:i,maybePostfixModifierPosition:n,isExternal:r}),Ev=e=>{const{prefix:t,experimentalParseClassName:i}=e;let n=r=>{const a=[];let s=0,l=0,u=0,c;const h=r.length;for(let v=0;v<h;v++){const k=r[v];if(s===0&&l===0){if(k===vu){a.push(r.slice(u,v)),u=v+1;continue}if(k==="/"){c=v;continue}}k==="["?s++:k==="]"?s--:k==="("?l++:k===")"&&l--}const p=a.length===0?r:r.slice(u);let g=p,m=!1;p.endsWith(ro)?(g=p.slice(0,-1),m=!0):p.startsWith(ro)&&(g=p.slice(1),m=!0);const E=c&&c>u?c-u:void 0;return xu(a,m,g,E)};if(t){const r=t+vu,a=n;n=s=>s.startsWith(r)?a(s.slice(r.length)):xu(Sv,!1,s,void 0,!0)}if(i){const r=n;n=a=>i({className:a,parseClassName:r})}return n},Cv=e=>{const t=new Map;return e.orderSensitiveModifiers.forEach((i,n)=>{t.set(i,1e6+n)}),i=>{const n=[];let r=[];for(let a=0;a<i.length;a++){const s=i[a],l=s[0]==="[",u=t.has(s);l||u?(r.length>0&&(r.sort(),n.push(...r),r=[]),n.push(s)):r.push(s)}return r.length>0&&(r.sort(),n.push(...r)),n}},Iv=e=>({cache:kv(e.cacheSize),parseClassName:Ev(e),sortModifiers:Cv(e),...pv(e)}),_v=/\s+/,Av=(e,t)=>{const{parseClassName:i,getClassGroupId:n,getConflictingClassGroupIds:r,sortModifiers:a}=t,s=[],l=e.trim().split(_v);let u="";for(let c=l.length-1;c>=0;c-=1){const h=l[c],{isExternal:p,modifiers:g,hasImportantModifier:m,baseClassName:E,maybePostfixModifierPosition:v}=i(h);if(p){u=h+(u.length>0?" "+u:u);continue}let k=!!v,S=n(k?E.substring(0,v):E);if(!S){if(!k){u=h+(u.length>0?" "+u:u);continue}if(S=n(E),!S){u=h+(u.length>0?" "+u:u);continue}k=!1}const w=g.length===0?"":g.length===1?g[0]:a(g).join(":"),I=m?w+ro:w,A=I+S;if(s.indexOf(A)>-1)continue;s.push(A);const y=r(S,k);for(let f=0;f<y.length;++f){const O=y[f];s.push(I+O)}u=h+(u.length>0?" "+u:u)}return u},Nv=(...e)=>{let t=0,i,n,r="";for(;t<e.length;)(i=e[t++])&&(n=qh(i))&&(r&&(r+=" "),r+=n);return r},qh=e=>{if(typeof e=="string")return e;let t,i="";for(let n=0;n<e.length;n++)e[n]&&(t=qh(e[n]))&&(i&&(i+=" "),i+=t);return i},bu=(e,...t)=>{let i,n,r,a;const s=u=>{const c=t.reduce((h,p)=>p(h),e());return i=Iv(c),n=i.cache.get,r=i.cache.set,a=l,l(u)},l=u=>{const c=n(u);if(c)return c;const h=Av(u,i);return r(u,h),h};return a=s,(...u)=>a(Nv(...u))},Tv=[],gt=e=>{const t=i=>i[e]||Tv;return t.isThemeGetter=!0,t},Gh=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,$h=/^\((?:(\w[\w-]*):)?(.+)\)$/i,Ov=/^\d+\/\d+$/,Pv=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Rv=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,Mv=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,Lv=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Dv=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,bn=e=>Ov.test(e),Ke=e=>!!e&&!Number.isNaN(Number(e)),Mi=e=>!!e&&Number.isInteger(Number(e)),hs=e=>e.endsWith("%")&&Ke(e.slice(0,-1)),Ci=e=>Pv.test(e),Fv=()=>!0,jv=e=>Rv.test(e)&&!Mv.test(e),Jh=()=>!1,zv=e=>Lv.test(e),Vv=e=>Dv.test(e),Bv=e=>!_e(e)&&!Ae(e),Hv=e=>jn(e,Zh,Jh),_e=e=>Gh.test(e),en=e=>jn(e,Xh,jv),ds=e=>jn(e,Gv,Ke),yu=e=>jn(e,Yh,Jh),Kv=e=>jn(e,Qh,Vv),Mr=e=>jn(e,ed,zv),Ae=e=>$h.test(e),Yn=e=>zn(e,Xh),Wv=e=>zn(e,$v),wu=e=>zn(e,Yh),Uv=e=>zn(e,Zh),qv=e=>zn(e,Qh),Lr=e=>zn(e,ed,!0),jn=(e,t,i)=>{const n=Gh.exec(e);return n?n[1]?t(n[1]):i(n[2]):!1},zn=(e,t,i=!1)=>{const n=$h.exec(e);return n?n[1]?t(n[1]):i:!1},Yh=e=>e==="position"||e==="percentage",Qh=e=>e==="image"||e==="url",Zh=e=>e==="length"||e==="size"||e==="bg-size",Xh=e=>e==="length",Gv=e=>e==="number",$v=e=>e==="family-name",ed=e=>e==="shadow",ku=()=>{const e=gt("color"),t=gt("font"),i=gt("text"),n=gt("font-weight"),r=gt("tracking"),a=gt("leading"),s=gt("breakpoint"),l=gt("container"),u=gt("spacing"),c=gt("radius"),h=gt("shadow"),p=gt("inset-shadow"),g=gt("text-shadow"),m=gt("drop-shadow"),E=gt("blur"),v=gt("perspective"),k=gt("aspect"),S=gt("ease"),w=gt("animate"),I=()=>["auto","avoid","all","avoid-page","page","left","right","column"],A=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],y=()=>[...A(),Ae,_e],f=()=>["auto","hidden","clip","visible","scroll"],O=()=>["auto","contain","none"],P=()=>[Ae,_e,u],F=()=>[bn,"full","auto",...P()],D=()=>[Mi,"none","subgrid",Ae,_e],V=()=>["auto",{span:["full",Mi,Ae,_e]},Mi,Ae,_e],J=()=>[Mi,"auto",Ae,_e],ue=()=>["auto","min","max","fr",Ae,_e],Q=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],se=()=>["start","end","center","stretch","center-safe","end-safe"],j=()=>["auto",...P()],U=()=>[bn,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...P()],Y=()=>[e,Ae,_e],de=()=>[...A(),wu,yu,{position:[Ae,_e]}],C=()=>["no-repeat",{repeat:["","x","y","space","round"]}],$=()=>["auto","cover","contain",Uv,Hv,{size:[Ae,_e]}],ee=()=>[hs,Yn,en],T=()=>["","none","full",c,Ae,_e],B=()=>["",Ke,Yn,en],W=()=>["solid","dashed","dotted","double"],z=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],K=()=>[Ke,hs,wu,yu],ne=()=>["","none",E,Ae,_e],ae=()=>["none",Ke,Ae,_e],le=()=>["none",Ke,Ae,_e],oe=()=>[Ke,Ae,_e],H=()=>[bn,"full",...P()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[Ci],breakpoint:[Ci],color:[Fv],container:[Ci],"drop-shadow":[Ci],ease:["in","out","in-out"],font:[Bv],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[Ci],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[Ci],shadow:[Ci],spacing:["px",Ke],text:[Ci],"text-shadow":[Ci],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",bn,_e,Ae,k]}],container:["container"],columns:[{columns:[Ke,_e,Ae,l]}],"break-after":[{"break-after":I()}],"break-before":[{"break-before":I()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:y()}],overflow:[{overflow:f()}],"overflow-x":[{"overflow-x":f()}],"overflow-y":[{"overflow-y":f()}],overscroll:[{overscroll:O()}],"overscroll-x":[{"overscroll-x":O()}],"overscroll-y":[{"overscroll-y":O()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:F()}],"inset-x":[{"inset-x":F()}],"inset-y":[{"inset-y":F()}],start:[{start:F()}],end:[{end:F()}],top:[{top:F()}],right:[{right:F()}],bottom:[{bottom:F()}],left:[{left:F()}],visibility:["visible","invisible","collapse"],z:[{z:[Mi,"auto",Ae,_e]}],basis:[{basis:[bn,"full","auto",l,...P()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[Ke,bn,"auto","initial","none",_e]}],grow:[{grow:["",Ke,Ae,_e]}],shrink:[{shrink:["",Ke,Ae,_e]}],order:[{order:[Mi,"first","last","none",Ae,_e]}],"grid-cols":[{"grid-cols":D()}],"col-start-end":[{col:V()}],"col-start":[{"col-start":J()}],"col-end":[{"col-end":J()}],"grid-rows":[{"grid-rows":D()}],"row-start-end":[{row:V()}],"row-start":[{"row-start":J()}],"row-end":[{"row-end":J()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":ue()}],"auto-rows":[{"auto-rows":ue()}],gap:[{gap:P()}],"gap-x":[{"gap-x":P()}],"gap-y":[{"gap-y":P()}],"justify-content":[{justify:[...Q(),"normal"]}],"justify-items":[{"justify-items":[...se(),"normal"]}],"justify-self":[{"justify-self":["auto",...se()]}],"align-content":[{content:["normal",...Q()]}],"align-items":[{items:[...se(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...se(),{baseline:["","last"]}]}],"place-content":[{"place-content":Q()}],"place-items":[{"place-items":[...se(),"baseline"]}],"place-self":[{"place-self":["auto",...se()]}],p:[{p:P()}],px:[{px:P()}],py:[{py:P()}],ps:[{ps:P()}],pe:[{pe:P()}],pt:[{pt:P()}],pr:[{pr:P()}],pb:[{pb:P()}],pl:[{pl:P()}],m:[{m:j()}],mx:[{mx:j()}],my:[{my:j()}],ms:[{ms:j()}],me:[{me:j()}],mt:[{mt:j()}],mr:[{mr:j()}],mb:[{mb:j()}],ml:[{ml:j()}],"space-x":[{"space-x":P()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":P()}],"space-y-reverse":["space-y-reverse"],size:[{size:U()}],w:[{w:[l,"screen",...U()]}],"min-w":[{"min-w":[l,"screen","none",...U()]}],"max-w":[{"max-w":[l,"screen","none","prose",{screen:[s]},...U()]}],h:[{h:["screen","lh",...U()]}],"min-h":[{"min-h":["screen","lh","none",...U()]}],"max-h":[{"max-h":["screen","lh",...U()]}],"font-size":[{text:["base",i,Yn,en]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[n,Ae,ds]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",hs,_e]}],"font-family":[{font:[Wv,_e,t]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[r,Ae,_e]}],"line-clamp":[{"line-clamp":[Ke,"none",Ae,ds]}],leading:[{leading:[a,...P()]}],"list-image":[{"list-image":["none",Ae,_e]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",Ae,_e]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:Y()}],"text-color":[{text:Y()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...W(),"wavy"]}],"text-decoration-thickness":[{decoration:[Ke,"from-font","auto",Ae,en]}],"text-decoration-color":[{decoration:Y()}],"underline-offset":[{"underline-offset":[Ke,"auto",Ae,_e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:P()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",Ae,_e]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",Ae,_e]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:de()}],"bg-repeat":[{bg:C()}],"bg-size":[{bg:$()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},Mi,Ae,_e],radial:["",Ae,_e],conic:[Mi,Ae,_e]},qv,Kv]}],"bg-color":[{bg:Y()}],"gradient-from-pos":[{from:ee()}],"gradient-via-pos":[{via:ee()}],"gradient-to-pos":[{to:ee()}],"gradient-from":[{from:Y()}],"gradient-via":[{via:Y()}],"gradient-to":[{to:Y()}],rounded:[{rounded:T()}],"rounded-s":[{"rounded-s":T()}],"rounded-e":[{"rounded-e":T()}],"rounded-t":[{"rounded-t":T()}],"rounded-r":[{"rounded-r":T()}],"rounded-b":[{"rounded-b":T()}],"rounded-l":[{"rounded-l":T()}],"rounded-ss":[{"rounded-ss":T()}],"rounded-se":[{"rounded-se":T()}],"rounded-ee":[{"rounded-ee":T()}],"rounded-es":[{"rounded-es":T()}],"rounded-tl":[{"rounded-tl":T()}],"rounded-tr":[{"rounded-tr":T()}],"rounded-br":[{"rounded-br":T()}],"rounded-bl":[{"rounded-bl":T()}],"border-w":[{border:B()}],"border-w-x":[{"border-x":B()}],"border-w-y":[{"border-y":B()}],"border-w-s":[{"border-s":B()}],"border-w-e":[{"border-e":B()}],"border-w-t":[{"border-t":B()}],"border-w-r":[{"border-r":B()}],"border-w-b":[{"border-b":B()}],"border-w-l":[{"border-l":B()}],"divide-x":[{"divide-x":B()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":B()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...W(),"hidden","none"]}],"divide-style":[{divide:[...W(),"hidden","none"]}],"border-color":[{border:Y()}],"border-color-x":[{"border-x":Y()}],"border-color-y":[{"border-y":Y()}],"border-color-s":[{"border-s":Y()}],"border-color-e":[{"border-e":Y()}],"border-color-t":[{"border-t":Y()}],"border-color-r":[{"border-r":Y()}],"border-color-b":[{"border-b":Y()}],"border-color-l":[{"border-l":Y()}],"divide-color":[{divide:Y()}],"outline-style":[{outline:[...W(),"none","hidden"]}],"outline-offset":[{"outline-offset":[Ke,Ae,_e]}],"outline-w":[{outline:["",Ke,Yn,en]}],"outline-color":[{outline:Y()}],shadow:[{shadow:["","none",h,Lr,Mr]}],"shadow-color":[{shadow:Y()}],"inset-shadow":[{"inset-shadow":["none",p,Lr,Mr]}],"inset-shadow-color":[{"inset-shadow":Y()}],"ring-w":[{ring:B()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:Y()}],"ring-offset-w":[{"ring-offset":[Ke,en]}],"ring-offset-color":[{"ring-offset":Y()}],"inset-ring-w":[{"inset-ring":B()}],"inset-ring-color":[{"inset-ring":Y()}],"text-shadow":[{"text-shadow":["none",g,Lr,Mr]}],"text-shadow-color":[{"text-shadow":Y()}],opacity:[{opacity:[Ke,Ae,_e]}],"mix-blend":[{"mix-blend":[...z(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":z()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[Ke]}],"mask-image-linear-from-pos":[{"mask-linear-from":K()}],"mask-image-linear-to-pos":[{"mask-linear-to":K()}],"mask-image-linear-from-color":[{"mask-linear-from":Y()}],"mask-image-linear-to-color":[{"mask-linear-to":Y()}],"mask-image-t-from-pos":[{"mask-t-from":K()}],"mask-image-t-to-pos":[{"mask-t-to":K()}],"mask-image-t-from-color":[{"mask-t-from":Y()}],"mask-image-t-to-color":[{"mask-t-to":Y()}],"mask-image-r-from-pos":[{"mask-r-from":K()}],"mask-image-r-to-pos":[{"mask-r-to":K()}],"mask-image-r-from-color":[{"mask-r-from":Y()}],"mask-image-r-to-color":[{"mask-r-to":Y()}],"mask-image-b-from-pos":[{"mask-b-from":K()}],"mask-image-b-to-pos":[{"mask-b-to":K()}],"mask-image-b-from-color":[{"mask-b-from":Y()}],"mask-image-b-to-color":[{"mask-b-to":Y()}],"mask-image-l-from-pos":[{"mask-l-from":K()}],"mask-image-l-to-pos":[{"mask-l-to":K()}],"mask-image-l-from-color":[{"mask-l-from":Y()}],"mask-image-l-to-color":[{"mask-l-to":Y()}],"mask-image-x-from-pos":[{"mask-x-from":K()}],"mask-image-x-to-pos":[{"mask-x-to":K()}],"mask-image-x-from-color":[{"mask-x-from":Y()}],"mask-image-x-to-color":[{"mask-x-to":Y()}],"mask-image-y-from-pos":[{"mask-y-from":K()}],"mask-image-y-to-pos":[{"mask-y-to":K()}],"mask-image-y-from-color":[{"mask-y-from":Y()}],"mask-image-y-to-color":[{"mask-y-to":Y()}],"mask-image-radial":[{"mask-radial":[Ae,_e]}],"mask-image-radial-from-pos":[{"mask-radial-from":K()}],"mask-image-radial-to-pos":[{"mask-radial-to":K()}],"mask-image-radial-from-color":[{"mask-radial-from":Y()}],"mask-image-radial-to-color":[{"mask-radial-to":Y()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":A()}],"mask-image-conic-pos":[{"mask-conic":[Ke]}],"mask-image-conic-from-pos":[{"mask-conic-from":K()}],"mask-image-conic-to-pos":[{"mask-conic-to":K()}],"mask-image-conic-from-color":[{"mask-conic-from":Y()}],"mask-image-conic-to-color":[{"mask-conic-to":Y()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:de()}],"mask-repeat":[{mask:C()}],"mask-size":[{mask:$()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",Ae,_e]}],filter:[{filter:["","none",Ae,_e]}],blur:[{blur:ne()}],brightness:[{brightness:[Ke,Ae,_e]}],contrast:[{contrast:[Ke,Ae,_e]}],"drop-shadow":[{"drop-shadow":["","none",m,Lr,Mr]}],"drop-shadow-color":[{"drop-shadow":Y()}],grayscale:[{grayscale:["",Ke,Ae,_e]}],"hue-rotate":[{"hue-rotate":[Ke,Ae,_e]}],invert:[{invert:["",Ke,Ae,_e]}],saturate:[{saturate:[Ke,Ae,_e]}],sepia:[{sepia:["",Ke,Ae,_e]}],"backdrop-filter":[{"backdrop-filter":["","none",Ae,_e]}],"backdrop-blur":[{"backdrop-blur":ne()}],"backdrop-brightness":[{"backdrop-brightness":[Ke,Ae,_e]}],"backdrop-contrast":[{"backdrop-contrast":[Ke,Ae,_e]}],"backdrop-grayscale":[{"backdrop-grayscale":["",Ke,Ae,_e]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[Ke,Ae,_e]}],"backdrop-invert":[{"backdrop-invert":["",Ke,Ae,_e]}],"backdrop-opacity":[{"backdrop-opacity":[Ke,Ae,_e]}],"backdrop-saturate":[{"backdrop-saturate":[Ke,Ae,_e]}],"backdrop-sepia":[{"backdrop-sepia":["",Ke,Ae,_e]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":P()}],"border-spacing-x":[{"border-spacing-x":P()}],"border-spacing-y":[{"border-spacing-y":P()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",Ae,_e]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[Ke,"initial",Ae,_e]}],ease:[{ease:["linear","initial",S,Ae,_e]}],delay:[{delay:[Ke,Ae,_e]}],animate:[{animate:["none",w,Ae,_e]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[v,Ae,_e]}],"perspective-origin":[{"perspective-origin":y()}],rotate:[{rotate:ae()}],"rotate-x":[{"rotate-x":ae()}],"rotate-y":[{"rotate-y":ae()}],"rotate-z":[{"rotate-z":ae()}],scale:[{scale:le()}],"scale-x":[{"scale-x":le()}],"scale-y":[{"scale-y":le()}],"scale-z":[{"scale-z":le()}],"scale-3d":["scale-3d"],skew:[{skew:oe()}],"skew-x":[{"skew-x":oe()}],"skew-y":[{"skew-y":oe()}],transform:[{transform:[Ae,_e,"","none","gpu","cpu"]}],"transform-origin":[{origin:y()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:H()}],"translate-x":[{"translate-x":H()}],"translate-y":[{"translate-y":H()}],"translate-z":[{"translate-z":H()}],"translate-none":["translate-none"],accent:[{accent:Y()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:Y()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",Ae,_e]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":P()}],"scroll-mx":[{"scroll-mx":P()}],"scroll-my":[{"scroll-my":P()}],"scroll-ms":[{"scroll-ms":P()}],"scroll-me":[{"scroll-me":P()}],"scroll-mt":[{"scroll-mt":P()}],"scroll-mr":[{"scroll-mr":P()}],"scroll-mb":[{"scroll-mb":P()}],"scroll-ml":[{"scroll-ml":P()}],"scroll-p":[{"scroll-p":P()}],"scroll-px":[{"scroll-px":P()}],"scroll-py":[{"scroll-py":P()}],"scroll-ps":[{"scroll-ps":P()}],"scroll-pe":[{"scroll-pe":P()}],"scroll-pt":[{"scroll-pt":P()}],"scroll-pr":[{"scroll-pr":P()}],"scroll-pb":[{"scroll-pb":P()}],"scroll-pl":[{"scroll-pl":P()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",Ae,_e]}],fill:[{fill:["none",...Y()]}],"stroke-w":[{stroke:[Ke,Yn,en,ds]}],stroke:[{stroke:["none",...Y()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},Jv=(e,{cacheSize:t,prefix:i,experimentalParseClassName:n,extend:r={},override:a={}})=>(tr(e,"cacheSize",t),tr(e,"prefix",i),tr(e,"experimentalParseClassName",n),Dr(e.theme,a.theme),Dr(e.classGroups,a.classGroups),Dr(e.conflictingClassGroups,a.conflictingClassGroups),Dr(e.conflictingClassGroupModifiers,a.conflictingClassGroupModifiers),tr(e,"orderSensitiveModifiers",a.orderSensitiveModifiers),Fr(e.theme,r.theme),Fr(e.classGroups,r.classGroups),Fr(e.conflictingClassGroups,r.conflictingClassGroups),Fr(e.conflictingClassGroupModifiers,r.conflictingClassGroupModifiers),td(e,r,"orderSensitiveModifiers"),e),tr=(e,t,i)=>{i!==void 0&&(e[t]=i)},Dr=(e,t)=>{if(t)for(const i in t)tr(e,i,t[i])},Fr=(e,t)=>{if(t)for(const i in t)td(e,t,i)},td=(e,t,i)=>{const n=t[i];n!==void 0&&(e[i]=e[i]?e[i].concat(n):n)},Yv=(e,...t)=>typeof e=="function"?bu(ku,e,...t):bu(()=>Jv(ku(),e),...t);function id(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Su={exports:{}};/*!
6
- Copyright (c) 2018 Jed Watson.
7
- Licensed under the MIT License (MIT), see
8
- http://jedwatson.github.io/classnames
9
- */var Eu;function Qv(){return Eu||(Eu=1,(function(e){(function(){var t={}.hasOwnProperty;function i(){for(var a="",s=0;s<arguments.length;s++){var l=arguments[s];l&&(a=r(a,n(l)))}return a}function n(a){if(typeof a=="string"||typeof a=="number")return a;if(typeof a!="object")return"";if(Array.isArray(a))return i.apply(null,a);if(a.toString!==Object.prototype.toString&&!a.toString.toString().includes("[native code]"))return a.toString();var s="";for(var l in a)t.call(a,l)&&a[l]&&(s=r(s,l));return s}function r(a,s){return s?a?a+" "+s:a+s:a}e.exports?(i.default=i,e.exports=i):window.classNames=i})()})(Su)),Su.exports}var Zv=Qv();const Xv=id(Zv),ex=Yv({extend:{classGroups:{"font-size":["text-xxs","text-xs","text-s","text-sm","text-base","text-lg","text-xl","text-2xl","text-3xl","text-4xl","text-5xl","text-6xl","text-7xl","text-8xl","text-9xl"],"text-color":["text-body","text-muted","text-inactive-text","text-button-text","text-positive-text","text-negative-text","text-negative","text-warning-text","text-input-text","text-select-text","text-input-message-text","text-placeholder"]}}});function he(...e){return ex(Xv(e))}const vr={sm:{checkbox:"size-4",hoverSquare:"size-2.5",text:"text-xs",spacing:"gap-1",icon:"size-3.25"},md:{checkbox:"size-5",hoverSquare:"size-3.5",text:"text-sm",spacing:"gap-1.5",icon:"size-4"},lg:{checkbox:"size-6",hoverSquare:"size-4",text:"text-base",spacing:"gap-2",icon:"size-5"}},$t={primary:{checked:"bg-primary border-primary",unchecked:"border border-body bg-transparent",checkedHover:"hover:bg-primary-hover hover:border-primary-hover",hoverSquare:"bg-primary-hover",focus:"focus:ring-primary",label:"text-body"},positive:{checked:"bg-positive border-positive",unchecked:"border border-positive bg-transparent",checkedHover:"hover:bg-positive-hover hover:border-positive-hover",hoverSquare:"bg-positive-hover",focus:"focus:ring-positive",label:"text-positive"},warning:{checked:"bg-warning border-warning",unchecked:"border border-warning bg-transparent",checkedHover:"hover:bg-warning-hover hover:border-warning-hover",hoverSquare:"bg-warning-hover",focus:"focus:ring-warning",label:"text-warning"},negative:{checked:"bg-negative border-negative",unchecked:"border border-negative bg-transparent",checkedHover:"hover:bg-negative-hover hover:border-negative-hover",hoverSquare:"bg-negative-hover",focus:"focus:ring-negative",label:"text-negative"}},tx=`
10
- appearance-none border rounded transition-all duration-200
11
- focus:ring-2 focus:ring-offset-2 focus:outline-hidden
12
- relative
13
- `,ix=(e,t,i)=>{const{isChecked:n,isIndeterminate:r,isDisabled:a,isInvalid:s}=i,l=n||r;return he(tx,vr[e].checkbox,{"cursor-pointer":!a},s?{[$t.negative.checked]:l,[$t.negative.unchecked]:!l,[$t.negative.checkedHover]:!a&&l,[$t.negative.focus]:!a,"border-input-disable":a}:{[$t[t].checked]:l&&!a,[$t[t].unchecked]:!l&&!a,[$t[t].checkedHover]:!a&&l,[$t[t].focus]:!a,"border-input-disable":a,"bg-input-disable":a&&l})},nx=(e,t,i)=>{const{isDisabled:n,isInvalid:r}=i;return he(vr[e].text,r?{[$t.negative.label]:r}:{"text-input-disable":n,[$t[t].label]:!n,"cursor-pointer":!n})},rx=e=>he("inline-flex items-center ws-group",vr[e].spacing),ax=(e,t,i)=>he("center-absolute rounded-xs transition-all duration-200 opacity-0 ws-checkbox-hover-target",vr[e].hoverSquare,{[$t.negative.hoverSquare]:i,[$t[t].hoverSquare]:!i}),sx=e=>`${vr[e].icon}`,ox=e=>b.jsx("svg",{className:`absolute inset-0 ${e.className}`,fill:"none",viewBox:"0 0 24 24","aria-hidden":"true",focusable:"false",xmlns:"http://www.w3.org/2000/svg",...e,children:b.jsx("circle",{cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"2",fill:"none"})}),Ba=M.forwardRef(({label:e,isDisabled:t=!1,isInvalid:i=!1,isRequired:n=!1,size:r="md",color:a="primary",onChange:s,onFocus:l,onBlur:u,value:c,defaultValue:h,name:p,id:g,...m},E)=>{const[v,k]=M.useState(h),S=c===!0||v===!0,w=c===null,I=S||w,A={isChecked:S,isIndeterminate:w,isDisabled:t,isInvalid:i},y=ix(r,a,A),f=nx(r,a,A),O=rx(r),P=ax(r,a,i),F=sx(r);return b.jsxs("label",{"data-qui":"Checkbox",className:O,children:[b.jsxs("div",{className:y,children:[b.jsx("input",{ref:E,type:"checkbox",className:"sr-only",checked:S,disabled:t,required:n,onChange:D=>{c===void 0&&k(D.target.checked),s==null||s(D)},onFocus:l,onBlur:u,name:p,id:g,...m}),I&&b.jsx("div",{className:"center-absolute",children:w?b.jsx(ox,{className:F}):b.jsx(sv,{className:F})}),!I&&!t&&b.jsx("div",{className:P})]}),e&&b.jsxs("span",{className:f,children:[e,n&&b.jsx("span",{className:"text-negative ml-1",children:"*"})]})]})});Ba.displayName="Checkbox";const xr={sm:{container:"gap-2",radio:"size-3",label:"text-xs",dot:"size-2",hoverDot:"size-1.5"},md:{container:"gap-2.5",radio:"size-4",label:"text-sm",dot:"size-2.5",hoverDot:"size-2"},lg:{container:"gap-3",radio:"size-6",label:"text-base",dot:"size-4",hoverDot:"size-3"}},lr={primary:{radio:"border-body-light group-hover:border-body",radioInvalid:"border-negative",dot:"bg-primary group-hover:bg-primary-hover",hoverDot:"bg-primary-hover",label:"text-body"},positive:{radio:"border-positive group-hover:border-positive-text",radioInvalid:"border-negative",dot:"bg-positive group-hover:bg-positive-hover",hoverDot:"bg-positive-bg",label:"text-positive-text"},warning:{radio:"border-warning group-hover:border-warning-text",radioInvalid:"border-negative",dot:"bg-warning group-hover:bg-warning-hover",hoverDot:"bg-warning-bg",label:"text-warning-text"},negative:{radio:"border-negative group-hover:border-negative-text",radioInvalid:"border-negative",dot:"bg-negative group-hover:bg-negative-hover",hoverDot:"bg-negative-bg",label:"text-negative"}},lx=`
14
- relative rounded-full border transition-all duration-200 ease-in-out bg-transparent
15
- focus:outline-hidden focus:ring-2 focus:ring-offset-0
16
- cursor-pointer peer
17
- `,ux=(e,t,i)=>{const{isDisabled:n,isInvalid:r}=i;return he(lx,xr[e].radio,r?lr[t].radioInvalid:{[lr[t].radio]:!n,"cursor-not-allowed opacity-60":n})},cx=(e,t,i)=>{const{checked:n,isDisabled:r,isInvalid:a}=i;return he("center-absolute rounded-full transition-all duration-200 ease-in-out",xr[e].dot,a?"bg-negative":{[lr[t].dot]:!r,"border-neutral":r,"opacity-0 scale-0":!n,"opacity-100 scale-100":n&&!r})},hx=(e,t,i)=>he("center-absolute rounded-full transition-all duration-200 opacity-0 group-hover:opacity-100",xr[e].hoverDot,{[lr[t].hoverDot]:!i,"bg-negative-bg":i}),dx=e=>he("cursor-pointer select-none transition-colors duration-200",xr[e].label),px=(e,t,i,n)=>{const{isDisabled:r,isInvalid:a}=i;return he("inline-flex items-center group",xr[e].container,a?{"text-negative":a}:{[lr[t].label]:!r,"text-muted":r},n)},fx=()=>he("flex flex-col"),nd=M.createContext(null),gx=()=>{const e=M.useContext(nd);if(!e)throw new Error("Radio.Item must be used within Radio.Group");return e},rd=({value:e,defaultValue:t,onChange:i,name:n,size:r="md",color:a="primary",isDisabled:s=!1,isInvalid:l=!1,isRequired:u=!1,hideIndicator:c=!1,className:h,children:p,...g})=>{const[m,E]=M.useState(t),v=e!==void 0,k={value:v?e:m,onChange:S=>{v||E(S),i==null||i(S)},name:n,size:r,color:a,isDisabled:s,isInvalid:l,isRequired:u,hideIndicator:c};return b.jsx(nd.Provider,{value:k,children:b.jsx("div",{"data-qui":"RadioGroup",role:"radiogroup",className:he(fx(),h),...g,children:p})})},ad=M.forwardRef(({value:e,label:t,size:i,color:n,isDisabled:r,isInvalid:a,isRequired:s,className:l,...u},c)=>{const h=gx(),p=i??h.size,g=n??h.color,m=r??h.isDisabled,E=a??h.isInvalid,v=s??h.isRequired,k=h.value===e,S={checked:k,isDisabled:m,isInvalid:E},w=ux(p,g,S),I=cx(p,g,S),A=hx(p,g,E),y=dx(p),f=px(p,g,S,l),O=()=>{m||h.onChange(e)};return b.jsxs("label",{"data-qui":"RadioItem",className:f,children:[b.jsxs("div",{className:he("relative",{hidden:h.hideIndicator}),children:[b.jsx("input",{ref:c,type:"radio",value:e,checked:k,disabled:m,required:v,"aria-invalid":E,"aria-label":t?void 0:u["aria-label"],name:h.name,onChange:O,className:"sr-only",...u}),b.jsxs("div",{className:w,children:[b.jsx("div",{className:I}),!k&&!m&&b.jsx("div",{className:A})]})]}),t&&b.jsxs("span",{className:y,children:[t,v&&b.jsx("span",{className:"text-negative ml-1",children:"*"})]})]})});rd.displayName="RadioGroup";ad.displayName="RadioItem";const Cu={Group:rd,Item:ad},sd={sm:{container:"h-4.5 p-1 rounded",text:"text-xxs"},md:{container:"h-6 p-1 rounded",text:"text-s"},lg:{container:"h-7 p-1 rounded",text:"text-sm"},xl:{container:"h-7.5 p-1 rounded",text:"text-lg"}},mx={primary:{bg:{solid:"bg-primary",outline:"bg-transparent",ghost:"bg-transparent"},text:{solid:"text-button-text",outline:"text-primary",ghost:"text-primary"},border:{solid:"border-primary",outline:"border-primary",ghost:"border-transparent"},hover:{solid:"hover:bg-primary-hover hover:border-primary-hover",outline:"hover:border-primary-hover hover:bg-primary hover:text-body",ghost:"hover:bg-primary-hover hover:text-body"}},white:{bg:{solid:"bg-white",outline:"bg-transparent",ghost:"bg-transparent"},text:{solid:"text-primary",outline:"text-body",ghost:"text-body"},border:{solid:"border-white",outline:"border-white",ghost:"border-transparent"},hover:{solid:"hover:bg-canvas-subtle hover:border-canvas-subtle",outline:"hover:border-canvas-default hover:bg-canvas-default hover:text-primary",ghost:"hover:bg-primary-hover hover:text-body"}},positive:{bg:{solid:"bg-positive",outline:"bg-transparent",ghost:"bg-transparent"},text:{solid:"text-button-text",outline:"text-positive-text",ghost:"text-positive-text"},border:{solid:"border-positive",outline:"border-positive",ghost:"border-transparent"},hover:{solid:"hover:bg-positive-hover hover:border-positive-hover",outline:"hover:border-positive-hover hover:bg-positive-hover hover:text-body",ghost:"hover:bg-positive-hover hover:text-body"}},warning:{bg:{solid:"bg-warning",outline:"bg-transparent",ghost:"bg-transparent"},text:{solid:"text-button-text",outline:"text-warning-text",ghost:"text-warning-text"},border:{solid:"border-warning",outline:"border-warning",ghost:"border-transparent"},hover:{solid:"hover:bg-warning-hover hover:border-warning-hover",outline:"hover:border-warning-hover hover:bg-warning-hover hover:text-body",ghost:"hover:bg-warning-hover hover:text-body"}},negative:{bg:{solid:"bg-negative",outline:"bg-transparent",ghost:"bg-transparent"},text:{solid:"text-button-text",outline:"text-negative",ghost:"text-negative"},border:{solid:"border-negative",outline:"border-negative",ghost:"border-transparent"},hover:{solid:"hover:bg-negative-hover hover:border-negative-hover",outline:"hover:border-negative-hover hover:bg-negative-hover hover:text-body",ghost:"hover:bg-negative-hover hover:text-body"}}},vx=(e,t,i,n)=>{const r=sd[e],a=mx[i],s=he("inline-flex items-center justify-center font-medium transition-colors duration-200 focus:outline-hidden border",{"cursor-pointer":!n},r.container);return n?he(s,"text-inactive-text pointer-events-none",{"border-panel":t!=="ghost"&&t==="solid","border-panel-subtle":t==="outline","bg-panel":t==="solid","bg-transparent ":t==="outline"||t==="ghost","border-transparent":t==="ghost"}):he(s,a.bg[t],a.text[t],a.hover[t],a.border[t])},xx=e=>he("flex items-center justify-center gap-1",sd[e].text),lt=M.forwardRef(({size:e="md",variant:t="solid",color:i="primary",className:n,children:r,disabled:a,...s},l)=>b.jsx("button",{"data-qui":"Button",ref:l,type:"button",className:he(vx(e,t,i,a),xx(e),n),disabled:a,...s,children:r}));lt.displayName="Button";const od=M.createContext(null),br=()=>{const e=M.useContext(od);if(!e)throw new Error("Input components must be used within Input.Root");return e},Vn={sm:{group:"h-5 min-h-fit",input:"text-xxs",message:"text-xxs p-1.5",icon:"text-sm"},md:{group:"h-6 min-h-fit",input:"text-xs",message:"text-xs p-2",icon:"text-base"},lg:{group:"h-7 min-h-fit",input:"text-s",message:"text-s p-2.5",icon:"text-lg"}},an={primary:{border:"border border-input-border focus-within:border-input-focus-border",borderInvalid:"ring-input-error-border",borderMessage:"ring-input-focus-border",text:"text-input-text",placeholder:"placeholder:text-input-placeholder",messageText:"text-input-message-text",messageBackground:"bg-input-message-bg",icon:"text-input-text",action:"text-input-text",actionHover:"hover:text-body hover:bg-primary-hover"},positive:{border:"border border-input-border focus-within:border-positive",borderInvalid:"ring-input-error-border",borderMessage:"ring-positive",text:"text-input-text",placeholder:"placeholder:text-input-placeholder",messageText:"text-positive-dark",messageBackground:"bg-positive-light",icon:"text-positive-text",action:"text-input-text",actionHover:"hover:text-body hover:bg-primary-hover"},warning:{border:"border border-input-border focus-within:border-input-warning-border",borderInvalid:"ring-input-error-border",borderMessage:"ring-input-warning-border",text:"text-input-text",placeholder:"placeholder:text-input-placeholder",messageText:"text-warning-dark",messageBackground:"bg-input-warning-bg",icon:"text-warning-text",action:"text-input-text",actionHover:"hover:text-body hover:bg-primary-hover"},negative:{border:"border border-input-border focus-within:border-input-error-border",borderInvalid:"ring-input-error-border",borderMessage:"ring-input-error-border",text:"text-negative",placeholder:"placeholder:text-input-placeholder",messageText:"text-negative-dark",messageBackground:"bg-input-error-bg",icon:"text-negative",action:"text-input-text",actionHover:"hover:text-body hover:bg-primary-hover"}},bx=()=>he("flex flex-col relative"),yx=({size:e,color:t,isDisabled:i,isReadOnly:n,hasMessage:r,hasArea:a,isInvalid:s})=>{const l=an[s?"negative":t];return he("bg-input-bg flex gap-1 relative px-1 transition-all duration-200 ease-in-out only:rounded first:rounded-t last:rounded-b",l.text,r?l.borderMessage:!n&&l.border,Vn[e].group,{"ring-1":r,"opacity-60":i,"items-center":!a})},wx=({size:e,color:t})=>he("bg-transparent ring-0 w-full","focus:outline-hidden",[Vn[e].input],an[t].placeholder),Iu=({size:e,color:t})=>he("bg-transparent ring-0 w-full h-fit resize-none py-0.5","focus:outline-hidden",Vn[e].input,an[t].placeholder),kx=({size:e,color:t,isDisabled:i,isAction:n})=>{const r=an[t];return he("transition-colors duration-200 rounded max-h-full h-fit",Vn[e].icon,e==="sm"?"m-px":"m-0.5",i?"text-muted opacity-60 pointer-events-none":n?r.action:r.icon,{"cursor-pointer p-0.5":n&&!i,[r.actionHover]:n&&!i,"pointer-events-none":!n})},Sx=({size:e,color:t,isDisabled:i})=>he("absolute left-0 right-0 z-10","flex items-start gap-x-2 ring-1","first:bottom-full first:rounded-t first:ring-b-0","last:top-full last:rounded-b last:ring-t-0","only:top-full only:rounded only:ring-1",i?"text-muted":an[t].messageText,an[t].borderMessage,an[t].messageBackground,Vn[e].message,{"opacity-60":i}),Ex=({size:e})=>he(Vn[e].icon);function xa(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var Cx=typeof global=="object"&&global&&global.Object===Object&&global,Ix=typeof self=="object"&&self&&self.Object===Object&&self,ld=Cx||Ix||Function("return this")(),ps=function(){return ld.Date.now()},_x=/\s/;function Ax(e){for(var t=e.length;t--&&_x.test(e.charAt(t)););return t}var Nx=/^\s+/;function Tx(e){return e&&e.slice(0,Ax(e)+1).replace(Nx,"")}var ba=ld.Symbol,ud=Object.prototype,Ox=ud.hasOwnProperty,Px=ud.toString,Qn=ba?ba.toStringTag:void 0;function Rx(e){var t=Ox.call(e,Qn),i=e[Qn];try{e[Qn]=void 0;var n=!0}catch{}var r=Px.call(e);return n&&(t?e[Qn]=i:delete e[Qn]),r}var Mx=Object.prototype,Lx=Mx.toString;function Dx(e){return Lx.call(e)}var Fx="[object Null]",jx="[object Undefined]",_u=ba?ba.toStringTag:void 0;function zx(e){return e==null?e===void 0?jx:Fx:_u&&_u in Object(e)?Rx(e):Dx(e)}function Vx(e){return e!=null&&typeof e=="object"}var Bx="[object Symbol]";function Hx(e){return typeof e=="symbol"||Vx(e)&&zx(e)==Bx}var Au=NaN,Kx=/^[-+]0x[0-9a-f]+$/i,Wx=/^0b[01]+$/i,Ux=/^0o[0-7]+$/i,qx=parseInt;function Nu(e){if(typeof e=="number")return e;if(Hx(e))return Au;if(xa(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=xa(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=Tx(e);var i=Wx.test(e);return i||Ux.test(e)?qx(e.slice(2),i?2:8):Kx.test(e)?Au:+e}var Gx="Expected a function",$x=Math.max,Jx=Math.min;function ra(e,t,i){var n,r,a,s,l,u,c=0,h=!1,p=!1,g=!0;if(typeof e!="function")throw new TypeError(Gx);t=Nu(t)||0,xa(i)&&(h=!!i.leading,p="maxWait"in i,a=p?$x(Nu(i.maxWait)||0,t):a,g="trailing"in i?!!i.trailing:g);function m(f){var O=n,P=r;return n=r=void 0,c=f,s=e.apply(P,O),s}function E(f){return c=f,l=setTimeout(S,t),h?m(f):s}function v(f){var O=f-u,P=f-c,F=t-O;return p?Jx(F,a-P):F}function k(f){var O=f-u,P=f-c;return u===void 0||O>=t||O<0||p&&P>=a}function S(){var f=ps();if(k(f))return w(f);l=setTimeout(S,v(f))}function w(f){return l=void 0,g&&n?m(f):(n=r=void 0,s)}function I(){l!==void 0&&clearTimeout(l),c=0,n=u=r=l=void 0}function A(){return l===void 0?s:w(ps())}function y(){var f=ps(),O=k(f);if(n=arguments,r=this,u=f,O){if(l===void 0)return E(u);if(p)return clearTimeout(l),l=setTimeout(S,t),m(u)}return l===void 0&&(l=setTimeout(S,t)),s}return y.cancel=I,y.flush=A,y}var Yx="Expected a function";function Qx(e,t,i){var n=!0,r=!0;if(typeof e!="function")throw new TypeError(Yx);return xa(i)&&(n="leading"in i?!!i.leading:n,r="trailing"in i?!!i.trailing:r),ra(e,t,{leading:n,maxWait:t,trailing:r})}var Tn=function(){return Tn=Object.assign||function(e){for(var t,i=1,n=arguments.length;i<n;i++){t=arguments[i];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e},Tn.apply(this,arguments)};function cd(e){return!e||!e.ownerDocument||!e.ownerDocument.defaultView?window:e.ownerDocument.defaultView}function hd(e){return!e||!e.ownerDocument?document:e.ownerDocument}var dd=function(e){var t={},i=Array.prototype.reduce.call(e,function(n,r){var a=r.name.match(/data-simplebar-(.+)/);if(a){var s=a[1].replace(/\W+(.)/g,function(l,u){return u.toUpperCase()});switch(r.value){case"true":n[s]=!0;break;case"false":n[s]=!1;break;case void 0:n[s]=!0;break;default:n[s]=r.value}}return n},t);return i};function pd(e,t){var i;e&&(i=e.classList).add.apply(i,t.split(" "))}function fd(e,t){e&&t.split(" ").forEach(function(i){e.classList.remove(i)})}function gd(e){return".".concat(e.split(" ").join("."))}var zo=!!(typeof window<"u"&&window.document&&window.document.createElement),Zx=Object.freeze({__proto__:null,addClasses:pd,canUseDOM:zo,classNamesToQuery:gd,getElementDocument:hd,getElementWindow:cd,getOptions:dd,removeClasses:fd}),_n=null,Tu=null;zo&&window.addEventListener("resize",function(){Tu!==window.devicePixelRatio&&(Tu=window.devicePixelRatio,_n=null)});function Ou(){if(_n===null){if(typeof document>"u")return _n=0,_n;var e=document.body,t=document.createElement("div");t.classList.add("simplebar-hide-scrollbar"),e.appendChild(t);var i=t.getBoundingClientRect().right;e.removeChild(t),_n=i}return _n}var Li=cd,fs=hd,Xx=dd,Di=pd,Fi=fd,Rt=gd,Zn=(function(){function e(t,i){i===void 0&&(i={});var n=this;if(this.removePreventClickId=null,this.minScrollbarWidth=20,this.stopScrollDelay=175,this.isScrolling=!1,this.isMouseEntering=!1,this.isDragging=!1,this.scrollXTicking=!1,this.scrollYTicking=!1,this.wrapperEl=null,this.contentWrapperEl=null,this.contentEl=null,this.offsetEl=null,this.maskEl=null,this.placeholderEl=null,this.heightAutoObserverWrapperEl=null,this.heightAutoObserverEl=null,this.rtlHelpers=null,this.scrollbarWidth=0,this.resizeObserver=null,this.mutationObserver=null,this.elStyles=null,this.isRtl=null,this.mouseX=0,this.mouseY=0,this.onMouseMove=function(){},this.onWindowResize=function(){},this.onStopScrolling=function(){},this.onMouseEntered=function(){},this.onScroll=function(){var r=Li(n.el);n.scrollXTicking||(r.requestAnimationFrame(n.scrollX),n.scrollXTicking=!0),n.scrollYTicking||(r.requestAnimationFrame(n.scrollY),n.scrollYTicking=!0),n.isScrolling||(n.isScrolling=!0,Di(n.el,n.classNames.scrolling)),n.showScrollbar("x"),n.showScrollbar("y"),n.onStopScrolling()},this.scrollX=function(){n.axis.x.isOverflowing&&n.positionScrollbar("x"),n.scrollXTicking=!1},this.scrollY=function(){n.axis.y.isOverflowing&&n.positionScrollbar("y"),n.scrollYTicking=!1},this._onStopScrolling=function(){Fi(n.el,n.classNames.scrolling),n.options.autoHide&&(n.hideScrollbar("x"),n.hideScrollbar("y")),n.isScrolling=!1},this.onMouseEnter=function(){n.isMouseEntering||(Di(n.el,n.classNames.mouseEntered),n.showScrollbar("x"),n.showScrollbar("y"),n.isMouseEntering=!0),n.onMouseEntered()},this._onMouseEntered=function(){Fi(n.el,n.classNames.mouseEntered),n.options.autoHide&&(n.hideScrollbar("x"),n.hideScrollbar("y")),n.isMouseEntering=!1},this._onMouseMove=function(r){n.mouseX=r.clientX,n.mouseY=r.clientY,(n.axis.x.isOverflowing||n.axis.x.forceVisible)&&n.onMouseMoveForAxis("x"),(n.axis.y.isOverflowing||n.axis.y.forceVisible)&&n.onMouseMoveForAxis("y")},this.onMouseLeave=function(){n.onMouseMove.cancel(),(n.axis.x.isOverflowing||n.axis.x.forceVisible)&&n.onMouseLeaveForAxis("x"),(n.axis.y.isOverflowing||n.axis.y.forceVisible)&&n.onMouseLeaveForAxis("y"),n.mouseX=-1,n.mouseY=-1},this._onWindowResize=function(){n.scrollbarWidth=n.getScrollbarWidth(),n.hideNativeScrollbar()},this.onPointerEvent=function(r){if(!(!n.axis.x.track.el||!n.axis.y.track.el||!n.axis.x.scrollbar.el||!n.axis.y.scrollbar.el)){var a,s;n.axis.x.track.rect=n.axis.x.track.el.getBoundingClientRect(),n.axis.y.track.rect=n.axis.y.track.el.getBoundingClientRect(),(n.axis.x.isOverflowing||n.axis.x.forceVisible)&&(a=n.isWithinBounds(n.axis.x.track.rect)),(n.axis.y.isOverflowing||n.axis.y.forceVisible)&&(s=n.isWithinBounds(n.axis.y.track.rect)),(a||s)&&(r.stopPropagation(),r.type==="pointerdown"&&r.pointerType!=="touch"&&(a&&(n.axis.x.scrollbar.rect=n.axis.x.scrollbar.el.getBoundingClientRect(),n.isWithinBounds(n.axis.x.scrollbar.rect)?n.onDragStart(r,"x"):n.onTrackClick(r,"x")),s&&(n.axis.y.scrollbar.rect=n.axis.y.scrollbar.el.getBoundingClientRect(),n.isWithinBounds(n.axis.y.scrollbar.rect)?n.onDragStart(r,"y"):n.onTrackClick(r,"y"))))}},this.drag=function(r){var a,s,l,u,c,h,p,g,m,E,v;if(!(!n.draggedAxis||!n.contentWrapperEl)){var k,S=n.axis[n.draggedAxis].track,w=(s=(a=S.rect)===null||a===void 0?void 0:a[n.axis[n.draggedAxis].sizeAttr])!==null&&s!==void 0?s:0,I=n.axis[n.draggedAxis].scrollbar,A=(u=(l=n.contentWrapperEl)===null||l===void 0?void 0:l[n.axis[n.draggedAxis].scrollSizeAttr])!==null&&u!==void 0?u:0,y=parseInt((h=(c=n.elStyles)===null||c===void 0?void 0:c[n.axis[n.draggedAxis].sizeAttr])!==null&&h!==void 0?h:"0px",10);r.preventDefault(),r.stopPropagation(),n.draggedAxis==="y"?k=r.pageY:k=r.pageX;var f=k-((g=(p=S.rect)===null||p===void 0?void 0:p[n.axis[n.draggedAxis].offsetAttr])!==null&&g!==void 0?g:0)-n.axis[n.draggedAxis].dragOffset;f=n.draggedAxis==="x"&&n.isRtl?((E=(m=S.rect)===null||m===void 0?void 0:m[n.axis[n.draggedAxis].sizeAttr])!==null&&E!==void 0?E:0)-I.size-f:f;var O=f/(w-I.size),P=O*(A-y);n.draggedAxis==="x"&&n.isRtl&&(P=!((v=e.getRtlHelpers())===null||v===void 0)&&v.isScrollingToNegative?-P:P),n.contentWrapperEl[n.axis[n.draggedAxis].scrollOffsetAttr]=P}},this.onEndDrag=function(r){n.isDragging=!1;var a=fs(n.el),s=Li(n.el);r.preventDefault(),r.stopPropagation(),Fi(n.el,n.classNames.dragging),n.onStopScrolling(),a.removeEventListener("mousemove",n.drag,!0),a.removeEventListener("mouseup",n.onEndDrag,!0),n.removePreventClickId=s.setTimeout(function(){a.removeEventListener("click",n.preventClick,!0),a.removeEventListener("dblclick",n.preventClick,!0),n.removePreventClickId=null})},this.preventClick=function(r){r.preventDefault(),r.stopPropagation()},this.el=t,this.options=Tn(Tn({},e.defaultOptions),i),this.classNames=Tn(Tn({},e.defaultOptions.classNames),i.classNames),this.axis={x:{scrollOffsetAttr:"scrollLeft",sizeAttr:"width",scrollSizeAttr:"scrollWidth",offsetSizeAttr:"offsetWidth",offsetAttr:"left",overflowAttr:"overflowX",dragOffset:0,isOverflowing:!0,forceVisible:!1,track:{size:null,el:null,rect:null,isVisible:!1},scrollbar:{size:null,el:null,rect:null,isVisible:!1}},y:{scrollOffsetAttr:"scrollTop",sizeAttr:"height",scrollSizeAttr:"scrollHeight",offsetSizeAttr:"offsetHeight",offsetAttr:"top",overflowAttr:"overflowY",dragOffset:0,isOverflowing:!0,forceVisible:!1,track:{size:null,el:null,rect:null,isVisible:!1},scrollbar:{size:null,el:null,rect:null,isVisible:!1}}},typeof this.el!="object"||!this.el.nodeName)throw new Error("Argument passed to SimpleBar must be an HTML element instead of ".concat(this.el));this.onMouseMove=Qx(this._onMouseMove,64),this.onWindowResize=ra(this._onWindowResize,64,{leading:!0}),this.onStopScrolling=ra(this._onStopScrolling,this.stopScrollDelay),this.onMouseEntered=ra(this._onMouseEntered,this.stopScrollDelay),this.init()}return e.getRtlHelpers=function(){if(e.rtlHelpers)return e.rtlHelpers;var t=document.createElement("div");t.innerHTML='<div class="simplebar-dummy-scrollbar-size"><div></div></div>';var i=t.firstElementChild,n=i==null?void 0:i.firstElementChild;if(!n)return null;document.body.appendChild(i),i.scrollLeft=0;var r=e.getOffset(i),a=e.getOffset(n);i.scrollLeft=-999;var s=e.getOffset(n);return document.body.removeChild(i),e.rtlHelpers={isScrollOriginAtZero:r.left!==a.left,isScrollingToNegative:a.left!==s.left},e.rtlHelpers},e.prototype.getScrollbarWidth=function(){try{return this.contentWrapperEl&&getComputedStyle(this.contentWrapperEl,"::-webkit-scrollbar").display==="none"||"scrollbarWidth"in document.documentElement.style||"-ms-overflow-style"in document.documentElement.style?0:Ou()}catch{return Ou()}},e.getOffset=function(t){var i=t.getBoundingClientRect(),n=fs(t),r=Li(t);return{top:i.top+(r.pageYOffset||n.documentElement.scrollTop),left:i.left+(r.pageXOffset||n.documentElement.scrollLeft)}},e.prototype.init=function(){zo&&(this.initDOM(),this.rtlHelpers=e.getRtlHelpers(),this.scrollbarWidth=this.getScrollbarWidth(),this.recalculate(),this.initListeners())},e.prototype.initDOM=function(){var t,i;this.wrapperEl=this.el.querySelector(Rt(this.classNames.wrapper)),this.contentWrapperEl=this.options.scrollableNode||this.el.querySelector(Rt(this.classNames.contentWrapper)),this.contentEl=this.options.contentNode||this.el.querySelector(Rt(this.classNames.contentEl)),this.offsetEl=this.el.querySelector(Rt(this.classNames.offset)),this.maskEl=this.el.querySelector(Rt(this.classNames.mask)),this.placeholderEl=this.findChild(this.wrapperEl,Rt(this.classNames.placeholder)),this.heightAutoObserverWrapperEl=this.el.querySelector(Rt(this.classNames.heightAutoObserverWrapperEl)),this.heightAutoObserverEl=this.el.querySelector(Rt(this.classNames.heightAutoObserverEl)),this.axis.x.track.el=this.findChild(this.el,"".concat(Rt(this.classNames.track)).concat(Rt(this.classNames.horizontal))),this.axis.y.track.el=this.findChild(this.el,"".concat(Rt(this.classNames.track)).concat(Rt(this.classNames.vertical))),this.axis.x.scrollbar.el=((t=this.axis.x.track.el)===null||t===void 0?void 0:t.querySelector(Rt(this.classNames.scrollbar)))||null,this.axis.y.scrollbar.el=((i=this.axis.y.track.el)===null||i===void 0?void 0:i.querySelector(Rt(this.classNames.scrollbar)))||null,this.options.autoHide||(Di(this.axis.x.scrollbar.el,this.classNames.visible),Di(this.axis.y.scrollbar.el,this.classNames.visible))},e.prototype.initListeners=function(){var t=this,i,n=Li(this.el);if(this.el.addEventListener("mouseenter",this.onMouseEnter),this.el.addEventListener("pointerdown",this.onPointerEvent,!0),this.el.addEventListener("mousemove",this.onMouseMove),this.el.addEventListener("mouseleave",this.onMouseLeave),(i=this.contentWrapperEl)===null||i===void 0||i.addEventListener("scroll",this.onScroll),n.addEventListener("resize",this.onWindowResize),!!this.contentEl){if(window.ResizeObserver){var r=!1,a=n.ResizeObserver||ResizeObserver;this.resizeObserver=new a(function(){r&&n.requestAnimationFrame(function(){t.recalculate()})}),this.resizeObserver.observe(this.el),this.resizeObserver.observe(this.contentEl),n.requestAnimationFrame(function(){r=!0})}this.mutationObserver=new n.MutationObserver(function(){n.requestAnimationFrame(function(){t.recalculate()})}),this.mutationObserver.observe(this.contentEl,{childList:!0,subtree:!0,characterData:!0})}},e.prototype.recalculate=function(){if(!(!this.heightAutoObserverEl||!this.contentEl||!this.contentWrapperEl||!this.wrapperEl||!this.placeholderEl)){var t=Li(this.el);this.elStyles=t.getComputedStyle(this.el),this.isRtl=this.elStyles.direction==="rtl";var i=this.contentEl.offsetWidth,n=this.heightAutoObserverEl.offsetHeight<=1,r=this.heightAutoObserverEl.offsetWidth<=1||i>0,a=this.contentWrapperEl.offsetWidth,s=this.elStyles.overflowX,l=this.elStyles.overflowY;this.contentEl.style.padding="".concat(this.elStyles.paddingTop," ").concat(this.elStyles.paddingRight," ").concat(this.elStyles.paddingBottom," ").concat(this.elStyles.paddingLeft),this.wrapperEl.style.margin="-".concat(this.elStyles.paddingTop," -").concat(this.elStyles.paddingRight," -").concat(this.elStyles.paddingBottom," -").concat(this.elStyles.paddingLeft);var u=this.contentEl.scrollHeight,c=this.contentEl.scrollWidth;this.contentWrapperEl.style.height=n?"auto":"100%",this.placeholderEl.style.width=r?"".concat(i||c,"px"):"auto",this.placeholderEl.style.height="".concat(u,"px");var h=this.contentWrapperEl.offsetHeight;this.axis.x.isOverflowing=i!==0&&c>i,this.axis.y.isOverflowing=u>h,this.axis.x.isOverflowing=s==="hidden"?!1:this.axis.x.isOverflowing,this.axis.y.isOverflowing=l==="hidden"?!1:this.axis.y.isOverflowing,this.axis.x.forceVisible=this.options.forceVisible==="x"||this.options.forceVisible===!0,this.axis.y.forceVisible=this.options.forceVisible==="y"||this.options.forceVisible===!0,this.hideNativeScrollbar();var p=this.axis.x.isOverflowing?this.scrollbarWidth:0,g=this.axis.y.isOverflowing?this.scrollbarWidth:0;this.axis.x.isOverflowing=this.axis.x.isOverflowing&&c>a-g,this.axis.y.isOverflowing=this.axis.y.isOverflowing&&u>h-p,this.axis.x.scrollbar.size=this.getScrollbarSize("x"),this.axis.y.scrollbar.size=this.getScrollbarSize("y"),this.axis.x.scrollbar.el&&(this.axis.x.scrollbar.el.style.width="".concat(this.axis.x.scrollbar.size,"px")),this.axis.y.scrollbar.el&&(this.axis.y.scrollbar.el.style.height="".concat(this.axis.y.scrollbar.size,"px")),this.positionScrollbar("x"),this.positionScrollbar("y"),this.toggleTrackVisibility("x"),this.toggleTrackVisibility("y")}},e.prototype.getScrollbarSize=function(t){var i,n;if(t===void 0&&(t="y"),!this.axis[t].isOverflowing||!this.contentEl)return 0;var r=this.contentEl[this.axis[t].scrollSizeAttr],a=(n=(i=this.axis[t].track.el)===null||i===void 0?void 0:i[this.axis[t].offsetSizeAttr])!==null&&n!==void 0?n:0,s=a/r,l;return l=Math.max(~~(s*a),this.options.scrollbarMinSize),this.options.scrollbarMaxSize&&(l=Math.min(l,this.options.scrollbarMaxSize)),l},e.prototype.positionScrollbar=function(t){var i,n,r;t===void 0&&(t="y");var a=this.axis[t].scrollbar;if(!(!this.axis[t].isOverflowing||!this.contentWrapperEl||!a.el||!this.elStyles)){var s=this.contentWrapperEl[this.axis[t].scrollSizeAttr],l=((i=this.axis[t].track.el)===null||i===void 0?void 0:i[this.axis[t].offsetSizeAttr])||0,u=parseInt(this.elStyles[this.axis[t].sizeAttr],10),c=this.contentWrapperEl[this.axis[t].scrollOffsetAttr];c=t==="x"&&this.isRtl&&!((n=e.getRtlHelpers())===null||n===void 0)&&n.isScrollOriginAtZero?-c:c,t==="x"&&this.isRtl&&(c=!((r=e.getRtlHelpers())===null||r===void 0)&&r.isScrollingToNegative?c:-c);var h=c/(s-u),p=~~((l-a.size)*h);p=t==="x"&&this.isRtl?-p+(l-a.size):p,a.el.style.transform=t==="x"?"translate3d(".concat(p,"px, 0, 0)"):"translate3d(0, ".concat(p,"px, 0)")}},e.prototype.toggleTrackVisibility=function(t){t===void 0&&(t="y");var i=this.axis[t].track.el,n=this.axis[t].scrollbar.el;!i||!n||!this.contentWrapperEl||(this.axis[t].isOverflowing||this.axis[t].forceVisible?(i.style.visibility="visible",this.contentWrapperEl.style[this.axis[t].overflowAttr]="scroll",this.el.classList.add("".concat(this.classNames.scrollable,"-").concat(t))):(i.style.visibility="hidden",this.contentWrapperEl.style[this.axis[t].overflowAttr]="hidden",this.el.classList.remove("".concat(this.classNames.scrollable,"-").concat(t))),this.axis[t].isOverflowing?n.style.display="block":n.style.display="none")},e.prototype.showScrollbar=function(t){t===void 0&&(t="y"),this.axis[t].isOverflowing&&!this.axis[t].scrollbar.isVisible&&(Di(this.axis[t].scrollbar.el,this.classNames.visible),this.axis[t].scrollbar.isVisible=!0)},e.prototype.hideScrollbar=function(t){t===void 0&&(t="y"),!this.isDragging&&this.axis[t].isOverflowing&&this.axis[t].scrollbar.isVisible&&(Fi(this.axis[t].scrollbar.el,this.classNames.visible),this.axis[t].scrollbar.isVisible=!1)},e.prototype.hideNativeScrollbar=function(){this.offsetEl&&(this.offsetEl.style[this.isRtl?"left":"right"]=this.axis.y.isOverflowing||this.axis.y.forceVisible?"-".concat(this.scrollbarWidth,"px"):"0px",this.offsetEl.style.bottom=this.axis.x.isOverflowing||this.axis.x.forceVisible?"-".concat(this.scrollbarWidth,"px"):"0px")},e.prototype.onMouseMoveForAxis=function(t){t===void 0&&(t="y");var i=this.axis[t];!i.track.el||!i.scrollbar.el||(i.track.rect=i.track.el.getBoundingClientRect(),i.scrollbar.rect=i.scrollbar.el.getBoundingClientRect(),this.isWithinBounds(i.track.rect)?(this.showScrollbar(t),Di(i.track.el,this.classNames.hover),this.isWithinBounds(i.scrollbar.rect)?Di(i.scrollbar.el,this.classNames.hover):Fi(i.scrollbar.el,this.classNames.hover)):(Fi(i.track.el,this.classNames.hover),this.options.autoHide&&this.hideScrollbar(t)))},e.prototype.onMouseLeaveForAxis=function(t){t===void 0&&(t="y"),Fi(this.axis[t].track.el,this.classNames.hover),Fi(this.axis[t].scrollbar.el,this.classNames.hover),this.options.autoHide&&this.hideScrollbar(t)},e.prototype.onDragStart=function(t,i){var n;i===void 0&&(i="y"),this.isDragging=!0;var r=fs(this.el),a=Li(this.el),s=this.axis[i].scrollbar,l=i==="y"?t.pageY:t.pageX;this.axis[i].dragOffset=l-(((n=s.rect)===null||n===void 0?void 0:n[this.axis[i].offsetAttr])||0),this.draggedAxis=i,Di(this.el,this.classNames.dragging),r.addEventListener("mousemove",this.drag,!0),r.addEventListener("mouseup",this.onEndDrag,!0),this.removePreventClickId===null?(r.addEventListener("click",this.preventClick,!0),r.addEventListener("dblclick",this.preventClick,!0)):(a.clearTimeout(this.removePreventClickId),this.removePreventClickId=null)},e.prototype.onTrackClick=function(t,i){var n=this,r,a,s,l;i===void 0&&(i="y");var u=this.axis[i];if(!(!this.options.clickOnTrack||!u.scrollbar.el||!this.contentWrapperEl)){t.preventDefault();var c=Li(this.el);this.axis[i].scrollbar.rect=u.scrollbar.el.getBoundingClientRect();var h=this.axis[i].scrollbar,p=(a=(r=h.rect)===null||r===void 0?void 0:r[this.axis[i].offsetAttr])!==null&&a!==void 0?a:0,g=parseInt((l=(s=this.elStyles)===null||s===void 0?void 0:s[this.axis[i].sizeAttr])!==null&&l!==void 0?l:"0px",10),m=this.contentWrapperEl[this.axis[i].scrollOffsetAttr],E=i==="y"?this.mouseY-p:this.mouseX-p,v=E<0?-1:1,k=v===-1?m-g:m+g,S=40,w=function(){n.contentWrapperEl&&(v===-1?m>k&&(m-=S,n.contentWrapperEl[n.axis[i].scrollOffsetAttr]=m,c.requestAnimationFrame(w)):m<k&&(m+=S,n.contentWrapperEl[n.axis[i].scrollOffsetAttr]=m,c.requestAnimationFrame(w)))};w()}},e.prototype.getContentElement=function(){return this.contentEl},e.prototype.getScrollElement=function(){return this.contentWrapperEl},e.prototype.removeListeners=function(){var t=Li(this.el);this.el.removeEventListener("mouseenter",this.onMouseEnter),this.el.removeEventListener("pointerdown",this.onPointerEvent,!0),this.el.removeEventListener("mousemove",this.onMouseMove),this.el.removeEventListener("mouseleave",this.onMouseLeave),this.contentWrapperEl&&this.contentWrapperEl.removeEventListener("scroll",this.onScroll),t.removeEventListener("resize",this.onWindowResize),this.mutationObserver&&this.mutationObserver.disconnect(),this.resizeObserver&&this.resizeObserver.disconnect(),this.onMouseMove.cancel(),this.onWindowResize.cancel(),this.onStopScrolling.cancel(),this.onMouseEntered.cancel()},e.prototype.unMount=function(){this.removeListeners()},e.prototype.isWithinBounds=function(t){return this.mouseX>=t.left&&this.mouseX<=t.left+t.width&&this.mouseY>=t.top&&this.mouseY<=t.top+t.height},e.prototype.findChild=function(t,i){var n=t.matches||t.webkitMatchesSelector||t.mozMatchesSelector||t.msMatchesSelector;return Array.prototype.filter.call(t.children,function(r){return n.call(r,i)})[0]},e.rtlHelpers=null,e.defaultOptions={forceVisible:!1,clickOnTrack:!0,scrollbarMinSize:25,scrollbarMaxSize:0,ariaLabel:"scrollable content",tabIndex:0,classNames:{contentEl:"simplebar-content",contentWrapper:"simplebar-content-wrapper",offset:"simplebar-offset",mask:"simplebar-mask",wrapper:"simplebar-wrapper",placeholder:"simplebar-placeholder",scrollbar:"simplebar-scrollbar",track:"simplebar-track",heightAutoObserverWrapperEl:"simplebar-height-auto-observer-wrapper",heightAutoObserverEl:"simplebar-height-auto-observer",visible:"simplebar-visible",horizontal:"simplebar-horizontal",vertical:"simplebar-vertical",hover:"simplebar-hover",dragging:"simplebar-dragging",scrolling:"simplebar-scrolling",scrollable:"simplebar-scrollable",mouseEntered:"simplebar-mouse-entered"},scrollableNode:null,contentNode:null,autoHide:!0},e.getOptions=Xx,e.helpers=Zx,e})(),Ht=function(){return Ht=Object.assign||function(e){for(var t,i=1,n=arguments.length;i<n;i++){t=arguments[i];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e},Ht.apply(this,arguments)};function e0(e,t){var i={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(i[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,n=Object.getOwnPropertySymbols(e);r<n.length;r++)t.indexOf(n[r])<0&&Object.prototype.propertyIsEnumerable.call(e,n[r])&&(i[n[r]]=e[n[r]]);return i}var Vo=q.forwardRef(function(e,t){var i=e.children,n=e.scrollableNodeProps,r=n===void 0?{}:n,a=e0(e,["children","scrollableNodeProps"]),s=q.useRef(),l=q.useRef(),u=q.useRef(),c={},h={};Object.keys(a).forEach(function(m){Object.prototype.hasOwnProperty.call(Zn.defaultOptions,m)?c[m]=a[m]:h[m]=a[m]});var p=Ht(Ht({},Zn.defaultOptions.classNames),c.classNames),g=Ht(Ht({},r),{className:"".concat(p.contentWrapper).concat(r.className?" ".concat(r.className):""),tabIndex:c.tabIndex||Zn.defaultOptions.tabIndex,role:"region","aria-label":c.ariaLabel||Zn.defaultOptions.ariaLabel});return q.useEffect(function(){var m;return l.current=g.ref?g.ref.current:l.current,s.current&&(m=new Zn(s.current,Ht(Ht(Ht({},c),l.current&&{scrollableNode:l.current}),u.current&&{contentNode:u.current})),typeof t=="function"?t(m):t&&(t.current=m)),function(){m==null||m.unMount(),m=null,typeof t=="function"&&t(null)}},[]),q.createElement("div",Ht({"data-simplebar":"init",ref:s},h),q.createElement("div",{className:p.wrapper},q.createElement("div",{className:p.heightAutoObserverWrapperEl},q.createElement("div",{className:p.heightAutoObserverEl})),q.createElement("div",{className:p.mask},q.createElement("div",{className:p.offset},typeof i=="function"?i({scrollableNodeRef:l,scrollableNodeProps:Ht(Ht({},g),{ref:l}),contentNodeRef:u,contentNodeProps:{className:p.contentEl,ref:u}}):q.createElement("div",Ht({},g),q.createElement("div",{className:p.contentEl},i)))),q.createElement("div",{className:p.placeholder})),q.createElement("div",{className:"".concat(p.track," ").concat(p.horizontal)},q.createElement("div",{className:p.scrollbar})),q.createElement("div",{className:"".concat(p.track," ").concat(p.vertical)},q.createElement("div",{className:p.scrollbar})))});Vo.displayName="SimpleBar";const md=M.forwardRef(({size:e="md",color:t="primary",isInvalid:i=!1,isDisabled:n=!1,isReadOnly:r=!1,className:a,children:s,...l},u)=>{const[c,h]=M.useState(!1),[p,g]=M.useState(!1),m={size:e,color:i?"negative":t,isInvalid:i,isDisabled:n,isReadOnly:r,hasMessage:c,setHasMessage:h,hasArea:p,setHasArea:g};return b.jsx(od.Provider,{value:m,children:b.jsx("div",{ref:u,"data-qui":"Input",className:he(bx(),a),...l,children:s})})}),vd=M.forwardRef(({className:e,children:t,...i},n)=>{const{size:r,color:a,isDisabled:s,isReadOnly:l,hasMessage:u,hasArea:c,isInvalid:h}=br();return b.jsx("div",{ref:n,"data-qui":"InputGroup",className:he(yx({size:r,color:a,isDisabled:s,isReadOnly:l,hasMessage:u,hasArea:c,isInvalid:h}),e),...i,children:t})}),xd=M.forwardRef(({className:e,...t},i)=>{const{size:n,color:r,isInvalid:a,isDisabled:s,isReadOnly:l}=br(),{isDisabled:u,isReadOnly:c,...h}=t;return b.jsx("input",{ref:i,disabled:s||u,readOnly:c||l||!1,"aria-invalid":a,className:he(wx({size:n,color:r}),e),...h})}),bd=M.forwardRef(({className:e,wrapperClassName:t,autoHeight:i,...n},r)=>{const{size:a,color:s,isInvalid:l,isDisabled:u,setHasArea:c}=br(),h=M.useRef(null),p=r||h,g=M.useRef(null);M.useEffect(()=>(c(!0),()=>{c(!1)}),[c]);const m=M.useCallback(()=>{if(h.current){const I=h.current;I.style.height="auto",I.style.height=`${I.scrollHeight}px`}},[]),E=I=>{var A;m(),(A=n.onInput)==null||A.call(n,I)};M.useEffect(()=>{m()},[m,n.value]),M.useEffect(()=>{i&&g.current&&g.current.style.removeProperty("height")},[i]);const v=I=>{I.preventDefault();const A=g.current;if(!A)return;const y=I.clientY,f=A.offsetHeight,O=F=>{const D=f+(F.clientY-y);D>30&&(A.style.height=D+"px")},P=()=>{document.removeEventListener("mousemove",O),document.removeEventListener("mouseup",P)};document.addEventListener("mousemove",O),document.addEventListener("mouseup",P)},{isDisabled:k,isReadOnly:S,...w}=n;return b.jsxs("div",{ref:g,className:he("w-full relative",!i&&!n.rows&&"h-30",t),children:[i?b.jsx("textarea",{ref:p,rows:1,className:he(Iu({size:a,color:s}),e),disabled:u||k,onInput:E,readOnly:S||!1,"aria-invalid":l,style:{overflow:"hidden"},...w}):b.jsx(Vo,{style:{height:"100%"},children:b.jsx("textarea",{ref:p,rows:1,className:he(Iu({size:a,color:s}),e),disabled:u||k,onInput:E,readOnly:S||!1,"aria-invalid":l,style:{height:"auto",overflow:"hidden",width:"100%"},...w})}),!i&&b.jsx("div",{className:"absolute right-0 bottom-0 -translate-x-full -translate-y-full size-1.75 text-sm cursor-se-resize z-10",onMouseDown:v,children:b.jsx(lv,{})})]})}),t0=M.forwardRef(({isAction:e=!1,className:t,isDisabled:i=!1,style:n,children:r,...a},s)=>{const{size:l,color:u,isDisabled:c}=br(),h=i||c,p=kx({size:l,color:u,isDisabled:h,isAction:e});return b.jsx("div",{ref:s,"data-qui":"InputIcon",className:he(p,t),style:n,role:e||a.onClick?"button":void 0,tabIndex:(e||a.onClick)&&!h?0:void 0,"aria-disabled":h,...a,children:r})}),yd=M.forwardRef(({icon:e,className:t,children:i,...n},r)=>{const{size:a,color:s,setHasMessage:l,isDisabled:u}=br();return M.useEffect(()=>(l(!0),()=>{l(!1)}),[l]),b.jsxs("div",{ref:r,"data-qui":"InputMessage",role:"alert",className:he(Sx({size:a,color:s,isDisabled:u}),t),...n,children:[e!==void 0&&b.jsx("div",{className:he(Ex({size:a}),t),children:e}),b.jsx("p",{children:i})]})});md.displayName="InputRoot";vd.displayName="InputGroup";xd.displayName="InputField";bd.displayName="InputArea";t0.displayName="InputIcon";yd.displayName="InputMessage";const si={Root:md,Group:vd,Field:xd,Area:bd,Message:yd},ur={primary:{container:"bg-primary-light",text:"text-primary-dark",icon:"text-primary-dark",button:"hover:bg-primary-hover hover:text-body"},positive:{container:"bg-positive-light",text:"text-positive-dark",icon:"text-positive-dark",button:"hover:bg-positive hover:text-body"},negative:{container:"bg-negative-light",text:"text-negative-dark",icon:"text-negative-dark",button:"hover:bg-negative hover:text-body"},warning:{container:"bg-warning-light",text:"text-warning-dark",icon:"text-warning-dark",button:"hover:bg-warning hover:text-body"}},i0=({color:e})=>he("min-h-6 absolute py-0.5 px-1 rounded whitespace-nowrap flex items-center gap-1",ur[e].container,ur[e].icon),n0=({color:e})=>he("text-xs font-medium leading-3",ur[e].text),r0=({color:e})=>he("p-0.5 rounded cursor-pointer",ur[e].button,ur[e].icon),wt=({label:e,color:t="primary",position:i="up",showCloseButton:n=!1,icon:r,children:a,delay:s=0,trigger:l="hover",className:u,container:c,isHidden:h=!1})=>{const[p,g]=M.useState(!1),[m,E]=M.useState(!1),[v,k]=M.useState({position:i,transform:""}),S=M.useRef(null),w=M.useRef(null),I=M.useRef(null),A=p&&!h;M.useEffect(()=>{A||E(!1)},[A]);const y=M.useCallback(()=>{if(!S.current||!w.current)return;const j=S.current.getBoundingClientRect(),U=w.current.getBoundingClientRect(),Y=window.innerWidth,de=window.innerHeight,C=window.scrollX,$=window.scrollY,ee=Math.max(document.documentElement.scrollWidth,document.body.scrollWidth,Y),T=Math.max(document.documentElement.scrollHeight,document.body.scrollHeight,de),B=4;let W=i,z={position:W,transform:""};const K=oe=>{const{top:H,left:ve,width:Z,height:xe}=j,be=H+$,ie=ve+C;switch(oe){case"up":return{top:`${be-U.height-B}px`,left:`${ie+Z/2}px`,transform:"translateX(-50%)"};case"up-start":return{top:`${be-U.height-B}px`,left:`${ie}px`,transform:"translateX(0)"};case"up-end":return{top:`${be-U.height-B}px`,left:`${ie+Z-U.width}px`,transform:"translateX(0)"};case"down":return{top:`${be+xe+B}px`,left:`${ie+Z/2}px`,transform:"translateX(-50%)"};case"down-start":return{top:`${be+xe+B}px`,left:`${ie}px`,transform:"translateX(0)"};case"down-end":return{top:`${be+xe+B}px`,left:`${ie+Z-U.width}px`,transform:"translateX(0)"};case"left":return{top:`${be+xe/2}px`,left:`${ie-U.width-B}px`,transform:"translateY(-50%)"};case"left-start":return{top:`${be}px`,left:`${ie-U.width-B}px`,transform:"translateY(0)"};case"left-end":return{top:`${be+xe-U.height}px`,left:`${ie-U.width-B}px`,transform:"translateY(0)"};case"right":return{top:`${be+xe/2}px`,left:`${ie+Z+B}px`,transform:"translateY(-50%)"};case"right-start":return{top:`${be}px`,left:`${ie+Z+B}px`,transform:"translateY(0)"};case"right-end":return{top:`${be+xe-U.height}px`,left:`${ie+Z+B}px`,transform:"translateY(0)"};default:return{}}},ne={up:{fits:j.top-U.height-B>=0},"up-start":{fits:j.top-U.height-B>=0&&j.left+U.width<=Y},"up-end":{fits:j.top-U.height-B>=0&&j.right-U.width>=0},down:{fits:j.bottom+U.height+B<=de&&j.bottom+U.height+B<=T},"down-start":{fits:j.bottom+U.height+B<=de&&j.bottom+U.height+B<=T&&j.left+U.width<=Y},"down-end":{fits:j.bottom+U.height+B<=de&&j.bottom+U.height+B<=T&&j.right-U.width>=0},left:{fits:j.left-U.width-B>=0},"left-start":{fits:j.left-U.width-B>=0&&j.top+U.height<=de},"left-end":{fits:j.left-U.width-B>=0&&j.bottom-U.height>=0},right:{fits:j.right+U.width+B<=Y&&j.right+U.width+B<=ee},"right-start":{fits:j.right+U.width+B<=Y&&j.right+U.width+B<=ee&&j.top+U.height<=de},"right-end":{fits:j.right+U.width+B<=Y&&j.right+U.width+B<=ee&&j.bottom-U.height>=0}},ae=j.left+j.width/2-U.width/2,le=j.left+j.width/2+U.width/2;if((i==="up"||i==="down")&&(ae<0||le>Y)&&(ne[i].fits=!1),ne[i].fits){const oe=K(i);z={position:i,...oe,transform:oe.transform||""}}else{const oe=["up","up-start","up-end","down","down-start","down-end","right","right-start","right-end","left","left-start","left-end"].find(H=>ne[H].fits);if(oe){W=oe;const H=K(oe);z={position:W,...H,transform:H.transform||""}}else{const H={up:j.top,"up-start":j.top,"up-end":j.top,down:Math.min(de-j.bottom,T-j.bottom),"down-start":Math.min(de-j.bottom,T-j.bottom),"down-end":Math.min(de-j.bottom,T-j.bottom),left:j.left,"left-start":j.left,"left-end":j.left,right:Math.min(Y-j.right,ee-j.right),"right-start":Math.min(Y-j.right,ee-j.right),"right-end":Math.min(Y-j.right,ee-j.right)},ve=Object.entries(H).reduce((xe,[be,ie])=>ie>xe.space?{position:be,space:ie}:xe,{position:"up",space:0}).position;W=ve;const Z=K(ve);z={position:W,...Z,transform:Z.transform||""}}}k(z)},[i]),f=()=>{I.current&&(clearTimeout(I.current),I.current=null)},O=()=>{f(),g(!1)},P=()=>{f(),s===0?g(!1):I.current=setTimeout(()=>g(!1),s)},F=()=>{l==="click"&&(g(!0),f(),I.current=setTimeout(()=>{m||g(!1)},s))},D=j=>{j.stopPropagation(),O()},V=()=>{E(!0),f()},J=()=>{E(!1),p&&P()},ue=()=>{l==="hover"&&(f(),g(!0))},Q=()=>{l==="hover"&&P()};M.useEffect(()=>{if(!p||h||!S.current)return;const j=S.current;let U=!1,Y=!1;const de=new IntersectionObserver(([C])=>{if(!U){Y=C.isIntersecting,U=!0;return}Y&&!C.isIntersecting&&O(),Y=C.isIntersecting},{threshold:0});return de.observe(j),()=>de.disconnect()},[p,h]),M.useEffect(()=>{if(p){const j=requestAnimationFrame(()=>y());return()=>cancelAnimationFrame(j)}},[p,e,y]),M.useEffect(()=>{if(p){const j=setTimeout(()=>y(),0);return()=>clearTimeout(j)}},[p,y]),M.useEffect(()=>{const j=()=>{p&&y()},U=()=>{p&&y()};return window.addEventListener("resize",j),window.addEventListener("scroll",U,!0),()=>{window.removeEventListener("resize",j),window.removeEventListener("scroll",U,!0),f()}},[p,y]);const se=c||(typeof document<"u"?document.body:null);return se?b.jsxs(b.Fragment,{children:[b.jsx("div",{"data-qui":"Tooltip",ref:S,onClick:F,onMouseEnter:ue,onMouseLeave:Q,className:he("relative inline-flex items-center",u),children:a}),p&&!h&&!!e&&un.createPortal(b.jsxs("div",{ref:w,role:"tooltip",className:i0({color:t}),style:{position:"absolute",left:v.left??0,top:v.top??0,transform:v.transform,zIndex:1e3,opacity:v.left?1:0,pointerEvents:n?"auto":"none"},onMouseEnter:n?V:void 0,onMouseLeave:n?J:void 0,children:[r&&b.jsx("span",{"data-testid":"tooltip-icon",children:r}),b.jsx("div",{className:n0({color:t}),children:e}),n&&b.jsx("div",{onClick:D,className:r0({color:t}),role:"button",children:b.jsx(ja,{})})]}),se)]}):null};var Pu;(function(e){e.DragStart="dragStart",e.DragMove="dragMove",e.DragEnd="dragEnd",e.DragCancel="dragCancel",e.DragOver="dragOver",e.RegisterDroppable="registerDroppable",e.SetDroppableDisabled="setDroppableDisabled",e.UnregisterDroppable="unregisterDroppable"})(Pu||(Pu={}));const a0=Object.freeze({x:0,y:0});var On;(function(e){e[e.Forward=1]="Forward",e[e.Backward=-1]="Backward"})(On||(On={}));var Ru;(function(e){e.Click="click",e.DragStart="dragstart",e.Keydown="keydown",e.ContextMenu="contextmenu",e.Resize="resize",e.SelectionChange="selectionchange",e.VisibilityChange="visibilitychange"})(Ru||(Ru={}));var Jt;(function(e){e.Space="Space",e.Down="ArrowDown",e.Right="ArrowRight",e.Left="ArrowLeft",e.Up="ArrowUp",e.Esc="Escape",e.Enter="Enter",e.Tab="Tab"})(Jt||(Jt={}));Jt.Space,Jt.Enter,Jt.Esc,Jt.Space,Jt.Enter,Jt.Tab;var Mu;(function(e){e[e.RightClick=2]="RightClick"})(Mu||(Mu={}));var Lu;(function(e){e[e.Pointer=0]="Pointer",e[e.DraggableRect=1]="DraggableRect"})(Lu||(Lu={}));var Du;(function(e){e[e.TreeOrder=0]="TreeOrder",e[e.ReversedTreeOrder=1]="ReversedTreeOrder"})(Du||(Du={}));On.Backward+"",On.Forward+"",On.Backward+"",On.Forward+"";var ao;(function(e){e[e.Always=0]="Always",e[e.BeforeDragging=1]="BeforeDragging",e[e.WhileDragging=2]="WhileDragging"})(ao||(ao={}));var so;(function(e){e.Optimized="optimized"})(so||(so={}));ao.WhileDragging,so.Optimized;({...a0});var Fu;(function(e){e[e.Uninitialized=0]="Uninitialized",e[e.Initializing=1]="Initializing",e[e.Initialized=2]="Initialized"})(Fu||(Fu={}));Jt.Down,Jt.Right,Jt.Up,Jt.Left;const wd={sm:{padding:"px-4 py-0.5",text:"text-xxs",icon:"w-3 h-3",gap:"gap-0.5",badge:"min-w-3.5 h-3.5 text-2"},md:{padding:"px-6 py-1",text:"text-s",icon:"w-4 h-4",gap:"gap-1",badge:"min-w-4.5 h-4.5 text-xxs"},lg:{padding:"px-8 py-1.5",text:"text-base",icon:"w-5 h-5",gap:"gap-1.5",badge:"min-w-5 h-5 text-xs"}},s0={primary:{active:{bg:"bg-primary",text:"text-button-text",border:"border-primary"},inactive:{bg:"bg-input-bg",text:"text-inactive-text",border:"border-transparent"},hover:{bg:"hover:bg-primary-hover",text:"hover:text-button-text"}},positive:{active:{bg:"bg-positive",text:"text-button-text",border:"border-positive"},inactive:{bg:"bg-input-bg",text:"text-inactive-text",border:"border-transparent"},hover:{bg:"hover:bg-positive-hover",text:"hover:text-body"}},warning:{active:{bg:"bg-warning",text:"text-warning-text",border:"border-warning"},inactive:{bg:"bg-input-bg",text:"text-inactive-text",border:"border-transparent"},hover:{bg:"hover:bg-warning-hover",text:"hover:text-body"}},negative:{active:{bg:"bg-negative",text:"text-button-text",border:"border-negative"},inactive:{bg:"bg-input-bg",text:"text-inactive-text",border:"border-transparent"},hover:{bg:"hover:bg-negative-hover",text:"hover:text-body"}}},o0=(e,t,i,n)=>{const r=s0[e],a=wd[t],s="relative inline-flex items-center font-medium cursor-pointer transition-all duration-200";return n?he(s,a.padding,a.text,a.gap,"pointer-events-none cursor-not-allowed opacity-50","bg-card","text-inactive-text"):i?he(s,a.padding,a.text,a.gap,r.active.bg,r.active.text,"shadow-xs"):he(s,a.padding,a.text,a.gap,r.inactive.bg,r.inactive.text,r.hover.bg,r.hover.text)},l0=(e,t)=>he("flex items-center justify-center",wd[e].icon,{"opacity-50":t}),u0=()=>he("whitespace-nowrap"),kd=(e,t)=>{const i=he("group flex items-center justify-between space-x-4","rounded-t px-2 text-xs","focus:outline-hidden");return e&&!t?he(i,"z-2 border border-b-0 border-tab-border","bg-tab-active-bg font-semibold text-tab-active-fg"):t&&!e?he(i,"border border-transparent bg-tab-inactive-bg text-inactive-text"):he(i,"border border-transparent bg-tab-inactive-bg text-tab-inactive-fg","hover:text-tab-active-fg")},c0=M.createContext(void 0),h0=M.forwardRef(({value:e,label:t,icon:i,disabled:n,children:r,className:a,onClick:s,active:l,onClose:u,closable:c,touched:h,content:p,renderTab:g,...m},E)=>{const v=M.useContext(c0);if(!v)return null;const{activeTab:k,onTabChange:S,variant:w,color:I,size:A,showIcons:y,disabled:f}=v,O=l!==void 0?l:k===e,P=n||f,F=D=>{P||(S(e),s==null||s(D))};return w==="file"?b.jsx("div",{"data-qui":"FileTabItem",className:he(kd(O,!1),"cursor-pointer",a),onClick:D=>!P&&F(D),children:r||b.jsx(b.Fragment,{children:b.jsxs("span",{className:"flex items-center gap-2",children:[i,b.jsx("span",{children:t})]})})}):b.jsxs("button",{ref:E,"data-qui":"TabItem",type:"button",role:"tab","aria-selected":O,"aria-disabled":P,className:he(o0(I,A,O,P||!1),a),onClick:F,disabled:P,...m,children:[y&&i&&b.jsx("span",{className:l0(A,P||!1),children:i}),b.jsx("span",{className:u0(),children:r||t})]})});h0.displayName="TabItem";const d0=M.forwardRef(({isActive:e=!1,isDesactive:t=!1,children:i,...n},r)=>b.jsx("div",{"data-qui":"TabNavContainer",className:kd(e,t),ref:r,...n,children:i}));d0.displayName="TabNavContainer";var pt=function(){return pt=Object.assign||function(e){for(var t,i=1,n=arguments.length;i<n;i++){t=arguments[i];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e},pt.apply(this,arguments)},ju={width:"100%",height:"10px",top:"0px",left:"0px",cursor:"row-resize"},zu={width:"10px",height:"100%",top:"0px",left:"0px",cursor:"col-resize"},jr={width:"20px",height:"20px",position:"absolute",zIndex:1},p0={top:pt(pt({},ju),{top:"-5px"}),right:pt(pt({},zu),{left:void 0,right:"-5px"}),bottom:pt(pt({},ju),{top:void 0,bottom:"-5px"}),left:pt(pt({},zu),{left:"-5px"}),topRight:pt(pt({},jr),{right:"-10px",top:"-10px",cursor:"ne-resize"}),bottomRight:pt(pt({},jr),{right:"-10px",bottom:"-10px",cursor:"se-resize"}),bottomLeft:pt(pt({},jr),{left:"-10px",bottom:"-10px",cursor:"sw-resize"}),topLeft:pt(pt({},jr),{left:"-10px",top:"-10px",cursor:"nw-resize"})},f0=M.memo(function(e){var t=e.onResizeStart,i=e.direction,n=e.children,r=e.replaceStyles,a=e.className,s=M.useCallback(function(c){t(c,i)},[t,i]),l=M.useCallback(function(c){t(c,i)},[t,i]),u=M.useMemo(function(){return pt(pt({position:"absolute",userSelect:"none"},p0[i]),r??{})},[r,i]);return b.jsx("div",{className:a||void 0,style:u,onMouseDown:s,onTouchStart:l,children:n})}),g0=(function(){var e=function(t,i){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(n[a]=r[a])},e(t,i)};return function(t,i){if(typeof i!="function"&&i!==null)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");e(t,i);function n(){this.constructor=t}t.prototype=i===null?Object.create(i):(n.prototype=i.prototype,new n)}})(),pi=function(){return pi=Object.assign||function(e){for(var t,i=1,n=arguments.length;i<n;i++){t=arguments[i];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e},pi.apply(this,arguments)},m0={width:"auto",height:"auto"},zr=function(e,t,i){return Math.max(Math.min(e,i),t)},Vu=function(e,t,i){var n=Math.round(e/t);return n*t+i*(n-1)},yn=function(e,t){return new RegExp(e,"i").test(t)},Vr=function(e){return!!(e.touches&&e.touches.length)},v0=function(e){return!!((e.clientX||e.clientX===0)&&(e.clientY||e.clientY===0))},Bu=function(e,t,i){i===void 0&&(i=0);var n=t.reduce(function(a,s,l){return Math.abs(s-e)<Math.abs(t[a]-e)?l:a},0),r=Math.abs(t[n]-e);return i===0||r<i?t[n]:e},gs=function(e){return e=e.toString(),e==="auto"||e.endsWith("px")||e.endsWith("%")||e.endsWith("vh")||e.endsWith("vw")||e.endsWith("vmax")||e.endsWith("vmin")?e:"".concat(e,"px")},Br=function(e,t,i,n){if(e&&typeof e=="string"){if(e.endsWith("px"))return Number(e.replace("px",""));if(e.endsWith("%")){var r=Number(e.replace("%",""))/100;return t*r}if(e.endsWith("vw")){var r=Number(e.replace("vw",""))/100;return i*r}if(e.endsWith("vh")){var r=Number(e.replace("vh",""))/100;return n*r}}return e},x0=function(e,t,i,n,r,a,s){return n=Br(n,e.width,t,i),r=Br(r,e.height,t,i),a=Br(a,e.width,t,i),s=Br(s,e.height,t,i),{maxWidth:typeof n>"u"?void 0:Number(n),maxHeight:typeof r>"u"?void 0:Number(r),minWidth:typeof a>"u"?void 0:Number(a),minHeight:typeof s>"u"?void 0:Number(s)}},b0=function(e){return Array.isArray(e)?e:[e,e]},y0=["as","ref","style","className","grid","gridGap","snap","bounds","boundsByDirection","size","defaultSize","minWidth","minHeight","maxWidth","maxHeight","lockAspectRatio","lockAspectRatioExtraWidth","lockAspectRatioExtraHeight","enable","handleStyles","handleClasses","handleWrapperStyle","handleWrapperClass","children","onResizeStart","onResize","onResizeStop","handleComponent","scale","resizeRatio","snapGap"],Hu="__resizable_base__",w0=(function(e){g0(t,e);function t(i){var n,r,a,s,l=e.call(this,i)||this;return l.ratio=1,l.resizable=null,l.parentLeft=0,l.parentTop=0,l.resizableLeft=0,l.resizableRight=0,l.resizableTop=0,l.resizableBottom=0,l.targetLeft=0,l.targetTop=0,l.delta={width:0,height:0},l.appendBase=function(){if(!l.resizable||!l.window)return null;var u=l.parentNode;if(!u)return null;var c=l.window.document.createElement("div");return c.style.width="100%",c.style.height="100%",c.style.position="absolute",c.style.transform="scale(0, 0)",c.style.left="0",c.style.flex="0 0 100%",c.classList?c.classList.add(Hu):c.className+=Hu,u.appendChild(c),c},l.removeBase=function(u){var c=l.parentNode;c&&c.removeChild(u)},l.state={isResizing:!1,width:(r=(n=l.propsSize)===null||n===void 0?void 0:n.width)!==null&&r!==void 0?r:"auto",height:(s=(a=l.propsSize)===null||a===void 0?void 0:a.height)!==null&&s!==void 0?s:"auto",direction:"right",original:{x:0,y:0,width:0,height:0},backgroundStyle:{height:"100%",width:"100%",backgroundColor:"rgba(0,0,0,0)",cursor:"auto",opacity:0,position:"fixed",zIndex:9999,top:"0",left:"0",bottom:"0",right:"0"},flexBasis:void 0},l.onResizeStart=l.onResizeStart.bind(l),l.onMouseMove=l.onMouseMove.bind(l),l.onMouseUp=l.onMouseUp.bind(l),l}return Object.defineProperty(t.prototype,"parentNode",{get:function(){return this.resizable?this.resizable.parentNode:null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"window",{get:function(){return!this.resizable||!this.resizable.ownerDocument?null:this.resizable.ownerDocument.defaultView},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"propsSize",{get:function(){return this.props.size||this.props.defaultSize||m0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"size",{get:function(){var i=0,n=0;if(this.resizable&&this.window){var r=this.resizable.offsetWidth,a=this.resizable.offsetHeight,s=this.resizable.style.position;s!=="relative"&&(this.resizable.style.position="relative"),i=this.resizable.style.width!=="auto"?this.resizable.offsetWidth:r,n=this.resizable.style.height!=="auto"?this.resizable.offsetHeight:a,this.resizable.style.position=s}return{width:i,height:n}},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"sizeStyle",{get:function(){var i=this,n=this.props.size,r=function(l){var u;if(typeof i.state[l]>"u"||i.state[l]==="auto")return"auto";if(i.propsSize&&i.propsSize[l]&&!((u=i.propsSize[l])===null||u===void 0)&&u.toString().endsWith("%")){if(i.state[l].toString().endsWith("%"))return i.state[l].toString();var c=i.getParentSize(),h=Number(i.state[l].toString().replace("px","")),p=h/c[l]*100;return"".concat(p,"%")}return gs(i.state[l])},a=n&&typeof n.width<"u"&&!this.state.isResizing?gs(n.width):r("width"),s=n&&typeof n.height<"u"&&!this.state.isResizing?gs(n.height):r("height");return{width:a,height:s}},enumerable:!1,configurable:!0}),t.prototype.getParentSize=function(){if(!this.parentNode)return this.window?{width:this.window.innerWidth,height:this.window.innerHeight}:{width:0,height:0};var i=this.appendBase();if(!i)return{width:0,height:0};var n=!1,r=this.parentNode.style.flexWrap;r!=="wrap"&&(n=!0,this.parentNode.style.flexWrap="wrap"),i.style.position="relative",i.style.minWidth="100%",i.style.minHeight="100%";var a={width:i.offsetWidth,height:i.offsetHeight};return n&&(this.parentNode.style.flexWrap=r),this.removeBase(i),a},t.prototype.bindEvents=function(){this.window&&(this.window.addEventListener("mouseup",this.onMouseUp),this.window.addEventListener("mousemove",this.onMouseMove),this.window.addEventListener("mouseleave",this.onMouseUp),this.window.addEventListener("touchmove",this.onMouseMove,{capture:!0,passive:!1}),this.window.addEventListener("touchend",this.onMouseUp))},t.prototype.unbindEvents=function(){this.window&&(this.window.removeEventListener("mouseup",this.onMouseUp),this.window.removeEventListener("mousemove",this.onMouseMove),this.window.removeEventListener("mouseleave",this.onMouseUp),this.window.removeEventListener("touchmove",this.onMouseMove,!0),this.window.removeEventListener("touchend",this.onMouseUp))},t.prototype.componentDidMount=function(){if(!(!this.resizable||!this.window)){var i=this.window.getComputedStyle(this.resizable);this.setState({width:this.state.width||this.size.width,height:this.state.height||this.size.height,flexBasis:i.flexBasis!=="auto"?i.flexBasis:void 0})}},t.prototype.componentWillUnmount=function(){this.window&&this.unbindEvents()},t.prototype.createSizeForCssProperty=function(i,n){var r=this.propsSize&&this.propsSize[n];return this.state[n]==="auto"&&this.state.original[n]===i&&(typeof r>"u"||r==="auto")?"auto":i},t.prototype.calculateNewMaxFromBoundary=function(i,n){var r=this.props.boundsByDirection,a=this.state.direction,s=r&&yn("left",a),l=r&&yn("top",a),u,c;if(this.props.bounds==="parent"){var h=this.parentNode;h&&(u=s?this.resizableRight-this.parentLeft:h.offsetWidth+(this.parentLeft-this.resizableLeft),c=l?this.resizableBottom-this.parentTop:h.offsetHeight+(this.parentTop-this.resizableTop))}else this.props.bounds==="window"?this.window&&(u=s?this.resizableRight:this.window.innerWidth-this.resizableLeft,c=l?this.resizableBottom:this.window.innerHeight-this.resizableTop):this.props.bounds&&(u=s?this.resizableRight-this.targetLeft:this.props.bounds.offsetWidth+(this.targetLeft-this.resizableLeft),c=l?this.resizableBottom-this.targetTop:this.props.bounds.offsetHeight+(this.targetTop-this.resizableTop));return u&&Number.isFinite(u)&&(i=i&&i<u?i:u),c&&Number.isFinite(c)&&(n=n&&n<c?n:c),{maxWidth:i,maxHeight:n}},t.prototype.calculateNewSizeFromDirection=function(i,n){var r=this.props.scale||1,a=b0(this.props.resizeRatio||1),s=a[0],l=a[1],u=this.state,c=u.direction,h=u.original,p=this.props,g=p.lockAspectRatio,m=p.lockAspectRatioExtraHeight,E=p.lockAspectRatioExtraWidth,v=h.width,k=h.height,S=m||0,w=E||0;return yn("right",c)&&(v=h.width+(i-h.x)*s/r,g&&(k=(v-w)/this.ratio+S)),yn("left",c)&&(v=h.width-(i-h.x)*s/r,g&&(k=(v-w)/this.ratio+S)),yn("bottom",c)&&(k=h.height+(n-h.y)*l/r,g&&(v=(k-S)*this.ratio+w)),yn("top",c)&&(k=h.height-(n-h.y)*l/r,g&&(v=(k-S)*this.ratio+w)),{newWidth:v,newHeight:k}},t.prototype.calculateNewSizeFromAspectRatio=function(i,n,r,a){var s=this.props,l=s.lockAspectRatio,u=s.lockAspectRatioExtraHeight,c=s.lockAspectRatioExtraWidth,h=typeof a.width>"u"?10:a.width,p=typeof r.width>"u"||r.width<0?i:r.width,g=typeof a.height>"u"?10:a.height,m=typeof r.height>"u"||r.height<0?n:r.height,E=u||0,v=c||0;if(l){var k=(g-E)*this.ratio+v,S=(m-E)*this.ratio+v,w=(h-v)/this.ratio+E,I=(p-v)/this.ratio+E,A=Math.max(h,k),y=Math.min(p,S),f=Math.max(g,w),O=Math.min(m,I);i=zr(i,A,y),n=zr(n,f,O)}else i=zr(i,h,p),n=zr(n,g,m);return{newWidth:i,newHeight:n}},t.prototype.setBoundingClientRect=function(){var i=1/(this.props.scale||1);if(this.props.bounds==="parent"){var n=this.parentNode;if(n){var r=n.getBoundingClientRect();this.parentLeft=r.left*i,this.parentTop=r.top*i}}if(this.props.bounds&&typeof this.props.bounds!="string"){var a=this.props.bounds.getBoundingClientRect();this.targetLeft=a.left*i,this.targetTop=a.top*i}if(this.resizable){var s=this.resizable.getBoundingClientRect(),l=s.left,u=s.top,c=s.right,h=s.bottom;this.resizableLeft=l*i,this.resizableRight=c*i,this.resizableTop=u*i,this.resizableBottom=h*i}},t.prototype.onResizeStart=function(i,n){if(!(!this.resizable||!this.window)){var r=0,a=0;if(i.nativeEvent&&v0(i.nativeEvent)?(r=i.nativeEvent.clientX,a=i.nativeEvent.clientY):i.nativeEvent&&Vr(i.nativeEvent)&&(r=i.nativeEvent.touches[0].clientX,a=i.nativeEvent.touches[0].clientY),this.props.onResizeStart&&this.resizable){var s=this.props.onResizeStart(i,n,this.resizable);if(s===!1)return}this.props.size&&(typeof this.props.size.height<"u"&&this.props.size.height!==this.state.height&&this.setState({height:this.props.size.height}),typeof this.props.size.width<"u"&&this.props.size.width!==this.state.width&&this.setState({width:this.props.size.width})),this.ratio=typeof this.props.lockAspectRatio=="number"?this.props.lockAspectRatio:this.size.width/this.size.height;var l,u=this.window.getComputedStyle(this.resizable);if(u.flexBasis!=="auto"){var c=this.parentNode;if(c){var h=this.window.getComputedStyle(c).flexDirection;this.flexDir=h.startsWith("row")?"row":"column",l=u.flexBasis}}this.setBoundingClientRect(),this.bindEvents();var p={original:{x:r,y:a,width:this.size.width,height:this.size.height},isResizing:!0,backgroundStyle:pi(pi({},this.state.backgroundStyle),{cursor:this.window.getComputedStyle(i.target).cursor||"auto"}),direction:n,flexBasis:l};this.setState(p)}},t.prototype.onMouseMove=function(i){var n=this;if(!(!this.state.isResizing||!this.resizable||!this.window)){if(this.window.TouchEvent&&Vr(i))try{i.preventDefault(),i.stopPropagation()}catch{}var r=this.props,a=r.maxWidth,s=r.maxHeight,l=r.minWidth,u=r.minHeight,c=Vr(i)?i.touches[0].clientX:i.clientX,h=Vr(i)?i.touches[0].clientY:i.clientY,p=this.state,g=p.direction,m=p.original,E=p.width,v=p.height,k=this.getParentSize(),S=x0(k,this.window.innerWidth,this.window.innerHeight,a,s,l,u);a=S.maxWidth,s=S.maxHeight,l=S.minWidth,u=S.minHeight;var w=this.calculateNewSizeFromDirection(c,h),I=w.newHeight,A=w.newWidth,y=this.calculateNewMaxFromBoundary(a,s);this.props.snap&&this.props.snap.x&&(A=Bu(A,this.props.snap.x,this.props.snapGap)),this.props.snap&&this.props.snap.y&&(I=Bu(I,this.props.snap.y,this.props.snapGap));var f=this.calculateNewSizeFromAspectRatio(A,I,{width:y.maxWidth,height:y.maxHeight},{width:l,height:u});if(A=f.newWidth,I=f.newHeight,this.props.grid){var O=Vu(A,this.props.grid[0],this.props.gridGap?this.props.gridGap[0]:0),P=Vu(I,this.props.grid[1],this.props.gridGap?this.props.gridGap[1]:0),F=this.props.snapGap||0,D=F===0||Math.abs(O-A)<=F?O:A,V=F===0||Math.abs(P-I)<=F?P:I;A=D,I=V}var J={width:A-m.width,height:I-m.height};if(this.delta=J,E&&typeof E=="string"){if(E.endsWith("%")){var ue=A/k.width*100;A="".concat(ue,"%")}else if(E.endsWith("vw")){var Q=A/this.window.innerWidth*100;A="".concat(Q,"vw")}else if(E.endsWith("vh")){var se=A/this.window.innerHeight*100;A="".concat(se,"vh")}}if(v&&typeof v=="string"){if(v.endsWith("%")){var ue=I/k.height*100;I="".concat(ue,"%")}else if(v.endsWith("vw")){var Q=I/this.window.innerWidth*100;I="".concat(Q,"vw")}else if(v.endsWith("vh")){var se=I/this.window.innerHeight*100;I="".concat(se,"vh")}}var j={width:this.createSizeForCssProperty(A,"width"),height:this.createSizeForCssProperty(I,"height")};this.flexDir==="row"?j.flexBasis=j.width:this.flexDir==="column"&&(j.flexBasis=j.height);var U=this.state.width!==j.width,Y=this.state.height!==j.height,de=this.state.flexBasis!==j.flexBasis,C=U||Y||de;C&&un.flushSync(function(){n.setState(j)}),this.props.onResize&&C&&this.props.onResize(i,g,this.resizable,J)}},t.prototype.onMouseUp=function(i){var n,r,a=this.state,s=a.isResizing,l=a.direction;a.original,!(!s||!this.resizable)&&(this.props.onResizeStop&&this.props.onResizeStop(i,l,this.resizable,this.delta),this.props.size&&this.setState({width:(n=this.props.size.width)!==null&&n!==void 0?n:"auto",height:(r=this.props.size.height)!==null&&r!==void 0?r:"auto"}),this.unbindEvents(),this.setState({isResizing:!1,backgroundStyle:pi(pi({},this.state.backgroundStyle),{cursor:"auto"})}))},t.prototype.updateSize=function(i){var n,r;this.setState({width:(n=i.width)!==null&&n!==void 0?n:"auto",height:(r=i.height)!==null&&r!==void 0?r:"auto"})},t.prototype.renderResizer=function(){var i=this,n=this.props,r=n.enable,a=n.handleStyles,s=n.handleClasses,l=n.handleWrapperStyle,u=n.handleWrapperClass,c=n.handleComponent;if(!r)return null;var h=Object.keys(r).map(function(p){return r[p]!==!1?b.jsx(f0,{direction:p,onResizeStart:i.onResizeStart,replaceStyles:a&&a[p],className:s&&s[p],children:c&&c[p]?c[p]:null},p):null});return b.jsx("div",{className:u,style:l,children:h})},t.prototype.render=function(){var i=this,n=Object.keys(this.props).reduce(function(s,l){return y0.indexOf(l)!==-1||(s[l]=i.props[l]),s},{}),r=pi(pi(pi({position:"relative",userSelect:this.state.isResizing?"none":"auto"},this.props.style),this.sizeStyle),{maxWidth:this.props.maxWidth,maxHeight:this.props.maxHeight,minWidth:this.props.minWidth,minHeight:this.props.minHeight,boxSizing:"border-box",flexShrink:0});this.state.flexBasis&&(r.flexBasis=this.state.flexBasis);var a=this.props.as||"div";return b.jsxs(a,pi({style:r,className:this.props.className},n,{ref:function(s){s&&(i.resizable=s)},children:[this.state.isResizing&&b.jsx("div",{style:this.state.backgroundStyle}),this.props.children,this.renderResizer()]}))},t.defaultProps={as:"div",onResizeStart:function(){},onResize:function(){},onResizeStop:function(){},enable:{top:!0,right:!0,bottom:!0,left:!0,topRight:!0,bottomRight:!0,bottomLeft:!0,topLeft:!0},style:{},grid:[1,1],gridGap:[0,0],lockAspectRatio:!1,lockAspectRatioExtraWidth:0,lockAspectRatioExtraHeight:0,scale:1,resizeRatio:1,snapGap:0},t})(M.PureComponent);const k0={0:"bg-panel-0",1:"bg-panel-1",2:"bg-panel-2",3:"bg-panel-3",4:"bg-panel-4",5:"bg-panel-5"},S0={tabs:"border-tab-border",primary:"border-primary",negative:"border-input-error-border",positive:"border-positive",light:"border-panel-border-subtle",default:"border-panel-border"},Sd=({depth:e=0,className:t,borderType:i,disabled:n})=>he("transition-colors duration-200",{"text-body":!n,"text-inactive-text":n},i?S0[i]:"border-panel-border",k0[e],t),E0=e=>{if(!e)return{};const t={},i=e.match(/min-w-\[(\d+)px\]/);i&&(t.minWidth=parseInt(i[1],10));const n=e.match(/max-w-\[(\d+)px\]/);n&&(t.maxWidth=parseInt(n[1],10));const r=e.match(/min-h-\[(\d+)px\]/);r&&(t.minHeight=parseInt(r[1],10));const a=e.match(/max-h-\[(\d+)px\]/);return a&&(t.maxHeight=parseInt(a[1],10)),t},C0=M.forwardRef(({children:e,width:t,height:i,minWidth:n=10,minHeight:r=10,maxWidth:a,maxHeight:s,defaultWidth:l,defaultHeight:u,defaultSize:c,size:h,grid:p,snap:g,lockAspectRatio:m=!1,enable:E,handleStyles:v={},handleClasses:k={},handleComponent:S={},style:w={},className:I,onResizeStart:A,onResize:y,onResizeStop:f,scale:O=1,bounds:P,snapGap:F,as:D="div",depth:V,disabled:J},ue)=>{const Q=Sd({depth:V,className:I,disabled:J}),se=E0(I),j=h?{size:h}:t!==void 0||i!==void 0?{size:{width:t??"auto",height:i??"auto"}}:{},U=c?{defaultSize:c}:l!==void 0||u!==void 0?{defaultSize:{width:l??"auto",height:u??"auto"}}:{},Y=M.useRef(null);return M.useImperativeHandle(ue,()=>{var de;return(de=Y.current)==null?void 0:de.resizable}),b.jsx(w0,{"data-qui":"Resizable",ref:Y,...j,...U,minWidth:n??se.minWidth,minHeight:r??se.minHeight,maxWidth:a??se.maxWidth,maxHeight:s??se.maxHeight,grid:p,snap:g,lockAspectRatio:m,enable:E,handleStyles:v,handleClasses:k,handleComponent:S,style:w,className:he("relative box-border",Q),onResizeStart:A,onResize:y,onResizeStop:f,scale:O,bounds:P,snapGap:F,as:D,children:e})});C0.displayName="Resizable";const wn={sm:{track:"h-4 w-7",thumb:"size-3",thumbUnchecked:"left-0.5",thumbChecked:"left-3.5",label:"text-xs",gap:"gap-2"},md:{track:"h-5 w-9",thumb:"size-4",thumbUnchecked:"left-0.5",thumbChecked:"left-4.5",label:"text-sm",gap:"gap-2.5"},lg:{track:"h-6 w-11",thumb:"size-5",thumbUnchecked:"left-0.5",thumbChecked:"left-5.5",label:"text-base",gap:"gap-3"}},Hr={primary:{bg:"bg-primary",thumb:"group-hover:bg-primary-light",icon:"text-primary"},positive:{bg:"bg-positive",thumb:"group-hover:bg-positive-light",icon:"text-positive"},warning:{bg:"bg-warning",thumb:"group-hover:bg-warning-light",icon:"text-warning"},negative:{bg:"bg-negative",thumb:"group-hover:bg-negative-light",icon:"text-negative"}},I0=(e,t,i,n,r,a)=>({container:he("inline-flex items-center",wn[e].gap,a),track:he("relative inline-flex items-center shrink-0 group","transition-colors duration-200 ease-in-out","focus:outline-hidden focus-visible:ring-2 focus-visible:ring-primary focus-visible:ring-offset-2","border border-input-border rounded-full justify-between",wn[e].track,{[Hr[t].bg]:i&&!n&&!r,"bg-input-bg":!i&&!n||r,"bg-panel cursor-not-allowed":n,"cursor-pointer":!n}),thumb:he("bg-input-text pointer-events-none inline-flex items-center justify-center shadow-xs","transition-all duration-200 ease-in-out","rounded-full absolute",wn[e].thumb,i?wn[e].thumbChecked:wn[e].thumbUnchecked,{[Hr[t].thumb]:!n,"bg-canvas-subtle":n}),iconLeft:he("flex items-center justify-center z-10 w-1/2 p-0.5",{[Hr[t].icon]:!i&&!n,"text-panel-subtle":n||i}),iconRight:he("flex items-center justify-center z-10 w-1/2 p-0.5",{[Hr[t].icon]:i&&!n,"text-panel-subtle":n||!i}),label:he("font-medium text-body",wn[e].label,{"cursor-pointer":!n,"cursor-not-allowed text-muted":n})}),Ed=M.forwardRef(({label:e,checked:t,defaultChecked:i=!1,disabled:n=!1,size:r="md",color:a="primary",icons:s,onChange:l,className:u,id:c,name:h,...p},g)=>{const[m,E]=M.useState(i),v=t!==void 0,k=v?t:m,S=()=>{const I=!k;v||E(I),l==null||l(I)},w=I0(r,a,k,n,!!s,u);return b.jsxs("div",{"data-qui":"Toggle",className:w.container,children:[e&&b.jsx("label",{htmlFor:c,className:w.label,children:e}),b.jsxs("button",{ref:g,...p,type:"button",role:"switch","aria-checked":k,"aria-label":e,disabled:n,onClick:S,name:h,id:c,className:w.track,children:[s&&b.jsx("span",{className:w.iconLeft,children:s.unchecked}),b.jsx("span",{className:w.thumb,"aria-hidden":"true"}),s&&b.jsx("span",{className:w.iconRight,children:s.checked})]})]})});Ed.displayName="Toggle";M.createContext(null);const Wi=M.forwardRef(({depth:e=0,className:t,children:i,borderType:n,disabled:r,...a},s)=>{const l=Sd({depth:e,className:t,borderType:n,disabled:r});return b.jsx("div",{"data-qui":"Panel",ref:s,className:l,"aria-disabled":r,...a,children:i})});Wi.displayName="Panel";const cr={sm:{container:"h-5 px-0.5 gap-1 rounded",text:"text-xxs leading-3",icon:"text-s",iconButton:"text-s p-0.5 cursor-pointer"},md:{container:"h-5.5 px-1 gap-1 rounded",text:"text-xs leading-4",icon:"text-sm",iconButton:" text-sm p-0.5 cursor-pointer"},lg:{container:"h-6 px-1.5 gap-1.5 rounded",text:"text-s leading-none",icon:"text-base",iconButton:"text-base p-0.5 cursor-pointer"}},aa={primary:{bg:"bg-primary",text:"text-button-text",border:"border-primary",buttonHover:"hover:bg-primary-hover"},white:{bg:"bg-canvas-default",text:"text-primary",border:"border-canvas-default",buttonHover:"hover:bg-primary-hover hover:text-button-text"},positive:{bg:"bg-positive",text:"text-button-text",border:"border-positive",buttonHover:"hover:bg-positive-hover"},warning:{bg:"bg-warning",text:"text-button-text",border:"border-warning",buttonHover:"hover:bg-warning-hover"},negative:{bg:"bg-negative",text:"text-button-text",border:"border-negative",buttonHover:"hover:bg-negative-hover"},grey:{bg:"bg-input-bg",text:"text-input-text",border:"border-input-border",buttonHover:"hover:bg-input-hover"},dark:{bg:"bg-tab-inactive-bg",text:"text-input-text",border:"border-input-border",buttonHover:"hover:bg-primary-hover hover:text-button-text"}},_0=(e,t,i,n)=>he("inline-flex items-center justify-center font-medium border",cr[e].container,aa[t].bg,aa[t].text,aa[t].border,cr[e].text,{"opacity-60 pointer-events-none":i,"cursor-pointer hover:bg-opacity-90 transition-opacity":n&&!i}),A0=(e,t,i)=>he({[cr[e].icon]:!i,"bg-canvas-default outline-canvas-default text-primary":i&&t!=="white"||i,"bg-primary outline-primary text-button-text":i&&t==="white"&&!i,"outline-solid outline-1 h-full py-0.5 grid place-items-center -my-1 only:-mx-0.5 first:-ml-1.5 last:-mr-1.5 only:rounded first:rounded-l last:rounded-r":i||i}),N0=e=>he(cr[e].text),Cd=(e,t,i)=>he("inline-flex items-center justify-center rounded transition-colors duration-200 focus:outline-hidden ",cr[e].iconButton,aa[t].buttonHover,{"pointer-events-none":i}),Id=M.createContext(null),Ha=()=>{const e=M.useContext(Id);if(!e)throw new Error("Pill components must be used within a Pill.Root");return e},Bo=M.forwardRef(({size:e="md",color:t="primary",className:i,children:n,disabled:r=!1,onClick:a,...s},l)=>{const u={size:e,color:t,disabled:r},c=!!a;return b.jsx(Id.Provider,{value:u,children:b.jsx("div",{"data-qui":"Pill",ref:l,onClick:a,className:he(_0(e,t,r,c),i),...s,children:n})})});Bo.displayName="Pill.Root";const Ho=M.forwardRef(({className:e,children:t,...i},n)=>{const{size:r}=Ha();return b.jsx("span",{ref:n,className:he(N0(r),e),...i,children:t})});Ho.displayName="Pill.Text";const Ko=M.forwardRef(({className:e,children:t,label:i,position:n,...r},a)=>{const{size:s,color:l,disabled:u}=Ha(),c=!!i,h=b.jsx("span",{ref:a,className:he(A0(s,l,c),e,{"opacity-60":u}),...r,children:t});return c&&!u?b.jsx(wt,{label:i||"",position:n||"up",children:h}):h});Ko.displayName="Pill.Icon";const _d=M.forwardRef(({className:e,children:t,...i},n)=>{const{size:r,color:a,disabled:s}=Ha();return b.jsx("button",{ref:n,type:"button",disabled:s,className:he(Cd(r,a,s),e),...i,children:t})});_d.displayName="Pill.Button";const Wo=M.forwardRef(({className:e,onClose:t,"aria-label":i="Remove pill",children:n,...r},a)=>{const{size:s,color:l,disabled:u}=Ha();return b.jsx("button",{ref:a,type:"button",disabled:u,className:he(Cd(s,l,u),e),onClick:t,"aria-label":i,...r,children:n||b.jsx(ja,{})})});Wo.displayName="Pill.Close";const Ad=M.forwardRef(({size:e="md",color:t="primary",label:i,icon:n,onClose:r,closable:a=!1,className:s,children:l,disabled:u=!1,...c},h)=>b.jsxs(Bo,{ref:h,size:e,color:t,className:s,disabled:u,...c,children:[n&&b.jsx(Ko,{children:n}),l||i&&b.jsx(Ho,{children:i}),a&&b.jsx(Wo,{onClose:r})]}));Ad.displayName="Pill";const T0=Object.assign(Ad,{Root:Bo,Text:Ho,Icon:Ko,Button:_d,Close:Wo});function kn(e,t,i){let n=i.initialDeps??[],r,a=!0;function s(){var l,u,c;let h;i.key&&(l=i.debug)!=null&&l.call(i)&&(h=Date.now());const p=e();if(!(p.length!==n.length||p.some((m,E)=>n[E]!==m)))return r;n=p;let g;if(i.key&&(u=i.debug)!=null&&u.call(i)&&(g=Date.now()),r=t(...p),i.key&&(c=i.debug)!=null&&c.call(i)){const m=Math.round((Date.now()-h)*100)/100,E=Math.round((Date.now()-g)*100)/100,v=E/16,k=(S,w)=>{for(S=String(S);S.length<w;)S=" "+S;return S};console.info(`%c⏱ ${k(E,5)} /${k(m,5)} ms`,`
18
- font-size: .6rem;
19
- font-weight: bold;
20
- color: hsl(${Math.max(0,Math.min(120-120*v,120))}deg 100% 31%);`,i==null?void 0:i.key)}return i!=null&&i.onChange&&!(a&&i.skipInitialOnChange)&&i.onChange(r),a=!1,r}return s.updateDeps=l=>{n=l},s}function Ku(e,t){if(e===void 0)throw new Error("Unexpected undefined");return e}const O0=(e,t)=>Math.abs(e-t)<1.01,P0=(e,t,i)=>{let n;return function(...r){e.clearTimeout(n),n=e.setTimeout(()=>t.apply(this,r),i)}},Wu=e=>{const{offsetWidth:t,offsetHeight:i}=e;return{width:t,height:i}},R0=e=>e,M0=e=>{const t=Math.max(e.startIndex-e.overscan,0),i=Math.min(e.endIndex+e.overscan,e.count-1),n=[];for(let r=t;r<=i;r++)n.push(r);return n},L0=(e,t)=>{const i=e.scrollElement;if(!i)return;const n=e.targetWindow;if(!n)return;const r=s=>{const{width:l,height:u}=s;t({width:Math.round(l),height:Math.round(u)})};if(r(Wu(i)),!n.ResizeObserver)return()=>{};const a=new n.ResizeObserver(s=>{const l=()=>{const u=s[0];if(u!=null&&u.borderBoxSize){const c=u.borderBoxSize[0];if(c){r({width:c.inlineSize,height:c.blockSize});return}}r(Wu(i))};e.options.useAnimationFrameWithResizeObserver?requestAnimationFrame(l):l()});return a.observe(i,{box:"border-box"}),()=>{a.unobserve(i)}},Uu={passive:!0},qu=typeof window>"u"?!0:"onscrollend"in window,D0=(e,t)=>{const i=e.scrollElement;if(!i)return;const n=e.targetWindow;if(!n)return;let r=0;const a=e.options.useScrollendEvent&&qu?()=>{}:P0(n,()=>{t(r,!1)},e.options.isScrollingResetDelay),s=h=>()=>{const{horizontal:p,isRtl:g}=e.options;r=p?i.scrollLeft*(g&&-1||1):i.scrollTop,a(),t(r,h)},l=s(!0),u=s(!1);i.addEventListener("scroll",l,Uu);const c=e.options.useScrollendEvent&&qu;return c&&i.addEventListener("scrollend",u,Uu),()=>{i.removeEventListener("scroll",l),c&&i.removeEventListener("scrollend",u)}},F0=(e,t,i)=>{if(t!=null&&t.borderBoxSize){const n=t.borderBoxSize[0];if(n)return Math.round(n[i.options.horizontal?"inlineSize":"blockSize"])}return e[i.options.horizontal?"offsetWidth":"offsetHeight"]},j0=(e,{adjustments:t=0,behavior:i},n)=>{var r,a;const s=e+t;(a=(r=n.scrollElement)==null?void 0:r.scrollTo)==null||a.call(r,{[n.options.horizontal?"left":"top"]:s,behavior:i})};class z0{constructor(t){this.unsubs=[],this.scrollElement=null,this.targetWindow=null,this.isScrolling=!1,this.scrollState=null,this.measurementsCache=[],this.itemSizeCache=new Map,this.laneAssignments=new Map,this.pendingMeasuredCacheIndexes=[],this.prevLanes=void 0,this.lanesChangedFlag=!1,this.lanesSettling=!1,this.scrollRect=null,this.scrollOffset=null,this.scrollDirection=null,this.scrollAdjustments=0,this.elementsCache=new Map,this.now=()=>{var i,n,r;return((r=(n=(i=this.targetWindow)==null?void 0:i.performance)==null?void 0:n.now)==null?void 0:r.call(n))??Date.now()},this.observer=(()=>{let i=null;const n=()=>i||(!this.targetWindow||!this.targetWindow.ResizeObserver?null:i=new this.targetWindow.ResizeObserver(r=>{r.forEach(a=>{const s=()=>{const l=a.target,u=this.indexFromElement(l);if(!l.isConnected){this.observer.unobserve(l);return}this.shouldMeasureDuringScroll(u)&&this.resizeItem(u,this.options.measureElement(l,a,this))};this.options.useAnimationFrameWithResizeObserver?requestAnimationFrame(s):s()})}));return{disconnect:()=>{var r;(r=n())==null||r.disconnect(),i=null},observe:r=>{var a;return(a=n())==null?void 0:a.observe(r,{box:"border-box"})},unobserve:r=>{var a;return(a=n())==null?void 0:a.unobserve(r)}}})(),this.range=null,this.setOptions=i=>{Object.entries(i).forEach(([n,r])=>{typeof r>"u"&&delete i[n]}),this.options={debug:!1,initialOffset:0,overscan:1,paddingStart:0,paddingEnd:0,scrollPaddingStart:0,scrollPaddingEnd:0,horizontal:!1,getItemKey:R0,rangeExtractor:M0,onChange:()=>{},measureElement:F0,initialRect:{width:0,height:0},scrollMargin:0,gap:0,indexAttribute:"data-index",initialMeasurementsCache:[],lanes:1,isScrollingResetDelay:150,enabled:!0,isRtl:!1,useScrollendEvent:!1,useAnimationFrameWithResizeObserver:!1,...i}},this.notify=i=>{var n,r;(r=(n=this.options).onChange)==null||r.call(n,this,i)},this.maybeNotify=kn(()=>(this.calculateRange(),[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]),i=>{this.notify(i)},{key:ce.NODE_ENV!=="production"&&"maybeNotify",debug:()=>this.options.debug,initialDeps:[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]}),this.cleanup=()=>{this.unsubs.filter(Boolean).forEach(i=>i()),this.unsubs=[],this.observer.disconnect(),this.rafId!=null&&this.targetWindow&&(this.targetWindow.cancelAnimationFrame(this.rafId),this.rafId=null),this.scrollState=null,this.scrollElement=null,this.targetWindow=null},this._didMount=()=>()=>{this.cleanup()},this._willUpdate=()=>{var i;const n=this.options.enabled?this.options.getScrollElement():null;if(this.scrollElement!==n){if(this.cleanup(),!n){this.maybeNotify();return}this.scrollElement=n,this.scrollElement&&"ownerDocument"in this.scrollElement?this.targetWindow=this.scrollElement.ownerDocument.defaultView:this.targetWindow=((i=this.scrollElement)==null?void 0:i.window)??null,this.elementsCache.forEach(r=>{this.observer.observe(r)}),this.unsubs.push(this.options.observeElementRect(this,r=>{this.scrollRect=r,this.maybeNotify()})),this.unsubs.push(this.options.observeElementOffset(this,(r,a)=>{this.scrollAdjustments=0,this.scrollDirection=a?this.getScrollOffset()<r?"forward":"backward":null,this.scrollOffset=r,this.isScrolling=a,this.scrollState&&this.scheduleScrollReconcile(),this.maybeNotify()})),this._scrollToOffset(this.getScrollOffset(),{adjustments:void 0,behavior:void 0})}},this.rafId=null,this.getSize=()=>this.options.enabled?(this.scrollRect=this.scrollRect??this.options.initialRect,this.scrollRect[this.options.horizontal?"width":"height"]):(this.scrollRect=null,0),this.getScrollOffset=()=>this.options.enabled?(this.scrollOffset=this.scrollOffset??(typeof this.options.initialOffset=="function"?this.options.initialOffset():this.options.initialOffset),this.scrollOffset):(this.scrollOffset=null,0),this.getFurthestMeasurement=(i,n)=>{const r=new Map,a=new Map;for(let s=n-1;s>=0;s--){const l=i[s];if(r.has(l.lane))continue;const u=a.get(l.lane);if(u==null||l.end>u.end?a.set(l.lane,l):l.end<u.end&&r.set(l.lane,!0),r.size===this.options.lanes)break}return a.size===this.options.lanes?Array.from(a.values()).sort((s,l)=>s.end===l.end?s.index-l.index:s.end-l.end)[0]:void 0},this.getMeasurementOptions=kn(()=>[this.options.count,this.options.paddingStart,this.options.scrollMargin,this.options.getItemKey,this.options.enabled,this.options.lanes],(i,n,r,a,s,l)=>(this.prevLanes!==void 0&&this.prevLanes!==l&&(this.lanesChangedFlag=!0),this.prevLanes=l,this.pendingMeasuredCacheIndexes=[],{count:i,paddingStart:n,scrollMargin:r,getItemKey:a,enabled:s,lanes:l}),{key:!1}),this.getMeasurements=kn(()=>[this.getMeasurementOptions(),this.itemSizeCache],({count:i,paddingStart:n,scrollMargin:r,getItemKey:a,enabled:s,lanes:l},u)=>{if(!s)return this.measurementsCache=[],this.itemSizeCache.clear(),this.laneAssignments.clear(),[];if(this.laneAssignments.size>i)for(const g of this.laneAssignments.keys())g>=i&&this.laneAssignments.delete(g);this.lanesChangedFlag&&(this.lanesChangedFlag=!1,this.lanesSettling=!0,this.measurementsCache=[],this.itemSizeCache.clear(),this.laneAssignments.clear(),this.pendingMeasuredCacheIndexes=[]),this.measurementsCache.length===0&&!this.lanesSettling&&(this.measurementsCache=this.options.initialMeasurementsCache,this.measurementsCache.forEach(g=>{this.itemSizeCache.set(g.key,g.size)}));const c=this.lanesSettling?0:this.pendingMeasuredCacheIndexes.length>0?Math.min(...this.pendingMeasuredCacheIndexes):0;this.pendingMeasuredCacheIndexes=[],this.lanesSettling&&this.measurementsCache.length===i&&(this.lanesSettling=!1);const h=this.measurementsCache.slice(0,c),p=new Array(l).fill(void 0);for(let g=0;g<c;g++){const m=h[g];m&&(p[m.lane]=g)}for(let g=c;g<i;g++){const m=a(g),E=this.laneAssignments.get(g);let v,k;if(E!==void 0&&this.options.lanes>1){v=E;const A=p[v],y=A!==void 0?h[A]:void 0;k=y?y.end+this.options.gap:n+r}else{const A=this.options.lanes===1?h[g-1]:this.getFurthestMeasurement(h,g);k=A?A.end+this.options.gap:n+r,v=A?A.lane:g%this.options.lanes,this.options.lanes>1&&this.laneAssignments.set(g,v)}const S=u.get(m),w=typeof S=="number"?S:this.options.estimateSize(g),I=k+w;h[g]={index:g,start:k,size:w,end:I,key:m,lane:v},p[v]=g}return this.measurementsCache=h,h},{key:ce.NODE_ENV!=="production"&&"getMeasurements",debug:()=>this.options.debug}),this.calculateRange=kn(()=>[this.getMeasurements(),this.getSize(),this.getScrollOffset(),this.options.lanes],(i,n,r,a)=>this.range=i.length>0&&n>0?V0({measurements:i,outerSize:n,scrollOffset:r,lanes:a}):null,{key:ce.NODE_ENV!=="production"&&"calculateRange",debug:()=>this.options.debug}),this.getVirtualIndexes=kn(()=>{let i=null,n=null;const r=this.calculateRange();return r&&(i=r.startIndex,n=r.endIndex),this.maybeNotify.updateDeps([this.isScrolling,i,n]),[this.options.rangeExtractor,this.options.overscan,this.options.count,i,n]},(i,n,r,a,s)=>a===null||s===null?[]:i({startIndex:a,endIndex:s,overscan:n,count:r}),{key:ce.NODE_ENV!=="production"&&"getVirtualIndexes",debug:()=>this.options.debug}),this.indexFromElement=i=>{const n=this.options.indexAttribute,r=i.getAttribute(n);return r?parseInt(r,10):(console.warn(`Missing attribute name '${n}={index}' on measured element.`),-1)},this.shouldMeasureDuringScroll=i=>{var n;if(!this.scrollState||this.scrollState.behavior!=="smooth")return!0;const r=this.scrollState.index??((n=this.getVirtualItemForOffset(this.scrollState.lastTargetOffset))==null?void 0:n.index);if(r!==void 0&&this.range){const a=Math.max(this.options.overscan,Math.ceil((this.range.endIndex-this.range.startIndex)/2)),s=Math.max(0,r-a),l=Math.min(this.options.count-1,r+a);return i>=s&&i<=l}return!0},this.measureElement=i=>{if(!i){this.elementsCache.forEach((s,l)=>{s.isConnected||(this.observer.unobserve(s),this.elementsCache.delete(l))});return}const n=this.indexFromElement(i),r=this.options.getItemKey(n),a=this.elementsCache.get(r);a!==i&&(a&&this.observer.unobserve(a),this.observer.observe(i),this.elementsCache.set(r,i)),(!this.isScrolling||this.scrollState)&&this.shouldMeasureDuringScroll(n)&&this.resizeItem(n,this.options.measureElement(i,void 0,this))},this.resizeItem=(i,n)=>{var r;const a=this.measurementsCache[i];if(!a)return;const s=this.itemSizeCache.get(a.key)??a.size,l=n-s;l!==0&&(((r=this.scrollState)==null?void 0:r.behavior)!=="smooth"&&(this.shouldAdjustScrollPositionOnItemSizeChange!==void 0?this.shouldAdjustScrollPositionOnItemSizeChange(a,l,this):a.start<this.getScrollOffset()+this.scrollAdjustments)&&(ce.NODE_ENV!=="production"&&this.options.debug&&console.info("correction",l),this._scrollToOffset(this.getScrollOffset(),{adjustments:this.scrollAdjustments+=l,behavior:void 0})),this.pendingMeasuredCacheIndexes.push(a.index),this.itemSizeCache=new Map(this.itemSizeCache.set(a.key,n)),this.notify(!1))},this.getVirtualItems=kn(()=>[this.getVirtualIndexes(),this.getMeasurements()],(i,n)=>{const r=[];for(let a=0,s=i.length;a<s;a++){const l=i[a],u=n[l];r.push(u)}return r},{key:ce.NODE_ENV!=="production"&&"getVirtualItems",debug:()=>this.options.debug}),this.getVirtualItemForOffset=i=>{const n=this.getMeasurements();if(n.length!==0)return Ku(n[Nd(0,n.length-1,r=>Ku(n[r]).start,i)])},this.getMaxScrollOffset=()=>{if(!this.scrollElement)return 0;if("scrollHeight"in this.scrollElement)return this.options.horizontal?this.scrollElement.scrollWidth-this.scrollElement.clientWidth:this.scrollElement.scrollHeight-this.scrollElement.clientHeight;{const i=this.scrollElement.document.documentElement;return this.options.horizontal?i.scrollWidth-this.scrollElement.innerWidth:i.scrollHeight-this.scrollElement.innerHeight}},this.getOffsetForAlignment=(i,n,r=0)=>{if(!this.scrollElement)return 0;const a=this.getSize(),s=this.getScrollOffset();n==="auto"&&(n=i>=s+a?"end":"start"),n==="center"?i+=(r-a)/2:n==="end"&&(i-=a);const l=this.getMaxScrollOffset();return Math.max(Math.min(l,i),0)},this.getOffsetForIndex=(i,n="auto")=>{i=Math.max(0,Math.min(i,this.options.count-1));const r=this.getSize(),a=this.getScrollOffset(),s=this.measurementsCache[i];if(!s)return;if(n==="auto")if(s.end>=a+r-this.options.scrollPaddingEnd)n="end";else if(s.start<=a+this.options.scrollPaddingStart)n="start";else return[a,n];if(n==="end"&&i===this.options.count-1)return[this.getMaxScrollOffset(),n];const l=n==="end"?s.end+this.options.scrollPaddingEnd:s.start-this.options.scrollPaddingStart;return[this.getOffsetForAlignment(l,n,s.size),n]},this.scrollToOffset=(i,{align:n="start",behavior:r="auto"}={})=>{const a=this.getOffsetForAlignment(i,n),s=this.now();this.scrollState={index:null,align:n,behavior:r,startedAt:s,lastTargetOffset:a,stableFrames:0},this._scrollToOffset(a,{adjustments:void 0,behavior:r}),this.scheduleScrollReconcile()},this.scrollToIndex=(i,{align:n="auto",behavior:r="auto"}={})=>{i=Math.max(0,Math.min(i,this.options.count-1));const a=this.getOffsetForIndex(i,n);if(!a)return;const[s,l]=a,u=this.now();this.scrollState={index:i,align:l,behavior:r,startedAt:u,lastTargetOffset:s,stableFrames:0},this._scrollToOffset(s,{adjustments:void 0,behavior:r}),this.scheduleScrollReconcile()},this.scrollBy=(i,{behavior:n="auto"}={})=>{const r=this.getScrollOffset()+i,a=this.now();this.scrollState={index:null,align:"start",behavior:n,startedAt:a,lastTargetOffset:r,stableFrames:0},this._scrollToOffset(r,{adjustments:void 0,behavior:n}),this.scheduleScrollReconcile()},this.getTotalSize=()=>{var i;const n=this.getMeasurements();let r;if(n.length===0)r=this.options.paddingStart;else if(this.options.lanes===1)r=((i=n[n.length-1])==null?void 0:i.end)??0;else{const a=Array(this.options.lanes).fill(null);let s=n.length-1;for(;s>=0&&a.some(l=>l===null);){const l=n[s];a[l.lane]===null&&(a[l.lane]=l.end),s--}r=Math.max(...a.filter(l=>l!==null))}return Math.max(r-this.options.scrollMargin+this.options.paddingEnd,0)},this._scrollToOffset=(i,{adjustments:n,behavior:r})=>{this.options.scrollToFn(i,{behavior:r,adjustments:n},this)},this.measure=()=>{this.itemSizeCache=new Map,this.laneAssignments=new Map,this.notify(!1)},this.setOptions(t)}scheduleScrollReconcile(){if(!this.targetWindow){this.scrollState=null;return}this.rafId==null&&(this.rafId=this.targetWindow.requestAnimationFrame(()=>{this.rafId=null,this.reconcileScroll()}))}reconcileScroll(){if(!this.scrollState||!this.scrollElement)return;if(this.now()-this.scrollState.startedAt>5e3){this.scrollState=null;return}const t=this.scrollState.index!=null?this.getOffsetForIndex(this.scrollState.index,this.scrollState.align):void 0,i=t?t[0]:this.scrollState.lastTargetOffset,n=1,r=i!==this.scrollState.lastTargetOffset;if(!r&&O0(i,this.getScrollOffset())){if(this.scrollState.stableFrames++,this.scrollState.stableFrames>=n){this.scrollState=null;return}}else this.scrollState.stableFrames=0,r&&(this.scrollState.lastTargetOffset=i,this.scrollState.behavior="auto",this._scrollToOffset(i,{adjustments:void 0,behavior:"auto"}));this.scheduleScrollReconcile()}}const Nd=(e,t,i,n)=>{for(;e<=t;){const r=(e+t)/2|0,a=i(r);if(a<n)e=r+1;else if(a>n)t=r-1;else return r}return e>0?e-1:0};function V0({measurements:e,outerSize:t,scrollOffset:i,lanes:n}){const r=e.length-1,a=u=>e[u].start;if(e.length<=n)return{startIndex:0,endIndex:r};let s=Nd(0,r,a,i),l=s;if(n===1)for(;l<r&&e[l].end<i+t;)l++;else if(n>1){const u=Array(n).fill(0);for(;l<r&&u.some(h=>h<i+t);){const h=e[l];u[h.lane]=h.end,l++}const c=Array(n).fill(i+t);for(;s>=0&&c.some(h=>h>=i);){const h=e[s];c[h.lane]=h.start,s--}s=Math.max(0,s-s%n),l=Math.min(r,l+(n-1-l%n))}return{startIndex:s,endIndex:l}}const Gu=typeof document<"u"?q.useLayoutEffect:q.useEffect;function B0({useFlushSync:e=!0,...t}){const i=q.useReducer(()=>({}),{})[1],n={...t,onChange:(a,s)=>{var l;e&&s?un.flushSync(i):i(),(l=t.onChange)==null||l.call(t,a,s)}},[r]=q.useState(()=>new z0(n));return r.setOptions(n),Gu(()=>r._didMount(),[]),Gu(()=>r._willUpdate()),r}function H0(e){return B0({observeElementRect:L0,observeElementOffset:D0,scrollToFn:j0,...e})}const Td=M.createContext(null),bt=()=>{const e=M.useContext(Td);if(!e)throw new Error("Select compound components must be used within Select.Root");return e},mt={sm:{trigger:"h-5 min-h-fit",control:"min-h-5 p-0.5 gap-1",input:"text-xs h-3.5",placeholder:"placeholder:text-xs text-xs",singleValue:"text-xs",multiValue:"h-3.5 px-0.5 gap-1 text-xxs",multiValueLabel:"text-xxs",multiValueRemove:"w-3 h-3",indicatorsContainer:"gap-1",clearIndicator:"p-0.5 size-3",dropdownIndicator:"p-0.5 size-3",indicatorSeparator:"h-3",loadingIndicator:"w-3 h-3",menu:"m-0",menuList:"py-1",option:"px-1 py-0.5 text-xs",group:"pt-1",groupHeading:"px-2 py-0.5 text-xxs",noOptionsMessage:"px-2 py-1 text-xxs",loadingMessage:"px-2 py-1 text-xxs",message:"text-xxs p-1.5",icon:"text-sm"},md:{trigger:"h-6 min-h-fit",control:"min-h-6 p-1 gap-1.5",input:"text-s h-4",placeholder:"placeholder:text-s text-s",singleValue:"text-s",multiValue:"h-4 p-1 gap-1 text-xs",multiValueLabel:"text-xs",multiValueRemove:"w-3.5 h-3.5",indicatorsContainer:"gap-1",clearIndicator:"p-0.5 size-4",dropdownIndicator:"p-0.5 size-4",indicatorSeparator:"h-4",loadingIndicator:"w-4 h-4",menu:"m-0",menuList:"py-1",option:"px-2 py-1 text-s",group:"pt-1.5",groupHeading:"px-3 py-1 text-xs",noOptionsMessage:"px-2 py-1.5 text-xs",loadingMessage:"px-3 py-1.5 text-xs",message:"text-xs p-2",icon:"text-base"},lg:{trigger:"h-7 min-h-fit",control:"min-h-7 p-1.5 gap-2",input:"text-sm h-5",placeholder:"placeholder:text-sm text-sm",singleValue:"text-sm",multiValue:"h-5 px-1.5 gap-1.5 text-s",multiValueLabel:"text-xs",multiValueRemove:"w-4 h-4",indicatorsContainer:"gap-1.5",clearIndicator:"p-0.5 size-5",dropdownIndicator:"p-1 size-5",indicatorSeparator:"h-5",loadingIndicator:"w-5 h-5",menu:"m-0",menuList:"py-1.5",option:"px-3 py-2 text-sm",group:"pt-2",groupHeading:"px-4 py-1.5 text-s",noOptionsMessage:"px-4 py-2 text-s",loadingMessage:"px-4 py-2 text-s",message:"text-s p-2.5",icon:"text-lg"}},ut={primary:{control:"cursor-pointer bg-input-bg text-select-text",controlFocused:"border-input-focus-border",controlDisabled:"opacity-60",controlInvalid:"bg-input-bg border-input-error-border text-select-text",placeholder:"placeholder:text-input-placeholder text-input-text placeholder:opacity-60",singleValue:"text-select-text",singleValueDisabled:"text-input-placeholder",multiValue:"bg-input-option-active-bg text-input-option-active-text",multiValueLabel:"text-input-option-active-text",multiValueRemove:"text-input-option-active-text hover:bg-input-option-hover-bg hover:text-body rounded-xs p-px",multiValueRemoveHover:"hover:bg-input-option-hover-bg",multiValueDisabled:"bg-canvas-subtle text-muted",clearIndicator:"text-input-text hover:text-body cursor-pointer",clearIndicatorHover:"hover:text-body hover:bg-input-option-hover-bg",dropdownIndicator:"text-input-text",dropdownIndicatorHover:"hover:text-body hover:bg-input-option-hover-bg",indicatorSeparator:"bg-input-border",loadingIndicator:"text-primary",menu:"bg-select-list-bg border-input-focus-border shadow-lg",menuList:"scrollbar-thin scrollbar-thumb-input-border scrollbar-track-transparent",option:"text-select-text cursor-pointer",optionFocused:"bg-input-option-hover-bg text-body",optionSelected:"bg-input-option-active-bg text-input-option-active-text",optionDisabled:"text-input-placeholder cursor-not-allowed",group:"",groupHeading:"text-input-placeholder font-semibold",noOptionsMessage:"text-input-placeholder",loadingMessage:"text-input-placeholder",message:"text-primary-dark",messageBackground:"bg-input-message-bg",messageBorder:"ring-input-info-border",icon:"text-input-text",iconAction:"text-input-text hover:text-body",iconActionHover:"hover:text-body hover:bg-input-option-hover-bg"},positive:{control:"cursor-pointer bg-input-bg text-select-text",controlFocused:"border-positive",controlDisabled:"opacity-60",controlInvalid:"bg-input-bg border-input-error-border text-select-text",placeholder:"placeholder:text-input-placeholder text-input-text placeholder:opacity-60",singleValue:"text-select-text",singleValueDisabled:"text-input-placeholder",multiValue:"bg-input-option-active-bg text-input-option-active-text",multiValueLabel:"text-input-option-active-text",multiValueRemove:"text-input-option-active-text hover:bg-input-option-hover-bg hover:text-body rounded-xs p-px",multiValueRemoveHover:"hover:bg-input-option-hover-bg",multiValueDisabled:"bg-canvas-subtle text-muted",clearIndicator:"text-input-text hover:text-body cursor-pointer",clearIndicatorHover:"hover:text-body hover:bg-input-option-hover-bg",dropdownIndicator:"text-input-text",dropdownIndicatorHover:"hover:text-body hover:bg-input-option-hover-bg",indicatorSeparator:"bg-input-border",loadingIndicator:"text-positive",menu:"bg-select-list-bg border-positive shadow-lg",menuList:"scrollbar-thin scrollbar-thumb-input-border scrollbar-track-transparent",option:"text-select-text cursor-pointer",optionFocused:"bg-input-option-hover-bg text-body",optionSelected:"bg-input-option-active-bg text-input-option-active-text",optionDisabled:"text-input-placeholder cursor-not-allowed",group:"",groupHeading:"text-input-placeholder font-semibold",noOptionsMessage:"text-input-placeholder",loadingMessage:"text-input-placeholder",message:"text-positive-dark",messageBackground:"bg-positive-light",messageBorder:"ring-positive",icon:"text-input-text",iconAction:"text-input-text hover:text-body",iconActionHover:"hover:text-body hover:bg-input-option-hover-bg"},warning:{control:"cursor-pointer bg-input-bg text-select-text",controlFocused:"border-input-warning-border",controlDisabled:"opacity-60",controlInvalid:"bg-input-bg border-input-error-border text-select-text",placeholder:"placeholder:text-input-placeholder text-input-text placeholder:opacity-60",singleValue:"text-select-text",singleValueDisabled:"text-input-placeholder",multiValue:"bg-input-option-active-bg text-input-option-active-text",multiValueLabel:"text-input-option-active-text",multiValueRemove:"text-input-option-active-text hover:bg-input-option-hover-bg hover:text-body rounded-xs p-px",multiValueRemoveHover:"hover:bg-input-option-hover-bg",multiValueDisabled:"bg-canvas-subtle text-muted",clearIndicator:"text-input-text hover:text-body cursor-pointer",clearIndicatorHover:"hover:text-body hover:bg-input-option-hover-bg",dropdownIndicator:"text-input-text",dropdownIndicatorHover:"hover:text-body hover:bg-input-option-hover-bg",indicatorSeparator:"bg-input-border",loadingIndicator:"text-warning",menu:"bg-select-list-bg border-input-warning-border shadow-lg",menuList:"scrollbar-thin scrollbar-thumb-input-border scrollbar-track-transparent",option:"text-select-text cursor-pointer",optionFocused:"bg-input-option-hover-bg text-body",optionSelected:"bg-input-option-active-bg text-input-option-active-text",optionDisabled:"text-input-placeholder cursor-not-allowed",group:"",groupHeading:"text-input-placeholder font-semibold",noOptionsMessage:"text-input-placeholder",loadingMessage:"text-input-placeholder",message:"text-warning-dark",messageBackground:"bg-input-warning-bg",messageBorder:"ring-input-warning-border",icon:"text-input-text",iconAction:"text-input-text hover:text-body",iconActionHover:"hover:text-body hover:bg-input-option-hover-bg"},negative:{control:"cursor-pointer bg-input-bg text-negative",controlFocused:"border-input-error-border",controlDisabled:"opacity-60",controlInvalid:"bg-input-bg border-input-error-border text-negative",placeholder:"placeholder:text-input-placeholder text-input-text placeholder:opacity-60",singleValue:"text-negative",singleValueDisabled:"text-input-placeholder",multiValue:"bg-input-option-active-bg text-input-option-active-text",multiValueLabel:"text-input-option-active-text",multiValueRemove:"text-input-option-active-text hover:bg-input-option-hover-bg hover:text-body rounded-xs p-px",multiValueRemoveHover:"hover:bg-input-option-hover-bg",multiValueDisabled:"bg-canvas-subtle text-muted",clearIndicator:"text-input-text hover:text-body cursor-pointer",clearIndicatorHover:"hover:text-body hover:bg-input-option-hover-bg",dropdownIndicator:"text-input-text",dropdownIndicatorHover:"hover:text-body hover:bg-input-option-hover-bg",indicatorSeparator:"bg-input-border",loadingIndicator:"text-negative",menu:"bg-select-list-bg border-input-error-border shadow-lg",menuList:"scrollbar-thin scrollbar-thumb-input-border scrollbar-track-transparent",option:"text-select-text cursor-pointer",optionFocused:"bg-input-option-hover-bg text-body",optionSelected:"bg-input-option-active-bg text-input-option-active-text",optionDisabled:"text-input-placeholder cursor-not-allowed",group:"",groupHeading:"text-input-placeholder font-semibold",noOptionsMessage:"text-input-placeholder",loadingMessage:"text-input-placeholder",message:"text-negative-dark",messageBackground:"bg-input-error-bg",messageBorder:"ring-input-error-border",icon:"text-input-text",iconAction:"text-input-text hover:text-body",iconActionHover:"hover:text-body hover:bg-input-option-hover-bg"}},K0=()=>he("flex flex-col relative"),W0=({size:e,color:t,isDisabled:i,hasMessage:n,isInvalid:r,isFocused:a,menuPlacement:s})=>{const l=ut[r?"negative":t];return he("bg-input-bg flex relative transition-all duration-200 ease-in-out items-center",a&&s?s==="top"?"rounded-b":"rounded-t":"only:rounded first:rounded-t last:rounded-b",l.control,n?["ring-1",l.messageBorder]:["border",i?"border-input-border":a?l.controlFocused:`border-select-border focus-within:${l.controlFocused}`],mt[e].trigger,{"ring-1":n,[l.controlDisabled]:i})},U0=({size:e,color:t,isDisabled:i,isAction:n})=>{const r=ut[t];return he("transition-colors duration-200 rounded max-h-full h-fit px-0.5",mt[e].icon,e==="sm"?"m-px":"m-0.5",i?"text-muted opacity-60 pointer-events-none":n?r.iconAction:r.icon,{"cursor-pointer p-0.5":n&&!i,[r.iconActionHover]:n&&!i,"pointer-events-none":!n})},q0=({size:e,color:t,isDisabled:i,isFocused:n,isInvalid:r,hasMessage:a,hasGroup:s,menuPlacement:l})=>{const u=ut[r?"negative":t];return s?he("flex items-center justify-between flex-1 min-w-0",mt[e].control,"bg-transparent border-0",{[u.controlDisabled]:i}):he("flex items-center justify-between",n&&l?l==="top"?"rounded-b":"rounded-t":"rounded",mt[e].control,u.control,a?["ring-1",u.messageBorder]:["border",i?"border-input-border":n?u.controlFocused:`border-select-border
21
- focus-within:${u.controlFocused}`],{[u.controlDisabled]:i})},G0=({isMulti:e})=>he("flex items-center gap-1 flex-1 min-w-0 overflow-hidden",{"flex-wrap":e,"px-0.5":!e}),$0=({size:e,color:t})=>he("bg-transparent border-0 outline-hidden flex-1 min-w-7.5 text-input-text",mt[e].input,ut[t].placeholder),J0=({size:e,color:t})=>he("select-none truncate",mt[e].placeholder,ut[t].placeholder),Y0=({size:e,color:t,isDisabled:i})=>he("truncate",mt[e].singleValue,i?ut[t].singleValueDisabled:ut[t].singleValue),Q0=({size:e,color:t,isDisabled:i,isFocused:n})=>he("inline-flex items-center rounded-xs",mt[e].multiValue,i?ut[t].multiValueDisabled:ut[t].multiValue,{"border border-white":n&&!i}),Z0=({size:e})=>he("truncate",mt[e].multiValueLabel),X0=({size:e,color:t,isDisabled:i})=>he("flex items-center justify-center cursor-pointer transition-colors",mt[e].multiValueRemove,ut[t].multiValueRemove),Od=({size:e,color:t,isDisabled:i})=>he("flex items-center justify-center transition-colors rounded",mt[e].clearIndicator,i?"hidden":[ut[t].clearIndicator,ut[t].clearIndicatorHover]),eb=({size:e,color:t,isDisabled:i})=>he("flex items-center justify-center transition-colors rounded",mt[e].dropdownIndicator,i?"text-grey-200":[ut[t].dropdownIndicator,ut[t].dropdownIndicatorHover]),tb=({size:e,placement:t,hasMessage:i,color:n,hasGroup:r})=>{const a=t==="top";return he("absolute z-50 overflow-hidden border",r?"-left-px -right-px":"w-full",ut[n].menu,{[ut[n].messageBorder]:i},a?"bottom-full rounded-t rounded-b-none border-b-0":"top-full rounded-b border-t-0",mt[e].menu)},ib=({size:e})=>he("overflow-y-auto",mt[e].menuList,ut.primary.menuList),nb=({size:e,color:t,isDisabled:i,isFocused:n,isSelected:r})=>he("transition-colors duration-150 cursor-pointer mx-1 rounded flex items-center gap-2",mt[e].option,{[ut[t].optionDisabled]:i,[ut[t].optionSelected]:r&&!i,[ut[t].optionFocused]:n&&!r&&!i,[ut[t].option]:!r&&!n&&!i}),rb=({size:e})=>he(mt[e].group),ab=({size:e,color:t})=>he(mt[e].groupHeading,ut[t].groupHeading),sb=({size:e})=>he("text-grey-100",mt[e].loadingMessage),ob=({size:e})=>he(mt[e].noOptionsMessage,ut.primary.noOptionsMessage),oo=e=>{const t=e[0];return e.length>0&&typeof t=="object"&&t!==null&&"options"in t&&Array.isArray(t.options)},lb=e=>oo(e)?e.reduce((t,i)=>[...t,...i.options],[]):e;function Tt(e,t){if(e==null)return{};var i={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;i[n]=e[n]}return i}function Me(){return Me=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var n in i)({}).hasOwnProperty.call(i,n)&&(e[n]=i[n])}return e},Me.apply(null,arguments)}function lo(e,t){return lo=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(i,n){return i.__proto__=n,i},lo(e,t)}function ub(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,lo(e,t)}var Kr={exports:{}},ms={exports:{}},et={};/** @license React v16.13.1
22
- * react-is.production.min.js
23
- *
24
- * Copyright (c) Facebook, Inc. and its affiliates.
25
- *
26
- * This source code is licensed under the MIT license found in the
27
- * LICENSE file in the root directory of this source tree.
28
- */var $u;function cb(){if($u)return et;$u=1;var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,i=e?Symbol.for("react.portal"):60106,n=e?Symbol.for("react.fragment"):60107,r=e?Symbol.for("react.strict_mode"):60108,a=e?Symbol.for("react.profiler"):60114,s=e?Symbol.for("react.provider"):60109,l=e?Symbol.for("react.context"):60110,u=e?Symbol.for("react.async_mode"):60111,c=e?Symbol.for("react.concurrent_mode"):60111,h=e?Symbol.for("react.forward_ref"):60112,p=e?Symbol.for("react.suspense"):60113,g=e?Symbol.for("react.suspense_list"):60120,m=e?Symbol.for("react.memo"):60115,E=e?Symbol.for("react.lazy"):60116,v=e?Symbol.for("react.block"):60121,k=e?Symbol.for("react.fundamental"):60117,S=e?Symbol.for("react.responder"):60118,w=e?Symbol.for("react.scope"):60119;function I(y){if(typeof y=="object"&&y!==null){var f=y.$$typeof;switch(f){case t:switch(y=y.type,y){case u:case c:case n:case a:case r:case p:return y;default:switch(y=y&&y.$$typeof,y){case l:case h:case E:case m:case s:return y;default:return f}}case i:return f}}}function A(y){return I(y)===c}return et.AsyncMode=u,et.ConcurrentMode=c,et.ContextConsumer=l,et.ContextProvider=s,et.Element=t,et.ForwardRef=h,et.Fragment=n,et.Lazy=E,et.Memo=m,et.Portal=i,et.Profiler=a,et.StrictMode=r,et.Suspense=p,et.isAsyncMode=function(y){return A(y)||I(y)===u},et.isConcurrentMode=A,et.isContextConsumer=function(y){return I(y)===l},et.isContextProvider=function(y){return I(y)===s},et.isElement=function(y){return typeof y=="object"&&y!==null&&y.$$typeof===t},et.isForwardRef=function(y){return I(y)===h},et.isFragment=function(y){return I(y)===n},et.isLazy=function(y){return I(y)===E},et.isMemo=function(y){return I(y)===m},et.isPortal=function(y){return I(y)===i},et.isProfiler=function(y){return I(y)===a},et.isStrictMode=function(y){return I(y)===r},et.isSuspense=function(y){return I(y)===p},et.isValidElementType=function(y){return typeof y=="string"||typeof y=="function"||y===n||y===c||y===a||y===r||y===p||y===g||typeof y=="object"&&y!==null&&(y.$$typeof===E||y.$$typeof===m||y.$$typeof===s||y.$$typeof===l||y.$$typeof===h||y.$$typeof===k||y.$$typeof===S||y.$$typeof===w||y.$$typeof===v)},et.typeOf=I,et}var it={};/** @license React v16.13.1
29
- * react-is.development.js
30
- *
31
- * Copyright (c) Facebook, Inc. and its affiliates.
32
- *
33
- * This source code is licensed under the MIT license found in the
34
- * LICENSE file in the root directory of this source tree.
35
- */var Ju;function hb(){return Ju||(Ju=1,ce.NODE_ENV!=="production"&&(function(){var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,i=e?Symbol.for("react.portal"):60106,n=e?Symbol.for("react.fragment"):60107,r=e?Symbol.for("react.strict_mode"):60108,a=e?Symbol.for("react.profiler"):60114,s=e?Symbol.for("react.provider"):60109,l=e?Symbol.for("react.context"):60110,u=e?Symbol.for("react.async_mode"):60111,c=e?Symbol.for("react.concurrent_mode"):60111,h=e?Symbol.for("react.forward_ref"):60112,p=e?Symbol.for("react.suspense"):60113,g=e?Symbol.for("react.suspense_list"):60120,m=e?Symbol.for("react.memo"):60115,E=e?Symbol.for("react.lazy"):60116,v=e?Symbol.for("react.block"):60121,k=e?Symbol.for("react.fundamental"):60117,S=e?Symbol.for("react.responder"):60118,w=e?Symbol.for("react.scope"):60119;function I(H){return typeof H=="string"||typeof H=="function"||H===n||H===c||H===a||H===r||H===p||H===g||typeof H=="object"&&H!==null&&(H.$$typeof===E||H.$$typeof===m||H.$$typeof===s||H.$$typeof===l||H.$$typeof===h||H.$$typeof===k||H.$$typeof===S||H.$$typeof===w||H.$$typeof===v)}function A(H){if(typeof H=="object"&&H!==null){var ve=H.$$typeof;switch(ve){case t:var Z=H.type;switch(Z){case u:case c:case n:case a:case r:case p:return Z;default:var xe=Z&&Z.$$typeof;switch(xe){case l:case h:case E:case m:case s:return xe;default:return ve}}case i:return ve}}}var y=u,f=c,O=l,P=s,F=t,D=h,V=n,J=E,ue=m,Q=i,se=a,j=r,U=p,Y=!1;function de(H){return Y||(Y=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),C(H)||A(H)===u}function C(H){return A(H)===c}function $(H){return A(H)===l}function ee(H){return A(H)===s}function T(H){return typeof H=="object"&&H!==null&&H.$$typeof===t}function B(H){return A(H)===h}function W(H){return A(H)===n}function z(H){return A(H)===E}function K(H){return A(H)===m}function ne(H){return A(H)===i}function ae(H){return A(H)===a}function le(H){return A(H)===r}function oe(H){return A(H)===p}it.AsyncMode=y,it.ConcurrentMode=f,it.ContextConsumer=O,it.ContextProvider=P,it.Element=F,it.ForwardRef=D,it.Fragment=V,it.Lazy=J,it.Memo=ue,it.Portal=Q,it.Profiler=se,it.StrictMode=j,it.Suspense=U,it.isAsyncMode=de,it.isConcurrentMode=C,it.isContextConsumer=$,it.isContextProvider=ee,it.isElement=T,it.isForwardRef=B,it.isFragment=W,it.isLazy=z,it.isMemo=K,it.isPortal=ne,it.isProfiler=ae,it.isStrictMode=le,it.isSuspense=oe,it.isValidElementType=I,it.typeOf=A})()),it}var Yu;function Pd(){return Yu||(Yu=1,ce.NODE_ENV==="production"?ms.exports=cb():ms.exports=hb()),ms.exports}/*
36
- object-assign
37
- (c) Sindre Sorhus
38
- @license MIT
39
- */var vs,Qu;function db(){if(Qu)return vs;Qu=1;var e=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,i=Object.prototype.propertyIsEnumerable;function n(a){if(a==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(a)}function r(){try{if(!Object.assign)return!1;var a=new String("abc");if(a[5]="de",Object.getOwnPropertyNames(a)[0]==="5")return!1;for(var s={},l=0;l<10;l++)s["_"+String.fromCharCode(l)]=l;var u=Object.getOwnPropertyNames(s).map(function(h){return s[h]});if(u.join("")!=="0123456789")return!1;var c={};return"abcdefghijklmnopqrst".split("").forEach(function(h){c[h]=h}),Object.keys(Object.assign({},c)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return vs=r()?Object.assign:function(a,s){for(var l,u=n(a),c,h=1;h<arguments.length;h++){l=Object(arguments[h]);for(var p in l)t.call(l,p)&&(u[p]=l[p]);if(e){c=e(l);for(var g=0;g<c.length;g++)i.call(l,c[g])&&(u[c[g]]=l[c[g]])}}return u},vs}var xs,Zu;function Uo(){if(Zu)return xs;Zu=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return xs=e,xs}var Xu,ec;function Rd(){return ec||(ec=1,Xu=Function.call.bind(Object.prototype.hasOwnProperty)),Xu}var bs,tc;function pb(){if(tc)return bs;tc=1;var e=function(){};if(ce.NODE_ENV!=="production"){var t=Uo(),i={},n=Rd();e=function(a){var s="Warning: "+a;typeof console<"u"&&console.error(s);try{throw new Error(s)}catch{}}}function r(a,s,l,u,c){if(ce.NODE_ENV!=="production"){for(var h in a)if(n(a,h)){var p;try{if(typeof a[h]!="function"){var g=Error((u||"React class")+": "+l+" type `"+h+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof a[h]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw g.name="Invariant Violation",g}p=a[h](s,h,u,l,null,t)}catch(E){p=E}if(p&&!(p instanceof Error)&&e((u||"React class")+": type specification of "+l+" `"+h+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof p+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),p instanceof Error&&!(p.message in i)){i[p.message]=!0;var m=c?c():"";e("Failed "+l+" type: "+p.message+(m??""))}}}}return r.resetWarningCache=function(){ce.NODE_ENV!=="production"&&(i={})},bs=r,bs}var ys,ic;function fb(){if(ic)return ys;ic=1;var e=Pd(),t=db(),i=Uo(),n=Rd(),r=pb(),a=function(){};ce.NODE_ENV!=="production"&&(a=function(l){var u="Warning: "+l;typeof console<"u"&&console.error(u);try{throw new Error(u)}catch{}});function s(){return null}return ys=function(l,u){var c=typeof Symbol=="function"&&Symbol.iterator,h="@@iterator";function p(C){var $=C&&(c&&C[c]||C[h]);if(typeof $=="function")return $}var g="<<anonymous>>",m={array:S("array"),bigint:S("bigint"),bool:S("boolean"),func:S("function"),number:S("number"),object:S("object"),string:S("string"),symbol:S("symbol"),any:w(),arrayOf:I,element:A(),elementType:y(),instanceOf:f,node:D(),objectOf:P,oneOf:O,oneOfType:F,shape:J,exact:ue};function E(C,$){return C===$?C!==0||1/C===1/$:C!==C&&$!==$}function v(C,$){this.message=C,this.data=$&&typeof $=="object"?$:{},this.stack=""}v.prototype=Error.prototype;function k(C){if(ce.NODE_ENV!=="production")var $={},ee=0;function T(W,z,K,ne,ae,le,oe){if(ne=ne||g,le=le||K,oe!==i){if(u){var H=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");throw H.name="Invariant Violation",H}else if(ce.NODE_ENV!=="production"&&typeof console<"u"){var ve=ne+":"+K;!$[ve]&&ee<3&&(a("You are manually calling a React.PropTypes validation function for the `"+le+"` prop on `"+ne+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),$[ve]=!0,ee++)}}return z[K]==null?W?z[K]===null?new v("The "+ae+" `"+le+"` is marked as required "+("in `"+ne+"`, but its value is `null`.")):new v("The "+ae+" `"+le+"` is marked as required in "+("`"+ne+"`, but its value is `undefined`.")):null:C(z,K,ne,ae,le)}var B=T.bind(null,!1);return B.isRequired=T.bind(null,!0),B}function S(C){function $(ee,T,B,W,z,K){var ne=ee[T],ae=j(ne);if(ae!==C){var le=U(ne);return new v("Invalid "+W+" `"+z+"` of type "+("`"+le+"` supplied to `"+B+"`, expected ")+("`"+C+"`."),{expectedType:C})}return null}return k($)}function w(){return k(s)}function I(C){function $(ee,T,B,W,z){if(typeof C!="function")return new v("Property `"+z+"` of component `"+B+"` has invalid PropType notation inside arrayOf.");var K=ee[T];if(!Array.isArray(K)){var ne=j(K);return new v("Invalid "+W+" `"+z+"` of type "+("`"+ne+"` supplied to `"+B+"`, expected an array."))}for(var ae=0;ae<K.length;ae++){var le=C(K,ae,B,W,z+"["+ae+"]",i);if(le instanceof Error)return le}return null}return k($)}function A(){function C($,ee,T,B,W){var z=$[ee];if(!l(z)){var K=j(z);return new v("Invalid "+B+" `"+W+"` of type "+("`"+K+"` supplied to `"+T+"`, expected a single ReactElement."))}return null}return k(C)}function y(){function C($,ee,T,B,W){var z=$[ee];if(!e.isValidElementType(z)){var K=j(z);return new v("Invalid "+B+" `"+W+"` of type "+("`"+K+"` supplied to `"+T+"`, expected a single ReactElement type."))}return null}return k(C)}function f(C){function $(ee,T,B,W,z){if(!(ee[T]instanceof C)){var K=C.name||g,ne=de(ee[T]);return new v("Invalid "+W+" `"+z+"` of type "+("`"+ne+"` supplied to `"+B+"`, expected ")+("instance of `"+K+"`."))}return null}return k($)}function O(C){if(!Array.isArray(C))return ce.NODE_ENV!=="production"&&(arguments.length>1?a("Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."):a("Invalid argument supplied to oneOf, expected an array.")),s;function $(ee,T,B,W,z){for(var K=ee[T],ne=0;ne<C.length;ne++)if(E(K,C[ne]))return null;var ae=JSON.stringify(C,function(le,oe){var H=U(oe);return H==="symbol"?String(oe):oe});return new v("Invalid "+W+" `"+z+"` of value `"+String(K)+"` "+("supplied to `"+B+"`, expected one of "+ae+"."))}return k($)}function P(C){function $(ee,T,B,W,z){if(typeof C!="function")return new v("Property `"+z+"` of component `"+B+"` has invalid PropType notation inside objectOf.");var K=ee[T],ne=j(K);if(ne!=="object")return new v("Invalid "+W+" `"+z+"` of type "+("`"+ne+"` supplied to `"+B+"`, expected an object."));for(var ae in K)if(n(K,ae)){var le=C(K,ae,B,W,z+"."+ae,i);if(le instanceof Error)return le}return null}return k($)}function F(C){if(!Array.isArray(C))return ce.NODE_ENV!=="production"&&a("Invalid argument supplied to oneOfType, expected an instance of array."),s;for(var $=0;$<C.length;$++){var ee=C[$];if(typeof ee!="function")return a("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+Y(ee)+" at index "+$+"."),s}function T(B,W,z,K,ne){for(var ae=[],le=0;le<C.length;le++){var oe=C[le],H=oe(B,W,z,K,ne,i);if(H==null)return null;H.data&&n(H.data,"expectedType")&&ae.push(H.data.expectedType)}var ve=ae.length>0?", expected one of type ["+ae.join(", ")+"]":"";return new v("Invalid "+K+" `"+ne+"` supplied to "+("`"+z+"`"+ve+"."))}return k(T)}function D(){function C($,ee,T,B,W){return Q($[ee])?null:new v("Invalid "+B+" `"+W+"` supplied to "+("`"+T+"`, expected a ReactNode."))}return k(C)}function V(C,$,ee,T,B){return new v((C||"React class")+": "+$+" type `"+ee+"."+T+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+B+"`.")}function J(C){function $(ee,T,B,W,z){var K=ee[T],ne=j(K);if(ne!=="object")return new v("Invalid "+W+" `"+z+"` of type `"+ne+"` "+("supplied to `"+B+"`, expected `object`."));for(var ae in C){var le=C[ae];if(typeof le!="function")return V(B,W,z,ae,U(le));var oe=le(K,ae,B,W,z+"."+ae,i);if(oe)return oe}return null}return k($)}function ue(C){function $(ee,T,B,W,z){var K=ee[T],ne=j(K);if(ne!=="object")return new v("Invalid "+W+" `"+z+"` of type `"+ne+"` "+("supplied to `"+B+"`, expected `object`."));var ae=t({},ee[T],C);for(var le in ae){var oe=C[le];if(n(C,le)&&typeof oe!="function")return V(B,W,z,le,U(oe));if(!oe)return new v("Invalid "+W+" `"+z+"` key `"+le+"` supplied to `"+B+"`.\nBad object: "+JSON.stringify(ee[T],null," ")+`
40
- Valid keys: `+JSON.stringify(Object.keys(C),null," "));var H=oe(K,le,B,W,z+"."+le,i);if(H)return H}return null}return k($)}function Q(C){switch(typeof C){case"number":case"string":case"undefined":return!0;case"boolean":return!C;case"object":if(Array.isArray(C))return C.every(Q);if(C===null||l(C))return!0;var $=p(C);if($){var ee=$.call(C),T;if($!==C.entries){for(;!(T=ee.next()).done;)if(!Q(T.value))return!1}else for(;!(T=ee.next()).done;){var B=T.value;if(B&&!Q(B[1]))return!1}}else return!1;return!0;default:return!1}}function se(C,$){return C==="symbol"?!0:$?$["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&$ instanceof Symbol:!1}function j(C){var $=typeof C;return Array.isArray(C)?"array":C instanceof RegExp?"object":se($,C)?"symbol":$}function U(C){if(typeof C>"u"||C===null)return""+C;var $=j(C);if($==="object"){if(C instanceof Date)return"date";if(C instanceof RegExp)return"regexp"}return $}function Y(C){var $=U(C);switch($){case"array":case"object":return"an "+$;case"boolean":case"date":case"regexp":return"a "+$;default:return $}}function de(C){return!C.constructor||!C.constructor.name?g:C.constructor.name}return m.checkPropTypes=r,m.resetWarningCache=r.resetWarningCache,m.PropTypes=m,m},ys}var ws,nc;function gb(){if(nc)return ws;nc=1;var e=Uo();function t(){}function i(){}return i.resetWarningCache=t,ws=function(){function n(s,l,u,c,h,p){if(p!==e){var g=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw g.name="Invariant Violation",g}}n.isRequired=n;function r(){return n}var a={array:n,bigint:n,bool:n,func:n,number:n,object:n,string:n,symbol:n,any:n,arrayOf:r,element:n,elementType:n,instanceOf:r,node:n,objectOf:r,oneOf:r,oneOfType:r,shape:r,exact:r,checkPropTypes:i,resetWarningCache:t};return a.PropTypes=a,a},ws}var rc;function mb(){if(rc)return Kr.exports;if(rc=1,ce.NODE_ENV!=="production"){var e=Pd(),t=!0;Kr.exports=fb()(e.isElement,t)}else Kr.exports=gb()();return Kr.exports}var vb=mb();const ge=id(vb);var ks={exports:{}},tt={};/**
41
- * @license React
42
- * react-is.production.min.js
43
- *
44
- * Copyright (c) Facebook, Inc. and its affiliates.
45
- *
46
- * This source code is licensed under the MIT license found in the
47
- * LICENSE file in the root directory of this source tree.
48
- */var ac;function xb(){if(ac)return tt;ac=1;var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),r=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),s=Symbol.for("react.context"),l=Symbol.for("react.server_context"),u=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),h=Symbol.for("react.suspense_list"),p=Symbol.for("react.memo"),g=Symbol.for("react.lazy"),m=Symbol.for("react.offscreen"),E;E=Symbol.for("react.module.reference");function v(k){if(typeof k=="object"&&k!==null){var S=k.$$typeof;switch(S){case e:switch(k=k.type,k){case i:case r:case n:case c:case h:return k;default:switch(k=k&&k.$$typeof,k){case l:case s:case u:case g:case p:case a:return k;default:return S}}case t:return S}}}return tt.ContextConsumer=s,tt.ContextProvider=a,tt.Element=e,tt.ForwardRef=u,tt.Fragment=i,tt.Lazy=g,tt.Memo=p,tt.Portal=t,tt.Profiler=r,tt.StrictMode=n,tt.Suspense=c,tt.SuspenseList=h,tt.isAsyncMode=function(){return!1},tt.isConcurrentMode=function(){return!1},tt.isContextConsumer=function(k){return v(k)===s},tt.isContextProvider=function(k){return v(k)===a},tt.isElement=function(k){return typeof k=="object"&&k!==null&&k.$$typeof===e},tt.isForwardRef=function(k){return v(k)===u},tt.isFragment=function(k){return v(k)===i},tt.isLazy=function(k){return v(k)===g},tt.isMemo=function(k){return v(k)===p},tt.isPortal=function(k){return v(k)===t},tt.isProfiler=function(k){return v(k)===r},tt.isStrictMode=function(k){return v(k)===n},tt.isSuspense=function(k){return v(k)===c},tt.isSuspenseList=function(k){return v(k)===h},tt.isValidElementType=function(k){return typeof k=="string"||typeof k=="function"||k===i||k===r||k===n||k===c||k===h||k===m||typeof k=="object"&&k!==null&&(k.$$typeof===g||k.$$typeof===p||k.$$typeof===a||k.$$typeof===s||k.$$typeof===u||k.$$typeof===E||k.getModuleId!==void 0)},tt.typeOf=v,tt}var nt={};/**
49
- * @license React
50
- * react-is.development.js
51
- *
52
- * Copyright (c) Facebook, Inc. and its affiliates.
53
- *
54
- * This source code is licensed under the MIT license found in the
55
- * LICENSE file in the root directory of this source tree.
56
- */var sc;function bb(){return sc||(sc=1,ce.NODE_ENV!=="production"&&(function(){var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),r=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),s=Symbol.for("react.context"),l=Symbol.for("react.server_context"),u=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),h=Symbol.for("react.suspense_list"),p=Symbol.for("react.memo"),g=Symbol.for("react.lazy"),m=Symbol.for("react.offscreen"),E=!1,v=!1,k=!1,S=!1,w=!1,I;I=Symbol.for("react.module.reference");function A(Z){return!!(typeof Z=="string"||typeof Z=="function"||Z===i||Z===r||w||Z===n||Z===c||Z===h||S||Z===m||E||v||k||typeof Z=="object"&&Z!==null&&(Z.$$typeof===g||Z.$$typeof===p||Z.$$typeof===a||Z.$$typeof===s||Z.$$typeof===u||Z.$$typeof===I||Z.getModuleId!==void 0))}function y(Z){if(typeof Z=="object"&&Z!==null){var xe=Z.$$typeof;switch(xe){case e:var be=Z.type;switch(be){case i:case r:case n:case c:case h:return be;default:var ie=be&&be.$$typeof;switch(ie){case l:case s:case u:case g:case p:case a:return ie;default:return xe}}case t:return xe}}}var f=s,O=a,P=e,F=u,D=i,V=g,J=p,ue=t,Q=r,se=n,j=c,U=h,Y=!1,de=!1;function C(Z){return Y||(Y=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")),!1}function $(Z){return de||(de=!0,console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")),!1}function ee(Z){return y(Z)===s}function T(Z){return y(Z)===a}function B(Z){return typeof Z=="object"&&Z!==null&&Z.$$typeof===e}function W(Z){return y(Z)===u}function z(Z){return y(Z)===i}function K(Z){return y(Z)===g}function ne(Z){return y(Z)===p}function ae(Z){return y(Z)===t}function le(Z){return y(Z)===r}function oe(Z){return y(Z)===n}function H(Z){return y(Z)===c}function ve(Z){return y(Z)===h}nt.ContextConsumer=f,nt.ContextProvider=O,nt.Element=P,nt.ForwardRef=F,nt.Fragment=D,nt.Lazy=V,nt.Memo=J,nt.Portal=ue,nt.Profiler=Q,nt.StrictMode=se,nt.Suspense=j,nt.SuspenseList=U,nt.isAsyncMode=C,nt.isConcurrentMode=$,nt.isContextConsumer=ee,nt.isContextProvider=T,nt.isElement=B,nt.isForwardRef=W,nt.isFragment=z,nt.isLazy=K,nt.isMemo=ne,nt.isPortal=ae,nt.isProfiler=le,nt.isStrictMode=oe,nt.isSuspense=H,nt.isSuspenseList=ve,nt.isValidElementType=A,nt.typeOf=y})()),nt}var oc;function yb(){return oc||(oc=1,ce.NODE_ENV==="production"?ks.exports=xb():ks.exports=bb()),ks.exports}var lc=yb();const uc=e=>typeof e=="object"&&e!=null&&e.nodeType===1,cc=(e,t)=>(!t||e!=="hidden")&&e!=="visible"&&e!=="clip",Wr=(e,t)=>{if(e.clientHeight<e.scrollHeight||e.clientWidth<e.scrollWidth){const i=getComputedStyle(e,null);return cc(i.overflowY,t)||cc(i.overflowX,t)||(n=>{const r=(a=>{if(!a.ownerDocument||!a.ownerDocument.defaultView)return null;try{return a.ownerDocument.defaultView.frameElement}catch{return null}})(n);return!!r&&(r.clientHeight<n.scrollHeight||r.clientWidth<n.scrollWidth)})(e)}return!1},Ur=(e,t,i,n,r,a,s,l)=>a<e&&s>t||a>e&&s<t?0:a<=e&&l<=i||s>=t&&l>=i?a-e-n:s>t&&l<i||a<e&&l>i?s-t+r:0,wb=e=>e.parentElement??(e.getRootNode().host||null),kb=(e,t)=>{var i,n,r,a;if(typeof document>"u")return[];const{inline:s,boundary:l,skipOverflowHiddenElements:u}=t,c=typeof l=="function"?l:ue=>ue!==l;if(!uc(e))throw new TypeError("Invalid target");const h=document.scrollingElement||document.documentElement,p=[];let g=e;for(;uc(g)&&c(g);){if(g=wb(g),g===h){p.push(g);break}g!=null&&g===document.body&&Wr(g)&&!Wr(document.documentElement)||g!=null&&Wr(g,u)&&p.push(g)}const m=(n=(i=window.visualViewport)==null?void 0:i.width)!=null?n:innerWidth,E=(a=(r=window.visualViewport)==null?void 0:r.height)!=null?a:innerHeight,{scrollX:v,scrollY:k}=window,{height:S,width:w,top:I,right:A,bottom:y,left:f}=e.getBoundingClientRect(),{top:O,right:P,left:F}=(ue=>{const Q=window.getComputedStyle(ue);return{top:parseFloat(Q.scrollMarginTop)||0,right:parseFloat(Q.scrollMarginRight)||0,bottom:parseFloat(Q.scrollMarginBottom)||0,left:parseFloat(Q.scrollMarginLeft)||0}})(e);let D=I-O,V=s==="center"?f+w/2-F+P:s==="end"?A+P:f-F;const J=[];for(let ue=0;ue<p.length;ue++){const Q=p[ue],{height:se,width:j,top:U,right:Y,bottom:de,left:C}=Q.getBoundingClientRect();if(I>=0&&f>=0&&y<=E&&A<=m&&(Q===h&&!Wr(Q)||I>=U&&y<=de&&f>=C&&A<=Y))return J;const $=getComputedStyle(Q),ee=parseInt($.borderLeftWidth,10),T=parseInt($.borderTopWidth,10),B=parseInt($.borderRightWidth,10),W=parseInt($.borderBottomWidth,10);let z=0,K=0;const ne="offsetWidth"in Q?Q.offsetWidth-Q.clientWidth-ee-B:0,ae="offsetHeight"in Q?Q.offsetHeight-Q.clientHeight-T-W:0,le="offsetWidth"in Q?Q.offsetWidth===0?0:j/Q.offsetWidth:0,oe="offsetHeight"in Q?Q.offsetHeight===0?0:se/Q.offsetHeight:0;if(h===Q)z=Ur(k,k+E,E,T,W,k+D,k+D+S,S),K=s==="start"?V:s==="center"?V-m/2:s==="end"?V-m:Ur(v,v+m,m,ee,B,v+V,v+V+w,w),z=Math.max(0,z+k),K=Math.max(0,K+v);else{z=Ur(U,de,se,T,W+ae,D,D+S,S),K=s==="start"?V-C-ee:s==="center"?V-(C+j/2)+ne/2:s==="end"?V-Y+B+ne:Ur(C,Y,j,ee,B+ne,V,V+w,w);const{scrollLeft:H,scrollTop:ve}=Q;z=oe===0?0:Math.max(0,Math.min(ve+z/oe,Q.scrollHeight-se/oe+ae)),K=le===0?0:Math.max(0,Math.min(H+K/le,Q.scrollWidth-j/le+ne)),D+=ve-z,V+=H-K}J.push({el:Q,top:z,left:K})}return J};var Ln=function(){return Ln=Object.assign||function(e){for(var t,i=1,n=arguments.length;i<n;i++){t=arguments[i];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e},Ln.apply(this,arguments)},Sb=0;function hc(e){return typeof e=="function"?e:Nt}function Nt(){}function Md(e,t){if(e){var i=kb(e,{boundary:t});i.forEach(function(n){var r=n.el,a=n.top,s=n.left;r.scrollTop=a,r.scrollLeft=s})}}function dc(e,t,i){var n=e===t||t instanceof i.Node&&e.contains&&e.contains(t);return n}function Ka(e,t){var i;function n(){i&&clearTimeout(i)}function r(){for(var a=arguments.length,s=new Array(a),l=0;l<a;l++)s[l]=arguments[l];n(),i=setTimeout(function(){i=null,e.apply(void 0,s)},t)}return r.cancel=n,r}function Ze(){for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];return function(n){for(var r=arguments.length,a=new Array(r>1?r-1:0),s=1;s<r;s++)a[s-1]=arguments[s];return t.some(function(l){return l&&l.apply(void 0,[n].concat(a)),n.preventDownshiftDefault||n.hasOwnProperty("nativeEvent")&&n.nativeEvent.preventDownshiftDefault})}}function oi(){for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];return function(n){t.forEach(function(r){typeof r=="function"?r(n):r&&(r.current=n)})}}function Ld(){return String(Sb++)}function Eb(e){var t=e.isOpen,i=e.resultCount,n=e.previousResultCount;return t?i?i!==n?i+" result"+(i===1?" is":"s are")+" available, use up and down arrow keys to navigate. Press Enter key to select.":"":"No results are available.":""}function pc(e,t){return e=Array.isArray(e)?e[0]:e,!e&&t?t:e}function Dd(e){return typeof e.type=="string"}function Fd(e){return e.props}function Cb(e,t){console.error('The property "'+t+'" is required in "'+e+'"')}var Ib=["highlightedIndex","inputValue","isOpen","selectedItem","type"];function qr(e){e===void 0&&(e={});var t={};return Ib.forEach(function(i){e.hasOwnProperty(i)&&(t[i]=e[i])}),t}function hr(e,t){return!e||!t?e:Object.keys(e).reduce(function(i,n){return i[n]=ya(t,n)?t[n]:e[n],i},{})}function ya(e,t){return e[t]!==void 0}function Dn(e){var t=e.key,i=e.keyCode;return i>=37&&i<=40&&t.indexOf("Arrow")!==0?"Arrow"+t:t}function _b(e){return Object.prototype.toString.call(e)==="[object Object]"}function li(e,t,i,n,r){r===void 0&&(r=!1);var a=i.length;if(a===0)return-1;var s=a-1;(typeof e!="number"||e<0||e>s)&&(e=t>0?-1:s+1);var l=e+t;l<0?l=r?s:0:l>s&&(l=r?0:s);var u=Bi(l,t<0,i,n,r);return u===-1?e>=a?-1:e:u}function Bi(e,t,i,n,r){r===void 0&&(r=!1);var a=i.length;if(t){for(var s=e;s>=0;s--)if(!n(i[s],s))return s}else for(var l=e;l<a;l++)if(!n(i[l],l))return l;return r?Bi(t?a-1:0,t,i,n):-1}function wa(e,t,i,n){return n===void 0&&(n=!0),i&&t.some(function(r){return r&&(dc(r,e,i)||n&&dc(r,i.document.activeElement,i))})}var qo=Nt;ce.NODE_ENV!=="production"&&(qo=function(e,t,i){var n="This prop should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled Downshift element for the lifetime of the component. More info: https://github.com/downshift-js/downshift#control-props";Object.keys(e).forEach(function(r){t[r]!==void 0&&i[r]===void 0?console.error('downshift: A component has changed the controlled prop "'+r+'" to be uncontrolled. '+n):t[r]===void 0&&i[r]!==void 0&&console.error('downshift: A component has changed the uncontrolled prop "'+r+'" to be controlled. '+n)})});var Ab=Ka(function(e){jd(e).textContent=""},500);function jd(e){var t=e.getElementById("a11y-status-message");return t||(t=e.createElement("div"),t.setAttribute("id","a11y-status-message"),t.setAttribute("role","status"),t.setAttribute("aria-live","polite"),t.setAttribute("aria-relevant","additions text"),Object.assign(t.style,{border:"0",clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:"0",position:"absolute",width:"1px"}),e.body.appendChild(t),t)}function zd(e,t){if(!(!e||!t)){var i=jd(t);i.textContent=e,Ab(t)}}function Nb(e){var t=e==null?void 0:e.getElementById("a11y-status-message");t&&t.remove()}var Vd=ce.NODE_ENV!=="production"?"__autocomplete_unknown__":0,Bd=ce.NODE_ENV!=="production"?"__autocomplete_mouseup__":1,Hd=ce.NODE_ENV!=="production"?"__autocomplete_item_mouseenter__":2,sa=ce.NODE_ENV!=="production"?"__autocomplete_keydown_arrow_up__":3,oa=ce.NODE_ENV!=="production"?"__autocomplete_keydown_arrow_down__":4,Kd=ce.NODE_ENV!=="production"?"__autocomplete_keydown_escape__":5,Wd=ce.NODE_ENV!=="production"?"__autocomplete_keydown_enter__":6,Ud=ce.NODE_ENV!=="production"?"__autocomplete_keydown_home__":7,qd=ce.NODE_ENV!=="production"?"__autocomplete_keydown_end__":8,Gd=ce.NODE_ENV!=="production"?"__autocomplete_click_item__":9,$d=ce.NODE_ENV!=="production"?"__autocomplete_blur_input__":10,Jd=ce.NODE_ENV!=="production"?"__autocomplete_change_input__":11,Yd=ce.NODE_ENV!=="production"?"__autocomplete_keydown_space_button__":12,uo=ce.NODE_ENV!=="production"?"__autocomplete_click_button__":13,Qd=ce.NODE_ENV!=="production"?"__autocomplete_blur_button__":14,Zd=ce.NODE_ENV!=="production"?"__autocomplete_controlled_prop_updated_selected_item__":15,Xd=ce.NODE_ENV!=="production"?"__autocomplete_touchend__":16,Tb=Object.freeze({__proto__:null,blurButton:Qd,blurInput:$d,changeInput:Jd,clickButton:uo,clickItem:Gd,controlledPropUpdatedSelectedItem:Zd,itemMouseEnter:Hd,keyDownArrowDown:oa,keyDownArrowUp:sa,keyDownEnd:qd,keyDownEnter:Wd,keyDownEscape:Kd,keyDownHome:Ud,keyDownSpaceButton:Yd,mouseUp:Bd,touchEnd:Xd,unknown:Vd}),Ob=["refKey","ref"],Pb=["onClick","onPress","onKeyDown","onKeyUp","onBlur"],Rb=["onKeyDown","onBlur","onChange","onInput","onChangeText"],Mb=["refKey","ref"],Lb=["onMouseMove","onMouseDown","onClick","onPress","index","item"],Db=(function(){var e=(function(t){function i(r){var a;a=t.call(this,r)||this,a.id=a.props.id||"downshift-"+Ld(),a.menuId=a.props.menuId||a.id+"-menu",a.labelId=a.props.labelId||a.id+"-label",a.inputId=a.props.inputId||a.id+"-input",a.getItemId=a.props.getItemId||function(w){return a.id+"-item-"+w},a.items=[],a.itemCount=null,a.previousResultCount=0,a.timeoutIds=[],a.internalSetTimeout=function(w,I){var A=setTimeout(function(){a.timeoutIds=a.timeoutIds.filter(function(y){return y!==A}),w()},I);a.timeoutIds.push(A)},a.setItemCount=function(w){a.itemCount=w},a.unsetItemCount=function(){a.itemCount=null},a.isItemDisabled=function(w,I){var A=a.getItemNodeFromIndex(I);return A&&A.hasAttribute("disabled")},a.setHighlightedIndex=function(w,I){w===void 0&&(w=a.props.defaultHighlightedIndex),I===void 0&&(I={}),I=qr(I),a.internalSetState(Me({highlightedIndex:w},I))},a.clearSelection=function(w){a.internalSetState({selectedItem:null,inputValue:"",highlightedIndex:a.props.defaultHighlightedIndex,isOpen:a.props.defaultIsOpen},w)},a.selectItem=function(w,I,A){I=qr(I),a.internalSetState(Me({isOpen:a.props.defaultIsOpen,highlightedIndex:a.props.defaultHighlightedIndex,selectedItem:w,inputValue:a.props.itemToString(w)},I),A)},a.selectItemAtIndex=function(w,I,A){var y=a.items[w];y!=null&&a.selectItem(y,I,A)},a.selectHighlightedItem=function(w,I){return a.selectItemAtIndex(a.getState().highlightedIndex,w,I)},a.internalSetState=function(w,I){var A,y,f={},O=typeof w=="function";return!O&&w.hasOwnProperty("inputValue")&&a.props.onInputValueChange(w.inputValue,Me({},a.getStateAndHelpers(),w)),a.setState(function(P){var F;P=a.getState(P);var D=O?w(P):w;D=a.props.stateReducer(P,D),A=D.hasOwnProperty("selectedItem");var V={};return A&&D.selectedItem!==P.selectedItem&&(y=D.selectedItem),(F=D).type||(F.type=Vd),Object.keys(D).forEach(function(J){P[J]!==D[J]&&(f[J]=D[J]),J!=="type"&&(D[J],ya(a.props,J)||(V[J]=D[J]))}),O&&D.hasOwnProperty("inputValue")&&a.props.onInputValueChange(D.inputValue,Me({},a.getStateAndHelpers(),D)),V},function(){hc(I)();var P=Object.keys(f).length>1;P&&a.props.onStateChange(f,a.getStateAndHelpers()),A&&a.props.onSelect(w.selectedItem,a.getStateAndHelpers()),y!==void 0&&a.props.onChange(y,a.getStateAndHelpers()),a.props.onUserAction(f,a.getStateAndHelpers())})},a.rootRef=function(w){return a._rootNode=w},a.getRootProps=function(w,I){var A,y=w===void 0?{}:w,f=y.refKey,O=f===void 0?"ref":f,P=y.ref,F=Tt(y,Ob),D=I===void 0?{}:I,V=D.suppressRefError,J=V===void 0?!1:V;a.getRootProps.called=!0,a.getRootProps.refKey=O,a.getRootProps.suppressRefError=J;var ue=a.getState(),Q=ue.isOpen;return Me((A={},A[O]=oi(P,a.rootRef),A.role="combobox",A["aria-expanded"]=Q,A["aria-haspopup"]="listbox",A["aria-owns"]=Q?a.menuId:void 0,A["aria-labelledby"]=a.labelId,A),F)},a.keyDownHandlers={ArrowDown:function(w){var I=this;if(w.preventDefault(),this.getState().isOpen){var A=w.shiftKey?5:1;this.moveHighlightedIndex(A,{type:oa})}else this.internalSetState({isOpen:!0,type:oa},function(){var y=I.getItemCount();if(y>0){var f=I.getState(),O=f.highlightedIndex,P=li(O,1,{length:y},I.isItemDisabled,!0);I.setHighlightedIndex(P,{type:oa})}})},ArrowUp:function(w){var I=this;if(w.preventDefault(),this.getState().isOpen){var A=w.shiftKey?-5:-1;this.moveHighlightedIndex(A,{type:sa})}else this.internalSetState({isOpen:!0,type:sa},function(){var y=I.getItemCount();if(y>0){var f=I.getState(),O=f.highlightedIndex,P=li(O,-1,{length:y},I.isItemDisabled,!0);I.setHighlightedIndex(P,{type:sa})}})},Enter:function(w){if(w.which!==229){var I=this.getState(),A=I.isOpen,y=I.highlightedIndex;if(A&&y!=null){w.preventDefault();var f=this.items[y],O=this.getItemNodeFromIndex(y);if(f==null||O&&O.hasAttribute("disabled"))return;this.selectHighlightedItem({type:Wd})}}},Escape:function(w){w.preventDefault(),this.reset(Me({type:Kd},!this.state.isOpen&&{selectedItem:null,inputValue:""}))}},a.buttonKeyDownHandlers=Me({},a.keyDownHandlers,{" ":function(w){w.preventDefault(),this.toggleMenu({type:Yd})}}),a.inputKeyDownHandlers=Me({},a.keyDownHandlers,{Home:function(w){var I=this.getState(),A=I.isOpen;if(A){w.preventDefault();var y=this.getItemCount();if(!(y<=0||!A)){var f=Bi(0,!1,{length:y},this.isItemDisabled);this.setHighlightedIndex(f,{type:Ud})}}},End:function(w){var I=this.getState(),A=I.isOpen;if(A){w.preventDefault();var y=this.getItemCount();if(!(y<=0||!A)){var f=Bi(y-1,!0,{length:y},this.isItemDisabled);this.setHighlightedIndex(f,{type:qd})}}}}),a.getToggleButtonProps=function(w){var I=w===void 0?{}:w,A=I.onClick;I.onPress;var y=I.onKeyDown,f=I.onKeyUp,O=I.onBlur,P=Tt(I,Pb),F=a.getState(),D=F.isOpen,V={onClick:Ze(A,a.buttonHandleClick),onKeyDown:Ze(y,a.buttonHandleKeyDown),onKeyUp:Ze(f,a.buttonHandleKeyUp),onBlur:Ze(O,a.buttonHandleBlur)},J=P.disabled?{}:V;return Me({type:"button",role:"button","aria-label":D?"close menu":"open menu","aria-haspopup":!0,"data-toggle":!0},J,P)},a.buttonHandleKeyUp=function(w){w.preventDefault()},a.buttonHandleKeyDown=function(w){var I=Dn(w);a.buttonKeyDownHandlers[I]&&a.buttonKeyDownHandlers[I].call(a,w)},a.buttonHandleClick=function(w){if(w.preventDefault(),a.props.environment){var I=a.props.environment.document,A=I.body,y=I.activeElement;A&&A===y&&w.target.focus()}ce.NODE_ENV==="test"?a.toggleMenu({type:uo}):a.internalSetTimeout(function(){return a.toggleMenu({type:uo})})},a.buttonHandleBlur=function(w){var I=w.target;a.internalSetTimeout(function(){if(!(a.isMouseDown||!a.props.environment)){var A=a.props.environment.document.activeElement;(A==null||A.id!==a.inputId)&&A!==I&&a.reset({type:Qd})}})},a.getLabelProps=function(w){return Me({htmlFor:a.inputId,id:a.labelId},w)},a.getInputProps=function(w){var I=w===void 0?{}:w,A=I.onKeyDown,y=I.onBlur,f=I.onChange,O=I.onInput;I.onChangeText;var P=Tt(I,Rb),F,D={};F="onChange";var V=a.getState(),J=V.inputValue,ue=V.isOpen,Q=V.highlightedIndex;if(!P.disabled){var se;D=(se={},se[F]=Ze(f,O,a.inputHandleChange),se.onKeyDown=Ze(A,a.inputHandleKeyDown),se.onBlur=Ze(y,a.inputHandleBlur),se)}return Me({"aria-autocomplete":"list","aria-activedescendant":ue&&typeof Q=="number"&&Q>=0?a.getItemId(Q):void 0,"aria-controls":ue?a.menuId:void 0,"aria-labelledby":P&&P["aria-label"]?void 0:a.labelId,autoComplete:"off",value:J,id:a.inputId},D,P)},a.inputHandleKeyDown=function(w){var I=Dn(w);I&&a.inputKeyDownHandlers[I]&&a.inputKeyDownHandlers[I].call(a,w)},a.inputHandleChange=function(w){a.internalSetState({type:Jd,isOpen:!0,inputValue:w.target.value,highlightedIndex:a.props.defaultHighlightedIndex})},a.inputHandleBlur=function(){a.internalSetTimeout(function(){var w;if(!(a.isMouseDown||!a.props.environment)){var I=a.props.environment.document.activeElement,A=(I==null||(w=I.dataset)==null?void 0:w.toggle)&&a._rootNode&&a._rootNode.contains(I);A||a.reset({type:$d})}})},a.menuRef=function(w){a._menuNode=w},a.getMenuProps=function(w,I){var A,y=w===void 0?{}:w,f=y.refKey,O=f===void 0?"ref":f,P=y.ref,F=Tt(y,Mb),D=I===void 0?{}:I,V=D.suppressRefError,J=V===void 0?!1:V;return a.getMenuProps.called=!0,a.getMenuProps.refKey=O,a.getMenuProps.suppressRefError=J,Me((A={},A[O]=oi(P,a.menuRef),A.role="listbox",A["aria-labelledby"]=F&&F["aria-label"]?void 0:a.labelId,A.id=a.menuId,A),F)},a.getItemProps=function(w){var I,A=w===void 0?{}:w,y=A.onMouseMove,f=A.onMouseDown,O=A.onClick;A.onPress;var P=A.index,F=A.item,D=F===void 0?ce.NODE_ENV==="production"?void 0:Cb("getItemProps","item"):F,V=Tt(A,Lb);P===void 0?(a.items.push(D),P=a.items.indexOf(D)):a.items[P]=D;var J="onClick",ue=O,Q=(I={onMouseMove:Ze(y,function(){P!==a.getState().highlightedIndex&&(a.setHighlightedIndex(P,{type:Hd}),a.avoidScrolling=!0,a.internalSetTimeout(function(){return a.avoidScrolling=!1},250))}),onMouseDown:Ze(f,function(j){j.preventDefault()})},I[J]=Ze(ue,function(){a.selectItemAtIndex(P,{type:Gd})}),I),se=V.disabled?{onMouseDown:Q.onMouseDown}:Q;return Me({id:a.getItemId(P),role:"option","aria-selected":a.getState().highlightedIndex===P},se,V)},a.clearItems=function(){a.items=[]},a.reset=function(w,I){w===void 0&&(w={}),w=qr(w),a.internalSetState(function(A){var y=A.selectedItem;return Me({isOpen:a.props.defaultIsOpen,highlightedIndex:a.props.defaultHighlightedIndex,inputValue:a.props.itemToString(y)},w)},I)},a.toggleMenu=function(w,I){w===void 0&&(w={}),w=qr(w),a.internalSetState(function(A){var y=A.isOpen;return Me({isOpen:!y},y&&{highlightedIndex:a.props.defaultHighlightedIndex},w)},function(){var A=a.getState(),y=A.isOpen,f=A.highlightedIndex;y&&a.getItemCount()>0&&typeof f=="number"&&a.setHighlightedIndex(f,w),hc(I)()})},a.openMenu=function(w){a.internalSetState({isOpen:!0},w)},a.closeMenu=function(w){a.internalSetState({isOpen:!1},w)},a.updateStatus=Ka(function(){var w;if((w=a.props)!=null&&(w=w.environment)!=null&&w.document){var I=a.getState(),A=a.items[I.highlightedIndex],y=a.getItemCount(),f=a.props.getA11yStatusMessage(Me({itemToString:a.props.itemToString,previousResultCount:a.previousResultCount,resultCount:y,highlightedItem:A},I));a.previousResultCount=y,zd(f,a.props.environment.document)}},200);var s=a.props,l=s.defaultHighlightedIndex,u=s.initialHighlightedIndex,c=u===void 0?l:u,h=s.defaultIsOpen,p=s.initialIsOpen,g=p===void 0?h:p,m=s.initialInputValue,E=m===void 0?"":m,v=s.initialSelectedItem,k=v===void 0?null:v,S=a.getState({highlightedIndex:c,isOpen:g,inputValue:E,selectedItem:k});return S.selectedItem!=null&&a.props.initialInputValue===void 0&&(S.inputValue=a.props.itemToString(S.selectedItem)),a.state=S,a}ub(i,t);var n=i.prototype;return n.internalClearTimeouts=function(){this.timeoutIds.forEach(function(r){clearTimeout(r)}),this.timeoutIds=[]},n.getState=function(r){return r===void 0&&(r=this.state),hr(r,this.props)},n.getItemCount=function(){var r=this.items.length;return this.itemCount!=null?r=this.itemCount:this.props.itemCount!==void 0&&(r=this.props.itemCount),r},n.getItemNodeFromIndex=function(r){return this.props.environment?this.props.environment.document.getElementById(this.getItemId(r)):null},n.scrollHighlightedItemIntoView=function(){{var r=this.getItemNodeFromIndex(this.getState().highlightedIndex);this.props.scrollIntoView(r,this._menuNode)}},n.moveHighlightedIndex=function(r,a){var s=this.getItemCount(),l=this.getState(),u=l.highlightedIndex;if(s>0){var c=li(u,r,{length:s},this.isItemDisabled,!0);this.setHighlightedIndex(c,a)}},n.getStateAndHelpers=function(){var r=this.getState(),a=r.highlightedIndex,s=r.inputValue,l=r.selectedItem,u=r.isOpen,c=this.props.itemToString,h=this.id,p=this.getRootProps,g=this.getToggleButtonProps,m=this.getLabelProps,E=this.getMenuProps,v=this.getInputProps,k=this.getItemProps,S=this.openMenu,w=this.closeMenu,I=this.toggleMenu,A=this.selectItem,y=this.selectItemAtIndex,f=this.selectHighlightedItem,O=this.setHighlightedIndex,P=this.clearSelection,F=this.clearItems,D=this.reset,V=this.setItemCount,J=this.unsetItemCount,ue=this.internalSetState;return{getRootProps:p,getToggleButtonProps:g,getLabelProps:m,getMenuProps:E,getInputProps:v,getItemProps:k,reset:D,openMenu:S,closeMenu:w,toggleMenu:I,selectItem:A,selectItemAtIndex:y,selectHighlightedItem:f,setHighlightedIndex:O,clearSelection:P,clearItems:F,setItemCount:V,unsetItemCount:J,setState:ue,itemToString:c,id:h,highlightedIndex:a,inputValue:s,isOpen:u,selectedItem:l}},n.componentDidMount=function(){var r=this;if(ce.NODE_ENV!=="production"&&this.getMenuProps.called&&!this.getMenuProps.suppressRefError&&fc(this._menuNode,this.getMenuProps),!this.props.environment)this.cleanup=function(){r.internalClearTimeouts()};else{var a=function(){r.isMouseDown=!0},s=function(p){r.isMouseDown=!1;var g=wa(p.target,[r._rootNode,r._menuNode],r.props.environment);!g&&r.getState().isOpen&&r.reset({type:Bd},function(){return r.props.onOuterClick(r.getStateAndHelpers())})},l=function(){r.isTouchMove=!1},u=function(){r.isTouchMove=!0},c=function(p){var g=wa(p.target,[r._rootNode,r._menuNode],r.props.environment,!1);!r.isTouchMove&&!g&&r.getState().isOpen&&r.reset({type:Xd},function(){return r.props.onOuterClick(r.getStateAndHelpers())})},h=this.props.environment;h.addEventListener("mousedown",a),h.addEventListener("mouseup",s),h.addEventListener("touchstart",l),h.addEventListener("touchmove",u),h.addEventListener("touchend",c),this.cleanup=function(){r.internalClearTimeouts(),r.updateStatus.cancel(),h.removeEventListener("mousedown",a),h.removeEventListener("mouseup",s),h.removeEventListener("touchstart",l),h.removeEventListener("touchmove",u),h.removeEventListener("touchend",c)}}},n.shouldScroll=function(r,a){var s=this.props.highlightedIndex===void 0?this.getState():this.props,l=s.highlightedIndex,u=a.highlightedIndex===void 0?r:a,c=u.highlightedIndex,h=l&&this.getState().isOpen&&!r.isOpen,p=l!==c;return h||p},n.componentDidUpdate=function(r,a){ce.NODE_ENV!=="production"&&(qo(this.state,r,this.props),this.getMenuProps.called&&!this.getMenuProps.suppressRefError&&fc(this._menuNode,this.getMenuProps)),ya(this.props,"selectedItem")&&this.props.selectedItemChanged(r.selectedItem,this.props.selectedItem)&&this.internalSetState({type:Zd,inputValue:this.props.itemToString(this.props.selectedItem)}),!this.avoidScrolling&&this.shouldScroll(a,r)&&this.scrollHighlightedItemIntoView(),this.updateStatus()},n.componentWillUnmount=function(){this.cleanup()},n.render=function(){var r=pc(this.props.children,Nt);this.clearItems(),this.getRootProps.called=!1,this.getRootProps.refKey=void 0,this.getRootProps.suppressRefError=void 0,this.getMenuProps.called=!1,this.getMenuProps.refKey=void 0,this.getMenuProps.suppressRefError=void 0,this.getLabelProps.called=!1,this.getInputProps.called=!1;var a=pc(r(this.getStateAndHelpers()));if(!a)return null;if(this.getRootProps.called||this.props.suppressRefError)return ce.NODE_ENV!=="production"&&!this.getRootProps.suppressRefError&&!this.props.suppressRefError&&Fb(a,this.getRootProps),a;if(Dd(a))return M.cloneElement(a,this.getRootProps(Fd(a)));if(ce.NODE_ENV!=="production")throw new Error("downshift: If you return a non-DOM element, you must apply the getRootProps function")},i})(M.Component);return e.defaultProps={defaultHighlightedIndex:null,defaultIsOpen:!1,getA11yStatusMessage:Eb,itemToString:function(t){return t==null?"":(ce.NODE_ENV!=="production"&&_b(t)&&!t.hasOwnProperty("toString")&&console.warn("downshift: An object was passed to the default implementation of `itemToString`. You should probably provide your own `itemToString` implementation. Please refer to the `itemToString` API documentation.","The object that was passed:",t),String(t))},onStateChange:Nt,onInputValueChange:Nt,onUserAction:Nt,onChange:Nt,onSelect:Nt,onOuterClick:Nt,selectedItemChanged:function(t,i){return t!==i},environment:typeof window>"u"?void 0:window,stateReducer:function(t,i){return i},suppressRefError:!1,scrollIntoView:Md},e.stateChangeTypes=Tb,e})();ce.NODE_ENV!=="production"&&(Db.propTypes={children:ge.func,defaultHighlightedIndex:ge.number,defaultIsOpen:ge.bool,initialHighlightedIndex:ge.number,initialSelectedItem:ge.any,initialInputValue:ge.string,initialIsOpen:ge.bool,getA11yStatusMessage:ge.func,itemToString:ge.func,onChange:ge.func,onSelect:ge.func,onStateChange:ge.func,onInputValueChange:ge.func,onUserAction:ge.func,onOuterClick:ge.func,selectedItemChanged:ge.func,stateReducer:ge.func,itemCount:ge.number,id:ge.string,environment:ge.shape({addEventListener:ge.func.isRequired,removeEventListener:ge.func.isRequired,document:ge.shape({createElement:ge.func.isRequired,getElementById:ge.func.isRequired,activeElement:ge.any.isRequired,body:ge.any.isRequired}).isRequired,Node:ge.func.isRequired}),suppressRefError:ge.bool,scrollIntoView:ge.func,selectedItem:ge.any,isOpen:ge.bool,inputValue:ge.string,highlightedIndex:ge.number,labelId:ge.string,inputId:ge.string,menuId:ge.string,getItemId:ge.func});function fc(e,t){var i=t.refKey;e||console.error('downshift: The ref prop "'+i+'" from getMenuProps was not applied correctly on your menu element.')}function Fb(e,t){var i=t.refKey,n=i!=="ref",r=!Dd(e);r&&!n&&!lc.isForwardRef(e)?console.error("downshift: You returned a non-DOM element. You must specify a refKey in getRootProps"):!r&&n&&console.error('downshift: You returned a DOM element. You should not specify a refKey in getRootProps. You specified "'+i+'"'),!lc.isForwardRef(e)&&!Fd(e)[i]&&console.error('downshift: You must apply the ref prop "'+i+'" from getRootProps onto your root element.')}var ep={highlightedIndex:-1,isOpen:!1,selectedItem:null,inputValue:""};function jb(e,t,i){var n=e.props,r=e.type,a={};Object.keys(t).forEach(function(s){zb(s,e,t,i),i[s]!==t[s]&&(a[s]=i[s])}),n.onStateChange&&Object.keys(a).length&&n.onStateChange(Me({type:r},a))}function zb(e,t,i,n){var r=t.props,a=t.type,s="on"+$o(e)+"Change";r[s]&&n[e]!==void 0&&n[e]!==i[e]&&r[s](Me({type:a},n))}function Vb(e,t){return t.changes}var gc=Ka(function(e,t){zd(e,t)},200),Bb=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u"?M.useLayoutEffect:M.useEffect,tp="useId"in M?function(e){var t=e.id,i=e.labelId,n=e.menuId,r=e.getItemId,a=e.toggleButtonId,s=e.inputId,l="downshift-"+M.useId();t||(t=l);var u=M.useMemo(function(){return{labelId:i||t+"-label",menuId:n||t+"-menu",getItemId:r||function(c){return t+"-item-"+c},toggleButtonId:a||t+"-toggle-button",inputId:s||t+"-input"}},[r,t,s,i,n,a]);return u}:function(e){var t=e.id,i=t===void 0?"downshift-"+Ld():t,n=e.labelId,r=e.menuId,a=e.getItemId,s=e.toggleButtonId,l=e.inputId,u=M.useMemo(function(){return{labelId:n||i+"-label",menuId:r||i+"-menu",getItemId:a||function(c){return i+"-item-"+c},toggleButtonId:s||i+"-toggle-button",inputId:l||i+"-input"}},[a,i,l,n,r,s]);return u};function Go(e,t,i,n){var r,a;if(e===void 0){if(t===void 0)throw new Error(n);r=i[t],a=t}else a=t===void 0?i.indexOf(e):t,r=e;return[r,a]}function Hb(e){return/^\S{1}$/.test(e)}function $o(e){return""+e.slice(0,1).toUpperCase()+e.slice(1)}function Wa(e){var t=M.useRef(e);return t.current=e,t}function ip(e,t,i,n){var r=M.useRef(),a=M.useRef(),s=M.useCallback(function(m,E){a.current=E,m=hr(m,E.props);var v=e(m,E),k=E.props.stateReducer(m,Me({},E,{changes:v}));return k},[e]),l=M.useReducer(s,t,i),u=l[0],c=l[1],h=Wa(t),p=M.useCallback(function(m){return c(Me({props:h.current},m))},[h]),g=a.current;return M.useEffect(function(){var m=hr(r.current,g==null?void 0:g.props),E=g&&r.current&&!n(m,u);E&&jb(g,m,u),r.current=u},[u,g,n]),[u,p]}function np(e,t,i,n){var r=ip(e,t,i,n),a=r[0],s=r[1];return[hr(a,t),s]}var rr={itemToString:function(e){return e?String(e):""},itemToKey:function(e){return e},stateReducer:Vb,scrollIntoView:Md,environment:typeof window>"u"?void 0:window};function mi(e,t,i){i===void 0&&(i=ep);var n=e["default"+$o(t)];return n!==void 0?n:i[t]}function sn(e,t,i){i===void 0&&(i=ep);var n=e[t];if(n!==void 0)return n;var r=e["initial"+$o(t)];return r!==void 0?r:mi(e,t,i)}function rp(e){var t=sn(e,"selectedItem"),i=sn(e,"isOpen"),n=Kb(e),r=sn(e,"inputValue");return{highlightedIndex:n<0&&t&&i?e.items.findIndex(function(a){return e.itemToKey(a)===e.itemToKey(t)}):n,isOpen:i,selectedItem:t,inputValue:r}}function on(e,t,i){var n=e.items,r=e.initialHighlightedIndex,a=e.defaultHighlightedIndex,s=e.isItemDisabled,l=e.itemToKey,u=t.selectedItem,c=t.highlightedIndex;return n.length===0?-1:r!==void 0&&c===r&&!s(n[r],r)?r:a!==void 0&&!s(n[a],a)?a:u?n.findIndex(function(h){return l(u)===l(h)}):i<0&&!s(n[n.length-1],n.length-1)?n.length-1:i>0&&!s(n[0],0)?0:-1}function ap(e,t,i){var n=M.useRef({isMouseDown:!1,isTouchMove:!1,isTouchEnd:!1}),r=M.useCallback(function(){return i.map(function(a){return a.current})},[i]);return M.useEffect(function(){if(!e)return Nt;function a(){n.current.isTouchEnd=!1,n.current.isMouseDown=!0}function s(h){n.current.isMouseDown=!1,wa(h.target,r(),e)||t()}function l(){n.current.isTouchEnd=!1,n.current.isTouchMove=!1}function u(){n.current.isTouchMove=!0}function c(h){n.current.isTouchEnd=!0,!n.current.isTouchMove&&!wa(h.target,r(),e,!1)&&t()}return e.addEventListener("mousedown",a),e.addEventListener("mouseup",s),e.addEventListener("touchstart",l),e.addEventListener("touchmove",u),e.addEventListener("touchend",c),function(){e.removeEventListener("mousedown",a),e.removeEventListener("mouseup",s),e.removeEventListener("touchstart",l),e.removeEventListener("touchmove",u),e.removeEventListener("touchend",c)}},[e,r,t]),n.current}var Ua=function(){return Nt};ce.NODE_ENV!=="production"&&(Ua=function(){for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];var n=M.useRef(t.reduce(function(a,s){return a[s]={},a},{}));M.useEffect(function(){Object.keys(n.current).forEach(function(a){var s=n.current[a];if(!Object.keys(s).length){console.error("downshift: You forgot to call the "+a+" getter function on your component / element.");return}var l=s.suppressRefError,u=s.refKey,c=s.elementRef;l||c!=null&&c.current||console.error('downshift: The ref prop "'+u+'" from '+a+" was not applied correctly on your element.")})},[]);var r=M.useCallback(function(a,s,l,u){n.current[a]={suppressRefError:s,refKey:l,elementRef:u}},[]);return r});function Jo(e,t,i,n){n===void 0&&(n={});var r=n.document,a=yr();M.useEffect(function(){if(!(!e||a||!r)){var s=e(t);gc(s,r)}},i),M.useEffect(function(){return function(){gc.cancel(),Nb(r)}},[r])}function sp(e){var t=e.highlightedIndex,i=e.isOpen,n=e.itemRefs,r=e.getItemNodeFromIndex,a=e.menuElement,s=e.scrollIntoView,l=M.useRef(!0);return Bb(function(){t<0||!i||!Object.keys(n.current).length||(l.current===!1?l.current=!0:s(r(t),a))},[t]),l}var qa=Nt;ce.NODE_ENV!=="production"&&(qa=function(e){var t=e.props,i=e.state,n=M.useRef(t),r=yr();M.useEffect(function(){r||(qo(i,n.current,t),n.current=t)},[i,t,r])});function ka(e,t,i){var n;i===void 0&&(i=!0);var r=((n=e.items)==null?void 0:n.length)&&t>=0;return Me({isOpen:!1,highlightedIndex:-1},r&&Me({selectedItem:e.items[t],isOpen:mi(e,"isOpen"),highlightedIndex:mi(e,"highlightedIndex")},i&&{inputValue:e.itemToString(e.items[t])}))}function op(e,t){return e.isOpen===t.isOpen&&e.inputValue===t.inputValue&&e.highlightedIndex===t.highlightedIndex&&e.selectedItem===t.selectedItem}function yr(){var e=M.useRef(!0);return M.useEffect(function(){return e.current=!1,function(){e.current=!0}},[]),e.current}function Sa(e){var t=mi(e,"highlightedIndex");return t>-1&&e.isItemDisabled(e.items[t],t)?-1:t}function Kb(e){var t=sn(e,"highlightedIndex");return t>-1&&e.isItemDisabled(e.items[t],t)?-1:t}var la={environment:ge.shape({addEventListener:ge.func.isRequired,removeEventListener:ge.func.isRequired,document:ge.shape({createElement:ge.func.isRequired,getElementById:ge.func.isRequired,activeElement:ge.any.isRequired,body:ge.any.isRequired}).isRequired,Node:ge.func.isRequired}),itemToString:ge.func,itemToKey:ge.func,stateReducer:ge.func},lp=Me({},la,{getA11yStatusMessage:ge.func,highlightedIndex:ge.number,defaultHighlightedIndex:ge.number,initialHighlightedIndex:ge.number,isOpen:ge.bool,defaultIsOpen:ge.bool,initialIsOpen:ge.bool,selectedItem:ge.any,initialSelectedItem:ge.any,defaultSelectedItem:ge.any,id:ge.string,labelId:ge.string,menuId:ge.string,getItemId:ge.func,toggleButtonId:ge.string,onSelectedItemChange:ge.func,onHighlightedIndexChange:ge.func,onStateChange:ge.func,onIsOpenChange:ge.func,scrollIntoView:ge.func});function up(e,t,i){var n=t.type,r=t.props,a;switch(n){case i.ItemMouseMove:a={highlightedIndex:t.disabled?-1:t.index};break;case i.MenuMouseLeave:a={highlightedIndex:-1};break;case i.ToggleButtonClick:case i.FunctionToggleMenu:a={isOpen:!e.isOpen,highlightedIndex:e.isOpen?-1:on(r,e,0)};break;case i.FunctionOpenMenu:a={isOpen:!0,highlightedIndex:on(r,e,0)};break;case i.FunctionCloseMenu:a={isOpen:!1};break;case i.FunctionSetHighlightedIndex:a={highlightedIndex:r.isItemDisabled(r.items[t.highlightedIndex],t.highlightedIndex)?-1:t.highlightedIndex};break;case i.FunctionSetInputValue:a={inputValue:t.inputValue};break;case i.FunctionReset:a={highlightedIndex:Sa(r),isOpen:mi(r,"isOpen"),selectedItem:mi(r,"selectedItem"),inputValue:mi(r,"inputValue")};break;default:throw new Error("Reducer called without proper action type.")}return Me({},e,a)}function Wb(e){for(var t=e.keysSoFar,i=e.highlightedIndex,n=e.items,r=e.itemToString,a=e.isItemDisabled,s=t.toLowerCase(),l=0;l<n.length;l++){var u=(l+i+(t.length<2?1:0))%n.length,c=n[u];if(c!==void 0&&r(c).toLowerCase().startsWith(s)&&!a(c,u))return u}return i}var Ub=Ln(Ln({},lp),{items:ge.array.isRequired,isItemDisabled:ge.func}),qb=Ln(Ln({},rr),{isItemDisabled:function(){return!1}}),cp=Nt;ce.NODE_ENV!=="production"&&(cp=function(e,t){ge.checkPropTypes(Ub,e,"prop",t.name)});var ua=ce.NODE_ENV!=="production"?"__togglebutton_click__":0,Yo=ce.NODE_ENV!=="production"?"__togglebutton_keydown_arrow_down__":1,Qo=ce.NODE_ENV!=="production"?"__togglebutton_keydown_arrow_up__":2,Ea=ce.NODE_ENV!=="production"?"__togglebutton_keydown_character__":3,Zo=ce.NODE_ENV!=="production"?"__togglebutton_keydown_escape__":4,Xo=ce.NODE_ENV!=="production"?"__togglebutton_keydown_home__":5,el=ce.NODE_ENV!=="production"?"__togglebutton_keydown_end__":6,tl=ce.NODE_ENV!=="production"?"__togglebutton_keydown_enter__":7,il=ce.NODE_ENV!=="production"?"__togglebutton_keydown_space_button__":8,nl=ce.NODE_ENV!=="production"?"__togglebutton_keydown_page_up__":9,rl=ce.NODE_ENV!=="production"?"__togglebutton_keydown_page_down__":10,Ca=ce.NODE_ENV!=="production"?"__togglebutton_blur__":11,hp=ce.NODE_ENV!=="production"?"__menu_mouse_leave__":12,dp=ce.NODE_ENV!=="production"?"__item_mouse_move__":13,al=ce.NODE_ENV!=="production"?"__item_click__":14,pp=ce.NODE_ENV!=="production"?"__function_toggle_menu__":15,fp=ce.NODE_ENV!=="production"?"__function_open_menu__":16,gp=ce.NODE_ENV!=="production"?"__function_close_menu__":17,mp=ce.NODE_ENV!=="production"?"__function_set_highlighted_index__":18,sl=ce.NODE_ENV!=="production"?"__function_select_item__":19,co=ce.NODE_ENV!=="production"?"__function_set_input_value__":20,vp=ce.NODE_ENV!=="production"?"__function_reset__":21,xp=Object.freeze({__proto__:null,FunctionCloseMenu:gp,FunctionOpenMenu:fp,FunctionReset:vp,FunctionSelectItem:sl,FunctionSetHighlightedIndex:mp,FunctionSetInputValue:co,FunctionToggleMenu:pp,ItemClick:al,ItemMouseMove:dp,MenuMouseLeave:hp,ToggleButtonBlur:Ca,ToggleButtonClick:ua,ToggleButtonKeyDownArrowDown:Yo,ToggleButtonKeyDownArrowUp:Qo,ToggleButtonKeyDownCharacter:Ea,ToggleButtonKeyDownEnd:el,ToggleButtonKeyDownEnter:tl,ToggleButtonKeyDownEscape:Zo,ToggleButtonKeyDownHome:Xo,ToggleButtonKeyDownPageDown:rl,ToggleButtonKeyDownPageUp:nl,ToggleButtonKeyDownSpaceButton:il});function Gb(e,t){var i,n=t.type,r=t.props,a=t.altKey,s;switch(n){case al:s={isOpen:mi(r,"isOpen"),highlightedIndex:Sa(r),selectedItem:r.items[t.index]};break;case Ea:{var l=t.key,u=""+e.inputValue+l,c=!e.isOpen&&e.selectedItem?r.items.findIndex(function(m){return r.itemToKey(m)===r.itemToKey(e.selectedItem)}):e.highlightedIndex,h=Wb({keysSoFar:u,highlightedIndex:c,items:r.items,itemToString:r.itemToString,isItemDisabled:r.isItemDisabled});s={inputValue:u,highlightedIndex:h,isOpen:!0}}break;case Yo:{var p=e.isOpen?li(e.highlightedIndex,1,r.items,r.isItemDisabled):a&&e.selectedItem==null?-1:on(r,e,1);s={highlightedIndex:p,isOpen:!0}}break;case Qo:if(e.isOpen&&a)s=ka(r,e.highlightedIndex,!1);else{var g=e.isOpen?li(e.highlightedIndex,-1,r.items,r.isItemDisabled):on(r,e,-1);s={highlightedIndex:g,isOpen:!0}}break;case tl:case il:s=ka(r,e.highlightedIndex,!1);break;case Xo:s={highlightedIndex:Bi(0,!1,r.items,r.isItemDisabled),isOpen:!0};break;case el:s={highlightedIndex:Bi(r.items.length-1,!0,r.items,r.isItemDisabled),isOpen:!0};break;case nl:s={highlightedIndex:li(e.highlightedIndex,-10,r.items,r.isItemDisabled)};break;case rl:s={highlightedIndex:li(e.highlightedIndex,10,r.items,r.isItemDisabled)};break;case Zo:s={isOpen:!1,highlightedIndex:-1};break;case Ca:s=Me({isOpen:!1,highlightedIndex:-1},e.highlightedIndex>=0&&((i=r.items)==null?void 0:i.length)&&{selectedItem:r.items[e.highlightedIndex]});break;case sl:s={selectedItem:t.selectedItem};break;default:return up(e,t,xp)}return Me({},e,s)}var $b=["onClick"],Jb=["onMouseLeave","refKey","ref"],Yb=["onBlur","onClick","onPress","onKeyDown","refKey","ref"],Qb=["item","index","onMouseMove","onClick","onMouseDown","onPress","refKey","disabled","ref"];Ii.stateChangeTypes=xp;function Ii(e){e===void 0&&(e={}),cp(e,Ii);var t=Me({},qb,e),i=t.scrollIntoView,n=t.environment,r=t.getA11yStatusMessage,a=np(Gb,t,rp,op),s=a[0],l=a[1],u=s.isOpen,c=s.highlightedIndex,h=s.selectedItem,p=s.inputValue,g=M.useRef(null),m=M.useRef(null),E=M.useRef({}),v=M.useRef(null),k=tp(t),S=Wa({state:s,props:t}),w=M.useCallback(function(C){return E.current[k.getItemId(C)]},[k]);Jo(r,s,[u,c,h,p],n);var I=sp({menuElement:m.current,highlightedIndex:c,isOpen:u,itemRefs:E,scrollIntoView:i,getItemNodeFromIndex:w});M.useEffect(function(){return v.current=Ka(function(C){C({type:co,inputValue:""})},500),function(){v.current.cancel()}},[]),M.useEffect(function(){p&&v.current(l)},[l,p]),qa({props:t,state:s}),M.useEffect(function(){var C=sn(t,"isOpen");C&&g.current&&g.current.focus()},[]);var A=M.useCallback(function(){S.current.state.isOpen&&l({type:Ca})},[l,S]),y=M.useMemo(function(){return[m,g]},[]),f=ap(n,A,y),O=Ua("getMenuProps","getToggleButtonProps");M.useEffect(function(){u||(E.current={})},[u]);var P=M.useMemo(function(){return{ArrowDown:function(C){C.preventDefault(),l({type:Yo,altKey:C.altKey})},ArrowUp:function(C){C.preventDefault(),l({type:Qo,altKey:C.altKey})},Home:function(C){C.preventDefault(),l({type:Xo})},End:function(C){C.preventDefault(),l({type:el})},Escape:function(){S.current.state.isOpen&&l({type:Zo})},Enter:function(C){C.preventDefault(),l({type:S.current.state.isOpen?tl:ua})},PageUp:function(C){S.current.state.isOpen&&(C.preventDefault(),l({type:nl}))},PageDown:function(C){S.current.state.isOpen&&(C.preventDefault(),l({type:rl}))}," ":function(C){C.preventDefault();var $=S.current.state;if(!$.isOpen){l({type:ua});return}$.inputValue?l({type:Ea,key:" "}):l({type:il})}}},[l,S]),F=M.useCallback(function(){l({type:pp})},[l]),D=M.useCallback(function(){l({type:gp})},[l]),V=M.useCallback(function(){l({type:fp})},[l]),J=M.useCallback(function(C){l({type:mp,highlightedIndex:C})},[l]),ue=M.useCallback(function(C){l({type:sl,selectedItem:C})},[l]),Q=M.useCallback(function(){l({type:vp})},[l]),se=M.useCallback(function(C){l({type:co,inputValue:C})},[l]),j=M.useCallback(function(C){var $=C===void 0?{}:C,ee=$.onClick,T=Tt($,$b),B=function(){var W;(W=g.current)==null||W.focus()};return Me({id:k.labelId,htmlFor:k.toggleButtonId,onClick:Ze(ee,B)},T)},[k]),U=M.useCallback(function(C,$){var ee,T=C===void 0?{}:C,B=T.onMouseLeave,W=T.refKey,z=W===void 0?"ref":W,K=T.ref,ne=Tt(T,Jb),ae=$===void 0?{}:$,le=ae.suppressRefError,oe=le===void 0?!1:le,H=function(){l({type:hp})};return O("getMenuProps",oe,z,m),Me((ee={},ee[z]=oi(K,function(ve){m.current=ve}),ee.id=k.menuId,ee.role="listbox",ee["aria-labelledby"]=ne&&ne["aria-label"]?void 0:""+k.labelId,ee.onMouseLeave=Ze(B,H),ee),ne)},[l,O,k]),Y=M.useCallback(function(C,$){var ee,T=C===void 0?{}:C,B=T.onBlur,W=T.onClick;T.onPress;var z=T.onKeyDown,K=T.refKey,ne=K===void 0?"ref":K,ae=T.ref,le=Tt(T,Yb),oe=$===void 0?{}:$,H=oe.suppressRefError,ve=H===void 0?!1:H,Z=S.current.state,xe=function(){l({type:ua})},be=function(){Z.isOpen&&!f.isMouseDown&&l({type:Ca})},ie=function(Ee){var we=Dn(Ee);we&&P[we]?P[we](Ee):Hb(we)&&l({type:Ea,key:we})},me=Me((ee={},ee[ne]=oi(ae,function(Ee){g.current=Ee}),ee["aria-activedescendant"]=Z.isOpen&&Z.highlightedIndex>-1?k.getItemId(Z.highlightedIndex):"",ee["aria-controls"]=k.menuId,ee["aria-expanded"]=S.current.state.isOpen,ee["aria-haspopup"]="listbox",ee["aria-labelledby"]=le&&le["aria-label"]?void 0:""+k.labelId,ee.id=k.toggleButtonId,ee.role="combobox",ee.tabIndex=0,ee.onBlur=Ze(B,be),ee),le);return le.disabled||(me.onClick=Ze(W,xe),me.onKeyDown=Ze(z,ie)),O("getToggleButtonProps",ve,ne,g),me},[l,k,S,f,O,P]),de=M.useCallback(function(C){var $,ee=C===void 0?{}:C,T=ee.item,B=ee.index,W=ee.onMouseMove,z=ee.onClick,K=ee.onMouseDown;ee.onPress;var ne=ee.refKey,ae=ne===void 0?"ref":ne,le=ee.disabled,oe=ee.ref,H=Tt(ee,Qb);le!==void 0&&console.warn('Passing "disabled" as an argument to getItemProps is not supported anymore. Please use the isItemDisabled prop from useSelect.');var ve=S.current,Z=ve.state,xe=ve.props,be=Go(T,B,xe.items,"Pass either item or index to getItemProps!"),ie=be[0],me=be[1],Ee=xe.isItemDisabled(ie,me),we=function(){f.isTouchEnd||me===Z.highlightedIndex||(I.current=!1,l({type:dp,index:me,disabled:Ee}))},Be=function(){l({type:al,index:me})},ze=function(Re){return Re.preventDefault()},Pe=Me(($={},$[ae]=oi(oe,function(Re){Re&&(E.current[k.getItemId(me)]=Re)}),$["aria-disabled"]=Ee,$["aria-selected"]=ie===Z.selectedItem,$.id=k.getItemId(me),$.role="option",$),H);return Ee||(Pe.onClick=Ze(z,Be)),Pe.onMouseMove=Ze(W,we),Pe.onMouseDown=Ze(K,ze),Pe},[S,k,f,I,l]);return{getToggleButtonProps:Y,getLabelProps:j,getMenuProps:U,getItemProps:de,toggleMenu:F,openMenu:V,closeMenu:D,setHighlightedIndex:J,selectItem:ue,reset:Q,setInputValue:se,highlightedIndex:c,isOpen:u,selectedItem:h,inputValue:p}}var ol=ce.NODE_ENV!=="production"?"__input_keydown_arrow_down__":0,ll=ce.NODE_ENV!=="production"?"__input_keydown_arrow_up__":1,ul=ce.NODE_ENV!=="production"?"__input_keydown_escape__":2,cl=ce.NODE_ENV!=="production"?"__input_keydown_home__":3,hl=ce.NODE_ENV!=="production"?"__input_keydown_end__":4,dl=ce.NODE_ENV!=="production"?"__input_keydown_page_up__":5,pl=ce.NODE_ENV!=="production"?"__input_keydown_page_down__":6,fl=ce.NODE_ENV!=="production"?"__input_keydown_enter__":7,gl=ce.NODE_ENV!=="production"?"__input_change__":8,Ia=ce.NODE_ENV!=="production"?"__input_blur__":9,ml=ce.NODE_ENV!=="production"?"__input_click__":10,bp=ce.NODE_ENV!=="production"?"__menu_mouse_leave__":11,yp=ce.NODE_ENV!=="production"?"__item_mouse_move__":12,vl=ce.NODE_ENV!=="production"?"__item_click__":13,wp=ce.NODE_ENV!=="production"?"__togglebutton_click__":14,kp=ce.NODE_ENV!=="production"?"__function_toggle_menu__":15,Sp=ce.NODE_ENV!=="production"?"__function_open_menu__":16,Ep=ce.NODE_ENV!=="production"?"__function_close_menu__":17,Cp=ce.NODE_ENV!=="production"?"__function_set_highlighted_index__":18,xl=ce.NODE_ENV!=="production"?"__function_select_item__":19,Ip=ce.NODE_ENV!=="production"?"__function_set_input_value__":20,_p=ce.NODE_ENV!=="production"?"__function_reset__":21,bl=ce.NODE_ENV!=="production"?"__controlled_prop_updated_selected_item__":22,Ap=Object.freeze({__proto__:null,ControlledPropUpdatedSelectedItem:bl,FunctionCloseMenu:Ep,FunctionOpenMenu:Sp,FunctionReset:_p,FunctionSelectItem:xl,FunctionSetHighlightedIndex:Cp,FunctionSetInputValue:Ip,FunctionToggleMenu:kp,InputBlur:Ia,InputChange:gl,InputClick:ml,InputKeyDownArrowDown:ol,InputKeyDownArrowUp:ll,InputKeyDownEnd:hl,InputKeyDownEnter:fl,InputKeyDownEscape:ul,InputKeyDownHome:cl,InputKeyDownPageDown:pl,InputKeyDownPageUp:dl,ItemClick:vl,ItemMouseMove:yp,MenuMouseLeave:bp,ToggleButtonClick:wp});function Zb(e){var t=rp(e),i=t.selectedItem,n=t.inputValue;return n===""&&i&&e.defaultInputValue===void 0&&e.initialInputValue===void 0&&e.inputValue===void 0&&(n=e.itemToString(i)),Me({},t,{inputValue:n})}var Xb=Me({},lp,{items:ge.array.isRequired,isItemDisabled:ge.func,inputValue:ge.string,defaultInputValue:ge.string,initialInputValue:ge.string,inputId:ge.string,onInputValueChange:ge.func});function ey(e,t,i,n){var r=M.useRef(),a=ip(e,t,i,n),s=a[0],l=a[1],u=yr();return M.useEffect(function(){if(ya(t,"selectedItem")){if(!u){var c=t.itemToKey(t.selectedItem)!==t.itemToKey(r.current);c&&l({type:bl,inputValue:t.itemToString(t.selectedItem)})}r.current=s.selectedItem===r.current?t.selectedItem:s.selectedItem}},[s.selectedItem,t.selectedItem]),[hr(s,t),l]}var Np=Nt;ce.NODE_ENV!=="production"&&(Np=function(e,t){ge.checkPropTypes(Xb,e,"prop",t.name)});var ty=Me({},rr,{isItemDisabled:function(){return!1}});function iy(e,t){var i,n=t.type,r=t.props,a=t.altKey,s;switch(n){case vl:s={isOpen:mi(r,"isOpen"),highlightedIndex:Sa(r),selectedItem:r.items[t.index],inputValue:r.itemToString(r.items[t.index])};break;case ol:e.isOpen?s={highlightedIndex:li(e.highlightedIndex,1,r.items,r.isItemDisabled,!0)}:s={highlightedIndex:a&&e.selectedItem==null?-1:on(r,e,1),isOpen:r.items.length>=0};break;case ll:e.isOpen?a?s=ka(r,e.highlightedIndex):s={highlightedIndex:li(e.highlightedIndex,-1,r.items,r.isItemDisabled,!0)}:s={highlightedIndex:on(r,e,-1),isOpen:r.items.length>=0};break;case fl:s=ka(r,e.highlightedIndex);break;case ul:s=Me({isOpen:!1,highlightedIndex:-1},!e.isOpen&&{selectedItem:null,inputValue:""});break;case dl:s={highlightedIndex:li(e.highlightedIndex,-10,r.items,r.isItemDisabled,!0)};break;case pl:s={highlightedIndex:li(e.highlightedIndex,10,r.items,r.isItemDisabled,!0)};break;case cl:s={highlightedIndex:Bi(0,!1,r.items,r.isItemDisabled)};break;case hl:s={highlightedIndex:Bi(r.items.length-1,!0,r.items,r.isItemDisabled)};break;case Ia:s=Me({isOpen:!1,highlightedIndex:-1},e.highlightedIndex>=0&&((i=r.items)==null?void 0:i.length)&&t.selectItem&&{selectedItem:r.items[e.highlightedIndex],inputValue:r.itemToString(r.items[e.highlightedIndex])});break;case gl:s={isOpen:!0,highlightedIndex:Sa(r),inputValue:t.inputValue};break;case ml:s={isOpen:!e.isOpen,highlightedIndex:e.isOpen?-1:on(r,e,0)};break;case xl:s={selectedItem:t.selectedItem,inputValue:r.itemToString(t.selectedItem)};break;case bl:s={inputValue:t.inputValue};break;default:return up(e,t,Ap)}return Me({},e,s)}var ny=["onMouseLeave","refKey","ref"],ry=["item","index","refKey","ref","onMouseMove","onMouseDown","onClick","onPress","disabled"],ay=["onClick","onPress","refKey","ref"],sy=["onKeyDown","onChange","onInput","onBlur","onChangeText","onClick","refKey","ref"];Dt.stateChangeTypes=Ap;function Dt(e){e===void 0&&(e={}),Np(e,Dt);var t=Me({},ty,e),i=t.items,n=t.scrollIntoView,r=t.environment,a=t.getA11yStatusMessage,s=ey(iy,t,Zb,op),l=s[0],u=s[1],c=l.isOpen,h=l.highlightedIndex,p=l.selectedItem,g=l.inputValue,m=M.useRef(null),E=M.useRef({}),v=M.useRef(null),k=M.useRef(null),S=yr(),w=tp(t),I=M.useRef(),A=Wa({state:l,props:t}),y=M.useCallback(function(B){return E.current[w.getItemId(B)]},[w]);Jo(a,l,[c,h,p,g],r);var f=sp({menuElement:m.current,highlightedIndex:h,isOpen:c,itemRefs:E,scrollIntoView:n,getItemNodeFromIndex:y});qa({props:t,state:l}),M.useEffect(function(){var B=sn(t,"isOpen");B&&v.current&&v.current.focus()},[]),M.useEffect(function(){S||(I.current=i.length)});var O=M.useCallback(function(){A.current.state.isOpen&&u({type:Ia})},[u,A]),P=M.useMemo(function(){return[m,k,v]},[]),F=ap(r,O,P),D=Ua("getInputProps","getMenuProps");M.useEffect(function(){c||(E.current={})},[c]),M.useEffect(function(){var B;!c||!(r!=null&&r.document)||!(v!=null&&(B=v.current)!=null&&B.focus)||r.document.activeElement!==v.current&&v.current.focus()},[c,r]);var V=M.useMemo(function(){return{ArrowDown:function(B){B.preventDefault(),u({type:ol,altKey:B.altKey})},ArrowUp:function(B){B.preventDefault(),u({type:ll,altKey:B.altKey})},Home:function(B){A.current.state.isOpen&&(B.preventDefault(),u({type:cl}))},End:function(B){A.current.state.isOpen&&(B.preventDefault(),u({type:hl}))},Escape:function(B){var W=A.current.state;(W.isOpen||W.inputValue||W.selectedItem||W.highlightedIndex>-1)&&(B.preventDefault(),u({type:ul}))},Enter:function(B){var W=A.current.state;!W.isOpen||B.which===229||(B.preventDefault(),u({type:fl}))},PageUp:function(B){A.current.state.isOpen&&(B.preventDefault(),u({type:dl}))},PageDown:function(B){A.current.state.isOpen&&(B.preventDefault(),u({type:pl}))}}},[u,A]),J=M.useCallback(function(B){return Me({id:w.labelId,htmlFor:w.inputId},B)},[w]),ue=M.useCallback(function(B,W){var z,K=B===void 0?{}:B,ne=K.onMouseLeave,ae=K.refKey,le=ae===void 0?"ref":ae,oe=K.ref,H=Tt(K,ny),ve=W===void 0?{}:W,Z=ve.suppressRefError,xe=Z===void 0?!1:Z;return D("getMenuProps",xe,le,m),Me((z={},z[le]=oi(oe,function(be){m.current=be}),z.id=w.menuId,z.role="listbox",z["aria-labelledby"]=H&&H["aria-label"]?void 0:""+w.labelId,z.onMouseLeave=Ze(ne,function(){u({type:bp})}),z),H)},[u,D,w]),Q=M.useCallback(function(B){var W,z,K=B===void 0?{}:B,ne=K.item,ae=K.index,le=K.refKey,oe=le===void 0?"ref":le,H=K.ref,ve=K.onMouseMove,Z=K.onMouseDown,xe=K.onClick;K.onPress;var be=K.disabled,ie=Tt(K,ry);be!==void 0&&console.warn('Passing "disabled" as an argument to getItemProps is not supported anymore. Please use the isItemDisabled prop from useCombobox.');var me=A.current,Ee=me.props,we=me.state,Be=Go(ne,ae,Ee.items,"Pass either item or index to getItemProps!"),ze=Be[0],Pe=Be[1],Re=Ee.isItemDisabled(ze,Pe),rt="onClick",te=xe,re=function(){F.isTouchEnd||Pe===we.highlightedIndex||(f.current=!1,u({type:yp,index:Pe,disabled:Re}))},R=function(){u({type:vl,index:Pe})},Ce=function(Fe){return Fe.preventDefault()};return Me((W={},W[oe]=oi(H,function(Fe){Fe&&(E.current[w.getItemId(Pe)]=Fe)}),W["aria-disabled"]=Re,W["aria-selected"]=Pe===we.highlightedIndex,W.id=w.getItemId(Pe),W.role="option",W),!Re&&(z={},z[rt]=Ze(te,R),z),{onMouseMove:Ze(ve,re),onMouseDown:Ze(Z,Ce)},ie)},[u,w,A,F,f]),se=M.useCallback(function(B){var W,z=B===void 0?{}:B,K=z.onClick;z.onPress;var ne=z.refKey,ae=ne===void 0?"ref":ne,le=z.ref,oe=Tt(z,ay),H=A.current.state,ve=function(){u({type:wp})};return Me((W={},W[ae]=oi(le,function(Z){k.current=Z}),W["aria-controls"]=w.menuId,W["aria-expanded"]=H.isOpen,W.id=w.toggleButtonId,W.tabIndex=-1,W),!oe.disabled&&Me({},{onClick:Ze(K,ve)}),oe)},[u,A,w]),j=M.useCallback(function(B,W){var z,K=B===void 0?{}:B,ne=K.onKeyDown,ae=K.onChange,le=K.onInput,oe=K.onBlur;K.onChangeText;var H=K.onClick,ve=K.refKey,Z=ve===void 0?"ref":ve,xe=K.ref,be=Tt(K,sy),ie=W===void 0?{}:W,me=ie.suppressRefError,Ee=me===void 0?!1:me;D("getInputProps",Ee,Z,v);var we=A.current.state,Be=function(R){var Ce=Dn(R);Ce&&V[Ce]&&V[Ce](R)},ze=function(R){u({type:gl,inputValue:R.target.value})},Pe=function(R){if(r!=null&&r.document&&we.isOpen&&!F.isMouseDown){var Ce=R.relatedTarget===null&&r.document.activeElement!==r.document.body;u({type:Ia,selectItem:!Ce})}},Re=function(){u({type:ml})},rt="onChange",te={};if(!be.disabled){var re;te=(re={},re[rt]=Ze(ae,le,ze),re.onKeyDown=Ze(ne,Be),re.onBlur=Ze(oe,Pe),re.onClick=Ze(H,Re),re)}return Me((z={},z[Z]=oi(xe,function(R){v.current=R}),z["aria-activedescendant"]=we.isOpen&&we.highlightedIndex>-1?w.getItemId(we.highlightedIndex):"",z["aria-autocomplete"]="list",z["aria-controls"]=w.menuId,z["aria-expanded"]=we.isOpen,z["aria-labelledby"]=be&&be["aria-label"]?void 0:w.labelId,z.autoComplete="off",z.id=w.inputId,z.role="combobox",z.value=we.inputValue,z),te,be)},[u,w,r,V,A,F,D]),U=M.useCallback(function(){u({type:kp})},[u]),Y=M.useCallback(function(){u({type:Ep})},[u]),de=M.useCallback(function(){u({type:Sp})},[u]),C=M.useCallback(function(B){u({type:Cp,highlightedIndex:B})},[u]),$=M.useCallback(function(B){u({type:xl,selectedItem:B})},[u]),ee=M.useCallback(function(B){u({type:Ip,inputValue:B})},[u]),T=M.useCallback(function(){u({type:_p})},[u]);return{getItemProps:Q,getLabelProps:J,getMenuProps:ue,getInputProps:j,getToggleButtonProps:se,toggleMenu:U,openMenu:de,closeMenu:Y,setHighlightedIndex:C,setInputValue:ee,selectItem:$,reset:T,highlightedIndex:h,isOpen:c,selectedItem:p,inputValue:g}}var Tp={activeIndex:-1,selectedItems:[]};function mc(e,t){return sn(e,t,Tp)}function vc(e,t){return mi(e,t,Tp)}function oy(e){var t=mc(e,"activeIndex"),i=mc(e,"selectedItems");return{activeIndex:t,selectedItems:i}}function xc(e){if(e.shiftKey||e.metaKey||e.ctrlKey||e.altKey)return!1;var t=e.target;return!(t instanceof HTMLInputElement&&t.value!==""&&(t.selectionStart!==0||t.selectionEnd!==0))}function ly(e,t){return e.selectedItems===t.selectedItems&&e.activeIndex===t.activeIndex}var uy={stateReducer:la.stateReducer,itemToKey:la.itemToKey,environment:la.environment,selectedItems:ge.array,initialSelectedItems:ge.array,defaultSelectedItems:ge.array,getA11yStatusMessage:ge.func,activeIndex:ge.number,initialActiveIndex:ge.number,defaultActiveIndex:ge.number,onActiveIndexChange:ge.func,onSelectedItemsChange:ge.func,keyNavigationNext:ge.string,keyNavigationPrevious:ge.string},cy={itemToKey:rr.itemToKey,stateReducer:rr.stateReducer,environment:rr.environment,keyNavigationNext:"ArrowRight",keyNavigationPrevious:"ArrowLeft"},Op=Nt;ce.NODE_ENV!=="production"&&(Op=function(e,t){ge.checkPropTypes(uy,e,"prop",t.name)});var yl=ce.NODE_ENV!=="production"?"__selected_item_click__":0,wl=ce.NODE_ENV!=="production"?"__selected_item_keydown_delete__":1,kl=ce.NODE_ENV!=="production"?"__selected_item_keydown_backspace__":2,Sl=ce.NODE_ENV!=="production"?"__selected_item_keydown_navigation_next__":3,El=ce.NODE_ENV!=="production"?"__selected_item_keydown_navigation_previous__":4,Cl=ce.NODE_ENV!=="production"?"__dropdown_keydown_navigation_previous__":5,Il=ce.NODE_ENV!=="production"?"__dropdown_keydown_backspace__":6,_l=ce.NODE_ENV!=="production"?"__dropdown_click__":7,Al=ce.NODE_ENV!=="production"?"__function_add_selected_item__":8,Nl=ce.NODE_ENV!=="production"?"__function_remove_selected_item__":9,Tl=ce.NODE_ENV!=="production"?"__function_set_selected_items__":10,Ol=ce.NODE_ENV!=="production"?"__function_set_active_index__":11,Pl=ce.NODE_ENV!=="production"?"__function_reset__":12,hy=Object.freeze({__proto__:null,DropdownClick:_l,DropdownKeyDownBackspace:Il,DropdownKeyDownNavigationPrevious:Cl,FunctionAddSelectedItem:Al,FunctionRemoveSelectedItem:Nl,FunctionReset:Pl,FunctionSetActiveIndex:Ol,FunctionSetSelectedItems:Tl,SelectedItemClick:yl,SelectedItemKeyDownBackspace:kl,SelectedItemKeyDownDelete:wl,SelectedItemKeyDownNavigationNext:Sl,SelectedItemKeyDownNavigationPrevious:El});function dy(e,t){var i=t.type,n=t.index,r=t.props,a=t.selectedItem,s=e.activeIndex,l=e.selectedItems,u;switch(i){case yl:u={activeIndex:n};break;case El:u={activeIndex:s-1<0?0:s-1};break;case Sl:u={activeIndex:s+1>=l.length?-1:s+1};break;case kl:case wl:{if(s<0)break;var c=s;l.length===1?c=-1:s===l.length-1&&(c=l.length-2),u=Me({selectedItems:[].concat(l.slice(0,s),l.slice(s+1))},{activeIndex:c});break}case Cl:u={activeIndex:l.length-1};break;case Il:u={selectedItems:l.slice(0,l.length-1)};break;case Al:u={selectedItems:[].concat(l,[a])};break;case _l:u={activeIndex:-1};break;case Nl:{var h=s,p=l.findIndex(function(E){return r.itemToKey(E)===r.itemToKey(a)});if(p<0)break;l.length===1?h=-1:p===l.length-1&&(h=l.length-2),u={selectedItems:[].concat(l.slice(0,p),l.slice(p+1)),activeIndex:h};break}case Tl:{var g=t.selectedItems;u={selectedItems:g};break}case Ol:{var m=t.activeIndex;u={activeIndex:m};break}case Pl:u={activeIndex:vc(r,"activeIndex"),selectedItems:vc(r,"selectedItems")};break;default:throw new Error("Reducer called without proper action type.")}return Me({},e,u)}var py=["refKey","ref","onClick","onKeyDown","selectedItem","index"],fy=["refKey","ref","onKeyDown","onClick","preventKeyAction"];Rl.stateChangeTypes=hy;function Rl(e){e===void 0&&(e={}),Op(e,Rl);var t=Me({},cy,e),i=t.getA11yStatusMessage,n=t.environment,r=t.keyNavigationNext,a=t.keyNavigationPrevious,s=np(dy,t,oy,ly),l=s[0],u=s[1],c=l.activeIndex,h=l.selectedItems,p=yr(),g=M.useRef(null),m=M.useRef();m.current=[];var E=Wa({state:l,props:t});Jo(i,l,[c,h],n),M.useEffect(function(){p||(c===-1&&g.current?g.current.focus():m.current[c]&&m.current[c].focus())},[c]),qa({props:t,state:l});var v=Ua("getDropdownProps"),k=M.useMemo(function(){var F;return F={},F[a]=function(){u({type:El})},F[r]=function(){u({type:Sl})},F.Delete=function(){u({type:wl})},F.Backspace=function(){u({type:kl})},F},[u,r,a]),S=M.useMemo(function(){var F;return F={},F[a]=function(D){xc(D)&&u({type:Cl})},F.Backspace=function(D){xc(D)&&u({type:Il})},F},[u,a]),w=M.useCallback(function(F){var D,V=F===void 0?{}:F,J=V.refKey,ue=J===void 0?"ref":J,Q=V.ref,se=V.onClick,j=V.onKeyDown,U=V.selectedItem,Y=V.index,de=Tt(V,py),C=E.current.state,$=Go(U,Y,C.selectedItems,"Pass either item or index to getSelectedItemProps!"),ee=$[1],T=ee>-1&&ee===C.activeIndex,B=function(){u({type:yl,index:ee})},W=function(z){var K=Dn(z);K&&k[K]&&k[K](z)};return Me((D={},D[ue]=oi(Q,function(z){z&&m.current.push(z)}),D.tabIndex=T?0:-1,D.onClick=Ze(se,B),D.onKeyDown=Ze(j,W),D),de)},[u,E,k]),I=M.useCallback(function(F,D){var V,J=F===void 0?{}:F,ue=J.refKey,Q=ue===void 0?"ref":ue,se=J.ref,j=J.onKeyDown,U=J.onClick,Y=J.preventKeyAction,de=Y===void 0?!1:Y,C=Tt(J,fy),$=D===void 0?{}:D,ee=$.suppressRefError,T=ee===void 0?!1:ee;v("getDropdownProps",T,Q,g);var B=function(z){var K=Dn(z);K&&S[K]&&S[K](z)},W=function(){u({type:_l})};return Me((V={},V[Q]=oi(se,function(z){z&&(g.current=z)}),V),!de&&{onKeyDown:Ze(j,B),onClick:Ze(U,W)},C)},[u,S,v]),A=M.useCallback(function(F){u({type:Al,selectedItem:F})},[u]),y=M.useCallback(function(F){u({type:Nl,selectedItem:F})},[u]),f=M.useCallback(function(F){u({type:Tl,selectedItems:F})},[u]),O=M.useCallback(function(F){u({type:Ol,activeIndex:F})},[u]),P=M.useCallback(function(){u({type:Pl})},[u]);return{getSelectedItemProps:w,getDropdownProps:I,addSelectedItem:A,removeSelectedItem:y,setSelectedItems:f,setActiveIndex:O,reset:P,selectedItems:h,activeIndex:c}}let gy=0;const my=()=>{const e=M.useRef(null);return e.current===null&&(e.current=`select-${++gy}`),e.current},vy=e=>{const{items:t=[],isMulti:i=!1,isSearchable:n=!1,value:r,defaultValue:a,inputValue:s,onChange:l,onInputChange:u,getOptionLabel:c=ie=>(ie==null?void 0:ie.label)||"",getOptionValue:h=ie=>(ie==null?void 0:ie.value)||"",isOpen:p,onOpenChange:g,customOptionGenerator:m,disableInternalFiltering:E=!1,stateReducer:v,isDisabled:k=!1,clearSearchOnSelect:S=!1,closeMenuOnSelect:w,onSelectionComplete:I,id:A}=e,y=my(),f=A||y,O=M.useCallback(ie=>{const me=c(ie);if(typeof me=="string")return me;if(typeof me=="number")return String(me);const Ee=ie;if(typeof Ee=="object"&&Ee!==null){if(typeof Ee.label=="string")return Ee.label;if(typeof Ee.name=="string")return Ee.name}return String(h(ie))},[c,h]),P=ie=>ie?Array.isArray(ie)?ie:[ie]:[],F=a!==void 0?a:r!==void 0?r:null,[D,V]=M.useState(()=>P(F)),[J,ue]=M.useState(s||""),[Q,se]=M.useState(()=>p!==void 0?p:!1),j=r!==void 0?P(r):D,U=s!==void 0?s:J,Y=p!==void 0?p:Q,de=M.useRef(null),C=M.useRef(null),$=M.useCallback(ie=>{p===void 0&&se(ie),g==null||g(ie)},[p,g]),ee=M.useCallback(ie=>{r===void 0&&V(ie);const me=i?ie:ie[0]||null;l==null||l(me)},[r,i,l]),T=M.useCallback(ie=>{s===void 0&&ue(ie),u==null||u(ie)},[s,u]),B=Rl({selectedItems:j,onSelectedItemsChange:ie=>{const me=ie.selectedItems||[];ee(me)}}),W=M.useCallback(ie=>{i&&B.removeSelectedItem(ie)},[i,B]),z=M.useCallback(ie=>{if(ie){if(i)j.some(me=>h(me)===h(ie))?W(ie):B.addSelectedItem(ie);else{const me=j[0];(!me||h(me)!==h(ie))&&ee([ie])}I==null||I(h(ie),ie)}},[i,j,h,W,B,ee,I]);M.useEffect(()=>{if(C.current){const ie=C.current;C.current=null,z(ie)}}),M.useLayoutEffect(()=>{if(n&&Y){const ie=requestAnimationFrame(()=>{var me;(me=de.current)==null||me.focus()});return()=>cancelAnimationFrame(ie)}},[n,Y]);const[K,ne]=M.useState(U);M.useEffect(()=>{const ie=setTimeout(()=>ne(U),120);return()=>clearTimeout(ie)},[U]);const ae=M.useMemo(()=>m?m(U,t):E||!n||!K?t:t.filter(ie=>O(ie).toLowerCase().includes(K.toLowerCase())),[t,U,K,m,E,n,O]),le={items:ae,itemToString:ie=>ie?O(ie):"",isOpen:Y,onIsOpenChange:({isOpen:ie})=>{ie!==void 0&&$(ie)},selectedItem:i?null:j[0]||null},oe=ie=>{const me=new Map;for(const[Ee,we]of Object.entries(ie.stateChangeTypes))me.set(we,Ee);return(Ee,we)=>{const{changes:Be,type:ze}=we,Pe=w??!i,Re=[Dt.stateChangeTypes.ItemClick,Dt.stateChangeTypes.InputKeyDownEnter,Dt.stateChangeTypes.FunctionSelectItem,Ii.stateChangeTypes.ItemClick,Ii.stateChangeTypes.ToggleButtonKeyDownEnter,Ii.stateChangeTypes.ToggleButtonKeyDownSpaceButton,Ii.stateChangeTypes.FunctionSelectItem].includes(ze);if((ze===Dt.stateChangeTypes.InputBlur||ze===Ii.stateChangeTypes.ToggleButtonBlur)&&typeof document<"u"){const rt=document.activeElement,te=!!(rt!=null&&rt.closest('[data-qui="SelectMenu"], [data-qui="SelectPortal"], [data-qui="SelectControl"], [data-qui="Select"], [data-qui="SelectIndicator"], [role="option"]')),re=rt===document.body;if(te||i&&re)return{...Be,isOpen:!0}}if(Re){const rt=Be.selectedItem||null;rt&&(C.current=rt);const te={...Be};return i?(te.selectedItem=null,te.isOpen=!Pe,te.highlightedIndex=Ee.highlightedIndex,te.inputValue=""):rt&&(S?te.inputValue="":n&&(te.inputValue=O(rt)),w===!1&&(te.isOpen=!0,te.highlightedIndex=Ee.highlightedIndex)),te}return n&&!Re&&ze!==Dt.stateChangeTypes.InputChange&&(ze===Dt.stateChangeTypes.ControlledPropUpdatedSelectedItem||ze===Dt.stateChangeTypes.FunctionSetInputValue||ze===Dt.stateChangeTypes.InputBlur||ze===Dt.stateChangeTypes.FunctionReset)?{...Be,inputValue:Ee.inputValue}:v?v(Ee,{...we,type:me.get(we.type)||we.type,changes:Be}):Be}},H=n?Dt({...le,inputValue:U,onInputValueChange:({inputValue:ie,type:me})=>{!i&&!ie&&me===Dt.stateChangeTypes.InputChange&&ee([]),T(ie||"")},stateReducer:oe(Dt),id:f}):Ii({...le,stateReducer:oe(Ii),id:f}),ve=M.useCallback(()=>{k||("toggleMenu"in H&&typeof H.toggleMenu=="function"?H.toggleMenu():$(!Y))},[H,k,$,Y]),Z=M.useCallback(()=>{k||("openMenu"in H&&typeof H.openMenu=="function"?H.openMenu():$(!0))},[H,k,$]),xe=M.useCallback(()=>{"closeMenu"in H&&typeof H.closeMenu=="function"?H.closeMenu():$(!1)},[H,$]),be=M.useCallback(()=>{ee([]),T(""),i&&B.reset()},[ee,T,i,B]);return{isOpen:H.isOpen,selectedItem:H.selectedItem,highlightedIndex:H.highlightedIndex,inputValue:U,getToggleButtonProps:H.getToggleButtonProps,getMenuProps:H.getMenuProps,getItemProps:H.getItemProps,getInputProps:n?(ie,me)=>({..."getInputProps"in H?H.getInputProps(ie,me):{},ref:de,value:U}):void 0,selectedItems:j,filteredItems:ae,setInputValue:T,setIsOpen:$,toggleMenu:ve,openMenu:Z,closeMenu:xe,clearSelection:be,selectItem:"selectItem"in H?H.selectItem:void 0,removeItem:W,multipleSelection:B,isMulti:i,isSearchable:n,inputRef:de}},Pp=({size:e="md",color:t="primary",isInvalid:i=!1,isDisabled:n=!1,className:r,children:a,options:s=[],value:l,defaultValue:u,onChange:c,isMulti:h,inputValue:p,onInputChange:g,isSearchable:m,isOpen:E,onOpenChange:v,customOptionGenerator:k,disableInternalFiltering:S,getOptionLabel:w=V=>typeof V=="string"||typeof V=="number"?String(V):(V==null?void 0:V.label)||(V==null?void 0:V.name)||String(V),getOptionValue:I=V=>typeof V=="string"||typeof V=="number"?String(V):(V==null?void 0:V.value)||(V==null?void 0:V.id)||(V==null?void 0:V.name)||String(V),isOptionDisabled:A=V=>(V==null?void 0:V.isDisabled)||!1,stateReducer:y,clearSearchOnSelect:f,closeMenuOnSelect:O,inputClassName:P,onSelectionComplete:F,...D})=>{const[V,J]=M.useState(!1),[ue,Q]=M.useState(!1),se=M.useRef(null),[j,U]=M.useState(!1),[Y,de]=M.useState("bottom"),C=M.useRef(new Set),$=M.useCallback(z=>(C.current.add(z),()=>C.current.delete(z)),[]),ee=M.useCallback((z,K)=>{F==null||F(z,K),C.current.forEach(ne=>ne(z,K))},[F]),T=M.useMemo(()=>lb(s),[s]),B=vy({items:T,value:l,defaultValue:u,onChange:c,isMulti:h,inputValue:p,onInputChange:g,isSearchable:m,isOpen:E,onOpenChange:v,getOptionLabel:w,getOptionValue:I,customOptionGenerator:k,disableInternalFiltering:S,stateReducer:y,isDisabled:n,clearSearchOnSelect:f,closeMenuOnSelect:O,onSelectionComplete:ee}),W={size:e,color:i?"negative":t,isInvalid:i,isDisabled:n,hasMessage:V,setHasMessage:J,hasGroup:ue,setHasGroup:Q,groupRef:se,menuVisible:j,setMenuVisible:U,menuPlacement:Y,setMenuPlacement:de,downshift:B,options:s,getOptionLabel:w,getOptionValue:I,isOptionDisabled:A,inputClassName:P,registerOnSelectionComplete:$};return b.jsx(Td.Provider,{value:W,children:b.jsx("div",{"data-qui":"Select",className:he(K0(),r),...D,children:a})})},xy=M.forwardRef(({className:e,children:t,isFocused:i,isDisabled:n,...r},a)=>{const{size:s,color:l,isDisabled:u,hasMessage:c,hasGroup:h,downshift:p,isInvalid:g,menuPlacement:m}=bt(),E=n??u,v=i??p.isOpen;return b.jsx("div",{ref:a,className:he(q0({size:s,color:l,isDisabled:E,isFocused:!!v,isInvalid:g&&!p.isOpen,hasMessage:c,hasGroup:h,menuPlacement:p.isOpen?m:void 0}),e),"aria-disabled":E,"aria-invalid":g,role:"combobox",tabIndex:E?-1:0,...r,children:t})}),by=({className:e,children:t,isMulti:i})=>b.jsx("div",{className:he(G0({isMulti:i}),e),children:t}),ca=M.forwardRef(({isHidden:e,inputClassName:t,className:i,...n},r)=>{const{size:a,color:s}=bt();return e?b.jsx("input",{ref:r,type:"text",className:i,style:{position:"absolute",top:0,left:0,opacity:0,width:"100%",height:"100%",pointerEvents:"none"},tabIndex:-1,...n}):b.jsx("input",{ref:r,type:"text","data-qui":"SelectSearchInput",className:he($0({size:a,color:s}),t,e?"":i),...n})}),yy=({className:e,children:t})=>{const{size:i,color:n}=bt();return b.jsx("div",{className:he(J0({size:i,color:n}),e),children:t})},wy=({className:e,children:t,data:i,isDisabled:n})=>{const{size:r,color:a,getOptionLabel:s}=bt();return b.jsx("div",{className:he(Y0({size:r,color:a,isDisabled:n}),e),children:t||s(i)})},Rp=({className:e,children:t,data:i,isDisabled:n,isFocused:r,onRemove:a})=>{const{size:s,color:l,downshift:u,getOptionLabel:c}=bt(),h=()=>{a?a(i):u.removeItem(i)};return b.jsxs("div",{className:he(Q0({size:s,color:l,isDisabled:n,isFocused:r}),e),children:[b.jsx("div",{className:Z0({size:s}),children:t||c(i)}),!n&&b.jsx("div",{className:X0({size:s,color:l,isDisabled:!1}),onClick:h,children:b.jsx(ja,{className:"w-3 h-3"})})]})},Mp=({color:e,className:t,children:i,onClick:n,isDisabled:r,...a})=>{const{size:s,color:l,isDisabled:u,downshift:c}=bt(),h=r??u,p=c.selectedItems.length>0;if(h||!p)return null;const g=m=>{m.stopPropagation(),n?n(m):c.clearSelection()};return b.jsx("div",{className:he(Od({size:s,color:e||l,isDisabled:h}),t),onClick:g,role:"button",tabIndex:0,"aria-label":"Clear selection",...a,children:i||b.jsx(ov,{})})},ky=({className:e,children:t,onClick:i,isDisabled:n,...r})=>{const{size:a,color:s,isDisabled:l,downshift:u}=bt(),c=n??l,h=u.inputValue.length>0&&u.isSearchable;if(c||!h)return null;const p=g=>{c||(g.preventDefault(),g.stopPropagation(),i?i(g):(u.setInputValue(""),u.clearSelection()))};return b.jsx("div",{"data-qui":"SelectIndicator",className:he(Od({size:a,color:s,isDisabled:c}),"cursor-pointer",e),onClick:p,onMouseDown:g=>{g.preventDefault(),g.stopPropagation()},role:"button",tabIndex:-1,"aria-label":"Clear selection",...r,children:t||b.jsx(ja,{})})},Lp=M.forwardRef(({color:e,className:t,children:i,onClick:n,isDisabled:r,...a},s)=>{const{size:l,color:u,isDisabled:c,downshift:h}=bt(),p=r??c,g=h.isOpen,m=v=>{p||(v.preventDefault(),v.stopPropagation(),n?n(v):h.toggleMenu())},E=v=>{v.preventDefault(),v.stopPropagation()};return b.jsx("div",{ref:s,"data-qui":"SelectIndicator",className:he(eb({size:l,color:e||u,isDisabled:p}),"cursor-pointer",t),onClick:E,onMouseDown:m,role:"button",tabIndex:-1,"aria-label":g?"Close menu":"Open menu","aria-expanded":g,"aria-disabled":p,...a,children:i||b.jsx(jh,{className:he("transition-transform duration-200",{"rotate-180":g})})})}),Sy=M.forwardRef(({className:e,children:t,placement:i,...n},r)=>{const{size:a,hasMessage:s,color:l,hasGroup:u}=bt();return b.jsx("div",{"data-qui":"SelectMenu",ref:r,className:he(tb({size:a,placement:i,hasMessage:s,color:l,hasGroup:u}),e),...n,children:t})}),Ey=M.forwardRef(({className:e,children:t,maxHeight:i=300,totalHeight:n,...r},a)=>{const{size:s}=bt();return b.jsx(Vo,{scrollableNodeProps:{ref:a},className:he(ib({size:s}),e),style:{maxHeight:i},...r,children:n!==void 0?b.jsx("div",{style:{height:n,position:"relative",width:"100%"},children:t}):t})}),ha=({className:e,children:t,data:i,isDisabled:n,isFocused:r,isSelected:a,innerProps:s,optionClassName:l,...u})=>{const{size:c,color:h,getOptionLabel:p}=bt();return b.jsx("div",{"data-qui":"SelectOption",className:he(nb({size:c,color:h,isDisabled:n,isFocused:r,isSelected:a}),l,e),...s,...u,children:t??p(i)})},Dp=({className:e,children:t,data:i,label:n,renderGroupHeading:r})=>{const{size:a}=bt();return b.jsxs("div",{"data-qui":"SelectOptionGroup",className:he(rb({size:a}),e),children:[b.jsx(Cy,{children:r?r(i):n||i.label}),t]})},Cy=({className:e,children:t})=>{const{size:i,color:n}=bt();return b.jsx("div",{className:he(ab({size:i,color:n}),e),children:t})},Ss=({className:e,children:t,inputValue:i})=>{const{size:n}=bt();return b.jsx("div",{className:he(ob({size:n}),e),children:t||`No options found${i?` for "${i}"`:""}`})},Fp=M.forwardRef(({className:e,children:t,...i},n)=>{const{size:r,color:a,isDisabled:s,hasMessage:l,isInvalid:u,setHasGroup:c,groupRef:h,menuVisible:p,menuPlacement:g}=bt();return M.useEffect(()=>(c(!0),()=>{c(!1)}),[c]),b.jsx("div",{ref:An([n,h]),"data-qui":"SelectGroup",className:he(W0({size:r,color:a,isDisabled:s,hasMessage:l,isInvalid:u,isFocused:p,menuPlacement:p?g:void 0}),e),...i,children:t})}),Iy=M.forwardRef(({isAction:e=!1,className:t,isDisabled:i=!1,style:n,children:r,...a},s)=>{const{size:l,color:u,isDisabled:c}=bt(),h=i||c,p=U0({size:l,color:u,isDisabled:h,isAction:e});return b.jsx("div",{ref:s,"data-qui":"SelectIcon",className:he(p,t),style:n,role:e||a.onClick?"button":void 0,tabIndex:(e||a.onClick)&&!h?0:void 0,"aria-disabled":h,...a,children:r})}),_y=({isOpen:e,usePortal:t,controlRef:i,children:n})=>{const[r,a]=M.useState(null);return M.useLayoutEffect(()=>{if(t&&e&&i.current){const s=()=>{var l;const u=(l=i.current)==null?void 0:l.closest('[data-qui="SelectGroup"]'),c=u||i.current;if(!c)return;const h=c.getBoundingClientRect();a(u?{top:h.top+window.scrollY+u.clientTop,left:h.left+window.scrollX+u.clientLeft,width:u.clientWidth,height:u.clientHeight}:{top:h.top+window.scrollY,left:h.left+window.scrollX,width:h.width,height:h.height})};return s(),window.addEventListener("resize",s),window.addEventListener("scroll",s,!0),()=>{window.removeEventListener("resize",s),window.removeEventListener("scroll",s,!0)}}},[e,t,i]),e?t&&r?un.createPortal(b.jsx("div",{"data-qui":"SelectPortal",style:{position:"absolute",top:r.top,left:r.left,width:r.width,height:r.height,zIndex:50,pointerEvents:"none"},children:b.jsx("div",{style:{pointerEvents:"auto"},children:n})}),document.body):b.jsx(b.Fragment,{children:n}):null},An=e=>t=>{e.forEach(i=>{typeof i=="function"?i(t):i!=null&&"current"in i&&(i.current=t)})},jp=M.forwardRef(({placeholder:e,noOptionsMessage:t,hideNoOptions:i=!1,loadingMessage:n="Loading...",isClearable:r=!1,isSearchClearable:a=!1,isLoading:s=!1,isRequired:l=!1,hideIndicators:u=!1,hideDropdownIndicator:c=!1,searchPlacement:h="trigger",hideSelectedOptions:p=!1,onFocus:g,onBlur:m,renderMenuHeader:E,formatOptionLabel:v,renderOption:k,optionClassName:S,renderValue:w,renderGroupHeading:I,inputRef:A,controlShouldRenderValue:y=!0,name:f,id:O,onSelectionComplete:P,"aria-label":F,"aria-labelledby":D,"aria-describedby":V,children:J,usePortal:ue=!1,virtualizeThreshold:Q=100,className:se,inputClassName:j,...U},Y)=>{const{size:de,isInvalid:C,isDisabled:$,hasGroup:ee,downshift:T,options:B=[],getOptionLabel:W,getOptionValue:z,isOptionDisabled:K,menuPlacement:ne,setMenuPlacement:ae,menuVisible:le,setMenuVisible:oe,inputClassName:H}=bt(),ve=j||H,Z=M.useMemo(()=>{if(k)return k;if(v)return({data:Ye})=>v(Ye)},[k,v]),xe=M.useRef(null),be=A||xe,ie=M.useRef(null),me=M.useRef(null),Ee=M.useRef(null),{isOpen:we,openMenu:Be,selectedItem:ze,inputValue:Pe,highlightedIndex:Re,getToggleButtonProps:rt,getMenuProps:te,getInputProps:re,getItemProps:R,isMulti:Ce,isSearchable:Fe,multipleSelection:ht}=T,{getDropdownProps:ke}=ht;M.useLayoutEffect(()=>{if(!we||!ie.current)return;const Ye=ie.current.getBoundingClientRect(),dt=window.innerHeight-Ye.bottom;ae(dt<300?"top":"bottom")},[we,ae]),M.useLayoutEffect(()=>{const Ye=we&&!(i&&T.filteredItems.length===0);return oe(Ye),()=>oe(!1)},[we,i,T.filteredItems.length,oe]);const st=Ce?T.selectedItems??[]:ze?[ze]:[],Xt=st.length>0,ki=a&&!!Pe&&!$&&!u,ct=r&&(Xt||!!Pe)&&!$&&!u,Vt=!c&&!u,Pt=!Xt&&(!Fe||!Pe)||!y,Ir={},Yi={};Object.entries(U).forEach(([Ye,dt])=>{Ye.startsWith("data-")||Ye.startsWith("aria-")||Ye==="role"?Ir[Ye]=dt:Yi[Ye]=dt});const Ct=M.useMemo(()=>An([ie,Y]),[Y]),It=te({},{suppressRefError:!0}),Qe=ke({preventKeyAction:we}),hi={ref:be,disabled:$,required:l,name:f,id:O,"aria-label":F,"aria-labelledby":D,"aria-describedby":V,"aria-invalid":C,onFocus:g,onBlur:m,...Yi},Le=Fe?(re==null?void 0:re({...hi,...Qe}))??hi:{...hi,...Qe},{ref:qn,...Qi}=Le,Gn=M.useMemo(()=>An([qn]),[qn]),dn=Ye=>st.some(dt=>z(dt)===z(Ye)),ei=Ye=>p?Ye.filter(dt=>!dn(dt)):Ye,ls=Ye=>p?Ye.map(dt=>({...dt,options:ei(dt.options)})).filter(dt=>dt.options.length>0):Ye,Wt=oo(B)?[]:ei(T.filteredItems),Zi={sm:22,md:28,lg:36}[de]??28,Pi=Wt.length>=Q,pn=H0({count:Pi?Wt.length:0,getScrollElement:()=>Ee.current,estimateSize:()=>Zi,overscan:5});M.useEffect(()=>{Pi&&we&&Re>=0&&Re<Wt.length&&pn.scrollToIndex(Re,{align:"auto"})},[Re,Pi,we]);const{registerOnSelectionComplete:$n}=bt();M.useEffect(()=>{if(P)return $n(P)},[P,$n]);const _r=Fe?{}:rt({disabled:$,...Qe,ref:An([Ct,Qe.ref])});return b.jsxs("div",{className:he({relative:!ee,"flex-1 min-w-0":ee}),children:[b.jsxs(xy,{"data-qui":"SelectControl",className:se,...Fe?{ref:An([Ct,Qe.ref])}:_r,...Ir,isFocused:le,isDisabled:$,onClick:Ye=>{Ye.defaultPrevented||(Fe?Be():T.toggleMenu())},children:[J||b.jsxs(by,{isMulti:Ce,children:[Ce&&y&&st.map((Ye,dt)=>b.jsx(Rp,{data:Ye,index:dt,isDisabled:$,children:w?w(Ye):void 0},z(Ye))),!Ce&&Xt&&y&&!Fe&&b.jsx("div",{className:"flex items-center gap-2",children:b.jsx(wy,{data:st[0],isDisabled:$,children:w?w(st[0]):W(st[0])})}),Fe&&h==="trigger"?b.jsx(ca,{ref:Gn,...Qi,className:se,inputClassName:ve,placeholder:e}):b.jsxs(b.Fragment,{children:[b.jsx(ca,{ref:Gn,...Qi,className:se,inputClassName:ve,isHidden:!0,readOnly:!0,value:st.map(Ye=>z(Ye)).join(",")}),Pt&&b.jsx(yy,{children:e})]})]}),b.jsxs("div",{className:he("flex items-center size-fit gap-1",{hidden:!ct&&!Vt}),children:[ki&&b.jsx(ky,{}),ct&&b.jsx(Mp,{}),Vt&&b.jsx(Lp,{...Fe?rt({disabled:$,"aria-label":we?"Close menu":"Open menu"}):{}})]})]}),!we&&b.jsx("div",{ref:It.ref,style:{display:"none"},"aria-hidden":"true"}),b.jsx(_y,{isOpen:we,usePortal:ue,controlRef:ie,children:(()=>{const{ref:Ye,...dt}=It,Ar=An([me,Ye]);return i&&T.filteredItems.length===0?b.jsx("div",{...dt,style:{display:"none"},"aria-hidden":"true"}):b.jsxs(Sy,{ref:Ar,...dt,placement:ne,children:[E&&E(T),Fe&&h==="menu"&&b.jsx("div",{className:"p-2",children:b.jsx(ca,{ref:Gn,...Qi,className:se,inputClassName:ve,autoFocus:!0,placeholder:e,onClick:xt=>xt.stopPropagation()})}),b.jsx(Ey,{ref:Ee,totalHeight:Pi?pn.getTotalSize():void 0,children:s?b.jsx("div",{className:sb({size:de}),children:n}):T.filteredItems.length===0?b.jsx(Ss,{inputValue:Pe,children:typeof t=="function"?t(Pe):t}):oo(B)?(()=>{const xt=ls(B);return xt.length===0?b.jsx(Ss,{inputValue:Pe,children:typeof t=="function"?t(Pe):t}):xt.map((yt,Ri)=>b.jsx(Dp,{data:yt,label:yt.label,options:yt.options,renderGroupHeading:I,children:yt.options.map(_t=>{const ti=z(_t),ii=st.some(us=>z(us)===ti),ni=T.filteredItems.indexOf(_t),Si=Re===ni,Xi=K(_t),Nr=R({item:_t,index:ni});return b.jsx(ha,{...Nr,data:_t,isDisabled:Xi,isFocused:Si,isSelected:ii,optionClassName:S,children:Z?Z({data:_t,isFocused:Si,isSelected:ii,isDisabled:Xi}):void 0},`${ti}-${ni}`)})},`${yt.label}-${Ri}`))})():Wt.length===0?b.jsx(Ss,{inputValue:Pe,children:typeof t=="function"?t(Pe):t}):Pi?pn.getVirtualItems().map(xt=>{const yt=Wt[xt.index],Ri=z(yt),_t=st.some(Xi=>z(Xi)===Ri),ti=T.filteredItems.indexOf(yt),ii=Re===ti,ni=K(yt),Si=R({item:yt,index:ti});return b.jsx("div",{"data-index":xt.index,ref:pn.measureElement,style:{position:"absolute",top:0,left:0,width:"100%",transform:`translateY(${xt.start}px)`},children:b.jsx(ha,{...Si,data:yt,isDisabled:ni,isFocused:ii,isSelected:_t,optionClassName:S,children:Z?Z({data:yt,isFocused:ii,isSelected:_t,isDisabled:ni}):void 0})},xt.key)}):Wt.map(xt=>{const yt=z(xt),Ri=st.some(Si=>z(Si)===yt),_t=T.filteredItems.indexOf(xt),ti=Re===_t,ii=K(xt),ni=R({item:xt,index:_t});return b.jsx(ha,{...ni,data:xt,isDisabled:ii,isFocused:ti,isSelected:Ri,optionClassName:S,children:Z?Z({data:xt,isFocused:ti,isSelected:Ri,isDisabled:ii}):void 0},`${yt}-${_t}`)})})]})})()})]})});Pp.displayName="Select.Root";Fp.displayName="Select.Group";Iy.displayName="Select.Icon";ca.displayName="Select.Input";Rp.displayName="Select.MultiValue";Mp.displayName="Select.ClearIndicator";Lp.displayName="Select.DropdownIndicator";ha.displayName="Select.Option";Dp.displayName="Select.OptionGroup";const Ay=jp;Ay.displayName="Select.Field";const Rn={Root:Pp,Group:Fp,Field:jp};M.createContext(void 0);const Ny=({active:e,disabled:t,error:i,isOpen:n,className:r})=>he("flex w-full items-center justify-between text-left leading-5 transition-colors duration-200",{"cursor-pointer":!t,"text-inactive-text":t,"bg-primary hover:bg-primary-hover":e&&!t,"text-negative":i&&!e&&!t,"bg-primary-hover text-body":n&&!e&&!t,"text-body":!e&&!t&&!i,"hover:bg-primary-hover hover:text-tab-active-fg":!t&&!e},r),Ty=M.forwardRef(({active:e,disabled:t,error:i,isOpen:n,className:r,children:a,as:s="div",...l},u)=>{const c=Ny({active:e,disabled:t,error:i,isOpen:n,className:r});return b.jsx(s,{"data-qui":"ListItem",ref:u,className:c,"aria-disabled":t,"aria-selected":e,"aria-invalid":i,"aria-expanded":n,role:l.onClick?"button":"listitem",...l,children:a})});Ty.displayName="ListItem";const Oy=e=>e&&e.length===0,Py=e=>e.length>=1,Ry=e=>e.length>=1,My=()=>b.jsx("div",{className:"flex flex-col w-full h-full p-2",children:b.jsxs("div",{className:"w-full h-full flex flex-col items-center gap-y-3 mt-48 text-inactive-text",children:[b.jsx(Do,{className:"h-8 w-8"}),b.jsx("span",{className:"text-sm text-center",children:"Your locales are set , you can start translating right away. Shared labels are optional, can be created from components at any time, and managed here."})]})}),zp=M.createContext(null),Vp=({children:e,adapter:t})=>b.jsx(zp.Provider,{value:t,children:e}),Ui=({permissive:e=!1}={})=>{const t=M.useContext(zp);if(!t&&!e)throw new Error("useEditorStateAdapter must be used within an EditorStateAdapterProvider");return t},rn={keys:{},userLang:{primary:"",supported:[]}};async function Bp(){try{const e=await fetch(`/$shared/i18n.json?ts=${Date.now()}`);if(!e.ok)throw new Error(`HTTP ${e.status}`);const t=await e.json();return{keys:pe.get(t,"keys",rn.keys),userLang:pe.get(t,"userLang",rn.userLang)}}catch{return rn}}function Ly(e,t){const i=Bt.useAppDispatch(),n=Bt.useAppSelector(Bt.selectTabs),r=Bt.useAppSelector(Bt.selectActiveTab),a=Bt.useAppSelector(Bt.selectAllTabsByType("webform")),s=Bt.useAppSelector(Bt.selectI18nCurrent);return{getTabs:M.useCallback(()=>n??[],[n]),getI18nCurrent:M.useCallback(()=>s??"",[s]),getWebformTabs:M.useCallback(()=>a??[],[a]),getActiveTabPath:M.useCallback(()=>r??"",[r]),getFlagsByPath:M.useCallback(l=>{var u;return(u=n.find(c=>c.path===l))==null?void 0:u.flags},[n]),getSupportedLanguages:M.useCallback(async l=>Se.getSupportedLanguages(l),[]),fetchI18nFile:M.useCallback(Bp,[]),getUserComponents:M.useCallback(()=>e??{},[e]),getBuildResolver:M.useCallback(()=>t??{},[t]),actions:{openModal:M.useCallback(async l=>await i(Bt.openModal(l)).unwrap(),[i]),setTabs:M.useCallback(l=>{i(Bt.setTabs(l))},[i]),setI18nCurrent:M.useCallback(l=>{i(Bt.setI18nCurrent({current:l}))},[i]),setTabContent:M.useCallback(async l=>i(Bt.setTabContent(l)),[i])}}}var ho=function(e,t){return ho=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,n){i.__proto__=n}||function(i,n){for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(i[r]=n[r])},ho(e,t)};function wr(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");ho(e,t);function i(){this.constructor=e}e.prototype=t===null?Object.create(t):(i.prototype=t.prototype,new i)}var gi=function(){return gi=Object.assign||function(t){for(var i,n=1,r=arguments.length;n<r;n++){i=arguments[n];for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(t[a]=i[a])}return t},gi.apply(this,arguments)};function Hp(e,t){var i={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(i[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,n=Object.getOwnPropertySymbols(e);r<n.length;r++)t.indexOf(n[r])<0&&Object.prototype.propertyIsEnumerable.call(e,n[r])&&(i[n[r]]=e[n[r]]);return i}function po(e){var t=typeof Symbol=="function"&&Symbol.iterator,i=t&&e[t],n=0;if(i)return i.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function fo(e,t){var i=typeof Symbol=="function"&&e[Symbol.iterator];if(!i)return e;var n=i.call(e),r,a=[],s;try{for(;(t===void 0||t-- >0)&&!(r=n.next()).done;)a.push(r.value)}catch(l){s={error:l}}finally{try{r&&!r.done&&(i=n.return)&&i.call(n)}finally{if(s)throw s.error}}return a}function _a(e,t,i){if(i||arguments.length===2)for(var n=0,r=t.length,a;n<r;n++)(a||!(n in t))&&(a||(a=Array.prototype.slice.call(t,0,n)),a[n]=t[n]);return e.concat(a||Array.prototype.slice.call(t))}function vi(e){return typeof e=="function"}function Kp(e){var t=function(n){Error.call(n),n.stack=new Error().stack},i=e(t);return i.prototype=Object.create(Error.prototype),i.prototype.constructor=i,i}var Es=Kp(function(e){return function(i){e(this),this.message=i?i.length+` errors occurred during unsubscription:
57
- `+i.map(function(n,r){return r+1+") "+n.toString()}).join(`
58
- `):"",this.name="UnsubscriptionError",this.errors=i}});function go(e,t){if(e){var i=e.indexOf(t);0<=i&&e.splice(i,1)}}var Ga=(function(){function e(t){this.initialTeardown=t,this.closed=!1,this._parentage=null,this._finalizers=null}return e.prototype.unsubscribe=function(){var t,i,n,r,a;if(!this.closed){this.closed=!0;var s=this._parentage;if(s)if(this._parentage=null,Array.isArray(s))try{for(var l=po(s),u=l.next();!u.done;u=l.next()){var c=u.value;c.remove(this)}}catch(v){t={error:v}}finally{try{u&&!u.done&&(i=l.return)&&i.call(l)}finally{if(t)throw t.error}}else s.remove(this);var h=this.initialTeardown;if(vi(h))try{h()}catch(v){a=v instanceof Es?v.errors:[v]}var p=this._finalizers;if(p){this._finalizers=null;try{for(var g=po(p),m=g.next();!m.done;m=g.next()){var E=m.value;try{bc(E)}catch(v){a=a??[],v instanceof Es?a=_a(_a([],fo(a)),fo(v.errors)):a.push(v)}}}catch(v){n={error:v}}finally{try{m&&!m.done&&(r=g.return)&&r.call(g)}finally{if(n)throw n.error}}}if(a)throw new Es(a)}},e.prototype.add=function(t){var i;if(t&&t!==this)if(this.closed)bc(t);else{if(t instanceof e){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._finalizers=(i=this._finalizers)!==null&&i!==void 0?i:[]).push(t)}},e.prototype._hasParent=function(t){var i=this._parentage;return i===t||Array.isArray(i)&&i.includes(t)},e.prototype._addParent=function(t){var i=this._parentage;this._parentage=Array.isArray(i)?(i.push(t),i):i?[i,t]:t},e.prototype._removeParent=function(t){var i=this._parentage;i===t?this._parentage=null:Array.isArray(i)&&go(i,t)},e.prototype.remove=function(t){var i=this._finalizers;i&&go(i,t),t instanceof e&&t._removeParent(this)},e.EMPTY=(function(){var t=new e;return t.closed=!0,t})(),e})(),Wp=Ga.EMPTY;function Up(e){return e instanceof Ga||e&&"closed"in e&&vi(e.remove)&&vi(e.add)&&vi(e.unsubscribe)}function bc(e){vi(e)?e():e.unsubscribe()}var Dy={Promise:void 0},Fy={setTimeout:function(e,t){for(var i=[],n=2;n<arguments.length;n++)i[n-2]=arguments[n];return setTimeout.apply(void 0,_a([e,t],fo(i)))},clearTimeout:function(e){return clearTimeout(e)},delegate:void 0};function jy(e){Fy.setTimeout(function(){throw e})}function yc(){}function da(e){e()}var Ml=(function(e){wr(t,e);function t(i){var n=e.call(this)||this;return n.isStopped=!1,i?(n.destination=i,Up(i)&&i.add(n)):n.destination=By,n}return t.create=function(i,n,r){return new mo(i,n,r)},t.prototype.next=function(i){this.isStopped||this._next(i)},t.prototype.error=function(i){this.isStopped||(this.isStopped=!0,this._error(i))},t.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},t.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,e.prototype.unsubscribe.call(this),this.destination=null)},t.prototype._next=function(i){this.destination.next(i)},t.prototype._error=function(i){try{this.destination.error(i)}finally{this.unsubscribe()}},t.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},t})(Ga),zy=(function(){function e(t){this.partialObserver=t}return e.prototype.next=function(t){var i=this.partialObserver;if(i.next)try{i.next(t)}catch(n){Gr(n)}},e.prototype.error=function(t){var i=this.partialObserver;if(i.error)try{i.error(t)}catch(n){Gr(n)}else Gr(t)},e.prototype.complete=function(){var t=this.partialObserver;if(t.complete)try{t.complete()}catch(i){Gr(i)}},e})(),mo=(function(e){wr(t,e);function t(i,n,r){var a=e.call(this)||this,s;return vi(i)||!i?s={next:i??void 0,error:n??void 0,complete:r??void 0}:s=i,a.destination=new zy(s),a}return t})(Ml);function Gr(e){jy(e)}function Vy(e){throw e}var By={closed:!0,next:yc,error:Vy,complete:yc},Hy=(function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"})();function Ky(e){return e}function Wy(e){return e.length===0?Ky:e.length===1?e[0]:function(i){return e.reduce(function(n,r){return r(n)},i)}}var wc=(function(){function e(t){t&&(this._subscribe=t)}return e.prototype.lift=function(t){var i=new e;return i.source=this,i.operator=t,i},e.prototype.subscribe=function(t,i,n){var r=this,a=qy(t)?t:new mo(t,i,n);return da(function(){var s=r,l=s.operator,u=s.source;a.add(l?l.call(a,u):u?r._subscribe(a):r._trySubscribe(a))}),a},e.prototype._trySubscribe=function(t){try{return this._subscribe(t)}catch(i){t.error(i)}},e.prototype.forEach=function(t,i){var n=this;return i=kc(i),new i(function(r,a){var s=new mo({next:function(l){try{t(l)}catch(u){a(u),s.unsubscribe()}},error:a,complete:r});n.subscribe(s)})},e.prototype._subscribe=function(t){var i;return(i=this.source)===null||i===void 0?void 0:i.subscribe(t)},e.prototype[Hy]=function(){return this},e.prototype.pipe=function(){for(var t=[],i=0;i<arguments.length;i++)t[i]=arguments[i];return Wy(t)(this)},e.prototype.toPromise=function(t){var i=this;return t=kc(t),new t(function(n,r){var a;i.subscribe(function(s){return a=s},function(s){return r(s)},function(){return n(a)})})},e.create=function(t){return new e(t)},e})();function kc(e){var t;return(t=e??Dy.Promise)!==null&&t!==void 0?t:Promise}function Uy(e){return e&&vi(e.next)&&vi(e.error)&&vi(e.complete)}function qy(e){return e&&e instanceof Ml||Uy(e)&&Up(e)}function Gy(e){return vi(e==null?void 0:e.lift)}function qp(e){return function(t){if(Gy(t))return t.lift(function(i){try{return e(i,this)}catch(n){this.error(n)}});throw new TypeError("Unable to lift unknown Observable type")}}function Gp(e,t,i,n,r){return new $y(e,t,i,n,r)}var $y=(function(e){wr(t,e);function t(i,n,r,a,s,l){var u=e.call(this,i)||this;return u.onFinalize=s,u.shouldUnsubscribe=l,u._next=n?function(c){try{n(c)}catch(h){i.error(h)}}:e.prototype._next,u._error=a?function(c){try{a(c)}catch(h){i.error(h)}finally{this.unsubscribe()}}:e.prototype._error,u._complete=r?function(){try{r()}catch(c){i.error(c)}finally{this.unsubscribe()}}:e.prototype._complete,u}return t.prototype.unsubscribe=function(){var i;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){var n=this.closed;e.prototype.unsubscribe.call(this),!n&&((i=this.onFinalize)===null||i===void 0||i.call(this))}},t})(Ml),Jy=Kp(function(e){return function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),$p=(function(e){wr(t,e);function t(){var i=e.call(this)||this;return i.closed=!1,i.currentObservers=null,i.observers=[],i.isStopped=!1,i.hasError=!1,i.thrownError=null,i}return t.prototype.lift=function(i){var n=new Sc(this,this);return n.operator=i,n},t.prototype._throwIfClosed=function(){if(this.closed)throw new Jy},t.prototype.next=function(i){var n=this;da(function(){var r,a;if(n._throwIfClosed(),!n.isStopped){n.currentObservers||(n.currentObservers=Array.from(n.observers));try{for(var s=po(n.currentObservers),l=s.next();!l.done;l=s.next()){var u=l.value;u.next(i)}}catch(c){r={error:c}}finally{try{l&&!l.done&&(a=s.return)&&a.call(s)}finally{if(r)throw r.error}}}})},t.prototype.error=function(i){var n=this;da(function(){if(n._throwIfClosed(),!n.isStopped){n.hasError=n.isStopped=!0,n.thrownError=i;for(var r=n.observers;r.length;)r.shift().error(i)}})},t.prototype.complete=function(){var i=this;da(function(){if(i._throwIfClosed(),!i.isStopped){i.isStopped=!0;for(var n=i.observers;n.length;)n.shift().complete()}})},t.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(t.prototype,"observed",{get:function(){var i;return((i=this.observers)===null||i===void 0?void 0:i.length)>0},enumerable:!1,configurable:!0}),t.prototype._trySubscribe=function(i){return this._throwIfClosed(),e.prototype._trySubscribe.call(this,i)},t.prototype._subscribe=function(i){return this._throwIfClosed(),this._checkFinalizedStatuses(i),this._innerSubscribe(i)},t.prototype._innerSubscribe=function(i){var n=this,r=this,a=r.hasError,s=r.isStopped,l=r.observers;return a||s?Wp:(this.currentObservers=null,l.push(i),new Ga(function(){n.currentObservers=null,go(l,i)}))},t.prototype._checkFinalizedStatuses=function(i){var n=this,r=n.hasError,a=n.thrownError,s=n.isStopped;r?i.error(a):s&&i.complete()},t.prototype.asObservable=function(){var i=new wc;return i.source=this,i},t.create=function(i,n){return new Sc(i,n)},t})(wc),Sc=(function(e){wr(t,e);function t(i,n){var r=e.call(this)||this;return r.destination=i,r.source=n,r}return t.prototype.next=function(i){var n,r;(r=(n=this.destination)===null||n===void 0?void 0:n.next)===null||r===void 0||r.call(n,i)},t.prototype.error=function(i){var n,r;(r=(n=this.destination)===null||n===void 0?void 0:n.error)===null||r===void 0||r.call(n,i)},t.prototype.complete=function(){var i,n;(n=(i=this.destination)===null||i===void 0?void 0:i.complete)===null||n===void 0||n.call(i)},t.prototype._subscribe=function(i){var n,r;return(r=(n=this.source)===null||n===void 0?void 0:n.subscribe(i))!==null&&r!==void 0?r:Wp},t})($p);function Yy(e,t){return qp(function(i,n){var r=0;i.subscribe(Gp(n,function(a){n.next(e.call(t,a,r++))}))})}function Qy(e,t){return qp(function(i,n){var r=0;i.subscribe(Gp(n,function(a){return e.call(t,a,r++)&&n.next(a)}))})}const Jp=new $p,Zy=(e,t)=>({name:e.split("/").pop()||e,type:Se.FileFolderType.WEBFORM,path:e,date:new Date().toISOString(),content:t,view:{panel:{isOpen:!1,type:"",current:""}},flags:{}});function Yp(e,t){switch(t.type){case"SET_TABS":return{...e,tabs:t.payload};case"SET_I18N_CURRENT":return{...e,i18nCurrent:t.payload};case"SET_TAB_CONTENT":{const{path:i,content:n}=t.payload;return e.tabs.find(a=>a.path===i)?{...e,tabs:e.tabs.map(a=>a.path===i?{...a,content:n}:a)}:{...e,tabs:[...e.tabs,Zy(i,n)]}}case"CREATE_MODAL":return{...e,modals:{...e.modals,list:[...e.modals.list,t.payload]}};case"REMOVE_MODAL":return{...e,modals:{...e.modals,list:e.modals.list.filter(i=>i.id!==t.payload)}};case"CLOSE_MODAL":{const{id:i,reason:n}=t.payload;let r;if(n)if(e.modals.list.find(s=>s.id===i))r={...e,modals:{...e.modals,list:e.modals.list.map(s=>s.id===i?{...s,closeReason:n,isOpen:!1}:s)}};else return e;else r={...e,modals:{...e.modals,list:e.modals.list.filter(a=>a.id!==i)}};return Jp.next(r.modals),r}case"EDIT_MODAL":{const{id:i,...n}=t.payload;return e.modals.list.find(a=>a.id===i)?{...e,modals:{...e.modals,list:e.modals.list.map(a=>a.id===i?{...a,...n}:a)}}:e}default:return e}}const $a=M.createContext(null),Qp=(e,t)=>({tabs:e,i18nCurrent:t,modals:{list:[]}}),Zp=({children:e,tabs:t=[],i18nCurrent:i="",initialI18nFile:n})=>{const[r,a]=M.useReducer(Yp,Qp(t,i));M.useEffect(()=>{pe.isEqual(r.tabs,t)||a({type:"SET_TABS",payload:t})},[t,r.tabs]),M.useEffect(()=>{r.i18nCurrent!==i&&a({type:"SET_I18N_CURRENT",payload:i})},[i,r.i18nCurrent]);const s=M.useMemo(()=>({state:r,dispatch:a,initialI18nFile:n}),[r,n]);return b.jsx($a.Provider,{value:s,children:e})};function Xp(e,t,i){const n=M.useContext($a);if(!n)throw new Error("useReducerAdapter must be used within a ReducerAdapterProvider");const{state:r,dispatch:a,initialI18nFile:s}=n;return{getTabs:M.useCallback(()=>r.tabs,[r.tabs]),getI18nCurrent:M.useCallback(()=>r.i18nCurrent,[r.i18nCurrent]),fetchI18nFile:M.useCallback(()=>{if(!s)return Promise.resolve(rn);if(typeof s!="string")return Promise.resolve(s);try{const l=JSON.parse(s);return Promise.resolve({keys:(l==null?void 0:l.keys)??rn.keys,userLang:(l==null?void 0:l.userLang)??rn.userLang})}catch{return Promise.resolve(rn)}},[s]),getWebformTabs:M.useCallback(()=>r.tabs.filter(l=>l.type===Se.FileFolderType.WEBFORM),[r.tabs]),getActiveTabPath:M.useCallback(()=>{var l;return((l=r.tabs[0])==null?void 0:l.path)??""},[r.tabs]),getFlagsByPath:M.useCallback(l=>{var u;return(u=r.tabs.find(c=>c.path===l))==null?void 0:u.flags},[r.tabs]),getSupportedLanguages:M.useCallback(async l=>i&&i.length?i:Se.getSupportedLanguages(l),[i]),getUserComponents:M.useCallback(()=>e??{},[e]),getBuildResolver:M.useCallback(()=>t??{},[t]),actions:{openModal:M.useCallback(async l=>{const{type:u=Se.ModalType.ALERT}=l,c=Po.generate();return a({type:"CREATE_MODAL",payload:{id:c,type:u,isOpen:!0,...l}}),u===Se.ModalType.CONFIRM?new Promise(h=>{const p=Jp.pipe(Qy(g=>{const m=g.list.find(E=>E.id===c);return m!==void 0&&!m.isOpen})).subscribe(g=>{var E;const m=g.list.find(v=>v.id===c);if(m){const v=m.closeReason===Se.ModalCloseReason.CONFIRMED,k=pe.entries(((E=m.views)==null?void 0:E.toggles)||{}).reduce((S,w)=>({...S,[w[0]]:w[1].value}),{});a({type:"REMOVE_MODAL",payload:c}),p.unsubscribe(),h({confirmed:v,options:k})}})}):{confirmed:!1}},[a]),setTabs:M.useCallback(l=>{a({type:"SET_TABS",payload:l})},[a]),setI18nCurrent:M.useCallback(l=>{a({type:"SET_I18N_CURRENT",payload:l})},[a]),setTabContent:M.useCallback(async l=>(a({type:"SET_TAB_CONTENT",payload:l}),l),[a])}}}function ef(){const e=M.useContext($a);if(!e)throw new Error("useModals must be used within a ReducerAdapterProvider");const{state:t,dispatch:i}=e;return{modals:t.modals.list,closeModal:M.useCallback(n=>{i({type:"CLOSE_MODAL",payload:n})},[i]),editModal:M.useCallback(n=>{i({type:"EDIT_MODAL",payload:n})},[i]),removeModal:M.useCallback(n=>{i({type:"REMOVE_MODAL",payload:n})},[i])}}const tf=M.createContext(void 0),Cs={i18n:{keys:{},userLang:{primary:"",supported:[]}},i18nFileFetched:!1},nf={tr_key:"__t"},{tr_key:$r}=nf,Xy={buildPathFullObject:e=>`${$r}.${e}`,getKeyValueFromCustom:(e,t)=>pe.get(e,`${$r}.${t}.key`),getDefaultValueFromCustom:(e,t)=>pe.get(e,`${$r}.${t}.default`),getFullObject:(e,t)=>pe.get(e,`${$r}.${t}`)},rf=M.memo(({children:e,isI18nEnabled:t,onI18nChange:i})=>{const n=Ui({permissive:!0}),[r,a]=M.useState(Cs),s=M.useRef(!1),{i18n:l}=r,u=(S,w,I)=>{let A=1,y=S;for(;l.keys[y];)y=`${S}-${A}`,A++;const f={default:I};w.forEach(({lang:P,value:F})=>{P&&pe.set(f,P,F)});const O={keys:{...l.keys,[S]:f},userLang:l.userLang};a(P=>({...P,i18n:O}))},c=()=>{const S=new window.Event("i18n:ready");window.dispatchEvent(S)},h=M.useCallback(pe.debounce((S,w,I,A=!1)=>{a(y=>{const{keys:f,userLang:O}=y.i18n;if(f[S]&&w){const P={...f,[S]:{...f[S],[w]:I}};return s.current=A,{...y,i18n:{keys:P,userLang:O}}}return y})},300),[]),p=M.useCallback(pe.debounce((S,w)=>{a(I=>{const{keys:A,userLang:y}=pe.cloneDeep(I.i18n);return A[S]&&w&&pe.set(A,`${S}.default`,w),{...I,i18n:{keys:A,userLang:y}}})},300),[l]),g=S=>{S&&a(w=>({...w,i18n:{...w.i18n,userLang:S}}))},m=M.useCallback((S,w)=>{const{keys:I,userLang:A}=l,f={keys:Object.entries(I).reduce((O,[P,F])=>{const D={...F};return S.isocode in D&&(D[w.isocode]=D[S.isocode],delete D[S.isocode]),O[P]=D,O},{}),userLang:A};a(O=>({...O,i18n:f}))},[l]),E=M.useCallback(S=>{const{keys:w,userLang:I}=l,y={keys:Object.entries(w).reduce((f,[O,P])=>{const F={...P};return S.isocode in F&&delete F[S.isocode],f[O]=F,f},{}),userLang:I};a(f=>({...f,i18n:y}))},[l]),v=S=>{const w=[];return Object.keys(l.keys).forEach(A=>{const y=pe.get(l,`keys.${A}.${S}`,pe.get(l,`keys.${A}.default`,""));w.push({key:A,value:y})}),w},k=M.useCallback(pe.debounce(S=>{a(w=>{const{keys:I,userLang:A}=w.i18n,y={...I};return delete y[S],{...w,i18n:{userLang:A,keys:y}}})},300),[]);return M.useEffect(()=>{(async()=>{if(!t){a(w=>({...w,i18nFileFetched:!0})),c();return}try{const w=await((n==null?void 0:n.fetchI18nFile)||Bp)();a(I=>({...I,i18n:{keys:pe.get(w,"keys",Cs.i18n.keys),userLang:pe.get(w,"userLang",Cs.i18n.userLang)}}))}catch{}finally{a(w=>({...w,i18nFileFetched:!0})),c()}})()},[t,n==null?void 0:n.fetchI18nFile]),M.useEffect(()=>{const S=Se.i18nSubject.pipe(Yy(({action:w,payload:I})=>{if(w==="set_content"){const A={...l,keys:{...l.keys,...I}};a(y=>({...y,i18n:A}))}if(w==="set_locale_state"){const A={...l,...I};a(y=>({...y,i18n:A}))}})).subscribe();return()=>S.unsubscribe()},[l]),M.useEffect(()=>{r.i18nFileFetched&&(i==null||i(r.i18n))},[r]),b.jsx(tf.Provider,{value:{i18n:r.i18n,createKey:u,updateKey:h,removeKey:k,editLanguageKeys:m,updateKeyDefault:p,deleteLanguageKeys:E,getI18nAsKeyValues:v,setUserLangSettings:g,shouldRecompute:s},children:e})});function qi(){const e=M.useContext(tf);if(e===void 0)throw new Error("useI18n must be used within a I18nProviderContext");return e}const af=M.createContext(void 0),sf=M.createContext(void 0),ew=e=>Se.getSupportedLanguages(e),of=({children:e,getSupportedLanguages:t=ew,i18nCurrent:i="",activeTabPath:n="",flagsForActiveTab:r})=>{const{isInsideStudio:a}=Se.useStudioContext();return a?b.jsx(iw,{getSupportedLanguages:t,i18nCurrent:i,activeTabPath:n,flagsForActiveTab:r,children:e}):b.jsx(tw,{getSupportedLanguages:t,children:e})},tw=({children:e,getSupportedLanguages:t})=>{const{state:{currentLang:i},actions:n}=Se.useStateObject({currentLang:""}),{actions:r}=Se.useDsRendererAdapter(`${Se.QODLY_NAMESPACE}:${Se.USER_LANGUAGE_DATASOURCE_ID}`),{i18n:{userLang:{primary:a,supported:s}}}=qi(),{isInsideStudio:l}=Se.useStudioContext(),[u,c]=M.useState([]),{loaded:h}=Se.useDsChangeRenderer({datasourceId:`${Se.QODLY_NAMESPACE}:${Se.USER_LANGUAGE_DATASOURCE_ID}`,isDsBuild:!0,onChange:v=>{if(!v)return;const{selected:k}=v;k&&k.isocode&&(n.setCurrentLang(k.isocode),g(k))}}),p=(v,k)=>{r.setProperty(v,k)},g=v=>{localStorage.setItem("i18n.selected",JSON.stringify(v))},m=()=>{const v=localStorage.getItem("i18n.selected");return v?JSON.parse(v):null},E=()=>navigator.language;return M.useEffect(()=>{t(l).then(v=>{c(v)})},[l]),M.useEffect(()=>{if(h&&s){const v=s.map(({isocode:k})=>u.find(S=>S.isocode===k)).filter(Boolean);p("supported",v)}},[s,h]),M.useEffect(()=>{if(h){const v=m();if(v){p("selected",v);return}const k=E();if(k){const S=s.find(w=>w.isocode===k);if(S){p("selected",S);return}}if(a){const S=s.find(w=>w.isocode===a);S&&p("selected",S)}}},[h,s,a]),b.jsx(sf.Provider,{value:{selected:i,supported:u},children:e})},iw=M.memo(({children:e,getSupportedLanguages:t,i18nCurrent:i,flagsForActiveTab:n})=>{const{state:{supported:r},actions:a}=Se.useStateObject({supported:[]}),{i18n:{userLang:{primary:s,supported:l}}}=qi(),{isInsideStudio:u}=Se.useStudioContext(),c=i&&l.find(g=>g.isocode===i)?i:"",[h,p]=M.useState(c);return M.useEffect(()=>{n!=null&&n.enabled&&p("")},[n==null?void 0:n.enabled]),M.useEffect(()=>{p(c)},[c]),Se.useDsChangeRenderer({datasourceId:`${Se.QODLY_NAMESPACE}:${Se.USER_LANGUAGE_DATASOURCE_ID}`,isDsBuild:n==null?void 0:n.enabled,onChange:g=>{if(!g)return;const{selected:m}=g;m&&m.isocode&&(p(m.isocode),localStorage.setItem("i18n.selected",m.isocode))}}),M.useEffect(()=>{t(u).then(g=>{a.setSupported(g)})},[u]),b.jsx(af.Provider,{value:{primary:s,selected:h||c,supported:r,userLangagues:l},children:e})});function lf(){const{isInsideStudio:e}=Se.useStudioContext(),t=M.useContext(af),i=M.useContext(sf),n=e?t:i;if(n===void 0)throw new Error("useLocalization must be used within a LocalizationContext");return n}const uf=M.createContext(void 0),cf=({children:e})=>{const{state:{allSupportedLanguages:t,selectedLanguage:i,languageKeys:n,addFirstLanguage:r},actions:a}=Se.useStateObject({allSupportedLanguages:[],selectedLanguage:void 0,languageKeys:[],addFirstLanguage:!1}),{supported:s}=lf(),{i18n:l,setUserLangSettings:u,updateKey:c,removeKey:h,createKey:p}=qi(),g=(E,v)=>Object.keys(v).reduce((w,I)=>{if(v[I]){const A=v[I];if(Object.hasOwn(A,E)){const y=v[I][E];w.push({key:I,value:y,isDefault:!1})}else{const y=v[I].default;w.push({key:I,value:y,isDefault:!0})}}return w},[]),m=(E,v)=>{if(i){const{isocode:k}=i;c(E,k,v,!0);const S=structuredClone(l.keys),w=pe.set({...S},`${E}.${k}`,v),I=g(k,w);a.setLanguageKeys(I)}};return M.useEffect(()=>{a.setAllSupportedLanguages(s||[])},[s]),M.useEffect(()=>{if(i){const{isocode:E}=i,v=g(E,l.keys);a.setLanguageKeys(v)}},[l,i]),b.jsx(uf.Provider,{value:{userLanguages:l.userLang,languageKeys:n,selectedLanguage:i,allSupportedLanguages:t,addFirstLanguage:r,isPrimary:l.userLang.primary===(i==null?void 0:i.isocode),removeKey:h,addNewKey:p,setAddFirstLanguage:a.setAddFirstLanguage,setUserLangSettings:u,setSelectedLanguage:E=>a.setSelectedLanguage(E),setLanguageKeyValue:m},children:e})},Gi=()=>{const e=M.useContext(uf);if(e===void 0)throw new Error("useLocalizationEditor must be used within a LocalizationEditorProvider");return e},ft=()=>document.querySelector(`.${Ro.LOCALIZATION_EDITOR_SCOPE_CLASS}`)||document.body,nw=({container:e,...t})=>b.jsx(Se.Portal,{...t,container:e||ft()}),rw=M.memo(({keyName:e,value:t,isDefault:i,index:n})=>{const{state:{newValue:r,onEditValue:a},actions:s}=Se.useStateObject({newValue:t,onEditValue:!1}),{setLanguageKeyValue:l,removeKey:u}=Gi(),c=Ui(),[h,p]=M.useState(null),g=async()=>{const{confirmed:v}=await c.actions.openModal({title:"Delete Key",type:Se.ModalType.CONFIRM,color:Se.ModalColor.DANGER,message:"Deleting this key will remove all translations associated with it across all locales. Are you sure you want to delete it ?",icon:"FdWarningDanger"});v&&u(e)},m=()=>{a&&(l(e,r),s.setOnEditValue(!1),p(null))},E=()=>{a&&(s.setNewValue(t),s.setOnEditValue(!1),p(null))};return M.useEffect(()=>{s.setNewValue(t)},[t]),b.jsxs("tr",{"data-cy":`shared-labels-row-${e}`,className:"odd:bg-white/5",children:[b.jsx("td",{className:"px-2 text-xs font-normal h-10",children:e}),b.jsx("td",{className:"p-2 whitespace-nowrap text-xs font-normal h-10",children:a?b.jsxs(si.Root,{isInvalid:!!h,children:[b.jsx(si.Group,{children:b.jsx(si.Area,{"data-cy":`shared-labels-row-${e}-input`,autoHeight:!0,value:r,onChange:v=>{s.setNewValue(v.target.value),p(null)},onKeyDown:v=>{v.key==="Enter"&&!v.shiftKey&&(v.preventDefault(),m())}})}),h&&b.jsx(si.Message,{children:h==null?void 0:h.message})]}):b.jsx("span",{className:Ft("text-wrap",{"italic text-inactive-text":i}),onDoubleClick:()=>{s.setOnEditValue(!0)},children:t})}),b.jsx("td",{className:"flex items-center px-2 text-xs font-normal float-right h-10",children:a?b.jsxs(b.Fragment,{children:[b.jsx(wt,{label:"Confirm",container:ft(),children:b.jsx(lt,{"data-cy":`shared-labels-row-${e}-confirm-button`,color:"white",variant:"ghost",onClick:m,children:b.jsx(Lo,{})})}),b.jsx(wt,{label:"Cancel",container:ft(),children:b.jsx(lt,{"data-cy":`shared-labels-row-${e}-cancel-button`,color:"white",variant:"ghost",onClick:E,children:b.jsx(za,{})})})]}):b.jsxs(b.Fragment,{children:[b.jsx(wt,{label:"Edit",container:ft(),children:b.jsx(lt,{"data-cy":`shared-labels-row-${e}-edit-button`,color:"white",variant:"ghost",onClick:()=>{s.setOnEditValue(!0)},children:b.jsx(Bh,{})})}),b.jsx(wt,{label:"Delete",container:ft(),children:b.jsx(lt,{"data-cy":`shared-labels-row-${e}-delete-button`,color:"white",variant:"ghost",onClick:g,children:b.jsx(Hh,{})})})]})})]})}),aw=({onCancel:e,onConfirm:t,error:i,setError:n})=>{const{state:r,actions:a}=Se.useStateObject({key:"",value:""}),s=()=>{t(r.key,r.value)},l=()=>{n(null),e()};return b.jsxs("tr",{"data-cy":"shared-labels-new-row",className:"odd:bg-white/5",children:[b.jsx("td",{className:"px-2 text-xs font-normal h-10 min-h-4",children:b.jsxs(si.Root,{color:i?"negative":"primary",children:[b.jsx(si.Group,{children:b.jsx(si.Field,{"data-cy":"shared-labels-new-row-key-input",type:"text",value:r.key,onChange:u=>{n(null),a.setKey(u.target.value)},autoFocus:!0,onKeyUp:u=>{u.key==="Escape"&&(n(null),l())}})}),i&&b.jsx(si.Message,{children:i==null?void 0:i.message})]})}),b.jsx("td",{className:"px-2 whitespace-nowrap text-xs font-normal h-10",children:b.jsx(si.Root,{color:i?"negative":"primary",children:b.jsx(si.Group,{children:b.jsx(si.Field,{"data-cy":"shared-labels-new-row-value-input",type:"text",value:r.value,onChange:u=>a.setValue(u.target.value),onKeyUp:u=>{u.key==="Enter"?s():u.key==="Escape"&&l()}})})})}),b.jsxs("td",{className:"flex items-center px-2 text-xs font-normal float-right h-10",children:[b.jsx(wt,{label:"Confirm",container:ft(),children:b.jsx(lt,{"data-cy":"shared-labels-new-row-confirm-button",color:"white",variant:"ghost",onClick:s,children:b.jsx(Lo,{})})}),b.jsx(wt,{label:"Cancel",container:ft(),children:b.jsx(lt,{"data-cy":"shared-labels-new-row-cancel-button",color:"white",variant:"ghost",onClick:l,children:b.jsx(za,{})})})]})]})},sw=()=>{const{languageKeys:e,isPrimary:t,selectedLanguage:i,userLanguages:{supported:n},addNewKey:r,setUserLangSettings:a}=Gi(),{state:s,actions:l}=Se.useStateObject({search:"",switch:t,keys:[],addNewKey:!1}),[u,c]=M.useState(null),h=M.useRef(null),p=Oy(e),g=!!i&&!p,m=!!i,E=M.useMemo(()=>{if(!s.search)return e;const P=new RegExp(pe.escapeRegExp(s.search),"gi");return e.filter(F=>F.key.match(P))},[e,s.search]),v=E.length===0,k=av({count:E.length,getScrollElement:()=>h.current,estimateSize:()=>40,overscan:5}),S=k.getVirtualItems(),w=S.length>0?S[0].start:0,I=S.length>0?k.getTotalSize()-S[S.length-1].end:0,A=()=>{if(i){const{isocode:P}=i;a({primary:P,supported:n})}},y=()=>{l.setAddNewKey(!0)},f=(P,F)=>{const D=E.find(V=>V.key===P);if(i){const{isocode:V}=i;if(P){if(!/^[\w\u3040-\u30FF\u3400-\u4DBF\u4E00-\u9FAF-]+$/i.test(P)||!/^[a-zA-Z\u3040-\u30FF\u3400-\u4DBF\u4E00-\u9FAF]/.test(P)){c({message:"Invalid key name"});return}else if(D){c({message:"Key name already exists"});return}r(P,[{lang:V,value:F}],F)}l.setAddNewKey(!1)}},O=()=>{l.setAddNewKey(!1)};return M.useEffect(()=>{l.setSwitch(t)},[t]),b.jsx(Wi,{depth:1,"data-cy":"localization-keys-editor",className:Ft("flex w-full border-l",{"justify-center items-center":!1}),children:b.jsxs("div",{className:"flex flex-col w-full py-3 px-3 min-h-0",children:[b.jsxs("div",{className:"flex flex-col space-y-3 justify-between w-full",children:[b.jsxs("div",{className:Ft("flex items-center w-full justify-between",{hidden:!m}),children:[b.jsxs("div",{className:"flex gap-x-2 items-center justify-center",children:[b.jsx("span",{className:"text-[12px]",children:"Shared Labels"}),b.jsx(Se.Tip,{tipKey:"editors:i18n:label",alwaysOn:!0})]}),b.jsxs("div",{className:"flex gap-x-2 justify-center items-center",children:[b.jsx(Ed,{onChange:P=>{t||(l.setSwitch(P),A())},checked:s.switch}),b.jsx("span",{className:"text-xs",children:"Primary Locale"})]})]}),b.jsx("div",{className:Ft("w-60",{invisible:!g}),children:b.jsx(Se.SearchInput,{containerClassName:"",value:s.search,onChange:P=>l.setSearch(P),delay:300})})]}),p?b.jsx(My,{}):b.jsxs("div",{ref:h,className:"w-full flex-1 min-h-0 overflow-y-auto",children:[b.jsxs("table",{"data-cy":"shared-labels-table",className:"w-full text-sm text-left rtl:text-right table-fixed",children:[b.jsx("thead",{className:"text-xs",children:b.jsxs("tr",{children:[b.jsx("th",{scope:"col",className:"px-2 py-3 text-xs font-normal",children:"Key"}),b.jsx("th",{scope:"col",className:"px-2 py-3 text-xs font-normal",children:"Value"}),b.jsx("th",{scope:"col",className:"px-2 py-3 text-xs font-normal float-right",children:b.jsx(wt,{label:"Add a key",container:ft(),children:b.jsx(lt,{color:"white",variant:"ghost",onClick:y,children:b.jsx(Fo,{})})})})]})}),b.jsxs("tbody",{className:"border-t-[1px] border-border-subtle",children:[w>0&&b.jsx("tr",{children:b.jsx("td",{colSpan:3,style:{height:w}})}),S.map(P=>{const F=E[P.index];return b.jsx(rw,{index:P.index,keyName:F.key,value:F.value,isDefault:F.isDefault},`${i==null?void 0:i.isocode}/${P.index}`)}),I>0&&b.jsx("tr",{children:b.jsx("td",{colSpan:3,style:{height:I}})}),s.addNewKey&&b.jsx(aw,{onConfirm:f,onCancel:O,setError:c,error:u}),v&&b.jsx("span",{})]})]}),v&&b.jsxs("div",{className:"flex flex-col justify-center items-center mt-16 ml-2 text-xs space-y-3 text-inactive-text",children:[b.jsx(Do,{className:"h-9 w-9"}),b.jsx("div",{className:"text-xs",children:"This key doesn't exist."})]})]})]})})},dr=(e,t)=>t.find(i=>i.isocode===e);function ow(){return{enter:{mdxFlowExpression:uw,mdxTextExpression:cw},exit:{mdxFlowExpression:Ec,mdxFlowExpressionChunk:Cc,mdxTextExpression:Ec,mdxTextExpressionChunk:Cc}}}function lw(){return{handlers:{mdxFlowExpression:Ic,mdxTextExpression:Ic},unsafe:[{character:"{",inConstruct:["phrasing"]},{atBreak:!0,character:"{"}]}}function uw(e){this.enter({type:"mdxFlowExpression",value:""},e),this.buffer()}function cw(e){this.enter({type:"mdxTextExpression",value:""},e),this.buffer()}function Ec(e){const t=this.resume(),i=e.estree,n=this.stack[this.stack.length-1];n.type==="mdxFlowExpression"||n.type,this.exit(e),n.value=t,i&&(n.data={estree:i})}function Cc(e){this.config.enter.data.call(this,e),this.config.exit.data.call(this,e)}function Ic(e,t,i){const n=e.value||"";return"{"+i.indentLines(n,function(a,s,l){return(s===0||l?"":" ")+a})+"}"}function Aa(e,t){const i=String(e);if(typeof t!="string")throw new TypeError("Expected character");let n=0,r=i.indexOf(t);for(;r!==-1;)n++,r=i.indexOf(t,r+t.length);return n}const hw=["AElig","AMP","Aacute","Acirc","Agrave","Aring","Atilde","Auml","COPY","Ccedil","ETH","Eacute","Ecirc","Egrave","Euml","GT","Iacute","Icirc","Igrave","Iuml","LT","Ntilde","Oacute","Ocirc","Ograve","Oslash","Otilde","Ouml","QUOT","REG","THORN","Uacute","Ucirc","Ugrave","Uuml","Yacute","aacute","acirc","acute","aelig","agrave","amp","aring","atilde","auml","brvbar","ccedil","cedil","cent","copy","curren","deg","divide","eacute","ecirc","egrave","eth","euml","frac12","frac14","frac34","gt","iacute","icirc","iexcl","igrave","iquest","iuml","laquo","lt","macr","micro","middot","nbsp","not","ntilde","oacute","ocirc","ograve","ordf","ordm","oslash","otilde","ouml","para","plusmn","pound","quot","raquo","reg","sect","shy","sup1","sup2","sup3","szlig","thorn","times","uacute","ucirc","ugrave","uml","uuml","yacute","yen","yuml"],_c={0:"�",128:"€",130:"‚",131:"ƒ",132:"„",133:"…",134:"†",135:"‡",136:"ˆ",137:"‰",138:"Š",139:"‹",140:"Œ",142:"Ž",145:"‘",146:"’",147:"“",148:"”",149:"•",150:"–",151:"—",152:"˜",153:"™",154:"š",155:"›",156:"œ",158:"ž",159:"Ÿ"};function hf(e){const t=typeof e=="string"?e.charCodeAt(0):e;return t>=48&&t<=57}function dw(e){const t=typeof e=="string"?e.charCodeAt(0):e;return t>=97&&t<=102||t>=65&&t<=70||t>=48&&t<=57}function pw(e){const t=typeof e=="string"?e.charCodeAt(0):e;return t>=97&&t<=122||t>=65&&t<=90}function Ac(e){return pw(e)||hf(e)}const Nc=document.createElement("i");function pr(e){const t="&"+e+";";Nc.innerHTML=t;const i=Nc.textContent;return i.charCodeAt(i.length-1)===59&&e!=="semi"||i===t?!1:i}const fw=["","Named character references must be terminated by a semicolon","Numeric character references must be terminated by a semicolon","Named character references cannot be empty","Numeric character references cannot be empty","Named character references must be known","Numeric character references cannot be disallowed","Numeric character references cannot be outside the permissible Unicode range"];function gw(e,t){const i=t||{},n=typeof i.additional=="string"?i.additional.charCodeAt(0):i.additional,r=[];let a=0,s=-1,l="",u,c;i.position&&("start"in i.position||"indent"in i.position?(c=i.position.indent,u=i.position.start):u=i.position);let h=(u?u.line:0)||1,p=(u?u.column:0)||1,g=E(),m;for(a--;++a<=e.length;)if(m===10&&(p=(c?c[s]:0)||1),m=e.charCodeAt(a),m===38){const S=e.charCodeAt(a+1);if(S===9||S===10||S===12||S===32||S===38||S===60||Number.isNaN(S)||n&&S===n){l+=String.fromCharCode(m),p++;continue}const w=a+1;let I=w,A=w,y;if(S===35){A=++I;const ue=e.charCodeAt(A);ue===88||ue===120?(y="hexadecimal",A=++I):y="decimal"}else y="named";let f="",O="",P="";const F=y==="named"?Ac:y==="decimal"?hf:dw;for(A--;++A<=e.length;){const ue=e.charCodeAt(A);if(!F(ue))break;P+=String.fromCharCode(ue),y==="named"&&hw.includes(P)&&(f=P,O=pr(P))}let D=e.charCodeAt(A)===59;if(D){A++;const ue=y==="named"?pr(P):!1;ue&&(f=P,O=ue)}let V=1+A-w,J="";if(!(!D&&i.nonTerminated===!1))if(!P)y!=="named"&&v(4,V);else if(y==="named"){if(D&&!O)v(5,1);else if(f!==P&&(A=I+f.length,V=1+A-I,D=!1),!D){const ue=f?1:3;if(i.attribute){const Q=e.charCodeAt(A);Q===61?(v(ue,V),O=""):Ac(Q)?O="":v(ue,V)}else v(ue,V)}J=O}else{D||v(2,V);let ue=Number.parseInt(P,y==="hexadecimal"?16:10);if(mw(ue))v(7,V),J="�";else if(ue in _c)v(6,V),J=_c[ue];else{let Q="";vw(ue)&&v(6,V),ue>65535&&(ue-=65536,Q+=String.fromCharCode(ue>>>10|55296),ue=56320|ue&1023),J=Q+String.fromCharCode(ue)}}if(J){k(),g=E(),a=A-1,p+=A-w+1,r.push(J);const ue=E();ue.offset++,i.reference&&i.reference.call(i.referenceContext||void 0,J,{start:g,end:ue},e.slice(w-1,A)),g=ue}else P=e.slice(w-1,A),l+=P,p+=P.length,a=A-1}else m===10&&(h++,s++,p=0),Number.isNaN(m)?k():(l+=String.fromCharCode(m),p++);return r.join("");function E(){return{line:h,column:p,offset:a+((u?u.offset:0)||0)}}function v(S,w){let I;i.warning&&(I=E(),I.column+=w,I.offset+=w,i.warning.call(i.warningContext||void 0,fw[S],I,S))}function k(){l&&(r.push(l),i.text&&i.text.call(i.textContext||void 0,l,{start:g,end:E()}),l="")}}function mw(e){return e>=55296&&e<=57343||e>1114111}function vw(e){return e>=1&&e<=8||e===11||e>=13&&e<=31||e>=127&&e<=159||e>=64976&&e<=65007||(e&65535)===65535||(e&65535)===65534}const xw=/["&'<>`]/g,bw=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,yw=/[\x01-\t\v\f\x0E-\x1F\x7F\x81\x8D\x8F\x90\x9D\xA0-\uFFFF]/g,ww=/[|\\{}()[\]^$+*?.]/g,Tc=new WeakMap;function kw(e,t){if(e=e.replace(t.subset?Sw(t.subset):xw,n),t.subset||t.escapeOnly)return e;return e.replace(bw,i).replace(yw,n);function i(r,a,s){return t.format((r.charCodeAt(0)-55296)*1024+r.charCodeAt(1)-56320+65536,s.charCodeAt(a+2),t)}function n(r,a,s){return t.format(r.charCodeAt(0),s.charCodeAt(a+1),t)}}function Sw(e){let t=Tc.get(e);return t||(t=Ew(e),Tc.set(e,t)),t}function Ew(e){const t=[];let i=-1;for(;++i<e.length;)t.push(e[i].replace(ww,"\\$&"));return new RegExp("(?:"+t.join("|")+")","g")}function Cw(e){return"&#x"+e.toString(16).toUpperCase()+";"}function Iw(e,t){return kw(e,Object.assign({format:Cw},t))}function _i(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?Oc(e.position):"start"in e||"end"in e?Oc(e):"line"in e||"column"in e?vo(e):""}function vo(e){return Pc(e&&e.line)+":"+Pc(e&&e.column)}function Oc(e){return vo(e&&e.start)+"-"+vo(e&&e.end)}function Pc(e){return e&&typeof e=="number"?e:1}class Xe extends Error{constructor(t,i,n){super(),typeof i=="string"&&(n=i,i=void 0);let r="",a={},s=!1;if(i&&("line"in i&&"column"in i?a={place:i}:"start"in i&&"end"in i?a={place:i}:"type"in i?a={ancestors:[i],place:i.position}:a={...i}),typeof t=="string"?r=t:!a.cause&&t&&(s=!0,r=t.message,a.cause=t),!a.ruleId&&!a.source&&typeof n=="string"){const u=n.indexOf(":");u===-1?a.ruleId=n:(a.source=n.slice(0,u),a.ruleId=n.slice(u+1))}if(!a.place&&a.ancestors&&a.ancestors){const u=a.ancestors[a.ancestors.length-1];u&&(a.place=u.position)}const l=a.place&&"start"in a.place?a.place.start:a.place;this.ancestors=a.ancestors||void 0,this.cause=a.cause||void 0,this.column=l?l.column:void 0,this.fatal=void 0,this.file="",this.message=r,this.line=l?l.line:void 0,this.name=_i(a.place)||"1:1",this.place=a.place||void 0,this.reason=this.message,this.ruleId=a.ruleId||void 0,this.source=a.source||void 0,this.stack=s&&a.cause&&typeof a.cause.stack=="string"?a.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}}Xe.prototype.file="";Xe.prototype.name="";Xe.prototype.reason="";Xe.prototype.message="";Xe.prototype.stack="";Xe.prototype.column=void 0;Xe.prototype.line=void 0;Xe.prototype.ancestors=void 0;Xe.prototype.cause=void 0;Xe.prototype.fatal=void 0;Xe.prototype.place=void 0;Xe.prototype.ruleId=void 0;Xe.prototype.source=void 0;const df=" ";function _w(){return{canContainEols:["mdxJsxTextElement"],enter:{mdxJsxFlowTag:n,mdxJsxFlowTagClosingMarker:r,mdxJsxFlowTagAttribute:p,mdxJsxFlowTagExpressionAttribute:g,mdxJsxFlowTagAttributeValueLiteral:e,mdxJsxFlowTagAttributeValueExpression:e,mdxJsxFlowTagSelfClosingMarker:s,mdxJsxTextTag:n,mdxJsxTextTagClosingMarker:r,mdxJsxTextTagAttribute:p,mdxJsxTextTagExpressionAttribute:g,mdxJsxTextTagAttributeValueLiteral:e,mdxJsxTextTagAttributeValueExpression:e,mdxJsxTextTagSelfClosingMarker:s},exit:{mdxJsxFlowTagClosingMarker:l,mdxJsxFlowTagNamePrimary:u,mdxJsxFlowTagNameMember:c,mdxJsxFlowTagNameLocal:h,mdxJsxFlowTagExpressionAttribute:m,mdxJsxFlowTagExpressionAttributeValue:i,mdxJsxFlowTagAttributeNamePrimary:E,mdxJsxFlowTagAttributeNameLocal:v,mdxJsxFlowTagAttributeValueLiteral:k,mdxJsxFlowTagAttributeValueLiteralValue:i,mdxJsxFlowTagAttributeValueExpression:S,mdxJsxFlowTagAttributeValueExpressionValue:i,mdxJsxFlowTagSelfClosingMarker:w,mdxJsxFlowTag:I,mdxJsxTextTagClosingMarker:l,mdxJsxTextTagNamePrimary:u,mdxJsxTextTagNameMember:c,mdxJsxTextTagNameLocal:h,mdxJsxTextTagExpressionAttribute:m,mdxJsxTextTagExpressionAttributeValue:i,mdxJsxTextTagAttributeNamePrimary:E,mdxJsxTextTagAttributeNameLocal:v,mdxJsxTextTagAttributeValueLiteral:k,mdxJsxTextTagAttributeValueLiteralValue:i,mdxJsxTextTagAttributeValueExpression:S,mdxJsxTextTagAttributeValueExpressionValue:i,mdxJsxTextTagSelfClosingMarker:w,mdxJsxTextTag:I}};function e(){this.buffer()}function t(O){return{line:O.line,column:O.column,offset:O.offset}}function i(O){this.config.enter.data.call(this,O),this.config.exit.data.call(this,O)}function n(O){const P={name:void 0,attributes:[],close:!1,selfClosing:!1,start:O.start,end:O.end};this.data.mdxJsxTagStack||(this.data.mdxJsxTagStack=[]),this.data.mdxJsxTag=P,this.buffer()}function r(O){if(this.data.mdxJsxTagStack.length===0)throw new Xe("Unexpected closing slash `/` in tag, expected an open tag first",{start:O.start,end:O.end},"mdast-util-mdx-jsx:unexpected-closing-slash")}function a(O){if(this.data.mdxJsxTag.close)throw new Xe("Unexpected attribute in closing tag, expected the end of the tag",{start:O.start,end:O.end},"mdast-util-mdx-jsx:unexpected-attribute")}function s(O){if(this.data.mdxJsxTag.close)throw new Xe("Unexpected self-closing slash `/` in closing tag, expected the end of the tag",{start:O.start,end:O.end},"mdast-util-mdx-jsx:unexpected-self-closing-slash")}function l(){const O=this.data.mdxJsxTag;O.close=!0}function u(O){const P=this.data.mdxJsxTag;P.name=this.sliceSerialize(O)}function c(O){const P=this.data.mdxJsxTag;P.name+="."+this.sliceSerialize(O)}function h(O){const P=this.data.mdxJsxTag;P.name+=":"+this.sliceSerialize(O)}function p(O){const P=this.data.mdxJsxTag;a.call(this,O),P.attributes.push({type:"mdxJsxAttribute",name:"",value:null,position:{start:t(O.start),end:void 0}})}function g(O){const P=this.data.mdxJsxTag;a.call(this,O),P.attributes.push({type:"mdxJsxExpressionAttribute",value:"",position:{start:t(O.start),end:void 0}}),this.buffer()}function m(O){const P=this.data.mdxJsxTag,F=P.attributes[P.attributes.length-1];F.type;const D=O.estree;F.value=this.resume(),F.position,F.position.end=t(O.end),D&&(F.data={estree:D})}function E(O){const P=this.data.mdxJsxTag,F=P.attributes[P.attributes.length-1];F.type,F.name=this.sliceSerialize(O),F.position,F.position.end=t(O.end)}function v(O){const P=this.data.mdxJsxTag,F=P.attributes[P.attributes.length-1];F.type,F.name+=":"+this.sliceSerialize(O),F.position,F.position.end=t(O.end)}function k(O){const P=this.data.mdxJsxTag,F=P.attributes[P.attributes.length-1];F.value=gw(this.resume(),{nonTerminated:!1}),F.position,F.position.end=t(O.end)}function S(O){const P=this.data.mdxJsxTag,F=P.attributes[P.attributes.length-1];F.type;const D={type:"mdxJsxAttributeValueExpression",value:this.resume()},V=O.estree;V&&(D.data={estree:V}),F.value=D,F.position,F.position.end=t(O.end)}function w(){const O=this.data.mdxJsxTag;O.selfClosing=!0}function I(O){const P=this.data.mdxJsxTag,F=this.data.mdxJsxTagStack,D=F[F.length-1];if(P.close&&D.name!==P.name)throw new Xe("Unexpected closing tag `"+f(P)+"`, expected corresponding closing tag for `"+f(D)+"` ("+_i(D)+")",{start:O.start,end:O.end},"mdast-util-mdx-jsx:end-tag-mismatch");this.resume(),P.close?F.pop():this.enter({type:O.type==="mdxJsxTextTag"?"mdxJsxTextElement":"mdxJsxFlowElement",name:P.name||null,attributes:P.attributes,children:[]},O,A),P.selfClosing||P.close?this.exit(O,y):F.push(P)}function A(O,P){const F=this.data.mdxJsxTagStack,D=F[F.length-1],V=O?" before the end of `"+O.type+"`":"",J=O?{start:O.start,end:O.end}:void 0;throw new Xe("Expected a closing tag for `"+f(D)+"` ("+_i({start:P.start,end:P.end})+")"+V,J,"mdast-util-mdx-jsx:end-tag-mismatch")}function y(O,P){const F=this.data.mdxJsxTag;throw new Xe("Expected the closing tag `"+f(F)+"` either after the end of `"+P.type+"` ("+_i(P.end)+") or another opening tag after the start of `"+P.type+"` ("+_i(P.start)+")",{start:O.start,end:O.end},"mdast-util-mdx-jsx:end-tag-mismatch")}function f(O){return"<"+(O.close?"/":"")+(O.name||"")+">"}}function Aw(e){const t=e||{},i=t.quote||'"',n=t.quoteSmart||!1,r=t.tightSelfClosing||!1,a=t.printWidth||Number.POSITIVE_INFINITY,s=i==='"'?"'":'"';if(i!=='"'&&i!=="'")throw new Error("Cannot serialize attribute values with `"+i+"` for `options.quote`, expected `\"`, or `'`");return l.peek=Tw,{handlers:{mdxJsxFlowElement:l,mdxJsxTextElement:l},unsafe:[{character:"<",inConstruct:["phrasing"]},{atBreak:!0,character:"<"}],fences:!0,resourceLink:!0};function l(u,c,h,p){const g=u.type==="mdxJsxFlowElement",m=u.name?!u.children||u.children.length===0:!1,E=pf(h),v=ff(E),k=h.createTracker(p),S=h.createTracker(p),w=[],I=(g?v:"")+"<"+(u.name||""),A=h.enter(u.type);if(k.move(I),S.move(I),u.attributes&&u.attributes.length>0){if(!u.name)throw new Error("Cannot serialize fragment w/ attributes");let F=-1;for(;++F<u.attributes.length;){const D=u.attributes[F];let V;if(D.type==="mdxJsxExpressionAttribute")V="{"+(D.value||"")+"}";else{if(!D.name)throw new Error("Cannot serialize attribute w/o name");const J=D.value,ue=D.name;let Q="";if(J!=null)if(typeof J=="object")Q="{"+(J.value||"")+"}";else{const se=n&&Aa(J,i)>Aa(J,s)?s:i;Q=se+Iw(J,{subset:[se]})+se}V=ue+(Q?"=":"")+Q}w.push(V)}}let y=!1;const f=w.join(" ");g&&(/\r?\n|\r/.test(f)||k.current().now.column+f.length+(m?r?2:3:1)>a)&&(y=!0);let O=k,P=I;if(y){O=S;let F=-1;for(;++F<w.length;)w[F]=v+df+w[F];P+=O.move(`
59
- `+w.join(`
4
+ color: hsl(${Math.max(0,Math.min(120-120*S,120))}deg 100% 31%);`,n==null?void 0:n.key)}return n!=null&&n.onChange&&!(s&&n.skipInitialOnChange)&&n.onChange(r),s=!1,r}return o.updateDeps=l=>{i=l},o}function jo(e,t){if(e===void 0)throw new Error("Unexpected undefined");return e}const gd=(e,t)=>Math.abs(e-t)<1.01,md=(e,t,n)=>{let i;return function(...r){e.clearTimeout(i),i=e.setTimeout(()=>t.apply(this,r),n)}};var jn={};const Vo=e=>{const{offsetWidth:t,offsetHeight:n}=e;return{width:t,height:n}},xd=e=>e,vd=e=>{const t=Math.max(e.startIndex-e.overscan,0),n=Math.min(e.endIndex+e.overscan,e.count-1),i=[];for(let r=t;r<=n;r++)i.push(r);return i},bd=(e,t)=>{const n=e.scrollElement;if(!n)return;const i=e.targetWindow;if(!i)return;const r=o=>{const{width:l,height:u}=o;t({width:Math.round(l),height:Math.round(u)})};if(r(Vo(n)),!i.ResizeObserver)return()=>{};const s=new i.ResizeObserver(o=>{const l=()=>{const u=o[0];if(u!=null&&u.borderBoxSize){const f=u.borderBoxSize[0];if(f){r({width:f.inlineSize,height:f.blockSize});return}}r(Vo(n))};e.options.useAnimationFrameWithResizeObserver?requestAnimationFrame(l):l()});return s.observe(n,{box:"border-box"}),()=>{s.unobserve(n)}},Bo={passive:!0},zo=typeof window>"u"?!0:"onscrollend"in window,yd=(e,t)=>{const n=e.scrollElement;if(!n)return;const i=e.targetWindow;if(!i)return;let r=0;const s=e.options.useScrollendEvent&&zo?()=>{}:md(i,()=>{t(r,!1)},e.options.isScrollingResetDelay),o=p=>()=>{const{horizontal:h,isRtl:d}=e.options;r=h?n.scrollLeft*(d&&-1||1):n.scrollTop,s(),t(r,p)},l=o(!0),u=o(!1);n.addEventListener("scroll",l,Bo);const f=e.options.useScrollendEvent&&zo;return f&&n.addEventListener("scrollend",u,Bo),()=>{n.removeEventListener("scroll",l),f&&n.removeEventListener("scrollend",u)}},wd=(e,t,n)=>{if(t!=null&&t.borderBoxSize){const i=t.borderBoxSize[0];if(i)return Math.round(i[n.options.horizontal?"inlineSize":"blockSize"])}return e[n.options.horizontal?"offsetWidth":"offsetHeight"]},Ed=(e,{adjustments:t=0,behavior:n},i)=>{var r,s;const o=e+t;(s=(r=i.scrollElement)==null?void 0:r.scrollTo)==null||s.call(r,{[i.options.horizontal?"left":"top"]:o,behavior:n})};class Sd{constructor(t){this.unsubs=[],this.scrollElement=null,this.targetWindow=null,this.isScrolling=!1,this.scrollState=null,this.measurementsCache=[],this.itemSizeCache=new Map,this.laneAssignments=new Map,this.pendingMeasuredCacheIndexes=[],this.prevLanes=void 0,this.lanesChangedFlag=!1,this.lanesSettling=!1,this.scrollRect=null,this.scrollOffset=null,this.scrollDirection=null,this.scrollAdjustments=0,this.elementsCache=new Map,this.now=()=>{var n,i,r;return((r=(i=(n=this.targetWindow)==null?void 0:n.performance)==null?void 0:i.now)==null?void 0:r.call(i))??Date.now()},this.observer=(()=>{let n=null;const i=()=>n||(!this.targetWindow||!this.targetWindow.ResizeObserver?null:n=new this.targetWindow.ResizeObserver(r=>{r.forEach(s=>{const o=()=>{const l=s.target,u=this.indexFromElement(l);if(!l.isConnected){this.observer.unobserve(l);return}this.shouldMeasureDuringScroll(u)&&this.resizeItem(u,this.options.measureElement(l,s,this))};this.options.useAnimationFrameWithResizeObserver?requestAnimationFrame(o):o()})}));return{disconnect:()=>{var r;(r=i())==null||r.disconnect(),n=null},observe:r=>{var s;return(s=i())==null?void 0:s.observe(r,{box:"border-box"})},unobserve:r=>{var s;return(s=i())==null?void 0:s.unobserve(r)}}})(),this.range=null,this.setOptions=n=>{Object.entries(n).forEach(([i,r])=>{typeof r>"u"&&delete n[i]}),this.options={debug:!1,initialOffset:0,overscan:1,paddingStart:0,paddingEnd:0,scrollPaddingStart:0,scrollPaddingEnd:0,horizontal:!1,getItemKey:xd,rangeExtractor:vd,onChange:()=>{},measureElement:wd,initialRect:{width:0,height:0},scrollMargin:0,gap:0,indexAttribute:"data-index",initialMeasurementsCache:[],lanes:1,isScrollingResetDelay:150,enabled:!0,isRtl:!1,useScrollendEvent:!1,useAnimationFrameWithResizeObserver:!1,...n}},this.notify=n=>{var i,r;(r=(i=this.options).onChange)==null||r.call(i,this,n)},this.maybeNotify=Dn(()=>(this.calculateRange(),[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]),n=>{this.notify(n)},{key:jn.NODE_ENV!=="production"&&"maybeNotify",debug:()=>this.options.debug,initialDeps:[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]}),this.cleanup=()=>{this.unsubs.filter(Boolean).forEach(n=>n()),this.unsubs=[],this.observer.disconnect(),this.rafId!=null&&this.targetWindow&&(this.targetWindow.cancelAnimationFrame(this.rafId),this.rafId=null),this.scrollState=null,this.scrollElement=null,this.targetWindow=null},this._didMount=()=>()=>{this.cleanup()},this._willUpdate=()=>{var n;const i=this.options.enabled?this.options.getScrollElement():null;if(this.scrollElement!==i){if(this.cleanup(),!i){this.maybeNotify();return}this.scrollElement=i,this.scrollElement&&"ownerDocument"in this.scrollElement?this.targetWindow=this.scrollElement.ownerDocument.defaultView:this.targetWindow=((n=this.scrollElement)==null?void 0:n.window)??null,this.elementsCache.forEach(r=>{this.observer.observe(r)}),this.unsubs.push(this.options.observeElementRect(this,r=>{this.scrollRect=r,this.maybeNotify()})),this.unsubs.push(this.options.observeElementOffset(this,(r,s)=>{this.scrollAdjustments=0,this.scrollDirection=s?this.getScrollOffset()<r?"forward":"backward":null,this.scrollOffset=r,this.isScrolling=s,this.scrollState&&this.scheduleScrollReconcile(),this.maybeNotify()})),this._scrollToOffset(this.getScrollOffset(),{adjustments:void 0,behavior:void 0})}},this.rafId=null,this.getSize=()=>this.options.enabled?(this.scrollRect=this.scrollRect??this.options.initialRect,this.scrollRect[this.options.horizontal?"width":"height"]):(this.scrollRect=null,0),this.getScrollOffset=()=>this.options.enabled?(this.scrollOffset=this.scrollOffset??(typeof this.options.initialOffset=="function"?this.options.initialOffset():this.options.initialOffset),this.scrollOffset):(this.scrollOffset=null,0),this.getFurthestMeasurement=(n,i)=>{const r=new Map,s=new Map;for(let o=i-1;o>=0;o--){const l=n[o];if(r.has(l.lane))continue;const u=s.get(l.lane);if(u==null||l.end>u.end?s.set(l.lane,l):l.end<u.end&&r.set(l.lane,!0),r.size===this.options.lanes)break}return s.size===this.options.lanes?Array.from(s.values()).sort((o,l)=>o.end===l.end?o.index-l.index:o.end-l.end)[0]:void 0},this.getMeasurementOptions=Dn(()=>[this.options.count,this.options.paddingStart,this.options.scrollMargin,this.options.getItemKey,this.options.enabled,this.options.lanes],(n,i,r,s,o,l)=>(this.prevLanes!==void 0&&this.prevLanes!==l&&(this.lanesChangedFlag=!0),this.prevLanes=l,this.pendingMeasuredCacheIndexes=[],{count:n,paddingStart:i,scrollMargin:r,getItemKey:s,enabled:o,lanes:l}),{key:!1}),this.getMeasurements=Dn(()=>[this.getMeasurementOptions(),this.itemSizeCache],({count:n,paddingStart:i,scrollMargin:r,getItemKey:s,enabled:o,lanes:l},u)=>{if(!o)return this.measurementsCache=[],this.itemSizeCache.clear(),this.laneAssignments.clear(),[];if(this.laneAssignments.size>n)for(const d of this.laneAssignments.keys())d>=n&&this.laneAssignments.delete(d);this.lanesChangedFlag&&(this.lanesChangedFlag=!1,this.lanesSettling=!0,this.measurementsCache=[],this.itemSizeCache.clear(),this.laneAssignments.clear(),this.pendingMeasuredCacheIndexes=[]),this.measurementsCache.length===0&&!this.lanesSettling&&(this.measurementsCache=this.options.initialMeasurementsCache,this.measurementsCache.forEach(d=>{this.itemSizeCache.set(d.key,d.size)}));const f=this.lanesSettling?0:this.pendingMeasuredCacheIndexes.length>0?Math.min(...this.pendingMeasuredCacheIndexes):0;this.pendingMeasuredCacheIndexes=[],this.lanesSettling&&this.measurementsCache.length===n&&(this.lanesSettling=!1);const p=this.measurementsCache.slice(0,f),h=new Array(l).fill(void 0);for(let d=0;d<f;d++){const m=p[d];m&&(h[m.lane]=d)}for(let d=f;d<n;d++){const m=s(d),b=this.laneAssignments.get(d);let v,S;if(b!==void 0&&this.options.lanes>1){v=b;const N=h[v],y=N!==void 0?p[N]:void 0;S=y?y.end+this.options.gap:i+r}else{const N=this.options.lanes===1?p[d-1]:this.getFurthestMeasurement(p,d);S=N?N.end+this.options.gap:i+r,v=N?N.lane:d%this.options.lanes,this.options.lanes>1&&this.laneAssignments.set(d,v)}const E=u.get(m),k=typeof E=="number"?E:this.options.estimateSize(d),I=S+k;p[d]={index:d,start:S,size:k,end:I,key:m,lane:v},h[v]=d}return this.measurementsCache=p,p},{key:jn.NODE_ENV!=="production"&&"getMeasurements",debug:()=>this.options.debug}),this.calculateRange=Dn(()=>[this.getMeasurements(),this.getSize(),this.getScrollOffset(),this.options.lanes],(n,i,r,s)=>this.range=n.length>0&&i>0?kd({measurements:n,outerSize:i,scrollOffset:r,lanes:s}):null,{key:jn.NODE_ENV!=="production"&&"calculateRange",debug:()=>this.options.debug}),this.getVirtualIndexes=Dn(()=>{let n=null,i=null;const r=this.calculateRange();return r&&(n=r.startIndex,i=r.endIndex),this.maybeNotify.updateDeps([this.isScrolling,n,i]),[this.options.rangeExtractor,this.options.overscan,this.options.count,n,i]},(n,i,r,s,o)=>s===null||o===null?[]:n({startIndex:s,endIndex:o,overscan:i,count:r}),{key:jn.NODE_ENV!=="production"&&"getVirtualIndexes",debug:()=>this.options.debug}),this.indexFromElement=n=>{const i=this.options.indexAttribute,r=n.getAttribute(i);return r?parseInt(r,10):(console.warn(`Missing attribute name '${i}={index}' on measured element.`),-1)},this.shouldMeasureDuringScroll=n=>{var i;if(!this.scrollState||this.scrollState.behavior!=="smooth")return!0;const r=this.scrollState.index??((i=this.getVirtualItemForOffset(this.scrollState.lastTargetOffset))==null?void 0:i.index);if(r!==void 0&&this.range){const s=Math.max(this.options.overscan,Math.ceil((this.range.endIndex-this.range.startIndex)/2)),o=Math.max(0,r-s),l=Math.min(this.options.count-1,r+s);return n>=o&&n<=l}return!0},this.measureElement=n=>{if(!n){this.elementsCache.forEach((o,l)=>{o.isConnected||(this.observer.unobserve(o),this.elementsCache.delete(l))});return}const i=this.indexFromElement(n),r=this.options.getItemKey(i),s=this.elementsCache.get(r);s!==n&&(s&&this.observer.unobserve(s),this.observer.observe(n),this.elementsCache.set(r,n)),(!this.isScrolling||this.scrollState)&&this.shouldMeasureDuringScroll(i)&&this.resizeItem(i,this.options.measureElement(n,void 0,this))},this.resizeItem=(n,i)=>{var r;const s=this.measurementsCache[n];if(!s)return;const o=this.itemSizeCache.get(s.key)??s.size,l=i-o;l!==0&&(((r=this.scrollState)==null?void 0:r.behavior)!=="smooth"&&(this.shouldAdjustScrollPositionOnItemSizeChange!==void 0?this.shouldAdjustScrollPositionOnItemSizeChange(s,l,this):s.start<this.getScrollOffset()+this.scrollAdjustments)&&(jn.NODE_ENV!=="production"&&this.options.debug&&console.info("correction",l),this._scrollToOffset(this.getScrollOffset(),{adjustments:this.scrollAdjustments+=l,behavior:void 0})),this.pendingMeasuredCacheIndexes.push(s.index),this.itemSizeCache=new Map(this.itemSizeCache.set(s.key,i)),this.notify(!1))},this.getVirtualItems=Dn(()=>[this.getVirtualIndexes(),this.getMeasurements()],(n,i)=>{const r=[];for(let s=0,o=n.length;s<o;s++){const l=n[s],u=i[l];r.push(u)}return r},{key:jn.NODE_ENV!=="production"&&"getVirtualItems",debug:()=>this.options.debug}),this.getVirtualItemForOffset=n=>{const i=this.getMeasurements();if(i.length!==0)return jo(i[Uu(0,i.length-1,r=>jo(i[r]).start,n)])},this.getMaxScrollOffset=()=>{if(!this.scrollElement)return 0;if("scrollHeight"in this.scrollElement)return this.options.horizontal?this.scrollElement.scrollWidth-this.scrollElement.clientWidth:this.scrollElement.scrollHeight-this.scrollElement.clientHeight;{const n=this.scrollElement.document.documentElement;return this.options.horizontal?n.scrollWidth-this.scrollElement.innerWidth:n.scrollHeight-this.scrollElement.innerHeight}},this.getOffsetForAlignment=(n,i,r=0)=>{if(!this.scrollElement)return 0;const s=this.getSize(),o=this.getScrollOffset();i==="auto"&&(i=n>=o+s?"end":"start"),i==="center"?n+=(r-s)/2:i==="end"&&(n-=s);const l=this.getMaxScrollOffset();return Math.max(Math.min(l,n),0)},this.getOffsetForIndex=(n,i="auto")=>{n=Math.max(0,Math.min(n,this.options.count-1));const r=this.getSize(),s=this.getScrollOffset(),o=this.measurementsCache[n];if(!o)return;if(i==="auto")if(o.end>=s+r-this.options.scrollPaddingEnd)i="end";else if(o.start<=s+this.options.scrollPaddingStart)i="start";else return[s,i];if(i==="end"&&n===this.options.count-1)return[this.getMaxScrollOffset(),i];const l=i==="end"?o.end+this.options.scrollPaddingEnd:o.start-this.options.scrollPaddingStart;return[this.getOffsetForAlignment(l,i,o.size),i]},this.scrollToOffset=(n,{align:i="start",behavior:r="auto"}={})=>{const s=this.getOffsetForAlignment(n,i),o=this.now();this.scrollState={index:null,align:i,behavior:r,startedAt:o,lastTargetOffset:s,stableFrames:0},this._scrollToOffset(s,{adjustments:void 0,behavior:r}),this.scheduleScrollReconcile()},this.scrollToIndex=(n,{align:i="auto",behavior:r="auto"}={})=>{n=Math.max(0,Math.min(n,this.options.count-1));const s=this.getOffsetForIndex(n,i);if(!s)return;const[o,l]=s,u=this.now();this.scrollState={index:n,align:l,behavior:r,startedAt:u,lastTargetOffset:o,stableFrames:0},this._scrollToOffset(o,{adjustments:void 0,behavior:r}),this.scheduleScrollReconcile()},this.scrollBy=(n,{behavior:i="auto"}={})=>{const r=this.getScrollOffset()+n,s=this.now();this.scrollState={index:null,align:"start",behavior:i,startedAt:s,lastTargetOffset:r,stableFrames:0},this._scrollToOffset(r,{adjustments:void 0,behavior:i}),this.scheduleScrollReconcile()},this.getTotalSize=()=>{var n;const i=this.getMeasurements();let r;if(i.length===0)r=this.options.paddingStart;else if(this.options.lanes===1)r=((n=i[i.length-1])==null?void 0:n.end)??0;else{const s=Array(this.options.lanes).fill(null);let o=i.length-1;for(;o>=0&&s.some(l=>l===null);){const l=i[o];s[l.lane]===null&&(s[l.lane]=l.end),o--}r=Math.max(...s.filter(l=>l!==null))}return Math.max(r-this.options.scrollMargin+this.options.paddingEnd,0)},this._scrollToOffset=(n,{adjustments:i,behavior:r})=>{this.options.scrollToFn(n,{behavior:r,adjustments:i},this)},this.measure=()=>{this.itemSizeCache=new Map,this.laneAssignments=new Map,this.notify(!1)},this.setOptions(t)}scheduleScrollReconcile(){if(!this.targetWindow){this.scrollState=null;return}this.rafId==null&&(this.rafId=this.targetWindow.requestAnimationFrame(()=>{this.rafId=null,this.reconcileScroll()}))}reconcileScroll(){if(!this.scrollState||!this.scrollElement)return;if(this.now()-this.scrollState.startedAt>5e3){this.scrollState=null;return}const i=this.scrollState.index!=null?this.getOffsetForIndex(this.scrollState.index,this.scrollState.align):void 0,r=i?i[0]:this.scrollState.lastTargetOffset,s=1,o=r!==this.scrollState.lastTargetOffset;if(!o&&gd(r,this.getScrollOffset())){if(this.scrollState.stableFrames++,this.scrollState.stableFrames>=s){this.scrollState=null;return}}else this.scrollState.stableFrames=0,o&&(this.scrollState.lastTargetOffset=r,this.scrollState.behavior="auto",this._scrollToOffset(r,{adjustments:void 0,behavior:"auto"}));this.scheduleScrollReconcile()}}const Uu=(e,t,n,i)=>{for(;e<=t;){const r=(e+t)/2|0,s=n(r);if(s<i)e=r+1;else if(s>i)t=r-1;else return r}return e>0?e-1:0};function kd({measurements:e,outerSize:t,scrollOffset:n,lanes:i}){const r=e.length-1,s=u=>e[u].start;if(e.length<=i)return{startIndex:0,endIndex:r};let o=Uu(0,r,s,n),l=o;if(i===1)for(;l<r&&e[l].end<n+t;)l++;else if(i>1){const u=Array(i).fill(0);for(;l<r&&u.some(p=>p<n+t);){const p=e[l];u[p.lane]=p.end,l++}const f=Array(i).fill(n+t);for(;o>=0&&f.some(p=>p>=n);){const p=e[o];f[p.lane]=p.start,o--}o=Math.max(0,o-o%i),l=Math.min(r,l+(i-1-l%i))}return{startIndex:o,endIndex:l}}const Ko=typeof document<"u"?U.useLayoutEffect:U.useEffect;function Cd({useFlushSync:e=!0,...t}){const n=U.useReducer(()=>({}),{})[1],i={...t,onChange:(s,o)=>{var l;e&&o?Cr.flushSync(n):n(),(l=t.onChange)==null||l.call(t,s,o)}},[r]=U.useState(()=>new Sd(i));return r.setOptions(i),Ko(()=>r._didMount(),[]),Ko(()=>r._willUpdate()),r}function _d(e){return Cd({observeElementRect:bd,observeElementOffset:yd,scrollToFn:Ed,...e})}const Id=e=>e&&e.length===0,Ad=e=>e.length>=1,Td=e=>e.length>=1,Nd=()=>C.jsx("div",{className:"flex flex-col w-full h-full p-2",children:C.jsxs("div",{className:"w-full h-full flex flex-col items-center space-y-3 mt-48 bg-grey-800 ",children:[C.jsx(Je.FdInfoBold,{className:"h-8 w-8 text-grey-200"}),C.jsx("span",{className:"text-grey-200 text-sm text-center",children:"Your locales are set , you can start translating right away. Shared labels are optional, can be created from components at any time, and managed here."})]})}),Hu=V.createContext(null),$u=({children:e,adapter:t})=>C.jsx(Hu.Provider,{value:t,children:e}),vn=({permissive:e=!1}={})=>{const t=V.useContext(Hu);if(!t&&!e)throw new Error("useEditorStateAdapter must be used within an EditorStateAdapterProvider");return t},Cn={keys:{},userLang:{primary:"",supported:[]}};async function qu(){try{const e=await fetch(`/$shared/i18n.json?ts=${Date.now()}`);if(!e.ok)throw new Error(`HTTP ${e.status}`);const t=await e.json();return{keys:oe.get(t,"keys",Cn.keys),userLang:oe.get(t,"userLang",Cn.userLang)}}catch{return Cn}}function Pd(e,t){const n=yt.useAppDispatch(),i=yt.useAppSelector(yt.selectTabs),r=yt.useAppSelector(yt.selectActiveTab),s=yt.useAppSelector(yt.selectAllTabsByType("webform")),o=yt.useAppSelector(yt.selectI18nCurrent);return{getTabs:V.useCallback(()=>i??[],[i]),getI18nCurrent:V.useCallback(()=>o??"",[o]),getWebformTabs:V.useCallback(()=>s??[],[s]),getActiveTabPath:V.useCallback(()=>r??"",[r]),getFlagsByPath:V.useCallback(l=>{var u;return(u=i.find(f=>f.path===l))==null?void 0:u.flags},[i]),getSupportedLanguages:V.useCallback(async l=>fe.getSupportedLanguages(l),[]),fetchI18nFile:V.useCallback(qu,[]),getUserComponents:V.useCallback(()=>e??{},[e]),getBuildResolver:V.useCallback(()=>t??{},[t]),actions:{openModal:V.useCallback(async l=>await n(yt.openModal(l)).unwrap(),[n]),setTabs:V.useCallback(l=>{n(yt.setTabs(l))},[n]),setI18nCurrent:V.useCallback(l=>{n(yt.setI18nCurrent({current:l}))},[n]),setTabContent:V.useCallback(async l=>n(yt.setTabContent(l)),[n])}}}var Fa=function(e,t){return Fa=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&(n[r]=i[r])},Fa(e,t)};function Si(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");Fa(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var Ot=function(){return Ot=Object.assign||function(t){for(var n,i=1,r=arguments.length;i<r;i++){n=arguments[i];for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(t[s]=n[s])}return t},Ot.apply(this,arguments)};function Wu(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,i=Object.getOwnPropertySymbols(e);r<i.length;r++)t.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(e,i[r])&&(n[i[r]]=e[i[r]]);return n}function Da(e){var t=typeof Symbol=="function"&&Symbol.iterator,n=t&&e[t],i=0;if(n)return n.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&i>=e.length&&(e=void 0),{value:e&&e[i++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function ja(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var i=n.call(e),r,s=[],o;try{for(;(t===void 0||t-- >0)&&!(r=i.next()).done;)s.push(r.value)}catch(l){o={error:l}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return s}function lr(e,t,n){if(n||arguments.length===2)for(var i=0,r=t.length,s;i<r;i++)(s||!(i in t))&&(s||(s=Array.prototype.slice.call(t,0,i)),s[i]=t[i]);return e.concat(s||Array.prototype.slice.call(t))}function qt(e){return typeof e=="function"}function Gu(e){var t=function(i){Error.call(i),i.stack=new Error().stack},n=e(t);return n.prototype=Object.create(Error.prototype),n.prototype.constructor=n,n}var Gr=Gu(function(e){return function(n){e(this),this.message=n?n.length+` errors occurred during unsubscription:
5
+ `+n.map(function(i,r){return r+1+") "+i.toString()}).join(`
6
+ `):"",this.name="UnsubscriptionError",this.errors=n}});function Va(e,t){if(e){var n=e.indexOf(t);0<=n&&e.splice(n,1)}}var _r=(function(){function e(t){this.initialTeardown=t,this.closed=!1,this._parentage=null,this._finalizers=null}return e.prototype.unsubscribe=function(){var t,n,i,r,s;if(!this.closed){this.closed=!0;var o=this._parentage;if(o)if(this._parentage=null,Array.isArray(o))try{for(var l=Da(o),u=l.next();!u.done;u=l.next()){var f=u.value;f.remove(this)}}catch(v){t={error:v}}finally{try{u&&!u.done&&(n=l.return)&&n.call(l)}finally{if(t)throw t.error}}else o.remove(this);var p=this.initialTeardown;if(qt(p))try{p()}catch(v){s=v instanceof Gr?v.errors:[v]}var h=this._finalizers;if(h){this._finalizers=null;try{for(var d=Da(h),m=d.next();!m.done;m=d.next()){var b=m.value;try{Uo(b)}catch(v){s=s??[],v instanceof Gr?s=lr(lr([],ja(s)),ja(v.errors)):s.push(v)}}}catch(v){i={error:v}}finally{try{m&&!m.done&&(r=d.return)&&r.call(d)}finally{if(i)throw i.error}}}if(s)throw new Gr(s)}},e.prototype.add=function(t){var n;if(t&&t!==this)if(this.closed)Uo(t);else{if(t instanceof e){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._finalizers=(n=this._finalizers)!==null&&n!==void 0?n:[]).push(t)}},e.prototype._hasParent=function(t){var n=this._parentage;return n===t||Array.isArray(n)&&n.includes(t)},e.prototype._addParent=function(t){var n=this._parentage;this._parentage=Array.isArray(n)?(n.push(t),n):n?[n,t]:t},e.prototype._removeParent=function(t){var n=this._parentage;n===t?this._parentage=null:Array.isArray(n)&&Va(n,t)},e.prototype.remove=function(t){var n=this._finalizers;n&&Va(n,t),t instanceof e&&t._removeParent(this)},e.EMPTY=(function(){var t=new e;return t.closed=!0,t})(),e})(),Ju=_r.EMPTY;function Yu(e){return e instanceof _r||e&&"closed"in e&&qt(e.remove)&&qt(e.add)&&qt(e.unsubscribe)}function Uo(e){qt(e)?e():e.unsubscribe()}var Od={Promise:void 0},Rd={setTimeout:function(e,t){for(var n=[],i=2;i<arguments.length;i++)n[i-2]=arguments[i];return setTimeout.apply(void 0,lr([e,t],ja(n)))},clearTimeout:function(e){return clearTimeout(e)},delegate:void 0};function Ld(e){Rd.setTimeout(function(){throw e})}function Ho(){}function er(e){e()}var us=(function(e){Si(t,e);function t(n){var i=e.call(this)||this;return i.isStopped=!1,n?(i.destination=n,Yu(n)&&n.add(i)):i.destination=Dd,i}return t.create=function(n,i,r){return new Ba(n,i,r)},t.prototype.next=function(n){this.isStopped||this._next(n)},t.prototype.error=function(n){this.isStopped||(this.isStopped=!0,this._error(n))},t.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},t.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,e.prototype.unsubscribe.call(this),this.destination=null)},t.prototype._next=function(n){this.destination.next(n)},t.prototype._error=function(n){try{this.destination.error(n)}finally{this.unsubscribe()}},t.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},t})(_r),Md=(function(){function e(t){this.partialObserver=t}return e.prototype.next=function(t){var n=this.partialObserver;if(n.next)try{n.next(t)}catch(i){Fi(i)}},e.prototype.error=function(t){var n=this.partialObserver;if(n.error)try{n.error(t)}catch(i){Fi(i)}else Fi(t)},e.prototype.complete=function(){var t=this.partialObserver;if(t.complete)try{t.complete()}catch(n){Fi(n)}},e})(),Ba=(function(e){Si(t,e);function t(n,i,r){var s=e.call(this)||this,o;return qt(n)||!n?o={next:n??void 0,error:i??void 0,complete:r??void 0}:o=n,s.destination=new Md(o),s}return t})(us);function Fi(e){Ld(e)}function Fd(e){throw e}var Dd={closed:!0,next:Ho,error:Fd,complete:Ho},jd=(function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"})();function Vd(e){return e}function Bd(e){return e.length===0?Vd:e.length===1?e[0]:function(n){return e.reduce(function(i,r){return r(i)},n)}}var $o=(function(){function e(t){t&&(this._subscribe=t)}return e.prototype.lift=function(t){var n=new e;return n.source=this,n.operator=t,n},e.prototype.subscribe=function(t,n,i){var r=this,s=Kd(t)?t:new Ba(t,n,i);return er(function(){var o=r,l=o.operator,u=o.source;s.add(l?l.call(s,u):u?r._subscribe(s):r._trySubscribe(s))}),s},e.prototype._trySubscribe=function(t){try{return this._subscribe(t)}catch(n){t.error(n)}},e.prototype.forEach=function(t,n){var i=this;return n=qo(n),new n(function(r,s){var o=new Ba({next:function(l){try{t(l)}catch(u){s(u),o.unsubscribe()}},error:s,complete:r});i.subscribe(o)})},e.prototype._subscribe=function(t){var n;return(n=this.source)===null||n===void 0?void 0:n.subscribe(t)},e.prototype[jd]=function(){return this},e.prototype.pipe=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return Bd(t)(this)},e.prototype.toPromise=function(t){var n=this;return t=qo(t),new t(function(i,r){var s;n.subscribe(function(o){return s=o},function(o){return r(o)},function(){return i(s)})})},e.create=function(t){return new e(t)},e})();function qo(e){var t;return(t=e??Od.Promise)!==null&&t!==void 0?t:Promise}function zd(e){return e&&qt(e.next)&&qt(e.error)&&qt(e.complete)}function Kd(e){return e&&e instanceof us||zd(e)&&Yu(e)}function Ud(e){return qt(e==null?void 0:e.lift)}function Qu(e){return function(t){if(Ud(t))return t.lift(function(n){try{return e(n,this)}catch(i){this.error(i)}});throw new TypeError("Unable to lift unknown Observable type")}}function Zu(e,t,n,i,r){return new Hd(e,t,n,i,r)}var Hd=(function(e){Si(t,e);function t(n,i,r,s,o,l){var u=e.call(this,n)||this;return u.onFinalize=o,u.shouldUnsubscribe=l,u._next=i?function(f){try{i(f)}catch(p){n.error(p)}}:e.prototype._next,u._error=s?function(f){try{s(f)}catch(p){n.error(p)}finally{this.unsubscribe()}}:e.prototype._error,u._complete=r?function(){try{r()}catch(f){n.error(f)}finally{this.unsubscribe()}}:e.prototype._complete,u}return t.prototype.unsubscribe=function(){var n;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){var i=this.closed;e.prototype.unsubscribe.call(this),!i&&((n=this.onFinalize)===null||n===void 0||n.call(this))}},t})(us),$d=Gu(function(e){return function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),Xu=(function(e){Si(t,e);function t(){var n=e.call(this)||this;return n.closed=!1,n.currentObservers=null,n.observers=[],n.isStopped=!1,n.hasError=!1,n.thrownError=null,n}return t.prototype.lift=function(n){var i=new Wo(this,this);return i.operator=n,i},t.prototype._throwIfClosed=function(){if(this.closed)throw new $d},t.prototype.next=function(n){var i=this;er(function(){var r,s;if(i._throwIfClosed(),!i.isStopped){i.currentObservers||(i.currentObservers=Array.from(i.observers));try{for(var o=Da(i.currentObservers),l=o.next();!l.done;l=o.next()){var u=l.value;u.next(n)}}catch(f){r={error:f}}finally{try{l&&!l.done&&(s=o.return)&&s.call(o)}finally{if(r)throw r.error}}}})},t.prototype.error=function(n){var i=this;er(function(){if(i._throwIfClosed(),!i.isStopped){i.hasError=i.isStopped=!0,i.thrownError=n;for(var r=i.observers;r.length;)r.shift().error(n)}})},t.prototype.complete=function(){var n=this;er(function(){if(n._throwIfClosed(),!n.isStopped){n.isStopped=!0;for(var i=n.observers;i.length;)i.shift().complete()}})},t.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(t.prototype,"observed",{get:function(){var n;return((n=this.observers)===null||n===void 0?void 0:n.length)>0},enumerable:!1,configurable:!0}),t.prototype._trySubscribe=function(n){return this._throwIfClosed(),e.prototype._trySubscribe.call(this,n)},t.prototype._subscribe=function(n){return this._throwIfClosed(),this._checkFinalizedStatuses(n),this._innerSubscribe(n)},t.prototype._innerSubscribe=function(n){var i=this,r=this,s=r.hasError,o=r.isStopped,l=r.observers;return s||o?Ju:(this.currentObservers=null,l.push(n),new _r(function(){i.currentObservers=null,Va(l,n)}))},t.prototype._checkFinalizedStatuses=function(n){var i=this,r=i.hasError,s=i.thrownError,o=i.isStopped;r?n.error(s):o&&n.complete()},t.prototype.asObservable=function(){var n=new $o;return n.source=this,n},t.create=function(n,i){return new Wo(n,i)},t})($o),Wo=(function(e){Si(t,e);function t(n,i){var r=e.call(this)||this;return r.destination=n,r.source=i,r}return t.prototype.next=function(n){var i,r;(r=(i=this.destination)===null||i===void 0?void 0:i.next)===null||r===void 0||r.call(i,n)},t.prototype.error=function(n){var i,r;(r=(i=this.destination)===null||i===void 0?void 0:i.error)===null||r===void 0||r.call(i,n)},t.prototype.complete=function(){var n,i;(i=(n=this.destination)===null||n===void 0?void 0:n.complete)===null||i===void 0||i.call(n)},t.prototype._subscribe=function(n){var i,r;return(r=(i=this.source)===null||i===void 0?void 0:i.subscribe(n))!==null&&r!==void 0?r:Ju},t})(Xu);function qd(e,t){return Qu(function(n,i){var r=0;n.subscribe(Zu(i,function(s){i.next(e.call(t,s,r++))}))})}function Wd(e,t){return Qu(function(n,i){var r=0;n.subscribe(Zu(i,function(s){return e.call(t,s,r++)&&i.next(s)}))})}const ec=new Xu,Gd=(e,t)=>({name:e.split("/").pop()||e,type:fe.FileFolderType.WEBFORM,path:e,date:new Date().toISOString(),content:t,view:{panel:{isOpen:!1,type:"",current:""}},flags:{}});function tc(e,t){switch(t.type){case"SET_TABS":return{...e,tabs:t.payload};case"SET_I18N_CURRENT":return{...e,i18nCurrent:t.payload};case"SET_TAB_CONTENT":{const{path:n,content:i}=t.payload;return e.tabs.find(s=>s.path===n)?{...e,tabs:e.tabs.map(s=>s.path===n?{...s,content:i}:s)}:{...e,tabs:[...e.tabs,Gd(n,i)]}}case"CREATE_MODAL":return{...e,modals:{...e.modals,list:[...e.modals.list,t.payload]}};case"REMOVE_MODAL":return{...e,modals:{...e.modals,list:e.modals.list.filter(n=>n.id!==t.payload)}};case"CLOSE_MODAL":{const{id:n,reason:i}=t.payload;let r;if(i)if(e.modals.list.find(o=>o.id===n))r={...e,modals:{...e.modals,list:e.modals.list.map(o=>o.id===n?{...o,closeReason:i,isOpen:!1}:o)}};else return e;else r={...e,modals:{...e.modals,list:e.modals.list.filter(s=>s.id!==n)}};return ec.next(r.modals),r}case"EDIT_MODAL":{const{id:n,...i}=t.payload;return e.modals.list.find(s=>s.id===n)?{...e,modals:{...e.modals,list:e.modals.list.map(s=>s.id===n?{...s,...i}:s)}}:e}default:return e}}const Ir=V.createContext(null),nc=(e,t)=>({tabs:e,i18nCurrent:t,modals:{list:[]}}),ic=({children:e,tabs:t=[],i18nCurrent:n="",initialI18nFile:i})=>{const[r,s]=V.useReducer(tc,nc(t,n));V.useEffect(()=>{oe.isEqual(r.tabs,t)||s({type:"SET_TABS",payload:t})},[t,r.tabs]),V.useEffect(()=>{r.i18nCurrent!==n&&s({type:"SET_I18N_CURRENT",payload:n})},[n,r.i18nCurrent]);const o=V.useMemo(()=>({state:r,dispatch:s,initialI18nFile:i}),[r,i]);return C.jsx(Ir.Provider,{value:o,children:e})};function rc(e,t,n){const i=V.useContext(Ir);if(!i)throw new Error("useReducerAdapter must be used within a ReducerAdapterProvider");const{state:r,dispatch:s,initialI18nFile:o}=i;return{getTabs:V.useCallback(()=>r.tabs,[r.tabs]),getI18nCurrent:V.useCallback(()=>r.i18nCurrent,[r.i18nCurrent]),fetchI18nFile:V.useCallback(()=>{if(!o)return Promise.resolve(Cn);if(typeof o!="string")return Promise.resolve(o);try{const l=JSON.parse(o);return Promise.resolve({keys:(l==null?void 0:l.keys)??Cn.keys,userLang:(l==null?void 0:l.userLang)??Cn.userLang})}catch{return Promise.resolve(Cn)}},[o]),getWebformTabs:V.useCallback(()=>r.tabs.filter(l=>l.type===fe.FileFolderType.WEBFORM),[r.tabs]),getActiveTabPath:V.useCallback(()=>{var l;return((l=r.tabs[0])==null?void 0:l.path)??""},[r.tabs]),getFlagsByPath:V.useCallback(l=>{var u;return(u=r.tabs.find(f=>f.path===l))==null?void 0:u.flags},[r.tabs]),getSupportedLanguages:V.useCallback(async l=>n&&n.length?n:fe.getSupportedLanguages(l),[n]),getUserComponents:V.useCallback(()=>e??{},[e]),getBuildResolver:V.useCallback(()=>t??{},[t]),actions:{openModal:V.useCallback(async l=>{const{type:u=fe.ModalType.ALERT}=l,f=ss.generate();return s({type:"CREATE_MODAL",payload:{id:f,type:u,isOpen:!0,...l}}),u===fe.ModalType.CONFIRM?new Promise(p=>{const h=ec.pipe(Wd(d=>{const m=d.list.find(b=>b.id===f);return m!==void 0&&!m.isOpen})).subscribe(d=>{var b;const m=d.list.find(v=>v.id===f);if(m){const v=m.closeReason===fe.ModalCloseReason.CONFIRMED,S=oe.entries(((b=m.views)==null?void 0:b.toggles)||{}).reduce((E,k)=>({...E,[k[0]]:k[1].value}),{});s({type:"REMOVE_MODAL",payload:f}),h.unsubscribe(),p({confirmed:v,options:S})}})}):{confirmed:!1}},[s]),setTabs:V.useCallback(l=>{s({type:"SET_TABS",payload:l})},[s]),setI18nCurrent:V.useCallback(l=>{s({type:"SET_I18N_CURRENT",payload:l})},[s]),setTabContent:V.useCallback(async l=>(s({type:"SET_TAB_CONTENT",payload:l}),l),[s])}}}function ac(){const e=V.useContext(Ir);if(!e)throw new Error("useModals must be used within a ReducerAdapterProvider");const{state:t,dispatch:n}=e;return{modals:t.modals.list,closeModal:V.useCallback(i=>{n({type:"CLOSE_MODAL",payload:i})},[n]),editModal:V.useCallback(i=>{n({type:"EDIT_MODAL",payload:i})},[n]),removeModal:V.useCallback(i=>{n({type:"REMOVE_MODAL",payload:i})},[n])}}const sc=V.createContext(void 0),Jr={i18n:{keys:{},userLang:{primary:"",supported:[]}},i18nFileFetched:!1},oc={tr_key:"__t"},{tr_key:Di}=oc,Jd={buildPathFullObject:e=>`${Di}.${e}`,getKeyValueFromCustom:(e,t)=>oe.get(e,`${Di}.${t}.key`),getDefaultValueFromCustom:(e,t)=>oe.get(e,`${Di}.${t}.default`),getFullObject:(e,t)=>oe.get(e,`${Di}.${t}`)},lc=V.memo(({children:e,isI18nEnabled:t,onI18nChange:n})=>{const i=vn({permissive:!0}),[r,s]=V.useState(Jr),o=V.useRef(!1),l=V.useRef(!0),{i18n:u}=r,f=(k,I,N)=>{let y=1,g=k;for(;u.keys[g];)g=`${k}-${y}`,y++;const A={default:N};I.forEach(({lang:F,value:R})=>{F&&oe.set(A,F,R)});const M={keys:{...u.keys,[k]:A},userLang:u.userLang};s(F=>({...F,i18n:M}))},p=()=>{const k=new window.Event("i18n:ready");window.dispatchEvent(k)},h=V.useCallback(oe.debounce((k,I,N,y=!1)=>{s(g=>{const{keys:A,userLang:M}=g.i18n;if(A[k]&&I){const F={...A,[k]:{...A[k],[I]:N}};return o.current=y,{...g,i18n:{keys:F,userLang:M}}}return g})},300),[]),d=V.useCallback(oe.debounce((k,I)=>{const{keys:N,userLang:y}=oe.cloneDeep(u);N[k]&&I&&oe.set(N,`${k}.default`,I),s(g=>({...g,i18n:{keys:N,userLang:y}}))},300),[u]),m=k=>{k&&s(I=>({...I,i18n:{...I.i18n,userLang:k}}))},b=V.useCallback((k,I)=>{const{keys:N,userLang:y}=u,A={keys:Object.entries(N).reduce((M,[F,R])=>{const j={...R};return k.isocode in j&&(j[I.isocode]=j[k.isocode],delete j[k.isocode]),M[F]=j,M},{}),userLang:y};s(M=>({...M,i18n:A}))},[u]),v=V.useCallback(k=>{const{keys:I,userLang:N}=u,g={keys:Object.entries(I).reduce((A,[M,F])=>{const R={...F};return k.isocode in R&&delete R[k.isocode],A[M]=R,A},{}),userLang:N};s(A=>({...A,i18n:g}))},[u]),S=k=>{const I=[];return Object.keys(u.keys).forEach(y=>{const g=oe.get(u,`keys.${y}.${k}`,oe.get(u,`keys.${y}.default`,""));I.push({key:y,value:g})}),I},E=V.useCallback(oe.debounce(k=>{s(I=>{const{keys:N,userLang:y}=I.i18n,g={...N};return delete g[k],{...I,i18n:{userLang:y,keys:g}}})},300),[]);return V.useEffect(()=>{(async()=>{if(!t){s(I=>({...I,i18nFileFetched:!0})),p();return}try{const I=await((i==null?void 0:i.fetchI18nFile)||qu)();s(N=>({...N,i18n:{keys:oe.get(I,"keys",Jr.i18n.keys),userLang:oe.get(I,"userLang",Jr.i18n.userLang)}}))}catch{}finally{s(I=>({...I,i18nFileFetched:!0})),p()}})()},[t,i==null?void 0:i.fetchI18nFile]),V.useEffect(()=>{const k=fe.i18nSubject.pipe(qd(({action:I,payload:N})=>{if(I==="set_content"){const y={...u,keys:{...u.keys,...N}};s(g=>({...g,i18n:y}))}if(I==="set_locale_state"){const y={...u,...N};l.current=!1,s(g=>({...g,i18n:y}))}})).subscribe();return()=>k.unsubscribe()},[u]),V.useEffect(()=>{if(!l.current){l.current=!0;return}r.i18nFileFetched&&(n==null||n(r.i18n))},[r]),C.jsx(sc.Provider,{value:{i18n:r.i18n,createKey:f,updateKey:h,removeKey:E,editLanguageKeys:b,updateKeyDefault:d,deleteLanguageKeys:v,getI18nAsKeyValues:S,setUserLangSettings:m,shouldRecompute:o},children:e})});function sn(){const e=V.useContext(sc);if(e===void 0)throw new Error("useI18n must be used within a I18nProviderContext");return e}const uc=V.createContext(void 0),cc=V.createContext(void 0),Yd=e=>fe.getSupportedLanguages(e),hc=({children:e,getSupportedLanguages:t=Yd,i18nCurrent:n="",activeTabPath:i="",flagsForActiveTab:r})=>{const{isInsideStudio:s}=fe.useStudioContext();return s?C.jsx(Zd,{getSupportedLanguages:t,i18nCurrent:n,activeTabPath:i,flagsForActiveTab:r,children:e}):C.jsx(Qd,{getSupportedLanguages:t,children:e})},Qd=({children:e,getSupportedLanguages:t})=>{const{state:{currentLang:n},actions:i}=fe.useStateObject({currentLang:""}),{actions:r}=fe.useDsRendererAdapter(`${fe.QODLY_NAMESPACE}:${fe.USER_LANGUAGE_DATASOURCE_ID}`),{i18n:{userLang:{primary:s,supported:o}}}=sn(),{isInsideStudio:l}=fe.useStudioContext(),[u,f]=V.useState([]),{loaded:p}=fe.useDsChangeRenderer({datasourceId:`${fe.QODLY_NAMESPACE}:${fe.USER_LANGUAGE_DATASOURCE_ID}`,isDsBuild:!0,onChange:v=>{if(!v)return;const{selected:S}=v;S&&S.isocode&&(i.setCurrentLang(S.isocode),d(S))}}),h=(v,S)=>{r.setProperty(v,S)},d=v=>{localStorage.setItem("i18n.selected",JSON.stringify(v))},m=()=>{const v=localStorage.getItem("i18n.selected");return v?JSON.parse(v):null},b=()=>navigator.language;return V.useEffect(()=>{t(l).then(v=>{f(v)})},[l]),V.useEffect(()=>{if(p&&o){const v=o.map(({isocode:S})=>u.find(E=>E.isocode===S)).filter(Boolean);h("supported",v)}},[o,p]),V.useEffect(()=>{if(p){const v=m();if(v){h("selected",v);return}const S=b();if(S){const E=o.find(k=>k.isocode===S);if(E){h("selected",E);return}}if(s){const E=o.find(k=>k.isocode===s);E&&h("selected",E)}}},[p,o,s]),C.jsx(cc.Provider,{value:{selected:n,supported:u},children:e})},Zd=V.memo(({children:e,getSupportedLanguages:t,i18nCurrent:n,flagsForActiveTab:i})=>{const{state:{supported:r},actions:s}=fe.useStateObject({supported:[]}),{i18n:{userLang:{primary:o,supported:l}}}=sn(),{isInsideStudio:u}=fe.useStudioContext(),f=n&&l.find(d=>d.isocode===n)?n:"",[p,h]=V.useState(f);return V.useEffect(()=>{i!=null&&i.enabled&&h("")},[i==null?void 0:i.enabled]),V.useEffect(()=>{h(f)},[f]),fe.useDsChangeRenderer({datasourceId:`${fe.QODLY_NAMESPACE}:${fe.USER_LANGUAGE_DATASOURCE_ID}`,isDsBuild:i==null?void 0:i.enabled,onChange:d=>{if(!d)return;const{selected:m}=d;m&&m.isocode&&(h(m.isocode),localStorage.setItem("i18n.selected",m.isocode))}}),V.useEffect(()=>{t(u).then(d=>{s.setSupported(d)})},[u]),C.jsx(uc.Provider,{value:{primary:o,selected:p||f,supported:r,userLangagues:l},children:e})});function fc(){const{isInsideStudio:e}=fe.useStudioContext(),t=V.useContext(uc),n=V.useContext(cc),i=e?t:n;if(i===void 0)throw new Error("useLocalization must be used within a LocalizationContext");return i}const pc=V.createContext(void 0),dc=({children:e})=>{const{state:{allSupportedLanguages:t,selectedLanguage:n,languageKeys:i,addFirstLanguage:r,editing:s},actions:o}=fe.useStateObject({allSupportedLanguages:[],selectedLanguage:void 0,languageKeys:[],addFirstLanguage:!1,editing:!1}),{supported:l}=fc(),{i18n:u,setUserLangSettings:f,updateKey:p,removeKey:h,createKey:d}=sn(),m=(v,S)=>Object.keys(S).reduce((I,N)=>{if(S[N]){const y=S[N];if(Object.hasOwn(y,v)){const g=S[N][v];I.push({key:N,value:g,isDefault:!1})}else{const g=S[N].default;I.push({key:N,value:g,isDefault:!0})}}return I},[]),b=(v,S)=>{if(n){const{isocode:E}=n;p(v,E,S,!0);const k=structuredClone(u.keys),I=oe.set({...k},`${v}.${E}`,S),N=m(E,I);o.setLanguageKeys(N)}};return V.useEffect(()=>{o.setAllSupportedLanguages(l||[])},[l]),V.useEffect(()=>{if(n){const{isocode:v}=n,S=m(v,u.keys);o.setLanguageKeys(S)}},[u,n]),C.jsx(pc.Provider,{value:{userLanguages:u.userLang,languageKeys:i,selectedLanguage:n,allSupportedLanguages:t,addFirstLanguage:r,editing:s,isPrimary:u.userLang.primary===(n==null?void 0:n.isocode),removeKey:h,addNewKey:d,setAddFirstLanguage:o.setAddFirstLanguage,setUserLangSettings:f,setSelectedLanguage:v=>o.setSelectedLanguage(v),setLanguageKeyValue:b,setEditing:o.setEditing},children:e})},on=()=>{const e=V.useContext(pc);if(e===void 0)throw new Error("useLocalizationEditor must be used within a LocalizationEditorProvider");return e},it=()=>document.querySelector(`.${os.LOCALIZATION_EDITOR_SCOPE_CLASS}`)||document.body,Xd=({container:e,...t})=>C.jsx(fe.Portal,{...t,container:e||it()}),eg=V.memo(({keyName:e,value:t,isDefault:n,index:i})=>{const{state:{newValue:r,onEditValue:s},actions:o}=fe.useStateObject({newValue:t,onEditValue:!1}),{setLanguageKeyValue:l,removeKey:u}=on(),f=vn(),[p,h]=V.useState(null),d=()=>{s&&(l(e,r),o.setOnEditValue(!1),h(null))},m=()=>{s&&(o.setNewValue(t),o.setOnEditValue(!1),h(null))},b=async()=>{const{confirmed:v}=await f.actions.openModal({title:"Delete Key",type:fe.ModalType.CONFIRM,color:fe.ModalColor.DANGER,message:"Deleting this key will remove all translations associated with it across all locales. Are you sure you want to delete it ?",icon:"FdWarningDanger"});v&&u(e)};return V.useEffect(()=>{o.setNewValue(t)},[t]),C.jsxs("tr",{"data-cy":`shared-labels-row-${e}`,className:Ue("text-gray-50",i%2===0?"bg-grey-700":"bg-grey-600"),children:[C.jsx("td",{className:"px-2 text-xs font-normal h-10",children:e}),C.jsxs("td",{className:"p-2 whitespace-nowrap text-xs font-normal h-10",children:[s?C.jsx("textarea",{"data-cy":`shared-labels-row-${e}-input`,className:Ue("min-w-[80%] bg-grey-300 h-6 p-1 p rounded focus-within:outline-none",{"ring-1 ring-red-400":p,"focus-within:ring-1 focus-within:ring-primary-dark":!p}),value:r,onChange:v=>{o.setNewValue(v.target.value),h(null)},onKeyDown:v=>{v.key==="Enter"&&!v.shiftKey&&(v.preventDefault(),d())}}):C.jsx("span",{className:Ue("text-wrap",{"italic text-gray-400":n}),onDoubleClick:()=>{o.setOnEditValue(!0)},children:t}),p&&C.jsx("div",{className:"text-red-400 left-2",children:p==null?void 0:p.message})]}),C.jsx("td",{className:"flex items-center px-2 text-xs font-normal float-right h-10",children:s?C.jsxs(C.Fragment,{children:[C.jsx(fe.Tooltip,{label:"Confirm",container:it(),children:C.jsx("button",{"data-cy":`shared-labels-row-${e}-confirm-button`,className:"cursor-pointer rounded p-1 hover:bg-primary-hover focus:outline-none",onClick:d,children:C.jsx(Je.FdCheckCircle,{className:"w-4 h-4"})})}),C.jsx(fe.Tooltip,{label:"Cancel",container:it(),children:C.jsx("button",{"data-cy":`shared-labels-row-${e}-cancel-button`,className:"cursor-pointer rounded p-1 hover:bg-primary-hover focus:outline-none",onClick:m,children:C.jsx(Je.FdClose,{className:"w-4 h-4"})})})]}):C.jsxs(C.Fragment,{children:[C.jsx(fe.Tooltip,{label:"Edit",container:it(),children:C.jsx("button",{"data-cy":`shared-labels-row-${e}-edit-button`,className:"cursor-pointer rounded p-1 hover:bg-primary-hover focus:outline-none",onClick:()=>{o.setOnEditValue(!0)},children:C.jsx(Je.FdPen,{className:"w-4 h-4"})})}),C.jsx(fe.Tooltip,{label:"Delete",container:it(),children:C.jsx("button",{"data-cy":`shared-labels-row-${e}-delete-button`,className:"cursor-pointerrounded p-1 hover:bg-primary-hover focus:outline-none",onClick:b,children:C.jsx(Je.FdTrash,{className:"w-4 h-4"})})})]})})]})}),tg=({onCancel:e,onConfirm:t,error:n,setError:i})=>{const{state:r,actions:s}=fe.useStateObject({key:"",value:""}),o=()=>{t(r.key,r.value)},l=()=>{i(null),e()};return C.jsxs("tr",{"data-cy":"shared-labels-new-row",className:" text-gray-50 odd:bg-grey-700 even:bg-grey-600",children:[C.jsx("td",{className:"px-2 text-xs font-normal h-10 min-h-4",children:C.jsxs("div",{className:Ue("flex flex-col items-start h-full relative",{"pt-2":n,"justify-center":!n}),children:[C.jsx("input",{"data-cy":"shared-labels-new-row-key-input",className:Ue("min-w-[80%] bg-grey-300 h-6 p-1 p rounded focus-within:outline-none",{"ring-1 ring-red-400":n,"focus-within:ring-1 focus-within:ring-primary-dark":!n}),type:"text",value:r.key,onChange:u=>{i(null),s.setKey(u.target.value)},autoFocus:!0,onKeyUp:u=>{u.key==="Escape"&&(i(null),l())}}),n&&C.jsx("div",{className:"text-red-400 left-2",children:n==null?void 0:n.message})]})}),C.jsx("td",{className:"px-2 whitespace-nowrap text-xs font-normal h-10",children:C.jsx("div",{className:Ue("flex flex-col items-start h-full relative",{"pt-2":n,"justify-center":!n}),children:C.jsx("input",{"data-cy":"shared-labels-new-row-value-input",className:"min-w-[80%] bg-grey-300 h-6 p-1 p rounded focus-within:outline-none focus-within:ring-1 focus-within:ring-primary-dark",type:"text",value:r.value,onChange:u=>s.setValue(u.target.value),onKeyUp:u=>{u.key==="Enter"?o():u.key==="Escape"&&l()}})})}),C.jsxs("td",{className:"flex items-center px-2 text-xs font-normal float-right h-10",children:[C.jsx(fe.Tooltip,{label:"Confirm",container:it(),children:C.jsx("button",{"data-cy":"shared-labels-new-row-confirm-button",className:"cursor-pointer rounded p-1 hover:bg-primary-hover focus:outline-none",onClick:o,children:C.jsx(Je.FdCheckCircle,{className:"w-4 h-4"})})}),C.jsx(fe.Tooltip,{label:"Cancel",container:it(),children:C.jsx("button",{"data-cy":"shared-labels-new-row-cancel-button",className:"cursor-pointer rounded p-1 hover:bg-primary-hover focus:outline-none",onClick:l,children:C.jsx(Je.FdClose,{className:"w-4 h-4"})})})]})]})},ng=()=>{const{languageKeys:e,isPrimary:t,selectedLanguage:n,userLanguages:{supported:i},addNewKey:r,setUserLangSettings:s}=on(),{state:o,actions:l}=fe.useStateObject({search:"",switch:t,keys:[],addNewKey:!1}),[u,f]=V.useState(null),p=V.useRef(null),h=Id(e),d=!!n&&!h,m=!!n,b=V.useMemo(()=>{if(!o.search)return e;const M=new RegExp(oe.escapeRegExp(o.search),"gi");return e.filter(F=>F.key.match(M))},[e,o.search]),v=b.length===0,S=_d({count:b.length,getScrollElement:()=>p.current,estimateSize:()=>40,overscan:5}),E=S.getVirtualItems(),k=E.length>0?E[0].start:0,I=E.length>0?S.getTotalSize()-E[E.length-1].end:0,N=()=>{if(n){const{isocode:M}=n;s({primary:M,supported:i})}},y=()=>{l.setAddNewKey(!0)},g=(M,F)=>{const R=b.find(j=>j.key===M);if(n){const{isocode:j}=n;if(M){if(!/^[\w\u3040-\u30FF\u3400-\u4DBF\u4E00-\u9FAF-]+$/i.test(M)||!/^[a-zA-Z\u3040-\u30FF\u3400-\u4DBF\u4E00-\u9FAF]/.test(M)){f({message:"Invalid key name"});return}else if(R){f({message:"Key name already exists"});return}r(M,[{lang:j,value:F}],F)}l.setAddNewKey(!1)}},A=()=>{l.setAddNewKey(!1)};return V.useEffect(()=>{l.setSwitch(t)},[t]),C.jsx("div",{"data-cy":"localization-keys-editor",className:Ue("flex w-full bg-grey-800 border-l border-black",{"justify-center items-center":!1}),children:C.jsxs("div",{className:"flex flex-col w-full py-3 px-3 min-h-0",children:[C.jsxs("div",{className:"flex flex-col space-y-3 justify-between w-full",children:[C.jsxs("div",{className:Ue("flex items-center w-full justify-between",{hidden:!m}),children:[C.jsxs("div",{className:"flex space-x-2 items-center justify-center",children:[C.jsx("span",{className:"text-[12px] text-gray-50",children:"Shared Labels"}),C.jsx(fe.Tip,{tipKey:"editors:i18n:label",alwaysOn:!0})]}),C.jsxs("div",{className:"flex space-x-2 justify-center items-center",children:[C.jsx(fe.ControlledSwitch,{onChange:M=>{t||(l.setSwitch(M),N())},value:o.switch,className:"focus:outline-none"}),C.jsx("span",{className:"text-xs text-gray-50",children:"Primary Locale"})]})]}),C.jsx("div",{className:Ue("w-60",{invisible:!d}),children:C.jsx(fe.SearchInput,{containerClassName:"text-grey-50",value:o.search,onChange:M=>l.setSearch(M),delay:300})})]}),h?C.jsx(Nd,{}):C.jsxs("div",{ref:p,className:"w-full flex-1 min-h-0 overflow-y-auto",children:[C.jsxs("table",{"data-cy":"shared-labels-table",className:"w-full text-sm text-left rtl:text-right text-grey-50 table-fixed",children:[C.jsx("thead",{className:"text-xs text-grey-50",children:C.jsxs("tr",{children:[C.jsx("th",{scope:"col",className:"px-2 py-3 text-xs font-normal",children:"Key"}),C.jsx("th",{scope:"col",className:"px-2 py-3 text-xs font-normal",children:"Value"}),C.jsx("th",{scope:"col",className:"px-2 py-3 text-xs font-normal float-right",children:C.jsx(fe.Tooltip,{label:"Add a key",container:it(),children:C.jsx("button",{"data-cy":"localization-editor-add-key-button",className:"cursor-pointer rounded p-1 hover:bg-primary-hover focus:outline-none",onClick:y,children:C.jsx(Je.FdPlus,{className:"w-4 h-4"})})})})]})}),C.jsxs("tbody",{className:"border-t-[1px] border-grey-50",children:[k>0&&C.jsx("tr",{children:C.jsx("td",{colSpan:3,style:{height:k}})}),E.map(M=>{const F=b[M.index];return C.jsx(eg,{index:M.index,keyName:F.key,value:F.value,isDefault:F.isDefault},`${n==null?void 0:n.isocode}/${M.index}`)}),I>0&&C.jsx("tr",{children:C.jsx("td",{colSpan:3,style:{height:I}})}),o.addNewKey&&C.jsx(tg,{onConfirm:g,onCancel:A,setError:f,error:u}),v&&C.jsx("span",{})]})]}),v&&C.jsxs("div",{className:"flex flex-col justify-center items-center mt-16 ml-2 text-xs space-y-3 text-green-50",children:[C.jsx(Je.FdInfoBold,{className:"h-9 w-9 text-grey-200"}),C.jsx("div",{className:"text-xs text-grey-200",children:"This key doesn't exist."})]})]})]})})},dn=(e,t)=>t.find(n=>n.isocode===e);function ig(){return{enter:{mdxFlowExpression:ag,mdxTextExpression:sg},exit:{mdxFlowExpression:Go,mdxFlowExpressionChunk:Jo,mdxTextExpression:Go,mdxTextExpressionChunk:Jo}}}function rg(){return{handlers:{mdxFlowExpression:Yo,mdxTextExpression:Yo},unsafe:[{character:"{",inConstruct:["phrasing"]},{atBreak:!0,character:"{"}]}}function ag(e){this.enter({type:"mdxFlowExpression",value:""},e),this.buffer()}function sg(e){this.enter({type:"mdxTextExpression",value:""},e),this.buffer()}function Go(e){const t=this.resume(),n=e.estree,i=this.stack[this.stack.length-1];i.type==="mdxFlowExpression"||i.type,this.exit(e),i.value=t,n&&(i.data={estree:n})}function Jo(e){this.config.enter.data.call(this,e),this.config.exit.data.call(this,e)}function Yo(e,t,n){const i=e.value||"";return"{"+n.indentLines(i,function(s,o,l){return(o===0||l?"":" ")+s})+"}"}function ur(e,t){const n=String(e);if(typeof t!="string")throw new TypeError("Expected character");let i=0,r=n.indexOf(t);for(;r!==-1;)i++,r=n.indexOf(t,r+t.length);return i}const og=["AElig","AMP","Aacute","Acirc","Agrave","Aring","Atilde","Auml","COPY","Ccedil","ETH","Eacute","Ecirc","Egrave","Euml","GT","Iacute","Icirc","Igrave","Iuml","LT","Ntilde","Oacute","Ocirc","Ograve","Oslash","Otilde","Ouml","QUOT","REG","THORN","Uacute","Ucirc","Ugrave","Uuml","Yacute","aacute","acirc","acute","aelig","agrave","amp","aring","atilde","auml","brvbar","ccedil","cedil","cent","copy","curren","deg","divide","eacute","ecirc","egrave","eth","euml","frac12","frac14","frac34","gt","iacute","icirc","iexcl","igrave","iquest","iuml","laquo","lt","macr","micro","middot","nbsp","not","ntilde","oacute","ocirc","ograve","ordf","ordm","oslash","otilde","ouml","para","plusmn","pound","quot","raquo","reg","sect","shy","sup1","sup2","sup3","szlig","thorn","times","uacute","ucirc","ugrave","uml","uuml","yacute","yen","yuml"],Qo={0:"�",128:"€",130:"‚",131:"ƒ",132:"„",133:"…",134:"†",135:"‡",136:"ˆ",137:"‰",138:"Š",139:"‹",140:"Œ",142:"Ž",145:"‘",146:"’",147:"“",148:"”",149:"•",150:"–",151:"—",152:"˜",153:"™",154:"š",155:"›",156:"œ",158:"ž",159:"Ÿ"};function gc(e){const t=typeof e=="string"?e.charCodeAt(0):e;return t>=48&&t<=57}function lg(e){const t=typeof e=="string"?e.charCodeAt(0):e;return t>=97&&t<=102||t>=65&&t<=70||t>=48&&t<=57}function ug(e){const t=typeof e=="string"?e.charCodeAt(0):e;return t>=97&&t<=122||t>=65&&t<=90}function Zo(e){return ug(e)||gc(e)}const Xo=document.createElement("i");function mi(e){const t="&"+e+";";Xo.innerHTML=t;const n=Xo.textContent;return n.charCodeAt(n.length-1)===59&&e!=="semi"||n===t?!1:n}const cg=["","Named character references must be terminated by a semicolon","Numeric character references must be terminated by a semicolon","Named character references cannot be empty","Numeric character references cannot be empty","Named character references must be known","Numeric character references cannot be disallowed","Numeric character references cannot be outside the permissible Unicode range"];function hg(e,t){const n=t||{},i=typeof n.additional=="string"?n.additional.charCodeAt(0):n.additional,r=[];let s=0,o=-1,l="",u,f;n.position&&("start"in n.position||"indent"in n.position?(f=n.position.indent,u=n.position.start):u=n.position);let p=(u?u.line:0)||1,h=(u?u.column:0)||1,d=b(),m;for(s--;++s<=e.length;)if(m===10&&(h=(f?f[o]:0)||1),m=e.charCodeAt(s),m===38){const E=e.charCodeAt(s+1);if(E===9||E===10||E===12||E===32||E===38||E===60||Number.isNaN(E)||i&&E===i){l+=String.fromCharCode(m),h++;continue}const k=s+1;let I=k,N=k,y;if(E===35){N=++I;const D=e.charCodeAt(N);D===88||D===120?(y="hexadecimal",N=++I):y="decimal"}else y="named";let g="",A="",M="";const F=y==="named"?Zo:y==="decimal"?gc:lg;for(N--;++N<=e.length;){const D=e.charCodeAt(N);if(!F(D))break;M+=String.fromCharCode(D),y==="named"&&og.includes(M)&&(g=M,A=mi(M))}let R=e.charCodeAt(N)===59;if(R){N++;const D=y==="named"?mi(M):!1;D&&(g=M,A=D)}let j=1+N-k,B="";if(!(!R&&n.nonTerminated===!1))if(!M)y!=="named"&&v(4,j);else if(y==="named"){if(R&&!A)v(5,1);else if(g!==M&&(N=I+g.length,j=1+N-I,R=!1),!R){const D=g?1:3;if(n.attribute){const se=e.charCodeAt(N);se===61?(v(D,j),A=""):Zo(se)?A="":v(D,j)}else v(D,j)}B=A}else{R||v(2,j);let D=Number.parseInt(M,y==="hexadecimal"?16:10);if(fg(D))v(7,j),B="�";else if(D in Qo)v(6,j),B=Qo[D];else{let se="";pg(D)&&v(6,j),D>65535&&(D-=65536,se+=String.fromCharCode(D>>>10|55296),D=56320|D&1023),B=se+String.fromCharCode(D)}}if(B){S(),d=b(),s=N-1,h+=N-k+1,r.push(B);const D=b();D.offset++,n.reference&&n.reference.call(n.referenceContext||void 0,B,{start:d,end:D},e.slice(k-1,N)),d=D}else M=e.slice(k-1,N),l+=M,h+=M.length,s=N-1}else m===10&&(p++,o++,h=0),Number.isNaN(m)?S():(l+=String.fromCharCode(m),h++);return r.join("");function b(){return{line:p,column:h,offset:s+((u?u.offset:0)||0)}}function v(E,k){let I;n.warning&&(I=b(),I.column+=k,I.offset+=k,n.warning.call(n.warningContext||void 0,cg[E],I,E))}function S(){l&&(r.push(l),n.text&&n.text.call(n.textContext||void 0,l,{start:d,end:b()}),l="")}}function fg(e){return e>=55296&&e<=57343||e>1114111}function pg(e){return e>=1&&e<=8||e===11||e>=13&&e<=31||e>=127&&e<=159||e>=64976&&e<=65007||(e&65535)===65535||(e&65535)===65534}const dg=/["&'<>`]/g,gg=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,mg=/[\x01-\t\v\f\x0E-\x1F\x7F\x81\x8D\x8F\x90\x9D\xA0-\uFFFF]/g,xg=/[|\\{}()[\]^$+*?.]/g,el=new WeakMap;function vg(e,t){if(e=e.replace(t.subset?bg(t.subset):dg,i),t.subset||t.escapeOnly)return e;return e.replace(gg,n).replace(mg,i);function n(r,s,o){return t.format((r.charCodeAt(0)-55296)*1024+r.charCodeAt(1)-56320+65536,o.charCodeAt(s+2),t)}function i(r,s,o){return t.format(r.charCodeAt(0),o.charCodeAt(s+1),t)}}function bg(e){let t=el.get(e);return t||(t=yg(e),el.set(e,t)),t}function yg(e){const t=[];let n=-1;for(;++n<e.length;)t.push(e[n].replace(xg,"\\$&"));return new RegExp("(?:"+t.join("|")+")","g")}function wg(e){return"&#x"+e.toString(16).toUpperCase()+";"}function Eg(e,t){return vg(e,Object.assign({format:wg},t))}function en(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?tl(e.position):"start"in e||"end"in e?tl(e):"line"in e||"column"in e?za(e):""}function za(e){return nl(e&&e.line)+":"+nl(e&&e.column)}function tl(e){return za(e&&e.start)+"-"+za(e&&e.end)}function nl(e){return e&&typeof e=="number"?e:1}class qe extends Error{constructor(t,n,i){super(),typeof n=="string"&&(i=n,n=void 0);let r="",s={},o=!1;if(n&&("line"in n&&"column"in n?s={place:n}:"start"in n&&"end"in n?s={place:n}:"type"in n?s={ancestors:[n],place:n.position}:s={...n}),typeof t=="string"?r=t:!s.cause&&t&&(o=!0,r=t.message,s.cause=t),!s.ruleId&&!s.source&&typeof i=="string"){const u=i.indexOf(":");u===-1?s.ruleId=i:(s.source=i.slice(0,u),s.ruleId=i.slice(u+1))}if(!s.place&&s.ancestors&&s.ancestors){const u=s.ancestors[s.ancestors.length-1];u&&(s.place=u.position)}const l=s.place&&"start"in s.place?s.place.start:s.place;this.ancestors=s.ancestors||void 0,this.cause=s.cause||void 0,this.column=l?l.column:void 0,this.fatal=void 0,this.file="",this.message=r,this.line=l?l.line:void 0,this.name=en(s.place)||"1:1",this.place=s.place||void 0,this.reason=this.message,this.ruleId=s.ruleId||void 0,this.source=s.source||void 0,this.stack=o&&s.cause&&typeof s.cause.stack=="string"?s.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}}qe.prototype.file="";qe.prototype.name="";qe.prototype.reason="";qe.prototype.message="";qe.prototype.stack="";qe.prototype.column=void 0;qe.prototype.line=void 0;qe.prototype.ancestors=void 0;qe.prototype.cause=void 0;qe.prototype.fatal=void 0;qe.prototype.place=void 0;qe.prototype.ruleId=void 0;qe.prototype.source=void 0;const mc=" ";function Sg(){return{canContainEols:["mdxJsxTextElement"],enter:{mdxJsxFlowTag:i,mdxJsxFlowTagClosingMarker:r,mdxJsxFlowTagAttribute:h,mdxJsxFlowTagExpressionAttribute:d,mdxJsxFlowTagAttributeValueLiteral:e,mdxJsxFlowTagAttributeValueExpression:e,mdxJsxFlowTagSelfClosingMarker:o,mdxJsxTextTag:i,mdxJsxTextTagClosingMarker:r,mdxJsxTextTagAttribute:h,mdxJsxTextTagExpressionAttribute:d,mdxJsxTextTagAttributeValueLiteral:e,mdxJsxTextTagAttributeValueExpression:e,mdxJsxTextTagSelfClosingMarker:o},exit:{mdxJsxFlowTagClosingMarker:l,mdxJsxFlowTagNamePrimary:u,mdxJsxFlowTagNameMember:f,mdxJsxFlowTagNameLocal:p,mdxJsxFlowTagExpressionAttribute:m,mdxJsxFlowTagExpressionAttributeValue:n,mdxJsxFlowTagAttributeNamePrimary:b,mdxJsxFlowTagAttributeNameLocal:v,mdxJsxFlowTagAttributeValueLiteral:S,mdxJsxFlowTagAttributeValueLiteralValue:n,mdxJsxFlowTagAttributeValueExpression:E,mdxJsxFlowTagAttributeValueExpressionValue:n,mdxJsxFlowTagSelfClosingMarker:k,mdxJsxFlowTag:I,mdxJsxTextTagClosingMarker:l,mdxJsxTextTagNamePrimary:u,mdxJsxTextTagNameMember:f,mdxJsxTextTagNameLocal:p,mdxJsxTextTagExpressionAttribute:m,mdxJsxTextTagExpressionAttributeValue:n,mdxJsxTextTagAttributeNamePrimary:b,mdxJsxTextTagAttributeNameLocal:v,mdxJsxTextTagAttributeValueLiteral:S,mdxJsxTextTagAttributeValueLiteralValue:n,mdxJsxTextTagAttributeValueExpression:E,mdxJsxTextTagAttributeValueExpressionValue:n,mdxJsxTextTagSelfClosingMarker:k,mdxJsxTextTag:I}};function e(){this.buffer()}function t(A){return{line:A.line,column:A.column,offset:A.offset}}function n(A){this.config.enter.data.call(this,A),this.config.exit.data.call(this,A)}function i(A){const M={name:void 0,attributes:[],close:!1,selfClosing:!1,start:A.start,end:A.end};this.data.mdxJsxTagStack||(this.data.mdxJsxTagStack=[]),this.data.mdxJsxTag=M,this.buffer()}function r(A){if(this.data.mdxJsxTagStack.length===0)throw new qe("Unexpected closing slash `/` in tag, expected an open tag first",{start:A.start,end:A.end},"mdast-util-mdx-jsx:unexpected-closing-slash")}function s(A){if(this.data.mdxJsxTag.close)throw new qe("Unexpected attribute in closing tag, expected the end of the tag",{start:A.start,end:A.end},"mdast-util-mdx-jsx:unexpected-attribute")}function o(A){if(this.data.mdxJsxTag.close)throw new qe("Unexpected self-closing slash `/` in closing tag, expected the end of the tag",{start:A.start,end:A.end},"mdast-util-mdx-jsx:unexpected-self-closing-slash")}function l(){const A=this.data.mdxJsxTag;A.close=!0}function u(A){const M=this.data.mdxJsxTag;M.name=this.sliceSerialize(A)}function f(A){const M=this.data.mdxJsxTag;M.name+="."+this.sliceSerialize(A)}function p(A){const M=this.data.mdxJsxTag;M.name+=":"+this.sliceSerialize(A)}function h(A){const M=this.data.mdxJsxTag;s.call(this,A),M.attributes.push({type:"mdxJsxAttribute",name:"",value:null,position:{start:t(A.start),end:void 0}})}function d(A){const M=this.data.mdxJsxTag;s.call(this,A),M.attributes.push({type:"mdxJsxExpressionAttribute",value:"",position:{start:t(A.start),end:void 0}}),this.buffer()}function m(A){const M=this.data.mdxJsxTag,F=M.attributes[M.attributes.length-1];F.type;const R=A.estree;F.value=this.resume(),F.position,F.position.end=t(A.end),R&&(F.data={estree:R})}function b(A){const M=this.data.mdxJsxTag,F=M.attributes[M.attributes.length-1];F.type,F.name=this.sliceSerialize(A),F.position,F.position.end=t(A.end)}function v(A){const M=this.data.mdxJsxTag,F=M.attributes[M.attributes.length-1];F.type,F.name+=":"+this.sliceSerialize(A),F.position,F.position.end=t(A.end)}function S(A){const M=this.data.mdxJsxTag,F=M.attributes[M.attributes.length-1];F.value=hg(this.resume(),{nonTerminated:!1}),F.position,F.position.end=t(A.end)}function E(A){const M=this.data.mdxJsxTag,F=M.attributes[M.attributes.length-1];F.type;const R={type:"mdxJsxAttributeValueExpression",value:this.resume()},j=A.estree;j&&(R.data={estree:j}),F.value=R,F.position,F.position.end=t(A.end)}function k(){const A=this.data.mdxJsxTag;A.selfClosing=!0}function I(A){const M=this.data.mdxJsxTag,F=this.data.mdxJsxTagStack,R=F[F.length-1];if(M.close&&R.name!==M.name)throw new qe("Unexpected closing tag `"+g(M)+"`, expected corresponding closing tag for `"+g(R)+"` ("+en(R)+")",{start:A.start,end:A.end},"mdast-util-mdx-jsx:end-tag-mismatch");this.resume(),M.close?F.pop():this.enter({type:A.type==="mdxJsxTextTag"?"mdxJsxTextElement":"mdxJsxFlowElement",name:M.name||null,attributes:M.attributes,children:[]},A,N),M.selfClosing||M.close?this.exit(A,y):F.push(M)}function N(A,M){const F=this.data.mdxJsxTagStack,R=F[F.length-1],j=A?" before the end of `"+A.type+"`":"",B=A?{start:A.start,end:A.end}:void 0;throw new qe("Expected a closing tag for `"+g(R)+"` ("+en({start:M.start,end:M.end})+")"+j,B,"mdast-util-mdx-jsx:end-tag-mismatch")}function y(A,M){const F=this.data.mdxJsxTag;throw new qe("Expected the closing tag `"+g(F)+"` either after the end of `"+M.type+"` ("+en(M.end)+") or another opening tag after the start of `"+M.type+"` ("+en(M.start)+")",{start:A.start,end:A.end},"mdast-util-mdx-jsx:end-tag-mismatch")}function g(A){return"<"+(A.close?"/":"")+(A.name||"")+">"}}function kg(e){const t=e||{},n=t.quote||'"',i=t.quoteSmart||!1,r=t.tightSelfClosing||!1,s=t.printWidth||Number.POSITIVE_INFINITY,o=n==='"'?"'":'"';if(n!=='"'&&n!=="'")throw new Error("Cannot serialize attribute values with `"+n+"` for `options.quote`, expected `\"`, or `'`");return l.peek=_g,{handlers:{mdxJsxFlowElement:l,mdxJsxTextElement:l},unsafe:[{character:"<",inConstruct:["phrasing"]},{atBreak:!0,character:"<"}],fences:!0,resourceLink:!0};function l(u,f,p,h){const d=u.type==="mdxJsxFlowElement",m=u.name?!u.children||u.children.length===0:!1,b=xc(p),v=vc(b),S=p.createTracker(h),E=p.createTracker(h),k=[],I=(d?v:"")+"<"+(u.name||""),N=p.enter(u.type);if(S.move(I),E.move(I),u.attributes&&u.attributes.length>0){if(!u.name)throw new Error("Cannot serialize fragment w/ attributes");let F=-1;for(;++F<u.attributes.length;){const R=u.attributes[F];let j;if(R.type==="mdxJsxExpressionAttribute")j="{"+(R.value||"")+"}";else{if(!R.name)throw new Error("Cannot serialize attribute w/o name");const B=R.value,D=R.name;let se="";if(B!=null)if(typeof B=="object")se="{"+(B.value||"")+"}";else{const ue=i&&ur(B,n)>ur(B,o)?o:n;se=ue+Eg(B,{subset:[ue]})+ue}j=D+(se?"=":"")+se}k.push(j)}}let y=!1;const g=k.join(" ");d&&(/\r?\n|\r/.test(g)||S.current().now.column+g.length+(m?r?2:3:1)>s)&&(y=!0);let A=S,M=I;if(y){A=E;let F=-1;for(;++F<k.length;)k[F]=v+mc+k[F];M+=A.move(`
7
+ `+k.join(`
60
8
  `)+`
61
- `+v)}else f&&(P+=O.move(" "+f));return m&&(P+=O.move((r||y?"":" ")+"/")),P+=O.move(">"),u.children&&u.children.length>0&&(u.type==="mdxJsxTextElement"?P+=O.move(h.containerPhrasing(u,{...O.current(),before:">",after:"<"})):(O.shift(2),P+=O.move(`
62
- `),P+=O.move(Nw(u,h,O.current())),P+=O.move(`
63
- `))),m||(P+=O.move((g?v:"")+"</"+(u.name||"")+">")),A(),P}}function Nw(e,t,i){const n=t.indexStack,r=e.children,a=t.createTracker(i),s=ff(pf(t)),l=[];let u=-1;for(n.push(-1);++u<r.length;){const c=r[u];n[n.length-1]=u;const h={before:`
9
+ `+v)}else g&&(M+=A.move(" "+g));return m&&(M+=A.move((r||y?"":" ")+"/")),M+=A.move(">"),u.children&&u.children.length>0&&(u.type==="mdxJsxTextElement"?M+=A.move(p.containerPhrasing(u,{...A.current(),before:">",after:"<"})):(A.shift(2),M+=A.move(`
10
+ `),M+=A.move(Cg(u,p,A.current())),M+=A.move(`
11
+ `))),m||(M+=A.move((d?v:"")+"</"+(u.name||"")+">")),N(),M}}function Cg(e,t,n){const i=t.indexStack,r=e.children,s=t.createTracker(n),o=vc(xc(t)),l=[];let u=-1;for(i.push(-1);++u<r.length;){const f=r[u];i[i.length-1]=u;const p={before:`
64
12
  `,after:`
65
- `,...a.current()},p=t.handle(c,e,t,h),g=c.type==="mdxJsxFlowElement"?p:t.indentLines(p,function(m,E,v){return(v?"":s)+m});l.push(a.move(g)),c.type!=="list"&&(t.bulletLastUsed=void 0),u<r.length-1&&l.push(a.move(`
13
+ `,...s.current()},h=t.handle(f,e,t,p),d=f.type==="mdxJsxFlowElement"?h:t.indentLines(h,function(m,b,v){return(v?"":o)+m});l.push(s.move(d)),f.type!=="list"&&(t.bulletLastUsed=void 0),u<r.length-1&&l.push(s.move(`
66
14
 
67
- `))}return n.pop(),l.join("")}function pf(e){let t=0,i=e.stack.length;for(;--i>-1;){const n=e.stack[i];if(n==="blockquote"||n==="listItem")break;n==="mdxJsxFlowElement"&&t++}return t}function ff(e){return df.repeat(e)}function Tw(){return"<"}function Ow(){return{enter:{mdxjsEsm:Rw},exit:{mdxjsEsm:Mw,mdxjsEsmData:Lw}}}function Pw(){return{handlers:{mdxjsEsm:Dw}}}function Rw(e){this.enter({type:"mdxjsEsm",value:""},e),this.buffer()}function Mw(e){const t=this.resume(),i=this.stack[this.stack.length-1];i.type,this.exit(e);const n=e.estree;i.value=t,n&&(i.data={estree:n})}function Lw(e){this.config.enter.data.call(this,e),this.config.exit.data.call(this,e)}function Dw(e){return e.value||""}function Fw(){return[ow(),_w(),Ow()]}function jw(e){return{extensions:[lw(),Aw(e),Pw()]}}var zw=[509,0,227,0,150,4,294,9,1368,2,2,1,6,3,41,2,5,0,166,1,574,3,9,9,7,9,32,4,318,1,80,3,71,10,50,3,123,2,54,14,32,10,3,1,11,3,46,10,8,0,46,9,7,2,37,13,2,9,6,1,45,0,13,2,49,13,9,3,2,11,83,11,7,0,3,0,158,11,6,9,7,3,56,1,2,6,3,1,3,2,10,0,11,1,3,6,4,4,68,8,2,0,3,0,2,3,2,4,2,0,15,1,83,17,10,9,5,0,82,19,13,9,214,6,3,8,28,1,83,16,16,9,82,12,9,9,7,19,58,14,5,9,243,14,166,9,71,5,2,1,3,3,2,0,2,1,13,9,120,6,3,6,4,0,29,9,41,6,2,3,9,0,10,10,47,15,343,9,54,7,2,7,17,9,57,21,2,13,123,5,4,0,2,1,2,6,2,0,9,9,49,4,2,1,2,4,9,9,330,3,10,1,2,0,49,6,4,4,14,10,5350,0,7,14,11465,27,2343,9,87,9,39,4,60,6,26,9,535,9,470,0,2,54,8,3,82,0,12,1,19628,1,4178,9,519,45,3,22,543,4,4,5,9,7,3,6,31,3,149,2,1418,49,513,54,5,49,9,0,15,0,23,4,2,14,1361,6,2,16,3,6,2,1,2,4,101,0,161,6,10,9,357,0,62,13,499,13,245,1,2,9,726,6,110,6,6,9,4759,9,787719,239],gf=[0,11,2,25,2,18,2,1,2,14,3,13,35,122,70,52,268,28,4,48,48,31,14,29,6,37,11,29,3,35,5,7,2,4,43,157,19,35,5,35,5,39,9,51,13,10,2,14,2,6,2,1,2,10,2,14,2,6,2,1,4,51,13,310,10,21,11,7,25,5,2,41,2,8,70,5,3,0,2,43,2,1,4,0,3,22,11,22,10,30,66,18,2,1,11,21,11,25,71,55,7,1,65,0,16,3,2,2,2,28,43,28,4,28,36,7,2,27,28,53,11,21,11,18,14,17,111,72,56,50,14,50,14,35,39,27,10,22,251,41,7,1,17,2,60,28,11,0,9,21,43,17,47,20,28,22,13,52,58,1,3,0,14,44,33,24,27,35,30,0,3,0,9,34,4,0,13,47,15,3,22,0,2,0,36,17,2,24,20,1,64,6,2,0,2,3,2,14,2,9,8,46,39,7,3,1,3,21,2,6,2,1,2,4,4,0,19,0,13,4,31,9,2,0,3,0,2,37,2,0,26,0,2,0,45,52,19,3,21,2,31,47,21,1,2,0,185,46,42,3,37,47,21,0,60,42,14,0,72,26,38,6,186,43,117,63,32,7,3,0,3,7,2,1,2,23,16,0,2,0,95,7,3,38,17,0,2,0,29,0,11,39,8,0,22,0,12,45,20,0,19,72,200,32,32,8,2,36,18,0,50,29,113,6,2,1,2,37,22,0,26,5,2,1,2,31,15,0,328,18,16,0,2,12,2,33,125,0,80,921,103,110,18,195,2637,96,16,1071,18,5,26,3994,6,582,6842,29,1763,568,8,30,18,78,18,29,19,47,17,3,32,20,6,18,433,44,212,63,129,74,6,0,67,12,65,1,2,0,29,6135,9,1237,42,9,8936,3,2,6,2,1,2,290,16,0,30,2,3,0,15,3,9,395,2309,106,6,12,4,8,8,9,5991,84,2,70,2,1,3,0,3,1,3,3,2,11,2,0,2,6,2,64,2,3,3,7,2,6,2,27,2,3,2,4,2,0,4,6,2,339,3,24,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,7,1845,30,7,5,262,61,147,44,11,6,17,0,322,29,19,43,485,27,229,29,3,0,496,6,2,3,2,1,2,14,2,196,60,67,8,0,1205,3,2,26,2,1,2,0,3,0,2,9,2,3,2,0,2,0,7,0,5,0,2,0,2,0,2,2,2,1,2,0,3,0,2,0,2,0,2,0,2,0,2,1,2,0,3,3,2,6,2,3,2,3,2,0,2,9,2,16,6,2,2,4,2,16,4421,42719,33,4153,7,221,3,5761,15,7472,16,621,2467,541,1507,4938,6,4191],Vw="‌‍·̀-ͯ·҃-֑҇-ׇֽֿׁׂׅׄؐ-ًؚ-٩ٰۖ-ۜ۟-۪ۤۧۨ-ۭ۰-۹ܑܰ-݊ަ-ް߀-߉߫-߽߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛ࢗ-࢟࣊-ࣣ࣡-ःऺ-़ा-ॏ॑-ॗॢॣ०-९ঁ-ঃ়া-ৄেৈো-্ৗৢৣ০-৯৾ਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢૣ૦-૯ૺ-૿ଁ-ଃ଼ା-ୄେୈୋ-୍୕-ୗୢୣ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఀ-ఄ఼ా-ౄె-ైొ-్ౕౖౢౣ౦-౯ಁ-ಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢೣ೦-೯ೳഀ-ഃ഻഼ാ-ൄെ-ൈൊ-്ൗൢൣ൦-൯ඁ-ඃ්ා-ුූෘ-ෟ෦-෯ෲෳัิ-ฺ็-๎๐-๙ັິ-ຼ່-໎໐-໙༘༙༠-༩༹༵༷༾༿ཱ-྄྆྇ྍ-ྗྙ-ྼ࿆ါ-ှ၀-၉ၖ-ၙၞ-ၠၢ-ၤၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟፩-፱ᜒ-᜕ᜲ-᜴ᝒᝓᝲᝳ឴-៓៝០-៩᠋-᠍᠏-᠙ᢩᤠ-ᤫᤰ-᤻᥆-᥏᧐-᧚ᨗ-ᨛᩕ-ᩞ᩠-᩿᩼-᪉᪐-᪙᪰-᪽ᪿ-ᫎᬀ-ᬄ᬴-᭄᭐-᭙᭫-᭳ᮀ-ᮂᮡ-ᮭ᮰-᮹᯦-᯳ᰤ-᰷᱀-᱉᱐-᱙᳐-᳔᳒-᳨᳭᳴᳷-᳹᷀-᷿‌‍‿⁀⁔⃐-⃥⃜⃡-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〯・꘠-꘩꙯ꙴ-꙽ꚞꚟ꛰꛱ꠂ꠆ꠋꠣ-ꠧ꠬ꢀꢁꢴ-ꣅ꣐-꣙꣠-꣱ꣿ-꤉ꤦ-꤭ꥇ-꥓ꦀ-ꦃ꦳-꧀꧐-꧙ꧥ꧰-꧹ꨩ-ꨶꩃꩌꩍ꩐-꩙ꩻ-ꩽꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꫫ-ꫯꫵ꫶ꯣ-ꯪ꯬꯭꯰-꯹ﬞ︀-️︠-︯︳︴﹍-﹏0-9_・",mf="ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՙՠ-ֈא-תׯ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࡠ-ࡪࡰ-ࢇࢉ-ࢎࢠ-ࣉऄ-हऽॐक़-ॡॱ-ঀঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱৼਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡૹଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-హఽౘ-ౚౝౠౡಀಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೝೞೠೡೱೲഄ-ഌഎ-ഐഒ-ഺഽൎൔ-ൖൟ-ൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄຆ-ຊຌ-ຣລວ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏽᏸ-ᏽᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛸᜀ-ᜑᜟ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡸᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭌᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᲀ-ᲊᲐ-ᲺᲽ-Ჿᳩ-ᳬᳮ-ᳳᳵᳶᳺᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕ℘-ℝℤΩℨK-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖ゛-ゟァ-ヺー-ヿㄅ-ㄯㄱ-ㆎㆠ-ㆿㇰ-ㇿ㐀-䶿一-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚝꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꟍꟐꟑꟓꟕ-Ƛꟲ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꣽꣾꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꧠ-ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꩾ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭩꭰ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ",Is={3:"abstract boolean byte char class double enum export extends final float goto implements import int interface long native package private protected public short static super synchronized throws transient volatile",5:"class enum extends super const export import",6:"enum",strict:"implements interface let package private protected public static yield",strictBind:"eval arguments"},_s="break case catch continue debugger default do else finally for function if return switch throw try var while with null true false instanceof typeof void delete new in this",Bw={5:_s,"5module":_s+" export import",6:_s+" const class extends export import super"},Hw=/^in(stanceof)?$/,Kw=new RegExp("["+mf+"]"),Ww=new RegExp("["+mf+Vw+"]");function xo(e,t){for(var i=65536,n=0;n<t.length;n+=2){if(i+=t[n],i>e)return!1;if(i+=t[n+1],i>=e)return!0}return!1}function xi(e,t){return e<65?e===36:e<91?!0:e<97?e===95:e<123?!0:e<=65535?e>=170&&Kw.test(String.fromCharCode(e)):t===!1?!1:xo(e,gf)}function Hi(e,t){return e<48?e===36:e<58?!0:e<65?!1:e<91?!0:e<97?e===95:e<123?!0:e<=65535?e>=170&&Ww.test(String.fromCharCode(e)):t===!1?!1:xo(e,gf)||xo(e,zw)}var Je=function(t,i){i===void 0&&(i={}),this.label=t,this.keyword=i.keyword,this.beforeExpr=!!i.beforeExpr,this.startsExpr=!!i.startsExpr,this.isLoop=!!i.isLoop,this.isAssign=!!i.isAssign,this.prefix=!!i.prefix,this.postfix=!!i.postfix,this.binop=i.binop||null,this.updateContext=null};function qt(e,t){return new Je(e,{beforeExpr:!0,binop:t})}var Gt={beforeExpr:!0},Mt={startsExpr:!0},Ll={};function Ge(e,t){return t===void 0&&(t={}),t.keyword=e,Ll[e]=new Je(e,t)}var N={num:new Je("num",Mt),regexp:new Je("regexp",Mt),string:new Je("string",Mt),name:new Je("name",Mt),privateId:new Je("privateId",Mt),eof:new Je("eof"),bracketL:new Je("[",{beforeExpr:!0,startsExpr:!0}),bracketR:new Je("]"),braceL:new Je("{",{beforeExpr:!0,startsExpr:!0}),braceR:new Je("}"),parenL:new Je("(",{beforeExpr:!0,startsExpr:!0}),parenR:new Je(")"),comma:new Je(",",Gt),semi:new Je(";",Gt),colon:new Je(":",Gt),dot:new Je("."),question:new Je("?",Gt),questionDot:new Je("?."),arrow:new Je("=>",Gt),template:new Je("template"),invalidTemplate:new Je("invalidTemplate"),ellipsis:new Je("...",Gt),backQuote:new Je("`",Mt),dollarBraceL:new Je("${",{beforeExpr:!0,startsExpr:!0}),eq:new Je("=",{beforeExpr:!0,isAssign:!0}),assign:new Je("_=",{beforeExpr:!0,isAssign:!0}),incDec:new Je("++/--",{prefix:!0,postfix:!0,startsExpr:!0}),prefix:new Je("!/~",{beforeExpr:!0,prefix:!0,startsExpr:!0}),logicalOR:qt("||",1),logicalAND:qt("&&",2),bitwiseOR:qt("|",3),bitwiseXOR:qt("^",4),bitwiseAND:qt("&",5),equality:qt("==/!=/===/!==",6),relational:qt("</>/<=/>=",7),bitShift:qt("<</>>/>>>",8),plusMin:new Je("+/-",{beforeExpr:!0,binop:9,prefix:!0,startsExpr:!0}),modulo:qt("%",10),star:qt("*",10),slash:qt("/",10),starstar:new Je("**",{beforeExpr:!0}),coalesce:qt("??",1),_break:Ge("break"),_case:Ge("case",Gt),_catch:Ge("catch"),_continue:Ge("continue"),_debugger:Ge("debugger"),_default:Ge("default",Gt),_do:Ge("do",{isLoop:!0,beforeExpr:!0}),_else:Ge("else",Gt),_finally:Ge("finally"),_for:Ge("for",{isLoop:!0}),_function:Ge("function",Mt),_if:Ge("if"),_return:Ge("return",Gt),_switch:Ge("switch"),_throw:Ge("throw",Gt),_try:Ge("try"),_var:Ge("var"),_const:Ge("const"),_while:Ge("while",{isLoop:!0}),_with:Ge("with"),_new:Ge("new",{beforeExpr:!0,startsExpr:!0}),_this:Ge("this",Mt),_super:Ge("super",Mt),_class:Ge("class",Mt),_extends:Ge("extends",Gt),_export:Ge("export"),_import:Ge("import",Mt),_null:Ge("null",Mt),_true:Ge("true",Mt),_false:Ge("false",Mt),_in:Ge("in",{beforeExpr:!0,binop:7}),_instanceof:Ge("instanceof",{beforeExpr:!0,binop:7}),_typeof:Ge("typeof",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_void:Ge("void",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_delete:Ge("delete",{beforeExpr:!0,prefix:!0,startsExpr:!0})},zt=/\r\n?|\n|\u2028|\u2029/,Uw=new RegExp(zt.source,"g");function Bn(e){return e===10||e===13||e===8232||e===8233}function vf(e,t,i){i===void 0&&(i=e.length);for(var n=t;n<i;n++){var r=e.charCodeAt(n);if(Bn(r))return n<i-1&&r===13&&e.charCodeAt(n+1)===10?n+2:n+1}return-1}var xf=/[\u1680\u2000-\u200a\u202f\u205f\u3000\ufeff]/,St=/(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g,bf=Object.prototype,qw=bf.hasOwnProperty,Gw=bf.toString,Hn=Object.hasOwn||(function(e,t){return qw.call(e,t)}),Rc=Array.isArray||(function(e){return Gw.call(e)==="[object Array]"}),Mc=Object.create(null);function Vi(e){return Mc[e]||(Mc[e]=new RegExp("^(?:"+e.replace(/ /g,"|")+")$"))}function Ai(e){return e<=65535?String.fromCharCode(e):(e-=65536,String.fromCharCode((e>>10)+55296,(e&1023)+56320))}var $w=/(?:[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])/,fr=function(t,i){this.line=t,this.column=i};fr.prototype.offset=function(t){return new fr(this.line,this.column+t)};var Ja=function(t,i,n){this.start=i,this.end=n,t.sourceFile!==null&&(this.source=t.sourceFile)};function yf(e,t){for(var i=1,n=0;;){var r=vf(e,n,t);if(r<0)return new fr(i,t-n);++i,n=r}}var bo={ecmaVersion:null,sourceType:"script",onInsertedSemicolon:null,onTrailingComma:null,allowReserved:null,allowReturnOutsideFunction:!1,allowImportExportEverywhere:!1,allowAwaitOutsideFunction:null,allowSuperOutsideMethod:null,allowHashBang:!1,checkPrivateFields:!0,locations:!1,onToken:null,onComment:null,ranges:!1,program:null,sourceFile:null,directSourceFile:null,preserveParens:!1},Lc=!1;function Jw(e){var t={};for(var i in bo)t[i]=e&&Hn(e,i)?e[i]:bo[i];if(t.ecmaVersion==="latest"?t.ecmaVersion=1e8:t.ecmaVersion==null?(!Lc&&typeof console=="object"&&console.warn&&(Lc=!0,console.warn(`Since Acorn 8.0.0, options.ecmaVersion is required.
68
- Defaulting to 2020, but this will stop working in the future.`)),t.ecmaVersion=11):t.ecmaVersion>=2015&&(t.ecmaVersion-=2009),t.allowReserved==null&&(t.allowReserved=t.ecmaVersion<5),(!e||e.allowHashBang==null)&&(t.allowHashBang=t.ecmaVersion>=14),Rc(t.onToken)){var n=t.onToken;t.onToken=function(r){return n.push(r)}}return Rc(t.onComment)&&(t.onComment=Yw(t,t.onComment)),t}function Yw(e,t){return function(i,n,r,a,s,l){var u={type:i?"Block":"Line",value:n,start:r,end:a};e.locations&&(u.loc=new Ja(this,s,l)),e.ranges&&(u.range=[r,a]),t.push(u)}}var gr=1,Kn=2,Dl=4,wf=8,Fl=16,kf=32,Ya=64,Sf=128,cn=256,kr=512,Qa=gr|Kn|cn;function jl(e,t){return Kn|(e?Dl:0)|(t?wf:0)}var Na=0,zl=1,Ti=2,Ef=3,Cf=4,If=5,vt=function(t,i,n){this.options=t=Jw(t),this.sourceFile=t.sourceFile,this.keywords=Vi(Bw[t.ecmaVersion>=6?6:t.sourceType==="module"?"5module":5]);var r="";t.allowReserved!==!0&&(r=Is[t.ecmaVersion>=6?6:t.ecmaVersion===5?5:3],t.sourceType==="module"&&(r+=" await")),this.reservedWords=Vi(r);var a=(r?r+" ":"")+Is.strict;this.reservedWordsStrict=Vi(a),this.reservedWordsStrictBind=Vi(a+" "+Is.strictBind),this.input=String(i),this.containsEsc=!1,n?(this.pos=n,this.lineStart=this.input.lastIndexOf(`
69
- `,n-1)+1,this.curLine=this.input.slice(0,this.lineStart).split(zt).length):(this.pos=this.lineStart=0,this.curLine=1),this.type=N.eof,this.value=null,this.start=this.end=this.pos,this.startLoc=this.endLoc=this.curPosition(),this.lastTokEndLoc=this.lastTokStartLoc=null,this.lastTokStart=this.lastTokEnd=this.pos,this.context=this.initialContext(),this.exprAllowed=!0,this.inModule=t.sourceType==="module",this.strict=this.inModule||this.strictDirective(this.pos),this.potentialArrowAt=-1,this.potentialArrowInForAwait=!1,this.yieldPos=this.awaitPos=this.awaitIdentPos=0,this.labels=[],this.undefinedExports=Object.create(null),this.pos===0&&t.allowHashBang&&this.input.slice(0,2)==="#!"&&this.skipLineComment(2),this.scopeStack=[],this.enterScope(gr),this.regexpState=null,this.privateNameStack=[]},bi={inFunction:{configurable:!0},inGenerator:{configurable:!0},inAsync:{configurable:!0},canAwait:{configurable:!0},allowSuper:{configurable:!0},allowDirectSuper:{configurable:!0},treatFunctionsAsVar:{configurable:!0},allowNewDotTarget:{configurable:!0},inClassStaticBlock:{configurable:!0}};vt.prototype.parse=function(){var t=this.options.program||this.startNode();return this.nextToken(),this.parseTopLevel(t)};bi.inFunction.get=function(){return(this.currentVarScope().flags&Kn)>0};bi.inGenerator.get=function(){return(this.currentVarScope().flags&wf)>0};bi.inAsync.get=function(){return(this.currentVarScope().flags&Dl)>0};bi.canAwait.get=function(){for(var e=this.scopeStack.length-1;e>=0;e--){var t=this.scopeStack[e],i=t.flags;if(i&(cn|kr))return!1;if(i&Kn)return(i&Dl)>0}return this.inModule&&this.options.ecmaVersion>=13||this.options.allowAwaitOutsideFunction};bi.allowSuper.get=function(){var e=this.currentThisScope(),t=e.flags;return(t&Ya)>0||this.options.allowSuperOutsideMethod};bi.allowDirectSuper.get=function(){return(this.currentThisScope().flags&Sf)>0};bi.treatFunctionsAsVar.get=function(){return this.treatFunctionsAsVarInScope(this.currentScope())};bi.allowNewDotTarget.get=function(){for(var e=this.scopeStack.length-1;e>=0;e--){var t=this.scopeStack[e],i=t.flags;if(i&(cn|kr)||i&Kn&&!(i&Fl))return!0}return!1};bi.inClassStaticBlock.get=function(){return(this.currentVarScope().flags&cn)>0};vt.extend=function(){for(var t=[],i=arguments.length;i--;)t[i]=arguments[i];for(var n=this,r=0;r<t.length;r++)n=t[r](n);return n};vt.parse=function(t,i){return new this(i,t).parse()};vt.parseExpressionAt=function(t,i,n){var r=new this(n,t,i);return r.nextToken(),r.parseExpression()};vt.tokenizer=function(t,i){return new this(i,t)};Object.defineProperties(vt.prototype,bi);var Ot=vt.prototype,Qw=/^(?:'((?:\\[^]|[^'\\])*?)'|"((?:\\[^]|[^"\\])*?)")/;Ot.strictDirective=function(e){if(this.options.ecmaVersion<5)return!1;for(;;){St.lastIndex=e,e+=St.exec(this.input)[0].length;var t=Qw.exec(this.input.slice(e));if(!t)return!1;if((t[1]||t[2])==="use strict"){St.lastIndex=e+t[0].length;var i=St.exec(this.input),n=i.index+i[0].length,r=this.input.charAt(n);return r===";"||r==="}"||zt.test(i[0])&&!(/[(`.[+\-/*%<>=,?^&]/.test(r)||r==="!"&&this.input.charAt(n+1)==="=")}e+=t[0].length,St.lastIndex=e,e+=St.exec(this.input)[0].length,this.input[e]===";"&&e++}};Ot.eat=function(e){return this.type===e?(this.next(),!0):!1};Ot.isContextual=function(e){return this.type===N.name&&this.value===e&&!this.containsEsc};Ot.eatContextual=function(e){return this.isContextual(e)?(this.next(),!0):!1};Ot.expectContextual=function(e){this.eatContextual(e)||this.unexpected()};Ot.canInsertSemicolon=function(){return this.type===N.eof||this.type===N.braceR||zt.test(this.input.slice(this.lastTokEnd,this.start))};Ot.insertSemicolon=function(){if(this.canInsertSemicolon())return this.options.onInsertedSemicolon&&this.options.onInsertedSemicolon(this.lastTokEnd,this.lastTokEndLoc),!0};Ot.semicolon=function(){!this.eat(N.semi)&&!this.insertSemicolon()&&this.unexpected()};Ot.afterTrailingComma=function(e,t){if(this.type===e)return this.options.onTrailingComma&&this.options.onTrailingComma(this.lastTokStart,this.lastTokStartLoc),t||this.next(),!0};Ot.expect=function(e){this.eat(e)||this.unexpected()};Ot.unexpected=function(e){this.raise(e??this.start,"Unexpected token")};var Za=function(){this.shorthandAssign=this.trailingComma=this.parenthesizedAssign=this.parenthesizedBind=this.doubleProto=-1};Ot.checkPatternErrors=function(e,t){if(e){e.trailingComma>-1&&this.raiseRecoverable(e.trailingComma,"Comma is not permitted after the rest element");var i=t?e.parenthesizedAssign:e.parenthesizedBind;i>-1&&this.raiseRecoverable(i,t?"Assigning to rvalue":"Parenthesized pattern")}};Ot.checkExpressionErrors=function(e,t){if(!e)return!1;var i=e.shorthandAssign,n=e.doubleProto;if(!t)return i>=0||n>=0;i>=0&&this.raise(i,"Shorthand property assignments are valid only in destructuring patterns"),n>=0&&this.raiseRecoverable(n,"Redefinition of __proto__ property")};Ot.checkYieldAwaitInDefaultParams=function(){this.yieldPos&&(!this.awaitPos||this.yieldPos<this.awaitPos)&&this.raise(this.yieldPos,"Yield expression cannot be a default value"),this.awaitPos&&this.raise(this.awaitPos,"Await expression cannot be a default value")};Ot.isSimpleAssignTarget=function(e){return e.type==="ParenthesizedExpression"?this.isSimpleAssignTarget(e.expression):e.type==="Identifier"||e.type==="MemberExpression"};var Te=vt.prototype;Te.parseTopLevel=function(e){var t=Object.create(null);for(e.body||(e.body=[]);this.type!==N.eof;){var i=this.parseStatement(null,!0,t);e.body.push(i)}if(this.inModule)for(var n=0,r=Object.keys(this.undefinedExports);n<r.length;n+=1){var a=r[n];this.raiseRecoverable(this.undefinedExports[a].start,"Export '"+a+"' is not defined")}return this.adaptDirectivePrologue(e.body),this.next(),e.sourceType=this.options.sourceType,this.finishNode(e,"Program")};var Vl={kind:"loop"},Zw={kind:"switch"};Te.isLet=function(e){if(this.options.ecmaVersion<6||!this.isContextual("let"))return!1;St.lastIndex=this.pos;var t=St.exec(this.input),i=this.pos+t[0].length,n=this.input.charCodeAt(i);if(n===91||n===92)return!0;if(e)return!1;if(n===123||n>55295&&n<56320)return!0;if(xi(n,!0)){for(var r=i+1;Hi(n=this.input.charCodeAt(r),!0);)++r;if(n===92||n>55295&&n<56320)return!0;var a=this.input.slice(i,r);if(!Hw.test(a))return!0}return!1};Te.isAsyncFunction=function(){if(this.options.ecmaVersion<8||!this.isContextual("async"))return!1;St.lastIndex=this.pos;var e=St.exec(this.input),t=this.pos+e[0].length,i;return!zt.test(this.input.slice(this.pos,t))&&this.input.slice(t,t+8)==="function"&&(t+8===this.input.length||!(Hi(i=this.input.charCodeAt(t+8))||i>55295&&i<56320))};Te.isUsingKeyword=function(e,t){if(this.options.ecmaVersion<17||!this.isContextual(e?"await":"using"))return!1;St.lastIndex=this.pos;var i=St.exec(this.input),n=this.pos+i[0].length;if(zt.test(this.input.slice(this.pos,n)))return!1;if(e){var r=n+5,a;if(this.input.slice(n,r)!=="using"||r===this.input.length||Hi(a=this.input.charCodeAt(r))||a>55295&&a<56320)return!1;St.lastIndex=r;var s=St.exec(this.input);if(s&&zt.test(this.input.slice(r,r+s[0].length)))return!1}if(t){var l=n+2,u;if(this.input.slice(n,l)==="of"&&(l===this.input.length||!Hi(u=this.input.charCodeAt(l))&&!(u>55295&&u<56320)))return!1}var c=this.input.charCodeAt(n);return xi(c,!0)||c===92};Te.isAwaitUsing=function(e){return this.isUsingKeyword(!0,e)};Te.isUsing=function(e){return this.isUsingKeyword(!1,e)};Te.parseStatement=function(e,t,i){var n=this.type,r=this.startNode(),a;switch(this.isLet(e)&&(n=N._var,a="let"),n){case N._break:case N._continue:return this.parseBreakContinueStatement(r,n.keyword);case N._debugger:return this.parseDebuggerStatement(r);case N._do:return this.parseDoStatement(r);case N._for:return this.parseForStatement(r);case N._function:return e&&(this.strict||e!=="if"&&e!=="label")&&this.options.ecmaVersion>=6&&this.unexpected(),this.parseFunctionStatement(r,!1,!e);case N._class:return e&&this.unexpected(),this.parseClass(r,!0);case N._if:return this.parseIfStatement(r);case N._return:return this.parseReturnStatement(r);case N._switch:return this.parseSwitchStatement(r);case N._throw:return this.parseThrowStatement(r);case N._try:return this.parseTryStatement(r);case N._const:case N._var:return a=a||this.value,e&&a!=="var"&&this.unexpected(),this.parseVarStatement(r,a);case N._while:return this.parseWhileStatement(r);case N._with:return this.parseWithStatement(r);case N.braceL:return this.parseBlock(!0,r);case N.semi:return this.parseEmptyStatement(r);case N._export:case N._import:if(this.options.ecmaVersion>10&&n===N._import){St.lastIndex=this.pos;var s=St.exec(this.input),l=this.pos+s[0].length,u=this.input.charCodeAt(l);if(u===40||u===46)return this.parseExpressionStatement(r,this.parseExpression())}return this.options.allowImportExportEverywhere||(t||this.raise(this.start,"'import' and 'export' may only appear at the top level"),this.inModule||this.raise(this.start,"'import' and 'export' may appear only with 'sourceType: module'")),n===N._import?this.parseImport(r):this.parseExport(r,i);default:if(this.isAsyncFunction())return e&&this.unexpected(),this.next(),this.parseFunctionStatement(r,!0,!e);var c=this.isAwaitUsing(!1)?"await using":this.isUsing(!1)?"using":null;if(c)return t&&this.options.sourceType==="script"&&this.raise(this.start,"Using declaration cannot appear in the top level when source type is `script`"),c==="await using"&&(this.canAwait||this.raise(this.start,"Await using cannot appear outside of async function"),this.next()),this.next(),this.parseVar(r,!1,c),this.semicolon(),this.finishNode(r,"VariableDeclaration");var h=this.value,p=this.parseExpression();return n===N.name&&p.type==="Identifier"&&this.eat(N.colon)?this.parseLabeledStatement(r,h,p,e):this.parseExpressionStatement(r,p)}};Te.parseBreakContinueStatement=function(e,t){var i=t==="break";this.next(),this.eat(N.semi)||this.insertSemicolon()?e.label=null:this.type!==N.name?this.unexpected():(e.label=this.parseIdent(),this.semicolon());for(var n=0;n<this.labels.length;++n){var r=this.labels[n];if((e.label==null||r.name===e.label.name)&&(r.kind!=null&&(i||r.kind==="loop")||e.label&&i))break}return n===this.labels.length&&this.raise(e.start,"Unsyntactic "+t),this.finishNode(e,i?"BreakStatement":"ContinueStatement")};Te.parseDebuggerStatement=function(e){return this.next(),this.semicolon(),this.finishNode(e,"DebuggerStatement")};Te.parseDoStatement=function(e){return this.next(),this.labels.push(Vl),e.body=this.parseStatement("do"),this.labels.pop(),this.expect(N._while),e.test=this.parseParenExpression(),this.options.ecmaVersion>=6?this.eat(N.semi):this.semicolon(),this.finishNode(e,"DoWhileStatement")};Te.parseForStatement=function(e){this.next();var t=this.options.ecmaVersion>=9&&this.canAwait&&this.eatContextual("await")?this.lastTokStart:-1;if(this.labels.push(Vl),this.enterScope(0),this.expect(N.parenL),this.type===N.semi)return t>-1&&this.unexpected(t),this.parseFor(e,null);var i=this.isLet();if(this.type===N._var||this.type===N._const||i){var n=this.startNode(),r=i?"let":this.value;return this.next(),this.parseVar(n,!0,r),this.finishNode(n,"VariableDeclaration"),this.parseForAfterInit(e,n,t)}var a=this.isContextual("let"),s=!1,l=this.isUsing(!0)?"using":this.isAwaitUsing(!0)?"await using":null;if(l){var u=this.startNode();return this.next(),l==="await using"&&this.next(),this.parseVar(u,!0,l),this.finishNode(u,"VariableDeclaration"),this.parseForAfterInit(e,u,t)}var c=this.containsEsc,h=new Za,p=this.start,g=t>-1?this.parseExprSubscripts(h,"await"):this.parseExpression(!0,h);return this.type===N._in||(s=this.options.ecmaVersion>=6&&this.isContextual("of"))?(t>-1?(this.type===N._in&&this.unexpected(t),e.await=!0):s&&this.options.ecmaVersion>=8&&(g.start===p&&!c&&g.type==="Identifier"&&g.name==="async"?this.unexpected():this.options.ecmaVersion>=9&&(e.await=!1)),a&&s&&this.raise(g.start,"The left-hand side of a for-of loop may not start with 'let'."),this.toAssignable(g,!1,h),this.checkLValPattern(g),this.parseForIn(e,g)):(this.checkExpressionErrors(h,!0),t>-1&&this.unexpected(t),this.parseFor(e,g))};Te.parseForAfterInit=function(e,t,i){return(this.type===N._in||this.options.ecmaVersion>=6&&this.isContextual("of"))&&t.declarations.length===1?(this.options.ecmaVersion>=9&&(this.type===N._in?i>-1&&this.unexpected(i):e.await=i>-1),this.parseForIn(e,t)):(i>-1&&this.unexpected(i),this.parseFor(e,t))};Te.parseFunctionStatement=function(e,t,i){return this.next(),this.parseFunction(e,ar|(i?0:yo),!1,t)};Te.parseIfStatement=function(e){return this.next(),e.test=this.parseParenExpression(),e.consequent=this.parseStatement("if"),e.alternate=this.eat(N._else)?this.parseStatement("if"):null,this.finishNode(e,"IfStatement")};Te.parseReturnStatement=function(e){return!this.inFunction&&!this.options.allowReturnOutsideFunction&&this.raise(this.start,"'return' outside of function"),this.next(),this.eat(N.semi)||this.insertSemicolon()?e.argument=null:(e.argument=this.parseExpression(),this.semicolon()),this.finishNode(e,"ReturnStatement")};Te.parseSwitchStatement=function(e){this.next(),e.discriminant=this.parseParenExpression(),e.cases=[],this.expect(N.braceL),this.labels.push(Zw),this.enterScope(0);for(var t,i=!1;this.type!==N.braceR;)if(this.type===N._case||this.type===N._default){var n=this.type===N._case;t&&this.finishNode(t,"SwitchCase"),e.cases.push(t=this.startNode()),t.consequent=[],this.next(),n?t.test=this.parseExpression():(i&&this.raiseRecoverable(this.lastTokStart,"Multiple default clauses"),i=!0,t.test=null),this.expect(N.colon)}else t||this.unexpected(),t.consequent.push(this.parseStatement(null));return this.exitScope(),t&&this.finishNode(t,"SwitchCase"),this.next(),this.labels.pop(),this.finishNode(e,"SwitchStatement")};Te.parseThrowStatement=function(e){return this.next(),zt.test(this.input.slice(this.lastTokEnd,this.start))&&this.raise(this.lastTokEnd,"Illegal newline after throw"),e.argument=this.parseExpression(),this.semicolon(),this.finishNode(e,"ThrowStatement")};var Xw=[];Te.parseCatchClauseParam=function(){var e=this.parseBindingAtom(),t=e.type==="Identifier";return this.enterScope(t?kf:0),this.checkLValPattern(e,t?Cf:Ti),this.expect(N.parenR),e};Te.parseTryStatement=function(e){if(this.next(),e.block=this.parseBlock(),e.handler=null,this.type===N._catch){var t=this.startNode();this.next(),this.eat(N.parenL)?t.param=this.parseCatchClauseParam():(this.options.ecmaVersion<10&&this.unexpected(),t.param=null,this.enterScope(0)),t.body=this.parseBlock(!1),this.exitScope(),e.handler=this.finishNode(t,"CatchClause")}return e.finalizer=this.eat(N._finally)?this.parseBlock():null,!e.handler&&!e.finalizer&&this.raise(e.start,"Missing catch or finally clause"),this.finishNode(e,"TryStatement")};Te.parseVarStatement=function(e,t,i){return this.next(),this.parseVar(e,!1,t,i),this.semicolon(),this.finishNode(e,"VariableDeclaration")};Te.parseWhileStatement=function(e){return this.next(),e.test=this.parseParenExpression(),this.labels.push(Vl),e.body=this.parseStatement("while"),this.labels.pop(),this.finishNode(e,"WhileStatement")};Te.parseWithStatement=function(e){return this.strict&&this.raise(this.start,"'with' in strict mode"),this.next(),e.object=this.parseParenExpression(),e.body=this.parseStatement("with"),this.finishNode(e,"WithStatement")};Te.parseEmptyStatement=function(e){return this.next(),this.finishNode(e,"EmptyStatement")};Te.parseLabeledStatement=function(e,t,i,n){for(var r=0,a=this.labels;r<a.length;r+=1){var s=a[r];s.name===t&&this.raise(i.start,"Label '"+t+"' is already declared")}for(var l=this.type.isLoop?"loop":this.type===N._switch?"switch":null,u=this.labels.length-1;u>=0;u--){var c=this.labels[u];if(c.statementStart===e.start)c.statementStart=this.start,c.kind=l;else break}return this.labels.push({name:t,kind:l,statementStart:this.start}),e.body=this.parseStatement(n?n.indexOf("label")===-1?n+"label":n:"label"),this.labels.pop(),e.label=i,this.finishNode(e,"LabeledStatement")};Te.parseExpressionStatement=function(e,t){return e.expression=t,this.semicolon(),this.finishNode(e,"ExpressionStatement")};Te.parseBlock=function(e,t,i){for(e===void 0&&(e=!0),t===void 0&&(t=this.startNode()),t.body=[],this.expect(N.braceL),e&&this.enterScope(0);this.type!==N.braceR;){var n=this.parseStatement(null);t.body.push(n)}return i&&(this.strict=!1),this.next(),e&&this.exitScope(),this.finishNode(t,"BlockStatement")};Te.parseFor=function(e,t){return e.init=t,this.expect(N.semi),e.test=this.type===N.semi?null:this.parseExpression(),this.expect(N.semi),e.update=this.type===N.parenR?null:this.parseExpression(),this.expect(N.parenR),e.body=this.parseStatement("for"),this.exitScope(),this.labels.pop(),this.finishNode(e,"ForStatement")};Te.parseForIn=function(e,t){var i=this.type===N._in;return this.next(),t.type==="VariableDeclaration"&&t.declarations[0].init!=null&&(!i||this.options.ecmaVersion<8||this.strict||t.kind!=="var"||t.declarations[0].id.type!=="Identifier")&&this.raise(t.start,(i?"for-in":"for-of")+" loop variable declaration may not have an initializer"),e.left=t,e.right=i?this.parseExpression():this.parseMaybeAssign(),this.expect(N.parenR),e.body=this.parseStatement("for"),this.exitScope(),this.labels.pop(),this.finishNode(e,i?"ForInStatement":"ForOfStatement")};Te.parseVar=function(e,t,i,n){for(e.declarations=[],e.kind=i;;){var r=this.startNode();if(this.parseVarId(r,i),this.eat(N.eq)?r.init=this.parseMaybeAssign(t):!n&&i==="const"&&!(this.type===N._in||this.options.ecmaVersion>=6&&this.isContextual("of"))?this.unexpected():!n&&(i==="using"||i==="await using")&&this.options.ecmaVersion>=17&&this.type!==N._in&&!this.isContextual("of")?this.raise(this.lastTokEnd,"Missing initializer in "+i+" declaration"):!n&&r.id.type!=="Identifier"&&!(t&&(this.type===N._in||this.isContextual("of")))?this.raise(this.lastTokEnd,"Complex binding patterns require an initialization value"):r.init=null,e.declarations.push(this.finishNode(r,"VariableDeclarator")),!this.eat(N.comma))break}return e};Te.parseVarId=function(e,t){e.id=t==="using"||t==="await using"?this.parseIdent():this.parseBindingAtom(),this.checkLValPattern(e.id,t==="var"?zl:Ti,!1)};var ar=1,yo=2,_f=4;Te.parseFunction=function(e,t,i,n,r){this.initFunction(e),(this.options.ecmaVersion>=9||this.options.ecmaVersion>=6&&!n)&&(this.type===N.star&&t&yo&&this.unexpected(),e.generator=this.eat(N.star)),this.options.ecmaVersion>=8&&(e.async=!!n),t&ar&&(e.id=t&_f&&this.type!==N.name?null:this.parseIdent(),e.id&&!(t&yo)&&this.checkLValSimple(e.id,this.strict||e.generator||e.async?this.treatFunctionsAsVar?zl:Ti:Ef));var a=this.yieldPos,s=this.awaitPos,l=this.awaitIdentPos;return this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(jl(e.async,e.generator)),t&ar||(e.id=this.type===N.name?this.parseIdent():null),this.parseFunctionParams(e),this.parseFunctionBody(e,i,!1,r),this.yieldPos=a,this.awaitPos=s,this.awaitIdentPos=l,this.finishNode(e,t&ar?"FunctionDeclaration":"FunctionExpression")};Te.parseFunctionParams=function(e){this.expect(N.parenL),e.params=this.parseBindingList(N.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams()};Te.parseClass=function(e,t){this.next();var i=this.strict;this.strict=!0,this.parseClassId(e,t),this.parseClassSuper(e);var n=this.enterClassBody(),r=this.startNode(),a=!1;for(r.body=[],this.expect(N.braceL);this.type!==N.braceR;){var s=this.parseClassElement(e.superClass!==null);s&&(r.body.push(s),s.type==="MethodDefinition"&&s.kind==="constructor"?(a&&this.raiseRecoverable(s.start,"Duplicate constructor in the same class"),a=!0):s.key&&s.key.type==="PrivateIdentifier"&&e1(n,s)&&this.raiseRecoverable(s.key.start,"Identifier '#"+s.key.name+"' has already been declared"))}return this.strict=i,this.next(),e.body=this.finishNode(r,"ClassBody"),this.exitClassBody(),this.finishNode(e,t?"ClassDeclaration":"ClassExpression")};Te.parseClassElement=function(e){if(this.eat(N.semi))return null;var t=this.options.ecmaVersion,i=this.startNode(),n="",r=!1,a=!1,s="method",l=!1;if(this.eatContextual("static")){if(t>=13&&this.eat(N.braceL))return this.parseClassStaticBlock(i),i;this.isClassElementNameStart()||this.type===N.star?l=!0:n="static"}if(i.static=l,!n&&t>=8&&this.eatContextual("async")&&((this.isClassElementNameStart()||this.type===N.star)&&!this.canInsertSemicolon()?a=!0:n="async"),!n&&(t>=9||!a)&&this.eat(N.star)&&(r=!0),!n&&!a&&!r){var u=this.value;(this.eatContextual("get")||this.eatContextual("set"))&&(this.isClassElementNameStart()?s=u:n=u)}if(n?(i.computed=!1,i.key=this.startNodeAt(this.lastTokStart,this.lastTokStartLoc),i.key.name=n,this.finishNode(i.key,"Identifier")):this.parseClassElementName(i),t<13||this.type===N.parenL||s!=="method"||r||a){var c=!i.static&&Ta(i,"constructor"),h=c&&e;c&&s!=="method"&&this.raise(i.key.start,"Constructor can't have get/set modifier"),i.kind=c?"constructor":s,this.parseClassMethod(i,r,a,h)}else this.parseClassField(i);return i};Te.isClassElementNameStart=function(){return this.type===N.name||this.type===N.privateId||this.type===N.num||this.type===N.string||this.type===N.bracketL||this.type.keyword};Te.parseClassElementName=function(e){this.type===N.privateId?(this.value==="constructor"&&this.raise(this.start,"Classes can't have an element named '#constructor'"),e.computed=!1,e.key=this.parsePrivateIdent()):this.parsePropertyName(e)};Te.parseClassMethod=function(e,t,i,n){var r=e.key;e.kind==="constructor"?(t&&this.raise(r.start,"Constructor can't be a generator"),i&&this.raise(r.start,"Constructor can't be an async method")):e.static&&Ta(e,"prototype")&&this.raise(r.start,"Classes may not have a static property named prototype");var a=e.value=this.parseMethod(t,i,n);return e.kind==="get"&&a.params.length!==0&&this.raiseRecoverable(a.start,"getter should have no params"),e.kind==="set"&&a.params.length!==1&&this.raiseRecoverable(a.start,"setter should have exactly one param"),e.kind==="set"&&a.params[0].type==="RestElement"&&this.raiseRecoverable(a.params[0].start,"Setter cannot use rest params"),this.finishNode(e,"MethodDefinition")};Te.parseClassField=function(e){return Ta(e,"constructor")?this.raise(e.key.start,"Classes can't have a field named 'constructor'"):e.static&&Ta(e,"prototype")&&this.raise(e.key.start,"Classes can't have a static field named 'prototype'"),this.eat(N.eq)?(this.enterScope(kr|Ya),e.value=this.parseMaybeAssign(),this.exitScope()):e.value=null,this.semicolon(),this.finishNode(e,"PropertyDefinition")};Te.parseClassStaticBlock=function(e){e.body=[];var t=this.labels;for(this.labels=[],this.enterScope(cn|Ya);this.type!==N.braceR;){var i=this.parseStatement(null);e.body.push(i)}return this.next(),this.exitScope(),this.labels=t,this.finishNode(e,"StaticBlock")};Te.parseClassId=function(e,t){this.type===N.name?(e.id=this.parseIdent(),t&&this.checkLValSimple(e.id,Ti,!1)):(t===!0&&this.unexpected(),e.id=null)};Te.parseClassSuper=function(e){e.superClass=this.eat(N._extends)?this.parseExprSubscripts(null,!1):null};Te.enterClassBody=function(){var e={declared:Object.create(null),used:[]};return this.privateNameStack.push(e),e.declared};Te.exitClassBody=function(){var e=this.privateNameStack.pop(),t=e.declared,i=e.used;if(this.options.checkPrivateFields)for(var n=this.privateNameStack.length,r=n===0?null:this.privateNameStack[n-1],a=0;a<i.length;++a){var s=i[a];Hn(t,s.name)||(r?r.used.push(s):this.raiseRecoverable(s.start,"Private field '#"+s.name+"' must be declared in an enclosing class"))}};function e1(e,t){var i=t.key.name,n=e[i],r="true";return t.type==="MethodDefinition"&&(t.kind==="get"||t.kind==="set")&&(r=(t.static?"s":"i")+t.kind),n==="iget"&&r==="iset"||n==="iset"&&r==="iget"||n==="sget"&&r==="sset"||n==="sset"&&r==="sget"?(e[i]="true",!1):n?!0:(e[i]=r,!1)}function Ta(e,t){var i=e.computed,n=e.key;return!i&&(n.type==="Identifier"&&n.name===t||n.type==="Literal"&&n.value===t)}Te.parseExportAllDeclaration=function(e,t){return this.options.ecmaVersion>=11&&(this.eatContextual("as")?(e.exported=this.parseModuleExportName(),this.checkExport(t,e.exported,this.lastTokStart)):e.exported=null),this.expectContextual("from"),this.type!==N.string&&this.unexpected(),e.source=this.parseExprAtom(),this.options.ecmaVersion>=16&&(e.attributes=this.parseWithClause()),this.semicolon(),this.finishNode(e,"ExportAllDeclaration")};Te.parseExport=function(e,t){if(this.next(),this.eat(N.star))return this.parseExportAllDeclaration(e,t);if(this.eat(N._default))return this.checkExport(t,"default",this.lastTokStart),e.declaration=this.parseExportDefaultDeclaration(),this.finishNode(e,"ExportDefaultDeclaration");if(this.shouldParseExportStatement())e.declaration=this.parseExportDeclaration(e),e.declaration.type==="VariableDeclaration"?this.checkVariableExport(t,e.declaration.declarations):this.checkExport(t,e.declaration.id,e.declaration.id.start),e.specifiers=[],e.source=null,this.options.ecmaVersion>=16&&(e.attributes=[]);else{if(e.declaration=null,e.specifiers=this.parseExportSpecifiers(t),this.eatContextual("from"))this.type!==N.string&&this.unexpected(),e.source=this.parseExprAtom(),this.options.ecmaVersion>=16&&(e.attributes=this.parseWithClause());else{for(var i=0,n=e.specifiers;i<n.length;i+=1){var r=n[i];this.checkUnreserved(r.local),this.checkLocalExport(r.local),r.local.type==="Literal"&&this.raise(r.local.start,"A string literal cannot be used as an exported binding without `from`.")}e.source=null,this.options.ecmaVersion>=16&&(e.attributes=[])}this.semicolon()}return this.finishNode(e,"ExportNamedDeclaration")};Te.parseExportDeclaration=function(e){return this.parseStatement(null)};Te.parseExportDefaultDeclaration=function(){var e;if(this.type===N._function||(e=this.isAsyncFunction())){var t=this.startNode();return this.next(),e&&this.next(),this.parseFunction(t,ar|_f,!1,e)}else if(this.type===N._class){var i=this.startNode();return this.parseClass(i,"nullableID")}else{var n=this.parseMaybeAssign();return this.semicolon(),n}};Te.checkExport=function(e,t,i){e&&(typeof t!="string"&&(t=t.type==="Identifier"?t.name:t.value),Hn(e,t)&&this.raiseRecoverable(i,"Duplicate export '"+t+"'"),e[t]=!0)};Te.checkPatternExport=function(e,t){var i=t.type;if(i==="Identifier")this.checkExport(e,t,t.start);else if(i==="ObjectPattern")for(var n=0,r=t.properties;n<r.length;n+=1){var a=r[n];this.checkPatternExport(e,a)}else if(i==="ArrayPattern")for(var s=0,l=t.elements;s<l.length;s+=1){var u=l[s];u&&this.checkPatternExport(e,u)}else i==="Property"?this.checkPatternExport(e,t.value):i==="AssignmentPattern"?this.checkPatternExport(e,t.left):i==="RestElement"&&this.checkPatternExport(e,t.argument)};Te.checkVariableExport=function(e,t){if(e)for(var i=0,n=t;i<n.length;i+=1){var r=n[i];this.checkPatternExport(e,r.id)}};Te.shouldParseExportStatement=function(){return this.type.keyword==="var"||this.type.keyword==="const"||this.type.keyword==="class"||this.type.keyword==="function"||this.isLet()||this.isAsyncFunction()};Te.parseExportSpecifier=function(e){var t=this.startNode();return t.local=this.parseModuleExportName(),t.exported=this.eatContextual("as")?this.parseModuleExportName():t.local,this.checkExport(e,t.exported,t.exported.start),this.finishNode(t,"ExportSpecifier")};Te.parseExportSpecifiers=function(e){var t=[],i=!0;for(this.expect(N.braceL);!this.eat(N.braceR);){if(i)i=!1;else if(this.expect(N.comma),this.afterTrailingComma(N.braceR))break;t.push(this.parseExportSpecifier(e))}return t};Te.parseImport=function(e){return this.next(),this.type===N.string?(e.specifiers=Xw,e.source=this.parseExprAtom()):(e.specifiers=this.parseImportSpecifiers(),this.expectContextual("from"),e.source=this.type===N.string?this.parseExprAtom():this.unexpected()),this.options.ecmaVersion>=16&&(e.attributes=this.parseWithClause()),this.semicolon(),this.finishNode(e,"ImportDeclaration")};Te.parseImportSpecifier=function(){var e=this.startNode();return e.imported=this.parseModuleExportName(),this.eatContextual("as")?e.local=this.parseIdent():(this.checkUnreserved(e.imported),e.local=e.imported),this.checkLValSimple(e.local,Ti),this.finishNode(e,"ImportSpecifier")};Te.parseImportDefaultSpecifier=function(){var e=this.startNode();return e.local=this.parseIdent(),this.checkLValSimple(e.local,Ti),this.finishNode(e,"ImportDefaultSpecifier")};Te.parseImportNamespaceSpecifier=function(){var e=this.startNode();return this.next(),this.expectContextual("as"),e.local=this.parseIdent(),this.checkLValSimple(e.local,Ti),this.finishNode(e,"ImportNamespaceSpecifier")};Te.parseImportSpecifiers=function(){var e=[],t=!0;if(this.type===N.name&&(e.push(this.parseImportDefaultSpecifier()),!this.eat(N.comma)))return e;if(this.type===N.star)return e.push(this.parseImportNamespaceSpecifier()),e;for(this.expect(N.braceL);!this.eat(N.braceR);){if(t)t=!1;else if(this.expect(N.comma),this.afterTrailingComma(N.braceR))break;e.push(this.parseImportSpecifier())}return e};Te.parseWithClause=function(){var e=[];if(!this.eat(N._with))return e;this.expect(N.braceL);for(var t={},i=!0;!this.eat(N.braceR);){if(i)i=!1;else if(this.expect(N.comma),this.afterTrailingComma(N.braceR))break;var n=this.parseImportAttribute(),r=n.key.type==="Identifier"?n.key.name:n.key.value;Hn(t,r)&&this.raiseRecoverable(n.key.start,"Duplicate attribute key '"+r+"'"),t[r]=!0,e.push(n)}return e};Te.parseImportAttribute=function(){var e=this.startNode();return e.key=this.type===N.string?this.parseExprAtom():this.parseIdent(this.options.allowReserved!=="never"),this.expect(N.colon),this.type!==N.string&&this.unexpected(),e.value=this.parseExprAtom(),this.finishNode(e,"ImportAttribute")};Te.parseModuleExportName=function(){if(this.options.ecmaVersion>=13&&this.type===N.string){var e=this.parseLiteral(this.value);return $w.test(e.value)&&this.raise(e.start,"An export name cannot include a lone surrogate."),e}return this.parseIdent(!0)};Te.adaptDirectivePrologue=function(e){for(var t=0;t<e.length&&this.isDirectiveCandidate(e[t]);++t)e[t].directive=e[t].expression.raw.slice(1,-1)};Te.isDirectiveCandidate=function(e){return this.options.ecmaVersion>=5&&e.type==="ExpressionStatement"&&e.expression.type==="Literal"&&typeof e.expression.value=="string"&&(this.input[e.start]==='"'||this.input[e.start]==="'")};var Zt=vt.prototype;Zt.toAssignable=function(e,t,i){if(this.options.ecmaVersion>=6&&e)switch(e.type){case"Identifier":this.inAsync&&e.name==="await"&&this.raise(e.start,"Cannot use 'await' as identifier inside an async function");break;case"ObjectPattern":case"ArrayPattern":case"AssignmentPattern":case"RestElement":break;case"ObjectExpression":e.type="ObjectPattern",i&&this.checkPatternErrors(i,!0);for(var n=0,r=e.properties;n<r.length;n+=1){var a=r[n];this.toAssignable(a,t),a.type==="RestElement"&&(a.argument.type==="ArrayPattern"||a.argument.type==="ObjectPattern")&&this.raise(a.argument.start,"Unexpected token")}break;case"Property":e.kind!=="init"&&this.raise(e.key.start,"Object pattern can't contain getter or setter"),this.toAssignable(e.value,t);break;case"ArrayExpression":e.type="ArrayPattern",i&&this.checkPatternErrors(i,!0),this.toAssignableList(e.elements,t);break;case"SpreadElement":e.type="RestElement",this.toAssignable(e.argument,t),e.argument.type==="AssignmentPattern"&&this.raise(e.argument.start,"Rest elements cannot have a default value");break;case"AssignmentExpression":e.operator!=="="&&this.raise(e.left.end,"Only '=' operator can be used for specifying default value."),e.type="AssignmentPattern",delete e.operator,this.toAssignable(e.left,t);break;case"ParenthesizedExpression":this.toAssignable(e.expression,t,i);break;case"ChainExpression":this.raiseRecoverable(e.start,"Optional chaining cannot appear in left-hand side");break;case"MemberExpression":if(!t)break;default:this.raise(e.start,"Assigning to rvalue")}else i&&this.checkPatternErrors(i,!0);return e};Zt.toAssignableList=function(e,t){for(var i=e.length,n=0;n<i;n++){var r=e[n];r&&this.toAssignable(r,t)}if(i){var a=e[i-1];this.options.ecmaVersion===6&&t&&a&&a.type==="RestElement"&&a.argument.type!=="Identifier"&&this.unexpected(a.argument.start)}return e};Zt.parseSpread=function(e){var t=this.startNode();return this.next(),t.argument=this.parseMaybeAssign(!1,e),this.finishNode(t,"SpreadElement")};Zt.parseRestBinding=function(){var e=this.startNode();return this.next(),this.options.ecmaVersion===6&&this.type!==N.name&&this.unexpected(),e.argument=this.parseBindingAtom(),this.finishNode(e,"RestElement")};Zt.parseBindingAtom=function(){if(this.options.ecmaVersion>=6)switch(this.type){case N.bracketL:var e=this.startNode();return this.next(),e.elements=this.parseBindingList(N.bracketR,!0,!0),this.finishNode(e,"ArrayPattern");case N.braceL:return this.parseObj(!0)}return this.parseIdent()};Zt.parseBindingList=function(e,t,i,n){for(var r=[],a=!0;!this.eat(e);)if(a?a=!1:this.expect(N.comma),t&&this.type===N.comma)r.push(null);else{if(i&&this.afterTrailingComma(e))break;if(this.type===N.ellipsis){var s=this.parseRestBinding();this.parseBindingListItem(s),r.push(s),this.type===N.comma&&this.raiseRecoverable(this.start,"Comma is not permitted after the rest element"),this.expect(e);break}else r.push(this.parseAssignableListItem(n))}return r};Zt.parseAssignableListItem=function(e){var t=this.parseMaybeDefault(this.start,this.startLoc);return this.parseBindingListItem(t),t};Zt.parseBindingListItem=function(e){return e};Zt.parseMaybeDefault=function(e,t,i){if(i=i||this.parseBindingAtom(),this.options.ecmaVersion<6||!this.eat(N.eq))return i;var n=this.startNodeAt(e,t);return n.left=i,n.right=this.parseMaybeAssign(),this.finishNode(n,"AssignmentPattern")};Zt.checkLValSimple=function(e,t,i){t===void 0&&(t=Na);var n=t!==Na;switch(e.type){case"Identifier":this.strict&&this.reservedWordsStrictBind.test(e.name)&&this.raiseRecoverable(e.start,(n?"Binding ":"Assigning to ")+e.name+" in strict mode"),n&&(t===Ti&&e.name==="let"&&this.raiseRecoverable(e.start,"let is disallowed as a lexically bound name"),i&&(Hn(i,e.name)&&this.raiseRecoverable(e.start,"Argument name clash"),i[e.name]=!0),t!==If&&this.declareName(e.name,t,e.start));break;case"ChainExpression":this.raiseRecoverable(e.start,"Optional chaining cannot appear in left-hand side");break;case"MemberExpression":n&&this.raiseRecoverable(e.start,"Binding member expression");break;case"ParenthesizedExpression":return n&&this.raiseRecoverable(e.start,"Binding parenthesized expression"),this.checkLValSimple(e.expression,t,i);default:this.raise(e.start,(n?"Binding":"Assigning to")+" rvalue")}};Zt.checkLValPattern=function(e,t,i){switch(t===void 0&&(t=Na),e.type){case"ObjectPattern":for(var n=0,r=e.properties;n<r.length;n+=1){var a=r[n];this.checkLValInnerPattern(a,t,i)}break;case"ArrayPattern":for(var s=0,l=e.elements;s<l.length;s+=1){var u=l[s];u&&this.checkLValInnerPattern(u,t,i)}break;default:this.checkLValSimple(e,t,i)}};Zt.checkLValInnerPattern=function(e,t,i){switch(t===void 0&&(t=Na),e.type){case"Property":this.checkLValInnerPattern(e.value,t,i);break;case"AssignmentPattern":this.checkLValPattern(e.left,t,i);break;case"RestElement":this.checkLValPattern(e.argument,t,i);break;default:this.checkLValPattern(e,t,i)}};var ai=function(t,i,n,r,a){this.token=t,this.isExpr=!!i,this.preserveSpace=!!n,this.override=r,this.generator=!!a},ot={b_stat:new ai("{",!1),b_expr:new ai("{",!0),b_tmpl:new ai("${",!1),p_stat:new ai("(",!1),p_expr:new ai("(",!0),q_tmpl:new ai("`",!0,!0,function(e){return e.tryReadTemplateToken()}),f_stat:new ai("function",!1),f_expr:new ai("function",!0),f_expr_gen:new ai("function",!0,!1,null,!0),f_gen:new ai("function",!1,!1,null,!0)},Wn=vt.prototype;Wn.initialContext=function(){return[ot.b_stat]};Wn.curContext=function(){return this.context[this.context.length-1]};Wn.braceIsBlock=function(e){var t=this.curContext();return t===ot.f_expr||t===ot.f_stat?!0:e===N.colon&&(t===ot.b_stat||t===ot.b_expr)?!t.isExpr:e===N._return||e===N.name&&this.exprAllowed?zt.test(this.input.slice(this.lastTokEnd,this.start)):e===N._else||e===N.semi||e===N.eof||e===N.parenR||e===N.arrow?!0:e===N.braceL?t===ot.b_stat:e===N._var||e===N._const||e===N.name?!1:!this.exprAllowed};Wn.inGeneratorContext=function(){for(var e=this.context.length-1;e>=1;e--){var t=this.context[e];if(t.token==="function")return t.generator}return!1};Wn.updateContext=function(e){var t,i=this.type;i.keyword&&e===N.dot?this.exprAllowed=!1:(t=i.updateContext)?t.call(this,e):this.exprAllowed=i.beforeExpr};Wn.overrideContext=function(e){this.curContext()!==e&&(this.context[this.context.length-1]=e)};N.parenR.updateContext=N.braceR.updateContext=function(){if(this.context.length===1){this.exprAllowed=!0;return}var e=this.context.pop();e===ot.b_stat&&this.curContext().token==="function"&&(e=this.context.pop()),this.exprAllowed=!e.isExpr};N.braceL.updateContext=function(e){this.context.push(this.braceIsBlock(e)?ot.b_stat:ot.b_expr),this.exprAllowed=!0};N.dollarBraceL.updateContext=function(){this.context.push(ot.b_tmpl),this.exprAllowed=!0};N.parenL.updateContext=function(e){var t=e===N._if||e===N._for||e===N._with||e===N._while;this.context.push(t?ot.p_stat:ot.p_expr),this.exprAllowed=!0};N.incDec.updateContext=function(){};N._function.updateContext=N._class.updateContext=function(e){e.beforeExpr&&e!==N._else&&!(e===N.semi&&this.curContext()!==ot.p_stat)&&!(e===N._return&&zt.test(this.input.slice(this.lastTokEnd,this.start)))&&!((e===N.colon||e===N.braceL)&&this.curContext()===ot.b_stat)?this.context.push(ot.f_expr):this.context.push(ot.f_stat),this.exprAllowed=!1};N.colon.updateContext=function(){this.curContext().token==="function"&&this.context.pop(),this.exprAllowed=!0};N.backQuote.updateContext=function(){this.curContext()===ot.q_tmpl?this.context.pop():this.context.push(ot.q_tmpl),this.exprAllowed=!1};N.star.updateContext=function(e){if(e===N._function){var t=this.context.length-1;this.context[t]===ot.f_expr?this.context[t]=ot.f_expr_gen:this.context[t]=ot.f_gen}this.exprAllowed=!0};N.name.updateContext=function(e){var t=!1;this.options.ecmaVersion>=6&&e!==N.dot&&(this.value==="of"&&!this.exprAllowed||this.value==="yield"&&this.inGeneratorContext())&&(t=!0),this.exprAllowed=t};var je=vt.prototype;je.checkPropClash=function(e,t,i){if(!(this.options.ecmaVersion>=9&&e.type==="SpreadElement")&&!(this.options.ecmaVersion>=6&&(e.computed||e.method||e.shorthand))){var n=e.key,r;switch(n.type){case"Identifier":r=n.name;break;case"Literal":r=String(n.value);break;default:return}var a=e.kind;if(this.options.ecmaVersion>=6){r==="__proto__"&&a==="init"&&(t.proto&&(i?i.doubleProto<0&&(i.doubleProto=n.start):this.raiseRecoverable(n.start,"Redefinition of __proto__ property")),t.proto=!0);return}r="$"+r;var s=t[r];if(s){var l;a==="init"?l=this.strict&&s.init||s.get||s.set:l=s.init||s[a],l&&this.raiseRecoverable(n.start,"Redefinition of property")}else s=t[r]={init:!1,get:!1,set:!1};s[a]=!0}};je.parseExpression=function(e,t){var i=this.start,n=this.startLoc,r=this.parseMaybeAssign(e,t);if(this.type===N.comma){var a=this.startNodeAt(i,n);for(a.expressions=[r];this.eat(N.comma);)a.expressions.push(this.parseMaybeAssign(e,t));return this.finishNode(a,"SequenceExpression")}return r};je.parseMaybeAssign=function(e,t,i){if(this.isContextual("yield")){if(this.inGenerator)return this.parseYield(e);this.exprAllowed=!1}var n=!1,r=-1,a=-1,s=-1;t?(r=t.parenthesizedAssign,a=t.trailingComma,s=t.doubleProto,t.parenthesizedAssign=t.trailingComma=-1):(t=new Za,n=!0);var l=this.start,u=this.startLoc;(this.type===N.parenL||this.type===N.name)&&(this.potentialArrowAt=this.start,this.potentialArrowInForAwait=e==="await");var c=this.parseMaybeConditional(e,t);if(i&&(c=i.call(this,c,l,u)),this.type.isAssign){var h=this.startNodeAt(l,u);return h.operator=this.value,this.type===N.eq&&(c=this.toAssignable(c,!1,t)),n||(t.parenthesizedAssign=t.trailingComma=t.doubleProto=-1),t.shorthandAssign>=c.start&&(t.shorthandAssign=-1),this.type===N.eq?this.checkLValPattern(c):this.checkLValSimple(c),h.left=c,this.next(),h.right=this.parseMaybeAssign(e),s>-1&&(t.doubleProto=s),this.finishNode(h,"AssignmentExpression")}else n&&this.checkExpressionErrors(t,!0);return r>-1&&(t.parenthesizedAssign=r),a>-1&&(t.trailingComma=a),c};je.parseMaybeConditional=function(e,t){var i=this.start,n=this.startLoc,r=this.parseExprOps(e,t);if(this.checkExpressionErrors(t))return r;if(this.eat(N.question)){var a=this.startNodeAt(i,n);return a.test=r,a.consequent=this.parseMaybeAssign(),this.expect(N.colon),a.alternate=this.parseMaybeAssign(e),this.finishNode(a,"ConditionalExpression")}return r};je.parseExprOps=function(e,t){var i=this.start,n=this.startLoc,r=this.parseMaybeUnary(t,!1,!1,e);return this.checkExpressionErrors(t)||r.start===i&&r.type==="ArrowFunctionExpression"?r:this.parseExprOp(r,i,n,-1,e)};je.parseExprOp=function(e,t,i,n,r){var a=this.type.binop;if(a!=null&&(!r||this.type!==N._in)&&a>n){var s=this.type===N.logicalOR||this.type===N.logicalAND,l=this.type===N.coalesce;l&&(a=N.logicalAND.binop);var u=this.value;this.next();var c=this.start,h=this.startLoc,p=this.parseExprOp(this.parseMaybeUnary(null,!1,!1,r),c,h,a,r),g=this.buildBinary(t,i,e,p,u,s||l);return(s&&this.type===N.coalesce||l&&(this.type===N.logicalOR||this.type===N.logicalAND))&&this.raiseRecoverable(this.start,"Logical expressions and coalesce expressions cannot be mixed. Wrap either by parentheses"),this.parseExprOp(g,t,i,n,r)}return e};je.buildBinary=function(e,t,i,n,r,a){n.type==="PrivateIdentifier"&&this.raise(n.start,"Private identifier can only be left side of binary expression");var s=this.startNodeAt(e,t);return s.left=i,s.operator=r,s.right=n,this.finishNode(s,a?"LogicalExpression":"BinaryExpression")};je.parseMaybeUnary=function(e,t,i,n){var r=this.start,a=this.startLoc,s;if(this.isContextual("await")&&this.canAwait)s=this.parseAwait(n),t=!0;else if(this.type.prefix){var l=this.startNode(),u=this.type===N.incDec;l.operator=this.value,l.prefix=!0,this.next(),l.argument=this.parseMaybeUnary(null,!0,u,n),this.checkExpressionErrors(e,!0),u?this.checkLValSimple(l.argument):this.strict&&l.operator==="delete"&&Af(l.argument)?this.raiseRecoverable(l.start,"Deleting local variable in strict mode"):l.operator==="delete"&&wo(l.argument)?this.raiseRecoverable(l.start,"Private fields can not be deleted"):t=!0,s=this.finishNode(l,u?"UpdateExpression":"UnaryExpression")}else if(!t&&this.type===N.privateId)(n||this.privateNameStack.length===0)&&this.options.checkPrivateFields&&this.unexpected(),s=this.parsePrivateIdent(),this.type!==N._in&&this.unexpected();else{if(s=this.parseExprSubscripts(e,n),this.checkExpressionErrors(e))return s;for(;this.type.postfix&&!this.canInsertSemicolon();){var c=this.startNodeAt(r,a);c.operator=this.value,c.prefix=!1,c.argument=s,this.checkLValSimple(s),this.next(),s=this.finishNode(c,"UpdateExpression")}}if(!i&&this.eat(N.starstar))if(t)this.unexpected(this.lastTokStart);else return this.buildBinary(r,a,s,this.parseMaybeUnary(null,!1,!1,n),"**",!1);else return s};function Af(e){return e.type==="Identifier"||e.type==="ParenthesizedExpression"&&Af(e.expression)}function wo(e){return e.type==="MemberExpression"&&e.property.type==="PrivateIdentifier"||e.type==="ChainExpression"&&wo(e.expression)||e.type==="ParenthesizedExpression"&&wo(e.expression)}je.parseExprSubscripts=function(e,t){var i=this.start,n=this.startLoc,r=this.parseExprAtom(e,t);if(r.type==="ArrowFunctionExpression"&&this.input.slice(this.lastTokStart,this.lastTokEnd)!==")")return r;var a=this.parseSubscripts(r,i,n,!1,t);return e&&a.type==="MemberExpression"&&(e.parenthesizedAssign>=a.start&&(e.parenthesizedAssign=-1),e.parenthesizedBind>=a.start&&(e.parenthesizedBind=-1),e.trailingComma>=a.start&&(e.trailingComma=-1)),a};je.parseSubscripts=function(e,t,i,n,r){for(var a=this.options.ecmaVersion>=8&&e.type==="Identifier"&&e.name==="async"&&this.lastTokEnd===e.end&&!this.canInsertSemicolon()&&e.end-e.start===5&&this.potentialArrowAt===e.start,s=!1;;){var l=this.parseSubscript(e,t,i,n,a,s,r);if(l.optional&&(s=!0),l===e||l.type==="ArrowFunctionExpression"){if(s){var u=this.startNodeAt(t,i);u.expression=l,l=this.finishNode(u,"ChainExpression")}return l}e=l}};je.shouldParseAsyncArrow=function(){return!this.canInsertSemicolon()&&this.eat(N.arrow)};je.parseSubscriptAsyncArrow=function(e,t,i,n){return this.parseArrowExpression(this.startNodeAt(e,t),i,!0,n)};je.parseSubscript=function(e,t,i,n,r,a,s){var l=this.options.ecmaVersion>=11,u=l&&this.eat(N.questionDot);n&&u&&this.raise(this.lastTokStart,"Optional chaining cannot appear in the callee of new expressions");var c=this.eat(N.bracketL);if(c||u&&this.type!==N.parenL&&this.type!==N.backQuote||this.eat(N.dot)){var h=this.startNodeAt(t,i);h.object=e,c?(h.property=this.parseExpression(),this.expect(N.bracketR)):this.type===N.privateId&&e.type!=="Super"?h.property=this.parsePrivateIdent():h.property=this.parseIdent(this.options.allowReserved!=="never"),h.computed=!!c,l&&(h.optional=u),e=this.finishNode(h,"MemberExpression")}else if(!n&&this.eat(N.parenL)){var p=new Za,g=this.yieldPos,m=this.awaitPos,E=this.awaitIdentPos;this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0;var v=this.parseExprList(N.parenR,this.options.ecmaVersion>=8,!1,p);if(r&&!u&&this.shouldParseAsyncArrow())return this.checkPatternErrors(p,!1),this.checkYieldAwaitInDefaultParams(),this.awaitIdentPos>0&&this.raise(this.awaitIdentPos,"Cannot use 'await' as identifier inside an async function"),this.yieldPos=g,this.awaitPos=m,this.awaitIdentPos=E,this.parseSubscriptAsyncArrow(t,i,v,s);this.checkExpressionErrors(p,!0),this.yieldPos=g||this.yieldPos,this.awaitPos=m||this.awaitPos,this.awaitIdentPos=E||this.awaitIdentPos;var k=this.startNodeAt(t,i);k.callee=e,k.arguments=v,l&&(k.optional=u),e=this.finishNode(k,"CallExpression")}else if(this.type===N.backQuote){(u||a)&&this.raise(this.start,"Optional chaining cannot appear in the tag of tagged template expressions");var S=this.startNodeAt(t,i);S.tag=e,S.quasi=this.parseTemplate({isTagged:!0}),e=this.finishNode(S,"TaggedTemplateExpression")}return e};je.parseExprAtom=function(e,t,i){this.type===N.slash&&this.readRegexp();var n,r=this.potentialArrowAt===this.start;switch(this.type){case N._super:return this.allowSuper||this.raise(this.start,"'super' keyword outside a method"),n=this.startNode(),this.next(),this.type===N.parenL&&!this.allowDirectSuper&&this.raise(n.start,"super() call outside constructor of a subclass"),this.type!==N.dot&&this.type!==N.bracketL&&this.type!==N.parenL&&this.unexpected(),this.finishNode(n,"Super");case N._this:return n=this.startNode(),this.next(),this.finishNode(n,"ThisExpression");case N.name:var a=this.start,s=this.startLoc,l=this.containsEsc,u=this.parseIdent(!1);if(this.options.ecmaVersion>=8&&!l&&u.name==="async"&&!this.canInsertSemicolon()&&this.eat(N._function))return this.overrideContext(ot.f_expr),this.parseFunction(this.startNodeAt(a,s),0,!1,!0,t);if(r&&!this.canInsertSemicolon()){if(this.eat(N.arrow))return this.parseArrowExpression(this.startNodeAt(a,s),[u],!1,t);if(this.options.ecmaVersion>=8&&u.name==="async"&&this.type===N.name&&!l&&(!this.potentialArrowInForAwait||this.value!=="of"||this.containsEsc))return u=this.parseIdent(!1),(this.canInsertSemicolon()||!this.eat(N.arrow))&&this.unexpected(),this.parseArrowExpression(this.startNodeAt(a,s),[u],!0,t)}return u;case N.regexp:var c=this.value;return n=this.parseLiteral(c.value),n.regex={pattern:c.pattern,flags:c.flags},n;case N.num:case N.string:return this.parseLiteral(this.value);case N._null:case N._true:case N._false:return n=this.startNode(),n.value=this.type===N._null?null:this.type===N._true,n.raw=this.type.keyword,this.next(),this.finishNode(n,"Literal");case N.parenL:var h=this.start,p=this.parseParenAndDistinguishExpression(r,t);return e&&(e.parenthesizedAssign<0&&!this.isSimpleAssignTarget(p)&&(e.parenthesizedAssign=h),e.parenthesizedBind<0&&(e.parenthesizedBind=h)),p;case N.bracketL:return n=this.startNode(),this.next(),n.elements=this.parseExprList(N.bracketR,!0,!0,e),this.finishNode(n,"ArrayExpression");case N.braceL:return this.overrideContext(ot.b_expr),this.parseObj(!1,e);case N._function:return n=this.startNode(),this.next(),this.parseFunction(n,0);case N._class:return this.parseClass(this.startNode(),!1);case N._new:return this.parseNew();case N.backQuote:return this.parseTemplate();case N._import:return this.options.ecmaVersion>=11?this.parseExprImport(i):this.unexpected();default:return this.parseExprAtomDefault()}};je.parseExprAtomDefault=function(){this.unexpected()};je.parseExprImport=function(e){var t=this.startNode();if(this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword import"),this.next(),this.type===N.parenL&&!e)return this.parseDynamicImport(t);if(this.type===N.dot){var i=this.startNodeAt(t.start,t.loc&&t.loc.start);return i.name="import",t.meta=this.finishNode(i,"Identifier"),this.parseImportMeta(t)}else this.unexpected()};je.parseDynamicImport=function(e){if(this.next(),e.source=this.parseMaybeAssign(),this.options.ecmaVersion>=16)this.eat(N.parenR)?e.options=null:(this.expect(N.comma),this.afterTrailingComma(N.parenR)?e.options=null:(e.options=this.parseMaybeAssign(),this.eat(N.parenR)||(this.expect(N.comma),this.afterTrailingComma(N.parenR)||this.unexpected())));else if(!this.eat(N.parenR)){var t=this.start;this.eat(N.comma)&&this.eat(N.parenR)?this.raiseRecoverable(t,"Trailing comma is not allowed in import()"):this.unexpected(t)}return this.finishNode(e,"ImportExpression")};je.parseImportMeta=function(e){this.next();var t=this.containsEsc;return e.property=this.parseIdent(!0),e.property.name!=="meta"&&this.raiseRecoverable(e.property.start,"The only valid meta property for import is 'import.meta'"),t&&this.raiseRecoverable(e.start,"'import.meta' must not contain escaped characters"),this.options.sourceType!=="module"&&!this.options.allowImportExportEverywhere&&this.raiseRecoverable(e.start,"Cannot use 'import.meta' outside a module"),this.finishNode(e,"MetaProperty")};je.parseLiteral=function(e){var t=this.startNode();return t.value=e,t.raw=this.input.slice(this.start,this.end),t.raw.charCodeAt(t.raw.length-1)===110&&(t.bigint=t.value!=null?t.value.toString():t.raw.slice(0,-1).replace(/_/g,"")),this.next(),this.finishNode(t,"Literal")};je.parseParenExpression=function(){this.expect(N.parenL);var e=this.parseExpression();return this.expect(N.parenR),e};je.shouldParseArrow=function(e){return!this.canInsertSemicolon()};je.parseParenAndDistinguishExpression=function(e,t){var i=this.start,n=this.startLoc,r,a=this.options.ecmaVersion>=8;if(this.options.ecmaVersion>=6){this.next();var s=this.start,l=this.startLoc,u=[],c=!0,h=!1,p=new Za,g=this.yieldPos,m=this.awaitPos,E;for(this.yieldPos=0,this.awaitPos=0;this.type!==N.parenR;)if(c?c=!1:this.expect(N.comma),a&&this.afterTrailingComma(N.parenR,!0)){h=!0;break}else if(this.type===N.ellipsis){E=this.start,u.push(this.parseParenItem(this.parseRestBinding())),this.type===N.comma&&this.raiseRecoverable(this.start,"Comma is not permitted after the rest element");break}else u.push(this.parseMaybeAssign(!1,p,this.parseParenItem));var v=this.lastTokEnd,k=this.lastTokEndLoc;if(this.expect(N.parenR),e&&this.shouldParseArrow(u)&&this.eat(N.arrow))return this.checkPatternErrors(p,!1),this.checkYieldAwaitInDefaultParams(),this.yieldPos=g,this.awaitPos=m,this.parseParenArrowList(i,n,u,t);(!u.length||h)&&this.unexpected(this.lastTokStart),E&&this.unexpected(E),this.checkExpressionErrors(p,!0),this.yieldPos=g||this.yieldPos,this.awaitPos=m||this.awaitPos,u.length>1?(r=this.startNodeAt(s,l),r.expressions=u,this.finishNodeAt(r,"SequenceExpression",v,k)):r=u[0]}else r=this.parseParenExpression();if(this.options.preserveParens){var S=this.startNodeAt(i,n);return S.expression=r,this.finishNode(S,"ParenthesizedExpression")}else return r};je.parseParenItem=function(e){return e};je.parseParenArrowList=function(e,t,i,n){return this.parseArrowExpression(this.startNodeAt(e,t),i,!1,n)};var t1=[];je.parseNew=function(){this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword new");var e=this.startNode();if(this.next(),this.options.ecmaVersion>=6&&this.type===N.dot){var t=this.startNodeAt(e.start,e.loc&&e.loc.start);t.name="new",e.meta=this.finishNode(t,"Identifier"),this.next();var i=this.containsEsc;return e.property=this.parseIdent(!0),e.property.name!=="target"&&this.raiseRecoverable(e.property.start,"The only valid meta property for new is 'new.target'"),i&&this.raiseRecoverable(e.start,"'new.target' must not contain escaped characters"),this.allowNewDotTarget||this.raiseRecoverable(e.start,"'new.target' can only be used in functions and class static block"),this.finishNode(e,"MetaProperty")}var n=this.start,r=this.startLoc;return e.callee=this.parseSubscripts(this.parseExprAtom(null,!1,!0),n,r,!0,!1),this.eat(N.parenL)?e.arguments=this.parseExprList(N.parenR,this.options.ecmaVersion>=8,!1):e.arguments=t1,this.finishNode(e,"NewExpression")};je.parseTemplateElement=function(e){var t=e.isTagged,i=this.startNode();return this.type===N.invalidTemplate?(t||this.raiseRecoverable(this.start,"Bad escape sequence in untagged template literal"),i.value={raw:this.value.replace(/\r\n?/g,`
70
- `),cooked:null}):i.value={raw:this.input.slice(this.start,this.end).replace(/\r\n?/g,`
71
- `),cooked:this.value},this.next(),i.tail=this.type===N.backQuote,this.finishNode(i,"TemplateElement")};je.parseTemplate=function(e){e===void 0&&(e={});var t=e.isTagged;t===void 0&&(t=!1);var i=this.startNode();this.next(),i.expressions=[];var n=this.parseTemplateElement({isTagged:t});for(i.quasis=[n];!n.tail;)this.type===N.eof&&this.raise(this.pos,"Unterminated template literal"),this.expect(N.dollarBraceL),i.expressions.push(this.parseExpression()),this.expect(N.braceR),i.quasis.push(n=this.parseTemplateElement({isTagged:t}));return this.next(),this.finishNode(i,"TemplateLiteral")};je.isAsyncProp=function(e){return!e.computed&&e.key.type==="Identifier"&&e.key.name==="async"&&(this.type===N.name||this.type===N.num||this.type===N.string||this.type===N.bracketL||this.type.keyword||this.options.ecmaVersion>=9&&this.type===N.star)&&!zt.test(this.input.slice(this.lastTokEnd,this.start))};je.parseObj=function(e,t){var i=this.startNode(),n=!0,r={};for(i.properties=[],this.next();!this.eat(N.braceR);){if(n)n=!1;else if(this.expect(N.comma),this.options.ecmaVersion>=5&&this.afterTrailingComma(N.braceR))break;var a=this.parseProperty(e,t);e||this.checkPropClash(a,r,t),i.properties.push(a)}return this.finishNode(i,e?"ObjectPattern":"ObjectExpression")};je.parseProperty=function(e,t){var i=this.startNode(),n,r,a,s;if(this.options.ecmaVersion>=9&&this.eat(N.ellipsis))return e?(i.argument=this.parseIdent(!1),this.type===N.comma&&this.raiseRecoverable(this.start,"Comma is not permitted after the rest element"),this.finishNode(i,"RestElement")):(i.argument=this.parseMaybeAssign(!1,t),this.type===N.comma&&t&&t.trailingComma<0&&(t.trailingComma=this.start),this.finishNode(i,"SpreadElement"));this.options.ecmaVersion>=6&&(i.method=!1,i.shorthand=!1,(e||t)&&(a=this.start,s=this.startLoc),e||(n=this.eat(N.star)));var l=this.containsEsc;return this.parsePropertyName(i),!e&&!l&&this.options.ecmaVersion>=8&&!n&&this.isAsyncProp(i)?(r=!0,n=this.options.ecmaVersion>=9&&this.eat(N.star),this.parsePropertyName(i)):r=!1,this.parsePropertyValue(i,e,n,r,a,s,t,l),this.finishNode(i,"Property")};je.parseGetterSetter=function(e){var t=e.key.name;this.parsePropertyName(e),e.value=this.parseMethod(!1),e.kind=t;var i=e.kind==="get"?0:1;if(e.value.params.length!==i){var n=e.value.start;e.kind==="get"?this.raiseRecoverable(n,"getter should have no params"):this.raiseRecoverable(n,"setter should have exactly one param")}else e.kind==="set"&&e.value.params[0].type==="RestElement"&&this.raiseRecoverable(e.value.params[0].start,"Setter cannot use rest params")};je.parsePropertyValue=function(e,t,i,n,r,a,s,l){(i||n)&&this.type===N.colon&&this.unexpected(),this.eat(N.colon)?(e.value=t?this.parseMaybeDefault(this.start,this.startLoc):this.parseMaybeAssign(!1,s),e.kind="init"):this.options.ecmaVersion>=6&&this.type===N.parenL?(t&&this.unexpected(),e.method=!0,e.value=this.parseMethod(i,n),e.kind="init"):!t&&!l&&this.options.ecmaVersion>=5&&!e.computed&&e.key.type==="Identifier"&&(e.key.name==="get"||e.key.name==="set")&&this.type!==N.comma&&this.type!==N.braceR&&this.type!==N.eq?((i||n)&&this.unexpected(),this.parseGetterSetter(e)):this.options.ecmaVersion>=6&&!e.computed&&e.key.type==="Identifier"?((i||n)&&this.unexpected(),this.checkUnreserved(e.key),e.key.name==="await"&&!this.awaitIdentPos&&(this.awaitIdentPos=r),t?e.value=this.parseMaybeDefault(r,a,this.copyNode(e.key)):this.type===N.eq&&s?(s.shorthandAssign<0&&(s.shorthandAssign=this.start),e.value=this.parseMaybeDefault(r,a,this.copyNode(e.key))):e.value=this.copyNode(e.key),e.kind="init",e.shorthand=!0):this.unexpected()};je.parsePropertyName=function(e){if(this.options.ecmaVersion>=6){if(this.eat(N.bracketL))return e.computed=!0,e.key=this.parseMaybeAssign(),this.expect(N.bracketR),e.key;e.computed=!1}return e.key=this.type===N.num||this.type===N.string?this.parseExprAtom():this.parseIdent(this.options.allowReserved!=="never")};je.initFunction=function(e){e.id=null,this.options.ecmaVersion>=6&&(e.generator=e.expression=!1),this.options.ecmaVersion>=8&&(e.async=!1)};je.parseMethod=function(e,t,i){var n=this.startNode(),r=this.yieldPos,a=this.awaitPos,s=this.awaitIdentPos;return this.initFunction(n),this.options.ecmaVersion>=6&&(n.generator=e),this.options.ecmaVersion>=8&&(n.async=!!t),this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(jl(t,n.generator)|Ya|(i?Sf:0)),this.expect(N.parenL),n.params=this.parseBindingList(N.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams(),this.parseFunctionBody(n,!1,!0,!1),this.yieldPos=r,this.awaitPos=a,this.awaitIdentPos=s,this.finishNode(n,"FunctionExpression")};je.parseArrowExpression=function(e,t,i,n){var r=this.yieldPos,a=this.awaitPos,s=this.awaitIdentPos;return this.enterScope(jl(i,!1)|Fl),this.initFunction(e),this.options.ecmaVersion>=8&&(e.async=!!i),this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,e.params=this.toAssignableList(t,!0),this.parseFunctionBody(e,!0,!1,n),this.yieldPos=r,this.awaitPos=a,this.awaitIdentPos=s,this.finishNode(e,"ArrowFunctionExpression")};je.parseFunctionBody=function(e,t,i,n){var r=t&&this.type!==N.braceL,a=this.strict,s=!1;if(r)e.body=this.parseMaybeAssign(n),e.expression=!0,this.checkParams(e,!1);else{var l=this.options.ecmaVersion>=7&&!this.isSimpleParamList(e.params);(!a||l)&&(s=this.strictDirective(this.end),s&&l&&this.raiseRecoverable(e.start,"Illegal 'use strict' directive in function with non-simple parameter list"));var u=this.labels;this.labels=[],s&&(this.strict=!0),this.checkParams(e,!a&&!s&&!t&&!i&&this.isSimpleParamList(e.params)),this.strict&&e.id&&this.checkLValSimple(e.id,If),e.body=this.parseBlock(!1,void 0,s&&!a),e.expression=!1,this.adaptDirectivePrologue(e.body.body),this.labels=u}this.exitScope()};je.isSimpleParamList=function(e){for(var t=0,i=e;t<i.length;t+=1){var n=i[t];if(n.type!=="Identifier")return!1}return!0};je.checkParams=function(e,t){for(var i=Object.create(null),n=0,r=e.params;n<r.length;n+=1){var a=r[n];this.checkLValInnerPattern(a,zl,t?null:i)}};je.parseExprList=function(e,t,i,n){for(var r=[],a=!0;!this.eat(e);){if(a)a=!1;else if(this.expect(N.comma),t&&this.afterTrailingComma(e))break;var s=void 0;i&&this.type===N.comma?s=null:this.type===N.ellipsis?(s=this.parseSpread(n),n&&this.type===N.comma&&n.trailingComma<0&&(n.trailingComma=this.start)):s=this.parseMaybeAssign(!1,n),r.push(s)}return r};je.checkUnreserved=function(e){var t=e.start,i=e.end,n=e.name;if(this.inGenerator&&n==="yield"&&this.raiseRecoverable(t,"Cannot use 'yield' as identifier inside a generator"),this.inAsync&&n==="await"&&this.raiseRecoverable(t,"Cannot use 'await' as identifier inside an async function"),!(this.currentThisScope().flags&Qa)&&n==="arguments"&&this.raiseRecoverable(t,"Cannot use 'arguments' in class field initializer"),this.inClassStaticBlock&&(n==="arguments"||n==="await")&&this.raise(t,"Cannot use "+n+" in class static initialization block"),this.keywords.test(n)&&this.raise(t,"Unexpected keyword '"+n+"'"),!(this.options.ecmaVersion<6&&this.input.slice(t,i).indexOf("\\")!==-1)){var r=this.strict?this.reservedWordsStrict:this.reservedWords;r.test(n)&&(!this.inAsync&&n==="await"&&this.raiseRecoverable(t,"Cannot use keyword 'await' outside an async function"),this.raiseRecoverable(t,"The keyword '"+n+"' is reserved"))}};je.parseIdent=function(e){var t=this.parseIdentNode();return this.next(!!e),this.finishNode(t,"Identifier"),e||(this.checkUnreserved(t),t.name==="await"&&!this.awaitIdentPos&&(this.awaitIdentPos=t.start)),t};je.parseIdentNode=function(){var e=this.startNode();return this.type===N.name?e.name=this.value:this.type.keyword?(e.name=this.type.keyword,(e.name==="class"||e.name==="function")&&(this.lastTokEnd!==this.lastTokStart+1||this.input.charCodeAt(this.lastTokStart)!==46)&&this.context.pop(),this.type=N.name):this.unexpected(),e};je.parsePrivateIdent=function(){var e=this.startNode();return this.type===N.privateId?e.name=this.value:this.unexpected(),this.next(),this.finishNode(e,"PrivateIdentifier"),this.options.checkPrivateFields&&(this.privateNameStack.length===0?this.raise(e.start,"Private field '#"+e.name+"' must be declared in an enclosing class"):this.privateNameStack[this.privateNameStack.length-1].used.push(e)),e};je.parseYield=function(e){this.yieldPos||(this.yieldPos=this.start);var t=this.startNode();return this.next(),this.type===N.semi||this.canInsertSemicolon()||this.type!==N.star&&!this.type.startsExpr?(t.delegate=!1,t.argument=null):(t.delegate=this.eat(N.star),t.argument=this.parseMaybeAssign(e)),this.finishNode(t,"YieldExpression")};je.parseAwait=function(e){this.awaitPos||(this.awaitPos=this.start);var t=this.startNode();return this.next(),t.argument=this.parseMaybeUnary(null,!0,!1,e),this.finishNode(t,"AwaitExpression")};var Oa=vt.prototype;Oa.raise=function(e,t){var i=yf(this.input,e);t+=" ("+i.line+":"+i.column+")",this.sourceFile&&(t+=" in "+this.sourceFile);var n=new SyntaxError(t);throw n.pos=e,n.loc=i,n.raisedAt=this.pos,n};Oa.raiseRecoverable=Oa.raise;Oa.curPosition=function(){if(this.options.locations)return new fr(this.curLine,this.pos-this.lineStart)};var $i=vt.prototype,i1=function(t){this.flags=t,this.var=[],this.lexical=[],this.functions=[]};$i.enterScope=function(e){this.scopeStack.push(new i1(e))};$i.exitScope=function(){this.scopeStack.pop()};$i.treatFunctionsAsVarInScope=function(e){return e.flags&Kn||!this.inModule&&e.flags&gr};$i.declareName=function(e,t,i){var n=!1;if(t===Ti){var r=this.currentScope();n=r.lexical.indexOf(e)>-1||r.functions.indexOf(e)>-1||r.var.indexOf(e)>-1,r.lexical.push(e),this.inModule&&r.flags&gr&&delete this.undefinedExports[e]}else if(t===Cf){var a=this.currentScope();a.lexical.push(e)}else if(t===Ef){var s=this.currentScope();this.treatFunctionsAsVar?n=s.lexical.indexOf(e)>-1:n=s.lexical.indexOf(e)>-1||s.var.indexOf(e)>-1,s.functions.push(e)}else for(var l=this.scopeStack.length-1;l>=0;--l){var u=this.scopeStack[l];if(u.lexical.indexOf(e)>-1&&!(u.flags&kf&&u.lexical[0]===e)||!this.treatFunctionsAsVarInScope(u)&&u.functions.indexOf(e)>-1){n=!0;break}if(u.var.push(e),this.inModule&&u.flags&gr&&delete this.undefinedExports[e],u.flags&Qa)break}n&&this.raiseRecoverable(i,"Identifier '"+e+"' has already been declared")};$i.checkLocalExport=function(e){this.scopeStack[0].lexical.indexOf(e.name)===-1&&this.scopeStack[0].var.indexOf(e.name)===-1&&(this.undefinedExports[e.name]=e)};$i.currentScope=function(){return this.scopeStack[this.scopeStack.length-1]};$i.currentVarScope=function(){for(var e=this.scopeStack.length-1;;e--){var t=this.scopeStack[e];if(t.flags&(Qa|kr|cn))return t}};$i.currentThisScope=function(){for(var e=this.scopeStack.length-1;;e--){var t=this.scopeStack[e];if(t.flags&(Qa|kr|cn)&&!(t.flags&Fl))return t}};var Xa=function(t,i,n){this.type="",this.start=i,this.end=0,t.options.locations&&(this.loc=new Ja(t,n)),t.options.directSourceFile&&(this.sourceFile=t.options.directSourceFile),t.options.ranges&&(this.range=[i,0])},Sr=vt.prototype;Sr.startNode=function(){return new Xa(this,this.start,this.startLoc)};Sr.startNodeAt=function(e,t){return new Xa(this,e,t)};function Nf(e,t,i,n){return e.type=t,e.end=i,this.options.locations&&(e.loc.end=n),this.options.ranges&&(e.range[1]=i),e}Sr.finishNode=function(e,t){return Nf.call(this,e,t,this.lastTokEnd,this.lastTokEndLoc)};Sr.finishNodeAt=function(e,t,i,n){return Nf.call(this,e,t,i,n)};Sr.copyNode=function(e){var t=new Xa(this,e.start,this.startLoc);for(var i in e)t[i]=e[i];return t};var n1="Gara Garay Gukh Gurung_Khema Hrkt Katakana_Or_Hiragana Kawi Kirat_Rai Krai Nag_Mundari Nagm Ol_Onal Onao Sunu Sunuwar Todhri Todr Tulu_Tigalari Tutg Unknown Zzzz",Tf="ASCII ASCII_Hex_Digit AHex Alphabetic Alpha Any Assigned Bidi_Control Bidi_C Bidi_Mirrored Bidi_M Case_Ignorable CI Cased Changes_When_Casefolded CWCF Changes_When_Casemapped CWCM Changes_When_Lowercased CWL Changes_When_NFKC_Casefolded CWKCF Changes_When_Titlecased CWT Changes_When_Uppercased CWU Dash Default_Ignorable_Code_Point DI Deprecated Dep Diacritic Dia Emoji Emoji_Component Emoji_Modifier Emoji_Modifier_Base Emoji_Presentation Extender Ext Grapheme_Base Gr_Base Grapheme_Extend Gr_Ext Hex_Digit Hex IDS_Binary_Operator IDSB IDS_Trinary_Operator IDST ID_Continue IDC ID_Start IDS Ideographic Ideo Join_Control Join_C Logical_Order_Exception LOE Lowercase Lower Math Noncharacter_Code_Point NChar Pattern_Syntax Pat_Syn Pattern_White_Space Pat_WS Quotation_Mark QMark Radical Regional_Indicator RI Sentence_Terminal STerm Soft_Dotted SD Terminal_Punctuation Term Unified_Ideograph UIdeo Uppercase Upper Variation_Selector VS White_Space space XID_Continue XIDC XID_Start XIDS",Of=Tf+" Extended_Pictographic",Pf=Of,Rf=Pf+" EBase EComp EMod EPres ExtPict",Mf=Rf,r1=Mf,a1={9:Tf,10:Of,11:Pf,12:Rf,13:Mf,14:r1},s1="Basic_Emoji Emoji_Keycap_Sequence RGI_Emoji_Modifier_Sequence RGI_Emoji_Flag_Sequence RGI_Emoji_Tag_Sequence RGI_Emoji_ZWJ_Sequence RGI_Emoji",o1={9:"",10:"",11:"",12:"",13:"",14:s1},Dc="Cased_Letter LC Close_Punctuation Pe Connector_Punctuation Pc Control Cc cntrl Currency_Symbol Sc Dash_Punctuation Pd Decimal_Number Nd digit Enclosing_Mark Me Final_Punctuation Pf Format Cf Initial_Punctuation Pi Letter L Letter_Number Nl Line_Separator Zl Lowercase_Letter Ll Mark M Combining_Mark Math_Symbol Sm Modifier_Letter Lm Modifier_Symbol Sk Nonspacing_Mark Mn Number N Open_Punctuation Ps Other C Other_Letter Lo Other_Number No Other_Punctuation Po Other_Symbol So Paragraph_Separator Zp Private_Use Co Punctuation P punct Separator Z Space_Separator Zs Spacing_Mark Mc Surrogate Cs Symbol S Titlecase_Letter Lt Unassigned Cn Uppercase_Letter Lu",Lf="Adlam Adlm Ahom Anatolian_Hieroglyphs Hluw Arabic Arab Armenian Armn Avestan Avst Balinese Bali Bamum Bamu Bassa_Vah Bass Batak Batk Bengali Beng Bhaiksuki Bhks Bopomofo Bopo Brahmi Brah Braille Brai Buginese Bugi Buhid Buhd Canadian_Aboriginal Cans Carian Cari Caucasian_Albanian Aghb Chakma Cakm Cham Cham Cherokee Cher Common Zyyy Coptic Copt Qaac Cuneiform Xsux Cypriot Cprt Cyrillic Cyrl Deseret Dsrt Devanagari Deva Duployan Dupl Egyptian_Hieroglyphs Egyp Elbasan Elba Ethiopic Ethi Georgian Geor Glagolitic Glag Gothic Goth Grantha Gran Greek Grek Gujarati Gujr Gurmukhi Guru Han Hani Hangul Hang Hanunoo Hano Hatran Hatr Hebrew Hebr Hiragana Hira Imperial_Aramaic Armi Inherited Zinh Qaai Inscriptional_Pahlavi Phli Inscriptional_Parthian Prti Javanese Java Kaithi Kthi Kannada Knda Katakana Kana Kayah_Li Kali Kharoshthi Khar Khmer Khmr Khojki Khoj Khudawadi Sind Lao Laoo Latin Latn Lepcha Lepc Limbu Limb Linear_A Lina Linear_B Linb Lisu Lisu Lycian Lyci Lydian Lydi Mahajani Mahj Malayalam Mlym Mandaic Mand Manichaean Mani Marchen Marc Masaram_Gondi Gonm Meetei_Mayek Mtei Mende_Kikakui Mend Meroitic_Cursive Merc Meroitic_Hieroglyphs Mero Miao Plrd Modi Mongolian Mong Mro Mroo Multani Mult Myanmar Mymr Nabataean Nbat New_Tai_Lue Talu Newa Newa Nko Nkoo Nushu Nshu Ogham Ogam Ol_Chiki Olck Old_Hungarian Hung Old_Italic Ital Old_North_Arabian Narb Old_Permic Perm Old_Persian Xpeo Old_South_Arabian Sarb Old_Turkic Orkh Oriya Orya Osage Osge Osmanya Osma Pahawh_Hmong Hmng Palmyrene Palm Pau_Cin_Hau Pauc Phags_Pa Phag Phoenician Phnx Psalter_Pahlavi Phlp Rejang Rjng Runic Runr Samaritan Samr Saurashtra Saur Sharada Shrd Shavian Shaw Siddham Sidd SignWriting Sgnw Sinhala Sinh Sora_Sompeng Sora Soyombo Soyo Sundanese Sund Syloti_Nagri Sylo Syriac Syrc Tagalog Tglg Tagbanwa Tagb Tai_Le Tale Tai_Tham Lana Tai_Viet Tavt Takri Takr Tamil Taml Tangut Tang Telugu Telu Thaana Thaa Thai Thai Tibetan Tibt Tifinagh Tfng Tirhuta Tirh Ugaritic Ugar Vai Vaii Warang_Citi Wara Yi Yiii Zanabazar_Square Zanb",Df=Lf+" Dogra Dogr Gunjala_Gondi Gong Hanifi_Rohingya Rohg Makasar Maka Medefaidrin Medf Old_Sogdian Sogo Sogdian Sogd",Ff=Df+" Elymaic Elym Nandinagari Nand Nyiakeng_Puachue_Hmong Hmnp Wancho Wcho",jf=Ff+" Chorasmian Chrs Diak Dives_Akuru Khitan_Small_Script Kits Yezi Yezidi",zf=jf+" Cypro_Minoan Cpmn Old_Uyghur Ougr Tangsa Tnsa Toto Vithkuqi Vith",l1=zf+" "+n1,u1={9:Lf,10:Df,11:Ff,12:jf,13:zf,14:l1},Vf={};function c1(e){var t=Vf[e]={binary:Vi(a1[e]+" "+Dc),binaryOfStrings:Vi(o1[e]),nonBinary:{General_Category:Vi(Dc),Script:Vi(u1[e])}};t.nonBinary.Script_Extensions=t.nonBinary.Script,t.nonBinary.gc=t.nonBinary.General_Category,t.nonBinary.sc=t.nonBinary.Script,t.nonBinary.scx=t.nonBinary.Script_Extensions}for(var As=0,Fc=[9,10,11,12,13,14];As<Fc.length;As+=1){var h1=Fc[As];c1(h1)}var Ne=vt.prototype,Pa=function(t,i){this.parent=t,this.base=i||this};Pa.prototype.separatedFrom=function(t){for(var i=this;i;i=i.parent)for(var n=t;n;n=n.parent)if(i.base===n.base&&i!==n)return!0;return!1};Pa.prototype.sibling=function(){return new Pa(this.parent,this.base)};var yi=function(t){this.parser=t,this.validFlags="gim"+(t.options.ecmaVersion>=6?"uy":"")+(t.options.ecmaVersion>=9?"s":"")+(t.options.ecmaVersion>=13?"d":"")+(t.options.ecmaVersion>=15?"v":""),this.unicodeProperties=Vf[t.options.ecmaVersion>=14?14:t.options.ecmaVersion],this.source="",this.flags="",this.start=0,this.switchU=!1,this.switchV=!1,this.switchN=!1,this.pos=0,this.lastIntValue=0,this.lastStringValue="",this.lastAssertionIsQuantifiable=!1,this.numCapturingParens=0,this.maxBackReference=0,this.groupNames=Object.create(null),this.backReferenceNames=[],this.branchID=null};yi.prototype.reset=function(t,i,n){var r=n.indexOf("v")!==-1,a=n.indexOf("u")!==-1;this.start=t|0,this.source=i+"",this.flags=n,r&&this.parser.options.ecmaVersion>=15?(this.switchU=!0,this.switchV=!0,this.switchN=!0):(this.switchU=a&&this.parser.options.ecmaVersion>=6,this.switchV=!1,this.switchN=a&&this.parser.options.ecmaVersion>=9)};yi.prototype.raise=function(t){this.parser.raiseRecoverable(this.start,"Invalid regular expression: /"+this.source+"/: "+t)};yi.prototype.at=function(t,i){i===void 0&&(i=!1);var n=this.source,r=n.length;if(t>=r)return-1;var a=n.charCodeAt(t);if(!(i||this.switchU)||a<=55295||a>=57344||t+1>=r)return a;var s=n.charCodeAt(t+1);return s>=56320&&s<=57343?(a<<10)+s-56613888:a};yi.prototype.nextIndex=function(t,i){i===void 0&&(i=!1);var n=this.source,r=n.length;if(t>=r)return r;var a=n.charCodeAt(t),s;return!(i||this.switchU)||a<=55295||a>=57344||t+1>=r||(s=n.charCodeAt(t+1))<56320||s>57343?t+1:t+2};yi.prototype.current=function(t){return t===void 0&&(t=!1),this.at(this.pos,t)};yi.prototype.lookahead=function(t){return t===void 0&&(t=!1),this.at(this.nextIndex(this.pos,t),t)};yi.prototype.advance=function(t){t===void 0&&(t=!1),this.pos=this.nextIndex(this.pos,t)};yi.prototype.eat=function(t,i){return i===void 0&&(i=!1),this.current(i)===t?(this.advance(i),!0):!1};yi.prototype.eatChars=function(t,i){i===void 0&&(i=!1);for(var n=this.pos,r=0,a=t;r<a.length;r+=1){var s=a[r],l=this.at(n,i);if(l===-1||l!==s)return!1;n=this.nextIndex(n,i)}return this.pos=n,!0};Ne.validateRegExpFlags=function(e){for(var t=e.validFlags,i=e.flags,n=!1,r=!1,a=0;a<i.length;a++){var s=i.charAt(a);t.indexOf(s)===-1&&this.raise(e.start,"Invalid regular expression flag"),i.indexOf(s,a+1)>-1&&this.raise(e.start,"Duplicate regular expression flag"),s==="u"&&(n=!0),s==="v"&&(r=!0)}this.options.ecmaVersion>=15&&n&&r&&this.raise(e.start,"Invalid regular expression flag")};function d1(e){for(var t in e)return!0;return!1}Ne.validateRegExpPattern=function(e){this.regexp_pattern(e),!e.switchN&&this.options.ecmaVersion>=9&&d1(e.groupNames)&&(e.switchN=!0,this.regexp_pattern(e))};Ne.regexp_pattern=function(e){e.pos=0,e.lastIntValue=0,e.lastStringValue="",e.lastAssertionIsQuantifiable=!1,e.numCapturingParens=0,e.maxBackReference=0,e.groupNames=Object.create(null),e.backReferenceNames.length=0,e.branchID=null,this.regexp_disjunction(e),e.pos!==e.source.length&&(e.eat(41)&&e.raise("Unmatched ')'"),(e.eat(93)||e.eat(125))&&e.raise("Lone quantifier brackets")),e.maxBackReference>e.numCapturingParens&&e.raise("Invalid escape");for(var t=0,i=e.backReferenceNames;t<i.length;t+=1){var n=i[t];e.groupNames[n]||e.raise("Invalid named capture referenced")}};Ne.regexp_disjunction=function(e){var t=this.options.ecmaVersion>=16;for(t&&(e.branchID=new Pa(e.branchID,null)),this.regexp_alternative(e);e.eat(124);)t&&(e.branchID=e.branchID.sibling()),this.regexp_alternative(e);t&&(e.branchID=e.branchID.parent),this.regexp_eatQuantifier(e,!0)&&e.raise("Nothing to repeat"),e.eat(123)&&e.raise("Lone quantifier brackets")};Ne.regexp_alternative=function(e){for(;e.pos<e.source.length&&this.regexp_eatTerm(e););};Ne.regexp_eatTerm=function(e){return this.regexp_eatAssertion(e)?(e.lastAssertionIsQuantifiable&&this.regexp_eatQuantifier(e)&&e.switchU&&e.raise("Invalid quantifier"),!0):(e.switchU?this.regexp_eatAtom(e):this.regexp_eatExtendedAtom(e))?(this.regexp_eatQuantifier(e),!0):!1};Ne.regexp_eatAssertion=function(e){var t=e.pos;if(e.lastAssertionIsQuantifiable=!1,e.eat(94)||e.eat(36))return!0;if(e.eat(92)){if(e.eat(66)||e.eat(98))return!0;e.pos=t}if(e.eat(40)&&e.eat(63)){var i=!1;if(this.options.ecmaVersion>=9&&(i=e.eat(60)),e.eat(61)||e.eat(33))return this.regexp_disjunction(e),e.eat(41)||e.raise("Unterminated group"),e.lastAssertionIsQuantifiable=!i,!0}return e.pos=t,!1};Ne.regexp_eatQuantifier=function(e,t){return t===void 0&&(t=!1),this.regexp_eatQuantifierPrefix(e,t)?(e.eat(63),!0):!1};Ne.regexp_eatQuantifierPrefix=function(e,t){return e.eat(42)||e.eat(43)||e.eat(63)||this.regexp_eatBracedQuantifier(e,t)};Ne.regexp_eatBracedQuantifier=function(e,t){var i=e.pos;if(e.eat(123)){var n=0,r=-1;if(this.regexp_eatDecimalDigits(e)&&(n=e.lastIntValue,e.eat(44)&&this.regexp_eatDecimalDigits(e)&&(r=e.lastIntValue),e.eat(125)))return r!==-1&&r<n&&!t&&e.raise("numbers out of order in {} quantifier"),!0;e.switchU&&!t&&e.raise("Incomplete quantifier"),e.pos=i}return!1};Ne.regexp_eatAtom=function(e){return this.regexp_eatPatternCharacters(e)||e.eat(46)||this.regexp_eatReverseSolidusAtomEscape(e)||this.regexp_eatCharacterClass(e)||this.regexp_eatUncapturingGroup(e)||this.regexp_eatCapturingGroup(e)};Ne.regexp_eatReverseSolidusAtomEscape=function(e){var t=e.pos;if(e.eat(92)){if(this.regexp_eatAtomEscape(e))return!0;e.pos=t}return!1};Ne.regexp_eatUncapturingGroup=function(e){var t=e.pos;if(e.eat(40)){if(e.eat(63)){if(this.options.ecmaVersion>=16){var i=this.regexp_eatModifiers(e),n=e.eat(45);if(i||n){for(var r=0;r<i.length;r++){var a=i.charAt(r);i.indexOf(a,r+1)>-1&&e.raise("Duplicate regular expression modifiers")}if(n){var s=this.regexp_eatModifiers(e);!i&&!s&&e.current()===58&&e.raise("Invalid regular expression modifiers");for(var l=0;l<s.length;l++){var u=s.charAt(l);(s.indexOf(u,l+1)>-1||i.indexOf(u)>-1)&&e.raise("Duplicate regular expression modifiers")}}}}if(e.eat(58)){if(this.regexp_disjunction(e),e.eat(41))return!0;e.raise("Unterminated group")}}e.pos=t}return!1};Ne.regexp_eatCapturingGroup=function(e){if(e.eat(40)){if(this.options.ecmaVersion>=9?this.regexp_groupSpecifier(e):e.current()===63&&e.raise("Invalid group"),this.regexp_disjunction(e),e.eat(41))return e.numCapturingParens+=1,!0;e.raise("Unterminated group")}return!1};Ne.regexp_eatModifiers=function(e){for(var t="",i=0;(i=e.current())!==-1&&p1(i);)t+=Ai(i),e.advance();return t};function p1(e){return e===105||e===109||e===115}Ne.regexp_eatExtendedAtom=function(e){return e.eat(46)||this.regexp_eatReverseSolidusAtomEscape(e)||this.regexp_eatCharacterClass(e)||this.regexp_eatUncapturingGroup(e)||this.regexp_eatCapturingGroup(e)||this.regexp_eatInvalidBracedQuantifier(e)||this.regexp_eatExtendedPatternCharacter(e)};Ne.regexp_eatInvalidBracedQuantifier=function(e){return this.regexp_eatBracedQuantifier(e,!0)&&e.raise("Nothing to repeat"),!1};Ne.regexp_eatSyntaxCharacter=function(e){var t=e.current();return Bf(t)?(e.lastIntValue=t,e.advance(),!0):!1};function Bf(e){return e===36||e>=40&&e<=43||e===46||e===63||e>=91&&e<=94||e>=123&&e<=125}Ne.regexp_eatPatternCharacters=function(e){for(var t=e.pos,i=0;(i=e.current())!==-1&&!Bf(i);)e.advance();return e.pos!==t};Ne.regexp_eatExtendedPatternCharacter=function(e){var t=e.current();return t!==-1&&t!==36&&!(t>=40&&t<=43)&&t!==46&&t!==63&&t!==91&&t!==94&&t!==124?(e.advance(),!0):!1};Ne.regexp_groupSpecifier=function(e){if(e.eat(63)){this.regexp_eatGroupName(e)||e.raise("Invalid group");var t=this.options.ecmaVersion>=16,i=e.groupNames[e.lastStringValue];if(i)if(t)for(var n=0,r=i;n<r.length;n+=1){var a=r[n];a.separatedFrom(e.branchID)||e.raise("Duplicate capture group name")}else e.raise("Duplicate capture group name");t?(i||(e.groupNames[e.lastStringValue]=[])).push(e.branchID):e.groupNames[e.lastStringValue]=!0}};Ne.regexp_eatGroupName=function(e){if(e.lastStringValue="",e.eat(60)){if(this.regexp_eatRegExpIdentifierName(e)&&e.eat(62))return!0;e.raise("Invalid capture group name")}return!1};Ne.regexp_eatRegExpIdentifierName=function(e){if(e.lastStringValue="",this.regexp_eatRegExpIdentifierStart(e)){for(e.lastStringValue+=Ai(e.lastIntValue);this.regexp_eatRegExpIdentifierPart(e);)e.lastStringValue+=Ai(e.lastIntValue);return!0}return!1};Ne.regexp_eatRegExpIdentifierStart=function(e){var t=e.pos,i=this.options.ecmaVersion>=11,n=e.current(i);return e.advance(i),n===92&&this.regexp_eatRegExpUnicodeEscapeSequence(e,i)&&(n=e.lastIntValue),f1(n)?(e.lastIntValue=n,!0):(e.pos=t,!1)};function f1(e){return xi(e,!0)||e===36||e===95}Ne.regexp_eatRegExpIdentifierPart=function(e){var t=e.pos,i=this.options.ecmaVersion>=11,n=e.current(i);return e.advance(i),n===92&&this.regexp_eatRegExpUnicodeEscapeSequence(e,i)&&(n=e.lastIntValue),g1(n)?(e.lastIntValue=n,!0):(e.pos=t,!1)};function g1(e){return Hi(e,!0)||e===36||e===95||e===8204||e===8205}Ne.regexp_eatAtomEscape=function(e){return this.regexp_eatBackReference(e)||this.regexp_eatCharacterClassEscape(e)||this.regexp_eatCharacterEscape(e)||e.switchN&&this.regexp_eatKGroupName(e)?!0:(e.switchU&&(e.current()===99&&e.raise("Invalid unicode escape"),e.raise("Invalid escape")),!1)};Ne.regexp_eatBackReference=function(e){var t=e.pos;if(this.regexp_eatDecimalEscape(e)){var i=e.lastIntValue;if(e.switchU)return i>e.maxBackReference&&(e.maxBackReference=i),!0;if(i<=e.numCapturingParens)return!0;e.pos=t}return!1};Ne.regexp_eatKGroupName=function(e){if(e.eat(107)){if(this.regexp_eatGroupName(e))return e.backReferenceNames.push(e.lastStringValue),!0;e.raise("Invalid named reference")}return!1};Ne.regexp_eatCharacterEscape=function(e){return this.regexp_eatControlEscape(e)||this.regexp_eatCControlLetter(e)||this.regexp_eatZero(e)||this.regexp_eatHexEscapeSequence(e)||this.regexp_eatRegExpUnicodeEscapeSequence(e,!1)||!e.switchU&&this.regexp_eatLegacyOctalEscapeSequence(e)||this.regexp_eatIdentityEscape(e)};Ne.regexp_eatCControlLetter=function(e){var t=e.pos;if(e.eat(99)){if(this.regexp_eatControlLetter(e))return!0;e.pos=t}return!1};Ne.regexp_eatZero=function(e){return e.current()===48&&!es(e.lookahead())?(e.lastIntValue=0,e.advance(),!0):!1};Ne.regexp_eatControlEscape=function(e){var t=e.current();return t===116?(e.lastIntValue=9,e.advance(),!0):t===110?(e.lastIntValue=10,e.advance(),!0):t===118?(e.lastIntValue=11,e.advance(),!0):t===102?(e.lastIntValue=12,e.advance(),!0):t===114?(e.lastIntValue=13,e.advance(),!0):!1};Ne.regexp_eatControlLetter=function(e){var t=e.current();return Hf(t)?(e.lastIntValue=t%32,e.advance(),!0):!1};function Hf(e){return e>=65&&e<=90||e>=97&&e<=122}Ne.regexp_eatRegExpUnicodeEscapeSequence=function(e,t){t===void 0&&(t=!1);var i=e.pos,n=t||e.switchU;if(e.eat(117)){if(this.regexp_eatFixedHexDigits(e,4)){var r=e.lastIntValue;if(n&&r>=55296&&r<=56319){var a=e.pos;if(e.eat(92)&&e.eat(117)&&this.regexp_eatFixedHexDigits(e,4)){var s=e.lastIntValue;if(s>=56320&&s<=57343)return e.lastIntValue=(r-55296)*1024+(s-56320)+65536,!0}e.pos=a,e.lastIntValue=r}return!0}if(n&&e.eat(123)&&this.regexp_eatHexDigits(e)&&e.eat(125)&&m1(e.lastIntValue))return!0;n&&e.raise("Invalid unicode escape"),e.pos=i}return!1};function m1(e){return e>=0&&e<=1114111}Ne.regexp_eatIdentityEscape=function(e){if(e.switchU)return this.regexp_eatSyntaxCharacter(e)?!0:e.eat(47)?(e.lastIntValue=47,!0):!1;var t=e.current();return t!==99&&(!e.switchN||t!==107)?(e.lastIntValue=t,e.advance(),!0):!1};Ne.regexp_eatDecimalEscape=function(e){e.lastIntValue=0;var t=e.current();if(t>=49&&t<=57){do e.lastIntValue=10*e.lastIntValue+(t-48),e.advance();while((t=e.current())>=48&&t<=57);return!0}return!1};var Kf=0,Ni=1,Qt=2;Ne.regexp_eatCharacterClassEscape=function(e){var t=e.current();if(v1(t))return e.lastIntValue=-1,e.advance(),Ni;var i=!1;if(e.switchU&&this.options.ecmaVersion>=9&&((i=t===80)||t===112)){e.lastIntValue=-1,e.advance();var n;if(e.eat(123)&&(n=this.regexp_eatUnicodePropertyValueExpression(e))&&e.eat(125))return i&&n===Qt&&e.raise("Invalid property name"),n;e.raise("Invalid property name")}return Kf};function v1(e){return e===100||e===68||e===115||e===83||e===119||e===87}Ne.regexp_eatUnicodePropertyValueExpression=function(e){var t=e.pos;if(this.regexp_eatUnicodePropertyName(e)&&e.eat(61)){var i=e.lastStringValue;if(this.regexp_eatUnicodePropertyValue(e)){var n=e.lastStringValue;return this.regexp_validateUnicodePropertyNameAndValue(e,i,n),Ni}}if(e.pos=t,this.regexp_eatLoneUnicodePropertyNameOrValue(e)){var r=e.lastStringValue;return this.regexp_validateUnicodePropertyNameOrValue(e,r)}return Kf};Ne.regexp_validateUnicodePropertyNameAndValue=function(e,t,i){Hn(e.unicodeProperties.nonBinary,t)||e.raise("Invalid property name"),e.unicodeProperties.nonBinary[t].test(i)||e.raise("Invalid property value")};Ne.regexp_validateUnicodePropertyNameOrValue=function(e,t){if(e.unicodeProperties.binary.test(t))return Ni;if(e.switchV&&e.unicodeProperties.binaryOfStrings.test(t))return Qt;e.raise("Invalid property name")};Ne.regexp_eatUnicodePropertyName=function(e){var t=0;for(e.lastStringValue="";Wf(t=e.current());)e.lastStringValue+=Ai(t),e.advance();return e.lastStringValue!==""};function Wf(e){return Hf(e)||e===95}Ne.regexp_eatUnicodePropertyValue=function(e){var t=0;for(e.lastStringValue="";x1(t=e.current());)e.lastStringValue+=Ai(t),e.advance();return e.lastStringValue!==""};function x1(e){return Wf(e)||es(e)}Ne.regexp_eatLoneUnicodePropertyNameOrValue=function(e){return this.regexp_eatUnicodePropertyValue(e)};Ne.regexp_eatCharacterClass=function(e){if(e.eat(91)){var t=e.eat(94),i=this.regexp_classContents(e);return e.eat(93)||e.raise("Unterminated character class"),t&&i===Qt&&e.raise("Negated character class may contain strings"),!0}return!1};Ne.regexp_classContents=function(e){return e.current()===93?Ni:e.switchV?this.regexp_classSetExpression(e):(this.regexp_nonEmptyClassRanges(e),Ni)};Ne.regexp_nonEmptyClassRanges=function(e){for(;this.regexp_eatClassAtom(e);){var t=e.lastIntValue;if(e.eat(45)&&this.regexp_eatClassAtom(e)){var i=e.lastIntValue;e.switchU&&(t===-1||i===-1)&&e.raise("Invalid character class"),t!==-1&&i!==-1&&t>i&&e.raise("Range out of order in character class")}}};Ne.regexp_eatClassAtom=function(e){var t=e.pos;if(e.eat(92)){if(this.regexp_eatClassEscape(e))return!0;if(e.switchU){var i=e.current();(i===99||Gf(i))&&e.raise("Invalid class escape"),e.raise("Invalid escape")}e.pos=t}var n=e.current();return n!==93?(e.lastIntValue=n,e.advance(),!0):!1};Ne.regexp_eatClassEscape=function(e){var t=e.pos;if(e.eat(98))return e.lastIntValue=8,!0;if(e.switchU&&e.eat(45))return e.lastIntValue=45,!0;if(!e.switchU&&e.eat(99)){if(this.regexp_eatClassControlLetter(e))return!0;e.pos=t}return this.regexp_eatCharacterClassEscape(e)||this.regexp_eatCharacterEscape(e)};Ne.regexp_classSetExpression=function(e){var t=Ni,i;if(!this.regexp_eatClassSetRange(e))if(i=this.regexp_eatClassSetOperand(e)){i===Qt&&(t=Qt);for(var n=e.pos;e.eatChars([38,38]);){if(e.current()!==38&&(i=this.regexp_eatClassSetOperand(e))){i!==Qt&&(t=Ni);continue}e.raise("Invalid character in character class")}if(n!==e.pos)return t;for(;e.eatChars([45,45]);)this.regexp_eatClassSetOperand(e)||e.raise("Invalid character in character class");if(n!==e.pos)return t}else e.raise("Invalid character in character class");for(;;)if(!this.regexp_eatClassSetRange(e)){if(i=this.regexp_eatClassSetOperand(e),!i)return t;i===Qt&&(t=Qt)}};Ne.regexp_eatClassSetRange=function(e){var t=e.pos;if(this.regexp_eatClassSetCharacter(e)){var i=e.lastIntValue;if(e.eat(45)&&this.regexp_eatClassSetCharacter(e)){var n=e.lastIntValue;return i!==-1&&n!==-1&&i>n&&e.raise("Range out of order in character class"),!0}e.pos=t}return!1};Ne.regexp_eatClassSetOperand=function(e){return this.regexp_eatClassSetCharacter(e)?Ni:this.regexp_eatClassStringDisjunction(e)||this.regexp_eatNestedClass(e)};Ne.regexp_eatNestedClass=function(e){var t=e.pos;if(e.eat(91)){var i=e.eat(94),n=this.regexp_classContents(e);if(e.eat(93))return i&&n===Qt&&e.raise("Negated character class may contain strings"),n;e.pos=t}if(e.eat(92)){var r=this.regexp_eatCharacterClassEscape(e);if(r)return r;e.pos=t}return null};Ne.regexp_eatClassStringDisjunction=function(e){var t=e.pos;if(e.eatChars([92,113])){if(e.eat(123)){var i=this.regexp_classStringDisjunctionContents(e);if(e.eat(125))return i}else e.raise("Invalid escape");e.pos=t}return null};Ne.regexp_classStringDisjunctionContents=function(e){for(var t=this.regexp_classString(e);e.eat(124);)this.regexp_classString(e)===Qt&&(t=Qt);return t};Ne.regexp_classString=function(e){for(var t=0;this.regexp_eatClassSetCharacter(e);)t++;return t===1?Ni:Qt};Ne.regexp_eatClassSetCharacter=function(e){var t=e.pos;if(e.eat(92))return this.regexp_eatCharacterEscape(e)||this.regexp_eatClassSetReservedPunctuator(e)?!0:e.eat(98)?(e.lastIntValue=8,!0):(e.pos=t,!1);var i=e.current();return i<0||i===e.lookahead()&&b1(i)||y1(i)?!1:(e.advance(),e.lastIntValue=i,!0)};function b1(e){return e===33||e>=35&&e<=38||e>=42&&e<=44||e===46||e>=58&&e<=64||e===94||e===96||e===126}function y1(e){return e===40||e===41||e===45||e===47||e>=91&&e<=93||e>=123&&e<=125}Ne.regexp_eatClassSetReservedPunctuator=function(e){var t=e.current();return w1(t)?(e.lastIntValue=t,e.advance(),!0):!1};function w1(e){return e===33||e===35||e===37||e===38||e===44||e===45||e>=58&&e<=62||e===64||e===96||e===126}Ne.regexp_eatClassControlLetter=function(e){var t=e.current();return es(t)||t===95?(e.lastIntValue=t%32,e.advance(),!0):!1};Ne.regexp_eatHexEscapeSequence=function(e){var t=e.pos;if(e.eat(120)){if(this.regexp_eatFixedHexDigits(e,2))return!0;e.switchU&&e.raise("Invalid escape"),e.pos=t}return!1};Ne.regexp_eatDecimalDigits=function(e){var t=e.pos,i=0;for(e.lastIntValue=0;es(i=e.current());)e.lastIntValue=10*e.lastIntValue+(i-48),e.advance();return e.pos!==t};function es(e){return e>=48&&e<=57}Ne.regexp_eatHexDigits=function(e){var t=e.pos,i=0;for(e.lastIntValue=0;Uf(i=e.current());)e.lastIntValue=16*e.lastIntValue+qf(i),e.advance();return e.pos!==t};function Uf(e){return e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102}function qf(e){return e>=65&&e<=70?10+(e-65):e>=97&&e<=102?10+(e-97):e-48}Ne.regexp_eatLegacyOctalEscapeSequence=function(e){if(this.regexp_eatOctalDigit(e)){var t=e.lastIntValue;if(this.regexp_eatOctalDigit(e)){var i=e.lastIntValue;t<=3&&this.regexp_eatOctalDigit(e)?e.lastIntValue=t*64+i*8+e.lastIntValue:e.lastIntValue=t*8+i}else e.lastIntValue=t;return!0}return!1};Ne.regexp_eatOctalDigit=function(e){var t=e.current();return Gf(t)?(e.lastIntValue=t-48,e.advance(),!0):(e.lastIntValue=0,!1)};function Gf(e){return e>=48&&e<=55}Ne.regexp_eatFixedHexDigits=function(e,t){var i=e.pos;e.lastIntValue=0;for(var n=0;n<t;++n){var r=e.current();if(!Uf(r))return e.pos=i,!1;e.lastIntValue=16*e.lastIntValue+qf(r),e.advance()}return!0};var Bl=function(t){this.type=t.type,this.value=t.value,this.start=t.start,this.end=t.end,t.options.locations&&(this.loc=new Ja(t,t.startLoc,t.endLoc)),t.options.ranges&&(this.range=[t.start,t.end])},qe=vt.prototype;qe.next=function(e){!e&&this.type.keyword&&this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword "+this.type.keyword),this.options.onToken&&this.options.onToken(new Bl(this)),this.lastTokEnd=this.end,this.lastTokStart=this.start,this.lastTokEndLoc=this.endLoc,this.lastTokStartLoc=this.startLoc,this.nextToken()};qe.getToken=function(){return this.next(),new Bl(this)};typeof Symbol<"u"&&(qe[Symbol.iterator]=function(){var e=this;return{next:function(){var t=e.getToken();return{done:t.type===N.eof,value:t}}}});qe.nextToken=function(){var e=this.curContext();if((!e||!e.preserveSpace)&&this.skipSpace(),this.start=this.pos,this.options.locations&&(this.startLoc=this.curPosition()),this.pos>=this.input.length)return this.finishToken(N.eof);if(e.override)return e.override(this);this.readToken(this.fullCharCodeAtPos())};qe.readToken=function(e){return xi(e,this.options.ecmaVersion>=6)||e===92?this.readWord():this.getTokenFromCode(e)};qe.fullCharCodeAtPos=function(){var e=this.input.charCodeAt(this.pos);if(e<=55295||e>=56320)return e;var t=this.input.charCodeAt(this.pos+1);return t<=56319||t>=57344?e:(e<<10)+t-56613888};qe.skipBlockComment=function(){var e=this.options.onComment&&this.curPosition(),t=this.pos,i=this.input.indexOf("*/",this.pos+=2);if(i===-1&&this.raise(this.pos-2,"Unterminated comment"),this.pos=i+2,this.options.locations)for(var n=void 0,r=t;(n=vf(this.input,r,this.pos))>-1;)++this.curLine,r=this.lineStart=n;this.options.onComment&&this.options.onComment(!0,this.input.slice(t+2,i),t,this.pos,e,this.curPosition())};qe.skipLineComment=function(e){for(var t=this.pos,i=this.options.onComment&&this.curPosition(),n=this.input.charCodeAt(this.pos+=e);this.pos<this.input.length&&!Bn(n);)n=this.input.charCodeAt(++this.pos);this.options.onComment&&this.options.onComment(!1,this.input.slice(t+e,this.pos),t,this.pos,i,this.curPosition())};qe.skipSpace=function(){e:for(;this.pos<this.input.length;){var e=this.input.charCodeAt(this.pos);switch(e){case 32:case 160:++this.pos;break;case 13:this.input.charCodeAt(this.pos+1)===10&&++this.pos;case 10:case 8232:case 8233:++this.pos,this.options.locations&&(++this.curLine,this.lineStart=this.pos);break;case 47:switch(this.input.charCodeAt(this.pos+1)){case 42:this.skipBlockComment();break;case 47:this.skipLineComment(2);break;default:break e}break;default:if(e>8&&e<14||e>=5760&&xf.test(String.fromCharCode(e)))++this.pos;else break e}}};qe.finishToken=function(e,t){this.end=this.pos,this.options.locations&&(this.endLoc=this.curPosition());var i=this.type;this.type=e,this.value=t,this.updateContext(i)};qe.readToken_dot=function(){var e=this.input.charCodeAt(this.pos+1);if(e>=48&&e<=57)return this.readNumber(!0);var t=this.input.charCodeAt(this.pos+2);return this.options.ecmaVersion>=6&&e===46&&t===46?(this.pos+=3,this.finishToken(N.ellipsis)):(++this.pos,this.finishToken(N.dot))};qe.readToken_slash=function(){var e=this.input.charCodeAt(this.pos+1);return this.exprAllowed?(++this.pos,this.readRegexp()):e===61?this.finishOp(N.assign,2):this.finishOp(N.slash,1)};qe.readToken_mult_modulo_exp=function(e){var t=this.input.charCodeAt(this.pos+1),i=1,n=e===42?N.star:N.modulo;return this.options.ecmaVersion>=7&&e===42&&t===42&&(++i,n=N.starstar,t=this.input.charCodeAt(this.pos+2)),t===61?this.finishOp(N.assign,i+1):this.finishOp(n,i)};qe.readToken_pipe_amp=function(e){var t=this.input.charCodeAt(this.pos+1);if(t===e){if(this.options.ecmaVersion>=12){var i=this.input.charCodeAt(this.pos+2);if(i===61)return this.finishOp(N.assign,3)}return this.finishOp(e===124?N.logicalOR:N.logicalAND,2)}return t===61?this.finishOp(N.assign,2):this.finishOp(e===124?N.bitwiseOR:N.bitwiseAND,1)};qe.readToken_caret=function(){var e=this.input.charCodeAt(this.pos+1);return e===61?this.finishOp(N.assign,2):this.finishOp(N.bitwiseXOR,1)};qe.readToken_plus_min=function(e){var t=this.input.charCodeAt(this.pos+1);return t===e?t===45&&!this.inModule&&this.input.charCodeAt(this.pos+2)===62&&(this.lastTokEnd===0||zt.test(this.input.slice(this.lastTokEnd,this.pos)))?(this.skipLineComment(3),this.skipSpace(),this.nextToken()):this.finishOp(N.incDec,2):t===61?this.finishOp(N.assign,2):this.finishOp(N.plusMin,1)};qe.readToken_lt_gt=function(e){var t=this.input.charCodeAt(this.pos+1),i=1;return t===e?(i=e===62&&this.input.charCodeAt(this.pos+2)===62?3:2,this.input.charCodeAt(this.pos+i)===61?this.finishOp(N.assign,i+1):this.finishOp(N.bitShift,i)):t===33&&e===60&&!this.inModule&&this.input.charCodeAt(this.pos+2)===45&&this.input.charCodeAt(this.pos+3)===45?(this.skipLineComment(4),this.skipSpace(),this.nextToken()):(t===61&&(i=2),this.finishOp(N.relational,i))};qe.readToken_eq_excl=function(e){var t=this.input.charCodeAt(this.pos+1);return t===61?this.finishOp(N.equality,this.input.charCodeAt(this.pos+2)===61?3:2):e===61&&t===62&&this.options.ecmaVersion>=6?(this.pos+=2,this.finishToken(N.arrow)):this.finishOp(e===61?N.eq:N.prefix,1)};qe.readToken_question=function(){var e=this.options.ecmaVersion;if(e>=11){var t=this.input.charCodeAt(this.pos+1);if(t===46){var i=this.input.charCodeAt(this.pos+2);if(i<48||i>57)return this.finishOp(N.questionDot,2)}if(t===63){if(e>=12){var n=this.input.charCodeAt(this.pos+2);if(n===61)return this.finishOp(N.assign,3)}return this.finishOp(N.coalesce,2)}}return this.finishOp(N.question,1)};qe.readToken_numberSign=function(){var e=this.options.ecmaVersion,t=35;if(e>=13&&(++this.pos,t=this.fullCharCodeAtPos(),xi(t,!0)||t===92))return this.finishToken(N.privateId,this.readWord1());this.raise(this.pos,"Unexpected character '"+Ai(t)+"'")};qe.getTokenFromCode=function(e){switch(e){case 46:return this.readToken_dot();case 40:return++this.pos,this.finishToken(N.parenL);case 41:return++this.pos,this.finishToken(N.parenR);case 59:return++this.pos,this.finishToken(N.semi);case 44:return++this.pos,this.finishToken(N.comma);case 91:return++this.pos,this.finishToken(N.bracketL);case 93:return++this.pos,this.finishToken(N.bracketR);case 123:return++this.pos,this.finishToken(N.braceL);case 125:return++this.pos,this.finishToken(N.braceR);case 58:return++this.pos,this.finishToken(N.colon);case 96:if(this.options.ecmaVersion<6)break;return++this.pos,this.finishToken(N.backQuote);case 48:var t=this.input.charCodeAt(this.pos+1);if(t===120||t===88)return this.readRadixNumber(16);if(this.options.ecmaVersion>=6){if(t===111||t===79)return this.readRadixNumber(8);if(t===98||t===66)return this.readRadixNumber(2)}case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return this.readNumber(!1);case 34:case 39:return this.readString(e);case 47:return this.readToken_slash();case 37:case 42:return this.readToken_mult_modulo_exp(e);case 124:case 38:return this.readToken_pipe_amp(e);case 94:return this.readToken_caret();case 43:case 45:return this.readToken_plus_min(e);case 60:case 62:return this.readToken_lt_gt(e);case 61:case 33:return this.readToken_eq_excl(e);case 63:return this.readToken_question();case 126:return this.finishOp(N.prefix,1);case 35:return this.readToken_numberSign()}this.raise(this.pos,"Unexpected character '"+Ai(e)+"'")};qe.finishOp=function(e,t){var i=this.input.slice(this.pos,this.pos+t);return this.pos+=t,this.finishToken(e,i)};qe.readRegexp=function(){for(var e,t,i=this.pos;;){this.pos>=this.input.length&&this.raise(i,"Unterminated regular expression");var n=this.input.charAt(this.pos);if(zt.test(n)&&this.raise(i,"Unterminated regular expression"),e)e=!1;else{if(n==="[")t=!0;else if(n==="]"&&t)t=!1;else if(n==="/"&&!t)break;e=n==="\\"}++this.pos}var r=this.input.slice(i,this.pos);++this.pos;var a=this.pos,s=this.readWord1();this.containsEsc&&this.unexpected(a);var l=this.regexpState||(this.regexpState=new yi(this));l.reset(i,r,s),this.validateRegExpFlags(l),this.validateRegExpPattern(l);var u=null;try{u=new RegExp(r,s)}catch{}return this.finishToken(N.regexp,{pattern:r,flags:s,value:u})};qe.readInt=function(e,t,i){for(var n=this.options.ecmaVersion>=12&&t===void 0,r=i&&this.input.charCodeAt(this.pos)===48,a=this.pos,s=0,l=0,u=0,c=t??1/0;u<c;++u,++this.pos){var h=this.input.charCodeAt(this.pos),p=void 0;if(n&&h===95){r&&this.raiseRecoverable(this.pos,"Numeric separator is not allowed in legacy octal numeric literals"),l===95&&this.raiseRecoverable(this.pos,"Numeric separator must be exactly one underscore"),u===0&&this.raiseRecoverable(this.pos,"Numeric separator is not allowed at the first of digits"),l=h;continue}if(h>=97?p=h-97+10:h>=65?p=h-65+10:h>=48&&h<=57?p=h-48:p=1/0,p>=e)break;l=h,s=s*e+p}return n&&l===95&&this.raiseRecoverable(this.pos-1,"Numeric separator is not allowed at the last of digits"),this.pos===a||t!=null&&this.pos-a!==t?null:s};function k1(e,t){return t?parseInt(e,8):parseFloat(e.replace(/_/g,""))}function $f(e){return typeof BigInt!="function"?null:BigInt(e.replace(/_/g,""))}qe.readRadixNumber=function(e){var t=this.pos;this.pos+=2;var i=this.readInt(e);return i==null&&this.raise(this.start+2,"Expected number in radix "+e),this.options.ecmaVersion>=11&&this.input.charCodeAt(this.pos)===110?(i=$f(this.input.slice(t,this.pos)),++this.pos):xi(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number"),this.finishToken(N.num,i)};qe.readNumber=function(e){var t=this.pos;!e&&this.readInt(10,void 0,!0)===null&&this.raise(t,"Invalid number");var i=this.pos-t>=2&&this.input.charCodeAt(t)===48;i&&this.strict&&this.raise(t,"Invalid number");var n=this.input.charCodeAt(this.pos);if(!i&&!e&&this.options.ecmaVersion>=11&&n===110){var r=$f(this.input.slice(t,this.pos));return++this.pos,xi(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number"),this.finishToken(N.num,r)}i&&/[89]/.test(this.input.slice(t,this.pos))&&(i=!1),n===46&&!i&&(++this.pos,this.readInt(10),n=this.input.charCodeAt(this.pos)),(n===69||n===101)&&!i&&(n=this.input.charCodeAt(++this.pos),(n===43||n===45)&&++this.pos,this.readInt(10)===null&&this.raise(t,"Invalid number")),xi(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number");var a=k1(this.input.slice(t,this.pos),i);return this.finishToken(N.num,a)};qe.readCodePoint=function(){var e=this.input.charCodeAt(this.pos),t;if(e===123){this.options.ecmaVersion<6&&this.unexpected();var i=++this.pos;t=this.readHexChar(this.input.indexOf("}",this.pos)-this.pos),++this.pos,t>1114111&&this.invalidStringToken(i,"Code point out of bounds")}else t=this.readHexChar(4);return t};qe.readString=function(e){for(var t="",i=++this.pos;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated string constant");var n=this.input.charCodeAt(this.pos);if(n===e)break;n===92?(t+=this.input.slice(i,this.pos),t+=this.readEscapedChar(!1),i=this.pos):n===8232||n===8233?(this.options.ecmaVersion<10&&this.raise(this.start,"Unterminated string constant"),++this.pos,this.options.locations&&(this.curLine++,this.lineStart=this.pos)):(Bn(n)&&this.raise(this.start,"Unterminated string constant"),++this.pos)}return t+=this.input.slice(i,this.pos++),this.finishToken(N.string,t)};var Jf={};qe.tryReadTemplateToken=function(){this.inTemplateElement=!0;try{this.readTmplToken()}catch(e){if(e===Jf)this.readInvalidTemplateToken();else throw e}this.inTemplateElement=!1};qe.invalidStringToken=function(e,t){if(this.inTemplateElement&&this.options.ecmaVersion>=9)throw Jf;this.raise(e,t)};qe.readTmplToken=function(){for(var e="",t=this.pos;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated template");var i=this.input.charCodeAt(this.pos);if(i===96||i===36&&this.input.charCodeAt(this.pos+1)===123)return this.pos===this.start&&(this.type===N.template||this.type===N.invalidTemplate)?i===36?(this.pos+=2,this.finishToken(N.dollarBraceL)):(++this.pos,this.finishToken(N.backQuote)):(e+=this.input.slice(t,this.pos),this.finishToken(N.template,e));if(i===92)e+=this.input.slice(t,this.pos),e+=this.readEscapedChar(!0),t=this.pos;else if(Bn(i)){switch(e+=this.input.slice(t,this.pos),++this.pos,i){case 13:this.input.charCodeAt(this.pos)===10&&++this.pos;case 10:e+=`
72
- `;break;default:e+=String.fromCharCode(i);break}this.options.locations&&(++this.curLine,this.lineStart=this.pos),t=this.pos}else++this.pos}};qe.readInvalidTemplateToken=function(){for(;this.pos<this.input.length;this.pos++)switch(this.input[this.pos]){case"\\":++this.pos;break;case"$":if(this.input[this.pos+1]!=="{")break;case"`":return this.finishToken(N.invalidTemplate,this.input.slice(this.start,this.pos));case"\r":this.input[this.pos+1]===`
15
+ `))}return i.pop(),l.join("")}function xc(e){let t=0,n=e.stack.length;for(;--n>-1;){const i=e.stack[n];if(i==="blockquote"||i==="listItem")break;i==="mdxJsxFlowElement"&&t++}return t}function vc(e){return mc.repeat(e)}function _g(){return"<"}function Ig(){return{enter:{mdxjsEsm:Tg},exit:{mdxjsEsm:Ng,mdxjsEsmData:Pg}}}function Ag(){return{handlers:{mdxjsEsm:Og}}}function Tg(e){this.enter({type:"mdxjsEsm",value:""},e),this.buffer()}function Ng(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,this.exit(e);const i=e.estree;n.value=t,i&&(n.data={estree:i})}function Pg(e){this.config.enter.data.call(this,e),this.config.exit.data.call(this,e)}function Og(e){return e.value||""}function Rg(){return[ig(),Sg(),Ig()]}function Lg(e){return{extensions:[rg(),kg(e),Ag()]}}var Mg=[509,0,227,0,150,4,294,9,1368,2,2,1,6,3,41,2,5,0,166,1,574,3,9,9,7,9,32,4,318,1,78,5,71,10,50,3,123,2,54,14,32,10,3,1,11,3,46,10,8,0,46,9,7,2,37,13,2,9,6,1,45,0,13,2,49,13,9,3,2,11,83,11,7,0,3,0,158,11,6,9,7,3,56,1,2,6,3,1,3,2,10,0,11,1,3,6,4,4,68,8,2,0,3,0,2,3,2,4,2,0,15,1,83,17,10,9,5,0,82,19,13,9,214,6,3,8,28,1,83,16,16,9,82,12,9,9,7,19,58,14,5,9,243,14,166,9,71,5,2,1,3,3,2,0,2,1,13,9,120,6,3,6,4,0,29,9,41,6,2,3,9,0,10,10,47,15,199,7,137,9,54,7,2,7,17,9,57,21,2,13,123,5,4,0,2,1,2,6,2,0,9,9,49,4,2,1,2,4,9,9,55,9,266,3,10,1,2,0,49,6,4,4,14,10,5350,0,7,14,11465,27,2343,9,87,9,39,4,60,6,26,9,535,9,470,0,2,54,8,3,82,0,12,1,19628,1,4178,9,519,45,3,22,543,4,4,5,9,7,3,6,31,3,149,2,1418,49,513,54,5,49,9,0,15,0,23,4,2,14,1361,6,2,16,3,6,2,1,2,4,101,0,161,6,10,9,357,0,62,13,499,13,245,1,2,9,233,0,3,0,8,1,6,0,475,6,110,6,6,9,4759,9,787719,239],bc=[0,11,2,25,2,18,2,1,2,14,3,13,35,122,70,52,268,28,4,48,48,31,14,29,6,37,11,29,3,35,5,7,2,4,43,157,19,35,5,35,5,39,9,51,13,10,2,14,2,6,2,1,2,10,2,14,2,6,2,1,4,51,13,310,10,21,11,7,25,5,2,41,2,8,70,5,3,0,2,43,2,1,4,0,3,22,11,22,10,30,66,18,2,1,11,21,11,25,7,25,39,55,7,1,65,0,16,3,2,2,2,28,43,28,4,28,36,7,2,27,28,53,11,21,11,18,14,17,111,72,56,50,14,50,14,35,39,27,10,22,251,41,7,1,17,5,57,28,11,0,9,21,43,17,47,20,28,22,13,52,58,1,3,0,14,44,33,24,27,35,30,0,3,0,9,34,4,0,13,47,15,3,22,0,2,0,36,17,2,24,20,1,64,6,2,0,2,3,2,14,2,9,8,46,39,7,3,1,3,21,2,6,2,1,2,4,4,0,19,0,13,4,31,9,2,0,3,0,2,37,2,0,26,0,2,0,45,52,19,3,21,2,31,47,21,1,2,0,185,46,42,3,37,47,21,0,60,42,14,0,72,26,38,6,186,43,117,63,32,7,3,0,3,7,2,1,2,23,16,0,2,0,95,7,3,38,17,0,2,0,29,0,11,39,8,0,22,0,12,45,20,0,19,72,200,32,32,8,2,36,18,0,50,29,113,6,2,1,2,37,22,0,26,5,2,1,2,31,15,0,24,43,261,18,16,0,2,12,2,33,125,0,80,921,103,110,18,195,2637,96,16,1071,18,5,26,3994,6,582,6842,29,1763,568,8,30,18,78,18,29,19,47,17,3,32,20,6,18,433,44,212,63,33,24,3,24,45,74,6,0,67,12,65,1,2,0,15,4,10,7381,42,31,98,114,8702,3,2,6,2,1,2,290,16,0,30,2,3,0,15,3,9,395,2309,106,6,12,4,8,8,9,5991,84,2,70,2,1,3,0,3,1,3,3,2,11,2,0,2,6,2,64,2,3,3,7,2,6,2,27,2,3,2,4,2,0,4,6,2,339,3,24,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,7,1845,30,7,5,262,61,147,44,11,6,17,0,322,29,19,43,485,27,229,29,3,0,208,30,2,2,2,1,2,6,3,4,10,1,225,6,2,3,2,1,2,14,2,196,60,67,8,0,1205,3,2,26,2,1,2,0,3,0,2,9,2,3,2,0,2,0,7,0,5,0,2,0,2,0,2,2,2,1,2,0,3,0,2,0,2,0,2,0,2,0,2,1,2,0,3,3,2,6,2,3,2,3,2,0,2,9,2,16,6,2,2,4,2,16,4421,42719,33,4381,3,5773,3,7472,16,621,2467,541,1507,4938,6,8489],Fg="‌‍·̀-ͯ·҃-֑҇-ׇֽֿׁׂׅׄؐ-ًؚ-٩ٰۖ-ۜ۟-۪ۤۧۨ-ۭ۰-۹ܑܰ-݊ަ-ް߀-߉߫-߽߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛ࢗ-࢟࣊-ࣣ࣡-ःऺ-़ा-ॏ॑-ॗॢॣ०-९ঁ-ঃ়া-ৄেৈো-্ৗৢৣ০-৯৾ਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢૣ૦-૯ૺ-૿ଁ-ଃ଼ା-ୄେୈୋ-୍୕-ୗୢୣ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఀ-ఄ఼ా-ౄె-ైొ-్ౕౖౢౣ౦-౯ಁ-ಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢೣ೦-೯ೳഀ-ഃ഻഼ാ-ൄെ-ൈൊ-്ൗൢൣ൦-൯ඁ-ඃ්ා-ුූෘ-ෟ෦-෯ෲෳัิ-ฺ็-๎๐-๙ັິ-ຼ່-໎໐-໙༘༙༠-༩༹༵༷༾༿ཱ-྄྆྇ྍ-ྗྙ-ྼ࿆ါ-ှ၀-၉ၖ-ၙၞ-ၠၢ-ၤၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟፩-፱ᜒ-᜕ᜲ-᜴ᝒᝓᝲᝳ឴-៓៝០-៩᠋-᠍᠏-᠙ᢩᤠ-ᤫᤰ-᤻᥆-᥏᧐-᧚ᨗ-ᨛᩕ-ᩞ᩠-᩿᩼-᪉᪐-᪙᪰-᪽ᪿ-᫝᫠-᫫ᬀ-ᬄ᬴-᭄᭐-᭙᭫-᭳ᮀ-ᮂᮡ-ᮭ᮰-᮹᯦-᯳ᰤ-᰷᱀-᱉᱐-᱙᳐-᳔᳒-᳨᳭᳴᳷-᳹᷀-᷿‌‍‿⁀⁔⃐-⃥⃜⃡-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〯・꘠-꘩꙯ꙴ-꙽ꚞꚟ꛰꛱ꠂ꠆ꠋꠣ-ꠧ꠬ꢀꢁꢴ-ꣅ꣐-꣙꣠-꣱ꣿ-꤉ꤦ-꤭ꥇ-꥓ꦀ-ꦃ꦳-꧀꧐-꧙ꧥ꧰-꧹ꨩ-ꨶꩃꩌꩍ꩐-꩙ꩻ-ꩽꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꫫ-ꫯꫵ꫶ꯣ-ꯪ꯬꯭꯰-꯹ﬞ︀-️︠-︯︳︴﹍-﹏0-9_・",yc="ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՙՠ-ֈא-תׯ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࡠ-ࡪࡰ-ࢇࢉ-࢏ࢠ-ࣉऄ-हऽॐक़-ॡॱ-ঀঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱৼਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡૹଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-హఽౘ-ౚ౜ౝౠౡಀಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽ೜-ೞೠೡೱೲഄ-ഌഎ-ഐഒ-ഺഽൎൔ-ൖൟ-ൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄຆ-ຊຌ-ຣລວ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏽᏸ-ᏽᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛸᜀ-ᜑᜟ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡸᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭌᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᲀ-ᲊᲐ-ᲺᲽ-Ჿᳩ-ᳬᳮ-ᳳᳵᳶᳺᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕ℘-ℝℤΩℨK-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖ゛-ゟァ-ヺー-ヿㄅ-ㄯㄱ-ㆎㆠ-ㆿㇰ-ㇿ㐀-䶿一-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚝꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-Ƛ꟱-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꣽꣾꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꧠ-ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꩾ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭩꭰ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ",Yr={3:"abstract boolean byte char class double enum export extends final float goto implements import int interface long native package private protected public short static super synchronized throws transient volatile",5:"class enum extends super const export import",6:"enum",strict:"implements interface let package private protected public static yield",strictBind:"eval arguments"},Qr="break case catch continue debugger default do else finally for function if return switch throw try var while with null true false instanceof typeof void delete new in this",Dg={5:Qr,"5module":Qr+" export import",6:Qr+" const class extends export import super"},wc=/^in(stanceof)?$/,jg=new RegExp("["+yc+"]"),Vg=new RegExp("["+yc+Fg+"]");function Ka(e,t){for(var n=65536,i=0;i<t.length;i+=2){if(n+=t[i],n>e)return!1;if(n+=t[i+1],n>=e)return!0}return!1}function Gt(e,t){return e<65?e===36:e<91?!0:e<97?e===95:e<123?!0:e<=65535?e>=170&&jg.test(String.fromCharCode(e)):t===!1?!1:Ka(e,bc)}function mn(e,t){return e<48?e===36:e<58?!0:e<65?!1:e<91?!0:e<97?e===95:e<123?!0:e<=65535?e>=170&&Vg.test(String.fromCharCode(e)):t===!1?!1:Ka(e,bc)||Ka(e,Mg)}var He=function(t,n){n===void 0&&(n={}),this.label=t,this.keyword=n.keyword,this.beforeExpr=!!n.beforeExpr,this.startsExpr=!!n.startsExpr,this.isLoop=!!n.isLoop,this.isAssign=!!n.isAssign,this.prefix=!!n.prefix,this.postfix=!!n.postfix,this.binop=n.binop||null,this.updateContext=null};function Tt(e,t){return new He(e,{beforeExpr:!0,binop:t})}var Nt={beforeExpr:!0},ft={startsExpr:!0},cs={};function ze(e,t){return t===void 0&&(t={}),t.keyword=e,cs[e]=new He(e,t)}var _={num:new He("num",ft),regexp:new He("regexp",ft),string:new He("string",ft),name:new He("name",ft),privateId:new He("privateId",ft),eof:new He("eof"),bracketL:new He("[",{beforeExpr:!0,startsExpr:!0}),bracketR:new He("]"),braceL:new He("{",{beforeExpr:!0,startsExpr:!0}),braceR:new He("}"),parenL:new He("(",{beforeExpr:!0,startsExpr:!0}),parenR:new He(")"),comma:new He(",",Nt),semi:new He(";",Nt),colon:new He(":",Nt),dot:new He("."),question:new He("?",Nt),questionDot:new He("?."),arrow:new He("=>",Nt),template:new He("template"),invalidTemplate:new He("invalidTemplate"),ellipsis:new He("...",Nt),backQuote:new He("`",ft),dollarBraceL:new He("${",{beforeExpr:!0,startsExpr:!0}),eq:new He("=",{beforeExpr:!0,isAssign:!0}),assign:new He("_=",{beforeExpr:!0,isAssign:!0}),incDec:new He("++/--",{prefix:!0,postfix:!0,startsExpr:!0}),prefix:new He("!/~",{beforeExpr:!0,prefix:!0,startsExpr:!0}),logicalOR:Tt("||",1),logicalAND:Tt("&&",2),bitwiseOR:Tt("|",3),bitwiseXOR:Tt("^",4),bitwiseAND:Tt("&",5),equality:Tt("==/!=/===/!==",6),relational:Tt("</>/<=/>=",7),bitShift:Tt("<</>>/>>>",8),plusMin:new He("+/-",{beforeExpr:!0,binop:9,prefix:!0,startsExpr:!0}),modulo:Tt("%",10),star:Tt("*",10),slash:Tt("/",10),starstar:new He("**",{beforeExpr:!0}),coalesce:Tt("??",1),_break:ze("break"),_case:ze("case",Nt),_catch:ze("catch"),_continue:ze("continue"),_debugger:ze("debugger"),_default:ze("default",Nt),_do:ze("do",{isLoop:!0,beforeExpr:!0}),_else:ze("else",Nt),_finally:ze("finally"),_for:ze("for",{isLoop:!0}),_function:ze("function",ft),_if:ze("if"),_return:ze("return",Nt),_switch:ze("switch"),_throw:ze("throw",Nt),_try:ze("try"),_var:ze("var"),_const:ze("const"),_while:ze("while",{isLoop:!0}),_with:ze("with"),_new:ze("new",{beforeExpr:!0,startsExpr:!0}),_this:ze("this",ft),_super:ze("super",ft),_class:ze("class",ft),_extends:ze("extends",Nt),_export:ze("export"),_import:ze("import",ft),_null:ze("null",ft),_true:ze("true",ft),_false:ze("false",ft),_in:ze("in",{beforeExpr:!0,binop:7}),_instanceof:ze("instanceof",{beforeExpr:!0,binop:7}),_typeof:ze("typeof",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_void:ze("void",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_delete:ze("delete",{beforeExpr:!0,prefix:!0,startsExpr:!0})},vt=/\r\n?|\n|\u2028|\u2029/,Bg=new RegExp(vt.source,"g");function Zn(e){return e===10||e===13||e===8232||e===8233}function Ec(e,t,n){n===void 0&&(n=e.length);for(var i=t;i<n;i++){var r=e.charCodeAt(i);if(Zn(r))return i<n-1&&r===13&&e.charCodeAt(i+1)===10?i+2:i+1}return-1}var Sc=/[\u1680\u2000-\u200a\u202f\u205f\u3000\ufeff]/,ot=/(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g,kc=Object.prototype,zg=kc.hasOwnProperty,Kg=kc.toString,Xn=Object.hasOwn||(function(e,t){return zg.call(e,t)}),il=Array.isArray||(function(e){return Kg.call(e)==="[object Array]"}),rl=Object.create(null);function pn(e){return rl[e]||(rl[e]=new RegExp("^(?:"+e.replace(/ /g,"|")+")$"))}function tn(e){return e<=65535?String.fromCharCode(e):(e-=65536,String.fromCharCode((e>>10)+55296,(e&1023)+56320))}var Ug=/(?:[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])/,xi=function(t,n){this.line=t,this.column=n};xi.prototype.offset=function(t){return new xi(this.line,this.column+t)};var Ar=function(t,n,i){this.start=n,this.end=i,t.sourceFile!==null&&(this.source=t.sourceFile)};function Cc(e,t){for(var n=1,i=0;;){var r=Ec(e,i,t);if(r<0)return new xi(n,t-i);++n,i=r}}var Ua={ecmaVersion:null,sourceType:"script",onInsertedSemicolon:null,onTrailingComma:null,allowReserved:null,allowReturnOutsideFunction:!1,allowImportExportEverywhere:!1,allowAwaitOutsideFunction:null,allowSuperOutsideMethod:null,allowHashBang:!1,checkPrivateFields:!0,locations:!1,onToken:null,onComment:null,ranges:!1,program:null,sourceFile:null,directSourceFile:null,preserveParens:!1},al=!1;function Hg(e){var t={};for(var n in Ua)t[n]=e&&Xn(e,n)?e[n]:Ua[n];if(t.ecmaVersion==="latest"?t.ecmaVersion=1e8:t.ecmaVersion==null?(!al&&typeof console=="object"&&console.warn&&(al=!0,console.warn(`Since Acorn 8.0.0, options.ecmaVersion is required.
16
+ Defaulting to 2020, but this will stop working in the future.`)),t.ecmaVersion=11):t.ecmaVersion>=2015&&(t.ecmaVersion-=2009),t.allowReserved==null&&(t.allowReserved=t.ecmaVersion<5),(!e||e.allowHashBang==null)&&(t.allowHashBang=t.ecmaVersion>=14),il(t.onToken)){var i=t.onToken;t.onToken=function(r){return i.push(r)}}if(il(t.onComment)&&(t.onComment=$g(t,t.onComment)),t.sourceType==="commonjs"&&t.allowAwaitOutsideFunction)throw new Error("Cannot use allowAwaitOutsideFunction with sourceType: commonjs");return t}function $g(e,t){return function(n,i,r,s,o,l){var u={type:n?"Block":"Line",value:i,start:r,end:s};e.locations&&(u.loc=new Ar(this,o,l)),e.ranges&&(u.range=[r,s]),t.push(u)}}var In=1,Nn=2,hs=4,_c=8,fs=16,Ic=32,Tr=64,Ac=128,Pn=256,ki=512,Tc=1024,Nr=In|Nn|Pn;function ps(e,t){return Nn|(e?hs:0)|(t?_c:0)}var cr=0,ds=1,ln=2,Nc=3,Pc=4,Oc=5,rt=function(t,n,i){this.options=t=Hg(t),this.sourceFile=t.sourceFile,this.keywords=pn(Dg[t.ecmaVersion>=6?6:t.sourceType==="module"?"5module":5]);var r="";t.allowReserved!==!0&&(r=Yr[t.ecmaVersion>=6?6:t.ecmaVersion===5?5:3],t.sourceType==="module"&&(r+=" await")),this.reservedWords=pn(r);var s=(r?r+" ":"")+Yr.strict;this.reservedWordsStrict=pn(s),this.reservedWordsStrictBind=pn(s+" "+Yr.strictBind),this.input=String(n),this.containsEsc=!1,i?(this.pos=i,this.lineStart=this.input.lastIndexOf(`
17
+ `,i-1)+1,this.curLine=this.input.slice(0,this.lineStart).split(vt).length):(this.pos=this.lineStart=0,this.curLine=1),this.type=_.eof,this.value=null,this.start=this.end=this.pos,this.startLoc=this.endLoc=this.curPosition(),this.lastTokEndLoc=this.lastTokStartLoc=null,this.lastTokStart=this.lastTokEnd=this.pos,this.context=this.initialContext(),this.exprAllowed=!0,this.inModule=t.sourceType==="module",this.strict=this.inModule||this.strictDirective(this.pos),this.potentialArrowAt=-1,this.potentialArrowInForAwait=!1,this.yieldPos=this.awaitPos=this.awaitIdentPos=0,this.labels=[],this.undefinedExports=Object.create(null),this.pos===0&&t.allowHashBang&&this.input.slice(0,2)==="#!"&&this.skipLineComment(2),this.scopeStack=[],this.enterScope(this.options.sourceType==="commonjs"?Nn:In),this.regexpState=null,this.privateNameStack=[]},Dt={inFunction:{configurable:!0},inGenerator:{configurable:!0},inAsync:{configurable:!0},canAwait:{configurable:!0},allowReturn:{configurable:!0},allowSuper:{configurable:!0},allowDirectSuper:{configurable:!0},treatFunctionsAsVar:{configurable:!0},allowNewDotTarget:{configurable:!0},allowUsing:{configurable:!0},inClassStaticBlock:{configurable:!0}};rt.prototype.parse=function(){var t=this.options.program||this.startNode();return this.nextToken(),this.parseTopLevel(t)};Dt.inFunction.get=function(){return(this.currentVarScope().flags&Nn)>0};Dt.inGenerator.get=function(){return(this.currentVarScope().flags&_c)>0};Dt.inAsync.get=function(){return(this.currentVarScope().flags&hs)>0};Dt.canAwait.get=function(){for(var e=this.scopeStack.length-1;e>=0;e--){var t=this.scopeStack[e],n=t.flags;if(n&(Pn|ki))return!1;if(n&Nn)return(n&hs)>0}return this.inModule&&this.options.ecmaVersion>=13||this.options.allowAwaitOutsideFunction};Dt.allowReturn.get=function(){return!!(this.inFunction||this.options.allowReturnOutsideFunction&&this.currentVarScope().flags&In)};Dt.allowSuper.get=function(){var e=this.currentThisScope(),t=e.flags;return(t&Tr)>0||this.options.allowSuperOutsideMethod};Dt.allowDirectSuper.get=function(){return(this.currentThisScope().flags&Ac)>0};Dt.treatFunctionsAsVar.get=function(){return this.treatFunctionsAsVarInScope(this.currentScope())};Dt.allowNewDotTarget.get=function(){for(var e=this.scopeStack.length-1;e>=0;e--){var t=this.scopeStack[e],n=t.flags;if(n&(Pn|ki)||n&Nn&&!(n&fs))return!0}return!1};Dt.allowUsing.get=function(){var e=this.currentScope(),t=e.flags;return!(t&Tc||!this.inModule&&t&In)};Dt.inClassStaticBlock.get=function(){return(this.currentVarScope().flags&Pn)>0};rt.extend=function(){for(var t=[],n=arguments.length;n--;)t[n]=arguments[n];for(var i=this,r=0;r<t.length;r++)i=t[r](i);return i};rt.parse=function(t,n){return new this(n,t).parse()};rt.parseExpressionAt=function(t,n,i){var r=new this(i,t,n);return r.nextToken(),r.parseExpression()};rt.tokenizer=function(t,n){return new this(n,t)};Object.defineProperties(rt.prototype,Dt);var ht=rt.prototype,qg=/^(?:'((?:\\[^]|[^'\\])*?)'|"((?:\\[^]|[^"\\])*?)")/;ht.strictDirective=function(e){if(this.options.ecmaVersion<5)return!1;for(;;){ot.lastIndex=e,e+=ot.exec(this.input)[0].length;var t=qg.exec(this.input.slice(e));if(!t)return!1;if((t[1]||t[2])==="use strict"){ot.lastIndex=e+t[0].length;var n=ot.exec(this.input),i=n.index+n[0].length,r=this.input.charAt(i);return r===";"||r==="}"||vt.test(n[0])&&!(/[(`.[+\-/*%<>=,?^&]/.test(r)||r==="!"&&this.input.charAt(i+1)==="=")}e+=t[0].length,ot.lastIndex=e,e+=ot.exec(this.input)[0].length,this.input[e]===";"&&e++}};ht.eat=function(e){return this.type===e?(this.next(),!0):!1};ht.isContextual=function(e){return this.type===_.name&&this.value===e&&!this.containsEsc};ht.eatContextual=function(e){return this.isContextual(e)?(this.next(),!0):!1};ht.expectContextual=function(e){this.eatContextual(e)||this.unexpected()};ht.canInsertSemicolon=function(){return this.type===_.eof||this.type===_.braceR||vt.test(this.input.slice(this.lastTokEnd,this.start))};ht.insertSemicolon=function(){if(this.canInsertSemicolon())return this.options.onInsertedSemicolon&&this.options.onInsertedSemicolon(this.lastTokEnd,this.lastTokEndLoc),!0};ht.semicolon=function(){!this.eat(_.semi)&&!this.insertSemicolon()&&this.unexpected()};ht.afterTrailingComma=function(e,t){if(this.type===e)return this.options.onTrailingComma&&this.options.onTrailingComma(this.lastTokStart,this.lastTokStartLoc),t||this.next(),!0};ht.expect=function(e){this.eat(e)||this.unexpected()};ht.unexpected=function(e){this.raise(e??this.start,"Unexpected token")};var Pr=function(){this.shorthandAssign=this.trailingComma=this.parenthesizedAssign=this.parenthesizedBind=this.doubleProto=-1};ht.checkPatternErrors=function(e,t){if(e){e.trailingComma>-1&&this.raiseRecoverable(e.trailingComma,"Comma is not permitted after the rest element");var n=t?e.parenthesizedAssign:e.parenthesizedBind;n>-1&&this.raiseRecoverable(n,t?"Assigning to rvalue":"Parenthesized pattern")}};ht.checkExpressionErrors=function(e,t){if(!e)return!1;var n=e.shorthandAssign,i=e.doubleProto;if(!t)return n>=0||i>=0;n>=0&&this.raise(n,"Shorthand property assignments are valid only in destructuring patterns"),i>=0&&this.raiseRecoverable(i,"Redefinition of __proto__ property")};ht.checkYieldAwaitInDefaultParams=function(){this.yieldPos&&(!this.awaitPos||this.yieldPos<this.awaitPos)&&this.raise(this.yieldPos,"Yield expression cannot be a default value"),this.awaitPos&&this.raise(this.awaitPos,"Await expression cannot be a default value")};ht.isSimpleAssignTarget=function(e){return e.type==="ParenthesizedExpression"?this.isSimpleAssignTarget(e.expression):e.type==="Identifier"||e.type==="MemberExpression"};var Ce=rt.prototype;Ce.parseTopLevel=function(e){var t=Object.create(null);for(e.body||(e.body=[]);this.type!==_.eof;){var n=this.parseStatement(null,!0,t);e.body.push(n)}if(this.inModule)for(var i=0,r=Object.keys(this.undefinedExports);i<r.length;i+=1){var s=r[i];this.raiseRecoverable(this.undefinedExports[s].start,"Export '"+s+"' is not defined")}return this.adaptDirectivePrologue(e.body),this.next(),e.sourceType=this.options.sourceType==="commonjs"?"script":this.options.sourceType,this.finishNode(e,"Program")};var gs={kind:"loop"},Wg={kind:"switch"};Ce.isLet=function(e){if(this.options.ecmaVersion<6||!this.isContextual("let"))return!1;ot.lastIndex=this.pos;var t=ot.exec(this.input),n=this.pos+t[0].length,i=this.fullCharCodeAt(n);if(i===91||i===92)return!0;if(e)return!1;if(i===123)return!0;if(Gt(i)){var r=n;do n+=i<=65535?1:2;while(mn(i=this.fullCharCodeAt(n)));if(i===92)return!0;var s=this.input.slice(r,n);if(!wc.test(s))return!0}return!1};Ce.isAsyncFunction=function(){if(this.options.ecmaVersion<8||!this.isContextual("async"))return!1;ot.lastIndex=this.pos;var e=ot.exec(this.input),t=this.pos+e[0].length,n;return!vt.test(this.input.slice(this.pos,t))&&this.input.slice(t,t+8)==="function"&&(t+8===this.input.length||!(mn(n=this.fullCharCodeAt(t+8))||n===92))};Ce.isUsingKeyword=function(e,t){if(this.options.ecmaVersion<17||!this.isContextual(e?"await":"using"))return!1;ot.lastIndex=this.pos;var n=ot.exec(this.input),i=this.pos+n[0].length;if(vt.test(this.input.slice(this.pos,i)))return!1;if(e){var r=i+5,s;if(this.input.slice(i,r)!=="using"||r===this.input.length||mn(s=this.fullCharCodeAt(r))||s===92)return!1;ot.lastIndex=r;var o=ot.exec(this.input);if(i=r+o[0].length,o&&vt.test(this.input.slice(r,i)))return!1}var l=this.fullCharCodeAt(i);if(!Gt(l)&&l!==92)return!1;var u=i;do i+=l<=65535?1:2;while(mn(l=this.fullCharCodeAt(i)));if(l===92)return!0;var f=this.input.slice(u,i);return!(wc.test(f)||t&&f==="of")};Ce.isAwaitUsing=function(e){return this.isUsingKeyword(!0,e)};Ce.isUsing=function(e){return this.isUsingKeyword(!1,e)};Ce.parseStatement=function(e,t,n){var i=this.type,r=this.startNode(),s;switch(this.isLet(e)&&(i=_._var,s="let"),i){case _._break:case _._continue:return this.parseBreakContinueStatement(r,i.keyword);case _._debugger:return this.parseDebuggerStatement(r);case _._do:return this.parseDoStatement(r);case _._for:return this.parseForStatement(r);case _._function:return e&&(this.strict||e!=="if"&&e!=="label")&&this.options.ecmaVersion>=6&&this.unexpected(),this.parseFunctionStatement(r,!1,!e);case _._class:return e&&this.unexpected(),this.parseClass(r,!0);case _._if:return this.parseIfStatement(r);case _._return:return this.parseReturnStatement(r);case _._switch:return this.parseSwitchStatement(r);case _._throw:return this.parseThrowStatement(r);case _._try:return this.parseTryStatement(r);case _._const:case _._var:return s=s||this.value,e&&s!=="var"&&this.unexpected(),this.parseVarStatement(r,s);case _._while:return this.parseWhileStatement(r);case _._with:return this.parseWithStatement(r);case _.braceL:return this.parseBlock(!0,r);case _.semi:return this.parseEmptyStatement(r);case _._export:case _._import:if(this.options.ecmaVersion>10&&i===_._import){ot.lastIndex=this.pos;var o=ot.exec(this.input),l=this.pos+o[0].length,u=this.input.charCodeAt(l);if(u===40||u===46)return this.parseExpressionStatement(r,this.parseExpression())}return this.options.allowImportExportEverywhere||(t||this.raise(this.start,"'import' and 'export' may only appear at the top level"),this.inModule||this.raise(this.start,"'import' and 'export' may appear only with 'sourceType: module'")),i===_._import?this.parseImport(r):this.parseExport(r,n);default:if(this.isAsyncFunction())return e&&this.unexpected(),this.next(),this.parseFunctionStatement(r,!0,!e);var f=this.isAwaitUsing(!1)?"await using":this.isUsing(!1)?"using":null;if(f)return this.allowUsing||this.raise(this.start,"Using declaration cannot appear in the top level when source type is `script` or in the bare case statement"),f==="await using"&&(this.canAwait||this.raise(this.start,"Await using cannot appear outside of async function"),this.next()),this.next(),this.parseVar(r,!1,f),this.semicolon(),this.finishNode(r,"VariableDeclaration");var p=this.value,h=this.parseExpression();return i===_.name&&h.type==="Identifier"&&this.eat(_.colon)?this.parseLabeledStatement(r,p,h,e):this.parseExpressionStatement(r,h)}};Ce.parseBreakContinueStatement=function(e,t){var n=t==="break";this.next(),this.eat(_.semi)||this.insertSemicolon()?e.label=null:this.type!==_.name?this.unexpected():(e.label=this.parseIdent(),this.semicolon());for(var i=0;i<this.labels.length;++i){var r=this.labels[i];if((e.label==null||r.name===e.label.name)&&(r.kind!=null&&(n||r.kind==="loop")||e.label&&n))break}return i===this.labels.length&&this.raise(e.start,"Unsyntactic "+t),this.finishNode(e,n?"BreakStatement":"ContinueStatement")};Ce.parseDebuggerStatement=function(e){return this.next(),this.semicolon(),this.finishNode(e,"DebuggerStatement")};Ce.parseDoStatement=function(e){return this.next(),this.labels.push(gs),e.body=this.parseStatement("do"),this.labels.pop(),this.expect(_._while),e.test=this.parseParenExpression(),this.options.ecmaVersion>=6?this.eat(_.semi):this.semicolon(),this.finishNode(e,"DoWhileStatement")};Ce.parseForStatement=function(e){this.next();var t=this.options.ecmaVersion>=9&&this.canAwait&&this.eatContextual("await")?this.lastTokStart:-1;if(this.labels.push(gs),this.enterScope(0),this.expect(_.parenL),this.type===_.semi)return t>-1&&this.unexpected(t),this.parseFor(e,null);var n=this.isLet();if(this.type===_._var||this.type===_._const||n){var i=this.startNode(),r=n?"let":this.value;return this.next(),this.parseVar(i,!0,r),this.finishNode(i,"VariableDeclaration"),this.parseForAfterInit(e,i,t)}var s=this.isContextual("let"),o=!1,l=this.isUsing(!0)?"using":this.isAwaitUsing(!0)?"await using":null;if(l){var u=this.startNode();return this.next(),l==="await using"&&(this.canAwait||this.raise(this.start,"Await using cannot appear outside of async function"),this.next()),this.parseVar(u,!0,l),this.finishNode(u,"VariableDeclaration"),this.parseForAfterInit(e,u,t)}var f=this.containsEsc,p=new Pr,h=this.start,d=t>-1?this.parseExprSubscripts(p,"await"):this.parseExpression(!0,p);return this.type===_._in||(o=this.options.ecmaVersion>=6&&this.isContextual("of"))?(t>-1?(this.type===_._in&&this.unexpected(t),e.await=!0):o&&this.options.ecmaVersion>=8&&(d.start===h&&!f&&d.type==="Identifier"&&d.name==="async"?this.unexpected():this.options.ecmaVersion>=9&&(e.await=!1)),s&&o&&this.raise(d.start,"The left-hand side of a for-of loop may not start with 'let'."),this.toAssignable(d,!1,p),this.checkLValPattern(d),this.parseForIn(e,d)):(this.checkExpressionErrors(p,!0),t>-1&&this.unexpected(t),this.parseFor(e,d))};Ce.parseForAfterInit=function(e,t,n){return(this.type===_._in||this.options.ecmaVersion>=6&&this.isContextual("of"))&&t.declarations.length===1?(this.options.ecmaVersion>=9&&(this.type===_._in?n>-1&&this.unexpected(n):e.await=n>-1),this.parseForIn(e,t)):(n>-1&&this.unexpected(n),this.parseFor(e,t))};Ce.parseFunctionStatement=function(e,t,n){return this.next(),this.parseFunction(e,ci|(n?0:Ha),!1,t)};Ce.parseIfStatement=function(e){return this.next(),e.test=this.parseParenExpression(),e.consequent=this.parseStatement("if"),e.alternate=this.eat(_._else)?this.parseStatement("if"):null,this.finishNode(e,"IfStatement")};Ce.parseReturnStatement=function(e){return this.allowReturn||this.raise(this.start,"'return' outside of function"),this.next(),this.eat(_.semi)||this.insertSemicolon()?e.argument=null:(e.argument=this.parseExpression(),this.semicolon()),this.finishNode(e,"ReturnStatement")};Ce.parseSwitchStatement=function(e){this.next(),e.discriminant=this.parseParenExpression(),e.cases=[],this.expect(_.braceL),this.labels.push(Wg),this.enterScope(Tc);for(var t,n=!1;this.type!==_.braceR;)if(this.type===_._case||this.type===_._default){var i=this.type===_._case;t&&this.finishNode(t,"SwitchCase"),e.cases.push(t=this.startNode()),t.consequent=[],this.next(),i?t.test=this.parseExpression():(n&&this.raiseRecoverable(this.lastTokStart,"Multiple default clauses"),n=!0,t.test=null),this.expect(_.colon)}else t||this.unexpected(),t.consequent.push(this.parseStatement(null));return this.exitScope(),t&&this.finishNode(t,"SwitchCase"),this.next(),this.labels.pop(),this.finishNode(e,"SwitchStatement")};Ce.parseThrowStatement=function(e){return this.next(),vt.test(this.input.slice(this.lastTokEnd,this.start))&&this.raise(this.lastTokEnd,"Illegal newline after throw"),e.argument=this.parseExpression(),this.semicolon(),this.finishNode(e,"ThrowStatement")};var Gg=[];Ce.parseCatchClauseParam=function(){var e=this.parseBindingAtom(),t=e.type==="Identifier";return this.enterScope(t?Ic:0),this.checkLValPattern(e,t?Pc:ln),this.expect(_.parenR),e};Ce.parseTryStatement=function(e){if(this.next(),e.block=this.parseBlock(),e.handler=null,this.type===_._catch){var t=this.startNode();this.next(),this.eat(_.parenL)?t.param=this.parseCatchClauseParam():(this.options.ecmaVersion<10&&this.unexpected(),t.param=null,this.enterScope(0)),t.body=this.parseBlock(!1),this.exitScope(),e.handler=this.finishNode(t,"CatchClause")}return e.finalizer=this.eat(_._finally)?this.parseBlock():null,!e.handler&&!e.finalizer&&this.raise(e.start,"Missing catch or finally clause"),this.finishNode(e,"TryStatement")};Ce.parseVarStatement=function(e,t,n){return this.next(),this.parseVar(e,!1,t,n),this.semicolon(),this.finishNode(e,"VariableDeclaration")};Ce.parseWhileStatement=function(e){return this.next(),e.test=this.parseParenExpression(),this.labels.push(gs),e.body=this.parseStatement("while"),this.labels.pop(),this.finishNode(e,"WhileStatement")};Ce.parseWithStatement=function(e){return this.strict&&this.raise(this.start,"'with' in strict mode"),this.next(),e.object=this.parseParenExpression(),e.body=this.parseStatement("with"),this.finishNode(e,"WithStatement")};Ce.parseEmptyStatement=function(e){return this.next(),this.finishNode(e,"EmptyStatement")};Ce.parseLabeledStatement=function(e,t,n,i){for(var r=0,s=this.labels;r<s.length;r+=1){var o=s[r];o.name===t&&this.raise(n.start,"Label '"+t+"' is already declared")}for(var l=this.type.isLoop?"loop":this.type===_._switch?"switch":null,u=this.labels.length-1;u>=0;u--){var f=this.labels[u];if(f.statementStart===e.start)f.statementStart=this.start,f.kind=l;else break}return this.labels.push({name:t,kind:l,statementStart:this.start}),e.body=this.parseStatement(i?i.indexOf("label")===-1?i+"label":i:"label"),this.labels.pop(),e.label=n,this.finishNode(e,"LabeledStatement")};Ce.parseExpressionStatement=function(e,t){return e.expression=t,this.semicolon(),this.finishNode(e,"ExpressionStatement")};Ce.parseBlock=function(e,t,n){for(e===void 0&&(e=!0),t===void 0&&(t=this.startNode()),t.body=[],this.expect(_.braceL),e&&this.enterScope(0);this.type!==_.braceR;){var i=this.parseStatement(null);t.body.push(i)}return n&&(this.strict=!1),this.next(),e&&this.exitScope(),this.finishNode(t,"BlockStatement")};Ce.parseFor=function(e,t){return e.init=t,this.expect(_.semi),e.test=this.type===_.semi?null:this.parseExpression(),this.expect(_.semi),e.update=this.type===_.parenR?null:this.parseExpression(),this.expect(_.parenR),e.body=this.parseStatement("for"),this.exitScope(),this.labels.pop(),this.finishNode(e,"ForStatement")};Ce.parseForIn=function(e,t){var n=this.type===_._in;return this.next(),t.type==="VariableDeclaration"&&t.declarations[0].init!=null&&(!n||this.options.ecmaVersion<8||this.strict||t.kind!=="var"||t.declarations[0].id.type!=="Identifier")&&this.raise(t.start,(n?"for-in":"for-of")+" loop variable declaration may not have an initializer"),e.left=t,e.right=n?this.parseExpression():this.parseMaybeAssign(),this.expect(_.parenR),e.body=this.parseStatement("for"),this.exitScope(),this.labels.pop(),this.finishNode(e,n?"ForInStatement":"ForOfStatement")};Ce.parseVar=function(e,t,n,i){for(e.declarations=[],e.kind=n;;){var r=this.startNode();if(this.parseVarId(r,n),this.eat(_.eq)?r.init=this.parseMaybeAssign(t):!i&&n==="const"&&!(this.type===_._in||this.options.ecmaVersion>=6&&this.isContextual("of"))?this.unexpected():!i&&(n==="using"||n==="await using")&&this.options.ecmaVersion>=17&&this.type!==_._in&&!this.isContextual("of")?this.raise(this.lastTokEnd,"Missing initializer in "+n+" declaration"):!i&&r.id.type!=="Identifier"&&!(t&&(this.type===_._in||this.isContextual("of")))?this.raise(this.lastTokEnd,"Complex binding patterns require an initialization value"):r.init=null,e.declarations.push(this.finishNode(r,"VariableDeclarator")),!this.eat(_.comma))break}return e};Ce.parseVarId=function(e,t){e.id=t==="using"||t==="await using"?this.parseIdent():this.parseBindingAtom(),this.checkLValPattern(e.id,t==="var"?ds:ln,!1)};var ci=1,Ha=2,Rc=4;Ce.parseFunction=function(e,t,n,i,r){this.initFunction(e),(this.options.ecmaVersion>=9||this.options.ecmaVersion>=6&&!i)&&(this.type===_.star&&t&Ha&&this.unexpected(),e.generator=this.eat(_.star)),this.options.ecmaVersion>=8&&(e.async=!!i),t&ci&&(e.id=t&Rc&&this.type!==_.name?null:this.parseIdent(),e.id&&!(t&Ha)&&this.checkLValSimple(e.id,this.strict||e.generator||e.async?this.treatFunctionsAsVar?ds:ln:Nc));var s=this.yieldPos,o=this.awaitPos,l=this.awaitIdentPos;return this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(ps(e.async,e.generator)),t&ci||(e.id=this.type===_.name?this.parseIdent():null),this.parseFunctionParams(e),this.parseFunctionBody(e,n,!1,r),this.yieldPos=s,this.awaitPos=o,this.awaitIdentPos=l,this.finishNode(e,t&ci?"FunctionDeclaration":"FunctionExpression")};Ce.parseFunctionParams=function(e){this.expect(_.parenL),e.params=this.parseBindingList(_.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams()};Ce.parseClass=function(e,t){this.next();var n=this.strict;this.strict=!0,this.parseClassId(e,t),this.parseClassSuper(e);var i=this.enterClassBody(),r=this.startNode(),s=!1;for(r.body=[],this.expect(_.braceL);this.type!==_.braceR;){var o=this.parseClassElement(e.superClass!==null);o&&(r.body.push(o),o.type==="MethodDefinition"&&o.kind==="constructor"?(s&&this.raiseRecoverable(o.start,"Duplicate constructor in the same class"),s=!0):o.key&&o.key.type==="PrivateIdentifier"&&Jg(i,o)&&this.raiseRecoverable(o.key.start,"Identifier '#"+o.key.name+"' has already been declared"))}return this.strict=n,this.next(),e.body=this.finishNode(r,"ClassBody"),this.exitClassBody(),this.finishNode(e,t?"ClassDeclaration":"ClassExpression")};Ce.parseClassElement=function(e){if(this.eat(_.semi))return null;var t=this.options.ecmaVersion,n=this.startNode(),i="",r=!1,s=!1,o="method",l=!1;if(this.eatContextual("static")){if(t>=13&&this.eat(_.braceL))return this.parseClassStaticBlock(n),n;this.isClassElementNameStart()||this.type===_.star?l=!0:i="static"}if(n.static=l,!i&&t>=8&&this.eatContextual("async")&&((this.isClassElementNameStart()||this.type===_.star)&&!this.canInsertSemicolon()?s=!0:i="async"),!i&&(t>=9||!s)&&this.eat(_.star)&&(r=!0),!i&&!s&&!r){var u=this.value;(this.eatContextual("get")||this.eatContextual("set"))&&(this.isClassElementNameStart()?o=u:i=u)}if(i?(n.computed=!1,n.key=this.startNodeAt(this.lastTokStart,this.lastTokStartLoc),n.key.name=i,this.finishNode(n.key,"Identifier")):this.parseClassElementName(n),t<13||this.type===_.parenL||o!=="method"||r||s){var f=!n.static&&hr(n,"constructor"),p=f&&e;f&&o!=="method"&&this.raise(n.key.start,"Constructor can't have get/set modifier"),n.kind=f?"constructor":o,this.parseClassMethod(n,r,s,p)}else this.parseClassField(n);return n};Ce.isClassElementNameStart=function(){return this.type===_.name||this.type===_.privateId||this.type===_.num||this.type===_.string||this.type===_.bracketL||this.type.keyword};Ce.parseClassElementName=function(e){this.type===_.privateId?(this.value==="constructor"&&this.raise(this.start,"Classes can't have an element named '#constructor'"),e.computed=!1,e.key=this.parsePrivateIdent()):this.parsePropertyName(e)};Ce.parseClassMethod=function(e,t,n,i){var r=e.key;e.kind==="constructor"?(t&&this.raise(r.start,"Constructor can't be a generator"),n&&this.raise(r.start,"Constructor can't be an async method")):e.static&&hr(e,"prototype")&&this.raise(r.start,"Classes may not have a static property named prototype");var s=e.value=this.parseMethod(t,n,i);return e.kind==="get"&&s.params.length!==0&&this.raiseRecoverable(s.start,"getter should have no params"),e.kind==="set"&&s.params.length!==1&&this.raiseRecoverable(s.start,"setter should have exactly one param"),e.kind==="set"&&s.params[0].type==="RestElement"&&this.raiseRecoverable(s.params[0].start,"Setter cannot use rest params"),this.finishNode(e,"MethodDefinition")};Ce.parseClassField=function(e){return hr(e,"constructor")?this.raise(e.key.start,"Classes can't have a field named 'constructor'"):e.static&&hr(e,"prototype")&&this.raise(e.key.start,"Classes can't have a static field named 'prototype'"),this.eat(_.eq)?(this.enterScope(ki|Tr),e.value=this.parseMaybeAssign(),this.exitScope()):e.value=null,this.semicolon(),this.finishNode(e,"PropertyDefinition")};Ce.parseClassStaticBlock=function(e){e.body=[];var t=this.labels;for(this.labels=[],this.enterScope(Pn|Tr);this.type!==_.braceR;){var n=this.parseStatement(null);e.body.push(n)}return this.next(),this.exitScope(),this.labels=t,this.finishNode(e,"StaticBlock")};Ce.parseClassId=function(e,t){this.type===_.name?(e.id=this.parseIdent(),t&&this.checkLValSimple(e.id,ln,!1)):(t===!0&&this.unexpected(),e.id=null)};Ce.parseClassSuper=function(e){e.superClass=this.eat(_._extends)?this.parseExprSubscripts(null,!1):null};Ce.enterClassBody=function(){var e={declared:Object.create(null),used:[]};return this.privateNameStack.push(e),e.declared};Ce.exitClassBody=function(){var e=this.privateNameStack.pop(),t=e.declared,n=e.used;if(this.options.checkPrivateFields)for(var i=this.privateNameStack.length,r=i===0?null:this.privateNameStack[i-1],s=0;s<n.length;++s){var o=n[s];Xn(t,o.name)||(r?r.used.push(o):this.raiseRecoverable(o.start,"Private field '#"+o.name+"' must be declared in an enclosing class"))}};function Jg(e,t){var n=t.key.name,i=e[n],r="true";return t.type==="MethodDefinition"&&(t.kind==="get"||t.kind==="set")&&(r=(t.static?"s":"i")+t.kind),i==="iget"&&r==="iset"||i==="iset"&&r==="iget"||i==="sget"&&r==="sset"||i==="sset"&&r==="sget"?(e[n]="true",!1):i?!0:(e[n]=r,!1)}function hr(e,t){var n=e.computed,i=e.key;return!n&&(i.type==="Identifier"&&i.name===t||i.type==="Literal"&&i.value===t)}Ce.parseExportAllDeclaration=function(e,t){return this.options.ecmaVersion>=11&&(this.eatContextual("as")?(e.exported=this.parseModuleExportName(),this.checkExport(t,e.exported,this.lastTokStart)):e.exported=null),this.expectContextual("from"),this.type!==_.string&&this.unexpected(),e.source=this.parseExprAtom(),this.options.ecmaVersion>=16&&(e.attributes=this.parseWithClause()),this.semicolon(),this.finishNode(e,"ExportAllDeclaration")};Ce.parseExport=function(e,t){if(this.next(),this.eat(_.star))return this.parseExportAllDeclaration(e,t);if(this.eat(_._default))return this.checkExport(t,"default",this.lastTokStart),e.declaration=this.parseExportDefaultDeclaration(),this.finishNode(e,"ExportDefaultDeclaration");if(this.shouldParseExportStatement())e.declaration=this.parseExportDeclaration(e),e.declaration.type==="VariableDeclaration"?this.checkVariableExport(t,e.declaration.declarations):this.checkExport(t,e.declaration.id,e.declaration.id.start),e.specifiers=[],e.source=null,this.options.ecmaVersion>=16&&(e.attributes=[]);else{if(e.declaration=null,e.specifiers=this.parseExportSpecifiers(t),this.eatContextual("from"))this.type!==_.string&&this.unexpected(),e.source=this.parseExprAtom(),this.options.ecmaVersion>=16&&(e.attributes=this.parseWithClause());else{for(var n=0,i=e.specifiers;n<i.length;n+=1){var r=i[n];this.checkUnreserved(r.local),this.checkLocalExport(r.local),r.local.type==="Literal"&&this.raise(r.local.start,"A string literal cannot be used as an exported binding without `from`.")}e.source=null,this.options.ecmaVersion>=16&&(e.attributes=[])}this.semicolon()}return this.finishNode(e,"ExportNamedDeclaration")};Ce.parseExportDeclaration=function(e){return this.parseStatement(null)};Ce.parseExportDefaultDeclaration=function(){var e;if(this.type===_._function||(e=this.isAsyncFunction())){var t=this.startNode();return this.next(),e&&this.next(),this.parseFunction(t,ci|Rc,!1,e)}else if(this.type===_._class){var n=this.startNode();return this.parseClass(n,"nullableID")}else{var i=this.parseMaybeAssign();return this.semicolon(),i}};Ce.checkExport=function(e,t,n){e&&(typeof t!="string"&&(t=t.type==="Identifier"?t.name:t.value),Xn(e,t)&&this.raiseRecoverable(n,"Duplicate export '"+t+"'"),e[t]=!0)};Ce.checkPatternExport=function(e,t){var n=t.type;if(n==="Identifier")this.checkExport(e,t,t.start);else if(n==="ObjectPattern")for(var i=0,r=t.properties;i<r.length;i+=1){var s=r[i];this.checkPatternExport(e,s)}else if(n==="ArrayPattern")for(var o=0,l=t.elements;o<l.length;o+=1){var u=l[o];u&&this.checkPatternExport(e,u)}else n==="Property"?this.checkPatternExport(e,t.value):n==="AssignmentPattern"?this.checkPatternExport(e,t.left):n==="RestElement"&&this.checkPatternExport(e,t.argument)};Ce.checkVariableExport=function(e,t){if(e)for(var n=0,i=t;n<i.length;n+=1){var r=i[n];this.checkPatternExport(e,r.id)}};Ce.shouldParseExportStatement=function(){return this.type.keyword==="var"||this.type.keyword==="const"||this.type.keyword==="class"||this.type.keyword==="function"||this.isLet()||this.isAsyncFunction()};Ce.parseExportSpecifier=function(e){var t=this.startNode();return t.local=this.parseModuleExportName(),t.exported=this.eatContextual("as")?this.parseModuleExportName():t.local,this.checkExport(e,t.exported,t.exported.start),this.finishNode(t,"ExportSpecifier")};Ce.parseExportSpecifiers=function(e){var t=[],n=!0;for(this.expect(_.braceL);!this.eat(_.braceR);){if(n)n=!1;else if(this.expect(_.comma),this.afterTrailingComma(_.braceR))break;t.push(this.parseExportSpecifier(e))}return t};Ce.parseImport=function(e){return this.next(),this.type===_.string?(e.specifiers=Gg,e.source=this.parseExprAtom()):(e.specifiers=this.parseImportSpecifiers(),this.expectContextual("from"),e.source=this.type===_.string?this.parseExprAtom():this.unexpected()),this.options.ecmaVersion>=16&&(e.attributes=this.parseWithClause()),this.semicolon(),this.finishNode(e,"ImportDeclaration")};Ce.parseImportSpecifier=function(){var e=this.startNode();return e.imported=this.parseModuleExportName(),this.eatContextual("as")?e.local=this.parseIdent():(this.checkUnreserved(e.imported),e.local=e.imported),this.checkLValSimple(e.local,ln),this.finishNode(e,"ImportSpecifier")};Ce.parseImportDefaultSpecifier=function(){var e=this.startNode();return e.local=this.parseIdent(),this.checkLValSimple(e.local,ln),this.finishNode(e,"ImportDefaultSpecifier")};Ce.parseImportNamespaceSpecifier=function(){var e=this.startNode();return this.next(),this.expectContextual("as"),e.local=this.parseIdent(),this.checkLValSimple(e.local,ln),this.finishNode(e,"ImportNamespaceSpecifier")};Ce.parseImportSpecifiers=function(){var e=[],t=!0;if(this.type===_.name&&(e.push(this.parseImportDefaultSpecifier()),!this.eat(_.comma)))return e;if(this.type===_.star)return e.push(this.parseImportNamespaceSpecifier()),e;for(this.expect(_.braceL);!this.eat(_.braceR);){if(t)t=!1;else if(this.expect(_.comma),this.afterTrailingComma(_.braceR))break;e.push(this.parseImportSpecifier())}return e};Ce.parseWithClause=function(){var e=[];if(!this.eat(_._with))return e;this.expect(_.braceL);for(var t={},n=!0;!this.eat(_.braceR);){if(n)n=!1;else if(this.expect(_.comma),this.afterTrailingComma(_.braceR))break;var i=this.parseImportAttribute(),r=i.key.type==="Identifier"?i.key.name:i.key.value;Xn(t,r)&&this.raiseRecoverable(i.key.start,"Duplicate attribute key '"+r+"'"),t[r]=!0,e.push(i)}return e};Ce.parseImportAttribute=function(){var e=this.startNode();return e.key=this.type===_.string?this.parseExprAtom():this.parseIdent(this.options.allowReserved!=="never"),this.expect(_.colon),this.type!==_.string&&this.unexpected(),e.value=this.parseExprAtom(),this.finishNode(e,"ImportAttribute")};Ce.parseModuleExportName=function(){if(this.options.ecmaVersion>=13&&this.type===_.string){var e=this.parseLiteral(this.value);return Ug.test(e.value)&&this.raise(e.start,"An export name cannot include a lone surrogate."),e}return this.parseIdent(!0)};Ce.adaptDirectivePrologue=function(e){for(var t=0;t<e.length&&this.isDirectiveCandidate(e[t]);++t)e[t].directive=e[t].expression.raw.slice(1,-1)};Ce.isDirectiveCandidate=function(e){return this.options.ecmaVersion>=5&&e.type==="ExpressionStatement"&&e.expression.type==="Literal"&&typeof e.expression.value=="string"&&(this.input[e.start]==='"'||this.input[e.start]==="'")};var jt=rt.prototype;jt.toAssignable=function(e,t,n){if(this.options.ecmaVersion>=6&&e)switch(e.type){case"Identifier":this.inAsync&&e.name==="await"&&this.raise(e.start,"Cannot use 'await' as identifier inside an async function");break;case"ObjectPattern":case"ArrayPattern":case"AssignmentPattern":case"RestElement":break;case"ObjectExpression":e.type="ObjectPattern",n&&this.checkPatternErrors(n,!0);for(var i=0,r=e.properties;i<r.length;i+=1){var s=r[i];this.toAssignable(s,t),s.type==="RestElement"&&(s.argument.type==="ArrayPattern"||s.argument.type==="ObjectPattern")&&this.raise(s.argument.start,"Unexpected token")}break;case"Property":e.kind!=="init"&&this.raise(e.key.start,"Object pattern can't contain getter or setter"),this.toAssignable(e.value,t);break;case"ArrayExpression":e.type="ArrayPattern",n&&this.checkPatternErrors(n,!0),this.toAssignableList(e.elements,t);break;case"SpreadElement":e.type="RestElement",this.toAssignable(e.argument,t),e.argument.type==="AssignmentPattern"&&this.raise(e.argument.start,"Rest elements cannot have a default value");break;case"AssignmentExpression":e.operator!=="="&&this.raise(e.left.end,"Only '=' operator can be used for specifying default value."),e.type="AssignmentPattern",delete e.operator,this.toAssignable(e.left,t);break;case"ParenthesizedExpression":this.toAssignable(e.expression,t,n);break;case"ChainExpression":this.raiseRecoverable(e.start,"Optional chaining cannot appear in left-hand side");break;case"MemberExpression":if(!t)break;default:this.raise(e.start,"Assigning to rvalue")}else n&&this.checkPatternErrors(n,!0);return e};jt.toAssignableList=function(e,t){for(var n=e.length,i=0;i<n;i++){var r=e[i];r&&this.toAssignable(r,t)}if(n){var s=e[n-1];this.options.ecmaVersion===6&&t&&s&&s.type==="RestElement"&&s.argument.type!=="Identifier"&&this.unexpected(s.argument.start)}return e};jt.parseSpread=function(e){var t=this.startNode();return this.next(),t.argument=this.parseMaybeAssign(!1,e),this.finishNode(t,"SpreadElement")};jt.parseRestBinding=function(){var e=this.startNode();return this.next(),this.options.ecmaVersion===6&&this.type!==_.name&&this.unexpected(),e.argument=this.parseBindingAtom(),this.finishNode(e,"RestElement")};jt.parseBindingAtom=function(){if(this.options.ecmaVersion>=6)switch(this.type){case _.bracketL:var e=this.startNode();return this.next(),e.elements=this.parseBindingList(_.bracketR,!0,!0),this.finishNode(e,"ArrayPattern");case _.braceL:return this.parseObj(!0)}return this.parseIdent()};jt.parseBindingList=function(e,t,n,i){for(var r=[],s=!0;!this.eat(e);)if(s?s=!1:this.expect(_.comma),t&&this.type===_.comma)r.push(null);else{if(n&&this.afterTrailingComma(e))break;if(this.type===_.ellipsis){var o=this.parseRestBinding();this.parseBindingListItem(o),r.push(o),this.type===_.comma&&this.raiseRecoverable(this.start,"Comma is not permitted after the rest element"),this.expect(e);break}else r.push(this.parseAssignableListItem(i))}return r};jt.parseAssignableListItem=function(e){var t=this.parseMaybeDefault(this.start,this.startLoc);return this.parseBindingListItem(t),t};jt.parseBindingListItem=function(e){return e};jt.parseMaybeDefault=function(e,t,n){if(n=n||this.parseBindingAtom(),this.options.ecmaVersion<6||!this.eat(_.eq))return n;var i=this.startNodeAt(e,t);return i.left=n,i.right=this.parseMaybeAssign(),this.finishNode(i,"AssignmentPattern")};jt.checkLValSimple=function(e,t,n){t===void 0&&(t=cr);var i=t!==cr;switch(e.type){case"Identifier":this.strict&&this.reservedWordsStrictBind.test(e.name)&&this.raiseRecoverable(e.start,(i?"Binding ":"Assigning to ")+e.name+" in strict mode"),i&&(t===ln&&e.name==="let"&&this.raiseRecoverable(e.start,"let is disallowed as a lexically bound name"),n&&(Xn(n,e.name)&&this.raiseRecoverable(e.start,"Argument name clash"),n[e.name]=!0),t!==Oc&&this.declareName(e.name,t,e.start));break;case"ChainExpression":this.raiseRecoverable(e.start,"Optional chaining cannot appear in left-hand side");break;case"MemberExpression":i&&this.raiseRecoverable(e.start,"Binding member expression");break;case"ParenthesizedExpression":return i&&this.raiseRecoverable(e.start,"Binding parenthesized expression"),this.checkLValSimple(e.expression,t,n);default:this.raise(e.start,(i?"Binding":"Assigning to")+" rvalue")}};jt.checkLValPattern=function(e,t,n){switch(t===void 0&&(t=cr),e.type){case"ObjectPattern":for(var i=0,r=e.properties;i<r.length;i+=1){var s=r[i];this.checkLValInnerPattern(s,t,n)}break;case"ArrayPattern":for(var o=0,l=e.elements;o<l.length;o+=1){var u=l[o];u&&this.checkLValInnerPattern(u,t,n)}break;default:this.checkLValSimple(e,t,n)}};jt.checkLValInnerPattern=function(e,t,n){switch(t===void 0&&(t=cr),e.type){case"Property":this.checkLValInnerPattern(e.value,t,n);break;case"AssignmentPattern":this.checkLValPattern(e.left,t,n);break;case"RestElement":this.checkLValPattern(e.argument,t,n);break;default:this.checkLValPattern(e,t,n)}};var Bt=function(t,n,i,r,s){this.token=t,this.isExpr=!!n,this.preserveSpace=!!i,this.override=r,this.generator=!!s},tt={b_stat:new Bt("{",!1),b_expr:new Bt("{",!0),b_tmpl:new Bt("${",!1),p_stat:new Bt("(",!1),p_expr:new Bt("(",!0),q_tmpl:new Bt("`",!0,!0,function(e){return e.tryReadTemplateToken()}),f_stat:new Bt("function",!1),f_expr:new Bt("function",!0),f_expr_gen:new Bt("function",!0,!1,null,!0),f_gen:new Bt("function",!1,!1,null,!0)},ei=rt.prototype;ei.initialContext=function(){return[tt.b_stat]};ei.curContext=function(){return this.context[this.context.length-1]};ei.braceIsBlock=function(e){var t=this.curContext();return t===tt.f_expr||t===tt.f_stat?!0:e===_.colon&&(t===tt.b_stat||t===tt.b_expr)?!t.isExpr:e===_._return||e===_.name&&this.exprAllowed?vt.test(this.input.slice(this.lastTokEnd,this.start)):e===_._else||e===_.semi||e===_.eof||e===_.parenR||e===_.arrow?!0:e===_.braceL?t===tt.b_stat:e===_._var||e===_._const||e===_.name?!1:!this.exprAllowed};ei.inGeneratorContext=function(){for(var e=this.context.length-1;e>=1;e--){var t=this.context[e];if(t.token==="function")return t.generator}return!1};ei.updateContext=function(e){var t,n=this.type;n.keyword&&e===_.dot?this.exprAllowed=!1:(t=n.updateContext)?t.call(this,e):this.exprAllowed=n.beforeExpr};ei.overrideContext=function(e){this.curContext()!==e&&(this.context[this.context.length-1]=e)};_.parenR.updateContext=_.braceR.updateContext=function(){if(this.context.length===1){this.exprAllowed=!0;return}var e=this.context.pop();e===tt.b_stat&&this.curContext().token==="function"&&(e=this.context.pop()),this.exprAllowed=!e.isExpr};_.braceL.updateContext=function(e){this.context.push(this.braceIsBlock(e)?tt.b_stat:tt.b_expr),this.exprAllowed=!0};_.dollarBraceL.updateContext=function(){this.context.push(tt.b_tmpl),this.exprAllowed=!0};_.parenL.updateContext=function(e){var t=e===_._if||e===_._for||e===_._with||e===_._while;this.context.push(t?tt.p_stat:tt.p_expr),this.exprAllowed=!0};_.incDec.updateContext=function(){};_._function.updateContext=_._class.updateContext=function(e){e.beforeExpr&&e!==_._else&&!(e===_.semi&&this.curContext()!==tt.p_stat)&&!(e===_._return&&vt.test(this.input.slice(this.lastTokEnd,this.start)))&&!((e===_.colon||e===_.braceL)&&this.curContext()===tt.b_stat)?this.context.push(tt.f_expr):this.context.push(tt.f_stat),this.exprAllowed=!1};_.colon.updateContext=function(){this.curContext().token==="function"&&this.context.pop(),this.exprAllowed=!0};_.backQuote.updateContext=function(){this.curContext()===tt.q_tmpl?this.context.pop():this.context.push(tt.q_tmpl),this.exprAllowed=!1};_.star.updateContext=function(e){if(e===_._function){var t=this.context.length-1;this.context[t]===tt.f_expr?this.context[t]=tt.f_expr_gen:this.context[t]=tt.f_gen}this.exprAllowed=!0};_.name.updateContext=function(e){var t=!1;this.options.ecmaVersion>=6&&e!==_.dot&&(this.value==="of"&&!this.exprAllowed||this.value==="yield"&&this.inGeneratorContext())&&(t=!0),this.exprAllowed=t};var Re=rt.prototype;Re.checkPropClash=function(e,t,n){if(!(this.options.ecmaVersion>=9&&e.type==="SpreadElement")&&!(this.options.ecmaVersion>=6&&(e.computed||e.method||e.shorthand))){var i=e.key,r;switch(i.type){case"Identifier":r=i.name;break;case"Literal":r=String(i.value);break;default:return}var s=e.kind;if(this.options.ecmaVersion>=6){r==="__proto__"&&s==="init"&&(t.proto&&(n?n.doubleProto<0&&(n.doubleProto=i.start):this.raiseRecoverable(i.start,"Redefinition of __proto__ property")),t.proto=!0);return}r="$"+r;var o=t[r];if(o){var l;s==="init"?l=this.strict&&o.init||o.get||o.set:l=o.init||o[s],l&&this.raiseRecoverable(i.start,"Redefinition of property")}else o=t[r]={init:!1,get:!1,set:!1};o[s]=!0}};Re.parseExpression=function(e,t){var n=this.start,i=this.startLoc,r=this.parseMaybeAssign(e,t);if(this.type===_.comma){var s=this.startNodeAt(n,i);for(s.expressions=[r];this.eat(_.comma);)s.expressions.push(this.parseMaybeAssign(e,t));return this.finishNode(s,"SequenceExpression")}return r};Re.parseMaybeAssign=function(e,t,n){if(this.isContextual("yield")){if(this.inGenerator)return this.parseYield(e);this.exprAllowed=!1}var i=!1,r=-1,s=-1,o=-1;t?(r=t.parenthesizedAssign,s=t.trailingComma,o=t.doubleProto,t.parenthesizedAssign=t.trailingComma=-1):(t=new Pr,i=!0);var l=this.start,u=this.startLoc;(this.type===_.parenL||this.type===_.name)&&(this.potentialArrowAt=this.start,this.potentialArrowInForAwait=e==="await");var f=this.parseMaybeConditional(e,t);if(n&&(f=n.call(this,f,l,u)),this.type.isAssign){var p=this.startNodeAt(l,u);return p.operator=this.value,this.type===_.eq&&(f=this.toAssignable(f,!1,t)),i||(t.parenthesizedAssign=t.trailingComma=t.doubleProto=-1),t.shorthandAssign>=f.start&&(t.shorthandAssign=-1),this.type===_.eq?this.checkLValPattern(f):this.checkLValSimple(f),p.left=f,this.next(),p.right=this.parseMaybeAssign(e),o>-1&&(t.doubleProto=o),this.finishNode(p,"AssignmentExpression")}else i&&this.checkExpressionErrors(t,!0);return r>-1&&(t.parenthesizedAssign=r),s>-1&&(t.trailingComma=s),f};Re.parseMaybeConditional=function(e,t){var n=this.start,i=this.startLoc,r=this.parseExprOps(e,t);if(this.checkExpressionErrors(t))return r;if(this.eat(_.question)){var s=this.startNodeAt(n,i);return s.test=r,s.consequent=this.parseMaybeAssign(),this.expect(_.colon),s.alternate=this.parseMaybeAssign(e),this.finishNode(s,"ConditionalExpression")}return r};Re.parseExprOps=function(e,t){var n=this.start,i=this.startLoc,r=this.parseMaybeUnary(t,!1,!1,e);return this.checkExpressionErrors(t)||r.start===n&&r.type==="ArrowFunctionExpression"?r:this.parseExprOp(r,n,i,-1,e)};Re.parseExprOp=function(e,t,n,i,r){var s=this.type.binop;if(s!=null&&(!r||this.type!==_._in)&&s>i){var o=this.type===_.logicalOR||this.type===_.logicalAND,l=this.type===_.coalesce;l&&(s=_.logicalAND.binop);var u=this.value;this.next();var f=this.start,p=this.startLoc,h=this.parseExprOp(this.parseMaybeUnary(null,!1,!1,r),f,p,s,r),d=this.buildBinary(t,n,e,h,u,o||l);return(o&&this.type===_.coalesce||l&&(this.type===_.logicalOR||this.type===_.logicalAND))&&this.raiseRecoverable(this.start,"Logical expressions and coalesce expressions cannot be mixed. Wrap either by parentheses"),this.parseExprOp(d,t,n,i,r)}return e};Re.buildBinary=function(e,t,n,i,r,s){i.type==="PrivateIdentifier"&&this.raise(i.start,"Private identifier can only be left side of binary expression");var o=this.startNodeAt(e,t);return o.left=n,o.operator=r,o.right=i,this.finishNode(o,s?"LogicalExpression":"BinaryExpression")};Re.parseMaybeUnary=function(e,t,n,i){var r=this.start,s=this.startLoc,o;if(this.isContextual("await")&&this.canAwait)o=this.parseAwait(i),t=!0;else if(this.type.prefix){var l=this.startNode(),u=this.type===_.incDec;l.operator=this.value,l.prefix=!0,this.next(),l.argument=this.parseMaybeUnary(null,!0,u,i),this.checkExpressionErrors(e,!0),u?this.checkLValSimple(l.argument):this.strict&&l.operator==="delete"&&Lc(l.argument)?this.raiseRecoverable(l.start,"Deleting local variable in strict mode"):l.operator==="delete"&&$a(l.argument)?this.raiseRecoverable(l.start,"Private fields can not be deleted"):t=!0,o=this.finishNode(l,u?"UpdateExpression":"UnaryExpression")}else if(!t&&this.type===_.privateId)(i||this.privateNameStack.length===0)&&this.options.checkPrivateFields&&this.unexpected(),o=this.parsePrivateIdent(),this.type!==_._in&&this.unexpected();else{if(o=this.parseExprSubscripts(e,i),this.checkExpressionErrors(e))return o;for(;this.type.postfix&&!this.canInsertSemicolon();){var f=this.startNodeAt(r,s);f.operator=this.value,f.prefix=!1,f.argument=o,this.checkLValSimple(o),this.next(),o=this.finishNode(f,"UpdateExpression")}}if(!n&&this.eat(_.starstar))if(t)this.unexpected(this.lastTokStart);else return this.buildBinary(r,s,o,this.parseMaybeUnary(null,!1,!1,i),"**",!1);else return o};function Lc(e){return e.type==="Identifier"||e.type==="ParenthesizedExpression"&&Lc(e.expression)}function $a(e){return e.type==="MemberExpression"&&e.property.type==="PrivateIdentifier"||e.type==="ChainExpression"&&$a(e.expression)||e.type==="ParenthesizedExpression"&&$a(e.expression)}Re.parseExprSubscripts=function(e,t){var n=this.start,i=this.startLoc,r=this.parseExprAtom(e,t);if(r.type==="ArrowFunctionExpression"&&this.input.slice(this.lastTokStart,this.lastTokEnd)!==")")return r;var s=this.parseSubscripts(r,n,i,!1,t);return e&&s.type==="MemberExpression"&&(e.parenthesizedAssign>=s.start&&(e.parenthesizedAssign=-1),e.parenthesizedBind>=s.start&&(e.parenthesizedBind=-1),e.trailingComma>=s.start&&(e.trailingComma=-1)),s};Re.parseSubscripts=function(e,t,n,i,r){for(var s=this.options.ecmaVersion>=8&&e.type==="Identifier"&&e.name==="async"&&this.lastTokEnd===e.end&&!this.canInsertSemicolon()&&e.end-e.start===5&&this.potentialArrowAt===e.start,o=!1;;){var l=this.parseSubscript(e,t,n,i,s,o,r);if(l.optional&&(o=!0),l===e||l.type==="ArrowFunctionExpression"){if(o){var u=this.startNodeAt(t,n);u.expression=l,l=this.finishNode(u,"ChainExpression")}return l}e=l}};Re.shouldParseAsyncArrow=function(){return!this.canInsertSemicolon()&&this.eat(_.arrow)};Re.parseSubscriptAsyncArrow=function(e,t,n,i){return this.parseArrowExpression(this.startNodeAt(e,t),n,!0,i)};Re.parseSubscript=function(e,t,n,i,r,s,o){var l=this.options.ecmaVersion>=11,u=l&&this.eat(_.questionDot);i&&u&&this.raise(this.lastTokStart,"Optional chaining cannot appear in the callee of new expressions");var f=this.eat(_.bracketL);if(f||u&&this.type!==_.parenL&&this.type!==_.backQuote||this.eat(_.dot)){var p=this.startNodeAt(t,n);p.object=e,f?(p.property=this.parseExpression(),this.expect(_.bracketR)):this.type===_.privateId&&e.type!=="Super"?p.property=this.parsePrivateIdent():p.property=this.parseIdent(this.options.allowReserved!=="never"),p.computed=!!f,l&&(p.optional=u),e=this.finishNode(p,"MemberExpression")}else if(!i&&this.eat(_.parenL)){var h=new Pr,d=this.yieldPos,m=this.awaitPos,b=this.awaitIdentPos;this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0;var v=this.parseExprList(_.parenR,this.options.ecmaVersion>=8,!1,h);if(r&&!u&&this.shouldParseAsyncArrow())return this.checkPatternErrors(h,!1),this.checkYieldAwaitInDefaultParams(),this.awaitIdentPos>0&&this.raise(this.awaitIdentPos,"Cannot use 'await' as identifier inside an async function"),this.yieldPos=d,this.awaitPos=m,this.awaitIdentPos=b,this.parseSubscriptAsyncArrow(t,n,v,o);this.checkExpressionErrors(h,!0),this.yieldPos=d||this.yieldPos,this.awaitPos=m||this.awaitPos,this.awaitIdentPos=b||this.awaitIdentPos;var S=this.startNodeAt(t,n);S.callee=e,S.arguments=v,l&&(S.optional=u),e=this.finishNode(S,"CallExpression")}else if(this.type===_.backQuote){(u||s)&&this.raise(this.start,"Optional chaining cannot appear in the tag of tagged template expressions");var E=this.startNodeAt(t,n);E.tag=e,E.quasi=this.parseTemplate({isTagged:!0}),e=this.finishNode(E,"TaggedTemplateExpression")}return e};Re.parseExprAtom=function(e,t,n){this.type===_.slash&&this.readRegexp();var i,r=this.potentialArrowAt===this.start;switch(this.type){case _._super:return this.allowSuper||this.raise(this.start,"'super' keyword outside a method"),i=this.startNode(),this.next(),this.type===_.parenL&&!this.allowDirectSuper&&this.raise(i.start,"super() call outside constructor of a subclass"),this.type!==_.dot&&this.type!==_.bracketL&&this.type!==_.parenL&&this.unexpected(),this.finishNode(i,"Super");case _._this:return i=this.startNode(),this.next(),this.finishNode(i,"ThisExpression");case _.name:var s=this.start,o=this.startLoc,l=this.containsEsc,u=this.parseIdent(!1);if(this.options.ecmaVersion>=8&&!l&&u.name==="async"&&!this.canInsertSemicolon()&&this.eat(_._function))return this.overrideContext(tt.f_expr),this.parseFunction(this.startNodeAt(s,o),0,!1,!0,t);if(r&&!this.canInsertSemicolon()){if(this.eat(_.arrow))return this.parseArrowExpression(this.startNodeAt(s,o),[u],!1,t);if(this.options.ecmaVersion>=8&&u.name==="async"&&this.type===_.name&&!l&&(!this.potentialArrowInForAwait||this.value!=="of"||this.containsEsc))return u=this.parseIdent(!1),(this.canInsertSemicolon()||!this.eat(_.arrow))&&this.unexpected(),this.parseArrowExpression(this.startNodeAt(s,o),[u],!0,t)}return u;case _.regexp:var f=this.value;return i=this.parseLiteral(f.value),i.regex={pattern:f.pattern,flags:f.flags},i;case _.num:case _.string:return this.parseLiteral(this.value);case _._null:case _._true:case _._false:return i=this.startNode(),i.value=this.type===_._null?null:this.type===_._true,i.raw=this.type.keyword,this.next(),this.finishNode(i,"Literal");case _.parenL:var p=this.start,h=this.parseParenAndDistinguishExpression(r,t);return e&&(e.parenthesizedAssign<0&&!this.isSimpleAssignTarget(h)&&(e.parenthesizedAssign=p),e.parenthesizedBind<0&&(e.parenthesizedBind=p)),h;case _.bracketL:return i=this.startNode(),this.next(),i.elements=this.parseExprList(_.bracketR,!0,!0,e),this.finishNode(i,"ArrayExpression");case _.braceL:return this.overrideContext(tt.b_expr),this.parseObj(!1,e);case _._function:return i=this.startNode(),this.next(),this.parseFunction(i,0);case _._class:return this.parseClass(this.startNode(),!1);case _._new:return this.parseNew();case _.backQuote:return this.parseTemplate();case _._import:return this.options.ecmaVersion>=11?this.parseExprImport(n):this.unexpected();default:return this.parseExprAtomDefault()}};Re.parseExprAtomDefault=function(){this.unexpected()};Re.parseExprImport=function(e){var t=this.startNode();if(this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword import"),this.next(),this.type===_.parenL&&!e)return this.parseDynamicImport(t);if(this.type===_.dot){var n=this.startNodeAt(t.start,t.loc&&t.loc.start);return n.name="import",t.meta=this.finishNode(n,"Identifier"),this.parseImportMeta(t)}else this.unexpected()};Re.parseDynamicImport=function(e){if(this.next(),e.source=this.parseMaybeAssign(),this.options.ecmaVersion>=16)this.eat(_.parenR)?e.options=null:(this.expect(_.comma),this.afterTrailingComma(_.parenR)?e.options=null:(e.options=this.parseMaybeAssign(),this.eat(_.parenR)||(this.expect(_.comma),this.afterTrailingComma(_.parenR)||this.unexpected())));else if(!this.eat(_.parenR)){var t=this.start;this.eat(_.comma)&&this.eat(_.parenR)?this.raiseRecoverable(t,"Trailing comma is not allowed in import()"):this.unexpected(t)}return this.finishNode(e,"ImportExpression")};Re.parseImportMeta=function(e){this.next();var t=this.containsEsc;return e.property=this.parseIdent(!0),e.property.name!=="meta"&&this.raiseRecoverable(e.property.start,"The only valid meta property for import is 'import.meta'"),t&&this.raiseRecoverable(e.start,"'import.meta' must not contain escaped characters"),this.options.sourceType!=="module"&&!this.options.allowImportExportEverywhere&&this.raiseRecoverable(e.start,"Cannot use 'import.meta' outside a module"),this.finishNode(e,"MetaProperty")};Re.parseLiteral=function(e){var t=this.startNode();return t.value=e,t.raw=this.input.slice(this.start,this.end),t.raw.charCodeAt(t.raw.length-1)===110&&(t.bigint=t.value!=null?t.value.toString():t.raw.slice(0,-1).replace(/_/g,"")),this.next(),this.finishNode(t,"Literal")};Re.parseParenExpression=function(){this.expect(_.parenL);var e=this.parseExpression();return this.expect(_.parenR),e};Re.shouldParseArrow=function(e){return!this.canInsertSemicolon()};Re.parseParenAndDistinguishExpression=function(e,t){var n=this.start,i=this.startLoc,r,s=this.options.ecmaVersion>=8;if(this.options.ecmaVersion>=6){this.next();var o=this.start,l=this.startLoc,u=[],f=!0,p=!1,h=new Pr,d=this.yieldPos,m=this.awaitPos,b;for(this.yieldPos=0,this.awaitPos=0;this.type!==_.parenR;)if(f?f=!1:this.expect(_.comma),s&&this.afterTrailingComma(_.parenR,!0)){p=!0;break}else if(this.type===_.ellipsis){b=this.start,u.push(this.parseParenItem(this.parseRestBinding())),this.type===_.comma&&this.raiseRecoverable(this.start,"Comma is not permitted after the rest element");break}else u.push(this.parseMaybeAssign(!1,h,this.parseParenItem));var v=this.lastTokEnd,S=this.lastTokEndLoc;if(this.expect(_.parenR),e&&this.shouldParseArrow(u)&&this.eat(_.arrow))return this.checkPatternErrors(h,!1),this.checkYieldAwaitInDefaultParams(),this.yieldPos=d,this.awaitPos=m,this.parseParenArrowList(n,i,u,t);(!u.length||p)&&this.unexpected(this.lastTokStart),b&&this.unexpected(b),this.checkExpressionErrors(h,!0),this.yieldPos=d||this.yieldPos,this.awaitPos=m||this.awaitPos,u.length>1?(r=this.startNodeAt(o,l),r.expressions=u,this.finishNodeAt(r,"SequenceExpression",v,S)):r=u[0]}else r=this.parseParenExpression();if(this.options.preserveParens){var E=this.startNodeAt(n,i);return E.expression=r,this.finishNode(E,"ParenthesizedExpression")}else return r};Re.parseParenItem=function(e){return e};Re.parseParenArrowList=function(e,t,n,i){return this.parseArrowExpression(this.startNodeAt(e,t),n,!1,i)};var Yg=[];Re.parseNew=function(){this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword new");var e=this.startNode();if(this.next(),this.options.ecmaVersion>=6&&this.type===_.dot){var t=this.startNodeAt(e.start,e.loc&&e.loc.start);t.name="new",e.meta=this.finishNode(t,"Identifier"),this.next();var n=this.containsEsc;return e.property=this.parseIdent(!0),e.property.name!=="target"&&this.raiseRecoverable(e.property.start,"The only valid meta property for new is 'new.target'"),n&&this.raiseRecoverable(e.start,"'new.target' must not contain escaped characters"),this.allowNewDotTarget||this.raiseRecoverable(e.start,"'new.target' can only be used in functions and class static block"),this.finishNode(e,"MetaProperty")}var i=this.start,r=this.startLoc;return e.callee=this.parseSubscripts(this.parseExprAtom(null,!1,!0),i,r,!0,!1),this.eat(_.parenL)?e.arguments=this.parseExprList(_.parenR,this.options.ecmaVersion>=8,!1):e.arguments=Yg,this.finishNode(e,"NewExpression")};Re.parseTemplateElement=function(e){var t=e.isTagged,n=this.startNode();return this.type===_.invalidTemplate?(t||this.raiseRecoverable(this.start,"Bad escape sequence in untagged template literal"),n.value={raw:this.value.replace(/\r\n?/g,`
18
+ `),cooked:null}):n.value={raw:this.input.slice(this.start,this.end).replace(/\r\n?/g,`
19
+ `),cooked:this.value},this.next(),n.tail=this.type===_.backQuote,this.finishNode(n,"TemplateElement")};Re.parseTemplate=function(e){e===void 0&&(e={});var t=e.isTagged;t===void 0&&(t=!1);var n=this.startNode();this.next(),n.expressions=[];var i=this.parseTemplateElement({isTagged:t});for(n.quasis=[i];!i.tail;)this.type===_.eof&&this.raise(this.pos,"Unterminated template literal"),this.expect(_.dollarBraceL),n.expressions.push(this.parseExpression()),this.expect(_.braceR),n.quasis.push(i=this.parseTemplateElement({isTagged:t}));return this.next(),this.finishNode(n,"TemplateLiteral")};Re.isAsyncProp=function(e){return!e.computed&&e.key.type==="Identifier"&&e.key.name==="async"&&(this.type===_.name||this.type===_.num||this.type===_.string||this.type===_.bracketL||this.type.keyword||this.options.ecmaVersion>=9&&this.type===_.star)&&!vt.test(this.input.slice(this.lastTokEnd,this.start))};Re.parseObj=function(e,t){var n=this.startNode(),i=!0,r={};for(n.properties=[],this.next();!this.eat(_.braceR);){if(i)i=!1;else if(this.expect(_.comma),this.options.ecmaVersion>=5&&this.afterTrailingComma(_.braceR))break;var s=this.parseProperty(e,t);e||this.checkPropClash(s,r,t),n.properties.push(s)}return this.finishNode(n,e?"ObjectPattern":"ObjectExpression")};Re.parseProperty=function(e,t){var n=this.startNode(),i,r,s,o;if(this.options.ecmaVersion>=9&&this.eat(_.ellipsis))return e?(n.argument=this.parseIdent(!1),this.type===_.comma&&this.raiseRecoverable(this.start,"Comma is not permitted after the rest element"),this.finishNode(n,"RestElement")):(n.argument=this.parseMaybeAssign(!1,t),this.type===_.comma&&t&&t.trailingComma<0&&(t.trailingComma=this.start),this.finishNode(n,"SpreadElement"));this.options.ecmaVersion>=6&&(n.method=!1,n.shorthand=!1,(e||t)&&(s=this.start,o=this.startLoc),e||(i=this.eat(_.star)));var l=this.containsEsc;return this.parsePropertyName(n),!e&&!l&&this.options.ecmaVersion>=8&&!i&&this.isAsyncProp(n)?(r=!0,i=this.options.ecmaVersion>=9&&this.eat(_.star),this.parsePropertyName(n)):r=!1,this.parsePropertyValue(n,e,i,r,s,o,t,l),this.finishNode(n,"Property")};Re.parseGetterSetter=function(e){var t=e.key.name;this.parsePropertyName(e),e.value=this.parseMethod(!1),e.kind=t;var n=e.kind==="get"?0:1;if(e.value.params.length!==n){var i=e.value.start;e.kind==="get"?this.raiseRecoverable(i,"getter should have no params"):this.raiseRecoverable(i,"setter should have exactly one param")}else e.kind==="set"&&e.value.params[0].type==="RestElement"&&this.raiseRecoverable(e.value.params[0].start,"Setter cannot use rest params")};Re.parsePropertyValue=function(e,t,n,i,r,s,o,l){(n||i)&&this.type===_.colon&&this.unexpected(),this.eat(_.colon)?(e.value=t?this.parseMaybeDefault(this.start,this.startLoc):this.parseMaybeAssign(!1,o),e.kind="init"):this.options.ecmaVersion>=6&&this.type===_.parenL?(t&&this.unexpected(),e.method=!0,e.value=this.parseMethod(n,i),e.kind="init"):!t&&!l&&this.options.ecmaVersion>=5&&!e.computed&&e.key.type==="Identifier"&&(e.key.name==="get"||e.key.name==="set")&&this.type!==_.comma&&this.type!==_.braceR&&this.type!==_.eq?((n||i)&&this.unexpected(),this.parseGetterSetter(e)):this.options.ecmaVersion>=6&&!e.computed&&e.key.type==="Identifier"?((n||i)&&this.unexpected(),this.checkUnreserved(e.key),e.key.name==="await"&&!this.awaitIdentPos&&(this.awaitIdentPos=r),t?e.value=this.parseMaybeDefault(r,s,this.copyNode(e.key)):this.type===_.eq&&o?(o.shorthandAssign<0&&(o.shorthandAssign=this.start),e.value=this.parseMaybeDefault(r,s,this.copyNode(e.key))):e.value=this.copyNode(e.key),e.kind="init",e.shorthand=!0):this.unexpected()};Re.parsePropertyName=function(e){if(this.options.ecmaVersion>=6){if(this.eat(_.bracketL))return e.computed=!0,e.key=this.parseMaybeAssign(),this.expect(_.bracketR),e.key;e.computed=!1}return e.key=this.type===_.num||this.type===_.string?this.parseExprAtom():this.parseIdent(this.options.allowReserved!=="never")};Re.initFunction=function(e){e.id=null,this.options.ecmaVersion>=6&&(e.generator=e.expression=!1),this.options.ecmaVersion>=8&&(e.async=!1)};Re.parseMethod=function(e,t,n){var i=this.startNode(),r=this.yieldPos,s=this.awaitPos,o=this.awaitIdentPos;return this.initFunction(i),this.options.ecmaVersion>=6&&(i.generator=e),this.options.ecmaVersion>=8&&(i.async=!!t),this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(ps(t,i.generator)|Tr|(n?Ac:0)),this.expect(_.parenL),i.params=this.parseBindingList(_.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams(),this.parseFunctionBody(i,!1,!0,!1),this.yieldPos=r,this.awaitPos=s,this.awaitIdentPos=o,this.finishNode(i,"FunctionExpression")};Re.parseArrowExpression=function(e,t,n,i){var r=this.yieldPos,s=this.awaitPos,o=this.awaitIdentPos;return this.enterScope(ps(n,!1)|fs),this.initFunction(e),this.options.ecmaVersion>=8&&(e.async=!!n),this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,e.params=this.toAssignableList(t,!0),this.parseFunctionBody(e,!0,!1,i),this.yieldPos=r,this.awaitPos=s,this.awaitIdentPos=o,this.finishNode(e,"ArrowFunctionExpression")};Re.parseFunctionBody=function(e,t,n,i){var r=t&&this.type!==_.braceL,s=this.strict,o=!1;if(r)e.body=this.parseMaybeAssign(i),e.expression=!0,this.checkParams(e,!1);else{var l=this.options.ecmaVersion>=7&&!this.isSimpleParamList(e.params);(!s||l)&&(o=this.strictDirective(this.end),o&&l&&this.raiseRecoverable(e.start,"Illegal 'use strict' directive in function with non-simple parameter list"));var u=this.labels;this.labels=[],o&&(this.strict=!0),this.checkParams(e,!s&&!o&&!t&&!n&&this.isSimpleParamList(e.params)),this.strict&&e.id&&this.checkLValSimple(e.id,Oc),e.body=this.parseBlock(!1,void 0,o&&!s),e.expression=!1,this.adaptDirectivePrologue(e.body.body),this.labels=u}this.exitScope()};Re.isSimpleParamList=function(e){for(var t=0,n=e;t<n.length;t+=1){var i=n[t];if(i.type!=="Identifier")return!1}return!0};Re.checkParams=function(e,t){for(var n=Object.create(null),i=0,r=e.params;i<r.length;i+=1){var s=r[i];this.checkLValInnerPattern(s,ds,t?null:n)}};Re.parseExprList=function(e,t,n,i){for(var r=[],s=!0;!this.eat(e);){if(s)s=!1;else if(this.expect(_.comma),t&&this.afterTrailingComma(e))break;var o=void 0;n&&this.type===_.comma?o=null:this.type===_.ellipsis?(o=this.parseSpread(i),i&&this.type===_.comma&&i.trailingComma<0&&(i.trailingComma=this.start)):o=this.parseMaybeAssign(!1,i),r.push(o)}return r};Re.checkUnreserved=function(e){var t=e.start,n=e.end,i=e.name;if(this.inGenerator&&i==="yield"&&this.raiseRecoverable(t,"Cannot use 'yield' as identifier inside a generator"),this.inAsync&&i==="await"&&this.raiseRecoverable(t,"Cannot use 'await' as identifier inside an async function"),!(this.currentThisScope().flags&Nr)&&i==="arguments"&&this.raiseRecoverable(t,"Cannot use 'arguments' in class field initializer"),this.inClassStaticBlock&&(i==="arguments"||i==="await")&&this.raise(t,"Cannot use "+i+" in class static initialization block"),this.keywords.test(i)&&this.raise(t,"Unexpected keyword '"+i+"'"),!(this.options.ecmaVersion<6&&this.input.slice(t,n).indexOf("\\")!==-1)){var r=this.strict?this.reservedWordsStrict:this.reservedWords;r.test(i)&&(!this.inAsync&&i==="await"&&this.raiseRecoverable(t,"Cannot use keyword 'await' outside an async function"),this.raiseRecoverable(t,"The keyword '"+i+"' is reserved"))}};Re.parseIdent=function(e){var t=this.parseIdentNode();return this.next(!!e),this.finishNode(t,"Identifier"),e||(this.checkUnreserved(t),t.name==="await"&&!this.awaitIdentPos&&(this.awaitIdentPos=t.start)),t};Re.parseIdentNode=function(){var e=this.startNode();return this.type===_.name?e.name=this.value:this.type.keyword?(e.name=this.type.keyword,(e.name==="class"||e.name==="function")&&(this.lastTokEnd!==this.lastTokStart+1||this.input.charCodeAt(this.lastTokStart)!==46)&&this.context.pop(),this.type=_.name):this.unexpected(),e};Re.parsePrivateIdent=function(){var e=this.startNode();return this.type===_.privateId?e.name=this.value:this.unexpected(),this.next(),this.finishNode(e,"PrivateIdentifier"),this.options.checkPrivateFields&&(this.privateNameStack.length===0?this.raise(e.start,"Private field '#"+e.name+"' must be declared in an enclosing class"):this.privateNameStack[this.privateNameStack.length-1].used.push(e)),e};Re.parseYield=function(e){this.yieldPos||(this.yieldPos=this.start);var t=this.startNode();return this.next(),this.type===_.semi||this.canInsertSemicolon()||this.type!==_.star&&!this.type.startsExpr?(t.delegate=!1,t.argument=null):(t.delegate=this.eat(_.star),t.argument=this.parseMaybeAssign(e)),this.finishNode(t,"YieldExpression")};Re.parseAwait=function(e){this.awaitPos||(this.awaitPos=this.start);var t=this.startNode();return this.next(),t.argument=this.parseMaybeUnary(null,!0,!1,e),this.finishNode(t,"AwaitExpression")};var fr=rt.prototype;fr.raise=function(e,t){var n=Cc(this.input,e);t+=" ("+n.line+":"+n.column+")",this.sourceFile&&(t+=" in "+this.sourceFile);var i=new SyntaxError(t);throw i.pos=e,i.loc=n,i.raisedAt=this.pos,i};fr.raiseRecoverable=fr.raise;fr.curPosition=function(){if(this.options.locations)return new xi(this.curLine,this.pos-this.lineStart)};var bn=rt.prototype,Qg=function(t){this.flags=t,this.var=[],this.lexical=[],this.functions=[]};bn.enterScope=function(e){this.scopeStack.push(new Qg(e))};bn.exitScope=function(){this.scopeStack.pop()};bn.treatFunctionsAsVarInScope=function(e){return e.flags&Nn||!this.inModule&&e.flags&In};bn.declareName=function(e,t,n){var i=!1;if(t===ln){var r=this.currentScope();i=r.lexical.indexOf(e)>-1||r.functions.indexOf(e)>-1||r.var.indexOf(e)>-1,r.lexical.push(e),this.inModule&&r.flags&In&&delete this.undefinedExports[e]}else if(t===Pc){var s=this.currentScope();s.lexical.push(e)}else if(t===Nc){var o=this.currentScope();this.treatFunctionsAsVar?i=o.lexical.indexOf(e)>-1:i=o.lexical.indexOf(e)>-1||o.var.indexOf(e)>-1,o.functions.push(e)}else for(var l=this.scopeStack.length-1;l>=0;--l){var u=this.scopeStack[l];if(u.lexical.indexOf(e)>-1&&!(u.flags&Ic&&u.lexical[0]===e)||!this.treatFunctionsAsVarInScope(u)&&u.functions.indexOf(e)>-1){i=!0;break}if(u.var.push(e),this.inModule&&u.flags&In&&delete this.undefinedExports[e],u.flags&Nr)break}i&&this.raiseRecoverable(n,"Identifier '"+e+"' has already been declared")};bn.checkLocalExport=function(e){this.scopeStack[0].lexical.indexOf(e.name)===-1&&this.scopeStack[0].var.indexOf(e.name)===-1&&(this.undefinedExports[e.name]=e)};bn.currentScope=function(){return this.scopeStack[this.scopeStack.length-1]};bn.currentVarScope=function(){for(var e=this.scopeStack.length-1;;e--){var t=this.scopeStack[e];if(t.flags&(Nr|ki|Pn))return t}};bn.currentThisScope=function(){for(var e=this.scopeStack.length-1;;e--){var t=this.scopeStack[e];if(t.flags&(Nr|ki|Pn)&&!(t.flags&fs))return t}};var Or=function(t,n,i){this.type="",this.start=n,this.end=0,t.options.locations&&(this.loc=new Ar(t,i)),t.options.directSourceFile&&(this.sourceFile=t.options.directSourceFile),t.options.ranges&&(this.range=[n,0])},Ci=rt.prototype;Ci.startNode=function(){return new Or(this,this.start,this.startLoc)};Ci.startNodeAt=function(e,t){return new Or(this,e,t)};function Mc(e,t,n,i){return e.type=t,e.end=n,this.options.locations&&(e.loc.end=i),this.options.ranges&&(e.range[1]=n),e}Ci.finishNode=function(e,t){return Mc.call(this,e,t,this.lastTokEnd,this.lastTokEndLoc)};Ci.finishNodeAt=function(e,t,n,i){return Mc.call(this,e,t,n,i)};Ci.copyNode=function(e){var t=new Or(this,e.start,this.startLoc);for(var n in e)t[n]=e[n];return t};var Zg="Berf Beria_Erfe Gara Garay Gukh Gurung_Khema Hrkt Katakana_Or_Hiragana Kawi Kirat_Rai Krai Nag_Mundari Nagm Ol_Onal Onao Sidetic Sidt Sunu Sunuwar Tai_Yo Tayo Todhri Todr Tolong_Siki Tols Tulu_Tigalari Tutg Unknown Zzzz",Fc="ASCII ASCII_Hex_Digit AHex Alphabetic Alpha Any Assigned Bidi_Control Bidi_C Bidi_Mirrored Bidi_M Case_Ignorable CI Cased Changes_When_Casefolded CWCF Changes_When_Casemapped CWCM Changes_When_Lowercased CWL Changes_When_NFKC_Casefolded CWKCF Changes_When_Titlecased CWT Changes_When_Uppercased CWU Dash Default_Ignorable_Code_Point DI Deprecated Dep Diacritic Dia Emoji Emoji_Component Emoji_Modifier Emoji_Modifier_Base Emoji_Presentation Extender Ext Grapheme_Base Gr_Base Grapheme_Extend Gr_Ext Hex_Digit Hex IDS_Binary_Operator IDSB IDS_Trinary_Operator IDST ID_Continue IDC ID_Start IDS Ideographic Ideo Join_Control Join_C Logical_Order_Exception LOE Lowercase Lower Math Noncharacter_Code_Point NChar Pattern_Syntax Pat_Syn Pattern_White_Space Pat_WS Quotation_Mark QMark Radical Regional_Indicator RI Sentence_Terminal STerm Soft_Dotted SD Terminal_Punctuation Term Unified_Ideograph UIdeo Uppercase Upper Variation_Selector VS White_Space space XID_Continue XIDC XID_Start XIDS",Dc=Fc+" Extended_Pictographic",jc=Dc,Vc=jc+" EBase EComp EMod EPres ExtPict",Bc=Vc,Xg=Bc,em={9:Fc,10:Dc,11:jc,12:Vc,13:Bc,14:Xg},tm="Basic_Emoji Emoji_Keycap_Sequence RGI_Emoji_Modifier_Sequence RGI_Emoji_Flag_Sequence RGI_Emoji_Tag_Sequence RGI_Emoji_ZWJ_Sequence RGI_Emoji",nm={9:"",10:"",11:"",12:"",13:"",14:tm},sl="Cased_Letter LC Close_Punctuation Pe Connector_Punctuation Pc Control Cc cntrl Currency_Symbol Sc Dash_Punctuation Pd Decimal_Number Nd digit Enclosing_Mark Me Final_Punctuation Pf Format Cf Initial_Punctuation Pi Letter L Letter_Number Nl Line_Separator Zl Lowercase_Letter Ll Mark M Combining_Mark Math_Symbol Sm Modifier_Letter Lm Modifier_Symbol Sk Nonspacing_Mark Mn Number N Open_Punctuation Ps Other C Other_Letter Lo Other_Number No Other_Punctuation Po Other_Symbol So Paragraph_Separator Zp Private_Use Co Punctuation P punct Separator Z Space_Separator Zs Spacing_Mark Mc Surrogate Cs Symbol S Titlecase_Letter Lt Unassigned Cn Uppercase_Letter Lu",zc="Adlam Adlm Ahom Anatolian_Hieroglyphs Hluw Arabic Arab Armenian Armn Avestan Avst Balinese Bali Bamum Bamu Bassa_Vah Bass Batak Batk Bengali Beng Bhaiksuki Bhks Bopomofo Bopo Brahmi Brah Braille Brai Buginese Bugi Buhid Buhd Canadian_Aboriginal Cans Carian Cari Caucasian_Albanian Aghb Chakma Cakm Cham Cham Cherokee Cher Common Zyyy Coptic Copt Qaac Cuneiform Xsux Cypriot Cprt Cyrillic Cyrl Deseret Dsrt Devanagari Deva Duployan Dupl Egyptian_Hieroglyphs Egyp Elbasan Elba Ethiopic Ethi Georgian Geor Glagolitic Glag Gothic Goth Grantha Gran Greek Grek Gujarati Gujr Gurmukhi Guru Han Hani Hangul Hang Hanunoo Hano Hatran Hatr Hebrew Hebr Hiragana Hira Imperial_Aramaic Armi Inherited Zinh Qaai Inscriptional_Pahlavi Phli Inscriptional_Parthian Prti Javanese Java Kaithi Kthi Kannada Knda Katakana Kana Kayah_Li Kali Kharoshthi Khar Khmer Khmr Khojki Khoj Khudawadi Sind Lao Laoo Latin Latn Lepcha Lepc Limbu Limb Linear_A Lina Linear_B Linb Lisu Lisu Lycian Lyci Lydian Lydi Mahajani Mahj Malayalam Mlym Mandaic Mand Manichaean Mani Marchen Marc Masaram_Gondi Gonm Meetei_Mayek Mtei Mende_Kikakui Mend Meroitic_Cursive Merc Meroitic_Hieroglyphs Mero Miao Plrd Modi Mongolian Mong Mro Mroo Multani Mult Myanmar Mymr Nabataean Nbat New_Tai_Lue Talu Newa Newa Nko Nkoo Nushu Nshu Ogham Ogam Ol_Chiki Olck Old_Hungarian Hung Old_Italic Ital Old_North_Arabian Narb Old_Permic Perm Old_Persian Xpeo Old_South_Arabian Sarb Old_Turkic Orkh Oriya Orya Osage Osge Osmanya Osma Pahawh_Hmong Hmng Palmyrene Palm Pau_Cin_Hau Pauc Phags_Pa Phag Phoenician Phnx Psalter_Pahlavi Phlp Rejang Rjng Runic Runr Samaritan Samr Saurashtra Saur Sharada Shrd Shavian Shaw Siddham Sidd SignWriting Sgnw Sinhala Sinh Sora_Sompeng Sora Soyombo Soyo Sundanese Sund Syloti_Nagri Sylo Syriac Syrc Tagalog Tglg Tagbanwa Tagb Tai_Le Tale Tai_Tham Lana Tai_Viet Tavt Takri Takr Tamil Taml Tangut Tang Telugu Telu Thaana Thaa Thai Thai Tibetan Tibt Tifinagh Tfng Tirhuta Tirh Ugaritic Ugar Vai Vaii Warang_Citi Wara Yi Yiii Zanabazar_Square Zanb",Kc=zc+" Dogra Dogr Gunjala_Gondi Gong Hanifi_Rohingya Rohg Makasar Maka Medefaidrin Medf Old_Sogdian Sogo Sogdian Sogd",Uc=Kc+" Elymaic Elym Nandinagari Nand Nyiakeng_Puachue_Hmong Hmnp Wancho Wcho",Hc=Uc+" Chorasmian Chrs Diak Dives_Akuru Khitan_Small_Script Kits Yezi Yezidi",$c=Hc+" Cypro_Minoan Cpmn Old_Uyghur Ougr Tangsa Tnsa Toto Vithkuqi Vith",im=$c+" "+Zg,rm={9:zc,10:Kc,11:Uc,12:Hc,13:$c,14:im},qc={};function am(e){var t=qc[e]={binary:pn(em[e]+" "+sl),binaryOfStrings:pn(nm[e]),nonBinary:{General_Category:pn(sl),Script:pn(rm[e])}};t.nonBinary.Script_Extensions=t.nonBinary.Script,t.nonBinary.gc=t.nonBinary.General_Category,t.nonBinary.sc=t.nonBinary.Script,t.nonBinary.scx=t.nonBinary.Script_Extensions}for(var Zr=0,ol=[9,10,11,12,13,14];Zr<ol.length;Zr+=1){var sm=ol[Zr];am(sm)}var Ee=rt.prototype,pr=function(t,n){this.parent=t,this.base=n||this};pr.prototype.separatedFrom=function(t){for(var n=this;n;n=n.parent)for(var i=t;i;i=i.parent)if(n.base===i.base&&n!==i)return!0;return!1};pr.prototype.sibling=function(){return new pr(this.parent,this.base)};var Yt=function(t){this.parser=t,this.validFlags="gim"+(t.options.ecmaVersion>=6?"uy":"")+(t.options.ecmaVersion>=9?"s":"")+(t.options.ecmaVersion>=13?"d":"")+(t.options.ecmaVersion>=15?"v":""),this.unicodeProperties=qc[t.options.ecmaVersion>=14?14:t.options.ecmaVersion],this.source="",this.flags="",this.start=0,this.switchU=!1,this.switchV=!1,this.switchN=!1,this.pos=0,this.lastIntValue=0,this.lastStringValue="",this.lastAssertionIsQuantifiable=!1,this.numCapturingParens=0,this.maxBackReference=0,this.groupNames=Object.create(null),this.backReferenceNames=[],this.branchID=null};Yt.prototype.reset=function(t,n,i){var r=i.indexOf("v")!==-1,s=i.indexOf("u")!==-1;this.start=t|0,this.source=n+"",this.flags=i,r&&this.parser.options.ecmaVersion>=15?(this.switchU=!0,this.switchV=!0,this.switchN=!0):(this.switchU=s&&this.parser.options.ecmaVersion>=6,this.switchV=!1,this.switchN=s&&this.parser.options.ecmaVersion>=9)};Yt.prototype.raise=function(t){this.parser.raiseRecoverable(this.start,"Invalid regular expression: /"+this.source+"/: "+t)};Yt.prototype.at=function(t,n){n===void 0&&(n=!1);var i=this.source,r=i.length;if(t>=r)return-1;var s=i.charCodeAt(t);if(!(n||this.switchU)||s<=55295||s>=57344||t+1>=r)return s;var o=i.charCodeAt(t+1);return o>=56320&&o<=57343?(s<<10)+o-56613888:s};Yt.prototype.nextIndex=function(t,n){n===void 0&&(n=!1);var i=this.source,r=i.length;if(t>=r)return r;var s=i.charCodeAt(t),o;return!(n||this.switchU)||s<=55295||s>=57344||t+1>=r||(o=i.charCodeAt(t+1))<56320||o>57343?t+1:t+2};Yt.prototype.current=function(t){return t===void 0&&(t=!1),this.at(this.pos,t)};Yt.prototype.lookahead=function(t){return t===void 0&&(t=!1),this.at(this.nextIndex(this.pos,t),t)};Yt.prototype.advance=function(t){t===void 0&&(t=!1),this.pos=this.nextIndex(this.pos,t)};Yt.prototype.eat=function(t,n){return n===void 0&&(n=!1),this.current(n)===t?(this.advance(n),!0):!1};Yt.prototype.eatChars=function(t,n){n===void 0&&(n=!1);for(var i=this.pos,r=0,s=t;r<s.length;r+=1){var o=s[r],l=this.at(i,n);if(l===-1||l!==o)return!1;i=this.nextIndex(i,n)}return this.pos=i,!0};Ee.validateRegExpFlags=function(e){for(var t=e.validFlags,n=e.flags,i=!1,r=!1,s=0;s<n.length;s++){var o=n.charAt(s);t.indexOf(o)===-1&&this.raise(e.start,"Invalid regular expression flag"),n.indexOf(o,s+1)>-1&&this.raise(e.start,"Duplicate regular expression flag"),o==="u"&&(i=!0),o==="v"&&(r=!0)}this.options.ecmaVersion>=15&&i&&r&&this.raise(e.start,"Invalid regular expression flag")};function om(e){for(var t in e)return!0;return!1}Ee.validateRegExpPattern=function(e){this.regexp_pattern(e),!e.switchN&&this.options.ecmaVersion>=9&&om(e.groupNames)&&(e.switchN=!0,this.regexp_pattern(e))};Ee.regexp_pattern=function(e){e.pos=0,e.lastIntValue=0,e.lastStringValue="",e.lastAssertionIsQuantifiable=!1,e.numCapturingParens=0,e.maxBackReference=0,e.groupNames=Object.create(null),e.backReferenceNames.length=0,e.branchID=null,this.regexp_disjunction(e),e.pos!==e.source.length&&(e.eat(41)&&e.raise("Unmatched ')'"),(e.eat(93)||e.eat(125))&&e.raise("Lone quantifier brackets")),e.maxBackReference>e.numCapturingParens&&e.raise("Invalid escape");for(var t=0,n=e.backReferenceNames;t<n.length;t+=1){var i=n[t];e.groupNames[i]||e.raise("Invalid named capture referenced")}};Ee.regexp_disjunction=function(e){var t=this.options.ecmaVersion>=16;for(t&&(e.branchID=new pr(e.branchID,null)),this.regexp_alternative(e);e.eat(124);)t&&(e.branchID=e.branchID.sibling()),this.regexp_alternative(e);t&&(e.branchID=e.branchID.parent),this.regexp_eatQuantifier(e,!0)&&e.raise("Nothing to repeat"),e.eat(123)&&e.raise("Lone quantifier brackets")};Ee.regexp_alternative=function(e){for(;e.pos<e.source.length&&this.regexp_eatTerm(e););};Ee.regexp_eatTerm=function(e){return this.regexp_eatAssertion(e)?(e.lastAssertionIsQuantifiable&&this.regexp_eatQuantifier(e)&&e.switchU&&e.raise("Invalid quantifier"),!0):(e.switchU?this.regexp_eatAtom(e):this.regexp_eatExtendedAtom(e))?(this.regexp_eatQuantifier(e),!0):!1};Ee.regexp_eatAssertion=function(e){var t=e.pos;if(e.lastAssertionIsQuantifiable=!1,e.eat(94)||e.eat(36))return!0;if(e.eat(92)){if(e.eat(66)||e.eat(98))return!0;e.pos=t}if(e.eat(40)&&e.eat(63)){var n=!1;if(this.options.ecmaVersion>=9&&(n=e.eat(60)),e.eat(61)||e.eat(33))return this.regexp_disjunction(e),e.eat(41)||e.raise("Unterminated group"),e.lastAssertionIsQuantifiable=!n,!0}return e.pos=t,!1};Ee.regexp_eatQuantifier=function(e,t){return t===void 0&&(t=!1),this.regexp_eatQuantifierPrefix(e,t)?(e.eat(63),!0):!1};Ee.regexp_eatQuantifierPrefix=function(e,t){return e.eat(42)||e.eat(43)||e.eat(63)||this.regexp_eatBracedQuantifier(e,t)};Ee.regexp_eatBracedQuantifier=function(e,t){var n=e.pos;if(e.eat(123)){var i=0,r=-1;if(this.regexp_eatDecimalDigits(e)&&(i=e.lastIntValue,e.eat(44)&&this.regexp_eatDecimalDigits(e)&&(r=e.lastIntValue),e.eat(125)))return r!==-1&&r<i&&!t&&e.raise("numbers out of order in {} quantifier"),!0;e.switchU&&!t&&e.raise("Incomplete quantifier"),e.pos=n}return!1};Ee.regexp_eatAtom=function(e){return this.regexp_eatPatternCharacters(e)||e.eat(46)||this.regexp_eatReverseSolidusAtomEscape(e)||this.regexp_eatCharacterClass(e)||this.regexp_eatUncapturingGroup(e)||this.regexp_eatCapturingGroup(e)};Ee.regexp_eatReverseSolidusAtomEscape=function(e){var t=e.pos;if(e.eat(92)){if(this.regexp_eatAtomEscape(e))return!0;e.pos=t}return!1};Ee.regexp_eatUncapturingGroup=function(e){var t=e.pos;if(e.eat(40)){if(e.eat(63)){if(this.options.ecmaVersion>=16){var n=this.regexp_eatModifiers(e),i=e.eat(45);if(n||i){for(var r=0;r<n.length;r++){var s=n.charAt(r);n.indexOf(s,r+1)>-1&&e.raise("Duplicate regular expression modifiers")}if(i){var o=this.regexp_eatModifiers(e);!n&&!o&&e.current()===58&&e.raise("Invalid regular expression modifiers");for(var l=0;l<o.length;l++){var u=o.charAt(l);(o.indexOf(u,l+1)>-1||n.indexOf(u)>-1)&&e.raise("Duplicate regular expression modifiers")}}}}if(e.eat(58)){if(this.regexp_disjunction(e),e.eat(41))return!0;e.raise("Unterminated group")}}e.pos=t}return!1};Ee.regexp_eatCapturingGroup=function(e){if(e.eat(40)){if(this.options.ecmaVersion>=9?this.regexp_groupSpecifier(e):e.current()===63&&e.raise("Invalid group"),this.regexp_disjunction(e),e.eat(41))return e.numCapturingParens+=1,!0;e.raise("Unterminated group")}return!1};Ee.regexp_eatModifiers=function(e){for(var t="",n=0;(n=e.current())!==-1&&lm(n);)t+=tn(n),e.advance();return t};function lm(e){return e===105||e===109||e===115}Ee.regexp_eatExtendedAtom=function(e){return e.eat(46)||this.regexp_eatReverseSolidusAtomEscape(e)||this.regexp_eatCharacterClass(e)||this.regexp_eatUncapturingGroup(e)||this.regexp_eatCapturingGroup(e)||this.regexp_eatInvalidBracedQuantifier(e)||this.regexp_eatExtendedPatternCharacter(e)};Ee.regexp_eatInvalidBracedQuantifier=function(e){return this.regexp_eatBracedQuantifier(e,!0)&&e.raise("Nothing to repeat"),!1};Ee.regexp_eatSyntaxCharacter=function(e){var t=e.current();return Wc(t)?(e.lastIntValue=t,e.advance(),!0):!1};function Wc(e){return e===36||e>=40&&e<=43||e===46||e===63||e>=91&&e<=94||e>=123&&e<=125}Ee.regexp_eatPatternCharacters=function(e){for(var t=e.pos,n=0;(n=e.current())!==-1&&!Wc(n);)e.advance();return e.pos!==t};Ee.regexp_eatExtendedPatternCharacter=function(e){var t=e.current();return t!==-1&&t!==36&&!(t>=40&&t<=43)&&t!==46&&t!==63&&t!==91&&t!==94&&t!==124?(e.advance(),!0):!1};Ee.regexp_groupSpecifier=function(e){if(e.eat(63)){this.regexp_eatGroupName(e)||e.raise("Invalid group");var t=this.options.ecmaVersion>=16,n=e.groupNames[e.lastStringValue];if(n)if(t)for(var i=0,r=n;i<r.length;i+=1){var s=r[i];s.separatedFrom(e.branchID)||e.raise("Duplicate capture group name")}else e.raise("Duplicate capture group name");t?(n||(e.groupNames[e.lastStringValue]=[])).push(e.branchID):e.groupNames[e.lastStringValue]=!0}};Ee.regexp_eatGroupName=function(e){if(e.lastStringValue="",e.eat(60)){if(this.regexp_eatRegExpIdentifierName(e)&&e.eat(62))return!0;e.raise("Invalid capture group name")}return!1};Ee.regexp_eatRegExpIdentifierName=function(e){if(e.lastStringValue="",this.regexp_eatRegExpIdentifierStart(e)){for(e.lastStringValue+=tn(e.lastIntValue);this.regexp_eatRegExpIdentifierPart(e);)e.lastStringValue+=tn(e.lastIntValue);return!0}return!1};Ee.regexp_eatRegExpIdentifierStart=function(e){var t=e.pos,n=this.options.ecmaVersion>=11,i=e.current(n);return e.advance(n),i===92&&this.regexp_eatRegExpUnicodeEscapeSequence(e,n)&&(i=e.lastIntValue),um(i)?(e.lastIntValue=i,!0):(e.pos=t,!1)};function um(e){return Gt(e,!0)||e===36||e===95}Ee.regexp_eatRegExpIdentifierPart=function(e){var t=e.pos,n=this.options.ecmaVersion>=11,i=e.current(n);return e.advance(n),i===92&&this.regexp_eatRegExpUnicodeEscapeSequence(e,n)&&(i=e.lastIntValue),cm(i)?(e.lastIntValue=i,!0):(e.pos=t,!1)};function cm(e){return mn(e,!0)||e===36||e===95||e===8204||e===8205}Ee.regexp_eatAtomEscape=function(e){return this.regexp_eatBackReference(e)||this.regexp_eatCharacterClassEscape(e)||this.regexp_eatCharacterEscape(e)||e.switchN&&this.regexp_eatKGroupName(e)?!0:(e.switchU&&(e.current()===99&&e.raise("Invalid unicode escape"),e.raise("Invalid escape")),!1)};Ee.regexp_eatBackReference=function(e){var t=e.pos;if(this.regexp_eatDecimalEscape(e)){var n=e.lastIntValue;if(e.switchU)return n>e.maxBackReference&&(e.maxBackReference=n),!0;if(n<=e.numCapturingParens)return!0;e.pos=t}return!1};Ee.regexp_eatKGroupName=function(e){if(e.eat(107)){if(this.regexp_eatGroupName(e))return e.backReferenceNames.push(e.lastStringValue),!0;e.raise("Invalid named reference")}return!1};Ee.regexp_eatCharacterEscape=function(e){return this.regexp_eatControlEscape(e)||this.regexp_eatCControlLetter(e)||this.regexp_eatZero(e)||this.regexp_eatHexEscapeSequence(e)||this.regexp_eatRegExpUnicodeEscapeSequence(e,!1)||!e.switchU&&this.regexp_eatLegacyOctalEscapeSequence(e)||this.regexp_eatIdentityEscape(e)};Ee.regexp_eatCControlLetter=function(e){var t=e.pos;if(e.eat(99)){if(this.regexp_eatControlLetter(e))return!0;e.pos=t}return!1};Ee.regexp_eatZero=function(e){return e.current()===48&&!Rr(e.lookahead())?(e.lastIntValue=0,e.advance(),!0):!1};Ee.regexp_eatControlEscape=function(e){var t=e.current();return t===116?(e.lastIntValue=9,e.advance(),!0):t===110?(e.lastIntValue=10,e.advance(),!0):t===118?(e.lastIntValue=11,e.advance(),!0):t===102?(e.lastIntValue=12,e.advance(),!0):t===114?(e.lastIntValue=13,e.advance(),!0):!1};Ee.regexp_eatControlLetter=function(e){var t=e.current();return Gc(t)?(e.lastIntValue=t%32,e.advance(),!0):!1};function Gc(e){return e>=65&&e<=90||e>=97&&e<=122}Ee.regexp_eatRegExpUnicodeEscapeSequence=function(e,t){t===void 0&&(t=!1);var n=e.pos,i=t||e.switchU;if(e.eat(117)){if(this.regexp_eatFixedHexDigits(e,4)){var r=e.lastIntValue;if(i&&r>=55296&&r<=56319){var s=e.pos;if(e.eat(92)&&e.eat(117)&&this.regexp_eatFixedHexDigits(e,4)){var o=e.lastIntValue;if(o>=56320&&o<=57343)return e.lastIntValue=(r-55296)*1024+(o-56320)+65536,!0}e.pos=s,e.lastIntValue=r}return!0}if(i&&e.eat(123)&&this.regexp_eatHexDigits(e)&&e.eat(125)&&hm(e.lastIntValue))return!0;i&&e.raise("Invalid unicode escape"),e.pos=n}return!1};function hm(e){return e>=0&&e<=1114111}Ee.regexp_eatIdentityEscape=function(e){if(e.switchU)return this.regexp_eatSyntaxCharacter(e)?!0:e.eat(47)?(e.lastIntValue=47,!0):!1;var t=e.current();return t!==99&&(!e.switchN||t!==107)?(e.lastIntValue=t,e.advance(),!0):!1};Ee.regexp_eatDecimalEscape=function(e){e.lastIntValue=0;var t=e.current();if(t>=49&&t<=57){do e.lastIntValue=10*e.lastIntValue+(t-48),e.advance();while((t=e.current())>=48&&t<=57);return!0}return!1};var Jc=0,nn=1,Rt=2;Ee.regexp_eatCharacterClassEscape=function(e){var t=e.current();if(fm(t))return e.lastIntValue=-1,e.advance(),nn;var n=!1;if(e.switchU&&this.options.ecmaVersion>=9&&((n=t===80)||t===112)){e.lastIntValue=-1,e.advance();var i;if(e.eat(123)&&(i=this.regexp_eatUnicodePropertyValueExpression(e))&&e.eat(125))return n&&i===Rt&&e.raise("Invalid property name"),i;e.raise("Invalid property name")}return Jc};function fm(e){return e===100||e===68||e===115||e===83||e===119||e===87}Ee.regexp_eatUnicodePropertyValueExpression=function(e){var t=e.pos;if(this.regexp_eatUnicodePropertyName(e)&&e.eat(61)){var n=e.lastStringValue;if(this.regexp_eatUnicodePropertyValue(e)){var i=e.lastStringValue;return this.regexp_validateUnicodePropertyNameAndValue(e,n,i),nn}}if(e.pos=t,this.regexp_eatLoneUnicodePropertyNameOrValue(e)){var r=e.lastStringValue;return this.regexp_validateUnicodePropertyNameOrValue(e,r)}return Jc};Ee.regexp_validateUnicodePropertyNameAndValue=function(e,t,n){Xn(e.unicodeProperties.nonBinary,t)||e.raise("Invalid property name"),e.unicodeProperties.nonBinary[t].test(n)||e.raise("Invalid property value")};Ee.regexp_validateUnicodePropertyNameOrValue=function(e,t){if(e.unicodeProperties.binary.test(t))return nn;if(e.switchV&&e.unicodeProperties.binaryOfStrings.test(t))return Rt;e.raise("Invalid property name")};Ee.regexp_eatUnicodePropertyName=function(e){var t=0;for(e.lastStringValue="";Yc(t=e.current());)e.lastStringValue+=tn(t),e.advance();return e.lastStringValue!==""};function Yc(e){return Gc(e)||e===95}Ee.regexp_eatUnicodePropertyValue=function(e){var t=0;for(e.lastStringValue="";pm(t=e.current());)e.lastStringValue+=tn(t),e.advance();return e.lastStringValue!==""};function pm(e){return Yc(e)||Rr(e)}Ee.regexp_eatLoneUnicodePropertyNameOrValue=function(e){return this.regexp_eatUnicodePropertyValue(e)};Ee.regexp_eatCharacterClass=function(e){if(e.eat(91)){var t=e.eat(94),n=this.regexp_classContents(e);return e.eat(93)||e.raise("Unterminated character class"),t&&n===Rt&&e.raise("Negated character class may contain strings"),!0}return!1};Ee.regexp_classContents=function(e){return e.current()===93?nn:e.switchV?this.regexp_classSetExpression(e):(this.regexp_nonEmptyClassRanges(e),nn)};Ee.regexp_nonEmptyClassRanges=function(e){for(;this.regexp_eatClassAtom(e);){var t=e.lastIntValue;if(e.eat(45)&&this.regexp_eatClassAtom(e)){var n=e.lastIntValue;e.switchU&&(t===-1||n===-1)&&e.raise("Invalid character class"),t!==-1&&n!==-1&&t>n&&e.raise("Range out of order in character class")}}};Ee.regexp_eatClassAtom=function(e){var t=e.pos;if(e.eat(92)){if(this.regexp_eatClassEscape(e))return!0;if(e.switchU){var n=e.current();(n===99||Xc(n))&&e.raise("Invalid class escape"),e.raise("Invalid escape")}e.pos=t}var i=e.current();return i!==93?(e.lastIntValue=i,e.advance(),!0):!1};Ee.regexp_eatClassEscape=function(e){var t=e.pos;if(e.eat(98))return e.lastIntValue=8,!0;if(e.switchU&&e.eat(45))return e.lastIntValue=45,!0;if(!e.switchU&&e.eat(99)){if(this.regexp_eatClassControlLetter(e))return!0;e.pos=t}return this.regexp_eatCharacterClassEscape(e)||this.regexp_eatCharacterEscape(e)};Ee.regexp_classSetExpression=function(e){var t=nn,n;if(!this.regexp_eatClassSetRange(e))if(n=this.regexp_eatClassSetOperand(e)){n===Rt&&(t=Rt);for(var i=e.pos;e.eatChars([38,38]);){if(e.current()!==38&&(n=this.regexp_eatClassSetOperand(e))){n!==Rt&&(t=nn);continue}e.raise("Invalid character in character class")}if(i!==e.pos)return t;for(;e.eatChars([45,45]);)this.regexp_eatClassSetOperand(e)||e.raise("Invalid character in character class");if(i!==e.pos)return t}else e.raise("Invalid character in character class");for(;;)if(!this.regexp_eatClassSetRange(e)){if(n=this.regexp_eatClassSetOperand(e),!n)return t;n===Rt&&(t=Rt)}};Ee.regexp_eatClassSetRange=function(e){var t=e.pos;if(this.regexp_eatClassSetCharacter(e)){var n=e.lastIntValue;if(e.eat(45)&&this.regexp_eatClassSetCharacter(e)){var i=e.lastIntValue;return n!==-1&&i!==-1&&n>i&&e.raise("Range out of order in character class"),!0}e.pos=t}return!1};Ee.regexp_eatClassSetOperand=function(e){return this.regexp_eatClassSetCharacter(e)?nn:this.regexp_eatClassStringDisjunction(e)||this.regexp_eatNestedClass(e)};Ee.regexp_eatNestedClass=function(e){var t=e.pos;if(e.eat(91)){var n=e.eat(94),i=this.regexp_classContents(e);if(e.eat(93))return n&&i===Rt&&e.raise("Negated character class may contain strings"),i;e.pos=t}if(e.eat(92)){var r=this.regexp_eatCharacterClassEscape(e);if(r)return r;e.pos=t}return null};Ee.regexp_eatClassStringDisjunction=function(e){var t=e.pos;if(e.eatChars([92,113])){if(e.eat(123)){var n=this.regexp_classStringDisjunctionContents(e);if(e.eat(125))return n}else e.raise("Invalid escape");e.pos=t}return null};Ee.regexp_classStringDisjunctionContents=function(e){for(var t=this.regexp_classString(e);e.eat(124);)this.regexp_classString(e)===Rt&&(t=Rt);return t};Ee.regexp_classString=function(e){for(var t=0;this.regexp_eatClassSetCharacter(e);)t++;return t===1?nn:Rt};Ee.regexp_eatClassSetCharacter=function(e){var t=e.pos;if(e.eat(92))return this.regexp_eatCharacterEscape(e)||this.regexp_eatClassSetReservedPunctuator(e)?!0:e.eat(98)?(e.lastIntValue=8,!0):(e.pos=t,!1);var n=e.current();return n<0||n===e.lookahead()&&dm(n)||gm(n)?!1:(e.advance(),e.lastIntValue=n,!0)};function dm(e){return e===33||e>=35&&e<=38||e>=42&&e<=44||e===46||e>=58&&e<=64||e===94||e===96||e===126}function gm(e){return e===40||e===41||e===45||e===47||e>=91&&e<=93||e>=123&&e<=125}Ee.regexp_eatClassSetReservedPunctuator=function(e){var t=e.current();return mm(t)?(e.lastIntValue=t,e.advance(),!0):!1};function mm(e){return e===33||e===35||e===37||e===38||e===44||e===45||e>=58&&e<=62||e===64||e===96||e===126}Ee.regexp_eatClassControlLetter=function(e){var t=e.current();return Rr(t)||t===95?(e.lastIntValue=t%32,e.advance(),!0):!1};Ee.regexp_eatHexEscapeSequence=function(e){var t=e.pos;if(e.eat(120)){if(this.regexp_eatFixedHexDigits(e,2))return!0;e.switchU&&e.raise("Invalid escape"),e.pos=t}return!1};Ee.regexp_eatDecimalDigits=function(e){var t=e.pos,n=0;for(e.lastIntValue=0;Rr(n=e.current());)e.lastIntValue=10*e.lastIntValue+(n-48),e.advance();return e.pos!==t};function Rr(e){return e>=48&&e<=57}Ee.regexp_eatHexDigits=function(e){var t=e.pos,n=0;for(e.lastIntValue=0;Qc(n=e.current());)e.lastIntValue=16*e.lastIntValue+Zc(n),e.advance();return e.pos!==t};function Qc(e){return e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102}function Zc(e){return e>=65&&e<=70?10+(e-65):e>=97&&e<=102?10+(e-97):e-48}Ee.regexp_eatLegacyOctalEscapeSequence=function(e){if(this.regexp_eatOctalDigit(e)){var t=e.lastIntValue;if(this.regexp_eatOctalDigit(e)){var n=e.lastIntValue;t<=3&&this.regexp_eatOctalDigit(e)?e.lastIntValue=t*64+n*8+e.lastIntValue:e.lastIntValue=t*8+n}else e.lastIntValue=t;return!0}return!1};Ee.regexp_eatOctalDigit=function(e){var t=e.current();return Xc(t)?(e.lastIntValue=t-48,e.advance(),!0):(e.lastIntValue=0,!1)};function Xc(e){return e>=48&&e<=55}Ee.regexp_eatFixedHexDigits=function(e,t){var n=e.pos;e.lastIntValue=0;for(var i=0;i<t;++i){var r=e.current();if(!Qc(r))return e.pos=n,!1;e.lastIntValue=16*e.lastIntValue+Zc(r),e.advance()}return!0};var ms=function(t){this.type=t.type,this.value=t.value,this.start=t.start,this.end=t.end,t.options.locations&&(this.loc=new Ar(t,t.startLoc,t.endLoc)),t.options.ranges&&(this.range=[t.start,t.end])},Ve=rt.prototype;Ve.next=function(e){!e&&this.type.keyword&&this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword "+this.type.keyword),this.options.onToken&&this.options.onToken(new ms(this)),this.lastTokEnd=this.end,this.lastTokStart=this.start,this.lastTokEndLoc=this.endLoc,this.lastTokStartLoc=this.startLoc,this.nextToken()};Ve.getToken=function(){return this.next(),new ms(this)};typeof Symbol<"u"&&(Ve[Symbol.iterator]=function(){var e=this;return{next:function(){var t=e.getToken();return{done:t.type===_.eof,value:t}}}});Ve.nextToken=function(){var e=this.curContext();if((!e||!e.preserveSpace)&&this.skipSpace(),this.start=this.pos,this.options.locations&&(this.startLoc=this.curPosition()),this.pos>=this.input.length)return this.finishToken(_.eof);if(e.override)return e.override(this);this.readToken(this.fullCharCodeAtPos())};Ve.readToken=function(e){return Gt(e,this.options.ecmaVersion>=6)||e===92?this.readWord():this.getTokenFromCode(e)};Ve.fullCharCodeAt=function(e){var t=this.input.charCodeAt(e);if(t<=55295||t>=56320)return t;var n=this.input.charCodeAt(e+1);return n<=56319||n>=57344?t:(t<<10)+n-56613888};Ve.fullCharCodeAtPos=function(){return this.fullCharCodeAt(this.pos)};Ve.skipBlockComment=function(){var e=this.options.onComment&&this.curPosition(),t=this.pos,n=this.input.indexOf("*/",this.pos+=2);if(n===-1&&this.raise(this.pos-2,"Unterminated comment"),this.pos=n+2,this.options.locations)for(var i=void 0,r=t;(i=Ec(this.input,r,this.pos))>-1;)++this.curLine,r=this.lineStart=i;this.options.onComment&&this.options.onComment(!0,this.input.slice(t+2,n),t,this.pos,e,this.curPosition())};Ve.skipLineComment=function(e){for(var t=this.pos,n=this.options.onComment&&this.curPosition(),i=this.input.charCodeAt(this.pos+=e);this.pos<this.input.length&&!Zn(i);)i=this.input.charCodeAt(++this.pos);this.options.onComment&&this.options.onComment(!1,this.input.slice(t+e,this.pos),t,this.pos,n,this.curPosition())};Ve.skipSpace=function(){e:for(;this.pos<this.input.length;){var e=this.input.charCodeAt(this.pos);switch(e){case 32:case 160:++this.pos;break;case 13:this.input.charCodeAt(this.pos+1)===10&&++this.pos;case 10:case 8232:case 8233:++this.pos,this.options.locations&&(++this.curLine,this.lineStart=this.pos);break;case 47:switch(this.input.charCodeAt(this.pos+1)){case 42:this.skipBlockComment();break;case 47:this.skipLineComment(2);break;default:break e}break;default:if(e>8&&e<14||e>=5760&&Sc.test(String.fromCharCode(e)))++this.pos;else break e}}};Ve.finishToken=function(e,t){this.end=this.pos,this.options.locations&&(this.endLoc=this.curPosition());var n=this.type;this.type=e,this.value=t,this.updateContext(n)};Ve.readToken_dot=function(){var e=this.input.charCodeAt(this.pos+1);if(e>=48&&e<=57)return this.readNumber(!0);var t=this.input.charCodeAt(this.pos+2);return this.options.ecmaVersion>=6&&e===46&&t===46?(this.pos+=3,this.finishToken(_.ellipsis)):(++this.pos,this.finishToken(_.dot))};Ve.readToken_slash=function(){var e=this.input.charCodeAt(this.pos+1);return this.exprAllowed?(++this.pos,this.readRegexp()):e===61?this.finishOp(_.assign,2):this.finishOp(_.slash,1)};Ve.readToken_mult_modulo_exp=function(e){var t=this.input.charCodeAt(this.pos+1),n=1,i=e===42?_.star:_.modulo;return this.options.ecmaVersion>=7&&e===42&&t===42&&(++n,i=_.starstar,t=this.input.charCodeAt(this.pos+2)),t===61?this.finishOp(_.assign,n+1):this.finishOp(i,n)};Ve.readToken_pipe_amp=function(e){var t=this.input.charCodeAt(this.pos+1);if(t===e){if(this.options.ecmaVersion>=12){var n=this.input.charCodeAt(this.pos+2);if(n===61)return this.finishOp(_.assign,3)}return this.finishOp(e===124?_.logicalOR:_.logicalAND,2)}return t===61?this.finishOp(_.assign,2):this.finishOp(e===124?_.bitwiseOR:_.bitwiseAND,1)};Ve.readToken_caret=function(){var e=this.input.charCodeAt(this.pos+1);return e===61?this.finishOp(_.assign,2):this.finishOp(_.bitwiseXOR,1)};Ve.readToken_plus_min=function(e){var t=this.input.charCodeAt(this.pos+1);return t===e?t===45&&!this.inModule&&this.input.charCodeAt(this.pos+2)===62&&(this.lastTokEnd===0||vt.test(this.input.slice(this.lastTokEnd,this.pos)))?(this.skipLineComment(3),this.skipSpace(),this.nextToken()):this.finishOp(_.incDec,2):t===61?this.finishOp(_.assign,2):this.finishOp(_.plusMin,1)};Ve.readToken_lt_gt=function(e){var t=this.input.charCodeAt(this.pos+1),n=1;return t===e?(n=e===62&&this.input.charCodeAt(this.pos+2)===62?3:2,this.input.charCodeAt(this.pos+n)===61?this.finishOp(_.assign,n+1):this.finishOp(_.bitShift,n)):t===33&&e===60&&!this.inModule&&this.input.charCodeAt(this.pos+2)===45&&this.input.charCodeAt(this.pos+3)===45?(this.skipLineComment(4),this.skipSpace(),this.nextToken()):(t===61&&(n=2),this.finishOp(_.relational,n))};Ve.readToken_eq_excl=function(e){var t=this.input.charCodeAt(this.pos+1);return t===61?this.finishOp(_.equality,this.input.charCodeAt(this.pos+2)===61?3:2):e===61&&t===62&&this.options.ecmaVersion>=6?(this.pos+=2,this.finishToken(_.arrow)):this.finishOp(e===61?_.eq:_.prefix,1)};Ve.readToken_question=function(){var e=this.options.ecmaVersion;if(e>=11){var t=this.input.charCodeAt(this.pos+1);if(t===46){var n=this.input.charCodeAt(this.pos+2);if(n<48||n>57)return this.finishOp(_.questionDot,2)}if(t===63){if(e>=12){var i=this.input.charCodeAt(this.pos+2);if(i===61)return this.finishOp(_.assign,3)}return this.finishOp(_.coalesce,2)}}return this.finishOp(_.question,1)};Ve.readToken_numberSign=function(){var e=this.options.ecmaVersion,t=35;if(e>=13&&(++this.pos,t=this.fullCharCodeAtPos(),Gt(t,!0)||t===92))return this.finishToken(_.privateId,this.readWord1());this.raise(this.pos,"Unexpected character '"+tn(t)+"'")};Ve.getTokenFromCode=function(e){switch(e){case 46:return this.readToken_dot();case 40:return++this.pos,this.finishToken(_.parenL);case 41:return++this.pos,this.finishToken(_.parenR);case 59:return++this.pos,this.finishToken(_.semi);case 44:return++this.pos,this.finishToken(_.comma);case 91:return++this.pos,this.finishToken(_.bracketL);case 93:return++this.pos,this.finishToken(_.bracketR);case 123:return++this.pos,this.finishToken(_.braceL);case 125:return++this.pos,this.finishToken(_.braceR);case 58:return++this.pos,this.finishToken(_.colon);case 96:if(this.options.ecmaVersion<6)break;return++this.pos,this.finishToken(_.backQuote);case 48:var t=this.input.charCodeAt(this.pos+1);if(t===120||t===88)return this.readRadixNumber(16);if(this.options.ecmaVersion>=6){if(t===111||t===79)return this.readRadixNumber(8);if(t===98||t===66)return this.readRadixNumber(2)}case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return this.readNumber(!1);case 34:case 39:return this.readString(e);case 47:return this.readToken_slash();case 37:case 42:return this.readToken_mult_modulo_exp(e);case 124:case 38:return this.readToken_pipe_amp(e);case 94:return this.readToken_caret();case 43:case 45:return this.readToken_plus_min(e);case 60:case 62:return this.readToken_lt_gt(e);case 61:case 33:return this.readToken_eq_excl(e);case 63:return this.readToken_question();case 126:return this.finishOp(_.prefix,1);case 35:return this.readToken_numberSign()}this.raise(this.pos,"Unexpected character '"+tn(e)+"'")};Ve.finishOp=function(e,t){var n=this.input.slice(this.pos,this.pos+t);return this.pos+=t,this.finishToken(e,n)};Ve.readRegexp=function(){for(var e,t,n=this.pos;;){this.pos>=this.input.length&&this.raise(n,"Unterminated regular expression");var i=this.input.charAt(this.pos);if(vt.test(i)&&this.raise(n,"Unterminated regular expression"),e)e=!1;else{if(i==="[")t=!0;else if(i==="]"&&t)t=!1;else if(i==="/"&&!t)break;e=i==="\\"}++this.pos}var r=this.input.slice(n,this.pos);++this.pos;var s=this.pos,o=this.readWord1();this.containsEsc&&this.unexpected(s);var l=this.regexpState||(this.regexpState=new Yt(this));l.reset(n,r,o),this.validateRegExpFlags(l),this.validateRegExpPattern(l);var u=null;try{u=new RegExp(r,o)}catch{}return this.finishToken(_.regexp,{pattern:r,flags:o,value:u})};Ve.readInt=function(e,t,n){for(var i=this.options.ecmaVersion>=12&&t===void 0,r=n&&this.input.charCodeAt(this.pos)===48,s=this.pos,o=0,l=0,u=0,f=t??1/0;u<f;++u,++this.pos){var p=this.input.charCodeAt(this.pos),h=void 0;if(i&&p===95){r&&this.raiseRecoverable(this.pos,"Numeric separator is not allowed in legacy octal numeric literals"),l===95&&this.raiseRecoverable(this.pos,"Numeric separator must be exactly one underscore"),u===0&&this.raiseRecoverable(this.pos,"Numeric separator is not allowed at the first of digits"),l=p;continue}if(p>=97?h=p-97+10:p>=65?h=p-65+10:p>=48&&p<=57?h=p-48:h=1/0,h>=e)break;l=p,o=o*e+h}return i&&l===95&&this.raiseRecoverable(this.pos-1,"Numeric separator is not allowed at the last of digits"),this.pos===s||t!=null&&this.pos-s!==t?null:o};function xm(e,t){return t?parseInt(e,8):parseFloat(e.replace(/_/g,""))}function eh(e){return typeof BigInt!="function"?null:BigInt(e.replace(/_/g,""))}Ve.readRadixNumber=function(e){var t=this.pos;this.pos+=2;var n=this.readInt(e);return n==null&&this.raise(this.start+2,"Expected number in radix "+e),this.options.ecmaVersion>=11&&this.input.charCodeAt(this.pos)===110?(n=eh(this.input.slice(t,this.pos)),++this.pos):Gt(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number"),this.finishToken(_.num,n)};Ve.readNumber=function(e){var t=this.pos;!e&&this.readInt(10,void 0,!0)===null&&this.raise(t,"Invalid number");var n=this.pos-t>=2&&this.input.charCodeAt(t)===48;n&&this.strict&&this.raise(t,"Invalid number");var i=this.input.charCodeAt(this.pos);if(!n&&!e&&this.options.ecmaVersion>=11&&i===110){var r=eh(this.input.slice(t,this.pos));return++this.pos,Gt(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number"),this.finishToken(_.num,r)}n&&/[89]/.test(this.input.slice(t,this.pos))&&(n=!1),i===46&&!n&&(++this.pos,this.readInt(10),i=this.input.charCodeAt(this.pos)),(i===69||i===101)&&!n&&(i=this.input.charCodeAt(++this.pos),(i===43||i===45)&&++this.pos,this.readInt(10)===null&&this.raise(t,"Invalid number")),Gt(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number");var s=xm(this.input.slice(t,this.pos),n);return this.finishToken(_.num,s)};Ve.readCodePoint=function(){var e=this.input.charCodeAt(this.pos),t;if(e===123){this.options.ecmaVersion<6&&this.unexpected();var n=++this.pos;t=this.readHexChar(this.input.indexOf("}",this.pos)-this.pos),++this.pos,t>1114111&&this.invalidStringToken(n,"Code point out of bounds")}else t=this.readHexChar(4);return t};Ve.readString=function(e){for(var t="",n=++this.pos;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated string constant");var i=this.input.charCodeAt(this.pos);if(i===e)break;i===92?(t+=this.input.slice(n,this.pos),t+=this.readEscapedChar(!1),n=this.pos):i===8232||i===8233?(this.options.ecmaVersion<10&&this.raise(this.start,"Unterminated string constant"),++this.pos,this.options.locations&&(this.curLine++,this.lineStart=this.pos)):(Zn(i)&&this.raise(this.start,"Unterminated string constant"),++this.pos)}return t+=this.input.slice(n,this.pos++),this.finishToken(_.string,t)};var th={};Ve.tryReadTemplateToken=function(){this.inTemplateElement=!0;try{this.readTmplToken()}catch(e){if(e===th)this.readInvalidTemplateToken();else throw e}this.inTemplateElement=!1};Ve.invalidStringToken=function(e,t){if(this.inTemplateElement&&this.options.ecmaVersion>=9)throw th;this.raise(e,t)};Ve.readTmplToken=function(){for(var e="",t=this.pos;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated template");var n=this.input.charCodeAt(this.pos);if(n===96||n===36&&this.input.charCodeAt(this.pos+1)===123)return this.pos===this.start&&(this.type===_.template||this.type===_.invalidTemplate)?n===36?(this.pos+=2,this.finishToken(_.dollarBraceL)):(++this.pos,this.finishToken(_.backQuote)):(e+=this.input.slice(t,this.pos),this.finishToken(_.template,e));if(n===92)e+=this.input.slice(t,this.pos),e+=this.readEscapedChar(!0),t=this.pos;else if(Zn(n)){switch(e+=this.input.slice(t,this.pos),++this.pos,n){case 13:this.input.charCodeAt(this.pos)===10&&++this.pos;case 10:e+=`
20
+ `;break;default:e+=String.fromCharCode(n);break}this.options.locations&&(++this.curLine,this.lineStart=this.pos),t=this.pos}else++this.pos}};Ve.readInvalidTemplateToken=function(){for(;this.pos<this.input.length;this.pos++)switch(this.input[this.pos]){case"\\":++this.pos;break;case"$":if(this.input[this.pos+1]!=="{")break;case"`":return this.finishToken(_.invalidTemplate,this.input.slice(this.start,this.pos));case"\r":this.input[this.pos+1]===`
73
21
  `&&++this.pos;case`
74
- `:case"\u2028":case"\u2029":++this.curLine,this.lineStart=this.pos+1;break}this.raise(this.start,"Unterminated template")};qe.readEscapedChar=function(e){var t=this.input.charCodeAt(++this.pos);switch(++this.pos,t){case 110:return`
75
- `;case 114:return"\r";case 120:return String.fromCharCode(this.readHexChar(2));case 117:return Ai(this.readCodePoint());case 116:return" ";case 98:return"\b";case 118:return"\v";case 102:return"\f";case 13:this.input.charCodeAt(this.pos)===10&&++this.pos;case 10:return this.options.locations&&(this.lineStart=this.pos,++this.curLine),"";case 56:case 57:if(this.strict&&this.invalidStringToken(this.pos-1,"Invalid escape sequence"),e){var i=this.pos-1;this.invalidStringToken(i,"Invalid escape sequence in template string")}default:if(t>=48&&t<=55){var n=this.input.substr(this.pos-1,3).match(/^[0-7]+/)[0],r=parseInt(n,8);return r>255&&(n=n.slice(0,-1),r=parseInt(n,8)),this.pos+=n.length-1,t=this.input.charCodeAt(this.pos),(n!=="0"||t===56||t===57)&&(this.strict||e)&&this.invalidStringToken(this.pos-1-n.length,e?"Octal literal in template string":"Octal literal in strict mode"),String.fromCharCode(r)}return Bn(t)?(this.options.locations&&(this.lineStart=this.pos,++this.curLine),""):String.fromCharCode(t)}};qe.readHexChar=function(e){var t=this.pos,i=this.readInt(16,e);return i===null&&this.invalidStringToken(t,"Bad character escape sequence"),i};qe.readWord1=function(){this.containsEsc=!1;for(var e="",t=!0,i=this.pos,n=this.options.ecmaVersion>=6;this.pos<this.input.length;){var r=this.fullCharCodeAtPos();if(Hi(r,n))this.pos+=r<=65535?1:2;else if(r===92){this.containsEsc=!0,e+=this.input.slice(i,this.pos);var a=this.pos;this.input.charCodeAt(++this.pos)!==117&&this.invalidStringToken(this.pos,"Expecting Unicode escape sequence \\uXXXX"),++this.pos;var s=this.readCodePoint();(t?xi:Hi)(s,n)||this.invalidStringToken(a,"Invalid Unicode escape"),e+=Ai(s),i=this.pos}else break;t=!1}return e+this.input.slice(i,this.pos)};qe.readWord=function(){var e=this.readWord1(),t=N.name;return this.keywords.test(e)&&(t=Ll[e]),this.finishToken(t,e)};var S1="8.15.0";vt.acorn={Parser:vt,version:S1,defaultOptions:bo,Position:fr,SourceLocation:Ja,getLineInfo:yf,Node:Xa,TokenType:Je,tokTypes:N,keywordTypes:Ll,TokContext:ai,tokContexts:ot,isIdentifierChar:Hi,isIdentifierStart:xi,Token:Bl,isNewLine:Bn,lineBreak:zt,lineBreakG:Uw,nonASCIIwhitespace:xf};function Yf(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Ns={exports:{}},Ts,jc;function E1(){return jc||(jc=1,Ts={quot:'"',amp:"&",apos:"'",lt:"<",gt:">",nbsp:" ",iexcl:"¡",cent:"¢",pound:"£",curren:"¤",yen:"¥",brvbar:"¦",sect:"§",uml:"¨",copy:"©",ordf:"ª",laquo:"«",not:"¬",shy:"­",reg:"®",macr:"¯",deg:"°",plusmn:"±",sup2:"²",sup3:"³",acute:"´",micro:"µ",para:"¶",middot:"·",cedil:"¸",sup1:"¹",ordm:"º",raquo:"»",frac14:"¼",frac12:"½",frac34:"¾",iquest:"¿",Agrave:"À",Aacute:"Á",Acirc:"Â",Atilde:"Ã",Auml:"Ä",Aring:"Å",AElig:"Æ",Ccedil:"Ç",Egrave:"È",Eacute:"É",Ecirc:"Ê",Euml:"Ë",Igrave:"Ì",Iacute:"Í",Icirc:"Î",Iuml:"Ï",ETH:"Ð",Ntilde:"Ñ",Ograve:"Ò",Oacute:"Ó",Ocirc:"Ô",Otilde:"Õ",Ouml:"Ö",times:"×",Oslash:"Ø",Ugrave:"Ù",Uacute:"Ú",Ucirc:"Û",Uuml:"Ü",Yacute:"Ý",THORN:"Þ",szlig:"ß",agrave:"à",aacute:"á",acirc:"â",atilde:"ã",auml:"ä",aring:"å",aelig:"æ",ccedil:"ç",egrave:"è",eacute:"é",ecirc:"ê",euml:"ë",igrave:"ì",iacute:"í",icirc:"î",iuml:"ï",eth:"ð",ntilde:"ñ",ograve:"ò",oacute:"ó",ocirc:"ô",otilde:"õ",ouml:"ö",divide:"÷",oslash:"ø",ugrave:"ù",uacute:"ú",ucirc:"û",uuml:"ü",yacute:"ý",thorn:"þ",yuml:"ÿ",OElig:"Œ",oelig:"œ",Scaron:"Š",scaron:"š",Yuml:"Ÿ",fnof:"ƒ",circ:"ˆ",tilde:"˜",Alpha:"Α",Beta:"Β",Gamma:"Γ",Delta:"Δ",Epsilon:"Ε",Zeta:"Ζ",Eta:"Η",Theta:"Θ",Iota:"Ι",Kappa:"Κ",Lambda:"Λ",Mu:"Μ",Nu:"Ν",Xi:"Ξ",Omicron:"Ο",Pi:"Π",Rho:"Ρ",Sigma:"Σ",Tau:"Τ",Upsilon:"Υ",Phi:"Φ",Chi:"Χ",Psi:"Ψ",Omega:"Ω",alpha:"α",beta:"β",gamma:"γ",delta:"δ",epsilon:"ε",zeta:"ζ",eta:"η",theta:"θ",iota:"ι",kappa:"κ",lambda:"λ",mu:"μ",nu:"ν",xi:"ξ",omicron:"ο",pi:"π",rho:"ρ",sigmaf:"ς",sigma:"σ",tau:"τ",upsilon:"υ",phi:"φ",chi:"χ",psi:"ψ",omega:"ω",thetasym:"ϑ",upsih:"ϒ",piv:"ϖ",ensp:" ",emsp:" ",thinsp:" ",zwnj:"‌",zwj:"‍",lrm:"‎",rlm:"‏",ndash:"–",mdash:"—",lsquo:"‘",rsquo:"’",sbquo:"‚",ldquo:"“",rdquo:"”",bdquo:"„",dagger:"†",Dagger:"‡",bull:"•",hellip:"…",permil:"‰",prime:"′",Prime:"″",lsaquo:"‹",rsaquo:"›",oline:"‾",frasl:"⁄",euro:"€",image:"ℑ",weierp:"℘",real:"ℜ",trade:"™",alefsym:"ℵ",larr:"←",uarr:"↑",rarr:"→",darr:"↓",harr:"↔",crarr:"↵",lArr:"⇐",uArr:"⇑",rArr:"⇒",dArr:"⇓",hArr:"⇔",forall:"∀",part:"∂",exist:"∃",empty:"∅",nabla:"∇",isin:"∈",notin:"∉",ni:"∋",prod:"∏",sum:"∑",minus:"−",lowast:"∗",radic:"√",prop:"∝",infin:"∞",ang:"∠",and:"∧",or:"∨",cap:"∩",cup:"∪",int:"∫",there4:"∴",sim:"∼",cong:"≅",asymp:"≈",ne:"≠",equiv:"≡",le:"≤",ge:"≥",sub:"⊂",sup:"⊃",nsub:"⊄",sube:"⊆",supe:"⊇",oplus:"⊕",otimes:"⊗",perp:"⊥",sdot:"⋅",lceil:"⌈",rceil:"⌉",lfloor:"⌊",rfloor:"⌋",lang:"〈",rang:"〉",loz:"◊",spades:"♠",clubs:"♣",hearts:"♥",diams:"♦"}),Ts}var ir={exports:{}},C1=ir.exports,zc;function Vc(){return zc||(zc=1,(function(e,t){(function(i,n){n(t)})(C1,(function(i){var n=[509,0,227,0,150,4,294,9,1368,2,2,1,6,3,41,2,5,0,166,1,574,3,9,9,7,9,32,4,318,1,80,3,71,10,50,3,123,2,54,14,32,10,3,1,11,3,46,10,8,0,46,9,7,2,37,13,2,9,6,1,45,0,13,2,49,13,9,3,2,11,83,11,7,0,3,0,158,11,6,9,7,3,56,1,2,6,3,1,3,2,10,0,11,1,3,6,4,4,68,8,2,0,3,0,2,3,2,4,2,0,15,1,83,17,10,9,5,0,82,19,13,9,214,6,3,8,28,1,83,16,16,9,82,12,9,9,7,19,58,14,5,9,243,14,166,9,71,5,2,1,3,3,2,0,2,1,13,9,120,6,3,6,4,0,29,9,41,6,2,3,9,0,10,10,47,15,343,9,54,7,2,7,17,9,57,21,2,13,123,5,4,0,2,1,2,6,2,0,9,9,49,4,2,1,2,4,9,9,330,3,10,1,2,0,49,6,4,4,14,10,5350,0,7,14,11465,27,2343,9,87,9,39,4,60,6,26,9,535,9,470,0,2,54,8,3,82,0,12,1,19628,1,4178,9,519,45,3,22,543,4,4,5,9,7,3,6,31,3,149,2,1418,49,513,54,5,49,9,0,15,0,23,4,2,14,1361,6,2,16,3,6,2,1,2,4,101,0,161,6,10,9,357,0,62,13,499,13,245,1,2,9,726,6,110,6,6,9,4759,9,787719,239],r=[0,11,2,25,2,18,2,1,2,14,3,13,35,122,70,52,268,28,4,48,48,31,14,29,6,37,11,29,3,35,5,7,2,4,43,157,19,35,5,35,5,39,9,51,13,10,2,14,2,6,2,1,2,10,2,14,2,6,2,1,4,51,13,310,10,21,11,7,25,5,2,41,2,8,70,5,3,0,2,43,2,1,4,0,3,22,11,22,10,30,66,18,2,1,11,21,11,25,71,55,7,1,65,0,16,3,2,2,2,28,43,28,4,28,36,7,2,27,28,53,11,21,11,18,14,17,111,72,56,50,14,50,14,35,39,27,10,22,251,41,7,1,17,2,60,28,11,0,9,21,43,17,47,20,28,22,13,52,58,1,3,0,14,44,33,24,27,35,30,0,3,0,9,34,4,0,13,47,15,3,22,0,2,0,36,17,2,24,20,1,64,6,2,0,2,3,2,14,2,9,8,46,39,7,3,1,3,21,2,6,2,1,2,4,4,0,19,0,13,4,31,9,2,0,3,0,2,37,2,0,26,0,2,0,45,52,19,3,21,2,31,47,21,1,2,0,185,46,42,3,37,47,21,0,60,42,14,0,72,26,38,6,186,43,117,63,32,7,3,0,3,7,2,1,2,23,16,0,2,0,95,7,3,38,17,0,2,0,29,0,11,39,8,0,22,0,12,45,20,0,19,72,200,32,32,8,2,36,18,0,50,29,113,6,2,1,2,37,22,0,26,5,2,1,2,31,15,0,328,18,16,0,2,12,2,33,125,0,80,921,103,110,18,195,2637,96,16,1071,18,5,26,3994,6,582,6842,29,1763,568,8,30,18,78,18,29,19,47,17,3,32,20,6,18,433,44,212,63,129,74,6,0,67,12,65,1,2,0,29,6135,9,1237,42,9,8936,3,2,6,2,1,2,290,16,0,30,2,3,0,15,3,9,395,2309,106,6,12,4,8,8,9,5991,84,2,70,2,1,3,0,3,1,3,3,2,11,2,0,2,6,2,64,2,3,3,7,2,6,2,27,2,3,2,4,2,0,4,6,2,339,3,24,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,7,1845,30,7,5,262,61,147,44,11,6,17,0,322,29,19,43,485,27,229,29,3,0,496,6,2,3,2,1,2,14,2,196,60,67,8,0,1205,3,2,26,2,1,2,0,3,0,2,9,2,3,2,0,2,0,7,0,5,0,2,0,2,0,2,2,2,1,2,0,3,0,2,0,2,0,2,0,2,0,2,1,2,0,3,3,2,6,2,3,2,3,2,0,2,9,2,16,6,2,2,4,2,16,4421,42719,33,4153,7,221,3,5761,15,7472,16,621,2467,541,1507,4938,6,4191],a="‌‍·̀-ͯ·҃-֑҇-ׇֽֿׁׂׅׄؐ-ًؚ-٩ٰۖ-ۜ۟-۪ۤۧۨ-ۭ۰-۹ܑܰ-݊ަ-ް߀-߉߫-߽߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛ࢗ-࢟࣊-ࣣ࣡-ःऺ-़ा-ॏ॑-ॗॢॣ०-९ঁ-ঃ়া-ৄেৈো-্ৗৢৣ০-৯৾ਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢૣ૦-૯ૺ-૿ଁ-ଃ଼ା-ୄେୈୋ-୍୕-ୗୢୣ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఀ-ఄ఼ా-ౄె-ైొ-్ౕౖౢౣ౦-౯ಁ-ಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢೣ೦-೯ೳഀ-ഃ഻഼ാ-ൄെ-ൈൊ-്ൗൢൣ൦-൯ඁ-ඃ්ා-ුූෘ-ෟ෦-෯ෲෳัิ-ฺ็-๎๐-๙ັິ-ຼ່-໎໐-໙༘༙༠-༩༹༵༷༾༿ཱ-྄྆྇ྍ-ྗྙ-ྼ࿆ါ-ှ၀-၉ၖ-ၙၞ-ၠၢ-ၤၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟፩-፱ᜒ-᜕ᜲ-᜴ᝒᝓᝲᝳ឴-៓៝០-៩᠋-᠍᠏-᠙ᢩᤠ-ᤫᤰ-᤻᥆-᥏᧐-᧚ᨗ-ᨛᩕ-ᩞ᩠-᩿᩼-᪉᪐-᪙᪰-᪽ᪿ-ᫎᬀ-ᬄ᬴-᭄᭐-᭙᭫-᭳ᮀ-ᮂᮡ-ᮭ᮰-᮹᯦-᯳ᰤ-᰷᱀-᱉᱐-᱙᳐-᳔᳒-᳨᳭᳴᳷-᳹᷀-᷿‌‍‿⁀⁔⃐-⃥⃜⃡-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〯・꘠-꘩꙯ꙴ-꙽ꚞꚟ꛰꛱ꠂ꠆ꠋꠣ-ꠧ꠬ꢀꢁꢴ-ꣅ꣐-꣙꣠-꣱ꣿ-꤉ꤦ-꤭ꥇ-꥓ꦀ-ꦃ꦳-꧀꧐-꧙ꧥ꧰-꧹ꨩ-ꨶꩃꩌꩍ꩐-꩙ꩻ-ꩽꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꫫ-ꫯꫵ꫶ꯣ-ꯪ꯬꯭꯰-꯹ﬞ︀-️︠-︯︳︴﹍-﹏0-9_・",s="ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՙՠ-ֈא-תׯ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࡠ-ࡪࡰ-ࢇࢉ-ࢎࢠ-ࣉऄ-हऽॐक़-ॡॱ-ঀঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱৼਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡૹଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-హఽౘ-ౚౝౠౡಀಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೝೞೠೡೱೲഄ-ഌഎ-ഐഒ-ഺഽൎൔ-ൖൟ-ൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄຆ-ຊຌ-ຣລວ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏽᏸ-ᏽᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛸᜀ-ᜑᜟ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡸᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭌᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᲀ-ᲊᲐ-ᲺᲽ-Ჿᳩ-ᳬᳮ-ᳳᳵᳶᳺᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕ℘-ℝℤΩℨK-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖ゛-ゟァ-ヺー-ヿㄅ-ㄯㄱ-ㆎㆠ-ㆿㇰ-ㇿ㐀-䶿一-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚝꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꟍꟐꟑꟓꟕ-Ƛꟲ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꣽꣾꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꧠ-ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꩾ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭩꭰ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ",l={3:"abstract boolean byte char class double enum export extends final float goto implements import int interface long native package private protected public short static super synchronized throws transient volatile",5:"class enum extends super const export import",6:"enum",strict:"implements interface let package private protected public static yield",strictBind:"eval arguments"},u="break case catch continue debugger default do else finally for function if return switch throw try var while with null true false instanceof typeof void delete new in this",c={5:u,"5module":u+" export import",6:u+" const class extends export import super"},h=/^in(stanceof)?$/,p=new RegExp("["+s+"]"),g=new RegExp("["+s+a+"]");function m(o,d){for(var x=65536,_=0;_<d.length;_+=2){if(x+=d[_],x>o)return!1;if(x+=d[_+1],x>=o)return!0}return!1}function E(o,d){return o<65?o===36:o<91?!0:o<97?o===95:o<123?!0:o<=65535?o>=170&&p.test(String.fromCharCode(o)):d===!1?!1:m(o,r)}function v(o,d){return o<48?o===36:o<58?!0:o<65?!1:o<91?!0:o<97?o===95:o<123?!0:o<=65535?o>=170&&g.test(String.fromCharCode(o)):d===!1?!1:m(o,r)||m(o,n)}var k=function(d,x){x===void 0&&(x={}),this.label=d,this.keyword=x.keyword,this.beforeExpr=!!x.beforeExpr,this.startsExpr=!!x.startsExpr,this.isLoop=!!x.isLoop,this.isAssign=!!x.isAssign,this.prefix=!!x.prefix,this.postfix=!!x.postfix,this.binop=x.binop||null,this.updateContext=null};function S(o,d){return new k(o,{beforeExpr:!0,binop:d})}var w={beforeExpr:!0},I={startsExpr:!0},A={};function y(o,d){return d===void 0&&(d={}),d.keyword=o,A[o]=new k(o,d)}var f={num:new k("num",I),regexp:new k("regexp",I),string:new k("string",I),name:new k("name",I),privateId:new k("privateId",I),eof:new k("eof"),bracketL:new k("[",{beforeExpr:!0,startsExpr:!0}),bracketR:new k("]"),braceL:new k("{",{beforeExpr:!0,startsExpr:!0}),braceR:new k("}"),parenL:new k("(",{beforeExpr:!0,startsExpr:!0}),parenR:new k(")"),comma:new k(",",w),semi:new k(";",w),colon:new k(":",w),dot:new k("."),question:new k("?",w),questionDot:new k("?."),arrow:new k("=>",w),template:new k("template"),invalidTemplate:new k("invalidTemplate"),ellipsis:new k("...",w),backQuote:new k("`",I),dollarBraceL:new k("${",{beforeExpr:!0,startsExpr:!0}),eq:new k("=",{beforeExpr:!0,isAssign:!0}),assign:new k("_=",{beforeExpr:!0,isAssign:!0}),incDec:new k("++/--",{prefix:!0,postfix:!0,startsExpr:!0}),prefix:new k("!/~",{beforeExpr:!0,prefix:!0,startsExpr:!0}),logicalOR:S("||",1),logicalAND:S("&&",2),bitwiseOR:S("|",3),bitwiseXOR:S("^",4),bitwiseAND:S("&",5),equality:S("==/!=/===/!==",6),relational:S("</>/<=/>=",7),bitShift:S("<</>>/>>>",8),plusMin:new k("+/-",{beforeExpr:!0,binop:9,prefix:!0,startsExpr:!0}),modulo:S("%",10),star:S("*",10),slash:S("/",10),starstar:new k("**",{beforeExpr:!0}),coalesce:S("??",1),_break:y("break"),_case:y("case",w),_catch:y("catch"),_continue:y("continue"),_debugger:y("debugger"),_default:y("default",w),_do:y("do",{isLoop:!0,beforeExpr:!0}),_else:y("else",w),_finally:y("finally"),_for:y("for",{isLoop:!0}),_function:y("function",I),_if:y("if"),_return:y("return",w),_switch:y("switch"),_throw:y("throw",w),_try:y("try"),_var:y("var"),_const:y("const"),_while:y("while",{isLoop:!0}),_with:y("with"),_new:y("new",{beforeExpr:!0,startsExpr:!0}),_this:y("this",I),_super:y("super",I),_class:y("class",I),_extends:y("extends",w),_export:y("export"),_import:y("import",I),_null:y("null",I),_true:y("true",I),_false:y("false",I),_in:y("in",{beforeExpr:!0,binop:7}),_instanceof:y("instanceof",{beforeExpr:!0,binop:7}),_typeof:y("typeof",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_void:y("void",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_delete:y("delete",{beforeExpr:!0,prefix:!0,startsExpr:!0})},O=/\r\n?|\n|\u2028|\u2029/,P=new RegExp(O.source,"g");function F(o){return o===10||o===13||o===8232||o===8233}function D(o,d,x){x===void 0&&(x=o.length);for(var _=d;_<x;_++){var L=o.charCodeAt(_);if(F(L))return _<x-1&&L===13&&o.charCodeAt(_+1)===10?_+2:_+1}return-1}var V=/[\u1680\u2000-\u200a\u202f\u205f\u3000\ufeff]/,J=/(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g,ue=Object.prototype,Q=ue.hasOwnProperty,se=ue.toString,j=Object.hasOwn||(function(o,d){return Q.call(o,d)}),U=Array.isArray||(function(o){return se.call(o)==="[object Array]"}),Y=Object.create(null);function de(o){return Y[o]||(Y[o]=new RegExp("^(?:"+o.replace(/ /g,"|")+")$"))}function C(o){return o<=65535?String.fromCharCode(o):(o-=65536,String.fromCharCode((o>>10)+55296,(o&1023)+56320))}var $=/(?:[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])/,ee=function(d,x){this.line=d,this.column=x};ee.prototype.offset=function(d){return new ee(this.line,this.column+d)};var T=function(d,x,_){this.start=x,this.end=_,d.sourceFile!==null&&(this.source=d.sourceFile)};function B(o,d){for(var x=1,_=0;;){var L=D(o,_,d);if(L<0)return new ee(x,d-_);++x,_=L}}var W={ecmaVersion:null,sourceType:"script",onInsertedSemicolon:null,onTrailingComma:null,allowReserved:null,allowReturnOutsideFunction:!1,allowImportExportEverywhere:!1,allowAwaitOutsideFunction:null,allowSuperOutsideMethod:null,allowHashBang:!1,checkPrivateFields:!0,locations:!1,onToken:null,onComment:null,ranges:!1,program:null,sourceFile:null,directSourceFile:null,preserveParens:!1},z=!1;function K(o){var d={};for(var x in W)d[x]=o&&j(o,x)?o[x]:W[x];if(d.ecmaVersion==="latest"?d.ecmaVersion=1e8:d.ecmaVersion==null?(!z&&typeof console=="object"&&console.warn&&(z=!0,console.warn(`Since Acorn 8.0.0, options.ecmaVersion is required.
76
- Defaulting to 2020, but this will stop working in the future.`)),d.ecmaVersion=11):d.ecmaVersion>=2015&&(d.ecmaVersion-=2009),d.allowReserved==null&&(d.allowReserved=d.ecmaVersion<5),(!o||o.allowHashBang==null)&&(d.allowHashBang=d.ecmaVersion>=14),U(d.onToken)){var _=d.onToken;d.onToken=function(L){return _.push(L)}}return U(d.onComment)&&(d.onComment=ne(d,d.onComment)),d}function ne(o,d){return function(x,_,L,G,X,fe){var ye={type:x?"Block":"Line",value:_,start:L,end:G};o.locations&&(ye.loc=new T(this,X,fe)),o.ranges&&(ye.range=[L,G]),d.push(ye)}}var ae=1,le=2,oe=4,H=8,ve=16,Z=32,xe=64,be=128,ie=256,me=512,Ee=ae|le|ie;function we(o,d){return le|(o?oe:0)|(d?H:0)}var Be=0,ze=1,Pe=2,Re=3,rt=4,te=5,re=function(d,x,_){this.options=d=K(d),this.sourceFile=d.sourceFile,this.keywords=de(c[d.ecmaVersion>=6?6:d.sourceType==="module"?"5module":5]);var L="";d.allowReserved!==!0&&(L=l[d.ecmaVersion>=6?6:d.ecmaVersion===5?5:3],d.sourceType==="module"&&(L+=" await")),this.reservedWords=de(L);var G=(L?L+" ":"")+l.strict;this.reservedWordsStrict=de(G),this.reservedWordsStrictBind=de(G+" "+l.strictBind),this.input=String(x),this.containsEsc=!1,_?(this.pos=_,this.lineStart=this.input.lastIndexOf(`
77
- `,_-1)+1,this.curLine=this.input.slice(0,this.lineStart).split(O).length):(this.pos=this.lineStart=0,this.curLine=1),this.type=f.eof,this.value=null,this.start=this.end=this.pos,this.startLoc=this.endLoc=this.curPosition(),this.lastTokEndLoc=this.lastTokStartLoc=null,this.lastTokStart=this.lastTokEnd=this.pos,this.context=this.initialContext(),this.exprAllowed=!0,this.inModule=d.sourceType==="module",this.strict=this.inModule||this.strictDirective(this.pos),this.potentialArrowAt=-1,this.potentialArrowInForAwait=!1,this.yieldPos=this.awaitPos=this.awaitIdentPos=0,this.labels=[],this.undefinedExports=Object.create(null),this.pos===0&&d.allowHashBang&&this.input.slice(0,2)==="#!"&&this.skipLineComment(2),this.scopeStack=[],this.enterScope(ae),this.regexpState=null,this.privateNameStack=[]},R={inFunction:{configurable:!0},inGenerator:{configurable:!0},inAsync:{configurable:!0},canAwait:{configurable:!0},allowSuper:{configurable:!0},allowDirectSuper:{configurable:!0},treatFunctionsAsVar:{configurable:!0},allowNewDotTarget:{configurable:!0},inClassStaticBlock:{configurable:!0}};re.prototype.parse=function(){var d=this.options.program||this.startNode();return this.nextToken(),this.parseTopLevel(d)},R.inFunction.get=function(){return(this.currentVarScope().flags&le)>0},R.inGenerator.get=function(){return(this.currentVarScope().flags&H)>0},R.inAsync.get=function(){return(this.currentVarScope().flags&oe)>0},R.canAwait.get=function(){for(var o=this.scopeStack.length-1;o>=0;o--){var d=this.scopeStack[o],x=d.flags;if(x&(ie|me))return!1;if(x&le)return(x&oe)>0}return this.inModule&&this.options.ecmaVersion>=13||this.options.allowAwaitOutsideFunction},R.allowSuper.get=function(){var o=this.currentThisScope(),d=o.flags;return(d&xe)>0||this.options.allowSuperOutsideMethod},R.allowDirectSuper.get=function(){return(this.currentThisScope().flags&be)>0},R.treatFunctionsAsVar.get=function(){return this.treatFunctionsAsVarInScope(this.currentScope())},R.allowNewDotTarget.get=function(){for(var o=this.scopeStack.length-1;o>=0;o--){var d=this.scopeStack[o],x=d.flags;if(x&(ie|me)||x&le&&!(x&ve))return!0}return!1},R.inClassStaticBlock.get=function(){return(this.currentVarScope().flags&ie)>0},re.extend=function(){for(var d=[],x=arguments.length;x--;)d[x]=arguments[x];for(var _=this,L=0;L<d.length;L++)_=d[L](_);return _},re.parse=function(d,x){return new this(x,d).parse()},re.parseExpressionAt=function(d,x,_){var L=new this(_,d,x);return L.nextToken(),L.parseExpression()},re.tokenizer=function(d,x){return new this(x,d)},Object.defineProperties(re.prototype,R);var Ce=re.prototype,Fe=/^(?:'((?:\\[^]|[^'\\])*?)'|"((?:\\[^]|[^"\\])*?)")/;Ce.strictDirective=function(o){if(this.options.ecmaVersion<5)return!1;for(;;){J.lastIndex=o,o+=J.exec(this.input)[0].length;var d=Fe.exec(this.input.slice(o));if(!d)return!1;if((d[1]||d[2])==="use strict"){J.lastIndex=o+d[0].length;var x=J.exec(this.input),_=x.index+x[0].length,L=this.input.charAt(_);return L===";"||L==="}"||O.test(x[0])&&!(/[(`.[+\-/*%<>=,?^&]/.test(L)||L==="!"&&this.input.charAt(_+1)==="=")}o+=d[0].length,J.lastIndex=o,o+=J.exec(this.input)[0].length,this.input[o]===";"&&o++}},Ce.eat=function(o){return this.type===o?(this.next(),!0):!1},Ce.isContextual=function(o){return this.type===f.name&&this.value===o&&!this.containsEsc},Ce.eatContextual=function(o){return this.isContextual(o)?(this.next(),!0):!1},Ce.expectContextual=function(o){this.eatContextual(o)||this.unexpected()},Ce.canInsertSemicolon=function(){return this.type===f.eof||this.type===f.braceR||O.test(this.input.slice(this.lastTokEnd,this.start))},Ce.insertSemicolon=function(){if(this.canInsertSemicolon())return this.options.onInsertedSemicolon&&this.options.onInsertedSemicolon(this.lastTokEnd,this.lastTokEndLoc),!0},Ce.semicolon=function(){!this.eat(f.semi)&&!this.insertSemicolon()&&this.unexpected()},Ce.afterTrailingComma=function(o,d){if(this.type===o)return this.options.onTrailingComma&&this.options.onTrailingComma(this.lastTokStart,this.lastTokStartLoc),d||this.next(),!0},Ce.expect=function(o){this.eat(o)||this.unexpected()},Ce.unexpected=function(o){this.raise(o??this.start,"Unexpected token")};var ht=function(){this.shorthandAssign=this.trailingComma=this.parenthesizedAssign=this.parenthesizedBind=this.doubleProto=-1};Ce.checkPatternErrors=function(o,d){if(o){o.trailingComma>-1&&this.raiseRecoverable(o.trailingComma,"Comma is not permitted after the rest element");var x=d?o.parenthesizedAssign:o.parenthesizedBind;x>-1&&this.raiseRecoverable(x,d?"Assigning to rvalue":"Parenthesized pattern")}},Ce.checkExpressionErrors=function(o,d){if(!o)return!1;var x=o.shorthandAssign,_=o.doubleProto;if(!d)return x>=0||_>=0;x>=0&&this.raise(x,"Shorthand property assignments are valid only in destructuring patterns"),_>=0&&this.raiseRecoverable(_,"Redefinition of __proto__ property")},Ce.checkYieldAwaitInDefaultParams=function(){this.yieldPos&&(!this.awaitPos||this.yieldPos<this.awaitPos)&&this.raise(this.yieldPos,"Yield expression cannot be a default value"),this.awaitPos&&this.raise(this.awaitPos,"Await expression cannot be a default value")},Ce.isSimpleAssignTarget=function(o){return o.type==="ParenthesizedExpression"?this.isSimpleAssignTarget(o.expression):o.type==="Identifier"||o.type==="MemberExpression"};var ke=re.prototype;ke.parseTopLevel=function(o){var d=Object.create(null);for(o.body||(o.body=[]);this.type!==f.eof;){var x=this.parseStatement(null,!0,d);o.body.push(x)}if(this.inModule)for(var _=0,L=Object.keys(this.undefinedExports);_<L.length;_+=1){var G=L[_];this.raiseRecoverable(this.undefinedExports[G].start,"Export '"+G+"' is not defined")}return this.adaptDirectivePrologue(o.body),this.next(),o.sourceType=this.options.sourceType,this.finishNode(o,"Program")};var st={kind:"loop"},Xt={kind:"switch"};ke.isLet=function(o){if(this.options.ecmaVersion<6||!this.isContextual("let"))return!1;J.lastIndex=this.pos;var d=J.exec(this.input),x=this.pos+d[0].length,_=this.input.charCodeAt(x);if(_===91||_===92)return!0;if(o)return!1;if(_===123||_>55295&&_<56320)return!0;if(E(_,!0)){for(var L=x+1;v(_=this.input.charCodeAt(L),!0);)++L;if(_===92||_>55295&&_<56320)return!0;var G=this.input.slice(x,L);if(!h.test(G))return!0}return!1},ke.isAsyncFunction=function(){if(this.options.ecmaVersion<8||!this.isContextual("async"))return!1;J.lastIndex=this.pos;var o=J.exec(this.input),d=this.pos+o[0].length,x;return!O.test(this.input.slice(this.pos,d))&&this.input.slice(d,d+8)==="function"&&(d+8===this.input.length||!(v(x=this.input.charCodeAt(d+8))||x>55295&&x<56320))},ke.isUsingKeyword=function(o,d){if(this.options.ecmaVersion<17||!this.isContextual(o?"await":"using"))return!1;J.lastIndex=this.pos;var x=J.exec(this.input),_=this.pos+x[0].length;if(O.test(this.input.slice(this.pos,_)))return!1;if(o){var L=_+5,G;if(this.input.slice(_,L)!=="using"||L===this.input.length||v(G=this.input.charCodeAt(L))||G>55295&&G<56320)return!1;J.lastIndex=L;var X=J.exec(this.input);if(X&&O.test(this.input.slice(L,L+X[0].length)))return!1}if(d){var fe=_+2,ye;if(this.input.slice(_,fe)==="of"&&(fe===this.input.length||!v(ye=this.input.charCodeAt(fe))&&!(ye>55295&&ye<56320)))return!1}var De=this.input.charCodeAt(_);return E(De,!0)||De===92},ke.isAwaitUsing=function(o){return this.isUsingKeyword(!0,o)},ke.isUsing=function(o){return this.isUsingKeyword(!1,o)},ke.parseStatement=function(o,d,x){var _=this.type,L=this.startNode(),G;switch(this.isLet(o)&&(_=f._var,G="let"),_){case f._break:case f._continue:return this.parseBreakContinueStatement(L,_.keyword);case f._debugger:return this.parseDebuggerStatement(L);case f._do:return this.parseDoStatement(L);case f._for:return this.parseForStatement(L);case f._function:return o&&(this.strict||o!=="if"&&o!=="label")&&this.options.ecmaVersion>=6&&this.unexpected(),this.parseFunctionStatement(L,!1,!o);case f._class:return o&&this.unexpected(),this.parseClass(L,!0);case f._if:return this.parseIfStatement(L);case f._return:return this.parseReturnStatement(L);case f._switch:return this.parseSwitchStatement(L);case f._throw:return this.parseThrowStatement(L);case f._try:return this.parseTryStatement(L);case f._const:case f._var:return G=G||this.value,o&&G!=="var"&&this.unexpected(),this.parseVarStatement(L,G);case f._while:return this.parseWhileStatement(L);case f._with:return this.parseWithStatement(L);case f.braceL:return this.parseBlock(!0,L);case f.semi:return this.parseEmptyStatement(L);case f._export:case f._import:if(this.options.ecmaVersion>10&&_===f._import){J.lastIndex=this.pos;var X=J.exec(this.input),fe=this.pos+X[0].length,ye=this.input.charCodeAt(fe);if(ye===40||ye===46)return this.parseExpressionStatement(L,this.parseExpression())}return this.options.allowImportExportEverywhere||(d||this.raise(this.start,"'import' and 'export' may only appear at the top level"),this.inModule||this.raise(this.start,"'import' and 'export' may appear only with 'sourceType: module'")),_===f._import?this.parseImport(L):this.parseExport(L,x);default:if(this.isAsyncFunction())return o&&this.unexpected(),this.next(),this.parseFunctionStatement(L,!0,!o);var De=this.isAwaitUsing(!1)?"await using":this.isUsing(!1)?"using":null;if(De)return d&&this.options.sourceType==="script"&&this.raise(this.start,"Using declaration cannot appear in the top level when source type is `script`"),De==="await using"&&(this.canAwait||this.raise(this.start,"Await using cannot appear outside of async function"),this.next()),this.next(),this.parseVar(L,!1,De),this.semicolon(),this.finishNode(L,"VariableDeclaration");var He=this.value,at=this.parseExpression();return _===f.name&&at.type==="Identifier"&&this.eat(f.colon)?this.parseLabeledStatement(L,He,at,o):this.parseExpressionStatement(L,at)}},ke.parseBreakContinueStatement=function(o,d){var x=d==="break";this.next(),this.eat(f.semi)||this.insertSemicolon()?o.label=null:this.type!==f.name?this.unexpected():(o.label=this.parseIdent(),this.semicolon());for(var _=0;_<this.labels.length;++_){var L=this.labels[_];if((o.label==null||L.name===o.label.name)&&(L.kind!=null&&(x||L.kind==="loop")||o.label&&x))break}return _===this.labels.length&&this.raise(o.start,"Unsyntactic "+d),this.finishNode(o,x?"BreakStatement":"ContinueStatement")},ke.parseDebuggerStatement=function(o){return this.next(),this.semicolon(),this.finishNode(o,"DebuggerStatement")},ke.parseDoStatement=function(o){return this.next(),this.labels.push(st),o.body=this.parseStatement("do"),this.labels.pop(),this.expect(f._while),o.test=this.parseParenExpression(),this.options.ecmaVersion>=6?this.eat(f.semi):this.semicolon(),this.finishNode(o,"DoWhileStatement")},ke.parseForStatement=function(o){this.next();var d=this.options.ecmaVersion>=9&&this.canAwait&&this.eatContextual("await")?this.lastTokStart:-1;if(this.labels.push(st),this.enterScope(0),this.expect(f.parenL),this.type===f.semi)return d>-1&&this.unexpected(d),this.parseFor(o,null);var x=this.isLet();if(this.type===f._var||this.type===f._const||x){var _=this.startNode(),L=x?"let":this.value;return this.next(),this.parseVar(_,!0,L),this.finishNode(_,"VariableDeclaration"),this.parseForAfterInit(o,_,d)}var G=this.isContextual("let"),X=!1,fe=this.isUsing(!0)?"using":this.isAwaitUsing(!0)?"await using":null;if(fe){var ye=this.startNode();return this.next(),fe==="await using"&&this.next(),this.parseVar(ye,!0,fe),this.finishNode(ye,"VariableDeclaration"),this.parseForAfterInit(o,ye,d)}var De=this.containsEsc,He=new ht,at=this.start,kt=d>-1?this.parseExprSubscripts(He,"await"):this.parseExpression(!0,He);return this.type===f._in||(X=this.options.ecmaVersion>=6&&this.isContextual("of"))?(d>-1?(this.type===f._in&&this.unexpected(d),o.await=!0):X&&this.options.ecmaVersion>=8&&(kt.start===at&&!De&&kt.type==="Identifier"&&kt.name==="async"?this.unexpected():this.options.ecmaVersion>=9&&(o.await=!1)),G&&X&&this.raise(kt.start,"The left-hand side of a for-of loop may not start with 'let'."),this.toAssignable(kt,!1,He),this.checkLValPattern(kt),this.parseForIn(o,kt)):(this.checkExpressionErrors(He,!0),d>-1&&this.unexpected(d),this.parseFor(o,kt))},ke.parseForAfterInit=function(o,d,x){return(this.type===f._in||this.options.ecmaVersion>=6&&this.isContextual("of"))&&d.declarations.length===1?(this.options.ecmaVersion>=9&&(this.type===f._in?x>-1&&this.unexpected(x):o.await=x>-1),this.parseForIn(o,d)):(x>-1&&this.unexpected(x),this.parseFor(o,d))},ke.parseFunctionStatement=function(o,d,x){return this.next(),this.parseFunction(o,ct|(x?0:Vt),!1,d)},ke.parseIfStatement=function(o){return this.next(),o.test=this.parseParenExpression(),o.consequent=this.parseStatement("if"),o.alternate=this.eat(f._else)?this.parseStatement("if"):null,this.finishNode(o,"IfStatement")},ke.parseReturnStatement=function(o){return!this.inFunction&&!this.options.allowReturnOutsideFunction&&this.raise(this.start,"'return' outside of function"),this.next(),this.eat(f.semi)||this.insertSemicolon()?o.argument=null:(o.argument=this.parseExpression(),this.semicolon()),this.finishNode(o,"ReturnStatement")},ke.parseSwitchStatement=function(o){this.next(),o.discriminant=this.parseParenExpression(),o.cases=[],this.expect(f.braceL),this.labels.push(Xt),this.enterScope(0);for(var d,x=!1;this.type!==f.braceR;)if(this.type===f._case||this.type===f._default){var _=this.type===f._case;d&&this.finishNode(d,"SwitchCase"),o.cases.push(d=this.startNode()),d.consequent=[],this.next(),_?d.test=this.parseExpression():(x&&this.raiseRecoverable(this.lastTokStart,"Multiple default clauses"),x=!0,d.test=null),this.expect(f.colon)}else d||this.unexpected(),d.consequent.push(this.parseStatement(null));return this.exitScope(),d&&this.finishNode(d,"SwitchCase"),this.next(),this.labels.pop(),this.finishNode(o,"SwitchStatement")},ke.parseThrowStatement=function(o){return this.next(),O.test(this.input.slice(this.lastTokEnd,this.start))&&this.raise(this.lastTokEnd,"Illegal newline after throw"),o.argument=this.parseExpression(),this.semicolon(),this.finishNode(o,"ThrowStatement")};var ki=[];ke.parseCatchClauseParam=function(){var o=this.parseBindingAtom(),d=o.type==="Identifier";return this.enterScope(d?Z:0),this.checkLValPattern(o,d?rt:Pe),this.expect(f.parenR),o},ke.parseTryStatement=function(o){if(this.next(),o.block=this.parseBlock(),o.handler=null,this.type===f._catch){var d=this.startNode();this.next(),this.eat(f.parenL)?d.param=this.parseCatchClauseParam():(this.options.ecmaVersion<10&&this.unexpected(),d.param=null,this.enterScope(0)),d.body=this.parseBlock(!1),this.exitScope(),o.handler=this.finishNode(d,"CatchClause")}return o.finalizer=this.eat(f._finally)?this.parseBlock():null,!o.handler&&!o.finalizer&&this.raise(o.start,"Missing catch or finally clause"),this.finishNode(o,"TryStatement")},ke.parseVarStatement=function(o,d,x){return this.next(),this.parseVar(o,!1,d,x),this.semicolon(),this.finishNode(o,"VariableDeclaration")},ke.parseWhileStatement=function(o){return this.next(),o.test=this.parseParenExpression(),this.labels.push(st),o.body=this.parseStatement("while"),this.labels.pop(),this.finishNode(o,"WhileStatement")},ke.parseWithStatement=function(o){return this.strict&&this.raise(this.start,"'with' in strict mode"),this.next(),o.object=this.parseParenExpression(),o.body=this.parseStatement("with"),this.finishNode(o,"WithStatement")},ke.parseEmptyStatement=function(o){return this.next(),this.finishNode(o,"EmptyStatement")},ke.parseLabeledStatement=function(o,d,x,_){for(var L=0,G=this.labels;L<G.length;L+=1){var X=G[L];X.name===d&&this.raise(x.start,"Label '"+d+"' is already declared")}for(var fe=this.type.isLoop?"loop":this.type===f._switch?"switch":null,ye=this.labels.length-1;ye>=0;ye--){var De=this.labels[ye];if(De.statementStart===o.start)De.statementStart=this.start,De.kind=fe;else break}return this.labels.push({name:d,kind:fe,statementStart:this.start}),o.body=this.parseStatement(_?_.indexOf("label")===-1?_+"label":_:"label"),this.labels.pop(),o.label=x,this.finishNode(o,"LabeledStatement")},ke.parseExpressionStatement=function(o,d){return o.expression=d,this.semicolon(),this.finishNode(o,"ExpressionStatement")},ke.parseBlock=function(o,d,x){for(o===void 0&&(o=!0),d===void 0&&(d=this.startNode()),d.body=[],this.expect(f.braceL),o&&this.enterScope(0);this.type!==f.braceR;){var _=this.parseStatement(null);d.body.push(_)}return x&&(this.strict=!1),this.next(),o&&this.exitScope(),this.finishNode(d,"BlockStatement")},ke.parseFor=function(o,d){return o.init=d,this.expect(f.semi),o.test=this.type===f.semi?null:this.parseExpression(),this.expect(f.semi),o.update=this.type===f.parenR?null:this.parseExpression(),this.expect(f.parenR),o.body=this.parseStatement("for"),this.exitScope(),this.labels.pop(),this.finishNode(o,"ForStatement")},ke.parseForIn=function(o,d){var x=this.type===f._in;return this.next(),d.type==="VariableDeclaration"&&d.declarations[0].init!=null&&(!x||this.options.ecmaVersion<8||this.strict||d.kind!=="var"||d.declarations[0].id.type!=="Identifier")&&this.raise(d.start,(x?"for-in":"for-of")+" loop variable declaration may not have an initializer"),o.left=d,o.right=x?this.parseExpression():this.parseMaybeAssign(),this.expect(f.parenR),o.body=this.parseStatement("for"),this.exitScope(),this.labels.pop(),this.finishNode(o,x?"ForInStatement":"ForOfStatement")},ke.parseVar=function(o,d,x,_){for(o.declarations=[],o.kind=x;;){var L=this.startNode();if(this.parseVarId(L,x),this.eat(f.eq)?L.init=this.parseMaybeAssign(d):!_&&x==="const"&&!(this.type===f._in||this.options.ecmaVersion>=6&&this.isContextual("of"))?this.unexpected():!_&&(x==="using"||x==="await using")&&this.options.ecmaVersion>=17&&this.type!==f._in&&!this.isContextual("of")?this.raise(this.lastTokEnd,"Missing initializer in "+x+" declaration"):!_&&L.id.type!=="Identifier"&&!(d&&(this.type===f._in||this.isContextual("of")))?this.raise(this.lastTokEnd,"Complex binding patterns require an initialization value"):L.init=null,o.declarations.push(this.finishNode(L,"VariableDeclarator")),!this.eat(f.comma))break}return o},ke.parseVarId=function(o,d){o.id=d==="using"||d==="await using"?this.parseIdent():this.parseBindingAtom(),this.checkLValPattern(o.id,d==="var"?ze:Pe,!1)};var ct=1,Vt=2,Pt=4;ke.parseFunction=function(o,d,x,_,L){this.initFunction(o),(this.options.ecmaVersion>=9||this.options.ecmaVersion>=6&&!_)&&(this.type===f.star&&d&Vt&&this.unexpected(),o.generator=this.eat(f.star)),this.options.ecmaVersion>=8&&(o.async=!!_),d&ct&&(o.id=d&Pt&&this.type!==f.name?null:this.parseIdent(),o.id&&!(d&Vt)&&this.checkLValSimple(o.id,this.strict||o.generator||o.async?this.treatFunctionsAsVar?ze:Pe:Re));var G=this.yieldPos,X=this.awaitPos,fe=this.awaitIdentPos;return this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(we(o.async,o.generator)),d&ct||(o.id=this.type===f.name?this.parseIdent():null),this.parseFunctionParams(o),this.parseFunctionBody(o,x,!1,L),this.yieldPos=G,this.awaitPos=X,this.awaitIdentPos=fe,this.finishNode(o,d&ct?"FunctionDeclaration":"FunctionExpression")},ke.parseFunctionParams=function(o){this.expect(f.parenL),o.params=this.parseBindingList(f.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams()},ke.parseClass=function(o,d){this.next();var x=this.strict;this.strict=!0,this.parseClassId(o,d),this.parseClassSuper(o);var _=this.enterClassBody(),L=this.startNode(),G=!1;for(L.body=[],this.expect(f.braceL);this.type!==f.braceR;){var X=this.parseClassElement(o.superClass!==null);X&&(L.body.push(X),X.type==="MethodDefinition"&&X.kind==="constructor"?(G&&this.raiseRecoverable(X.start,"Duplicate constructor in the same class"),G=!0):X.key&&X.key.type==="PrivateIdentifier"&&Ir(_,X)&&this.raiseRecoverable(X.key.start,"Identifier '#"+X.key.name+"' has already been declared"))}return this.strict=x,this.next(),o.body=this.finishNode(L,"ClassBody"),this.exitClassBody(),this.finishNode(o,d?"ClassDeclaration":"ClassExpression")},ke.parseClassElement=function(o){if(this.eat(f.semi))return null;var d=this.options.ecmaVersion,x=this.startNode(),_="",L=!1,G=!1,X="method",fe=!1;if(this.eatContextual("static")){if(d>=13&&this.eat(f.braceL))return this.parseClassStaticBlock(x),x;this.isClassElementNameStart()||this.type===f.star?fe=!0:_="static"}if(x.static=fe,!_&&d>=8&&this.eatContextual("async")&&((this.isClassElementNameStart()||this.type===f.star)&&!this.canInsertSemicolon()?G=!0:_="async"),!_&&(d>=9||!G)&&this.eat(f.star)&&(L=!0),!_&&!G&&!L){var ye=this.value;(this.eatContextual("get")||this.eatContextual("set"))&&(this.isClassElementNameStart()?X=ye:_=ye)}if(_?(x.computed=!1,x.key=this.startNodeAt(this.lastTokStart,this.lastTokStartLoc),x.key.name=_,this.finishNode(x.key,"Identifier")):this.parseClassElementName(x),d<13||this.type===f.parenL||X!=="method"||L||G){var De=!x.static&&Yi(x,"constructor"),He=De&&o;De&&X!=="method"&&this.raise(x.key.start,"Constructor can't have get/set modifier"),x.kind=De?"constructor":X,this.parseClassMethod(x,L,G,He)}else this.parseClassField(x);return x},ke.isClassElementNameStart=function(){return this.type===f.name||this.type===f.privateId||this.type===f.num||this.type===f.string||this.type===f.bracketL||this.type.keyword},ke.parseClassElementName=function(o){this.type===f.privateId?(this.value==="constructor"&&this.raise(this.start,"Classes can't have an element named '#constructor'"),o.computed=!1,o.key=this.parsePrivateIdent()):this.parsePropertyName(o)},ke.parseClassMethod=function(o,d,x,_){var L=o.key;o.kind==="constructor"?(d&&this.raise(L.start,"Constructor can't be a generator"),x&&this.raise(L.start,"Constructor can't be an async method")):o.static&&Yi(o,"prototype")&&this.raise(L.start,"Classes may not have a static property named prototype");var G=o.value=this.parseMethod(d,x,_);return o.kind==="get"&&G.params.length!==0&&this.raiseRecoverable(G.start,"getter should have no params"),o.kind==="set"&&G.params.length!==1&&this.raiseRecoverable(G.start,"setter should have exactly one param"),o.kind==="set"&&G.params[0].type==="RestElement"&&this.raiseRecoverable(G.params[0].start,"Setter cannot use rest params"),this.finishNode(o,"MethodDefinition")},ke.parseClassField=function(o){return Yi(o,"constructor")?this.raise(o.key.start,"Classes can't have a field named 'constructor'"):o.static&&Yi(o,"prototype")&&this.raise(o.key.start,"Classes can't have a static field named 'prototype'"),this.eat(f.eq)?(this.enterScope(me|xe),o.value=this.parseMaybeAssign(),this.exitScope()):o.value=null,this.semicolon(),this.finishNode(o,"PropertyDefinition")},ke.parseClassStaticBlock=function(o){o.body=[];var d=this.labels;for(this.labels=[],this.enterScope(ie|xe);this.type!==f.braceR;){var x=this.parseStatement(null);o.body.push(x)}return this.next(),this.exitScope(),this.labels=d,this.finishNode(o,"StaticBlock")},ke.parseClassId=function(o,d){this.type===f.name?(o.id=this.parseIdent(),d&&this.checkLValSimple(o.id,Pe,!1)):(d===!0&&this.unexpected(),o.id=null)},ke.parseClassSuper=function(o){o.superClass=this.eat(f._extends)?this.parseExprSubscripts(null,!1):null},ke.enterClassBody=function(){var o={declared:Object.create(null),used:[]};return this.privateNameStack.push(o),o.declared},ke.exitClassBody=function(){var o=this.privateNameStack.pop(),d=o.declared,x=o.used;if(this.options.checkPrivateFields)for(var _=this.privateNameStack.length,L=_===0?null:this.privateNameStack[_-1],G=0;G<x.length;++G){var X=x[G];j(d,X.name)||(L?L.used.push(X):this.raiseRecoverable(X.start,"Private field '#"+X.name+"' must be declared in an enclosing class"))}};function Ir(o,d){var x=d.key.name,_=o[x],L="true";return d.type==="MethodDefinition"&&(d.kind==="get"||d.kind==="set")&&(L=(d.static?"s":"i")+d.kind),_==="iget"&&L==="iset"||_==="iset"&&L==="iget"||_==="sget"&&L==="sset"||_==="sset"&&L==="sget"?(o[x]="true",!1):_?!0:(o[x]=L,!1)}function Yi(o,d){var x=o.computed,_=o.key;return!x&&(_.type==="Identifier"&&_.name===d||_.type==="Literal"&&_.value===d)}ke.parseExportAllDeclaration=function(o,d){return this.options.ecmaVersion>=11&&(this.eatContextual("as")?(o.exported=this.parseModuleExportName(),this.checkExport(d,o.exported,this.lastTokStart)):o.exported=null),this.expectContextual("from"),this.type!==f.string&&this.unexpected(),o.source=this.parseExprAtom(),this.options.ecmaVersion>=16&&(o.attributes=this.parseWithClause()),this.semicolon(),this.finishNode(o,"ExportAllDeclaration")},ke.parseExport=function(o,d){if(this.next(),this.eat(f.star))return this.parseExportAllDeclaration(o,d);if(this.eat(f._default))return this.checkExport(d,"default",this.lastTokStart),o.declaration=this.parseExportDefaultDeclaration(),this.finishNode(o,"ExportDefaultDeclaration");if(this.shouldParseExportStatement())o.declaration=this.parseExportDeclaration(o),o.declaration.type==="VariableDeclaration"?this.checkVariableExport(d,o.declaration.declarations):this.checkExport(d,o.declaration.id,o.declaration.id.start),o.specifiers=[],o.source=null,this.options.ecmaVersion>=16&&(o.attributes=[]);else{if(o.declaration=null,o.specifiers=this.parseExportSpecifiers(d),this.eatContextual("from"))this.type!==f.string&&this.unexpected(),o.source=this.parseExprAtom(),this.options.ecmaVersion>=16&&(o.attributes=this.parseWithClause());else{for(var x=0,_=o.specifiers;x<_.length;x+=1){var L=_[x];this.checkUnreserved(L.local),this.checkLocalExport(L.local),L.local.type==="Literal"&&this.raise(L.local.start,"A string literal cannot be used as an exported binding without `from`.")}o.source=null,this.options.ecmaVersion>=16&&(o.attributes=[])}this.semicolon()}return this.finishNode(o,"ExportNamedDeclaration")},ke.parseExportDeclaration=function(o){return this.parseStatement(null)},ke.parseExportDefaultDeclaration=function(){var o;if(this.type===f._function||(o=this.isAsyncFunction())){var d=this.startNode();return this.next(),o&&this.next(),this.parseFunction(d,ct|Pt,!1,o)}else if(this.type===f._class){var x=this.startNode();return this.parseClass(x,"nullableID")}else{var _=this.parseMaybeAssign();return this.semicolon(),_}},ke.checkExport=function(o,d,x){o&&(typeof d!="string"&&(d=d.type==="Identifier"?d.name:d.value),j(o,d)&&this.raiseRecoverable(x,"Duplicate export '"+d+"'"),o[d]=!0)},ke.checkPatternExport=function(o,d){var x=d.type;if(x==="Identifier")this.checkExport(o,d,d.start);else if(x==="ObjectPattern")for(var _=0,L=d.properties;_<L.length;_+=1){var G=L[_];this.checkPatternExport(o,G)}else if(x==="ArrayPattern")for(var X=0,fe=d.elements;X<fe.length;X+=1){var ye=fe[X];ye&&this.checkPatternExport(o,ye)}else x==="Property"?this.checkPatternExport(o,d.value):x==="AssignmentPattern"?this.checkPatternExport(o,d.left):x==="RestElement"&&this.checkPatternExport(o,d.argument)},ke.checkVariableExport=function(o,d){if(o)for(var x=0,_=d;x<_.length;x+=1){var L=_[x];this.checkPatternExport(o,L.id)}},ke.shouldParseExportStatement=function(){return this.type.keyword==="var"||this.type.keyword==="const"||this.type.keyword==="class"||this.type.keyword==="function"||this.isLet()||this.isAsyncFunction()},ke.parseExportSpecifier=function(o){var d=this.startNode();return d.local=this.parseModuleExportName(),d.exported=this.eatContextual("as")?this.parseModuleExportName():d.local,this.checkExport(o,d.exported,d.exported.start),this.finishNode(d,"ExportSpecifier")},ke.parseExportSpecifiers=function(o){var d=[],x=!0;for(this.expect(f.braceL);!this.eat(f.braceR);){if(x)x=!1;else if(this.expect(f.comma),this.afterTrailingComma(f.braceR))break;d.push(this.parseExportSpecifier(o))}return d},ke.parseImport=function(o){return this.next(),this.type===f.string?(o.specifiers=ki,o.source=this.parseExprAtom()):(o.specifiers=this.parseImportSpecifiers(),this.expectContextual("from"),o.source=this.type===f.string?this.parseExprAtom():this.unexpected()),this.options.ecmaVersion>=16&&(o.attributes=this.parseWithClause()),this.semicolon(),this.finishNode(o,"ImportDeclaration")},ke.parseImportSpecifier=function(){var o=this.startNode();return o.imported=this.parseModuleExportName(),this.eatContextual("as")?o.local=this.parseIdent():(this.checkUnreserved(o.imported),o.local=o.imported),this.checkLValSimple(o.local,Pe),this.finishNode(o,"ImportSpecifier")},ke.parseImportDefaultSpecifier=function(){var o=this.startNode();return o.local=this.parseIdent(),this.checkLValSimple(o.local,Pe),this.finishNode(o,"ImportDefaultSpecifier")},ke.parseImportNamespaceSpecifier=function(){var o=this.startNode();return this.next(),this.expectContextual("as"),o.local=this.parseIdent(),this.checkLValSimple(o.local,Pe),this.finishNode(o,"ImportNamespaceSpecifier")},ke.parseImportSpecifiers=function(){var o=[],d=!0;if(this.type===f.name&&(o.push(this.parseImportDefaultSpecifier()),!this.eat(f.comma)))return o;if(this.type===f.star)return o.push(this.parseImportNamespaceSpecifier()),o;for(this.expect(f.braceL);!this.eat(f.braceR);){if(d)d=!1;else if(this.expect(f.comma),this.afterTrailingComma(f.braceR))break;o.push(this.parseImportSpecifier())}return o},ke.parseWithClause=function(){var o=[];if(!this.eat(f._with))return o;this.expect(f.braceL);for(var d={},x=!0;!this.eat(f.braceR);){if(x)x=!1;else if(this.expect(f.comma),this.afterTrailingComma(f.braceR))break;var _=this.parseImportAttribute(),L=_.key.type==="Identifier"?_.key.name:_.key.value;j(d,L)&&this.raiseRecoverable(_.key.start,"Duplicate attribute key '"+L+"'"),d[L]=!0,o.push(_)}return o},ke.parseImportAttribute=function(){var o=this.startNode();return o.key=this.type===f.string?this.parseExprAtom():this.parseIdent(this.options.allowReserved!=="never"),this.expect(f.colon),this.type!==f.string&&this.unexpected(),o.value=this.parseExprAtom(),this.finishNode(o,"ImportAttribute")},ke.parseModuleExportName=function(){if(this.options.ecmaVersion>=13&&this.type===f.string){var o=this.parseLiteral(this.value);return $.test(o.value)&&this.raise(o.start,"An export name cannot include a lone surrogate."),o}return this.parseIdent(!0)},ke.adaptDirectivePrologue=function(o){for(var d=0;d<o.length&&this.isDirectiveCandidate(o[d]);++d)o[d].directive=o[d].expression.raw.slice(1,-1)},ke.isDirectiveCandidate=function(o){return this.options.ecmaVersion>=5&&o.type==="ExpressionStatement"&&o.expression.type==="Literal"&&typeof o.expression.value=="string"&&(this.input[o.start]==='"'||this.input[o.start]==="'")};var Ct=re.prototype;Ct.toAssignable=function(o,d,x){if(this.options.ecmaVersion>=6&&o)switch(o.type){case"Identifier":this.inAsync&&o.name==="await"&&this.raise(o.start,"Cannot use 'await' as identifier inside an async function");break;case"ObjectPattern":case"ArrayPattern":case"AssignmentPattern":case"RestElement":break;case"ObjectExpression":o.type="ObjectPattern",x&&this.checkPatternErrors(x,!0);for(var _=0,L=o.properties;_<L.length;_+=1){var G=L[_];this.toAssignable(G,d),G.type==="RestElement"&&(G.argument.type==="ArrayPattern"||G.argument.type==="ObjectPattern")&&this.raise(G.argument.start,"Unexpected token")}break;case"Property":o.kind!=="init"&&this.raise(o.key.start,"Object pattern can't contain getter or setter"),this.toAssignable(o.value,d);break;case"ArrayExpression":o.type="ArrayPattern",x&&this.checkPatternErrors(x,!0),this.toAssignableList(o.elements,d);break;case"SpreadElement":o.type="RestElement",this.toAssignable(o.argument,d),o.argument.type==="AssignmentPattern"&&this.raise(o.argument.start,"Rest elements cannot have a default value");break;case"AssignmentExpression":o.operator!=="="&&this.raise(o.left.end,"Only '=' operator can be used for specifying default value."),o.type="AssignmentPattern",delete o.operator,this.toAssignable(o.left,d);break;case"ParenthesizedExpression":this.toAssignable(o.expression,d,x);break;case"ChainExpression":this.raiseRecoverable(o.start,"Optional chaining cannot appear in left-hand side");break;case"MemberExpression":if(!d)break;default:this.raise(o.start,"Assigning to rvalue")}else x&&this.checkPatternErrors(x,!0);return o},Ct.toAssignableList=function(o,d){for(var x=o.length,_=0;_<x;_++){var L=o[_];L&&this.toAssignable(L,d)}if(x){var G=o[x-1];this.options.ecmaVersion===6&&d&&G&&G.type==="RestElement"&&G.argument.type!=="Identifier"&&this.unexpected(G.argument.start)}return o},Ct.parseSpread=function(o){var d=this.startNode();return this.next(),d.argument=this.parseMaybeAssign(!1,o),this.finishNode(d,"SpreadElement")},Ct.parseRestBinding=function(){var o=this.startNode();return this.next(),this.options.ecmaVersion===6&&this.type!==f.name&&this.unexpected(),o.argument=this.parseBindingAtom(),this.finishNode(o,"RestElement")},Ct.parseBindingAtom=function(){if(this.options.ecmaVersion>=6)switch(this.type){case f.bracketL:var o=this.startNode();return this.next(),o.elements=this.parseBindingList(f.bracketR,!0,!0),this.finishNode(o,"ArrayPattern");case f.braceL:return this.parseObj(!0)}return this.parseIdent()},Ct.parseBindingList=function(o,d,x,_){for(var L=[],G=!0;!this.eat(o);)if(G?G=!1:this.expect(f.comma),d&&this.type===f.comma)L.push(null);else{if(x&&this.afterTrailingComma(o))break;if(this.type===f.ellipsis){var X=this.parseRestBinding();this.parseBindingListItem(X),L.push(X),this.type===f.comma&&this.raiseRecoverable(this.start,"Comma is not permitted after the rest element"),this.expect(o);break}else L.push(this.parseAssignableListItem(_))}return L},Ct.parseAssignableListItem=function(o){var d=this.parseMaybeDefault(this.start,this.startLoc);return this.parseBindingListItem(d),d},Ct.parseBindingListItem=function(o){return o},Ct.parseMaybeDefault=function(o,d,x){if(x=x||this.parseBindingAtom(),this.options.ecmaVersion<6||!this.eat(f.eq))return x;var _=this.startNodeAt(o,d);return _.left=x,_.right=this.parseMaybeAssign(),this.finishNode(_,"AssignmentPattern")},Ct.checkLValSimple=function(o,d,x){d===void 0&&(d=Be);var _=d!==Be;switch(o.type){case"Identifier":this.strict&&this.reservedWordsStrictBind.test(o.name)&&this.raiseRecoverable(o.start,(_?"Binding ":"Assigning to ")+o.name+" in strict mode"),_&&(d===Pe&&o.name==="let"&&this.raiseRecoverable(o.start,"let is disallowed as a lexically bound name"),x&&(j(x,o.name)&&this.raiseRecoverable(o.start,"Argument name clash"),x[o.name]=!0),d!==te&&this.declareName(o.name,d,o.start));break;case"ChainExpression":this.raiseRecoverable(o.start,"Optional chaining cannot appear in left-hand side");break;case"MemberExpression":_&&this.raiseRecoverable(o.start,"Binding member expression");break;case"ParenthesizedExpression":return _&&this.raiseRecoverable(o.start,"Binding parenthesized expression"),this.checkLValSimple(o.expression,d,x);default:this.raise(o.start,(_?"Binding":"Assigning to")+" rvalue")}},Ct.checkLValPattern=function(o,d,x){switch(d===void 0&&(d=Be),o.type){case"ObjectPattern":for(var _=0,L=o.properties;_<L.length;_+=1){var G=L[_];this.checkLValInnerPattern(G,d,x)}break;case"ArrayPattern":for(var X=0,fe=o.elements;X<fe.length;X+=1){var ye=fe[X];ye&&this.checkLValInnerPattern(ye,d,x)}break;default:this.checkLValSimple(o,d,x)}},Ct.checkLValInnerPattern=function(o,d,x){switch(d===void 0&&(d=Be),o.type){case"Property":this.checkLValInnerPattern(o.value,d,x);break;case"AssignmentPattern":this.checkLValPattern(o.left,d,x);break;case"RestElement":this.checkLValPattern(o.argument,d,x);break;default:this.checkLValPattern(o,d,x)}};var It=function(d,x,_,L,G){this.token=d,this.isExpr=!!x,this.preserveSpace=!!_,this.override=L,this.generator=!!G},Qe={b_stat:new It("{",!1),b_expr:new It("{",!0),b_tmpl:new It("${",!1),p_stat:new It("(",!1),p_expr:new It("(",!0),q_tmpl:new It("`",!0,!0,function(o){return o.tryReadTemplateToken()}),f_stat:new It("function",!1),f_expr:new It("function",!0),f_expr_gen:new It("function",!0,!1,null,!0),f_gen:new It("function",!1,!1,null,!0)},hi=re.prototype;hi.initialContext=function(){return[Qe.b_stat]},hi.curContext=function(){return this.context[this.context.length-1]},hi.braceIsBlock=function(o){var d=this.curContext();return d===Qe.f_expr||d===Qe.f_stat?!0:o===f.colon&&(d===Qe.b_stat||d===Qe.b_expr)?!d.isExpr:o===f._return||o===f.name&&this.exprAllowed?O.test(this.input.slice(this.lastTokEnd,this.start)):o===f._else||o===f.semi||o===f.eof||o===f.parenR||o===f.arrow?!0:o===f.braceL?d===Qe.b_stat:o===f._var||o===f._const||o===f.name?!1:!this.exprAllowed},hi.inGeneratorContext=function(){for(var o=this.context.length-1;o>=1;o--){var d=this.context[o];if(d.token==="function")return d.generator}return!1},hi.updateContext=function(o){var d,x=this.type;x.keyword&&o===f.dot?this.exprAllowed=!1:(d=x.updateContext)?d.call(this,o):this.exprAllowed=x.beforeExpr},hi.overrideContext=function(o){this.curContext()!==o&&(this.context[this.context.length-1]=o)},f.parenR.updateContext=f.braceR.updateContext=function(){if(this.context.length===1){this.exprAllowed=!0;return}var o=this.context.pop();o===Qe.b_stat&&this.curContext().token==="function"&&(o=this.context.pop()),this.exprAllowed=!o.isExpr},f.braceL.updateContext=function(o){this.context.push(this.braceIsBlock(o)?Qe.b_stat:Qe.b_expr),this.exprAllowed=!0},f.dollarBraceL.updateContext=function(){this.context.push(Qe.b_tmpl),this.exprAllowed=!0},f.parenL.updateContext=function(o){var d=o===f._if||o===f._for||o===f._with||o===f._while;this.context.push(d?Qe.p_stat:Qe.p_expr),this.exprAllowed=!0},f.incDec.updateContext=function(){},f._function.updateContext=f._class.updateContext=function(o){o.beforeExpr&&o!==f._else&&!(o===f.semi&&this.curContext()!==Qe.p_stat)&&!(o===f._return&&O.test(this.input.slice(this.lastTokEnd,this.start)))&&!((o===f.colon||o===f.braceL)&&this.curContext()===Qe.b_stat)?this.context.push(Qe.f_expr):this.context.push(Qe.f_stat),this.exprAllowed=!1},f.colon.updateContext=function(){this.curContext().token==="function"&&this.context.pop(),this.exprAllowed=!0},f.backQuote.updateContext=function(){this.curContext()===Qe.q_tmpl?this.context.pop():this.context.push(Qe.q_tmpl),this.exprAllowed=!1},f.star.updateContext=function(o){if(o===f._function){var d=this.context.length-1;this.context[d]===Qe.f_expr?this.context[d]=Qe.f_expr_gen:this.context[d]=Qe.f_gen}this.exprAllowed=!0},f.name.updateContext=function(o){var d=!1;this.options.ecmaVersion>=6&&o!==f.dot&&(this.value==="of"&&!this.exprAllowed||this.value==="yield"&&this.inGeneratorContext())&&(d=!0),this.exprAllowed=d};var Le=re.prototype;Le.checkPropClash=function(o,d,x){if(!(this.options.ecmaVersion>=9&&o.type==="SpreadElement")&&!(this.options.ecmaVersion>=6&&(o.computed||o.method||o.shorthand))){var _=o.key,L;switch(_.type){case"Identifier":L=_.name;break;case"Literal":L=String(_.value);break;default:return}var G=o.kind;if(this.options.ecmaVersion>=6){L==="__proto__"&&G==="init"&&(d.proto&&(x?x.doubleProto<0&&(x.doubleProto=_.start):this.raiseRecoverable(_.start,"Redefinition of __proto__ property")),d.proto=!0);return}L="$"+L;var X=d[L];if(X){var fe;G==="init"?fe=this.strict&&X.init||X.get||X.set:fe=X.init||X[G],fe&&this.raiseRecoverable(_.start,"Redefinition of property")}else X=d[L]={init:!1,get:!1,set:!1};X[G]=!0}},Le.parseExpression=function(o,d){var x=this.start,_=this.startLoc,L=this.parseMaybeAssign(o,d);if(this.type===f.comma){var G=this.startNodeAt(x,_);for(G.expressions=[L];this.eat(f.comma);)G.expressions.push(this.parseMaybeAssign(o,d));return this.finishNode(G,"SequenceExpression")}return L},Le.parseMaybeAssign=function(o,d,x){if(this.isContextual("yield")){if(this.inGenerator)return this.parseYield(o);this.exprAllowed=!1}var _=!1,L=-1,G=-1,X=-1;d?(L=d.parenthesizedAssign,G=d.trailingComma,X=d.doubleProto,d.parenthesizedAssign=d.trailingComma=-1):(d=new ht,_=!0);var fe=this.start,ye=this.startLoc;(this.type===f.parenL||this.type===f.name)&&(this.potentialArrowAt=this.start,this.potentialArrowInForAwait=o==="await");var De=this.parseMaybeConditional(o,d);if(x&&(De=x.call(this,De,fe,ye)),this.type.isAssign){var He=this.startNodeAt(fe,ye);return He.operator=this.value,this.type===f.eq&&(De=this.toAssignable(De,!1,d)),_||(d.parenthesizedAssign=d.trailingComma=d.doubleProto=-1),d.shorthandAssign>=De.start&&(d.shorthandAssign=-1),this.type===f.eq?this.checkLValPattern(De):this.checkLValSimple(De),He.left=De,this.next(),He.right=this.parseMaybeAssign(o),X>-1&&(d.doubleProto=X),this.finishNode(He,"AssignmentExpression")}else _&&this.checkExpressionErrors(d,!0);return L>-1&&(d.parenthesizedAssign=L),G>-1&&(d.trailingComma=G),De},Le.parseMaybeConditional=function(o,d){var x=this.start,_=this.startLoc,L=this.parseExprOps(o,d);if(this.checkExpressionErrors(d))return L;if(this.eat(f.question)){var G=this.startNodeAt(x,_);return G.test=L,G.consequent=this.parseMaybeAssign(),this.expect(f.colon),G.alternate=this.parseMaybeAssign(o),this.finishNode(G,"ConditionalExpression")}return L},Le.parseExprOps=function(o,d){var x=this.start,_=this.startLoc,L=this.parseMaybeUnary(d,!1,!1,o);return this.checkExpressionErrors(d)||L.start===x&&L.type==="ArrowFunctionExpression"?L:this.parseExprOp(L,x,_,-1,o)},Le.parseExprOp=function(o,d,x,_,L){var G=this.type.binop;if(G!=null&&(!L||this.type!==f._in)&&G>_){var X=this.type===f.logicalOR||this.type===f.logicalAND,fe=this.type===f.coalesce;fe&&(G=f.logicalAND.binop);var ye=this.value;this.next();var De=this.start,He=this.startLoc,at=this.parseExprOp(this.parseMaybeUnary(null,!1,!1,L),De,He,G,L),kt=this.buildBinary(d,x,o,at,ye,X||fe);return(X&&this.type===f.coalesce||fe&&(this.type===f.logicalOR||this.type===f.logicalAND))&&this.raiseRecoverable(this.start,"Logical expressions and coalesce expressions cannot be mixed. Wrap either by parentheses"),this.parseExprOp(kt,d,x,_,L)}return o},Le.buildBinary=function(o,d,x,_,L,G){_.type==="PrivateIdentifier"&&this.raise(_.start,"Private identifier can only be left side of binary expression");var X=this.startNodeAt(o,d);return X.left=x,X.operator=L,X.right=_,this.finishNode(X,G?"LogicalExpression":"BinaryExpression")},Le.parseMaybeUnary=function(o,d,x,_){var L=this.start,G=this.startLoc,X;if(this.isContextual("await")&&this.canAwait)X=this.parseAwait(_),d=!0;else if(this.type.prefix){var fe=this.startNode(),ye=this.type===f.incDec;fe.operator=this.value,fe.prefix=!0,this.next(),fe.argument=this.parseMaybeUnary(null,!0,ye,_),this.checkExpressionErrors(o,!0),ye?this.checkLValSimple(fe.argument):this.strict&&fe.operator==="delete"&&qn(fe.argument)?this.raiseRecoverable(fe.start,"Deleting local variable in strict mode"):fe.operator==="delete"&&Qi(fe.argument)?this.raiseRecoverable(fe.start,"Private fields can not be deleted"):d=!0,X=this.finishNode(fe,ye?"UpdateExpression":"UnaryExpression")}else if(!d&&this.type===f.privateId)(_||this.privateNameStack.length===0)&&this.options.checkPrivateFields&&this.unexpected(),X=this.parsePrivateIdent(),this.type!==f._in&&this.unexpected();else{if(X=this.parseExprSubscripts(o,_),this.checkExpressionErrors(o))return X;for(;this.type.postfix&&!this.canInsertSemicolon();){var De=this.startNodeAt(L,G);De.operator=this.value,De.prefix=!1,De.argument=X,this.checkLValSimple(X),this.next(),X=this.finishNode(De,"UpdateExpression")}}if(!x&&this.eat(f.starstar))if(d)this.unexpected(this.lastTokStart);else return this.buildBinary(L,G,X,this.parseMaybeUnary(null,!1,!1,_),"**",!1);else return X};function qn(o){return o.type==="Identifier"||o.type==="ParenthesizedExpression"&&qn(o.expression)}function Qi(o){return o.type==="MemberExpression"&&o.property.type==="PrivateIdentifier"||o.type==="ChainExpression"&&Qi(o.expression)||o.type==="ParenthesizedExpression"&&Qi(o.expression)}Le.parseExprSubscripts=function(o,d){var x=this.start,_=this.startLoc,L=this.parseExprAtom(o,d);if(L.type==="ArrowFunctionExpression"&&this.input.slice(this.lastTokStart,this.lastTokEnd)!==")")return L;var G=this.parseSubscripts(L,x,_,!1,d);return o&&G.type==="MemberExpression"&&(o.parenthesizedAssign>=G.start&&(o.parenthesizedAssign=-1),o.parenthesizedBind>=G.start&&(o.parenthesizedBind=-1),o.trailingComma>=G.start&&(o.trailingComma=-1)),G},Le.parseSubscripts=function(o,d,x,_,L){for(var G=this.options.ecmaVersion>=8&&o.type==="Identifier"&&o.name==="async"&&this.lastTokEnd===o.end&&!this.canInsertSemicolon()&&o.end-o.start===5&&this.potentialArrowAt===o.start,X=!1;;){var fe=this.parseSubscript(o,d,x,_,G,X,L);if(fe.optional&&(X=!0),fe===o||fe.type==="ArrowFunctionExpression"){if(X){var ye=this.startNodeAt(d,x);ye.expression=fe,fe=this.finishNode(ye,"ChainExpression")}return fe}o=fe}},Le.shouldParseAsyncArrow=function(){return!this.canInsertSemicolon()&&this.eat(f.arrow)},Le.parseSubscriptAsyncArrow=function(o,d,x,_){return this.parseArrowExpression(this.startNodeAt(o,d),x,!0,_)},Le.parseSubscript=function(o,d,x,_,L,G,X){var fe=this.options.ecmaVersion>=11,ye=fe&&this.eat(f.questionDot);_&&ye&&this.raise(this.lastTokStart,"Optional chaining cannot appear in the callee of new expressions");var De=this.eat(f.bracketL);if(De||ye&&this.type!==f.parenL&&this.type!==f.backQuote||this.eat(f.dot)){var He=this.startNodeAt(d,x);He.object=o,De?(He.property=this.parseExpression(),this.expect(f.bracketR)):this.type===f.privateId&&o.type!=="Super"?He.property=this.parsePrivateIdent():He.property=this.parseIdent(this.options.allowReserved!=="never"),He.computed=!!De,fe&&(He.optional=ye),o=this.finishNode(He,"MemberExpression")}else if(!_&&this.eat(f.parenL)){var at=new ht,kt=this.yieldPos,Jn=this.awaitPos,fn=this.awaitIdentPos;this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0;var Rr=this.parseExprList(f.parenR,this.options.ecmaVersion>=8,!1,at);if(L&&!ye&&this.shouldParseAsyncArrow())return this.checkPatternErrors(at,!1),this.checkYieldAwaitInDefaultParams(),this.awaitIdentPos>0&&this.raise(this.awaitIdentPos,"Cannot use 'await' as identifier inside an async function"),this.yieldPos=kt,this.awaitPos=Jn,this.awaitIdentPos=fn,this.parseSubscriptAsyncArrow(d,x,Rr,X);this.checkExpressionErrors(at,!0),this.yieldPos=kt||this.yieldPos,this.awaitPos=Jn||this.awaitPos,this.awaitIdentPos=fn||this.awaitIdentPos;var gn=this.startNodeAt(d,x);gn.callee=o,gn.arguments=Rr,fe&&(gn.optional=ye),o=this.finishNode(gn,"CallExpression")}else if(this.type===f.backQuote){(ye||G)&&this.raise(this.start,"Optional chaining cannot appear in the tag of tagged template expressions");var mn=this.startNodeAt(d,x);mn.tag=o,mn.quasi=this.parseTemplate({isTagged:!0}),o=this.finishNode(mn,"TaggedTemplateExpression")}return o},Le.parseExprAtom=function(o,d,x){this.type===f.slash&&this.readRegexp();var _,L=this.potentialArrowAt===this.start;switch(this.type){case f._super:return this.allowSuper||this.raise(this.start,"'super' keyword outside a method"),_=this.startNode(),this.next(),this.type===f.parenL&&!this.allowDirectSuper&&this.raise(_.start,"super() call outside constructor of a subclass"),this.type!==f.dot&&this.type!==f.bracketL&&this.type!==f.parenL&&this.unexpected(),this.finishNode(_,"Super");case f._this:return _=this.startNode(),this.next(),this.finishNode(_,"ThisExpression");case f.name:var G=this.start,X=this.startLoc,fe=this.containsEsc,ye=this.parseIdent(!1);if(this.options.ecmaVersion>=8&&!fe&&ye.name==="async"&&!this.canInsertSemicolon()&&this.eat(f._function))return this.overrideContext(Qe.f_expr),this.parseFunction(this.startNodeAt(G,X),0,!1,!0,d);if(L&&!this.canInsertSemicolon()){if(this.eat(f.arrow))return this.parseArrowExpression(this.startNodeAt(G,X),[ye],!1,d);if(this.options.ecmaVersion>=8&&ye.name==="async"&&this.type===f.name&&!fe&&(!this.potentialArrowInForAwait||this.value!=="of"||this.containsEsc))return ye=this.parseIdent(!1),(this.canInsertSemicolon()||!this.eat(f.arrow))&&this.unexpected(),this.parseArrowExpression(this.startNodeAt(G,X),[ye],!0,d)}return ye;case f.regexp:var De=this.value;return _=this.parseLiteral(De.value),_.regex={pattern:De.pattern,flags:De.flags},_;case f.num:case f.string:return this.parseLiteral(this.value);case f._null:case f._true:case f._false:return _=this.startNode(),_.value=this.type===f._null?null:this.type===f._true,_.raw=this.type.keyword,this.next(),this.finishNode(_,"Literal");case f.parenL:var He=this.start,at=this.parseParenAndDistinguishExpression(L,d);return o&&(o.parenthesizedAssign<0&&!this.isSimpleAssignTarget(at)&&(o.parenthesizedAssign=He),o.parenthesizedBind<0&&(o.parenthesizedBind=He)),at;case f.bracketL:return _=this.startNode(),this.next(),_.elements=this.parseExprList(f.bracketR,!0,!0,o),this.finishNode(_,"ArrayExpression");case f.braceL:return this.overrideContext(Qe.b_expr),this.parseObj(!1,o);case f._function:return _=this.startNode(),this.next(),this.parseFunction(_,0);case f._class:return this.parseClass(this.startNode(),!1);case f._new:return this.parseNew();case f.backQuote:return this.parseTemplate();case f._import:return this.options.ecmaVersion>=11?this.parseExprImport(x):this.unexpected();default:return this.parseExprAtomDefault()}},Le.parseExprAtomDefault=function(){this.unexpected()},Le.parseExprImport=function(o){var d=this.startNode();if(this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword import"),this.next(),this.type===f.parenL&&!o)return this.parseDynamicImport(d);if(this.type===f.dot){var x=this.startNodeAt(d.start,d.loc&&d.loc.start);return x.name="import",d.meta=this.finishNode(x,"Identifier"),this.parseImportMeta(d)}else this.unexpected()},Le.parseDynamicImport=function(o){if(this.next(),o.source=this.parseMaybeAssign(),this.options.ecmaVersion>=16)this.eat(f.parenR)?o.options=null:(this.expect(f.comma),this.afterTrailingComma(f.parenR)?o.options=null:(o.options=this.parseMaybeAssign(),this.eat(f.parenR)||(this.expect(f.comma),this.afterTrailingComma(f.parenR)||this.unexpected())));else if(!this.eat(f.parenR)){var d=this.start;this.eat(f.comma)&&this.eat(f.parenR)?this.raiseRecoverable(d,"Trailing comma is not allowed in import()"):this.unexpected(d)}return this.finishNode(o,"ImportExpression")},Le.parseImportMeta=function(o){this.next();var d=this.containsEsc;return o.property=this.parseIdent(!0),o.property.name!=="meta"&&this.raiseRecoverable(o.property.start,"The only valid meta property for import is 'import.meta'"),d&&this.raiseRecoverable(o.start,"'import.meta' must not contain escaped characters"),this.options.sourceType!=="module"&&!this.options.allowImportExportEverywhere&&this.raiseRecoverable(o.start,"Cannot use 'import.meta' outside a module"),this.finishNode(o,"MetaProperty")},Le.parseLiteral=function(o){var d=this.startNode();return d.value=o,d.raw=this.input.slice(this.start,this.end),d.raw.charCodeAt(d.raw.length-1)===110&&(d.bigint=d.value!=null?d.value.toString():d.raw.slice(0,-1).replace(/_/g,"")),this.next(),this.finishNode(d,"Literal")},Le.parseParenExpression=function(){this.expect(f.parenL);var o=this.parseExpression();return this.expect(f.parenR),o},Le.shouldParseArrow=function(o){return!this.canInsertSemicolon()},Le.parseParenAndDistinguishExpression=function(o,d){var x=this.start,_=this.startLoc,L,G=this.options.ecmaVersion>=8;if(this.options.ecmaVersion>=6){this.next();var X=this.start,fe=this.startLoc,ye=[],De=!0,He=!1,at=new ht,kt=this.yieldPos,Jn=this.awaitPos,fn;for(this.yieldPos=0,this.awaitPos=0;this.type!==f.parenR;)if(De?De=!1:this.expect(f.comma),G&&this.afterTrailingComma(f.parenR,!0)){He=!0;break}else if(this.type===f.ellipsis){fn=this.start,ye.push(this.parseParenItem(this.parseRestBinding())),this.type===f.comma&&this.raiseRecoverable(this.start,"Comma is not permitted after the rest element");break}else ye.push(this.parseMaybeAssign(!1,at,this.parseParenItem));var Rr=this.lastTokEnd,gn=this.lastTokEndLoc;if(this.expect(f.parenR),o&&this.shouldParseArrow(ye)&&this.eat(f.arrow))return this.checkPatternErrors(at,!1),this.checkYieldAwaitInDefaultParams(),this.yieldPos=kt,this.awaitPos=Jn,this.parseParenArrowList(x,_,ye,d);(!ye.length||He)&&this.unexpected(this.lastTokStart),fn&&this.unexpected(fn),this.checkExpressionErrors(at,!0),this.yieldPos=kt||this.yieldPos,this.awaitPos=Jn||this.awaitPos,ye.length>1?(L=this.startNodeAt(X,fe),L.expressions=ye,this.finishNodeAt(L,"SequenceExpression",Rr,gn)):L=ye[0]}else L=this.parseParenExpression();if(this.options.preserveParens){var mn=this.startNodeAt(x,_);return mn.expression=L,this.finishNode(mn,"ParenthesizedExpression")}else return L},Le.parseParenItem=function(o){return o},Le.parseParenArrowList=function(o,d,x,_){return this.parseArrowExpression(this.startNodeAt(o,d),x,!1,_)};var Gn=[];Le.parseNew=function(){this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword new");var o=this.startNode();if(this.next(),this.options.ecmaVersion>=6&&this.type===f.dot){var d=this.startNodeAt(o.start,o.loc&&o.loc.start);d.name="new",o.meta=this.finishNode(d,"Identifier"),this.next();var x=this.containsEsc;return o.property=this.parseIdent(!0),o.property.name!=="target"&&this.raiseRecoverable(o.property.start,"The only valid meta property for new is 'new.target'"),x&&this.raiseRecoverable(o.start,"'new.target' must not contain escaped characters"),this.allowNewDotTarget||this.raiseRecoverable(o.start,"'new.target' can only be used in functions and class static block"),this.finishNode(o,"MetaProperty")}var _=this.start,L=this.startLoc;return o.callee=this.parseSubscripts(this.parseExprAtom(null,!1,!0),_,L,!0,!1),this.eat(f.parenL)?o.arguments=this.parseExprList(f.parenR,this.options.ecmaVersion>=8,!1):o.arguments=Gn,this.finishNode(o,"NewExpression")},Le.parseTemplateElement=function(o){var d=o.isTagged,x=this.startNode();return this.type===f.invalidTemplate?(d||this.raiseRecoverable(this.start,"Bad escape sequence in untagged template literal"),x.value={raw:this.value.replace(/\r\n?/g,`
22
+ `:case"\u2028":case"\u2029":++this.curLine,this.lineStart=this.pos+1;break}this.raise(this.start,"Unterminated template")};Ve.readEscapedChar=function(e){var t=this.input.charCodeAt(++this.pos);switch(++this.pos,t){case 110:return`
23
+ `;case 114:return"\r";case 120:return String.fromCharCode(this.readHexChar(2));case 117:return tn(this.readCodePoint());case 116:return" ";case 98:return"\b";case 118:return"\v";case 102:return"\f";case 13:this.input.charCodeAt(this.pos)===10&&++this.pos;case 10:return this.options.locations&&(this.lineStart=this.pos,++this.curLine),"";case 56:case 57:if(this.strict&&this.invalidStringToken(this.pos-1,"Invalid escape sequence"),e){var n=this.pos-1;this.invalidStringToken(n,"Invalid escape sequence in template string")}default:if(t>=48&&t<=55){var i=this.input.substr(this.pos-1,3).match(/^[0-7]+/)[0],r=parseInt(i,8);return r>255&&(i=i.slice(0,-1),r=parseInt(i,8)),this.pos+=i.length-1,t=this.input.charCodeAt(this.pos),(i!=="0"||t===56||t===57)&&(this.strict||e)&&this.invalidStringToken(this.pos-1-i.length,e?"Octal literal in template string":"Octal literal in strict mode"),String.fromCharCode(r)}return Zn(t)?(this.options.locations&&(this.lineStart=this.pos,++this.curLine),""):String.fromCharCode(t)}};Ve.readHexChar=function(e){var t=this.pos,n=this.readInt(16,e);return n===null&&this.invalidStringToken(t,"Bad character escape sequence"),n};Ve.readWord1=function(){this.containsEsc=!1;for(var e="",t=!0,n=this.pos,i=this.options.ecmaVersion>=6;this.pos<this.input.length;){var r=this.fullCharCodeAtPos();if(mn(r,i))this.pos+=r<=65535?1:2;else if(r===92){this.containsEsc=!0,e+=this.input.slice(n,this.pos);var s=this.pos;this.input.charCodeAt(++this.pos)!==117&&this.invalidStringToken(this.pos,"Expecting Unicode escape sequence \\uXXXX"),++this.pos;var o=this.readCodePoint();(t?Gt:mn)(o,i)||this.invalidStringToken(s,"Invalid Unicode escape"),e+=tn(o),n=this.pos}else break;t=!1}return e+this.input.slice(n,this.pos)};Ve.readWord=function(){var e=this.readWord1(),t=_.name;return this.keywords.test(e)&&(t=cs[e]),this.finishToken(t,e)};var vm="8.16.0";rt.acorn={Parser:rt,version:vm,defaultOptions:Ua,Position:xi,SourceLocation:Ar,getLineInfo:Cc,Node:Or,TokenType:He,tokTypes:_,keywordTypes:cs,TokContext:Bt,tokContexts:tt,isIdentifierChar:mn,isIdentifierStart:Gt,Token:ms,isNewLine:Zn,lineBreak:vt,lineBreakG:Bg,nonASCIIwhitespace:Sc};function Lr(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Xr={exports:{}},ea,ll;function bm(){return ll||(ll=1,ea={quot:'"',amp:"&",apos:"'",lt:"<",gt:">",nbsp:" ",iexcl:"¡",cent:"¢",pound:"£",curren:"¤",yen:"¥",brvbar:"¦",sect:"§",uml:"¨",copy:"©",ordf:"ª",laquo:"«",not:"¬",shy:"­",reg:"®",macr:"¯",deg:"°",plusmn:"±",sup2:"²",sup3:"³",acute:"´",micro:"µ",para:"¶",middot:"·",cedil:"¸",sup1:"¹",ordm:"º",raquo:"»",frac14:"¼",frac12:"½",frac34:"¾",iquest:"¿",Agrave:"À",Aacute:"Á",Acirc:"Â",Atilde:"Ã",Auml:"Ä",Aring:"Å",AElig:"Æ",Ccedil:"Ç",Egrave:"È",Eacute:"É",Ecirc:"Ê",Euml:"Ë",Igrave:"Ì",Iacute:"Í",Icirc:"Î",Iuml:"Ï",ETH:"Ð",Ntilde:"Ñ",Ograve:"Ò",Oacute:"Ó",Ocirc:"Ô",Otilde:"Õ",Ouml:"Ö",times:"×",Oslash:"Ø",Ugrave:"Ù",Uacute:"Ú",Ucirc:"Û",Uuml:"Ü",Yacute:"Ý",THORN:"Þ",szlig:"ß",agrave:"à",aacute:"á",acirc:"â",atilde:"ã",auml:"ä",aring:"å",aelig:"æ",ccedil:"ç",egrave:"è",eacute:"é",ecirc:"ê",euml:"ë",igrave:"ì",iacute:"í",icirc:"î",iuml:"ï",eth:"ð",ntilde:"ñ",ograve:"ò",oacute:"ó",ocirc:"ô",otilde:"õ",ouml:"ö",divide:"÷",oslash:"ø",ugrave:"ù",uacute:"ú",ucirc:"û",uuml:"ü",yacute:"ý",thorn:"þ",yuml:"ÿ",OElig:"Œ",oelig:"œ",Scaron:"Š",scaron:"š",Yuml:"Ÿ",fnof:"ƒ",circ:"ˆ",tilde:"˜",Alpha:"Α",Beta:"Β",Gamma:"Γ",Delta:"Δ",Epsilon:"Ε",Zeta:"Ζ",Eta:"Η",Theta:"Θ",Iota:"Ι",Kappa:"Κ",Lambda:"Λ",Mu:"Μ",Nu:"Ν",Xi:"Ξ",Omicron:"Ο",Pi:"Π",Rho:"Ρ",Sigma:"Σ",Tau:"Τ",Upsilon:"Υ",Phi:"Φ",Chi:"Χ",Psi:"Ψ",Omega:"Ω",alpha:"α",beta:"β",gamma:"γ",delta:"δ",epsilon:"ε",zeta:"ζ",eta:"η",theta:"θ",iota:"ι",kappa:"κ",lambda:"λ",mu:"μ",nu:"ν",xi:"ξ",omicron:"ο",pi:"π",rho:"ρ",sigmaf:"ς",sigma:"σ",tau:"τ",upsilon:"υ",phi:"φ",chi:"χ",psi:"ψ",omega:"ω",thetasym:"ϑ",upsih:"ϒ",piv:"ϖ",ensp:" ",emsp:" ",thinsp:" ",zwnj:"‌",zwj:"‍",lrm:"‎",rlm:"‏",ndash:"–",mdash:"—",lsquo:"‘",rsquo:"’",sbquo:"‚",ldquo:"“",rdquo:"”",bdquo:"„",dagger:"†",Dagger:"‡",bull:"•",hellip:"…",permil:"‰",prime:"′",Prime:"″",lsaquo:"‹",rsaquo:"›",oline:"‾",frasl:"⁄",euro:"€",image:"ℑ",weierp:"℘",real:"ℜ",trade:"™",alefsym:"ℵ",larr:"←",uarr:"↑",rarr:"→",darr:"↓",harr:"↔",crarr:"↵",lArr:"⇐",uArr:"⇑",rArr:"⇒",dArr:"⇓",hArr:"⇔",forall:"∀",part:"∂",exist:"∃",empty:"∅",nabla:"∇",isin:"∈",notin:"∉",ni:"∋",prod:"∏",sum:"∑",minus:"−",lowast:"∗",radic:"√",prop:"∝",infin:"∞",ang:"∠",and:"∧",or:"∨",cap:"∩",cup:"∪",int:"∫",there4:"∴",sim:"∼",cong:"≅",asymp:"≈",ne:"≠",equiv:"≡",le:"≤",ge:"≥",sub:"⊂",sup:"⊃",nsub:"⊄",sube:"⊆",supe:"⊇",oplus:"⊕",otimes:"⊗",perp:"⊥",sdot:"⋅",lceil:"⌈",rceil:"⌉",lfloor:"⌊",rfloor:"⌋",lang:"〈",rang:"〉",loz:"◊",spades:"♠",clubs:"♣",hearts:"♥",diams:"♦"}),ea}var li={exports:{}},ym=li.exports,ul;function cl(){return ul||(ul=1,(function(e,t){(function(n,i){i(t)})(ym,(function(n){var i=[509,0,227,0,150,4,294,9,1368,2,2,1,6,3,41,2,5,0,166,1,574,3,9,9,7,9,32,4,318,1,78,5,71,10,50,3,123,2,54,14,32,10,3,1,11,3,46,10,8,0,46,9,7,2,37,13,2,9,6,1,45,0,13,2,49,13,9,3,2,11,83,11,7,0,3,0,158,11,6,9,7,3,56,1,2,6,3,1,3,2,10,0,11,1,3,6,4,4,68,8,2,0,3,0,2,3,2,4,2,0,15,1,83,17,10,9,5,0,82,19,13,9,214,6,3,8,28,1,83,16,16,9,82,12,9,9,7,19,58,14,5,9,243,14,166,9,71,5,2,1,3,3,2,0,2,1,13,9,120,6,3,6,4,0,29,9,41,6,2,3,9,0,10,10,47,15,199,7,137,9,54,7,2,7,17,9,57,21,2,13,123,5,4,0,2,1,2,6,2,0,9,9,49,4,2,1,2,4,9,9,55,9,266,3,10,1,2,0,49,6,4,4,14,10,5350,0,7,14,11465,27,2343,9,87,9,39,4,60,6,26,9,535,9,470,0,2,54,8,3,82,0,12,1,19628,1,4178,9,519,45,3,22,543,4,4,5,9,7,3,6,31,3,149,2,1418,49,513,54,5,49,9,0,15,0,23,4,2,14,1361,6,2,16,3,6,2,1,2,4,101,0,161,6,10,9,357,0,62,13,499,13,245,1,2,9,233,0,3,0,8,1,6,0,475,6,110,6,6,9,4759,9,787719,239],r=[0,11,2,25,2,18,2,1,2,14,3,13,35,122,70,52,268,28,4,48,48,31,14,29,6,37,11,29,3,35,5,7,2,4,43,157,19,35,5,35,5,39,9,51,13,10,2,14,2,6,2,1,2,10,2,14,2,6,2,1,4,51,13,310,10,21,11,7,25,5,2,41,2,8,70,5,3,0,2,43,2,1,4,0,3,22,11,22,10,30,66,18,2,1,11,21,11,25,7,25,39,55,7,1,65,0,16,3,2,2,2,28,43,28,4,28,36,7,2,27,28,53,11,21,11,18,14,17,111,72,56,50,14,50,14,35,39,27,10,22,251,41,7,1,17,5,57,28,11,0,9,21,43,17,47,20,28,22,13,52,58,1,3,0,14,44,33,24,27,35,30,0,3,0,9,34,4,0,13,47,15,3,22,0,2,0,36,17,2,24,20,1,64,6,2,0,2,3,2,14,2,9,8,46,39,7,3,1,3,21,2,6,2,1,2,4,4,0,19,0,13,4,31,9,2,0,3,0,2,37,2,0,26,0,2,0,45,52,19,3,21,2,31,47,21,1,2,0,185,46,42,3,37,47,21,0,60,42,14,0,72,26,38,6,186,43,117,63,32,7,3,0,3,7,2,1,2,23,16,0,2,0,95,7,3,38,17,0,2,0,29,0,11,39,8,0,22,0,12,45,20,0,19,72,200,32,32,8,2,36,18,0,50,29,113,6,2,1,2,37,22,0,26,5,2,1,2,31,15,0,24,43,261,18,16,0,2,12,2,33,125,0,80,921,103,110,18,195,2637,96,16,1071,18,5,26,3994,6,582,6842,29,1763,568,8,30,18,78,18,29,19,47,17,3,32,20,6,18,433,44,212,63,33,24,3,24,45,74,6,0,67,12,65,1,2,0,15,4,10,7381,42,31,98,114,8702,3,2,6,2,1,2,290,16,0,30,2,3,0,15,3,9,395,2309,106,6,12,4,8,8,9,5991,84,2,70,2,1,3,0,3,1,3,3,2,11,2,0,2,6,2,64,2,3,3,7,2,6,2,27,2,3,2,4,2,0,4,6,2,339,3,24,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,7,1845,30,7,5,262,61,147,44,11,6,17,0,322,29,19,43,485,27,229,29,3,0,208,30,2,2,2,1,2,6,3,4,10,1,225,6,2,3,2,1,2,14,2,196,60,67,8,0,1205,3,2,26,2,1,2,0,3,0,2,9,2,3,2,0,2,0,7,0,5,0,2,0,2,0,2,2,2,1,2,0,3,0,2,0,2,0,2,0,2,0,2,1,2,0,3,3,2,6,2,3,2,3,2,0,2,9,2,16,6,2,2,4,2,16,4421,42719,33,4381,3,5773,3,7472,16,621,2467,541,1507,4938,6,8489],s="‌‍·̀-ͯ·҃-֑҇-ׇֽֿׁׂׅׄؐ-ًؚ-٩ٰۖ-ۜ۟-۪ۤۧۨ-ۭ۰-۹ܑܰ-݊ަ-ް߀-߉߫-߽߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛ࢗ-࢟࣊-ࣣ࣡-ःऺ-़ा-ॏ॑-ॗॢॣ०-९ঁ-ঃ়া-ৄেৈো-্ৗৢৣ০-৯৾ਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢૣ૦-૯ૺ-૿ଁ-ଃ଼ା-ୄେୈୋ-୍୕-ୗୢୣ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఀ-ఄ఼ా-ౄె-ైొ-్ౕౖౢౣ౦-౯ಁ-ಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢೣ೦-೯ೳഀ-ഃ഻഼ാ-ൄെ-ൈൊ-്ൗൢൣ൦-൯ඁ-ඃ්ා-ුූෘ-ෟ෦-෯ෲෳัิ-ฺ็-๎๐-๙ັິ-ຼ່-໎໐-໙༘༙༠-༩༹༵༷༾༿ཱ-྄྆྇ྍ-ྗྙ-ྼ࿆ါ-ှ၀-၉ၖ-ၙၞ-ၠၢ-ၤၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟፩-፱ᜒ-᜕ᜲ-᜴ᝒᝓᝲᝳ឴-៓៝០-៩᠋-᠍᠏-᠙ᢩᤠ-ᤫᤰ-᤻᥆-᥏᧐-᧚ᨗ-ᨛᩕ-ᩞ᩠-᩿᩼-᪉᪐-᪙᪰-᪽ᪿ-᫝᫠-᫫ᬀ-ᬄ᬴-᭄᭐-᭙᭫-᭳ᮀ-ᮂᮡ-ᮭ᮰-᮹᯦-᯳ᰤ-᰷᱀-᱉᱐-᱙᳐-᳔᳒-᳨᳭᳴᳷-᳹᷀-᷿‌‍‿⁀⁔⃐-⃥⃜⃡-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〯・꘠-꘩꙯ꙴ-꙽ꚞꚟ꛰꛱ꠂ꠆ꠋꠣ-ꠧ꠬ꢀꢁꢴ-ꣅ꣐-꣙꣠-꣱ꣿ-꤉ꤦ-꤭ꥇ-꥓ꦀ-ꦃ꦳-꧀꧐-꧙ꧥ꧰-꧹ꨩ-ꨶꩃꩌꩍ꩐-꩙ꩻ-ꩽꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꫫ-ꫯꫵ꫶ꯣ-ꯪ꯬꯭꯰-꯹ﬞ︀-️︠-︯︳︴﹍-﹏0-9_・",o="ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՙՠ-ֈא-תׯ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࡠ-ࡪࡰ-ࢇࢉ-࢏ࢠ-ࣉऄ-हऽॐक़-ॡॱ-ঀঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱৼਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡૹଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-హఽౘ-ౚ౜ౝౠౡಀಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽ೜-ೞೠೡೱೲഄ-ഌഎ-ഐഒ-ഺഽൎൔ-ൖൟ-ൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄຆ-ຊຌ-ຣລວ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏽᏸ-ᏽᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛸᜀ-ᜑᜟ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡸᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭌᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᲀ-ᲊᲐ-ᲺᲽ-Ჿᳩ-ᳬᳮ-ᳳᳵᳶᳺᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕ℘-ℝℤΩℨK-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖ゛-ゟァ-ヺー-ヿㄅ-ㄯㄱ-ㆎㆠ-ㆿㇰ-ㇿ㐀-䶿一-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚝꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-Ƛ꟱-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꣽꣾꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꧠ-ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꩾ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭩꭰ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ",l={3:"abstract boolean byte char class double enum export extends final float goto implements import int interface long native package private protected public short static super synchronized throws transient volatile",5:"class enum extends super const export import",6:"enum",strict:"implements interface let package private protected public static yield",strictBind:"eval arguments"},u="break case catch continue debugger default do else finally for function if return switch throw try var while with null true false instanceof typeof void delete new in this",f={5:u,"5module":u+" export import",6:u+" const class extends export import super"},p=/^in(stanceof)?$/,h=new RegExp("["+o+"]"),d=new RegExp("["+o+s+"]");function m(a,c){for(var x=65536,w=0;w<c.length;w+=2){if(x+=c[w],x>a)return!1;if(x+=c[w+1],x>=a)return!0}return!1}function b(a,c){return a<65?a===36:a<91?!0:a<97?a===95:a<123?!0:a<=65535?a>=170&&h.test(String.fromCharCode(a)):c===!1?!1:m(a,r)}function v(a,c){return a<48?a===36:a<58?!0:a<65?!1:a<91?!0:a<97?a===95:a<123?!0:a<=65535?a>=170&&d.test(String.fromCharCode(a)):c===!1?!1:m(a,r)||m(a,i)}var S=function(c,x){x===void 0&&(x={}),this.label=c,this.keyword=x.keyword,this.beforeExpr=!!x.beforeExpr,this.startsExpr=!!x.startsExpr,this.isLoop=!!x.isLoop,this.isAssign=!!x.isAssign,this.prefix=!!x.prefix,this.postfix=!!x.postfix,this.binop=x.binop||null,this.updateContext=null};function E(a,c){return new S(a,{beforeExpr:!0,binop:c})}var k={beforeExpr:!0},I={startsExpr:!0},N={};function y(a,c){return c===void 0&&(c={}),c.keyword=a,N[a]=new S(a,c)}var g={num:new S("num",I),regexp:new S("regexp",I),string:new S("string",I),name:new S("name",I),privateId:new S("privateId",I),eof:new S("eof"),bracketL:new S("[",{beforeExpr:!0,startsExpr:!0}),bracketR:new S("]"),braceL:new S("{",{beforeExpr:!0,startsExpr:!0}),braceR:new S("}"),parenL:new S("(",{beforeExpr:!0,startsExpr:!0}),parenR:new S(")"),comma:new S(",",k),semi:new S(";",k),colon:new S(":",k),dot:new S("."),question:new S("?",k),questionDot:new S("?."),arrow:new S("=>",k),template:new S("template"),invalidTemplate:new S("invalidTemplate"),ellipsis:new S("...",k),backQuote:new S("`",I),dollarBraceL:new S("${",{beforeExpr:!0,startsExpr:!0}),eq:new S("=",{beforeExpr:!0,isAssign:!0}),assign:new S("_=",{beforeExpr:!0,isAssign:!0}),incDec:new S("++/--",{prefix:!0,postfix:!0,startsExpr:!0}),prefix:new S("!/~",{beforeExpr:!0,prefix:!0,startsExpr:!0}),logicalOR:E("||",1),logicalAND:E("&&",2),bitwiseOR:E("|",3),bitwiseXOR:E("^",4),bitwiseAND:E("&",5),equality:E("==/!=/===/!==",6),relational:E("</>/<=/>=",7),bitShift:E("<</>>/>>>",8),plusMin:new S("+/-",{beforeExpr:!0,binop:9,prefix:!0,startsExpr:!0}),modulo:E("%",10),star:E("*",10),slash:E("/",10),starstar:new S("**",{beforeExpr:!0}),coalesce:E("??",1),_break:y("break"),_case:y("case",k),_catch:y("catch"),_continue:y("continue"),_debugger:y("debugger"),_default:y("default",k),_do:y("do",{isLoop:!0,beforeExpr:!0}),_else:y("else",k),_finally:y("finally"),_for:y("for",{isLoop:!0}),_function:y("function",I),_if:y("if"),_return:y("return",k),_switch:y("switch"),_throw:y("throw",k),_try:y("try"),_var:y("var"),_const:y("const"),_while:y("while",{isLoop:!0}),_with:y("with"),_new:y("new",{beforeExpr:!0,startsExpr:!0}),_this:y("this",I),_super:y("super",I),_class:y("class",I),_extends:y("extends",k),_export:y("export"),_import:y("import",I),_null:y("null",I),_true:y("true",I),_false:y("false",I),_in:y("in",{beforeExpr:!0,binop:7}),_instanceof:y("instanceof",{beforeExpr:!0,binop:7}),_typeof:y("typeof",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_void:y("void",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_delete:y("delete",{beforeExpr:!0,prefix:!0,startsExpr:!0})},A=/\r\n?|\n|\u2028|\u2029/,M=new RegExp(A.source,"g");function F(a){return a===10||a===13||a===8232||a===8233}function R(a,c,x){x===void 0&&(x=a.length);for(var w=c;w<x;w++){var P=a.charCodeAt(w);if(F(P))return w<x-1&&P===13&&a.charCodeAt(w+1)===10?w+2:w+1}return-1}var j=/[\u1680\u2000-\u200a\u202f\u205f\u3000\ufeff]/,B=/(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g,D=Object.prototype,se=D.hasOwnProperty,ue=D.toString,te=Object.hasOwn||(function(a,c){return se.call(a,c)}),ae=Array.isArray||(function(a){return ue.call(a)==="[object Array]"}),ge=Object.create(null);function ve(a){return ge[a]||(ge[a]=new RegExp("^(?:"+a.replace(/ /g,"|")+")$"))}function L(a){return a<=65535?String.fromCharCode(a):(a-=65536,String.fromCharCode((a>>10)+55296,(a&1023)+56320))}var G=/(?:[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])/,ne=function(c,x){this.line=c,this.column=x};ne.prototype.offset=function(c){return new ne(this.line,this.column+c)};var O=function(c,x,w){this.start=x,this.end=w,c.sourceFile!==null&&(this.source=c.sourceFile)};function he(a,c){for(var x=1,w=0;;){var P=R(a,w,c);if(P<0)return new ne(x,c-w);++x,w=P}}var W={ecmaVersion:null,sourceType:"script",onInsertedSemicolon:null,onTrailingComma:null,allowReserved:null,allowReturnOutsideFunction:!1,allowImportExportEverywhere:!1,allowAwaitOutsideFunction:null,allowSuperOutsideMethod:null,allowHashBang:!1,checkPrivateFields:!0,locations:!1,onToken:null,onComment:null,ranges:!1,program:null,sourceFile:null,directSourceFile:null,preserveParens:!1},Z=!1;function H(a){var c={};for(var x in W)c[x]=a&&te(a,x)?a[x]:W[x];if(c.ecmaVersion==="latest"?c.ecmaVersion=1e8:c.ecmaVersion==null?(!Z&&typeof console=="object"&&console.warn&&(Z=!0,console.warn(`Since Acorn 8.0.0, options.ecmaVersion is required.
24
+ Defaulting to 2020, but this will stop working in the future.`)),c.ecmaVersion=11):c.ecmaVersion>=2015&&(c.ecmaVersion-=2009),c.allowReserved==null&&(c.allowReserved=c.ecmaVersion<5),(!a||a.allowHashBang==null)&&(c.allowHashBang=c.ecmaVersion>=14),ae(c.onToken)){var w=c.onToken;c.onToken=function(P){return w.push(P)}}if(ae(c.onComment)&&(c.onComment=K(c,c.onComment)),c.sourceType==="commonjs"&&c.allowAwaitOutsideFunction)throw new Error("Cannot use allowAwaitOutsideFunction with sourceType: commonjs");return c}function K(a,c){return function(x,w,P,z,q,ce){var pe={type:x?"Block":"Line",value:w,start:P,end:z};a.locations&&(pe.loc=new O(this,q,ce)),a.ranges&&(pe.range=[P,z]),c.push(pe)}}var J=1,ie=2,X=4,$=8,Y=16,le=32,de=64,Se=128,ye=256,ke=512,Ie=1024,be=J|ie|ye;function Pe(a,c){return ie|(a?X:0)|(c?$:0)}var Be=0,$e=1,Te=2,nt=3,Q=4,re=5,T=function(c,x,w){this.options=c=H(c),this.sourceFile=c.sourceFile,this.keywords=ve(f[c.ecmaVersion>=6?6:c.sourceType==="module"?"5module":5]);var P="";c.allowReserved!==!0&&(P=l[c.ecmaVersion>=6?6:c.ecmaVersion===5?5:3],c.sourceType==="module"&&(P+=" await")),this.reservedWords=ve(P);var z=(P?P+" ":"")+l.strict;this.reservedWordsStrict=ve(z),this.reservedWordsStrictBind=ve(z+" "+l.strictBind),this.input=String(x),this.containsEsc=!1,w?(this.pos=w,this.lineStart=this.input.lastIndexOf(`
25
+ `,w-1)+1,this.curLine=this.input.slice(0,this.lineStart).split(A).length):(this.pos=this.lineStart=0,this.curLine=1),this.type=g.eof,this.value=null,this.start=this.end=this.pos,this.startLoc=this.endLoc=this.curPosition(),this.lastTokEndLoc=this.lastTokStartLoc=null,this.lastTokStart=this.lastTokEnd=this.pos,this.context=this.initialContext(),this.exprAllowed=!0,this.inModule=c.sourceType==="module",this.strict=this.inModule||this.strictDirective(this.pos),this.potentialArrowAt=-1,this.potentialArrowInForAwait=!1,this.yieldPos=this.awaitPos=this.awaitIdentPos=0,this.labels=[],this.undefinedExports=Object.create(null),this.pos===0&&c.allowHashBang&&this.input.slice(0,2)==="#!"&&this.skipLineComment(2),this.scopeStack=[],this.enterScope(this.options.sourceType==="commonjs"?ie:J),this.regexpState=null,this.privateNameStack=[]},Ae={inFunction:{configurable:!0},inGenerator:{configurable:!0},inAsync:{configurable:!0},canAwait:{configurable:!0},allowReturn:{configurable:!0},allowSuper:{configurable:!0},allowDirectSuper:{configurable:!0},treatFunctionsAsVar:{configurable:!0},allowNewDotTarget:{configurable:!0},allowUsing:{configurable:!0},inClassStaticBlock:{configurable:!0}};T.prototype.parse=function(){var c=this.options.program||this.startNode();return this.nextToken(),this.parseTopLevel(c)},Ae.inFunction.get=function(){return(this.currentVarScope().flags&ie)>0},Ae.inGenerator.get=function(){return(this.currentVarScope().flags&$)>0},Ae.inAsync.get=function(){return(this.currentVarScope().flags&X)>0},Ae.canAwait.get=function(){for(var a=this.scopeStack.length-1;a>=0;a--){var c=this.scopeStack[a],x=c.flags;if(x&(ye|ke))return!1;if(x&ie)return(x&X)>0}return this.inModule&&this.options.ecmaVersion>=13||this.options.allowAwaitOutsideFunction},Ae.allowReturn.get=function(){return!!(this.inFunction||this.options.allowReturnOutsideFunction&&this.currentVarScope().flags&J)},Ae.allowSuper.get=function(){var a=this.currentThisScope(),c=a.flags;return(c&de)>0||this.options.allowSuperOutsideMethod},Ae.allowDirectSuper.get=function(){return(this.currentThisScope().flags&Se)>0},Ae.treatFunctionsAsVar.get=function(){return this.treatFunctionsAsVarInScope(this.currentScope())},Ae.allowNewDotTarget.get=function(){for(var a=this.scopeStack.length-1;a>=0;a--){var c=this.scopeStack[a],x=c.flags;if(x&(ye|ke)||x&ie&&!(x&Y))return!0}return!1},Ae.allowUsing.get=function(){var a=this.currentScope(),c=a.flags;return!(c&Ie||!this.inModule&&c&J)},Ae.inClassStaticBlock.get=function(){return(this.currentVarScope().flags&ye)>0},T.extend=function(){for(var c=[],x=arguments.length;x--;)c[x]=arguments[x];for(var w=this,P=0;P<c.length;P++)w=c[P](w);return w},T.parse=function(c,x){return new this(x,c).parse()},T.parseExpressionAt=function(c,x,w){var P=new this(w,c,x);return P.nextToken(),P.parseExpression()},T.tokenizer=function(c,x){return new this(x,c)},Object.defineProperties(T.prototype,Ae);var Le=T.prototype,at=/^(?:'((?:\\[^]|[^'\\])*?)'|"((?:\\[^]|[^"\\])*?)")/;Le.strictDirective=function(a){if(this.options.ecmaVersion<5)return!1;for(;;){B.lastIndex=a,a+=B.exec(this.input)[0].length;var c=at.exec(this.input.slice(a));if(!c)return!1;if((c[1]||c[2])==="use strict"){B.lastIndex=a+c[0].length;var x=B.exec(this.input),w=x.index+x[0].length,P=this.input.charAt(w);return P===";"||P==="}"||A.test(x[0])&&!(/[(`.[+\-/*%<>=,?^&]/.test(P)||P==="!"&&this.input.charAt(w+1)==="=")}a+=c[0].length,B.lastIndex=a,a+=B.exec(this.input)[0].length,this.input[a]===";"&&a++}},Le.eat=function(a){return this.type===a?(this.next(),!0):!1},Le.isContextual=function(a){return this.type===g.name&&this.value===a&&!this.containsEsc},Le.eatContextual=function(a){return this.isContextual(a)?(this.next(),!0):!1},Le.expectContextual=function(a){this.eatContextual(a)||this.unexpected()},Le.canInsertSemicolon=function(){return this.type===g.eof||this.type===g.braceR||A.test(this.input.slice(this.lastTokEnd,this.start))},Le.insertSemicolon=function(){if(this.canInsertSemicolon())return this.options.onInsertedSemicolon&&this.options.onInsertedSemicolon(this.lastTokEnd,this.lastTokEndLoc),!0},Le.semicolon=function(){!this.eat(g.semi)&&!this.insertSemicolon()&&this.unexpected()},Le.afterTrailingComma=function(a,c){if(this.type===a)return this.options.onTrailingComma&&this.options.onTrailingComma(this.lastTokStart,this.lastTokStartLoc),c||this.next(),!0},Le.expect=function(a){this.eat(a)||this.unexpected()},Le.unexpected=function(a){this.raise(a??this.start,"Unexpected token")};var kt=function(){this.shorthandAssign=this.trailingComma=this.parenthesizedAssign=this.parenthesizedBind=this.doubleProto=-1};Le.checkPatternErrors=function(a,c){if(a){a.trailingComma>-1&&this.raiseRecoverable(a.trailingComma,"Comma is not permitted after the rest element");var x=c?a.parenthesizedAssign:a.parenthesizedBind;x>-1&&this.raiseRecoverable(x,c?"Assigning to rvalue":"Parenthesized pattern")}},Le.checkExpressionErrors=function(a,c){if(!a)return!1;var x=a.shorthandAssign,w=a.doubleProto;if(!c)return x>=0||w>=0;x>=0&&this.raise(x,"Shorthand property assignments are valid only in destructuring patterns"),w>=0&&this.raiseRecoverable(w,"Redefinition of __proto__ property")},Le.checkYieldAwaitInDefaultParams=function(){this.yieldPos&&(!this.awaitPos||this.yieldPos<this.awaitPos)&&this.raise(this.yieldPos,"Yield expression cannot be a default value"),this.awaitPos&&this.raise(this.awaitPos,"Await expression cannot be a default value")},Le.isSimpleAssignTarget=function(a){return a.type==="ParenthesizedExpression"?this.isSimpleAssignTarget(a.expression):a.type==="Identifier"||a.type==="MemberExpression"};var me=T.prototype;me.parseTopLevel=function(a){var c=Object.create(null);for(a.body||(a.body=[]);this.type!==g.eof;){var x=this.parseStatement(null,!0,c);a.body.push(x)}if(this.inModule)for(var w=0,P=Object.keys(this.undefinedExports);w<P.length;w+=1){var z=P[w];this.raiseRecoverable(this.undefinedExports[z].start,"Export '"+z+"' is not defined")}return this.adaptDirectivePrologue(a.body),this.next(),a.sourceType=this.options.sourceType==="commonjs"?"script":this.options.sourceType,this.finishNode(a,"Program")};var Zt={kind:"loop"},En={kind:"switch"};me.isLet=function(a){if(this.options.ecmaVersion<6||!this.isContextual("let"))return!1;B.lastIndex=this.pos;var c=B.exec(this.input),x=this.pos+c[0].length,w=this.fullCharCodeAt(x);if(w===91||w===92)return!0;if(a)return!1;if(w===123)return!0;if(b(w)){var P=x;do x+=w<=65535?1:2;while(v(w=this.fullCharCodeAt(x)));if(w===92)return!0;var z=this.input.slice(P,x);if(!p.test(z))return!0}return!1},me.isAsyncFunction=function(){if(this.options.ecmaVersion<8||!this.isContextual("async"))return!1;B.lastIndex=this.pos;var a=B.exec(this.input),c=this.pos+a[0].length,x;return!A.test(this.input.slice(this.pos,c))&&this.input.slice(c,c+8)==="function"&&(c+8===this.input.length||!(v(x=this.fullCharCodeAt(c+8))||x===92))},me.isUsingKeyword=function(a,c){if(this.options.ecmaVersion<17||!this.isContextual(a?"await":"using"))return!1;B.lastIndex=this.pos;var x=B.exec(this.input),w=this.pos+x[0].length;if(A.test(this.input.slice(this.pos,w)))return!1;if(a){var P=w+5,z;if(this.input.slice(w,P)!=="using"||P===this.input.length||v(z=this.fullCharCodeAt(P))||z===92)return!1;B.lastIndex=P;var q=B.exec(this.input);if(w=P+q[0].length,q&&A.test(this.input.slice(P,w)))return!1}var ce=this.fullCharCodeAt(w);if(!b(ce)&&ce!==92)return!1;var pe=w;do w+=ce<=65535?1:2;while(v(ce=this.fullCharCodeAt(w)));if(ce===92)return!0;var Ne=this.input.slice(pe,w);return!(p.test(Ne)||c&&Ne==="of")},me.isAwaitUsing=function(a){return this.isUsingKeyword(!0,a)},me.isUsing=function(a){return this.isUsingKeyword(!1,a)},me.parseStatement=function(a,c,x){var w=this.type,P=this.startNode(),z;switch(this.isLet(a)&&(w=g._var,z="let"),w){case g._break:case g._continue:return this.parseBreakContinueStatement(P,w.keyword);case g._debugger:return this.parseDebuggerStatement(P);case g._do:return this.parseDoStatement(P);case g._for:return this.parseForStatement(P);case g._function:return a&&(this.strict||a!=="if"&&a!=="label")&&this.options.ecmaVersion>=6&&this.unexpected(),this.parseFunctionStatement(P,!1,!a);case g._class:return a&&this.unexpected(),this.parseClass(P,!0);case g._if:return this.parseIfStatement(P);case g._return:return this.parseReturnStatement(P);case g._switch:return this.parseSwitchStatement(P);case g._throw:return this.parseThrowStatement(P);case g._try:return this.parseTryStatement(P);case g._const:case g._var:return z=z||this.value,a&&z!=="var"&&this.unexpected(),this.parseVarStatement(P,z);case g._while:return this.parseWhileStatement(P);case g._with:return this.parseWithStatement(P);case g.braceL:return this.parseBlock(!0,P);case g.semi:return this.parseEmptyStatement(P);case g._export:case g._import:if(this.options.ecmaVersion>10&&w===g._import){B.lastIndex=this.pos;var q=B.exec(this.input),ce=this.pos+q[0].length,pe=this.input.charCodeAt(ce);if(pe===40||pe===46)return this.parseExpressionStatement(P,this.parseExpression())}return this.options.allowImportExportEverywhere||(c||this.raise(this.start,"'import' and 'export' may only appear at the top level"),this.inModule||this.raise(this.start,"'import' and 'export' may appear only with 'sourceType: module'")),w===g._import?this.parseImport(P):this.parseExport(P,x);default:if(this.isAsyncFunction())return a&&this.unexpected(),this.next(),this.parseFunctionStatement(P,!0,!a);var Ne=this.isAwaitUsing(!1)?"await using":this.isUsing(!1)?"using":null;if(Ne)return this.allowUsing||this.raise(this.start,"Using declaration cannot appear in the top level when source type is `script` or in the bare case statement"),Ne==="await using"&&(this.canAwait||this.raise(this.start,"Await using cannot appear outside of async function"),this.next()),this.next(),this.parseVar(P,!1,Ne),this.semicolon(),this.finishNode(P,"VariableDeclaration");var Fe=this.value,Xe=this.parseExpression();return w===g.name&&Xe.type==="Identifier"&&this.eat(g.colon)?this.parseLabeledStatement(P,Fe,Xe,a):this.parseExpressionStatement(P,Xe)}},me.parseBreakContinueStatement=function(a,c){var x=c==="break";this.next(),this.eat(g.semi)||this.insertSemicolon()?a.label=null:this.type!==g.name?this.unexpected():(a.label=this.parseIdent(),this.semicolon());for(var w=0;w<this.labels.length;++w){var P=this.labels[w];if((a.label==null||P.name===a.label.name)&&(P.kind!=null&&(x||P.kind==="loop")||a.label&&x))break}return w===this.labels.length&&this.raise(a.start,"Unsyntactic "+c),this.finishNode(a,x?"BreakStatement":"ContinueStatement")},me.parseDebuggerStatement=function(a){return this.next(),this.semicolon(),this.finishNode(a,"DebuggerStatement")},me.parseDoStatement=function(a){return this.next(),this.labels.push(Zt),a.body=this.parseStatement("do"),this.labels.pop(),this.expect(g._while),a.test=this.parseParenExpression(),this.options.ecmaVersion>=6?this.eat(g.semi):this.semicolon(),this.finishNode(a,"DoWhileStatement")},me.parseForStatement=function(a){this.next();var c=this.options.ecmaVersion>=9&&this.canAwait&&this.eatContextual("await")?this.lastTokStart:-1;if(this.labels.push(Zt),this.enterScope(0),this.expect(g.parenL),this.type===g.semi)return c>-1&&this.unexpected(c),this.parseFor(a,null);var x=this.isLet();if(this.type===g._var||this.type===g._const||x){var w=this.startNode(),P=x?"let":this.value;return this.next(),this.parseVar(w,!0,P),this.finishNode(w,"VariableDeclaration"),this.parseForAfterInit(a,w,c)}var z=this.isContextual("let"),q=!1,ce=this.isUsing(!0)?"using":this.isAwaitUsing(!0)?"await using":null;if(ce){var pe=this.startNode();return this.next(),ce==="await using"&&(this.canAwait||this.raise(this.start,"Await using cannot appear outside of async function"),this.next()),this.parseVar(pe,!0,ce),this.finishNode(pe,"VariableDeclaration"),this.parseForAfterInit(a,pe,c)}var Ne=this.containsEsc,Fe=new kt,Xe=this.start,st=c>-1?this.parseExprSubscripts(Fe,"await"):this.parseExpression(!0,Fe);return this.type===g._in||(q=this.options.ecmaVersion>=6&&this.isContextual("of"))?(c>-1?(this.type===g._in&&this.unexpected(c),a.await=!0):q&&this.options.ecmaVersion>=8&&(st.start===Xe&&!Ne&&st.type==="Identifier"&&st.name==="async"?this.unexpected():this.options.ecmaVersion>=9&&(a.await=!1)),z&&q&&this.raise(st.start,"The left-hand side of a for-of loop may not start with 'let'."),this.toAssignable(st,!1,Fe),this.checkLValPattern(st),this.parseForIn(a,st)):(this.checkExpressionErrors(Fe,!0),c>-1&&this.unexpected(c),this.parseFor(a,st))},me.parseForAfterInit=function(a,c,x){return(this.type===g._in||this.options.ecmaVersion>=6&&this.isContextual("of"))&&c.declarations.length===1?(this.options.ecmaVersion>=9&&(this.type===g._in?x>-1&&this.unexpected(x):a.await=x>-1),this.parseForIn(a,c)):(x>-1&&this.unexpected(x),this.parseFor(a,c))},me.parseFunctionStatement=function(a,c,x){return this.next(),this.parseFunction(a,Ct|(x?0:bt),!1,c)},me.parseIfStatement=function(a){return this.next(),a.test=this.parseParenExpression(),a.consequent=this.parseStatement("if"),a.alternate=this.eat(g._else)?this.parseStatement("if"):null,this.finishNode(a,"IfStatement")},me.parseReturnStatement=function(a){return this.allowReturn||this.raise(this.start,"'return' outside of function"),this.next(),this.eat(g.semi)||this.insertSemicolon()?a.argument=null:(a.argument=this.parseExpression(),this.semicolon()),this.finishNode(a,"ReturnStatement")},me.parseSwitchStatement=function(a){this.next(),a.discriminant=this.parseParenExpression(),a.cases=[],this.expect(g.braceL),this.labels.push(En),this.enterScope(Ie);for(var c,x=!1;this.type!==g.braceR;)if(this.type===g._case||this.type===g._default){var w=this.type===g._case;c&&this.finishNode(c,"SwitchCase"),a.cases.push(c=this.startNode()),c.consequent=[],this.next(),w?c.test=this.parseExpression():(x&&this.raiseRecoverable(this.lastTokStart,"Multiple default clauses"),x=!0,c.test=null),this.expect(g.colon)}else c||this.unexpected(),c.consequent.push(this.parseStatement(null));return this.exitScope(),c&&this.finishNode(c,"SwitchCase"),this.next(),this.labels.pop(),this.finishNode(a,"SwitchStatement")},me.parseThrowStatement=function(a){return this.next(),A.test(this.input.slice(this.lastTokEnd,this.start))&&this.raise(this.lastTokEnd,"Illegal newline after throw"),a.argument=this.parseExpression(),this.semicolon(),this.finishNode(a,"ThrowStatement")};var ut=[];me.parseCatchClauseParam=function(){var a=this.parseBindingAtom(),c=a.type==="Identifier";return this.enterScope(c?le:0),this.checkLValPattern(a,c?Q:Te),this.expect(g.parenR),a},me.parseTryStatement=function(a){if(this.next(),a.block=this.parseBlock(),a.handler=null,this.type===g._catch){var c=this.startNode();this.next(),this.eat(g.parenL)?c.param=this.parseCatchClauseParam():(this.options.ecmaVersion<10&&this.unexpected(),c.param=null,this.enterScope(0)),c.body=this.parseBlock(!1),this.exitScope(),a.handler=this.finishNode(c,"CatchClause")}return a.finalizer=this.eat(g._finally)?this.parseBlock():null,!a.handler&&!a.finalizer&&this.raise(a.start,"Missing catch or finally clause"),this.finishNode(a,"TryStatement")},me.parseVarStatement=function(a,c,x){return this.next(),this.parseVar(a,!1,c,x),this.semicolon(),this.finishNode(a,"VariableDeclaration")},me.parseWhileStatement=function(a){return this.next(),a.test=this.parseParenExpression(),this.labels.push(Zt),a.body=this.parseStatement("while"),this.labels.pop(),this.finishNode(a,"WhileStatement")},me.parseWithStatement=function(a){return this.strict&&this.raise(this.start,"'with' in strict mode"),this.next(),a.object=this.parseParenExpression(),a.body=this.parseStatement("with"),this.finishNode(a,"WithStatement")},me.parseEmptyStatement=function(a){return this.next(),this.finishNode(a,"EmptyStatement")},me.parseLabeledStatement=function(a,c,x,w){for(var P=0,z=this.labels;P<z.length;P+=1){var q=z[P];q.name===c&&this.raise(x.start,"Label '"+c+"' is already declared")}for(var ce=this.type.isLoop?"loop":this.type===g._switch?"switch":null,pe=this.labels.length-1;pe>=0;pe--){var Ne=this.labels[pe];if(Ne.statementStart===a.start)Ne.statementStart=this.start,Ne.kind=ce;else break}return this.labels.push({name:c,kind:ce,statementStart:this.start}),a.body=this.parseStatement(w?w.indexOf("label")===-1?w+"label":w:"label"),this.labels.pop(),a.label=x,this.finishNode(a,"LabeledStatement")},me.parseExpressionStatement=function(a,c){return a.expression=c,this.semicolon(),this.finishNode(a,"ExpressionStatement")},me.parseBlock=function(a,c,x){for(a===void 0&&(a=!0),c===void 0&&(c=this.startNode()),c.body=[],this.expect(g.braceL),a&&this.enterScope(0);this.type!==g.braceR;){var w=this.parseStatement(null);c.body.push(w)}return x&&(this.strict=!1),this.next(),a&&this.exitScope(),this.finishNode(c,"BlockStatement")},me.parseFor=function(a,c){return a.init=c,this.expect(g.semi),a.test=this.type===g.semi?null:this.parseExpression(),this.expect(g.semi),a.update=this.type===g.parenR?null:this.parseExpression(),this.expect(g.parenR),a.body=this.parseStatement("for"),this.exitScope(),this.labels.pop(),this.finishNode(a,"ForStatement")},me.parseForIn=function(a,c){var x=this.type===g._in;return this.next(),c.type==="VariableDeclaration"&&c.declarations[0].init!=null&&(!x||this.options.ecmaVersion<8||this.strict||c.kind!=="var"||c.declarations[0].id.type!=="Identifier")&&this.raise(c.start,(x?"for-in":"for-of")+" loop variable declaration may not have an initializer"),a.left=c,a.right=x?this.parseExpression():this.parseMaybeAssign(),this.expect(g.parenR),a.body=this.parseStatement("for"),this.exitScope(),this.labels.pop(),this.finishNode(a,x?"ForInStatement":"ForOfStatement")},me.parseVar=function(a,c,x,w){for(a.declarations=[],a.kind=x;;){var P=this.startNode();if(this.parseVarId(P,x),this.eat(g.eq)?P.init=this.parseMaybeAssign(c):!w&&x==="const"&&!(this.type===g._in||this.options.ecmaVersion>=6&&this.isContextual("of"))?this.unexpected():!w&&(x==="using"||x==="await using")&&this.options.ecmaVersion>=17&&this.type!==g._in&&!this.isContextual("of")?this.raise(this.lastTokEnd,"Missing initializer in "+x+" declaration"):!w&&P.id.type!=="Identifier"&&!(c&&(this.type===g._in||this.isContextual("of")))?this.raise(this.lastTokEnd,"Complex binding patterns require an initialization value"):P.init=null,a.declarations.push(this.finishNode(P,"VariableDeclarator")),!this.eat(g.comma))break}return a},me.parseVarId=function(a,c){a.id=c==="using"||c==="await using"?this.parseIdent():this.parseBindingAtom(),this.checkLValPattern(a.id,c==="var"?$e:Te,!1)};var Ct=1,bt=2,ho=4;me.parseFunction=function(a,c,x,w,P){this.initFunction(a),(this.options.ecmaVersion>=9||this.options.ecmaVersion>=6&&!w)&&(this.type===g.star&&c&bt&&this.unexpected(),a.generator=this.eat(g.star)),this.options.ecmaVersion>=8&&(a.async=!!w),c&Ct&&(a.id=c&ho&&this.type!==g.name?null:this.parseIdent(),a.id&&!(c&bt)&&this.checkLValSimple(a.id,this.strict||a.generator||a.async?this.treatFunctionsAsVar?$e:Te:nt));var z=this.yieldPos,q=this.awaitPos,ce=this.awaitIdentPos;return this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(Pe(a.async,a.generator)),c&Ct||(a.id=this.type===g.name?this.parseIdent():null),this.parseFunctionParams(a),this.parseFunctionBody(a,x,!1,P),this.yieldPos=z,this.awaitPos=q,this.awaitIdentPos=ce,this.finishNode(a,c&Ct?"FunctionDeclaration":"FunctionExpression")},me.parseFunctionParams=function(a){this.expect(g.parenL),a.params=this.parseBindingList(g.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams()},me.parseClass=function(a,c){this.next();var x=this.strict;this.strict=!0,this.parseClassId(a,c),this.parseClassSuper(a);var w=this.enterClassBody(),P=this.startNode(),z=!1;for(P.body=[],this.expect(g.braceL);this.type!==g.braceR;){var q=this.parseClassElement(a.superClass!==null);q&&(P.body.push(q),q.type==="MethodDefinition"&&q.kind==="constructor"?(z&&this.raiseRecoverable(q.start,"Duplicate constructor in the same class"),z=!0):q.key&&q.key.type==="PrivateIdentifier"&&Bp(w,q)&&this.raiseRecoverable(q.key.start,"Identifier '#"+q.key.name+"' has already been declared"))}return this.strict=x,this.next(),a.body=this.finishNode(P,"ClassBody"),this.exitClassBody(),this.finishNode(a,c?"ClassDeclaration":"ClassExpression")},me.parseClassElement=function(a){if(this.eat(g.semi))return null;var c=this.options.ecmaVersion,x=this.startNode(),w="",P=!1,z=!1,q="method",ce=!1;if(this.eatContextual("static")){if(c>=13&&this.eat(g.braceL))return this.parseClassStaticBlock(x),x;this.isClassElementNameStart()||this.type===g.star?ce=!0:w="static"}if(x.static=ce,!w&&c>=8&&this.eatContextual("async")&&((this.isClassElementNameStart()||this.type===g.star)&&!this.canInsertSemicolon()?z=!0:w="async"),!w&&(c>=9||!z)&&this.eat(g.star)&&(P=!0),!w&&!z&&!P){var pe=this.value;(this.eatContextual("get")||this.eatContextual("set"))&&(this.isClassElementNameStart()?q=pe:w=pe)}if(w?(x.computed=!1,x.key=this.startNodeAt(this.lastTokStart,this.lastTokStartLoc),x.key.name=w,this.finishNode(x.key,"Identifier")):this.parseClassElementName(x),c<13||this.type===g.parenL||q!=="method"||P||z){var Ne=!x.static&&Ni(x,"constructor"),Fe=Ne&&a;Ne&&q!=="method"&&this.raise(x.key.start,"Constructor can't have get/set modifier"),x.kind=Ne?"constructor":q,this.parseClassMethod(x,P,z,Fe)}else this.parseClassField(x);return x},me.isClassElementNameStart=function(){return this.type===g.name||this.type===g.privateId||this.type===g.num||this.type===g.string||this.type===g.bracketL||this.type.keyword},me.parseClassElementName=function(a){this.type===g.privateId?(this.value==="constructor"&&this.raise(this.start,"Classes can't have an element named '#constructor'"),a.computed=!1,a.key=this.parsePrivateIdent()):this.parsePropertyName(a)},me.parseClassMethod=function(a,c,x,w){var P=a.key;a.kind==="constructor"?(c&&this.raise(P.start,"Constructor can't be a generator"),x&&this.raise(P.start,"Constructor can't be an async method")):a.static&&Ni(a,"prototype")&&this.raise(P.start,"Classes may not have a static property named prototype");var z=a.value=this.parseMethod(c,x,w);return a.kind==="get"&&z.params.length!==0&&this.raiseRecoverable(z.start,"getter should have no params"),a.kind==="set"&&z.params.length!==1&&this.raiseRecoverable(z.start,"setter should have exactly one param"),a.kind==="set"&&z.params[0].type==="RestElement"&&this.raiseRecoverable(z.params[0].start,"Setter cannot use rest params"),this.finishNode(a,"MethodDefinition")},me.parseClassField=function(a){return Ni(a,"constructor")?this.raise(a.key.start,"Classes can't have a field named 'constructor'"):a.static&&Ni(a,"prototype")&&this.raise(a.key.start,"Classes can't have a static field named 'prototype'"),this.eat(g.eq)?(this.enterScope(ke|de),a.value=this.parseMaybeAssign(),this.exitScope()):a.value=null,this.semicolon(),this.finishNode(a,"PropertyDefinition")},me.parseClassStaticBlock=function(a){a.body=[];var c=this.labels;for(this.labels=[],this.enterScope(ye|de);this.type!==g.braceR;){var x=this.parseStatement(null);a.body.push(x)}return this.next(),this.exitScope(),this.labels=c,this.finishNode(a,"StaticBlock")},me.parseClassId=function(a,c){this.type===g.name?(a.id=this.parseIdent(),c&&this.checkLValSimple(a.id,Te,!1)):(c===!0&&this.unexpected(),a.id=null)},me.parseClassSuper=function(a){a.superClass=this.eat(g._extends)?this.parseExprSubscripts(null,!1):null},me.enterClassBody=function(){var a={declared:Object.create(null),used:[]};return this.privateNameStack.push(a),a.declared},me.exitClassBody=function(){var a=this.privateNameStack.pop(),c=a.declared,x=a.used;if(this.options.checkPrivateFields)for(var w=this.privateNameStack.length,P=w===0?null:this.privateNameStack[w-1],z=0;z<x.length;++z){var q=x[z];te(c,q.name)||(P?P.used.push(q):this.raiseRecoverable(q.start,"Private field '#"+q.name+"' must be declared in an enclosing class"))}};function Bp(a,c){var x=c.key.name,w=a[x],P="true";return c.type==="MethodDefinition"&&(c.kind==="get"||c.kind==="set")&&(P=(c.static?"s":"i")+c.kind),w==="iget"&&P==="iset"||w==="iset"&&P==="iget"||w==="sget"&&P==="sset"||w==="sset"&&P==="sget"?(a[x]="true",!1):w?!0:(a[x]=P,!1)}function Ni(a,c){var x=a.computed,w=a.key;return!x&&(w.type==="Identifier"&&w.name===c||w.type==="Literal"&&w.value===c)}me.parseExportAllDeclaration=function(a,c){return this.options.ecmaVersion>=11&&(this.eatContextual("as")?(a.exported=this.parseModuleExportName(),this.checkExport(c,a.exported,this.lastTokStart)):a.exported=null),this.expectContextual("from"),this.type!==g.string&&this.unexpected(),a.source=this.parseExprAtom(),this.options.ecmaVersion>=16&&(a.attributes=this.parseWithClause()),this.semicolon(),this.finishNode(a,"ExportAllDeclaration")},me.parseExport=function(a,c){if(this.next(),this.eat(g.star))return this.parseExportAllDeclaration(a,c);if(this.eat(g._default))return this.checkExport(c,"default",this.lastTokStart),a.declaration=this.parseExportDefaultDeclaration(),this.finishNode(a,"ExportDefaultDeclaration");if(this.shouldParseExportStatement())a.declaration=this.parseExportDeclaration(a),a.declaration.type==="VariableDeclaration"?this.checkVariableExport(c,a.declaration.declarations):this.checkExport(c,a.declaration.id,a.declaration.id.start),a.specifiers=[],a.source=null,this.options.ecmaVersion>=16&&(a.attributes=[]);else{if(a.declaration=null,a.specifiers=this.parseExportSpecifiers(c),this.eatContextual("from"))this.type!==g.string&&this.unexpected(),a.source=this.parseExprAtom(),this.options.ecmaVersion>=16&&(a.attributes=this.parseWithClause());else{for(var x=0,w=a.specifiers;x<w.length;x+=1){var P=w[x];this.checkUnreserved(P.local),this.checkLocalExport(P.local),P.local.type==="Literal"&&this.raise(P.local.start,"A string literal cannot be used as an exported binding without `from`.")}a.source=null,this.options.ecmaVersion>=16&&(a.attributes=[])}this.semicolon()}return this.finishNode(a,"ExportNamedDeclaration")},me.parseExportDeclaration=function(a){return this.parseStatement(null)},me.parseExportDefaultDeclaration=function(){var a;if(this.type===g._function||(a=this.isAsyncFunction())){var c=this.startNode();return this.next(),a&&this.next(),this.parseFunction(c,Ct|ho,!1,a)}else if(this.type===g._class){var x=this.startNode();return this.parseClass(x,"nullableID")}else{var w=this.parseMaybeAssign();return this.semicolon(),w}},me.checkExport=function(a,c,x){a&&(typeof c!="string"&&(c=c.type==="Identifier"?c.name:c.value),te(a,c)&&this.raiseRecoverable(x,"Duplicate export '"+c+"'"),a[c]=!0)},me.checkPatternExport=function(a,c){var x=c.type;if(x==="Identifier")this.checkExport(a,c,c.start);else if(x==="ObjectPattern")for(var w=0,P=c.properties;w<P.length;w+=1){var z=P[w];this.checkPatternExport(a,z)}else if(x==="ArrayPattern")for(var q=0,ce=c.elements;q<ce.length;q+=1){var pe=ce[q];pe&&this.checkPatternExport(a,pe)}else x==="Property"?this.checkPatternExport(a,c.value):x==="AssignmentPattern"?this.checkPatternExport(a,c.left):x==="RestElement"&&this.checkPatternExport(a,c.argument)},me.checkVariableExport=function(a,c){if(a)for(var x=0,w=c;x<w.length;x+=1){var P=w[x];this.checkPatternExport(a,P.id)}},me.shouldParseExportStatement=function(){return this.type.keyword==="var"||this.type.keyword==="const"||this.type.keyword==="class"||this.type.keyword==="function"||this.isLet()||this.isAsyncFunction()},me.parseExportSpecifier=function(a){var c=this.startNode();return c.local=this.parseModuleExportName(),c.exported=this.eatContextual("as")?this.parseModuleExportName():c.local,this.checkExport(a,c.exported,c.exported.start),this.finishNode(c,"ExportSpecifier")},me.parseExportSpecifiers=function(a){var c=[],x=!0;for(this.expect(g.braceL);!this.eat(g.braceR);){if(x)x=!1;else if(this.expect(g.comma),this.afterTrailingComma(g.braceR))break;c.push(this.parseExportSpecifier(a))}return c},me.parseImport=function(a){return this.next(),this.type===g.string?(a.specifiers=ut,a.source=this.parseExprAtom()):(a.specifiers=this.parseImportSpecifiers(),this.expectContextual("from"),a.source=this.type===g.string?this.parseExprAtom():this.unexpected()),this.options.ecmaVersion>=16&&(a.attributes=this.parseWithClause()),this.semicolon(),this.finishNode(a,"ImportDeclaration")},me.parseImportSpecifier=function(){var a=this.startNode();return a.imported=this.parseModuleExportName(),this.eatContextual("as")?a.local=this.parseIdent():(this.checkUnreserved(a.imported),a.local=a.imported),this.checkLValSimple(a.local,Te),this.finishNode(a,"ImportSpecifier")},me.parseImportDefaultSpecifier=function(){var a=this.startNode();return a.local=this.parseIdent(),this.checkLValSimple(a.local,Te),this.finishNode(a,"ImportDefaultSpecifier")},me.parseImportNamespaceSpecifier=function(){var a=this.startNode();return this.next(),this.expectContextual("as"),a.local=this.parseIdent(),this.checkLValSimple(a.local,Te),this.finishNode(a,"ImportNamespaceSpecifier")},me.parseImportSpecifiers=function(){var a=[],c=!0;if(this.type===g.name&&(a.push(this.parseImportDefaultSpecifier()),!this.eat(g.comma)))return a;if(this.type===g.star)return a.push(this.parseImportNamespaceSpecifier()),a;for(this.expect(g.braceL);!this.eat(g.braceR);){if(c)c=!1;else if(this.expect(g.comma),this.afterTrailingComma(g.braceR))break;a.push(this.parseImportSpecifier())}return a},me.parseWithClause=function(){var a=[];if(!this.eat(g._with))return a;this.expect(g.braceL);for(var c={},x=!0;!this.eat(g.braceR);){if(x)x=!1;else if(this.expect(g.comma),this.afterTrailingComma(g.braceR))break;var w=this.parseImportAttribute(),P=w.key.type==="Identifier"?w.key.name:w.key.value;te(c,P)&&this.raiseRecoverable(w.key.start,"Duplicate attribute key '"+P+"'"),c[P]=!0,a.push(w)}return a},me.parseImportAttribute=function(){var a=this.startNode();return a.key=this.type===g.string?this.parseExprAtom():this.parseIdent(this.options.allowReserved!=="never"),this.expect(g.colon),this.type!==g.string&&this.unexpected(),a.value=this.parseExprAtom(),this.finishNode(a,"ImportAttribute")},me.parseModuleExportName=function(){if(this.options.ecmaVersion>=13&&this.type===g.string){var a=this.parseLiteral(this.value);return G.test(a.value)&&this.raise(a.start,"An export name cannot include a lone surrogate."),a}return this.parseIdent(!0)},me.adaptDirectivePrologue=function(a){for(var c=0;c<a.length&&this.isDirectiveCandidate(a[c]);++c)a[c].directive=a[c].expression.raw.slice(1,-1)},me.isDirectiveCandidate=function(a){return this.options.ecmaVersion>=5&&a.type==="ExpressionStatement"&&a.expression.type==="Literal"&&typeof a.expression.value=="string"&&(this.input[a.start]==='"'||this.input[a.start]==="'")};var _t=T.prototype;_t.toAssignable=function(a,c,x){if(this.options.ecmaVersion>=6&&a)switch(a.type){case"Identifier":this.inAsync&&a.name==="await"&&this.raise(a.start,"Cannot use 'await' as identifier inside an async function");break;case"ObjectPattern":case"ArrayPattern":case"AssignmentPattern":case"RestElement":break;case"ObjectExpression":a.type="ObjectPattern",x&&this.checkPatternErrors(x,!0);for(var w=0,P=a.properties;w<P.length;w+=1){var z=P[w];this.toAssignable(z,c),z.type==="RestElement"&&(z.argument.type==="ArrayPattern"||z.argument.type==="ObjectPattern")&&this.raise(z.argument.start,"Unexpected token")}break;case"Property":a.kind!=="init"&&this.raise(a.key.start,"Object pattern can't contain getter or setter"),this.toAssignable(a.value,c);break;case"ArrayExpression":a.type="ArrayPattern",x&&this.checkPatternErrors(x,!0),this.toAssignableList(a.elements,c);break;case"SpreadElement":a.type="RestElement",this.toAssignable(a.argument,c),a.argument.type==="AssignmentPattern"&&this.raise(a.argument.start,"Rest elements cannot have a default value");break;case"AssignmentExpression":a.operator!=="="&&this.raise(a.left.end,"Only '=' operator can be used for specifying default value."),a.type="AssignmentPattern",delete a.operator,this.toAssignable(a.left,c);break;case"ParenthesizedExpression":this.toAssignable(a.expression,c,x);break;case"ChainExpression":this.raiseRecoverable(a.start,"Optional chaining cannot appear in left-hand side");break;case"MemberExpression":if(!c)break;default:this.raise(a.start,"Assigning to rvalue")}else x&&this.checkPatternErrors(x,!0);return a},_t.toAssignableList=function(a,c){for(var x=a.length,w=0;w<x;w++){var P=a[w];P&&this.toAssignable(P,c)}if(x){var z=a[x-1];this.options.ecmaVersion===6&&c&&z&&z.type==="RestElement"&&z.argument.type!=="Identifier"&&this.unexpected(z.argument.start)}return a},_t.parseSpread=function(a){var c=this.startNode();return this.next(),c.argument=this.parseMaybeAssign(!1,a),this.finishNode(c,"SpreadElement")},_t.parseRestBinding=function(){var a=this.startNode();return this.next(),this.options.ecmaVersion===6&&this.type!==g.name&&this.unexpected(),a.argument=this.parseBindingAtom(),this.finishNode(a,"RestElement")},_t.parseBindingAtom=function(){if(this.options.ecmaVersion>=6)switch(this.type){case g.bracketL:var a=this.startNode();return this.next(),a.elements=this.parseBindingList(g.bracketR,!0,!0),this.finishNode(a,"ArrayPattern");case g.braceL:return this.parseObj(!0)}return this.parseIdent()},_t.parseBindingList=function(a,c,x,w){for(var P=[],z=!0;!this.eat(a);)if(z?z=!1:this.expect(g.comma),c&&this.type===g.comma)P.push(null);else{if(x&&this.afterTrailingComma(a))break;if(this.type===g.ellipsis){var q=this.parseRestBinding();this.parseBindingListItem(q),P.push(q),this.type===g.comma&&this.raiseRecoverable(this.start,"Comma is not permitted after the rest element"),this.expect(a);break}else P.push(this.parseAssignableListItem(w))}return P},_t.parseAssignableListItem=function(a){var c=this.parseMaybeDefault(this.start,this.startLoc);return this.parseBindingListItem(c),c},_t.parseBindingListItem=function(a){return a},_t.parseMaybeDefault=function(a,c,x){if(x=x||this.parseBindingAtom(),this.options.ecmaVersion<6||!this.eat(g.eq))return x;var w=this.startNodeAt(a,c);return w.left=x,w.right=this.parseMaybeAssign(),this.finishNode(w,"AssignmentPattern")},_t.checkLValSimple=function(a,c,x){c===void 0&&(c=Be);var w=c!==Be;switch(a.type){case"Identifier":this.strict&&this.reservedWordsStrictBind.test(a.name)&&this.raiseRecoverable(a.start,(w?"Binding ":"Assigning to ")+a.name+" in strict mode"),w&&(c===Te&&a.name==="let"&&this.raiseRecoverable(a.start,"let is disallowed as a lexically bound name"),x&&(te(x,a.name)&&this.raiseRecoverable(a.start,"Argument name clash"),x[a.name]=!0),c!==re&&this.declareName(a.name,c,a.start));break;case"ChainExpression":this.raiseRecoverable(a.start,"Optional chaining cannot appear in left-hand side");break;case"MemberExpression":w&&this.raiseRecoverable(a.start,"Binding member expression");break;case"ParenthesizedExpression":return w&&this.raiseRecoverable(a.start,"Binding parenthesized expression"),this.checkLValSimple(a.expression,c,x);default:this.raise(a.start,(w?"Binding":"Assigning to")+" rvalue")}},_t.checkLValPattern=function(a,c,x){switch(c===void 0&&(c=Be),a.type){case"ObjectPattern":for(var w=0,P=a.properties;w<P.length;w+=1){var z=P[w];this.checkLValInnerPattern(z,c,x)}break;case"ArrayPattern":for(var q=0,ce=a.elements;q<ce.length;q+=1){var pe=ce[q];pe&&this.checkLValInnerPattern(pe,c,x)}break;default:this.checkLValSimple(a,c,x)}},_t.checkLValInnerPattern=function(a,c,x){switch(c===void 0&&(c=Be),a.type){case"Property":this.checkLValInnerPattern(a.value,c,x);break;case"AssignmentPattern":this.checkLValPattern(a.left,c,x);break;case"RestElement":this.checkLValPattern(a.argument,c,x);break;default:this.checkLValPattern(a,c,x)}};var It=function(c,x,w,P,z){this.token=c,this.isExpr=!!x,this.preserveSpace=!!w,this.override=P,this.generator=!!z},Ze={b_stat:new It("{",!1),b_expr:new It("{",!0),b_tmpl:new It("${",!1),p_stat:new It("(",!1),p_expr:new It("(",!0),q_tmpl:new It("`",!0,!0,function(a){return a.tryReadTemplateToken()}),f_stat:new It("function",!1),f_expr:new It("function",!0),f_expr_gen:new It("function",!0,!1,null,!0),f_gen:new It("function",!1,!1,null,!0)},Rn=T.prototype;Rn.initialContext=function(){return[Ze.b_stat]},Rn.curContext=function(){return this.context[this.context.length-1]},Rn.braceIsBlock=function(a){var c=this.curContext();return c===Ze.f_expr||c===Ze.f_stat?!0:a===g.colon&&(c===Ze.b_stat||c===Ze.b_expr)?!c.isExpr:a===g._return||a===g.name&&this.exprAllowed?A.test(this.input.slice(this.lastTokEnd,this.start)):a===g._else||a===g.semi||a===g.eof||a===g.parenR||a===g.arrow?!0:a===g.braceL?c===Ze.b_stat:a===g._var||a===g._const||a===g.name?!1:!this.exprAllowed},Rn.inGeneratorContext=function(){for(var a=this.context.length-1;a>=1;a--){var c=this.context[a];if(c.token==="function")return c.generator}return!1},Rn.updateContext=function(a){var c,x=this.type;x.keyword&&a===g.dot?this.exprAllowed=!1:(c=x.updateContext)?c.call(this,a):this.exprAllowed=x.beforeExpr},Rn.overrideContext=function(a){this.curContext()!==a&&(this.context[this.context.length-1]=a)},g.parenR.updateContext=g.braceR.updateContext=function(){if(this.context.length===1){this.exprAllowed=!0;return}var a=this.context.pop();a===Ze.b_stat&&this.curContext().token==="function"&&(a=this.context.pop()),this.exprAllowed=!a.isExpr},g.braceL.updateContext=function(a){this.context.push(this.braceIsBlock(a)?Ze.b_stat:Ze.b_expr),this.exprAllowed=!0},g.dollarBraceL.updateContext=function(){this.context.push(Ze.b_tmpl),this.exprAllowed=!0},g.parenL.updateContext=function(a){var c=a===g._if||a===g._for||a===g._with||a===g._while;this.context.push(c?Ze.p_stat:Ze.p_expr),this.exprAllowed=!0},g.incDec.updateContext=function(){},g._function.updateContext=g._class.updateContext=function(a){a.beforeExpr&&a!==g._else&&!(a===g.semi&&this.curContext()!==Ze.p_stat)&&!(a===g._return&&A.test(this.input.slice(this.lastTokEnd,this.start)))&&!((a===g.colon||a===g.braceL)&&this.curContext()===Ze.b_stat)?this.context.push(Ze.f_expr):this.context.push(Ze.f_stat),this.exprAllowed=!1},g.colon.updateContext=function(){this.curContext().token==="function"&&this.context.pop(),this.exprAllowed=!0},g.backQuote.updateContext=function(){this.curContext()===Ze.q_tmpl?this.context.pop():this.context.push(Ze.q_tmpl),this.exprAllowed=!1},g.star.updateContext=function(a){if(a===g._function){var c=this.context.length-1;this.context[c]===Ze.f_expr?this.context[c]=Ze.f_expr_gen:this.context[c]=Ze.f_gen}this.exprAllowed=!0},g.name.updateContext=function(a){var c=!1;this.options.ecmaVersion>=6&&a!==g.dot&&(this.value==="of"&&!this.exprAllowed||this.value==="yield"&&this.inGeneratorContext())&&(c=!0),this.exprAllowed=c};var Oe=T.prototype;Oe.checkPropClash=function(a,c,x){if(!(this.options.ecmaVersion>=9&&a.type==="SpreadElement")&&!(this.options.ecmaVersion>=6&&(a.computed||a.method||a.shorthand))){var w=a.key,P;switch(w.type){case"Identifier":P=w.name;break;case"Literal":P=String(w.value);break;default:return}var z=a.kind;if(this.options.ecmaVersion>=6){P==="__proto__"&&z==="init"&&(c.proto&&(x?x.doubleProto<0&&(x.doubleProto=w.start):this.raiseRecoverable(w.start,"Redefinition of __proto__ property")),c.proto=!0);return}P="$"+P;var q=c[P];if(q){var ce;z==="init"?ce=this.strict&&q.init||q.get||q.set:ce=q.init||q[z],ce&&this.raiseRecoverable(w.start,"Redefinition of property")}else q=c[P]={init:!1,get:!1,set:!1};q[z]=!0}},Oe.parseExpression=function(a,c){var x=this.start,w=this.startLoc,P=this.parseMaybeAssign(a,c);if(this.type===g.comma){var z=this.startNodeAt(x,w);for(z.expressions=[P];this.eat(g.comma);)z.expressions.push(this.parseMaybeAssign(a,c));return this.finishNode(z,"SequenceExpression")}return P},Oe.parseMaybeAssign=function(a,c,x){if(this.isContextual("yield")){if(this.inGenerator)return this.parseYield(a);this.exprAllowed=!1}var w=!1,P=-1,z=-1,q=-1;c?(P=c.parenthesizedAssign,z=c.trailingComma,q=c.doubleProto,c.parenthesizedAssign=c.trailingComma=-1):(c=new kt,w=!0);var ce=this.start,pe=this.startLoc;(this.type===g.parenL||this.type===g.name)&&(this.potentialArrowAt=this.start,this.potentialArrowInForAwait=a==="await");var Ne=this.parseMaybeConditional(a,c);if(x&&(Ne=x.call(this,Ne,ce,pe)),this.type.isAssign){var Fe=this.startNodeAt(ce,pe);return Fe.operator=this.value,this.type===g.eq&&(Ne=this.toAssignable(Ne,!1,c)),w||(c.parenthesizedAssign=c.trailingComma=c.doubleProto=-1),c.shorthandAssign>=Ne.start&&(c.shorthandAssign=-1),this.type===g.eq?this.checkLValPattern(Ne):this.checkLValSimple(Ne),Fe.left=Ne,this.next(),Fe.right=this.parseMaybeAssign(a),q>-1&&(c.doubleProto=q),this.finishNode(Fe,"AssignmentExpression")}else w&&this.checkExpressionErrors(c,!0);return P>-1&&(c.parenthesizedAssign=P),z>-1&&(c.trailingComma=z),Ne},Oe.parseMaybeConditional=function(a,c){var x=this.start,w=this.startLoc,P=this.parseExprOps(a,c);if(this.checkExpressionErrors(c))return P;if(this.eat(g.question)){var z=this.startNodeAt(x,w);return z.test=P,z.consequent=this.parseMaybeAssign(),this.expect(g.colon),z.alternate=this.parseMaybeAssign(a),this.finishNode(z,"ConditionalExpression")}return P},Oe.parseExprOps=function(a,c){var x=this.start,w=this.startLoc,P=this.parseMaybeUnary(c,!1,!1,a);return this.checkExpressionErrors(c)||P.start===x&&P.type==="ArrowFunctionExpression"?P:this.parseExprOp(P,x,w,-1,a)},Oe.parseExprOp=function(a,c,x,w,P){var z=this.type.binop;if(z!=null&&(!P||this.type!==g._in)&&z>w){var q=this.type===g.logicalOR||this.type===g.logicalAND,ce=this.type===g.coalesce;ce&&(z=g.logicalAND.binop);var pe=this.value;this.next();var Ne=this.start,Fe=this.startLoc,Xe=this.parseExprOp(this.parseMaybeUnary(null,!1,!1,P),Ne,Fe,z,P),st=this.buildBinary(c,x,a,Xe,pe,q||ce);return(q&&this.type===g.coalesce||ce&&(this.type===g.logicalOR||this.type===g.logicalAND))&&this.raiseRecoverable(this.start,"Logical expressions and coalesce expressions cannot be mixed. Wrap either by parentheses"),this.parseExprOp(st,c,x,w,P)}return a},Oe.buildBinary=function(a,c,x,w,P,z){w.type==="PrivateIdentifier"&&this.raise(w.start,"Private identifier can only be left side of binary expression");var q=this.startNodeAt(a,c);return q.left=x,q.operator=P,q.right=w,this.finishNode(q,z?"LogicalExpression":"BinaryExpression")},Oe.parseMaybeUnary=function(a,c,x,w){var P=this.start,z=this.startLoc,q;if(this.isContextual("await")&&this.canAwait)q=this.parseAwait(w),c=!0;else if(this.type.prefix){var ce=this.startNode(),pe=this.type===g.incDec;ce.operator=this.value,ce.prefix=!0,this.next(),ce.argument=this.parseMaybeUnary(null,!0,pe,w),this.checkExpressionErrors(a,!0),pe?this.checkLValSimple(ce.argument):this.strict&&ce.operator==="delete"&&fo(ce.argument)?this.raiseRecoverable(ce.start,"Deleting local variable in strict mode"):ce.operator==="delete"&&$r(ce.argument)?this.raiseRecoverable(ce.start,"Private fields can not be deleted"):c=!0,q=this.finishNode(ce,pe?"UpdateExpression":"UnaryExpression")}else if(!c&&this.type===g.privateId)(w||this.privateNameStack.length===0)&&this.options.checkPrivateFields&&this.unexpected(),q=this.parsePrivateIdent(),this.type!==g._in&&this.unexpected();else{if(q=this.parseExprSubscripts(a,w),this.checkExpressionErrors(a))return q;for(;this.type.postfix&&!this.canInsertSemicolon();){var Ne=this.startNodeAt(P,z);Ne.operator=this.value,Ne.prefix=!1,Ne.argument=q,this.checkLValSimple(q),this.next(),q=this.finishNode(Ne,"UpdateExpression")}}if(!x&&this.eat(g.starstar))if(c)this.unexpected(this.lastTokStart);else return this.buildBinary(P,z,q,this.parseMaybeUnary(null,!1,!1,w),"**",!1);else return q};function fo(a){return a.type==="Identifier"||a.type==="ParenthesizedExpression"&&fo(a.expression)}function $r(a){return a.type==="MemberExpression"&&a.property.type==="PrivateIdentifier"||a.type==="ChainExpression"&&$r(a.expression)||a.type==="ParenthesizedExpression"&&$r(a.expression)}Oe.parseExprSubscripts=function(a,c){var x=this.start,w=this.startLoc,P=this.parseExprAtom(a,c);if(P.type==="ArrowFunctionExpression"&&this.input.slice(this.lastTokStart,this.lastTokEnd)!==")")return P;var z=this.parseSubscripts(P,x,w,!1,c);return a&&z.type==="MemberExpression"&&(a.parenthesizedAssign>=z.start&&(a.parenthesizedAssign=-1),a.parenthesizedBind>=z.start&&(a.parenthesizedBind=-1),a.trailingComma>=z.start&&(a.trailingComma=-1)),z},Oe.parseSubscripts=function(a,c,x,w,P){for(var z=this.options.ecmaVersion>=8&&a.type==="Identifier"&&a.name==="async"&&this.lastTokEnd===a.end&&!this.canInsertSemicolon()&&a.end-a.start===5&&this.potentialArrowAt===a.start,q=!1;;){var ce=this.parseSubscript(a,c,x,w,z,q,P);if(ce.optional&&(q=!0),ce===a||ce.type==="ArrowFunctionExpression"){if(q){var pe=this.startNodeAt(c,x);pe.expression=ce,ce=this.finishNode(pe,"ChainExpression")}return ce}a=ce}},Oe.shouldParseAsyncArrow=function(){return!this.canInsertSemicolon()&&this.eat(g.arrow)},Oe.parseSubscriptAsyncArrow=function(a,c,x,w){return this.parseArrowExpression(this.startNodeAt(a,c),x,!0,w)},Oe.parseSubscript=function(a,c,x,w,P,z,q){var ce=this.options.ecmaVersion>=11,pe=ce&&this.eat(g.questionDot);w&&pe&&this.raise(this.lastTokStart,"Optional chaining cannot appear in the callee of new expressions");var Ne=this.eat(g.bracketL);if(Ne||pe&&this.type!==g.parenL&&this.type!==g.backQuote||this.eat(g.dot)){var Fe=this.startNodeAt(c,x);Fe.object=a,Ne?(Fe.property=this.parseExpression(),this.expect(g.bracketR)):this.type===g.privateId&&a.type!=="Super"?Fe.property=this.parsePrivateIdent():Fe.property=this.parseIdent(this.options.allowReserved!=="never"),Fe.computed=!!Ne,ce&&(Fe.optional=pe),a=this.finishNode(Fe,"MemberExpression")}else if(!w&&this.eat(g.parenL)){var Xe=new kt,st=this.yieldPos,ri=this.awaitPos,Ln=this.awaitIdentPos;this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0;var Mi=this.parseExprList(g.parenR,this.options.ecmaVersion>=8,!1,Xe);if(P&&!pe&&this.shouldParseAsyncArrow())return this.checkPatternErrors(Xe,!1),this.checkYieldAwaitInDefaultParams(),this.awaitIdentPos>0&&this.raise(this.awaitIdentPos,"Cannot use 'await' as identifier inside an async function"),this.yieldPos=st,this.awaitPos=ri,this.awaitIdentPos=Ln,this.parseSubscriptAsyncArrow(c,x,Mi,q);this.checkExpressionErrors(Xe,!0),this.yieldPos=st||this.yieldPos,this.awaitPos=ri||this.awaitPos,this.awaitIdentPos=Ln||this.awaitIdentPos;var Mn=this.startNodeAt(c,x);Mn.callee=a,Mn.arguments=Mi,ce&&(Mn.optional=pe),a=this.finishNode(Mn,"CallExpression")}else if(this.type===g.backQuote){(pe||z)&&this.raise(this.start,"Optional chaining cannot appear in the tag of tagged template expressions");var Fn=this.startNodeAt(c,x);Fn.tag=a,Fn.quasi=this.parseTemplate({isTagged:!0}),a=this.finishNode(Fn,"TaggedTemplateExpression")}return a},Oe.parseExprAtom=function(a,c,x){this.type===g.slash&&this.readRegexp();var w,P=this.potentialArrowAt===this.start;switch(this.type){case g._super:return this.allowSuper||this.raise(this.start,"'super' keyword outside a method"),w=this.startNode(),this.next(),this.type===g.parenL&&!this.allowDirectSuper&&this.raise(w.start,"super() call outside constructor of a subclass"),this.type!==g.dot&&this.type!==g.bracketL&&this.type!==g.parenL&&this.unexpected(),this.finishNode(w,"Super");case g._this:return w=this.startNode(),this.next(),this.finishNode(w,"ThisExpression");case g.name:var z=this.start,q=this.startLoc,ce=this.containsEsc,pe=this.parseIdent(!1);if(this.options.ecmaVersion>=8&&!ce&&pe.name==="async"&&!this.canInsertSemicolon()&&this.eat(g._function))return this.overrideContext(Ze.f_expr),this.parseFunction(this.startNodeAt(z,q),0,!1,!0,c);if(P&&!this.canInsertSemicolon()){if(this.eat(g.arrow))return this.parseArrowExpression(this.startNodeAt(z,q),[pe],!1,c);if(this.options.ecmaVersion>=8&&pe.name==="async"&&this.type===g.name&&!ce&&(!this.potentialArrowInForAwait||this.value!=="of"||this.containsEsc))return pe=this.parseIdent(!1),(this.canInsertSemicolon()||!this.eat(g.arrow))&&this.unexpected(),this.parseArrowExpression(this.startNodeAt(z,q),[pe],!0,c)}return pe;case g.regexp:var Ne=this.value;return w=this.parseLiteral(Ne.value),w.regex={pattern:Ne.pattern,flags:Ne.flags},w;case g.num:case g.string:return this.parseLiteral(this.value);case g._null:case g._true:case g._false:return w=this.startNode(),w.value=this.type===g._null?null:this.type===g._true,w.raw=this.type.keyword,this.next(),this.finishNode(w,"Literal");case g.parenL:var Fe=this.start,Xe=this.parseParenAndDistinguishExpression(P,c);return a&&(a.parenthesizedAssign<0&&!this.isSimpleAssignTarget(Xe)&&(a.parenthesizedAssign=Fe),a.parenthesizedBind<0&&(a.parenthesizedBind=Fe)),Xe;case g.bracketL:return w=this.startNode(),this.next(),w.elements=this.parseExprList(g.bracketR,!0,!0,a),this.finishNode(w,"ArrayExpression");case g.braceL:return this.overrideContext(Ze.b_expr),this.parseObj(!1,a);case g._function:return w=this.startNode(),this.next(),this.parseFunction(w,0);case g._class:return this.parseClass(this.startNode(),!1);case g._new:return this.parseNew();case g.backQuote:return this.parseTemplate();case g._import:return this.options.ecmaVersion>=11?this.parseExprImport(x):this.unexpected();default:return this.parseExprAtomDefault()}},Oe.parseExprAtomDefault=function(){this.unexpected()},Oe.parseExprImport=function(a){var c=this.startNode();if(this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword import"),this.next(),this.type===g.parenL&&!a)return this.parseDynamicImport(c);if(this.type===g.dot){var x=this.startNodeAt(c.start,c.loc&&c.loc.start);return x.name="import",c.meta=this.finishNode(x,"Identifier"),this.parseImportMeta(c)}else this.unexpected()},Oe.parseDynamicImport=function(a){if(this.next(),a.source=this.parseMaybeAssign(),this.options.ecmaVersion>=16)this.eat(g.parenR)?a.options=null:(this.expect(g.comma),this.afterTrailingComma(g.parenR)?a.options=null:(a.options=this.parseMaybeAssign(),this.eat(g.parenR)||(this.expect(g.comma),this.afterTrailingComma(g.parenR)||this.unexpected())));else if(!this.eat(g.parenR)){var c=this.start;this.eat(g.comma)&&this.eat(g.parenR)?this.raiseRecoverable(c,"Trailing comma is not allowed in import()"):this.unexpected(c)}return this.finishNode(a,"ImportExpression")},Oe.parseImportMeta=function(a){this.next();var c=this.containsEsc;return a.property=this.parseIdent(!0),a.property.name!=="meta"&&this.raiseRecoverable(a.property.start,"The only valid meta property for import is 'import.meta'"),c&&this.raiseRecoverable(a.start,"'import.meta' must not contain escaped characters"),this.options.sourceType!=="module"&&!this.options.allowImportExportEverywhere&&this.raiseRecoverable(a.start,"Cannot use 'import.meta' outside a module"),this.finishNode(a,"MetaProperty")},Oe.parseLiteral=function(a){var c=this.startNode();return c.value=a,c.raw=this.input.slice(this.start,this.end),c.raw.charCodeAt(c.raw.length-1)===110&&(c.bigint=c.value!=null?c.value.toString():c.raw.slice(0,-1).replace(/_/g,"")),this.next(),this.finishNode(c,"Literal")},Oe.parseParenExpression=function(){this.expect(g.parenL);var a=this.parseExpression();return this.expect(g.parenR),a},Oe.shouldParseArrow=function(a){return!this.canInsertSemicolon()},Oe.parseParenAndDistinguishExpression=function(a,c){var x=this.start,w=this.startLoc,P,z=this.options.ecmaVersion>=8;if(this.options.ecmaVersion>=6){this.next();var q=this.start,ce=this.startLoc,pe=[],Ne=!0,Fe=!1,Xe=new kt,st=this.yieldPos,ri=this.awaitPos,Ln;for(this.yieldPos=0,this.awaitPos=0;this.type!==g.parenR;)if(Ne?Ne=!1:this.expect(g.comma),z&&this.afterTrailingComma(g.parenR,!0)){Fe=!0;break}else if(this.type===g.ellipsis){Ln=this.start,pe.push(this.parseParenItem(this.parseRestBinding())),this.type===g.comma&&this.raiseRecoverable(this.start,"Comma is not permitted after the rest element");break}else pe.push(this.parseMaybeAssign(!1,Xe,this.parseParenItem));var Mi=this.lastTokEnd,Mn=this.lastTokEndLoc;if(this.expect(g.parenR),a&&this.shouldParseArrow(pe)&&this.eat(g.arrow))return this.checkPatternErrors(Xe,!1),this.checkYieldAwaitInDefaultParams(),this.yieldPos=st,this.awaitPos=ri,this.parseParenArrowList(x,w,pe,c);(!pe.length||Fe)&&this.unexpected(this.lastTokStart),Ln&&this.unexpected(Ln),this.checkExpressionErrors(Xe,!0),this.yieldPos=st||this.yieldPos,this.awaitPos=ri||this.awaitPos,pe.length>1?(P=this.startNodeAt(q,ce),P.expressions=pe,this.finishNodeAt(P,"SequenceExpression",Mi,Mn)):P=pe[0]}else P=this.parseParenExpression();if(this.options.preserveParens){var Fn=this.startNodeAt(x,w);return Fn.expression=P,this.finishNode(Fn,"ParenthesizedExpression")}else return P},Oe.parseParenItem=function(a){return a},Oe.parseParenArrowList=function(a,c,x,w){return this.parseArrowExpression(this.startNodeAt(a,c),x,!1,w)};var zp=[];Oe.parseNew=function(){this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword new");var a=this.startNode();if(this.next(),this.options.ecmaVersion>=6&&this.type===g.dot){var c=this.startNodeAt(a.start,a.loc&&a.loc.start);c.name="new",a.meta=this.finishNode(c,"Identifier"),this.next();var x=this.containsEsc;return a.property=this.parseIdent(!0),a.property.name!=="target"&&this.raiseRecoverable(a.property.start,"The only valid meta property for new is 'new.target'"),x&&this.raiseRecoverable(a.start,"'new.target' must not contain escaped characters"),this.allowNewDotTarget||this.raiseRecoverable(a.start,"'new.target' can only be used in functions and class static block"),this.finishNode(a,"MetaProperty")}var w=this.start,P=this.startLoc;return a.callee=this.parseSubscripts(this.parseExprAtom(null,!1,!0),w,P,!0,!1),this.eat(g.parenL)?a.arguments=this.parseExprList(g.parenR,this.options.ecmaVersion>=8,!1):a.arguments=zp,this.finishNode(a,"NewExpression")},Oe.parseTemplateElement=function(a){var c=a.isTagged,x=this.startNode();return this.type===g.invalidTemplate?(c||this.raiseRecoverable(this.start,"Bad escape sequence in untagged template literal"),x.value={raw:this.value.replace(/\r\n?/g,`
78
26
  `),cooked:null}):x.value={raw:this.input.slice(this.start,this.end).replace(/\r\n?/g,`
79
- `),cooked:this.value},this.next(),x.tail=this.type===f.backQuote,this.finishNode(x,"TemplateElement")},Le.parseTemplate=function(o){o===void 0&&(o={});var d=o.isTagged;d===void 0&&(d=!1);var x=this.startNode();this.next(),x.expressions=[];var _=this.parseTemplateElement({isTagged:d});for(x.quasis=[_];!_.tail;)this.type===f.eof&&this.raise(this.pos,"Unterminated template literal"),this.expect(f.dollarBraceL),x.expressions.push(this.parseExpression()),this.expect(f.braceR),x.quasis.push(_=this.parseTemplateElement({isTagged:d}));return this.next(),this.finishNode(x,"TemplateLiteral")},Le.isAsyncProp=function(o){return!o.computed&&o.key.type==="Identifier"&&o.key.name==="async"&&(this.type===f.name||this.type===f.num||this.type===f.string||this.type===f.bracketL||this.type.keyword||this.options.ecmaVersion>=9&&this.type===f.star)&&!O.test(this.input.slice(this.lastTokEnd,this.start))},Le.parseObj=function(o,d){var x=this.startNode(),_=!0,L={};for(x.properties=[],this.next();!this.eat(f.braceR);){if(_)_=!1;else if(this.expect(f.comma),this.options.ecmaVersion>=5&&this.afterTrailingComma(f.braceR))break;var G=this.parseProperty(o,d);o||this.checkPropClash(G,L,d),x.properties.push(G)}return this.finishNode(x,o?"ObjectPattern":"ObjectExpression")},Le.parseProperty=function(o,d){var x=this.startNode(),_,L,G,X;if(this.options.ecmaVersion>=9&&this.eat(f.ellipsis))return o?(x.argument=this.parseIdent(!1),this.type===f.comma&&this.raiseRecoverable(this.start,"Comma is not permitted after the rest element"),this.finishNode(x,"RestElement")):(x.argument=this.parseMaybeAssign(!1,d),this.type===f.comma&&d&&d.trailingComma<0&&(d.trailingComma=this.start),this.finishNode(x,"SpreadElement"));this.options.ecmaVersion>=6&&(x.method=!1,x.shorthand=!1,(o||d)&&(G=this.start,X=this.startLoc),o||(_=this.eat(f.star)));var fe=this.containsEsc;return this.parsePropertyName(x),!o&&!fe&&this.options.ecmaVersion>=8&&!_&&this.isAsyncProp(x)?(L=!0,_=this.options.ecmaVersion>=9&&this.eat(f.star),this.parsePropertyName(x)):L=!1,this.parsePropertyValue(x,o,_,L,G,X,d,fe),this.finishNode(x,"Property")},Le.parseGetterSetter=function(o){var d=o.key.name;this.parsePropertyName(o),o.value=this.parseMethod(!1),o.kind=d;var x=o.kind==="get"?0:1;if(o.value.params.length!==x){var _=o.value.start;o.kind==="get"?this.raiseRecoverable(_,"getter should have no params"):this.raiseRecoverable(_,"setter should have exactly one param")}else o.kind==="set"&&o.value.params[0].type==="RestElement"&&this.raiseRecoverable(o.value.params[0].start,"Setter cannot use rest params")},Le.parsePropertyValue=function(o,d,x,_,L,G,X,fe){(x||_)&&this.type===f.colon&&this.unexpected(),this.eat(f.colon)?(o.value=d?this.parseMaybeDefault(this.start,this.startLoc):this.parseMaybeAssign(!1,X),o.kind="init"):this.options.ecmaVersion>=6&&this.type===f.parenL?(d&&this.unexpected(),o.method=!0,o.value=this.parseMethod(x,_),o.kind="init"):!d&&!fe&&this.options.ecmaVersion>=5&&!o.computed&&o.key.type==="Identifier"&&(o.key.name==="get"||o.key.name==="set")&&this.type!==f.comma&&this.type!==f.braceR&&this.type!==f.eq?((x||_)&&this.unexpected(),this.parseGetterSetter(o)):this.options.ecmaVersion>=6&&!o.computed&&o.key.type==="Identifier"?((x||_)&&this.unexpected(),this.checkUnreserved(o.key),o.key.name==="await"&&!this.awaitIdentPos&&(this.awaitIdentPos=L),d?o.value=this.parseMaybeDefault(L,G,this.copyNode(o.key)):this.type===f.eq&&X?(X.shorthandAssign<0&&(X.shorthandAssign=this.start),o.value=this.parseMaybeDefault(L,G,this.copyNode(o.key))):o.value=this.copyNode(o.key),o.kind="init",o.shorthand=!0):this.unexpected()},Le.parsePropertyName=function(o){if(this.options.ecmaVersion>=6){if(this.eat(f.bracketL))return o.computed=!0,o.key=this.parseMaybeAssign(),this.expect(f.bracketR),o.key;o.computed=!1}return o.key=this.type===f.num||this.type===f.string?this.parseExprAtom():this.parseIdent(this.options.allowReserved!=="never")},Le.initFunction=function(o){o.id=null,this.options.ecmaVersion>=6&&(o.generator=o.expression=!1),this.options.ecmaVersion>=8&&(o.async=!1)},Le.parseMethod=function(o,d,x){var _=this.startNode(),L=this.yieldPos,G=this.awaitPos,X=this.awaitIdentPos;return this.initFunction(_),this.options.ecmaVersion>=6&&(_.generator=o),this.options.ecmaVersion>=8&&(_.async=!!d),this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(we(d,_.generator)|xe|(x?be:0)),this.expect(f.parenL),_.params=this.parseBindingList(f.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams(),this.parseFunctionBody(_,!1,!0,!1),this.yieldPos=L,this.awaitPos=G,this.awaitIdentPos=X,this.finishNode(_,"FunctionExpression")},Le.parseArrowExpression=function(o,d,x,_){var L=this.yieldPos,G=this.awaitPos,X=this.awaitIdentPos;return this.enterScope(we(x,!1)|ve),this.initFunction(o),this.options.ecmaVersion>=8&&(o.async=!!x),this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,o.params=this.toAssignableList(d,!0),this.parseFunctionBody(o,!0,!1,_),this.yieldPos=L,this.awaitPos=G,this.awaitIdentPos=X,this.finishNode(o,"ArrowFunctionExpression")},Le.parseFunctionBody=function(o,d,x,_){var L=d&&this.type!==f.braceL,G=this.strict,X=!1;if(L)o.body=this.parseMaybeAssign(_),o.expression=!0,this.checkParams(o,!1);else{var fe=this.options.ecmaVersion>=7&&!this.isSimpleParamList(o.params);(!G||fe)&&(X=this.strictDirective(this.end),X&&fe&&this.raiseRecoverable(o.start,"Illegal 'use strict' directive in function with non-simple parameter list"));var ye=this.labels;this.labels=[],X&&(this.strict=!0),this.checkParams(o,!G&&!X&&!d&&!x&&this.isSimpleParamList(o.params)),this.strict&&o.id&&this.checkLValSimple(o.id,te),o.body=this.parseBlock(!1,void 0,X&&!G),o.expression=!1,this.adaptDirectivePrologue(o.body.body),this.labels=ye}this.exitScope()},Le.isSimpleParamList=function(o){for(var d=0,x=o;d<x.length;d+=1){var _=x[d];if(_.type!=="Identifier")return!1}return!0},Le.checkParams=function(o,d){for(var x=Object.create(null),_=0,L=o.params;_<L.length;_+=1){var G=L[_];this.checkLValInnerPattern(G,ze,d?null:x)}},Le.parseExprList=function(o,d,x,_){for(var L=[],G=!0;!this.eat(o);){if(G)G=!1;else if(this.expect(f.comma),d&&this.afterTrailingComma(o))break;var X=void 0;x&&this.type===f.comma?X=null:this.type===f.ellipsis?(X=this.parseSpread(_),_&&this.type===f.comma&&_.trailingComma<0&&(_.trailingComma=this.start)):X=this.parseMaybeAssign(!1,_),L.push(X)}return L},Le.checkUnreserved=function(o){var d=o.start,x=o.end,_=o.name;if(this.inGenerator&&_==="yield"&&this.raiseRecoverable(d,"Cannot use 'yield' as identifier inside a generator"),this.inAsync&&_==="await"&&this.raiseRecoverable(d,"Cannot use 'await' as identifier inside an async function"),!(this.currentThisScope().flags&Ee)&&_==="arguments"&&this.raiseRecoverable(d,"Cannot use 'arguments' in class field initializer"),this.inClassStaticBlock&&(_==="arguments"||_==="await")&&this.raise(d,"Cannot use "+_+" in class static initialization block"),this.keywords.test(_)&&this.raise(d,"Unexpected keyword '"+_+"'"),!(this.options.ecmaVersion<6&&this.input.slice(d,x).indexOf("\\")!==-1)){var L=this.strict?this.reservedWordsStrict:this.reservedWords;L.test(_)&&(!this.inAsync&&_==="await"&&this.raiseRecoverable(d,"Cannot use keyword 'await' outside an async function"),this.raiseRecoverable(d,"The keyword '"+_+"' is reserved"))}},Le.parseIdent=function(o){var d=this.parseIdentNode();return this.next(!!o),this.finishNode(d,"Identifier"),o||(this.checkUnreserved(d),d.name==="await"&&!this.awaitIdentPos&&(this.awaitIdentPos=d.start)),d},Le.parseIdentNode=function(){var o=this.startNode();return this.type===f.name?o.name=this.value:this.type.keyword?(o.name=this.type.keyword,(o.name==="class"||o.name==="function")&&(this.lastTokEnd!==this.lastTokStart+1||this.input.charCodeAt(this.lastTokStart)!==46)&&this.context.pop(),this.type=f.name):this.unexpected(),o},Le.parsePrivateIdent=function(){var o=this.startNode();return this.type===f.privateId?o.name=this.value:this.unexpected(),this.next(),this.finishNode(o,"PrivateIdentifier"),this.options.checkPrivateFields&&(this.privateNameStack.length===0?this.raise(o.start,"Private field '#"+o.name+"' must be declared in an enclosing class"):this.privateNameStack[this.privateNameStack.length-1].used.push(o)),o},Le.parseYield=function(o){this.yieldPos||(this.yieldPos=this.start);var d=this.startNode();return this.next(),this.type===f.semi||this.canInsertSemicolon()||this.type!==f.star&&!this.type.startsExpr?(d.delegate=!1,d.argument=null):(d.delegate=this.eat(f.star),d.argument=this.parseMaybeAssign(o)),this.finishNode(d,"YieldExpression")},Le.parseAwait=function(o){this.awaitPos||(this.awaitPos=this.start);var d=this.startNode();return this.next(),d.argument=this.parseMaybeUnary(null,!0,!1,o),this.finishNode(d,"AwaitExpression")};var dn=re.prototype;dn.raise=function(o,d){var x=B(this.input,o);d+=" ("+x.line+":"+x.column+")",this.sourceFile&&(d+=" in "+this.sourceFile);var _=new SyntaxError(d);throw _.pos=o,_.loc=x,_.raisedAt=this.pos,_},dn.raiseRecoverable=dn.raise,dn.curPosition=function(){if(this.options.locations)return new ee(this.curLine,this.pos-this.lineStart)};var ei=re.prototype,ls=function(d){this.flags=d,this.var=[],this.lexical=[],this.functions=[]};ei.enterScope=function(o){this.scopeStack.push(new ls(o))},ei.exitScope=function(){this.scopeStack.pop()},ei.treatFunctionsAsVarInScope=function(o){return o.flags&le||!this.inModule&&o.flags&ae},ei.declareName=function(o,d,x){var _=!1;if(d===Pe){var L=this.currentScope();_=L.lexical.indexOf(o)>-1||L.functions.indexOf(o)>-1||L.var.indexOf(o)>-1,L.lexical.push(o),this.inModule&&L.flags&ae&&delete this.undefinedExports[o]}else if(d===rt){var G=this.currentScope();G.lexical.push(o)}else if(d===Re){var X=this.currentScope();this.treatFunctionsAsVar?_=X.lexical.indexOf(o)>-1:_=X.lexical.indexOf(o)>-1||X.var.indexOf(o)>-1,X.functions.push(o)}else for(var fe=this.scopeStack.length-1;fe>=0;--fe){var ye=this.scopeStack[fe];if(ye.lexical.indexOf(o)>-1&&!(ye.flags&Z&&ye.lexical[0]===o)||!this.treatFunctionsAsVarInScope(ye)&&ye.functions.indexOf(o)>-1){_=!0;break}if(ye.var.push(o),this.inModule&&ye.flags&ae&&delete this.undefinedExports[o],ye.flags&Ee)break}_&&this.raiseRecoverable(x,"Identifier '"+o+"' has already been declared")},ei.checkLocalExport=function(o){this.scopeStack[0].lexical.indexOf(o.name)===-1&&this.scopeStack[0].var.indexOf(o.name)===-1&&(this.undefinedExports[o.name]=o)},ei.currentScope=function(){return this.scopeStack[this.scopeStack.length-1]},ei.currentVarScope=function(){for(var o=this.scopeStack.length-1;;o--){var d=this.scopeStack[o];if(d.flags&(Ee|me|ie))return d}},ei.currentThisScope=function(){for(var o=this.scopeStack.length-1;;o--){var d=this.scopeStack[o];if(d.flags&(Ee|me|ie)&&!(d.flags&ve))return d}};var Wt=function(d,x,_){this.type="",this.start=x,this.end=0,d.options.locations&&(this.loc=new T(d,_)),d.options.directSourceFile&&(this.sourceFile=d.options.directSourceFile),d.options.ranges&&(this.range=[x,0])},Zi=re.prototype;Zi.startNode=function(){return new Wt(this,this.start,this.startLoc)},Zi.startNodeAt=function(o,d){return new Wt(this,o,d)};function Pi(o,d,x,_){return o.type=d,o.end=x,this.options.locations&&(o.loc.end=_),this.options.ranges&&(o.range[1]=x),o}Zi.finishNode=function(o,d){return Pi.call(this,o,d,this.lastTokEnd,this.lastTokEndLoc)},Zi.finishNodeAt=function(o,d,x,_){return Pi.call(this,o,d,x,_)},Zi.copyNode=function(o){var d=new Wt(this,o.start,this.startLoc);for(var x in o)d[x]=o[x];return d};var pn="Gara Garay Gukh Gurung_Khema Hrkt Katakana_Or_Hiragana Kawi Kirat_Rai Krai Nag_Mundari Nagm Ol_Onal Onao Sunu Sunuwar Todhri Todr Tulu_Tigalari Tutg Unknown Zzzz",$n="ASCII ASCII_Hex_Digit AHex Alphabetic Alpha Any Assigned Bidi_Control Bidi_C Bidi_Mirrored Bidi_M Case_Ignorable CI Cased Changes_When_Casefolded CWCF Changes_When_Casemapped CWCM Changes_When_Lowercased CWL Changes_When_NFKC_Casefolded CWKCF Changes_When_Titlecased CWT Changes_When_Uppercased CWU Dash Default_Ignorable_Code_Point DI Deprecated Dep Diacritic Dia Emoji Emoji_Component Emoji_Modifier Emoji_Modifier_Base Emoji_Presentation Extender Ext Grapheme_Base Gr_Base Grapheme_Extend Gr_Ext Hex_Digit Hex IDS_Binary_Operator IDSB IDS_Trinary_Operator IDST ID_Continue IDC ID_Start IDS Ideographic Ideo Join_Control Join_C Logical_Order_Exception LOE Lowercase Lower Math Noncharacter_Code_Point NChar Pattern_Syntax Pat_Syn Pattern_White_Space Pat_WS Quotation_Mark QMark Radical Regional_Indicator RI Sentence_Terminal STerm Soft_Dotted SD Terminal_Punctuation Term Unified_Ideograph UIdeo Uppercase Upper Variation_Selector VS White_Space space XID_Continue XIDC XID_Start XIDS",_r=$n+" Extended_Pictographic",Ye=_r,dt=Ye+" EBase EComp EMod EPres ExtPict",Ar=dt,xt=Ar,yt={9:$n,10:_r,11:Ye,12:dt,13:Ar,14:xt},Ri="Basic_Emoji Emoji_Keycap_Sequence RGI_Emoji_Modifier_Sequence RGI_Emoji_Flag_Sequence RGI_Emoji_Tag_Sequence RGI_Emoji_ZWJ_Sequence RGI_Emoji",_t={9:"",10:"",11:"",12:"",13:"",14:Ri},ti="Cased_Letter LC Close_Punctuation Pe Connector_Punctuation Pc Control Cc cntrl Currency_Symbol Sc Dash_Punctuation Pd Decimal_Number Nd digit Enclosing_Mark Me Final_Punctuation Pf Format Cf Initial_Punctuation Pi Letter L Letter_Number Nl Line_Separator Zl Lowercase_Letter Ll Mark M Combining_Mark Math_Symbol Sm Modifier_Letter Lm Modifier_Symbol Sk Nonspacing_Mark Mn Number N Open_Punctuation Ps Other C Other_Letter Lo Other_Number No Other_Punctuation Po Other_Symbol So Paragraph_Separator Zp Private_Use Co Punctuation P punct Separator Z Space_Separator Zs Spacing_Mark Mc Surrogate Cs Symbol S Titlecase_Letter Lt Unassigned Cn Uppercase_Letter Lu",ii="Adlam Adlm Ahom Anatolian_Hieroglyphs Hluw Arabic Arab Armenian Armn Avestan Avst Balinese Bali Bamum Bamu Bassa_Vah Bass Batak Batk Bengali Beng Bhaiksuki Bhks Bopomofo Bopo Brahmi Brah Braille Brai Buginese Bugi Buhid Buhd Canadian_Aboriginal Cans Carian Cari Caucasian_Albanian Aghb Chakma Cakm Cham Cham Cherokee Cher Common Zyyy Coptic Copt Qaac Cuneiform Xsux Cypriot Cprt Cyrillic Cyrl Deseret Dsrt Devanagari Deva Duployan Dupl Egyptian_Hieroglyphs Egyp Elbasan Elba Ethiopic Ethi Georgian Geor Glagolitic Glag Gothic Goth Grantha Gran Greek Grek Gujarati Gujr Gurmukhi Guru Han Hani Hangul Hang Hanunoo Hano Hatran Hatr Hebrew Hebr Hiragana Hira Imperial_Aramaic Armi Inherited Zinh Qaai Inscriptional_Pahlavi Phli Inscriptional_Parthian Prti Javanese Java Kaithi Kthi Kannada Knda Katakana Kana Kayah_Li Kali Kharoshthi Khar Khmer Khmr Khojki Khoj Khudawadi Sind Lao Laoo Latin Latn Lepcha Lepc Limbu Limb Linear_A Lina Linear_B Linb Lisu Lisu Lycian Lyci Lydian Lydi Mahajani Mahj Malayalam Mlym Mandaic Mand Manichaean Mani Marchen Marc Masaram_Gondi Gonm Meetei_Mayek Mtei Mende_Kikakui Mend Meroitic_Cursive Merc Meroitic_Hieroglyphs Mero Miao Plrd Modi Mongolian Mong Mro Mroo Multani Mult Myanmar Mymr Nabataean Nbat New_Tai_Lue Talu Newa Newa Nko Nkoo Nushu Nshu Ogham Ogam Ol_Chiki Olck Old_Hungarian Hung Old_Italic Ital Old_North_Arabian Narb Old_Permic Perm Old_Persian Xpeo Old_South_Arabian Sarb Old_Turkic Orkh Oriya Orya Osage Osge Osmanya Osma Pahawh_Hmong Hmng Palmyrene Palm Pau_Cin_Hau Pauc Phags_Pa Phag Phoenician Phnx Psalter_Pahlavi Phlp Rejang Rjng Runic Runr Samaritan Samr Saurashtra Saur Sharada Shrd Shavian Shaw Siddham Sidd SignWriting Sgnw Sinhala Sinh Sora_Sompeng Sora Soyombo Soyo Sundanese Sund Syloti_Nagri Sylo Syriac Syrc Tagalog Tglg Tagbanwa Tagb Tai_Le Tale Tai_Tham Lana Tai_Viet Tavt Takri Takr Tamil Taml Tangut Tang Telugu Telu Thaana Thaa Thai Thai Tibetan Tibt Tifinagh Tfng Tirhuta Tirh Ugaritic Ugar Vai Vaii Warang_Citi Wara Yi Yiii Zanabazar_Square Zanb",ni=ii+" Dogra Dogr Gunjala_Gondi Gong Hanifi_Rohingya Rohg Makasar Maka Medefaidrin Medf Old_Sogdian Sogo Sogdian Sogd",Si=ni+" Elymaic Elym Nandinagari Nand Nyiakeng_Puachue_Hmong Hmnp Wancho Wcho",Xi=Si+" Chorasmian Chrs Diak Dives_Akuru Khitan_Small_Script Kits Yezi Yezidi",Nr=Xi+" Cypro_Minoan Cpmn Old_Uyghur Ougr Tangsa Tnsa Toto Vithkuqi Vith",us=Nr+" "+pn,_m={9:ii,10:ni,11:Si,12:Xi,13:Nr,14:us},Xl={};function Am(o){var d=Xl[o]={binary:de(yt[o]+" "+ti),binaryOfStrings:de(_t[o]),nonBinary:{General_Category:de(ti),Script:de(_m[o])}};d.nonBinary.Script_Extensions=d.nonBinary.Script,d.nonBinary.gc=d.nonBinary.General_Category,d.nonBinary.sc=d.nonBinary.Script,d.nonBinary.scx=d.nonBinary.Script_Extensions}for(var cs=0,eu=[9,10,11,12,13,14];cs<eu.length;cs+=1){var Nm=eu[cs];Am(Nm)}var Ie=re.prototype,Tr=function(d,x){this.parent=d,this.base=x||this};Tr.prototype.separatedFrom=function(d){for(var x=this;x;x=x.parent)for(var _=d;_;_=_.parent)if(x.base===_.base&&x!==_)return!0;return!1},Tr.prototype.sibling=function(){return new Tr(this.parent,this.base)};var di=function(d){this.parser=d,this.validFlags="gim"+(d.options.ecmaVersion>=6?"uy":"")+(d.options.ecmaVersion>=9?"s":"")+(d.options.ecmaVersion>=13?"d":"")+(d.options.ecmaVersion>=15?"v":""),this.unicodeProperties=Xl[d.options.ecmaVersion>=14?14:d.options.ecmaVersion],this.source="",this.flags="",this.start=0,this.switchU=!1,this.switchV=!1,this.switchN=!1,this.pos=0,this.lastIntValue=0,this.lastStringValue="",this.lastAssertionIsQuantifiable=!1,this.numCapturingParens=0,this.maxBackReference=0,this.groupNames=Object.create(null),this.backReferenceNames=[],this.branchID=null};di.prototype.reset=function(d,x,_){var L=_.indexOf("v")!==-1,G=_.indexOf("u")!==-1;this.start=d|0,this.source=x+"",this.flags=_,L&&this.parser.options.ecmaVersion>=15?(this.switchU=!0,this.switchV=!0,this.switchN=!0):(this.switchU=G&&this.parser.options.ecmaVersion>=6,this.switchV=!1,this.switchN=G&&this.parser.options.ecmaVersion>=9)},di.prototype.raise=function(d){this.parser.raiseRecoverable(this.start,"Invalid regular expression: /"+this.source+"/: "+d)},di.prototype.at=function(d,x){x===void 0&&(x=!1);var _=this.source,L=_.length;if(d>=L)return-1;var G=_.charCodeAt(d);if(!(x||this.switchU)||G<=55295||G>=57344||d+1>=L)return G;var X=_.charCodeAt(d+1);return X>=56320&&X<=57343?(G<<10)+X-56613888:G},di.prototype.nextIndex=function(d,x){x===void 0&&(x=!1);var _=this.source,L=_.length;if(d>=L)return L;var G=_.charCodeAt(d),X;return!(x||this.switchU)||G<=55295||G>=57344||d+1>=L||(X=_.charCodeAt(d+1))<56320||X>57343?d+1:d+2},di.prototype.current=function(d){return d===void 0&&(d=!1),this.at(this.pos,d)},di.prototype.lookahead=function(d){return d===void 0&&(d=!1),this.at(this.nextIndex(this.pos,d),d)},di.prototype.advance=function(d){d===void 0&&(d=!1),this.pos=this.nextIndex(this.pos,d)},di.prototype.eat=function(d,x){return x===void 0&&(x=!1),this.current(x)===d?(this.advance(x),!0):!1},di.prototype.eatChars=function(d,x){x===void 0&&(x=!1);for(var _=this.pos,L=0,G=d;L<G.length;L+=1){var X=G[L],fe=this.at(_,x);if(fe===-1||fe!==X)return!1;_=this.nextIndex(_,x)}return this.pos=_,!0},Ie.validateRegExpFlags=function(o){for(var d=o.validFlags,x=o.flags,_=!1,L=!1,G=0;G<x.length;G++){var X=x.charAt(G);d.indexOf(X)===-1&&this.raise(o.start,"Invalid regular expression flag"),x.indexOf(X,G+1)>-1&&this.raise(o.start,"Duplicate regular expression flag"),X==="u"&&(_=!0),X==="v"&&(L=!0)}this.options.ecmaVersion>=15&&_&&L&&this.raise(o.start,"Invalid regular expression flag")};function Tm(o){for(var d in o)return!0;return!1}Ie.validateRegExpPattern=function(o){this.regexp_pattern(o),!o.switchN&&this.options.ecmaVersion>=9&&Tm(o.groupNames)&&(o.switchN=!0,this.regexp_pattern(o))},Ie.regexp_pattern=function(o){o.pos=0,o.lastIntValue=0,o.lastStringValue="",o.lastAssertionIsQuantifiable=!1,o.numCapturingParens=0,o.maxBackReference=0,o.groupNames=Object.create(null),o.backReferenceNames.length=0,o.branchID=null,this.regexp_disjunction(o),o.pos!==o.source.length&&(o.eat(41)&&o.raise("Unmatched ')'"),(o.eat(93)||o.eat(125))&&o.raise("Lone quantifier brackets")),o.maxBackReference>o.numCapturingParens&&o.raise("Invalid escape");for(var d=0,x=o.backReferenceNames;d<x.length;d+=1){var _=x[d];o.groupNames[_]||o.raise("Invalid named capture referenced")}},Ie.regexp_disjunction=function(o){var d=this.options.ecmaVersion>=16;for(d&&(o.branchID=new Tr(o.branchID,null)),this.regexp_alternative(o);o.eat(124);)d&&(o.branchID=o.branchID.sibling()),this.regexp_alternative(o);d&&(o.branchID=o.branchID.parent),this.regexp_eatQuantifier(o,!0)&&o.raise("Nothing to repeat"),o.eat(123)&&o.raise("Lone quantifier brackets")},Ie.regexp_alternative=function(o){for(;o.pos<o.source.length&&this.regexp_eatTerm(o););},Ie.regexp_eatTerm=function(o){return this.regexp_eatAssertion(o)?(o.lastAssertionIsQuantifiable&&this.regexp_eatQuantifier(o)&&o.switchU&&o.raise("Invalid quantifier"),!0):(o.switchU?this.regexp_eatAtom(o):this.regexp_eatExtendedAtom(o))?(this.regexp_eatQuantifier(o),!0):!1},Ie.regexp_eatAssertion=function(o){var d=o.pos;if(o.lastAssertionIsQuantifiable=!1,o.eat(94)||o.eat(36))return!0;if(o.eat(92)){if(o.eat(66)||o.eat(98))return!0;o.pos=d}if(o.eat(40)&&o.eat(63)){var x=!1;if(this.options.ecmaVersion>=9&&(x=o.eat(60)),o.eat(61)||o.eat(33))return this.regexp_disjunction(o),o.eat(41)||o.raise("Unterminated group"),o.lastAssertionIsQuantifiable=!x,!0}return o.pos=d,!1},Ie.regexp_eatQuantifier=function(o,d){return d===void 0&&(d=!1),this.regexp_eatQuantifierPrefix(o,d)?(o.eat(63),!0):!1},Ie.regexp_eatQuantifierPrefix=function(o,d){return o.eat(42)||o.eat(43)||o.eat(63)||this.regexp_eatBracedQuantifier(o,d)},Ie.regexp_eatBracedQuantifier=function(o,d){var x=o.pos;if(o.eat(123)){var _=0,L=-1;if(this.regexp_eatDecimalDigits(o)&&(_=o.lastIntValue,o.eat(44)&&this.regexp_eatDecimalDigits(o)&&(L=o.lastIntValue),o.eat(125)))return L!==-1&&L<_&&!d&&o.raise("numbers out of order in {} quantifier"),!0;o.switchU&&!d&&o.raise("Incomplete quantifier"),o.pos=x}return!1},Ie.regexp_eatAtom=function(o){return this.regexp_eatPatternCharacters(o)||o.eat(46)||this.regexp_eatReverseSolidusAtomEscape(o)||this.regexp_eatCharacterClass(o)||this.regexp_eatUncapturingGroup(o)||this.regexp_eatCapturingGroup(o)},Ie.regexp_eatReverseSolidusAtomEscape=function(o){var d=o.pos;if(o.eat(92)){if(this.regexp_eatAtomEscape(o))return!0;o.pos=d}return!1},Ie.regexp_eatUncapturingGroup=function(o){var d=o.pos;if(o.eat(40)){if(o.eat(63)){if(this.options.ecmaVersion>=16){var x=this.regexp_eatModifiers(o),_=o.eat(45);if(x||_){for(var L=0;L<x.length;L++){var G=x.charAt(L);x.indexOf(G,L+1)>-1&&o.raise("Duplicate regular expression modifiers")}if(_){var X=this.regexp_eatModifiers(o);!x&&!X&&o.current()===58&&o.raise("Invalid regular expression modifiers");for(var fe=0;fe<X.length;fe++){var ye=X.charAt(fe);(X.indexOf(ye,fe+1)>-1||x.indexOf(ye)>-1)&&o.raise("Duplicate regular expression modifiers")}}}}if(o.eat(58)){if(this.regexp_disjunction(o),o.eat(41))return!0;o.raise("Unterminated group")}}o.pos=d}return!1},Ie.regexp_eatCapturingGroup=function(o){if(o.eat(40)){if(this.options.ecmaVersion>=9?this.regexp_groupSpecifier(o):o.current()===63&&o.raise("Invalid group"),this.regexp_disjunction(o),o.eat(41))return o.numCapturingParens+=1,!0;o.raise("Unterminated group")}return!1},Ie.regexp_eatModifiers=function(o){for(var d="",x=0;(x=o.current())!==-1&&Om(x);)d+=C(x),o.advance();return d};function Om(o){return o===105||o===109||o===115}Ie.regexp_eatExtendedAtom=function(o){return o.eat(46)||this.regexp_eatReverseSolidusAtomEscape(o)||this.regexp_eatCharacterClass(o)||this.regexp_eatUncapturingGroup(o)||this.regexp_eatCapturingGroup(o)||this.regexp_eatInvalidBracedQuantifier(o)||this.regexp_eatExtendedPatternCharacter(o)},Ie.regexp_eatInvalidBracedQuantifier=function(o){return this.regexp_eatBracedQuantifier(o,!0)&&o.raise("Nothing to repeat"),!1},Ie.regexp_eatSyntaxCharacter=function(o){var d=o.current();return tu(d)?(o.lastIntValue=d,o.advance(),!0):!1};function tu(o){return o===36||o>=40&&o<=43||o===46||o===63||o>=91&&o<=94||o>=123&&o<=125}Ie.regexp_eatPatternCharacters=function(o){for(var d=o.pos,x=0;(x=o.current())!==-1&&!tu(x);)o.advance();return o.pos!==d},Ie.regexp_eatExtendedPatternCharacter=function(o){var d=o.current();return d!==-1&&d!==36&&!(d>=40&&d<=43)&&d!==46&&d!==63&&d!==91&&d!==94&&d!==124?(o.advance(),!0):!1},Ie.regexp_groupSpecifier=function(o){if(o.eat(63)){this.regexp_eatGroupName(o)||o.raise("Invalid group");var d=this.options.ecmaVersion>=16,x=o.groupNames[o.lastStringValue];if(x)if(d)for(var _=0,L=x;_<L.length;_+=1){var G=L[_];G.separatedFrom(o.branchID)||o.raise("Duplicate capture group name")}else o.raise("Duplicate capture group name");d?(x||(o.groupNames[o.lastStringValue]=[])).push(o.branchID):o.groupNames[o.lastStringValue]=!0}},Ie.regexp_eatGroupName=function(o){if(o.lastStringValue="",o.eat(60)){if(this.regexp_eatRegExpIdentifierName(o)&&o.eat(62))return!0;o.raise("Invalid capture group name")}return!1},Ie.regexp_eatRegExpIdentifierName=function(o){if(o.lastStringValue="",this.regexp_eatRegExpIdentifierStart(o)){for(o.lastStringValue+=C(o.lastIntValue);this.regexp_eatRegExpIdentifierPart(o);)o.lastStringValue+=C(o.lastIntValue);return!0}return!1},Ie.regexp_eatRegExpIdentifierStart=function(o){var d=o.pos,x=this.options.ecmaVersion>=11,_=o.current(x);return o.advance(x),_===92&&this.regexp_eatRegExpUnicodeEscapeSequence(o,x)&&(_=o.lastIntValue),Pm(_)?(o.lastIntValue=_,!0):(o.pos=d,!1)};function Pm(o){return E(o,!0)||o===36||o===95}Ie.regexp_eatRegExpIdentifierPart=function(o){var d=o.pos,x=this.options.ecmaVersion>=11,_=o.current(x);return o.advance(x),_===92&&this.regexp_eatRegExpUnicodeEscapeSequence(o,x)&&(_=o.lastIntValue),Rm(_)?(o.lastIntValue=_,!0):(o.pos=d,!1)};function Rm(o){return v(o,!0)||o===36||o===95||o===8204||o===8205}Ie.regexp_eatAtomEscape=function(o){return this.regexp_eatBackReference(o)||this.regexp_eatCharacterClassEscape(o)||this.regexp_eatCharacterEscape(o)||o.switchN&&this.regexp_eatKGroupName(o)?!0:(o.switchU&&(o.current()===99&&o.raise("Invalid unicode escape"),o.raise("Invalid escape")),!1)},Ie.regexp_eatBackReference=function(o){var d=o.pos;if(this.regexp_eatDecimalEscape(o)){var x=o.lastIntValue;if(o.switchU)return x>o.maxBackReference&&(o.maxBackReference=x),!0;if(x<=o.numCapturingParens)return!0;o.pos=d}return!1},Ie.regexp_eatKGroupName=function(o){if(o.eat(107)){if(this.regexp_eatGroupName(o))return o.backReferenceNames.push(o.lastStringValue),!0;o.raise("Invalid named reference")}return!1},Ie.regexp_eatCharacterEscape=function(o){return this.regexp_eatControlEscape(o)||this.regexp_eatCControlLetter(o)||this.regexp_eatZero(o)||this.regexp_eatHexEscapeSequence(o)||this.regexp_eatRegExpUnicodeEscapeSequence(o,!1)||!o.switchU&&this.regexp_eatLegacyOctalEscapeSequence(o)||this.regexp_eatIdentityEscape(o)},Ie.regexp_eatCControlLetter=function(o){var d=o.pos;if(o.eat(99)){if(this.regexp_eatControlLetter(o))return!0;o.pos=d}return!1},Ie.regexp_eatZero=function(o){return o.current()===48&&!Or(o.lookahead())?(o.lastIntValue=0,o.advance(),!0):!1},Ie.regexp_eatControlEscape=function(o){var d=o.current();return d===116?(o.lastIntValue=9,o.advance(),!0):d===110?(o.lastIntValue=10,o.advance(),!0):d===118?(o.lastIntValue=11,o.advance(),!0):d===102?(o.lastIntValue=12,o.advance(),!0):d===114?(o.lastIntValue=13,o.advance(),!0):!1},Ie.regexp_eatControlLetter=function(o){var d=o.current();return iu(d)?(o.lastIntValue=d%32,o.advance(),!0):!1};function iu(o){return o>=65&&o<=90||o>=97&&o<=122}Ie.regexp_eatRegExpUnicodeEscapeSequence=function(o,d){d===void 0&&(d=!1);var x=o.pos,_=d||o.switchU;if(o.eat(117)){if(this.regexp_eatFixedHexDigits(o,4)){var L=o.lastIntValue;if(_&&L>=55296&&L<=56319){var G=o.pos;if(o.eat(92)&&o.eat(117)&&this.regexp_eatFixedHexDigits(o,4)){var X=o.lastIntValue;if(X>=56320&&X<=57343)return o.lastIntValue=(L-55296)*1024+(X-56320)+65536,!0}o.pos=G,o.lastIntValue=L}return!0}if(_&&o.eat(123)&&this.regexp_eatHexDigits(o)&&o.eat(125)&&Mm(o.lastIntValue))return!0;_&&o.raise("Invalid unicode escape"),o.pos=x}return!1};function Mm(o){return o>=0&&o<=1114111}Ie.regexp_eatIdentityEscape=function(o){if(o.switchU)return this.regexp_eatSyntaxCharacter(o)?!0:o.eat(47)?(o.lastIntValue=47,!0):!1;var d=o.current();return d!==99&&(!o.switchN||d!==107)?(o.lastIntValue=d,o.advance(),!0):!1},Ie.regexp_eatDecimalEscape=function(o){o.lastIntValue=0;var d=o.current();if(d>=49&&d<=57){do o.lastIntValue=10*o.lastIntValue+(d-48),o.advance();while((d=o.current())>=48&&d<=57);return!0}return!1};var nu=0,Ei=1,Ut=2;Ie.regexp_eatCharacterClassEscape=function(o){var d=o.current();if(Lm(d))return o.lastIntValue=-1,o.advance(),Ei;var x=!1;if(o.switchU&&this.options.ecmaVersion>=9&&((x=d===80)||d===112)){o.lastIntValue=-1,o.advance();var _;if(o.eat(123)&&(_=this.regexp_eatUnicodePropertyValueExpression(o))&&o.eat(125))return x&&_===Ut&&o.raise("Invalid property name"),_;o.raise("Invalid property name")}return nu};function Lm(o){return o===100||o===68||o===115||o===83||o===119||o===87}Ie.regexp_eatUnicodePropertyValueExpression=function(o){var d=o.pos;if(this.regexp_eatUnicodePropertyName(o)&&o.eat(61)){var x=o.lastStringValue;if(this.regexp_eatUnicodePropertyValue(o)){var _=o.lastStringValue;return this.regexp_validateUnicodePropertyNameAndValue(o,x,_),Ei}}if(o.pos=d,this.regexp_eatLoneUnicodePropertyNameOrValue(o)){var L=o.lastStringValue;return this.regexp_validateUnicodePropertyNameOrValue(o,L)}return nu},Ie.regexp_validateUnicodePropertyNameAndValue=function(o,d,x){j(o.unicodeProperties.nonBinary,d)||o.raise("Invalid property name"),o.unicodeProperties.nonBinary[d].test(x)||o.raise("Invalid property value")},Ie.regexp_validateUnicodePropertyNameOrValue=function(o,d){if(o.unicodeProperties.binary.test(d))return Ei;if(o.switchV&&o.unicodeProperties.binaryOfStrings.test(d))return Ut;o.raise("Invalid property name")},Ie.regexp_eatUnicodePropertyName=function(o){var d=0;for(o.lastStringValue="";ru(d=o.current());)o.lastStringValue+=C(d),o.advance();return o.lastStringValue!==""};function ru(o){return iu(o)||o===95}Ie.regexp_eatUnicodePropertyValue=function(o){var d=0;for(o.lastStringValue="";Dm(d=o.current());)o.lastStringValue+=C(d),o.advance();return o.lastStringValue!==""};function Dm(o){return ru(o)||Or(o)}Ie.regexp_eatLoneUnicodePropertyNameOrValue=function(o){return this.regexp_eatUnicodePropertyValue(o)},Ie.regexp_eatCharacterClass=function(o){if(o.eat(91)){var d=o.eat(94),x=this.regexp_classContents(o);return o.eat(93)||o.raise("Unterminated character class"),d&&x===Ut&&o.raise("Negated character class may contain strings"),!0}return!1},Ie.regexp_classContents=function(o){return o.current()===93?Ei:o.switchV?this.regexp_classSetExpression(o):(this.regexp_nonEmptyClassRanges(o),Ei)},Ie.regexp_nonEmptyClassRanges=function(o){for(;this.regexp_eatClassAtom(o);){var d=o.lastIntValue;if(o.eat(45)&&this.regexp_eatClassAtom(o)){var x=o.lastIntValue;o.switchU&&(d===-1||x===-1)&&o.raise("Invalid character class"),d!==-1&&x!==-1&&d>x&&o.raise("Range out of order in character class")}}},Ie.regexp_eatClassAtom=function(o){var d=o.pos;if(o.eat(92)){if(this.regexp_eatClassEscape(o))return!0;if(o.switchU){var x=o.current();(x===99||ou(x))&&o.raise("Invalid class escape"),o.raise("Invalid escape")}o.pos=d}var _=o.current();return _!==93?(o.lastIntValue=_,o.advance(),!0):!1},Ie.regexp_eatClassEscape=function(o){var d=o.pos;if(o.eat(98))return o.lastIntValue=8,!0;if(o.switchU&&o.eat(45))return o.lastIntValue=45,!0;if(!o.switchU&&o.eat(99)){if(this.regexp_eatClassControlLetter(o))return!0;o.pos=d}return this.regexp_eatCharacterClassEscape(o)||this.regexp_eatCharacterEscape(o)},Ie.regexp_classSetExpression=function(o){var d=Ei,x;if(!this.regexp_eatClassSetRange(o))if(x=this.regexp_eatClassSetOperand(o)){x===Ut&&(d=Ut);for(var _=o.pos;o.eatChars([38,38]);){if(o.current()!==38&&(x=this.regexp_eatClassSetOperand(o))){x!==Ut&&(d=Ei);continue}o.raise("Invalid character in character class")}if(_!==o.pos)return d;for(;o.eatChars([45,45]);)this.regexp_eatClassSetOperand(o)||o.raise("Invalid character in character class");if(_!==o.pos)return d}else o.raise("Invalid character in character class");for(;;)if(!this.regexp_eatClassSetRange(o)){if(x=this.regexp_eatClassSetOperand(o),!x)return d;x===Ut&&(d=Ut)}},Ie.regexp_eatClassSetRange=function(o){var d=o.pos;if(this.regexp_eatClassSetCharacter(o)){var x=o.lastIntValue;if(o.eat(45)&&this.regexp_eatClassSetCharacter(o)){var _=o.lastIntValue;return x!==-1&&_!==-1&&x>_&&o.raise("Range out of order in character class"),!0}o.pos=d}return!1},Ie.regexp_eatClassSetOperand=function(o){return this.regexp_eatClassSetCharacter(o)?Ei:this.regexp_eatClassStringDisjunction(o)||this.regexp_eatNestedClass(o)},Ie.regexp_eatNestedClass=function(o){var d=o.pos;if(o.eat(91)){var x=o.eat(94),_=this.regexp_classContents(o);if(o.eat(93))return x&&_===Ut&&o.raise("Negated character class may contain strings"),_;o.pos=d}if(o.eat(92)){var L=this.regexp_eatCharacterClassEscape(o);if(L)return L;o.pos=d}return null},Ie.regexp_eatClassStringDisjunction=function(o){var d=o.pos;if(o.eatChars([92,113])){if(o.eat(123)){var x=this.regexp_classStringDisjunctionContents(o);if(o.eat(125))return x}else o.raise("Invalid escape");o.pos=d}return null},Ie.regexp_classStringDisjunctionContents=function(o){for(var d=this.regexp_classString(o);o.eat(124);)this.regexp_classString(o)===Ut&&(d=Ut);return d},Ie.regexp_classString=function(o){for(var d=0;this.regexp_eatClassSetCharacter(o);)d++;return d===1?Ei:Ut},Ie.regexp_eatClassSetCharacter=function(o){var d=o.pos;if(o.eat(92))return this.regexp_eatCharacterEscape(o)||this.regexp_eatClassSetReservedPunctuator(o)?!0:o.eat(98)?(o.lastIntValue=8,!0):(o.pos=d,!1);var x=o.current();return x<0||x===o.lookahead()&&Fm(x)||jm(x)?!1:(o.advance(),o.lastIntValue=x,!0)};function Fm(o){return o===33||o>=35&&o<=38||o>=42&&o<=44||o===46||o>=58&&o<=64||o===94||o===96||o===126}function jm(o){return o===40||o===41||o===45||o===47||o>=91&&o<=93||o>=123&&o<=125}Ie.regexp_eatClassSetReservedPunctuator=function(o){var d=o.current();return zm(d)?(o.lastIntValue=d,o.advance(),!0):!1};function zm(o){return o===33||o===35||o===37||o===38||o===44||o===45||o>=58&&o<=62||o===64||o===96||o===126}Ie.regexp_eatClassControlLetter=function(o){var d=o.current();return Or(d)||d===95?(o.lastIntValue=d%32,o.advance(),!0):!1},Ie.regexp_eatHexEscapeSequence=function(o){var d=o.pos;if(o.eat(120)){if(this.regexp_eatFixedHexDigits(o,2))return!0;o.switchU&&o.raise("Invalid escape"),o.pos=d}return!1},Ie.regexp_eatDecimalDigits=function(o){var d=o.pos,x=0;for(o.lastIntValue=0;Or(x=o.current());)o.lastIntValue=10*o.lastIntValue+(x-48),o.advance();return o.pos!==d};function Or(o){return o>=48&&o<=57}Ie.regexp_eatHexDigits=function(o){var d=o.pos,x=0;for(o.lastIntValue=0;au(x=o.current());)o.lastIntValue=16*o.lastIntValue+su(x),o.advance();return o.pos!==d};function au(o){return o>=48&&o<=57||o>=65&&o<=70||o>=97&&o<=102}function su(o){return o>=65&&o<=70?10+(o-65):o>=97&&o<=102?10+(o-97):o-48}Ie.regexp_eatLegacyOctalEscapeSequence=function(o){if(this.regexp_eatOctalDigit(o)){var d=o.lastIntValue;if(this.regexp_eatOctalDigit(o)){var x=o.lastIntValue;d<=3&&this.regexp_eatOctalDigit(o)?o.lastIntValue=d*64+x*8+o.lastIntValue:o.lastIntValue=d*8+x}else o.lastIntValue=d;return!0}return!1},Ie.regexp_eatOctalDigit=function(o){var d=o.current();return ou(d)?(o.lastIntValue=d-48,o.advance(),!0):(o.lastIntValue=0,!1)};function ou(o){return o>=48&&o<=55}Ie.regexp_eatFixedHexDigits=function(o,d){var x=o.pos;o.lastIntValue=0;for(var _=0;_<d;++_){var L=o.current();if(!au(L))return o.pos=x,!1;o.lastIntValue=16*o.lastIntValue+su(L),o.advance()}return!0};var Pr=function(d){this.type=d.type,this.value=d.value,this.start=d.start,this.end=d.end,d.options.locations&&(this.loc=new T(d,d.startLoc,d.endLoc)),d.options.ranges&&(this.range=[d.start,d.end])},Ue=re.prototype;Ue.next=function(o){!o&&this.type.keyword&&this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword "+this.type.keyword),this.options.onToken&&this.options.onToken(new Pr(this)),this.lastTokEnd=this.end,this.lastTokStart=this.start,this.lastTokEndLoc=this.endLoc,this.lastTokStartLoc=this.startLoc,this.nextToken()},Ue.getToken=function(){return this.next(),new Pr(this)},typeof Symbol<"u"&&(Ue[Symbol.iterator]=function(){var o=this;return{next:function(){var d=o.getToken();return{done:d.type===f.eof,value:d}}}}),Ue.nextToken=function(){var o=this.curContext();if((!o||!o.preserveSpace)&&this.skipSpace(),this.start=this.pos,this.options.locations&&(this.startLoc=this.curPosition()),this.pos>=this.input.length)return this.finishToken(f.eof);if(o.override)return o.override(this);this.readToken(this.fullCharCodeAtPos())},Ue.readToken=function(o){return E(o,this.options.ecmaVersion>=6)||o===92?this.readWord():this.getTokenFromCode(o)},Ue.fullCharCodeAtPos=function(){var o=this.input.charCodeAt(this.pos);if(o<=55295||o>=56320)return o;var d=this.input.charCodeAt(this.pos+1);return d<=56319||d>=57344?o:(o<<10)+d-56613888},Ue.skipBlockComment=function(){var o=this.options.onComment&&this.curPosition(),d=this.pos,x=this.input.indexOf("*/",this.pos+=2);if(x===-1&&this.raise(this.pos-2,"Unterminated comment"),this.pos=x+2,this.options.locations)for(var _=void 0,L=d;(_=D(this.input,L,this.pos))>-1;)++this.curLine,L=this.lineStart=_;this.options.onComment&&this.options.onComment(!0,this.input.slice(d+2,x),d,this.pos,o,this.curPosition())},Ue.skipLineComment=function(o){for(var d=this.pos,x=this.options.onComment&&this.curPosition(),_=this.input.charCodeAt(this.pos+=o);this.pos<this.input.length&&!F(_);)_=this.input.charCodeAt(++this.pos);this.options.onComment&&this.options.onComment(!1,this.input.slice(d+o,this.pos),d,this.pos,x,this.curPosition())},Ue.skipSpace=function(){e:for(;this.pos<this.input.length;){var o=this.input.charCodeAt(this.pos);switch(o){case 32:case 160:++this.pos;break;case 13:this.input.charCodeAt(this.pos+1)===10&&++this.pos;case 10:case 8232:case 8233:++this.pos,this.options.locations&&(++this.curLine,this.lineStart=this.pos);break;case 47:switch(this.input.charCodeAt(this.pos+1)){case 42:this.skipBlockComment();break;case 47:this.skipLineComment(2);break;default:break e}break;default:if(o>8&&o<14||o>=5760&&V.test(String.fromCharCode(o)))++this.pos;else break e}}},Ue.finishToken=function(o,d){this.end=this.pos,this.options.locations&&(this.endLoc=this.curPosition());var x=this.type;this.type=o,this.value=d,this.updateContext(x)},Ue.readToken_dot=function(){var o=this.input.charCodeAt(this.pos+1);if(o>=48&&o<=57)return this.readNumber(!0);var d=this.input.charCodeAt(this.pos+2);return this.options.ecmaVersion>=6&&o===46&&d===46?(this.pos+=3,this.finishToken(f.ellipsis)):(++this.pos,this.finishToken(f.dot))},Ue.readToken_slash=function(){var o=this.input.charCodeAt(this.pos+1);return this.exprAllowed?(++this.pos,this.readRegexp()):o===61?this.finishOp(f.assign,2):this.finishOp(f.slash,1)},Ue.readToken_mult_modulo_exp=function(o){var d=this.input.charCodeAt(this.pos+1),x=1,_=o===42?f.star:f.modulo;return this.options.ecmaVersion>=7&&o===42&&d===42&&(++x,_=f.starstar,d=this.input.charCodeAt(this.pos+2)),d===61?this.finishOp(f.assign,x+1):this.finishOp(_,x)},Ue.readToken_pipe_amp=function(o){var d=this.input.charCodeAt(this.pos+1);if(d===o){if(this.options.ecmaVersion>=12){var x=this.input.charCodeAt(this.pos+2);if(x===61)return this.finishOp(f.assign,3)}return this.finishOp(o===124?f.logicalOR:f.logicalAND,2)}return d===61?this.finishOp(f.assign,2):this.finishOp(o===124?f.bitwiseOR:f.bitwiseAND,1)},Ue.readToken_caret=function(){var o=this.input.charCodeAt(this.pos+1);return o===61?this.finishOp(f.assign,2):this.finishOp(f.bitwiseXOR,1)},Ue.readToken_plus_min=function(o){var d=this.input.charCodeAt(this.pos+1);return d===o?d===45&&!this.inModule&&this.input.charCodeAt(this.pos+2)===62&&(this.lastTokEnd===0||O.test(this.input.slice(this.lastTokEnd,this.pos)))?(this.skipLineComment(3),this.skipSpace(),this.nextToken()):this.finishOp(f.incDec,2):d===61?this.finishOp(f.assign,2):this.finishOp(f.plusMin,1)},Ue.readToken_lt_gt=function(o){var d=this.input.charCodeAt(this.pos+1),x=1;return d===o?(x=o===62&&this.input.charCodeAt(this.pos+2)===62?3:2,this.input.charCodeAt(this.pos+x)===61?this.finishOp(f.assign,x+1):this.finishOp(f.bitShift,x)):d===33&&o===60&&!this.inModule&&this.input.charCodeAt(this.pos+2)===45&&this.input.charCodeAt(this.pos+3)===45?(this.skipLineComment(4),this.skipSpace(),this.nextToken()):(d===61&&(x=2),this.finishOp(f.relational,x))},Ue.readToken_eq_excl=function(o){var d=this.input.charCodeAt(this.pos+1);return d===61?this.finishOp(f.equality,this.input.charCodeAt(this.pos+2)===61?3:2):o===61&&d===62&&this.options.ecmaVersion>=6?(this.pos+=2,this.finishToken(f.arrow)):this.finishOp(o===61?f.eq:f.prefix,1)},Ue.readToken_question=function(){var o=this.options.ecmaVersion;if(o>=11){var d=this.input.charCodeAt(this.pos+1);if(d===46){var x=this.input.charCodeAt(this.pos+2);if(x<48||x>57)return this.finishOp(f.questionDot,2)}if(d===63){if(o>=12){var _=this.input.charCodeAt(this.pos+2);if(_===61)return this.finishOp(f.assign,3)}return this.finishOp(f.coalesce,2)}}return this.finishOp(f.question,1)},Ue.readToken_numberSign=function(){var o=this.options.ecmaVersion,d=35;if(o>=13&&(++this.pos,d=this.fullCharCodeAtPos(),E(d,!0)||d===92))return this.finishToken(f.privateId,this.readWord1());this.raise(this.pos,"Unexpected character '"+C(d)+"'")},Ue.getTokenFromCode=function(o){switch(o){case 46:return this.readToken_dot();case 40:return++this.pos,this.finishToken(f.parenL);case 41:return++this.pos,this.finishToken(f.parenR);case 59:return++this.pos,this.finishToken(f.semi);case 44:return++this.pos,this.finishToken(f.comma);case 91:return++this.pos,this.finishToken(f.bracketL);case 93:return++this.pos,this.finishToken(f.bracketR);case 123:return++this.pos,this.finishToken(f.braceL);case 125:return++this.pos,this.finishToken(f.braceR);case 58:return++this.pos,this.finishToken(f.colon);case 96:if(this.options.ecmaVersion<6)break;return++this.pos,this.finishToken(f.backQuote);case 48:var d=this.input.charCodeAt(this.pos+1);if(d===120||d===88)return this.readRadixNumber(16);if(this.options.ecmaVersion>=6){if(d===111||d===79)return this.readRadixNumber(8);if(d===98||d===66)return this.readRadixNumber(2)}case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return this.readNumber(!1);case 34:case 39:return this.readString(o);case 47:return this.readToken_slash();case 37:case 42:return this.readToken_mult_modulo_exp(o);case 124:case 38:return this.readToken_pipe_amp(o);case 94:return this.readToken_caret();case 43:case 45:return this.readToken_plus_min(o);case 60:case 62:return this.readToken_lt_gt(o);case 61:case 33:return this.readToken_eq_excl(o);case 63:return this.readToken_question();case 126:return this.finishOp(f.prefix,1);case 35:return this.readToken_numberSign()}this.raise(this.pos,"Unexpected character '"+C(o)+"'")},Ue.finishOp=function(o,d){var x=this.input.slice(this.pos,this.pos+d);return this.pos+=d,this.finishToken(o,x)},Ue.readRegexp=function(){for(var o,d,x=this.pos;;){this.pos>=this.input.length&&this.raise(x,"Unterminated regular expression");var _=this.input.charAt(this.pos);if(O.test(_)&&this.raise(x,"Unterminated regular expression"),o)o=!1;else{if(_==="[")d=!0;else if(_==="]"&&d)d=!1;else if(_==="/"&&!d)break;o=_==="\\"}++this.pos}var L=this.input.slice(x,this.pos);++this.pos;var G=this.pos,X=this.readWord1();this.containsEsc&&this.unexpected(G);var fe=this.regexpState||(this.regexpState=new di(this));fe.reset(x,L,X),this.validateRegExpFlags(fe),this.validateRegExpPattern(fe);var ye=null;try{ye=new RegExp(L,X)}catch{}return this.finishToken(f.regexp,{pattern:L,flags:X,value:ye})},Ue.readInt=function(o,d,x){for(var _=this.options.ecmaVersion>=12&&d===void 0,L=x&&this.input.charCodeAt(this.pos)===48,G=this.pos,X=0,fe=0,ye=0,De=d??1/0;ye<De;++ye,++this.pos){var He=this.input.charCodeAt(this.pos),at=void 0;if(_&&He===95){L&&this.raiseRecoverable(this.pos,"Numeric separator is not allowed in legacy octal numeric literals"),fe===95&&this.raiseRecoverable(this.pos,"Numeric separator must be exactly one underscore"),ye===0&&this.raiseRecoverable(this.pos,"Numeric separator is not allowed at the first of digits"),fe=He;continue}if(He>=97?at=He-97+10:He>=65?at=He-65+10:He>=48&&He<=57?at=He-48:at=1/0,at>=o)break;fe=He,X=X*o+at}return _&&fe===95&&this.raiseRecoverable(this.pos-1,"Numeric separator is not allowed at the last of digits"),this.pos===G||d!=null&&this.pos-G!==d?null:X};function Vm(o,d){return d?parseInt(o,8):parseFloat(o.replace(/_/g,""))}function lu(o){return typeof BigInt!="function"?null:BigInt(o.replace(/_/g,""))}Ue.readRadixNumber=function(o){var d=this.pos;this.pos+=2;var x=this.readInt(o);return x==null&&this.raise(this.start+2,"Expected number in radix "+o),this.options.ecmaVersion>=11&&this.input.charCodeAt(this.pos)===110?(x=lu(this.input.slice(d,this.pos)),++this.pos):E(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number"),this.finishToken(f.num,x)},Ue.readNumber=function(o){var d=this.pos;!o&&this.readInt(10,void 0,!0)===null&&this.raise(d,"Invalid number");var x=this.pos-d>=2&&this.input.charCodeAt(d)===48;x&&this.strict&&this.raise(d,"Invalid number");var _=this.input.charCodeAt(this.pos);if(!x&&!o&&this.options.ecmaVersion>=11&&_===110){var L=lu(this.input.slice(d,this.pos));return++this.pos,E(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number"),this.finishToken(f.num,L)}x&&/[89]/.test(this.input.slice(d,this.pos))&&(x=!1),_===46&&!x&&(++this.pos,this.readInt(10),_=this.input.charCodeAt(this.pos)),(_===69||_===101)&&!x&&(_=this.input.charCodeAt(++this.pos),(_===43||_===45)&&++this.pos,this.readInt(10)===null&&this.raise(d,"Invalid number")),E(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number");var G=Vm(this.input.slice(d,this.pos),x);return this.finishToken(f.num,G)},Ue.readCodePoint=function(){var o=this.input.charCodeAt(this.pos),d;if(o===123){this.options.ecmaVersion<6&&this.unexpected();var x=++this.pos;d=this.readHexChar(this.input.indexOf("}",this.pos)-this.pos),++this.pos,d>1114111&&this.invalidStringToken(x,"Code point out of bounds")}else d=this.readHexChar(4);return d},Ue.readString=function(o){for(var d="",x=++this.pos;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated string constant");var _=this.input.charCodeAt(this.pos);if(_===o)break;_===92?(d+=this.input.slice(x,this.pos),d+=this.readEscapedChar(!1),x=this.pos):_===8232||_===8233?(this.options.ecmaVersion<10&&this.raise(this.start,"Unterminated string constant"),++this.pos,this.options.locations&&(this.curLine++,this.lineStart=this.pos)):(F(_)&&this.raise(this.start,"Unterminated string constant"),++this.pos)}return d+=this.input.slice(x,this.pos++),this.finishToken(f.string,d)};var uu={};Ue.tryReadTemplateToken=function(){this.inTemplateElement=!0;try{this.readTmplToken()}catch(o){if(o===uu)this.readInvalidTemplateToken();else throw o}this.inTemplateElement=!1},Ue.invalidStringToken=function(o,d){if(this.inTemplateElement&&this.options.ecmaVersion>=9)throw uu;this.raise(o,d)},Ue.readTmplToken=function(){for(var o="",d=this.pos;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated template");var x=this.input.charCodeAt(this.pos);if(x===96||x===36&&this.input.charCodeAt(this.pos+1)===123)return this.pos===this.start&&(this.type===f.template||this.type===f.invalidTemplate)?x===36?(this.pos+=2,this.finishToken(f.dollarBraceL)):(++this.pos,this.finishToken(f.backQuote)):(o+=this.input.slice(d,this.pos),this.finishToken(f.template,o));if(x===92)o+=this.input.slice(d,this.pos),o+=this.readEscapedChar(!0),d=this.pos;else if(F(x)){switch(o+=this.input.slice(d,this.pos),++this.pos,x){case 13:this.input.charCodeAt(this.pos)===10&&++this.pos;case 10:o+=`
80
- `;break;default:o+=String.fromCharCode(x);break}this.options.locations&&(++this.curLine,this.lineStart=this.pos),d=this.pos}else++this.pos}},Ue.readInvalidTemplateToken=function(){for(;this.pos<this.input.length;this.pos++)switch(this.input[this.pos]){case"\\":++this.pos;break;case"$":if(this.input[this.pos+1]!=="{")break;case"`":return this.finishToken(f.invalidTemplate,this.input.slice(this.start,this.pos));case"\r":this.input[this.pos+1]===`
27
+ `),cooked:this.value},this.next(),x.tail=this.type===g.backQuote,this.finishNode(x,"TemplateElement")},Oe.parseTemplate=function(a){a===void 0&&(a={});var c=a.isTagged;c===void 0&&(c=!1);var x=this.startNode();this.next(),x.expressions=[];var w=this.parseTemplateElement({isTagged:c});for(x.quasis=[w];!w.tail;)this.type===g.eof&&this.raise(this.pos,"Unterminated template literal"),this.expect(g.dollarBraceL),x.expressions.push(this.parseExpression()),this.expect(g.braceR),x.quasis.push(w=this.parseTemplateElement({isTagged:c}));return this.next(),this.finishNode(x,"TemplateLiteral")},Oe.isAsyncProp=function(a){return!a.computed&&a.key.type==="Identifier"&&a.key.name==="async"&&(this.type===g.name||this.type===g.num||this.type===g.string||this.type===g.bracketL||this.type.keyword||this.options.ecmaVersion>=9&&this.type===g.star)&&!A.test(this.input.slice(this.lastTokEnd,this.start))},Oe.parseObj=function(a,c){var x=this.startNode(),w=!0,P={};for(x.properties=[],this.next();!this.eat(g.braceR);){if(w)w=!1;else if(this.expect(g.comma),this.options.ecmaVersion>=5&&this.afterTrailingComma(g.braceR))break;var z=this.parseProperty(a,c);a||this.checkPropClash(z,P,c),x.properties.push(z)}return this.finishNode(x,a?"ObjectPattern":"ObjectExpression")},Oe.parseProperty=function(a,c){var x=this.startNode(),w,P,z,q;if(this.options.ecmaVersion>=9&&this.eat(g.ellipsis))return a?(x.argument=this.parseIdent(!1),this.type===g.comma&&this.raiseRecoverable(this.start,"Comma is not permitted after the rest element"),this.finishNode(x,"RestElement")):(x.argument=this.parseMaybeAssign(!1,c),this.type===g.comma&&c&&c.trailingComma<0&&(c.trailingComma=this.start),this.finishNode(x,"SpreadElement"));this.options.ecmaVersion>=6&&(x.method=!1,x.shorthand=!1,(a||c)&&(z=this.start,q=this.startLoc),a||(w=this.eat(g.star)));var ce=this.containsEsc;return this.parsePropertyName(x),!a&&!ce&&this.options.ecmaVersion>=8&&!w&&this.isAsyncProp(x)?(P=!0,w=this.options.ecmaVersion>=9&&this.eat(g.star),this.parsePropertyName(x)):P=!1,this.parsePropertyValue(x,a,w,P,z,q,c,ce),this.finishNode(x,"Property")},Oe.parseGetterSetter=function(a){var c=a.key.name;this.parsePropertyName(a),a.value=this.parseMethod(!1),a.kind=c;var x=a.kind==="get"?0:1;if(a.value.params.length!==x){var w=a.value.start;a.kind==="get"?this.raiseRecoverable(w,"getter should have no params"):this.raiseRecoverable(w,"setter should have exactly one param")}else a.kind==="set"&&a.value.params[0].type==="RestElement"&&this.raiseRecoverable(a.value.params[0].start,"Setter cannot use rest params")},Oe.parsePropertyValue=function(a,c,x,w,P,z,q,ce){(x||w)&&this.type===g.colon&&this.unexpected(),this.eat(g.colon)?(a.value=c?this.parseMaybeDefault(this.start,this.startLoc):this.parseMaybeAssign(!1,q),a.kind="init"):this.options.ecmaVersion>=6&&this.type===g.parenL?(c&&this.unexpected(),a.method=!0,a.value=this.parseMethod(x,w),a.kind="init"):!c&&!ce&&this.options.ecmaVersion>=5&&!a.computed&&a.key.type==="Identifier"&&(a.key.name==="get"||a.key.name==="set")&&this.type!==g.comma&&this.type!==g.braceR&&this.type!==g.eq?((x||w)&&this.unexpected(),this.parseGetterSetter(a)):this.options.ecmaVersion>=6&&!a.computed&&a.key.type==="Identifier"?((x||w)&&this.unexpected(),this.checkUnreserved(a.key),a.key.name==="await"&&!this.awaitIdentPos&&(this.awaitIdentPos=P),c?a.value=this.parseMaybeDefault(P,z,this.copyNode(a.key)):this.type===g.eq&&q?(q.shorthandAssign<0&&(q.shorthandAssign=this.start),a.value=this.parseMaybeDefault(P,z,this.copyNode(a.key))):a.value=this.copyNode(a.key),a.kind="init",a.shorthand=!0):this.unexpected()},Oe.parsePropertyName=function(a){if(this.options.ecmaVersion>=6){if(this.eat(g.bracketL))return a.computed=!0,a.key=this.parseMaybeAssign(),this.expect(g.bracketR),a.key;a.computed=!1}return a.key=this.type===g.num||this.type===g.string?this.parseExprAtom():this.parseIdent(this.options.allowReserved!=="never")},Oe.initFunction=function(a){a.id=null,this.options.ecmaVersion>=6&&(a.generator=a.expression=!1),this.options.ecmaVersion>=8&&(a.async=!1)},Oe.parseMethod=function(a,c,x){var w=this.startNode(),P=this.yieldPos,z=this.awaitPos,q=this.awaitIdentPos;return this.initFunction(w),this.options.ecmaVersion>=6&&(w.generator=a),this.options.ecmaVersion>=8&&(w.async=!!c),this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(Pe(c,w.generator)|de|(x?Se:0)),this.expect(g.parenL),w.params=this.parseBindingList(g.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams(),this.parseFunctionBody(w,!1,!0,!1),this.yieldPos=P,this.awaitPos=z,this.awaitIdentPos=q,this.finishNode(w,"FunctionExpression")},Oe.parseArrowExpression=function(a,c,x,w){var P=this.yieldPos,z=this.awaitPos,q=this.awaitIdentPos;return this.enterScope(Pe(x,!1)|Y),this.initFunction(a),this.options.ecmaVersion>=8&&(a.async=!!x),this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,a.params=this.toAssignableList(c,!0),this.parseFunctionBody(a,!0,!1,w),this.yieldPos=P,this.awaitPos=z,this.awaitIdentPos=q,this.finishNode(a,"ArrowFunctionExpression")},Oe.parseFunctionBody=function(a,c,x,w){var P=c&&this.type!==g.braceL,z=this.strict,q=!1;if(P)a.body=this.parseMaybeAssign(w),a.expression=!0,this.checkParams(a,!1);else{var ce=this.options.ecmaVersion>=7&&!this.isSimpleParamList(a.params);(!z||ce)&&(q=this.strictDirective(this.end),q&&ce&&this.raiseRecoverable(a.start,"Illegal 'use strict' directive in function with non-simple parameter list"));var pe=this.labels;this.labels=[],q&&(this.strict=!0),this.checkParams(a,!z&&!q&&!c&&!x&&this.isSimpleParamList(a.params)),this.strict&&a.id&&this.checkLValSimple(a.id,re),a.body=this.parseBlock(!1,void 0,q&&!z),a.expression=!1,this.adaptDirectivePrologue(a.body.body),this.labels=pe}this.exitScope()},Oe.isSimpleParamList=function(a){for(var c=0,x=a;c<x.length;c+=1){var w=x[c];if(w.type!=="Identifier")return!1}return!0},Oe.checkParams=function(a,c){for(var x=Object.create(null),w=0,P=a.params;w<P.length;w+=1){var z=P[w];this.checkLValInnerPattern(z,$e,c?null:x)}},Oe.parseExprList=function(a,c,x,w){for(var P=[],z=!0;!this.eat(a);){if(z)z=!1;else if(this.expect(g.comma),c&&this.afterTrailingComma(a))break;var q=void 0;x&&this.type===g.comma?q=null:this.type===g.ellipsis?(q=this.parseSpread(w),w&&this.type===g.comma&&w.trailingComma<0&&(w.trailingComma=this.start)):q=this.parseMaybeAssign(!1,w),P.push(q)}return P},Oe.checkUnreserved=function(a){var c=a.start,x=a.end,w=a.name;if(this.inGenerator&&w==="yield"&&this.raiseRecoverable(c,"Cannot use 'yield' as identifier inside a generator"),this.inAsync&&w==="await"&&this.raiseRecoverable(c,"Cannot use 'await' as identifier inside an async function"),!(this.currentThisScope().flags&be)&&w==="arguments"&&this.raiseRecoverable(c,"Cannot use 'arguments' in class field initializer"),this.inClassStaticBlock&&(w==="arguments"||w==="await")&&this.raise(c,"Cannot use "+w+" in class static initialization block"),this.keywords.test(w)&&this.raise(c,"Unexpected keyword '"+w+"'"),!(this.options.ecmaVersion<6&&this.input.slice(c,x).indexOf("\\")!==-1)){var P=this.strict?this.reservedWordsStrict:this.reservedWords;P.test(w)&&(!this.inAsync&&w==="await"&&this.raiseRecoverable(c,"Cannot use keyword 'await' outside an async function"),this.raiseRecoverable(c,"The keyword '"+w+"' is reserved"))}},Oe.parseIdent=function(a){var c=this.parseIdentNode();return this.next(!!a),this.finishNode(c,"Identifier"),a||(this.checkUnreserved(c),c.name==="await"&&!this.awaitIdentPos&&(this.awaitIdentPos=c.start)),c},Oe.parseIdentNode=function(){var a=this.startNode();return this.type===g.name?a.name=this.value:this.type.keyword?(a.name=this.type.keyword,(a.name==="class"||a.name==="function")&&(this.lastTokEnd!==this.lastTokStart+1||this.input.charCodeAt(this.lastTokStart)!==46)&&this.context.pop(),this.type=g.name):this.unexpected(),a},Oe.parsePrivateIdent=function(){var a=this.startNode();return this.type===g.privateId?a.name=this.value:this.unexpected(),this.next(),this.finishNode(a,"PrivateIdentifier"),this.options.checkPrivateFields&&(this.privateNameStack.length===0?this.raise(a.start,"Private field '#"+a.name+"' must be declared in an enclosing class"):this.privateNameStack[this.privateNameStack.length-1].used.push(a)),a},Oe.parseYield=function(a){this.yieldPos||(this.yieldPos=this.start);var c=this.startNode();return this.next(),this.type===g.semi||this.canInsertSemicolon()||this.type!==g.star&&!this.type.startsExpr?(c.delegate=!1,c.argument=null):(c.delegate=this.eat(g.star),c.argument=this.parseMaybeAssign(a)),this.finishNode(c,"YieldExpression")},Oe.parseAwait=function(a){this.awaitPos||(this.awaitPos=this.start);var c=this.startNode();return this.next(),c.argument=this.parseMaybeUnary(null,!0,!1,a),this.finishNode(c,"AwaitExpression")};var Pi=T.prototype;Pi.raise=function(a,c){var x=he(this.input,a);c+=" ("+x.line+":"+x.column+")",this.sourceFile&&(c+=" in "+this.sourceFile);var w=new SyntaxError(c);throw w.pos=a,w.loc=x,w.raisedAt=this.pos,w},Pi.raiseRecoverable=Pi.raise,Pi.curPosition=function(){if(this.options.locations)return new ne(this.curLine,this.pos-this.lineStart)};var cn=T.prototype,Kp=function(c){this.flags=c,this.var=[],this.lexical=[],this.functions=[]};cn.enterScope=function(a){this.scopeStack.push(new Kp(a))},cn.exitScope=function(){this.scopeStack.pop()},cn.treatFunctionsAsVarInScope=function(a){return a.flags&ie||!this.inModule&&a.flags&J},cn.declareName=function(a,c,x){var w=!1;if(c===Te){var P=this.currentScope();w=P.lexical.indexOf(a)>-1||P.functions.indexOf(a)>-1||P.var.indexOf(a)>-1,P.lexical.push(a),this.inModule&&P.flags&J&&delete this.undefinedExports[a]}else if(c===Q){var z=this.currentScope();z.lexical.push(a)}else if(c===nt){var q=this.currentScope();this.treatFunctionsAsVar?w=q.lexical.indexOf(a)>-1:w=q.lexical.indexOf(a)>-1||q.var.indexOf(a)>-1,q.functions.push(a)}else for(var ce=this.scopeStack.length-1;ce>=0;--ce){var pe=this.scopeStack[ce];if(pe.lexical.indexOf(a)>-1&&!(pe.flags&le&&pe.lexical[0]===a)||!this.treatFunctionsAsVarInScope(pe)&&pe.functions.indexOf(a)>-1){w=!0;break}if(pe.var.push(a),this.inModule&&pe.flags&J&&delete this.undefinedExports[a],pe.flags&be)break}w&&this.raiseRecoverable(x,"Identifier '"+a+"' has already been declared")},cn.checkLocalExport=function(a){this.scopeStack[0].lexical.indexOf(a.name)===-1&&this.scopeStack[0].var.indexOf(a.name)===-1&&(this.undefinedExports[a.name]=a)},cn.currentScope=function(){return this.scopeStack[this.scopeStack.length-1]},cn.currentVarScope=function(){for(var a=this.scopeStack.length-1;;a--){var c=this.scopeStack[a];if(c.flags&(be|ke|ye))return c}},cn.currentThisScope=function(){for(var a=this.scopeStack.length-1;;a--){var c=this.scopeStack[a];if(c.flags&(be|ke|ye)&&!(c.flags&Y))return c}};var ni=function(c,x,w){this.type="",this.start=x,this.end=0,c.options.locations&&(this.loc=new O(c,w)),c.options.directSourceFile&&(this.sourceFile=c.options.directSourceFile),c.options.ranges&&(this.range=[x,0])},ii=T.prototype;ii.startNode=function(){return new ni(this,this.start,this.startLoc)},ii.startNodeAt=function(a,c){return new ni(this,a,c)};function po(a,c,x,w){return a.type=c,a.end=x,this.options.locations&&(a.loc.end=w),this.options.ranges&&(a.range[1]=x),a}ii.finishNode=function(a,c){return po.call(this,a,c,this.lastTokEnd,this.lastTokEndLoc)},ii.finishNodeAt=function(a,c,x,w){return po.call(this,a,c,x,w)},ii.copyNode=function(a){var c=new ni(this,a.start,this.startLoc);for(var x in a)c[x]=a[x];return c};var Up="Berf Beria_Erfe Gara Garay Gukh Gurung_Khema Hrkt Katakana_Or_Hiragana Kawi Kirat_Rai Krai Nag_Mundari Nagm Ol_Onal Onao Sidetic Sidt Sunu Sunuwar Tai_Yo Tayo Todhri Todr Tolong_Siki Tols Tulu_Tigalari Tutg Unknown Zzzz",go="ASCII ASCII_Hex_Digit AHex Alphabetic Alpha Any Assigned Bidi_Control Bidi_C Bidi_Mirrored Bidi_M Case_Ignorable CI Cased Changes_When_Casefolded CWCF Changes_When_Casemapped CWCM Changes_When_Lowercased CWL Changes_When_NFKC_Casefolded CWKCF Changes_When_Titlecased CWT Changes_When_Uppercased CWU Dash Default_Ignorable_Code_Point DI Deprecated Dep Diacritic Dia Emoji Emoji_Component Emoji_Modifier Emoji_Modifier_Base Emoji_Presentation Extender Ext Grapheme_Base Gr_Base Grapheme_Extend Gr_Ext Hex_Digit Hex IDS_Binary_Operator IDSB IDS_Trinary_Operator IDST ID_Continue IDC ID_Start IDS Ideographic Ideo Join_Control Join_C Logical_Order_Exception LOE Lowercase Lower Math Noncharacter_Code_Point NChar Pattern_Syntax Pat_Syn Pattern_White_Space Pat_WS Quotation_Mark QMark Radical Regional_Indicator RI Sentence_Terminal STerm Soft_Dotted SD Terminal_Punctuation Term Unified_Ideograph UIdeo Uppercase Upper Variation_Selector VS White_Space space XID_Continue XIDC XID_Start XIDS",mo=go+" Extended_Pictographic",xo=mo,vo=xo+" EBase EComp EMod EPres ExtPict",bo=vo,Hp=bo,$p={9:go,10:mo,11:xo,12:vo,13:bo,14:Hp},qp="Basic_Emoji Emoji_Keycap_Sequence RGI_Emoji_Modifier_Sequence RGI_Emoji_Flag_Sequence RGI_Emoji_Tag_Sequence RGI_Emoji_ZWJ_Sequence RGI_Emoji",Wp={9:"",10:"",11:"",12:"",13:"",14:qp},yo="Cased_Letter LC Close_Punctuation Pe Connector_Punctuation Pc Control Cc cntrl Currency_Symbol Sc Dash_Punctuation Pd Decimal_Number Nd digit Enclosing_Mark Me Final_Punctuation Pf Format Cf Initial_Punctuation Pi Letter L Letter_Number Nl Line_Separator Zl Lowercase_Letter Ll Mark M Combining_Mark Math_Symbol Sm Modifier_Letter Lm Modifier_Symbol Sk Nonspacing_Mark Mn Number N Open_Punctuation Ps Other C Other_Letter Lo Other_Number No Other_Punctuation Po Other_Symbol So Paragraph_Separator Zp Private_Use Co Punctuation P punct Separator Z Space_Separator Zs Spacing_Mark Mc Surrogate Cs Symbol S Titlecase_Letter Lt Unassigned Cn Uppercase_Letter Lu",wo="Adlam Adlm Ahom Anatolian_Hieroglyphs Hluw Arabic Arab Armenian Armn Avestan Avst Balinese Bali Bamum Bamu Bassa_Vah Bass Batak Batk Bengali Beng Bhaiksuki Bhks Bopomofo Bopo Brahmi Brah Braille Brai Buginese Bugi Buhid Buhd Canadian_Aboriginal Cans Carian Cari Caucasian_Albanian Aghb Chakma Cakm Cham Cham Cherokee Cher Common Zyyy Coptic Copt Qaac Cuneiform Xsux Cypriot Cprt Cyrillic Cyrl Deseret Dsrt Devanagari Deva Duployan Dupl Egyptian_Hieroglyphs Egyp Elbasan Elba Ethiopic Ethi Georgian Geor Glagolitic Glag Gothic Goth Grantha Gran Greek Grek Gujarati Gujr Gurmukhi Guru Han Hani Hangul Hang Hanunoo Hano Hatran Hatr Hebrew Hebr Hiragana Hira Imperial_Aramaic Armi Inherited Zinh Qaai Inscriptional_Pahlavi Phli Inscriptional_Parthian Prti Javanese Java Kaithi Kthi Kannada Knda Katakana Kana Kayah_Li Kali Kharoshthi Khar Khmer Khmr Khojki Khoj Khudawadi Sind Lao Laoo Latin Latn Lepcha Lepc Limbu Limb Linear_A Lina Linear_B Linb Lisu Lisu Lycian Lyci Lydian Lydi Mahajani Mahj Malayalam Mlym Mandaic Mand Manichaean Mani Marchen Marc Masaram_Gondi Gonm Meetei_Mayek Mtei Mende_Kikakui Mend Meroitic_Cursive Merc Meroitic_Hieroglyphs Mero Miao Plrd Modi Mongolian Mong Mro Mroo Multani Mult Myanmar Mymr Nabataean Nbat New_Tai_Lue Talu Newa Newa Nko Nkoo Nushu Nshu Ogham Ogam Ol_Chiki Olck Old_Hungarian Hung Old_Italic Ital Old_North_Arabian Narb Old_Permic Perm Old_Persian Xpeo Old_South_Arabian Sarb Old_Turkic Orkh Oriya Orya Osage Osge Osmanya Osma Pahawh_Hmong Hmng Palmyrene Palm Pau_Cin_Hau Pauc Phags_Pa Phag Phoenician Phnx Psalter_Pahlavi Phlp Rejang Rjng Runic Runr Samaritan Samr Saurashtra Saur Sharada Shrd Shavian Shaw Siddham Sidd SignWriting Sgnw Sinhala Sinh Sora_Sompeng Sora Soyombo Soyo Sundanese Sund Syloti_Nagri Sylo Syriac Syrc Tagalog Tglg Tagbanwa Tagb Tai_Le Tale Tai_Tham Lana Tai_Viet Tavt Takri Takr Tamil Taml Tangut Tang Telugu Telu Thaana Thaa Thai Thai Tibetan Tibt Tifinagh Tfng Tirhuta Tirh Ugaritic Ugar Vai Vaii Warang_Citi Wara Yi Yiii Zanabazar_Square Zanb",Eo=wo+" Dogra Dogr Gunjala_Gondi Gong Hanifi_Rohingya Rohg Makasar Maka Medefaidrin Medf Old_Sogdian Sogo Sogdian Sogd",So=Eo+" Elymaic Elym Nandinagari Nand Nyiakeng_Puachue_Hmong Hmnp Wancho Wcho",ko=So+" Chorasmian Chrs Diak Dives_Akuru Khitan_Small_Script Kits Yezi Yezidi",Co=ko+" Cypro_Minoan Cpmn Old_Uyghur Ougr Tangsa Tnsa Toto Vithkuqi Vith",Gp=Co+" "+Up,Jp={9:wo,10:Eo,11:So,12:ko,13:Co,14:Gp},_o={};function Yp(a){var c=_o[a]={binary:ve($p[a]+" "+yo),binaryOfStrings:ve(Wp[a]),nonBinary:{General_Category:ve(yo),Script:ve(Jp[a])}};c.nonBinary.Script_Extensions=c.nonBinary.Script,c.nonBinary.gc=c.nonBinary.General_Category,c.nonBinary.sc=c.nonBinary.Script,c.nonBinary.scx=c.nonBinary.Script_Extensions}for(var qr=0,Io=[9,10,11,12,13,14];qr<Io.length;qr+=1){var Qp=Io[qr];Yp(Qp)}var we=T.prototype,Oi=function(c,x){this.parent=c,this.base=x||this};Oi.prototype.separatedFrom=function(c){for(var x=this;x;x=x.parent)for(var w=c;w;w=w.parent)if(x.base===w.base&&x!==w)return!0;return!1},Oi.prototype.sibling=function(){return new Oi(this.parent,this.base)};var Ut=function(c){this.parser=c,this.validFlags="gim"+(c.options.ecmaVersion>=6?"uy":"")+(c.options.ecmaVersion>=9?"s":"")+(c.options.ecmaVersion>=13?"d":"")+(c.options.ecmaVersion>=15?"v":""),this.unicodeProperties=_o[c.options.ecmaVersion>=14?14:c.options.ecmaVersion],this.source="",this.flags="",this.start=0,this.switchU=!1,this.switchV=!1,this.switchN=!1,this.pos=0,this.lastIntValue=0,this.lastStringValue="",this.lastAssertionIsQuantifiable=!1,this.numCapturingParens=0,this.maxBackReference=0,this.groupNames=Object.create(null),this.backReferenceNames=[],this.branchID=null};Ut.prototype.reset=function(c,x,w){var P=w.indexOf("v")!==-1,z=w.indexOf("u")!==-1;this.start=c|0,this.source=x+"",this.flags=w,P&&this.parser.options.ecmaVersion>=15?(this.switchU=!0,this.switchV=!0,this.switchN=!0):(this.switchU=z&&this.parser.options.ecmaVersion>=6,this.switchV=!1,this.switchN=z&&this.parser.options.ecmaVersion>=9)},Ut.prototype.raise=function(c){this.parser.raiseRecoverable(this.start,"Invalid regular expression: /"+this.source+"/: "+c)},Ut.prototype.at=function(c,x){x===void 0&&(x=!1);var w=this.source,P=w.length;if(c>=P)return-1;var z=w.charCodeAt(c);if(!(x||this.switchU)||z<=55295||z>=57344||c+1>=P)return z;var q=w.charCodeAt(c+1);return q>=56320&&q<=57343?(z<<10)+q-56613888:z},Ut.prototype.nextIndex=function(c,x){x===void 0&&(x=!1);var w=this.source,P=w.length;if(c>=P)return P;var z=w.charCodeAt(c),q;return!(x||this.switchU)||z<=55295||z>=57344||c+1>=P||(q=w.charCodeAt(c+1))<56320||q>57343?c+1:c+2},Ut.prototype.current=function(c){return c===void 0&&(c=!1),this.at(this.pos,c)},Ut.prototype.lookahead=function(c){return c===void 0&&(c=!1),this.at(this.nextIndex(this.pos,c),c)},Ut.prototype.advance=function(c){c===void 0&&(c=!1),this.pos=this.nextIndex(this.pos,c)},Ut.prototype.eat=function(c,x){return x===void 0&&(x=!1),this.current(x)===c?(this.advance(x),!0):!1},Ut.prototype.eatChars=function(c,x){x===void 0&&(x=!1);for(var w=this.pos,P=0,z=c;P<z.length;P+=1){var q=z[P],ce=this.at(w,x);if(ce===-1||ce!==q)return!1;w=this.nextIndex(w,x)}return this.pos=w,!0},we.validateRegExpFlags=function(a){for(var c=a.validFlags,x=a.flags,w=!1,P=!1,z=0;z<x.length;z++){var q=x.charAt(z);c.indexOf(q)===-1&&this.raise(a.start,"Invalid regular expression flag"),x.indexOf(q,z+1)>-1&&this.raise(a.start,"Duplicate regular expression flag"),q==="u"&&(w=!0),q==="v"&&(P=!0)}this.options.ecmaVersion>=15&&w&&P&&this.raise(a.start,"Invalid regular expression flag")};function Zp(a){for(var c in a)return!0;return!1}we.validateRegExpPattern=function(a){this.regexp_pattern(a),!a.switchN&&this.options.ecmaVersion>=9&&Zp(a.groupNames)&&(a.switchN=!0,this.regexp_pattern(a))},we.regexp_pattern=function(a){a.pos=0,a.lastIntValue=0,a.lastStringValue="",a.lastAssertionIsQuantifiable=!1,a.numCapturingParens=0,a.maxBackReference=0,a.groupNames=Object.create(null),a.backReferenceNames.length=0,a.branchID=null,this.regexp_disjunction(a),a.pos!==a.source.length&&(a.eat(41)&&a.raise("Unmatched ')'"),(a.eat(93)||a.eat(125))&&a.raise("Lone quantifier brackets")),a.maxBackReference>a.numCapturingParens&&a.raise("Invalid escape");for(var c=0,x=a.backReferenceNames;c<x.length;c+=1){var w=x[c];a.groupNames[w]||a.raise("Invalid named capture referenced")}},we.regexp_disjunction=function(a){var c=this.options.ecmaVersion>=16;for(c&&(a.branchID=new Oi(a.branchID,null)),this.regexp_alternative(a);a.eat(124);)c&&(a.branchID=a.branchID.sibling()),this.regexp_alternative(a);c&&(a.branchID=a.branchID.parent),this.regexp_eatQuantifier(a,!0)&&a.raise("Nothing to repeat"),a.eat(123)&&a.raise("Lone quantifier brackets")},we.regexp_alternative=function(a){for(;a.pos<a.source.length&&this.regexp_eatTerm(a););},we.regexp_eatTerm=function(a){return this.regexp_eatAssertion(a)?(a.lastAssertionIsQuantifiable&&this.regexp_eatQuantifier(a)&&a.switchU&&a.raise("Invalid quantifier"),!0):(a.switchU?this.regexp_eatAtom(a):this.regexp_eatExtendedAtom(a))?(this.regexp_eatQuantifier(a),!0):!1},we.regexp_eatAssertion=function(a){var c=a.pos;if(a.lastAssertionIsQuantifiable=!1,a.eat(94)||a.eat(36))return!0;if(a.eat(92)){if(a.eat(66)||a.eat(98))return!0;a.pos=c}if(a.eat(40)&&a.eat(63)){var x=!1;if(this.options.ecmaVersion>=9&&(x=a.eat(60)),a.eat(61)||a.eat(33))return this.regexp_disjunction(a),a.eat(41)||a.raise("Unterminated group"),a.lastAssertionIsQuantifiable=!x,!0}return a.pos=c,!1},we.regexp_eatQuantifier=function(a,c){return c===void 0&&(c=!1),this.regexp_eatQuantifierPrefix(a,c)?(a.eat(63),!0):!1},we.regexp_eatQuantifierPrefix=function(a,c){return a.eat(42)||a.eat(43)||a.eat(63)||this.regexp_eatBracedQuantifier(a,c)},we.regexp_eatBracedQuantifier=function(a,c){var x=a.pos;if(a.eat(123)){var w=0,P=-1;if(this.regexp_eatDecimalDigits(a)&&(w=a.lastIntValue,a.eat(44)&&this.regexp_eatDecimalDigits(a)&&(P=a.lastIntValue),a.eat(125)))return P!==-1&&P<w&&!c&&a.raise("numbers out of order in {} quantifier"),!0;a.switchU&&!c&&a.raise("Incomplete quantifier"),a.pos=x}return!1},we.regexp_eatAtom=function(a){return this.regexp_eatPatternCharacters(a)||a.eat(46)||this.regexp_eatReverseSolidusAtomEscape(a)||this.regexp_eatCharacterClass(a)||this.regexp_eatUncapturingGroup(a)||this.regexp_eatCapturingGroup(a)},we.regexp_eatReverseSolidusAtomEscape=function(a){var c=a.pos;if(a.eat(92)){if(this.regexp_eatAtomEscape(a))return!0;a.pos=c}return!1},we.regexp_eatUncapturingGroup=function(a){var c=a.pos;if(a.eat(40)){if(a.eat(63)){if(this.options.ecmaVersion>=16){var x=this.regexp_eatModifiers(a),w=a.eat(45);if(x||w){for(var P=0;P<x.length;P++){var z=x.charAt(P);x.indexOf(z,P+1)>-1&&a.raise("Duplicate regular expression modifiers")}if(w){var q=this.regexp_eatModifiers(a);!x&&!q&&a.current()===58&&a.raise("Invalid regular expression modifiers");for(var ce=0;ce<q.length;ce++){var pe=q.charAt(ce);(q.indexOf(pe,ce+1)>-1||x.indexOf(pe)>-1)&&a.raise("Duplicate regular expression modifiers")}}}}if(a.eat(58)){if(this.regexp_disjunction(a),a.eat(41))return!0;a.raise("Unterminated group")}}a.pos=c}return!1},we.regexp_eatCapturingGroup=function(a){if(a.eat(40)){if(this.options.ecmaVersion>=9?this.regexp_groupSpecifier(a):a.current()===63&&a.raise("Invalid group"),this.regexp_disjunction(a),a.eat(41))return a.numCapturingParens+=1,!0;a.raise("Unterminated group")}return!1},we.regexp_eatModifiers=function(a){for(var c="",x=0;(x=a.current())!==-1&&Xp(x);)c+=L(x),a.advance();return c};function Xp(a){return a===105||a===109||a===115}we.regexp_eatExtendedAtom=function(a){return a.eat(46)||this.regexp_eatReverseSolidusAtomEscape(a)||this.regexp_eatCharacterClass(a)||this.regexp_eatUncapturingGroup(a)||this.regexp_eatCapturingGroup(a)||this.regexp_eatInvalidBracedQuantifier(a)||this.regexp_eatExtendedPatternCharacter(a)},we.regexp_eatInvalidBracedQuantifier=function(a){return this.regexp_eatBracedQuantifier(a,!0)&&a.raise("Nothing to repeat"),!1},we.regexp_eatSyntaxCharacter=function(a){var c=a.current();return Ao(c)?(a.lastIntValue=c,a.advance(),!0):!1};function Ao(a){return a===36||a>=40&&a<=43||a===46||a===63||a>=91&&a<=94||a>=123&&a<=125}we.regexp_eatPatternCharacters=function(a){for(var c=a.pos,x=0;(x=a.current())!==-1&&!Ao(x);)a.advance();return a.pos!==c},we.regexp_eatExtendedPatternCharacter=function(a){var c=a.current();return c!==-1&&c!==36&&!(c>=40&&c<=43)&&c!==46&&c!==63&&c!==91&&c!==94&&c!==124?(a.advance(),!0):!1},we.regexp_groupSpecifier=function(a){if(a.eat(63)){this.regexp_eatGroupName(a)||a.raise("Invalid group");var c=this.options.ecmaVersion>=16,x=a.groupNames[a.lastStringValue];if(x)if(c)for(var w=0,P=x;w<P.length;w+=1){var z=P[w];z.separatedFrom(a.branchID)||a.raise("Duplicate capture group name")}else a.raise("Duplicate capture group name");c?(x||(a.groupNames[a.lastStringValue]=[])).push(a.branchID):a.groupNames[a.lastStringValue]=!0}},we.regexp_eatGroupName=function(a){if(a.lastStringValue="",a.eat(60)){if(this.regexp_eatRegExpIdentifierName(a)&&a.eat(62))return!0;a.raise("Invalid capture group name")}return!1},we.regexp_eatRegExpIdentifierName=function(a){if(a.lastStringValue="",this.regexp_eatRegExpIdentifierStart(a)){for(a.lastStringValue+=L(a.lastIntValue);this.regexp_eatRegExpIdentifierPart(a);)a.lastStringValue+=L(a.lastIntValue);return!0}return!1},we.regexp_eatRegExpIdentifierStart=function(a){var c=a.pos,x=this.options.ecmaVersion>=11,w=a.current(x);return a.advance(x),w===92&&this.regexp_eatRegExpUnicodeEscapeSequence(a,x)&&(w=a.lastIntValue),ed(w)?(a.lastIntValue=w,!0):(a.pos=c,!1)};function ed(a){return b(a,!0)||a===36||a===95}we.regexp_eatRegExpIdentifierPart=function(a){var c=a.pos,x=this.options.ecmaVersion>=11,w=a.current(x);return a.advance(x),w===92&&this.regexp_eatRegExpUnicodeEscapeSequence(a,x)&&(w=a.lastIntValue),td(w)?(a.lastIntValue=w,!0):(a.pos=c,!1)};function td(a){return v(a,!0)||a===36||a===95||a===8204||a===8205}we.regexp_eatAtomEscape=function(a){return this.regexp_eatBackReference(a)||this.regexp_eatCharacterClassEscape(a)||this.regexp_eatCharacterEscape(a)||a.switchN&&this.regexp_eatKGroupName(a)?!0:(a.switchU&&(a.current()===99&&a.raise("Invalid unicode escape"),a.raise("Invalid escape")),!1)},we.regexp_eatBackReference=function(a){var c=a.pos;if(this.regexp_eatDecimalEscape(a)){var x=a.lastIntValue;if(a.switchU)return x>a.maxBackReference&&(a.maxBackReference=x),!0;if(x<=a.numCapturingParens)return!0;a.pos=c}return!1},we.regexp_eatKGroupName=function(a){if(a.eat(107)){if(this.regexp_eatGroupName(a))return a.backReferenceNames.push(a.lastStringValue),!0;a.raise("Invalid named reference")}return!1},we.regexp_eatCharacterEscape=function(a){return this.regexp_eatControlEscape(a)||this.regexp_eatCControlLetter(a)||this.regexp_eatZero(a)||this.regexp_eatHexEscapeSequence(a)||this.regexp_eatRegExpUnicodeEscapeSequence(a,!1)||!a.switchU&&this.regexp_eatLegacyOctalEscapeSequence(a)||this.regexp_eatIdentityEscape(a)},we.regexp_eatCControlLetter=function(a){var c=a.pos;if(a.eat(99)){if(this.regexp_eatControlLetter(a))return!0;a.pos=c}return!1},we.regexp_eatZero=function(a){return a.current()===48&&!Ri(a.lookahead())?(a.lastIntValue=0,a.advance(),!0):!1},we.regexp_eatControlEscape=function(a){var c=a.current();return c===116?(a.lastIntValue=9,a.advance(),!0):c===110?(a.lastIntValue=10,a.advance(),!0):c===118?(a.lastIntValue=11,a.advance(),!0):c===102?(a.lastIntValue=12,a.advance(),!0):c===114?(a.lastIntValue=13,a.advance(),!0):!1},we.regexp_eatControlLetter=function(a){var c=a.current();return To(c)?(a.lastIntValue=c%32,a.advance(),!0):!1};function To(a){return a>=65&&a<=90||a>=97&&a<=122}we.regexp_eatRegExpUnicodeEscapeSequence=function(a,c){c===void 0&&(c=!1);var x=a.pos,w=c||a.switchU;if(a.eat(117)){if(this.regexp_eatFixedHexDigits(a,4)){var P=a.lastIntValue;if(w&&P>=55296&&P<=56319){var z=a.pos;if(a.eat(92)&&a.eat(117)&&this.regexp_eatFixedHexDigits(a,4)){var q=a.lastIntValue;if(q>=56320&&q<=57343)return a.lastIntValue=(P-55296)*1024+(q-56320)+65536,!0}a.pos=z,a.lastIntValue=P}return!0}if(w&&a.eat(123)&&this.regexp_eatHexDigits(a)&&a.eat(125)&&nd(a.lastIntValue))return!0;w&&a.raise("Invalid unicode escape"),a.pos=x}return!1};function nd(a){return a>=0&&a<=1114111}we.regexp_eatIdentityEscape=function(a){if(a.switchU)return this.regexp_eatSyntaxCharacter(a)?!0:a.eat(47)?(a.lastIntValue=47,!0):!1;var c=a.current();return c!==99&&(!a.switchN||c!==107)?(a.lastIntValue=c,a.advance(),!0):!1},we.regexp_eatDecimalEscape=function(a){a.lastIntValue=0;var c=a.current();if(c>=49&&c<=57){do a.lastIntValue=10*a.lastIntValue+(c-48),a.advance();while((c=a.current())>=48&&c<=57);return!0}return!1};var No=0,Xt=1,At=2;we.regexp_eatCharacterClassEscape=function(a){var c=a.current();if(id(c))return a.lastIntValue=-1,a.advance(),Xt;var x=!1;if(a.switchU&&this.options.ecmaVersion>=9&&((x=c===80)||c===112)){a.lastIntValue=-1,a.advance();var w;if(a.eat(123)&&(w=this.regexp_eatUnicodePropertyValueExpression(a))&&a.eat(125))return x&&w===At&&a.raise("Invalid property name"),w;a.raise("Invalid property name")}return No};function id(a){return a===100||a===68||a===115||a===83||a===119||a===87}we.regexp_eatUnicodePropertyValueExpression=function(a){var c=a.pos;if(this.regexp_eatUnicodePropertyName(a)&&a.eat(61)){var x=a.lastStringValue;if(this.regexp_eatUnicodePropertyValue(a)){var w=a.lastStringValue;return this.regexp_validateUnicodePropertyNameAndValue(a,x,w),Xt}}if(a.pos=c,this.regexp_eatLoneUnicodePropertyNameOrValue(a)){var P=a.lastStringValue;return this.regexp_validateUnicodePropertyNameOrValue(a,P)}return No},we.regexp_validateUnicodePropertyNameAndValue=function(a,c,x){te(a.unicodeProperties.nonBinary,c)||a.raise("Invalid property name"),a.unicodeProperties.nonBinary[c].test(x)||a.raise("Invalid property value")},we.regexp_validateUnicodePropertyNameOrValue=function(a,c){if(a.unicodeProperties.binary.test(c))return Xt;if(a.switchV&&a.unicodeProperties.binaryOfStrings.test(c))return At;a.raise("Invalid property name")},we.regexp_eatUnicodePropertyName=function(a){var c=0;for(a.lastStringValue="";Po(c=a.current());)a.lastStringValue+=L(c),a.advance();return a.lastStringValue!==""};function Po(a){return To(a)||a===95}we.regexp_eatUnicodePropertyValue=function(a){var c=0;for(a.lastStringValue="";rd(c=a.current());)a.lastStringValue+=L(c),a.advance();return a.lastStringValue!==""};function rd(a){return Po(a)||Ri(a)}we.regexp_eatLoneUnicodePropertyNameOrValue=function(a){return this.regexp_eatUnicodePropertyValue(a)},we.regexp_eatCharacterClass=function(a){if(a.eat(91)){var c=a.eat(94),x=this.regexp_classContents(a);return a.eat(93)||a.raise("Unterminated character class"),c&&x===At&&a.raise("Negated character class may contain strings"),!0}return!1},we.regexp_classContents=function(a){return a.current()===93?Xt:a.switchV?this.regexp_classSetExpression(a):(this.regexp_nonEmptyClassRanges(a),Xt)},we.regexp_nonEmptyClassRanges=function(a){for(;this.regexp_eatClassAtom(a);){var c=a.lastIntValue;if(a.eat(45)&&this.regexp_eatClassAtom(a)){var x=a.lastIntValue;a.switchU&&(c===-1||x===-1)&&a.raise("Invalid character class"),c!==-1&&x!==-1&&c>x&&a.raise("Range out of order in character class")}}},we.regexp_eatClassAtom=function(a){var c=a.pos;if(a.eat(92)){if(this.regexp_eatClassEscape(a))return!0;if(a.switchU){var x=a.current();(x===99||Lo(x))&&a.raise("Invalid class escape"),a.raise("Invalid escape")}a.pos=c}var w=a.current();return w!==93?(a.lastIntValue=w,a.advance(),!0):!1},we.regexp_eatClassEscape=function(a){var c=a.pos;if(a.eat(98))return a.lastIntValue=8,!0;if(a.switchU&&a.eat(45))return a.lastIntValue=45,!0;if(!a.switchU&&a.eat(99)){if(this.regexp_eatClassControlLetter(a))return!0;a.pos=c}return this.regexp_eatCharacterClassEscape(a)||this.regexp_eatCharacterEscape(a)},we.regexp_classSetExpression=function(a){var c=Xt,x;if(!this.regexp_eatClassSetRange(a))if(x=this.regexp_eatClassSetOperand(a)){x===At&&(c=At);for(var w=a.pos;a.eatChars([38,38]);){if(a.current()!==38&&(x=this.regexp_eatClassSetOperand(a))){x!==At&&(c=Xt);continue}a.raise("Invalid character in character class")}if(w!==a.pos)return c;for(;a.eatChars([45,45]);)this.regexp_eatClassSetOperand(a)||a.raise("Invalid character in character class");if(w!==a.pos)return c}else a.raise("Invalid character in character class");for(;;)if(!this.regexp_eatClassSetRange(a)){if(x=this.regexp_eatClassSetOperand(a),!x)return c;x===At&&(c=At)}},we.regexp_eatClassSetRange=function(a){var c=a.pos;if(this.regexp_eatClassSetCharacter(a)){var x=a.lastIntValue;if(a.eat(45)&&this.regexp_eatClassSetCharacter(a)){var w=a.lastIntValue;return x!==-1&&w!==-1&&x>w&&a.raise("Range out of order in character class"),!0}a.pos=c}return!1},we.regexp_eatClassSetOperand=function(a){return this.regexp_eatClassSetCharacter(a)?Xt:this.regexp_eatClassStringDisjunction(a)||this.regexp_eatNestedClass(a)},we.regexp_eatNestedClass=function(a){var c=a.pos;if(a.eat(91)){var x=a.eat(94),w=this.regexp_classContents(a);if(a.eat(93))return x&&w===At&&a.raise("Negated character class may contain strings"),w;a.pos=c}if(a.eat(92)){var P=this.regexp_eatCharacterClassEscape(a);if(P)return P;a.pos=c}return null},we.regexp_eatClassStringDisjunction=function(a){var c=a.pos;if(a.eatChars([92,113])){if(a.eat(123)){var x=this.regexp_classStringDisjunctionContents(a);if(a.eat(125))return x}else a.raise("Invalid escape");a.pos=c}return null},we.regexp_classStringDisjunctionContents=function(a){for(var c=this.regexp_classString(a);a.eat(124);)this.regexp_classString(a)===At&&(c=At);return c},we.regexp_classString=function(a){for(var c=0;this.regexp_eatClassSetCharacter(a);)c++;return c===1?Xt:At},we.regexp_eatClassSetCharacter=function(a){var c=a.pos;if(a.eat(92))return this.regexp_eatCharacterEscape(a)||this.regexp_eatClassSetReservedPunctuator(a)?!0:a.eat(98)?(a.lastIntValue=8,!0):(a.pos=c,!1);var x=a.current();return x<0||x===a.lookahead()&&ad(x)||sd(x)?!1:(a.advance(),a.lastIntValue=x,!0)};function ad(a){return a===33||a>=35&&a<=38||a>=42&&a<=44||a===46||a>=58&&a<=64||a===94||a===96||a===126}function sd(a){return a===40||a===41||a===45||a===47||a>=91&&a<=93||a>=123&&a<=125}we.regexp_eatClassSetReservedPunctuator=function(a){var c=a.current();return od(c)?(a.lastIntValue=c,a.advance(),!0):!1};function od(a){return a===33||a===35||a===37||a===38||a===44||a===45||a>=58&&a<=62||a===64||a===96||a===126}we.regexp_eatClassControlLetter=function(a){var c=a.current();return Ri(c)||c===95?(a.lastIntValue=c%32,a.advance(),!0):!1},we.regexp_eatHexEscapeSequence=function(a){var c=a.pos;if(a.eat(120)){if(this.regexp_eatFixedHexDigits(a,2))return!0;a.switchU&&a.raise("Invalid escape"),a.pos=c}return!1},we.regexp_eatDecimalDigits=function(a){var c=a.pos,x=0;for(a.lastIntValue=0;Ri(x=a.current());)a.lastIntValue=10*a.lastIntValue+(x-48),a.advance();return a.pos!==c};function Ri(a){return a>=48&&a<=57}we.regexp_eatHexDigits=function(a){var c=a.pos,x=0;for(a.lastIntValue=0;Oo(x=a.current());)a.lastIntValue=16*a.lastIntValue+Ro(x),a.advance();return a.pos!==c};function Oo(a){return a>=48&&a<=57||a>=65&&a<=70||a>=97&&a<=102}function Ro(a){return a>=65&&a<=70?10+(a-65):a>=97&&a<=102?10+(a-97):a-48}we.regexp_eatLegacyOctalEscapeSequence=function(a){if(this.regexp_eatOctalDigit(a)){var c=a.lastIntValue;if(this.regexp_eatOctalDigit(a)){var x=a.lastIntValue;c<=3&&this.regexp_eatOctalDigit(a)?a.lastIntValue=c*64+x*8+a.lastIntValue:a.lastIntValue=c*8+x}else a.lastIntValue=c;return!0}return!1},we.regexp_eatOctalDigit=function(a){var c=a.current();return Lo(c)?(a.lastIntValue=c-48,a.advance(),!0):(a.lastIntValue=0,!1)};function Lo(a){return a>=48&&a<=55}we.regexp_eatFixedHexDigits=function(a,c){var x=a.pos;a.lastIntValue=0;for(var w=0;w<c;++w){var P=a.current();if(!Oo(P))return a.pos=x,!1;a.lastIntValue=16*a.lastIntValue+Ro(P),a.advance()}return!0};var Li=function(c){this.type=c.type,this.value=c.value,this.start=c.start,this.end=c.end,c.options.locations&&(this.loc=new O(c,c.startLoc,c.endLoc)),c.options.ranges&&(this.range=[c.start,c.end])},De=T.prototype;De.next=function(a){!a&&this.type.keyword&&this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword "+this.type.keyword),this.options.onToken&&this.options.onToken(new Li(this)),this.lastTokEnd=this.end,this.lastTokStart=this.start,this.lastTokEndLoc=this.endLoc,this.lastTokStartLoc=this.startLoc,this.nextToken()},De.getToken=function(){return this.next(),new Li(this)},typeof Symbol<"u"&&(De[Symbol.iterator]=function(){var a=this;return{next:function(){var c=a.getToken();return{done:c.type===g.eof,value:c}}}}),De.nextToken=function(){var a=this.curContext();if((!a||!a.preserveSpace)&&this.skipSpace(),this.start=this.pos,this.options.locations&&(this.startLoc=this.curPosition()),this.pos>=this.input.length)return this.finishToken(g.eof);if(a.override)return a.override(this);this.readToken(this.fullCharCodeAtPos())},De.readToken=function(a){return b(a,this.options.ecmaVersion>=6)||a===92?this.readWord():this.getTokenFromCode(a)},De.fullCharCodeAt=function(a){var c=this.input.charCodeAt(a);if(c<=55295||c>=56320)return c;var x=this.input.charCodeAt(a+1);return x<=56319||x>=57344?c:(c<<10)+x-56613888},De.fullCharCodeAtPos=function(){return this.fullCharCodeAt(this.pos)},De.skipBlockComment=function(){var a=this.options.onComment&&this.curPosition(),c=this.pos,x=this.input.indexOf("*/",this.pos+=2);if(x===-1&&this.raise(this.pos-2,"Unterminated comment"),this.pos=x+2,this.options.locations)for(var w=void 0,P=c;(w=R(this.input,P,this.pos))>-1;)++this.curLine,P=this.lineStart=w;this.options.onComment&&this.options.onComment(!0,this.input.slice(c+2,x),c,this.pos,a,this.curPosition())},De.skipLineComment=function(a){for(var c=this.pos,x=this.options.onComment&&this.curPosition(),w=this.input.charCodeAt(this.pos+=a);this.pos<this.input.length&&!F(w);)w=this.input.charCodeAt(++this.pos);this.options.onComment&&this.options.onComment(!1,this.input.slice(c+a,this.pos),c,this.pos,x,this.curPosition())},De.skipSpace=function(){e:for(;this.pos<this.input.length;){var a=this.input.charCodeAt(this.pos);switch(a){case 32:case 160:++this.pos;break;case 13:this.input.charCodeAt(this.pos+1)===10&&++this.pos;case 10:case 8232:case 8233:++this.pos,this.options.locations&&(++this.curLine,this.lineStart=this.pos);break;case 47:switch(this.input.charCodeAt(this.pos+1)){case 42:this.skipBlockComment();break;case 47:this.skipLineComment(2);break;default:break e}break;default:if(a>8&&a<14||a>=5760&&j.test(String.fromCharCode(a)))++this.pos;else break e}}},De.finishToken=function(a,c){this.end=this.pos,this.options.locations&&(this.endLoc=this.curPosition());var x=this.type;this.type=a,this.value=c,this.updateContext(x)},De.readToken_dot=function(){var a=this.input.charCodeAt(this.pos+1);if(a>=48&&a<=57)return this.readNumber(!0);var c=this.input.charCodeAt(this.pos+2);return this.options.ecmaVersion>=6&&a===46&&c===46?(this.pos+=3,this.finishToken(g.ellipsis)):(++this.pos,this.finishToken(g.dot))},De.readToken_slash=function(){var a=this.input.charCodeAt(this.pos+1);return this.exprAllowed?(++this.pos,this.readRegexp()):a===61?this.finishOp(g.assign,2):this.finishOp(g.slash,1)},De.readToken_mult_modulo_exp=function(a){var c=this.input.charCodeAt(this.pos+1),x=1,w=a===42?g.star:g.modulo;return this.options.ecmaVersion>=7&&a===42&&c===42&&(++x,w=g.starstar,c=this.input.charCodeAt(this.pos+2)),c===61?this.finishOp(g.assign,x+1):this.finishOp(w,x)},De.readToken_pipe_amp=function(a){var c=this.input.charCodeAt(this.pos+1);if(c===a){if(this.options.ecmaVersion>=12){var x=this.input.charCodeAt(this.pos+2);if(x===61)return this.finishOp(g.assign,3)}return this.finishOp(a===124?g.logicalOR:g.logicalAND,2)}return c===61?this.finishOp(g.assign,2):this.finishOp(a===124?g.bitwiseOR:g.bitwiseAND,1)},De.readToken_caret=function(){var a=this.input.charCodeAt(this.pos+1);return a===61?this.finishOp(g.assign,2):this.finishOp(g.bitwiseXOR,1)},De.readToken_plus_min=function(a){var c=this.input.charCodeAt(this.pos+1);return c===a?c===45&&!this.inModule&&this.input.charCodeAt(this.pos+2)===62&&(this.lastTokEnd===0||A.test(this.input.slice(this.lastTokEnd,this.pos)))?(this.skipLineComment(3),this.skipSpace(),this.nextToken()):this.finishOp(g.incDec,2):c===61?this.finishOp(g.assign,2):this.finishOp(g.plusMin,1)},De.readToken_lt_gt=function(a){var c=this.input.charCodeAt(this.pos+1),x=1;return c===a?(x=a===62&&this.input.charCodeAt(this.pos+2)===62?3:2,this.input.charCodeAt(this.pos+x)===61?this.finishOp(g.assign,x+1):this.finishOp(g.bitShift,x)):c===33&&a===60&&!this.inModule&&this.input.charCodeAt(this.pos+2)===45&&this.input.charCodeAt(this.pos+3)===45?(this.skipLineComment(4),this.skipSpace(),this.nextToken()):(c===61&&(x=2),this.finishOp(g.relational,x))},De.readToken_eq_excl=function(a){var c=this.input.charCodeAt(this.pos+1);return c===61?this.finishOp(g.equality,this.input.charCodeAt(this.pos+2)===61?3:2):a===61&&c===62&&this.options.ecmaVersion>=6?(this.pos+=2,this.finishToken(g.arrow)):this.finishOp(a===61?g.eq:g.prefix,1)},De.readToken_question=function(){var a=this.options.ecmaVersion;if(a>=11){var c=this.input.charCodeAt(this.pos+1);if(c===46){var x=this.input.charCodeAt(this.pos+2);if(x<48||x>57)return this.finishOp(g.questionDot,2)}if(c===63){if(a>=12){var w=this.input.charCodeAt(this.pos+2);if(w===61)return this.finishOp(g.assign,3)}return this.finishOp(g.coalesce,2)}}return this.finishOp(g.question,1)},De.readToken_numberSign=function(){var a=this.options.ecmaVersion,c=35;if(a>=13&&(++this.pos,c=this.fullCharCodeAtPos(),b(c,!0)||c===92))return this.finishToken(g.privateId,this.readWord1());this.raise(this.pos,"Unexpected character '"+L(c)+"'")},De.getTokenFromCode=function(a){switch(a){case 46:return this.readToken_dot();case 40:return++this.pos,this.finishToken(g.parenL);case 41:return++this.pos,this.finishToken(g.parenR);case 59:return++this.pos,this.finishToken(g.semi);case 44:return++this.pos,this.finishToken(g.comma);case 91:return++this.pos,this.finishToken(g.bracketL);case 93:return++this.pos,this.finishToken(g.bracketR);case 123:return++this.pos,this.finishToken(g.braceL);case 125:return++this.pos,this.finishToken(g.braceR);case 58:return++this.pos,this.finishToken(g.colon);case 96:if(this.options.ecmaVersion<6)break;return++this.pos,this.finishToken(g.backQuote);case 48:var c=this.input.charCodeAt(this.pos+1);if(c===120||c===88)return this.readRadixNumber(16);if(this.options.ecmaVersion>=6){if(c===111||c===79)return this.readRadixNumber(8);if(c===98||c===66)return this.readRadixNumber(2)}case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return this.readNumber(!1);case 34:case 39:return this.readString(a);case 47:return this.readToken_slash();case 37:case 42:return this.readToken_mult_modulo_exp(a);case 124:case 38:return this.readToken_pipe_amp(a);case 94:return this.readToken_caret();case 43:case 45:return this.readToken_plus_min(a);case 60:case 62:return this.readToken_lt_gt(a);case 61:case 33:return this.readToken_eq_excl(a);case 63:return this.readToken_question();case 126:return this.finishOp(g.prefix,1);case 35:return this.readToken_numberSign()}this.raise(this.pos,"Unexpected character '"+L(a)+"'")},De.finishOp=function(a,c){var x=this.input.slice(this.pos,this.pos+c);return this.pos+=c,this.finishToken(a,x)},De.readRegexp=function(){for(var a,c,x=this.pos;;){this.pos>=this.input.length&&this.raise(x,"Unterminated regular expression");var w=this.input.charAt(this.pos);if(A.test(w)&&this.raise(x,"Unterminated regular expression"),a)a=!1;else{if(w==="[")c=!0;else if(w==="]"&&c)c=!1;else if(w==="/"&&!c)break;a=w==="\\"}++this.pos}var P=this.input.slice(x,this.pos);++this.pos;var z=this.pos,q=this.readWord1();this.containsEsc&&this.unexpected(z);var ce=this.regexpState||(this.regexpState=new Ut(this));ce.reset(x,P,q),this.validateRegExpFlags(ce),this.validateRegExpPattern(ce);var pe=null;try{pe=new RegExp(P,q)}catch{}return this.finishToken(g.regexp,{pattern:P,flags:q,value:pe})},De.readInt=function(a,c,x){for(var w=this.options.ecmaVersion>=12&&c===void 0,P=x&&this.input.charCodeAt(this.pos)===48,z=this.pos,q=0,ce=0,pe=0,Ne=c??1/0;pe<Ne;++pe,++this.pos){var Fe=this.input.charCodeAt(this.pos),Xe=void 0;if(w&&Fe===95){P&&this.raiseRecoverable(this.pos,"Numeric separator is not allowed in legacy octal numeric literals"),ce===95&&this.raiseRecoverable(this.pos,"Numeric separator must be exactly one underscore"),pe===0&&this.raiseRecoverable(this.pos,"Numeric separator is not allowed at the first of digits"),ce=Fe;continue}if(Fe>=97?Xe=Fe-97+10:Fe>=65?Xe=Fe-65+10:Fe>=48&&Fe<=57?Xe=Fe-48:Xe=1/0,Xe>=a)break;ce=Fe,q=q*a+Xe}return w&&ce===95&&this.raiseRecoverable(this.pos-1,"Numeric separator is not allowed at the last of digits"),this.pos===z||c!=null&&this.pos-z!==c?null:q};function ld(a,c){return c?parseInt(a,8):parseFloat(a.replace(/_/g,""))}function Mo(a){return typeof BigInt!="function"?null:BigInt(a.replace(/_/g,""))}De.readRadixNumber=function(a){var c=this.pos;this.pos+=2;var x=this.readInt(a);return x==null&&this.raise(this.start+2,"Expected number in radix "+a),this.options.ecmaVersion>=11&&this.input.charCodeAt(this.pos)===110?(x=Mo(this.input.slice(c,this.pos)),++this.pos):b(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number"),this.finishToken(g.num,x)},De.readNumber=function(a){var c=this.pos;!a&&this.readInt(10,void 0,!0)===null&&this.raise(c,"Invalid number");var x=this.pos-c>=2&&this.input.charCodeAt(c)===48;x&&this.strict&&this.raise(c,"Invalid number");var w=this.input.charCodeAt(this.pos);if(!x&&!a&&this.options.ecmaVersion>=11&&w===110){var P=Mo(this.input.slice(c,this.pos));return++this.pos,b(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number"),this.finishToken(g.num,P)}x&&/[89]/.test(this.input.slice(c,this.pos))&&(x=!1),w===46&&!x&&(++this.pos,this.readInt(10),w=this.input.charCodeAt(this.pos)),(w===69||w===101)&&!x&&(w=this.input.charCodeAt(++this.pos),(w===43||w===45)&&++this.pos,this.readInt(10)===null&&this.raise(c,"Invalid number")),b(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number");var z=ld(this.input.slice(c,this.pos),x);return this.finishToken(g.num,z)},De.readCodePoint=function(){var a=this.input.charCodeAt(this.pos),c;if(a===123){this.options.ecmaVersion<6&&this.unexpected();var x=++this.pos;c=this.readHexChar(this.input.indexOf("}",this.pos)-this.pos),++this.pos,c>1114111&&this.invalidStringToken(x,"Code point out of bounds")}else c=this.readHexChar(4);return c},De.readString=function(a){for(var c="",x=++this.pos;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated string constant");var w=this.input.charCodeAt(this.pos);if(w===a)break;w===92?(c+=this.input.slice(x,this.pos),c+=this.readEscapedChar(!1),x=this.pos):w===8232||w===8233?(this.options.ecmaVersion<10&&this.raise(this.start,"Unterminated string constant"),++this.pos,this.options.locations&&(this.curLine++,this.lineStart=this.pos)):(F(w)&&this.raise(this.start,"Unterminated string constant"),++this.pos)}return c+=this.input.slice(x,this.pos++),this.finishToken(g.string,c)};var Fo={};De.tryReadTemplateToken=function(){this.inTemplateElement=!0;try{this.readTmplToken()}catch(a){if(a===Fo)this.readInvalidTemplateToken();else throw a}this.inTemplateElement=!1},De.invalidStringToken=function(a,c){if(this.inTemplateElement&&this.options.ecmaVersion>=9)throw Fo;this.raise(a,c)},De.readTmplToken=function(){for(var a="",c=this.pos;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated template");var x=this.input.charCodeAt(this.pos);if(x===96||x===36&&this.input.charCodeAt(this.pos+1)===123)return this.pos===this.start&&(this.type===g.template||this.type===g.invalidTemplate)?x===36?(this.pos+=2,this.finishToken(g.dollarBraceL)):(++this.pos,this.finishToken(g.backQuote)):(a+=this.input.slice(c,this.pos),this.finishToken(g.template,a));if(x===92)a+=this.input.slice(c,this.pos),a+=this.readEscapedChar(!0),c=this.pos;else if(F(x)){switch(a+=this.input.slice(c,this.pos),++this.pos,x){case 13:this.input.charCodeAt(this.pos)===10&&++this.pos;case 10:a+=`
28
+ `;break;default:a+=String.fromCharCode(x);break}this.options.locations&&(++this.curLine,this.lineStart=this.pos),c=this.pos}else++this.pos}},De.readInvalidTemplateToken=function(){for(;this.pos<this.input.length;this.pos++)switch(this.input[this.pos]){case"\\":++this.pos;break;case"$":if(this.input[this.pos+1]!=="{")break;case"`":return this.finishToken(g.invalidTemplate,this.input.slice(this.start,this.pos));case"\r":this.input[this.pos+1]===`
81
29
  `&&++this.pos;case`
82
- `:case"\u2028":case"\u2029":++this.curLine,this.lineStart=this.pos+1;break}this.raise(this.start,"Unterminated template")},Ue.readEscapedChar=function(o){var d=this.input.charCodeAt(++this.pos);switch(++this.pos,d){case 110:return`
83
- `;case 114:return"\r";case 120:return String.fromCharCode(this.readHexChar(2));case 117:return C(this.readCodePoint());case 116:return" ";case 98:return"\b";case 118:return"\v";case 102:return"\f";case 13:this.input.charCodeAt(this.pos)===10&&++this.pos;case 10:return this.options.locations&&(this.lineStart=this.pos,++this.curLine),"";case 56:case 57:if(this.strict&&this.invalidStringToken(this.pos-1,"Invalid escape sequence"),o){var x=this.pos-1;this.invalidStringToken(x,"Invalid escape sequence in template string")}default:if(d>=48&&d<=55){var _=this.input.substr(this.pos-1,3).match(/^[0-7]+/)[0],L=parseInt(_,8);return L>255&&(_=_.slice(0,-1),L=parseInt(_,8)),this.pos+=_.length-1,d=this.input.charCodeAt(this.pos),(_!=="0"||d===56||d===57)&&(this.strict||o)&&this.invalidStringToken(this.pos-1-_.length,o?"Octal literal in template string":"Octal literal in strict mode"),String.fromCharCode(L)}return F(d)?(this.options.locations&&(this.lineStart=this.pos,++this.curLine),""):String.fromCharCode(d)}},Ue.readHexChar=function(o){var d=this.pos,x=this.readInt(16,o);return x===null&&this.invalidStringToken(d,"Bad character escape sequence"),x},Ue.readWord1=function(){this.containsEsc=!1;for(var o="",d=!0,x=this.pos,_=this.options.ecmaVersion>=6;this.pos<this.input.length;){var L=this.fullCharCodeAtPos();if(v(L,_))this.pos+=L<=65535?1:2;else if(L===92){this.containsEsc=!0,o+=this.input.slice(x,this.pos);var G=this.pos;this.input.charCodeAt(++this.pos)!==117&&this.invalidStringToken(this.pos,"Expecting Unicode escape sequence \\uXXXX"),++this.pos;var X=this.readCodePoint();(d?E:v)(X,_)||this.invalidStringToken(G,"Invalid Unicode escape"),o+=C(X),x=this.pos}else break;d=!1}return o+this.input.slice(x,this.pos)},Ue.readWord=function(){var o=this.readWord1(),d=f.name;return this.keywords.test(o)&&(d=A[o]),this.finishToken(d,o)};var cu="8.15.0";re.acorn={Parser:re,version:cu,defaultOptions:W,Position:ee,SourceLocation:T,getLineInfo:B,Node:Wt,TokenType:k,tokTypes:f,keywordTypes:A,TokContext:It,tokContexts:Qe,isIdentifierChar:v,isIdentifierStart:E,Token:Pr,isNewLine:F,lineBreak:O,lineBreakG:P,nonASCIIwhitespace:V};function Bm(o,d){return re.parse(o,d)}function Hm(o,d,x){return re.parseExpressionAt(o,d,x)}function Km(o,d){return re.tokenizer(o,d)}i.Node=Wt,i.Parser=re,i.Position=ee,i.SourceLocation=T,i.TokContext=It,i.Token=Pr,i.TokenType=k,i.defaultOptions=W,i.getLineInfo=B,i.isIdentifierChar=v,i.isIdentifierStart=E,i.isNewLine=F,i.keywordTypes=A,i.lineBreak=O,i.lineBreakG=P,i.nonASCIIwhitespace=V,i.parse=Bm,i.parseExpressionAt=Hm,i.tokContexts=Qe,i.tokTypes=f,i.tokenizer=Km,i.version=cu}))})(ir,ir.exports)),ir.exports}var Bc;function I1(){return Bc||(Bc=1,(function(e){const t=E1(),i=/^[\da-fA-F]+$/,n=/^\d+$/,r=new WeakMap;function a(u){u=u.Parser.acorn||u;let c=r.get(u);if(!c){const h=u.tokTypes,p=u.TokContext,g=u.TokenType,m=new p("<tag",!1),E=new p("</tag",!1),v=new p("<tag>...</tag>",!0,!0),k={tc_oTag:m,tc_cTag:E,tc_expr:v},S={jsxName:new g("jsxName"),jsxText:new g("jsxText",{beforeExpr:!0}),jsxTagStart:new g("jsxTagStart",{startsExpr:!0}),jsxTagEnd:new g("jsxTagEnd")};S.jsxTagStart.updateContext=function(){this.context.push(v),this.context.push(m),this.exprAllowed=!1},S.jsxTagEnd.updateContext=function(w){let I=this.context.pop();I===m&&w===h.slash||I===E?(this.context.pop(),this.exprAllowed=this.curContext()===v):this.exprAllowed=!0},c={tokContexts:k,tokTypes:S},r.set(u,c)}return c}function s(u){if(!u)return u;if(u.type==="JSXIdentifier")return u.name;if(u.type==="JSXNamespacedName")return u.namespace.name+":"+u.name.name;if(u.type==="JSXMemberExpression")return s(u.object)+"."+s(u.property)}e.exports=function(u){return u=u||{},function(c){return l({allowNamespaces:u.allowNamespaces!==!1,allowNamespacedObjects:!!u.allowNamespacedObjects},c)}},Object.defineProperty(e.exports,"tokTypes",{get:function(){return a(Vc()).tokTypes},configurable:!0,enumerable:!0});function l(u,c){const h=c.acorn||Vc(),p=a(h),g=h.tokTypes,m=p.tokTypes,E=h.tokContexts,v=p.tokContexts.tc_oTag,k=p.tokContexts.tc_cTag,S=p.tokContexts.tc_expr,w=h.isNewLine,I=h.isIdentifierStart,A=h.isIdentifierChar;return class extends c{static get acornJsx(){return p}jsx_readToken(){let y="",f=this.pos;for(;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated JSX contents");let O=this.input.charCodeAt(this.pos);switch(O){case 60:case 123:return this.pos===this.start?O===60&&this.exprAllowed?(++this.pos,this.finishToken(m.jsxTagStart)):this.getTokenFromCode(O):(y+=this.input.slice(f,this.pos),this.finishToken(m.jsxText,y));case 38:y+=this.input.slice(f,this.pos),y+=this.jsx_readEntity(),f=this.pos;break;case 62:case 125:this.raise(this.pos,"Unexpected token `"+this.input[this.pos]+"`. Did you mean `"+(O===62?"&gt;":"&rbrace;")+'` or `{"'+this.input[this.pos]+'"}`?');default:w(O)?(y+=this.input.slice(f,this.pos),y+=this.jsx_readNewLine(!0),f=this.pos):++this.pos}}}jsx_readNewLine(y){let f=this.input.charCodeAt(this.pos),O;return++this.pos,f===13&&this.input.charCodeAt(this.pos)===10?(++this.pos,O=y?`
30
+ `:case"\u2028":case"\u2029":++this.curLine,this.lineStart=this.pos+1;break}this.raise(this.start,"Unterminated template")},De.readEscapedChar=function(a){var c=this.input.charCodeAt(++this.pos);switch(++this.pos,c){case 110:return`
31
+ `;case 114:return"\r";case 120:return String.fromCharCode(this.readHexChar(2));case 117:return L(this.readCodePoint());case 116:return" ";case 98:return"\b";case 118:return"\v";case 102:return"\f";case 13:this.input.charCodeAt(this.pos)===10&&++this.pos;case 10:return this.options.locations&&(this.lineStart=this.pos,++this.curLine),"";case 56:case 57:if(this.strict&&this.invalidStringToken(this.pos-1,"Invalid escape sequence"),a){var x=this.pos-1;this.invalidStringToken(x,"Invalid escape sequence in template string")}default:if(c>=48&&c<=55){var w=this.input.substr(this.pos-1,3).match(/^[0-7]+/)[0],P=parseInt(w,8);return P>255&&(w=w.slice(0,-1),P=parseInt(w,8)),this.pos+=w.length-1,c=this.input.charCodeAt(this.pos),(w!=="0"||c===56||c===57)&&(this.strict||a)&&this.invalidStringToken(this.pos-1-w.length,a?"Octal literal in template string":"Octal literal in strict mode"),String.fromCharCode(P)}return F(c)?(this.options.locations&&(this.lineStart=this.pos,++this.curLine),""):String.fromCharCode(c)}},De.readHexChar=function(a){var c=this.pos,x=this.readInt(16,a);return x===null&&this.invalidStringToken(c,"Bad character escape sequence"),x},De.readWord1=function(){this.containsEsc=!1;for(var a="",c=!0,x=this.pos,w=this.options.ecmaVersion>=6;this.pos<this.input.length;){var P=this.fullCharCodeAtPos();if(v(P,w))this.pos+=P<=65535?1:2;else if(P===92){this.containsEsc=!0,a+=this.input.slice(x,this.pos);var z=this.pos;this.input.charCodeAt(++this.pos)!==117&&this.invalidStringToken(this.pos,"Expecting Unicode escape sequence \\uXXXX"),++this.pos;var q=this.readCodePoint();(c?b:v)(q,w)||this.invalidStringToken(z,"Invalid Unicode escape"),a+=L(q),x=this.pos}else break;c=!1}return a+this.input.slice(x,this.pos)},De.readWord=function(){var a=this.readWord1(),c=g.name;return this.keywords.test(a)&&(c=N[a]),this.finishToken(c,a)};var Do="8.16.0";T.acorn={Parser:T,version:Do,defaultOptions:W,Position:ne,SourceLocation:O,getLineInfo:he,Node:ni,TokenType:S,tokTypes:g,keywordTypes:N,TokContext:It,tokContexts:Ze,isIdentifierChar:v,isIdentifierStart:b,Token:Li,isNewLine:F,lineBreak:A,lineBreakG:M,nonASCIIwhitespace:j};function ud(a,c){return T.parse(a,c)}function cd(a,c,x){return T.parseExpressionAt(a,c,x)}function hd(a,c){return T.tokenizer(a,c)}n.Node=ni,n.Parser=T,n.Position=ne,n.SourceLocation=O,n.TokContext=It,n.Token=Li,n.TokenType=S,n.defaultOptions=W,n.getLineInfo=he,n.isIdentifierChar=v,n.isIdentifierStart=b,n.isNewLine=F,n.keywordTypes=N,n.lineBreak=A,n.lineBreakG=M,n.nonASCIIwhitespace=j,n.parse=ud,n.parseExpressionAt=cd,n.tokContexts=Ze,n.tokTypes=g,n.tokenizer=hd,n.version=Do}))})(li,li.exports)),li.exports}var hl;function wm(){return hl||(hl=1,(function(e){const t=bm(),n=/^[\da-fA-F]+$/,i=/^\d+$/,r=new WeakMap;function s(u){u=u.Parser.acorn||u;let f=r.get(u);if(!f){const p=u.tokTypes,h=u.TokContext,d=u.TokenType,m=new h("<tag",!1),b=new h("</tag",!1),v=new h("<tag>...</tag>",!0,!0),S={tc_oTag:m,tc_cTag:b,tc_expr:v},E={jsxName:new d("jsxName"),jsxText:new d("jsxText",{beforeExpr:!0}),jsxTagStart:new d("jsxTagStart",{startsExpr:!0}),jsxTagEnd:new d("jsxTagEnd")};E.jsxTagStart.updateContext=function(){this.context.push(v),this.context.push(m),this.exprAllowed=!1},E.jsxTagEnd.updateContext=function(k){let I=this.context.pop();I===m&&k===p.slash||I===b?(this.context.pop(),this.exprAllowed=this.curContext()===v):this.exprAllowed=!0},f={tokContexts:S,tokTypes:E},r.set(u,f)}return f}function o(u){if(!u)return u;if(u.type==="JSXIdentifier")return u.name;if(u.type==="JSXNamespacedName")return u.namespace.name+":"+u.name.name;if(u.type==="JSXMemberExpression")return o(u.object)+"."+o(u.property)}e.exports=function(u){return u=u||{},function(f){return l({allowNamespaces:u.allowNamespaces!==!1,allowNamespacedObjects:!!u.allowNamespacedObjects},f)}},Object.defineProperty(e.exports,"tokTypes",{get:function(){return s(cl()).tokTypes},configurable:!0,enumerable:!0});function l(u,f){const p=f.acorn||cl(),h=s(p),d=p.tokTypes,m=h.tokTypes,b=p.tokContexts,v=h.tokContexts.tc_oTag,S=h.tokContexts.tc_cTag,E=h.tokContexts.tc_expr,k=p.isNewLine,I=p.isIdentifierStart,N=p.isIdentifierChar;return class extends f{static get acornJsx(){return h}jsx_readToken(){let y="",g=this.pos;for(;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated JSX contents");let A=this.input.charCodeAt(this.pos);switch(A){case 60:case 123:return this.pos===this.start?A===60&&this.exprAllowed?(++this.pos,this.finishToken(m.jsxTagStart)):this.getTokenFromCode(A):(y+=this.input.slice(g,this.pos),this.finishToken(m.jsxText,y));case 38:y+=this.input.slice(g,this.pos),y+=this.jsx_readEntity(),g=this.pos;break;case 62:case 125:this.raise(this.pos,"Unexpected token `"+this.input[this.pos]+"`. Did you mean `"+(A===62?"&gt;":"&rbrace;")+'` or `{"'+this.input[this.pos]+'"}`?');default:k(A)?(y+=this.input.slice(g,this.pos),y+=this.jsx_readNewLine(!0),g=this.pos):++this.pos}}}jsx_readNewLine(y){let g=this.input.charCodeAt(this.pos),A;return++this.pos,g===13&&this.input.charCodeAt(this.pos)===10?(++this.pos,A=y?`
84
32
  `:`\r
85
- `):O=String.fromCharCode(f),this.options.locations&&(++this.curLine,this.lineStart=this.pos),O}jsx_readString(y){let f="",O=++this.pos;for(;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated string constant");let P=this.input.charCodeAt(this.pos);if(P===y)break;P===38?(f+=this.input.slice(O,this.pos),f+=this.jsx_readEntity(),O=this.pos):w(P)?(f+=this.input.slice(O,this.pos),f+=this.jsx_readNewLine(!1),O=this.pos):++this.pos}return f+=this.input.slice(O,this.pos++),this.finishToken(g.string,f)}jsx_readEntity(){let y="",f=0,O,P=this.input[this.pos];P!=="&"&&this.raise(this.pos,"Entity must start with an ampersand");let F=++this.pos;for(;this.pos<this.input.length&&f++<10;){if(P=this.input[this.pos++],P===";"){y[0]==="#"?y[1]==="x"?(y=y.substr(2),i.test(y)&&(O=String.fromCharCode(parseInt(y,16)))):(y=y.substr(1),n.test(y)&&(O=String.fromCharCode(parseInt(y,10)))):O=t[y];break}y+=P}return O||(this.pos=F,"&")}jsx_readWord(){let y,f=this.pos;do y=this.input.charCodeAt(++this.pos);while(A(y)||y===45);return this.finishToken(m.jsxName,this.input.slice(f,this.pos))}jsx_parseIdentifier(){let y=this.startNode();return this.type===m.jsxName?y.name=this.value:this.type.keyword?y.name=this.type.keyword:this.unexpected(),this.next(),this.finishNode(y,"JSXIdentifier")}jsx_parseNamespacedName(){let y=this.start,f=this.startLoc,O=this.jsx_parseIdentifier();if(!u.allowNamespaces||!this.eat(g.colon))return O;var P=this.startNodeAt(y,f);return P.namespace=O,P.name=this.jsx_parseIdentifier(),this.finishNode(P,"JSXNamespacedName")}jsx_parseElementName(){if(this.type===m.jsxTagEnd)return"";let y=this.start,f=this.startLoc,O=this.jsx_parseNamespacedName();for(this.type===g.dot&&O.type==="JSXNamespacedName"&&!u.allowNamespacedObjects&&this.unexpected();this.eat(g.dot);){let P=this.startNodeAt(y,f);P.object=O,P.property=this.jsx_parseIdentifier(),O=this.finishNode(P,"JSXMemberExpression")}return O}jsx_parseAttributeValue(){switch(this.type){case g.braceL:let y=this.jsx_parseExpressionContainer();return y.expression.type==="JSXEmptyExpression"&&this.raise(y.start,"JSX attributes must only be assigned a non-empty expression"),y;case m.jsxTagStart:case g.string:return this.parseExprAtom();default:this.raise(this.start,"JSX value should be either an expression or a quoted JSX text")}}jsx_parseEmptyExpression(){let y=this.startNodeAt(this.lastTokEnd,this.lastTokEndLoc);return this.finishNodeAt(y,"JSXEmptyExpression",this.start,this.startLoc)}jsx_parseExpressionContainer(){let y=this.startNode();return this.next(),y.expression=this.type===g.braceR?this.jsx_parseEmptyExpression():this.parseExpression(),this.expect(g.braceR),this.finishNode(y,"JSXExpressionContainer")}jsx_parseAttribute(){let y=this.startNode();return this.eat(g.braceL)?(this.expect(g.ellipsis),y.argument=this.parseMaybeAssign(),this.expect(g.braceR),this.finishNode(y,"JSXSpreadAttribute")):(y.name=this.jsx_parseNamespacedName(),y.value=this.eat(g.eq)?this.jsx_parseAttributeValue():null,this.finishNode(y,"JSXAttribute"))}jsx_parseOpeningElementAt(y,f){let O=this.startNodeAt(y,f);O.attributes=[];let P=this.jsx_parseElementName();for(P&&(O.name=P);this.type!==g.slash&&this.type!==m.jsxTagEnd;)O.attributes.push(this.jsx_parseAttribute());return O.selfClosing=this.eat(g.slash),this.expect(m.jsxTagEnd),this.finishNode(O,P?"JSXOpeningElement":"JSXOpeningFragment")}jsx_parseClosingElementAt(y,f){let O=this.startNodeAt(y,f),P=this.jsx_parseElementName();return P&&(O.name=P),this.expect(m.jsxTagEnd),this.finishNode(O,P?"JSXClosingElement":"JSXClosingFragment")}jsx_parseElementAt(y,f){let O=this.startNodeAt(y,f),P=[],F=this.jsx_parseOpeningElementAt(y,f),D=null;if(!F.selfClosing){e:for(;;)switch(this.type){case m.jsxTagStart:if(y=this.start,f=this.startLoc,this.next(),this.eat(g.slash)){D=this.jsx_parseClosingElementAt(y,f);break e}P.push(this.jsx_parseElementAt(y,f));break;case m.jsxText:P.push(this.parseExprAtom());break;case g.braceL:P.push(this.jsx_parseExpressionContainer());break;default:this.unexpected()}s(D.name)!==s(F.name)&&this.raise(D.start,"Expected corresponding JSX closing tag for <"+s(F.name)+">")}let V=F.name?"Element":"Fragment";return O["opening"+V]=F,O["closing"+V]=D,O.children=P,this.type===g.relational&&this.value==="<"&&this.raise(this.start,"Adjacent JSX elements must be wrapped in an enclosing tag"),this.finishNode(O,"JSX"+V)}jsx_parseText(){let y=this.parseLiteral(this.value);return y.type="JSXText",y}jsx_parseElement(){let y=this.start,f=this.startLoc;return this.next(),this.jsx_parseElementAt(y,f)}parseExprAtom(y){return this.type===m.jsxText?this.jsx_parseText():this.type===m.jsxTagStart?this.jsx_parseElement():super.parseExprAtom(y)}readToken(y){let f=this.curContext();if(f===S)return this.jsx_readToken();if(f===v||f===k){if(I(y))return this.jsx_readWord();if(y==62)return++this.pos,this.finishToken(m.jsxTagEnd);if((y===34||y===39)&&f==v)return this.jsx_readString(y)}return y===60&&this.exprAllowed&&this.input.charCodeAt(this.pos+1)!==33?(++this.pos,this.finishToken(m.jsxTagStart)):super.readToken(y)}updateContext(y){if(this.type==g.braceL){var f=this.curContext();f==v?this.context.push(E.b_expr):f==S?this.context.push(E.b_tmpl):super.updateContext(y),this.exprAllowed=!0}else if(this.type===g.slash&&y===m.jsxTagStart)this.context.length-=2,this.context.push(k),this.exprAllowed=!1;else return super.updateContext(y)}}}})(Ns)),Ns.exports}var _1=I1();const A1=Yf(_1),Et=Ji(/[A-Za-z]/),jt=Ji(/[\dA-Za-z]/),N1=Ji(/[#-'*+\--9=?A-Z^-~]/);function Ra(e){return e!==null&&(e<32||e===127)}const ko=Ji(/\d/),T1=Ji(/[\dA-Fa-f]/),O1=Ji(/[!-/:-@[-`{-~]/);function Oe(e){return e!==null&&e<-2}function $e(e){return e!==null&&(e<0||e===32)}function Ve(e){return e===-2||e===-1||e===32}const ts=Ji(new RegExp("\\p{P}|\\p{S}","u")),At=Ji(/\s/);function Ji(e){return t;function t(i){return i!==null&&i>-1&&e.test(String.fromCharCode(i))}}function We(e,t,i,n){const r=n?n-1:Number.POSITIVE_INFINITY;let a=0;return s;function s(u){return Ve(u)?(e.enter(i),l(u)):t(u)}function l(u){return Ve(u)&&a++<r?(e.consume(u),l):(e.exit(i),t(u))}}const P1={}.hasOwnProperty,R1=Symbol("continue"),Os=Symbol("exit"),M1=Symbol("skip");function L1(e,t){let i,n;typeof t=="function"?i=t:t&&typeof t=="object"&&(t.enter&&(i=t.enter),t.leave&&(n=t.leave)),r(e,void 0,void 0,[])();function r(a,s,l,u){return Ps(a)&&(c.displayName="node ("+a.type+")"),c;function c(){const h=i?Hc(i(a,s,l,u)):[];if(h[0]===Os)return h;if(h[0]!==M1){let p;for(p in a)if(P1.call(a,p)&&a[p]&&typeof a[p]=="object"&&p!=="data"&&p!=="position"){const g=u.concat(a),m=a[p];if(Array.isArray(m)){const E=m;let v=0;for(;v>-1&&v<E.length;){const k=E[v];if(Ps(k)){const S=r(k,p,v,g)();if(S[0]===Os)return S;v=typeof S[1]=="number"?S[1]:v+1}else v++}}else if(Ps(m)){const E=r(m,p,void 0,g)();if(E[0]===Os)return E}}}return n?Hc(n(a,s,l,u)):h}}}function Hc(e){return Array.isArray(e)?e:typeof e=="number"?[R1,e]:[e]}function Ps(e){return!!(e&&typeof e=="object"&&"type"in e&&typeof e.type=="string"&&e.type.length>0)}function Qf(e,t){const i=t.prefix||"",n=t.suffix||"",r=Object.assign({},t.acornOptions),a=[],s=[],l=r.onComment,u=r.onToken;let c=!1,h,p;const g=Object.assign({},r,{onComment:a,preserveParens:!0});u&&(g.onToken=s);const m=D1(e,t.tokenTypes),E=m.value,v=i+E+n,k=t.expression&&Kc(E);if(k&&!t.allowEmpty)throw new Xe("Unexpected empty expression",{place:w(0),ruleId:"unexpected-empty-expression",source:"micromark-extension-mdx-expression"});try{h=t.expression&&!k?t.acorn.parseExpressionAt(v,0,g):t.acorn.parse(v,g)}catch(I){const A=I,y=w(A.pos);A.message=String(A.message).replace(/ \(\d+:\d+\)$/,""),A.pos=y.offset,A.loc={line:y.line,column:y.column-1},p=A,c=A.raisedAt>=i.length+E.length||A.message==="Unterminated comment"}if(h&&t.expression&&!k)if(Kc(v.slice(h.end,v.length-n.length)))h={type:"Program",start:0,end:i.length+E.length,body:[{type:"ExpressionStatement",expression:h,start:0,end:i.length+E.length}],sourceType:"module",comments:[]};else{const I=w(h.end),A=new Error("Unexpected content after expression");A.pos=I.offset,A.loc={line:I.line,column:I.column-1},p=A,h=void 0}if(h){if(h.comments=a,L1(h,function(I,A,y,f){let O=f[f.length-1],P=A;I.type==="ParenthesizedExpression"&&O&&P&&(typeof y=="number"&&(O=O[P],P=y),O[P]=I.expression),S(I)}),Array.isArray(l))l.push(...a);else if(typeof l=="function")for(const I of a)l(I.type==="Block",I.value,I.start,I.end,I.loc.start,I.loc.end);for(const I of s)I.end<=i.length||I.start-i.length>=E.length||(S(I),Array.isArray(u)?u.push(I):u(I))}return{estree:h,error:p,swallow:c};function S(I){const A=w(I.start),y=w(I.end);I.start=A.offset,I.end=y.offset,I.loc={start:{line:A.line,column:A.column-1,offset:A.offset},end:{line:y.line,column:y.column-1,offset:y.offset}},I.range=[I.start,I.end]}function w(I){let A=I-i.length;A<0?A=0:A>E.length&&(A=E.length);let y=F1(m.stops,A);return y||(y={line:t.start.line,column:t.start.column,offset:t.start.offset}),y}}function Kc(e){return/^\s*$/.test(e.replace(/\/\*[\s\S]*?\*\//g,"").replace(/\/\/[^\r\n]*(\r\n|\n|\r)/g,""))}function D1(e,t){const i={value:"",stops:[]};let n=-1;for(;++n<e.length;){const r=e[n];if(r[0]==="enter"){const a=r[1].type;if(a==="lineEnding"||t.includes(a)){const s=r[2].sliceStream(r[1]);for(;s.length>0&&s[0]===-1;)s.shift();const l=j1(s);i.stops.push([i.value.length,r[1].start]),i.value+=l,i.stops.push([i.value.length,r[1].end])}}}return i}function F1(e,t){let i=0;for(;i<e.length&&e[i][0]<=t;)i+=1;if(i===0)return;const[n,r]=e[i-1],a=t-n;return{line:r.line,column:r.column+a,offset:r.offset+a}}function j1(e){let t=-1;const i=[];let n;for(;++t<e.length;){const r=e[t];let a;if(typeof r=="string")a=r;else switch(r){case-5:{a="\r";break}case-4:{a=`
86
- `;break}case-3:{a=`\r
87
- `;break}case-2:{a=" ";break}case-1:{if(n)continue;a=" ";break}default:a=String.fromCharCode(r)}n=r===-2,i.push(a)}return i.join("")}function pa(e){const t=e||{},i=t.loc||{},n=t.range||[void 0,void 0],r=Wc(i.start,n[0]||t.start),a=Wc(i.end,n[1]||t.end);if(r&&a)return{start:r,end:a}}function Wc(e,t){if(e&&typeof e=="object"){const i="line"in e?Rs(e.line):void 0,n="column"in e?Rs(e.column):void 0;if(i&&n!==void 0)return{line:i,column:n+1,offset:Rs(t)}}}function Rs(e){return typeof e=="number"&&e>-1?e:void 0}const z1=2,Pn="https://github.com/micromark/micromark-extension-mdx-expression/tree/main/packages/micromark-extension-mdx-expression",V1="#unexpected-end-of-file-in-expression-expected-a-corresponding-closing-brace-for-",B1="#unexpected-lazy-line-in-expression-in-container-expected-line-to-be-prefixed",Uc="#unexpected-type-in-code-expected-an-object-spread-spread",H1="#unexpected-extra-content-in-spread-only-a-single-spread-is-supported",K1="#could-not-parse-expression-with-acorn";function Ma(e,t,i,n,r,a,s,l,u,c,h){const p=this,g=this.events.length+3;let m=0,E,v;return k;function k(A){return e.enter(i),e.enter(n),e.consume(A),e.exit(n),E=p.now(),S}function S(A){if(A===null){if(v)throw v;const y=new Xe("Unexpected end of file in expression, expected a corresponding closing brace for `{`",{place:p.now(),ruleId:"unexpected-eof",source:"micromark-extension-mdx-expression"});throw y.url=Pn+V1,y}if(Oe(A))return e.enter("lineEnding"),e.consume(A),e.exit("lineEnding"),I;if(A===125&&m===0){const y=a?W1.call(p,a,s,r,g,E,c||!1,u||!1):{type:"ok",estree:void 0};if(y.type==="ok"){e.enter(n),e.consume(A),e.exit(n);const f=e.exit(i);return l&&y.estree&&Object.assign(f,{estree:y.estree}),t}return v=y.message,e.enter(r),e.consume(A),w}return e.enter(r),w(A)}function w(A){return A===125&&m===0||A===null||Oe(A)?(e.exit(r),S(A)):(A===123&&!a?m+=1:A===125&&(m-=1),e.consume(A),w)}function I(A){const y=p.now();if(y.line!==E.line&&!h&&p.parser.lazy[y.line]){const f=new Xe("Unexpected lazy line in expression in container, expected line to be prefixed with `>` when in a block quote, whitespace when in a list, etc",{place:p.now(),ruleId:"unexpected-lazy",source:"micromark-extension-mdx-expression"});throw f.url=Pn+B1,f}return Ve(A)?We(e,S,"linePrefix",z1+1)(A):S(A)}}function W1(e,t,i,n,r,a,s){const l=Qf(this.events.slice(n),{acorn:e,tokenTypes:[i],acornOptions:t,start:r,expression:!0,allowEmpty:a,prefix:s?"({":"",suffix:s?"})":""}),u=l.estree;if(s&&u){const c=u.body[0];if(c.type!=="ExpressionStatement"||c.expression.type!=="ObjectExpression"){const h=pa(c),p=new Xe("Unexpected `"+c.type+"` in code: expected an object spread (`{...spread}`)",{place:h.start,ruleId:"non-spread",source:"micromark-extension-mdx-expression"});throw p.url=Pn+Uc,p}if(c.expression.properties[1]){const h=pa(c.expression.properties[1]),p=new Xe("Unexpected extra content in spread: only a single spread is supported",{place:h.start,ruleId:"spread-extra",source:"micromark-extension-mdx-expression"});throw p.url=Pn+H1,p}if(c.expression.properties[0]&&c.expression.properties[0].type!=="SpreadElement"){const h=pa(c.expression.properties[0]),p=new Xe("Unexpected `"+c.expression.properties[0].type+"` in code: only spread elements are supported",{place:h.start,ruleId:"non-spread",source:"micromark-extension-mdx-expression"});throw p.url=Pn+Uc,p}}if(l.error){const c=new Xe("Could not parse expression with acorn",{cause:l.error,place:{line:l.error.loc.line,column:l.error.loc.column+1,offset:l.error.pos},ruleId:"acorn",source:"micromark-extension-mdx-expression"});return c.url=Pn+K1,{type:"nok",message:c}}return{type:"ok",estree:u}}function U1(e){const t=e||{},i=t.addResult,n=t.acorn,r=t.spread;let a=t.allowEmpty,s;if(a==null&&(a=!0),n){if(!n.parseExpressionAt)throw new Error("Expected a proper `acorn` instance passed in as `options.acorn`");s=Object.assign({ecmaVersion:2024,sourceType:"module"},t.acornOptions)}else if(t.acornOptions||t.addResult)throw new Error("Expected an `acorn` instance passed in as `options.acorn`");return{flow:{123:{name:"mdxFlowExpression",tokenize:l,concrete:!0}},text:{123:{name:"mdxTextExpression",tokenize:u}}};function l(c,h,p){const g=this;return m;function m(S){return E(S)}function E(S){return Ma.call(g,c,v,"mdxFlowExpression","mdxFlowExpressionMarker","mdxFlowExpressionChunk",n,s,i,r,a)(S)}function v(S){return Ve(S)?We(c,k,"whitespace")(S):k(S)}function k(S){const w=g.parser.constructs.flow[60],A=(Array.isArray(w)?w:w?[w]:[]).find(function(y){return y.name==="mdxJsxFlowTag"});return S===60&&A?c.attempt(A,k,p)(S):S===null||Oe(S)?h(S):p(S)}}function u(c,h){const p=this;return g;function g(m){return Ma.call(p,c,h,"mdxTextExpression","mdxTextExpressionMarker","mdxTextExpressionChunk",n,s,i,r,a,!0)(m)}}}const q1=/[$_\p{ID_Start}]/u,G1=/[$_\u{200C}\u{200D}\p{ID_Continue}]/u,$1=/[-$_\u{200C}\u{200D}\p{ID_Continue}]/u,J1={};function ri(e){return e?q1.test(String.fromCodePoint(e)):!1}function Xn(e,t){const n=(t||J1).jsx?$1:G1;return e?n.test(String.fromCodePoint(e)):!1}const qc="https://github.com/micromark/micromark-extension-mdx-jsx";function Zf(e,t,i,n,r,a,s,l,u,c,h,p,g,m,E,v,k,S,w,I,A,y,f,O,P,F,D,V,J,ue,Q,se){const j=this;let U,Y;return de;function de(R){return e.enter(l),e.enter(u),e.consume(R),e.exit(u),C}function C(R){return $e(R)?i(R):(U=$,Re(R))}function $(R){if(R===47)return e.enter(c),e.consume(R),e.exit(c),U=ee,Re;if(R===62)return Pe(R);if(R!==null&&R>=0&&ri(R))return e.enter(p),e.enter(g),e.consume(R),T;re(R,"before name","a character that can start a name, such as a letter, `$`, or `_`"+(R===33?" (note: to create a comment in MDX, use `{/* text */}`)":""))}function ee(R){if(R===62)return Pe(R);if(R!==null&&R>=0&&ri(R))return e.enter(p),e.enter(g),e.consume(R),T;re(R,"before name","a character that can start a name, such as a letter, `$`, or `_`"+(R===42||R===47?" (note: JS comments in JSX tags are not supported in MDX)":""))}function T(R){if(R!==null&&R>=0&&Xn(R,{jsx:!0}))return e.consume(R),T;if(R===46||R===47||R===58||R===62||R===123||$e(R)||At(R))return e.exit(g),U=B,Re(R);re(R,"in name","a name character such as letters, digits, `$`, or `_`; whitespace before attributes; or the end of the tag"+(R===64?" (note: to create a link in MDX, use `[text](url)`)":""))}function B(R){if(R===46)return e.enter(m),e.consume(R),e.exit(m),U=W,Re;if(R===58)return e.enter(v),e.consume(R),e.exit(v),U=ne,Re;if(R===47||R===62||R===123||R!==null&&R>=0&&ri(R))return e.exit(p),oe(R);re(R,"after name","a character that can start an attribute name, such as a letter, `$`, or `_`; whitespace before attributes; or the end of the tag")}function W(R){if(R!==null&&R>=0&&ri(R))return e.enter(E),e.consume(R),z;re(R,"before member name","a character that can start an attribute name, such as a letter, `$`, or `_`; whitespace before attributes; or the end of the tag")}function z(R){if(R!==null&&R>=0&&Xn(R,{jsx:!0}))return e.consume(R),z;if(R===46||R===47||R===62||R===123||$e(R)||At(R))return e.exit(E),U=K,Re(R);re(R,"in member name","a name character such as letters, digits, `$`, or `_`; whitespace before attributes; or the end of the tag"+(R===64?" (note: to create a link in MDX, use `[text](url)`)":""))}function K(R){if(R===46)return e.enter(m),e.consume(R),e.exit(m),U=W,Re;if(R===47||R===62||R===123||R!==null&&R>=0&&ri(R))return e.exit(p),oe(R);re(R,"after member name","a character that can start an attribute name, such as a letter, `$`, or `_`; whitespace before attributes; or the end of the tag")}function ne(R){if(R!==null&&R>=0&&ri(R))return e.enter(k),e.consume(R),ae;re(R,"before local name","a character that can start a name, such as a letter, `$`, or `_`"+(R===43||R!==null&&R>46&&R<58?" (note: to create a link in MDX, use `[text](url)`)":""))}function ae(R){if(R!==null&&R>=0&&Xn(R,{jsx:!0}))return e.consume(R),ae;if(R===47||R===62||R===123||$e(R)||At(R))return e.exit(k),U=le,Re(R);re(R,"in local name","a name character such as letters, digits, `$`, or `_`; whitespace before attributes; or the end of the tag")}function le(R){if(R===47||R===62||R===123||R!==null&&R>=0&&ri(R))return e.exit(p),oe(R);re(R,"after local name","a character that can start an attribute name, such as a letter, `$`, or `_`; whitespace before attributes; or the end of the tag")}function oe(R){if(R===47)return e.enter(h),e.consume(R),e.exit(h),U=ze,Re;if(R===62)return Pe(R);if(R===123)return Ma.call(j,e,H,S,w,I,n,r,a,!0,!1,s)(R);if(R!==null&&R>=0&&ri(R))return e.enter(A),e.enter(y),e.enter(f),e.consume(R),ve;re(R,"before attribute name","a character that can start an attribute name, such as a letter, `$`, or `_`; whitespace before attributes; or the end of the tag")}function H(R){return U=oe,Re(R)}function ve(R){if(R!==null&&R>=0&&Xn(R,{jsx:!0}))return e.consume(R),ve;if(R===47||R===58||R===61||R===62||R===123||$e(R)||At(R))return e.exit(f),U=Z,Re(R);re(R,"in attribute name","an attribute name character such as letters, digits, `$`, or `_`; `=` to initialize a value; whitespace before attributes; or the end of the tag")}function Z(R){if(R===58)return e.enter(O),e.consume(R),e.exit(O),U=xe,Re;if(R===61)return e.exit(y),e.enter(F),e.consume(R),e.exit(F),U=me,Re;if(R===47||R===62||R===123||$e(R)||At(R)||R!==null&&R>=0&&ri(R))return e.exit(y),e.exit(A),U=oe,Re(R);re(R,"after attribute name","a character that can start an attribute name, such as a letter, `$`, or `_`; `=` to initialize a value; or the end of the tag")}function xe(R){if(R!==null&&R>=0&&ri(R))return e.enter(P),e.consume(R),be;re(R,"before local attribute name","a character that can start an attribute name, such as a letter, `$`, or `_`; `=` to initialize a value; or the end of the tag")}function be(R){if(R!==null&&R>=0&&Xn(R,{jsx:!0}))return e.consume(R),be;if(R===47||R===61||R===62||R===123||$e(R)||At(R))return e.exit(P),e.exit(y),U=ie,Re(R);re(R,"in local attribute name","an attribute name character such as letters, digits, `$`, or `_`; `=` to initialize a value; whitespace before attributes; or the end of the tag")}function ie(R){if(R===61)return e.enter(F),e.consume(R),e.exit(F),U=me,Re;if(R===47||R===62||R===123||R!==null&&R>=0&&ri(R))return e.exit(A),oe(R);re(R,"after local attribute name","a character that can start an attribute name, such as a letter, `$`, or `_`; `=` to initialize a value; or the end of the tag")}function me(R){if(R===34||R===39)return e.enter(D),e.enter(V),e.consume(R),e.exit(V),Y=R,we;if(R===123)return Ma.call(j,e,Ee,ue,Q,se,n,r,a,!1,!1,s)(R);re(R,"before attribute value","a character that can start an attribute value, such as `\"`, `'`, or `{`"+(R===60?" (note: to use an element or fragment as a prop value in MDX, use `{<element />}`)":""))}function Ee(R){return e.exit(A),U=oe,Re(R)}function we(R){return R===null&&re(R,"in attribute value","a corresponding closing quote `"+String.fromCodePoint(Y)+"`"),R===Y?(e.enter(V),e.consume(R),e.exit(V),e.exit(D),e.exit(A),Y=void 0,U=oe,Re):Oe(R)?(U=we,Re(R)):(e.enter(J),Be(R))}function Be(R){return R===null||R===Y||Oe(R)?(e.exit(J),we(R)):(e.consume(R),Be)}function ze(R){if(R===62)return Pe(R);re(R,"after self-closing slash","`>` to end the tag"+(R===42||R===47?" (note: JS comments in JSX tags are not supported in MDX)":""))}function Pe(R){return e.enter(u),e.consume(R),e.exit(u),e.exit(l),t}function Re(R){return Oe(R)?(e.enter("lineEnding"),e.consume(R),e.exit("lineEnding"),te):Ve(R)||At(R)?(e.enter("esWhitespace"),rt(R)):U(R)}function rt(R){return Oe(R)?(e.exit("esWhitespace"),Re(R)):Ve(R)||At(R)?(e.consume(R),rt):(e.exit("esWhitespace"),U(R))}function te(R){if(!s&&j.parser.lazy[j.now().line]){const Ce=new Xe("Unexpected lazy line in container, expected line to be prefixed with `>` when in a block quote, whitespace when in a list, etc",j.now(),"micromark-extension-mdx-jsx:unexpected-lazy");throw Ce.url=qc+"#unexpected-lazy-line-in-container-expected-line-to-be",Ce}return Re(R)}function re(R,Ce,Fe){const ht=new Xe("Unexpected "+(R===null?"end of file":"character `"+(R===96?"` ` `":String.fromCodePoint(R))+"` ("+Y1(R)+")")+" "+Ce+", expected "+Fe,j.now(),"micromark-extension-mdx-jsx:unexpected-"+(R===null?"eof":"character"));throw ht.url=qc+(R===null?"#unexpected-end-of-file-at-expected-expect":"#unexpected-character-at-expected-expect"),ht}}function Y1(e){return"U+"+e.toString(16).toUpperCase().padStart(4,"0")}function Q1(e,t){return{name:"mdxJsxTextTag",tokenize:i};function i(n,r,a){return Zf.call(this,n,r,a,e,t.acornOptions,t.addResult,!0,"mdxJsxTextTag","mdxJsxTextTagMarker","mdxJsxTextTagClosingMarker","mdxJsxTextTagSelfClosingMarker","mdxJsxTextTagName","mdxJsxTextTagNamePrimary","mdxJsxTextTagNameMemberMarker","mdxJsxTextTagNameMember","mdxJsxTextTagNamePrefixMarker","mdxJsxTextTagNameLocal","mdxJsxTextTagExpressionAttribute","mdxJsxTextTagExpressionAttributeMarker","mdxJsxTextTagExpressionAttributeValue","mdxJsxTextTagAttribute","mdxJsxTextTagAttributeName","mdxJsxTextTagAttributeNamePrimary","mdxJsxTextTagAttributeNamePrefixMarker","mdxJsxTextTagAttributeNameLocal","mdxJsxTextTagAttributeInitializerMarker","mdxJsxTextTagAttributeValueLiteral","mdxJsxTextTagAttributeValueLiteralMarker","mdxJsxTextTagAttributeValueLiteralValue","mdxJsxTextTagAttributeValueExpression","mdxJsxTextTagAttributeValueExpressionMarker","mdxJsxTextTagAttributeValueExpressionValue")}}function Z1(e,t){return{concrete:!0,name:"mdxJsxFlowTag",tokenize:i};function i(n,r,a){const s=this;return l;function l(p){return u(p)}function u(p){return Zf.call(s,n,c,a,e,t.acornOptions,t.addResult,!1,"mdxJsxFlowTag","mdxJsxFlowTagMarker","mdxJsxFlowTagClosingMarker","mdxJsxFlowTagSelfClosingMarker","mdxJsxFlowTagName","mdxJsxFlowTagNamePrimary","mdxJsxFlowTagNameMemberMarker","mdxJsxFlowTagNameMember","mdxJsxFlowTagNamePrefixMarker","mdxJsxFlowTagNameLocal","mdxJsxFlowTagExpressionAttribute","mdxJsxFlowTagExpressionAttributeMarker","mdxJsxFlowTagExpressionAttributeValue","mdxJsxFlowTagAttribute","mdxJsxFlowTagAttributeName","mdxJsxFlowTagAttributeNamePrimary","mdxJsxFlowTagAttributeNamePrefixMarker","mdxJsxFlowTagAttributeNameLocal","mdxJsxFlowTagAttributeInitializerMarker","mdxJsxFlowTagAttributeValueLiteral","mdxJsxFlowTagAttributeValueLiteralMarker","mdxJsxFlowTagAttributeValueLiteralValue","mdxJsxFlowTagAttributeValueExpression","mdxJsxFlowTagAttributeValueExpressionMarker","mdxJsxFlowTagAttributeValueExpressionValue")(p)}function c(p){return Ve(p)?We(n,h,"whitespace")(p):h(p)}function h(p){const g=s.parser.constructs.flow[123],m=Array.isArray(g)?g:g?[g]:[];let E;for(const v of m)if(v.name==="mdxFlowExpression"){E=v;break}return p===60?l(p):p===123&&E?n.attempt(E,h,a)(p):p===null||Oe(p)?r(p):a(p)}}}function X1(e){const t=e||{},i=t.acorn;let n;if(i){if(!i.parse||!i.parseExpressionAt)throw new Error("Expected a proper `acorn` instance passed in as `options.acorn`");n=Object.assign({ecmaVersion:2024,sourceType:"module"},t.acornOptions,{locations:!0})}else if(t.acornOptions||t.addResult)throw new Error("Expected an `acorn` instance passed in as `options.acorn`");return{flow:{60:Z1(i||void 0,{acornOptions:n,addResult:t.addResult||void 0})},text:{60:Q1(i||void 0,{acornOptions:n,addResult:t.addResult||void 0})}}}function ek(){return{disable:{null:["autolink","codeIndented","htmlFlow","htmlText"]}}}function Kt(e,t,i,n){const r=e.length;let a=0,s;if(t<0?t=-t>r?0:r+t:t=t>r?r:t,i=i>0?i:0,n.length<1e4)s=Array.from(n),s.unshift(t,i),e.splice(...s);else for(i&&e.splice(t,i);a<n.length;)s=n.slice(a,a+1e4),s.unshift(t,0),e.splice(...s),a+=1e4,t+=1e4}function Yt(e,t){return e.length>0?(Kt(e,e.length,0,t),e):t}function Fn(e){if(e===null||$e(e)||At(e))return 1;if(ts(e))return 2}function is(e,t,i){const n=[];let r=-1;for(;++r<e.length;){const a=e[r].resolveAll;a&&!n.includes(a)&&(t=a(t,i),n.push(a))}return t}const So={name:"attention",resolveAll:tk,tokenize:ik};function tk(e,t){let i=-1,n,r,a,s,l,u,c,h;for(;++i<e.length;)if(e[i][0]==="enter"&&e[i][1].type==="attentionSequence"&&e[i][1]._close){for(n=i;n--;)if(e[n][0]==="exit"&&e[n][1].type==="attentionSequence"&&e[n][1]._open&&t.sliceSerialize(e[n][1]).charCodeAt(0)===t.sliceSerialize(e[i][1]).charCodeAt(0)){if((e[n][1]._close||e[i][1]._open)&&(e[i][1].end.offset-e[i][1].start.offset)%3&&!((e[n][1].end.offset-e[n][1].start.offset+e[i][1].end.offset-e[i][1].start.offset)%3))continue;u=e[n][1].end.offset-e[n][1].start.offset>1&&e[i][1].end.offset-e[i][1].start.offset>1?2:1;const p={...e[n][1].end},g={...e[i][1].start};Gc(p,-u),Gc(g,u),s={type:u>1?"strongSequence":"emphasisSequence",start:p,end:{...e[n][1].end}},l={type:u>1?"strongSequence":"emphasisSequence",start:{...e[i][1].start},end:g},a={type:u>1?"strongText":"emphasisText",start:{...e[n][1].end},end:{...e[i][1].start}},r={type:u>1?"strong":"emphasis",start:{...s.start},end:{...l.end}},e[n][1].end={...s.start},e[i][1].start={...l.end},c=[],e[n][1].end.offset-e[n][1].start.offset&&(c=Yt(c,[["enter",e[n][1],t],["exit",e[n][1],t]])),c=Yt(c,[["enter",r,t],["enter",s,t],["exit",s,t],["enter",a,t]]),c=Yt(c,is(t.parser.constructs.insideSpan.null,e.slice(n+1,i),t)),c=Yt(c,[["exit",a,t],["enter",l,t],["exit",l,t],["exit",r,t]]),e[i][1].end.offset-e[i][1].start.offset?(h=2,c=Yt(c,[["enter",e[i][1],t],["exit",e[i][1],t]])):h=0,Kt(e,n-1,i-n+3,c),i=n+c.length-h-2;break}}for(i=-1;++i<e.length;)e[i][1].type==="attentionSequence"&&(e[i][1].type="data");return e}function ik(e,t){const i=this.parser.constructs.attentionMarkers.null,n=this.previous,r=Fn(n);let a;return s;function s(u){return a=u,e.enter("attentionSequence"),l(u)}function l(u){if(u===a)return e.consume(u),l;const c=e.exit("attentionSequence"),h=Fn(u),p=!h||h===2&&r||i.includes(u),g=!r||r===2&&h||i.includes(n);return c._open=!!(a===42?p:p&&(r||!g)),c._close=!!(a===42?g:g&&(h||!p)),t(u)}}function Gc(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}const nk={name:"autolink",tokenize:rk};function rk(e,t,i){let n=0;return r;function r(m){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(m),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),a}function a(m){return Et(m)?(e.consume(m),s):m===64?i(m):c(m)}function s(m){return m===43||m===45||m===46||jt(m)?(n=1,l(m)):c(m)}function l(m){return m===58?(e.consume(m),n=0,u):(m===43||m===45||m===46||jt(m))&&n++<32?(e.consume(m),l):(n=0,c(m))}function u(m){return m===62?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(m),e.exit("autolinkMarker"),e.exit("autolink"),t):m===null||m===32||m===60||Ra(m)?i(m):(e.consume(m),u)}function c(m){return m===64?(e.consume(m),h):N1(m)?(e.consume(m),c):i(m)}function h(m){return jt(m)?p(m):i(m)}function p(m){return m===46?(e.consume(m),n=0,h):m===62?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(m),e.exit("autolinkMarker"),e.exit("autolink"),t):g(m)}function g(m){if((m===45||jt(m))&&n++<63){const E=m===45?g:p;return e.consume(m),E}return i(m)}}const Un={partial:!0,tokenize:ak};function ak(e,t,i){return n;function n(a){return Ve(a)?We(e,r,"linePrefix")(a):r(a)}function r(a){return a===null||Oe(a)?t(a):i(a)}}const Xf={continuation:{tokenize:ok},exit:lk,name:"blockQuote",tokenize:sk};function sk(e,t,i){const n=this;return r;function r(s){if(s===62){const l=n.containerState;return l.open||(e.enter("blockQuote",{_container:!0}),l.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(s),e.exit("blockQuoteMarker"),a}return i(s)}function a(s){return Ve(s)?(e.enter("blockQuotePrefixWhitespace"),e.consume(s),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(s))}}function ok(e,t,i){const n=this;return r;function r(s){return Ve(s)?We(e,a,"linePrefix",n.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(s):a(s)}function a(s){return e.attempt(Xf,t,i)(s)}}function lk(e){e.exit("blockQuote")}const eg={name:"characterEscape",tokenize:uk};function uk(e,t,i){return n;function n(a){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(a),e.exit("escapeMarker"),r}function r(a){return O1(a)?(e.enter("characterEscapeValue"),e.consume(a),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):i(a)}}const tg={name:"characterReference",tokenize:ck};function ck(e,t,i){const n=this;let r=0,a,s;return l;function l(p){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(p),e.exit("characterReferenceMarker"),u}function u(p){return p===35?(e.enter("characterReferenceMarkerNumeric"),e.consume(p),e.exit("characterReferenceMarkerNumeric"),c):(e.enter("characterReferenceValue"),a=31,s=jt,h(p))}function c(p){return p===88||p===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(p),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),a=6,s=T1,h):(e.enter("characterReferenceValue"),a=7,s=ko,h(p))}function h(p){if(p===59&&r){const g=e.exit("characterReferenceValue");return s===jt&&!pr(n.sliceSerialize(g))?i(p):(e.enter("characterReferenceMarker"),e.consume(p),e.exit("characterReferenceMarker"),e.exit("characterReference"),t)}return s(p)&&r++<a?(e.consume(p),h):i(p)}}const $c={partial:!0,tokenize:dk},Jc={concrete:!0,name:"codeFenced",tokenize:hk};function hk(e,t,i){const n=this,r={partial:!0,tokenize:y};let a=0,s=0,l;return u;function u(f){return c(f)}function c(f){const O=n.events[n.events.length-1];return a=O&&O[1].type==="linePrefix"?O[2].sliceSerialize(O[1],!0).length:0,l=f,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),h(f)}function h(f){return f===l?(s++,e.consume(f),h):s<3?i(f):(e.exit("codeFencedFenceSequence"),Ve(f)?We(e,p,"whitespace")(f):p(f))}function p(f){return f===null||Oe(f)?(e.exit("codeFencedFence"),n.interrupt?t(f):e.check($c,v,A)(f)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),g(f))}function g(f){return f===null||Oe(f)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),p(f)):Ve(f)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),We(e,m,"whitespace")(f)):f===96&&f===l?i(f):(e.consume(f),g)}function m(f){return f===null||Oe(f)?p(f):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),E(f))}function E(f){return f===null||Oe(f)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),p(f)):f===96&&f===l?i(f):(e.consume(f),E)}function v(f){return e.attempt(r,A,k)(f)}function k(f){return e.enter("lineEnding"),e.consume(f),e.exit("lineEnding"),S}function S(f){return a>0&&Ve(f)?We(e,w,"linePrefix",a+1)(f):w(f)}function w(f){return f===null||Oe(f)?e.check($c,v,A)(f):(e.enter("codeFlowValue"),I(f))}function I(f){return f===null||Oe(f)?(e.exit("codeFlowValue"),w(f)):(e.consume(f),I)}function A(f){return e.exit("codeFenced"),t(f)}function y(f,O,P){let F=0;return D;function D(se){return f.enter("lineEnding"),f.consume(se),f.exit("lineEnding"),V}function V(se){return f.enter("codeFencedFence"),Ve(se)?We(f,J,"linePrefix",n.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(se):J(se)}function J(se){return se===l?(f.enter("codeFencedFenceSequence"),ue(se)):P(se)}function ue(se){return se===l?(F++,f.consume(se),ue):F>=s?(f.exit("codeFencedFenceSequence"),Ve(se)?We(f,Q,"whitespace")(se):Q(se)):P(se)}function Q(se){return se===null||Oe(se)?(f.exit("codeFencedFence"),O(se)):P(se)}}}function dk(e,t,i){const n=this;return r;function r(s){return s===null?i(s):(e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),a)}function a(s){return n.parser.lazy[n.now().line]?i(s):t(s)}}const Ms={name:"codeIndented",tokenize:fk},pk={partial:!0,tokenize:gk};function fk(e,t,i){const n=this;return r;function r(c){return e.enter("codeIndented"),We(e,a,"linePrefix",5)(c)}function a(c){const h=n.events[n.events.length-1];return h&&h[1].type==="linePrefix"&&h[2].sliceSerialize(h[1],!0).length>=4?s(c):i(c)}function s(c){return c===null?u(c):Oe(c)?e.attempt(pk,s,u)(c):(e.enter("codeFlowValue"),l(c))}function l(c){return c===null||Oe(c)?(e.exit("codeFlowValue"),s(c)):(e.consume(c),l)}function u(c){return e.exit("codeIndented"),t(c)}}function gk(e,t,i){const n=this;return r;function r(s){return n.parser.lazy[n.now().line]?i(s):Oe(s)?(e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),r):We(e,a,"linePrefix",5)(s)}function a(s){const l=n.events[n.events.length-1];return l&&l[1].type==="linePrefix"&&l[2].sliceSerialize(l[1],!0).length>=4?t(s):Oe(s)?r(s):i(s)}}const mk={name:"codeText",previous:xk,resolve:vk,tokenize:bk};function vk(e){let t=e.length-4,i=3,n,r;if((e[i][1].type==="lineEnding"||e[i][1].type==="space")&&(e[t][1].type==="lineEnding"||e[t][1].type==="space")){for(n=i;++n<t;)if(e[n][1].type==="codeTextData"){e[i][1].type="codeTextPadding",e[t][1].type="codeTextPadding",i+=2,t-=2;break}}for(n=i-1,t++;++n<=t;)r===void 0?n!==t&&e[n][1].type!=="lineEnding"&&(r=n):(n===t||e[n][1].type==="lineEnding")&&(e[r][1].type="codeTextData",n!==r+2&&(e[r][1].end=e[n-1][1].end,e.splice(r+2,n-r-2),t-=n-r-2,n=r+2),r=void 0);return e}function xk(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function bk(e,t,i){let n=0,r,a;return s;function s(p){return e.enter("codeText"),e.enter("codeTextSequence"),l(p)}function l(p){return p===96?(e.consume(p),n++,l):(e.exit("codeTextSequence"),u(p))}function u(p){return p===null?i(p):p===32?(e.enter("space"),e.consume(p),e.exit("space"),u):p===96?(a=e.enter("codeTextSequence"),r=0,h(p)):Oe(p)?(e.enter("lineEnding"),e.consume(p),e.exit("lineEnding"),u):(e.enter("codeTextData"),c(p))}function c(p){return p===null||p===32||p===96||Oe(p)?(e.exit("codeTextData"),u(p)):(e.consume(p),c)}function h(p){return p===96?(e.consume(p),r++,h):r===n?(e.exit("codeTextSequence"),e.exit("codeText"),t(p)):(a.type="codeTextData",c(p))}}class yk{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,i){const n=i??Number.POSITIVE_INFINITY;return n<this.left.length?this.left.slice(t,n):t>this.left.length?this.right.slice(this.right.length-n+this.left.length,this.right.length-t+this.left.length).reverse():this.left.slice(t).concat(this.right.slice(this.right.length-n+this.left.length).reverse())}splice(t,i,n){const r=i||0;this.setCursor(Math.trunc(t));const a=this.right.splice(this.right.length-r,Number.POSITIVE_INFINITY);return n&&er(this.left,n),a.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),er(this.left,t)}unshift(t){this.setCursor(0),this.right.push(t)}unshiftMany(t){this.setCursor(0),er(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 i=this.left.splice(t,Number.POSITIVE_INFINITY);er(this.right,i.reverse())}else{const i=this.right.splice(this.left.length+this.right.length-t,Number.POSITIVE_INFINITY);er(this.left,i.reverse())}}}function er(e,t){let i=0;if(t.length<1e4)e.push(...t);else for(;i<t.length;)e.push(...t.slice(i,i+1e4)),i+=1e4}function ig(e){const t={};let i=-1,n,r,a,s,l,u,c;const h=new yk(e);for(;++i<h.length;){for(;i in t;)i=t[i];if(n=h.get(i),i&&n[1].type==="chunkFlow"&&h.get(i-1)[1].type==="listItemPrefix"&&(u=n[1]._tokenizer.events,a=0,a<u.length&&u[a][1].type==="lineEndingBlank"&&(a+=2),a<u.length&&u[a][1].type==="content"))for(;++a<u.length&&u[a][1].type!=="content";)u[a][1].type==="chunkText"&&(u[a][1]._isInFirstContentOfListItem=!0,a++);if(n[0]==="enter")n[1].contentType&&(Object.assign(t,wk(h,i)),i=t[i],c=!0);else if(n[1]._container){for(a=i,r=void 0;a--;)if(s=h.get(a),s[1].type==="lineEnding"||s[1].type==="lineEndingBlank")s[0]==="enter"&&(r&&(h.get(r)[1].type="lineEndingBlank"),s[1].type="lineEnding",r=a);else if(!(s[1].type==="linePrefix"||s[1].type==="listItemIndent"))break;r&&(n[1].end={...h.get(r)[1].start},l=h.slice(r,i),l.unshift(n),h.splice(r,i-r+1,l))}}return Kt(e,0,Number.POSITIVE_INFINITY,h.slice(0)),!c}function wk(e,t){const i=e.get(t)[1],n=e.get(t)[2];let r=t-1;const a=[];let s=i._tokenizer;s||(s=n.parser[i.contentType](i.start),i._contentTypeTextTrailing&&(s._contentTypeTextTrailing=!0));const l=s.events,u=[],c={};let h,p,g=-1,m=i,E=0,v=0;const k=[v];for(;m;){for(;e.get(++r)[1]!==m;);a.push(r),m._tokenizer||(h=n.sliceStream(m),m.next||h.push(null),p&&s.defineSkip(m.start),m._isInFirstContentOfListItem&&(s._gfmTasklistFirstContentOfListItem=!0),s.write(h),m._isInFirstContentOfListItem&&(s._gfmTasklistFirstContentOfListItem=void 0)),p=m,m=m.next}for(m=i;++g<l.length;)l[g][0]==="exit"&&l[g-1][0]==="enter"&&l[g][1].type===l[g-1][1].type&&l[g][1].start.line!==l[g][1].end.line&&(v=g+1,k.push(v),m._tokenizer=void 0,m.previous=void 0,m=m.next);for(s.events=[],m?(m._tokenizer=void 0,m.previous=void 0):k.pop(),g=k.length;g--;){const S=l.slice(k[g],k[g+1]),w=a.pop();u.push([w,w+S.length-1]),e.splice(w,2,S)}for(u.reverse(),g=-1;++g<u.length;)c[E+u[g][0]]=E+u[g][1],E+=u[g][1]-u[g][0]-1;return c}const kk={resolve:Ek,tokenize:Ck},Sk={partial:!0,tokenize:Ik};function Ek(e){return ig(e),e}function Ck(e,t){let i;return n;function n(l){return e.enter("content"),i=e.enter("chunkContent",{contentType:"content"}),r(l)}function r(l){return l===null?a(l):Oe(l)?e.check(Sk,s,a)(l):(e.consume(l),r)}function a(l){return e.exit("chunkContent"),e.exit("content"),t(l)}function s(l){return e.consume(l),e.exit("chunkContent"),i.next=e.enter("chunkContent",{contentType:"content",previous:i}),i=i.next,r}}function Ik(e,t,i){const n=this;return r;function r(s){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),We(e,a,"linePrefix")}function a(s){if(s===null||Oe(s))return i(s);const l=n.events[n.events.length-1];return!n.parser.constructs.disable.null.includes("codeIndented")&&l&&l[1].type==="linePrefix"&&l[2].sliceSerialize(l[1],!0).length>=4?t(s):e.interrupt(n.parser.constructs.flow,i,t)(s)}}function ng(e,t,i,n,r,a,s,l,u){const c=u||Number.POSITIVE_INFINITY;let h=0;return p;function p(S){return S===60?(e.enter(n),e.enter(r),e.enter(a),e.consume(S),e.exit(a),g):S===null||S===32||S===41||Ra(S)?i(S):(e.enter(n),e.enter(s),e.enter(l),e.enter("chunkString",{contentType:"string"}),v(S))}function g(S){return S===62?(e.enter(a),e.consume(S),e.exit(a),e.exit(r),e.exit(n),t):(e.enter(l),e.enter("chunkString",{contentType:"string"}),m(S))}function m(S){return S===62?(e.exit("chunkString"),e.exit(l),g(S)):S===null||S===60||Oe(S)?i(S):(e.consume(S),S===92?E:m)}function E(S){return S===60||S===62||S===92?(e.consume(S),m):m(S)}function v(S){return!h&&(S===null||S===41||$e(S))?(e.exit("chunkString"),e.exit(l),e.exit(s),e.exit(n),t(S)):h<c&&S===40?(e.consume(S),h++,v):S===41?(e.consume(S),h--,v):S===null||S===32||S===40||Ra(S)?i(S):(e.consume(S),S===92?k:v)}function k(S){return S===40||S===41||S===92?(e.consume(S),v):v(S)}}function rg(e,t,i,n,r,a){const s=this;let l=0,u;return c;function c(m){return e.enter(n),e.enter(r),e.consume(m),e.exit(r),e.enter(a),h}function h(m){return l>999||m===null||m===91||m===93&&!u||m===94&&!l&&"_hiddenFootnoteSupport"in s.parser.constructs?i(m):m===93?(e.exit(a),e.enter(r),e.consume(m),e.exit(r),e.exit(n),t):Oe(m)?(e.enter("lineEnding"),e.consume(m),e.exit("lineEnding"),h):(e.enter("chunkString",{contentType:"string"}),p(m))}function p(m){return m===null||m===91||m===93||Oe(m)||l++>999?(e.exit("chunkString"),h(m)):(e.consume(m),u||(u=!Ve(m)),m===92?g:p)}function g(m){return m===91||m===92||m===93?(e.consume(m),l++,p):p(m)}}function ag(e,t,i,n,r,a){let s;return l;function l(g){return g===34||g===39||g===40?(e.enter(n),e.enter(r),e.consume(g),e.exit(r),s=g===40?41:g,u):i(g)}function u(g){return g===s?(e.enter(r),e.consume(g),e.exit(r),e.exit(n),t):(e.enter(a),c(g))}function c(g){return g===s?(e.exit(a),u(s)):g===null?i(g):Oe(g)?(e.enter("lineEnding"),e.consume(g),e.exit("lineEnding"),We(e,c,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),h(g))}function h(g){return g===s||g===null||Oe(g)?(e.exit("chunkString"),c(g)):(e.consume(g),g===92?p:h)}function p(g){return g===s||g===92?(e.consume(g),h):h(g)}}function sr(e,t){let i;return n;function n(r){return Oe(r)?(e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),i=!0,n):Ve(r)?We(e,n,i?"linePrefix":"lineSuffix")(r):t(r)}}function ui(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const _k={name:"definition",tokenize:Nk},Ak={partial:!0,tokenize:Tk};function Nk(e,t,i){const n=this;let r;return a;function a(m){return e.enter("definition"),s(m)}function s(m){return rg.call(n,e,l,i,"definitionLabel","definitionLabelMarker","definitionLabelString")(m)}function l(m){return r=ui(n.sliceSerialize(n.events[n.events.length-1][1]).slice(1,-1)),m===58?(e.enter("definitionMarker"),e.consume(m),e.exit("definitionMarker"),u):i(m)}function u(m){return $e(m)?sr(e,c)(m):c(m)}function c(m){return ng(e,h,i,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(m)}function h(m){return e.attempt(Ak,p,p)(m)}function p(m){return Ve(m)?We(e,g,"whitespace")(m):g(m)}function g(m){return m===null||Oe(m)?(e.exit("definition"),n.parser.defined.push(r),t(m)):i(m)}}function Tk(e,t,i){return n;function n(l){return $e(l)?sr(e,r)(l):i(l)}function r(l){return ag(e,a,i,"definitionTitle","definitionTitleMarker","definitionTitleString")(l)}function a(l){return Ve(l)?We(e,s,"whitespace")(l):s(l)}function s(l){return l===null||Oe(l)?t(l):i(l)}}const Ok={name:"hardBreakEscape",tokenize:Pk};function Pk(e,t,i){return n;function n(a){return e.enter("hardBreakEscape"),e.consume(a),r}function r(a){return Oe(a)?(e.exit("hardBreakEscape"),t(a)):i(a)}}const Rk={name:"headingAtx",resolve:Mk,tokenize:Lk};function Mk(e,t){let i=e.length-2,n=3,r,a;return e[n][1].type==="whitespace"&&(n+=2),i-2>n&&e[i][1].type==="whitespace"&&(i-=2),e[i][1].type==="atxHeadingSequence"&&(n===i-1||i-4>n&&e[i-2][1].type==="whitespace")&&(i-=n+1===i?2:4),i>n&&(r={type:"atxHeadingText",start:e[n][1].start,end:e[i][1].end},a={type:"chunkText",start:e[n][1].start,end:e[i][1].end,contentType:"text"},Kt(e,n,i-n+1,[["enter",r,t],["enter",a,t],["exit",a,t],["exit",r,t]])),e}function Lk(e,t,i){let n=0;return r;function r(h){return e.enter("atxHeading"),a(h)}function a(h){return e.enter("atxHeadingSequence"),s(h)}function s(h){return h===35&&n++<6?(e.consume(h),s):h===null||$e(h)?(e.exit("atxHeadingSequence"),l(h)):i(h)}function l(h){return h===35?(e.enter("atxHeadingSequence"),u(h)):h===null||Oe(h)?(e.exit("atxHeading"),t(h)):Ve(h)?We(e,l,"whitespace")(h):(e.enter("atxHeadingText"),c(h))}function u(h){return h===35?(e.consume(h),u):(e.exit("atxHeadingSequence"),l(h))}function c(h){return h===null||h===35||$e(h)?(e.exit("atxHeadingText"),l(h)):(e.consume(h),c)}}const Dk=["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"],Yc=["pre","script","style","textarea"],Fk={concrete:!0,name:"htmlFlow",resolveTo:Vk,tokenize:Bk},jk={partial:!0,tokenize:Kk},zk={partial:!0,tokenize:Hk};function Vk(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 Bk(e,t,i){const n=this;let r,a,s,l,u;return c;function c(T){return h(T)}function h(T){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(T),p}function p(T){return T===33?(e.consume(T),g):T===47?(e.consume(T),a=!0,v):T===63?(e.consume(T),r=3,n.interrupt?t:C):Et(T)?(e.consume(T),s=String.fromCharCode(T),k):i(T)}function g(T){return T===45?(e.consume(T),r=2,m):T===91?(e.consume(T),r=5,l=0,E):Et(T)?(e.consume(T),r=4,n.interrupt?t:C):i(T)}function m(T){return T===45?(e.consume(T),n.interrupt?t:C):i(T)}function E(T){const B="CDATA[";return T===B.charCodeAt(l++)?(e.consume(T),l===B.length?n.interrupt?t:J:E):i(T)}function v(T){return Et(T)?(e.consume(T),s=String.fromCharCode(T),k):i(T)}function k(T){if(T===null||T===47||T===62||$e(T)){const B=T===47,W=s.toLowerCase();return!B&&!a&&Yc.includes(W)?(r=1,n.interrupt?t(T):J(T)):Dk.includes(s.toLowerCase())?(r=6,B?(e.consume(T),S):n.interrupt?t(T):J(T)):(r=7,n.interrupt&&!n.parser.lazy[n.now().line]?i(T):a?w(T):I(T))}return T===45||jt(T)?(e.consume(T),s+=String.fromCharCode(T),k):i(T)}function S(T){return T===62?(e.consume(T),n.interrupt?t:J):i(T)}function w(T){return Ve(T)?(e.consume(T),w):D(T)}function I(T){return T===47?(e.consume(T),D):T===58||T===95||Et(T)?(e.consume(T),A):Ve(T)?(e.consume(T),I):D(T)}function A(T){return T===45||T===46||T===58||T===95||jt(T)?(e.consume(T),A):y(T)}function y(T){return T===61?(e.consume(T),f):Ve(T)?(e.consume(T),y):I(T)}function f(T){return T===null||T===60||T===61||T===62||T===96?i(T):T===34||T===39?(e.consume(T),u=T,O):Ve(T)?(e.consume(T),f):P(T)}function O(T){return T===u?(e.consume(T),u=null,F):T===null||Oe(T)?i(T):(e.consume(T),O)}function P(T){return T===null||T===34||T===39||T===47||T===60||T===61||T===62||T===96||$e(T)?y(T):(e.consume(T),P)}function F(T){return T===47||T===62||Ve(T)?I(T):i(T)}function D(T){return T===62?(e.consume(T),V):i(T)}function V(T){return T===null||Oe(T)?J(T):Ve(T)?(e.consume(T),V):i(T)}function J(T){return T===45&&r===2?(e.consume(T),j):T===60&&r===1?(e.consume(T),U):T===62&&r===4?(e.consume(T),$):T===63&&r===3?(e.consume(T),C):T===93&&r===5?(e.consume(T),de):Oe(T)&&(r===6||r===7)?(e.exit("htmlFlowData"),e.check(jk,ee,ue)(T)):T===null||Oe(T)?(e.exit("htmlFlowData"),ue(T)):(e.consume(T),J)}function ue(T){return e.check(zk,Q,ee)(T)}function Q(T){return e.enter("lineEnding"),e.consume(T),e.exit("lineEnding"),se}function se(T){return T===null||Oe(T)?ue(T):(e.enter("htmlFlowData"),J(T))}function j(T){return T===45?(e.consume(T),C):J(T)}function U(T){return T===47?(e.consume(T),s="",Y):J(T)}function Y(T){if(T===62){const B=s.toLowerCase();return Yc.includes(B)?(e.consume(T),$):J(T)}return Et(T)&&s.length<8?(e.consume(T),s+=String.fromCharCode(T),Y):J(T)}function de(T){return T===93?(e.consume(T),C):J(T)}function C(T){return T===62?(e.consume(T),$):T===45&&r===2?(e.consume(T),C):J(T)}function $(T){return T===null||Oe(T)?(e.exit("htmlFlowData"),ee(T)):(e.consume(T),$)}function ee(T){return e.exit("htmlFlow"),t(T)}}function Hk(e,t,i){const n=this;return r;function r(s){return Oe(s)?(e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),a):i(s)}function a(s){return n.parser.lazy[n.now().line]?i(s):t(s)}}function Kk(e,t,i){return n;function n(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),e.attempt(Un,t,i)}}const Wk={name:"htmlText",tokenize:Uk};function Uk(e,t,i){const n=this;let r,a,s;return l;function l(C){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(C),u}function u(C){return C===33?(e.consume(C),c):C===47?(e.consume(C),y):C===63?(e.consume(C),I):Et(C)?(e.consume(C),P):i(C)}function c(C){return C===45?(e.consume(C),h):C===91?(e.consume(C),a=0,E):Et(C)?(e.consume(C),w):i(C)}function h(C){return C===45?(e.consume(C),m):i(C)}function p(C){return C===null?i(C):C===45?(e.consume(C),g):Oe(C)?(s=p,U(C)):(e.consume(C),p)}function g(C){return C===45?(e.consume(C),m):p(C)}function m(C){return C===62?j(C):C===45?g(C):p(C)}function E(C){const $="CDATA[";return C===$.charCodeAt(a++)?(e.consume(C),a===$.length?v:E):i(C)}function v(C){return C===null?i(C):C===93?(e.consume(C),k):Oe(C)?(s=v,U(C)):(e.consume(C),v)}function k(C){return C===93?(e.consume(C),S):v(C)}function S(C){return C===62?j(C):C===93?(e.consume(C),S):v(C)}function w(C){return C===null||C===62?j(C):Oe(C)?(s=w,U(C)):(e.consume(C),w)}function I(C){return C===null?i(C):C===63?(e.consume(C),A):Oe(C)?(s=I,U(C)):(e.consume(C),I)}function A(C){return C===62?j(C):I(C)}function y(C){return Et(C)?(e.consume(C),f):i(C)}function f(C){return C===45||jt(C)?(e.consume(C),f):O(C)}function O(C){return Oe(C)?(s=O,U(C)):Ve(C)?(e.consume(C),O):j(C)}function P(C){return C===45||jt(C)?(e.consume(C),P):C===47||C===62||$e(C)?F(C):i(C)}function F(C){return C===47?(e.consume(C),j):C===58||C===95||Et(C)?(e.consume(C),D):Oe(C)?(s=F,U(C)):Ve(C)?(e.consume(C),F):j(C)}function D(C){return C===45||C===46||C===58||C===95||jt(C)?(e.consume(C),D):V(C)}function V(C){return C===61?(e.consume(C),J):Oe(C)?(s=V,U(C)):Ve(C)?(e.consume(C),V):F(C)}function J(C){return C===null||C===60||C===61||C===62||C===96?i(C):C===34||C===39?(e.consume(C),r=C,ue):Oe(C)?(s=J,U(C)):Ve(C)?(e.consume(C),J):(e.consume(C),Q)}function ue(C){return C===r?(e.consume(C),r=void 0,se):C===null?i(C):Oe(C)?(s=ue,U(C)):(e.consume(C),ue)}function Q(C){return C===null||C===34||C===39||C===60||C===61||C===96?i(C):C===47||C===62||$e(C)?F(C):(e.consume(C),Q)}function se(C){return C===47||C===62||$e(C)?F(C):i(C)}function j(C){return C===62?(e.consume(C),e.exit("htmlTextData"),e.exit("htmlText"),t):i(C)}function U(C){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(C),e.exit("lineEnding"),Y}function Y(C){return Ve(C)?We(e,de,"linePrefix",n.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(C):de(C)}function de(C){return e.enter("htmlTextData"),s(C)}}const Hl={name:"labelEnd",resolveAll:Jk,resolveTo:Yk,tokenize:Qk},qk={tokenize:Zk},Gk={tokenize:Xk},$k={tokenize:eS};function Jk(e){let t=-1;const i=[];for(;++t<e.length;){const n=e[t][1];if(i.push(e[t]),n.type==="labelImage"||n.type==="labelLink"||n.type==="labelEnd"){const r=n.type==="labelImage"?4:2;n.type="data",t+=r}}return e.length!==i.length&&Kt(e,0,e.length,i),e}function Yk(e,t){let i=e.length,n=0,r,a,s,l;for(;i--;)if(r=e[i][1],a){if(r.type==="link"||r.type==="labelLink"&&r._inactive)break;e[i][0]==="enter"&&r.type==="labelLink"&&(r._inactive=!0)}else if(s){if(e[i][0]==="enter"&&(r.type==="labelImage"||r.type==="labelLink")&&!r._balanced&&(a=i,r.type!=="labelLink")){n=2;break}}else r.type==="labelEnd"&&(s=i);const u={type:e[a][1].type==="labelLink"?"link":"image",start:{...e[a][1].start},end:{...e[e.length-1][1].end}},c={type:"label",start:{...e[a][1].start},end:{...e[s][1].end}},h={type:"labelText",start:{...e[a+n+2][1].end},end:{...e[s-2][1].start}};return l=[["enter",u,t],["enter",c,t]],l=Yt(l,e.slice(a+1,a+n+3)),l=Yt(l,[["enter",h,t]]),l=Yt(l,is(t.parser.constructs.insideSpan.null,e.slice(a+n+4,s-3),t)),l=Yt(l,[["exit",h,t],e[s-2],e[s-1],["exit",c,t]]),l=Yt(l,e.slice(s+1)),l=Yt(l,[["exit",u,t]]),Kt(e,a,e.length,l),e}function Qk(e,t,i){const n=this;let r=n.events.length,a,s;for(;r--;)if((n.events[r][1].type==="labelImage"||n.events[r][1].type==="labelLink")&&!n.events[r][1]._balanced){a=n.events[r][1];break}return l;function l(g){return a?a._inactive?p(g):(s=n.parser.defined.includes(ui(n.sliceSerialize({start:a.end,end:n.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(g),e.exit("labelMarker"),e.exit("labelEnd"),u):i(g)}function u(g){return g===40?e.attempt(qk,h,s?h:p)(g):g===91?e.attempt(Gk,h,s?c:p)(g):s?h(g):p(g)}function c(g){return e.attempt($k,h,p)(g)}function h(g){return t(g)}function p(g){return a._balanced=!0,i(g)}}function Zk(e,t,i){return n;function n(p){return e.enter("resource"),e.enter("resourceMarker"),e.consume(p),e.exit("resourceMarker"),r}function r(p){return $e(p)?sr(e,a)(p):a(p)}function a(p){return p===41?h(p):ng(e,s,l,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(p)}function s(p){return $e(p)?sr(e,u)(p):h(p)}function l(p){return i(p)}function u(p){return p===34||p===39||p===40?ag(e,c,i,"resourceTitle","resourceTitleMarker","resourceTitleString")(p):h(p)}function c(p){return $e(p)?sr(e,h)(p):h(p)}function h(p){return p===41?(e.enter("resourceMarker"),e.consume(p),e.exit("resourceMarker"),e.exit("resource"),t):i(p)}}function Xk(e,t,i){const n=this;return r;function r(l){return rg.call(n,e,a,s,"reference","referenceMarker","referenceString")(l)}function a(l){return n.parser.defined.includes(ui(n.sliceSerialize(n.events[n.events.length-1][1]).slice(1,-1)))?t(l):i(l)}function s(l){return i(l)}}function eS(e,t,i){return n;function n(a){return e.enter("reference"),e.enter("referenceMarker"),e.consume(a),e.exit("referenceMarker"),r}function r(a){return a===93?(e.enter("referenceMarker"),e.consume(a),e.exit("referenceMarker"),e.exit("reference"),t):i(a)}}const tS={name:"labelStartImage",resolveAll:Hl.resolveAll,tokenize:iS};function iS(e,t,i){const n=this;return r;function r(l){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(l),e.exit("labelImageMarker"),a}function a(l){return l===91?(e.enter("labelMarker"),e.consume(l),e.exit("labelMarker"),e.exit("labelImage"),s):i(l)}function s(l){return l===94&&"_hiddenFootnoteSupport"in n.parser.constructs?i(l):t(l)}}const nS={name:"labelStartLink",resolveAll:Hl.resolveAll,tokenize:rS};function rS(e,t,i){const n=this;return r;function r(s){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(s),e.exit("labelMarker"),e.exit("labelLink"),a}function a(s){return s===94&&"_hiddenFootnoteSupport"in n.parser.constructs?i(s):t(s)}}const Ls={name:"lineEnding",tokenize:aS};function aS(e,t){return i;function i(n){return e.enter("lineEnding"),e.consume(n),e.exit("lineEnding"),We(e,t,"linePrefix")}}const fa={name:"thematicBreak",tokenize:sS};function sS(e,t,i){let n=0,r;return a;function a(c){return e.enter("thematicBreak"),s(c)}function s(c){return r=c,l(c)}function l(c){return c===r?(e.enter("thematicBreakSequence"),u(c)):n>=3&&(c===null||Oe(c))?(e.exit("thematicBreak"),t(c)):i(c)}function u(c){return c===r?(e.consume(c),n++,u):(e.exit("thematicBreakSequence"),Ve(c)?We(e,l,"whitespace")(c):l(c))}}const Lt={continuation:{tokenize:cS},exit:dS,name:"list",tokenize:uS},oS={partial:!0,tokenize:pS},lS={partial:!0,tokenize:hS};function uS(e,t,i){const n=this,r=n.events[n.events.length-1];let a=r&&r[1].type==="linePrefix"?r[2].sliceSerialize(r[1],!0).length:0,s=0;return l;function l(m){const E=n.containerState.type||(m===42||m===43||m===45?"listUnordered":"listOrdered");if(E==="listUnordered"?!n.containerState.marker||m===n.containerState.marker:ko(m)){if(n.containerState.type||(n.containerState.type=E,e.enter(E,{_container:!0})),E==="listUnordered")return e.enter("listItemPrefix"),m===42||m===45?e.check(fa,i,c)(m):c(m);if(!n.interrupt||m===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),u(m)}return i(m)}function u(m){return ko(m)&&++s<10?(e.consume(m),u):(!n.interrupt||s<2)&&(n.containerState.marker?m===n.containerState.marker:m===41||m===46)?(e.exit("listItemValue"),c(m)):i(m)}function c(m){return e.enter("listItemMarker"),e.consume(m),e.exit("listItemMarker"),n.containerState.marker=n.containerState.marker||m,e.check(Un,n.interrupt?i:h,e.attempt(oS,g,p))}function h(m){return n.containerState.initialBlankLine=!0,a++,g(m)}function p(m){return Ve(m)?(e.enter("listItemPrefixWhitespace"),e.consume(m),e.exit("listItemPrefixWhitespace"),g):i(m)}function g(m){return n.containerState.size=a+n.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(m)}}function cS(e,t,i){const n=this;return n.containerState._closeFlow=void 0,e.check(Un,r,a);function r(l){return n.containerState.furtherBlankLines=n.containerState.furtherBlankLines||n.containerState.initialBlankLine,We(e,t,"listItemIndent",n.containerState.size+1)(l)}function a(l){return n.containerState.furtherBlankLines||!Ve(l)?(n.containerState.furtherBlankLines=void 0,n.containerState.initialBlankLine=void 0,s(l)):(n.containerState.furtherBlankLines=void 0,n.containerState.initialBlankLine=void 0,e.attempt(lS,t,s)(l))}function s(l){return n.containerState._closeFlow=!0,n.interrupt=void 0,We(e,e.attempt(Lt,t,i),"linePrefix",n.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(l)}}function hS(e,t,i){const n=this;return We(e,r,"listItemIndent",n.containerState.size+1);function r(a){const s=n.events[n.events.length-1];return s&&s[1].type==="listItemIndent"&&s[2].sliceSerialize(s[1],!0).length===n.containerState.size?t(a):i(a)}}function dS(e){e.exit(this.containerState.type)}function pS(e,t,i){const n=this;return We(e,r,"listItemPrefixWhitespace",n.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function r(a){const s=n.events[n.events.length-1];return!Ve(a)&&s&&s[1].type==="listItemPrefixWhitespace"?t(a):i(a)}}const Qc={name:"setextUnderline",resolveTo:fS,tokenize:gS};function fS(e,t){let i=e.length,n,r,a;for(;i--;)if(e[i][0]==="enter"){if(e[i][1].type==="content"){n=i;break}e[i][1].type==="paragraph"&&(r=i)}else e[i][1].type==="content"&&e.splice(i,1),!a&&e[i][1].type==="definition"&&(a=i);const s={type:"setextHeading",start:{...e[n][1].start},end:{...e[e.length-1][1].end}};return e[r][1].type="setextHeadingText",a?(e.splice(r,0,["enter",s,t]),e.splice(a+1,0,["exit",e[n][1],t]),e[n][1].end={...e[a][1].end}):e[n][1]=s,e.push(["exit",s,t]),e}function gS(e,t,i){const n=this;let r;return a;function a(c){let h=n.events.length,p;for(;h--;)if(n.events[h][1].type!=="lineEnding"&&n.events[h][1].type!=="linePrefix"&&n.events[h][1].type!=="content"){p=n.events[h][1].type==="paragraph";break}return!n.parser.lazy[n.now().line]&&(n.interrupt||p)?(e.enter("setextHeadingLine"),r=c,s(c)):i(c)}function s(c){return e.enter("setextHeadingLineSequence"),l(c)}function l(c){return c===r?(e.consume(c),l):(e.exit("setextHeadingLineSequence"),Ve(c)?We(e,u,"lineSuffix")(c):u(c))}function u(c){return c===null||Oe(c)?(e.exit("setextHeadingLine"),t(c)):i(c)}}const mS={tokenize:bS,partial:!0},Zc="https://github.com/micromark/micromark-extension-mdxjs-esm",vS=new Set(["ExportAllDeclaration","ExportDefaultDeclaration","ExportNamedDeclaration","ImportDeclaration"]);function xS(e){const t={tokenize:r,concrete:!0};if(!e||!e.acorn||!e.acorn.parse)throw new Error("Expected an `acorn` instance passed in as `options.acorn`");const i=e.acorn,n=Object.assign({ecmaVersion:2024,sourceType:"module"},e.acornOptions,{locations:!0});return{flow:{101:t,105:t}};function r(a,s,l){const u=this,c=u.parser.definedModuleSpecifiers||(u.parser.definedModuleSpecifiers=[]),h=this.events.length+1;let p="";return u.interrupt?l:g;function g(w){return u.now().column>1?l(w):(a.enter("mdxjsEsm"),a.enter("mdxjsEsmData"),a.consume(w),p+=String.fromCharCode(w),m)}function m(w){return Et(w)?(a.consume(w),p+=String.fromCharCode(w),m):(p==="import"||p==="export")&&w===32?(a.consume(w),E):l(w)}function E(w){return w===null||Oe(w)?(a.exit("mdxjsEsmData"),v(w)):(a.consume(w),E)}function v(w){return w===null?S(w):Oe(w)?a.check(mS,S,k)(w):(a.enter("mdxjsEsmData"),E(w))}function k(w){return a.enter("lineEnding"),a.consume(w),a.exit("lineEnding"),v}function S(w){const I=Qf(u.events.slice(h),{acorn:i,acornOptions:n,tokenTypes:["mdxjsEsmData"],prefix:c.length>0?"var "+c.join(",")+`
88
- `:""});if(I.error){if(w!==null&&I.swallow)return k(w);const y=new Xe("Could not parse import/exports with acorn",{cause:I.error,place:{line:I.error.loc.line,column:I.error.loc.column+1,offset:I.error.pos},ruleId:"acorn",source:"micromark-extension-mdxjs-esm"});throw y.url=Zc+"#could-not-parse-importexports-with-acorn",y}c.length>0&&I.estree.body.shift();let A=-1;for(;++A<I.estree.body.length;){const y=I.estree.body[A];if(!vS.has(y.type)){const f=new Xe("Unexpected `"+y.type+"` in code: only import/exports are supported",{place:pa(y),ruleId:"non-esm",source:"micromark-extension-mdxjs-esm"});throw f.url=Zc+"#unexpected-type-in-code-only-importexports-are-supported",f}if(y.type==="ImportDeclaration"&&!u.interrupt){let f=-1;for(;++f<y.specifiers.length;){const O=y.specifiers[f];c.push(O.local.name)}}}return Object.assign(a.exit("mdxjsEsm"),e.addResult?{estree:I.estree}:void 0),s(w)}}}function bS(e,t,i){return n;function n(r){return e.enter("lineEndingBlank"),e.consume(r),e.exit("lineEndingBlank"),e.attempt(Un,t,i)}}const Xc={}.hasOwnProperty;function Kl(e){const t={};let i=-1;for(;++i<e.length;)yS(t,e[i]);return t}function yS(e,t){let i;for(i in t){const r=(Xc.call(e,i)?e[i]:void 0)||(e[i]={}),a=t[i];let s;if(a)for(s in a){Xc.call(r,s)||(r[s]=[]);const l=a[s];wS(r[s],Array.isArray(l)?l:l?[l]:[])}}}function wS(e,t){let i=-1;const n=[];for(;++i<t.length;)(t[i].add==="after"?e:n).push(t[i]);Kt(e,0,0,n)}function kS(e){const t=Object.assign({acorn:vt.extend(A1()),acornOptions:{ecmaVersion:2024,sourceType:"module"},addResult:!0},e);return Kl([xS(t),U1(t),X1(t),ek()])}const SS={};function ES(e){const t=this,i=e||SS,n=t.data(),r=n.micromarkExtensions||(n.micromarkExtensions=[]),a=n.fromMarkdownExtensions||(n.fromMarkdownExtensions=[]),s=n.toMarkdownExtensions||(n.toMarkdownExtensions=[]);r.push(kS(i)),a.push(Fw()),s.push(jw(i))}const CS={};function IS(e,t){const i=CS,n=typeof i.includeImageAlt=="boolean"?i.includeImageAlt:!0,r=typeof i.includeHtml=="boolean"?i.includeHtml:!0;return sg(e,n,r)}function sg(e,t,i){if(_S(e)){if("value"in e)return e.type==="html"&&!i?"":e.value;if(t&&"alt"in e&&e.alt)return e.alt;if("children"in e)return eh(e.children,t,i)}return Array.isArray(e)?eh(e,t,i):""}function eh(e,t,i){const n=[];let r=-1;for(;++r<e.length;)n[r]=sg(e[r],t,i);return n.join("")}function _S(e){return!!(e&&typeof e=="object")}function og(e,t){const i=Number.parseInt(e,t);return i<9||i===11||i>13&&i<32||i>126&&i<160||i>55295&&i<57344||i>64975&&i<65008||(i&65535)===65535||(i&65535)===65534||i>1114111?"�":String.fromCodePoint(i)}const AS={tokenize:NS};function NS(e){const t=e.attempt(this.parser.constructs.contentInitial,n,r);let i;return t;function n(l){if(l===null){e.consume(l);return}return e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),We(e,t,"linePrefix")}function r(l){return e.enter("paragraph"),a(l)}function a(l){const u=e.enter("chunkText",{contentType:"text",previous:i});return i&&(i.next=u),i=u,s(l)}function s(l){if(l===null){e.exit("chunkText"),e.exit("paragraph"),e.consume(l);return}return Oe(l)?(e.consume(l),e.exit("chunkText"),a):(e.consume(l),s)}}const TS={tokenize:OS},th={tokenize:PS};function OS(e){const t=this,i=[];let n=0,r,a,s;return l;function l(I){if(n<i.length){const A=i[n];return t.containerState=A[1],e.attempt(A[0].continuation,u,c)(I)}return c(I)}function u(I){if(n++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,r&&w();const A=t.events.length;let y=A,f;for(;y--;)if(t.events[y][0]==="exit"&&t.events[y][1].type==="chunkFlow"){f=t.events[y][1].end;break}S(n);let O=A;for(;O<t.events.length;)t.events[O][1].end={...f},O++;return Kt(t.events,y+1,0,t.events.slice(A)),t.events.length=O,c(I)}return l(I)}function c(I){if(n===i.length){if(!r)return g(I);if(r.currentConstruct&&r.currentConstruct.concrete)return E(I);t.interrupt=!!(r.currentConstruct&&!r._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(th,h,p)(I)}function h(I){return r&&w(),S(n),g(I)}function p(I){return t.parser.lazy[t.now().line]=n!==i.length,s=t.now().offset,E(I)}function g(I){return t.containerState={},e.attempt(th,m,E)(I)}function m(I){return n++,i.push([t.currentConstruct,t.containerState]),g(I)}function E(I){if(I===null){r&&w(),S(0),e.consume(I);return}return r=r||t.parser.flow(t.now()),e.enter("chunkFlow",{_tokenizer:r,contentType:"flow",previous:a}),v(I)}function v(I){if(I===null){k(e.exit("chunkFlow"),!0),S(0),e.consume(I);return}return Oe(I)?(e.consume(I),k(e.exit("chunkFlow")),n=0,t.interrupt=void 0,l):(e.consume(I),v)}function k(I,A){const y=t.sliceStream(I);if(A&&y.push(null),I.previous=a,a&&(a.next=I),a=I,r.defineSkip(I.start),r.write(y),t.parser.lazy[I.start.line]){let f=r.events.length;for(;f--;)if(r.events[f][1].start.offset<s&&(!r.events[f][1].end||r.events[f][1].end.offset>s))return;const O=t.events.length;let P=O,F,D;for(;P--;)if(t.events[P][0]==="exit"&&t.events[P][1].type==="chunkFlow"){if(F){D=t.events[P][1].end;break}F=!0}for(S(n),f=O;f<t.events.length;)t.events[f][1].end={...D},f++;Kt(t.events,P+1,0,t.events.slice(O)),t.events.length=f}}function S(I){let A=i.length;for(;A-- >I;){const y=i[A];t.containerState=y[1],y[0].exit.call(t,e)}i.length=I}function w(){r.write([null]),a=void 0,r=void 0,t.containerState._closeFlow=void 0}}function PS(e,t,i){return We(e,e.attempt(this.parser.constructs.document,t,i),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}const RS={tokenize:MS};function MS(e){const t=this,i=e.attempt(Un,n,e.attempt(this.parser.constructs.flowInitial,r,We(e,e.attempt(this.parser.constructs.flow,r,e.attempt(kk,r)),"linePrefix")));return i;function n(a){if(a===null){e.consume(a);return}return e.enter("lineEndingBlank"),e.consume(a),e.exit("lineEndingBlank"),t.currentConstruct=void 0,i}function r(a){if(a===null){e.consume(a);return}return e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),t.currentConstruct=void 0,i}}const LS={resolveAll:ug()},DS=lg("string"),FS=lg("text");function lg(e){return{resolveAll:ug(e==="text"?jS:void 0),tokenize:t};function t(i){const n=this,r=this.parser.constructs[e],a=i.attempt(r,s,l);return s;function s(h){return c(h)?a(h):l(h)}function l(h){if(h===null){i.consume(h);return}return i.enter("data"),i.consume(h),u}function u(h){return c(h)?(i.exit("data"),a(h)):(i.consume(h),u)}function c(h){if(h===null)return!0;const p=r[h];let g=-1;if(p)for(;++g<p.length;){const m=p[g];if(!m.previous||m.previous.call(n,n.previous))return!0}return!1}}}function ug(e){return t;function t(i,n){let r=-1,a;for(;++r<=i.length;)a===void 0?i[r]&&i[r][1].type==="data"&&(a=r,r++):(!i[r]||i[r][1].type!=="data")&&(r!==a+2&&(i[a][1].end=i[r-1][1].end,i.splice(a+2,r-a-2),r=a+2),a=void 0);return e?e(i,n):i}}function jS(e,t){let i=0;for(;++i<=e.length;)if((i===e.length||e[i][1].type==="lineEnding")&&e[i-1][1].type==="data"){const n=e[i-1][1],r=t.sliceStream(n);let a=r.length,s=-1,l=0,u;for(;a--;){const c=r[a];if(typeof c=="string"){for(s=c.length;c.charCodeAt(s-1)===32;)l++,s--;if(s)break;s=-1}else if(c===-2)u=!0,l++;else if(c!==-1){a++;break}}if(t._contentTypeTextTrailing&&i===e.length&&(l=0),l){const c={type:i===e.length||u||l<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:a?s:n.start._bufferIndex+s,_index:n.start._index+a,line:n.end.line,column:n.end.column-l,offset:n.end.offset-l},end:{...n.end}};n.end={...c.start},n.start.offset===n.end.offset?Object.assign(n,c):(e.splice(i,0,["enter",c,t],["exit",c,t]),i+=2)}i++}return e}const zS={42:Lt,43:Lt,45:Lt,48:Lt,49:Lt,50:Lt,51:Lt,52:Lt,53:Lt,54:Lt,55:Lt,56:Lt,57:Lt,62:Xf},VS={91:_k},BS={[-2]:Ms,[-1]:Ms,32:Ms},HS={35:Rk,42:fa,45:[Qc,fa],60:Fk,61:Qc,95:fa,96:Jc,126:Jc},KS={38:tg,92:eg},WS={[-5]:Ls,[-4]:Ls,[-3]:Ls,33:tS,38:tg,42:So,60:[nk,Wk],91:nS,92:[Ok,eg],93:Hl,95:So,96:mk},US={null:[So,LS]},qS={null:[42,95]},GS={null:[]},$S=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:qS,contentInitial:VS,disable:GS,document:zS,flow:HS,flowInitial:BS,insideSpan:US,string:KS,text:WS},Symbol.toStringTag,{value:"Module"}));function JS(e,t,i){let n={_bufferIndex:-1,_index:0,line:i&&i.line||1,column:i&&i.column||1,offset:i&&i.offset||0};const r={},a=[];let s=[],l=[];const u={attempt:O(y),check:O(f),consume:w,enter:I,exit:A,interrupt:O(f,{interrupt:!0})},c={code:null,containerState:{},defineSkip:v,events:[],now:E,parser:e,previous:null,sliceSerialize:g,sliceStream:m,write:p};let h=t.tokenize.call(c,u);return t.resolveAll&&a.push(t),c;function p(V){return s=Yt(s,V),k(),s[s.length-1]!==null?[]:(P(t,0),c.events=is(a,c.events,c),c.events)}function g(V,J){return QS(m(V),J)}function m(V){return YS(s,V)}function E(){const{_bufferIndex:V,_index:J,line:ue,column:Q,offset:se}=n;return{_bufferIndex:V,_index:J,line:ue,column:Q,offset:se}}function v(V){r[V.line]=V.column,D()}function k(){let V;for(;n._index<s.length;){const J=s[n._index];if(typeof J=="string")for(V=n._index,n._bufferIndex<0&&(n._bufferIndex=0);n._index===V&&n._bufferIndex<J.length;)S(J.charCodeAt(n._bufferIndex));else S(J)}}function S(V){h=h(V)}function w(V){Oe(V)?(n.line++,n.column=1,n.offset+=V===-3?2:1,D()):V!==-1&&(n.column++,n.offset++),n._bufferIndex<0?n._index++:(n._bufferIndex++,n._bufferIndex===s[n._index].length&&(n._bufferIndex=-1,n._index++)),c.previous=V}function I(V,J){const ue=J||{};return ue.type=V,ue.start=E(),c.events.push(["enter",ue,c]),l.push(ue),ue}function A(V){const J=l.pop();return J.end=E(),c.events.push(["exit",J,c]),J}function y(V,J){P(V,J.from)}function f(V,J){J.restore()}function O(V,J){return ue;function ue(Q,se,j){let U,Y,de,C;return Array.isArray(Q)?ee(Q):"tokenize"in Q?ee([Q]):$(Q);function $(z){return K;function K(ne){const ae=ne!==null&&z[ne],le=ne!==null&&z.null,oe=[...Array.isArray(ae)?ae:ae?[ae]:[],...Array.isArray(le)?le:le?[le]:[]];return ee(oe)(ne)}}function ee(z){return U=z,Y=0,z.length===0?j:T(z[Y])}function T(z){return K;function K(ne){return C=F(),de=z,z.partial||(c.currentConstruct=z),z.name&&c.parser.constructs.disable.null.includes(z.name)?W():z.tokenize.call(J?Object.assign(Object.create(c),J):c,u,B,W)(ne)}}function B(z){return V(de,C),se}function W(z){return C.restore(),++Y<U.length?T(U[Y]):j}}}function P(V,J){V.resolveAll&&!a.includes(V)&&a.push(V),V.resolve&&Kt(c.events,J,c.events.length-J,V.resolve(c.events.slice(J),c)),V.resolveTo&&(c.events=V.resolveTo(c.events,c))}function F(){const V=E(),J=c.previous,ue=c.currentConstruct,Q=c.events.length,se=Array.from(l);return{from:Q,restore:j};function j(){n=V,c.previous=J,c.currentConstruct=ue,c.events.length=Q,l=se,D()}}function D(){n.line in r&&n.column<2&&(n.column=r[n.line],n.offset+=r[n.line]-1)}}function YS(e,t){const i=t.start._index,n=t.start._bufferIndex,r=t.end._index,a=t.end._bufferIndex;let s;if(i===r)s=[e[i].slice(n,a)];else{if(s=e.slice(i,r),n>-1){const l=s[0];typeof l=="string"?s[0]=l.slice(n):s.shift()}a>0&&s.push(e[r].slice(0,a))}return s}function QS(e,t){let i=-1;const n=[];let r;for(;++i<e.length;){const a=e[i];let s;if(typeof a=="string")s=a;else switch(a){case-5:{s="\r";break}case-4:{s=`
33
+ `):A=String.fromCharCode(g),this.options.locations&&(++this.curLine,this.lineStart=this.pos),A}jsx_readString(y){let g="",A=++this.pos;for(;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated string constant");let M=this.input.charCodeAt(this.pos);if(M===y)break;M===38?(g+=this.input.slice(A,this.pos),g+=this.jsx_readEntity(),A=this.pos):k(M)?(g+=this.input.slice(A,this.pos),g+=this.jsx_readNewLine(!1),A=this.pos):++this.pos}return g+=this.input.slice(A,this.pos++),this.finishToken(d.string,g)}jsx_readEntity(){let y="",g=0,A,M=this.input[this.pos];M!=="&"&&this.raise(this.pos,"Entity must start with an ampersand");let F=++this.pos;for(;this.pos<this.input.length&&g++<10;){if(M=this.input[this.pos++],M===";"){y[0]==="#"?y[1]==="x"?(y=y.substr(2),n.test(y)&&(A=String.fromCharCode(parseInt(y,16)))):(y=y.substr(1),i.test(y)&&(A=String.fromCharCode(parseInt(y,10)))):A=t[y];break}y+=M}return A||(this.pos=F,"&")}jsx_readWord(){let y,g=this.pos;do y=this.input.charCodeAt(++this.pos);while(N(y)||y===45);return this.finishToken(m.jsxName,this.input.slice(g,this.pos))}jsx_parseIdentifier(){let y=this.startNode();return this.type===m.jsxName?y.name=this.value:this.type.keyword?y.name=this.type.keyword:this.unexpected(),this.next(),this.finishNode(y,"JSXIdentifier")}jsx_parseNamespacedName(){let y=this.start,g=this.startLoc,A=this.jsx_parseIdentifier();if(!u.allowNamespaces||!this.eat(d.colon))return A;var M=this.startNodeAt(y,g);return M.namespace=A,M.name=this.jsx_parseIdentifier(),this.finishNode(M,"JSXNamespacedName")}jsx_parseElementName(){if(this.type===m.jsxTagEnd)return"";let y=this.start,g=this.startLoc,A=this.jsx_parseNamespacedName();for(this.type===d.dot&&A.type==="JSXNamespacedName"&&!u.allowNamespacedObjects&&this.unexpected();this.eat(d.dot);){let M=this.startNodeAt(y,g);M.object=A,M.property=this.jsx_parseIdentifier(),A=this.finishNode(M,"JSXMemberExpression")}return A}jsx_parseAttributeValue(){switch(this.type){case d.braceL:let y=this.jsx_parseExpressionContainer();return y.expression.type==="JSXEmptyExpression"&&this.raise(y.start,"JSX attributes must only be assigned a non-empty expression"),y;case m.jsxTagStart:case d.string:return this.parseExprAtom();default:this.raise(this.start,"JSX value should be either an expression or a quoted JSX text")}}jsx_parseEmptyExpression(){let y=this.startNodeAt(this.lastTokEnd,this.lastTokEndLoc);return this.finishNodeAt(y,"JSXEmptyExpression",this.start,this.startLoc)}jsx_parseExpressionContainer(){let y=this.startNode();return this.next(),y.expression=this.type===d.braceR?this.jsx_parseEmptyExpression():this.parseExpression(),this.expect(d.braceR),this.finishNode(y,"JSXExpressionContainer")}jsx_parseAttribute(){let y=this.startNode();return this.eat(d.braceL)?(this.expect(d.ellipsis),y.argument=this.parseMaybeAssign(),this.expect(d.braceR),this.finishNode(y,"JSXSpreadAttribute")):(y.name=this.jsx_parseNamespacedName(),y.value=this.eat(d.eq)?this.jsx_parseAttributeValue():null,this.finishNode(y,"JSXAttribute"))}jsx_parseOpeningElementAt(y,g){let A=this.startNodeAt(y,g);A.attributes=[];let M=this.jsx_parseElementName();for(M&&(A.name=M);this.type!==d.slash&&this.type!==m.jsxTagEnd;)A.attributes.push(this.jsx_parseAttribute());return A.selfClosing=this.eat(d.slash),this.expect(m.jsxTagEnd),this.finishNode(A,M?"JSXOpeningElement":"JSXOpeningFragment")}jsx_parseClosingElementAt(y,g){let A=this.startNodeAt(y,g),M=this.jsx_parseElementName();return M&&(A.name=M),this.expect(m.jsxTagEnd),this.finishNode(A,M?"JSXClosingElement":"JSXClosingFragment")}jsx_parseElementAt(y,g){let A=this.startNodeAt(y,g),M=[],F=this.jsx_parseOpeningElementAt(y,g),R=null;if(!F.selfClosing){e:for(;;)switch(this.type){case m.jsxTagStart:if(y=this.start,g=this.startLoc,this.next(),this.eat(d.slash)){R=this.jsx_parseClosingElementAt(y,g);break e}M.push(this.jsx_parseElementAt(y,g));break;case m.jsxText:M.push(this.parseExprAtom());break;case d.braceL:M.push(this.jsx_parseExpressionContainer());break;default:this.unexpected()}o(R.name)!==o(F.name)&&this.raise(R.start,"Expected corresponding JSX closing tag for <"+o(F.name)+">")}let j=F.name?"Element":"Fragment";return A["opening"+j]=F,A["closing"+j]=R,A.children=M,this.type===d.relational&&this.value==="<"&&this.raise(this.start,"Adjacent JSX elements must be wrapped in an enclosing tag"),this.finishNode(A,"JSX"+j)}jsx_parseText(){let y=this.parseLiteral(this.value);return y.type="JSXText",y}jsx_parseElement(){let y=this.start,g=this.startLoc;return this.next(),this.jsx_parseElementAt(y,g)}parseExprAtom(y){return this.type===m.jsxText?this.jsx_parseText():this.type===m.jsxTagStart?this.jsx_parseElement():super.parseExprAtom(y)}readToken(y){let g=this.curContext();if(g===E)return this.jsx_readToken();if(g===v||g===S){if(I(y))return this.jsx_readWord();if(y==62)return++this.pos,this.finishToken(m.jsxTagEnd);if((y===34||y===39)&&g==v)return this.jsx_readString(y)}return y===60&&this.exprAllowed&&this.input.charCodeAt(this.pos+1)!==33?(++this.pos,this.finishToken(m.jsxTagStart)):super.readToken(y)}updateContext(y){if(this.type==d.braceL){var g=this.curContext();g==v?this.context.push(b.b_expr):g==E?this.context.push(b.b_tmpl):super.updateContext(y),this.exprAllowed=!0}else if(this.type===d.slash&&y===m.jsxTagStart)this.context.length-=2,this.context.push(S),this.exprAllowed=!1;else return super.updateContext(y)}}}})(Xr)),Xr.exports}var Em=wm();const Sm=Lr(Em),lt=yn(/[A-Za-z]/),gt=yn(/[\dA-Za-z]/),km=yn(/[#-'*+\--9=?A-Z^-~]/);function dr(e){return e!==null&&(e<32||e===127)}const qa=yn(/\d/),Cm=yn(/[\dA-Fa-f]/),_m=yn(/[!-/:-@[-`{-~]/);function _e(e){return e!==null&&e<-2}function Ke(e){return e!==null&&(e<0||e===32)}function Me(e){return e===-2||e===-1||e===32}const Mr=yn(new RegExp("\\p{P}|\\p{S}","u")),ct=yn(/\s/);function yn(e){return t;function t(n){return n!==null&&n>-1&&e.test(String.fromCharCode(n))}}function je(e,t,n,i){const r=i?i-1:Number.POSITIVE_INFINITY;let s=0;return o;function o(u){return Me(u)?(e.enter(n),l(u)):t(u)}function l(u){return Me(u)&&s++<r?(e.consume(u),l):(e.exit(n),t(u))}}const Im={}.hasOwnProperty,Am=Symbol("continue"),ta=Symbol("exit"),Tm=Symbol("skip");function Nm(e,t){let n,i;typeof t=="function"?n=t:t&&typeof t=="object"&&(t.enter&&(n=t.enter),t.leave&&(i=t.leave)),r(e,void 0,void 0,[])();function r(s,o,l,u){return na(s)&&(f.displayName="node ("+s.type+")"),f;function f(){const p=n?fl(n(s,o,l,u)):[];if(p[0]===ta)return p;if(p[0]!==Tm){let h;for(h in s)if(Im.call(s,h)&&s[h]&&typeof s[h]=="object"&&h!=="data"&&h!=="position"){const d=u.concat(s),m=s[h];if(Array.isArray(m)){const b=m;let v=0;for(;v>-1&&v<b.length;){const S=b[v];if(na(S)){const E=r(S,h,v,d)();if(E[0]===ta)return E;v=typeof E[1]=="number"?E[1]:v+1}else v++}}else if(na(m)){const b=r(m,h,void 0,d)();if(b[0]===ta)return b}}}return i?fl(i(s,o,l,u)):p}}}function fl(e){return Array.isArray(e)?e:typeof e=="number"?[Am,e]:[e]}function na(e){return!!(e&&typeof e=="object"&&"type"in e&&typeof e.type=="string"&&e.type.length>0)}function nh(e,t){const n=t.prefix||"",i=t.suffix||"",r=Object.assign({},t.acornOptions),s=[],o=[],l=r.onComment,u=r.onToken;let f=!1,p,h;const d=Object.assign({},r,{onComment:s,preserveParens:!0});u&&(d.onToken=o);const m=Pm(e,t.tokenTypes),b=m.value,v=n+b+i,S=t.expression&&pl(b);if(S&&!t.allowEmpty)throw new qe("Unexpected empty expression",{place:k(0),ruleId:"unexpected-empty-expression",source:"micromark-extension-mdx-expression"});try{p=t.expression&&!S?t.acorn.parseExpressionAt(v,0,d):t.acorn.parse(v,d)}catch(I){const N=I,y=k(N.pos);N.message=String(N.message).replace(/ \(\d+:\d+\)$/,""),N.pos=y.offset,N.loc={line:y.line,column:y.column-1},h=N,f=N.raisedAt>=n.length+b.length||N.message==="Unterminated comment"}if(p&&t.expression&&!S)if(pl(v.slice(p.end,v.length-i.length)))p={type:"Program",start:0,end:n.length+b.length,body:[{type:"ExpressionStatement",expression:p,start:0,end:n.length+b.length}],sourceType:"module",comments:[]};else{const I=k(p.end),N=new Error("Unexpected content after expression");N.pos=I.offset,N.loc={line:I.line,column:I.column-1},h=N,p=void 0}if(p){if(p.comments=s,Nm(p,function(I,N,y,g){let A=g[g.length-1],M=N;I.type==="ParenthesizedExpression"&&A&&M&&(typeof y=="number"&&(A=A[M],M=y),A[M]=I.expression),E(I)}),Array.isArray(l))l.push(...s);else if(typeof l=="function")for(const I of s)l(I.type==="Block",I.value,I.start,I.end,I.loc.start,I.loc.end);for(const I of o)I.end<=n.length||I.start-n.length>=b.length||(E(I),Array.isArray(u)?u.push(I):u(I))}return{estree:p,error:h,swallow:f};function E(I){const N=k(I.start),y=k(I.end);I.start=N.offset,I.end=y.offset,I.loc={start:{line:N.line,column:N.column-1,offset:N.offset},end:{line:y.line,column:y.column-1,offset:y.offset}},I.range=[I.start,I.end]}function k(I){let N=I-n.length;N<0?N=0:N>b.length&&(N=b.length);let y=Om(m.stops,N);return y||(y={line:t.start.line,column:t.start.column,offset:t.start.offset}),y}}function pl(e){return/^\s*$/.test(e.replace(/\/\*[\s\S]*?\*\//g,"").replace(/\/\/[^\r\n]*(\r\n|\n|\r)/g,""))}function Pm(e,t){const n={value:"",stops:[]};let i=-1;for(;++i<e.length;){const r=e[i];if(r[0]==="enter"){const s=r[1].type;if(s==="lineEnding"||t.includes(s)){const o=r[2].sliceStream(r[1]);for(;o.length>0&&o[0]===-1;)o.shift();const l=Rm(o);n.stops.push([n.value.length,r[1].start]),n.value+=l,n.stops.push([n.value.length,r[1].end])}}}return n}function Om(e,t){let n=0;for(;n<e.length&&e[n][0]<=t;)n+=1;if(n===0)return;const[i,r]=e[n-1],s=t-i;return{line:r.line,column:r.column+s,offset:r.offset+s}}function Rm(e){let t=-1;const n=[];let i;for(;++t<e.length;){const r=e[t];let s;if(typeof r=="string")s=r;else switch(r){case-5:{s="\r";break}case-4:{s=`
89
34
  `;break}case-3:{s=`\r
90
- `;break}case-2:{s=t?" ":" ";break}case-1:{if(!t&&r)continue;s=" ";break}default:s=String.fromCharCode(a)}r=a===-2,n.push(s)}return n.join("")}function ZS(e){const n={constructs:Kl([$S,...(e||{}).extensions||[]]),content:r(AS),defined:[],document:r(TS),flow:r(RS),lazy:{},string:r(DS),text:r(FS)};return n;function r(a){return s;function s(l){return JS(n,a,l)}}}function XS(e){for(;!ig(e););return e}const ih=/[\0\t\n\r]/g;function eE(){let e=1,t="",i=!0,n;return r;function r(a,s,l){const u=[];let c,h,p,g,m;for(a=t+(typeof a=="string"?a.toString():new TextDecoder(s||void 0).decode(a)),p=0,t="",i&&(a.charCodeAt(0)===65279&&p++,i=void 0);p<a.length;){if(ih.lastIndex=p,c=ih.exec(a),g=c&&c.index!==void 0?c.index:a.length,m=a.charCodeAt(g),!c){t=a.slice(p);break}if(m===10&&p===g&&n)u.push(-3),n=void 0;else switch(n&&(u.push(-5),n=void 0),p<g&&(u.push(a.slice(p,g)),e+=g-p),m){case 0:{u.push(65533),e++;break}case 9:{for(h=Math.ceil(e/4)*4,u.push(-2);e++<h;)u.push(-1);break}case 10:{u.push(-4),e=1;break}default:n=!0,e=1}p=g+1}return l&&(n&&u.push(-5),t&&u.push(t),u.push(null)),u}}const tE=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function cg(e){return e.replace(tE,iE)}function iE(e,t,i){if(t)return t;if(i.charCodeAt(0)===35){const r=i.charCodeAt(1),a=r===120||r===88;return og(i.slice(a?2:1),a?16:10)}return pr(i)||e}const hg={}.hasOwnProperty;function nE(e,t,i){return typeof t!="string"&&(i=t,t=void 0),rE(i)(XS(ZS(i).document().write(eE()(e,t,!0))))}function rE(e){const t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:a(Ee),autolinkProtocol:F,autolinkEmail:F,atxHeading:a(xe),blockQuote:a(le),characterEscape:F,characterReference:F,codeFenced:a(oe),codeFencedFenceInfo:s,codeFencedFenceMeta:s,codeIndented:a(oe,s),codeText:a(H,s),codeTextData:F,data:F,codeFlowValue:F,definition:a(ve),definitionDestinationString:s,definitionLabelString:s,definitionTitleString:s,emphasis:a(Z),hardBreakEscape:a(be),hardBreakTrailing:a(be),htmlFlow:a(ie,s),htmlFlowData:F,htmlText:a(ie,s),htmlTextData:F,image:a(me),label:s,link:a(Ee),listItem:a(Be),listItemValue:g,listOrdered:a(we,p),listUnordered:a(we),paragraph:a(ze),reference:T,referenceString:s,resourceDestinationString:s,resourceTitleString:s,setextHeading:a(xe),strong:a(Pe),thematicBreak:a(rt)},exit:{atxHeading:u(),atxHeadingSequence:y,autolink:u(),autolinkEmail:ae,autolinkProtocol:ne,blockQuote:u(),characterEscapeValue:D,characterReferenceMarkerHexadecimal:W,characterReferenceMarkerNumeric:W,characterReferenceValue:z,characterReference:K,codeFenced:u(k),codeFencedFence:v,codeFencedFenceInfo:m,codeFencedFenceMeta:E,codeFlowValue:D,codeIndented:u(S),codeText:u(se),codeTextData:D,data:D,definition:u(),definitionDestinationString:A,definitionLabelString:w,definitionTitleString:I,emphasis:u(),hardBreakEscape:u(J),hardBreakTrailing:u(J),htmlFlow:u(ue),htmlFlowData:D,htmlText:u(Q),htmlTextData:D,image:u(U),label:de,labelText:Y,lineEnding:V,link:u(j),listItem:u(),listOrdered:u(),listUnordered:u(),paragraph:u(),referenceString:B,resourceDestinationString:C,resourceTitleString:$,resource:ee,setextHeading:u(P),setextHeadingLineSequence:O,setextHeadingText:f,strong:u(),thematicBreak:u()}};dg(t,(e||{}).mdastExtensions||[]);const i={};return n;function n(te){let re={type:"root",children:[]};const R={stack:[re],tokenStack:[],config:t,enter:l,exit:c,buffer:s,resume:h,data:i},Ce=[];let Fe=-1;for(;++Fe<te.length;)if(te[Fe][1].type==="listOrdered"||te[Fe][1].type==="listUnordered")if(te[Fe][0]==="enter")Ce.push(Fe);else{const ht=Ce.pop();Fe=r(te,ht,Fe)}for(Fe=-1;++Fe<te.length;){const ht=t[te[Fe][0]];hg.call(ht,te[Fe][1].type)&&ht[te[Fe][1].type].call(Object.assign({sliceSerialize:te[Fe][2].sliceSerialize},R),te[Fe][1])}if(R.tokenStack.length>0){const ht=R.tokenStack[R.tokenStack.length-1];(ht[1]||nh).call(R,void 0,ht[0])}for(re.position={start:ji(te.length>0?te[0][1].start:{line:1,column:1,offset:0}),end:ji(te.length>0?te[te.length-2][1].end:{line:1,column:1,offset:0})},Fe=-1;++Fe<t.transforms.length;)re=t.transforms[Fe](re)||re;return re}function r(te,re,R){let Ce=re-1,Fe=-1,ht=!1,ke,st,Xt,ki;for(;++Ce<=R;){const ct=te[Ce];switch(ct[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{ct[0]==="enter"?Fe++:Fe--,ki=void 0;break}case"lineEndingBlank":{ct[0]==="enter"&&(ke&&!ki&&!Fe&&!Xt&&(Xt=Ce),ki=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:ki=void 0}if(!Fe&&ct[0]==="enter"&&ct[1].type==="listItemPrefix"||Fe===-1&&ct[0]==="exit"&&(ct[1].type==="listUnordered"||ct[1].type==="listOrdered")){if(ke){let Vt=Ce;for(st=void 0;Vt--;){const Pt=te[Vt];if(Pt[1].type==="lineEnding"||Pt[1].type==="lineEndingBlank"){if(Pt[0]==="exit")continue;st&&(te[st][1].type="lineEndingBlank",ht=!0),Pt[1].type="lineEnding",st=Vt}else if(!(Pt[1].type==="linePrefix"||Pt[1].type==="blockQuotePrefix"||Pt[1].type==="blockQuotePrefixWhitespace"||Pt[1].type==="blockQuoteMarker"||Pt[1].type==="listItemIndent"))break}Xt&&(!st||Xt<st)&&(ke._spread=!0),ke.end=Object.assign({},st?te[st][1].start:ct[1].end),te.splice(st||Ce,0,["exit",ke,ct[2]]),Ce++,R++}if(ct[1].type==="listItemPrefix"){const Vt={type:"listItem",_spread:!1,start:Object.assign({},ct[1].start),end:void 0};ke=Vt,te.splice(Ce,0,["enter",Vt,ct[2]]),Ce++,R++,Xt=void 0,ki=!0}}}return te[re][1]._spread=ht,R}function a(te,re){return R;function R(Ce){l.call(this,te(Ce),Ce),re&&re.call(this,Ce)}}function s(){this.stack.push({type:"fragment",children:[]})}function l(te,re,R){this.stack[this.stack.length-1].children.push(te),this.stack.push(te),this.tokenStack.push([re,R||void 0]),te.position={start:ji(re.start),end:void 0}}function u(te){return re;function re(R){te&&te.call(this,R),c.call(this,R)}}function c(te,re){const R=this.stack.pop(),Ce=this.tokenStack.pop();if(Ce)Ce[0].type!==te.type&&(re?re.call(this,te,Ce[0]):(Ce[1]||nh).call(this,te,Ce[0]));else throw new Error("Cannot close `"+te.type+"` ("+_i({start:te.start,end:te.end})+"): it’s not open");R.position.end=ji(te.end)}function h(){return IS(this.stack.pop())}function p(){this.data.expectingFirstListItemValue=!0}function g(te){if(this.data.expectingFirstListItemValue){const re=this.stack[this.stack.length-2];re.start=Number.parseInt(this.sliceSerialize(te),10),this.data.expectingFirstListItemValue=void 0}}function m(){const te=this.resume(),re=this.stack[this.stack.length-1];re.lang=te}function E(){const te=this.resume(),re=this.stack[this.stack.length-1];re.meta=te}function v(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function k(){const te=this.resume(),re=this.stack[this.stack.length-1];re.value=te.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function S(){const te=this.resume(),re=this.stack[this.stack.length-1];re.value=te.replace(/(\r?\n|\r)$/g,"")}function w(te){const re=this.resume(),R=this.stack[this.stack.length-1];R.label=re,R.identifier=ui(this.sliceSerialize(te)).toLowerCase()}function I(){const te=this.resume(),re=this.stack[this.stack.length-1];re.title=te}function A(){const te=this.resume(),re=this.stack[this.stack.length-1];re.url=te}function y(te){const re=this.stack[this.stack.length-1];if(!re.depth){const R=this.sliceSerialize(te).length;re.depth=R}}function f(){this.data.setextHeadingSlurpLineEnding=!0}function O(te){const re=this.stack[this.stack.length-1];re.depth=this.sliceSerialize(te).codePointAt(0)===61?1:2}function P(){this.data.setextHeadingSlurpLineEnding=void 0}function F(te){const R=this.stack[this.stack.length-1].children;let Ce=R[R.length-1];(!Ce||Ce.type!=="text")&&(Ce=Re(),Ce.position={start:ji(te.start),end:void 0},R.push(Ce)),this.stack.push(Ce)}function D(te){const re=this.stack.pop();re.value+=this.sliceSerialize(te),re.position.end=ji(te.end)}function V(te){const re=this.stack[this.stack.length-1];if(this.data.atHardBreak){const R=re.children[re.children.length-1];R.position.end=ji(te.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(re.type)&&(F.call(this,te),D.call(this,te))}function J(){this.data.atHardBreak=!0}function ue(){const te=this.resume(),re=this.stack[this.stack.length-1];re.value=te}function Q(){const te=this.resume(),re=this.stack[this.stack.length-1];re.value=te}function se(){const te=this.resume(),re=this.stack[this.stack.length-1];re.value=te}function j(){const te=this.stack[this.stack.length-1];if(this.data.inReference){const re=this.data.referenceType||"shortcut";te.type+="Reference",te.referenceType=re,delete te.url,delete te.title}else delete te.identifier,delete te.label;this.data.referenceType=void 0}function U(){const te=this.stack[this.stack.length-1];if(this.data.inReference){const re=this.data.referenceType||"shortcut";te.type+="Reference",te.referenceType=re,delete te.url,delete te.title}else delete te.identifier,delete te.label;this.data.referenceType=void 0}function Y(te){const re=this.sliceSerialize(te),R=this.stack[this.stack.length-2];R.label=cg(re),R.identifier=ui(re).toLowerCase()}function de(){const te=this.stack[this.stack.length-1],re=this.resume(),R=this.stack[this.stack.length-1];if(this.data.inReference=!0,R.type==="link"){const Ce=te.children;R.children=Ce}else R.alt=re}function C(){const te=this.resume(),re=this.stack[this.stack.length-1];re.url=te}function $(){const te=this.resume(),re=this.stack[this.stack.length-1];re.title=te}function ee(){this.data.inReference=void 0}function T(){this.data.referenceType="collapsed"}function B(te){const re=this.resume(),R=this.stack[this.stack.length-1];R.label=re,R.identifier=ui(this.sliceSerialize(te)).toLowerCase(),this.data.referenceType="full"}function W(te){this.data.characterReferenceType=te.type}function z(te){const re=this.sliceSerialize(te),R=this.data.characterReferenceType;let Ce;R?(Ce=og(re,R==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):Ce=pr(re);const Fe=this.stack[this.stack.length-1];Fe.value+=Ce}function K(te){const re=this.stack.pop();re.position.end=ji(te.end)}function ne(te){D.call(this,te);const re=this.stack[this.stack.length-1];re.url=this.sliceSerialize(te)}function ae(te){D.call(this,te);const re=this.stack[this.stack.length-1];re.url="mailto:"+this.sliceSerialize(te)}function le(){return{type:"blockquote",children:[]}}function oe(){return{type:"code",lang:null,meta:null,value:""}}function H(){return{type:"inlineCode",value:""}}function ve(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function Z(){return{type:"emphasis",children:[]}}function xe(){return{type:"heading",depth:0,children:[]}}function be(){return{type:"break"}}function ie(){return{type:"html",value:""}}function me(){return{type:"image",title:null,url:"",alt:null}}function Ee(){return{type:"link",title:null,url:"",children:[]}}function we(te){return{type:"list",ordered:te.type==="listOrdered",start:null,spread:te._spread,children:[]}}function Be(te){return{type:"listItem",spread:te._spread,checked:null,children:[]}}function ze(){return{type:"paragraph",children:[]}}function Pe(){return{type:"strong",children:[]}}function Re(){return{type:"text",value:""}}function rt(){return{type:"thematicBreak"}}}function ji(e){return{line:e.line,column:e.column,offset:e.offset}}function dg(e,t){let i=-1;for(;++i<t.length;){const n=t[i];Array.isArray(n)?dg(e,n):aE(e,n)}}function aE(e,t){let i;for(i in t)if(hg.call(t,i))switch(i){case"canContainEols":{const n=t[i];n&&e[i].push(...n);break}case"transforms":{const n=t[i];n&&e[i].push(...n);break}case"enter":case"exit":{const n=t[i];n&&Object.assign(e[i],n);break}}}function nh(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+_i({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+_i({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+_i({start:t.start,end:t.end})+") is still open")}function sE(e){const t=this;t.parser=i;function i(n){return nE(n,{...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})}}const rh={}.hasOwnProperty;function oE(e,t){const i=t||{};function n(r,...a){let s=n.invalid;const l=n.handlers;if(r&&rh.call(r,e)){const u=String(r[e]);s=rh.call(l,u)?l[u]:n.unknown}if(s)return s.call(this,r,...a)}return n.handlers=i.handlers||{},n.invalid=i.invalid,n.unknown=i.unknown,n}const lE={}.hasOwnProperty;function pg(e,t){let i=-1,n;if(t.extensions)for(;++i<t.extensions.length;)pg(e,t.extensions[i]);for(n in t)if(lE.call(t,n))switch(n){case"extensions":break;case"unsafe":{ah(e[n],t[n]);break}case"join":{ah(e[n],t[n]);break}case"handlers":{uE(e[n],t[n]);break}default:e.options[n]=t[n]}return e}function ah(e,t){t&&e.push(...t)}function uE(e,t){t&&Object.assign(e,t)}function cE(e,t,i,n){const r=i.enter("blockquote"),a=i.createTracker(n);a.move("> "),a.shift(2);const s=i.indentLines(i.containerFlow(e,a.current()),hE);return r(),s}function hE(e,t,i){return">"+(i?"":" ")+e}function fg(e,t){return sh(e,t.inConstruct,!0)&&!sh(e,t.notInConstruct,!1)}function sh(e,t,i){if(typeof t=="string"&&(t=[t]),!t||t.length===0)return i;let n=-1;for(;++n<t.length;)if(e.includes(t[n]))return!0;return!1}function oh(e,t,i,n){let r=-1;for(;++r<i.unsafe.length;)if(i.unsafe[r].character===`
91
- `&&fg(i.stack,i.unsafe[r]))return/[ \t]/.test(n.before)?"":" ";return`\\
92
- `}function dE(e,t){const i=String(e);let n=i.indexOf(t),r=n,a=0,s=0;if(typeof t!="string")throw new TypeError("Expected substring");for(;n!==-1;)n===r?++a>s&&(s=a):a=1,r=n+t.length,n=i.indexOf(t,r);return s}function Eo(e,t){return!!(t.options.fences===!1&&e.value&&!e.lang&&/[^ \r\n]/.test(e.value)&&!/^[\t ]*(?:[\r\n]|$)|(?:^|[\r\n])[\t ]*$/.test(e.value))}function pE(e){const t=e.options.fence||"`";if(t!=="`"&&t!=="~")throw new Error("Cannot serialize code with `"+t+"` for `options.fence`, expected `` ` `` or `~`");return t}function fE(e,t,i,n){const r=pE(i),a=e.value||"",s=r==="`"?"GraveAccent":"Tilde";if(Eo(e,i)){const p=i.enter("codeIndented"),g=i.indentLines(a,gE);return p(),g}const l=i.createTracker(n),u=r.repeat(Math.max(dE(a,r)+1,3)),c=i.enter("codeFenced");let h=l.move(u);if(e.lang){const p=i.enter(`codeFencedLang${s}`);h+=l.move(i.safe(e.lang,{before:h,after:" ",encode:["`"],...l.current()})),p()}if(e.lang&&e.meta){const p=i.enter(`codeFencedMeta${s}`);h+=l.move(" "),h+=l.move(i.safe(e.meta,{before:h,after:`
93
- `,encode:["`"],...l.current()})),p()}return h+=l.move(`
94
- `),a&&(h+=l.move(a+`
95
- `)),h+=l.move(u),c(),h}function gE(e,t,i){return(i?"":" ")+e}function Wl(e){const t=e.options.quote||'"';if(t!=='"'&&t!=="'")throw new Error("Cannot serialize title with `"+t+"` for `options.quote`, expected `\"`, or `'`");return t}function mE(e,t,i,n){const r=Wl(i),a=r==='"'?"Quote":"Apostrophe",s=i.enter("definition");let l=i.enter("label");const u=i.createTracker(n);let c=u.move("[");return c+=u.move(i.safe(i.associationId(e),{before:c,after:"]",...u.current()})),c+=u.move("]: "),l(),!e.url||/[\0- \u007F]/.test(e.url)?(l=i.enter("destinationLiteral"),c+=u.move("<"),c+=u.move(i.safe(e.url,{before:c,after:">",...u.current()})),c+=u.move(">")):(l=i.enter("destinationRaw"),c+=u.move(i.safe(e.url,{before:c,after:e.title?" ":`
96
- `,...u.current()}))),l(),e.title&&(l=i.enter(`title${a}`),c+=u.move(" "+r),c+=u.move(i.safe(e.title,{before:c,after:r,...u.current()})),c+=u.move(r),l()),s(),c}function vE(e){const t=e.options.emphasis||"*";if(t!=="*"&&t!=="_")throw new Error("Cannot serialize emphasis with `"+t+"` for `options.emphasis`, expected `*`, or `_`");return t}function Ki(e){return"&#x"+e.toString(16).toUpperCase()+";"}function La(e,t,i){const n=Fn(e),r=Fn(t);return n===void 0?r===void 0?i==="_"?{inside:!0,outside:!0}:{inside:!1,outside:!1}:r===1?{inside:!0,outside:!0}:{inside:!1,outside:!0}:n===1?r===void 0?{inside:!1,outside:!1}:r===1?{inside:!0,outside:!0}:{inside:!1,outside:!1}:r===void 0?{inside:!1,outside:!1}:r===1?{inside:!0,outside:!1}:{inside:!1,outside:!1}}gg.peek=xE;function gg(e,t,i,n){const r=vE(i),a=i.enter("emphasis"),s=i.createTracker(n),l=s.move(r);let u=s.move(i.containerPhrasing(e,{after:r,before:l,...s.current()}));const c=u.charCodeAt(0),h=La(n.before.charCodeAt(n.before.length-1),c,r);h.inside&&(u=Ki(c)+u.slice(1));const p=u.charCodeAt(u.length-1),g=La(n.after.charCodeAt(0),p,r);g.inside&&(u=u.slice(0,-1)+Ki(p));const m=s.move(r);return a(),i.attentionEncodeSurroundingInfo={after:g.outside,before:h.outside},l+u+m}function xE(e,t,i){return i.options.emphasis||"*"}const ns=(function(e){if(e==null)return kE;if(typeof e=="function")return rs(e);if(typeof e=="object")return Array.isArray(e)?bE(e):yE(e);if(typeof e=="string")return wE(e);throw new Error("Expected function, string, or object as test")});function bE(e){const t=[];let i=-1;for(;++i<e.length;)t[i]=ns(e[i]);return rs(n);function n(...r){let a=-1;for(;++a<t.length;)if(t[a].apply(this,r))return!0;return!1}}function yE(e){const t=e;return rs(i);function i(n){const r=n;let a;for(a in e)if(r[a]!==t[a])return!1;return!0}}function wE(e){return rs(t);function t(i){return i&&i.type===e}}function rs(e){return t;function t(i,n,r){return!!(SE(i)&&e.call(this,i,typeof n=="number"?n:void 0,r||void 0))}}function kE(){return!0}function SE(e){return e!==null&&typeof e=="object"&&"type"in e}const mg=[],EE=!0,Co=!1,CE="skip";function vg(e,t,i,n){let r;typeof t=="function"&&typeof i!="function"?(n=i,i=t):r=t;const a=ns(r),s=n?-1:1;l(e,void 0,[])();function l(u,c,h){const p=u&&typeof u=="object"?u:{};if(typeof p.type=="string"){const m=typeof p.tagName=="string"?p.tagName:typeof p.name=="string"?p.name:void 0;Object.defineProperty(g,"name",{value:"node ("+(u.type+(m?"<"+m+">":""))+")"})}return g;function g(){let m=mg,E,v,k;if((!t||a(u,c,h[h.length-1]||void 0))&&(m=IE(i(u,h)),m[0]===Co))return m;if("children"in u&&u.children){const S=u;if(S.children&&m[0]!==CE)for(v=(n?S.children.length:-1)+s,k=h.concat(S);v>-1&&v<S.children.length;){const w=S.children[v];if(E=l(w,v,k)(),E[0]===Co)return E;v=typeof E[1]=="number"?E[1]:v+s}}return m}}}function IE(e){return Array.isArray(e)?e:typeof e=="number"?[EE,e]:e==null?mg:[e]}function _E(e,t,i,n){let r,a,s;typeof t=="function"&&typeof i!="function"?(a=void 0,s=t,r=i):(a=t,s=i,r=n),vg(e,a,l,r);function l(u,c){const h=c[c.length-1],p=h?h.children.indexOf(u):void 0;return s(u,p,h)}}const AE={};function xg(e,t){const i=AE,n=typeof i.includeImageAlt=="boolean"?i.includeImageAlt:!0,r=typeof i.includeHtml=="boolean"?i.includeHtml:!0;return bg(e,n,r)}function bg(e,t,i){if(NE(e)){if("value"in e)return e.type==="html"&&!i?"":e.value;if(t&&"alt"in e&&e.alt)return e.alt;if("children"in e)return lh(e.children,t,i)}return Array.isArray(e)?lh(e,t,i):""}function lh(e,t,i){const n=[];let r=-1;for(;++r<e.length;)n[r]=bg(e[r],t,i);return n.join("")}function NE(e){return!!(e&&typeof e=="object")}function yg(e,t){let i=!1;return _E(e,function(n){if("value"in n&&/\r?\n|\r/.test(n.value)||n.type==="break")return i=!0,Co}),!!((!e.depth||e.depth<3)&&xg(e)&&(t.options.setext||i))}function TE(e,t,i,n){const r=Math.max(Math.min(6,e.depth||1),1),a=i.createTracker(n);if(yg(e,i)){const h=i.enter("headingSetext"),p=i.enter("phrasing"),g=i.containerPhrasing(e,{...a.current(),before:`
35
+ `;break}case-2:{s=" ";break}case-1:{if(i)continue;s=" ";break}default:s=String.fromCharCode(r)}i=r===-2,n.push(s)}return n.join("")}function tr(e){const t=e||{},n=t.loc||{},i=t.range||[void 0,void 0],r=dl(n.start,i[0]||t.start),s=dl(n.end,i[1]||t.end);if(r&&s)return{start:r,end:s}}function dl(e,t){if(e&&typeof e=="object"){const n="line"in e?ia(e.line):void 0,i="column"in e?ia(e.column):void 0;if(n&&i!==void 0)return{line:n,column:i+1,offset:ia(t)}}}function ia(e){return typeof e=="number"&&e>-1?e:void 0}const Lm=2,Hn="https://github.com/micromark/micromark-extension-mdx-expression/tree/main/packages/micromark-extension-mdx-expression",Mm="#unexpected-end-of-file-in-expression-expected-a-corresponding-closing-brace-for-",Fm="#unexpected-lazy-line-in-expression-in-container-expected-line-to-be-prefixed",gl="#unexpected-type-in-code-expected-an-object-spread-spread",Dm="#unexpected-extra-content-in-spread-only-a-single-spread-is-supported",jm="#could-not-parse-expression-with-acorn";function gr(e,t,n,i,r,s,o,l,u,f,p){const h=this,d=this.events.length+3;let m=0,b,v;return S;function S(N){return e.enter(n),e.enter(i),e.consume(N),e.exit(i),b=h.now(),E}function E(N){if(N===null){if(v)throw v;const y=new qe("Unexpected end of file in expression, expected a corresponding closing brace for `{`",{place:h.now(),ruleId:"unexpected-eof",source:"micromark-extension-mdx-expression"});throw y.url=Hn+Mm,y}if(_e(N))return e.enter("lineEnding"),e.consume(N),e.exit("lineEnding"),I;if(N===125&&m===0){const y=s?Vm.call(h,s,o,r,d,b,f||!1,u||!1):{type:"ok",estree:void 0};if(y.type==="ok"){e.enter(i),e.consume(N),e.exit(i);const g=e.exit(n);return l&&y.estree&&Object.assign(g,{estree:y.estree}),t}return v=y.message,e.enter(r),e.consume(N),k}return e.enter(r),k(N)}function k(N){return N===125&&m===0||N===null||_e(N)?(e.exit(r),E(N)):(N===123&&!s?m+=1:N===125&&(m-=1),e.consume(N),k)}function I(N){const y=h.now();if(y.line!==b.line&&!p&&h.parser.lazy[y.line]){const g=new qe("Unexpected lazy line in expression in container, expected line to be prefixed with `>` when in a block quote, whitespace when in a list, etc",{place:h.now(),ruleId:"unexpected-lazy",source:"micromark-extension-mdx-expression"});throw g.url=Hn+Fm,g}return Me(N)?je(e,E,"linePrefix",Lm+1)(N):E(N)}}function Vm(e,t,n,i,r,s,o){const l=nh(this.events.slice(i),{acorn:e,tokenTypes:[n],acornOptions:t,start:r,expression:!0,allowEmpty:s,prefix:o?"({":"",suffix:o?"})":""}),u=l.estree;if(o&&u){const f=u.body[0];if(f.type!=="ExpressionStatement"||f.expression.type!=="ObjectExpression"){const p=tr(f),h=new qe("Unexpected `"+f.type+"` in code: expected an object spread (`{...spread}`)",{place:p.start,ruleId:"non-spread",source:"micromark-extension-mdx-expression"});throw h.url=Hn+gl,h}if(f.expression.properties[1]){const p=tr(f.expression.properties[1]),h=new qe("Unexpected extra content in spread: only a single spread is supported",{place:p.start,ruleId:"spread-extra",source:"micromark-extension-mdx-expression"});throw h.url=Hn+Dm,h}if(f.expression.properties[0]&&f.expression.properties[0].type!=="SpreadElement"){const p=tr(f.expression.properties[0]),h=new qe("Unexpected `"+f.expression.properties[0].type+"` in code: only spread elements are supported",{place:p.start,ruleId:"non-spread",source:"micromark-extension-mdx-expression"});throw h.url=Hn+gl,h}}if(l.error){const f=new qe("Could not parse expression with acorn",{cause:l.error,place:{line:l.error.loc.line,column:l.error.loc.column+1,offset:l.error.pos},ruleId:"acorn",source:"micromark-extension-mdx-expression"});return f.url=Hn+jm,{type:"nok",message:f}}return{type:"ok",estree:u}}function Bm(e){const t=e||{},n=t.addResult,i=t.acorn,r=t.spread;let s=t.allowEmpty,o;if(s==null&&(s=!0),i){if(!i.parseExpressionAt)throw new Error("Expected a proper `acorn` instance passed in as `options.acorn`");o=Object.assign({ecmaVersion:2024,sourceType:"module"},t.acornOptions)}else if(t.acornOptions||t.addResult)throw new Error("Expected an `acorn` instance passed in as `options.acorn`");return{flow:{123:{name:"mdxFlowExpression",tokenize:l,concrete:!0}},text:{123:{name:"mdxTextExpression",tokenize:u}}};function l(f,p,h){const d=this;return m;function m(E){return b(E)}function b(E){return gr.call(d,f,v,"mdxFlowExpression","mdxFlowExpressionMarker","mdxFlowExpressionChunk",i,o,n,r,s)(E)}function v(E){return Me(E)?je(f,S,"whitespace")(E):S(E)}function S(E){const k=d.parser.constructs.flow[60],N=(Array.isArray(k)?k:k?[k]:[]).find(function(y){return y.name==="mdxJsxFlowTag"});return E===60&&N?f.attempt(N,S,h)(E):E===null||_e(E)?p(E):h(E)}}function u(f,p){const h=this;return d;function d(m){return gr.call(h,f,p,"mdxTextExpression","mdxTextExpressionMarker","mdxTextExpressionChunk",i,o,n,r,s,!0)(m)}}}const zm=/[$_\p{ID_Start}]/u,Km=/[$_\u{200C}\u{200D}\p{ID_Continue}]/u,Um=/[-$_\u{200C}\u{200D}\p{ID_Continue}]/u,Hm={};function Vt(e){return e?zm.test(String.fromCodePoint(e)):!1}function ai(e,t){const i=(t||Hm).jsx?Um:Km;return e?i.test(String.fromCodePoint(e)):!1}const ml="https://github.com/micromark/micromark-extension-mdx-jsx";function ih(e,t,n,i,r,s,o,l,u,f,p,h,d,m,b,v,S,E,k,I,N,y,g,A,M,F,R,j,B,D,se,ue){const te=this;let ae,ge;return ve;function ve(T){return e.enter(l),e.enter(u),e.consume(T),e.exit(u),L}function L(T){return Ke(T)?n(T):(ae=G,Te(T))}function G(T){if(T===47)return e.enter(f),e.consume(T),e.exit(f),ae=ne,Te;if(T===62)return $e(T);if(T!==null&&T>=0&&Vt(T))return e.enter(h),e.enter(d),e.consume(T),O;re(T,"before name","a character that can start a name, such as a letter, `$`, or `_`"+(T===33?" (note: to create a comment in MDX, use `{/* text */}`)":""))}function ne(T){if(T===62)return $e(T);if(T!==null&&T>=0&&Vt(T))return e.enter(h),e.enter(d),e.consume(T),O;re(T,"before name","a character that can start a name, such as a letter, `$`, or `_`"+(T===42||T===47?" (note: JS comments in JSX tags are not supported in MDX)":""))}function O(T){if(T!==null&&T>=0&&ai(T,{jsx:!0}))return e.consume(T),O;if(T===46||T===47||T===58||T===62||T===123||Ke(T)||ct(T))return e.exit(d),ae=he,Te(T);re(T,"in name","a name character such as letters, digits, `$`, or `_`; whitespace before attributes; or the end of the tag"+(T===64?" (note: to create a link in MDX, use `[text](url)`)":""))}function he(T){if(T===46)return e.enter(m),e.consume(T),e.exit(m),ae=W,Te;if(T===58)return e.enter(v),e.consume(T),e.exit(v),ae=K,Te;if(T===47||T===62||T===123||T!==null&&T>=0&&Vt(T))return e.exit(h),X(T);re(T,"after name","a character that can start an attribute name, such as a letter, `$`, or `_`; whitespace before attributes; or the end of the tag")}function W(T){if(T!==null&&T>=0&&Vt(T))return e.enter(b),e.consume(T),Z;re(T,"before member name","a character that can start an attribute name, such as a letter, `$`, or `_`; whitespace before attributes; or the end of the tag")}function Z(T){if(T!==null&&T>=0&&ai(T,{jsx:!0}))return e.consume(T),Z;if(T===46||T===47||T===62||T===123||Ke(T)||ct(T))return e.exit(b),ae=H,Te(T);re(T,"in member name","a name character such as letters, digits, `$`, or `_`; whitespace before attributes; or the end of the tag"+(T===64?" (note: to create a link in MDX, use `[text](url)`)":""))}function H(T){if(T===46)return e.enter(m),e.consume(T),e.exit(m),ae=W,Te;if(T===47||T===62||T===123||T!==null&&T>=0&&Vt(T))return e.exit(h),X(T);re(T,"after member name","a character that can start an attribute name, such as a letter, `$`, or `_`; whitespace before attributes; or the end of the tag")}function K(T){if(T!==null&&T>=0&&Vt(T))return e.enter(S),e.consume(T),J;re(T,"before local name","a character that can start a name, such as a letter, `$`, or `_`"+(T===43||T!==null&&T>46&&T<58?" (note: to create a link in MDX, use `[text](url)`)":""))}function J(T){if(T!==null&&T>=0&&ai(T,{jsx:!0}))return e.consume(T),J;if(T===47||T===62||T===123||Ke(T)||ct(T))return e.exit(S),ae=ie,Te(T);re(T,"in local name","a name character such as letters, digits, `$`, or `_`; whitespace before attributes; or the end of the tag")}function ie(T){if(T===47||T===62||T===123||T!==null&&T>=0&&Vt(T))return e.exit(h),X(T);re(T,"after local name","a character that can start an attribute name, such as a letter, `$`, or `_`; whitespace before attributes; or the end of the tag")}function X(T){if(T===47)return e.enter(p),e.consume(T),e.exit(p),ae=Be,Te;if(T===62)return $e(T);if(T===123)return gr.call(te,e,$,E,k,I,i,r,s,!0,!1,o)(T);if(T!==null&&T>=0&&Vt(T))return e.enter(N),e.enter(y),e.enter(g),e.consume(T),Y;re(T,"before attribute name","a character that can start an attribute name, such as a letter, `$`, or `_`; whitespace before attributes; or the end of the tag")}function $(T){return ae=X,Te(T)}function Y(T){if(T!==null&&T>=0&&ai(T,{jsx:!0}))return e.consume(T),Y;if(T===47||T===58||T===61||T===62||T===123||Ke(T)||ct(T))return e.exit(g),ae=le,Te(T);re(T,"in attribute name","an attribute name character such as letters, digits, `$`, or `_`; `=` to initialize a value; whitespace before attributes; or the end of the tag")}function le(T){if(T===58)return e.enter(A),e.consume(T),e.exit(A),ae=de,Te;if(T===61)return e.exit(y),e.enter(F),e.consume(T),e.exit(F),ae=ke,Te;if(T===47||T===62||T===123||Ke(T)||ct(T)||T!==null&&T>=0&&Vt(T))return e.exit(y),e.exit(N),ae=X,Te(T);re(T,"after attribute name","a character that can start an attribute name, such as a letter, `$`, or `_`; `=` to initialize a value; or the end of the tag")}function de(T){if(T!==null&&T>=0&&Vt(T))return e.enter(M),e.consume(T),Se;re(T,"before local attribute name","a character that can start an attribute name, such as a letter, `$`, or `_`; `=` to initialize a value; or the end of the tag")}function Se(T){if(T!==null&&T>=0&&ai(T,{jsx:!0}))return e.consume(T),Se;if(T===47||T===61||T===62||T===123||Ke(T)||ct(T))return e.exit(M),e.exit(y),ae=ye,Te(T);re(T,"in local attribute name","an attribute name character such as letters, digits, `$`, or `_`; `=` to initialize a value; whitespace before attributes; or the end of the tag")}function ye(T){if(T===61)return e.enter(F),e.consume(T),e.exit(F),ae=ke,Te;if(T===47||T===62||T===123||T!==null&&T>=0&&Vt(T))return e.exit(N),X(T);re(T,"after local attribute name","a character that can start an attribute name, such as a letter, `$`, or `_`; `=` to initialize a value; or the end of the tag")}function ke(T){if(T===34||T===39)return e.enter(R),e.enter(j),e.consume(T),e.exit(j),ge=T,be;if(T===123)return gr.call(te,e,Ie,D,se,ue,i,r,s,!1,!1,o)(T);re(T,"before attribute value","a character that can start an attribute value, such as `\"`, `'`, or `{`"+(T===60?" (note: to use an element or fragment as a prop value in MDX, use `{<element />}`)":""))}function Ie(T){return e.exit(N),ae=X,Te(T)}function be(T){return T===null&&re(T,"in attribute value","a corresponding closing quote `"+String.fromCodePoint(ge)+"`"),T===ge?(e.enter(j),e.consume(T),e.exit(j),e.exit(R),e.exit(N),ge=void 0,ae=X,Te):_e(T)?(ae=be,Te(T)):(e.enter(B),Pe(T))}function Pe(T){return T===null||T===ge||_e(T)?(e.exit(B),be(T)):(e.consume(T),Pe)}function Be(T){if(T===62)return $e(T);re(T,"after self-closing slash","`>` to end the tag"+(T===42||T===47?" (note: JS comments in JSX tags are not supported in MDX)":""))}function $e(T){return e.enter(u),e.consume(T),e.exit(u),e.exit(l),t}function Te(T){return _e(T)?(e.enter("lineEnding"),e.consume(T),e.exit("lineEnding"),Q):Me(T)||ct(T)?(e.enter("esWhitespace"),nt(T)):ae(T)}function nt(T){return _e(T)?(e.exit("esWhitespace"),Te(T)):Me(T)||ct(T)?(e.consume(T),nt):(e.exit("esWhitespace"),ae(T))}function Q(T){if(!o&&te.parser.lazy[te.now().line]){const Ae=new qe("Unexpected lazy line in container, expected line to be prefixed with `>` when in a block quote, whitespace when in a list, etc",te.now(),"micromark-extension-mdx-jsx:unexpected-lazy");throw Ae.url=ml+"#unexpected-lazy-line-in-container-expected-line-to-be",Ae}return Te(T)}function re(T,Ae,Le){const at=new qe("Unexpected "+(T===null?"end of file":"character `"+(T===96?"` ` `":String.fromCodePoint(T))+"` ("+$m(T)+")")+" "+Ae+", expected "+Le,te.now(),"micromark-extension-mdx-jsx:unexpected-"+(T===null?"eof":"character"));throw at.url=ml+(T===null?"#unexpected-end-of-file-at-expected-expect":"#unexpected-character-at-expected-expect"),at}}function $m(e){return"U+"+e.toString(16).toUpperCase().padStart(4,"0")}function qm(e,t){return{name:"mdxJsxTextTag",tokenize:n};function n(i,r,s){return ih.call(this,i,r,s,e,t.acornOptions,t.addResult,!0,"mdxJsxTextTag","mdxJsxTextTagMarker","mdxJsxTextTagClosingMarker","mdxJsxTextTagSelfClosingMarker","mdxJsxTextTagName","mdxJsxTextTagNamePrimary","mdxJsxTextTagNameMemberMarker","mdxJsxTextTagNameMember","mdxJsxTextTagNamePrefixMarker","mdxJsxTextTagNameLocal","mdxJsxTextTagExpressionAttribute","mdxJsxTextTagExpressionAttributeMarker","mdxJsxTextTagExpressionAttributeValue","mdxJsxTextTagAttribute","mdxJsxTextTagAttributeName","mdxJsxTextTagAttributeNamePrimary","mdxJsxTextTagAttributeNamePrefixMarker","mdxJsxTextTagAttributeNameLocal","mdxJsxTextTagAttributeInitializerMarker","mdxJsxTextTagAttributeValueLiteral","mdxJsxTextTagAttributeValueLiteralMarker","mdxJsxTextTagAttributeValueLiteralValue","mdxJsxTextTagAttributeValueExpression","mdxJsxTextTagAttributeValueExpressionMarker","mdxJsxTextTagAttributeValueExpressionValue")}}function Wm(e,t){return{concrete:!0,name:"mdxJsxFlowTag",tokenize:n};function n(i,r,s){const o=this;return l;function l(h){return u(h)}function u(h){return ih.call(o,i,f,s,e,t.acornOptions,t.addResult,!1,"mdxJsxFlowTag","mdxJsxFlowTagMarker","mdxJsxFlowTagClosingMarker","mdxJsxFlowTagSelfClosingMarker","mdxJsxFlowTagName","mdxJsxFlowTagNamePrimary","mdxJsxFlowTagNameMemberMarker","mdxJsxFlowTagNameMember","mdxJsxFlowTagNamePrefixMarker","mdxJsxFlowTagNameLocal","mdxJsxFlowTagExpressionAttribute","mdxJsxFlowTagExpressionAttributeMarker","mdxJsxFlowTagExpressionAttributeValue","mdxJsxFlowTagAttribute","mdxJsxFlowTagAttributeName","mdxJsxFlowTagAttributeNamePrimary","mdxJsxFlowTagAttributeNamePrefixMarker","mdxJsxFlowTagAttributeNameLocal","mdxJsxFlowTagAttributeInitializerMarker","mdxJsxFlowTagAttributeValueLiteral","mdxJsxFlowTagAttributeValueLiteralMarker","mdxJsxFlowTagAttributeValueLiteralValue","mdxJsxFlowTagAttributeValueExpression","mdxJsxFlowTagAttributeValueExpressionMarker","mdxJsxFlowTagAttributeValueExpressionValue")(h)}function f(h){return Me(h)?je(i,p,"whitespace")(h):p(h)}function p(h){const d=o.parser.constructs.flow[123],m=Array.isArray(d)?d:d?[d]:[];let b;for(const v of m)if(v.name==="mdxFlowExpression"){b=v;break}return h===60?l(h):h===123&&b?i.attempt(b,p,s)(h):h===null||_e(h)?r(h):s(h)}}}function Gm(e){const t=e||{},n=t.acorn;let i;if(n){if(!n.parse||!n.parseExpressionAt)throw new Error("Expected a proper `acorn` instance passed in as `options.acorn`");i=Object.assign({ecmaVersion:2024,sourceType:"module"},t.acornOptions,{locations:!0})}else if(t.acornOptions||t.addResult)throw new Error("Expected an `acorn` instance passed in as `options.acorn`");return{flow:{60:Wm(n||void 0,{acornOptions:i,addResult:t.addResult||void 0})},text:{60:qm(n||void 0,{acornOptions:i,addResult:t.addResult||void 0})}}}function Jm(){return{disable:{null:["autolink","codeIndented","htmlFlow","htmlText"]}}}function Et(e,t,n,i){const r=e.length;let s=0,o;if(t<0?t=-t>r?0:r+t:t=t>r?r:t,n=n>0?n:0,i.length<1e4)o=Array.from(i),o.unshift(t,n),e.splice(...o);else for(n&&e.splice(t,n);s<i.length;)o=i.slice(s,s+1e4),o.unshift(t,0),e.splice(...o),s+=1e4,t+=1e4}function Pt(e,t){return e.length>0?(Et(e,e.length,0,t),e):t}function qn(e){if(e===null||Ke(e)||ct(e))return 1;if(Mr(e))return 2}function Fr(e,t,n){const i=[];let r=-1;for(;++r<e.length;){const s=e[r].resolveAll;s&&!i.includes(s)&&(t=s(t,n),i.push(s))}return t}const Wa={name:"attention",resolveAll:Ym,tokenize:Qm};function Ym(e,t){let n=-1,i,r,s,o,l,u,f,p;for(;++n<e.length;)if(e[n][0]==="enter"&&e[n][1].type==="attentionSequence"&&e[n][1]._close){for(i=n;i--;)if(e[i][0]==="exit"&&e[i][1].type==="attentionSequence"&&e[i][1]._open&&t.sliceSerialize(e[i][1]).charCodeAt(0)===t.sliceSerialize(e[n][1]).charCodeAt(0)){if((e[i][1]._close||e[n][1]._open)&&(e[n][1].end.offset-e[n][1].start.offset)%3&&!((e[i][1].end.offset-e[i][1].start.offset+e[n][1].end.offset-e[n][1].start.offset)%3))continue;u=e[i][1].end.offset-e[i][1].start.offset>1&&e[n][1].end.offset-e[n][1].start.offset>1?2:1;const h={...e[i][1].end},d={...e[n][1].start};xl(h,-u),xl(d,u),o={type:u>1?"strongSequence":"emphasisSequence",start:h,end:{...e[i][1].end}},l={type:u>1?"strongSequence":"emphasisSequence",start:{...e[n][1].start},end:d},s={type:u>1?"strongText":"emphasisText",start:{...e[i][1].end},end:{...e[n][1].start}},r={type:u>1?"strong":"emphasis",start:{...o.start},end:{...l.end}},e[i][1].end={...o.start},e[n][1].start={...l.end},f=[],e[i][1].end.offset-e[i][1].start.offset&&(f=Pt(f,[["enter",e[i][1],t],["exit",e[i][1],t]])),f=Pt(f,[["enter",r,t],["enter",o,t],["exit",o,t],["enter",s,t]]),f=Pt(f,Fr(t.parser.constructs.insideSpan.null,e.slice(i+1,n),t)),f=Pt(f,[["exit",s,t],["enter",l,t],["exit",l,t],["exit",r,t]]),e[n][1].end.offset-e[n][1].start.offset?(p=2,f=Pt(f,[["enter",e[n][1],t],["exit",e[n][1],t]])):p=0,Et(e,i-1,n-i+3,f),n=i+f.length-p-2;break}}for(n=-1;++n<e.length;)e[n][1].type==="attentionSequence"&&(e[n][1].type="data");return e}function Qm(e,t){const n=this.parser.constructs.attentionMarkers.null,i=this.previous,r=qn(i);let s;return o;function o(u){return s=u,e.enter("attentionSequence"),l(u)}function l(u){if(u===s)return e.consume(u),l;const f=e.exit("attentionSequence"),p=qn(u),h=!p||p===2&&r||n.includes(u),d=!r||r===2&&p||n.includes(i);return f._open=!!(s===42?h:h&&(r||!d)),f._close=!!(s===42?d:d&&(p||!h)),t(u)}}function xl(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}const Zm={name:"autolink",tokenize:Xm};function Xm(e,t,n){let i=0;return r;function r(m){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(m),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),s}function s(m){return lt(m)?(e.consume(m),o):m===64?n(m):f(m)}function o(m){return m===43||m===45||m===46||gt(m)?(i=1,l(m)):f(m)}function l(m){return m===58?(e.consume(m),i=0,u):(m===43||m===45||m===46||gt(m))&&i++<32?(e.consume(m),l):(i=0,f(m))}function u(m){return m===62?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(m),e.exit("autolinkMarker"),e.exit("autolink"),t):m===null||m===32||m===60||dr(m)?n(m):(e.consume(m),u)}function f(m){return m===64?(e.consume(m),p):km(m)?(e.consume(m),f):n(m)}function p(m){return gt(m)?h(m):n(m)}function h(m){return m===46?(e.consume(m),i=0,p):m===62?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(m),e.exit("autolinkMarker"),e.exit("autolink"),t):d(m)}function d(m){if((m===45||gt(m))&&i++<63){const b=m===45?d:h;return e.consume(m),b}return n(m)}}const ti={partial:!0,tokenize:ex};function ex(e,t,n){return i;function i(s){return Me(s)?je(e,r,"linePrefix")(s):r(s)}function r(s){return s===null||_e(s)?t(s):n(s)}}const rh={continuation:{tokenize:nx},exit:ix,name:"blockQuote",tokenize:tx};function tx(e,t,n){const i=this;return r;function r(o){if(o===62){const l=i.containerState;return l.open||(e.enter("blockQuote",{_container:!0}),l.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(o),e.exit("blockQuoteMarker"),s}return n(o)}function s(o){return Me(o)?(e.enter("blockQuotePrefixWhitespace"),e.consume(o),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(o))}}function nx(e,t,n){const i=this;return r;function r(o){return Me(o)?je(e,s,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(o):s(o)}function s(o){return e.attempt(rh,t,n)(o)}}function ix(e){e.exit("blockQuote")}const ah={name:"characterEscape",tokenize:rx};function rx(e,t,n){return i;function i(s){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(s),e.exit("escapeMarker"),r}function r(s){return _m(s)?(e.enter("characterEscapeValue"),e.consume(s),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):n(s)}}const sh={name:"characterReference",tokenize:ax};function ax(e,t,n){const i=this;let r=0,s,o;return l;function l(h){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(h),e.exit("characterReferenceMarker"),u}function u(h){return h===35?(e.enter("characterReferenceMarkerNumeric"),e.consume(h),e.exit("characterReferenceMarkerNumeric"),f):(e.enter("characterReferenceValue"),s=31,o=gt,p(h))}function f(h){return h===88||h===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(h),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),s=6,o=Cm,p):(e.enter("characterReferenceValue"),s=7,o=qa,p(h))}function p(h){if(h===59&&r){const d=e.exit("characterReferenceValue");return o===gt&&!mi(i.sliceSerialize(d))?n(h):(e.enter("characterReferenceMarker"),e.consume(h),e.exit("characterReferenceMarker"),e.exit("characterReference"),t)}return o(h)&&r++<s?(e.consume(h),p):n(h)}}const vl={partial:!0,tokenize:ox},bl={concrete:!0,name:"codeFenced",tokenize:sx};function sx(e,t,n){const i=this,r={partial:!0,tokenize:y};let s=0,o=0,l;return u;function u(g){return f(g)}function f(g){const A=i.events[i.events.length-1];return s=A&&A[1].type==="linePrefix"?A[2].sliceSerialize(A[1],!0).length:0,l=g,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),p(g)}function p(g){return g===l?(o++,e.consume(g),p):o<3?n(g):(e.exit("codeFencedFenceSequence"),Me(g)?je(e,h,"whitespace")(g):h(g))}function h(g){return g===null||_e(g)?(e.exit("codeFencedFence"),i.interrupt?t(g):e.check(vl,v,N)(g)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),d(g))}function d(g){return g===null||_e(g)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),h(g)):Me(g)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),je(e,m,"whitespace")(g)):g===96&&g===l?n(g):(e.consume(g),d)}function m(g){return g===null||_e(g)?h(g):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),b(g))}function b(g){return g===null||_e(g)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),h(g)):g===96&&g===l?n(g):(e.consume(g),b)}function v(g){return e.attempt(r,N,S)(g)}function S(g){return e.enter("lineEnding"),e.consume(g),e.exit("lineEnding"),E}function E(g){return s>0&&Me(g)?je(e,k,"linePrefix",s+1)(g):k(g)}function k(g){return g===null||_e(g)?e.check(vl,v,N)(g):(e.enter("codeFlowValue"),I(g))}function I(g){return g===null||_e(g)?(e.exit("codeFlowValue"),k(g)):(e.consume(g),I)}function N(g){return e.exit("codeFenced"),t(g)}function y(g,A,M){let F=0;return R;function R(ue){return g.enter("lineEnding"),g.consume(ue),g.exit("lineEnding"),j}function j(ue){return g.enter("codeFencedFence"),Me(ue)?je(g,B,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(ue):B(ue)}function B(ue){return ue===l?(g.enter("codeFencedFenceSequence"),D(ue)):M(ue)}function D(ue){return ue===l?(F++,g.consume(ue),D):F>=o?(g.exit("codeFencedFenceSequence"),Me(ue)?je(g,se,"whitespace")(ue):se(ue)):M(ue)}function se(ue){return ue===null||_e(ue)?(g.exit("codeFencedFence"),A(ue)):M(ue)}}}function ox(e,t,n){const i=this;return r;function r(o){return o===null?n(o):(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),s)}function s(o){return i.parser.lazy[i.now().line]?n(o):t(o)}}const ra={name:"codeIndented",tokenize:ux},lx={partial:!0,tokenize:cx};function ux(e,t,n){const i=this;return r;function r(f){return e.enter("codeIndented"),je(e,s,"linePrefix",5)(f)}function s(f){const p=i.events[i.events.length-1];return p&&p[1].type==="linePrefix"&&p[2].sliceSerialize(p[1],!0).length>=4?o(f):n(f)}function o(f){return f===null?u(f):_e(f)?e.attempt(lx,o,u)(f):(e.enter("codeFlowValue"),l(f))}function l(f){return f===null||_e(f)?(e.exit("codeFlowValue"),o(f)):(e.consume(f),l)}function u(f){return e.exit("codeIndented"),t(f)}}function cx(e,t,n){const i=this;return r;function r(o){return i.parser.lazy[i.now().line]?n(o):_e(o)?(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),r):je(e,s,"linePrefix",5)(o)}function s(o){const l=i.events[i.events.length-1];return l&&l[1].type==="linePrefix"&&l[2].sliceSerialize(l[1],!0).length>=4?t(o):_e(o)?r(o):n(o)}}const hx={name:"codeText",previous:px,resolve:fx,tokenize:dx};function fx(e){let t=e.length-4,n=3,i,r;if((e[n][1].type==="lineEnding"||e[n][1].type==="space")&&(e[t][1].type==="lineEnding"||e[t][1].type==="space")){for(i=n;++i<t;)if(e[i][1].type==="codeTextData"){e[n][1].type="codeTextPadding",e[t][1].type="codeTextPadding",n+=2,t-=2;break}}for(i=n-1,t++;++i<=t;)r===void 0?i!==t&&e[i][1].type!=="lineEnding"&&(r=i):(i===t||e[i][1].type==="lineEnding")&&(e[r][1].type="codeTextData",i!==r+2&&(e[r][1].end=e[i-1][1].end,e.splice(r+2,i-r-2),t-=i-r-2,i=r+2),r=void 0);return e}function px(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function dx(e,t,n){let i=0,r,s;return o;function o(h){return e.enter("codeText"),e.enter("codeTextSequence"),l(h)}function l(h){return h===96?(e.consume(h),i++,l):(e.exit("codeTextSequence"),u(h))}function u(h){return h===null?n(h):h===32?(e.enter("space"),e.consume(h),e.exit("space"),u):h===96?(s=e.enter("codeTextSequence"),r=0,p(h)):_e(h)?(e.enter("lineEnding"),e.consume(h),e.exit("lineEnding"),u):(e.enter("codeTextData"),f(h))}function f(h){return h===null||h===32||h===96||_e(h)?(e.exit("codeTextData"),u(h)):(e.consume(h),f)}function p(h){return h===96?(e.consume(h),r++,p):r===i?(e.exit("codeTextSequence"),e.exit("codeText"),t(h)):(s.type="codeTextData",f(h))}}class gx{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 i=n??Number.POSITIVE_INFINITY;return i<this.left.length?this.left.slice(t,i):t>this.left.length?this.right.slice(this.right.length-i+this.left.length,this.right.length-t+this.left.length).reverse():this.left.slice(t).concat(this.right.slice(this.right.length-i+this.left.length).reverse())}splice(t,n,i){const r=n||0;this.setCursor(Math.trunc(t));const s=this.right.splice(this.right.length-r,Number.POSITIVE_INFINITY);return i&&si(this.left,i),s.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),si(this.left,t)}unshift(t){this.setCursor(0),this.right.push(t)}unshiftMany(t){this.setCursor(0),si(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);si(this.right,n.reverse())}else{const n=this.right.splice(this.left.length+this.right.length-t,Number.POSITIVE_INFINITY);si(this.left,n.reverse())}}}function si(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 oh(e){const t={};let n=-1,i,r,s,o,l,u,f;const p=new gx(e);for(;++n<p.length;){for(;n in t;)n=t[n];if(i=p.get(n),n&&i[1].type==="chunkFlow"&&p.get(n-1)[1].type==="listItemPrefix"&&(u=i[1]._tokenizer.events,s=0,s<u.length&&u[s][1].type==="lineEndingBlank"&&(s+=2),s<u.length&&u[s][1].type==="content"))for(;++s<u.length&&u[s][1].type!=="content";)u[s][1].type==="chunkText"&&(u[s][1]._isInFirstContentOfListItem=!0,s++);if(i[0]==="enter")i[1].contentType&&(Object.assign(t,mx(p,n)),n=t[n],f=!0);else if(i[1]._container){for(s=n,r=void 0;s--;)if(o=p.get(s),o[1].type==="lineEnding"||o[1].type==="lineEndingBlank")o[0]==="enter"&&(r&&(p.get(r)[1].type="lineEndingBlank"),o[1].type="lineEnding",r=s);else if(!(o[1].type==="linePrefix"||o[1].type==="listItemIndent"))break;r&&(i[1].end={...p.get(r)[1].start},l=p.slice(r,n),l.unshift(i),p.splice(r,n-r+1,l))}}return Et(e,0,Number.POSITIVE_INFINITY,p.slice(0)),!f}function mx(e,t){const n=e.get(t)[1],i=e.get(t)[2];let r=t-1;const s=[];let o=n._tokenizer;o||(o=i.parser[n.contentType](n.start),n._contentTypeTextTrailing&&(o._contentTypeTextTrailing=!0));const l=o.events,u=[],f={};let p,h,d=-1,m=n,b=0,v=0;const S=[v];for(;m;){for(;e.get(++r)[1]!==m;);s.push(r),m._tokenizer||(p=i.sliceStream(m),m.next||p.push(null),h&&o.defineSkip(m.start),m._isInFirstContentOfListItem&&(o._gfmTasklistFirstContentOfListItem=!0),o.write(p),m._isInFirstContentOfListItem&&(o._gfmTasklistFirstContentOfListItem=void 0)),h=m,m=m.next}for(m=n;++d<l.length;)l[d][0]==="exit"&&l[d-1][0]==="enter"&&l[d][1].type===l[d-1][1].type&&l[d][1].start.line!==l[d][1].end.line&&(v=d+1,S.push(v),m._tokenizer=void 0,m.previous=void 0,m=m.next);for(o.events=[],m?(m._tokenizer=void 0,m.previous=void 0):S.pop(),d=S.length;d--;){const E=l.slice(S[d],S[d+1]),k=s.pop();u.push([k,k+E.length-1]),e.splice(k,2,E)}for(u.reverse(),d=-1;++d<u.length;)f[b+u[d][0]]=b+u[d][1],b+=u[d][1]-u[d][0]-1;return f}const xx={resolve:bx,tokenize:yx},vx={partial:!0,tokenize:wx};function bx(e){return oh(e),e}function yx(e,t){let n;return i;function i(l){return e.enter("content"),n=e.enter("chunkContent",{contentType:"content"}),r(l)}function r(l){return l===null?s(l):_e(l)?e.check(vx,o,s)(l):(e.consume(l),r)}function s(l){return e.exit("chunkContent"),e.exit("content"),t(l)}function o(l){return e.consume(l),e.exit("chunkContent"),n.next=e.enter("chunkContent",{contentType:"content",previous:n}),n=n.next,r}}function wx(e,t,n){const i=this;return r;function r(o){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),je(e,s,"linePrefix")}function s(o){if(o===null||_e(o))return n(o);const l=i.events[i.events.length-1];return!i.parser.constructs.disable.null.includes("codeIndented")&&l&&l[1].type==="linePrefix"&&l[2].sliceSerialize(l[1],!0).length>=4?t(o):e.interrupt(i.parser.constructs.flow,n,t)(o)}}function lh(e,t,n,i,r,s,o,l,u){const f=u||Number.POSITIVE_INFINITY;let p=0;return h;function h(E){return E===60?(e.enter(i),e.enter(r),e.enter(s),e.consume(E),e.exit(s),d):E===null||E===32||E===41||dr(E)?n(E):(e.enter(i),e.enter(o),e.enter(l),e.enter("chunkString",{contentType:"string"}),v(E))}function d(E){return E===62?(e.enter(s),e.consume(E),e.exit(s),e.exit(r),e.exit(i),t):(e.enter(l),e.enter("chunkString",{contentType:"string"}),m(E))}function m(E){return E===62?(e.exit("chunkString"),e.exit(l),d(E)):E===null||E===60||_e(E)?n(E):(e.consume(E),E===92?b:m)}function b(E){return E===60||E===62||E===92?(e.consume(E),m):m(E)}function v(E){return!p&&(E===null||E===41||Ke(E))?(e.exit("chunkString"),e.exit(l),e.exit(o),e.exit(i),t(E)):p<f&&E===40?(e.consume(E),p++,v):E===41?(e.consume(E),p--,v):E===null||E===32||E===40||dr(E)?n(E):(e.consume(E),E===92?S:v)}function S(E){return E===40||E===41||E===92?(e.consume(E),v):v(E)}}function uh(e,t,n,i,r,s){const o=this;let l=0,u;return f;function f(m){return e.enter(i),e.enter(r),e.consume(m),e.exit(r),e.enter(s),p}function p(m){return l>999||m===null||m===91||m===93&&!u||m===94&&!l&&"_hiddenFootnoteSupport"in o.parser.constructs?n(m):m===93?(e.exit(s),e.enter(r),e.consume(m),e.exit(r),e.exit(i),t):_e(m)?(e.enter("lineEnding"),e.consume(m),e.exit("lineEnding"),p):(e.enter("chunkString",{contentType:"string"}),h(m))}function h(m){return m===null||m===91||m===93||_e(m)||l++>999?(e.exit("chunkString"),p(m)):(e.consume(m),u||(u=!Me(m)),m===92?d:h)}function d(m){return m===91||m===92||m===93?(e.consume(m),l++,h):h(m)}}function ch(e,t,n,i,r,s){let o;return l;function l(d){return d===34||d===39||d===40?(e.enter(i),e.enter(r),e.consume(d),e.exit(r),o=d===40?41:d,u):n(d)}function u(d){return d===o?(e.enter(r),e.consume(d),e.exit(r),e.exit(i),t):(e.enter(s),f(d))}function f(d){return d===o?(e.exit(s),u(o)):d===null?n(d):_e(d)?(e.enter("lineEnding"),e.consume(d),e.exit("lineEnding"),je(e,f,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),p(d))}function p(d){return d===o||d===null||_e(d)?(e.exit("chunkString"),f(d)):(e.consume(d),d===92?h:p)}function h(d){return d===o||d===92?(e.consume(d),p):p(d)}}function hi(e,t){let n;return i;function i(r){return _e(r)?(e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),n=!0,i):Me(r)?je(e,i,n?"linePrefix":"lineSuffix")(r):t(r)}}function zt(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const Ex={name:"definition",tokenize:kx},Sx={partial:!0,tokenize:Cx};function kx(e,t,n){const i=this;let r;return s;function s(m){return e.enter("definition"),o(m)}function o(m){return uh.call(i,e,l,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(m)}function l(m){return r=zt(i.sliceSerialize(i.events[i.events.length-1][1]).slice(1,-1)),m===58?(e.enter("definitionMarker"),e.consume(m),e.exit("definitionMarker"),u):n(m)}function u(m){return Ke(m)?hi(e,f)(m):f(m)}function f(m){return lh(e,p,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(m)}function p(m){return e.attempt(Sx,h,h)(m)}function h(m){return Me(m)?je(e,d,"whitespace")(m):d(m)}function d(m){return m===null||_e(m)?(e.exit("definition"),i.parser.defined.push(r),t(m)):n(m)}}function Cx(e,t,n){return i;function i(l){return Ke(l)?hi(e,r)(l):n(l)}function r(l){return ch(e,s,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(l)}function s(l){return Me(l)?je(e,o,"whitespace")(l):o(l)}function o(l){return l===null||_e(l)?t(l):n(l)}}const _x={name:"hardBreakEscape",tokenize:Ix};function Ix(e,t,n){return i;function i(s){return e.enter("hardBreakEscape"),e.consume(s),r}function r(s){return _e(s)?(e.exit("hardBreakEscape"),t(s)):n(s)}}const Ax={name:"headingAtx",resolve:Tx,tokenize:Nx};function Tx(e,t){let n=e.length-2,i=3,r,s;return e[i][1].type==="whitespace"&&(i+=2),n-2>i&&e[n][1].type==="whitespace"&&(n-=2),e[n][1].type==="atxHeadingSequence"&&(i===n-1||n-4>i&&e[n-2][1].type==="whitespace")&&(n-=i+1===n?2:4),n>i&&(r={type:"atxHeadingText",start:e[i][1].start,end:e[n][1].end},s={type:"chunkText",start:e[i][1].start,end:e[n][1].end,contentType:"text"},Et(e,i,n-i+1,[["enter",r,t],["enter",s,t],["exit",s,t],["exit",r,t]])),e}function Nx(e,t,n){let i=0;return r;function r(p){return e.enter("atxHeading"),s(p)}function s(p){return e.enter("atxHeadingSequence"),o(p)}function o(p){return p===35&&i++<6?(e.consume(p),o):p===null||Ke(p)?(e.exit("atxHeadingSequence"),l(p)):n(p)}function l(p){return p===35?(e.enter("atxHeadingSequence"),u(p)):p===null||_e(p)?(e.exit("atxHeading"),t(p)):Me(p)?je(e,l,"whitespace")(p):(e.enter("atxHeadingText"),f(p))}function u(p){return p===35?(e.consume(p),u):(e.exit("atxHeadingSequence"),l(p))}function f(p){return p===null||p===35||Ke(p)?(e.exit("atxHeadingText"),l(p)):(e.consume(p),f)}}const Px=["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"],yl=["pre","script","style","textarea"],Ox={concrete:!0,name:"htmlFlow",resolveTo:Mx,tokenize:Fx},Rx={partial:!0,tokenize:jx},Lx={partial:!0,tokenize:Dx};function Mx(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 Fx(e,t,n){const i=this;let r,s,o,l,u;return f;function f(O){return p(O)}function p(O){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(O),h}function h(O){return O===33?(e.consume(O),d):O===47?(e.consume(O),s=!0,v):O===63?(e.consume(O),r=3,i.interrupt?t:L):lt(O)?(e.consume(O),o=String.fromCharCode(O),S):n(O)}function d(O){return O===45?(e.consume(O),r=2,m):O===91?(e.consume(O),r=5,l=0,b):lt(O)?(e.consume(O),r=4,i.interrupt?t:L):n(O)}function m(O){return O===45?(e.consume(O),i.interrupt?t:L):n(O)}function b(O){const he="CDATA[";return O===he.charCodeAt(l++)?(e.consume(O),l===he.length?i.interrupt?t:B:b):n(O)}function v(O){return lt(O)?(e.consume(O),o=String.fromCharCode(O),S):n(O)}function S(O){if(O===null||O===47||O===62||Ke(O)){const he=O===47,W=o.toLowerCase();return!he&&!s&&yl.includes(W)?(r=1,i.interrupt?t(O):B(O)):Px.includes(o.toLowerCase())?(r=6,he?(e.consume(O),E):i.interrupt?t(O):B(O)):(r=7,i.interrupt&&!i.parser.lazy[i.now().line]?n(O):s?k(O):I(O))}return O===45||gt(O)?(e.consume(O),o+=String.fromCharCode(O),S):n(O)}function E(O){return O===62?(e.consume(O),i.interrupt?t:B):n(O)}function k(O){return Me(O)?(e.consume(O),k):R(O)}function I(O){return O===47?(e.consume(O),R):O===58||O===95||lt(O)?(e.consume(O),N):Me(O)?(e.consume(O),I):R(O)}function N(O){return O===45||O===46||O===58||O===95||gt(O)?(e.consume(O),N):y(O)}function y(O){return O===61?(e.consume(O),g):Me(O)?(e.consume(O),y):I(O)}function g(O){return O===null||O===60||O===61||O===62||O===96?n(O):O===34||O===39?(e.consume(O),u=O,A):Me(O)?(e.consume(O),g):M(O)}function A(O){return O===u?(e.consume(O),u=null,F):O===null||_e(O)?n(O):(e.consume(O),A)}function M(O){return O===null||O===34||O===39||O===47||O===60||O===61||O===62||O===96||Ke(O)?y(O):(e.consume(O),M)}function F(O){return O===47||O===62||Me(O)?I(O):n(O)}function R(O){return O===62?(e.consume(O),j):n(O)}function j(O){return O===null||_e(O)?B(O):Me(O)?(e.consume(O),j):n(O)}function B(O){return O===45&&r===2?(e.consume(O),te):O===60&&r===1?(e.consume(O),ae):O===62&&r===4?(e.consume(O),G):O===63&&r===3?(e.consume(O),L):O===93&&r===5?(e.consume(O),ve):_e(O)&&(r===6||r===7)?(e.exit("htmlFlowData"),e.check(Rx,ne,D)(O)):O===null||_e(O)?(e.exit("htmlFlowData"),D(O)):(e.consume(O),B)}function D(O){return e.check(Lx,se,ne)(O)}function se(O){return e.enter("lineEnding"),e.consume(O),e.exit("lineEnding"),ue}function ue(O){return O===null||_e(O)?D(O):(e.enter("htmlFlowData"),B(O))}function te(O){return O===45?(e.consume(O),L):B(O)}function ae(O){return O===47?(e.consume(O),o="",ge):B(O)}function ge(O){if(O===62){const he=o.toLowerCase();return yl.includes(he)?(e.consume(O),G):B(O)}return lt(O)&&o.length<8?(e.consume(O),o+=String.fromCharCode(O),ge):B(O)}function ve(O){return O===93?(e.consume(O),L):B(O)}function L(O){return O===62?(e.consume(O),G):O===45&&r===2?(e.consume(O),L):B(O)}function G(O){return O===null||_e(O)?(e.exit("htmlFlowData"),ne(O)):(e.consume(O),G)}function ne(O){return e.exit("htmlFlow"),t(O)}}function Dx(e,t,n){const i=this;return r;function r(o){return _e(o)?(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),s):n(o)}function s(o){return i.parser.lazy[i.now().line]?n(o):t(o)}}function jx(e,t,n){return i;function i(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),e.attempt(ti,t,n)}}const Vx={name:"htmlText",tokenize:Bx};function Bx(e,t,n){const i=this;let r,s,o;return l;function l(L){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(L),u}function u(L){return L===33?(e.consume(L),f):L===47?(e.consume(L),y):L===63?(e.consume(L),I):lt(L)?(e.consume(L),M):n(L)}function f(L){return L===45?(e.consume(L),p):L===91?(e.consume(L),s=0,b):lt(L)?(e.consume(L),k):n(L)}function p(L){return L===45?(e.consume(L),m):n(L)}function h(L){return L===null?n(L):L===45?(e.consume(L),d):_e(L)?(o=h,ae(L)):(e.consume(L),h)}function d(L){return L===45?(e.consume(L),m):h(L)}function m(L){return L===62?te(L):L===45?d(L):h(L)}function b(L){const G="CDATA[";return L===G.charCodeAt(s++)?(e.consume(L),s===G.length?v:b):n(L)}function v(L){return L===null?n(L):L===93?(e.consume(L),S):_e(L)?(o=v,ae(L)):(e.consume(L),v)}function S(L){return L===93?(e.consume(L),E):v(L)}function E(L){return L===62?te(L):L===93?(e.consume(L),E):v(L)}function k(L){return L===null||L===62?te(L):_e(L)?(o=k,ae(L)):(e.consume(L),k)}function I(L){return L===null?n(L):L===63?(e.consume(L),N):_e(L)?(o=I,ae(L)):(e.consume(L),I)}function N(L){return L===62?te(L):I(L)}function y(L){return lt(L)?(e.consume(L),g):n(L)}function g(L){return L===45||gt(L)?(e.consume(L),g):A(L)}function A(L){return _e(L)?(o=A,ae(L)):Me(L)?(e.consume(L),A):te(L)}function M(L){return L===45||gt(L)?(e.consume(L),M):L===47||L===62||Ke(L)?F(L):n(L)}function F(L){return L===47?(e.consume(L),te):L===58||L===95||lt(L)?(e.consume(L),R):_e(L)?(o=F,ae(L)):Me(L)?(e.consume(L),F):te(L)}function R(L){return L===45||L===46||L===58||L===95||gt(L)?(e.consume(L),R):j(L)}function j(L){return L===61?(e.consume(L),B):_e(L)?(o=j,ae(L)):Me(L)?(e.consume(L),j):F(L)}function B(L){return L===null||L===60||L===61||L===62||L===96?n(L):L===34||L===39?(e.consume(L),r=L,D):_e(L)?(o=B,ae(L)):Me(L)?(e.consume(L),B):(e.consume(L),se)}function D(L){return L===r?(e.consume(L),r=void 0,ue):L===null?n(L):_e(L)?(o=D,ae(L)):(e.consume(L),D)}function se(L){return L===null||L===34||L===39||L===60||L===61||L===96?n(L):L===47||L===62||Ke(L)?F(L):(e.consume(L),se)}function ue(L){return L===47||L===62||Ke(L)?F(L):n(L)}function te(L){return L===62?(e.consume(L),e.exit("htmlTextData"),e.exit("htmlText"),t):n(L)}function ae(L){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(L),e.exit("lineEnding"),ge}function ge(L){return Me(L)?je(e,ve,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(L):ve(L)}function ve(L){return e.enter("htmlTextData"),o(L)}}const xs={name:"labelEnd",resolveAll:Hx,resolveTo:$x,tokenize:qx},zx={tokenize:Wx},Kx={tokenize:Gx},Ux={tokenize:Jx};function Hx(e){let t=-1;const n=[];for(;++t<e.length;){const i=e[t][1];if(n.push(e[t]),i.type==="labelImage"||i.type==="labelLink"||i.type==="labelEnd"){const r=i.type==="labelImage"?4:2;i.type="data",t+=r}}return e.length!==n.length&&Et(e,0,e.length,n),e}function $x(e,t){let n=e.length,i=0,r,s,o,l;for(;n--;)if(r=e[n][1],s){if(r.type==="link"||r.type==="labelLink"&&r._inactive)break;e[n][0]==="enter"&&r.type==="labelLink"&&(r._inactive=!0)}else if(o){if(e[n][0]==="enter"&&(r.type==="labelImage"||r.type==="labelLink")&&!r._balanced&&(s=n,r.type!=="labelLink")){i=2;break}}else r.type==="labelEnd"&&(o=n);const u={type:e[s][1].type==="labelLink"?"link":"image",start:{...e[s][1].start},end:{...e[e.length-1][1].end}},f={type:"label",start:{...e[s][1].start},end:{...e[o][1].end}},p={type:"labelText",start:{...e[s+i+2][1].end},end:{...e[o-2][1].start}};return l=[["enter",u,t],["enter",f,t]],l=Pt(l,e.slice(s+1,s+i+3)),l=Pt(l,[["enter",p,t]]),l=Pt(l,Fr(t.parser.constructs.insideSpan.null,e.slice(s+i+4,o-3),t)),l=Pt(l,[["exit",p,t],e[o-2],e[o-1],["exit",f,t]]),l=Pt(l,e.slice(o+1)),l=Pt(l,[["exit",u,t]]),Et(e,s,e.length,l),e}function qx(e,t,n){const i=this;let r=i.events.length,s,o;for(;r--;)if((i.events[r][1].type==="labelImage"||i.events[r][1].type==="labelLink")&&!i.events[r][1]._balanced){s=i.events[r][1];break}return l;function l(d){return s?s._inactive?h(d):(o=i.parser.defined.includes(zt(i.sliceSerialize({start:s.end,end:i.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(d),e.exit("labelMarker"),e.exit("labelEnd"),u):n(d)}function u(d){return d===40?e.attempt(zx,p,o?p:h)(d):d===91?e.attempt(Kx,p,o?f:h)(d):o?p(d):h(d)}function f(d){return e.attempt(Ux,p,h)(d)}function p(d){return t(d)}function h(d){return s._balanced=!0,n(d)}}function Wx(e,t,n){return i;function i(h){return e.enter("resource"),e.enter("resourceMarker"),e.consume(h),e.exit("resourceMarker"),r}function r(h){return Ke(h)?hi(e,s)(h):s(h)}function s(h){return h===41?p(h):lh(e,o,l,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(h)}function o(h){return Ke(h)?hi(e,u)(h):p(h)}function l(h){return n(h)}function u(h){return h===34||h===39||h===40?ch(e,f,n,"resourceTitle","resourceTitleMarker","resourceTitleString")(h):p(h)}function f(h){return Ke(h)?hi(e,p)(h):p(h)}function p(h){return h===41?(e.enter("resourceMarker"),e.consume(h),e.exit("resourceMarker"),e.exit("resource"),t):n(h)}}function Gx(e,t,n){const i=this;return r;function r(l){return uh.call(i,e,s,o,"reference","referenceMarker","referenceString")(l)}function s(l){return i.parser.defined.includes(zt(i.sliceSerialize(i.events[i.events.length-1][1]).slice(1,-1)))?t(l):n(l)}function o(l){return n(l)}}function Jx(e,t,n){return i;function i(s){return e.enter("reference"),e.enter("referenceMarker"),e.consume(s),e.exit("referenceMarker"),r}function r(s){return s===93?(e.enter("referenceMarker"),e.consume(s),e.exit("referenceMarker"),e.exit("reference"),t):n(s)}}const Yx={name:"labelStartImage",resolveAll:xs.resolveAll,tokenize:Qx};function Qx(e,t,n){const i=this;return r;function r(l){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(l),e.exit("labelImageMarker"),s}function s(l){return l===91?(e.enter("labelMarker"),e.consume(l),e.exit("labelMarker"),e.exit("labelImage"),o):n(l)}function o(l){return l===94&&"_hiddenFootnoteSupport"in i.parser.constructs?n(l):t(l)}}const Zx={name:"labelStartLink",resolveAll:xs.resolveAll,tokenize:Xx};function Xx(e,t,n){const i=this;return r;function r(o){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(o),e.exit("labelMarker"),e.exit("labelLink"),s}function s(o){return o===94&&"_hiddenFootnoteSupport"in i.parser.constructs?n(o):t(o)}}const aa={name:"lineEnding",tokenize:e0};function e0(e,t){return n;function n(i){return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),je(e,t,"linePrefix")}}const nr={name:"thematicBreak",tokenize:t0};function t0(e,t,n){let i=0,r;return s;function s(f){return e.enter("thematicBreak"),o(f)}function o(f){return r=f,l(f)}function l(f){return f===r?(e.enter("thematicBreakSequence"),u(f)):i>=3&&(f===null||_e(f))?(e.exit("thematicBreak"),t(f)):n(f)}function u(f){return f===r?(e.consume(f),i++,u):(e.exit("thematicBreakSequence"),Me(f)?je(e,l,"whitespace")(f):l(f))}}const pt={continuation:{tokenize:a0},exit:o0,name:"list",tokenize:r0},n0={partial:!0,tokenize:l0},i0={partial:!0,tokenize:s0};function r0(e,t,n){const i=this,r=i.events[i.events.length-1];let s=r&&r[1].type==="linePrefix"?r[2].sliceSerialize(r[1],!0).length:0,o=0;return l;function l(m){const b=i.containerState.type||(m===42||m===43||m===45?"listUnordered":"listOrdered");if(b==="listUnordered"?!i.containerState.marker||m===i.containerState.marker:qa(m)){if(i.containerState.type||(i.containerState.type=b,e.enter(b,{_container:!0})),b==="listUnordered")return e.enter("listItemPrefix"),m===42||m===45?e.check(nr,n,f)(m):f(m);if(!i.interrupt||m===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),u(m)}return n(m)}function u(m){return qa(m)&&++o<10?(e.consume(m),u):(!i.interrupt||o<2)&&(i.containerState.marker?m===i.containerState.marker:m===41||m===46)?(e.exit("listItemValue"),f(m)):n(m)}function f(m){return e.enter("listItemMarker"),e.consume(m),e.exit("listItemMarker"),i.containerState.marker=i.containerState.marker||m,e.check(ti,i.interrupt?n:p,e.attempt(n0,d,h))}function p(m){return i.containerState.initialBlankLine=!0,s++,d(m)}function h(m){return Me(m)?(e.enter("listItemPrefixWhitespace"),e.consume(m),e.exit("listItemPrefixWhitespace"),d):n(m)}function d(m){return i.containerState.size=s+i.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(m)}}function a0(e,t,n){const i=this;return i.containerState._closeFlow=void 0,e.check(ti,r,s);function r(l){return i.containerState.furtherBlankLines=i.containerState.furtherBlankLines||i.containerState.initialBlankLine,je(e,t,"listItemIndent",i.containerState.size+1)(l)}function s(l){return i.containerState.furtherBlankLines||!Me(l)?(i.containerState.furtherBlankLines=void 0,i.containerState.initialBlankLine=void 0,o(l)):(i.containerState.furtherBlankLines=void 0,i.containerState.initialBlankLine=void 0,e.attempt(i0,t,o)(l))}function o(l){return i.containerState._closeFlow=!0,i.interrupt=void 0,je(e,e.attempt(pt,t,n),"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(l)}}function s0(e,t,n){const i=this;return je(e,r,"listItemIndent",i.containerState.size+1);function r(s){const o=i.events[i.events.length-1];return o&&o[1].type==="listItemIndent"&&o[2].sliceSerialize(o[1],!0).length===i.containerState.size?t(s):n(s)}}function o0(e){e.exit(this.containerState.type)}function l0(e,t,n){const i=this;return je(e,r,"listItemPrefixWhitespace",i.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function r(s){const o=i.events[i.events.length-1];return!Me(s)&&o&&o[1].type==="listItemPrefixWhitespace"?t(s):n(s)}}const wl={name:"setextUnderline",resolveTo:u0,tokenize:c0};function u0(e,t){let n=e.length,i,r,s;for(;n--;)if(e[n][0]==="enter"){if(e[n][1].type==="content"){i=n;break}e[n][1].type==="paragraph"&&(r=n)}else e[n][1].type==="content"&&e.splice(n,1),!s&&e[n][1].type==="definition"&&(s=n);const o={type:"setextHeading",start:{...e[i][1].start},end:{...e[e.length-1][1].end}};return e[r][1].type="setextHeadingText",s?(e.splice(r,0,["enter",o,t]),e.splice(s+1,0,["exit",e[i][1],t]),e[i][1].end={...e[s][1].end}):e[i][1]=o,e.push(["exit",o,t]),e}function c0(e,t,n){const i=this;let r;return s;function s(f){let p=i.events.length,h;for(;p--;)if(i.events[p][1].type!=="lineEnding"&&i.events[p][1].type!=="linePrefix"&&i.events[p][1].type!=="content"){h=i.events[p][1].type==="paragraph";break}return!i.parser.lazy[i.now().line]&&(i.interrupt||h)?(e.enter("setextHeadingLine"),r=f,o(f)):n(f)}function o(f){return e.enter("setextHeadingLineSequence"),l(f)}function l(f){return f===r?(e.consume(f),l):(e.exit("setextHeadingLineSequence"),Me(f)?je(e,u,"lineSuffix")(f):u(f))}function u(f){return f===null||_e(f)?(e.exit("setextHeadingLine"),t(f)):n(f)}}const h0={tokenize:d0,partial:!0},El="https://github.com/micromark/micromark-extension-mdxjs-esm",f0=new Set(["ExportAllDeclaration","ExportDefaultDeclaration","ExportNamedDeclaration","ImportDeclaration"]);function p0(e){const t={tokenize:r,concrete:!0};if(!e||!e.acorn||!e.acorn.parse)throw new Error("Expected an `acorn` instance passed in as `options.acorn`");const n=e.acorn,i=Object.assign({ecmaVersion:2024,sourceType:"module"},e.acornOptions,{locations:!0});return{flow:{101:t,105:t}};function r(s,o,l){const u=this,f=u.parser.definedModuleSpecifiers||(u.parser.definedModuleSpecifiers=[]),p=this.events.length+1;let h="";return u.interrupt?l:d;function d(k){return u.now().column>1?l(k):(s.enter("mdxjsEsm"),s.enter("mdxjsEsmData"),s.consume(k),h+=String.fromCharCode(k),m)}function m(k){return lt(k)?(s.consume(k),h+=String.fromCharCode(k),m):(h==="import"||h==="export")&&k===32?(s.consume(k),b):l(k)}function b(k){return k===null||_e(k)?(s.exit("mdxjsEsmData"),v(k)):(s.consume(k),b)}function v(k){return k===null?E(k):_e(k)?s.check(h0,E,S)(k):(s.enter("mdxjsEsmData"),b(k))}function S(k){return s.enter("lineEnding"),s.consume(k),s.exit("lineEnding"),v}function E(k){const I=nh(u.events.slice(p),{acorn:n,acornOptions:i,tokenTypes:["mdxjsEsmData"],prefix:f.length>0?"var "+f.join(",")+`
36
+ `:""});if(I.error){if(k!==null&&I.swallow)return S(k);const y=new qe("Could not parse import/exports with acorn",{cause:I.error,place:{line:I.error.loc.line,column:I.error.loc.column+1,offset:I.error.pos},ruleId:"acorn",source:"micromark-extension-mdxjs-esm"});throw y.url=El+"#could-not-parse-importexports-with-acorn",y}f.length>0&&I.estree.body.shift();let N=-1;for(;++N<I.estree.body.length;){const y=I.estree.body[N];if(!f0.has(y.type)){const g=new qe("Unexpected `"+y.type+"` in code: only import/exports are supported",{place:tr(y),ruleId:"non-esm",source:"micromark-extension-mdxjs-esm"});throw g.url=El+"#unexpected-type-in-code-only-importexports-are-supported",g}if(y.type==="ImportDeclaration"&&!u.interrupt){let g=-1;for(;++g<y.specifiers.length;){const A=y.specifiers[g];f.push(A.local.name)}}}return Object.assign(s.exit("mdxjsEsm"),e.addResult?{estree:I.estree}:void 0),o(k)}}}function d0(e,t,n){return i;function i(r){return e.enter("lineEndingBlank"),e.consume(r),e.exit("lineEndingBlank"),e.attempt(ti,t,n)}}const Sl={}.hasOwnProperty;function vs(e){const t={};let n=-1;for(;++n<e.length;)g0(t,e[n]);return t}function g0(e,t){let n;for(n in t){const r=(Sl.call(e,n)?e[n]:void 0)||(e[n]={}),s=t[n];let o;if(s)for(o in s){Sl.call(r,o)||(r[o]=[]);const l=s[o];m0(r[o],Array.isArray(l)?l:l?[l]:[])}}}function m0(e,t){let n=-1;const i=[];for(;++n<t.length;)(t[n].add==="after"?e:i).push(t[n]);Et(e,0,0,i)}function x0(e){const t=Object.assign({acorn:rt.extend(Sm()),acornOptions:{ecmaVersion:2024,sourceType:"module"},addResult:!0},e);return vs([p0(t),Bm(t),Gm(t),Jm()])}const v0={};function b0(e){const t=this,n=e||v0,i=t.data(),r=i.micromarkExtensions||(i.micromarkExtensions=[]),s=i.fromMarkdownExtensions||(i.fromMarkdownExtensions=[]),o=i.toMarkdownExtensions||(i.toMarkdownExtensions=[]);r.push(x0(n)),s.push(Rg()),o.push(Lg(n))}const y0={};function w0(e,t){const n=y0,i=typeof n.includeImageAlt=="boolean"?n.includeImageAlt:!0,r=typeof n.includeHtml=="boolean"?n.includeHtml:!0;return hh(e,i,r)}function hh(e,t,n){if(E0(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 kl(e.children,t,n)}return Array.isArray(e)?kl(e,t,n):""}function kl(e,t,n){const i=[];let r=-1;for(;++r<e.length;)i[r]=hh(e[r],t,n);return i.join("")}function E0(e){return!!(e&&typeof e=="object")}function fh(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)}const S0={tokenize:k0};function k0(e){const t=e.attempt(this.parser.constructs.contentInitial,i,r);let n;return t;function i(l){if(l===null){e.consume(l);return}return e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),je(e,t,"linePrefix")}function r(l){return e.enter("paragraph"),s(l)}function s(l){const u=e.enter("chunkText",{contentType:"text",previous:n});return n&&(n.next=u),n=u,o(l)}function o(l){if(l===null){e.exit("chunkText"),e.exit("paragraph"),e.consume(l);return}return _e(l)?(e.consume(l),e.exit("chunkText"),s):(e.consume(l),o)}}const C0={tokenize:_0},Cl={tokenize:I0};function _0(e){const t=this,n=[];let i=0,r,s,o;return l;function l(I){if(i<n.length){const N=n[i];return t.containerState=N[1],e.attempt(N[0].continuation,u,f)(I)}return f(I)}function u(I){if(i++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,r&&k();const N=t.events.length;let y=N,g;for(;y--;)if(t.events[y][0]==="exit"&&t.events[y][1].type==="chunkFlow"){g=t.events[y][1].end;break}E(i);let A=N;for(;A<t.events.length;)t.events[A][1].end={...g},A++;return Et(t.events,y+1,0,t.events.slice(N)),t.events.length=A,f(I)}return l(I)}function f(I){if(i===n.length){if(!r)return d(I);if(r.currentConstruct&&r.currentConstruct.concrete)return b(I);t.interrupt=!!(r.currentConstruct&&!r._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(Cl,p,h)(I)}function p(I){return r&&k(),E(i),d(I)}function h(I){return t.parser.lazy[t.now().line]=i!==n.length,o=t.now().offset,b(I)}function d(I){return t.containerState={},e.attempt(Cl,m,b)(I)}function m(I){return i++,n.push([t.currentConstruct,t.containerState]),d(I)}function b(I){if(I===null){r&&k(),E(0),e.consume(I);return}return r=r||t.parser.flow(t.now()),e.enter("chunkFlow",{_tokenizer:r,contentType:"flow",previous:s}),v(I)}function v(I){if(I===null){S(e.exit("chunkFlow"),!0),E(0),e.consume(I);return}return _e(I)?(e.consume(I),S(e.exit("chunkFlow")),i=0,t.interrupt=void 0,l):(e.consume(I),v)}function S(I,N){const y=t.sliceStream(I);if(N&&y.push(null),I.previous=s,s&&(s.next=I),s=I,r.defineSkip(I.start),r.write(y),t.parser.lazy[I.start.line]){let g=r.events.length;for(;g--;)if(r.events[g][1].start.offset<o&&(!r.events[g][1].end||r.events[g][1].end.offset>o))return;const A=t.events.length;let M=A,F,R;for(;M--;)if(t.events[M][0]==="exit"&&t.events[M][1].type==="chunkFlow"){if(F){R=t.events[M][1].end;break}F=!0}for(E(i),g=A;g<t.events.length;)t.events[g][1].end={...R},g++;Et(t.events,M+1,0,t.events.slice(A)),t.events.length=g}}function E(I){let N=n.length;for(;N-- >I;){const y=n[N];t.containerState=y[1],y[0].exit.call(t,e)}n.length=I}function k(){r.write([null]),s=void 0,r=void 0,t.containerState._closeFlow=void 0}}function I0(e,t,n){return je(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}const A0={tokenize:T0};function T0(e){const t=this,n=e.attempt(ti,i,e.attempt(this.parser.constructs.flowInitial,r,je(e,e.attempt(this.parser.constructs.flow,r,e.attempt(xx,r)),"linePrefix")));return n;function i(s){if(s===null){e.consume(s);return}return e.enter("lineEndingBlank"),e.consume(s),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n}function r(s){if(s===null){e.consume(s);return}return e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),t.currentConstruct=void 0,n}}const N0={resolveAll:dh()},P0=ph("string"),O0=ph("text");function ph(e){return{resolveAll:dh(e==="text"?R0:void 0),tokenize:t};function t(n){const i=this,r=this.parser.constructs[e],s=n.attempt(r,o,l);return o;function o(p){return f(p)?s(p):l(p)}function l(p){if(p===null){n.consume(p);return}return n.enter("data"),n.consume(p),u}function u(p){return f(p)?(n.exit("data"),s(p)):(n.consume(p),u)}function f(p){if(p===null)return!0;const h=r[p];let d=-1;if(h)for(;++d<h.length;){const m=h[d];if(!m.previous||m.previous.call(i,i.previous))return!0}return!1}}}function dh(e){return t;function t(n,i){let r=-1,s;for(;++r<=n.length;)s===void 0?n[r]&&n[r][1].type==="data"&&(s=r,r++):(!n[r]||n[r][1].type!=="data")&&(r!==s+2&&(n[s][1].end=n[r-1][1].end,n.splice(s+2,r-s-2),r=s+2),s=void 0);return e?e(n,i):n}}function R0(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 i=e[n-1][1],r=t.sliceStream(i);let s=r.length,o=-1,l=0,u;for(;s--;){const f=r[s];if(typeof f=="string"){for(o=f.length;f.charCodeAt(o-1)===32;)l++,o--;if(o)break;o=-1}else if(f===-2)u=!0,l++;else if(f!==-1){s++;break}}if(t._contentTypeTextTrailing&&n===e.length&&(l=0),l){const f={type:n===e.length||u||l<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:s?o:i.start._bufferIndex+o,_index:i.start._index+s,line:i.end.line,column:i.end.column-l,offset:i.end.offset-l},end:{...i.end}};i.end={...f.start},i.start.offset===i.end.offset?Object.assign(i,f):(e.splice(n,0,["enter",f,t],["exit",f,t]),n+=2)}n++}return e}const L0={42:pt,43:pt,45:pt,48:pt,49:pt,50:pt,51:pt,52:pt,53:pt,54:pt,55:pt,56:pt,57:pt,62:rh},M0={91:Ex},F0={[-2]:ra,[-1]:ra,32:ra},D0={35:Ax,42:nr,45:[wl,nr],60:Ox,61:wl,95:nr,96:bl,126:bl},j0={38:sh,92:ah},V0={[-5]:aa,[-4]:aa,[-3]:aa,33:Yx,38:sh,42:Wa,60:[Zm,Vx],91:Zx,92:[_x,ah],93:xs,95:Wa,96:hx},B0={null:[Wa,N0]},z0={null:[42,95]},K0={null:[]},U0=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:z0,contentInitial:M0,disable:K0,document:L0,flow:D0,flowInitial:F0,insideSpan:B0,string:j0,text:V0},Symbol.toStringTag,{value:"Module"}));function H0(e,t,n){let i={_bufferIndex:-1,_index:0,line:n&&n.line||1,column:n&&n.column||1,offset:n&&n.offset||0};const r={},s=[];let o=[],l=[];const u={attempt:A(y),check:A(g),consume:k,enter:I,exit:N,interrupt:A(g,{interrupt:!0})},f={code:null,containerState:{},defineSkip:v,events:[],now:b,parser:e,previous:null,sliceSerialize:d,sliceStream:m,write:h};let p=t.tokenize.call(f,u);return t.resolveAll&&s.push(t),f;function h(j){return o=Pt(o,j),S(),o[o.length-1]!==null?[]:(M(t,0),f.events=Fr(s,f.events,f),f.events)}function d(j,B){return q0(m(j),B)}function m(j){return $0(o,j)}function b(){const{_bufferIndex:j,_index:B,line:D,column:se,offset:ue}=i;return{_bufferIndex:j,_index:B,line:D,column:se,offset:ue}}function v(j){r[j.line]=j.column,R()}function S(){let j;for(;i._index<o.length;){const B=o[i._index];if(typeof B=="string")for(j=i._index,i._bufferIndex<0&&(i._bufferIndex=0);i._index===j&&i._bufferIndex<B.length;)E(B.charCodeAt(i._bufferIndex));else E(B)}}function E(j){p=p(j)}function k(j){_e(j)?(i.line++,i.column=1,i.offset+=j===-3?2:1,R()):j!==-1&&(i.column++,i.offset++),i._bufferIndex<0?i._index++:(i._bufferIndex++,i._bufferIndex===o[i._index].length&&(i._bufferIndex=-1,i._index++)),f.previous=j}function I(j,B){const D=B||{};return D.type=j,D.start=b(),f.events.push(["enter",D,f]),l.push(D),D}function N(j){const B=l.pop();return B.end=b(),f.events.push(["exit",B,f]),B}function y(j,B){M(j,B.from)}function g(j,B){B.restore()}function A(j,B){return D;function D(se,ue,te){let ae,ge,ve,L;return Array.isArray(se)?ne(se):"tokenize"in se?ne([se]):G(se);function G(Z){return H;function H(K){const J=K!==null&&Z[K],ie=K!==null&&Z.null,X=[...Array.isArray(J)?J:J?[J]:[],...Array.isArray(ie)?ie:ie?[ie]:[]];return ne(X)(K)}}function ne(Z){return ae=Z,ge=0,Z.length===0?te:O(Z[ge])}function O(Z){return H;function H(K){return L=F(),ve=Z,Z.partial||(f.currentConstruct=Z),Z.name&&f.parser.constructs.disable.null.includes(Z.name)?W():Z.tokenize.call(B?Object.assign(Object.create(f),B):f,u,he,W)(K)}}function he(Z){return j(ve,L),ue}function W(Z){return L.restore(),++ge<ae.length?O(ae[ge]):te}}}function M(j,B){j.resolveAll&&!s.includes(j)&&s.push(j),j.resolve&&Et(f.events,B,f.events.length-B,j.resolve(f.events.slice(B),f)),j.resolveTo&&(f.events=j.resolveTo(f.events,f))}function F(){const j=b(),B=f.previous,D=f.currentConstruct,se=f.events.length,ue=Array.from(l);return{from:se,restore:te};function te(){i=j,f.previous=B,f.currentConstruct=D,f.events.length=se,l=ue,R()}}function R(){i.line in r&&i.column<2&&(i.column=r[i.line],i.offset+=r[i.line]-1)}}function $0(e,t){const n=t.start._index,i=t.start._bufferIndex,r=t.end._index,s=t.end._bufferIndex;let o;if(n===r)o=[e[n].slice(i,s)];else{if(o=e.slice(n,r),i>-1){const l=o[0];typeof l=="string"?o[0]=l.slice(i):o.shift()}s>0&&o.push(e[r].slice(0,s))}return o}function q0(e,t){let n=-1;const i=[];let r;for(;++n<e.length;){const s=e[n];let o;if(typeof s=="string")o=s;else switch(s){case-5:{o="\r";break}case-4:{o=`
37
+ `;break}case-3:{o=`\r
38
+ `;break}case-2:{o=t?" ":" ";break}case-1:{if(!t&&r)continue;o=" ";break}default:o=String.fromCharCode(s)}r=s===-2,i.push(o)}return i.join("")}function W0(e){const i={constructs:vs([U0,...(e||{}).extensions||[]]),content:r(S0),defined:[],document:r(C0),flow:r(A0),lazy:{},string:r(P0),text:r(O0)};return i;function r(s){return o;function o(l){return H0(i,s,l)}}}function G0(e){for(;!oh(e););return e}const _l=/[\0\t\n\r]/g;function J0(){let e=1,t="",n=!0,i;return r;function r(s,o,l){const u=[];let f,p,h,d,m;for(s=t+(typeof s=="string"?s.toString():new TextDecoder(o||void 0).decode(s)),h=0,t="",n&&(s.charCodeAt(0)===65279&&h++,n=void 0);h<s.length;){if(_l.lastIndex=h,f=_l.exec(s),d=f&&f.index!==void 0?f.index:s.length,m=s.charCodeAt(d),!f){t=s.slice(h);break}if(m===10&&h===d&&i)u.push(-3),i=void 0;else switch(i&&(u.push(-5),i=void 0),h<d&&(u.push(s.slice(h,d)),e+=d-h),m){case 0:{u.push(65533),e++;break}case 9:{for(p=Math.ceil(e/4)*4,u.push(-2);e++<p;)u.push(-1);break}case 10:{u.push(-4),e=1;break}default:i=!0,e=1}h=d+1}return l&&(i&&u.push(-5),t&&u.push(t),u.push(null)),u}}const Y0=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function gh(e){return e.replace(Y0,Q0)}function Q0(e,t,n){if(t)return t;if(n.charCodeAt(0)===35){const r=n.charCodeAt(1),s=r===120||r===88;return fh(n.slice(s?2:1),s?16:10)}return mi(n)||e}const mh={}.hasOwnProperty;function Z0(e,t,n){return t&&typeof t=="object"&&(n=t,t=void 0),X0(n)(G0(W0(n).document().write(J0()(e,t,!0))))}function X0(e){const t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:s(Ie),autolinkProtocol:F,autolinkEmail:F,atxHeading:s(de),blockQuote:s(ie),characterEscape:F,characterReference:F,codeFenced:s(X),codeFencedFenceInfo:o,codeFencedFenceMeta:o,codeIndented:s(X,o),codeText:s($,o),codeTextData:F,data:F,codeFlowValue:F,definition:s(Y),definitionDestinationString:o,definitionLabelString:o,definitionTitleString:o,emphasis:s(le),hardBreakEscape:s(Se),hardBreakTrailing:s(Se),htmlFlow:s(ye,o),htmlFlowData:F,htmlText:s(ye,o),htmlTextData:F,image:s(ke),label:o,link:s(Ie),listItem:s(Pe),listItemValue:d,listOrdered:s(be,h),listUnordered:s(be),paragraph:s(Be),reference:O,referenceString:o,resourceDestinationString:o,resourceTitleString:o,setextHeading:s(de),strong:s($e),thematicBreak:s(nt)},exit:{atxHeading:u(),atxHeadingSequence:y,autolink:u(),autolinkEmail:J,autolinkProtocol:K,blockQuote:u(),characterEscapeValue:R,characterReferenceMarkerHexadecimal:W,characterReferenceMarkerNumeric:W,characterReferenceValue:Z,characterReference:H,codeFenced:u(S),codeFencedFence:v,codeFencedFenceInfo:m,codeFencedFenceMeta:b,codeFlowValue:R,codeIndented:u(E),codeText:u(ue),codeTextData:R,data:R,definition:u(),definitionDestinationString:N,definitionLabelString:k,definitionTitleString:I,emphasis:u(),hardBreakEscape:u(B),hardBreakTrailing:u(B),htmlFlow:u(D),htmlFlowData:R,htmlText:u(se),htmlTextData:R,image:u(ae),label:ve,labelText:ge,lineEnding:j,link:u(te),listItem:u(),listOrdered:u(),listUnordered:u(),paragraph:u(),referenceString:he,resourceDestinationString:L,resourceTitleString:G,resource:ne,setextHeading:u(M),setextHeadingLineSequence:A,setextHeadingText:g,strong:u(),thematicBreak:u()}};xh(t,(e||{}).mdastExtensions||[]);const n={};return i;function i(Q){let re={type:"root",children:[]};const T={stack:[re],tokenStack:[],config:t,enter:l,exit:f,buffer:o,resume:p,data:n},Ae=[];let Le=-1;for(;++Le<Q.length;)if(Q[Le][1].type==="listOrdered"||Q[Le][1].type==="listUnordered")if(Q[Le][0]==="enter")Ae.push(Le);else{const at=Ae.pop();Le=r(Q,at,Le)}for(Le=-1;++Le<Q.length;){const at=t[Q[Le][0]];mh.call(at,Q[Le][1].type)&&at[Q[Le][1].type].call(Object.assign({sliceSerialize:Q[Le][2].sliceSerialize},T),Q[Le][1])}if(T.tokenStack.length>0){const at=T.tokenStack[T.tokenStack.length-1];(at[1]||Il).call(T,void 0,at[0])}for(re.position={start:hn(Q.length>0?Q[0][1].start:{line:1,column:1,offset:0}),end:hn(Q.length>0?Q[Q.length-2][1].end:{line:1,column:1,offset:0})},Le=-1;++Le<t.transforms.length;)re=t.transforms[Le](re)||re;return re}function r(Q,re,T){let Ae=re-1,Le=-1,at=!1,kt,me,Zt,En;for(;++Ae<=T;){const ut=Q[Ae];switch(ut[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{ut[0]==="enter"?Le++:Le--,En=void 0;break}case"lineEndingBlank":{ut[0]==="enter"&&(kt&&!En&&!Le&&!Zt&&(Zt=Ae),En=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:En=void 0}if(!Le&&ut[0]==="enter"&&ut[1].type==="listItemPrefix"||Le===-1&&ut[0]==="exit"&&(ut[1].type==="listUnordered"||ut[1].type==="listOrdered")){if(kt){let Ct=Ae;for(me=void 0;Ct--;){const bt=Q[Ct];if(bt[1].type==="lineEnding"||bt[1].type==="lineEndingBlank"){if(bt[0]==="exit")continue;me&&(Q[me][1].type="lineEndingBlank",at=!0),bt[1].type="lineEnding",me=Ct}else if(!(bt[1].type==="linePrefix"||bt[1].type==="blockQuotePrefix"||bt[1].type==="blockQuotePrefixWhitespace"||bt[1].type==="blockQuoteMarker"||bt[1].type==="listItemIndent"))break}Zt&&(!me||Zt<me)&&(kt._spread=!0),kt.end=Object.assign({},me?Q[me][1].start:ut[1].end),Q.splice(me||Ae,0,["exit",kt,ut[2]]),Ae++,T++}if(ut[1].type==="listItemPrefix"){const Ct={type:"listItem",_spread:!1,start:Object.assign({},ut[1].start),end:void 0};kt=Ct,Q.splice(Ae,0,["enter",Ct,ut[2]]),Ae++,T++,Zt=void 0,En=!0}}}return Q[re][1]._spread=at,T}function s(Q,re){return T;function T(Ae){l.call(this,Q(Ae),Ae),re&&re.call(this,Ae)}}function o(){this.stack.push({type:"fragment",children:[]})}function l(Q,re,T){this.stack[this.stack.length-1].children.push(Q),this.stack.push(Q),this.tokenStack.push([re,T||void 0]),Q.position={start:hn(re.start),end:void 0}}function u(Q){return re;function re(T){Q&&Q.call(this,T),f.call(this,T)}}function f(Q,re){const T=this.stack.pop(),Ae=this.tokenStack.pop();if(Ae)Ae[0].type!==Q.type&&(re?re.call(this,Q,Ae[0]):(Ae[1]||Il).call(this,Q,Ae[0]));else throw new Error("Cannot close `"+Q.type+"` ("+en({start:Q.start,end:Q.end})+"): it’s not open");T.position.end=hn(Q.end)}function p(){return w0(this.stack.pop())}function h(){this.data.expectingFirstListItemValue=!0}function d(Q){if(this.data.expectingFirstListItemValue){const re=this.stack[this.stack.length-2];re.start=Number.parseInt(this.sliceSerialize(Q),10),this.data.expectingFirstListItemValue=void 0}}function m(){const Q=this.resume(),re=this.stack[this.stack.length-1];re.lang=Q}function b(){const Q=this.resume(),re=this.stack[this.stack.length-1];re.meta=Q}function v(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function S(){const Q=this.resume(),re=this.stack[this.stack.length-1];re.value=Q.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function E(){const Q=this.resume(),re=this.stack[this.stack.length-1];re.value=Q.replace(/(\r?\n|\r)$/g,"")}function k(Q){const re=this.resume(),T=this.stack[this.stack.length-1];T.label=re,T.identifier=zt(this.sliceSerialize(Q)).toLowerCase()}function I(){const Q=this.resume(),re=this.stack[this.stack.length-1];re.title=Q}function N(){const Q=this.resume(),re=this.stack[this.stack.length-1];re.url=Q}function y(Q){const re=this.stack[this.stack.length-1];if(!re.depth){const T=this.sliceSerialize(Q).length;re.depth=T}}function g(){this.data.setextHeadingSlurpLineEnding=!0}function A(Q){const re=this.stack[this.stack.length-1];re.depth=this.sliceSerialize(Q).codePointAt(0)===61?1:2}function M(){this.data.setextHeadingSlurpLineEnding=void 0}function F(Q){const T=this.stack[this.stack.length-1].children;let Ae=T[T.length-1];(!Ae||Ae.type!=="text")&&(Ae=Te(),Ae.position={start:hn(Q.start),end:void 0},T.push(Ae)),this.stack.push(Ae)}function R(Q){const re=this.stack.pop();re.value+=this.sliceSerialize(Q),re.position.end=hn(Q.end)}function j(Q){const re=this.stack[this.stack.length-1];if(this.data.atHardBreak){const T=re.children[re.children.length-1];T.position.end=hn(Q.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(re.type)&&(F.call(this,Q),R.call(this,Q))}function B(){this.data.atHardBreak=!0}function D(){const Q=this.resume(),re=this.stack[this.stack.length-1];re.value=Q}function se(){const Q=this.resume(),re=this.stack[this.stack.length-1];re.value=Q}function ue(){const Q=this.resume(),re=this.stack[this.stack.length-1];re.value=Q}function te(){const Q=this.stack[this.stack.length-1];if(this.data.inReference){const re=this.data.referenceType||"shortcut";Q.type+="Reference",Q.referenceType=re,delete Q.url,delete Q.title}else delete Q.identifier,delete Q.label;this.data.referenceType=void 0}function ae(){const Q=this.stack[this.stack.length-1];if(this.data.inReference){const re=this.data.referenceType||"shortcut";Q.type+="Reference",Q.referenceType=re,delete Q.url,delete Q.title}else delete Q.identifier,delete Q.label;this.data.referenceType=void 0}function ge(Q){const re=this.sliceSerialize(Q),T=this.stack[this.stack.length-2];T.label=gh(re),T.identifier=zt(re).toLowerCase()}function ve(){const Q=this.stack[this.stack.length-1],re=this.resume(),T=this.stack[this.stack.length-1];if(this.data.inReference=!0,T.type==="link"){const Ae=Q.children;T.children=Ae}else T.alt=re}function L(){const Q=this.resume(),re=this.stack[this.stack.length-1];re.url=Q}function G(){const Q=this.resume(),re=this.stack[this.stack.length-1];re.title=Q}function ne(){this.data.inReference=void 0}function O(){this.data.referenceType="collapsed"}function he(Q){const re=this.resume(),T=this.stack[this.stack.length-1];T.label=re,T.identifier=zt(this.sliceSerialize(Q)).toLowerCase(),this.data.referenceType="full"}function W(Q){this.data.characterReferenceType=Q.type}function Z(Q){const re=this.sliceSerialize(Q),T=this.data.characterReferenceType;let Ae;T?(Ae=fh(re,T==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):Ae=mi(re);const Le=this.stack[this.stack.length-1];Le.value+=Ae}function H(Q){const re=this.stack.pop();re.position.end=hn(Q.end)}function K(Q){R.call(this,Q);const re=this.stack[this.stack.length-1];re.url=this.sliceSerialize(Q)}function J(Q){R.call(this,Q);const re=this.stack[this.stack.length-1];re.url="mailto:"+this.sliceSerialize(Q)}function ie(){return{type:"blockquote",children:[]}}function X(){return{type:"code",lang:null,meta:null,value:""}}function $(){return{type:"inlineCode",value:""}}function Y(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function le(){return{type:"emphasis",children:[]}}function de(){return{type:"heading",depth:0,children:[]}}function Se(){return{type:"break"}}function ye(){return{type:"html",value:""}}function ke(){return{type:"image",title:null,url:"",alt:null}}function Ie(){return{type:"link",title:null,url:"",children:[]}}function be(Q){return{type:"list",ordered:Q.type==="listOrdered",start:null,spread:Q._spread,children:[]}}function Pe(Q){return{type:"listItem",spread:Q._spread,checked:null,children:[]}}function Be(){return{type:"paragraph",children:[]}}function $e(){return{type:"strong",children:[]}}function Te(){return{type:"text",value:""}}function nt(){return{type:"thematicBreak"}}}function hn(e){return{line:e.line,column:e.column,offset:e.offset}}function xh(e,t){let n=-1;for(;++n<t.length;){const i=t[n];Array.isArray(i)?xh(e,i):ev(e,i)}}function ev(e,t){let n;for(n in t)if(mh.call(t,n))switch(n){case"canContainEols":{const i=t[n];i&&e[n].push(...i);break}case"transforms":{const i=t[n];i&&e[n].push(...i);break}case"enter":case"exit":{const i=t[n];i&&Object.assign(e[n],i);break}}}function Il(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+en({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+en({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+en({start:t.start,end:t.end})+") is still open")}function tv(e){const t=this;t.parser=n;function n(i){return Z0(i,{...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})}}const Al={}.hasOwnProperty;function nv(e,t){const n=t||{};function i(r,...s){let o=i.invalid;const l=i.handlers;if(r&&Al.call(r,e)){const u=String(r[e]);o=Al.call(l,u)?l[u]:i.unknown}if(o)return o.call(this,r,...s)}return i.handlers=n.handlers||{},i.invalid=n.invalid,i.unknown=n.unknown,i}const iv={}.hasOwnProperty;function vh(e,t){let n=-1,i;if(t.extensions)for(;++n<t.extensions.length;)vh(e,t.extensions[n]);for(i in t)if(iv.call(t,i))switch(i){case"extensions":break;case"unsafe":{Tl(e[i],t[i]);break}case"join":{Tl(e[i],t[i]);break}case"handlers":{rv(e[i],t[i]);break}default:e.options[i]=t[i]}return e}function Tl(e,t){t&&e.push(...t)}function rv(e,t){t&&Object.assign(e,t)}function av(e,t,n,i){const r=n.enter("blockquote"),s=n.createTracker(i);s.move("> "),s.shift(2);const o=n.indentLines(n.containerFlow(e,s.current()),sv);return r(),o}function sv(e,t,n){return">"+(n?"":" ")+e}function bh(e,t){return Nl(e,t.inConstruct,!0)&&!Nl(e,t.notInConstruct,!1)}function Nl(e,t,n){if(typeof t=="string"&&(t=[t]),!t||t.length===0)return n;let i=-1;for(;++i<t.length;)if(e.includes(t[i]))return!0;return!1}function Pl(e,t,n,i){let r=-1;for(;++r<n.unsafe.length;)if(n.unsafe[r].character===`
39
+ `&&bh(n.stack,n.unsafe[r]))return/[ \t]/.test(i.before)?"":" ";return`\\
40
+ `}function ov(e,t){const n=String(e);let i=n.indexOf(t),r=i,s=0,o=0;if(typeof t!="string")throw new TypeError("Expected substring");for(;i!==-1;)i===r?++s>o&&(o=s):s=1,r=i+t.length,i=n.indexOf(t,r);return o}function Ga(e,t){return!!(t.options.fences===!1&&e.value&&!e.lang&&/[^ \r\n]/.test(e.value)&&!/^[\t ]*(?:[\r\n]|$)|(?:^|[\r\n])[\t ]*$/.test(e.value))}function lv(e){const t=e.options.fence||"`";if(t!=="`"&&t!=="~")throw new Error("Cannot serialize code with `"+t+"` for `options.fence`, expected `` ` `` or `~`");return t}function uv(e,t,n,i){const r=lv(n),s=e.value||"",o=r==="`"?"GraveAccent":"Tilde";if(Ga(e,n)){const h=n.enter("codeIndented"),d=n.indentLines(s,cv);return h(),d}const l=n.createTracker(i),u=r.repeat(Math.max(ov(s,r)+1,3)),f=n.enter("codeFenced");let p=l.move(u);if(e.lang){const h=n.enter(`codeFencedLang${o}`);p+=l.move(n.safe(e.lang,{before:p,after:" ",encode:["`"],...l.current()})),h()}if(e.lang&&e.meta){const h=n.enter(`codeFencedMeta${o}`);p+=l.move(" "),p+=l.move(n.safe(e.meta,{before:p,after:`
41
+ `,encode:["`"],...l.current()})),h()}return p+=l.move(`
42
+ `),s&&(p+=l.move(s+`
43
+ `)),p+=l.move(u),f(),p}function cv(e,t,n){return(n?"":" ")+e}function bs(e){const t=e.options.quote||'"';if(t!=='"'&&t!=="'")throw new Error("Cannot serialize title with `"+t+"` for `options.quote`, expected `\"`, or `'`");return t}function hv(e,t,n,i){const r=bs(n),s=r==='"'?"Quote":"Apostrophe",o=n.enter("definition");let l=n.enter("label");const u=n.createTracker(i);let f=u.move("[");return f+=u.move(n.safe(n.associationId(e),{before:f,after:"]",...u.current()})),f+=u.move("]: "),l(),!e.url||/[\0- \u007F]/.test(e.url)?(l=n.enter("destinationLiteral"),f+=u.move("<"),f+=u.move(n.safe(e.url,{before:f,after:">",...u.current()})),f+=u.move(">")):(l=n.enter("destinationRaw"),f+=u.move(n.safe(e.url,{before:f,after:e.title?" ":`
44
+ `,...u.current()}))),l(),e.title&&(l=n.enter(`title${s}`),f+=u.move(" "+r),f+=u.move(n.safe(e.title,{before:f,after:r,...u.current()})),f+=u.move(r),l()),o(),f}function fv(e){const t=e.options.emphasis||"*";if(t!=="*"&&t!=="_")throw new Error("Cannot serialize emphasis with `"+t+"` for `options.emphasis`, expected `*`, or `_`");return t}function xn(e){return"&#x"+e.toString(16).toUpperCase()+";"}function mr(e,t,n){const i=qn(e),r=qn(t);return i===void 0?r===void 0?n==="_"?{inside:!0,outside:!0}:{inside:!1,outside:!1}:r===1?{inside:!0,outside:!0}:{inside:!1,outside:!0}:i===1?r===void 0?{inside:!1,outside:!1}:r===1?{inside:!0,outside:!0}:{inside:!1,outside:!1}:r===void 0?{inside:!1,outside:!1}:r===1?{inside:!0,outside:!1}:{inside:!1,outside:!1}}yh.peek=pv;function yh(e,t,n,i){const r=fv(n),s=n.enter("emphasis"),o=n.createTracker(i),l=o.move(r);let u=o.move(n.containerPhrasing(e,{after:r,before:l,...o.current()}));const f=u.charCodeAt(0),p=mr(i.before.charCodeAt(i.before.length-1),f,r);p.inside&&(u=xn(f)+u.slice(1));const h=u.charCodeAt(u.length-1),d=mr(i.after.charCodeAt(0),h,r);d.inside&&(u=u.slice(0,-1)+xn(h));const m=o.move(r);return s(),n.attentionEncodeSurroundingInfo={after:d.outside,before:p.outside},l+u+m}function pv(e,t,n){return n.options.emphasis||"*"}const Dr=(function(e){if(e==null)return xv;if(typeof e=="function")return jr(e);if(typeof e=="object")return Array.isArray(e)?dv(e):gv(e);if(typeof e=="string")return mv(e);throw new Error("Expected function, string, or object as test")});function dv(e){const t=[];let n=-1;for(;++n<e.length;)t[n]=Dr(e[n]);return jr(i);function i(...r){let s=-1;for(;++s<t.length;)if(t[s].apply(this,r))return!0;return!1}}function gv(e){const t=e;return jr(n);function n(i){const r=i;let s;for(s in e)if(r[s]!==t[s])return!1;return!0}}function mv(e){return jr(t);function t(n){return n&&n.type===e}}function jr(e){return t;function t(n,i,r){return!!(vv(n)&&e.call(this,n,typeof i=="number"?i:void 0,r||void 0))}}function xv(){return!0}function vv(e){return e!==null&&typeof e=="object"&&"type"in e}const wh=[],bv=!0,Ja=!1,yv="skip";function Eh(e,t,n,i){let r;typeof t=="function"&&typeof n!="function"?(i=n,n=t):r=t;const s=Dr(r),o=i?-1:1;l(e,void 0,[])();function l(u,f,p){const h=u&&typeof u=="object"?u:{};if(typeof h.type=="string"){const m=typeof h.tagName=="string"?h.tagName:typeof h.name=="string"?h.name:void 0;Object.defineProperty(d,"name",{value:"node ("+(u.type+(m?"<"+m+">":""))+")"})}return d;function d(){let m=wh,b,v,S;if((!t||s(u,f,p[p.length-1]||void 0))&&(m=wv(n(u,p)),m[0]===Ja))return m;if("children"in u&&u.children){const E=u;if(E.children&&m[0]!==yv)for(v=(i?E.children.length:-1)+o,S=p.concat(E);v>-1&&v<E.children.length;){const k=E.children[v];if(b=l(k,v,S)(),b[0]===Ja)return b;v=typeof b[1]=="number"?b[1]:v+o}}return m}}}function wv(e){return Array.isArray(e)?e:typeof e=="number"?[bv,e]:e==null?wh:[e]}function Ev(e,t,n,i){let r,s,o;typeof t=="function"&&typeof n!="function"?(s=void 0,o=t,r=n):(s=t,o=n,r=i),Eh(e,s,l,r);function l(u,f){const p=f[f.length-1],h=p?p.children.indexOf(u):void 0;return o(u,h,p)}}const Sv={};function Sh(e,t){const n=Sv,i=typeof n.includeImageAlt=="boolean"?n.includeImageAlt:!0,r=typeof n.includeHtml=="boolean"?n.includeHtml:!0;return kh(e,i,r)}function kh(e,t,n){if(kv(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 Ol(e.children,t,n)}return Array.isArray(e)?Ol(e,t,n):""}function Ol(e,t,n){const i=[];let r=-1;for(;++r<e.length;)i[r]=kh(e[r],t,n);return i.join("")}function kv(e){return!!(e&&typeof e=="object")}function Ch(e,t){let n=!1;return Ev(e,function(i){if("value"in i&&/\r?\n|\r/.test(i.value)||i.type==="break")return n=!0,Ja}),!!((!e.depth||e.depth<3)&&Sh(e)&&(t.options.setext||n))}function Cv(e,t,n,i){const r=Math.max(Math.min(6,e.depth||1),1),s=n.createTracker(i);if(Ch(e,n)){const p=n.enter("headingSetext"),h=n.enter("phrasing"),d=n.containerPhrasing(e,{...s.current(),before:`
97
45
  `,after:`
98
- `});return p(),h(),g+`
99
- `+(r===1?"=":"-").repeat(g.length-(Math.max(g.lastIndexOf("\r"),g.lastIndexOf(`
100
- `))+1))}const s="#".repeat(r),l=i.enter("headingAtx"),u=i.enter("phrasing");a.move(s+" ");let c=i.containerPhrasing(e,{before:"# ",after:`
101
- `,...a.current()});return/^[\t ]/.test(c)&&(c=Ki(c.charCodeAt(0))+c.slice(1)),c=c?s+" "+c:s,i.options.closeAtx&&(c+=" "+s),u(),l(),c}wg.peek=OE;function wg(e){return e.value||""}function OE(){return"<"}kg.peek=PE;function kg(e,t,i,n){const r=Wl(i),a=r==='"'?"Quote":"Apostrophe",s=i.enter("image");let l=i.enter("label");const u=i.createTracker(n);let c=u.move("![");return c+=u.move(i.safe(e.alt,{before:c,after:"]",...u.current()})),c+=u.move("]("),l(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(l=i.enter("destinationLiteral"),c+=u.move("<"),c+=u.move(i.safe(e.url,{before:c,after:">",...u.current()})),c+=u.move(">")):(l=i.enter("destinationRaw"),c+=u.move(i.safe(e.url,{before:c,after:e.title?" ":")",...u.current()}))),l(),e.title&&(l=i.enter(`title${a}`),c+=u.move(" "+r),c+=u.move(i.safe(e.title,{before:c,after:r,...u.current()})),c+=u.move(r),l()),c+=u.move(")"),s(),c}function PE(){return"!"}Sg.peek=RE;function Sg(e,t,i,n){const r=e.referenceType,a=i.enter("imageReference");let s=i.enter("label");const l=i.createTracker(n);let u=l.move("![");const c=i.safe(e.alt,{before:u,after:"]",...l.current()});u+=l.move(c+"]["),s();const h=i.stack;i.stack=[],s=i.enter("reference");const p=i.safe(i.associationId(e),{before:u,after:"]",...l.current()});return s(),i.stack=h,a(),r==="full"||!c||c!==p?u+=l.move(p+"]"):r==="shortcut"?u=u.slice(0,-1):u+=l.move("]"),u}function RE(){return"!"}Eg.peek=ME;function Eg(e,t,i){let n=e.value||"",r="`",a=-1;for(;new RegExp("(^|[^`])"+r+"([^`]|$)").test(n);)r+="`";for(/[^ \r\n]/.test(n)&&(/^[ \r\n]/.test(n)&&/[ \r\n]$/.test(n)||/^`|`$/.test(n))&&(n=" "+n+" ");++a<i.unsafe.length;){const s=i.unsafe[a],l=i.compilePattern(s);let u;if(s.atBreak)for(;u=l.exec(n);){let c=u.index;n.charCodeAt(c)===10&&n.charCodeAt(c-1)===13&&c--,n=n.slice(0,c)+" "+n.slice(u.index+1)}}return r+n+r}function ME(){return"`"}function Cg(e,t){const i=xg(e);return!!(!t.options.resourceLink&&e.url&&!e.title&&e.children&&e.children.length===1&&e.children[0].type==="text"&&(i===e.url||"mailto:"+i===e.url)&&/^[a-z][a-z+.-]+:/i.test(e.url)&&!/[\0- <>\u007F]/.test(e.url))}Ig.peek=LE;function Ig(e,t,i,n){const r=Wl(i),a=r==='"'?"Quote":"Apostrophe",s=i.createTracker(n);let l,u;if(Cg(e,i)){const h=i.stack;i.stack=[],l=i.enter("autolink");let p=s.move("<");return p+=s.move(i.containerPhrasing(e,{before:p,after:">",...s.current()})),p+=s.move(">"),l(),i.stack=h,p}l=i.enter("link"),u=i.enter("label");let c=s.move("[");return c+=s.move(i.containerPhrasing(e,{before:c,after:"](",...s.current()})),c+=s.move("]("),u(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(u=i.enter("destinationLiteral"),c+=s.move("<"),c+=s.move(i.safe(e.url,{before:c,after:">",...s.current()})),c+=s.move(">")):(u=i.enter("destinationRaw"),c+=s.move(i.safe(e.url,{before:c,after:e.title?" ":")",...s.current()}))),u(),e.title&&(u=i.enter(`title${a}`),c+=s.move(" "+r),c+=s.move(i.safe(e.title,{before:c,after:r,...s.current()})),c+=s.move(r),u()),c+=s.move(")"),l(),c}function LE(e,t,i){return Cg(e,i)?"<":"["}_g.peek=DE;function _g(e,t,i,n){const r=e.referenceType,a=i.enter("linkReference");let s=i.enter("label");const l=i.createTracker(n);let u=l.move("[");const c=i.containerPhrasing(e,{before:u,after:"]",...l.current()});u+=l.move(c+"]["),s();const h=i.stack;i.stack=[],s=i.enter("reference");const p=i.safe(i.associationId(e),{before:u,after:"]",...l.current()});return s(),i.stack=h,a(),r==="full"||!c||c!==p?u+=l.move(p+"]"):r==="shortcut"?u=u.slice(0,-1):u+=l.move("]"),u}function DE(){return"["}function Ul(e){const t=e.options.bullet||"*";if(t!=="*"&&t!=="+"&&t!=="-")throw new Error("Cannot serialize items with `"+t+"` for `options.bullet`, expected `*`, `+`, or `-`");return t}function FE(e){const t=Ul(e),i=e.options.bulletOther;if(!i)return t==="*"?"-":"*";if(i!=="*"&&i!=="+"&&i!=="-")throw new Error("Cannot serialize items with `"+i+"` for `options.bulletOther`, expected `*`, `+`, or `-`");if(i===t)throw new Error("Expected `bullet` (`"+t+"`) and `bulletOther` (`"+i+"`) to be different");return i}function jE(e){const t=e.options.bulletOrdered||".";if(t!=="."&&t!==")")throw new Error("Cannot serialize items with `"+t+"` for `options.bulletOrdered`, expected `.` or `)`");return t}function Ag(e){const t=e.options.rule||"*";if(t!=="*"&&t!=="-"&&t!=="_")throw new Error("Cannot serialize rules with `"+t+"` for `options.rule`, expected `*`, `-`, or `_`");return t}function zE(e,t,i,n){const r=i.enter("list"),a=i.bulletCurrent;let s=e.ordered?jE(i):Ul(i);const l=e.ordered?s==="."?")":".":FE(i);let u=t&&i.bulletLastUsed?s===i.bulletLastUsed:!1;if(!e.ordered){const h=e.children?e.children[0]:void 0;if((s==="*"||s==="-")&&h&&(!h.children||!h.children[0])&&i.stack[i.stack.length-1]==="list"&&i.stack[i.stack.length-2]==="listItem"&&i.stack[i.stack.length-3]==="list"&&i.stack[i.stack.length-4]==="listItem"&&i.indexStack[i.indexStack.length-1]===0&&i.indexStack[i.indexStack.length-2]===0&&i.indexStack[i.indexStack.length-3]===0&&(u=!0),Ag(i)===s&&h){let p=-1;for(;++p<e.children.length;){const g=e.children[p];if(g&&g.type==="listItem"&&g.children&&g.children[0]&&g.children[0].type==="thematicBreak"){u=!0;break}}}}u&&(s=l),i.bulletCurrent=s;const c=i.containerFlow(e,n);return i.bulletLastUsed=s,i.bulletCurrent=a,r(),c}function VE(e){const t=e.options.listItemIndent||"one";if(t!=="tab"&&t!=="one"&&t!=="mixed")throw new Error("Cannot serialize items with `"+t+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return t}function BE(e,t,i,n){const r=VE(i);let a=i.bulletCurrent||Ul(i);t&&t.type==="list"&&t.ordered&&(a=(typeof t.start=="number"&&t.start>-1?t.start:1)+(i.options.incrementListMarker===!1?0:t.children.indexOf(e))+a);let s=a.length+1;(r==="tab"||r==="mixed"&&(t&&t.type==="list"&&t.spread||e.spread))&&(s=Math.ceil(s/4)*4);const l=i.createTracker(n);l.move(a+" ".repeat(s-a.length)),l.shift(s);const u=i.enter("listItem"),c=i.indentLines(i.containerFlow(e,l.current()),h);return u(),c;function h(p,g,m){return g?(m?"":" ".repeat(s))+p:(m?a:a+" ".repeat(s-a.length))+p}}function HE(e,t,i,n){const r=i.enter("paragraph"),a=i.enter("phrasing"),s=i.containerPhrasing(e,n);return a(),r(),s}const KE=ns(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function WE(e,t,i,n){return(e.children.some(function(s){return KE(s)})?i.containerPhrasing:i.containerFlow).call(i,e,n)}function UE(e){const t=e.options.strong||"*";if(t!=="*"&&t!=="_")throw new Error("Cannot serialize strong with `"+t+"` for `options.strong`, expected `*`, or `_`");return t}Ng.peek=qE;function Ng(e,t,i,n){const r=UE(i),a=i.enter("strong"),s=i.createTracker(n),l=s.move(r+r);let u=s.move(i.containerPhrasing(e,{after:r,before:l,...s.current()}));const c=u.charCodeAt(0),h=La(n.before.charCodeAt(n.before.length-1),c,r);h.inside&&(u=Ki(c)+u.slice(1));const p=u.charCodeAt(u.length-1),g=La(n.after.charCodeAt(0),p,r);g.inside&&(u=u.slice(0,-1)+Ki(p));const m=s.move(r+r);return a(),i.attentionEncodeSurroundingInfo={after:g.outside,before:h.outside},l+u+m}function qE(e,t,i){return i.options.strong||"*"}function GE(e,t,i,n){return i.safe(e.value,n)}function $E(e){const t=e.options.ruleRepetition||3;if(t<3)throw new Error("Cannot serialize rules with repetition `"+t+"` for `options.ruleRepetition`, expected `3` or more");return t}function JE(e,t,i){const n=(Ag(i)+(i.options.ruleSpaces?" ":"")).repeat($E(i));return i.options.ruleSpaces?n.slice(0,-1):n}const ql={blockquote:cE,break:oh,code:fE,definition:mE,emphasis:gg,hardBreak:oh,heading:TE,html:wg,image:kg,imageReference:Sg,inlineCode:Eg,link:Ig,linkReference:_g,list:zE,listItem:BE,paragraph:HE,root:WE,strong:Ng,text:GE,thematicBreak:JE},YE=[QE];function QE(e,t,i,n){if(t.type==="code"&&Eo(t,n)&&(e.type==="list"||e.type===t.type&&Eo(e,n)))return!1;if("spread"in i&&typeof i.spread=="boolean")return e.type==="paragraph"&&(e.type===t.type||t.type==="definition"||t.type==="heading"&&yg(t,n))?void 0:i.spread?1:0}const tn=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"],ZE=[{character:" ",after:"[\\r\\n]",inConstruct:"phrasing"},{character:" ",before:"[\\r\\n]",inConstruct:"phrasing"},{character:" ",inConstruct:["codeFencedLangGraveAccent","codeFencedLangTilde"]},{character:"\r",inConstruct:["codeFencedLangGraveAccent","codeFencedLangTilde","codeFencedMetaGraveAccent","codeFencedMetaTilde","destinationLiteral","headingAtx"]},{character:`
102
- `,inConstruct:["codeFencedLangGraveAccent","codeFencedLangTilde","codeFencedMetaGraveAccent","codeFencedMetaTilde","destinationLiteral","headingAtx"]},{character:" ",after:"[\\r\\n]",inConstruct:"phrasing"},{character:" ",before:"[\\r\\n]",inConstruct:"phrasing"},{character:" ",inConstruct:["codeFencedLangGraveAccent","codeFencedLangTilde"]},{character:"!",after:"\\[",inConstruct:"phrasing",notInConstruct:tn},{character:'"',inConstruct:"titleQuote"},{atBreak:!0,character:"#"},{character:"#",inConstruct:"headingAtx",after:`(?:[\r
103
- ]|$)`},{character:"&",after:"[#A-Za-z]",inConstruct:"phrasing"},{character:"'",inConstruct:"titleApostrophe"},{character:"(",inConstruct:"destinationRaw"},{before:"\\]",character:"(",inConstruct:"phrasing",notInConstruct:tn},{atBreak:!0,before:"\\d+",character:")"},{character:")",inConstruct:"destinationRaw"},{atBreak:!0,character:"*",after:`(?:[ \r
104
- *])`},{character:"*",inConstruct:"phrasing",notInConstruct:tn},{atBreak:!0,character:"+",after:`(?:[ \r
46
+ `});return h(),p(),d+`
47
+ `+(r===1?"=":"-").repeat(d.length-(Math.max(d.lastIndexOf("\r"),d.lastIndexOf(`
48
+ `))+1))}const o="#".repeat(r),l=n.enter("headingAtx"),u=n.enter("phrasing");s.move(o+" ");let f=n.containerPhrasing(e,{before:"# ",after:`
49
+ `,...s.current()});return/^[\t ]/.test(f)&&(f=xn(f.charCodeAt(0))+f.slice(1)),f=f?o+" "+f:o,n.options.closeAtx&&(f+=" "+o),u(),l(),f}_h.peek=_v;function _h(e){return e.value||""}function _v(){return"<"}Ih.peek=Iv;function Ih(e,t,n,i){const r=bs(n),s=r==='"'?"Quote":"Apostrophe",o=n.enter("image");let l=n.enter("label");const u=n.createTracker(i);let f=u.move("![");return f+=u.move(n.safe(e.alt,{before:f,after:"]",...u.current()})),f+=u.move("]("),l(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(l=n.enter("destinationLiteral"),f+=u.move("<"),f+=u.move(n.safe(e.url,{before:f,after:">",...u.current()})),f+=u.move(">")):(l=n.enter("destinationRaw"),f+=u.move(n.safe(e.url,{before:f,after:e.title?" ":")",...u.current()}))),l(),e.title&&(l=n.enter(`title${s}`),f+=u.move(" "+r),f+=u.move(n.safe(e.title,{before:f,after:r,...u.current()})),f+=u.move(r),l()),f+=u.move(")"),o(),f}function Iv(){return"!"}Ah.peek=Av;function Ah(e,t,n,i){const r=e.referenceType,s=n.enter("imageReference");let o=n.enter("label");const l=n.createTracker(i);let u=l.move("![");const f=n.safe(e.alt,{before:u,after:"]",...l.current()});u+=l.move(f+"]["),o();const p=n.stack;n.stack=[],o=n.enter("reference");const h=n.safe(n.associationId(e),{before:u,after:"]",...l.current()});return o(),n.stack=p,s(),r==="full"||!f||f!==h?u+=l.move(h+"]"):r==="shortcut"?u=u.slice(0,-1):u+=l.move("]"),u}function Av(){return"!"}Th.peek=Tv;function Th(e,t,n){let i=e.value||"",r="`",s=-1;for(;new RegExp("(^|[^`])"+r+"([^`]|$)").test(i);)r+="`";for(/[^ \r\n]/.test(i)&&(/^[ \r\n]/.test(i)&&/[ \r\n]$/.test(i)||/^`|`$/.test(i))&&(i=" "+i+" ");++s<n.unsafe.length;){const o=n.unsafe[s],l=n.compilePattern(o);let u;if(o.atBreak)for(;u=l.exec(i);){let f=u.index;i.charCodeAt(f)===10&&i.charCodeAt(f-1)===13&&f--,i=i.slice(0,f)+" "+i.slice(u.index+1)}}return r+i+r}function Tv(){return"`"}function Nh(e,t){const n=Sh(e);return!!(!t.options.resourceLink&&e.url&&!e.title&&e.children&&e.children.length===1&&e.children[0].type==="text"&&(n===e.url||"mailto:"+n===e.url)&&/^[a-z][a-z+.-]+:/i.test(e.url)&&!/[\0- <>\u007F]/.test(e.url))}Ph.peek=Nv;function Ph(e,t,n,i){const r=bs(n),s=r==='"'?"Quote":"Apostrophe",o=n.createTracker(i);let l,u;if(Nh(e,n)){const p=n.stack;n.stack=[],l=n.enter("autolink");let h=o.move("<");return h+=o.move(n.containerPhrasing(e,{before:h,after:">",...o.current()})),h+=o.move(">"),l(),n.stack=p,h}l=n.enter("link"),u=n.enter("label");let f=o.move("[");return f+=o.move(n.containerPhrasing(e,{before:f,after:"](",...o.current()})),f+=o.move("]("),u(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(u=n.enter("destinationLiteral"),f+=o.move("<"),f+=o.move(n.safe(e.url,{before:f,after:">",...o.current()})),f+=o.move(">")):(u=n.enter("destinationRaw"),f+=o.move(n.safe(e.url,{before:f,after:e.title?" ":")",...o.current()}))),u(),e.title&&(u=n.enter(`title${s}`),f+=o.move(" "+r),f+=o.move(n.safe(e.title,{before:f,after:r,...o.current()})),f+=o.move(r),u()),f+=o.move(")"),l(),f}function Nv(e,t,n){return Nh(e,n)?"<":"["}Oh.peek=Pv;function Oh(e,t,n,i){const r=e.referenceType,s=n.enter("linkReference");let o=n.enter("label");const l=n.createTracker(i);let u=l.move("[");const f=n.containerPhrasing(e,{before:u,after:"]",...l.current()});u+=l.move(f+"]["),o();const p=n.stack;n.stack=[],o=n.enter("reference");const h=n.safe(n.associationId(e),{before:u,after:"]",...l.current()});return o(),n.stack=p,s(),r==="full"||!f||f!==h?u+=l.move(h+"]"):r==="shortcut"?u=u.slice(0,-1):u+=l.move("]"),u}function Pv(){return"["}function ys(e){const t=e.options.bullet||"*";if(t!=="*"&&t!=="+"&&t!=="-")throw new Error("Cannot serialize items with `"+t+"` for `options.bullet`, expected `*`, `+`, or `-`");return t}function Ov(e){const t=ys(e),n=e.options.bulletOther;if(!n)return t==="*"?"-":"*";if(n!=="*"&&n!=="+"&&n!=="-")throw new Error("Cannot serialize items with `"+n+"` for `options.bulletOther`, expected `*`, `+`, or `-`");if(n===t)throw new Error("Expected `bullet` (`"+t+"`) and `bulletOther` (`"+n+"`) to be different");return n}function Rv(e){const t=e.options.bulletOrdered||".";if(t!=="."&&t!==")")throw new Error("Cannot serialize items with `"+t+"` for `options.bulletOrdered`, expected `.` or `)`");return t}function Rh(e){const t=e.options.rule||"*";if(t!=="*"&&t!=="-"&&t!=="_")throw new Error("Cannot serialize rules with `"+t+"` for `options.rule`, expected `*`, `-`, or `_`");return t}function Lv(e,t,n,i){const r=n.enter("list"),s=n.bulletCurrent;let o=e.ordered?Rv(n):ys(n);const l=e.ordered?o==="."?")":".":Ov(n);let u=t&&n.bulletLastUsed?o===n.bulletLastUsed:!1;if(!e.ordered){const p=e.children?e.children[0]:void 0;if((o==="*"||o==="-")&&p&&(!p.children||!p.children[0])&&n.stack[n.stack.length-1]==="list"&&n.stack[n.stack.length-2]==="listItem"&&n.stack[n.stack.length-3]==="list"&&n.stack[n.stack.length-4]==="listItem"&&n.indexStack[n.indexStack.length-1]===0&&n.indexStack[n.indexStack.length-2]===0&&n.indexStack[n.indexStack.length-3]===0&&(u=!0),Rh(n)===o&&p){let h=-1;for(;++h<e.children.length;){const d=e.children[h];if(d&&d.type==="listItem"&&d.children&&d.children[0]&&d.children[0].type==="thematicBreak"){u=!0;break}}}}u&&(o=l),n.bulletCurrent=o;const f=n.containerFlow(e,i);return n.bulletLastUsed=o,n.bulletCurrent=s,r(),f}function Mv(e){const t=e.options.listItemIndent||"one";if(t!=="tab"&&t!=="one"&&t!=="mixed")throw new Error("Cannot serialize items with `"+t+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return t}function Fv(e,t,n,i){const r=Mv(n);let s=n.bulletCurrent||ys(n);t&&t.type==="list"&&t.ordered&&(s=(typeof t.start=="number"&&t.start>-1?t.start:1)+(n.options.incrementListMarker===!1?0:t.children.indexOf(e))+s);let o=s.length+1;(r==="tab"||r==="mixed"&&(t&&t.type==="list"&&t.spread||e.spread))&&(o=Math.ceil(o/4)*4);const l=n.createTracker(i);l.move(s+" ".repeat(o-s.length)),l.shift(o);const u=n.enter("listItem"),f=n.indentLines(n.containerFlow(e,l.current()),p);return u(),f;function p(h,d,m){return d?(m?"":" ".repeat(o))+h:(m?s:s+" ".repeat(o-s.length))+h}}function Dv(e,t,n,i){const r=n.enter("paragraph"),s=n.enter("phrasing"),o=n.containerPhrasing(e,i);return s(),r(),o}const jv=Dr(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function Vv(e,t,n,i){return(e.children.some(function(o){return jv(o)})?n.containerPhrasing:n.containerFlow).call(n,e,i)}function Bv(e){const t=e.options.strong||"*";if(t!=="*"&&t!=="_")throw new Error("Cannot serialize strong with `"+t+"` for `options.strong`, expected `*`, or `_`");return t}Lh.peek=zv;function Lh(e,t,n,i){const r=Bv(n),s=n.enter("strong"),o=n.createTracker(i),l=o.move(r+r);let u=o.move(n.containerPhrasing(e,{after:r,before:l,...o.current()}));const f=u.charCodeAt(0),p=mr(i.before.charCodeAt(i.before.length-1),f,r);p.inside&&(u=xn(f)+u.slice(1));const h=u.charCodeAt(u.length-1),d=mr(i.after.charCodeAt(0),h,r);d.inside&&(u=u.slice(0,-1)+xn(h));const m=o.move(r+r);return s(),n.attentionEncodeSurroundingInfo={after:d.outside,before:p.outside},l+u+m}function zv(e,t,n){return n.options.strong||"*"}function Kv(e,t,n,i){return n.safe(e.value,i)}function Uv(e){const t=e.options.ruleRepetition||3;if(t<3)throw new Error("Cannot serialize rules with repetition `"+t+"` for `options.ruleRepetition`, expected `3` or more");return t}function Hv(e,t,n){const i=(Rh(n)+(n.options.ruleSpaces?" ":"")).repeat(Uv(n));return n.options.ruleSpaces?i.slice(0,-1):i}const ws={blockquote:av,break:Pl,code:uv,definition:hv,emphasis:yh,hardBreak:Pl,heading:Cv,html:_h,image:Ih,imageReference:Ah,inlineCode:Th,link:Ph,linkReference:Oh,list:Lv,listItem:Fv,paragraph:Dv,root:Vv,strong:Lh,text:Kv,thematicBreak:Hv},$v=[qv];function qv(e,t,n,i){if(t.type==="code"&&Ga(t,i)&&(e.type==="list"||e.type===t.type&&Ga(e,i)))return!1;if("spread"in n&&typeof n.spread=="boolean")return e.type==="paragraph"&&(e.type===t.type||t.type==="definition"||t.type==="heading"&&Ch(t,i))?void 0:n.spread?1:0}const Sn=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"],Wv=[{character:" ",after:"[\\r\\n]",inConstruct:"phrasing"},{character:" ",before:"[\\r\\n]",inConstruct:"phrasing"},{character:" ",inConstruct:["codeFencedLangGraveAccent","codeFencedLangTilde"]},{character:"\r",inConstruct:["codeFencedLangGraveAccent","codeFencedLangTilde","codeFencedMetaGraveAccent","codeFencedMetaTilde","destinationLiteral","headingAtx"]},{character:`
50
+ `,inConstruct:["codeFencedLangGraveAccent","codeFencedLangTilde","codeFencedMetaGraveAccent","codeFencedMetaTilde","destinationLiteral","headingAtx"]},{character:" ",after:"[\\r\\n]",inConstruct:"phrasing"},{character:" ",before:"[\\r\\n]",inConstruct:"phrasing"},{character:" ",inConstruct:["codeFencedLangGraveAccent","codeFencedLangTilde"]},{character:"!",after:"\\[",inConstruct:"phrasing",notInConstruct:Sn},{character:'"',inConstruct:"titleQuote"},{atBreak:!0,character:"#"},{character:"#",inConstruct:"headingAtx",after:`(?:[\r
51
+ ]|$)`},{character:"&",after:"[#A-Za-z]",inConstruct:"phrasing"},{character:"'",inConstruct:"titleApostrophe"},{character:"(",inConstruct:"destinationRaw"},{before:"\\]",character:"(",inConstruct:"phrasing",notInConstruct:Sn},{atBreak:!0,before:"\\d+",character:")"},{character:")",inConstruct:"destinationRaw"},{atBreak:!0,character:"*",after:`(?:[ \r
52
+ *])`},{character:"*",inConstruct:"phrasing",notInConstruct:Sn},{atBreak:!0,character:"+",after:`(?:[ \r
105
53
  ])`},{atBreak:!0,character:"-",after:`(?:[ \r
106
54
  -])`},{atBreak:!0,before:"\\d+",character:".",after:`(?:[ \r
107
- ]|$)`},{atBreak:!0,character:"<",after:"[!/?A-Za-z]"},{character:"<",after:"[!/?A-Za-z]",inConstruct:"phrasing",notInConstruct:tn},{character:"<",inConstruct:"destinationLiteral"},{atBreak:!0,character:"="},{atBreak:!0,character:">"},{character:">",inConstruct:"destinationLiteral"},{atBreak:!0,character:"["},{character:"[",inConstruct:"phrasing",notInConstruct:tn},{character:"[",inConstruct:["label","reference"]},{character:"\\",after:"[\\r\\n]",inConstruct:"phrasing"},{character:"]",inConstruct:["label","reference"]},{atBreak:!0,character:"_"},{character:"_",inConstruct:"phrasing",notInConstruct:tn},{atBreak:!0,character:"`"},{character:"`",inConstruct:["codeFencedLangGraveAccent","codeFencedMetaGraveAccent"]},{character:"`",inConstruct:"phrasing",notInConstruct:tn},{atBreak:!0,character:"~"}];function XE(e){return e.label||!e.identifier?e.label||"":cg(e.identifier)}function eC(e){if(!e._compiled){const t=(e.atBreak?"[\\r\\n][\\t ]*":"")+(e.before?"(?:"+e.before+")":"");e._compiled=new RegExp((t?"("+t+")":"")+(/[|\\{}()[\]^$+*?.-]/.test(e.character)?"\\":"")+e.character+(e.after?"(?:"+e.after+")":""),"g")}return e._compiled}function tC(e,t,i){const n=t.indexStack,r=e.children||[],a=[];let s=-1,l=i.before,u;n.push(-1);let c=t.createTracker(i);for(;++s<r.length;){const h=r[s];let p;if(n[n.length-1]=s,s+1<r.length){let E=t.handle.handlers[r[s+1].type];E&&E.peek&&(E=E.peek),p=E?E(r[s+1],e,t,{before:"",after:"",...c.current()}).charAt(0):""}else p=i.after;a.length>0&&(l==="\r"||l===`
108
- `)&&h.type==="html"&&(a[a.length-1]=a[a.length-1].replace(/(\r?\n|\r)$/," "),l=" ",c=t.createTracker(i),c.move(a.join("")));let g=t.handle(h,e,t,{...c.current(),after:p,before:l});u&&u===g.slice(0,1)&&(g=Ki(u.charCodeAt(0))+g.slice(1));const m=t.attentionEncodeSurroundingInfo;t.attentionEncodeSurroundingInfo=void 0,u=void 0,m&&(a.length>0&&m.before&&l===a[a.length-1].slice(-1)&&(a[a.length-1]=a[a.length-1].slice(0,-1)+Ki(l.charCodeAt(0))),m.after&&(u=p)),c.move(g),a.push(g),l=g.slice(-1)}return n.pop(),a.join("")}function iC(e,t,i){const n=t.indexStack,r=e.children||[],a=t.createTracker(i),s=[];let l=-1;for(n.push(-1);++l<r.length;){const u=r[l];n[n.length-1]=l,s.push(a.move(t.handle(u,e,t,{before:`
55
+ ]|$)`},{atBreak:!0,character:"<",after:"[!/?A-Za-z]"},{character:"<",after:"[!/?A-Za-z]",inConstruct:"phrasing",notInConstruct:Sn},{character:"<",inConstruct:"destinationLiteral"},{atBreak:!0,character:"="},{atBreak:!0,character:">"},{character:">",inConstruct:"destinationLiteral"},{atBreak:!0,character:"["},{character:"[",inConstruct:"phrasing",notInConstruct:Sn},{character:"[",inConstruct:["label","reference"]},{character:"\\",after:"[\\r\\n]",inConstruct:"phrasing"},{character:"]",inConstruct:["label","reference"]},{atBreak:!0,character:"_"},{character:"_",inConstruct:"phrasing",notInConstruct:Sn},{atBreak:!0,character:"`"},{character:"`",inConstruct:["codeFencedLangGraveAccent","codeFencedMetaGraveAccent"]},{character:"`",inConstruct:"phrasing",notInConstruct:Sn},{atBreak:!0,character:"~"}];function Gv(e){return e.label||!e.identifier?e.label||"":gh(e.identifier)}function Jv(e){if(!e._compiled){const t=(e.atBreak?"[\\r\\n][\\t ]*":"")+(e.before?"(?:"+e.before+")":"");e._compiled=new RegExp((t?"("+t+")":"")+(/[|\\{}()[\]^$+*?.-]/.test(e.character)?"\\":"")+e.character+(e.after?"(?:"+e.after+")":""),"g")}return e._compiled}function Yv(e,t,n){const i=t.indexStack,r=e.children||[],s=[];let o=-1,l=n.before,u;i.push(-1);let f=t.createTracker(n);for(;++o<r.length;){const p=r[o];let h;if(i[i.length-1]=o,o+1<r.length){let b=t.handle.handlers[r[o+1].type];b&&b.peek&&(b=b.peek),h=b?b(r[o+1],e,t,{before:"",after:"",...f.current()}).charAt(0):""}else h=n.after;s.length>0&&(l==="\r"||l===`
56
+ `)&&p.type==="html"&&(s[s.length-1]=s[s.length-1].replace(/(\r?\n|\r)$/," "),l=" ",f=t.createTracker(n),f.move(s.join("")));let d=t.handle(p,e,t,{...f.current(),after:h,before:l});u&&u===d.slice(0,1)&&(d=xn(u.charCodeAt(0))+d.slice(1));const m=t.attentionEncodeSurroundingInfo;t.attentionEncodeSurroundingInfo=void 0,u=void 0,m&&(s.length>0&&m.before&&l===s[s.length-1].slice(-1)&&(s[s.length-1]=s[s.length-1].slice(0,-1)+xn(l.charCodeAt(0))),m.after&&(u=h)),f.move(d),s.push(d),l=d.slice(-1)}return i.pop(),s.join("")}function Qv(e,t,n){const i=t.indexStack,r=e.children||[],s=t.createTracker(n),o=[];let l=-1;for(i.push(-1);++l<r.length;){const u=r[l];i[i.length-1]=l,o.push(s.move(t.handle(u,e,t,{before:`
109
57
  `,after:`
110
- `,...a.current()}))),u.type!=="list"&&(t.bulletLastUsed=void 0),l<r.length-1&&s.push(a.move(nC(u,r[l+1],e,t)))}return n.pop(),s.join("")}function nC(e,t,i,n){let r=n.join.length;for(;r--;){const a=n.join[r](e,t,i,n);if(a===!0||a===1)break;if(typeof a=="number")return`
111
- `.repeat(1+a);if(a===!1)return`
58
+ `,...s.current()}))),u.type!=="list"&&(t.bulletLastUsed=void 0),l<r.length-1&&o.push(s.move(Zv(u,r[l+1],e,t)))}return i.pop(),o.join("")}function Zv(e,t,n,i){let r=i.join.length;for(;r--;){const s=i.join[r](e,t,n,i);if(s===!0||s===1)break;if(typeof s=="number")return`
59
+ `.repeat(1+s);if(s===!1)return`
112
60
 
113
61
  <!---->
114
62
 
115
63
  `}return`
116
64
 
117
- `}const rC=/\r?\n|\r/g;function aC(e,t){const i=[];let n=0,r=0,a;for(;a=rC.exec(e);)s(e.slice(n,a.index)),i.push(a[0]),n=a.index+a[0].length,r++;return s(e.slice(n)),i.join("");function s(l){i.push(t(l,r,!l))}}function sC(e,t,i){const n=(i.before||"")+(t||"")+(i.after||""),r=[],a=[],s={};let l=-1;for(;++l<e.unsafe.length;){const h=e.unsafe[l];if(!fg(e.stack,h))continue;const p=e.compilePattern(h);let g;for(;g=p.exec(n);){const m="before"in h||!!h.atBreak,E="after"in h,v=g.index+(m?g[1].length:0);r.includes(v)?(s[v].before&&!m&&(s[v].before=!1),s[v].after&&!E&&(s[v].after=!1)):(r.push(v),s[v]={before:m,after:E})}}r.sort(oC);let u=i.before?i.before.length:0;const c=n.length-(i.after?i.after.length:0);for(l=-1;++l<r.length;){const h=r[l];h<u||h>=c||h+1<c&&r[l+1]===h+1&&s[h].after&&!s[h+1].before&&!s[h+1].after||r[l-1]===h-1&&s[h].before&&!s[h-1].before&&!s[h-1].after||(u!==h&&a.push(uh(n.slice(u,h),"\\")),u=h,/[!-/:-@[-`{-~]/.test(n.charAt(h))&&(!i.encode||!i.encode.includes(n.charAt(h)))?a.push("\\"):(a.push(Ki(n.charCodeAt(h))),u++))}return a.push(uh(n.slice(u,c),i.after)),a.join("")}function oC(e,t){return e-t}function uh(e,t){const i=/\\(?=[!-/:-@[-`{-~])/g,n=[],r=[],a=e+t;let s=-1,l=0,u;for(;u=i.exec(a);)n.push(u.index);for(;++s<n.length;)l!==n[s]&&r.push(e.slice(l,n[s])),r.push("\\"),l=n[s];return r.push(e.slice(l)),r.join("")}function lC(e){const t=e||{},i=t.now||{};let n=t.lineShift||0,r=i.line||1,a=i.column||1;return{move:u,current:s,shift:l};function s(){return{now:{line:r,column:a},lineShift:n}}function l(c){n+=c}function u(c){const h=c||"",p=h.split(/\r?\n|\r/g),g=p[p.length-1];return r+=p.length-1,a=p.length===1?a+g.length:1+g.length+n,h}}function uC(e,t){const i=t||{},n={associationId:XE,containerPhrasing:pC,containerFlow:fC,createTracker:lC,compilePattern:eC,enter:a,handlers:{...ql},handle:void 0,indentLines:aC,indexStack:[],join:[...YE],options:{},safe:gC,stack:[],unsafe:[...ZE]};pg(n,i),n.options.tightDefinitions&&n.join.push(dC),n.handle=oE("type",{invalid:cC,unknown:hC,handlers:n.handlers});let r=n.handle(e,void 0,n,{before:`
65
+ `}const Xv=/\r?\n|\r/g;function eb(e,t){const n=[];let i=0,r=0,s;for(;s=Xv.exec(e);)o(e.slice(i,s.index)),n.push(s[0]),i=s.index+s[0].length,r++;return o(e.slice(i)),n.join("");function o(l){n.push(t(l,r,!l))}}function tb(e,t,n){const i=(n.before||"")+(t||"")+(n.after||""),r=[],s=[],o={};let l=-1;for(;++l<e.unsafe.length;){const p=e.unsafe[l];if(!bh(e.stack,p))continue;const h=e.compilePattern(p);let d;for(;d=h.exec(i);){const m="before"in p||!!p.atBreak,b="after"in p,v=d.index+(m?d[1].length:0);r.includes(v)?(o[v].before&&!m&&(o[v].before=!1),o[v].after&&!b&&(o[v].after=!1)):(r.push(v),o[v]={before:m,after:b})}}r.sort(nb);let u=n.before?n.before.length:0;const f=i.length-(n.after?n.after.length:0);for(l=-1;++l<r.length;){const p=r[l];p<u||p>=f||p+1<f&&r[l+1]===p+1&&o[p].after&&!o[p+1].before&&!o[p+1].after||r[l-1]===p-1&&o[p].before&&!o[p-1].before&&!o[p-1].after||(u!==p&&s.push(Rl(i.slice(u,p),"\\")),u=p,/[!-/:-@[-`{-~]/.test(i.charAt(p))&&(!n.encode||!n.encode.includes(i.charAt(p)))?s.push("\\"):(s.push(xn(i.charCodeAt(p))),u++))}return s.push(Rl(i.slice(u,f),n.after)),s.join("")}function nb(e,t){return e-t}function Rl(e,t){const n=/\\(?=[!-/:-@[-`{-~])/g,i=[],r=[],s=e+t;let o=-1,l=0,u;for(;u=n.exec(s);)i.push(u.index);for(;++o<i.length;)l!==i[o]&&r.push(e.slice(l,i[o])),r.push("\\"),l=i[o];return r.push(e.slice(l)),r.join("")}function ib(e){const t=e||{},n=t.now||{};let i=t.lineShift||0,r=n.line||1,s=n.column||1;return{move:u,current:o,shift:l};function o(){return{now:{line:r,column:s},lineShift:i}}function l(f){i+=f}function u(f){const p=f||"",h=p.split(/\r?\n|\r/g),d=h[h.length-1];return r+=h.length-1,s=h.length===1?s+d.length:1+d.length+i,p}}function rb(e,t){const n=t||{},i={associationId:Gv,containerPhrasing:lb,containerFlow:ub,createTracker:ib,compilePattern:Jv,enter:s,handlers:{...ws},handle:void 0,indentLines:eb,indexStack:[],join:[...$v],options:{},safe:cb,stack:[],unsafe:[...Wv]};vh(i,n),i.options.tightDefinitions&&i.join.push(ob),i.handle=nv("type",{invalid:ab,unknown:sb,handlers:i.handlers});let r=i.handle(e,void 0,i,{before:`
118
66
  `,after:`
119
67
  `,now:{line:1,column:1},lineShift:0});return r&&r.charCodeAt(r.length-1)!==10&&r.charCodeAt(r.length-1)!==13&&(r+=`
120
- `),r;function a(s){return n.stack.push(s),l;function l(){n.stack.pop()}}}function cC(e){throw new Error("Cannot handle value `"+e+"`, expected node")}function hC(e){const t=e;throw new Error("Cannot handle unknown node `"+t.type+"`")}function dC(e,t){if(e.type==="definition"&&e.type===t.type)return 0}function pC(e,t){return tC(e,this,t)}function fC(e,t){return iC(e,this,t)}function gC(e,t){return sC(this,e,t)}function mC(e){const t=this;t.compiler=i;function i(n){return uC(n,{...t.data("settings"),...e,extensions:t.data("toMarkdownExtensions")||[]})}}function ch(e){if(e)throw e}var Ds,hh;function vC(){if(hh)return Ds;hh=1;var e=Object.prototype.hasOwnProperty,t=Object.prototype.toString,i=Object.defineProperty,n=Object.getOwnPropertyDescriptor,r=function(c){return typeof Array.isArray=="function"?Array.isArray(c):t.call(c)==="[object Array]"},a=function(c){if(!c||t.call(c)!=="[object Object]")return!1;var h=e.call(c,"constructor"),p=c.constructor&&c.constructor.prototype&&e.call(c.constructor.prototype,"isPrototypeOf");if(c.constructor&&!h&&!p)return!1;var g;for(g in c);return typeof g>"u"||e.call(c,g)},s=function(c,h){i&&h.name==="__proto__"?i(c,h.name,{enumerable:!0,configurable:!0,value:h.newValue,writable:!0}):c[h.name]=h.newValue},l=function(c,h){if(h==="__proto__")if(e.call(c,h)){if(n)return n(c,h).value}else return;return c[h]};return Ds=function u(){var c,h,p,g,m,E,v=arguments[0],k=1,S=arguments.length,w=!1;for(typeof v=="boolean"&&(w=v,v=arguments[1]||{},k=2),(v==null||typeof v!="object"&&typeof v!="function")&&(v={});k<S;++k)if(c=arguments[k],c!=null)for(h in c)p=l(v,h),g=l(c,h),v!==g&&(w&&g&&(a(g)||(m=r(g)))?(m?(m=!1,E=p&&r(p)?p:[]):E=p&&a(p)?p:{},s(v,{name:h,newValue:u(w,E,g)})):typeof g<"u"&&s(v,{name:h,newValue:g}));return v},Ds}var xC=vC();const Fs=Yf(xC);function Io(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 bC(){const e=[],t={run:i,use:n};return t;function i(...r){let a=-1;const s=r.pop();if(typeof s!="function")throw new TypeError("Expected function as last argument, not "+s);l(null,...r);function l(u,...c){const h=e[++a];let p=-1;if(u){s(u);return}for(;++p<r.length;)(c[p]===null||c[p]===void 0)&&(c[p]=r[p]);r=c,h?yC(h,l)(...c):s(null,...c)}}function n(r){if(typeof r!="function")throw new TypeError("Expected `middelware` to be a function, not "+r);return e.push(r),t}}function yC(e,t){let i;return n;function n(...s){const l=e.length>s.length;let u;l&&s.push(r);try{u=e.apply(this,s)}catch(c){const h=c;if(l&&i)throw h;return r(h)}l||(u&&u.then&&typeof u.then=="function"?u.then(a,r):u instanceof Error?r(u):a(u))}function r(s,...l){i||(i=!0,t(s,...l))}function a(s){r(null,s)}}const fi={basename:wC,dirname:kC,extname:SC,join:EC,sep:"/"};function wC(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');Er(e);let i=0,n=-1,r=e.length,a;if(t===void 0||t.length===0||t.length>e.length){for(;r--;)if(e.codePointAt(r)===47){if(a){i=r+1;break}}else n<0&&(a=!0,n=r+1);return n<0?"":e.slice(i,n)}if(t===e)return"";let s=-1,l=t.length-1;for(;r--;)if(e.codePointAt(r)===47){if(a){i=r+1;break}}else s<0&&(a=!0,s=r+1),l>-1&&(e.codePointAt(r)===t.codePointAt(l--)?l<0&&(n=r):(l=-1,n=s));return i===n?n=s:n<0&&(n=e.length),e.slice(i,n)}function kC(e){if(Er(e),e.length===0)return".";let t=-1,i=e.length,n;for(;--i;)if(e.codePointAt(i)===47){if(n){t=i;break}}else n||(n=!0);return t<0?e.codePointAt(0)===47?"/":".":t===1&&e.codePointAt(0)===47?"//":e.slice(0,t)}function SC(e){Er(e);let t=e.length,i=-1,n=0,r=-1,a=0,s;for(;t--;){const l=e.codePointAt(t);if(l===47){if(s){n=t+1;break}continue}i<0&&(s=!0,i=t+1),l===46?r<0?r=t:a!==1&&(a=1):r>-1&&(a=-1)}return r<0||i<0||a===0||a===1&&r===i-1&&r===n+1?"":e.slice(r,i)}function EC(...e){let t=-1,i;for(;++t<e.length;)Er(e[t]),e[t]&&(i=i===void 0?e[t]:i+"/"+e[t]);return i===void 0?".":CC(i)}function CC(e){Er(e);const t=e.codePointAt(0)===47;let i=IC(e,!t);return i.length===0&&!t&&(i="."),i.length>0&&e.codePointAt(e.length-1)===47&&(i+="/"),t?"/"+i:i}function IC(e,t){let i="",n=0,r=-1,a=0,s=-1,l,u;for(;++s<=e.length;){if(s<e.length)l=e.codePointAt(s);else{if(l===47)break;l=47}if(l===47){if(!(r===s-1||a===1))if(r!==s-1&&a===2){if(i.length<2||n!==2||i.codePointAt(i.length-1)!==46||i.codePointAt(i.length-2)!==46){if(i.length>2){if(u=i.lastIndexOf("/"),u!==i.length-1){u<0?(i="",n=0):(i=i.slice(0,u),n=i.length-1-i.lastIndexOf("/")),r=s,a=0;continue}}else if(i.length>0){i="",n=0,r=s,a=0;continue}}t&&(i=i.length>0?i+"/..":"..",n=2)}else i.length>0?i+="/"+e.slice(r+1,s):i=e.slice(r+1,s),n=s-r-1;r=s,a=0}else l===46&&a>-1?a++:a=-1}return i}function Er(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const _C={cwd:AC};function AC(){return"/"}function _o(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function NC(e){if(typeof e=="string")e=new URL(e);else if(!_o(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 TC(e)}function TC(e){if(e.hostname!==""){const n=new TypeError('File URL host must be "localhost" or empty on darwin');throw n.code="ERR_INVALID_FILE_URL_HOST",n}const t=e.pathname;let i=-1;for(;++i<t.length;)if(t.codePointAt(i)===37&&t.codePointAt(i+1)===50){const n=t.codePointAt(i+2);if(n===70||n===102){const r=new TypeError("File URL path must not include encoded / characters");throw r.code="ERR_INVALID_FILE_URL_PATH",r}}return decodeURIComponent(t)}const js=["history","path","basename","stem","extname","dirname"];class OC{constructor(t){let i;t?_o(t)?i={path:t}:typeof t=="string"||PC(t)?i={value:t}:i=t:i={},this.cwd="cwd"in i?"":_C.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let n=-1;for(;++n<js.length;){const a=js[n];a in i&&i[a]!==void 0&&i[a]!==null&&(this[a]=a==="history"?[...i[a]]:i[a])}let r;for(r in i)js.includes(r)||(this[r]=i[r])}get basename(){return typeof this.path=="string"?fi.basename(this.path):void 0}set basename(t){Vs(t,"basename"),zs(t,"basename"),this.path=fi.join(this.dirname||"",t)}get dirname(){return typeof this.path=="string"?fi.dirname(this.path):void 0}set dirname(t){dh(this.basename,"dirname"),this.path=fi.join(t||"",this.basename)}get extname(){return typeof this.path=="string"?fi.extname(this.path):void 0}set extname(t){if(zs(t,"extname"),dh(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=fi.join(this.dirname,this.stem+(t||""))}get path(){return this.history[this.history.length-1]}set path(t){_o(t)&&(t=NC(t)),Vs(t,"path"),this.path!==t&&this.history.push(t)}get stem(){return typeof this.path=="string"?fi.basename(this.path,this.extname):void 0}set stem(t){Vs(t,"stem"),zs(t,"stem"),this.path=fi.join(this.dirname||"",t+(this.extname||""))}fail(t,i,n){const r=this.message(t,i,n);throw r.fatal=!0,r}info(t,i,n){const r=this.message(t,i,n);return r.fatal=void 0,r}message(t,i,n){const r=new Xe(t,i,n);return this.path&&(r.name=this.path+":"+r.name,r.file=this.path),r.fatal=!1,this.messages.push(r),r}toString(t){return this.value===void 0?"":typeof this.value=="string"?this.value:new TextDecoder(t||void 0).decode(this.value)}}function zs(e,t){if(e&&e.includes(fi.sep))throw new Error("`"+t+"` cannot be a path: did not expect `"+fi.sep+"`")}function Vs(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function dh(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}function PC(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const RC=(function(e){const n=this.constructor.prototype,r=n[e],a=function(){return r.apply(a,arguments)};return Object.setPrototypeOf(a,n),a}),MC={}.hasOwnProperty;class Gl extends RC{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=bC()}copy(){const t=new Gl;let i=-1;for(;++i<this.attachers.length;){const n=this.attachers[i];t.use(...n)}return t.data(Fs(!0,{},this.namespace)),t}data(t,i){return typeof t=="string"?arguments.length===2?(Ks("data",this.frozen),this.namespace[t]=i,this):MC.call(this.namespace,t)&&this.namespace[t]||void 0:t?(Ks("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[i,...n]=this.attachers[this.freezeIndex];if(n[0]===!1)continue;n[0]===!0&&(n[0]=void 0);const r=i.call(t,...n);typeof r=="function"&&this.transformers.use(r)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(t){this.freeze();const i=Jr(t),n=this.parser||this.Parser;return Bs("parse",n),n(String(i),i)}process(t,i){const n=this;return this.freeze(),Bs("process",this.parser||this.Parser),Hs("process",this.compiler||this.Compiler),i?r(void 0,i):new Promise(r);function r(a,s){const l=Jr(t),u=n.parse(l);n.run(u,l,function(h,p,g){if(h||!p||!g)return c(h);const m=p,E=n.stringify(m,g);FC(E)?g.value=E:g.result=E,c(h,g)});function c(h,p){h||!p?s(h):a?a(p):i(void 0,p)}}}processSync(t){let i=!1,n;return this.freeze(),Bs("processSync",this.parser||this.Parser),Hs("processSync",this.compiler||this.Compiler),this.process(t,r),fh("processSync","process",i),n;function r(a,s){i=!0,ch(a),n=s}}run(t,i,n){ph(t),this.freeze();const r=this.transformers;return!n&&typeof i=="function"&&(n=i,i=void 0),n?a(void 0,n):new Promise(a);function a(s,l){const u=Jr(i);r.run(t,u,c);function c(h,p,g){const m=p||t;h?l(h):s?s(m):n(void 0,m,g)}}}runSync(t,i){let n=!1,r;return this.run(t,i,a),fh("runSync","run",n),r;function a(s,l){ch(s),r=l,n=!0}}stringify(t,i){this.freeze();const n=Jr(i),r=this.compiler||this.Compiler;return Hs("stringify",r),ph(t),r(t,n)}use(t,...i){const n=this.attachers,r=this.namespace;if(Ks("use",this.frozen),t!=null)if(typeof t=="function")u(t,i);else if(typeof t=="object")Array.isArray(t)?l(t):s(t);else throw new TypeError("Expected usable value, not `"+t+"`");return this;function a(c){if(typeof c=="function")u(c,[]);else if(typeof c=="object")if(Array.isArray(c)){const[h,...p]=c;u(h,p)}else s(c);else throw new TypeError("Expected usable value, not `"+c+"`")}function s(c){if(!("plugins"in c)&&!("settings"in c))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");l(c.plugins),c.settings&&(r.settings=Fs(!0,r.settings,c.settings))}function l(c){let h=-1;if(c!=null)if(Array.isArray(c))for(;++h<c.length;){const p=c[h];a(p)}else throw new TypeError("Expected a list of plugins, not `"+c+"`")}function u(c,h){let p=-1,g=-1;for(;++p<n.length;)if(n[p][0]===c){g=p;break}if(g===-1)n.push([c,...h]);else if(h.length>0){let[m,...E]=h;const v=n[g][1];Io(v)&&Io(m)&&(m=Fs(!0,v,m)),n[g]=[c,m,...E]}}}}const LC=new Gl().freeze();function Bs(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function Hs(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function Ks(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 ph(e){if(!Io(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function fh(e,t,i){if(!i)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function Jr(e){return DC(e)?e:new OC(e)}function DC(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function FC(e){return typeof e=="string"||jC(e)}function jC(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const zC=LC().use(sE).use(mC).freeze();function VC(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}function BC(e,t,i){const r=ns((i||{}).ignore||[]),a=HC(t);let s=-1;for(;++s<a.length;)vg(e,"text",l);function l(c,h){let p=-1,g;for(;++p<h.length;){const m=h[p],E=g?g.children:void 0;if(r(m,E?E.indexOf(m):void 0,g))return;g=m}if(g)return u(c,h)}function u(c,h){const p=h[h.length-1],g=a[s][0],m=a[s][1];let E=0;const k=p.children.indexOf(c);let S=!1,w=[];g.lastIndex=0;let I=g.exec(c.value);for(;I;){const A=I.index,y={index:I.index,input:I.input,stack:[...h,c]};let f=m(...I,y);if(typeof f=="string"&&(f=f.length>0?{type:"text",value:f}:void 0),f===!1?g.lastIndex=A+1:(E!==A&&w.push({type:"text",value:c.value.slice(E,A)}),Array.isArray(f)?w.push(...f):f&&w.push(f),E=A+I[0].length,S=!0),!g.global)break;I=g.exec(c.value)}return S?(E<c.value.length&&w.push({type:"text",value:c.value.slice(E)}),p.children.splice(k,1,...w)):w=[c],k+w.length}}function HC(e){const t=[];if(!Array.isArray(e))throw new TypeError("Expected find and replace tuple or list of tuples");const i=!e[0]||Array.isArray(e[0])?e:[e];let n=-1;for(;++n<i.length;){const r=i[n];t.push([KC(r[0]),WC(r[1])])}return t}function KC(e){return typeof e=="string"?new RegExp(VC(e),"g"):e}function WC(e){return typeof e=="function"?e:function(){return e}}const Ws="phrasing",Us=["autolink","link","image","label"];function UC(){return{transforms:[ZC],enter:{literalAutolink:GC,literalAutolinkEmail:qs,literalAutolinkHttp:qs,literalAutolinkWww:qs},exit:{literalAutolink:QC,literalAutolinkEmail:YC,literalAutolinkHttp:$C,literalAutolinkWww:JC}}}function qC(){return{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:Ws,notInConstruct:Us},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:Ws,notInConstruct:Us},{character:":",before:"[ps]",after:"\\/",inConstruct:Ws,notInConstruct:Us}]}}function GC(e){this.enter({type:"link",title:null,url:"",children:[]},e)}function qs(e){this.config.enter.autolinkProtocol.call(this,e)}function $C(e){this.config.exit.autolinkProtocol.call(this,e)}function JC(e){this.config.exit.data.call(this,e);const t=this.stack[this.stack.length-1];t.type,t.url="http://"+this.sliceSerialize(e)}function YC(e){this.config.exit.autolinkEmail.call(this,e)}function QC(e){this.exit(e)}function ZC(e){BC(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,XC],[new RegExp("(?<=^|\\s|\\p{P}|\\p{S})([-.\\w+]+)@([-\\w]+(?:\\.[-\\w]+)+)","gu"),eI]],{ignore:["link","linkReference"]})}function XC(e,t,i,n,r){let a="";if(!Tg(r)||(/^w/i.test(t)&&(i=t+i,t="",a="http://"),!tI(i)))return!1;const s=iI(i+n);if(!s[0])return!1;const l={type:"link",title:null,url:a+t+s[0],children:[{type:"text",value:t+s[0]}]};return s[1]?[l,{type:"text",value:s[1]}]:l}function eI(e,t,i,n){return!Tg(n,!0)||/[-\d_]$/.test(i)?!1:{type:"link",title:null,url:"mailto:"+t+"@"+i,children:[{type:"text",value:t+"@"+i}]}}function tI(e){const t=e.split(".");return!(t.length<2||t[t.length-1]&&(/_/.test(t[t.length-1])||!/[a-zA-Z\d]/.test(t[t.length-1]))||t[t.length-2]&&(/_/.test(t[t.length-2])||!/[a-zA-Z\d]/.test(t[t.length-2])))}function iI(e){const t=/[!"&'),.:;<>?\]}]+$/.exec(e);if(!t)return[e,void 0];e=e.slice(0,t.index);let i=t[0],n=i.indexOf(")");const r=Aa(e,"(");let a=Aa(e,")");for(;n!==-1&&r>a;)e+=i.slice(0,n+1),i=i.slice(n+1),n=i.indexOf(")"),a++;return[e,i]}function Tg(e,t){const i=e.input.charCodeAt(e.index-1);return(e.index===0||At(i)||ts(i))&&(!t||i!==47)}Og.peek=hI;function nI(){this.buffer()}function rI(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function aI(){this.buffer()}function sI(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function oI(e){const t=this.resume(),i=this.stack[this.stack.length-1];i.type,i.identifier=ui(this.sliceSerialize(e)).toLowerCase(),i.label=t}function lI(e){this.exit(e)}function uI(e){const t=this.resume(),i=this.stack[this.stack.length-1];i.type,i.identifier=ui(this.sliceSerialize(e)).toLowerCase(),i.label=t}function cI(e){this.exit(e)}function hI(){return"["}function Og(e,t,i,n){const r=i.createTracker(n);let a=r.move("[^");const s=i.enter("footnoteReference"),l=i.enter("reference");return a+=r.move(i.safe(i.associationId(e),{after:"]",before:a})),l(),s(),a+=r.move("]"),a}function dI(){return{enter:{gfmFootnoteCallString:nI,gfmFootnoteCall:rI,gfmFootnoteDefinitionLabelString:aI,gfmFootnoteDefinition:sI},exit:{gfmFootnoteCallString:oI,gfmFootnoteCall:lI,gfmFootnoteDefinitionLabelString:uI,gfmFootnoteDefinition:cI}}}function pI(e){let t=!1;return e&&e.firstLineBlank&&(t=!0),{handlers:{footnoteDefinition:i,footnoteReference:Og},unsafe:[{character:"[",inConstruct:["label","phrasing","reference"]}]};function i(n,r,a,s){const l=a.createTracker(s);let u=l.move("[^");const c=a.enter("footnoteDefinition"),h=a.enter("label");return u+=l.move(a.safe(a.associationId(n),{before:u,after:"]"})),h(),u+=l.move("]:"),n.children&&n.children.length>0&&(l.shift(4),u+=l.move((t?`
121
- `:" ")+a.indentLines(a.containerFlow(n,l.current()),t?Pg:fI))),c(),u}}function fI(e,t,i){return t===0?e:Pg(e,t,i)}function Pg(e,t,i){return(i?"":" ")+e}const gI=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];Rg.peek=yI;function mI(){return{canContainEols:["delete"],enter:{strikethrough:xI},exit:{strikethrough:bI}}}function vI(){return{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:gI}],handlers:{delete:Rg}}}function xI(e){this.enter({type:"delete",children:[]},e)}function bI(e){this.exit(e)}function Rg(e,t,i,n){const r=i.createTracker(n),a=i.enter("strikethrough");let s=r.move("~~");return s+=i.containerPhrasing(e,{...r.current(),before:s,after:"~"}),s+=r.move("~~"),a(),s}function yI(){return"~"}function wI(e){return e.length}function kI(e,t){const i=t||{},n=(i.align||[]).concat(),r=i.stringLength||wI,a=[],s=[],l=[],u=[];let c=0,h=-1;for(;++h<e.length;){const v=[],k=[];let S=-1;for(e[h].length>c&&(c=e[h].length);++S<e[h].length;){const w=SI(e[h][S]);if(i.alignDelimiters!==!1){const I=r(w);k[S]=I,(u[S]===void 0||I>u[S])&&(u[S]=I)}v.push(w)}s[h]=v,l[h]=k}let p=-1;if(typeof n=="object"&&"length"in n)for(;++p<c;)a[p]=gh(n[p]);else{const v=gh(n);for(;++p<c;)a[p]=v}p=-1;const g=[],m=[];for(;++p<c;){const v=a[p];let k="",S="";v===99?(k=":",S=":"):v===108?k=":":v===114&&(S=":");let w=i.alignDelimiters===!1?1:Math.max(1,u[p]-k.length-S.length);const I=k+"-".repeat(w)+S;i.alignDelimiters!==!1&&(w=k.length+w+S.length,w>u[p]&&(u[p]=w),m[p]=w),g[p]=I}s.splice(1,0,g),l.splice(1,0,m),h=-1;const E=[];for(;++h<s.length;){const v=s[h],k=l[h];p=-1;const S=[];for(;++p<c;){const w=v[p]||"";let I="",A="";if(i.alignDelimiters!==!1){const y=u[p]-(k[p]||0),f=a[p];f===114?I=" ".repeat(y):f===99?y%2?(I=" ".repeat(y/2+.5),A=" ".repeat(y/2-.5)):(I=" ".repeat(y/2),A=I):A=" ".repeat(y)}i.delimiterStart!==!1&&!p&&S.push("|"),i.padding!==!1&&!(i.alignDelimiters===!1&&w==="")&&(i.delimiterStart!==!1||p)&&S.push(" "),i.alignDelimiters!==!1&&S.push(I),S.push(w),i.alignDelimiters!==!1&&S.push(A),i.padding!==!1&&S.push(" "),(i.delimiterEnd!==!1||p!==c-1)&&S.push("|")}E.push(i.delimiterEnd===!1?S.join("").replace(/ +$/,""):S.join(""))}return E.join(`
122
- `)}function SI(e){return e==null?"":String(e)}function gh(e){const t=typeof e=="string"?e.codePointAt(0):0;return t===67||t===99?99:t===76||t===108?108:t===82||t===114?114:0}function EI(){return{enter:{table:CI,tableData:mh,tableHeader:mh,tableRow:_I},exit:{codeText:AI,table:II,tableData:Gs,tableHeader:Gs,tableRow:Gs}}}function CI(e){const t=e._align;this.enter({type:"table",align:t.map(function(i){return i==="none"?null:i}),children:[]},e),this.data.inTable=!0}function II(e){this.exit(e),this.data.inTable=void 0}function _I(e){this.enter({type:"tableRow",children:[]},e)}function Gs(e){this.exit(e)}function mh(e){this.enter({type:"tableCell",children:[]},e)}function AI(e){let t=this.resume();this.data.inTable&&(t=t.replace(/\\([\\|])/g,NI));const i=this.stack[this.stack.length-1];i.type,i.value=t,this.exit(e)}function NI(e,t){return t==="|"?t:e}function TI(e){const t=e||{},i=t.tableCellPadding,n=t.tablePipeAlign,r=t.stringLength,a=i?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:`
123
- `,inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[ :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{inlineCode:g,table:s,tableCell:u,tableRow:l}};function s(m,E,v,k){return c(h(m,v,k),m.align)}function l(m,E,v,k){const S=p(m,v,k),w=c([S]);return w.slice(0,w.indexOf(`
124
- `))}function u(m,E,v,k){const S=v.enter("tableCell"),w=v.enter("phrasing"),I=v.containerPhrasing(m,{...k,before:a,after:a});return w(),S(),I}function c(m,E){return kI(m,{align:E,alignDelimiters:n,padding:i,stringLength:r})}function h(m,E,v){const k=m.children;let S=-1;const w=[],I=E.enter("table");for(;++S<k.length;)w[S]=p(k[S],E,v);return I(),w}function p(m,E,v){const k=m.children;let S=-1;const w=[],I=E.enter("tableRow");for(;++S<k.length;)w[S]=u(k[S],m,E,v);return I(),w}function g(m,E,v){let k=ql.inlineCode(m,E,v);return v.stack.includes("tableCell")&&(k=k.replace(/\|/g,"\\$&")),k}}function OI(){return{exit:{taskListCheckValueChecked:vh,taskListCheckValueUnchecked:vh,paragraph:RI}}}function PI(){return{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:MI}}}function vh(e){const t=this.stack[this.stack.length-2];t.type,t.checked=e.type==="taskListCheckValueChecked"}function RI(e){const t=this.stack[this.stack.length-2];if(t&&t.type==="listItem"&&typeof t.checked=="boolean"){const i=this.stack[this.stack.length-1];i.type;const n=i.children[0];if(n&&n.type==="text"){const r=t.children;let a=-1,s;for(;++a<r.length;){const l=r[a];if(l.type==="paragraph"){s=l;break}}s===i&&(n.value=n.value.slice(1),n.value.length===0?i.children.shift():i.position&&n.position&&typeof n.position.start.offset=="number"&&(n.position.start.column++,n.position.start.offset++,i.position.start=Object.assign({},n.position.start)))}}this.exit(e)}function MI(e,t,i,n){const r=e.children[0],a=typeof e.checked=="boolean"&&r&&r.type==="paragraph",s="["+(e.checked?"x":" ")+"] ",l=i.createTracker(n);a&&l.move(s);let u=ql.listItem(e,t,i,{...n,...l.current()});return a&&(u=u.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,c)),u;function c(h){return h+s}}function LI(){return[UC(),dI(),mI(),EI(),OI()]}function DI(e){return{extensions:[qC(),pI(e),vI(),TI(e),PI()]}}const FI={tokenize:KI,partial:!0},Mg={tokenize:WI,partial:!0},Lg={tokenize:UI,partial:!0},Dg={tokenize:qI,partial:!0},jI={tokenize:GI,partial:!0},Fg={name:"wwwAutolink",tokenize:BI,previous:zg},jg={name:"protocolAutolink",tokenize:HI,previous:Vg},Oi={name:"emailAutolink",tokenize:VI,previous:Bg},wi={};function zI(){return{text:wi}}let nn=48;for(;nn<123;)wi[nn]=Oi,nn++,nn===58?nn=65:nn===91&&(nn=97);wi[43]=Oi;wi[45]=Oi;wi[46]=Oi;wi[95]=Oi;wi[72]=[Oi,jg];wi[104]=[Oi,jg];wi[87]=[Oi,Fg];wi[119]=[Oi,Fg];function VI(e,t,i){const n=this;let r,a;return s;function s(p){return!Ao(p)||!Bg.call(n,n.previous)||$l(n.events)?i(p):(e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),l(p))}function l(p){return Ao(p)?(e.consume(p),l):p===64?(e.consume(p),u):i(p)}function u(p){return p===46?e.check(jI,h,c)(p):p===45||p===95||jt(p)?(a=!0,e.consume(p),u):h(p)}function c(p){return e.consume(p),r=!0,u}function h(p){return a&&r&&Et(n.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),t(p)):i(p)}}function BI(e,t,i){const n=this;return r;function r(s){return s!==87&&s!==119||!zg.call(n,n.previous)||$l(n.events)?i(s):(e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(FI,e.attempt(Mg,e.attempt(Lg,a),i),i)(s))}function a(s){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),t(s)}}function HI(e,t,i){const n=this;let r="",a=!1;return s;function s(p){return(p===72||p===104)&&Vg.call(n,n.previous)&&!$l(n.events)?(e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),r+=String.fromCodePoint(p),e.consume(p),l):i(p)}function l(p){if(Et(p)&&r.length<5)return r+=String.fromCodePoint(p),e.consume(p),l;if(p===58){const g=r.toLowerCase();if(g==="http"||g==="https")return e.consume(p),u}return i(p)}function u(p){return p===47?(e.consume(p),a?c:(a=!0,u)):i(p)}function c(p){return p===null||Ra(p)||$e(p)||At(p)||ts(p)?i(p):e.attempt(Mg,e.attempt(Lg,h),i)(p)}function h(p){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),t(p)}}function KI(e,t,i){let n=0;return r;function r(s){return(s===87||s===119)&&n<3?(n++,e.consume(s),r):s===46&&n===3?(e.consume(s),a):i(s)}function a(s){return s===null?i(s):t(s)}}function WI(e,t,i){let n,r,a;return s;function s(c){return c===46||c===95?e.check(Dg,u,l)(c):c===null||$e(c)||At(c)||c!==45&&ts(c)?u(c):(a=!0,e.consume(c),s)}function l(c){return c===95?n=!0:(r=n,n=void 0),e.consume(c),s}function u(c){return r||n||!a?i(c):t(c)}}function UI(e,t){let i=0,n=0;return r;function r(s){return s===40?(i++,e.consume(s),r):s===41&&n<i?a(s):s===33||s===34||s===38||s===39||s===41||s===42||s===44||s===46||s===58||s===59||s===60||s===63||s===93||s===95||s===126?e.check(Dg,t,a)(s):s===null||$e(s)||At(s)?t(s):(e.consume(s),r)}function a(s){return s===41&&n++,e.consume(s),r}}function qI(e,t,i){return n;function n(l){return l===33||l===34||l===39||l===41||l===42||l===44||l===46||l===58||l===59||l===63||l===95||l===126?(e.consume(l),n):l===38?(e.consume(l),a):l===93?(e.consume(l),r):l===60||l===null||$e(l)||At(l)?t(l):i(l)}function r(l){return l===null||l===40||l===91||$e(l)||At(l)?t(l):n(l)}function a(l){return Et(l)?s(l):i(l)}function s(l){return l===59?(e.consume(l),n):Et(l)?(e.consume(l),s):i(l)}}function GI(e,t,i){return n;function n(a){return e.consume(a),r}function r(a){return jt(a)?i(a):t(a)}}function zg(e){return e===null||e===40||e===42||e===95||e===91||e===93||e===126||$e(e)}function Vg(e){return!Et(e)}function Bg(e){return!(e===47||Ao(e))}function Ao(e){return e===43||e===45||e===46||e===95||jt(e)}function $l(e){let t=e.length,i=!1;for(;t--;){const n=e[t][1];if((n.type==="labelLink"||n.type==="labelImage")&&!n._balanced){i=!0;break}if(n._gfmAutolinkLiteralWalkedInto){i=!1;break}}return e.length>0&&!i&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),i}const $I={tokenize:i2,partial:!0};function JI(){return{document:{91:{name:"gfmFootnoteDefinition",tokenize:XI,continuation:{tokenize:e2},exit:t2}},text:{91:{name:"gfmFootnoteCall",tokenize:ZI},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:YI,resolveTo:QI}}}}function YI(e,t,i){const n=this;let r=n.events.length;const a=n.parser.gfmFootnotes||(n.parser.gfmFootnotes=[]);let s;for(;r--;){const u=n.events[r][1];if(u.type==="labelImage"){s=u;break}if(u.type==="gfmFootnoteCall"||u.type==="labelLink"||u.type==="label"||u.type==="image"||u.type==="link")break}return l;function l(u){if(!s||!s._balanced)return i(u);const c=ui(n.sliceSerialize({start:s.end,end:n.now()}));return c.codePointAt(0)!==94||!a.includes(c.slice(1))?i(u):(e.enter("gfmFootnoteCallLabelMarker"),e.consume(u),e.exit("gfmFootnoteCallLabelMarker"),t(u))}}function QI(e,t){let i=e.length;for(;i--;)if(e[i][1].type==="labelImage"&&e[i][0]==="enter"){e[i][1];break}e[i+1][1].type="data",e[i+3][1].type="gfmFootnoteCallLabelMarker";const n={type:"gfmFootnoteCall",start:Object.assign({},e[i+3][1].start),end:Object.assign({},e[e.length-1][1].end)},r={type:"gfmFootnoteCallMarker",start:Object.assign({},e[i+3][1].end),end:Object.assign({},e[i+3][1].end)};r.end.column++,r.end.offset++,r.end._bufferIndex++;const a={type:"gfmFootnoteCallString",start:Object.assign({},r.end),end:Object.assign({},e[e.length-1][1].start)},s={type:"chunkString",contentType:"string",start:Object.assign({},a.start),end:Object.assign({},a.end)},l=[e[i+1],e[i+2],["enter",n,t],e[i+3],e[i+4],["enter",r,t],["exit",r,t],["enter",a,t],["enter",s,t],["exit",s,t],["exit",a,t],e[e.length-2],e[e.length-1],["exit",n,t]];return e.splice(i,e.length-i+1,...l),e}function ZI(e,t,i){const n=this,r=n.parser.gfmFootnotes||(n.parser.gfmFootnotes=[]);let a=0,s;return l;function l(p){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(p),e.exit("gfmFootnoteCallLabelMarker"),u}function u(p){return p!==94?i(p):(e.enter("gfmFootnoteCallMarker"),e.consume(p),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",c)}function c(p){if(a>999||p===93&&!s||p===null||p===91||$e(p))return i(p);if(p===93){e.exit("chunkString");const g=e.exit("gfmFootnoteCallString");return r.includes(ui(n.sliceSerialize(g)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(p),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),t):i(p)}return $e(p)||(s=!0),a++,e.consume(p),p===92?h:c}function h(p){return p===91||p===92||p===93?(e.consume(p),a++,c):c(p)}}function XI(e,t,i){const n=this,r=n.parser.gfmFootnotes||(n.parser.gfmFootnotes=[]);let a,s=0,l;return u;function u(E){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(E),e.exit("gfmFootnoteDefinitionLabelMarker"),c}function c(E){return E===94?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(E),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",h):i(E)}function h(E){if(s>999||E===93&&!l||E===null||E===91||$e(E))return i(E);if(E===93){e.exit("chunkString");const v=e.exit("gfmFootnoteDefinitionLabelString");return a=ui(n.sliceSerialize(v)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(E),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),g}return $e(E)||(l=!0),s++,e.consume(E),E===92?p:h}function p(E){return E===91||E===92||E===93?(e.consume(E),s++,h):h(E)}function g(E){return E===58?(e.enter("definitionMarker"),e.consume(E),e.exit("definitionMarker"),r.includes(a)||r.push(a),We(e,m,"gfmFootnoteDefinitionWhitespace")):i(E)}function m(E){return t(E)}}function e2(e,t,i){return e.check(Un,t,e.attempt($I,t,i))}function t2(e){e.exit("gfmFootnoteDefinition")}function i2(e,t,i){const n=this;return We(e,r,"gfmFootnoteDefinitionIndent",5);function r(a){const s=n.events[n.events.length-1];return s&&s[1].type==="gfmFootnoteDefinitionIndent"&&s[2].sliceSerialize(s[1],!0).length===4?t(a):i(a)}}function n2(e){let i=(e||{}).singleTilde;const n={name:"strikethrough",tokenize:a,resolveAll:r};return i==null&&(i=!0),{text:{126:n},insideSpan:{null:[n]},attentionMarkers:{null:[126]}};function r(s,l){let u=-1;for(;++u<s.length;)if(s[u][0]==="enter"&&s[u][1].type==="strikethroughSequenceTemporary"&&s[u][1]._close){let c=u;for(;c--;)if(s[c][0]==="exit"&&s[c][1].type==="strikethroughSequenceTemporary"&&s[c][1]._open&&s[u][1].end.offset-s[u][1].start.offset===s[c][1].end.offset-s[c][1].start.offset){s[u][1].type="strikethroughSequence",s[c][1].type="strikethroughSequence";const h={type:"strikethrough",start:Object.assign({},s[c][1].start),end:Object.assign({},s[u][1].end)},p={type:"strikethroughText",start:Object.assign({},s[c][1].end),end:Object.assign({},s[u][1].start)},g=[["enter",h,l],["enter",s[c][1],l],["exit",s[c][1],l],["enter",p,l]],m=l.parser.constructs.insideSpan.null;m&&Kt(g,g.length,0,is(m,s.slice(c+1,u),l)),Kt(g,g.length,0,[["exit",p,l],["enter",s[u][1],l],["exit",s[u][1],l],["exit",h,l]]),Kt(s,c-1,u-c+3,g),u=c+g.length-2;break}}for(u=-1;++u<s.length;)s[u][1].type==="strikethroughSequenceTemporary"&&(s[u][1].type="data");return s}function a(s,l,u){const c=this.previous,h=this.events;let p=0;return g;function g(E){return c===126&&h[h.length-1][1].type!=="characterEscape"?u(E):(s.enter("strikethroughSequenceTemporary"),m(E))}function m(E){const v=Fn(c);if(E===126)return p>1?u(E):(s.consume(E),p++,m);if(p<2&&!i)return u(E);const k=s.exit("strikethroughSequenceTemporary"),S=Fn(E);return k._open=!S||S===2&&!!v,k._close=!v||v===2&&!!S,l(E)}}}class r2{constructor(){this.map=[]}add(t,i,n){a2(this,t,i,n)}consume(t){if(this.map.sort(function(a,s){return a[0]-s[0]}),this.map.length===0)return;let i=this.map.length;const n=[];for(;i>0;)i-=1,n.push(t.slice(this.map[i][0]+this.map[i][1]),this.map[i][2]),t.length=this.map[i][0];n.push(t.slice()),t.length=0;let r=n.pop();for(;r;){for(const a of r)t.push(a);r=n.pop()}this.map.length=0}}function a2(e,t,i,n){let r=0;if(!(i===0&&n.length===0)){for(;r<e.map.length;){if(e.map[r][0]===t){e.map[r][1]+=i,e.map[r][2].push(...n);return}r+=1}e.map.push([t,i,n])}}function s2(e,t){let i=!1;const n=[];for(;t<e.length;){const r=e[t];if(i){if(r[0]==="enter")r[1].type==="tableContent"&&n.push(e[t+1][1].type==="tableDelimiterMarker"?"left":"none");else if(r[1].type==="tableContent"){if(e[t-1][1].type==="tableDelimiterMarker"){const a=n.length-1;n[a]=n[a]==="left"?"center":"right"}}else if(r[1].type==="tableDelimiterRow")break}else r[0]==="enter"&&r[1].type==="tableDelimiterRow"&&(i=!0);t+=1}return n}function o2(){return{flow:{null:{name:"table",tokenize:l2,resolveAll:u2}}}}function l2(e,t,i){const n=this;let r=0,a=0,s;return l;function l(D){let V=n.events.length-1;for(;V>-1;){const Q=n.events[V][1].type;if(Q==="lineEnding"||Q==="linePrefix")V--;else break}const J=V>-1?n.events[V][1].type:null,ue=J==="tableHead"||J==="tableRow"?f:u;return ue===f&&n.parser.lazy[n.now().line]?i(D):ue(D)}function u(D){return e.enter("tableHead"),e.enter("tableRow"),c(D)}function c(D){return D===124||(s=!0,a+=1),h(D)}function h(D){return D===null?i(D):Oe(D)?a>1?(a=0,n.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(D),e.exit("lineEnding"),m):i(D):Ve(D)?We(e,h,"whitespace")(D):(a+=1,s&&(s=!1,r+=1),D===124?(e.enter("tableCellDivider"),e.consume(D),e.exit("tableCellDivider"),s=!0,h):(e.enter("data"),p(D)))}function p(D){return D===null||D===124||$e(D)?(e.exit("data"),h(D)):(e.consume(D),D===92?g:p)}function g(D){return D===92||D===124?(e.consume(D),p):p(D)}function m(D){return n.interrupt=!1,n.parser.lazy[n.now().line]?i(D):(e.enter("tableDelimiterRow"),s=!1,Ve(D)?We(e,E,"linePrefix",n.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(D):E(D))}function E(D){return D===45||D===58?k(D):D===124?(s=!0,e.enter("tableCellDivider"),e.consume(D),e.exit("tableCellDivider"),v):y(D)}function v(D){return Ve(D)?We(e,k,"whitespace")(D):k(D)}function k(D){return D===58?(a+=1,s=!0,e.enter("tableDelimiterMarker"),e.consume(D),e.exit("tableDelimiterMarker"),S):D===45?(a+=1,S(D)):D===null||Oe(D)?A(D):y(D)}function S(D){return D===45?(e.enter("tableDelimiterFiller"),w(D)):y(D)}function w(D){return D===45?(e.consume(D),w):D===58?(s=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(D),e.exit("tableDelimiterMarker"),I):(e.exit("tableDelimiterFiller"),I(D))}function I(D){return Ve(D)?We(e,A,"whitespace")(D):A(D)}function A(D){return D===124?E(D):D===null||Oe(D)?!s||r!==a?y(D):(e.exit("tableDelimiterRow"),e.exit("tableHead"),t(D)):y(D)}function y(D){return i(D)}function f(D){return e.enter("tableRow"),O(D)}function O(D){return D===124?(e.enter("tableCellDivider"),e.consume(D),e.exit("tableCellDivider"),O):D===null||Oe(D)?(e.exit("tableRow"),t(D)):Ve(D)?We(e,O,"whitespace")(D):(e.enter("data"),P(D))}function P(D){return D===null||D===124||$e(D)?(e.exit("data"),O(D)):(e.consume(D),D===92?F:P)}function F(D){return D===92||D===124?(e.consume(D),P):P(D)}}function u2(e,t){let i=-1,n=!0,r=0,a=[0,0,0,0],s=[0,0,0,0],l=!1,u=0,c,h,p;const g=new r2;for(;++i<e.length;){const m=e[i],E=m[1];m[0]==="enter"?E.type==="tableHead"?(l=!1,u!==0&&(xh(g,t,u,c,h),h=void 0,u=0),c={type:"table",start:Object.assign({},E.start),end:Object.assign({},E.end)},g.add(i,0,[["enter",c,t]])):E.type==="tableRow"||E.type==="tableDelimiterRow"?(n=!0,p=void 0,a=[0,0,0,0],s=[0,i+1,0,0],l&&(l=!1,h={type:"tableBody",start:Object.assign({},E.start),end:Object.assign({},E.end)},g.add(i,0,[["enter",h,t]])),r=E.type==="tableDelimiterRow"?2:h?3:1):r&&(E.type==="data"||E.type==="tableDelimiterMarker"||E.type==="tableDelimiterFiller")?(n=!1,s[2]===0&&(a[1]!==0&&(s[0]=s[1],p=Yr(g,t,a,r,void 0,p),a=[0,0,0,0]),s[2]=i)):E.type==="tableCellDivider"&&(n?n=!1:(a[1]!==0&&(s[0]=s[1],p=Yr(g,t,a,r,void 0,p)),a=s,s=[a[1],i,0,0])):E.type==="tableHead"?(l=!0,u=i):E.type==="tableRow"||E.type==="tableDelimiterRow"?(u=i,a[1]!==0?(s[0]=s[1],p=Yr(g,t,a,r,i,p)):s[1]!==0&&(p=Yr(g,t,s,r,i,p)),r=0):r&&(E.type==="data"||E.type==="tableDelimiterMarker"||E.type==="tableDelimiterFiller")&&(s[3]=i)}for(u!==0&&xh(g,t,u,c,h),g.consume(t.events),i=-1;++i<t.events.length;){const m=t.events[i];m[0]==="enter"&&m[1].type==="table"&&(m[1]._align=s2(t.events,i))}return e}function Yr(e,t,i,n,r,a){const s=n===1?"tableHeader":n===2?"tableDelimiter":"tableData",l="tableContent";i[0]!==0&&(a.end=Object.assign({},Nn(t.events,i[0])),e.add(i[0],0,[["exit",a,t]]));const u=Nn(t.events,i[1]);if(a={type:s,start:Object.assign({},u),end:Object.assign({},u)},e.add(i[1],0,[["enter",a,t]]),i[2]!==0){const c=Nn(t.events,i[2]),h=Nn(t.events,i[3]),p={type:l,start:Object.assign({},c),end:Object.assign({},h)};if(e.add(i[2],0,[["enter",p,t]]),n!==2){const g=t.events[i[2]],m=t.events[i[3]];if(g[1].end=Object.assign({},m[1].end),g[1].type="chunkText",g[1].contentType="text",i[3]>i[2]+1){const E=i[2]+1,v=i[3]-i[2]-1;e.add(E,v,[])}}e.add(i[3]+1,0,[["exit",p,t]])}return r!==void 0&&(a.end=Object.assign({},Nn(t.events,r)),e.add(r,0,[["exit",a,t]]),a=void 0),a}function xh(e,t,i,n,r){const a=[],s=Nn(t.events,i);r&&(r.end=Object.assign({},s),a.push(["exit",r,t])),n.end=Object.assign({},s),a.push(["exit",n,t]),e.add(i+1,0,a)}function Nn(e,t){const i=e[t],n=i[0]==="enter"?"start":"end";return i[1][n]}const c2={name:"tasklistCheck",tokenize:d2};function h2(){return{text:{91:c2}}}function d2(e,t,i){const n=this;return r;function r(u){return n.previous!==null||!n._gfmTasklistFirstContentOfListItem?i(u):(e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(u),e.exit("taskListCheckMarker"),a)}function a(u){return $e(u)?(e.enter("taskListCheckValueUnchecked"),e.consume(u),e.exit("taskListCheckValueUnchecked"),s):u===88||u===120?(e.enter("taskListCheckValueChecked"),e.consume(u),e.exit("taskListCheckValueChecked"),s):i(u)}function s(u){return u===93?(e.enter("taskListCheckMarker"),e.consume(u),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),l):i(u)}function l(u){return Oe(u)?t(u):Ve(u)?e.check({tokenize:p2},t,i)(u):i(u)}}function p2(e,t,i){return We(e,n,"whitespace");function n(r){return r===null?i(r):t(r)}}function f2(e){return Kl([zI(),JI(),n2(e),o2(),h2()])}const g2={};function m2(e){const t=this,i=e||g2,n=t.data(),r=n.micromarkExtensions||(n.micromarkExtensions=[]),a=n.fromMarkdownExtensions||(n.fromMarkdownExtensions=[]),s=n.toMarkdownExtensions||(n.toMarkdownExtensions=[]);r.push(f2(i)),a.push(LI()),s.push(DI(i))}const Hg=async()=>(await Se.getNodeInfo({verb:Se.DesignerRequestVerb.GET_INFO,path:"WebForms"})).filter(t=>t.ext==="WebForm"),No=(e,t,i)=>{let n=[];return Array.isArray(e)?e.forEach((r,a)=>{n=n.concat(No(r,`${t}.[${a}]`,i))}):pe.isObject(e)?pe.has(e,i)?n.push(`${t}.${i}`):Object.entries(e).forEach(([a,s])=>{n=n.concat(No(s,`${t}.${a}`,i))}):t===i&&n.push(i),n},v2=()=>new Date().toLocaleTimeString("en-GB",{hour:"2-digit",minute:"2-digit"}),bh=e=>{const t=/[",\n\r]/.test(e);let i=e.replace(/"/g,'""');return t&&(i=`"${i}"`),i},x2=(e,t,i)=>{let n="";const r=[...t],a=()=>r.map(h=>""),s=(h,p,g)=>{const m=r.findIndex(E=>E===p);m<0?(h.push(g),r.push(p)):h[m]=g},l=h=>h.join(i)+`
125
- `,{webforms:u,i18n:c}=e;return u&&Object.keys(u).forEach(p=>{const g=pe.get(u,`${p}`);Object.keys(g).forEach(E=>{const{props:v,resolverName:k}=pe.get(g,E);Array.isArray(v)&&v.forEach(({__dataPath:S,__default:w,...I})=>{const A=a();s(A,"keys",`webforms.${p}.${E}.${S}`),s(A,"__t",bh(w)),s(A,"resolverName",k),Object.keys(I).forEach(y=>{let f=y;y.startsWith("states:")&&(f=y.replace("states:",""),f=f.replace("i18n:","")),s(A,f,bh(I[y]))}),n+=l(A)})})}),c&&Object.keys(c).forEach(p=>{const g=pe.get(c,p);g&&Object.keys(g).forEach(E=>{const v=pe.get(g,E),k=a();s(k,"keys",`i18n.${p}.${E}`),s(k,E==="default"?"i18nkey_default":E,v),n+=l(k)})}),l(r)+n},Qr=(e,t)=>{let i=e;return t.bold&&(i=`**${i}**`),t.italic&&(i=`*${i}*`),t.underlined&&(i=`<u>${i}</u>`),t.strikethrough&&(i=`~~${i}~~`),i},Zr={datasource:e=>{const{datasource:t,dsType:i,format:n,children:r}=e;let a,s="";return r&&r[0]&&(a=r[0],s=`<ds datasource='${t}' dsType='${i}' format='${n}'>${Qr(a.text,a)}</ds>`),s},link:e=>{const{url:t,target:i,datasource:n,isDatasource:r,children:a}=e;let s="";if(a&&a[0]){const{text:l,...u}=a[0];s=`<link datasource='${n}' isDatasource='${r}' url='${t}' target='${i}'>${Qr(l,u)}</link>`}return s},i18n:e=>{const{children:t,__i18n:i}=e;let n="";if(t&&t[0]){const{text:r,...a}=t[0];n=`<i18n __i18n='${i}'>${Qr(r,a)}</i18n>`}return n},defaultElement:e=>{const{text:t}=e;return Qr(t,e)}},b2=e=>{const{type:t,text:i}=e;if(!t&&!i)return"<e/>";switch(t){case"datasource":return Zr.datasource(e);case"link":return Zr.link(e);case"i18n":return Zr.i18n(e);default:return Zr.defaultElement(e)}},y2=e=>e.map(t=>{const{children:i}=t;return i?i.map(n=>b2(n)).join(""):""}).filter(Boolean).join(`
68
+ `),r;function s(o){return i.stack.push(o),l;function l(){i.stack.pop()}}}function ab(e){throw new Error("Cannot handle value `"+e+"`, expected node")}function sb(e){const t=e;throw new Error("Cannot handle unknown node `"+t.type+"`")}function ob(e,t){if(e.type==="definition"&&e.type===t.type)return 0}function lb(e,t){return Yv(e,this,t)}function ub(e,t){return Qv(e,this,t)}function cb(e,t){return tb(this,e,t)}function hb(e){const t=this;t.compiler=n;function n(i){return rb(i,{...t.data("settings"),...e,extensions:t.data("toMarkdownExtensions")||[]})}}function Ll(e){if(e)throw e}var sa,Ml;function fb(){if(Ml)return sa;Ml=1;var e=Object.prototype.hasOwnProperty,t=Object.prototype.toString,n=Object.defineProperty,i=Object.getOwnPropertyDescriptor,r=function(f){return typeof Array.isArray=="function"?Array.isArray(f):t.call(f)==="[object Array]"},s=function(f){if(!f||t.call(f)!=="[object Object]")return!1;var p=e.call(f,"constructor"),h=f.constructor&&f.constructor.prototype&&e.call(f.constructor.prototype,"isPrototypeOf");if(f.constructor&&!p&&!h)return!1;var d;for(d in f);return typeof d>"u"||e.call(f,d)},o=function(f,p){n&&p.name==="__proto__"?n(f,p.name,{enumerable:!0,configurable:!0,value:p.newValue,writable:!0}):f[p.name]=p.newValue},l=function(f,p){if(p==="__proto__")if(e.call(f,p)){if(i)return i(f,p).value}else return;return f[p]};return sa=function u(){var f,p,h,d,m,b,v=arguments[0],S=1,E=arguments.length,k=!1;for(typeof v=="boolean"&&(k=v,v=arguments[1]||{},S=2),(v==null||typeof v!="object"&&typeof v!="function")&&(v={});S<E;++S)if(f=arguments[S],f!=null)for(p in f)h=l(v,p),d=l(f,p),v!==d&&(k&&d&&(s(d)||(m=r(d)))?(m?(m=!1,b=h&&r(h)?h:[]):b=h&&s(h)?h:{},o(v,{name:p,newValue:u(k,b,d)})):typeof d<"u"&&o(v,{name:p,newValue:d}));return v},sa}var pb=fb();const oa=Lr(pb);function Ya(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 db(){const e=[],t={run:n,use:i};return t;function n(...r){let s=-1;const o=r.pop();if(typeof o!="function")throw new TypeError("Expected function as last argument, not "+o);l(null,...r);function l(u,...f){const p=e[++s];let h=-1;if(u){o(u);return}for(;++h<r.length;)(f[h]===null||f[h]===void 0)&&(f[h]=r[h]);r=f,p?gb(p,l)(...f):o(null,...f)}}function i(r){if(typeof r!="function")throw new TypeError("Expected `middelware` to be a function, not "+r);return e.push(r),t}}function gb(e,t){let n;return i;function i(...o){const l=e.length>o.length;let u;l&&o.push(r);try{u=e.apply(this,o)}catch(f){const p=f;if(l&&n)throw p;return r(p)}l||(u&&u.then&&typeof u.then=="function"?u.then(s,r):u instanceof Error?r(u):s(u))}function r(o,...l){n||(n=!0,t(o,...l))}function s(o){r(null,o)}}const Ht={basename:mb,dirname:xb,extname:vb,join:bb,sep:"/"};function mb(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');_i(e);let n=0,i=-1,r=e.length,s;if(t===void 0||t.length===0||t.length>e.length){for(;r--;)if(e.codePointAt(r)===47){if(s){n=r+1;break}}else i<0&&(s=!0,i=r+1);return i<0?"":e.slice(n,i)}if(t===e)return"";let o=-1,l=t.length-1;for(;r--;)if(e.codePointAt(r)===47){if(s){n=r+1;break}}else o<0&&(s=!0,o=r+1),l>-1&&(e.codePointAt(r)===t.codePointAt(l--)?l<0&&(i=r):(l=-1,i=o));return n===i?i=o:i<0&&(i=e.length),e.slice(n,i)}function xb(e){if(_i(e),e.length===0)return".";let t=-1,n=e.length,i;for(;--n;)if(e.codePointAt(n)===47){if(i){t=n;break}}else i||(i=!0);return t<0?e.codePointAt(0)===47?"/":".":t===1&&e.codePointAt(0)===47?"//":e.slice(0,t)}function vb(e){_i(e);let t=e.length,n=-1,i=0,r=-1,s=0,o;for(;t--;){const l=e.codePointAt(t);if(l===47){if(o){i=t+1;break}continue}n<0&&(o=!0,n=t+1),l===46?r<0?r=t:s!==1&&(s=1):r>-1&&(s=-1)}return r<0||n<0||s===0||s===1&&r===n-1&&r===i+1?"":e.slice(r,n)}function bb(...e){let t=-1,n;for(;++t<e.length;)_i(e[t]),e[t]&&(n=n===void 0?e[t]:n+"/"+e[t]);return n===void 0?".":yb(n)}function yb(e){_i(e);const t=e.codePointAt(0)===47;let n=wb(e,!t);return n.length===0&&!t&&(n="."),n.length>0&&e.codePointAt(e.length-1)===47&&(n+="/"),t?"/"+n:n}function wb(e,t){let n="",i=0,r=-1,s=0,o=-1,l,u;for(;++o<=e.length;){if(o<e.length)l=e.codePointAt(o);else{if(l===47)break;l=47}if(l===47){if(!(r===o-1||s===1))if(r!==o-1&&s===2){if(n.length<2||i!==2||n.codePointAt(n.length-1)!==46||n.codePointAt(n.length-2)!==46){if(n.length>2){if(u=n.lastIndexOf("/"),u!==n.length-1){u<0?(n="",i=0):(n=n.slice(0,u),i=n.length-1-n.lastIndexOf("/")),r=o,s=0;continue}}else if(n.length>0){n="",i=0,r=o,s=0;continue}}t&&(n=n.length>0?n+"/..":"..",i=2)}else n.length>0?n+="/"+e.slice(r+1,o):n=e.slice(r+1,o),i=o-r-1;r=o,s=0}else l===46&&s>-1?s++:s=-1}return n}function _i(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const Eb={cwd:Sb};function Sb(){return"/"}function Qa(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function kb(e){if(typeof e=="string")e=new URL(e);else if(!Qa(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 Cb(e)}function Cb(e){if(e.hostname!==""){const i=new TypeError('File URL host must be "localhost" or empty on darwin');throw i.code="ERR_INVALID_FILE_URL_HOST",i}const t=e.pathname;let n=-1;for(;++n<t.length;)if(t.codePointAt(n)===37&&t.codePointAt(n+1)===50){const i=t.codePointAt(n+2);if(i===70||i===102){const r=new TypeError("File URL path must not include encoded / characters");throw r.code="ERR_INVALID_FILE_URL_PATH",r}}return decodeURIComponent(t)}const la=["history","path","basename","stem","extname","dirname"];class _b{constructor(t){let n;t?Qa(t)?n={path:t}:typeof t=="string"||Ib(t)?n={value:t}:n=t:n={},this.cwd="cwd"in n?"":Eb.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let i=-1;for(;++i<la.length;){const s=la[i];s in n&&n[s]!==void 0&&n[s]!==null&&(this[s]=s==="history"?[...n[s]]:n[s])}let r;for(r in n)la.includes(r)||(this[r]=n[r])}get basename(){return typeof this.path=="string"?Ht.basename(this.path):void 0}set basename(t){ca(t,"basename"),ua(t,"basename"),this.path=Ht.join(this.dirname||"",t)}get dirname(){return typeof this.path=="string"?Ht.dirname(this.path):void 0}set dirname(t){Fl(this.basename,"dirname"),this.path=Ht.join(t||"",this.basename)}get extname(){return typeof this.path=="string"?Ht.extname(this.path):void 0}set extname(t){if(ua(t,"extname"),Fl(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=Ht.join(this.dirname,this.stem+(t||""))}get path(){return this.history[this.history.length-1]}set path(t){Qa(t)&&(t=kb(t)),ca(t,"path"),this.path!==t&&this.history.push(t)}get stem(){return typeof this.path=="string"?Ht.basename(this.path,this.extname):void 0}set stem(t){ca(t,"stem"),ua(t,"stem"),this.path=Ht.join(this.dirname||"",t+(this.extname||""))}fail(t,n,i){const r=this.message(t,n,i);throw r.fatal=!0,r}info(t,n,i){const r=this.message(t,n,i);return r.fatal=void 0,r}message(t,n,i){const r=new qe(t,n,i);return this.path&&(r.name=this.path+":"+r.name,r.file=this.path),r.fatal=!1,this.messages.push(r),r}toString(t){return this.value===void 0?"":typeof this.value=="string"?this.value:new TextDecoder(t||void 0).decode(this.value)}}function ua(e,t){if(e&&e.includes(Ht.sep))throw new Error("`"+t+"` cannot be a path: did not expect `"+Ht.sep+"`")}function ca(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function Fl(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}function Ib(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const Ab=(function(e){const i=this.constructor.prototype,r=i[e],s=function(){return r.apply(s,arguments)};return Object.setPrototypeOf(s,i),s}),Tb={}.hasOwnProperty;class Es extends Ab{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=db()}copy(){const t=new Es;let n=-1;for(;++n<this.attachers.length;){const i=this.attachers[n];t.use(...i)}return t.data(oa(!0,{},this.namespace)),t}data(t,n){return typeof t=="string"?arguments.length===2?(pa("data",this.frozen),this.namespace[t]=n,this):Tb.call(this.namespace,t)&&this.namespace[t]||void 0:t?(pa("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,...i]=this.attachers[this.freezeIndex];if(i[0]===!1)continue;i[0]===!0&&(i[0]=void 0);const r=n.call(t,...i);typeof r=="function"&&this.transformers.use(r)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(t){this.freeze();const n=ji(t),i=this.parser||this.Parser;return ha("parse",i),i(String(n),n)}process(t,n){const i=this;return this.freeze(),ha("process",this.parser||this.Parser),fa("process",this.compiler||this.Compiler),n?r(void 0,n):new Promise(r);function r(s,o){const l=ji(t),u=i.parse(l);i.run(u,l,function(p,h,d){if(p||!h||!d)return f(p);const m=h,b=i.stringify(m,d);Ob(b)?d.value=b:d.result=b,f(p,d)});function f(p,h){p||!h?o(p):s?s(h):n(void 0,h)}}}processSync(t){let n=!1,i;return this.freeze(),ha("processSync",this.parser||this.Parser),fa("processSync",this.compiler||this.Compiler),this.process(t,r),jl("processSync","process",n),i;function r(s,o){n=!0,Ll(s),i=o}}run(t,n,i){Dl(t),this.freeze();const r=this.transformers;return!i&&typeof n=="function"&&(i=n,n=void 0),i?s(void 0,i):new Promise(s);function s(o,l){const u=ji(n);r.run(t,u,f);function f(p,h,d){const m=h||t;p?l(p):o?o(m):i(void 0,m,d)}}}runSync(t,n){let i=!1,r;return this.run(t,n,s),jl("runSync","run",i),r;function s(o,l){Ll(o),r=l,i=!0}}stringify(t,n){this.freeze();const i=ji(n),r=this.compiler||this.Compiler;return fa("stringify",r),Dl(t),r(t,i)}use(t,...n){const i=this.attachers,r=this.namespace;if(pa("use",this.frozen),t!=null)if(typeof t=="function")u(t,n);else if(typeof t=="object")Array.isArray(t)?l(t):o(t);else throw new TypeError("Expected usable value, not `"+t+"`");return this;function s(f){if(typeof f=="function")u(f,[]);else if(typeof f=="object")if(Array.isArray(f)){const[p,...h]=f;u(p,h)}else o(f);else throw new TypeError("Expected usable value, not `"+f+"`")}function o(f){if(!("plugins"in f)&&!("settings"in f))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");l(f.plugins),f.settings&&(r.settings=oa(!0,r.settings,f.settings))}function l(f){let p=-1;if(f!=null)if(Array.isArray(f))for(;++p<f.length;){const h=f[p];s(h)}else throw new TypeError("Expected a list of plugins, not `"+f+"`")}function u(f,p){let h=-1,d=-1;for(;++h<i.length;)if(i[h][0]===f){d=h;break}if(d===-1)i.push([f,...p]);else if(p.length>0){let[m,...b]=p;const v=i[d][1];Ya(v)&&Ya(m)&&(m=oa(!0,v,m)),i[d]=[f,m,...b]}}}}const Nb=new Es().freeze();function ha(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function fa(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function pa(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 Dl(e){if(!Ya(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function jl(e,t,n){if(!n)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function ji(e){return Pb(e)?e:new _b(e)}function Pb(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function Ob(e){return typeof e=="string"||Rb(e)}function Rb(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const Lb=Nb().use(tv).use(hb).freeze();function Mb(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}function Fb(e,t,n){const r=Dr((n||{}).ignore||[]),s=Db(t);let o=-1;for(;++o<s.length;)Eh(e,"text",l);function l(f,p){let h=-1,d;for(;++h<p.length;){const m=p[h],b=d?d.children:void 0;if(r(m,b?b.indexOf(m):void 0,d))return;d=m}if(d)return u(f,p)}function u(f,p){const h=p[p.length-1],d=s[o][0],m=s[o][1];let b=0;const S=h.children.indexOf(f);let E=!1,k=[];d.lastIndex=0;let I=d.exec(f.value);for(;I;){const N=I.index,y={index:I.index,input:I.input,stack:[...p,f]};let g=m(...I,y);if(typeof g=="string"&&(g=g.length>0?{type:"text",value:g}:void 0),g===!1?d.lastIndex=N+1:(b!==N&&k.push({type:"text",value:f.value.slice(b,N)}),Array.isArray(g)?k.push(...g):g&&k.push(g),b=N+I[0].length,E=!0),!d.global)break;I=d.exec(f.value)}return E?(b<f.value.length&&k.push({type:"text",value:f.value.slice(b)}),h.children.splice(S,1,...k)):k=[f],S+k.length}}function Db(e){const t=[];if(!Array.isArray(e))throw new TypeError("Expected find and replace tuple or list of tuples");const n=!e[0]||Array.isArray(e[0])?e:[e];let i=-1;for(;++i<n.length;){const r=n[i];t.push([jb(r[0]),Vb(r[1])])}return t}function jb(e){return typeof e=="string"?new RegExp(Mb(e),"g"):e}function Vb(e){return typeof e=="function"?e:function(){return e}}const da="phrasing",ga=["autolink","link","image","label"];function Bb(){return{transforms:[Wb],enter:{literalAutolink:Kb,literalAutolinkEmail:ma,literalAutolinkHttp:ma,literalAutolinkWww:ma},exit:{literalAutolink:qb,literalAutolinkEmail:$b,literalAutolinkHttp:Ub,literalAutolinkWww:Hb}}}function zb(){return{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:da,notInConstruct:ga},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:da,notInConstruct:ga},{character:":",before:"[ps]",after:"\\/",inConstruct:da,notInConstruct:ga}]}}function Kb(e){this.enter({type:"link",title:null,url:"",children:[]},e)}function ma(e){this.config.enter.autolinkProtocol.call(this,e)}function Ub(e){this.config.exit.autolinkProtocol.call(this,e)}function Hb(e){this.config.exit.data.call(this,e);const t=this.stack[this.stack.length-1];t.type,t.url="http://"+this.sliceSerialize(e)}function $b(e){this.config.exit.autolinkEmail.call(this,e)}function qb(e){this.exit(e)}function Wb(e){Fb(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,Gb],[new RegExp("(?<=^|\\s|\\p{P}|\\p{S})([-.\\w+]+)@([-\\w]+(?:\\.[-\\w]+)+)","gu"),Jb]],{ignore:["link","linkReference"]})}function Gb(e,t,n,i,r){let s="";if(!Mh(r)||(/^w/i.test(t)&&(n=t+n,t="",s="http://"),!Yb(n)))return!1;const o=Qb(n+i);if(!o[0])return!1;const l={type:"link",title:null,url:s+t+o[0],children:[{type:"text",value:t+o[0]}]};return o[1]?[l,{type:"text",value:o[1]}]:l}function Jb(e,t,n,i){return!Mh(i,!0)||/[-\d_]$/.test(n)?!1:{type:"link",title:null,url:"mailto:"+t+"@"+n,children:[{type:"text",value:t+"@"+n}]}}function Yb(e){const t=e.split(".");return!(t.length<2||t[t.length-1]&&(/_/.test(t[t.length-1])||!/[a-zA-Z\d]/.test(t[t.length-1]))||t[t.length-2]&&(/_/.test(t[t.length-2])||!/[a-zA-Z\d]/.test(t[t.length-2])))}function Qb(e){const t=/[!"&'),.:;<>?\]}]+$/.exec(e);if(!t)return[e,void 0];e=e.slice(0,t.index);let n=t[0],i=n.indexOf(")");const r=ur(e,"(");let s=ur(e,")");for(;i!==-1&&r>s;)e+=n.slice(0,i+1),n=n.slice(i+1),i=n.indexOf(")"),s++;return[e,n]}function Mh(e,t){const n=e.input.charCodeAt(e.index-1);return(e.index===0||ct(n)||Mr(n))&&(!t||n!==47)}Fh.peek=sy;function Zb(){this.buffer()}function Xb(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function ey(){this.buffer()}function ty(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function ny(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=zt(this.sliceSerialize(e)).toLowerCase(),n.label=t}function iy(e){this.exit(e)}function ry(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=zt(this.sliceSerialize(e)).toLowerCase(),n.label=t}function ay(e){this.exit(e)}function sy(){return"["}function Fh(e,t,n,i){const r=n.createTracker(i);let s=r.move("[^");const o=n.enter("footnoteReference"),l=n.enter("reference");return s+=r.move(n.safe(n.associationId(e),{after:"]",before:s})),l(),o(),s+=r.move("]"),s}function oy(){return{enter:{gfmFootnoteCallString:Zb,gfmFootnoteCall:Xb,gfmFootnoteDefinitionLabelString:ey,gfmFootnoteDefinition:ty},exit:{gfmFootnoteCallString:ny,gfmFootnoteCall:iy,gfmFootnoteDefinitionLabelString:ry,gfmFootnoteDefinition:ay}}}function ly(e){let t=!1;return e&&e.firstLineBlank&&(t=!0),{handlers:{footnoteDefinition:n,footnoteReference:Fh},unsafe:[{character:"[",inConstruct:["label","phrasing","reference"]}]};function n(i,r,s,o){const l=s.createTracker(o);let u=l.move("[^");const f=s.enter("footnoteDefinition"),p=s.enter("label");return u+=l.move(s.safe(s.associationId(i),{before:u,after:"]"})),p(),u+=l.move("]:"),i.children&&i.children.length>0&&(l.shift(4),u+=l.move((t?`
69
+ `:" ")+s.indentLines(s.containerFlow(i,l.current()),t?Dh:uy))),f(),u}}function uy(e,t,n){return t===0?e:Dh(e,t,n)}function Dh(e,t,n){return(n?"":" ")+e}const cy=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];jh.peek=gy;function hy(){return{canContainEols:["delete"],enter:{strikethrough:py},exit:{strikethrough:dy}}}function fy(){return{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:cy}],handlers:{delete:jh}}}function py(e){this.enter({type:"delete",children:[]},e)}function dy(e){this.exit(e)}function jh(e,t,n,i){const r=n.createTracker(i),s=n.enter("strikethrough");let o=r.move("~~");return o+=n.containerPhrasing(e,{...r.current(),before:o,after:"~"}),o+=r.move("~~"),s(),o}function gy(){return"~"}function my(e){return e.length}function xy(e,t){const n=t||{},i=(n.align||[]).concat(),r=n.stringLength||my,s=[],o=[],l=[],u=[];let f=0,p=-1;for(;++p<e.length;){const v=[],S=[];let E=-1;for(e[p].length>f&&(f=e[p].length);++E<e[p].length;){const k=vy(e[p][E]);if(n.alignDelimiters!==!1){const I=r(k);S[E]=I,(u[E]===void 0||I>u[E])&&(u[E]=I)}v.push(k)}o[p]=v,l[p]=S}let h=-1;if(typeof i=="object"&&"length"in i)for(;++h<f;)s[h]=Vl(i[h]);else{const v=Vl(i);for(;++h<f;)s[h]=v}h=-1;const d=[],m=[];for(;++h<f;){const v=s[h];let S="",E="";v===99?(S=":",E=":"):v===108?S=":":v===114&&(E=":");let k=n.alignDelimiters===!1?1:Math.max(1,u[h]-S.length-E.length);const I=S+"-".repeat(k)+E;n.alignDelimiters!==!1&&(k=S.length+k+E.length,k>u[h]&&(u[h]=k),m[h]=k),d[h]=I}o.splice(1,0,d),l.splice(1,0,m),p=-1;const b=[];for(;++p<o.length;){const v=o[p],S=l[p];h=-1;const E=[];for(;++h<f;){const k=v[h]||"";let I="",N="";if(n.alignDelimiters!==!1){const y=u[h]-(S[h]||0),g=s[h];g===114?I=" ".repeat(y):g===99?y%2?(I=" ".repeat(y/2+.5),N=" ".repeat(y/2-.5)):(I=" ".repeat(y/2),N=I):N=" ".repeat(y)}n.delimiterStart!==!1&&!h&&E.push("|"),n.padding!==!1&&!(n.alignDelimiters===!1&&k==="")&&(n.delimiterStart!==!1||h)&&E.push(" "),n.alignDelimiters!==!1&&E.push(I),E.push(k),n.alignDelimiters!==!1&&E.push(N),n.padding!==!1&&E.push(" "),(n.delimiterEnd!==!1||h!==f-1)&&E.push("|")}b.push(n.delimiterEnd===!1?E.join("").replace(/ +$/,""):E.join(""))}return b.join(`
70
+ `)}function vy(e){return e==null?"":String(e)}function Vl(e){const t=typeof e=="string"?e.codePointAt(0):0;return t===67||t===99?99:t===76||t===108?108:t===82||t===114?114:0}function by(){return{enter:{table:yy,tableData:Bl,tableHeader:Bl,tableRow:Ey},exit:{codeText:Sy,table:wy,tableData:xa,tableHeader:xa,tableRow:xa}}}function yy(e){const t=e._align;this.enter({type:"table",align:t.map(function(n){return n==="none"?null:n}),children:[]},e),this.data.inTable=!0}function wy(e){this.exit(e),this.data.inTable=void 0}function Ey(e){this.enter({type:"tableRow",children:[]},e)}function xa(e){this.exit(e)}function Bl(e){this.enter({type:"tableCell",children:[]},e)}function Sy(e){let t=this.resume();this.data.inTable&&(t=t.replace(/\\([\\|])/g,ky));const n=this.stack[this.stack.length-1];n.type,n.value=t,this.exit(e)}function ky(e,t){return t==="|"?t:e}function Cy(e){const t=e||{},n=t.tableCellPadding,i=t.tablePipeAlign,r=t.stringLength,s=n?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:`
71
+ `,inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[ :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{inlineCode:d,table:o,tableCell:u,tableRow:l}};function o(m,b,v,S){return f(p(m,v,S),m.align)}function l(m,b,v,S){const E=h(m,v,S),k=f([E]);return k.slice(0,k.indexOf(`
72
+ `))}function u(m,b,v,S){const E=v.enter("tableCell"),k=v.enter("phrasing"),I=v.containerPhrasing(m,{...S,before:s,after:s});return k(),E(),I}function f(m,b){return xy(m,{align:b,alignDelimiters:i,padding:n,stringLength:r})}function p(m,b,v){const S=m.children;let E=-1;const k=[],I=b.enter("table");for(;++E<S.length;)k[E]=h(S[E],b,v);return I(),k}function h(m,b,v){const S=m.children;let E=-1;const k=[],I=b.enter("tableRow");for(;++E<S.length;)k[E]=u(S[E],m,b,v);return I(),k}function d(m,b,v){let S=ws.inlineCode(m,b,v);return v.stack.includes("tableCell")&&(S=S.replace(/\|/g,"\\$&")),S}}function _y(){return{exit:{taskListCheckValueChecked:zl,taskListCheckValueUnchecked:zl,paragraph:Ay}}}function Iy(){return{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:Ty}}}function zl(e){const t=this.stack[this.stack.length-2];t.type,t.checked=e.type==="taskListCheckValueChecked"}function Ay(e){const t=this.stack[this.stack.length-2];if(t&&t.type==="listItem"&&typeof t.checked=="boolean"){const n=this.stack[this.stack.length-1];n.type;const i=n.children[0];if(i&&i.type==="text"){const r=t.children;let s=-1,o;for(;++s<r.length;){const l=r[s];if(l.type==="paragraph"){o=l;break}}o===n&&(i.value=i.value.slice(1),i.value.length===0?n.children.shift():n.position&&i.position&&typeof i.position.start.offset=="number"&&(i.position.start.column++,i.position.start.offset++,n.position.start=Object.assign({},i.position.start)))}}this.exit(e)}function Ty(e,t,n,i){const r=e.children[0],s=typeof e.checked=="boolean"&&r&&r.type==="paragraph",o="["+(e.checked?"x":" ")+"] ",l=n.createTracker(i);s&&l.move(o);let u=ws.listItem(e,t,n,{...i,...l.current()});return s&&(u=u.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,f)),u;function f(p){return p+o}}function Ny(){return[Bb(),oy(),hy(),by(),_y()]}function Py(e){return{extensions:[zb(),ly(e),fy(),Cy(e),Iy()]}}const Oy={tokenize:jy,partial:!0},Vh={tokenize:Vy,partial:!0},Bh={tokenize:By,partial:!0},zh={tokenize:zy,partial:!0},Ry={tokenize:Ky,partial:!0},Kh={name:"wwwAutolink",tokenize:Fy,previous:Hh},Uh={name:"protocolAutolink",tokenize:Dy,previous:$h},un={name:"emailAutolink",tokenize:My,previous:qh},Qt={};function Ly(){return{text:Qt}}let kn=48;for(;kn<123;)Qt[kn]=un,kn++,kn===58?kn=65:kn===91&&(kn=97);Qt[43]=un;Qt[45]=un;Qt[46]=un;Qt[95]=un;Qt[72]=[un,Uh];Qt[104]=[un,Uh];Qt[87]=[un,Kh];Qt[119]=[un,Kh];function My(e,t,n){const i=this;let r,s;return o;function o(h){return!Za(h)||!qh.call(i,i.previous)||Ss(i.events)?n(h):(e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),l(h))}function l(h){return Za(h)?(e.consume(h),l):h===64?(e.consume(h),u):n(h)}function u(h){return h===46?e.check(Ry,p,f)(h):h===45||h===95||gt(h)?(s=!0,e.consume(h),u):p(h)}function f(h){return e.consume(h),r=!0,u}function p(h){return s&&r&&lt(i.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),t(h)):n(h)}}function Fy(e,t,n){const i=this;return r;function r(o){return o!==87&&o!==119||!Hh.call(i,i.previous)||Ss(i.events)?n(o):(e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(Oy,e.attempt(Vh,e.attempt(Bh,s),n),n)(o))}function s(o){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),t(o)}}function Dy(e,t,n){const i=this;let r="",s=!1;return o;function o(h){return(h===72||h===104)&&$h.call(i,i.previous)&&!Ss(i.events)?(e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),r+=String.fromCodePoint(h),e.consume(h),l):n(h)}function l(h){if(lt(h)&&r.length<5)return r+=String.fromCodePoint(h),e.consume(h),l;if(h===58){const d=r.toLowerCase();if(d==="http"||d==="https")return e.consume(h),u}return n(h)}function u(h){return h===47?(e.consume(h),s?f:(s=!0,u)):n(h)}function f(h){return h===null||dr(h)||Ke(h)||ct(h)||Mr(h)?n(h):e.attempt(Vh,e.attempt(Bh,p),n)(h)}function p(h){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),t(h)}}function jy(e,t,n){let i=0;return r;function r(o){return(o===87||o===119)&&i<3?(i++,e.consume(o),r):o===46&&i===3?(e.consume(o),s):n(o)}function s(o){return o===null?n(o):t(o)}}function Vy(e,t,n){let i,r,s;return o;function o(f){return f===46||f===95?e.check(zh,u,l)(f):f===null||Ke(f)||ct(f)||f!==45&&Mr(f)?u(f):(s=!0,e.consume(f),o)}function l(f){return f===95?i=!0:(r=i,i=void 0),e.consume(f),o}function u(f){return r||i||!s?n(f):t(f)}}function By(e,t){let n=0,i=0;return r;function r(o){return o===40?(n++,e.consume(o),r):o===41&&i<n?s(o):o===33||o===34||o===38||o===39||o===41||o===42||o===44||o===46||o===58||o===59||o===60||o===63||o===93||o===95||o===126?e.check(zh,t,s)(o):o===null||Ke(o)||ct(o)?t(o):(e.consume(o),r)}function s(o){return o===41&&i++,e.consume(o),r}}function zy(e,t,n){return i;function i(l){return l===33||l===34||l===39||l===41||l===42||l===44||l===46||l===58||l===59||l===63||l===95||l===126?(e.consume(l),i):l===38?(e.consume(l),s):l===93?(e.consume(l),r):l===60||l===null||Ke(l)||ct(l)?t(l):n(l)}function r(l){return l===null||l===40||l===91||Ke(l)||ct(l)?t(l):i(l)}function s(l){return lt(l)?o(l):n(l)}function o(l){return l===59?(e.consume(l),i):lt(l)?(e.consume(l),o):n(l)}}function Ky(e,t,n){return i;function i(s){return e.consume(s),r}function r(s){return gt(s)?n(s):t(s)}}function Hh(e){return e===null||e===40||e===42||e===95||e===91||e===93||e===126||Ke(e)}function $h(e){return!lt(e)}function qh(e){return!(e===47||Za(e))}function Za(e){return e===43||e===45||e===46||e===95||gt(e)}function Ss(e){let t=e.length,n=!1;for(;t--;){const i=e[t][1];if((i.type==="labelLink"||i.type==="labelImage")&&!i._balanced){n=!0;break}if(i._gfmAutolinkLiteralWalkedInto){n=!1;break}}return e.length>0&&!n&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),n}const Uy={tokenize:Qy,partial:!0};function Hy(){return{document:{91:{name:"gfmFootnoteDefinition",tokenize:Gy,continuation:{tokenize:Jy},exit:Yy}},text:{91:{name:"gfmFootnoteCall",tokenize:Wy},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:$y,resolveTo:qy}}}}function $y(e,t,n){const i=this;let r=i.events.length;const s=i.parser.gfmFootnotes||(i.parser.gfmFootnotes=[]);let o;for(;r--;){const u=i.events[r][1];if(u.type==="labelImage"){o=u;break}if(u.type==="gfmFootnoteCall"||u.type==="labelLink"||u.type==="label"||u.type==="image"||u.type==="link")break}return l;function l(u){if(!o||!o._balanced)return n(u);const f=zt(i.sliceSerialize({start:o.end,end:i.now()}));return f.codePointAt(0)!==94||!s.includes(f.slice(1))?n(u):(e.enter("gfmFootnoteCallLabelMarker"),e.consume(u),e.exit("gfmFootnoteCallLabelMarker"),t(u))}}function qy(e,t){let n=e.length;for(;n--;)if(e[n][1].type==="labelImage"&&e[n][0]==="enter"){e[n][1];break}e[n+1][1].type="data",e[n+3][1].type="gfmFootnoteCallLabelMarker";const i={type:"gfmFootnoteCall",start:Object.assign({},e[n+3][1].start),end:Object.assign({},e[e.length-1][1].end)},r={type:"gfmFootnoteCallMarker",start:Object.assign({},e[n+3][1].end),end:Object.assign({},e[n+3][1].end)};r.end.column++,r.end.offset++,r.end._bufferIndex++;const s={type:"gfmFootnoteCallString",start:Object.assign({},r.end),end:Object.assign({},e[e.length-1][1].start)},o={type:"chunkString",contentType:"string",start:Object.assign({},s.start),end:Object.assign({},s.end)},l=[e[n+1],e[n+2],["enter",i,t],e[n+3],e[n+4],["enter",r,t],["exit",r,t],["enter",s,t],["enter",o,t],["exit",o,t],["exit",s,t],e[e.length-2],e[e.length-1],["exit",i,t]];return e.splice(n,e.length-n+1,...l),e}function Wy(e,t,n){const i=this,r=i.parser.gfmFootnotes||(i.parser.gfmFootnotes=[]);let s=0,o;return l;function l(h){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(h),e.exit("gfmFootnoteCallLabelMarker"),u}function u(h){return h!==94?n(h):(e.enter("gfmFootnoteCallMarker"),e.consume(h),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",f)}function f(h){if(s>999||h===93&&!o||h===null||h===91||Ke(h))return n(h);if(h===93){e.exit("chunkString");const d=e.exit("gfmFootnoteCallString");return r.includes(zt(i.sliceSerialize(d)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(h),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),t):n(h)}return Ke(h)||(o=!0),s++,e.consume(h),h===92?p:f}function p(h){return h===91||h===92||h===93?(e.consume(h),s++,f):f(h)}}function Gy(e,t,n){const i=this,r=i.parser.gfmFootnotes||(i.parser.gfmFootnotes=[]);let s,o=0,l;return u;function u(b){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(b),e.exit("gfmFootnoteDefinitionLabelMarker"),f}function f(b){return b===94?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(b),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",p):n(b)}function p(b){if(o>999||b===93&&!l||b===null||b===91||Ke(b))return n(b);if(b===93){e.exit("chunkString");const v=e.exit("gfmFootnoteDefinitionLabelString");return s=zt(i.sliceSerialize(v)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(b),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),d}return Ke(b)||(l=!0),o++,e.consume(b),b===92?h:p}function h(b){return b===91||b===92||b===93?(e.consume(b),o++,p):p(b)}function d(b){return b===58?(e.enter("definitionMarker"),e.consume(b),e.exit("definitionMarker"),r.includes(s)||r.push(s),je(e,m,"gfmFootnoteDefinitionWhitespace")):n(b)}function m(b){return t(b)}}function Jy(e,t,n){return e.check(ti,t,e.attempt(Uy,t,n))}function Yy(e){e.exit("gfmFootnoteDefinition")}function Qy(e,t,n){const i=this;return je(e,r,"gfmFootnoteDefinitionIndent",5);function r(s){const o=i.events[i.events.length-1];return o&&o[1].type==="gfmFootnoteDefinitionIndent"&&o[2].sliceSerialize(o[1],!0).length===4?t(s):n(s)}}function Zy(e){let n=(e||{}).singleTilde;const i={name:"strikethrough",tokenize:s,resolveAll:r};return n==null&&(n=!0),{text:{126:i},insideSpan:{null:[i]},attentionMarkers:{null:[126]}};function r(o,l){let u=-1;for(;++u<o.length;)if(o[u][0]==="enter"&&o[u][1].type==="strikethroughSequenceTemporary"&&o[u][1]._close){let f=u;for(;f--;)if(o[f][0]==="exit"&&o[f][1].type==="strikethroughSequenceTemporary"&&o[f][1]._open&&o[u][1].end.offset-o[u][1].start.offset===o[f][1].end.offset-o[f][1].start.offset){o[u][1].type="strikethroughSequence",o[f][1].type="strikethroughSequence";const p={type:"strikethrough",start:Object.assign({},o[f][1].start),end:Object.assign({},o[u][1].end)},h={type:"strikethroughText",start:Object.assign({},o[f][1].end),end:Object.assign({},o[u][1].start)},d=[["enter",p,l],["enter",o[f][1],l],["exit",o[f][1],l],["enter",h,l]],m=l.parser.constructs.insideSpan.null;m&&Et(d,d.length,0,Fr(m,o.slice(f+1,u),l)),Et(d,d.length,0,[["exit",h,l],["enter",o[u][1],l],["exit",o[u][1],l],["exit",p,l]]),Et(o,f-1,u-f+3,d),u=f+d.length-2;break}}for(u=-1;++u<o.length;)o[u][1].type==="strikethroughSequenceTemporary"&&(o[u][1].type="data");return o}function s(o,l,u){const f=this.previous,p=this.events;let h=0;return d;function d(b){return f===126&&p[p.length-1][1].type!=="characterEscape"?u(b):(o.enter("strikethroughSequenceTemporary"),m(b))}function m(b){const v=qn(f);if(b===126)return h>1?u(b):(o.consume(b),h++,m);if(h<2&&!n)return u(b);const S=o.exit("strikethroughSequenceTemporary"),E=qn(b);return S._open=!E||E===2&&!!v,S._close=!v||v===2&&!!E,l(b)}}}class Xy{constructor(){this.map=[]}add(t,n,i){e1(this,t,n,i)}consume(t){if(this.map.sort(function(s,o){return s[0]-o[0]}),this.map.length===0)return;let n=this.map.length;const i=[];for(;n>0;)n-=1,i.push(t.slice(this.map[n][0]+this.map[n][1]),this.map[n][2]),t.length=this.map[n][0];i.push(t.slice()),t.length=0;let r=i.pop();for(;r;){for(const s of r)t.push(s);r=i.pop()}this.map.length=0}}function e1(e,t,n,i){let r=0;if(!(n===0&&i.length===0)){for(;r<e.map.length;){if(e.map[r][0]===t){e.map[r][1]+=n,e.map[r][2].push(...i);return}r+=1}e.map.push([t,n,i])}}function t1(e,t){let n=!1;const i=[];for(;t<e.length;){const r=e[t];if(n){if(r[0]==="enter")r[1].type==="tableContent"&&i.push(e[t+1][1].type==="tableDelimiterMarker"?"left":"none");else if(r[1].type==="tableContent"){if(e[t-1][1].type==="tableDelimiterMarker"){const s=i.length-1;i[s]=i[s]==="left"?"center":"right"}}else if(r[1].type==="tableDelimiterRow")break}else r[0]==="enter"&&r[1].type==="tableDelimiterRow"&&(n=!0);t+=1}return i}function n1(){return{flow:{null:{name:"table",tokenize:i1,resolveAll:r1}}}}function i1(e,t,n){const i=this;let r=0,s=0,o;return l;function l(R){let j=i.events.length-1;for(;j>-1;){const se=i.events[j][1].type;if(se==="lineEnding"||se==="linePrefix")j--;else break}const B=j>-1?i.events[j][1].type:null,D=B==="tableHead"||B==="tableRow"?g:u;return D===g&&i.parser.lazy[i.now().line]?n(R):D(R)}function u(R){return e.enter("tableHead"),e.enter("tableRow"),f(R)}function f(R){return R===124||(o=!0,s+=1),p(R)}function p(R){return R===null?n(R):_e(R)?s>1?(s=0,i.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(R),e.exit("lineEnding"),m):n(R):Me(R)?je(e,p,"whitespace")(R):(s+=1,o&&(o=!1,r+=1),R===124?(e.enter("tableCellDivider"),e.consume(R),e.exit("tableCellDivider"),o=!0,p):(e.enter("data"),h(R)))}function h(R){return R===null||R===124||Ke(R)?(e.exit("data"),p(R)):(e.consume(R),R===92?d:h)}function d(R){return R===92||R===124?(e.consume(R),h):h(R)}function m(R){return i.interrupt=!1,i.parser.lazy[i.now().line]?n(R):(e.enter("tableDelimiterRow"),o=!1,Me(R)?je(e,b,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(R):b(R))}function b(R){return R===45||R===58?S(R):R===124?(o=!0,e.enter("tableCellDivider"),e.consume(R),e.exit("tableCellDivider"),v):y(R)}function v(R){return Me(R)?je(e,S,"whitespace")(R):S(R)}function S(R){return R===58?(s+=1,o=!0,e.enter("tableDelimiterMarker"),e.consume(R),e.exit("tableDelimiterMarker"),E):R===45?(s+=1,E(R)):R===null||_e(R)?N(R):y(R)}function E(R){return R===45?(e.enter("tableDelimiterFiller"),k(R)):y(R)}function k(R){return R===45?(e.consume(R),k):R===58?(o=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(R),e.exit("tableDelimiterMarker"),I):(e.exit("tableDelimiterFiller"),I(R))}function I(R){return Me(R)?je(e,N,"whitespace")(R):N(R)}function N(R){return R===124?b(R):R===null||_e(R)?!o||r!==s?y(R):(e.exit("tableDelimiterRow"),e.exit("tableHead"),t(R)):y(R)}function y(R){return n(R)}function g(R){return e.enter("tableRow"),A(R)}function A(R){return R===124?(e.enter("tableCellDivider"),e.consume(R),e.exit("tableCellDivider"),A):R===null||_e(R)?(e.exit("tableRow"),t(R)):Me(R)?je(e,A,"whitespace")(R):(e.enter("data"),M(R))}function M(R){return R===null||R===124||Ke(R)?(e.exit("data"),A(R)):(e.consume(R),R===92?F:M)}function F(R){return R===92||R===124?(e.consume(R),M):M(R)}}function r1(e,t){let n=-1,i=!0,r=0,s=[0,0,0,0],o=[0,0,0,0],l=!1,u=0,f,p,h;const d=new Xy;for(;++n<e.length;){const m=e[n],b=m[1];m[0]==="enter"?b.type==="tableHead"?(l=!1,u!==0&&(Kl(d,t,u,f,p),p=void 0,u=0),f={type:"table",start:Object.assign({},b.start),end:Object.assign({},b.end)},d.add(n,0,[["enter",f,t]])):b.type==="tableRow"||b.type==="tableDelimiterRow"?(i=!0,h=void 0,s=[0,0,0,0],o=[0,n+1,0,0],l&&(l=!1,p={type:"tableBody",start:Object.assign({},b.start),end:Object.assign({},b.end)},d.add(n,0,[["enter",p,t]])),r=b.type==="tableDelimiterRow"?2:p?3:1):r&&(b.type==="data"||b.type==="tableDelimiterMarker"||b.type==="tableDelimiterFiller")?(i=!1,o[2]===0&&(s[1]!==0&&(o[0]=o[1],h=Vi(d,t,s,r,void 0,h),s=[0,0,0,0]),o[2]=n)):b.type==="tableCellDivider"&&(i?i=!1:(s[1]!==0&&(o[0]=o[1],h=Vi(d,t,s,r,void 0,h)),s=o,o=[s[1],n,0,0])):b.type==="tableHead"?(l=!0,u=n):b.type==="tableRow"||b.type==="tableDelimiterRow"?(u=n,s[1]!==0?(o[0]=o[1],h=Vi(d,t,s,r,n,h)):o[1]!==0&&(h=Vi(d,t,o,r,n,h)),r=0):r&&(b.type==="data"||b.type==="tableDelimiterMarker"||b.type==="tableDelimiterFiller")&&(o[3]=n)}for(u!==0&&Kl(d,t,u,f,p),d.consume(t.events),n=-1;++n<t.events.length;){const m=t.events[n];m[0]==="enter"&&m[1].type==="table"&&(m[1]._align=t1(t.events,n))}return e}function Vi(e,t,n,i,r,s){const o=i===1?"tableHeader":i===2?"tableDelimiter":"tableData",l="tableContent";n[0]!==0&&(s.end=Object.assign({},Un(t.events,n[0])),e.add(n[0],0,[["exit",s,t]]));const u=Un(t.events,n[1]);if(s={type:o,start:Object.assign({},u),end:Object.assign({},u)},e.add(n[1],0,[["enter",s,t]]),n[2]!==0){const f=Un(t.events,n[2]),p=Un(t.events,n[3]),h={type:l,start:Object.assign({},f),end:Object.assign({},p)};if(e.add(n[2],0,[["enter",h,t]]),i!==2){const d=t.events[n[2]],m=t.events[n[3]];if(d[1].end=Object.assign({},m[1].end),d[1].type="chunkText",d[1].contentType="text",n[3]>n[2]+1){const b=n[2]+1,v=n[3]-n[2]-1;e.add(b,v,[])}}e.add(n[3]+1,0,[["exit",h,t]])}return r!==void 0&&(s.end=Object.assign({},Un(t.events,r)),e.add(r,0,[["exit",s,t]]),s=void 0),s}function Kl(e,t,n,i,r){const s=[],o=Un(t.events,n);r&&(r.end=Object.assign({},o),s.push(["exit",r,t])),i.end=Object.assign({},o),s.push(["exit",i,t]),e.add(n+1,0,s)}function Un(e,t){const n=e[t],i=n[0]==="enter"?"start":"end";return n[1][i]}const a1={name:"tasklistCheck",tokenize:o1};function s1(){return{text:{91:a1}}}function o1(e,t,n){const i=this;return r;function r(u){return i.previous!==null||!i._gfmTasklistFirstContentOfListItem?n(u):(e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(u),e.exit("taskListCheckMarker"),s)}function s(u){return Ke(u)?(e.enter("taskListCheckValueUnchecked"),e.consume(u),e.exit("taskListCheckValueUnchecked"),o):u===88||u===120?(e.enter("taskListCheckValueChecked"),e.consume(u),e.exit("taskListCheckValueChecked"),o):n(u)}function o(u){return u===93?(e.enter("taskListCheckMarker"),e.consume(u),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),l):n(u)}function l(u){return _e(u)?t(u):Me(u)?e.check({tokenize:l1},t,n)(u):n(u)}}function l1(e,t,n){return je(e,i,"whitespace");function i(r){return r===null?n(r):t(r)}}function u1(e){return vs([Ly(),Hy(),Zy(e),n1(),s1()])}const c1={};function h1(e){const t=this,n=e||c1,i=t.data(),r=i.micromarkExtensions||(i.micromarkExtensions=[]),s=i.fromMarkdownExtensions||(i.fromMarkdownExtensions=[]),o=i.toMarkdownExtensions||(i.toMarkdownExtensions=[]);r.push(u1(n)),s.push(Ny()),o.push(Py(n))}const Wh=async()=>(await fe.getNodeInfo({verb:fe.DesignerRequestVerb.GET_INFO,path:"WebForms"})).filter(t=>t.ext==="WebForm"),Xa=(e,t,n)=>{let i=[];return Array.isArray(e)?e.forEach((r,s)=>{i=i.concat(Xa(r,`${t}.[${s}]`,n))}):oe.isObject(e)?oe.has(e,n)?i.push(`${t}.${n}`):Object.entries(e).forEach(([s,o])=>{i=i.concat(Xa(o,`${t}.${s}`,n))}):t===n&&i.push(n),i},f1=()=>new Date().toLocaleTimeString("en-GB",{hour:"2-digit",minute:"2-digit"}),Ul=e=>{const t=/[",\n\r]/.test(e);let n=e.replace(/"/g,'""');return t&&(n=`"${n}"`),n},p1=(e,t,n)=>{let i="";const r=[...t],s=()=>r.map(p=>""),o=(p,h,d)=>{const m=r.findIndex(b=>b===h);m<0?(p.push(d),r.push(h)):p[m]=d},l=p=>p.join(n)+`
73
+ `,{webforms:u,i18n:f}=e;return u&&Object.keys(u).forEach(h=>{const d=oe.get(u,`${h}`);Object.keys(d).forEach(b=>{const{props:v,resolverName:S}=oe.get(d,b);Array.isArray(v)&&v.forEach(({__dataPath:E,__default:k,...I})=>{const N=s();o(N,"keys",`webforms.${h}.${b}.${E}`),o(N,"__t",Ul(k)),o(N,"resolverName",S),Object.keys(I).forEach(y=>{let g=y;y.startsWith("states:")&&(g=y.replace("states:",""),g=g.replace("i18n:","")),o(N,g,Ul(I[y]))}),i+=l(N)})})}),f&&Object.keys(f).forEach(h=>{const d=oe.get(f,h);d&&Object.keys(d).forEach(b=>{const v=oe.get(d,b),S=s();o(S,"keys",`i18n.${h}.${b}`),o(S,b==="default"?"i18nkey_default":b,v),i+=l(S)})}),l(r)+i},Bi=(e,t)=>{let n=e;return t.bold&&(n=`**${n}**`),t.italic&&(n=`*${n}*`),t.underlined&&(n=`<u>${n}</u>`),t.strikethrough&&(n=`~~${n}~~`),n},zi={datasource:e=>{const{datasource:t,dsType:n,format:i,children:r}=e;let s,o="";return r&&r[0]&&(s=r[0],o=`<ds datasource='${t}' dsType='${n}' format='${i}'>${Bi(s.text,s)}</ds>`),o},link:e=>{const{url:t,target:n,datasource:i,isDatasource:r,children:s}=e;let o="";if(s&&s[0]){const{text:l,...u}=s[0];o=`<link datasource='${i}' isDatasource='${r}' url='${t}' target='${n}'>${Bi(l,u)}</link>`}return o},i18n:e=>{const{children:t,__i18n:n}=e;let i="";if(t&&t[0]){const{text:r,...s}=t[0];i=`<i18n __i18n='${n}'>${Bi(r,s)}</i18n>`}return i},defaultElement:e=>{const{text:t}=e;return Bi(t,e)}},d1=e=>{const{type:t,text:n}=e;if(!t&&!n)return"<e/>";switch(t){case"datasource":return zi.datasource(e);case"link":return zi.link(e);case"i18n":return zi.i18n(e);default:return zi.defaultElement(e)}},g1=e=>e.map(t=>{const{children:n}=t;return n?n.map(i=>d1(i)).join(""):""}).filter(Boolean).join(`
126
74
 
127
- `),w2=e=>{const t=/<\/?[a-zA-Z][^>]*>/g;let i="",n=0;for(const a of e.matchAll(t)){const s=a.index,l=s+a[0].length,u=e.slice(n,s).replace(/</g,"&lt;").replace(/>/g,"&gt;");i+=u+a[0],n=l}const r=e.slice(n).replace(/</g,"&lt;").replace(/>/g,"&gt;");return i+=r,i=i.replace(/\[object Object\]/g,""),i},Kg=e=>{let t="",i=!1;for(let n=0;n<e.length;n++){const r=e[n];if(r==='"')if(i)if(n+1<e.length&&e[n+1]==='"')t+='""',n++;else{let a=n+1;for(;a<e.length&&(e[a]===" "||e[a]===" ");)a++;a>=e.length||e[a]===","||e[a]===`
128
- `||e[a]==="\r"?(i=!1,t+='"'):t+='""'}else i=!0,t+='"';else t+=r}return t},$s=e=>{const t=w2(e),i=zC().use(m2,{singleTilde:!0}).use(ES).parse(t),n=(a,s,l)=>{var p;const{type:u,value:c}=a;let h={};if(u==="root"){const{children:g}=a;return g.map(m=>n(m,s)).flat()}if(s){if(u==="list"){const{children:g}=a;return g.map(m=>n(m,h,l)).flat()}else if(u==="listItem"){const{children:g}=a;return g.map(m=>{const E=l!=null&&l.prefix?l.prefix:m.type==="list"?" - ":"* ",v=n(m,h,{prefix:E});return v.type==="paragraph"&&v.children&&(v.children.length>1?v.children=[{text:E},...v.children]:v.children=v.children.map(k=>(k.text&&(k.text=`${E}${k.text}`),k))),v}).flat()}else if(u==="paragraph"){h={type:"paragraph",children:[]};const{children:g}=a,m=g.map(E=>n(E,h));h.children=m}else if(u==="mdxJsxTextElement"){const{name:g}=a;if(g==="ds"){h={type:"datasource",children:[]};const{children:m,attributes:E}=a;if(m){const v=n(m[0],h);h.children=[v]}if(E){const v=E.reduce((k,S)=>({...k,[S.name]:S.value}),{});h={...h,...v}}}else if(g==="i18n"){h={type:"i18n",children:""};const{children:m,attributes:E}=a;if(m){const v=n(m[0],h);h.children=[v]}if(E){const v=E.reduce((k,S)=>({...k,[S.name]:S.value}),{});h={...h,...v}}}else if(g==="u"){h={underlined:!0};const{children:m}=a;if(m){const E=n(m[0],h);h={...h,...E}}}else if(g==="link"){h={type:"link",children:[]};const{children:m,attributes:E}=a;if(m){const v=n(m[0],h);h.children=[v]}if(E){const v=E.reduce((k,S)=>({...k,[S.name]:S.value}),{});h={...h,...v}}}else g==="e"&&(h={text:""})}else if(u==="text")h={text:c};else if(u==="strong"){h={bold:!0};const{children:g}=a;if(g){const m=n(g[0],h);h={...h,...m}}}else if(u==="emphasis"){h={italic:!0};const{children:g}=a;if(g){const m=n(g[0],h);h={...h,...m}}}else if(u==="delete"){h={strikethrough:!0};const{children:g}=a;if(g){const m=n(g[0],h);h={...h,...m}}}else if(u==="link"){const{children:g}=a;h={text:((p=g[0])==null?void 0:p.value)||""}}}else return;return h};return n(i,[])},k2=e=>{const[,t,i,n,...r]=e.split(".");return{webformName:t,componentId:i,propName:n,restOfPropPath:r.join(".")}};function or(e,t,{checkForDefaultPrevented:i=!0}={}){return function(r){if(e==null||e(r),i===!1||!r.defaultPrevented)return t==null?void 0:t(r)}}function yh(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function Wg(...e){return t=>{let i=!1;const n=e.map(r=>{const a=yh(r,t);return!i&&typeof a=="function"&&(i=!0),a});if(i)return()=>{for(let r=0;r<n.length;r++){const a=n[r];typeof a=="function"?a():yh(e[r],null)}}}}function Cr(...e){return q.useCallback(Wg(...e),e)}function S2(e,t){const i=q.createContext(t),n=a=>{const{children:s,...l}=a,u=q.useMemo(()=>l,Object.values(l));return b.jsx(i.Provider,{value:u,children:s})};n.displayName=e+"Provider";function r(a){const s=q.useContext(i);if(s)return s;if(t!==void 0)return t;throw new Error(`\`${a}\` must be used within \`${e}\``)}return[n,r]}function E2(e,t=[]){let i=[];function n(a,s){const l=q.createContext(s),u=i.length;i=[...i,s];const c=p=>{var S;const{scope:g,children:m,...E}=p,v=((S=g==null?void 0:g[e])==null?void 0:S[u])||l,k=q.useMemo(()=>E,Object.values(E));return b.jsx(v.Provider,{value:k,children:m})};c.displayName=a+"Provider";function h(p,g){var v;const m=((v=g==null?void 0:g[e])==null?void 0:v[u])||l,E=q.useContext(m);if(E)return E;if(s!==void 0)return s;throw new Error(`\`${p}\` must be used within \`${a}\``)}return[c,h]}const r=()=>{const a=i.map(s=>q.createContext(s));return function(l){const u=(l==null?void 0:l[e])||a;return q.useMemo(()=>({[`__scope${e}`]:{...l,[e]:u}}),[l,u])}};return r.scopeName=e,[n,C2(r,...t)]}function C2(...e){const t=e[0];if(e.length===1)return t;const i=()=>{const n=e.map(r=>({useScope:r(),scopeName:r.scopeName}));return function(a){const s=n.reduce((l,{useScope:u,scopeName:c})=>{const p=u(a)[`__scope${c}`];return{...l,...p}},{});return q.useMemo(()=>({[`__scope${t.scopeName}`]:s}),[s])}};return i.scopeName=t.scopeName,i}var mr=globalThis!=null&&globalThis.document?q.useLayoutEffect:()=>{},I2=q[" useId ".trim().toString()]||(()=>{}),_2=0;function Js(e){const[t,i]=q.useState(I2());return mr(()=>{i(n=>n??String(_2++))},[e]),e||(t?`radix-${t}`:"")}var A2=q[" useInsertionEffect ".trim().toString()]||mr;function N2({prop:e,defaultProp:t,onChange:i=()=>{},caller:n}){const[r,a,s]=T2({defaultProp:t,onChange:i}),l=e!==void 0,u=l?e:r;{const h=q.useRef(e!==void 0);q.useEffect(()=>{const p=h.current;p!==l&&console.warn(`${n} is changing from ${p?"controlled":"uncontrolled"} to ${l?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),h.current=l},[l,n])}const c=q.useCallback(h=>{var p;if(l){const g=O2(h)?h(e):h;g!==e&&((p=s.current)==null||p.call(s,g))}else a(h)},[l,e,a,s]);return[u,c]}function T2({defaultProp:e,onChange:t}){const[i,n]=q.useState(e),r=q.useRef(i),a=q.useRef(t);return A2(()=>{a.current=t},[t]),q.useEffect(()=>{var s;r.current!==i&&((s=a.current)==null||s.call(a,i),r.current=i)},[i,r]),[i,n,a]}function O2(e){return typeof e=="function"}function Ys(e,t,{checkForDefaultPrevented:i=!0}={}){return function(r){if(e==null||e(r),i===!1||!r.defaultPrevented)return t==null?void 0:t(r)}}function wh(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function Ug(...e){return t=>{let i=!1;const n=e.map(r=>{const a=wh(r,t);return!i&&typeof a=="function"&&(i=!0),a});if(i)return()=>{for(let r=0;r<n.length;r++){const a=n[r];typeof a=="function"?a():wh(e[r],null)}}}}function qg(...e){return q.useCallback(Ug(...e),e)}function P2(e){const t=R2(e),i=q.forwardRef((n,r)=>{const{children:a,...s}=n,l=q.Children.toArray(a),u=l.find(L2);if(u){const c=u.props.children,h=l.map(p=>p===u?q.Children.count(c)>1?q.Children.only(null):q.isValidElement(c)?c.props.children:null:p);return b.jsx(t,{...s,ref:r,children:q.isValidElement(c)?q.cloneElement(c,void 0,h):null})}return b.jsx(t,{...s,ref:r,children:a})});return i.displayName=`${e}.Slot`,i}function R2(e){const t=q.forwardRef((i,n)=>{const{children:r,...a}=i;if(q.isValidElement(r)){const s=F2(r),l=D2(a,r.props);return r.type!==q.Fragment&&(l.ref=n?Ug(n,s):s),q.cloneElement(r,l)}return q.Children.count(r)>1?q.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var M2=Symbol("radix.slottable");function L2(e){return q.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===M2}function D2(e,t){const i={...t};for(const n in t){const r=e[n],a=t[n];/^on[A-Z]/.test(n)?r&&a?i[n]=(...l)=>{const u=a(...l);return r(...l),u}:r&&(i[n]=r):n==="style"?i[n]={...r,...a}:n==="className"&&(i[n]=[r,a].filter(Boolean).join(" "))}return{...e,...i}}function F2(e){var n,r;let t=(n=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:n.get,i=t&&"isReactWarning"in t&&t.isReactWarning;return i?e.ref:(t=(r=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:r.get,i=t&&"isReactWarning"in t&&t.isReactWarning,i?e.props.ref:e.props.ref||e.ref)}var j2=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Gg=j2.reduce((e,t)=>{const i=P2(`Primitive.${t}`),n=q.forwardRef((r,a)=>{const{asChild:s,...l}=r,u=s?i:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),b.jsx(u,{...l,ref:a})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function z2(e,t){e&&Gm.flushSync(()=>e.dispatchEvent(t))}function Jl(e){const t=q.useRef(e);return q.useEffect(()=>{t.current=e}),q.useMemo(()=>(...i)=>{var n;return(n=t.current)==null?void 0:n.call(t,...i)},[])}function V2(e,t=globalThis==null?void 0:globalThis.document){const i=Jl(e);q.useEffect(()=>{const n=r=>{r.key==="Escape"&&i(r)};return t.addEventListener("keydown",n,{capture:!0}),()=>t.removeEventListener("keydown",n,{capture:!0})},[i,t])}var B2="DismissableLayer",To="dismissableLayer.update",H2="dismissableLayer.pointerDownOutside",K2="dismissableLayer.focusOutside",kh,$g=q.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Jg=q.forwardRef((e,t)=>{const{disableOutsidePointerEvents:i=!1,onEscapeKeyDown:n,onPointerDownOutside:r,onFocusOutside:a,onInteractOutside:s,onDismiss:l,...u}=e,c=q.useContext($g),[h,p]=q.useState(null),g=(h==null?void 0:h.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,m]=q.useState({}),E=qg(t,O=>p(O)),v=Array.from(c.layers),[k]=[...c.layersWithOutsidePointerEventsDisabled].slice(-1),S=v.indexOf(k),w=h?v.indexOf(h):-1,I=c.layersWithOutsidePointerEventsDisabled.size>0,A=w>=S,y=q2(O=>{const P=O.target,F=[...c.branches].some(D=>D.contains(P));!A||F||(r==null||r(O),s==null||s(O),O.defaultPrevented||l==null||l())},g),f=G2(O=>{const P=O.target;[...c.branches].some(D=>D.contains(P))||(a==null||a(O),s==null||s(O),O.defaultPrevented||l==null||l())},g);return V2(O=>{w===c.layers.size-1&&(n==null||n(O),!O.defaultPrevented&&l&&(O.preventDefault(),l()))},g),q.useEffect(()=>{if(h)return i&&(c.layersWithOutsidePointerEventsDisabled.size===0&&(kh=g.body.style.pointerEvents,g.body.style.pointerEvents="none"),c.layersWithOutsidePointerEventsDisabled.add(h)),c.layers.add(h),Sh(),()=>{i&&c.layersWithOutsidePointerEventsDisabled.size===1&&(g.body.style.pointerEvents=kh)}},[h,g,i,c]),q.useEffect(()=>()=>{h&&(c.layers.delete(h),c.layersWithOutsidePointerEventsDisabled.delete(h),Sh())},[h,c]),q.useEffect(()=>{const O=()=>m({});return document.addEventListener(To,O),()=>document.removeEventListener(To,O)},[]),b.jsx(Gg.div,{...u,ref:E,style:{pointerEvents:I?A?"auto":"none":void 0,...e.style},onFocusCapture:Ys(e.onFocusCapture,f.onFocusCapture),onBlurCapture:Ys(e.onBlurCapture,f.onBlurCapture),onPointerDownCapture:Ys(e.onPointerDownCapture,y.onPointerDownCapture)})});Jg.displayName=B2;var W2="DismissableLayerBranch",U2=q.forwardRef((e,t)=>{const i=q.useContext($g),n=q.useRef(null),r=qg(t,n);return q.useEffect(()=>{const a=n.current;if(a)return i.branches.add(a),()=>{i.branches.delete(a)}},[i.branches]),b.jsx(Gg.div,{...e,ref:r})});U2.displayName=W2;function q2(e,t=globalThis==null?void 0:globalThis.document){const i=Jl(e),n=q.useRef(!1),r=q.useRef(()=>{});return q.useEffect(()=>{const a=l=>{if(l.target&&!n.current){let u=function(){Yg(H2,i,c,{discrete:!0})};const c={originalEvent:l};l.pointerType==="touch"?(t.removeEventListener("click",r.current),r.current=u,t.addEventListener("click",r.current,{once:!0})):u()}else t.removeEventListener("click",r.current);n.current=!1},s=window.setTimeout(()=>{t.addEventListener("pointerdown",a)},0);return()=>{window.clearTimeout(s),t.removeEventListener("pointerdown",a),t.removeEventListener("click",r.current)}},[t,i]),{onPointerDownCapture:()=>n.current=!0}}function G2(e,t=globalThis==null?void 0:globalThis.document){const i=Jl(e),n=q.useRef(!1);return q.useEffect(()=>{const r=a=>{a.target&&!n.current&&Yg(K2,i,{originalEvent:a},{discrete:!1})};return t.addEventListener("focusin",r),()=>t.removeEventListener("focusin",r)},[t,i]),{onFocusCapture:()=>n.current=!0,onBlurCapture:()=>n.current=!1}}function Sh(){const e=new CustomEvent(To);document.dispatchEvent(e)}function Yg(e,t,i,{discrete:n}){const r=i.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:i});t&&r.addEventListener(e,t,{once:!0}),n?z2(r,a):r.dispatchEvent(a)}function Qg(e){const t=$2(e),i=q.forwardRef((n,r)=>{const{children:a,...s}=n,l=q.Children.toArray(a),u=l.find(Y2);if(u){const c=u.props.children,h=l.map(p=>p===u?q.Children.count(c)>1?q.Children.only(null):q.isValidElement(c)?c.props.children:null:p);return b.jsx(t,{...s,ref:r,children:q.isValidElement(c)?q.cloneElement(c,void 0,h):null})}return b.jsx(t,{...s,ref:r,children:a})});return i.displayName=`${e}.Slot`,i}function $2(e){const t=q.forwardRef((i,n)=>{const{children:r,...a}=i;if(q.isValidElement(r)){const s=Z2(r),l=Q2(a,r.props);return r.type!==q.Fragment&&(l.ref=n?Wg(n,s):s),q.cloneElement(r,l)}return q.Children.count(r)>1?q.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var J2=Symbol("radix.slottable");function Y2(e){return q.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===J2}function Q2(e,t){const i={...t};for(const n in t){const r=e[n],a=t[n];/^on[A-Z]/.test(n)?r&&a?i[n]=(...l)=>{const u=a(...l);return r(...l),u}:r&&(i[n]=r):n==="style"?i[n]={...r,...a}:n==="className"&&(i[n]=[r,a].filter(Boolean).join(" "))}return{...e,...i}}function Z2(e){var n,r;let t=(n=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:n.get,i=t&&"isReactWarning"in t&&t.isReactWarning;return i?e.ref:(t=(r=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:r.get,i=t&&"isReactWarning"in t&&t.isReactWarning,i?e.props.ref:e.props.ref||e.ref)}var X2=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],hn=X2.reduce((e,t)=>{const i=Qg(`Primitive.${t}`),n=q.forwardRef((r,a)=>{const{asChild:s,...l}=r,u=s?i:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),b.jsx(u,{...l,ref:a})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function Eh(e){const t=q.useRef(e);return q.useEffect(()=>{t.current=e}),q.useMemo(()=>(...i)=>{var n;return(n=t.current)==null?void 0:n.call(t,...i)},[])}var Qs="focusScope.autoFocusOnMount",Zs="focusScope.autoFocusOnUnmount",Ch={bubbles:!1,cancelable:!0},e_="FocusScope",Zg=q.forwardRef((e,t)=>{const{loop:i=!1,trapped:n=!1,onMountAutoFocus:r,onUnmountAutoFocus:a,...s}=e,[l,u]=q.useState(null),c=Eh(r),h=Eh(a),p=q.useRef(null),g=Cr(t,v=>u(v)),m=q.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;q.useEffect(()=>{if(n){let v=function(I){if(m.paused||!l)return;const A=I.target;l.contains(A)?p.current=A:zi(p.current,{select:!0})},k=function(I){if(m.paused||!l)return;const A=I.relatedTarget;A!==null&&(l.contains(A)||zi(p.current,{select:!0}))},S=function(I){if(document.activeElement===document.body)for(const y of I)y.removedNodes.length>0&&zi(l)};document.addEventListener("focusin",v),document.addEventListener("focusout",k);const w=new MutationObserver(S);return l&&w.observe(l,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",v),document.removeEventListener("focusout",k),w.disconnect()}}},[n,l,m.paused]),q.useEffect(()=>{if(l){_h.add(m);const v=document.activeElement;if(!l.contains(v)){const S=new CustomEvent(Qs,Ch);l.addEventListener(Qs,c),l.dispatchEvent(S),S.defaultPrevented||(t_(s_(Xg(l)),{select:!0}),document.activeElement===v&&zi(l))}return()=>{l.removeEventListener(Qs,c),setTimeout(()=>{const S=new CustomEvent(Zs,Ch);l.addEventListener(Zs,h),l.dispatchEvent(S),S.defaultPrevented||zi(v??document.body,{select:!0}),l.removeEventListener(Zs,h),_h.remove(m)},0)}}},[l,c,h,m]);const E=q.useCallback(v=>{if(!i&&!n||m.paused)return;const k=v.key==="Tab"&&!v.altKey&&!v.ctrlKey&&!v.metaKey,S=document.activeElement;if(k&&S){const w=v.currentTarget,[I,A]=i_(w);I&&A?!v.shiftKey&&S===A?(v.preventDefault(),i&&zi(I,{select:!0})):v.shiftKey&&S===I&&(v.preventDefault(),i&&zi(A,{select:!0})):S===w&&v.preventDefault()}},[i,n,m.paused]);return b.jsx(hn.div,{tabIndex:-1,...s,ref:g,onKeyDown:E})});Zg.displayName=e_;function t_(e,{select:t=!1}={}){const i=document.activeElement;for(const n of e)if(zi(n,{select:t}),document.activeElement!==i)return}function i_(e){const t=Xg(e),i=Ih(t,e),n=Ih(t.reverse(),e);return[i,n]}function Xg(e){const t=[],i=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:n=>{const r=n.tagName==="INPUT"&&n.type==="hidden";return n.disabled||n.hidden||r?NodeFilter.FILTER_SKIP:n.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;i.nextNode();)t.push(i.currentNode);return t}function Ih(e,t){for(const i of e)if(!n_(i,{upTo:t}))return i}function n_(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function r_(e){return e instanceof HTMLInputElement&&"select"in e}function zi(e,{select:t=!1}={}){if(e&&e.focus){const i=document.activeElement;e.focus({preventScroll:!0}),e!==i&&r_(e)&&t&&e.select()}}var _h=a_();function a_(){let e=[];return{add(t){const i=e[0];t!==i&&(i==null||i.pause()),e=Ah(e,t),e.unshift(t)},remove(t){var i;e=Ah(e,t),(i=e[0])==null||i.resume()}}}function Ah(e,t){const i=[...e],n=i.indexOf(t);return n!==-1&&i.splice(n,1),i}function s_(e){return e.filter(t=>t.tagName!=="A")}var o_="Portal",em=q.forwardRef((e,t)=>{var l;const{container:i,...n}=e,[r,a]=q.useState(!1);mr(()=>a(!0),[]);const s=i||r&&((l=globalThis==null?void 0:globalThis.document)==null?void 0:l.body);return s?un.createPortal(b.jsx(hn.div,{...n,ref:t}),s):null});em.displayName=o_;function l_(e,t){return q.useReducer((i,n)=>t[i][n]??i,e)}var as=e=>{const{present:t,children:i}=e,n=u_(t),r=typeof i=="function"?i({present:n.isPresent}):q.Children.only(i),a=Cr(n.ref,c_(r));return typeof i=="function"||n.isPresent?q.cloneElement(r,{ref:a}):null};as.displayName="Presence";function u_(e){const[t,i]=q.useState(),n=q.useRef(null),r=q.useRef(e),a=q.useRef("none"),s=e?"mounted":"unmounted",[l,u]=l_(s,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return q.useEffect(()=>{const c=Xr(n.current);a.current=l==="mounted"?c:"none"},[l]),mr(()=>{const c=n.current,h=r.current;if(h!==e){const g=a.current,m=Xr(c);e?u("MOUNT"):m==="none"||(c==null?void 0:c.display)==="none"?u("UNMOUNT"):u(h&&g!==m?"ANIMATION_OUT":"UNMOUNT"),r.current=e}},[e,u]),mr(()=>{if(t){let c;const h=t.ownerDocument.defaultView??window,p=m=>{const v=Xr(n.current).includes(CSS.escape(m.animationName));if(m.target===t&&v&&(u("ANIMATION_END"),!r.current)){const k=t.style.animationFillMode;t.style.animationFillMode="forwards",c=h.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=k)})}},g=m=>{m.target===t&&(a.current=Xr(n.current))};return t.addEventListener("animationstart",g),t.addEventListener("animationcancel",p),t.addEventListener("animationend",p),()=>{h.clearTimeout(c),t.removeEventListener("animationstart",g),t.removeEventListener("animationcancel",p),t.removeEventListener("animationend",p)}}else u("ANIMATION_END")},[t,u]),{isPresent:["mounted","unmountSuspended"].includes(l),ref:q.useCallback(c=>{n.current=c?getComputedStyle(c):null,i(c)},[])}}function Xr(e){return(e==null?void 0:e.animationName)||"none"}function c_(e){var n,r;let t=(n=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:n.get,i=t&&"isReactWarning"in t&&t.isReactWarning;return i?e.ref:(t=(r=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:r.get,i=t&&"isReactWarning"in t&&t.isReactWarning,i?e.props.ref:e.props.ref||e.ref)}var Xs=0;function h_(){q.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??Nh()),document.body.insertAdjacentElement("beforeend",e[1]??Nh()),Xs++,()=>{Xs===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),Xs--}},[])}function Nh(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var ga="right-scroll-bar-position",ma="width-before-scroll-bar",d_="with-scroll-bars-hidden",p_="--removed-body-scroll-bar-size";function eo(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function f_(e,t){var i=M.useState(function(){return{value:e,callback:t,facade:{get current(){return i.value},set current(n){var r=i.value;r!==n&&(i.value=n,i.callback(n,r))}}}})[0];return i.callback=t,i.facade}var g_=typeof window<"u"?q.useLayoutEffect:q.useEffect,Th=new WeakMap;function m_(e,t){var i=f_(null,function(n){return e.forEach(function(r){return eo(r,n)})});return g_(function(){var n=Th.get(i);if(n){var r=new Set(n),a=new Set(e),s=i.current;r.forEach(function(l){a.has(l)||eo(l,null)}),a.forEach(function(l){r.has(l)||eo(l,s)})}Th.set(i,e)},[e]),i}function v_(e){return e}function x_(e,t){t===void 0&&(t=v_);var i=[],n=!1,r={read:function(){if(n)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return i.length?i[i.length-1]:e},useMedium:function(a){var s=t(a,n);return i.push(s),function(){i=i.filter(function(l){return l!==s})}},assignSyncMedium:function(a){for(n=!0;i.length;){var s=i;i=[],s.forEach(a)}i={push:function(l){return a(l)},filter:function(){return i}}},assignMedium:function(a){n=!0;var s=[];if(i.length){var l=i;i=[],l.forEach(a),s=i}var u=function(){var h=s;s=[],h.forEach(a)},c=function(){return Promise.resolve().then(u)};c(),i={push:function(h){s.push(h),c()},filter:function(h){return s=s.filter(h),i}}}};return r}function b_(e){e===void 0&&(e={});var t=x_(null);return t.options=gi({async:!0,ssr:!1},e),t}var tm=function(e){var t=e.sideCar,i=Hp(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var n=t.read();if(!n)throw new Error("Sidecar medium not found");return q.createElement(n,gi({},i))};tm.isSideCarExport=!0;function y_(e,t){return e.useMedium(t),tm}var im=b_(),to=function(){},ss=q.forwardRef(function(e,t){var i=q.useRef(null),n=q.useState({onScrollCapture:to,onWheelCapture:to,onTouchMoveCapture:to}),r=n[0],a=n[1],s=e.forwardProps,l=e.children,u=e.className,c=e.removeScrollBar,h=e.enabled,p=e.shards,g=e.sideCar,m=e.noRelative,E=e.noIsolation,v=e.inert,k=e.allowPinchZoom,S=e.as,w=S===void 0?"div":S,I=e.gapMode,A=Hp(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),y=g,f=m_([i,t]),O=gi(gi({},A),r);return q.createElement(q.Fragment,null,h&&q.createElement(y,{sideCar:im,removeScrollBar:c,shards:p,noRelative:m,noIsolation:E,inert:v,setCallbacks:a,allowPinchZoom:!!k,lockRef:i,gapMode:I}),s?q.cloneElement(q.Children.only(l),gi(gi({},O),{ref:f})):q.createElement(w,gi({},O,{className:u,ref:f}),l))});ss.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};ss.classNames={fullWidth:ma,zeroRight:ga};var w_=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function k_(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=w_();return t&&e.setAttribute("nonce",t),e}function S_(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function E_(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var C_=function(){var e=0,t=null;return{add:function(i){e==0&&(t=k_())&&(S_(t,i),E_(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},I_=function(){var e=C_();return function(t,i){q.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&i])}},nm=function(){var e=I_(),t=function(i){var n=i.styles,r=i.dynamic;return e(n,r),null};return t},__={left:0,top:0,right:0,gap:0},io=function(e){return parseInt(e||"",10)||0},A_=function(e){var t=window.getComputedStyle(document.body),i=t[e==="padding"?"paddingLeft":"marginLeft"],n=t[e==="padding"?"paddingTop":"marginTop"],r=t[e==="padding"?"paddingRight":"marginRight"];return[io(i),io(n),io(r)]},N_=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return __;var t=A_(e),i=document.documentElement.clientWidth,n=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,n-i+t[2]-t[0])}},T_=nm(),Mn="data-scroll-locked",O_=function(e,t,i,n){var r=e.left,a=e.top,s=e.right,l=e.gap;return i===void 0&&(i="margin"),`
129
- .`.concat(d_,` {
130
- overflow: hidden `).concat(n,`;
131
- padding-right: `).concat(l,"px ").concat(n,`;
75
+ `),m1=e=>{const t=/<\/?[a-zA-Z][^>]*>/g;let n="",i=0;for(const s of e.matchAll(t)){const o=s.index,l=o+s[0].length,u=e.slice(i,o).replace(/</g,"&lt;").replace(/>/g,"&gt;");n+=u+s[0],i=l}const r=e.slice(i).replace(/</g,"&lt;").replace(/>/g,"&gt;");return n+=r,n=n.replace(/\[object Object\]/g,""),n},Gh=e=>{let t="",n=!1;for(let i=0;i<e.length;i++){const r=e[i];if(r==='"')if(n)if(i+1<e.length&&e[i+1]==='"')t+='""',i++;else{let s=i+1;for(;s<e.length&&(e[s]===" "||e[s]===" ");)s++;s>=e.length||e[s]===","||e[s]===`
76
+ `||e[s]==="\r"?(n=!1,t+='"'):t+='""'}else n=!0,t+='"';else t+=r}return t},va=e=>{const t=m1(e),n=Lb().use(h1,{singleTilde:!0}).use(b0).parse(t),i=(s,o,l)=>{var h;const{type:u,value:f}=s;let p={};if(u==="root"){const{children:d}=s;return d.map(m=>i(m,o)).flat()}if(o){if(u==="list"){const{children:d}=s;return d.map(m=>i(m,p,l)).flat()}else if(u==="listItem"){const{children:d}=s;return d.map(m=>{const b=l!=null&&l.prefix?l.prefix:m.type==="list"?" - ":"* ",v=i(m,p,{prefix:b});return v.type==="paragraph"&&v.children&&(v.children.length>1?v.children=[{text:b},...v.children]:v.children=v.children.map(S=>(S.text&&(S.text=`${b}${S.text}`),S))),v}).flat()}else if(u==="paragraph"){p={type:"paragraph",children:[]};const{children:d}=s,m=d.map(b=>i(b,p));p.children=m}else if(u==="mdxJsxTextElement"){const{name:d}=s;if(d==="ds"){p={type:"datasource",children:[]};const{children:m,attributes:b}=s;if(m){const v=i(m[0],p);p.children=[v]}if(b){const v=b.reduce((S,E)=>({...S,[E.name]:E.value}),{});p={...p,...v}}}else if(d==="i18n"){p={type:"i18n",children:""};const{children:m,attributes:b}=s;if(m){const v=i(m[0],p);p.children=[v]}if(b){const v=b.reduce((S,E)=>({...S,[E.name]:E.value}),{});p={...p,...v}}}else if(d==="u"){p={underlined:!0};const{children:m}=s;if(m){const b=i(m[0],p);p={...p,...b}}}else if(d==="link"){p={type:"link",children:[]};const{children:m,attributes:b}=s;if(m){const v=i(m[0],p);p.children=[v]}if(b){const v=b.reduce((S,E)=>({...S,[E.name]:E.value}),{});p={...p,...v}}}else d==="e"&&(p={text:""})}else if(u==="text")p={text:f};else if(u==="strong"){p={bold:!0};const{children:d}=s;if(d){const m=i(d[0],p);p={...p,...m}}}else if(u==="emphasis"){p={italic:!0};const{children:d}=s;if(d){const m=i(d[0],p);p={...p,...m}}}else if(u==="delete"){p={strikethrough:!0};const{children:d}=s;if(d){const m=i(d[0],p);p={...p,...m}}}else if(u==="link"){const{children:d}=s;p={text:((h=d[0])==null?void 0:h.value)||""}}}else return;return p};return i(n,[])},x1=e=>{const[,t,n,i,...r]=e.split(".");return{webformName:t,componentId:n,propName:i,restOfPropPath:r.join(".")}};function fi(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(e==null||e(r),n===!1||!r.defaultPrevented)return t==null?void 0:t(r)}}function Hl(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function Jh(...e){return t=>{let n=!1;const i=e.map(r=>{const s=Hl(r,t);return!n&&typeof s=="function"&&(n=!0),s});if(n)return()=>{for(let r=0;r<i.length;r++){const s=i[r];typeof s=="function"?s():Hl(e[r],null)}}}}function Ii(...e){return U.useCallback(Jh(...e),e)}function v1(e,t){const n=U.createContext(t),i=s=>{const{children:o,...l}=s,u=U.useMemo(()=>l,Object.values(l));return C.jsx(n.Provider,{value:u,children:o})};i.displayName=e+"Provider";function r(s){const o=U.useContext(n);if(o)return o;if(t!==void 0)return t;throw new Error(`\`${s}\` must be used within \`${e}\``)}return[i,r]}function b1(e,t=[]){let n=[];function i(s,o){const l=U.createContext(o),u=n.length;n=[...n,o];const f=h=>{var E;const{scope:d,children:m,...b}=h,v=((E=d==null?void 0:d[e])==null?void 0:E[u])||l,S=U.useMemo(()=>b,Object.values(b));return C.jsx(v.Provider,{value:S,children:m})};f.displayName=s+"Provider";function p(h,d){var v;const m=((v=d==null?void 0:d[e])==null?void 0:v[u])||l,b=U.useContext(m);if(b)return b;if(o!==void 0)return o;throw new Error(`\`${h}\` must be used within \`${s}\``)}return[f,p]}const r=()=>{const s=n.map(o=>U.createContext(o));return function(l){const u=(l==null?void 0:l[e])||s;return U.useMemo(()=>({[`__scope${e}`]:{...l,[e]:u}}),[l,u])}};return r.scopeName=e,[i,y1(r,...t)]}function y1(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const i=e.map(r=>({useScope:r(),scopeName:r.scopeName}));return function(s){const o=i.reduce((l,{useScope:u,scopeName:f})=>{const h=u(s)[`__scope${f}`];return{...l,...h}},{});return U.useMemo(()=>({[`__scope${t.scopeName}`]:o}),[o])}};return n.scopeName=t.scopeName,n}var vi=globalThis!=null&&globalThis.document?U.useLayoutEffect:()=>{},w1=U[" useId ".trim().toString()]||(()=>{}),E1=0;function ba(e){const[t,n]=U.useState(w1());return vi(()=>{n(i=>i??String(E1++))},[e]),e||(t?`radix-${t}`:"")}var S1=U[" useInsertionEffect ".trim().toString()]||vi;function k1({prop:e,defaultProp:t,onChange:n=()=>{},caller:i}){const[r,s,o]=C1({defaultProp:t,onChange:n}),l=e!==void 0,u=l?e:r;{const p=U.useRef(e!==void 0);U.useEffect(()=>{const h=p.current;h!==l&&console.warn(`${i} is changing from ${h?"controlled":"uncontrolled"} to ${l?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),p.current=l},[l,i])}const f=U.useCallback(p=>{var h;if(l){const d=_1(p)?p(e):p;d!==e&&((h=o.current)==null||h.call(o,d))}else s(p)},[l,e,s,o]);return[u,f]}function C1({defaultProp:e,onChange:t}){const[n,i]=U.useState(e),r=U.useRef(n),s=U.useRef(t);return S1(()=>{s.current=t},[t]),U.useEffect(()=>{var o;r.current!==n&&((o=s.current)==null||o.call(s,n),r.current=n)},[n,r]),[n,i,s]}function _1(e){return typeof e=="function"}function ya(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(e==null||e(r),n===!1||!r.defaultPrevented)return t==null?void 0:t(r)}}function $l(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function Yh(...e){return t=>{let n=!1;const i=e.map(r=>{const s=$l(r,t);return!n&&typeof s=="function"&&(n=!0),s});if(n)return()=>{for(let r=0;r<i.length;r++){const s=i[r];typeof s=="function"?s():$l(e[r],null)}}}}function Qh(...e){return U.useCallback(Yh(...e),e)}function I1(e){const t=A1(e),n=U.forwardRef((i,r)=>{const{children:s,...o}=i,l=U.Children.toArray(s),u=l.find(N1);if(u){const f=u.props.children,p=l.map(h=>h===u?U.Children.count(f)>1?U.Children.only(null):U.isValidElement(f)?f.props.children:null:h);return C.jsx(t,{...o,ref:r,children:U.isValidElement(f)?U.cloneElement(f,void 0,p):null})}return C.jsx(t,{...o,ref:r,children:s})});return n.displayName=`${e}.Slot`,n}function A1(e){const t=U.forwardRef((n,i)=>{const{children:r,...s}=n;if(U.isValidElement(r)){const o=O1(r),l=P1(s,r.props);return r.type!==U.Fragment&&(l.ref=i?Yh(i,o):o),U.cloneElement(r,l)}return U.Children.count(r)>1?U.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var T1=Symbol("radix.slottable");function N1(e){return U.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===T1}function P1(e,t){const n={...t};for(const i in t){const r=e[i],s=t[i];/^on[A-Z]/.test(i)?r&&s?n[i]=(...l)=>{const u=s(...l);return r(...l),u}:r&&(n[i]=r):i==="style"?n[i]={...r,...s}:i==="className"&&(n[i]=[r,s].filter(Boolean).join(" "))}return{...e,...n}}function O1(e){var i,r;let t=(i=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:i.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(r=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var R1=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Zh=R1.reduce((e,t)=>{const n=I1(`Primitive.${t}`),i=U.forwardRef((r,s)=>{const{asChild:o,...l}=r,u=o?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),C.jsx(u,{...l,ref:s})});return i.displayName=`Primitive.${t}`,{...e,[t]:i}},{});function L1(e,t){e&&Ku.flushSync(()=>e.dispatchEvent(t))}function ks(e){const t=U.useRef(e);return U.useEffect(()=>{t.current=e}),U.useMemo(()=>(...n)=>{var i;return(i=t.current)==null?void 0:i.call(t,...n)},[])}function M1(e,t=globalThis==null?void 0:globalThis.document){const n=ks(e);U.useEffect(()=>{const i=r=>{r.key==="Escape"&&n(r)};return t.addEventListener("keydown",i,{capture:!0}),()=>t.removeEventListener("keydown",i,{capture:!0})},[n,t])}var F1="DismissableLayer",es="dismissableLayer.update",D1="dismissableLayer.pointerDownOutside",j1="dismissableLayer.focusOutside",ql,Xh=U.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),ef=U.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:i,onPointerDownOutside:r,onFocusOutside:s,onInteractOutside:o,onDismiss:l,...u}=e,f=U.useContext(Xh),[p,h]=U.useState(null),d=(p==null?void 0:p.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,m]=U.useState({}),b=Qh(t,A=>h(A)),v=Array.from(f.layers),[S]=[...f.layersWithOutsidePointerEventsDisabled].slice(-1),E=v.indexOf(S),k=p?v.indexOf(p):-1,I=f.layersWithOutsidePointerEventsDisabled.size>0,N=k>=E,y=z1(A=>{const M=A.target,F=[...f.branches].some(R=>R.contains(M));!N||F||(r==null||r(A),o==null||o(A),A.defaultPrevented||l==null||l())},d),g=K1(A=>{const M=A.target;[...f.branches].some(R=>R.contains(M))||(s==null||s(A),o==null||o(A),A.defaultPrevented||l==null||l())},d);return M1(A=>{k===f.layers.size-1&&(i==null||i(A),!A.defaultPrevented&&l&&(A.preventDefault(),l()))},d),U.useEffect(()=>{if(p)return n&&(f.layersWithOutsidePointerEventsDisabled.size===0&&(ql=d.body.style.pointerEvents,d.body.style.pointerEvents="none"),f.layersWithOutsidePointerEventsDisabled.add(p)),f.layers.add(p),Wl(),()=>{n&&f.layersWithOutsidePointerEventsDisabled.size===1&&(d.body.style.pointerEvents=ql)}},[p,d,n,f]),U.useEffect(()=>()=>{p&&(f.layers.delete(p),f.layersWithOutsidePointerEventsDisabled.delete(p),Wl())},[p,f]),U.useEffect(()=>{const A=()=>m({});return document.addEventListener(es,A),()=>document.removeEventListener(es,A)},[]),C.jsx(Zh.div,{...u,ref:b,style:{pointerEvents:I?N?"auto":"none":void 0,...e.style},onFocusCapture:ya(e.onFocusCapture,g.onFocusCapture),onBlurCapture:ya(e.onBlurCapture,g.onBlurCapture),onPointerDownCapture:ya(e.onPointerDownCapture,y.onPointerDownCapture)})});ef.displayName=F1;var V1="DismissableLayerBranch",B1=U.forwardRef((e,t)=>{const n=U.useContext(Xh),i=U.useRef(null),r=Qh(t,i);return U.useEffect(()=>{const s=i.current;if(s)return n.branches.add(s),()=>{n.branches.delete(s)}},[n.branches]),C.jsx(Zh.div,{...e,ref:r})});B1.displayName=V1;function z1(e,t=globalThis==null?void 0:globalThis.document){const n=ks(e),i=U.useRef(!1),r=U.useRef(()=>{});return U.useEffect(()=>{const s=l=>{if(l.target&&!i.current){let u=function(){tf(D1,n,f,{discrete:!0})};const f={originalEvent:l};l.pointerType==="touch"?(t.removeEventListener("click",r.current),r.current=u,t.addEventListener("click",r.current,{once:!0})):u()}else t.removeEventListener("click",r.current);i.current=!1},o=window.setTimeout(()=>{t.addEventListener("pointerdown",s)},0);return()=>{window.clearTimeout(o),t.removeEventListener("pointerdown",s),t.removeEventListener("click",r.current)}},[t,n]),{onPointerDownCapture:()=>i.current=!0}}function K1(e,t=globalThis==null?void 0:globalThis.document){const n=ks(e),i=U.useRef(!1);return U.useEffect(()=>{const r=s=>{s.target&&!i.current&&tf(j1,n,{originalEvent:s},{discrete:!1})};return t.addEventListener("focusin",r),()=>t.removeEventListener("focusin",r)},[t,n]),{onFocusCapture:()=>i.current=!0,onBlurCapture:()=>i.current=!1}}function Wl(){const e=new CustomEvent(es);document.dispatchEvent(e)}function tf(e,t,n,{discrete:i}){const r=n.originalEvent.target,s=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&r.addEventListener(e,t,{once:!0}),i?L1(r,s):r.dispatchEvent(s)}function nf(e){const t=U1(e),n=U.forwardRef((i,r)=>{const{children:s,...o}=i,l=U.Children.toArray(s),u=l.find($1);if(u){const f=u.props.children,p=l.map(h=>h===u?U.Children.count(f)>1?U.Children.only(null):U.isValidElement(f)?f.props.children:null:h);return C.jsx(t,{...o,ref:r,children:U.isValidElement(f)?U.cloneElement(f,void 0,p):null})}return C.jsx(t,{...o,ref:r,children:s})});return n.displayName=`${e}.Slot`,n}function U1(e){const t=U.forwardRef((n,i)=>{const{children:r,...s}=n;if(U.isValidElement(r)){const o=W1(r),l=q1(s,r.props);return r.type!==U.Fragment&&(l.ref=i?Jh(i,o):o),U.cloneElement(r,l)}return U.Children.count(r)>1?U.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var H1=Symbol("radix.slottable");function $1(e){return U.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===H1}function q1(e,t){const n={...t};for(const i in t){const r=e[i],s=t[i];/^on[A-Z]/.test(i)?r&&s?n[i]=(...l)=>{const u=s(...l);return r(...l),u}:r&&(n[i]=r):i==="style"?n[i]={...r,...s}:i==="className"&&(n[i]=[r,s].filter(Boolean).join(" "))}return{...e,...n}}function W1(e){var i,r;let t=(i=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:i.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(r=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var G1=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],On=G1.reduce((e,t)=>{const n=nf(`Primitive.${t}`),i=U.forwardRef((r,s)=>{const{asChild:o,...l}=r,u=o?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),C.jsx(u,{...l,ref:s})});return i.displayName=`Primitive.${t}`,{...e,[t]:i}},{});function Gl(e){const t=U.useRef(e);return U.useEffect(()=>{t.current=e}),U.useMemo(()=>(...n)=>{var i;return(i=t.current)==null?void 0:i.call(t,...n)},[])}var wa="focusScope.autoFocusOnMount",Ea="focusScope.autoFocusOnUnmount",Jl={bubbles:!1,cancelable:!0},J1="FocusScope",rf=U.forwardRef((e,t)=>{const{loop:n=!1,trapped:i=!1,onMountAutoFocus:r,onUnmountAutoFocus:s,...o}=e,[l,u]=U.useState(null),f=Gl(r),p=Gl(s),h=U.useRef(null),d=Ii(t,v=>u(v)),m=U.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;U.useEffect(()=>{if(i){let v=function(I){if(m.paused||!l)return;const N=I.target;l.contains(N)?h.current=N:fn(h.current,{select:!0})},S=function(I){if(m.paused||!l)return;const N=I.relatedTarget;N!==null&&(l.contains(N)||fn(h.current,{select:!0}))},E=function(I){if(document.activeElement===document.body)for(const y of I)y.removedNodes.length>0&&fn(l)};document.addEventListener("focusin",v),document.addEventListener("focusout",S);const k=new MutationObserver(E);return l&&k.observe(l,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",v),document.removeEventListener("focusout",S),k.disconnect()}}},[i,l,m.paused]),U.useEffect(()=>{if(l){Ql.add(m);const v=document.activeElement;if(!l.contains(v)){const E=new CustomEvent(wa,Jl);l.addEventListener(wa,f),l.dispatchEvent(E),E.defaultPrevented||(Y1(tw(af(l)),{select:!0}),document.activeElement===v&&fn(l))}return()=>{l.removeEventListener(wa,f),setTimeout(()=>{const E=new CustomEvent(Ea,Jl);l.addEventListener(Ea,p),l.dispatchEvent(E),E.defaultPrevented||fn(v??document.body,{select:!0}),l.removeEventListener(Ea,p),Ql.remove(m)},0)}}},[l,f,p,m]);const b=U.useCallback(v=>{if(!n&&!i||m.paused)return;const S=v.key==="Tab"&&!v.altKey&&!v.ctrlKey&&!v.metaKey,E=document.activeElement;if(S&&E){const k=v.currentTarget,[I,N]=Q1(k);I&&N?!v.shiftKey&&E===N?(v.preventDefault(),n&&fn(I,{select:!0})):v.shiftKey&&E===I&&(v.preventDefault(),n&&fn(N,{select:!0})):E===k&&v.preventDefault()}},[n,i,m.paused]);return C.jsx(On.div,{tabIndex:-1,...o,ref:d,onKeyDown:b})});rf.displayName=J1;function Y1(e,{select:t=!1}={}){const n=document.activeElement;for(const i of e)if(fn(i,{select:t}),document.activeElement!==n)return}function Q1(e){const t=af(e),n=Yl(t,e),i=Yl(t.reverse(),e);return[n,i]}function af(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:i=>{const r=i.tagName==="INPUT"&&i.type==="hidden";return i.disabled||i.hidden||r?NodeFilter.FILTER_SKIP:i.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function Yl(e,t){for(const n of e)if(!Z1(n,{upTo:t}))return n}function Z1(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function X1(e){return e instanceof HTMLInputElement&&"select"in e}function fn(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&X1(e)&&t&&e.select()}}var Ql=ew();function ew(){let e=[];return{add(t){const n=e[0];t!==n&&(n==null||n.pause()),e=Zl(e,t),e.unshift(t)},remove(t){var n;e=Zl(e,t),(n=e[0])==null||n.resume()}}}function Zl(e,t){const n=[...e],i=n.indexOf(t);return i!==-1&&n.splice(i,1),n}function tw(e){return e.filter(t=>t.tagName!=="A")}var nw="Portal",sf=U.forwardRef((e,t)=>{var l;const{container:n,...i}=e,[r,s]=U.useState(!1);vi(()=>s(!0),[]);const o=n||r&&((l=globalThis==null?void 0:globalThis.document)==null?void 0:l.body);return o?Cr.createPortal(C.jsx(On.div,{...i,ref:t}),o):null});sf.displayName=nw;function iw(e,t){return U.useReducer((n,i)=>t[n][i]??n,e)}var Vr=e=>{const{present:t,children:n}=e,i=rw(t),r=typeof n=="function"?n({present:i.isPresent}):U.Children.only(n),s=Ii(i.ref,aw(r));return typeof n=="function"||i.isPresent?U.cloneElement(r,{ref:s}):null};Vr.displayName="Presence";function rw(e){const[t,n]=U.useState(),i=U.useRef(null),r=U.useRef(e),s=U.useRef("none"),o=e?"mounted":"unmounted",[l,u]=iw(o,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return U.useEffect(()=>{const f=Ki(i.current);s.current=l==="mounted"?f:"none"},[l]),vi(()=>{const f=i.current,p=r.current;if(p!==e){const d=s.current,m=Ki(f);e?u("MOUNT"):m==="none"||(f==null?void 0:f.display)==="none"?u("UNMOUNT"):u(p&&d!==m?"ANIMATION_OUT":"UNMOUNT"),r.current=e}},[e,u]),vi(()=>{if(t){let f;const p=t.ownerDocument.defaultView??window,h=m=>{const v=Ki(i.current).includes(CSS.escape(m.animationName));if(m.target===t&&v&&(u("ANIMATION_END"),!r.current)){const S=t.style.animationFillMode;t.style.animationFillMode="forwards",f=p.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=S)})}},d=m=>{m.target===t&&(s.current=Ki(i.current))};return t.addEventListener("animationstart",d),t.addEventListener("animationcancel",h),t.addEventListener("animationend",h),()=>{p.clearTimeout(f),t.removeEventListener("animationstart",d),t.removeEventListener("animationcancel",h),t.removeEventListener("animationend",h)}}else u("ANIMATION_END")},[t,u]),{isPresent:["mounted","unmountSuspended"].includes(l),ref:U.useCallback(f=>{i.current=f?getComputedStyle(f):null,n(f)},[])}}function Ki(e){return(e==null?void 0:e.animationName)||"none"}function aw(e){var i,r;let t=(i=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:i.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(r=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var Sa=0;function sw(){U.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??Xl()),document.body.insertAdjacentElement("beforeend",e[1]??Xl()),Sa++,()=>{Sa===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),Sa--}},[])}function Xl(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var ir="right-scroll-bar-position",rr="width-before-scroll-bar",ow="with-scroll-bars-hidden",lw="--removed-body-scroll-bar-size";function ka(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function uw(e,t){var n=V.useState(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(i){var r=n.value;r!==i&&(n.value=i,n.callback(i,r))}}}})[0];return n.callback=t,n.facade}var cw=typeof window<"u"?U.useLayoutEffect:U.useEffect,eu=new WeakMap;function hw(e,t){var n=uw(null,function(i){return e.forEach(function(r){return ka(r,i)})});return cw(function(){var i=eu.get(n);if(i){var r=new Set(i),s=new Set(e),o=n.current;r.forEach(function(l){s.has(l)||ka(l,null)}),s.forEach(function(l){r.has(l)||ka(l,o)})}eu.set(n,e)},[e]),n}function fw(e){return e}function pw(e,t){t===void 0&&(t=fw);var n=[],i=!1,r={read:function(){if(i)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(s){var o=t(s,i);return n.push(o),function(){n=n.filter(function(l){return l!==o})}},assignSyncMedium:function(s){for(i=!0;n.length;){var o=n;n=[],o.forEach(s)}n={push:function(l){return s(l)},filter:function(){return n}}},assignMedium:function(s){i=!0;var o=[];if(n.length){var l=n;n=[],l.forEach(s),o=n}var u=function(){var p=o;o=[],p.forEach(s)},f=function(){return Promise.resolve().then(u)};f(),n={push:function(p){o.push(p),f()},filter:function(p){return o=o.filter(p),n}}}};return r}function dw(e){e===void 0&&(e={});var t=pw(null);return t.options=Ot({async:!0,ssr:!1},e),t}var of=function(e){var t=e.sideCar,n=Wu(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var i=t.read();if(!i)throw new Error("Sidecar medium not found");return U.createElement(i,Ot({},n))};of.isSideCarExport=!0;function gw(e,t){return e.useMedium(t),of}var lf=dw(),Ca=function(){},Br=U.forwardRef(function(e,t){var n=U.useRef(null),i=U.useState({onScrollCapture:Ca,onWheelCapture:Ca,onTouchMoveCapture:Ca}),r=i[0],s=i[1],o=e.forwardProps,l=e.children,u=e.className,f=e.removeScrollBar,p=e.enabled,h=e.shards,d=e.sideCar,m=e.noRelative,b=e.noIsolation,v=e.inert,S=e.allowPinchZoom,E=e.as,k=E===void 0?"div":E,I=e.gapMode,N=Wu(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),y=d,g=hw([n,t]),A=Ot(Ot({},N),r);return U.createElement(U.Fragment,null,p&&U.createElement(y,{sideCar:lf,removeScrollBar:f,shards:h,noRelative:m,noIsolation:b,inert:v,setCallbacks:s,allowPinchZoom:!!S,lockRef:n,gapMode:I}),o?U.cloneElement(U.Children.only(l),Ot(Ot({},A),{ref:g})):U.createElement(k,Ot({},A,{className:u,ref:g}),l))});Br.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};Br.classNames={fullWidth:rr,zeroRight:ir};var mw=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function xw(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=mw();return t&&e.setAttribute("nonce",t),e}function vw(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function bw(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var yw=function(){var e=0,t=null;return{add:function(n){e==0&&(t=xw())&&(vw(t,n),bw(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},ww=function(){var e=yw();return function(t,n){U.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},uf=function(){var e=ww(),t=function(n){var i=n.styles,r=n.dynamic;return e(i,r),null};return t},Ew={left:0,top:0,right:0,gap:0},_a=function(e){return parseInt(e||"",10)||0},Sw=function(e){var t=window.getComputedStyle(document.body),n=t[e==="padding"?"paddingLeft":"marginLeft"],i=t[e==="padding"?"paddingTop":"marginTop"],r=t[e==="padding"?"paddingRight":"marginRight"];return[_a(n),_a(i),_a(r)]},kw=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return Ew;var t=Sw(e),n=document.documentElement.clientWidth,i=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,i-n+t[2]-t[0])}},Cw=uf(),$n="data-scroll-locked",_w=function(e,t,n,i){var r=e.left,s=e.top,o=e.right,l=e.gap;return n===void 0&&(n="margin"),`
77
+ .`.concat(ow,` {
78
+ overflow: hidden `).concat(i,`;
79
+ padding-right: `).concat(l,"px ").concat(i,`;
132
80
  }
133
- body[`).concat(Mn,`] {
134
- overflow: hidden `).concat(n,`;
81
+ body[`).concat($n,`] {
82
+ overflow: hidden `).concat(i,`;
135
83
  overscroll-behavior: contain;
136
- `).concat([t&&"position: relative ".concat(n,";"),i==="margin"&&`
84
+ `).concat([t&&"position: relative ".concat(i,";"),n==="margin"&&`
137
85
  padding-left: `.concat(r,`px;
138
- padding-top: `).concat(a,`px;
139
- padding-right: `).concat(s,`px;
86
+ padding-top: `).concat(s,`px;
87
+ padding-right: `).concat(o,`px;
140
88
  margin-left:0;
141
89
  margin-top:0;
142
- margin-right: `).concat(l,"px ").concat(n,`;
143
- `),i==="padding"&&"padding-right: ".concat(l,"px ").concat(n,";")].filter(Boolean).join(""),`
90
+ margin-right: `).concat(l,"px ").concat(i,`;
91
+ `),n==="padding"&&"padding-right: ".concat(l,"px ").concat(i,";")].filter(Boolean).join(""),`
144
92
  }
145
93
 
146
- .`).concat(ga,` {
147
- right: `).concat(l,"px ").concat(n,`;
94
+ .`).concat(ir,` {
95
+ right: `).concat(l,"px ").concat(i,`;
148
96
  }
149
97
 
150
- .`).concat(ma,` {
151
- margin-right: `).concat(l,"px ").concat(n,`;
98
+ .`).concat(rr,` {
99
+ margin-right: `).concat(l,"px ").concat(i,`;
152
100
  }
153
101
 
154
- .`).concat(ga," .").concat(ga,` {
155
- right: 0 `).concat(n,`;
102
+ .`).concat(ir," .").concat(ir,` {
103
+ right: 0 `).concat(i,`;
156
104
  }
157
105
 
158
- .`).concat(ma," .").concat(ma,` {
159
- margin-right: 0 `).concat(n,`;
106
+ .`).concat(rr," .").concat(rr,` {
107
+ margin-right: 0 `).concat(i,`;
160
108
  }
161
109
 
162
- body[`).concat(Mn,`] {
163
- `).concat(p_,": ").concat(l,`px;
110
+ body[`).concat($n,`] {
111
+ `).concat(lw,": ").concat(l,`px;
164
112
  }
165
- `)},Oh=function(){var e=parseInt(document.body.getAttribute(Mn)||"0",10);return isFinite(e)?e:0},P_=function(){q.useEffect(function(){return document.body.setAttribute(Mn,(Oh()+1).toString()),function(){var e=Oh()-1;e<=0?document.body.removeAttribute(Mn):document.body.setAttribute(Mn,e.toString())}},[])},R_=function(e){var t=e.noRelative,i=e.noImportant,n=e.gapMode,r=n===void 0?"margin":n;P_();var a=q.useMemo(function(){return N_(r)},[r]);return q.createElement(T_,{styles:O_(a,!t,r,i?"":"!important")})},Oo=!1;if(typeof window<"u")try{var ea=Object.defineProperty({},"passive",{get:function(){return Oo=!0,!0}});window.addEventListener("test",ea,ea),window.removeEventListener("test",ea,ea)}catch{Oo=!1}var Sn=Oo?{passive:!1}:!1,M_=function(e){return e.tagName==="TEXTAREA"},rm=function(e,t){if(!(e instanceof Element))return!1;var i=window.getComputedStyle(e);return i[t]!=="hidden"&&!(i.overflowY===i.overflowX&&!M_(e)&&i[t]==="visible")},L_=function(e){return rm(e,"overflowY")},D_=function(e){return rm(e,"overflowX")},Ph=function(e,t){var i=t.ownerDocument,n=t;do{typeof ShadowRoot<"u"&&n instanceof ShadowRoot&&(n=n.host);var r=am(e,n);if(r){var a=sm(e,n),s=a[1],l=a[2];if(s>l)return!0}n=n.parentNode}while(n&&n!==i.body);return!1},F_=function(e){var t=e.scrollTop,i=e.scrollHeight,n=e.clientHeight;return[t,i,n]},j_=function(e){var t=e.scrollLeft,i=e.scrollWidth,n=e.clientWidth;return[t,i,n]},am=function(e,t){return e==="v"?L_(t):D_(t)},sm=function(e,t){return e==="v"?F_(t):j_(t)},z_=function(e,t){return e==="h"&&t==="rtl"?-1:1},V_=function(e,t,i,n,r){var a=z_(e,window.getComputedStyle(t).direction),s=a*n,l=i.target,u=t.contains(l),c=!1,h=s>0,p=0,g=0;do{if(!l)break;var m=sm(e,l),E=m[0],v=m[1],k=m[2],S=v-k-a*E;(E||S)&&am(e,l)&&(p+=S,g+=E);var w=l.parentNode;l=w&&w.nodeType===Node.DOCUMENT_FRAGMENT_NODE?w.host:w}while(!u&&l!==document.body||u&&(t.contains(l)||t===l));return(h&&Math.abs(p)<1||!h&&Math.abs(g)<1)&&(c=!0),c},ta=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},Rh=function(e){return[e.deltaX,e.deltaY]},Mh=function(e){return e&&"current"in e?e.current:e},B_=function(e,t){return e[0]===t[0]&&e[1]===t[1]},H_=function(e){return`
113
+ `)},tu=function(){var e=parseInt(document.body.getAttribute($n)||"0",10);return isFinite(e)?e:0},Iw=function(){U.useEffect(function(){return document.body.setAttribute($n,(tu()+1).toString()),function(){var e=tu()-1;e<=0?document.body.removeAttribute($n):document.body.setAttribute($n,e.toString())}},[])},Aw=function(e){var t=e.noRelative,n=e.noImportant,i=e.gapMode,r=i===void 0?"margin":i;Iw();var s=U.useMemo(function(){return kw(r)},[r]);return U.createElement(Cw,{styles:_w(s,!t,r,n?"":"!important")})},ts=!1;if(typeof window<"u")try{var Ui=Object.defineProperty({},"passive",{get:function(){return ts=!0,!0}});window.addEventListener("test",Ui,Ui),window.removeEventListener("test",Ui,Ui)}catch{ts=!1}var Vn=ts?{passive:!1}:!1,Tw=function(e){return e.tagName==="TEXTAREA"},cf=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!Tw(e)&&n[t]==="visible")},Nw=function(e){return cf(e,"overflowY")},Pw=function(e){return cf(e,"overflowX")},nu=function(e,t){var n=t.ownerDocument,i=t;do{typeof ShadowRoot<"u"&&i instanceof ShadowRoot&&(i=i.host);var r=hf(e,i);if(r){var s=ff(e,i),o=s[1],l=s[2];if(o>l)return!0}i=i.parentNode}while(i&&i!==n.body);return!1},Ow=function(e){var t=e.scrollTop,n=e.scrollHeight,i=e.clientHeight;return[t,n,i]},Rw=function(e){var t=e.scrollLeft,n=e.scrollWidth,i=e.clientWidth;return[t,n,i]},hf=function(e,t){return e==="v"?Nw(t):Pw(t)},ff=function(e,t){return e==="v"?Ow(t):Rw(t)},Lw=function(e,t){return e==="h"&&t==="rtl"?-1:1},Mw=function(e,t,n,i,r){var s=Lw(e,window.getComputedStyle(t).direction),o=s*i,l=n.target,u=t.contains(l),f=!1,p=o>0,h=0,d=0;do{if(!l)break;var m=ff(e,l),b=m[0],v=m[1],S=m[2],E=v-S-s*b;(b||E)&&hf(e,l)&&(h+=E,d+=b);var k=l.parentNode;l=k&&k.nodeType===Node.DOCUMENT_FRAGMENT_NODE?k.host:k}while(!u&&l!==document.body||u&&(t.contains(l)||t===l));return(p&&Math.abs(h)<1||!p&&Math.abs(d)<1)&&(f=!0),f},Hi=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},iu=function(e){return[e.deltaX,e.deltaY]},ru=function(e){return e&&"current"in e?e.current:e},Fw=function(e,t){return e[0]===t[0]&&e[1]===t[1]},Dw=function(e){return`
166
114
  .block-interactivity-`.concat(e,` {pointer-events: none;}
167
115
  .allow-interactivity-`).concat(e,` {pointer-events: all;}
168
- `)},K_=0,En=[];function W_(e){var t=q.useRef([]),i=q.useRef([0,0]),n=q.useRef(),r=q.useState(K_++)[0],a=q.useState(nm)[0],s=q.useRef(e);q.useEffect(function(){s.current=e},[e]),q.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(r));var v=_a([e.lockRef.current],(e.shards||[]).map(Mh),!0).filter(Boolean);return v.forEach(function(k){return k.classList.add("allow-interactivity-".concat(r))}),function(){document.body.classList.remove("block-interactivity-".concat(r)),v.forEach(function(k){return k.classList.remove("allow-interactivity-".concat(r))})}}},[e.inert,e.lockRef.current,e.shards]);var l=q.useCallback(function(v,k){if("touches"in v&&v.touches.length===2||v.type==="wheel"&&v.ctrlKey)return!s.current.allowPinchZoom;var S=ta(v),w=i.current,I="deltaX"in v?v.deltaX:w[0]-S[0],A="deltaY"in v?v.deltaY:w[1]-S[1],y,f=v.target,O=Math.abs(I)>Math.abs(A)?"h":"v";if("touches"in v&&O==="h"&&f.type==="range")return!1;var P=window.getSelection(),F=P&&P.anchorNode,D=F?F===f||F.contains(f):!1;if(D)return!1;var V=Ph(O,f);if(!V)return!0;if(V?y=O:(y=O==="v"?"h":"v",V=Ph(O,f)),!V)return!1;if(!n.current&&"changedTouches"in v&&(I||A)&&(n.current=y),!y)return!0;var J=n.current||y;return V_(J,k,v,J==="h"?I:A)},[]),u=q.useCallback(function(v){var k=v;if(!(!En.length||En[En.length-1]!==a)){var S="deltaY"in k?Rh(k):ta(k),w=t.current.filter(function(y){return y.name===k.type&&(y.target===k.target||k.target===y.shadowParent)&&B_(y.delta,S)})[0];if(w&&w.should){k.cancelable&&k.preventDefault();return}if(!w){var I=(s.current.shards||[]).map(Mh).filter(Boolean).filter(function(y){return y.contains(k.target)}),A=I.length>0?l(k,I[0]):!s.current.noIsolation;A&&k.cancelable&&k.preventDefault()}}},[]),c=q.useCallback(function(v,k,S,w){var I={name:v,delta:k,target:S,should:w,shadowParent:U_(S)};t.current.push(I),setTimeout(function(){t.current=t.current.filter(function(A){return A!==I})},1)},[]),h=q.useCallback(function(v){i.current=ta(v),n.current=void 0},[]),p=q.useCallback(function(v){c(v.type,Rh(v),v.target,l(v,e.lockRef.current))},[]),g=q.useCallback(function(v){c(v.type,ta(v),v.target,l(v,e.lockRef.current))},[]);q.useEffect(function(){return En.push(a),e.setCallbacks({onScrollCapture:p,onWheelCapture:p,onTouchMoveCapture:g}),document.addEventListener("wheel",u,Sn),document.addEventListener("touchmove",u,Sn),document.addEventListener("touchstart",h,Sn),function(){En=En.filter(function(v){return v!==a}),document.removeEventListener("wheel",u,Sn),document.removeEventListener("touchmove",u,Sn),document.removeEventListener("touchstart",h,Sn)}},[]);var m=e.removeScrollBar,E=e.inert;return q.createElement(q.Fragment,null,E?q.createElement(a,{styles:H_(r)}):null,m?q.createElement(R_,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function U_(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const q_=y_(im,W_);var om=q.forwardRef(function(e,t){return q.createElement(ss,gi({},e,{ref:t,sideCar:q_}))});om.classNames=ss.classNames;var G_=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},Cn=new WeakMap,ia=new WeakMap,na={},no=0,lm=function(e){return e&&(e.host||lm(e.parentNode))},$_=function(e,t){return t.map(function(i){if(e.contains(i))return i;var n=lm(i);return n&&e.contains(n)?n:(console.error("aria-hidden",i,"in not contained inside",e,". Doing nothing"),null)}).filter(function(i){return!!i})},J_=function(e,t,i,n){var r=$_(t,Array.isArray(e)?e:[e]);na[i]||(na[i]=new WeakMap);var a=na[i],s=[],l=new Set,u=new Set(r),c=function(p){!p||l.has(p)||(l.add(p),c(p.parentNode))};r.forEach(c);var h=function(p){!p||u.has(p)||Array.prototype.forEach.call(p.children,function(g){if(l.has(g))h(g);else try{var m=g.getAttribute(n),E=m!==null&&m!=="false",v=(Cn.get(g)||0)+1,k=(a.get(g)||0)+1;Cn.set(g,v),a.set(g,k),s.push(g),v===1&&E&&ia.set(g,!0),k===1&&g.setAttribute(i,"true"),E||g.setAttribute(n,"true")}catch(S){console.error("aria-hidden: cannot operate on ",g,S)}})};return h(t),l.clear(),no++,function(){s.forEach(function(p){var g=Cn.get(p)-1,m=a.get(p)-1;Cn.set(p,g),a.set(p,m),g||(ia.has(p)||p.removeAttribute(n),ia.delete(p)),m||p.removeAttribute(i)}),no--,no||(Cn=new WeakMap,Cn=new WeakMap,ia=new WeakMap,na={})}},Y_=function(e,t,i){i===void 0&&(i="data-aria-hidden");var n=Array.from(Array.isArray(e)?e:[e]),r=G_(e);return r?(n.push.apply(n,Array.from(r.querySelectorAll("[aria-live], script"))),J_(n,r,i,"aria-hidden")):function(){return null}},os="Dialog",[um]=E2(os),[Q_,ci]=um(os),cm=e=>{const{__scopeDialog:t,children:i,open:n,defaultOpen:r,onOpenChange:a,modal:s=!0}=e,l=q.useRef(null),u=q.useRef(null),[c,h]=N2({prop:n,defaultProp:r??!1,onChange:a,caller:os});return b.jsx(Q_,{scope:t,triggerRef:l,contentRef:u,contentId:Js(),titleId:Js(),descriptionId:Js(),open:c,onOpenChange:h,onOpenToggle:q.useCallback(()=>h(p=>!p),[h]),modal:s,children:i})};cm.displayName=os;var hm="DialogTrigger",Z_=q.forwardRef((e,t)=>{const{__scopeDialog:i,...n}=e,r=ci(hm,i),a=Cr(t,r.triggerRef);return b.jsx(hn.button,{type:"button","aria-haspopup":"dialog","aria-expanded":r.open,"aria-controls":r.contentId,"data-state":Zl(r.open),...n,ref:a,onClick:or(e.onClick,r.onOpenToggle)})});Z_.displayName=hm;var Yl="DialogPortal",[X_,dm]=um(Yl,{forceMount:void 0}),pm=e=>{const{__scopeDialog:t,forceMount:i,children:n,container:r}=e,a=ci(Yl,t);return b.jsx(X_,{scope:t,forceMount:i,children:q.Children.map(n,s=>b.jsx(as,{present:i||a.open,children:b.jsx(em,{asChild:!0,container:r,children:s})}))})};pm.displayName=Yl;var Da="DialogOverlay",fm=q.forwardRef((e,t)=>{const i=dm(Da,e.__scopeDialog),{forceMount:n=i.forceMount,...r}=e,a=ci(Da,e.__scopeDialog);return a.modal?b.jsx(as,{present:n||a.open,children:b.jsx(tA,{...r,ref:t})}):null});fm.displayName=Da;var eA=Qg("DialogOverlay.RemoveScroll"),tA=q.forwardRef((e,t)=>{const{__scopeDialog:i,...n}=e,r=ci(Da,i);return b.jsx(om,{as:eA,allowPinchZoom:!0,shards:[r.contentRef],children:b.jsx(hn.div,{"data-state":Zl(r.open),...n,ref:t,style:{pointerEvents:"auto",...n.style}})})}),ln="DialogContent",gm=q.forwardRef((e,t)=>{const i=dm(ln,e.__scopeDialog),{forceMount:n=i.forceMount,...r}=e,a=ci(ln,e.__scopeDialog);return b.jsx(as,{present:n||a.open,children:a.modal?b.jsx(iA,{...r,ref:t}):b.jsx(nA,{...r,ref:t})})});gm.displayName=ln;var iA=q.forwardRef((e,t)=>{const i=ci(ln,e.__scopeDialog),n=q.useRef(null),r=Cr(t,i.contentRef,n);return q.useEffect(()=>{const a=n.current;if(a)return Y_(a)},[]),b.jsx(mm,{...e,ref:r,trapFocus:i.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:or(e.onCloseAutoFocus,a=>{var s;a.preventDefault(),(s=i.triggerRef.current)==null||s.focus()}),onPointerDownOutside:or(e.onPointerDownOutside,a=>{const s=a.detail.originalEvent,l=s.button===0&&s.ctrlKey===!0;(s.button===2||l)&&a.preventDefault()}),onFocusOutside:or(e.onFocusOutside,a=>a.preventDefault())})}),nA=q.forwardRef((e,t)=>{const i=ci(ln,e.__scopeDialog),n=q.useRef(!1),r=q.useRef(!1);return b.jsx(mm,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:a=>{var s,l;(s=e.onCloseAutoFocus)==null||s.call(e,a),a.defaultPrevented||(n.current||(l=i.triggerRef.current)==null||l.focus(),a.preventDefault()),n.current=!1,r.current=!1},onInteractOutside:a=>{var u,c;(u=e.onInteractOutside)==null||u.call(e,a),a.defaultPrevented||(n.current=!0,a.detail.originalEvent.type==="pointerdown"&&(r.current=!0));const s=a.target;((c=i.triggerRef.current)==null?void 0:c.contains(s))&&a.preventDefault(),a.detail.originalEvent.type==="focusin"&&r.current&&a.preventDefault()}})}),mm=q.forwardRef((e,t)=>{const{__scopeDialog:i,trapFocus:n,onOpenAutoFocus:r,onCloseAutoFocus:a,...s}=e,l=ci(ln,i),u=q.useRef(null),c=Cr(t,u);return h_(),b.jsxs(b.Fragment,{children:[b.jsx(Zg,{asChild:!0,loop:!0,trapped:n,onMountAutoFocus:r,onUnmountAutoFocus:a,children:b.jsx(Jg,{role:"dialog",id:l.contentId,"aria-describedby":l.descriptionId,"aria-labelledby":l.titleId,"data-state":Zl(l.open),...s,ref:c,onDismiss:()=>l.onOpenChange(!1)})}),b.jsxs(b.Fragment,{children:[b.jsx(sA,{titleId:l.titleId}),b.jsx(lA,{contentRef:u,descriptionId:l.descriptionId})]})]})}),Ql="DialogTitle",vm=q.forwardRef((e,t)=>{const{__scopeDialog:i,...n}=e,r=ci(Ql,i);return b.jsx(hn.h2,{id:r.titleId,...n,ref:t})});vm.displayName=Ql;var xm="DialogDescription",rA=q.forwardRef((e,t)=>{const{__scopeDialog:i,...n}=e,r=ci(xm,i);return b.jsx(hn.p,{id:r.descriptionId,...n,ref:t})});rA.displayName=xm;var bm="DialogClose",aA=q.forwardRef((e,t)=>{const{__scopeDialog:i,...n}=e,r=ci(bm,i);return b.jsx(hn.button,{type:"button",...n,ref:t,onClick:or(e.onClick,()=>r.onOpenChange(!1))})});aA.displayName=bm;function Zl(e){return e?"open":"closed"}var ym="DialogTitleWarning",[iN,wm]=S2(ym,{contentName:ln,titleName:Ql,docsSlug:"dialog"}),sA=({titleId:e})=>{const t=wm(ym),i=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
116
+ `)},jw=0,Bn=[];function Vw(e){var t=U.useRef([]),n=U.useRef([0,0]),i=U.useRef(),r=U.useState(jw++)[0],s=U.useState(uf)[0],o=U.useRef(e);U.useEffect(function(){o.current=e},[e]),U.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(r));var v=lr([e.lockRef.current],(e.shards||[]).map(ru),!0).filter(Boolean);return v.forEach(function(S){return S.classList.add("allow-interactivity-".concat(r))}),function(){document.body.classList.remove("block-interactivity-".concat(r)),v.forEach(function(S){return S.classList.remove("allow-interactivity-".concat(r))})}}},[e.inert,e.lockRef.current,e.shards]);var l=U.useCallback(function(v,S){if("touches"in v&&v.touches.length===2||v.type==="wheel"&&v.ctrlKey)return!o.current.allowPinchZoom;var E=Hi(v),k=n.current,I="deltaX"in v?v.deltaX:k[0]-E[0],N="deltaY"in v?v.deltaY:k[1]-E[1],y,g=v.target,A=Math.abs(I)>Math.abs(N)?"h":"v";if("touches"in v&&A==="h"&&g.type==="range")return!1;var M=window.getSelection(),F=M&&M.anchorNode,R=F?F===g||F.contains(g):!1;if(R)return!1;var j=nu(A,g);if(!j)return!0;if(j?y=A:(y=A==="v"?"h":"v",j=nu(A,g)),!j)return!1;if(!i.current&&"changedTouches"in v&&(I||N)&&(i.current=y),!y)return!0;var B=i.current||y;return Mw(B,S,v,B==="h"?I:N)},[]),u=U.useCallback(function(v){var S=v;if(!(!Bn.length||Bn[Bn.length-1]!==s)){var E="deltaY"in S?iu(S):Hi(S),k=t.current.filter(function(y){return y.name===S.type&&(y.target===S.target||S.target===y.shadowParent)&&Fw(y.delta,E)})[0];if(k&&k.should){S.cancelable&&S.preventDefault();return}if(!k){var I=(o.current.shards||[]).map(ru).filter(Boolean).filter(function(y){return y.contains(S.target)}),N=I.length>0?l(S,I[0]):!o.current.noIsolation;N&&S.cancelable&&S.preventDefault()}}},[]),f=U.useCallback(function(v,S,E,k){var I={name:v,delta:S,target:E,should:k,shadowParent:Bw(E)};t.current.push(I),setTimeout(function(){t.current=t.current.filter(function(N){return N!==I})},1)},[]),p=U.useCallback(function(v){n.current=Hi(v),i.current=void 0},[]),h=U.useCallback(function(v){f(v.type,iu(v),v.target,l(v,e.lockRef.current))},[]),d=U.useCallback(function(v){f(v.type,Hi(v),v.target,l(v,e.lockRef.current))},[]);U.useEffect(function(){return Bn.push(s),e.setCallbacks({onScrollCapture:h,onWheelCapture:h,onTouchMoveCapture:d}),document.addEventListener("wheel",u,Vn),document.addEventListener("touchmove",u,Vn),document.addEventListener("touchstart",p,Vn),function(){Bn=Bn.filter(function(v){return v!==s}),document.removeEventListener("wheel",u,Vn),document.removeEventListener("touchmove",u,Vn),document.removeEventListener("touchstart",p,Vn)}},[]);var m=e.removeScrollBar,b=e.inert;return U.createElement(U.Fragment,null,b?U.createElement(s,{styles:Dw(r)}):null,m?U.createElement(Aw,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function Bw(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const zw=gw(lf,Vw);var pf=U.forwardRef(function(e,t){return U.createElement(Br,Ot({},e,{ref:t,sideCar:zw}))});pf.classNames=Br.classNames;var Kw=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},zn=new WeakMap,$i=new WeakMap,qi={},Ia=0,df=function(e){return e&&(e.host||df(e.parentNode))},Uw=function(e,t){return t.map(function(n){if(e.contains(n))return n;var i=df(n);return i&&e.contains(i)?i:(console.error("aria-hidden",n,"in not contained inside",e,". Doing nothing"),null)}).filter(function(n){return!!n})},Hw=function(e,t,n,i){var r=Uw(t,Array.isArray(e)?e:[e]);qi[n]||(qi[n]=new WeakMap);var s=qi[n],o=[],l=new Set,u=new Set(r),f=function(h){!h||l.has(h)||(l.add(h),f(h.parentNode))};r.forEach(f);var p=function(h){!h||u.has(h)||Array.prototype.forEach.call(h.children,function(d){if(l.has(d))p(d);else try{var m=d.getAttribute(i),b=m!==null&&m!=="false",v=(zn.get(d)||0)+1,S=(s.get(d)||0)+1;zn.set(d,v),s.set(d,S),o.push(d),v===1&&b&&$i.set(d,!0),S===1&&d.setAttribute(n,"true"),b||d.setAttribute(i,"true")}catch(E){console.error("aria-hidden: cannot operate on ",d,E)}})};return p(t),l.clear(),Ia++,function(){o.forEach(function(h){var d=zn.get(h)-1,m=s.get(h)-1;zn.set(h,d),s.set(h,m),d||($i.has(h)||h.removeAttribute(i),$i.delete(h)),m||h.removeAttribute(n)}),Ia--,Ia||(zn=new WeakMap,zn=new WeakMap,$i=new WeakMap,qi={})}},$w=function(e,t,n){n===void 0&&(n="data-aria-hidden");var i=Array.from(Array.isArray(e)?e:[e]),r=Kw(e);return r?(i.push.apply(i,Array.from(r.querySelectorAll("[aria-live], script"))),Hw(i,r,n,"aria-hidden")):function(){return null}},zr="Dialog",[gf]=b1(zr),[qw,Kt]=gf(zr),mf=e=>{const{__scopeDialog:t,children:n,open:i,defaultOpen:r,onOpenChange:s,modal:o=!0}=e,l=U.useRef(null),u=U.useRef(null),[f,p]=k1({prop:i,defaultProp:r??!1,onChange:s,caller:zr});return C.jsx(qw,{scope:t,triggerRef:l,contentRef:u,contentId:ba(),titleId:ba(),descriptionId:ba(),open:f,onOpenChange:p,onOpenToggle:U.useCallback(()=>p(h=>!h),[p]),modal:o,children:n})};mf.displayName=zr;var xf="DialogTrigger",Ww=U.forwardRef((e,t)=>{const{__scopeDialog:n,...i}=e,r=Kt(xf,n),s=Ii(t,r.triggerRef);return C.jsx(On.button,{type:"button","aria-haspopup":"dialog","aria-expanded":r.open,"aria-controls":r.contentId,"data-state":Is(r.open),...i,ref:s,onClick:fi(e.onClick,r.onOpenToggle)})});Ww.displayName=xf;var Cs="DialogPortal",[Gw,vf]=gf(Cs,{forceMount:void 0}),bf=e=>{const{__scopeDialog:t,forceMount:n,children:i,container:r}=e,s=Kt(Cs,t);return C.jsx(Gw,{scope:t,forceMount:n,children:U.Children.map(i,o=>C.jsx(Vr,{present:n||s.open,children:C.jsx(sf,{asChild:!0,container:r,children:o})}))})};bf.displayName=Cs;var xr="DialogOverlay",yf=U.forwardRef((e,t)=>{const n=vf(xr,e.__scopeDialog),{forceMount:i=n.forceMount,...r}=e,s=Kt(xr,e.__scopeDialog);return s.modal?C.jsx(Vr,{present:i||s.open,children:C.jsx(Yw,{...r,ref:t})}):null});yf.displayName=xr;var Jw=nf("DialogOverlay.RemoveScroll"),Yw=U.forwardRef((e,t)=>{const{__scopeDialog:n,...i}=e,r=Kt(xr,n);return C.jsx(pf,{as:Jw,allowPinchZoom:!0,shards:[r.contentRef],children:C.jsx(On.div,{"data-state":Is(r.open),...i,ref:t,style:{pointerEvents:"auto",...i.style}})})}),An="DialogContent",wf=U.forwardRef((e,t)=>{const n=vf(An,e.__scopeDialog),{forceMount:i=n.forceMount,...r}=e,s=Kt(An,e.__scopeDialog);return C.jsx(Vr,{present:i||s.open,children:s.modal?C.jsx(Qw,{...r,ref:t}):C.jsx(Zw,{...r,ref:t})})});wf.displayName=An;var Qw=U.forwardRef((e,t)=>{const n=Kt(An,e.__scopeDialog),i=U.useRef(null),r=Ii(t,n.contentRef,i);return U.useEffect(()=>{const s=i.current;if(s)return $w(s)},[]),C.jsx(Ef,{...e,ref:r,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:fi(e.onCloseAutoFocus,s=>{var o;s.preventDefault(),(o=n.triggerRef.current)==null||o.focus()}),onPointerDownOutside:fi(e.onPointerDownOutside,s=>{const o=s.detail.originalEvent,l=o.button===0&&o.ctrlKey===!0;(o.button===2||l)&&s.preventDefault()}),onFocusOutside:fi(e.onFocusOutside,s=>s.preventDefault())})}),Zw=U.forwardRef((e,t)=>{const n=Kt(An,e.__scopeDialog),i=U.useRef(!1),r=U.useRef(!1);return C.jsx(Ef,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:s=>{var o,l;(o=e.onCloseAutoFocus)==null||o.call(e,s),s.defaultPrevented||(i.current||(l=n.triggerRef.current)==null||l.focus(),s.preventDefault()),i.current=!1,r.current=!1},onInteractOutside:s=>{var u,f;(u=e.onInteractOutside)==null||u.call(e,s),s.defaultPrevented||(i.current=!0,s.detail.originalEvent.type==="pointerdown"&&(r.current=!0));const o=s.target;((f=n.triggerRef.current)==null?void 0:f.contains(o))&&s.preventDefault(),s.detail.originalEvent.type==="focusin"&&r.current&&s.preventDefault()}})}),Ef=U.forwardRef((e,t)=>{const{__scopeDialog:n,trapFocus:i,onOpenAutoFocus:r,onCloseAutoFocus:s,...o}=e,l=Kt(An,n),u=U.useRef(null),f=Ii(t,u);return sw(),C.jsxs(C.Fragment,{children:[C.jsx(rf,{asChild:!0,loop:!0,trapped:i,onMountAutoFocus:r,onUnmountAutoFocus:s,children:C.jsx(ef,{role:"dialog",id:l.contentId,"aria-describedby":l.descriptionId,"aria-labelledby":l.titleId,"data-state":Is(l.open),...o,ref:f,onDismiss:()=>l.onOpenChange(!1)})}),C.jsxs(C.Fragment,{children:[C.jsx(tE,{titleId:l.titleId}),C.jsx(iE,{contentRef:u,descriptionId:l.descriptionId})]})]})}),_s="DialogTitle",Sf=U.forwardRef((e,t)=>{const{__scopeDialog:n,...i}=e,r=Kt(_s,n);return C.jsx(On.h2,{id:r.titleId,...i,ref:t})});Sf.displayName=_s;var kf="DialogDescription",Xw=U.forwardRef((e,t)=>{const{__scopeDialog:n,...i}=e,r=Kt(kf,n);return C.jsx(On.p,{id:r.descriptionId,...i,ref:t})});Xw.displayName=kf;var Cf="DialogClose",eE=U.forwardRef((e,t)=>{const{__scopeDialog:n,...i}=e,r=Kt(Cf,n);return C.jsx(On.button,{type:"button",...i,ref:t,onClick:fi(e.onClick,()=>r.onOpenChange(!1))})});eE.displayName=Cf;function Is(e){return e?"open":"closed"}var _f="DialogTitleWarning",[qk,If]=v1(_f,{contentName:An,titleName:_s,docsSlug:"dialog"}),tE=({titleId:e})=>{const t=If(_f),n=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
169
117
 
170
118
  If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.
171
119
 
172
- For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return q.useEffect(()=>{e&&(document.getElementById(e)||console.error(i))},[i,e]),null},oA="DialogDescriptionWarning",lA=({contentRef:e,descriptionId:t})=>{const n=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${wm(oA).contentName}}.`;return q.useEffect(()=>{var a;const r=(a=e.current)==null?void 0:a.getAttribute("aria-describedby");t&&r&&(document.getElementById(t)||console.warn(n))},[n,e,t]),null},uA=cm,cA=pm,hA=fm,dA=gm,pA=vm;const km=({children:e,isOpen:t,onClose:i,title:n})=>b.jsx(uA,{open:t,onOpenChange:r=>!r&&i(),children:b.jsxs(cA,{container:ft(),children:[b.jsx(hA,{className:`fixed inset-0 z-[1000] bg-black bg-opacity-75 \r
173
- data-[state=open]:animate-in data-[state=open]:fade-in-0 \r
174
- data-[state=closed]:animate-out data-[state=closed]:fade-out-0`}),b.jsx("div",{className:"fixed inset-0 z-[1001] overflow-y-auto",children:b.jsx("div",{className:"flex min-h-full items-center justify-center p-4 text-center",children:b.jsxs(dA,{onPointerDownOutside:r=>r.preventDefault(),"aria-describedby":void 0,className:`w-full space-y-2 max-w-md transform overflow-hidden rounded border border-grey-50 bg-grey-900 px-5 py-4 text-left align-middle text-white shadow-xl\r
175
- data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:scale-95 data-[state=open]:duration-300\r
176
- data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:scale-95 data-[state=closed]:duration-200`,children:[b.jsxs("div",{className:"flex flex-col items-center justify-center gap-y-2",children:[b.jsx(Va,{className:"h-6 w-6"}),b.jsx(pA,{className:"mt-4 text-sm font-bold",children:n})]}),b.jsx("div",{className:"flex flex-col gap-y-2",children:e})]})})})]})}),fA=[{label:"json",value:"json"},{label:"csv",value:"csv"}],gA=({onSelect:e})=>{const[t,i]=M.useState(null);return b.jsx("div",{className:"w-full",children:b.jsx(Rn.Root,{"data-cy":"localization-export-file-type-select",value:t,options:fA,isMulti:!1,onChange:n=>{n&&(i(n),e(n.value))},getOptionLabel:n=>n.label,children:b.jsx(Rn.Group,{children:b.jsx(Rn.Field,{placeholder:"Select a file format"})})})})},mA=({enable:e,onSelect:t})=>{const{state:i,actions:n}=Se.useStateObject({delimiters:[{label:"Comma",value:","},{label:"Semicolon",value:";"}],selected:","});return M.useEffect(()=>{t(i.selected)},[i.selected]),e?b.jsxs("div",{className:"flex flex-row items-center justify-between",children:[b.jsx("span",{className:"text-sm text-grey-50",children:" Select a Delimiter "}),b.jsx(Cu.Group,{className:"flex flex-row items-center gap-x-2",value:i.selected,onChange:r=>n.setSelected(r),children:i.delimiters.map(({label:r,value:a})=>b.jsx(Cu.Item,{value:a,label:`${r} (${a})`}))})]}):b.jsx(b.Fragment,{})},vA={SELECT_FILE_TYPE:"Please Select a File Format !"},xA=({toExport:e})=>{var Q,se;const[t,i]=M.useState(),n=Ui(),r=n.getWebformTabs(),a=M.useRef(null),s=M.useRef([]),l=M.useRef([]),{i18n:u}=qi(),c=((Q=n.getUserComponents)==null?void 0:Q.call(n))??{},h=((se=n.getBuildResolver)==null?void 0:se.call(n))??{},[p]=M.useState(!0),{state:{isOpen:g,fileType:m,error:E,csvDelimier:v},actions:k}=Se.useStateObject({error:"",isOpen:!1,fileType:"",supprtedExtension:[".json",".csv"],csvDelimier:","}),S=e.length===0;M.useEffect(()=>{Se.tasksManagerSubject.subscribe({next:j=>{if(j.type==="i18n"&&j.action==="cancel"){const{id:U}=j;l.current.push(U)}}}),i({...h,...c})},[]);const w=()=>{k.setFileType(""),k.setError(""),k.setIsOpen(!1)},I=()=>{w()},A=()=>I(),y=()=>{const j={};t&&(Object.entries(t).forEach(([U,Y])=>{const{info:{settings:de}}=Y;if(de)if(U==="Text")j.Text=[{keyPropName:"doc",keyDefaultName:"text"}];else{const C=f(de,"");j[U]=C}}),a.current=j)},f=(j,U)=>{let Y=[];if(Array.isArray(j))j.forEach(de=>Y=Y.concat(f(de,U)));else if(pe.isObject(j)){const{key:de,type:C}=j;if(C===Se.ESetting.GROUP){const{components:$}=j;$==null||$.forEach(ee=>Y=Y.concat(f(ee,U)))}else C===Se.ESetting.I18NFIELD?Y.push({keyPropName:U||de,keyDefaultName:de}):Object.entries(j).forEach(([,$])=>{pe.isObject($)&&(Y=Y.concat(f($,U||de)))})}return Y},O=(j,U)=>{const{content:Y}=j,{components:de}=Y,C={};if(!de)return j;const $=(T,B,W,z)=>{const K=[];if(pe.has(T,W)){const le=pe.get(T,W);K.push(...No(le,W,z))}const ae=[];return K.forEach(le=>{const oe=pe.get(T,le),H={__dataPath:le,__default:oe};e.forEach(ve=>{const Z=`i18n:${ve}`,xe=Object.keys(B),be=xe.find(me=>me.startsWith(Z)),ie=xe.reduce((me,Ee)=>(Ee!==Z&&Ee.endsWith(Z)&&me.push(Ee),me),[]);if(be){const me=pe.get(B,`${be}.${le}`);pe.set(H,ve,me)}if(ie.length&&ie.forEach(me=>{const Ee=pe.get(B,`${me}.${le}`);let we=me;we=me.replace("states:",""),we=we.replace("i18n:",""),Ee&&pe.set(H,we,Ee)}),!be){const me=pe.get(T,`${le}`);pe.set(H,ve,me)}}),ae.push(H)}),ae},ee=(T,B,W)=>{const z=[],K=pe.get(T,W);return K?(z.push({key:"__default",props:K}),e.forEach(ae=>{const le=`i18n:${ae}`,oe=Object.keys(B),H=oe.find(Z=>Z.startsWith(le)),ve=oe.reduce((Z,xe)=>(xe!==le&&xe.endsWith(le)&&Z.push(xe),Z),[]);if(H){const Z=pe.get(B,`${H}.${W}`);Z&&z.push({key:ae,props:Z})}ve.length&&ve.forEach(Z=>{const xe=pe.get(B,`${Z}.${W}`);z.push({key:Z,props:xe||""})}),!H&&!ve.length&&z.push({key:ae,props:K})}),z.reduce((ae,le)=>{const{key:oe,props:H}=le,ve=y2(H);return{...ae,[oe]:ve}},{__dataPath:W})):T};return Object.entries(de).forEach(([T,B])=>{const{props:W,custom:z={},type:K}=B,ne=K.resolvedName,ae=U[ne];if(!ae||ae.length===0)return;const le=ae.map(({keyPropName:oe,keyDefaultName:H})=>ne==="Text"?ee(W,z,oe):$(W,z,oe,H));pe.set(C,T,{resolverName:ne,props:[...le.flat()]})}),C},P=async(j,U)=>{const Y={},de=C=>{const $=C+1===j.length?j.length:C,ee=Math.ceil($/j.length*100);Se.tasksManagerSubject.next({id:U,action:"update",type:"i18n",payload:{progress:ee,status:ee>=100?"finished":"ongoing"}})};for(let C=0;C<j.length;C++){const $=j[C],ee=r.find(W=>W.name===$.name&&W.type==="webform");if(!a.current){de(C);continue}const T=ee||await Se.getNodeInfo({verb:Se.DesignerRequestVerb.GET_INFO,content:!0,path:`WebForms/${$.name}.${$.ext}`,as:"json"}),B=O(T,a.current);if(pe.isEmpty(B)||pe.set(Y,$.name,B),l.current.find(W=>W===U))return{};de(C)}return Y},F=(j,U,Y)=>{const de="data:text/json;charset=utf-8,"+encodeURIComponent(j),C=document.createElement("a");C.setAttribute("href",de),C.setAttribute("download",U+`.${Y}`),document.body.appendChild(C),C.click(),C.remove()},D=j=>{switch(m){case"csv":{const U=["keys","resolverName","__t"].concat(e.concat(["i18nkey_default"]));return x2(j,U,v)}case"json":return JSON.stringify(j,null," ");default:return JSON.stringify(j,null," ")}},V=(j,U)=>{Object.entries(U.keys).forEach(([de,C])=>{Object.keys(C).forEach($=>{s.current.push(`i18n.${de}.${$}`)})});const Y={};return Object.entries(U.keys).forEach(([de,C])=>{Y[de]={default:C.default},e.forEach($=>{Y[de][$]=Object.hasOwn(C,$)?C[$]:p?C.default:void 0})}),{webforms:{...j},i18n:Y}},J=j=>k.setCsvDelimier(j),ue=async()=>{const j=Po.generate().toString();try{Se.tasksManagerSubject.next({id:j,action:"add",type:"i18n",payload:{progress:0,name:"Export i18n",status:"ongoing",date:new Date().toISOString(),time:v2()}}),y();const U=await Hg(),Y=await P(U,j),de=V(Y,u),C=D(de);pe.isEmpty(C)||F(C,"export-i18n",m),w()}catch(U){Se.tasksManagerSubject.next({id:j,type:"i18n",action:"update",payload:{status:"canceled"}}),Se.tasksManagerSubject.next({id:j,type:"i18n",action:"error",payload:{errorMessage:U.message||"Export file error"}})}w()};return b.jsxs(b.Fragment,{children:[b.jsx(wt,{label:"Export",container:ft(),children:b.jsx(lt,{disabled:S,color:"white",variant:"ghost",onClick:()=>{k.setIsOpen(!0)},children:b.jsx(uv,{className:"h-4 w-4"})})}),b.jsxs(km,{isOpen:g,onClose:I,title:"Export","data-cy":"localization-export-dialog",children:[b.jsx("div",{className:"mt-4 mb-1",children:b.jsx(gA,{onSelect:j=>k.setFileType(j)})}),b.jsx(mA,{enable:m==="csv",onSelect:J}),b.jsxs("div",{className:"mt-3 flex items-center justify-between gap-4",children:[b.jsxs("div",{className:"flex flex-row gap-x-1 justify-center items-center text-primary hover:underline cursor-pointer",onClick:()=>{window.open("https://developer.4d.com/qodly/4DQodlyPro/localization#exporting-and-importing-translations","_blank")},children:[b.jsx("p",{className:"text-xs",children:"How to Export an i18n File"}),b.jsx(Vh,{className:"ml-1 h-4 w-4"})]}),b.jsxs("div",{className:"flex items-center gap-x-2",children:[b.jsx(lt,{color:"white",variant:"ghost",onClick:A,children:"Cancel"}),b.jsx(lt,{onClick:()=>{m?(k.setIsOpen(!1),ue()):k.setError(vA.SELECT_FILE_TYPE)},children:"Export"})]})]}),E&&b.jsx("div",{className:"flex items-center justify-center p-2",children:b.jsx("span",{className:"text-sm text-negative-text",children:E})})]})]})},bA={DROP_EVENT_ERROR:"Not Suported File type! Only .json and .csv are Supported."},yA=["default"],wA={MISSING_WEBFORMS_OR_I18N:"The file must contain 'webforms' or 'i18n' (or both). The file is empty or missing these keys."},Sm=["__dataPath","__default","default","__t","i18nkey_default"],kA=["i18n:","state:"],Fa=e=>Sm.includes(e)||kA.some(t=>e.startsWith(t)),SA=e=>{const t=new Set;return e.webforms&&Object.values(e.webforms).forEach(i=>{Object.values(i).forEach(n=>{(n.props||[]).forEach(r=>{Object.keys(r).forEach(a=>{Fa(a)||t.add(a)})})})}),e.i18n&&Object.values(e.i18n).forEach(i=>{Object.keys(i||{}).forEach(n=>{Fa(n)||t.add(n)})}),Array.from(t).sort()},Lh=e=>{if(Sm.includes(e))return null;if(e.startsWith("state:")){const t=e.lastIndexOf("i18n:");return t!==-1&&e.slice(t+5)||null}return e},EA=(e,t)=>{const i=new Set(t),n={};return e.webforms&&(n.webforms={},Object.entries(e.webforms).forEach(([r,a])=>{if(!a||typeof a!="object")return;const s={};Object.entries(a).forEach(([l,u])=>{if(!u||typeof u!="object")return;const c={resolverName:u.resolverName};u.resolverName==="Text"?(u.props&&(c.props=u.props),u.custom&&(c.custom={},Object.entries(u.custom).forEach(([p,g])=>{const m=p.startsWith("state:")||p.startsWith("states:")?Lh(p):p.startsWith("i18n:")?p.slice(5):p;m&&i.has(m)&&(c.custom[p]=g)}))):Object.entries(u).forEach(([p,g])=>{if(p!=="resolverName")if(g&&pe.isObject(g)&&!Array.isArray(g)){const m={};Object.entries(g).forEach(([E,v])=>{const k=Lh(E);(k===null||i.has(k))&&(m[E]=v)}),Object.keys(m).length>0&&(c[p]=m)}else c[p]=g}),s[l]=c}),n.webforms[r]=s})),e.i18n&&(n.i18n={},Object.entries(e.i18n).forEach(([r,a])=>{if(!a||typeof a!="object")return;const s={};Object.entries(a).forEach(([l,u])=>{(l==="default"||!Fa(l)&&i.has(l))&&(s[l]=u)}),Object.keys(s).length>0&&(n.i18n[r]=s)})),n},CA=e=>{const{data:t}=Mo.parse(e),i=t[0];if(!i||!Array.isArray(i))return[];const n=i.slice(2).filter(r=>r&&!Fa(r.trim()));return[...new Set(n)].sort()},In={EMPTY_OR_INVALID:"The CSV file is empty or could not be parsed.",HEADER_REQUIRED:"The first row must be a header with at least columns: 'keys', 'resolverName', and one locale (e.g. __t, fr, en).",KEY_FORMAT:"Each data row's first column (keys) must be non-empty and start with 'webforms.' or 'i18n.'.",ROW_COLUMNS:"Every row must have the same number of columns as the header."},IA=e=>{const t=Kg(e),{data:i}=Mo.parse(t),n=i;if(!(n!=null&&n.length))return{valid:!1,message:In.EMPTY_OR_INVALID};const r=n[0];if(!r||r.length<3)return{valid:!1,message:In.HEADER_REQUIRED};const a=(r[0]??"").trim().toLowerCase(),s=(r[1]??"").trim().toLowerCase();if(a!=="keys"||s!=="resolvername")return{valid:!1,message:In.HEADER_REQUIRED};const l=r.length;for(let u=1;u<n.length;u++){if(n[u].length<=1)continue;const c=n[u];if(!c||c.length!==l)return{valid:!1,message:In.ROW_COLUMNS};const h=(c[0]??"").trim();if(!h)return{valid:!1,message:In.KEY_FORMAT};if(!h.startsWith("webforms.")&&!h.startsWith("i18n."))return{valid:!1,message:In.KEY_FORMAT}}return{valid:!0}},_A=(e,t)=>{const n=new qm.Validator().validate(e,t);if(n.valid)return{valid:!0};const r=n.errors[0],a=r?`${r.property||"root"} ${r.message}`.trim():"Invalid file format";return{valid:!1,message:pe.isObject(e)&&!pe.has(e,"webforms")&&!pe.has(e,"i18n")&&(a.includes("subschema")||a.includes("any of"))?wA.MISSING_WEBFORMS_OR_I18N:a}},AA="Export i18n",NA="Schema for i18n export format. Must have webforms, i18n, or both.",TA="object",OA=!1,PA={webforms:{type:"object",description:"Webform names to their component localizations",additionalProperties:{$ref:"#/definitions/webformComponents"}},i18n:{type:"object",description:"Shared i18n keys and their localized values",additionalProperties:{$ref:"#/definitions/i18nKeys"}}},RA=[{required:["webforms"]},{required:["i18n"]}],MA={webformComponents:{type:"object",description:"Component ID to component localization entry",additionalProperties:{$ref:"#/definitions/componentEntry"}},componentEntry:{type:"object",required:["resolverName","props"],additionalProperties:!1,properties:{resolverName:{type:"string",description:"Name of the component resolver (e.g. Button)"},props:{type:"array",description:"Localized prop entries",items:{$ref:"#/definitions/propLocalization"}}}},propLocalization:{type:"object",required:["__dataPath","__default"],properties:{__dataPath:{type:"string",description:"Path to the prop (e.g. text)"},__default:{type:"string",description:"Default value for the prop"}},additionalProperties:{type:"string",description:"Locale code to localized string (e.g. fr, en)"}},i18nKeys:{type:"object",required:["default"],properties:{default:{type:"string",description:"Default value"}},additionalProperties:{type:"string",description:"Locale code to localized string (e.g. fr, en)"}}},LA={title:AA,description:NA,type:TA,additionalProperties:OA,properties:PA,anyOf:RA,definitions:MA},DA=({label:e,isocode:t,isChecked:i,onToggle:n})=>b.jsx(Ba,{size:"sm",value:i,label:e,onChange:n,title:t}),FA=({detectedLanguageDetails:e,selectedIsocodes:t,onToggleIsocode:i})=>b.jsxs(Wi,{depth:1,borderType:"light",className:"mt-2 w-full rounded border px-2 py-1.5",children:[b.jsx("p",{className:"mb-1.5 text-xs font-medium text-muted",children:"Detected locales"}),b.jsx("div",{className:"flex flex-col gap-1 overflow-y-auto",style:{maxHeight:"5rem"},children:e.map(n=>b.jsx(DA,{label:`${n.native} - ${n.isocode??""}`,isocode:n.isocode,isChecked:t.includes(n.isocode),onToggle:()=>i(n.isocode)},n.isocode))})]}),jA="Drop or Add a File !",zA=({getRootProps:e,getInputProps:t,isDragActive:i,file:n,error:r,onResetFile:a,detectedLanguageDetails:s,selectedIsocodes:l,onToggleIsocode:u,onClose:c,onImport:h,setError:p,hasNoSelection:g})=>b.jsxs(b.Fragment,{children:[b.jsxs("div",{className:"mt-4 space-y-2",children:[b.jsxs("div",{...e(),children:[b.jsx("input",{...t()}),b.jsx("div",{className:Ft("min-h-[100px] rounded border border-dashed text-center text-sm",{"border-primary":i,"flex items-center justify-center":n}),children:n?b.jsxs("div",{className:"flex items-center justify-center gap-1 px-2",children:[b.jsx("p",{className:"min-w-0 flex-1 truncate",children:n.name}),b.jsx(wt,{label:"Remove file",container:ft(),children:b.jsx(lt,{color:"white",variant:"ghost",onClick:m=>{m.stopPropagation(),a()},"aria-label":"Remove file",children:b.jsx(za,{className:"h-4 w-4"})})})]}):b.jsxs("div",{className:"flex min-h-[100px] w-full flex-col items-center justify-center text-muted",children:[b.jsx("p",{className:"max-w-md px-2 text-center text-xs ",children:'Drag and drop the file with ".json" or ".csv" extension here or click to select it from your computer.'}),b.jsx(Va,{className:"mt-2 h-6 w-6 text-inactive-text"})]})}),r&&b.jsx("div",{className:"flex items-center justify-center p-2",children:b.jsx("p",{className:"text-xs text-negative-text",children:r})})]}),n&&s.length>0&&b.jsx(FA,{detectedLanguageDetails:s,selectedIsocodes:l,onToggleIsocode:u})]}),b.jsxs("div",{className:"mt-4 flex items-center justify-between gap-4",children:[b.jsxs("div",{className:"flex flex-row gap-x-1 justify-center items-center text-primary hover:underline cursor-pointer",onClick:()=>{window.open("https://developer.4d.com/qodly/4DQodlyPro/localization#exporting-and-importing-translations","_blank")},children:[b.jsx("p",{className:"text-xs",children:"How to Import an i18n File"}),b.jsx(Vh,{className:"ml-1 h-4 w-4"})]}),b.jsxs("div",{className:"flex items-center gap-x-2",children:[b.jsx(lt,{color:"white",variant:"ghost",onClick:c,children:"Cancel"}),b.jsx(lt,{disabled:g,onClick:()=>{!r&&n?h():n||p(jA)},children:"Import"})]})]})]}),VA=({summary:e,onClose:t})=>b.jsxs(b.Fragment,{children:[b.jsxs("div",{className:"mt-4 space-y-4",children:[b.jsx("p",{className:"text-sm text-muted",children:"Summary"}),b.jsxs(Wi,{depth:1,borderType:"light",className:"rounded border px-3 py-3 space-y-2",children:[b.jsxs("div",{className:"flex items-center justify-between text-xs",children:[b.jsx("span",{className:"text-inactive-text",children:"Keys Imported"}),b.jsx("span",{className:"font-medium",children:e.importedKeys})]}),b.jsxs("div",{className:"flex items-center justify-between text-xs",children:[b.jsx("span",{className:"text-inactive-text",children:"Keys Merged"}),b.jsx("span",{className:"font-medium",children:e.mergedKeys})]}),b.jsxs("div",{className:"flex items-center justify-between text-xs",children:[b.jsx("span",{className:"text-inactive-text",children:"Keys Unchanged"}),b.jsx("span",{className:"font-medium",children:e.unchangedKeys})]})]})]}),b.jsx("div",{className:"mt-4 flex justify-end",children:b.jsx(lt,{color:"white",variant:"outline",onClick:t,children:"Close"})})]}),Em=({disable:e,enable:t,RenderTrigger:i})=>{const n=Ui(),{state:{file:r,isOpen:a,supprtedExtension:s,error:l,content:u,detectedLanguages:c,selectedIsocodes:h,showSummaryView:p,summary:g},actions:m}=Se.useStateObject({file:null,error:"",isOpen:!1,fileType:"",supprtedExtension:[".json",".csv"],content:{},detectedLanguages:[],selectedIsocodes:[],showSummaryView:!1,summary:{importedKeys:0,mergedKeys:0,unchangedKeys:0}}),E=n.getWebformTabs(),{i18n:{keys:v}}=qi(),{allSupportedLanguages:k,userLanguages:{supported:S,primary:w},setUserLangSettings:I}=Gi(),A=M.useMemo(()=>k.filter(W=>c.includes(W.isocode)),[k,c]),y=W=>{const z=new Set(S.map(ae=>ae.isocode)),K=W.filter(ae=>!z.has(ae));if(K.length===0)return;const ne=K.map(ae=>dr(ae,k)).filter(ae=>ae!=null).map(ae=>({isocode:ae.isocode}));ne.length!==0&&I({primary:S.length===0?ne[0].isocode:w,supported:S.concat(ne)})},{getRootProps:f,getInputProps:O,isDragActive:P}=Um.useDropzone({async onDropAccepted([W]){if(s.find(z=>W.name.endsWith(z))){m.setError(""),m.setFile(W);const z=await V(W),K=W.name.split(".").pop()||"";try{if(K==="csv"){const ne=IA(z);if(!ne.valid){m.setError(ne.message);return}const ae=C(z,K);m.setContent(ae||{});const le=CA(z);m.setDetectedLanguages(le),m.setSelectedIsocodes(le)}else{const ne=JSON.parse(z),ae=_A(ne,LA);if(!ae.valid){m.setError(ae.message);return}const le=C(z,K);m.setContent(le||{});const oe=SA(ne);m.setDetectedLanguages(oe),m.setSelectedIsocodes(oe)}}catch(ne){m.setError(ne.message||"Invalid file");return}}else m.setError(bA.DROP_EVENT_ERROR)},accept:{"application/*":s},multiple:!1}),F=()=>{m.setFileType(""),m.setError(""),m.setFile(null),m.setContent({}),m.setDetectedLanguages([]),m.setSelectedIsocodes([])},D=()=>{m.setIsOpen(!1),m.setShowSummaryView(!1),m.setSummary({importedKeys:0,mergedKeys:0,unchangedKeys:0}),F()},V=W=>new Promise(z=>{const K=new FileReader;K.onload=()=>z(K.result),K.readAsText(W)}),J=async(W,z,K)=>{if(K){const ne=`WebForms/${z}.WebForm`;await n.actions.setTabContent({path:ne,content:W.content}),Se.webformSubject.next({path:ne,action:Se.WebformActions.RECOMPUTE,payload:W.content.components})}else{const ne={...W};await Se.saveContent({verb:Se.DesignerRequestVerb.SAVE_CONTENT,content:ne.content,path:`WebForms/${z}.WebForm`})}},ue=(W,z)=>{const{content:{components:K}}=pe.cloneDeep(W);if(!K)return W;const ne=(oe,H,ve,Z)=>{if(Array.isArray(oe))oe.forEach((xe,be)=>{let ie="";ve==="Text"?ie=Array.isArray(xe)?`${H}.[${be}].children`:`${H}.[${be}]`:ie=`${H}.[${be}]`,ne(xe,ie,ve,Z)});else if(pe.isObject(oe))if(Object.keys(oe).length>1){const be=Object.keys(oe),ie={};be.forEach(Ee=>{const we=pe.get(oe,Ee);if(Ee==="__t")pe.set(Z,`props.${H}`,we);else if(we&&Ee.startsWith("states:")){const Be=Ee.split(":"),ze=Be.map((Pe,Re)=>Re+1===Be.length?`i18n:${Pe}`:Pe).join(":");if(!Z.custom)return;pe.set(ie,`${ze}.${H}`,we)}else if(we){const Be=`i18n:${Ee}`;if(!Z.custom)return;pe.set(ie,`${Be}.${H}`,we)}});const[me]=H.split(".");Object.entries(ie).forEach(([Ee,we])=>{const Be=pe.get(Z,`props.${me}`,{}),ze=pe.get(Z,`custom.${Ee}.${me}`);let Pe="";typeof ze=="string"||typeof Be=="string"?Pe=pe.get(we,me):Pe=pe.merge(ze||pe.cloneDeep(Be),pe.get(we,me)),pe.set(Z,`custom.${Ee}.${me}`,Pe)})}else{const be=Object.entries(oe)[0],ie=be[0],me=be[1];H=`${H}.${ie}`,ne(me,H,ve,Z)}},ae=Object.entries(z);for(let oe=0;oe<ae.length;oe++){const[H,ve]=ae[oe],{resolverName:Z,...xe}=ve,be=pe.get(K,H);if(be)if(Z==="Text"){const{custom:ie,props:me}=xe;pe.set(K,H,{...be,props:{...be.props,...me},custom:{...be.custom,...ie}})}else Object.entries(xe).forEach(([ie,me])=>{const Ee=pe.get(K,H);if(!Ee)return;const we=pe.cloneDeep(Ee);ne(me,ie,Z,we),pe.set(K,H,we)})}const le=pe.cloneDeep(W);return pe.set(le,"content.components",K),le},Q=W=>W==null||typeof W=="string"&&W.trim()==="",se=(W,z)=>{const K=W&&pe.isObject(W)?W:{},ne=z&&pe.isObject(z)?z:{};if(Q(ne))return pe.cloneDeep(K);const ae=pe.cloneDeep(K);for(const le of Object.keys(ne)){const oe=ne[le];if(!oe||!pe.isObject(oe))continue;const H=ae[le],ve=new Set([...Object.keys(oe),...H&&pe.isObject(H)?Object.keys(H):[]]),Z={};for(const xe of ve){const be=pe.get(oe,xe),ie=H&&pe.isObject(H)?pe.get(H,xe):void 0;Q(be)?Q(ie)||(Z[xe]=ie):Z[xe]=be}for(const xe of yA){const be=pe.get(Z,xe),ie=H&&pe.isObject(H)?pe.get(H,xe):void 0;!Q(ie)&&Q(be)&&pe.set(Z,xe,ie)}ae[le]=Z}return ae},j=(W,z)=>{const K={importedKeys:0,mergedKeys:0,unchangedKeys:0},ne=new Set(Object.keys(z||{}));for(const ae of ne){const le=z[ae],oe=W[ae];if(!oe||!pe.isObject(oe)){K.importedKeys+=1;continue}const H=Object.keys(le);let ve=!1;for(const Z of H){const xe=le[Z],be=pe.get(oe,Z),ie=Q(xe)&&!Q(be),me=String(xe??"")===String(be??"");if(!ie&&!me){ve=!0;break}}H.length>0&&!ve?K.unchangedKeys+=1:ve&&(K.mergedKeys+=1)}for(const ae of Object.keys(W))ne.has(ae)||(K.unchangedKeys+=1);return K},U=async(W,z,K)=>{const{webforms:ne,i18n:ae}=W,le=se(v,ae),oe=j(v,ae);Se.i18nSubject.next({action:"set_content",payload:le});const H=ve=>{const Z=ve+1===z.length?z.length:ve,xe=Math.ceil(Z/z.length*100);Se.tasksManagerSubject.next({id:K,action:"update",type:"i18n",payload:{progress:xe,status:xe>=100?"finished":"ongoing"}})};if(Q(ne))return oe;for(let ve=0;ve<z.length;ve++){const Z=z[ve],xe=E.find(we=>we.name===Z.name&&we.type==="webform"),be=!!xe,ie=be?xe:await Se.getNodeInfo({verb:Se.DesignerRequestVerb.GET_INFO,content:!0,path:`WebForms/${Z.name}.${Z.ext}`,as:"json"}),{name:me}=ie;if(!ne[me]){H(ve);continue}const Ee=ue(ie,ne[me]);await J(Ee,me,be),H(ve)}return oe},Y=W=>{const z=Kg(W),{data:K}=Mo.parse(z),ne={};let ae=[];return K.forEach((le,oe)=>{if(oe===0){ae=le;return}let H="",ve="";le.forEach((Z,xe)=>{if(xe===0)H=Z;else if(xe===1)ve=Z;else if(H.startsWith("i18n")){if(pe.has(ne,H)&&pe.get(ne,H))return;pe.set(ne,H,Z)}else if(Z){const{webformName:be,componentId:ie,propName:me}=k2(H);if(pe.set(ne,`webforms.${be}.${ie}.resolverName`,ve),ve==="Text"){const Ee=$s(Z),we=ae[xe];we==="__t"?pe.set(ne,`webforms.${be}.${ie}.props.${me}`,Ee):pe.set(ne,`webforms.${be}.${ie}.custom.i18n:${we}.${me}`,Ee)}else{const Ee=ae[xe];let we=Ee==="i18nkey_default"?"default":Ee;if(we.includes(":")){const Be=we.split(":");we=Be.map((ze,Pe)=>Pe===0?`states:${ze}`:Pe===Be.length-1?`i18n:${ze}`:ze).join(":")}pe.set(ne,`${H}.${we}`,Z)}}})}),ne},de=W=>{const z=JSON.parse(W),K={},{webforms:ne,i18n:ae}=z;return ne&&Object.keys(ne).forEach(oe=>{const H=pe.get(ne,oe);Object.keys(H).forEach(Z=>{const xe=pe.get(H,Z),{props:be,resolverName:ie}=xe;pe.set(K,`webforms.${oe}.${Z}.resolverName`,ie),Array.isArray(be)&&be.forEach(({__dataPath:me,__default:Ee,...we})=>{if(ie==="Text"){const Be=$s(Ee);pe.set(K,`webforms.${oe}.${Z}.props.doc`,Be),Object.keys(we).forEach(ze=>{const Pe=$s(we[ze]);pe.set(K,`webforms.${oe}.${Z}.custom.i18n:${ze}.doc`,Pe)})}else pe.set(K,`webforms.${oe}.${Z}.${me}.__t`,Ee),Object.keys(we).forEach(Be=>{let ze=Be;if(ze.includes(":")){const Pe=ze.split(":");ze=Pe.map((Re,rt)=>rt===0?`states:${Re}`:rt===Pe.length-1?`i18n:${Re}`:Re).join(":")}pe.set(K,`webforms.${oe}.${Z}.${me}.${ze}`,we[Be])})})})}),ae&&Object.keys(ae).forEach(oe=>{const H=pe.get(ae,oe);H&&Object.keys(H).forEach(Z=>{const xe=pe.get(H,Z);pe.set(K,`i18n.${oe}.${Z}`,xe)})}),K},C=(W,z)=>{switch(z){case"csv":return Y(W);case"json":return de(W)}},$=async()=>{if(r){const W=Po.generate().toString();try{Se.tasksManagerSubject.next({id:W,action:"add",type:"i18n",payload:{date:new Date().toISOString(),progress:0,name:"Import i18n",status:"ongoing"}});const z=await Hg(),K=EA(u,h),ne=await U(K,z,W);m.setSummary(ne),m.setShowSummaryView(!0),y(h)}catch(z){Se.tasksManagerSubject.next({id:W,type:"i18n",action:"update",payload:{status:"canceled"}}),Se.tasksManagerSubject.next({id:W,type:"i18n",action:"error",payload:{errorMessage:z.message||"Import file error"}})}}};if(!t)return b.jsx(b.Fragment,{});const ee=()=>{m.setIsOpen(!0),F()},T=W=>{m.setSelectedIsocodes(h.includes(W)?h.filter(z=>z!==W):[...h,W])},B=i?b.jsx(i,{onClick:ee,disabled:!!e}):b.jsx(wt,{label:"Import",container:ft(),children:b.jsx(lt,{disabled:e,color:"white",variant:"ghost",onClick:ee,children:b.jsx(Va,{className:"h-4 w-4"})})});return b.jsxs(b.Fragment,{children:[B,b.jsx(km,{isOpen:a,onClose:D,title:p?"Import summary":"Import",children:p?b.jsx(VA,{summary:g,onClose:D}):b.jsx(zA,{getRootProps:f,getInputProps:O,isDragActive:P,file:r,error:l,onResetFile:F,detectedLanguages:c,detectedLanguageDetails:A,selectedIsocodes:h,onToggleIsocode:T,onClose:D,onImport:$,setError:m.setError,hasNoSelection:h.length===0})})]})},BA=({onClick:e})=>b.jsx(wt,{label:"Edit",container:ft(),children:b.jsx(lt,{color:"white",variant:"ghost","data-cy":"locales-list-item-edit-button",onClick:t=>{t.stopPropagation(),e()},children:b.jsx(Bh,{})})}),HA=({onClick:e,disable:t})=>t?b.jsx(b.Fragment,{}):b.jsx(wt,{label:"Remove",container:ft(),children:b.jsx(lt,{color:"white",variant:"ghost","data-cy":"locales-list-item-remove-button",disabled:t,onClick:i=>{i.stopPropagation(),e()},children:b.jsx(Hh,{})})}),KA=({collapse:e,onClick:t})=>b.jsx(wt,{label:"Collapse",container:ft(),children:b.jsx(lt,{color:"white",variant:"ghost",onClick:i=>{i.stopPropagation(),t()},children:b.jsx(jh,{className:Ft({"-rotate-90":e})})})}),WA=({lang:e,onCancel:t,onConfirm:i})=>{var g,m,E;const{allSupportedLanguages:n}=Gi(),{i18n:r}=qi(),a=M.useMemo(()=>{var k,S;const v=new Set;return(k=r==null?void 0:r.userLang)!=null&&k.primary&&v.add(r.userLang.primary),(S=r==null?void 0:r.userLang)!=null&&S.supported&&r.userLang.supported.forEach(w=>{v.add(w.isocode)}),n},[n,(g=r==null?void 0:r.userLang)==null?void 0:g.primary,(m=r==null?void 0:r.userLang)==null?void 0:m.supported]),{state:{isOpen:s,selectedLanguage:l},actions:u}=Se.useStateObject({isOpen:!1,editing:!1,selectedLanguage:null,highlightedLanguageIndex:-1}),c=Se.useOutsideClick(()=>{l&&i(l)}),h=()=>{t()},p=()=>{l?i(l):t()};return b.jsxs(Wi,{depth:4,borderType:"light",className:"flex flex-row justify-between items-center border-1 mb-2 rounded border px-2 py-2 hover:cursor-pointer",ref:c,children:[b.jsx(Rn.Root,{className:"w-48",value:l,options:a,isOpen:s,onOpenChange:u.setIsOpen,isSearchable:!0,getOptionLabel:v=>{const k=dr(v.isocode,n);return`${k==null?void 0:k.native} - ${k==null?void 0:k.isocode}`},getOptionValue:v=>v.isocode,onChange:v=>{v&&u.setSelectedLanguage({isocode:v.isocode})},children:b.jsx(Rn.Group,{className:Ft({"border-panel-border-subtle":!s}),children:b.jsx(Rn.Field,{"data-cy":"locales-new-language-input",autoFocus:!0,hideSelectedOptions:!0,placeholder:((E=dr(e==null?void 0:e.isocode,n))==null?void 0:E.locale)||"Select a language",onKeyUp:v=>{v.key==="Enter"&&p()},onClick:()=>u.setIsOpen(!0)})})}),b.jsxs("div",{className:"flex gap-x-1",children:[b.jsx(wt,{label:"Cancel",container:ft(),children:b.jsx(lt,{"data-cy":"locales-new-language-cancel-button",onClick:h,color:"white",variant:"ghost",children:b.jsx(za,{})})}),b.jsx(wt,{label:"Confirm",container:ft(),children:b.jsx(lt,{"data-cy":"locales-new-language-confirm-button",onClick:p,color:"white",variant:"ghost",disabled:!l,children:b.jsx(Lo,{})})})]})]})},Cm=({activate:e,...t})=>e?b.jsx(WA,{...t}):b.jsx(b.Fragment,{}),UA=({primary:e,selected:t,selectMode:i,lang:n,onSelect:r,onRemove:a,onEdit:s,"data-cy":l})=>{const{state:{hover:u,selected:c,collapse:h,editing:p},actions:{setHover:g,setSelected:m,setCollapse:E,setEditing:v}}=Se.useStateObject({hover:!1,selected:!1,collapse:!0,editing:!1}),{selectedLanguage:k,setSelectedLanguage:S}=Gi(),{isocode:w,locale:I,native:A}=n||{isocode:"",locale:"",native:""},y=e===w,f=()=>{g(!0)},O=()=>{g(!1)},P=()=>{m(!c),r(w,!c)},F=()=>{v(!0)},D=()=>{a(w)},V=()=>{S(n)},J=Q=>{v(!1),s(n,Q)},ue=()=>{v(!1)};return M.useEffect(()=>{m(t)},[t]),M.useEffect(()=>{y&&S(n)},[]),p?b.jsx(Cm,{lang:n,activate:p,onCancel:ue,onConfirm:J}):b.jsxs(Wi,{depth:4,borderType:(k==null?void 0:k.isocode)===(n==null?void 0:n.isocode)?"primary":"light","data-cy":l,className:Ft("border mb-2 flex flex-col gap-y-2 rounded px-2 py-2 hover:cursor-pointer"),onMouseEnter:f,onMouseLeave:O,onClick:V,children:[b.jsxs("div",{className:"flex flex-row justify-between items-center",children:[b.jsxs("div",{className:"flex flex-row gap-x-1",children:[u||i?b.jsx(Ba,{value:c,onChange:P,size:"sm"}):b.jsx(b.Fragment,{}),b.jsx(zh,{className:Ft("w-4 h-4",{hidden:i||u})}),b.jsx("span",{className:Ft("text-xs",{"italic font-bold":y}),children:A})]}),b.jsxs("div",{className:"flex flex-row items-center gap-x-1",children:[y&&b.jsx(T0,{label:"Primary"}),b.jsx(BA,{onClick:F}),b.jsx(HA,{disable:y,onClick:D}),b.jsx(KA,{collapse:h,onClick:()=>E(!h)})]})]}),b.jsxs("div",{className:Ft("ml-6 flex justify-between p-1 text-xs",{hidden:h}),children:[b.jsx("span",{children:"English name"}),b.jsx("span",{className:"text-muted",children:I})]}),b.jsxs("div",{className:Ft("ml-6 flex justify-between p-1 text-xs",{hidden:h}),children:[b.jsx("span",{children:"Iso Code"}),b.jsx("span",{className:"text-muted",children:w})]})]})},qA=()=>{const{state:{selectedLanguages:e,shouldAddNewLocal:t,selectAll:i},actions:n}=Se.useStateObject({selectAll:!1,selectedLanguages:[],shouldAddNewLocal:!1,allSupportedLanguages:[]}),{userLanguages:{supported:r=[],primary:a},addFirstLanguage:s,setAddFirstLanguage:l,setUserLangSettings:u,setSelectedLanguage:c,allSupportedLanguages:h}=Gi(),{editLanguageKeys:p,deleteLanguageKeys:g}=qi(),m=Py(h),E=Ry(e),v=Ui(),k=v.getI18nCurrent(),S=v.getTabs(),w=(Q,se)=>{const j=se?e.concat(Q):e.filter(U=>U!==Q);n.setSelectedLanguages(j),i&&n.setSelectAll(!1)},I=Q=>{n.setShouldAddNewLocal(Q)},A=()=>{n.setSelectAll(!i),i?n.setSelectedLanguages([]):n.setSelectedLanguages(r.map(Q=>Q.isocode))},y=Q=>{const se={primary:r.length===0?Q.isocode:a,supported:r.concat(Q)};u(se),n.setShouldAddNewLocal(!1)};M.useEffect(()=>{s&&n.setShouldAddNewLocal(!0)},[s]);const f=(Q,se)=>{const j=`i18n:${se}`,U=`:i18n:${se}`,Y=de=>{de.custom&&Object.keys(de.custom).forEach(C=>{(C.includes(j)||C.endsWith(U))&&delete de.custom[C]})};return Object.values(Q).forEach(de=>Y(de)),Q},O=(Q,se)=>Q.map(j=>{var Y;const U=pe.cloneDeep(j);return(Y=U.content)!=null&&Y.components&&(U.content={...U.content,components:f({...U.content.components},se)}),U}),P=(Q,se,j)=>{const U=`i18n:${se}`,Y=`:i18n:${se}`,de=C=>{C.custom&&Object.keys(C.custom).forEach($=>{if($===U){const ee=C.custom[$];delete C.custom[$],C.custom[`i18n:${j}`]=ee}else if($.endsWith(Y)){const ee=C.custom[$];delete C.custom[$];const T=$.replace(`:i18n:${se}`,`:i18n:${j}`);C.custom[T]=ee}})};return Object.values(Q).forEach(C=>de(C)),Q},F=(Q,se,j)=>Q.map(U=>{var de;const Y=pe.cloneDeep(U);return(de=Y.content)!=null&&de.components&&(Y.content={...Y.content,components:P({...Y.content.components},se,j)}),Y}),D=async Q=>{const{confirmed:se}=await v.actions.openModal({title:"Delete Language",message:"Your translations will be lost , want to proceed ?",type:Se.ModalType.CONFIRM,color:Se.ModalColor.WARNING,icon:"FdWarningDanger"});if(!se)return;g({isocode:Q});const j=O(S,Q);v.actions.setTabs(j);const U={primary:a,supported:r.filter(Y=>Y.isocode!==Q)};u(U),e.includes(Q)&&n.setSelectedLanguages(e.filter(Y=>Y!==Q)),U.supported.length===0&&l(!1),Q===k&&v.actions.setI18nCurrent("")},V=(Q,se)=>{const j={primary:a===Q.isocode?se.isocode:a,supported:r.map(Y=>Y.isocode===Q.isocode?se:Y)},U=F(S,Q.isocode,se.isocode);v.actions.setTabs(U),k===Q.isocode&&v.actions.setI18nCurrent(se.isocode),p(Q,se),u(j),c(se)},J=()=>{I(!1),r.length===0&&l(!1)},ue=()=>{t?Se.toastSubject.next({kind:"warning",message:"To add a new locale, please confirm your selection by clicking 'Confirm'"}):I(!0)};return b.jsxs("div",{className:"flex w-72 flex-col space-y-2 px-2 py-3 shrink-0",children:[b.jsxs("div",{className:"text-grey-50 flex flex-row justify-between",children:[b.jsxs("div",{className:"flex flex-row items-center justify-center gap-x-2 text-sm",children:[b.jsx(zh,{className:"h-4 w-4"}),b.jsx("span",{className:"text-sm",children:"Locales "})]}),b.jsxs("div",{className:"space-x-2",children:[b.jsx(Se.Tip,{tipKey:"editors:i18n:locals",alwaysOn:!0}),b.jsx(wt,{label:"Add new language",container:ft(),children:b.jsx(lt,{"data-cy":"locales-header-add-button",color:"white",variant:"ghost",onClick:ue,children:b.jsx(Fo,{})})})]})]}),b.jsxs("div",{className:"flex px-[5px] justify-between",children:[b.jsx("div",{"data-cy":"locales-select-all-checkbox",className:Ft("flex items-center justify-center gap-x-1",{visible:m,invisible:!m}),children:b.jsx(Ba,{value:i,onChange:A,size:"sm",label:"Select all"})}),b.jsxs("div",{className:"flex flex-row items-center justify-center gap-x-1",children:[b.jsx(xA,{"data-cy":"localization-export-button",enable:!0,disable:!1,toExport:e}),b.jsx(Em,{"data-cy":"localization-import-button",enable:!0,disable:!1})]})]}),b.jsx(Cm,{activate:t,onConfirm:y,onCancel:J}),b.jsx("div",{style:{height:t?"calc(100vh - 14.75rem)":"calc(100vh - 11.75rem)"},children:b.jsx(Wm,{"data-cy":"locales-list",style:{height:"100%",width:"100%"},children:[...r].sort(Q=>Q.isocode===a?-1:1).map((Q,se)=>{const j=dr(Q.isocode,h);return b.jsx(UA,{"data-cy":`locales-list-item-${j==null?void 0:j.isocode}`,primary:a,selected:i||e.includes(j==null?void 0:j.isocode),lang:j,onSelect:w,selectMode:E,onRemove:D,onEdit:V},se)})})})]})},GA=({onAddLocal:e})=>b.jsxs(Wi,{depth:1,"data-cy":"localization-empty-view",className:"flex flex-col justify-center items-center gap-y-3 pb-[30%] w-full h-full text-inactive-text",children:[b.jsx(Do,{className:"h-8 w-8"}),b.jsx("span",{className:"text-sm text-center",children:"No locale is available yet. Add a new one or import a locale."}),b.jsxs("div",{className:"flex flex-row items-center justify-center gap-x-2",children:[b.jsxs(lt,{"data-cy":"localization-empty-add-button",size:"lg",onClick:e,children:[b.jsx(Fo,{className:"h-4 w-4"}),b.jsx("span",{className:"text-sm",children:"Add new Locale"})]}),b.jsx(Em,{enable:!0,RenderTrigger:({onClick:t})=>b.jsxs(lt,{onClick:t,size:"lg",children:[b.jsx(Va,{className:"h-4 w-4"}),b.jsx("span",{className:"text-sm",children:"Import Locale"})]})})]})]}),$A=()=>{var s;const{userLanguages:e,addFirstLanguage:t,setAddFirstLanguage:i}=Gi(),r=(((s=e.supported)==null?void 0:s.length)??0)===0&&!t,a=()=>{i(!0)};return r?b.jsx(GA,{onAddLocal:a}):b.jsxs(Wi,{depth:1,className:Ft("flex flex-row w-full h-full",{"justify-center items-center":r}),children:[b.jsx(qA,{}),b.jsx(sw,{})]})},Im=()=>b.jsx(cf,{children:b.jsx($A,{})}),JA=()=>{const{modals:e,closeModal:t,editModal:i}=ef();return b.jsx(b.Fragment,{children:e.map((n,r)=>b.jsx(Se.Modal,{hasOverlay:r===0,...n,onClose:t,onEdit:i,container:ft()},n.id))})},nr={keys:{},userLang:{primary:"",supported:[]}},YA=e=>{if(!e)return nr;try{const t=JSON.parse(e);return{keys:(t==null?void 0:t.keys)??nr.keys,userLang:(t==null?void 0:t.userLang)??nr.userLang}}catch{return nr}},QA=({onTabsChange:e,onI18nCurrentChange:t})=>{const i=Ui(),n=(i==null?void 0:i.getTabs())||[],r=i==null?void 0:i.getI18nCurrent();return Se.useDidMountEffect(()=>{e&&e(n)},[e,n]),Se.useDidMountEffect(()=>{t&&r&&t(r)},[t,r]),b.jsxs(b.Fragment,{children:[b.jsx("div",{className:`relative h-screen z-10 overflow-hidden ${Ro.LOCALIZATION_EDITOR_SCOPE_CLASS}`,children:b.jsx(Im,{})}),b.jsx(JA,{})]})},ZA=({children:e})=>{const t=Ui();return b.jsx(of,{getSupportedLanguages:i=>(t==null?void 0:t.getSupportedLanguages(i))||Promise.resolve([]),i18nCurrent:t==null?void 0:t.getI18nCurrent(),activeTabPath:t==null?void 0:t.getActiveTabPath(),flagsForActiveTab:t==null?void 0:t.getFlagsByPath(t==null?void 0:t.getActiveTabPath()),children:e})},XA=({userComponents:e,buildResolver:t,supportedLanguages:i,initialValue:n,onChange:r,...a})=>{const s=Xp(e,t,i),[l,u]=M.useState({}),c=M.useRef(nr),h=M.useMemo(()=>YA(n),[n]);return M.useEffect(()=>{c.current=h},[h]),Se.useDidMountEffect(()=>{if(!(!r||pe.isEqual(l,c.current)))try{r==null||r(JSON.stringify(l)),c.current=l}catch{}},[l,r]),b.jsx(Vp,{adapter:s,children:b.jsx(rf,{isI18nEnabled:!0,onI18nChange:u,children:b.jsx(ZA,{children:b.jsx(Se.TipsProvider,{children:b.jsx(QA,{...a})})})})})},eN=({tabs:e=[],i18nCurrent:t="",initialValue:i,...n})=>b.jsx(Zp,{tabs:e,i18nCurrent:t,initialI18nFile:i,children:b.jsx(XA,{initialValue:i,...n})}),tN={supported:[{isocode:"af",locale:"Afrikaans",native:"Afrikaans",flag:"🇿🇦"},{isocode:"af-NA",locale:"Afrikaans (Namibie)",native:"Afrikaans (Namibië)",flag:"🇳🇦"},{isocode:"af-ZA",locale:"Afrikaans (South Africa)",native:"Afrikaans (Suid-Afrika)",flag:"🇿🇦"},{isocode:"agq",locale:"Aghem",native:"Aghem",flag:"🇨🇲"},{isocode:"agq-CM",locale:"Aghem (Cameroun)",native:"Aghem (Kàmàlûŋ)",flag:"🇨🇲"},{isocode:"ak",locale:"Akan",native:"Akan",flag:"🇬🇭"},{isocode:"ak-GH",locale:"Akan (Ghana)",native:"Akan (Gaana)",flag:"🇬🇭"},{isocode:"am",locale:"Amharique",native:"አማርኛ",flag:"🇪🇹"},{isocode:"am-ET",locale:"Amharique (Éthiopie)",native:"አማርኛ (ኢትዮጵያ)",flag:"🇪🇹"},{isocode:"ar",locale:"Arabic",native:"العربية",flag:"🇸🇦"},{isocode:"ar-001",locale:"Arabic (World)",native:"العربية (العالم)",flag:"🌍"},{isocode:"ar-AE",locale:"Arabic (Émirats arabes unis)",native:"العربية (الإمارات العربية المتحدة)",flag:"🇦🇪"},{isocode:"ar-BH",locale:"Arabic (Bahreïn)",native:"العربية (البحرين)",flag:"🇧🇭"},{isocode:"ar-DJ",locale:"Arabic (Djibouti)",native:"العربية (جيبوتي)",flag:"🇩🇯"},{isocode:"ar-DZ",locale:"Arabic (Algérie)",native:"العربية (الجزائر)",flag:"🇩🇿"},{isocode:"ar-EG",locale:"Arabic (Égypte)",native:"العربية (مصر)",flag:"🇪🇬"},{isocode:"ar-EH",locale:"Arabic (Sahara occidental)",native:"العربية (الصحراء الغربية)",flag:"🇪🇭"},{isocode:"ar-ER",locale:"Arabic (Érythrée)",native:"العربية (إريتريا)",flag:"🇪🇷"},{isocode:"ar-IL",locale:"Arabic (Israël)",native:"العربية (إسرائيل)",flag:"🇮🇱"},{isocode:"ar-IQ",locale:"Arabic (Irak)",native:"العربية (العراق)",flag:"🇮🇶"},{isocode:"ar-JO",locale:"Arabic (Jordanie)",native:"العربية (الأردن)",flag:"🇯🇴"},{isocode:"ar-KM",locale:"Arabic (Comores)",native:"العربية (جزر القمر)",flag:"🇰🇲"},{isocode:"ar-KW",locale:"Arabic (Koweït)",native:"العربية (الكويت)",flag:"🇰🇼"},{isocode:"ar-LB",locale:"Arabic (Liban)",native:"العربية (لبنان)",flag:"🇱🇧"},{isocode:"ar-LY",locale:"Arabic (Libye)",native:"العربية (ليبيا)",flag:"🇱🇾"},{isocode:"ar-MA",locale:"Arabic (Maroc)",native:"العربية (المغرب)",flag:"🇲🇦"},{isocode:"ar-MR",locale:"Arabic (Mauritanie)",native:"العربية (موريتانيا)",flag:"🇲🇷"},{isocode:"ar-OM",locale:"Arabic (Oman)",native:"العربية (عُمان)",flag:"🇴🇲"},{isocode:"ar-PS",locale:"Arabic (Territoires palestiniens)",native:"العربية (الأراضي الفلسطينية)",flag:"🇵🇸"},{isocode:"ar-QA",locale:"Arabic (Qatar)",native:"العربية (قطر)",flag:"🇶🇦"},{isocode:"ar-SA",locale:"Arabic (Arabie saoudite)",native:"العربية (المملكة العربية السعودية)",flag:"🇸🇦"},{isocode:"ar-SD",locale:"Arabic (Soudan)",native:"العربية (السودان)",flag:"🇸🇩"},{isocode:"ar-SO",locale:"Arabic (Somalie)",native:"العربية (الصومال)",flag:"🇸🇴"},{isocode:"ar-SS",locale:"Arabic (Soudan du Sud)",native:"العربية (جنوب السودان)",flag:"🇸🇸"},{isocode:"ar-SY",locale:"Arabic (Syrie)",native:"العربية (سوريا)",flag:"🇸🇾"},{isocode:"ar-TD",locale:"Arabic (Tchad)",native:"العربية (تشاد)",flag:"🇹🇩"},{isocode:"ar-TN",locale:"Arabic (Tunisie)",native:"العربية (تونس)",flag:"🇹🇳"},{isocode:"ar-YE",locale:"Arabic (Yémen)",native:"العربية (اليمن)",flag:"🇾🇪"},{isocode:"as",locale:"Assamais",native:"অসমীয়া",flag:"🇮🇳"},{isocode:"as-IN",locale:"Assamais (India)",native:"অসমীয়া (ভারত)",flag:"🇮🇳"},{isocode:"asa",locale:"Assou",native:"Kipare",flag:"🇹🇿"},{isocode:"asa-TZ",locale:"Assou (Tanzanie)",native:"Kipare (Tadhania)",flag:"🇹🇿"},{isocode:"ast",locale:"Asturien",native:"Asturianu",flag:"🇪🇸"},{isocode:"ast-ES",locale:"Asturien (Spain)",native:"Asturianu (España)",flag:"🇪🇸"},{isocode:"az",locale:"Azéri",native:"Azərbaycan",flag:"🇦🇿"},{isocode:"az-Cyrl",locale:"Azéri (cyrillique)",native:"азәрбајҹан (Кирил)",flag:"🇦🇿"},{isocode:"az-Cyrl-AZ",locale:"Azéri (cyrillique, Azerbaïdjan)",native:"азәрбајҹан (Кирил, Азәрбајҹан)",flag:"🇦🇿"},{isocode:"az-Latn",locale:"Azéri (latin)",native:"Azərbaycan (latın)",flag:"🇦🇿"},{isocode:"az-Latn-AZ",locale:"Azéri (latin, Azerbaïdjan)",native:"Azərbaycan (latın, Azərbaycan)",flag:"🇦🇿"},{isocode:"bas",locale:"Bassa",native:"Ɓàsàa",flag:"🇨🇲"},{isocode:"bas-CM",locale:"Bassa (Cameroun)",native:"Ɓàsàa (Kàmɛ̀rûn)",flag:"🇨🇲"},{isocode:"be",locale:"Biélorusse",native:"беларуская",flag:"🇧🇾"},{isocode:"be-BY",locale:"Biélorusse (Biélorussie)",native:"беларуская (Беларусь)",flag:"🇧🇾"},{isocode:"bem",locale:"Bemba",native:"Ichibemba",flag:"🇿🇲"},{isocode:"bem-ZM",locale:"Bemba (Zambie)",native:"Ichibemba (Zambia)",flag:"🇿🇲"},{isocode:"bez",locale:"Béna",native:"Hibena",flag:"🇹🇿"},{isocode:"bez-TZ",locale:"Béna (Tanzanie)",native:"Hibena (Hutanzania)",flag:"🇹🇿"},{isocode:"bg",locale:"Bulgare",native:"български",flag:"🇧🇬"},{isocode:"bg-BG",locale:"Bulgare (Bulgarie)",native:"български (България)",flag:"🇧🇬"},{isocode:"bm",locale:"Bambara",native:"Bamanakan",flag:"🇲🇱"},{isocode:"bm-ML",locale:"Bambara (Mali)",native:"Bamanakan (Mali)",flag:"🇲🇱"},{isocode:"bn",locale:"Bengali",native:"বাংলা",flag:"🇧🇩"},{isocode:"bn-BD",locale:"Bengali (Bangladesh)",native:"বাংলা (বাংলাদেশ)",flag:"🇧🇩"},{isocode:"bn-IN",locale:"Bengali (India)",native:"বাংলা (ভারত)",flag:"🇮🇳"},{isocode:"bo",locale:"Tibétain",native:"བོད་སྐད་",flag:"🇨🇳"},{isocode:"bo-CN",locale:"Tibétain (Chine)",native:"བོད་སྐད་ (རྒྱ་ནག)",flag:"🇨🇳"},{isocode:"bo-IN",locale:"Tibétain (India)",native:"བོད་སྐད་ (རྒྱ་གར་)",flag:"🇮🇳"},{isocode:"br",locale:"Breton",native:"Brezhoneg",flag:"🇫🇷"},{isocode:"br-FR",locale:"Breton (France)",native:"Brezhoneg (Frañs)",flag:"🇫🇷"},{isocode:"brx",locale:"Bodo",native:"बड़ो",flag:"🇮🇳"},{isocode:"brx-IN",locale:"Bodo (India)",native:"बड़ो (भारत)",flag:"🇮🇳"},{isocode:"bs",locale:"Bosniaque",native:"Bosanski",flag:"🇧🇦"},{isocode:"bs-Cyrl",locale:"Bosniaque (cyrillique)",native:"босански (ћирилица)",flag:"🇧🇦"},{isocode:"bs-Cyrl-BA",locale:"Bosniaque (cyrillique, Bosnie-Herzégovine)",native:"босански (ћирилица, Босна и Херцеговина)",flag:"🇧🇦"},{isocode:"bs-Latn",locale:"Bosniaque (latin)",native:"Bosanski (latinica)",flag:"🇧🇦"},{isocode:"bs-Latn-BA",locale:"Bosniaque (latin, Bosnie-Herzégovine)",native:"Bosanski (latinica, Bosna i Hercegovina)",flag:"🇧🇦"},{isocode:"ca",locale:"Catalan",native:"Català",flag:"🇪🇸"},{isocode:"ca-AD",locale:"Catalan (Andorre)",native:"Català (Andorra)",flag:"🇦🇩"},{isocode:"ca-ES",locale:"Catalan (Spain)",native:"Català (Espanya)",flag:"🇪🇸"},{isocode:"ca-FR",locale:"Catalan (France)",native:"Català (França)",flag:"🇫🇷"},{isocode:"ca-IT",locale:"Catalan (Italie)",native:"Català (Itàlia)",flag:"🇮🇹"},{isocode:"ccp",locale:"Ccp",native:"𑄌𑄋𑄴𑄟𑄳𑄦",flag:"🇧🇩"},{isocode:"ccp-BD",locale:"Ccp (Bangladesh)",native:"𑄌𑄋𑄴𑄟𑄳𑄦 (𑄝𑄁𑄣𑄘𑄬𑄌𑄴)",flag:"🇧🇩"},{isocode:"ccp-IN",locale:"Ccp (India)",native:"𑄌𑄋𑄴𑄟𑄳𑄦 (𑄞𑄢𑄧𑄖𑄴)",flag:"🇮🇳"},{isocode:"ce",locale:"Tchétchène",native:"нохчийн",flag:"🇷🇺"},{isocode:"ce-RU",locale:"Tchétchène (Russie)",native:"нохчийн (Росси)",flag:"🇷🇺"},{isocode:"cgg",locale:"Kiga",native:"Rukiga",flag:"🇺🇬"},{isocode:"cgg-UG",locale:"Kiga (Ouganda)",native:"Rukiga (Uganda)",flag:"🇺🇬"},{isocode:"chr",locale:"Cherokee",native:"ᏣᎳᎩ",flag:"🇺🇸"},{isocode:"chr-US",locale:"Cherokee (United States)",native:"ᏣᎳᎩ (ᏌᏊ ᎢᏳᎾᎵᏍᏔᏅ ᏍᎦᏚᎩ)",flag:"🇺🇸"},{isocode:"ckb",locale:"Sorani",native:"کوردیی ناوەندی",flag:"🇮🇶"},{isocode:"ckb-IQ",locale:"Sorani (Irak)",native:"کوردیی ناوەندی (عێراق)",flag:"🇮🇶"},{isocode:"ckb-IR",locale:"Sorani (Iran)",native:"کوردیی ناوەندی (ئێران)",flag:"🇮🇷"},{isocode:"cs",locale:"Tchèque",native:"čeština",flag:"🇨🇿"},{isocode:"cs-CZ",locale:"Tchèque (Tchéquie)",native:"čeština (Česko)",flag:"🇨🇿"},{isocode:"cy",locale:"Gallois",native:"Cymraeg",flag:"🏴󠁧󠁢󠁷󠁬󠁳󠁿"},{isocode:"cy-GB",locale:"Gallois (United Kingdom)",native:"Cymraeg (Y Deyrnas Unedig)",flag:"🇬🇧"},{isocode:"da",locale:"Danois",native:"Dansk",flag:"🇩🇰"},{isocode:"da-DK",locale:"Danois (Danemark)",native:"Dansk (Danmark)",flag:"🇩🇰"},{isocode:"da-GL",locale:"Danois (Groenland)",native:"Dansk (Grønland)",flag:"🇬🇱"},{isocode:"dav",locale:"Taita",native:"Kitaita",flag:"🇰🇪"},{isocode:"dav-KE",locale:"Taita (Kenya)",native:"Kitaita (Kenya)",flag:"🇰🇪"},{isocode:"de",locale:"German",native:"Deutsch",flag:"🇩🇪"},{isocode:"de-AT",locale:"German (Autriche)",native:"Deutsch (Österreich)",flag:"🇦🇹"},{isocode:"de-BE",locale:"German (Belgium)",native:"Deutsch (Belgien)",flag:"🇧🇪"},{isocode:"de-CH",locale:"German (Switzerland)",native:"Deutsch (Schweiz)",flag:"🇨🇭"},{isocode:"de-DE",locale:"German (Germany)",native:"Deutsch (Deutschland)",flag:"🇩🇪"},{isocode:"de-IT",locale:"German (Italie)",native:"Deutsch (Italien)",flag:"🇮🇹"},{isocode:"de-LI",locale:"German (Liechtenstein)",native:"Deutsch (Liechtenstein)",flag:"🇱🇮"},{isocode:"de-LU",locale:"German (Luxembourg)",native:"Deutsch (Luxemburg)",flag:"🇱🇺"},{isocode:"dje",locale:"Zarma",native:"Zarmaciine",flag:"🇳🇪"},{isocode:"dje-NE",locale:"Zarma (Niger)",native:"Zarmaciine (Nižer)",flag:"🇳🇪"},{isocode:"dsb",locale:"Bas-sorabe",native:"Dolnoserbšćina",flag:"🇩🇪"},{isocode:"dsb-DE",locale:"Bas-sorabe (Germany)",native:"Dolnoserbšćina (Nimska)",flag:"🇩🇪"},{isocode:"dua",locale:"Douala",native:"Duálá",flag:"🇨🇲"},{isocode:"dua-CM",locale:"Douala (Cameroun)",native:"Duálá (Cameroun)",flag:"🇨🇲"},{isocode:"dyo",locale:"Diola-fogny",native:"Joola",flag:"🇸🇳"},{isocode:"dyo-SN",locale:"Diola-fogny (Sénégal)",native:"Joola (Senegal)",flag:"🇸🇳"},{isocode:"dz",locale:"Dzongkha",native:"རྫོང་ཁ",flag:"🇧🇹"},{isocode:"dz-BT",locale:"Dzongkha (Bhoutan)",native:"རྫོང་ཁ། (འབྲུག།)",flag:"🇧🇹"},{isocode:"ebu",locale:"Embou",native:"Kĩembu",flag:"🇰🇪"},{isocode:"ebu-KE",locale:"Embou (Kenya)",native:"Kĩembu (Kenya)",flag:"🇰🇪"},{isocode:"ee",locale:"Éwé",native:"Eʋegbe",flag:"🇬🇭"},{isocode:"ee-GH",locale:"Éwé (Ghana)",native:"Eʋegbe (Ghana nutome)",flag:"🇬🇭"},{isocode:"ee-TG",locale:"Éwé (Togo)",native:"Eʋegbe (Togo nutome)",flag:"🇹🇬"},{isocode:"el",locale:"Grec",native:"Ελληνικά",flag:"🇬🇷"},{isocode:"el-CY",locale:"Grec (Chypre)",native:"Ελληνικά (Κύπρος)",flag:"🇨🇾"},{isocode:"el-GR",locale:"Grec (Grèce)",native:"Ελληνικά (Ελλάδα)",flag:"🇬🇷"},{isocode:"en",locale:"English",native:"English",flag:"🇬🇧"},{isocode:"en-001",locale:"English (World)",native:"English (World)",flag:"🌍"},{isocode:"en-150",locale:"English (Europe)",native:"English (Europe)",flag:"🇪🇺"},{isocode:"en-AG",locale:"English (Antigua-et-Barbuda)",native:"English (Antigua & Barbuda)",flag:"🇦🇬"},{isocode:"en-AI",locale:"English (Anguilla)",native:"English (Anguilla)",flag:"🇦🇮"},{isocode:"en-AS",locale:"English (Samoa américaines)",native:"English (American Samoa)",flag:"🇦🇸"},{isocode:"en-AT",locale:"English (Autriche)",native:"English (Austria)",flag:"🇦🇹"},{isocode:"en-AU",locale:"English (Australia)",native:"English (Australia)",flag:"🇦🇺"},{isocode:"en-BB",locale:"English (Barbade)",native:"English (Barbados)",flag:"🇧🇧"},{isocode:"en-BE",locale:"English (Belgium)",native:"English (Belgium)",flag:"🇧🇪"},{isocode:"en-BI",locale:"English (Burundi)",native:"English (Burundi)",flag:"🇧🇮"},{isocode:"en-BM",locale:"English (Bermudes)",native:"English (Bermuda)",flag:"🇧🇲"},{isocode:"en-BS",locale:"English (Bahamas)",native:"English (Bahamas)",flag:"🇧🇸"},{isocode:"en-BW",locale:"English (Botswana)",native:"English (Botswana)",flag:"🇧🇼"},{isocode:"en-BZ",locale:"English (Belize)",native:"English (Belize)",flag:"🇧🇿"},{isocode:"en-CA",locale:"English (Canada)",native:"English (Canada)",flag:"🇨🇦"},{isocode:"en-CC",locale:"English (Îles Cocos)",native:"English (Cocos [Keeling] Islands)",flag:"🇨🇨"},{isocode:"en-CH",locale:"English (Switzerland)",native:"English (Switzerland)",flag:"🇨🇭"},{isocode:"en-CK",locale:"English (Îles Cook)",native:"English (Cook Islands)",flag:"🇨🇰"},{isocode:"en-CM",locale:"English (Cameroun)",native:"English (Cameroon)",flag:"🇨🇲"},{isocode:"en-CX",locale:"English (Île Christmas)",native:"English (Christmas Island)",flag:"🇨🇽"},{isocode:"en-CY",locale:"English (Chypre)",native:"English (Cyprus)",flag:"🇨🇾"},{isocode:"en-DE",locale:"English (Germany)",native:"English (Germany)",flag:"🇩🇪"},{isocode:"en-DG",locale:"English (Diego Garcia)",native:"English (Diego Garcia)",flag:"🇩🇬"},{isocode:"en-DK",locale:"English (Danemark)",native:"English (Denmark)",flag:"🇩🇰"},{isocode:"en-DM",locale:"English (Dominique)",native:"English (Dominica)",flag:"🇩🇲"},{isocode:"en-ER",locale:"English (Érythrée)",native:"English (Eritrea)",flag:"🇪🇷"},{isocode:"en-FI",locale:"English (Finlande)",native:"English (Finland)",flag:"🇫🇮"},{isocode:"en-FJ",locale:"English (Fidji)",native:"English (Fiji)",flag:"🇫🇯"},{isocode:"en-FK",locale:"English (Îles Malouines)",native:"English (Falkland Islands)",flag:"🇫🇰"},{isocode:"en-FM",locale:"English (États fédérés de Micronésie)",native:"English (Micronesia)",flag:"🇫🇲"},{isocode:"en-GB",locale:"English (United Kingdom)",native:"English (United Kingdom)",flag:"🇬🇧"},{isocode:"en-GD",locale:"English (Grenade)",native:"English (Grenada)",flag:"🇬🇩"},{isocode:"en-GG",locale:"English (Guernesey)",native:"English (Guernsey)",flag:"🇬🇬"},{isocode:"en-GH",locale:"English (Ghana)",native:"English (Ghana)",flag:"🇬🇭"},{isocode:"en-GI",locale:"English (Gibraltar)",native:"English (Gibraltar)",flag:"🇬🇮"},{isocode:"en-GM",locale:"English (Gambie)",native:"English (Gambia)",flag:"🇬🇲"},{isocode:"en-GU",locale:"English (Guam)",native:"English (Guam)",flag:"🇬🇺"},{isocode:"en-GY",locale:"English (Guyana)",native:"English (Guyana)",flag:"🇬🇾"},{isocode:"en-HK",locale:"English (R.A.S. chinoise de Hong Kong)",native:"English (Hong Kong SAR China)",flag:"🇭🇰"},{isocode:"en-IE",locale:"English (Irlande)",native:"English (Ireland)",flag:"🇮🇪"},{isocode:"en-IL",locale:"English (Israël)",native:"English (Israel)",flag:"🇮🇱"},{isocode:"en-IM",locale:"English (Île de Man)",native:"English (Isle of Man)",flag:"🇮🇲"},{isocode:"en-IN",locale:"English (India)",native:"English (India)",flag:"🇮🇳"},{isocode:"en-IO",locale:"English (Territoire britannique de l'océan Indien)",native:"English (British Indian Ocean Territory)",flag:"🇮🇴"},{isocode:"en-JE",locale:"English (Jersey)",native:"English (Jersey)",flag:"🇯🇪"},{isocode:"en-JM",locale:"English (Jamaïque)",native:"English (Jamaica)",flag:"🇯🇲"},{isocode:"en-KE",locale:"English (Kenya)",native:"English (Kenya)",flag:"🇰🇪"},{isocode:"en-KI",locale:"English (Kiribati)",native:"English (Kiribati)",flag:"🇰🇮"},{isocode:"en-KN",locale:"English (Saint-Christophe-et-Niévès)",native:"English (St. Kitts & Nevis)",flag:"🇰🇳"},{isocode:"en-KY",locale:"English (Îles Caïmans)",native:"English (Cayman Islands)",flag:"🇰🇾"},{isocode:"en-LC",locale:"English (Sainte-Lucie)",native:"English (St. Lucia)",flag:"🇱🇨"},{isocode:"en-LR",locale:"English (Libéria)",native:"English (Liberia)",flag:"🇱🇷"},{isocode:"en-LS",locale:"English (Lesotho)",native:"English (Lesotho)",flag:"🇱🇸"},{isocode:"en-MG",locale:"English (Madagascar)",native:"English (Madagascar)",flag:"🇲🇬"},{isocode:"en-MH",locale:"English (Îles Marshall)",native:"English (Marshall Islands)",flag:"🇲🇭"},{isocode:"en-MO",locale:"English (R.A.S. chinoise de Macao)",native:"English (Macau SAR China)",flag:"🇲🇴"},{isocode:"en-MP",locale:"English (Îles Mariannes du Nord)",native:"English (Northern Mariana Islands)",flag:"🇲🇵"},{isocode:"en-MS",locale:"English (Montserrat)",native:"English (Montserrat)",flag:"🇲🇸"},{isocode:"en-MT",locale:"English (Malte)",native:"English (Malta)",flag:"🇲🇹"},{isocode:"en-MU",locale:"English (Maurice)",native:"English (Mauritius)",flag:"🇲🇺"},{isocode:"en-MW",locale:"English (Malawi)",native:"English (Malawi)",flag:"🇲🇼"},{isocode:"en-MY",locale:"English (Malaisie)",native:"English (Malaysia)",flag:"🇲🇾"},{isocode:"en-NA",locale:"English (Namibie)",native:"English (Namibia)",flag:"🇳🇦"},{isocode:"en-NF",locale:"English (Île Norfolk)",native:"English (Norfolk Island)",flag:"🇳🇫"},{isocode:"en-NG",locale:"English (Nigéria)",native:"English (Nigeria)",flag:"🇳🇬"},{isocode:"en-NL",locale:"English (Pays-Bas)",native:"English (Netherlands)",flag:"🇳🇱"},{isocode:"en-NR",locale:"English (Nauru)",native:"English (Nauru)",flag:"🇳🇷"},{isocode:"en-NU",locale:"English (Niue)",native:"English (Niue)",flag:"🇳🇺"},{isocode:"en-NZ",locale:"English (New Zealand)",native:"English (New Zealand)",flag:"🇳🇿"},{isocode:"en-PG",locale:"English (Papouasie-Nouvelle-Guinée)",native:"English (Papua New Guinea)",flag:"🇵🇬"},{isocode:"en-PH",locale:"English (Philippines)",native:"English (Philippines)",flag:"🇵🇭"},{isocode:"en-PK",locale:"English (Pakistan)",native:"English (Pakistan)",flag:"🇵🇰"},{isocode:"en-PN",locale:"English (Îles Pitcairn)",native:"English (Pitcairn Islands)",flag:"🇵🇳"},{isocode:"en-PR",locale:"English (Porto Rico)",native:"English (Puerto Rico)",flag:"🇵🇷"},{isocode:"en-PW",locale:"English (Palaos)",native:"English (Palau)",flag:"🇵🇼"},{isocode:"en-RW",locale:"English (Rwanda)",native:"English (Rwanda)",flag:"🇷🇼"},{isocode:"en-SB",locale:"English (Îles Salomon)",native:"English (Solomon Islands)",flag:"🇸🇧"},{isocode:"en-SC",locale:"English (Seychelles)",native:"English (Seychelles)",flag:"🇸🇨"},{isocode:"en-SD",locale:"English (Soudan)",native:"English (Sudan)",flag:"🇸🇩"},{isocode:"en-SE",locale:"English (Suède)",native:"English (Sweden)",flag:"🇸🇪"},{isocode:"en-SG",locale:"English (Singapour)",native:"English (Singapore)",flag:"🇸🇬"},{isocode:"en-SH",locale:"English (Sainte-Hélène)",native:"English (St. Helena)",flag:"🇸🇭"},{isocode:"en-SI",locale:"English (Slovénie)",native:"English (Slovenia)",flag:"🇸🇮"},{isocode:"en-SL",locale:"English (Sierra Leone)",native:"English (Sierra Leone)",flag:"🇸🇱"},{isocode:"en-SS",locale:"English (Soudan du Sud)",native:"English (South Sudan)",flag:"🇸🇸"},{isocode:"en-SX",locale:"English (Saint-Martin [partie néerlandaise])",native:"English (Sint Maarten)",flag:"🇸🇽"},{isocode:"en-SZ",locale:"English (Swaziland)",native:"English (Swaziland)",flag:"🇸🇿"},{isocode:"en-TC",locale:"English (Îles Turques-et-Caïques)",native:"English (Turks & Caicos Islands)",flag:"🇹🇨"},{isocode:"en-TK",locale:"English (Tokélaou)",native:"English (Tokelau)",flag:"🇹🇰"},{isocode:"en-TO",locale:"English (Tonga)",native:"English (Tonga)",flag:"🇹🇴"},{isocode:"en-TT",locale:"English (Trinité-et-Tobago)",native:"English (Trinidad & Tobago)",flag:"🇹🇹"},{isocode:"en-TV",locale:"English (Tuvalu)",native:"English (Tuvalu)",flag:"🇹🇻"},{isocode:"en-TZ",locale:"English (Tanzanie)",native:"English (Tanzania)",flag:"🇹🇿"},{isocode:"en-UG",locale:"English (Ouganda)",native:"English (Uganda)",flag:"🇺🇬"},{isocode:"en-UM",locale:"English (Îles mineures éloignées des United States)",native:"English (U.S. Outlying Islands)",flag:"🇺🇲"},{isocode:"en-US",locale:"English (United States)",native:"English (United States)",flag:"🇺🇸"},{isocode:"en-US-POSIX",locale:"English (United States, Computer)",native:"English (United States, Computer)",flag:"💻"},{isocode:"en-VC",locale:"English (Saint-Vincent-et-les-Grenadines)",native:"English (St. Vincent & Grenadines)",flag:"🇻🇨"},{isocode:"en-VG",locale:"English (Îles Vierges britanniques)",native:"English (British Virgin Islands)",flag:"🇻🇬"},{isocode:"en-VI",locale:"English (Îles Vierges des United States)",native:"English (U.S. Virgin Islands)",flag:"🇻🇮"},{isocode:"en-VU",locale:"English (Vanuatu)",native:"English (Vanuatu)",flag:"🇻🇺"},{isocode:"en-WS",locale:"English (Samoa)",native:"English (Samoa)",flag:"🇼🇸"},{isocode:"en-ZA",locale:"English (South Africa)",native:"English (South Africa)",flag:"🇿🇦"},{isocode:"en-ZM",locale:"English (Zambie)",native:"English (Zambia)",flag:"🇿🇲"},{isocode:"en-ZW",locale:"English (Zimbabwe)",native:"English (Zimbabwe)",flag:"🇿🇼"},{isocode:"eo",locale:"Espéranto",native:"Esperanto",flag:"🌍"},{isocode:"es",locale:"Espagnol",native:"Español",flag:"🇪🇸"},{isocode:"es-419",locale:"Espagnol (Latin America)",native:"Español (Latinoamérica)",flag:"🌎"},{isocode:"es-AR",locale:"Espagnol (Argentine)",native:"Español (Argentina)",flag:"🇦🇷"},{isocode:"es-BO",locale:"Espagnol (Bolivie)",native:"Español (Bolivia)",flag:"🇧🇴"},{isocode:"es-BR",locale:"Espagnol (Brazil)",native:"Español (Brasil)",flag:"🇧🇷"},{isocode:"es-BZ",locale:"Espagnol (Belize)",native:"Español (Belice)",flag:"🇧🇿"},{isocode:"es-CL",locale:"Espagnol (Chili)",native:"Español (Chile)",flag:"🇨🇱"},{isocode:"es-CO",locale:"Espagnol (Colombie)",native:"Español (Colombia)",flag:"🇨🇴"},{isocode:"es-CR",locale:"Espagnol (Costa Rica)",native:"Español (Costa Rica)",flag:"🇨🇷"},{isocode:"es-CU",locale:"Espagnol (Cuba)",native:"Español (Cuba)",flag:"🇨🇺"},{isocode:"es-DO",locale:"Espagnol (République dominicaine)",native:"Español (República Dominicana)",flag:"🇩🇴"},{isocode:"es-EA",locale:"Espagnol (Ceuta et Melilla)",native:"Español (Ceuta y Melilla)",flag:"🇪🇦"},{isocode:"es-EC",locale:"Espagnol (Équateur)",native:"Español (Ecuador)",flag:"🇪🇨"},{isocode:"es-ES",locale:"Espagnol (Spain)",native:"Español (España)",flag:"🇪🇸"},{isocode:"es-GQ",locale:"Espagnol (Guinée équatoriale)",native:"Español (Guinea Ecuatorial)",flag:"🇬🇶"},{isocode:"es-GT",locale:"Espagnol (Guatemala)",native:"Español (Guatemala)",flag:"🇬🇹"},{isocode:"es-HN",locale:"Espagnol (Honduras)",native:"Español (Honduras)",flag:"🇭🇳"},{isocode:"es-IC",locale:"Espagnol (Îles Canaries)",native:"Español (Canarias)",flag:"🇮🇨"},{isocode:"es-MX",locale:"Espagnol (Mexico)",native:"Español (México)",flag:"🇲🇽"},{isocode:"es-NI",locale:"Espagnol (Nicaragua)",native:"Español (Nicaragua)",flag:"🇳🇮"},{isocode:"es-PA",locale:"Espagnol (Panama)",native:"Español (Panamá)",flag:"🇵🇦"},{isocode:"es-PE",locale:"Espagnol (Pérou)",native:"Español (Perú)",flag:"🇵🇪"},{isocode:"es-PH",locale:"Espagnol (Philippines)",native:"Español (Filipinas)",flag:"🇵🇭"},{isocode:"es-PR",locale:"Espagnol (Porto Rico)",native:"Español (Puerto Rico)",flag:"🇵🇷"},{isocode:"es-PY",locale:"Espagnol (Paraguay)",native:"Español (Paraguay)",flag:"🇵🇾"},{isocode:"es-SV",locale:"Espagnol (Salvador)",native:"Español (El Salvador)",flag:"🇸🇻"},{isocode:"es-US",locale:"Espagnol (United States)",native:"Español (Estados Unidos)",flag:"🇺🇸"},{isocode:"es-UY",locale:"Espagnol (Uruguay)",native:"Español (Uruguay)",flag:"🇺🇾"},{isocode:"es-VE",locale:"Espagnol (Venezuela)",native:"Español (Venezuela)",flag:"🇻🇪"},{isocode:"et",locale:"Estonien",native:"Eesti",flag:"🇪🇪"},{isocode:"et-EE",locale:"Estonien (Estonie)",native:"Eesti (Eesti)",flag:"🇪🇪"},{isocode:"eu",locale:"Basque",native:"Euskara",flag:"🇪🇸"},{isocode:"eu-ES",locale:"Basque (Spain)",native:"Euskara (Espainia)",flag:"🇪🇸"},{isocode:"ewo",locale:"Éwondo",native:"Ewondo",flag:"🇨🇲"},{isocode:"ewo-CM",locale:"Éwondo (Cameroun)",native:"Ewondo (Kamərún)",flag:"🇨🇲"},{isocode:"fa",locale:"Persan",native:"فارسی",flag:"🇮🇷"},{isocode:"fa-AF",locale:"Persan (Afghanistan)",native:"فارسی (افغانستان)",flag:"🇦🇫"},{isocode:"fa-IR",locale:"Persan (Iran)",native:"فارسی (ایران)",flag:"🇮🇷"},{isocode:"ff",locale:"Peul",native:"Pulaar",flag:"🇸🇳"},{isocode:"ff-CM",locale:"Peul (Cameroun)",native:"Pulaar (Kameruun)",flag:"🇨🇲"},{isocode:"ff-GN",locale:"Peul (Guinée)",native:"Pulaar (Gine)",flag:"🇬🇳"},{isocode:"ff-MR",locale:"Peul (Mauritanie)",native:"Pulaar (Muritani)",flag:"🇲🇷"},{isocode:"ff-SN",locale:"Peul (Sénégal)",native:"Pulaar (Senegaal)",flag:"🇸🇳"},{isocode:"fi",locale:"Finnois",native:"Suomi",flag:"🇫🇮"},{isocode:"fi-FI",locale:"Finnois (Finlande)",native:"Suomi (Suomi)",flag:"🇫🇮"},{isocode:"fil",locale:"Filipino",native:"Filipino",flag:"🇵🇭"},{isocode:"fil-PH",locale:"Filipino (Philippines)",native:"Filipino (Pilipinas)",flag:"🇵🇭"},{isocode:"fo",locale:"Féroïen",native:"Føroyskt",flag:"🇫🇴"},{isocode:"fo-DK",locale:"Féroïen (Danemark)",native:"Føroyskt (Danmark)",flag:"🇩🇰"},{isocode:"fo-FO",locale:"Féroïen (Îles Féroé)",native:"Føroyskt (Føroyar)",flag:"🇫🇴"},{isocode:"fr",locale:"French",native:"Français",flag:"🇫🇷"},{isocode:"fr-BE",locale:"French (Belgium)",native:"Français (Belgique)",flag:"🇧🇪"},{isocode:"fr-BF",locale:"French (Burkina Faso)",native:"Français (Burkina Faso)",flag:"🇧🇫"},{isocode:"fr-BI",locale:"French (Burundi)",native:"Français (Burundi)",flag:"🇧🇮"},{isocode:"fr-BJ",locale:"French (Bénin)",native:"Français (Bénin)",flag:"🇧🇯"},{isocode:"fr-BL",locale:"French (Saint-Barthélemy)",native:"Français (Saint-Barthélemy)",flag:"🇧🇱"},{isocode:"fr-CA",locale:"French (Canada)",native:"Français (Canada)",flag:"🇨🇦"},{isocode:"fr-CD",locale:"French (Congo-Kinshasa)",native:"Français (Congo-Kinshasa)",flag:"🇨🇩"},{isocode:"fr-CF",locale:"French (République centrafricaine)",native:"Français (République centrafricaine)",flag:"🇨🇫"},{isocode:"fr-CG",locale:"French (Congo-Brazzaville)",native:"Français (Congo-Brazzaville)",flag:"🇨🇬"},{isocode:"fr-CH",locale:"French (Switzerland)",native:"Français (Suisse)",flag:"🇨🇭"},{isocode:"fr-CI",locale:"French (Côte d'Ivoire)",native:"Français (Côte d'Ivoire)",flag:"🇨🇮"},{isocode:"fr-CM",locale:"French (Cameroun)",native:"Français (Cameroun)",flag:"🇨🇲"},{isocode:"fr-DJ",locale:"French (Djibouti)",native:"Français (Djibouti)",flag:"🇩🇯"},{isocode:"fr-DZ",locale:"French (Algérie)",native:"Français (Algérie)",flag:"🇩🇿"},{isocode:"fr-FR",locale:"French (France)",native:"Français (France)",flag:"🇫🇷"},{isocode:"fr-GA",locale:"French (Gabon)",native:"Français (Gabon)",flag:"🇬🇦"},{isocode:"fr-GF",locale:"French (Guyane française)",native:"Français (Guyane française)",flag:"🇬🇫"},{isocode:"fr-GN",locale:"French (Guinée)",native:"Français (Guinée)",flag:"🇬🇳"},{isocode:"fr-GP",locale:"French (Guadeloupe)",native:"Français (Guadeloupe)",flag:"🇬🇵"},{isocode:"fr-GQ",locale:"French (Guinée équatoriale)",native:"Français (Guinée équatoriale)",flag:"🇬🇶"},{isocode:"fr-HT",locale:"French (Haïti)",native:"Français (Haïti)",flag:"🇭🇹"},{isocode:"fr-KM",locale:"French (Comores)",native:"Français (Comores)",flag:"🇰🇲"},{isocode:"fr-LU",locale:"French (Luxembourg)",native:"Français (Luxembourg)",flag:"🇱🇺"},{isocode:"fr-MA",locale:"French (Maroc)",native:"Français (Maroc)",flag:"🇲🇦"},{isocode:"fr-MC",locale:"French (Monaco)",native:"Français (Monaco)",flag:"🇲🇨"},{isocode:"fr-MF",locale:"French (Saint-Martin)",native:"Français (Saint-Martin)",flag:"🇲🇫"},{isocode:"fr-MG",locale:"French (Madagascar)",native:"Français (Madagascar)",flag:"🇲🇬"},{isocode:"fr-ML",locale:"French (Mali)",native:"Français (Mali)",flag:"🇲🇱"},{isocode:"fr-MQ",locale:"French (Martinique)",native:"Français (Martinique)",flag:"🇲🇶"},{isocode:"fr-MR",locale:"French (Mauritanie)",native:"Français (Mauritanie)",flag:"🇲🇷"},{isocode:"fr-MU",locale:"French (Maurice)",native:"Français (Maurice)",flag:"🇲🇺"},{isocode:"fr-NC",locale:"French (Nouvelle-Calédonie)",native:"Français (Nouvelle-Calédonie)",flag:"🇳🇨"},{isocode:"fr-NE",locale:"French (Niger)",native:"Français (Niger)",flag:"🇳🇪"},{isocode:"fr-PF",locale:"French (Polynésie française)",native:"Français (Polynésie française)",flag:"🇵🇫"},{isocode:"fr-PM",locale:"French (Saint-Pierre-et-Miquelon)",native:"Français (Saint-Pierre-et-Miquelon)",flag:"🇵🇲"},{isocode:"fr-RE",locale:"French (La Réunion)",native:"Français (La Réunion)",flag:"🇷🇪"},{isocode:"fr-RW",locale:"French (Rwanda)",native:"Français (Rwanda)",flag:"🇷🇼"},{isocode:"fr-SC",locale:"French (Seychelles)",native:"Français (Seychelles)",flag:"🇸🇨"},{isocode:"fr-SN",locale:"French (Sénégal)",native:"Français (Sénégal)",flag:"🇸🇳"},{isocode:"fr-SY",locale:"French (Syrie)",native:"Français (Syrie)",flag:"🇸🇾"},{isocode:"fr-TD",locale:"French (Tchad)",native:"Français (Tchad)",flag:"🇹🇩"},{isocode:"fr-TG",locale:"French (Togo)",native:"Français (Togo)",flag:"🇹🇬"},{isocode:"fr-TN",locale:"French (Tunisie)",native:"Français (Tunisie)",flag:"🇹🇳"},{isocode:"fr-VU",locale:"French (Vanuatu)",native:"Français (Vanuatu)",flag:"🇻🇺"},{isocode:"fr-WF",locale:"French (Wallis-et-Futuna)",native:"Français (Wallis-et-Futuna)",flag:"🇼🇫"},{isocode:"fr-YT",locale:"French (Mayotte)",native:"Français (Mayotte)",flag:"🇾🇹"},{isocode:"fur",locale:"Frioulan",native:"Furlan",flag:"🇮🇹"},{isocode:"fur-IT",locale:"Frioulan (Italie)",native:"Furlan (Italie)",flag:"🇮🇹"},{isocode:"fy",locale:"Frison occidental",native:"Frysk",flag:"🇳🇱"},{isocode:"fy-NL",locale:"Frison occidental (Pays-Bas)",native:"Frysk (Nederlân)",flag:"🇳🇱"},{isocode:"ga",locale:"Irlandais",native:"Gaeilge",flag:"🇮🇪"},{isocode:"ga-IE",locale:"Irlandais (Irlande)",native:"Gaeilge (Éire)",flag:"🇮🇪"},{isocode:"gd",locale:"Gaélique écossais",native:"Gàidhlig",flag:"🏴󠁧󠁢󠁳󠁣󠁴󠁿"},{isocode:"gd-GB",locale:"Gaélique écossais (United Kingdom)",native:"Gàidhlig (An Rìoghachd Aonaichte)",flag:"🇬🇧"},{isocode:"gl",locale:"Galicien",native:"Galego",flag:"🇪🇸"},{isocode:"gl-ES",locale:"Galicien (Spain)",native:"Galego (España)",flag:"🇪🇸"},{isocode:"gsw",locale:"Switzerland German",native:"Schwiizertüütsch",flag:"🇨🇭"},{isocode:"gsw-CH",locale:"Switzerland German (Switzerland)",native:"Schwiizertüütsch (Schwiiz)",flag:"🇨🇭"},{isocode:"gsw-FR",locale:"Switzerland German (France)",native:"Schwiizertüütsch (Frankriich)",flag:"🇫🇷"},{isocode:"gsw-LI",locale:"Switzerland German (Liechtenstein)",native:"Schwiizertüütsch (Liächteschtäi)",flag:"🇱🇮"},{isocode:"gu",locale:"Goudjerati",native:"ગુજરાતી",flag:"🇮🇳"},{isocode:"gu-IN",locale:"Goudjerati (India)",native:"ગુજરાતી (ભારત)",flag:"🇮🇳"},{isocode:"guz",locale:"Gusii",native:"Ekegusii",flag:"🇰🇪"},{isocode:"guz-KE",locale:"Gusii (Kenya)",native:"Ekegusii (Kenya)",flag:"🇰🇪"},{isocode:"gv",locale:"Mannois",native:"Gaelg",flag:"🇮🇲"},{isocode:"gv-IM",locale:"Mannois (Île de Man)",native:"Gaelg (Ellan Vannin)",flag:"🇮🇲"},{isocode:"ha",locale:"Haoussa",native:"Hausa",flag:"🇳🇬"},{isocode:"ha-GH",locale:"Haoussa (Ghana)",native:"Hausa (Gana)",flag:"🇬🇭"},{isocode:"ha-NE",locale:"Haoussa (Niger)",native:"Hausa (Nijar)",flag:"🇳🇪"},{isocode:"ha-NG",locale:"Haoussa (Nigéria)",native:"Hausa (Najeriya)",flag:"🇳🇬"},{isocode:"haw",locale:"Hawaïen",native:"ʻŌlelo Hawaiʻi",flag:"🇺🇸"},{isocode:"haw-US",locale:"Hawaïen (United States)",native:"ʻŌlelo Hawaiʻi (ʻAmelika Hui Pū ʻIa)",flag:"🇺🇸"},{isocode:"he",locale:"Hébreu",native:"עברית",flag:"🇮🇱"},{isocode:"he-IL",locale:"Hébreu (Israël)",native:"עברית (ישראל)",flag:"🇮🇱"},{isocode:"hi",locale:"Hindi",native:"हिन्दी",flag:"🇮🇳"},{isocode:"hi-IN",locale:"Hindi (India)",native:"हिन्दी (भारत)",flag:"🇮🇳"},{isocode:"hr",locale:"Croate",native:"Hrvatski",flag:"🇭🇷"},{isocode:"hr-BA",locale:"Croate (Bosnie-Herzégovine)",native:"Hrvatski (Bosna i Hercegovina)",flag:"🇧🇦"},{isocode:"hr-HR",locale:"Croate (Croatie)",native:"Hrvatski (Hrvatska)",flag:"🇭🇷"},{isocode:"hsb",locale:"Haut-sorabe",native:"Hornjoserbšćina",flag:"🇩🇪"},{isocode:"hsb-DE",locale:"Haut-sorabe (Germany)",native:"Hornjoserbšćina (Němska)",flag:"🇩🇪"},{isocode:"hu",locale:"Hongrois",native:"Magyar",flag:"🇭🇺"},{isocode:"hu-HU",locale:"Hongrois (Hongrie)",native:"Magyar (Magyarország)",flag:"🇭🇺"},{isocode:"hy",locale:"Arménien",native:"հայերեն",flag:"🇦🇲"},{isocode:"hy-AM",locale:"Arménien (Arménie)",native:"հայերեն (Հայաստան)",flag:"🇦🇲"},{isocode:"id",locale:"Indonésien",native:"Indonesia",flag:"🇮🇩"},{isocode:"id-ID",locale:"Indonésien (Indonésie)",native:"Indonesia (Indonesia)",flag:"🇮🇩"},{isocode:"ig",locale:"Igbo",native:"Igbo",flag:"🇳🇬"},{isocode:"ig-NG",locale:"Igbo (Nigéria)",native:"Igbo (Naịjịrịa)",flag:"🇳🇬"},{isocode:"ii",locale:"Yi du Sichuan",native:"ꆈꌠꉙ",flag:"🇨🇳"},{isocode:"ii-CN",locale:"Yi du Sichuan (Chine)",native:"ꆈꌠꉙ (ꍏꇩ)",flag:"🇨🇳"},{isocode:"is",locale:"Islandais",native:"íslenska",flag:"🇮🇸"},{isocode:"is-IS",locale:"Islandais (Islande)",native:"íslenska (Ísland)",flag:"🇮🇸"},{isocode:"it",locale:"Italian",native:"Italiano",flag:"🇮🇹"},{isocode:"it-CH",locale:"Italian (Switzerland)",native:"Italiano (Svizzera)",flag:"🇨🇭"},{isocode:"it-IT",locale:"Italian (Italie)",native:"Italiano (Italia)",flag:"🇮🇹"},{isocode:"it-SM",locale:"Italian (Saint-Marin)",native:"Italiano (San Marino)",flag:"🇸🇲"},{isocode:"it-VA",locale:"Italian (État de la Cité du Vatican)",native:"Italiano (Città del Vaticano)",flag:"🇻🇦"},{isocode:"ja",locale:"Japonais",native:"日本語",flag:"🇯🇵"},{isocode:"ja-JP",locale:"Japonais (Japan)",native:"日本語 (日本)",flag:"🇯🇵"},{isocode:"jgo",locale:"Ngomba",native:"Ndaꞌa",flag:"🇨🇲"},{isocode:"jgo-CM",locale:"Ngomba (Cameroun)",native:"Ndaꞌa (Kamɛlûn)",flag:"🇨🇲"},{isocode:"jmc",locale:"Matchamé",native:"Kimachame",flag:"🇹🇿"},{isocode:"jmc-TZ",locale:"Matchamé (Tanzanie)",native:"Kimachame (Tanzania)",flag:"🇹🇿"},{isocode:"ka",locale:"Géorgien",native:"ქართული",flag:"🇬🇪"},{isocode:"ka-GE",locale:"Géorgien (Géorgie)",native:"ქართული (საქართველო)",flag:"🇬🇪"},{isocode:"kab",locale:"Kabyle",native:"Taqbaylit",flag:"🇩🇿"},{isocode:"kab-DZ",locale:"Kabyle (Algérie)",native:"Taqbaylit (Lezzayer)",flag:"🇩🇿"},{isocode:"kam",locale:"Kamba",native:"Kikamba",flag:"🇰🇪"},{isocode:"kam-KE",locale:"Kamba (Kenya)",native:"Kikamba (Kenya)",flag:"🇰🇪"},{isocode:"kde",locale:"Makondé",native:"Chimakonde",flag:"🇹🇿"},{isocode:"kde-TZ",locale:"Makondé (Tanzanie)",native:"Chimakonde (Tanzania)",flag:"🇹🇿"},{isocode:"kea",locale:"Capverdien",native:"Kabuverdianu",flag:"🇨🇻"},{isocode:"kea-CV",locale:"Capverdien (Cap-Vert)",native:"Kabuverdianu (Kabu Verdi)",flag:"🇨🇻"},{isocode:"khq",locale:"Koyra chiini",native:"Koyra ciini",flag:"🇲🇱"},{isocode:"khq-ML",locale:"Koyra chiini (Mali)",native:"Koyra ciini (Maali)",flag:"🇲🇱"},{isocode:"ki",locale:"Kikuyu",native:"Gikuyu",flag:"🇰🇪"},{isocode:"ki-KE",locale:"Kikuyu (Kenya)",native:"Gikuyu (Kenya)",flag:"🇰🇪"},{isocode:"kk",locale:"Kazakh",native:"қазақ тілі",flag:"🇰🇿"},{isocode:"kk-KZ",locale:"Kazakh (Kazakhstan)",native:"қазақ тілі (Қазақстан)",flag:"🇰🇿"},{isocode:"kkj",locale:"Kako",native:"Kakɔ",flag:"🇨🇲"},{isocode:"kkj-CM",locale:"Kako (Cameroun)",native:"Kakɔ (Kamɛrun)",flag:"🇨🇲"},{isocode:"kl",locale:"Groenlandais",native:"Kalaallisut",flag:"🇬🇱"},{isocode:"kl-GL",locale:"Groenlandais (Groenland)",native:"Kalaallisut (Kalaallit Nunaat)",flag:"🇬🇱"},{isocode:"kln",locale:"Kalendjin",native:"Kalenjin",flag:"🇰🇪"},{isocode:"kln-KE",locale:"Kalendjin (Kenya)",native:"Kalenjin (Emetab Kenya)",flag:"🇰🇪"},{isocode:"km",locale:"Khmer",native:"ខ្មែរ",flag:"🇰🇭"},{isocode:"km-KH",locale:"Khmer (Cambodge)",native:"ខ្មែរ (កម្ពុជា)",flag:"🇰🇭"},{isocode:"kn",locale:"Kannada",native:"ಕನ್ನಡ",flag:"🇮🇳"},{isocode:"kn-IN",locale:"Kannada (India)",native:"ಕನ್ನಡ (ಭಾರತ)",flag:"🇮🇳"},{isocode:"ko",locale:"Coréen",native:"한국어",flag:"🇰🇷"},{isocode:"ko-KP",locale:"Coréen (Corée du Nord)",native:"한국어(조선민주주의인민공화국)",flag:"🇰🇵"},{isocode:"ko-KR",locale:"Coréen (Corée du Sud)",native:"한국어(대한민국)",flag:"🇰🇷"},{isocode:"kok",locale:"Konkani",native:"कोंकणी",flag:"🇮🇳"},{isocode:"kok-IN",locale:"Konkani (India)",native:"कोंकणी (भारत)",flag:"🇮🇳"},{isocode:"ks",locale:"Kashmiri",native:"کٲشُر",flag:"🇮🇳"},{isocode:"ks-IN",locale:"Kashmiri (India)",native:"کٲشُر (ہِنٛدوستان)",flag:"🇮🇳"},{isocode:"ksb",locale:"Chambala",native:"Kishambaa",flag:"🇹🇿"},{isocode:"ksb-TZ",locale:"Chambala (Tanzanie)",native:"Kishambaa (Tanzania)",flag:"🇹🇿"},{isocode:"ksf",locale:"Bafia",native:"Rikpa",flag:"🇨🇲"},{isocode:"ksf-CM",locale:"Bafia (Cameroun)",native:"Rikpa (kamɛrún)",flag:"🇨🇲"},{isocode:"ksh",locale:"Francique ripuaire",native:"Kölsch",flag:"🇩🇪"},{isocode:"ksh-DE",locale:"Francique ripuaire (Germany)",native:"Kölsch en Doütschland",flag:"🇩🇪"},{isocode:"kw",locale:"Cornique",native:"Kernewek",flag:"🇬🇧"},{isocode:"kw-GB",locale:"Cornique (United Kingdom)",native:"Kernewek (Rywvaneth Unys)",flag:"🇬🇧"},{isocode:"ky",locale:"Kirghize",native:"кыргызча",flag:"🇰🇬"},{isocode:"ky-KG",locale:"Kirghize (Kirghizistan)",native:"кыргызча (Кыргызстан)",flag:"🇰🇬"},{isocode:"lag",locale:"Langi",native:"Kɨlaangi",flag:"🇹🇿"},{isocode:"lag-TZ",locale:"Langi (Tanzanie)",native:"Kɨlaangi (Taansanía)",flag:"🇹🇿"},{isocode:"lb",locale:"Luxembourgeois",native:"Lëtzebuergesch",flag:"🇱🇺"},{isocode:"lb-LU",locale:"Luxembourgeois (Luxembourg)",native:"Lëtzebuergesch (Lëtzebuerg)",flag:"🇱🇺"},{isocode:"lg",locale:"Ganda",native:"Luganda",flag:"🇺🇬"},{isocode:"lg-UG",locale:"Ganda (Ouganda)",native:"Luganda (Yuganda)",flag:"🇺🇬"},{isocode:"lkt",locale:"Lakota",native:"Lakȟólʼiyapi",flag:"🇺🇸"},{isocode:"lkt-US",locale:"Lakota (United States)",native:"Lakȟólʼiyapi (Mílahaŋska Tȟamákȟočhe)",flag:"🇺🇸"},{isocode:"ln",locale:"Lingala",native:"Lingála",flag:"🇨🇩"},{isocode:"ln-AO",locale:"Lingala (Angola)",native:"Lingála (Angóla)",flag:"🇦🇴"},{isocode:"ln-CD",locale:"Lingala (Congo-Kinshasa)",native:"Lingála (Republíki ya Kongó Demokratíki)",flag:"🇨🇩"},{isocode:"ln-CF",locale:"Lingala (République centrafricaine)",native:"Lingála (Repibiki ya Afríka ya Káti)",flag:"🇨🇫"},{isocode:"ln-CG",locale:"Lingala (Congo-Brazzaville)",native:"Lingála (Kongo)",flag:"🇨🇬"},{isocode:"lo",locale:"Lao",native:"ລາວ",flag:"🇱🇦"},{isocode:"lo-LA",locale:"Lao (Laos)",native:"ລາວ (ລາວ)",flag:"🇱🇦"},{isocode:"lrc",locale:"Lori du Nord",native:"لۊری شومالی",flag:"🇮🇷"},{isocode:"lrc-IQ",locale:"Lori du Nord (Irak)",native:"لۊری شومالی (IQ)",flag:"🇮🇶"},{isocode:"lrc-IR",locale:"Lori du Nord (Iran)",native:"لۊری شومالی (IR)",flag:"🇮🇷"},{isocode:"lt",locale:"Lituanien",native:"Lietuvių",flag:"🇱🇹"},{isocode:"lt-LT",locale:"Lituanien (Lituanie)",native:"Lietuvių (Lietuva)",flag:"🇱🇹"},{isocode:"lu",locale:"Luba-katanga",native:"Tshiluba",flag:"🇨🇩"},{isocode:"lu-CD",locale:"Luba-katanga (Congo-Kinshasa)",native:"Tshiluba (Ditunga wa Kongu)",flag:"🇨🇩"},{isocode:"luo",locale:"Luo",native:"Dholuo",flag:"🇰🇪"},{isocode:"luo-KE",locale:"Luo (Kenya)",native:"Dholuo (Kenya)",flag:"🇰🇪"},{isocode:"luy",locale:"Luhya",native:"Luluhia",flag:"🇰🇪"},{isocode:"luy-KE",locale:"Luhya (Kenya)",native:"Luluhia (Kenya)",flag:"🇰🇪"},{isocode:"lv",locale:"Letton",native:"Latviešu",flag:"🇱🇻"},{isocode:"lv-LV",locale:"Letton (Lettonie)",native:"Latviešu (Latvija)",flag:"🇱🇻"},{isocode:"mas",locale:"Massaï",native:"Maa",flag:"🇰🇪"},{isocode:"mas-KE",locale:"Massaï (Kenya)",native:"Maa (Kenya)",flag:"🇰🇪"},{isocode:"mas-TZ",locale:"Massaï (Tanzanie)",native:"Maa (Tansania)",flag:"🇹🇿"},{isocode:"mer",locale:"Mérou",native:"Kĩmĩrũ",flag:"🇰🇪"},{isocode:"mer-KE",locale:"Mérou (Kenya)",native:"Kĩmĩrũ (Kenya)",flag:"🇰🇪"},{isocode:"mfe",locale:"Créole mauricien",native:"Kreol morisien",flag:"🇲🇺"},{isocode:"mfe-MU",locale:"Créole mauricien (Maurice)",native:"Kreol morisien (Moris)",flag:"🇲🇺"},{isocode:"mg",locale:"Malgache",native:"Malagasy",flag:"🇲🇬"},{isocode:"mg-MG",locale:"Malgache (Madagascar)",native:"Malagasy (Madagasikara)",flag:"🇲🇬"},{isocode:"mgh",locale:"Makhuwa-meetto",native:"Makua",flag:"🇲🇿"},{isocode:"mgh-MZ",locale:"Makhuwa-meetto (Mozambique)",native:"Makua (Umozambiki)",flag:"🇲🇿"},{isocode:"mgo",locale:"Méta'",native:"Metaʼ",flag:"🇨🇲"},{isocode:"mgo-CM",locale:"Méta' (Cameroun)",native:"Metaʼ (Kamalun)",flag:"🇨🇲"},{isocode:"mk",locale:"Macédonien",native:"македонски",flag:"🇲🇰"},{isocode:"mk-MK",locale:"Macédonien (Macédoine)",native:"македонски (Македонија)",flag:"🇲🇰"},{isocode:"ml",locale:"Malayalam",native:"മലയാളം",flag:"🇮🇳"},{isocode:"ml-IN",locale:"Malayalam (India)",native:"മലയാളം (ഇന്ത്യ)",flag:"🇮🇳"},{isocode:"mn",locale:"Mongol",native:"монгол",flag:"🇲🇳"},{isocode:"mn-MN",locale:"Mongol (Mongolie)",native:"монгол (Монгол)",flag:"🇲🇳"},{isocode:"mr",locale:"Marathe",native:"मराठी",flag:"🇮🇳"},{isocode:"mr-IN",locale:"Marathe (India)",native:"मराठी (भारत)",flag:"🇮🇳"},{isocode:"ms",locale:"Malais",native:"Melayu",flag:"🇲🇾"},{isocode:"ms-BN",locale:"Malais (Brunéi Darussalam)",native:"Melayu (Brunei)",flag:"🇧🇳"},{isocode:"ms-MY",locale:"Malais (Malaisie)",native:"Melayu (Malaysia)",flag:"🇲🇾"},{isocode:"ms-SG",locale:"Malais (Singapour)",native:"Melayu (Singapura)",flag:"🇸🇬"},{isocode:"mt",locale:"Maltais",native:"Malti",flag:"🇲🇹"},{isocode:"mt-MT",locale:"Maltais (Malte)",native:"Malti (Malta)",flag:"🇲🇹"},{isocode:"mua",locale:"Moundang",native:"MUNDAŊ",flag:"🇨🇲"},{isocode:"mua-CM",locale:"Moundang (Cameroun)",native:"MUNDAŊ (kameruŋ)",flag:"🇨🇲"},{isocode:"my",locale:"Birman",native:"မြန်မာ",flag:"🇲🇲"},{isocode:"my-MM",locale:"Birman (Myanmar [Birmanie])",native:"မြန်မာ (မြန်မာ)",flag:"🇲🇲"},{isocode:"mzn",locale:"Mazandérani",native:"مازرونی",flag:"🇮🇷"},{isocode:"mzn-IR",locale:"Mazandérani (Iran)",native:"مازرونی (ایران)",flag:"🇮🇷"},{isocode:"naq",locale:"Nama",native:"Khoekhoegowab",flag:"🇳🇦"},{isocode:"naq-NA",locale:"Nama (Namibie)",native:"Khoekhoegowab (Namibiab)",flag:"🇳🇦"},{isocode:"nb",locale:"Norvégien bokmål",native:"Norsk bokmål",flag:"🇳🇴"},{isocode:"nb-NO",locale:"Norvégien bokmål (Norvège)",native:"Norsk bokmål (Norge)",flag:"🇳🇴"},{isocode:"nb-SJ",locale:"Norvégien bokmål (Svalbard et Jan Mayen)",native:"Norsk bokmål (Svalbard og Jan Mayen)",flag:"🇸🇯"},{isocode:"nd",locale:"Ndébélé du Nord",native:"IsiNdebele",flag:"🇿🇼"},{isocode:"nd-ZW",locale:"Ndébélé du Nord (Zimbabwe)",native:"IsiNdebele (Zimbabwe)",flag:"🇿🇼"},{isocode:"nds",locale:"Bas-German",native:"Nds",flag:"🇩🇪"},{isocode:"nds-DE",locale:"Bas-German (Germany)",native:"Nds (DE)",flag:"🇩🇪"},{isocode:"nds-NL",locale:"Bas-German (Pays-Bas)",native:"Nds (NL)",flag:"🇳🇱"},{isocode:"ne",locale:"Népalais",native:"नेपाली",flag:"🇳🇵"},{isocode:"ne-IN",locale:"Népalais (India)",native:"नेपाली (भारत)",flag:"🇮🇳"},{isocode:"ne-NP",locale:"Népalais (Népal)",native:"नेपाली (नेपाल)",flag:"🇳🇵"},{isocode:"nl",locale:"Néerlandais",native:"Nederlands",flag:"🇳🇱"},{isocode:"nl-AW",locale:"Néerlandais (Aruba)",native:"Nederlands (Aruba)",flag:"🇦🇼"},{isocode:"nl-BE",locale:"Néerlandais (Belgium)",native:"Nederlands (België)",flag:"🇧🇪"},{isocode:"nl-BQ",locale:"Néerlandais (Pays-Bas caribéens)",native:"Nederlands (Caribisch Nederland)",flag:"🇧🇶"},{isocode:"nl-CW",locale:"Néerlandais (Curaçao)",native:"Nederlands (Curaçao)",flag:"🇨🇼"},{isocode:"nl-NL",locale:"Néerlandais (Pays-Bas)",native:"Nederlands (Nederland)",flag:"🇳🇱"},{isocode:"nl-SR",locale:"Néerlandais (Suriname)",native:"Nederlands (Suriname)",flag:"🇸🇷"},{isocode:"nl-SX",locale:"Néerlandais (Saint-Martin [partie néerlandaise])",native:"Nederlands (Sint-Maarten)",flag:"🇸🇽"},{isocode:"nmg",locale:"Kwasio",native:"Nmg",flag:"🇨🇲"},{isocode:"nmg-CM",locale:"Kwasio (Cameroun)",native:"Nmg (Kamerun)",flag:"🇨🇲"},{isocode:"nn",locale:"Norvégien nynorsk",native:"Nynorsk",flag:"🇳🇴"},{isocode:"nn-NO",locale:"Norvégien nynorsk (Norvège)",native:"Nynorsk (Noreg)",flag:"🇳🇴"},{isocode:"nnh",locale:"Ngiemboon",native:"Shwóŋò ngiembɔɔn",flag:"🇨🇲"},{isocode:"nnh-CM",locale:"Ngiemboon (Cameroun)",native:"Shwóŋò ngiembɔɔn (Kàmalûm)",flag:"🇨🇲"},{isocode:"nus",locale:"Nuer",native:"Thok Nath",flag:"🇸🇸"},{isocode:"nus-SS",locale:"Nuer (Soudan du Sud)",native:"Thok Nath (SS)",flag:"🇸🇸"},{isocode:"nyn",locale:"Nyankolé",native:"Runyankore",flag:"🇺🇬"},{isocode:"nyn-UG",locale:"Nyankolé (Ouganda)",native:"Runyankore (Uganda)",flag:"🇺🇬"},{isocode:"om",locale:"Oromo",native:"Oromoo",flag:"🇪🇹"},{isocode:"om-ET",locale:"Oromo (Éthiopie)",native:"Oromoo (Itoophiyaa)",flag:"🇪🇹"},{isocode:"om-KE",locale:"Oromo (Kenya)",native:"Oromoo (Keeniyaa)",flag:"🇰🇪"},{isocode:"or",locale:"Oriya",native:"ଓଡ଼ିଆ",flag:"🇮🇳"},{isocode:"or-IN",locale:"Oriya (India)",native:"ଓଡ଼ିଆ (ଭାରତ)",flag:"🇮🇳"},{isocode:"os",locale:"Ossète",native:"ирон",flag:"🇬🇪"},{isocode:"os-GE",locale:"Ossète (Géorgie)",native:"ирон (Гуырдзыстон)",flag:"🇬🇪"},{isocode:"os-RU",locale:"Ossète (Russie)",native:"ирон (Уӕрӕсе)",flag:"🇷🇺"},{isocode:"pa",locale:"Pendjabi",native:"ਪੰਜਾਬੀ",flag:"🇮🇳"},{isocode:"pa-Arab",locale:"Pendjabi (Arabic)",native:"پنجابی (عربی)",flag:"🇵🇰"},{isocode:"pa-Arab-PK",locale:"Pendjabi (Arabic, Pakistan)",native:"پنجابی (عربی, پاکستان)",flag:"🇵🇰"},{isocode:"pa-Guru",locale:"Pendjabi (gourmoukhî)",native:"ਪੰਜਾਬੀ (ਗੁਰਮੁਖੀ)",flag:"🇮🇳"},{isocode:"pa-Guru-IN",locale:"Pendjabi (gourmoukhî, India)",native:"ਪੰਜਾਬੀ (ਗੁਰਮੁਖੀ, ਭਾਰਤ)",flag:"🇮🇳"},{isocode:"pl",locale:"Polonais",native:"Polski",flag:"🇵🇱"},{isocode:"pl-PL",locale:"Polonais (Pologne)",native:"Polski (Polska)",flag:"🇵🇱"},{isocode:"ps",locale:"Pachto",native:"پښتو",flag:"🇦🇫"},{isocode:"ps-AF",locale:"Pachto (Afghanistan)",native:"پښتو (افغانستان)",flag:"🇦🇫"},{isocode:"pt",locale:"Portugais",native:"Português",flag:"🇵🇹"},{isocode:"pt-AO",locale:"Portugais (Angola)",native:"Português (Angola)",flag:"🇦🇴"},{isocode:"pt-BR",locale:"Portugais (Brazil)",native:"Português (Brasil)",flag:"🇧🇷"},{isocode:"pt-CH",locale:"Portugais (Switzerland)",native:"Português (Suíça)",flag:"🇨🇭"},{isocode:"pt-CV",locale:"Portugais (Cap-Vert)",native:"Português (Cabo Verde)",flag:"🇨🇻"},{isocode:"pt-GQ",locale:"Portugais (Guinée équatoriale)",native:"Português (Guiné Equatorial)",flag:"🇬🇶"},{isocode:"pt-GW",locale:"Portugais (Guinée-Bissau)",native:"Português (Guiné-Bissau)",flag:"🇬🇼"},{isocode:"pt-LU",locale:"Portugais (Luxembourg)",native:"Português (Luxemburgo)",flag:"🇱🇺"},{isocode:"pt-MO",locale:"Portugais (R.A.S. chinoise de Macao)",native:"Português (Macau, RAE da China)",flag:"🇲🇴"},{isocode:"pt-MZ",locale:"Portugais (Mozambique)",native:"Português (Moçambique)",flag:"🇲🇿"},{isocode:"pt-PT",locale:"Portugais (Portugal)",native:"Português (Portugal)",flag:"🇵🇹"},{isocode:"pt-ST",locale:"Portugais (Sao Tomé-et-Principe)",native:"Português (São Tomé e Príncipe)",flag:"🇸🇹"},{isocode:"pt-TL",locale:"Portugais (Timor oriental)",native:"Português (Timor-Leste)",flag:"🇹🇱"},{isocode:"qu",locale:"Quechua",native:"Runasimi",flag:"🇵🇪"},{isocode:"qu-BO",locale:"Quechua (Bolivie)",native:"Runasimi (Bolivia)",flag:"🇧🇴"},{isocode:"qu-EC",locale:"Quechua (Équateur)",native:"Runasimi (Ecuador)",flag:"🇪🇨"},{isocode:"qu-PE",locale:"Quechua (Pérou)",native:"Runasimi (Perú)",flag:"🇵🇪"},{isocode:"rm",locale:"Romanche",native:"Rumantsch",flag:"🇨🇭"},{isocode:"rm-CH",locale:"Romanche (Switzerland)",native:"Rumantsch (Svizra)",flag:"🇨🇭"},{isocode:"rn",locale:"Roundi",native:"Ikirundi",flag:"🇧🇮"},{isocode:"rn-BI",locale:"Roundi (Burundi)",native:"Ikirundi (Uburundi)",flag:"🇧🇮"},{isocode:"ro",locale:"Roumain",native:"Română",flag:"🇷🇴"},{isocode:"ro-MD",locale:"Roumain (Moldavie)",native:"Română (Republica Moldova)",flag:"🇲🇩"},{isocode:"ro-RO",locale:"Roumain (Roumanie)",native:"Română (România)",flag:"🇷🇴"},{isocode:"rof",locale:"Rombo",native:"Kihorombo",flag:"🇹🇿"},{isocode:"rof-TZ",locale:"Rombo (Tanzanie)",native:"Kihorombo (Tanzania)",flag:"🇹🇿"},{isocode:"ru",locale:"Russe",native:"русский",flag:"🇷🇺"},{isocode:"ru-BY",locale:"Russe (Biélorussie)",native:"русский (Беларусь)",flag:"🇧🇾"},{isocode:"ru-KG",locale:"Russe (Kirghizistan)",native:"русский (Киргизия)",flag:"🇰🇬"},{isocode:"ru-KZ",locale:"Russe (Kazakhstan)",native:"русский (Казахстан)",flag:"🇰🇿"},{isocode:"ru-MD",locale:"Russe (Moldavie)",native:"русский (Молдова)",flag:"🇲🇩"},{isocode:"ru-RU",locale:"Russe (Russie)",native:"русский (Россия)",flag:"🇷🇺"},{isocode:"ru-UA",locale:"Russe (Ukraine)",native:"русский (Украина)",flag:"🇺🇦"},{isocode:"rw",locale:"Rwanda",native:"Kinyarwanda",flag:"🇷🇼"},{isocode:"rw-RW",locale:"Rwanda (Rwanda)",native:"Kinyarwanda (U Rwanda)",flag:"🇷🇼"},{isocode:"rwk",locale:"Rwa",native:"Kiruwa",flag:"🇹🇿"},{isocode:"rwk-TZ",locale:"Rwa (Tanzanie)",native:"Kiruwa (Tanzania)",flag:"🇹🇿"},{isocode:"sah",locale:"Iakoute",native:"саха тыла",flag:"🇷🇺"},{isocode:"sah-RU",locale:"Iakoute (Russie)",native:"саха тыла (Арассыыйа)",flag:"🇷🇺"},{isocode:"saq",locale:"Sambourou",native:"Kisampur",flag:"🇰🇪"},{isocode:"saq-KE",locale:"Sambourou (Kenya)",native:"Kisampur (Kenya)",flag:"🇰🇪"},{isocode:"sbp",locale:"Sangu",native:"Ishisangu",flag:"🇹🇿"},{isocode:"sbp-TZ",locale:"Sangu (Tanzanie)",native:"Ishisangu (Tansaniya)",flag:"🇹🇿"},{isocode:"se",locale:"Sami du Nord",native:"Davvisámegiella",flag:"🇳🇴"},{isocode:"se-FI",locale:"Sami du Nord (Finlande)",native:"Davvisámegiella (Suopma)",flag:"🇫🇮"},{isocode:"se-NO",locale:"Sami du Nord (Norvège)",native:"Davvisámegiella (Norga)",flag:"🇳🇴"},{isocode:"se-SE",locale:"Sami du Nord (Suède)",native:"Davvisámegiella (Ruoŧŧa)",flag:"🇸🇪"},{isocode:"seh",locale:"Cisena",native:"Sena",flag:"🇲🇿"},{isocode:"seh-MZ",locale:"Cisena (Mozambique)",native:"Sena (Moçambique)",flag:"🇲🇿"},{isocode:"ses",locale:"Koyraboro senni",native:"Koyraboro senni",flag:"🇲🇱"},{isocode:"ses-ML",locale:"Koyraboro senni (Mali)",native:"Koyraboro senni (Maali)",flag:"🇲🇱"},{isocode:"sg",locale:"Sangho",native:"Sängö",flag:"🇨🇫"},{isocode:"sg-CF",locale:"Sangho (République centrafricaine)",native:"Sängö (Ködörösêse tî Bêafrîka)",flag:"🇨🇫"},{isocode:"shi",locale:"Chleuh",native:"ⵜⴰⵛⵍⵃⵉⵜ",flag:"🇲🇦"},{isocode:"shi-Latn",locale:"Chleuh (latin)",native:"Tashelḥiyt (Latn)",flag:"🇲🇦"},{isocode:"shi-Latn-MA",locale:"Chleuh (latin, Maroc)",native:"Tashelḥiyt (Latn, lmɣrib)",flag:"🇲🇦"},{isocode:"shi-Tfng",locale:"Chleuh (tifinagh)",native:"ⵜⴰⵛⵍⵃⵉⵜ (Tfng)",flag:"🇲🇦"},{isocode:"shi-Tfng-MA",locale:"Chleuh (tifinagh, Maroc)",native:"ⵜⴰⵛⵍⵃⵉⵜ (Tfng, ⵍⵎⵖⵔⵉⴱ)",flag:"🇲🇦"},{isocode:"si",locale:"Cinghalais",native:"සිංහල",flag:"🇱🇰"},{isocode:"si-LK",locale:"Cinghalais (Sri Lanka)",native:"සිංහල (ශ්‍රී ලංකාව)",flag:"🇱🇰"},{isocode:"sk",locale:"Slovaque",native:"Slovenčina",flag:"🇸🇰"},{isocode:"sk-SK",locale:"Slovaque (Slovaquie)",native:"Slovenčina (Slovensko)",flag:"🇸🇰"},{isocode:"sl",locale:"Slovène",native:"Slovenščina",flag:"🇸🇮"},{isocode:"sl-SI",locale:"Slovène (Slovénie)",native:"Slovenščina (Slovenija)",flag:"🇸🇮"},{isocode:"smn",locale:"Sami d'Inari",native:"Anarâškielâ",flag:"🇫🇮"},{isocode:"smn-FI",locale:"Sami d'Inari (Finlande)",native:"Anarâškielâ (Suomâ)",flag:"🇫🇮"},{isocode:"sn",locale:"Shona",native:"ChiShona",flag:"🇿🇼"},{isocode:"sn-ZW",locale:"Shona (Zimbabwe)",native:"ChiShona (Zimbabwe)",flag:"🇿🇼"},{isocode:"so",locale:"Somali",native:"Soomaali",flag:"🇸🇴"},{isocode:"so-DJ",locale:"Somali (Djibouti)",native:"Soomaali (Jabuuti)",flag:"🇩🇯"},{isocode:"so-ET",locale:"Somali (Éthiopie)",native:"Soomaali (Itoobiya)",flag:"🇪🇹"},{isocode:"so-KE",locale:"Somali (Kenya)",native:"Soomaali (Kiiniya)",flag:"🇰🇪"},{isocode:"so-SO",locale:"Somali (Somalie)",native:"Soomaali (Soomaaliya)",flag:"🇸🇴"},{isocode:"sq",locale:"Albanais",native:"Shqip",flag:"🇦🇱"},{isocode:"sq-AL",locale:"Albanais (Albanie)",native:"Shqip (Shqipëri)",flag:"🇦🇱"},{isocode:"sq-MK",locale:"Albanais (Macédoine)",native:"Shqip (Maqedoni)",flag:"🇲🇰"},{isocode:"sq-XK",locale:"Albanais (Kosovo)",native:"Shqip (Kosovë)",flag:"🇽🇰"},{isocode:"sr",locale:"Serbe",native:"српски",flag:"🇷🇸"},{isocode:"sr-Cyrl",locale:"Serbe (cyrillique)",native:"српски (ћирилица)",flag:"🇷🇸"},{isocode:"sr-Cyrl-BA",locale:"Serbe (cyrillique, Bosnie-Herzégovine)",native:"српски (ћирилица, Босна и Херцеговина)",flag:"🇧🇦"},{isocode:"sr-Cyrl-ME",locale:"Serbe (cyrillique, Monténégro)",native:"српски (ћирилица, Црна Гора)",flag:"🇲🇪"},{isocode:"sr-Cyrl-RS",locale:"Serbe (cyrillique, Serbie)",native:"српски (ћирилица, Србија)",flag:"🇷🇸"},{isocode:"sr-Cyrl-XK",locale:"Serbe (cyrillique, Kosovo)",native:"српски (ћирилица, Косово)",flag:"🇽🇰"},{isocode:"sr-Latn",locale:"Serbe (latin)",native:"Srpski (latinica)",flag:"🇷🇸"},{isocode:"sr-Latn-BA",locale:"Serbe (latin, Bosnie-Herzégovine)",native:"Srpski (latinica, Bosna i Hercegovina)",flag:"🇧🇦"},{isocode:"sr-Latn-ME",locale:"Serbe (latin, Monténégro)",native:"Srpski (latinica, Crna Gora)",flag:"🇲🇪"},{isocode:"sr-Latn-RS",locale:"Serbe (latin, Serbie)",native:"Srpski (latinica, Srbija)",flag:"🇷🇸"},{isocode:"sr-Latn-XK",locale:"Serbe (latin, Kosovo)",native:"Srpski (latinica, Kosovo)",flag:"🇽🇰"},{isocode:"sv",locale:"Suédois",native:"Svenska",flag:"🇸🇪"},{isocode:"sv-AX",locale:"Suédois (Îles Åland)",native:"Svenska (Åland)",flag:"🇦🇽"},{isocode:"sv-FI",locale:"Suédois (Finlande)",native:"Svenska (Finland)",flag:"🇫🇮"},{isocode:"sv-SE",locale:"Suédois (Suède)",native:"Svenska (Sverige)",flag:"🇸🇪"},{isocode:"sw",locale:"Swahili",native:"Kiswahili",flag:"🇹🇿"},{isocode:"sw-CD",locale:"Swahili (Congo-Kinshasa)",native:"Kiswahili (Jamhuri ya Kidemokrasia ya Kongo)",flag:"🇨🇩"},{isocode:"sw-KE",locale:"Swahili (Kenya)",native:"Kiswahili (Kenya)",flag:"🇰🇪"},{isocode:"sw-TZ",locale:"Swahili (Tanzanie)",native:"Kiswahili (Tanzania)",flag:"🇹🇿"},{isocode:"sw-UG",locale:"Swahili (Ouganda)",native:"Kiswahili (Uganda)",flag:"🇺🇬"},{isocode:"ta",locale:"Tamoul",native:"தமிழ்",flag:"🇱🇰"},{isocode:"ta-IN",locale:"Tamoul (India)",native:"தமிழ் (இந்தியா)",flag:"🇮🇳"},{isocode:"ta-LK",locale:"Tamoul (Sri Lanka)",native:"தமிழ் (இலங்கை)",flag:"🇱🇰"},{isocode:"ta-MY",locale:"Tamoul (Malaisie)",native:"தமிழ் (மலேசியா)",flag:"🇲🇾"},{isocode:"ta-SG",locale:"Tamoul (Singapour)",native:"தமிழ் (சிங்கப்பூர்)",flag:"🇸🇬"},{isocode:"te",locale:"Télougou",native:"తెలుగు",flag:"🇮🇳"},{isocode:"te-IN",locale:"Télougou (India)",native:"తెలుగు (భారతదేశం)",flag:"🇮🇳"},{isocode:"teo",locale:"Teso",native:"Kiteso",flag:"🇺🇬"},{isocode:"teo-KE",locale:"Teso (Kenya)",native:"Kiteso (Kenia)",flag:"🇰🇪"},{isocode:"teo-UG",locale:"Teso (Ouganda)",native:"Kiteso (Uganda)",flag:"🇺🇬"},{isocode:"tg",locale:"Tadjik",native:"тоҷикӣ",flag:"🇹🇯"},{isocode:"tg-TJ",locale:"Tadjik (Tadjikistan)",native:"тоҷикӣ (Тоҷикистон)",flag:"🇹🇯"},{isocode:"th",locale:"Thaï",native:"ไทย",flag:"🇹🇭"},{isocode:"th-TH",locale:"Thaï (Thaïlande)",native:"ไทย (ไทย)",flag:"🇹🇭"},{isocode:"ti",locale:"Tigrigna",native:"ትግርኛ",flag:"🇪🇷"},{isocode:"ti-ER",locale:"Tigrigna (Érythrée)",native:"ትግርኛ (ኤርትራ)",flag:"🇪🇷"},{isocode:"ti-ET",locale:"Tigrigna (Éthiopie)",native:"ትግርኛ (ኢትዮጵያ)",flag:"🇪🇹"},{isocode:"to",locale:"Tonguien",native:"Lea fakatonga",flag:"🇹🇴"},{isocode:"to-TO",locale:"Tonguien (Tonga)",native:"Lea fakatonga (Tonga)",flag:"🇹🇴"},{isocode:"tr",locale:"Turc",native:"Türkçe",flag:"🇹🇷"},{isocode:"tr-CY",locale:"Turc (Chypre)",native:"Türkçe (Kıbrıs)",flag:"🇨🇾"},{isocode:"tr-TR",locale:"Turc (Turquie)",native:"Türkçe (Türkiye)",flag:"🇹🇷"},{isocode:"tt",locale:"Tatar",native:"татар",flag:"🇷🇺"},{isocode:"tt-RU",locale:"Tatar (Russie)",native:"татар (Россия)",flag:"🇷🇺"},{isocode:"twq",locale:"Tasawaq",native:"Tasawaq senni",flag:"🇳🇪"},{isocode:"twq-NE",locale:"Tasawaq (Niger)",native:"Tasawaq senni (Nižer)",flag:"🇳🇪"},{isocode:"tzm",locale:"Amazighe de l'Atlas central",native:"Tamaziɣt n laṭlaṣ",flag:"🇲🇦"},{isocode:"tzm-MA",locale:"Amazighe de l'Atlas central (Maroc)",native:"Tamaziɣt n laṭlaṣ (Meṛṛuk)",flag:"🇲🇦"},{isocode:"ug",locale:"Ouïghour",native:"ئۇيغۇرچە",flag:"🇨🇳"},{isocode:"ug-CN",locale:"Ouïghour (Chine)",native:"ئۇيغۇرچە (جۇڭگو)",flag:"🇨🇳"},{isocode:"uk",locale:"Ukrainien",native:"українська",flag:"🇺🇦"},{isocode:"uk-UA",locale:"Ukrainien (Ukraine)",native:"українська (Україна)",flag:"🇺🇦"},{isocode:"ur",locale:"Ourdou",native:"اردو",flag:"🇵🇰"},{isocode:"ur-IN",locale:"Ourdou (India)",native:"اردو (بھارت)",flag:"🇮🇳"},{isocode:"ur-PK",locale:"Ourdou (Pakistan)",native:"اردو (پاکستان)",flag:"🇵🇰"},{isocode:"uz",locale:"Ouzbek",native:"O‘zbek",flag:"🇺🇿"},{isocode:"uz-Arab",locale:"Ouzbek (Arabic)",native:"اوزبیک (عربی)",flag:"🇦🇫"},{isocode:"uz-Arab-AF",locale:"Ouzbek (Arabic, Afghanistan)",native:"اوزبیک (عربی, افغانستان)",flag:"🇦🇫"},{isocode:"uz-Cyrl",locale:"Ouzbek (cyrillique)",native:"ўзбекча (Кирил)",flag:"🇺🇿"},{isocode:"uz-Cyrl-UZ",locale:"Ouzbek (cyrillique, Ouzbékistan)",native:"ўзбекча (Кирил, Ўзбекистон)",flag:"🇺🇿"},{isocode:"uz-Latn",locale:"Ouzbek (latin)",native:"O‘zbek (lotin)",flag:"🇺🇿"},{isocode:"uz-Latn-UZ",locale:"Ouzbek (latin, Ouzbékistan)",native:"O‘zbek (lotin, Oʻzbekiston)",flag:"🇺🇿"},{isocode:"vai",locale:"Vaï",native:"ꕙꔤ",flag:"🇱🇷"},{isocode:"vai-Latn",locale:"Vaï (latin)",native:"Vai (Latn)",flag:"🇱🇷"},{isocode:"vai-Latn-LR",locale:"Vaï (latin, Libéria)",native:"Vai (Latn, Laibhiya)",flag:"🇱🇷"},{isocode:"vai-Vaii",locale:"Vaï (vaï)",native:"ꕙꔤ (Vaii)",flag:"🇱🇷"},{isocode:"vai-Vaii-LR",locale:"Vaï (vaï, Libéria)",native:"ꕙꔤ (Vaii, ꕞꔤꔫꕩ)",flag:"🇱🇷"},{isocode:"vi",locale:"Vietnamien",native:"Tiếng Việt",flag:"🇻🇳"},{isocode:"vi-VN",locale:"Vietnamien (Vietnam)",native:"Tiếng Việt (Việt Nam)",flag:"🇻🇳"},{isocode:"vun",locale:"Vunjo",native:"Kyivunjo",flag:"🇹🇿"},{isocode:"vun-TZ",locale:"Vunjo (Tanzanie)",native:"Kyivunjo (Tanzania)",flag:"🇹🇿"},{isocode:"wae",locale:"Walser",native:"Walser",flag:"🇨🇭"},{isocode:"wae-CH",locale:"Walser (Switzerland)",native:"Walser (Schwiz)",flag:"🇨🇭"},{isocode:"wo",locale:"Wolof",native:"Wolof",flag:"🇸🇳"},{isocode:"wo-SN",locale:"Wolof (Sénégal)",native:"Wolof (Senegaal)",flag:"🇸🇳"},{isocode:"xog",locale:"Soga",native:"Olusoga",flag:"🇺🇬"},{isocode:"xog-UG",locale:"Soga (Ouganda)",native:"Olusoga (Yuganda)",flag:"🇺🇬"},{isocode:"yav",locale:"Yangben",native:"Nuasue",flag:"🇨🇲"},{isocode:"yav-CM",locale:"Yangben (Cameroun)",native:"Nuasue (Kemelún)",flag:"🇨🇲"},{isocode:"yi",locale:"Yiddish",native:"ייִדיש",flag:"🏳️"},{isocode:"yi-001",locale:"Yiddish (World)",native:"ייִדיש (וועלט)",flag:"🏳️"},{isocode:"yo",locale:"Yoruba",native:"Èdè Yorùbá",flag:"🇳🇬"},{isocode:"yo-BJ",locale:"Yoruba (Bénin)",native:"Èdè Yorùbá (Orílɛ́ède Bɛ̀nɛ̀)",flag:"🇧🇯"},{isocode:"yo-NG",locale:"Yoruba (Nigéria)",native:"Èdè Yorùbá (Orílẹ́ède Nàìjíríà)",flag:"🇳🇬"},{isocode:"yue",locale:"Cantonais",native:"粵語",flag:"🇭🇰"},{isocode:"yue-Hans",locale:"Cantonais (simplifié)",native:"粤语 (简体)",flag:"🇨🇳"},{isocode:"yue-Hans-CN",locale:"Cantonais (simplifié, Chine)",native:"粤语 (简体,中华人民共和国)",flag:"🇨🇳"},{isocode:"yue-Hant",locale:"Cantonais (traditionnel)",native:"粵語 (繁體)",flag:"🇭🇰"},{isocode:"yue-Hant-HK",locale:"Cantonais (traditionnel, R.A.S. chinoise de Hong Kong)",native:"粵語 (繁體,中華人民共和國香港特別行政區)",flag:"🇭🇰"},{isocode:"zgh",locale:"Amazighe standard marocain",native:"ⵜⴰⵎⴰⵣⵉⵖⵜ",flag:"🇲🇦"},{isocode:"zgh-MA",locale:"Amazighe standard marocain (Maroc)",native:"ⵜⴰⵎⴰⵣⵉⵖⵜ (ⵍⵎⵖⵔⵉⴱ)",flag:"🇲🇦"},{isocode:"zh",locale:"Chinese",native:"中文",flag:"🇨🇳"},{isocode:"zh-Hans",locale:"Chinese (simplifié)",native:"中文(简体)",flag:"🇨🇳"},{isocode:"zh-Hans-CN",locale:"Chinese (simplifié, Chine)",native:"中文(简体,中国)",flag:"🇨🇳"},{isocode:"zh-Hans-HK",locale:"Chinese (simplifié, R.A.S. chinoise de Hong Kong)",native:"中文(简体,中国香港特别行政区)",flag:"🇭🇰"},{isocode:"zh-Hans-MO",locale:"Chinese (simplifié, R.A.S. chinoise de Macao)",native:"中文(简体,中国澳门特别行政区)",flag:"🇲🇴"},{isocode:"zh-Hans-SG",locale:"Chinese (simplifié, Singapour)",native:"中文(简体,新加坡)",flag:"🇸🇬"},{isocode:"zh-Hant",locale:"Chinese (traditionnel)",native:"中文(繁體)",flag:"🇹🇼"},{isocode:"zh-Hant-HK",locale:"Chinese (traditionnel, R.A.S. chinoise de Hong Kong)",native:"中文(繁體字,中國香港特別行政區)",flag:"🇭🇰"},{isocode:"zh-Hant-MO",locale:"Chinese (traditionnel, R.A.S. chinoise de Macao)",native:"中文(繁體字,中國澳門特別行政區)",flag:"🇲🇴"},{isocode:"zh-Hant-TW",locale:"Chinese (traditionnel, Taïwan)",native:"中文(繁體,台灣)",flag:"🇹🇼"},{isocode:"zu",locale:"Zoulou",native:"IsiZulu",flag:"🇿🇦"},{isocode:"zu-ZA",locale:"Zoulou (South Africa)",native:"IsiZulu (iNingizimu Afrika)",flag:"🇿🇦"}]};exports.LOCALIZATION_EDITOR_SCOPE_CLASS=Ro.LOCALIZATION_EDITOR_SCOPE_CLASS;exports.EditorStateAdapterProvider=Vp;exports.EditorStateContext=$a;exports.I18N_ACTIONS=Xy;exports.I18N_CONSTANT=nf;exports.I18nProvider=rf;exports.LocalizationEditor=Im;exports.LocalizationEditorProvider=cf;exports.LocalizationProvider=of;exports.Portal=nw;exports.ReducerAdapterProvider=Zp;exports.Standalone=eN;exports.getDefaultContainer=ft;exports.getDefaultInitialState=Qp;exports.getLanguageDetails=dr;exports.languages=tN;exports.localizationReducer=Yp;exports.useEditorStateAdapter=Ui;exports.useI18n=qi;exports.useLocalization=lf;exports.useLocalizationEditor=Gi;exports.useModals=ef;exports.useReducerAdapter=Xp;exports.useReduxAdapter=Ly;
120
+ For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return U.useEffect(()=>{e&&(document.getElementById(e)||console.error(n))},[n,e]),null},nE="DialogDescriptionWarning",iE=({contentRef:e,descriptionId:t})=>{const i=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${If(nE).contentName}}.`;return U.useEffect(()=>{var s;const r=(s=e.current)==null?void 0:s.getAttribute("aria-describedby");t&&r&&(document.getElementById(t)||console.warn(i))},[i,e,t]),null},rE=mf,aE=bf,sE=yf,oE=wf,lE=Sf;const Af=({children:e,isOpen:t,onClose:n,title:i})=>C.jsx(rE,{open:t,onOpenChange:r=>!r&&n(),children:C.jsxs(aE,{container:it(),children:[C.jsx(sE,{className:`fixed inset-0 z-[1000] bg-black bg-opacity-75
121
+ data-[state=open]:animate-in data-[state=open]:fade-in-0
122
+ data-[state=closed]:animate-out data-[state=closed]:fade-out-0`}),C.jsx("div",{className:"fixed inset-0 z-[1001] overflow-y-auto",children:C.jsx("div",{className:"flex min-h-full items-center justify-center p-4 text-center",children:C.jsxs(oE,{onPointerDownOutside:r=>r.preventDefault(),"aria-describedby":void 0,className:`w-full space-y-2 max-w-md transform overflow-hidden rounded border border-grey-50 bg-grey-900 px-5 py-4 text-left align-middle text-white shadow-xl
123
+ data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:scale-95 data-[state=open]:duration-300
124
+ data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:scale-95 data-[state=closed]:duration-200`,children:[C.jsxs("div",{className:"flex flex-col items-center justify-center space-y-2",children:[C.jsx(Je.FdDownload,{className:"h-6 w-6"}),C.jsx(lE,{className:"mt-4 text-sm font-bold",children:i})]}),C.jsx("div",{className:"space-y-2",children:e})]})})})]})});var Wi={exports:{}},Gi={exports:{}},We={};/** @license React v16.13.1
125
+ * react-is.production.min.js
126
+ *
127
+ * Copyright (c) Facebook, Inc. and its affiliates.
128
+ *
129
+ * This source code is licensed under the MIT license found in the
130
+ * LICENSE file in the root directory of this source tree.
131
+ */var au;function uE(){if(au)return We;au=1;var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,i=e?Symbol.for("react.fragment"):60107,r=e?Symbol.for("react.strict_mode"):60108,s=e?Symbol.for("react.profiler"):60114,o=e?Symbol.for("react.provider"):60109,l=e?Symbol.for("react.context"):60110,u=e?Symbol.for("react.async_mode"):60111,f=e?Symbol.for("react.concurrent_mode"):60111,p=e?Symbol.for("react.forward_ref"):60112,h=e?Symbol.for("react.suspense"):60113,d=e?Symbol.for("react.suspense_list"):60120,m=e?Symbol.for("react.memo"):60115,b=e?Symbol.for("react.lazy"):60116,v=e?Symbol.for("react.block"):60121,S=e?Symbol.for("react.fundamental"):60117,E=e?Symbol.for("react.responder"):60118,k=e?Symbol.for("react.scope"):60119;function I(y){if(typeof y=="object"&&y!==null){var g=y.$$typeof;switch(g){case t:switch(y=y.type,y){case u:case f:case i:case s:case r:case h:return y;default:switch(y=y&&y.$$typeof,y){case l:case p:case b:case m:case o:return y;default:return g}}case n:return g}}}function N(y){return I(y)===f}return We.AsyncMode=u,We.ConcurrentMode=f,We.ContextConsumer=l,We.ContextProvider=o,We.Element=t,We.ForwardRef=p,We.Fragment=i,We.Lazy=b,We.Memo=m,We.Portal=n,We.Profiler=s,We.StrictMode=r,We.Suspense=h,We.isAsyncMode=function(y){return N(y)||I(y)===u},We.isConcurrentMode=N,We.isContextConsumer=function(y){return I(y)===l},We.isContextProvider=function(y){return I(y)===o},We.isElement=function(y){return typeof y=="object"&&y!==null&&y.$$typeof===t},We.isForwardRef=function(y){return I(y)===p},We.isFragment=function(y){return I(y)===i},We.isLazy=function(y){return I(y)===b},We.isMemo=function(y){return I(y)===m},We.isPortal=function(y){return I(y)===n},We.isProfiler=function(y){return I(y)===s},We.isStrictMode=function(y){return I(y)===r},We.isSuspense=function(y){return I(y)===h},We.isValidElementType=function(y){return typeof y=="string"||typeof y=="function"||y===i||y===f||y===s||y===r||y===h||y===d||typeof y=="object"&&y!==null&&(y.$$typeof===b||y.$$typeof===m||y.$$typeof===o||y.$$typeof===l||y.$$typeof===p||y.$$typeof===S||y.$$typeof===E||y.$$typeof===k||y.$$typeof===v)},We.typeOf=I,We}var Ge={},su;function cE(){if(su)return Ge;su=1;var e={};/** @license React v16.13.1
132
+ * react-is.development.js
133
+ *
134
+ * Copyright (c) Facebook, Inc. and its affiliates.
135
+ *
136
+ * This source code is licensed under the MIT license found in the
137
+ * LICENSE file in the root directory of this source tree.
138
+ */return e.NODE_ENV!=="production"&&(function(){var t=typeof Symbol=="function"&&Symbol.for,n=t?Symbol.for("react.element"):60103,i=t?Symbol.for("react.portal"):60106,r=t?Symbol.for("react.fragment"):60107,s=t?Symbol.for("react.strict_mode"):60108,o=t?Symbol.for("react.profiler"):60114,l=t?Symbol.for("react.provider"):60109,u=t?Symbol.for("react.context"):60110,f=t?Symbol.for("react.async_mode"):60111,p=t?Symbol.for("react.concurrent_mode"):60111,h=t?Symbol.for("react.forward_ref"):60112,d=t?Symbol.for("react.suspense"):60113,m=t?Symbol.for("react.suspense_list"):60120,b=t?Symbol.for("react.memo"):60115,v=t?Symbol.for("react.lazy"):60116,S=t?Symbol.for("react.block"):60121,E=t?Symbol.for("react.fundamental"):60117,k=t?Symbol.for("react.responder"):60118,I=t?Symbol.for("react.scope"):60119;function N(Y){return typeof Y=="string"||typeof Y=="function"||Y===r||Y===p||Y===o||Y===s||Y===d||Y===m||typeof Y=="object"&&Y!==null&&(Y.$$typeof===v||Y.$$typeof===b||Y.$$typeof===l||Y.$$typeof===u||Y.$$typeof===h||Y.$$typeof===E||Y.$$typeof===k||Y.$$typeof===I||Y.$$typeof===S)}function y(Y){if(typeof Y=="object"&&Y!==null){var le=Y.$$typeof;switch(le){case n:var de=Y.type;switch(de){case f:case p:case r:case o:case s:case d:return de;default:var Se=de&&de.$$typeof;switch(Se){case u:case h:case v:case b:case l:return Se;default:return le}}case i:return le}}}var g=f,A=p,M=u,F=l,R=n,j=h,B=r,D=v,se=b,ue=i,te=o,ae=s,ge=d,ve=!1;function L(Y){return ve||(ve=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),G(Y)||y(Y)===f}function G(Y){return y(Y)===p}function ne(Y){return y(Y)===u}function O(Y){return y(Y)===l}function he(Y){return typeof Y=="object"&&Y!==null&&Y.$$typeof===n}function W(Y){return y(Y)===h}function Z(Y){return y(Y)===r}function H(Y){return y(Y)===v}function K(Y){return y(Y)===b}function J(Y){return y(Y)===i}function ie(Y){return y(Y)===o}function X(Y){return y(Y)===s}function $(Y){return y(Y)===d}Ge.AsyncMode=g,Ge.ConcurrentMode=A,Ge.ContextConsumer=M,Ge.ContextProvider=F,Ge.Element=R,Ge.ForwardRef=j,Ge.Fragment=B,Ge.Lazy=D,Ge.Memo=se,Ge.Portal=ue,Ge.Profiler=te,Ge.StrictMode=ae,Ge.Suspense=ge,Ge.isAsyncMode=L,Ge.isConcurrentMode=G,Ge.isContextConsumer=ne,Ge.isContextProvider=O,Ge.isElement=he,Ge.isForwardRef=W,Ge.isFragment=Z,Ge.isLazy=H,Ge.isMemo=K,Ge.isPortal=J,Ge.isProfiler=ie,Ge.isStrictMode=X,Ge.isSuspense=$,Ge.isValidElementType=N,Ge.typeOf=y})(),Ge}var ou;function Tf(){if(ou)return Gi.exports;ou=1;var e={};return e.NODE_ENV==="production"?Gi.exports=uE():Gi.exports=cE(),Gi.exports}/*
139
+ object-assign
140
+ (c) Sindre Sorhus
141
+ @license MIT
142
+ */var Aa,lu;function hE(){if(lu)return Aa;lu=1;var e=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,n=Object.prototype.propertyIsEnumerable;function i(s){if(s==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(s)}function r(){try{if(!Object.assign)return!1;var s=new String("abc");if(s[5]="de",Object.getOwnPropertyNames(s)[0]==="5")return!1;for(var o={},l=0;l<10;l++)o["_"+String.fromCharCode(l)]=l;var u=Object.getOwnPropertyNames(o).map(function(p){return o[p]});if(u.join("")!=="0123456789")return!1;var f={};return"abcdefghijklmnopqrst".split("").forEach(function(p){f[p]=p}),Object.keys(Object.assign({},f)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return Aa=r()?Object.assign:function(s,o){for(var l,u=i(s),f,p=1;p<arguments.length;p++){l=Object(arguments[p]);for(var h in l)t.call(l,h)&&(u[h]=l[h]);if(e){f=e(l);for(var d=0;d<f.length;d++)n.call(l,f[d])&&(u[f[d]]=l[f[d]])}}return u},Aa}var Ta,uu;function As(){if(uu)return Ta;uu=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return Ta=e,Ta}var Na,cu;function Nf(){return cu||(cu=1,Na=Function.call.bind(Object.prototype.hasOwnProperty)),Na}var Pa,hu;function fE(){if(hu)return Pa;hu=1;var e={},t=function(){};if(e.NODE_ENV!=="production"){var n=As(),i={},r=Nf();t=function(o){var l="Warning: "+o;typeof console<"u"&&console.error(l);try{throw new Error(l)}catch{}}}function s(o,l,u,f,p){if(e.NODE_ENV!=="production"){for(var h in o)if(r(o,h)){var d;try{if(typeof o[h]!="function"){var m=Error((f||"React class")+": "+u+" type `"+h+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof o[h]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw m.name="Invariant Violation",m}d=o[h](l,h,f,u,null,n)}catch(v){d=v}if(d&&!(d instanceof Error)&&t((f||"React class")+": type specification of "+u+" `"+h+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof d+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),d instanceof Error&&!(d.message in i)){i[d.message]=!0;var b=p?p():"";t("Failed "+u+" type: "+d.message+(b??""))}}}}return s.resetWarningCache=function(){e.NODE_ENV!=="production"&&(i={})},Pa=s,Pa}var Oa,fu;function pE(){if(fu)return Oa;fu=1;var e={},t=Tf(),n=hE(),i=As(),r=Nf(),s=fE(),o=function(){};e.NODE_ENV!=="production"&&(o=function(u){var f="Warning: "+u;typeof console<"u"&&console.error(f);try{throw new Error(f)}catch{}});function l(){return null}return Oa=function(u,f){var p=typeof Symbol=="function"&&Symbol.iterator,h="@@iterator";function d(G){var ne=G&&(p&&G[p]||G[h]);if(typeof ne=="function")return ne}var m="<<anonymous>>",b={array:k("array"),bigint:k("bigint"),bool:k("boolean"),func:k("function"),number:k("number"),object:k("object"),string:k("string"),symbol:k("symbol"),any:I(),arrayOf:N,element:y(),elementType:g(),instanceOf:A,node:j(),objectOf:F,oneOf:M,oneOfType:R,shape:D,exact:se};function v(G,ne){return G===ne?G!==0||1/G===1/ne:G!==G&&ne!==ne}function S(G,ne){this.message=G,this.data=ne&&typeof ne=="object"?ne:{},this.stack=""}S.prototype=Error.prototype;function E(G){if(e.NODE_ENV!=="production")var ne={},O=0;function he(Z,H,K,J,ie,X,$){if(J=J||m,X=X||K,$!==i){if(f){var Y=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");throw Y.name="Invariant Violation",Y}else if(e.NODE_ENV!=="production"&&typeof console<"u"){var le=J+":"+K;!ne[le]&&O<3&&(o("You are manually calling a React.PropTypes validation function for the `"+X+"` prop on `"+J+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),ne[le]=!0,O++)}}return H[K]==null?Z?H[K]===null?new S("The "+ie+" `"+X+"` is marked as required "+("in `"+J+"`, but its value is `null`.")):new S("The "+ie+" `"+X+"` is marked as required in "+("`"+J+"`, but its value is `undefined`.")):null:G(H,K,J,ie,X)}var W=he.bind(null,!1);return W.isRequired=he.bind(null,!0),W}function k(G){function ne(O,he,W,Z,H,K){var J=O[he],ie=ae(J);if(ie!==G){var X=ge(J);return new S("Invalid "+Z+" `"+H+"` of type "+("`"+X+"` supplied to `"+W+"`, expected ")+("`"+G+"`."),{expectedType:G})}return null}return E(ne)}function I(){return E(l)}function N(G){function ne(O,he,W,Z,H){if(typeof G!="function")return new S("Property `"+H+"` of component `"+W+"` has invalid PropType notation inside arrayOf.");var K=O[he];if(!Array.isArray(K)){var J=ae(K);return new S("Invalid "+Z+" `"+H+"` of type "+("`"+J+"` supplied to `"+W+"`, expected an array."))}for(var ie=0;ie<K.length;ie++){var X=G(K,ie,W,Z,H+"["+ie+"]",i);if(X instanceof Error)return X}return null}return E(ne)}function y(){function G(ne,O,he,W,Z){var H=ne[O];if(!u(H)){var K=ae(H);return new S("Invalid "+W+" `"+Z+"` of type "+("`"+K+"` supplied to `"+he+"`, expected a single ReactElement."))}return null}return E(G)}function g(){function G(ne,O,he,W,Z){var H=ne[O];if(!t.isValidElementType(H)){var K=ae(H);return new S("Invalid "+W+" `"+Z+"` of type "+("`"+K+"` supplied to `"+he+"`, expected a single ReactElement type."))}return null}return E(G)}function A(G){function ne(O,he,W,Z,H){if(!(O[he]instanceof G)){var K=G.name||m,J=L(O[he]);return new S("Invalid "+Z+" `"+H+"` of type "+("`"+J+"` supplied to `"+W+"`, expected ")+("instance of `"+K+"`."))}return null}return E(ne)}function M(G){if(!Array.isArray(G))return e.NODE_ENV!=="production"&&(arguments.length>1?o("Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."):o("Invalid argument supplied to oneOf, expected an array.")),l;function ne(O,he,W,Z,H){for(var K=O[he],J=0;J<G.length;J++)if(v(K,G[J]))return null;var ie=JSON.stringify(G,function($,Y){var le=ge(Y);return le==="symbol"?String(Y):Y});return new S("Invalid "+Z+" `"+H+"` of value `"+String(K)+"` "+("supplied to `"+W+"`, expected one of "+ie+"."))}return E(ne)}function F(G){function ne(O,he,W,Z,H){if(typeof G!="function")return new S("Property `"+H+"` of component `"+W+"` has invalid PropType notation inside objectOf.");var K=O[he],J=ae(K);if(J!=="object")return new S("Invalid "+Z+" `"+H+"` of type "+("`"+J+"` supplied to `"+W+"`, expected an object."));for(var ie in K)if(r(K,ie)){var X=G(K,ie,W,Z,H+"."+ie,i);if(X instanceof Error)return X}return null}return E(ne)}function R(G){if(!Array.isArray(G))return e.NODE_ENV!=="production"&&o("Invalid argument supplied to oneOfType, expected an instance of array."),l;for(var ne=0;ne<G.length;ne++){var O=G[ne];if(typeof O!="function")return o("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+ve(O)+" at index "+ne+"."),l}function he(W,Z,H,K,J){for(var ie=[],X=0;X<G.length;X++){var $=G[X],Y=$(W,Z,H,K,J,i);if(Y==null)return null;Y.data&&r(Y.data,"expectedType")&&ie.push(Y.data.expectedType)}var le=ie.length>0?", expected one of type ["+ie.join(", ")+"]":"";return new S("Invalid "+K+" `"+J+"` supplied to "+("`"+H+"`"+le+"."))}return E(he)}function j(){function G(ne,O,he,W,Z){return ue(ne[O])?null:new S("Invalid "+W+" `"+Z+"` supplied to "+("`"+he+"`, expected a ReactNode."))}return E(G)}function B(G,ne,O,he,W){return new S((G||"React class")+": "+ne+" type `"+O+"."+he+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+W+"`.")}function D(G){function ne(O,he,W,Z,H){var K=O[he],J=ae(K);if(J!=="object")return new S("Invalid "+Z+" `"+H+"` of type `"+J+"` "+("supplied to `"+W+"`, expected `object`."));for(var ie in G){var X=G[ie];if(typeof X!="function")return B(W,Z,H,ie,ge(X));var $=X(K,ie,W,Z,H+"."+ie,i);if($)return $}return null}return E(ne)}function se(G){function ne(O,he,W,Z,H){var K=O[he],J=ae(K);if(J!=="object")return new S("Invalid "+Z+" `"+H+"` of type `"+J+"` "+("supplied to `"+W+"`, expected `object`."));var ie=n({},O[he],G);for(var X in ie){var $=G[X];if(r(G,X)&&typeof $!="function")return B(W,Z,H,X,ge($));if(!$)return new S("Invalid "+Z+" `"+H+"` key `"+X+"` supplied to `"+W+"`.\nBad object: "+JSON.stringify(O[he],null," ")+`
143
+ Valid keys: `+JSON.stringify(Object.keys(G),null," "));var Y=$(K,X,W,Z,H+"."+X,i);if(Y)return Y}return null}return E(ne)}function ue(G){switch(typeof G){case"number":case"string":case"undefined":return!0;case"boolean":return!G;case"object":if(Array.isArray(G))return G.every(ue);if(G===null||u(G))return!0;var ne=d(G);if(ne){var O=ne.call(G),he;if(ne!==G.entries){for(;!(he=O.next()).done;)if(!ue(he.value))return!1}else for(;!(he=O.next()).done;){var W=he.value;if(W&&!ue(W[1]))return!1}}else return!1;return!0;default:return!1}}function te(G,ne){return G==="symbol"?!0:ne?ne["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&ne instanceof Symbol:!1}function ae(G){var ne=typeof G;return Array.isArray(G)?"array":G instanceof RegExp?"object":te(ne,G)?"symbol":ne}function ge(G){if(typeof G>"u"||G===null)return""+G;var ne=ae(G);if(ne==="object"){if(G instanceof Date)return"date";if(G instanceof RegExp)return"regexp"}return ne}function ve(G){var ne=ge(G);switch(ne){case"array":case"object":return"an "+ne;case"boolean":case"date":case"regexp":return"a "+ne;default:return ne}}function L(G){return!G.constructor||!G.constructor.name?m:G.constructor.name}return b.checkPropTypes=s,b.resetWarningCache=s.resetWarningCache,b.PropTypes=b,b},Oa}var Ra,pu;function dE(){if(pu)return Ra;pu=1;var e=As();function t(){}function n(){}return n.resetWarningCache=t,Ra=function(){function i(o,l,u,f,p,h){if(h!==e){var d=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw d.name="Invariant Violation",d}}i.isRequired=i;function r(){return i}var s={array:i,bigint:i,bool:i,func:i,number:i,object:i,string:i,symbol:i,any:i,arrayOf:r,element:i,elementType:i,instanceOf:r,node:i,objectOf:r,oneOf:r,oneOfType:r,shape:r,exact:r,checkPropTypes:n,resetWarningCache:t};return s.PropTypes=s,s},Ra}var du;function gE(){if(du)return Wi.exports;du=1;var e={};if(e.NODE_ENV!=="production"){var t=Tf(),n=!0;Wi.exports=pE()(t.isElement,n)}else Wi.exports=dE()();return Wi.exports}var mE=gE();const ee=Lr(mE);var Ji={exports:{}},Ye={};/** @license React v17.0.2
144
+ * react-is.production.min.js
145
+ *
146
+ * Copyright (c) Facebook, Inc. and its affiliates.
147
+ *
148
+ * This source code is licensed under the MIT license found in the
149
+ * LICENSE file in the root directory of this source tree.
150
+ */var gu;function xE(){if(gu)return Ye;gu=1;var e=60103,t=60106,n=60107,i=60108,r=60114,s=60109,o=60110,l=60112,u=60113,f=60120,p=60115,h=60116,d=60121,m=60122,b=60117,v=60129,S=60131;if(typeof Symbol=="function"&&Symbol.for){var E=Symbol.for;e=E("react.element"),t=E("react.portal"),n=E("react.fragment"),i=E("react.strict_mode"),r=E("react.profiler"),s=E("react.provider"),o=E("react.context"),l=E("react.forward_ref"),u=E("react.suspense"),f=E("react.suspense_list"),p=E("react.memo"),h=E("react.lazy"),d=E("react.block"),m=E("react.server.block"),b=E("react.fundamental"),v=E("react.debug_trace_mode"),S=E("react.legacy_hidden")}function k(D){if(typeof D=="object"&&D!==null){var se=D.$$typeof;switch(se){case e:switch(D=D.type,D){case n:case r:case i:case u:case f:return D;default:switch(D=D&&D.$$typeof,D){case o:case l:case h:case p:case s:return D;default:return se}}case t:return se}}}var I=s,N=e,y=l,g=n,A=h,M=p,F=t,R=r,j=i,B=u;return Ye.ContextConsumer=o,Ye.ContextProvider=I,Ye.Element=N,Ye.ForwardRef=y,Ye.Fragment=g,Ye.Lazy=A,Ye.Memo=M,Ye.Portal=F,Ye.Profiler=R,Ye.StrictMode=j,Ye.Suspense=B,Ye.isAsyncMode=function(){return!1},Ye.isConcurrentMode=function(){return!1},Ye.isContextConsumer=function(D){return k(D)===o},Ye.isContextProvider=function(D){return k(D)===s},Ye.isElement=function(D){return typeof D=="object"&&D!==null&&D.$$typeof===e},Ye.isForwardRef=function(D){return k(D)===l},Ye.isFragment=function(D){return k(D)===n},Ye.isLazy=function(D){return k(D)===h},Ye.isMemo=function(D){return k(D)===p},Ye.isPortal=function(D){return k(D)===t},Ye.isProfiler=function(D){return k(D)===r},Ye.isStrictMode=function(D){return k(D)===i},Ye.isSuspense=function(D){return k(D)===u},Ye.isValidElementType=function(D){return typeof D=="string"||typeof D=="function"||D===n||D===r||D===v||D===i||D===u||D===f||D===S||typeof D=="object"&&D!==null&&(D.$$typeof===h||D.$$typeof===p||D.$$typeof===s||D.$$typeof===o||D.$$typeof===l||D.$$typeof===b||D.$$typeof===d||D[0]===m)},Ye.typeOf=k,Ye}var Qe={},mu;function vE(){if(mu)return Qe;mu=1;var e={};/** @license React v17.0.2
151
+ * react-is.development.js
152
+ *
153
+ * Copyright (c) Facebook, Inc. and its affiliates.
154
+ *
155
+ * This source code is licensed under the MIT license found in the
156
+ * LICENSE file in the root directory of this source tree.
157
+ */return e.NODE_ENV!=="production"&&(function(){var t=60103,n=60106,i=60107,r=60108,s=60114,o=60109,l=60110,u=60112,f=60113,p=60120,h=60115,d=60116,m=60121,b=60122,v=60117,S=60129,E=60131;if(typeof Symbol=="function"&&Symbol.for){var k=Symbol.for;t=k("react.element"),n=k("react.portal"),i=k("react.fragment"),r=k("react.strict_mode"),s=k("react.profiler"),o=k("react.provider"),l=k("react.context"),u=k("react.forward_ref"),f=k("react.suspense"),p=k("react.suspense_list"),h=k("react.memo"),d=k("react.lazy"),m=k("react.block"),b=k("react.server.block"),v=k("react.fundamental"),k("react.scope"),k("react.opaque.id"),S=k("react.debug_trace_mode"),k("react.offscreen"),E=k("react.legacy_hidden")}var I=!1;function N($){return!!(typeof $=="string"||typeof $=="function"||$===i||$===s||$===S||$===r||$===f||$===p||$===E||I||typeof $=="object"&&$!==null&&($.$$typeof===d||$.$$typeof===h||$.$$typeof===o||$.$$typeof===l||$.$$typeof===u||$.$$typeof===v||$.$$typeof===m||$[0]===b))}function y($){if(typeof $=="object"&&$!==null){var Y=$.$$typeof;switch(Y){case t:var le=$.type;switch(le){case i:case s:case r:case f:case p:return le;default:var de=le&&le.$$typeof;switch(de){case l:case u:case d:case h:case o:return de;default:return Y}}case n:return Y}}}var g=l,A=o,M=t,F=u,R=i,j=d,B=h,D=n,se=s,ue=r,te=f,ae=!1,ge=!1;function ve($){return ae||(ae=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")),!1}function L($){return ge||(ge=!0,console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")),!1}function G($){return y($)===l}function ne($){return y($)===o}function O($){return typeof $=="object"&&$!==null&&$.$$typeof===t}function he($){return y($)===u}function W($){return y($)===i}function Z($){return y($)===d}function H($){return y($)===h}function K($){return y($)===n}function J($){return y($)===s}function ie($){return y($)===r}function X($){return y($)===f}Qe.ContextConsumer=g,Qe.ContextProvider=A,Qe.Element=M,Qe.ForwardRef=F,Qe.Fragment=R,Qe.Lazy=j,Qe.Memo=B,Qe.Portal=D,Qe.Profiler=se,Qe.StrictMode=ue,Qe.Suspense=te,Qe.isAsyncMode=ve,Qe.isConcurrentMode=L,Qe.isContextConsumer=G,Qe.isContextProvider=ne,Qe.isElement=O,Qe.isForwardRef=he,Qe.isFragment=W,Qe.isLazy=Z,Qe.isMemo=H,Qe.isPortal=K,Qe.isProfiler=J,Qe.isStrictMode=ie,Qe.isSuspense=X,Qe.isValidElementType=N,Qe.typeOf=y})(),Qe}var xu;function bE(){if(xu)return Ji.exports;xu=1;var e={};return e.NODE_ENV==="production"?Ji.exports=xE():Ji.exports=vE(),Ji.exports}var vu=bE();function bu(e){return typeof e=="object"&&e!=null&&e.nodeType===1}function yu(e,t){return(!t||e!=="hidden")&&e!=="visible"&&e!=="clip"}function La(e,t){if(e.clientHeight<e.scrollHeight||e.clientWidth<e.scrollWidth){var n=getComputedStyle(e,null);return yu(n.overflowY,t)||yu(n.overflowX,t)||(function(i){var r=(function(s){if(!s.ownerDocument||!s.ownerDocument.defaultView)return null;try{return s.ownerDocument.defaultView.frameElement}catch{return null}})(i);return!!r&&(r.clientHeight<i.scrollHeight||r.clientWidth<i.scrollWidth)})(e)}return!1}function Yi(e,t,n,i,r,s,o,l){return s<e&&o>t||s>e&&o<t?0:s<=e&&l<=n||o>=t&&l>=n?s-e-i:o>t&&l<n||s<e&&l>n?o-t+r:0}var yE=function(e,t){var n=window,i=t.inline,r=t.boundary,s=t.skipOverflowHiddenElements,o=typeof r=="function"?r:function($){return $!==r};if(!bu(e))throw new TypeError("Invalid target");for(var l,u,f=document.scrollingElement||document.documentElement,p=[],h=e;bu(h)&&o(h);){if((h=(u=(l=h).parentElement)==null?l.getRootNode().host||null:u)===f){p.push(h);break}h!=null&&h===document.body&&La(h)&&!La(document.documentElement)||h!=null&&La(h,s)&&p.push(h)}for(var d=n.visualViewport?n.visualViewport.width:innerWidth,m=n.visualViewport?n.visualViewport.height:innerHeight,b=window.scrollX||pageXOffset,v=window.scrollY||pageYOffset,S=e.getBoundingClientRect(),E=S.height,k=S.width,I=S.top,N=S.right,y=S.bottom,g=S.left,A=I,M=i==="center"?g+k/2:i==="end"?N:g,F=[],R=0;R<p.length;R++){var j=p[R],B=j.getBoundingClientRect(),D=B.height,se=B.width,ue=B.top,te=B.right,ae=B.bottom,ge=B.left;if(I>=0&&g>=0&&y<=m&&N<=d&&I>=ue&&y<=ae&&g>=ge&&N<=te)return F;var ve=getComputedStyle(j),L=parseInt(ve.borderLeftWidth,10),G=parseInt(ve.borderTopWidth,10),ne=parseInt(ve.borderRightWidth,10),O=parseInt(ve.borderBottomWidth,10),he=0,W=0,Z="offsetWidth"in j?j.offsetWidth-j.clientWidth-L-ne:0,H="offsetHeight"in j?j.offsetHeight-j.clientHeight-G-O:0,K="offsetWidth"in j?j.offsetWidth===0?0:se/j.offsetWidth:0,J="offsetHeight"in j?j.offsetHeight===0?0:D/j.offsetHeight:0;if(f===j)he=Yi(v,v+m,m,G,O,v+A,v+A+E,E),W=i==="start"?M:i==="center"?M-d/2:i==="end"?M-d:Yi(b,b+d,d,L,ne,b+M,b+M+k,k),he=Math.max(0,he+v),W=Math.max(0,W+b);else{he=Yi(ue,ae,D,G,O+H,A,A+E,E),W=i==="start"?M-ge-L:i==="center"?M-(ge+se/2)+Z/2:i==="end"?M-te+ne+Z:Yi(ge,te,se,L,ne+Z,M,M+k,k);var ie=j.scrollLeft,X=j.scrollTop;A+=X-(he=Math.max(0,Math.min(X+he/J,j.scrollHeight-D/J+H))),M+=ie-(W=Math.max(0,Math.min(ie+W/K,j.scrollWidth-se/K+Z)))}F.push({el:j,top:he,left:W})}return F},xe={};let wE=0;function wu(e){return typeof e=="function"?e:wt}function wt(){}function Pf(e,t){if(!e)return;yE(e,{boundary:t}).forEach(i=>{let{el:r,top:s,left:o}=i;r.scrollTop=s,r.scrollLeft=o})}function Eu(e,t,n){return e===t||t instanceof n.Node&&e.contains&&e.contains(t)}function Kr(e,t){let n;function i(){n&&clearTimeout(n)}function r(){for(var s=arguments.length,o=new Array(s),l=0;l<s;l++)o[l]=arguments[l];i(),n=setTimeout(()=>{n=null,e(...o)},t)}return r.cancel=i,r}function et(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(i){for(var r=arguments.length,s=new Array(r>1?r-1:0),o=1;o<r;o++)s[o-1]=arguments[o];return t.some(l=>(l&&l(i,...s),i.preventDownshiftDefault||i.hasOwnProperty("nativeEvent")&&i.nativeEvent.preventDownshiftDefault))}}function $t(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return i=>{t.forEach(r=>{typeof r=="function"?r(i):r&&(r.current=i)})}}function Of(){return String(wE++)}function Rf(e){let{isOpen:t,resultCount:n,previousResultCount:i}=e;return t?n?n!==i?`${n} result${n===1?" is":"s are"} available, use up and down arrow keys to navigate. Press Enter key to select.`:"":"No results are available.":""}function Su(e,t){return e=Array.isArray(e)?e[0]:e,!e&&t?t:e}function Lf(e){return typeof e.type=="string"}function Mf(e){return e.props}function EE(e,t){console.error(`The property "${t}" is required in "${e}"`)}const SE=["highlightedIndex","inputValue","isOpen","selectedItem","type"];function Qi(e){e===void 0&&(e={});const t={};return SE.forEach(n=>{e.hasOwnProperty(n)&&(t[n]=e[n])}),t}function bi(e,t){return Object.keys(e).reduce((n,i)=>(n[i]=vr(t,i)?t[i]:e[i],n),{})}function vr(e,t){return e[t]!==void 0}function yi(e){const{key:t,keyCode:n}=e;return n>=37&&n<=40&&t.indexOf("Arrow")!==0?`Arrow${t}`:t}function kE(e){return Object.prototype.toString.call(e)==="[object Object]"}function gn(e,t,n,i,r){if(r===void 0&&(r=!0),n===0)return-1;const s=n-1;(typeof t!="number"||t<0||t>=n)&&(t=e>0?-1:s+1);let o=t+e;o<0?o=r?s:0:o>s&&(o=r?0:s);const l=rn(e,o,n,i,r);return l===-1?t>=n?-1:t:l}function rn(e,t,n,i,r){const s=i(t);if(!s||!s.hasAttribute("disabled"))return t;if(e>0){for(let o=t+1;o<n;o++)if(!i(o).hasAttribute("disabled"))return o}else for(let o=t-1;o>=0;o--)if(!i(o).hasAttribute("disabled"))return o;return r?e>0?rn(1,0,n,i,!1):rn(-1,n-1,n,i,!1):-1}function br(e,t,n,i){return i===void 0&&(i=!0),t.some(r=>r&&(Eu(r,e,n)||i&&Eu(r,n.document.activeElement,n)))}let Ts=wt;xe.NODE_ENV!=="production"&&(Ts=(e,t,n)=>{const i="This prop should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled Downshift element for the lifetime of the component. More info: https://github.com/downshift-js/downshift#control-props";Object.keys(e).forEach(r=>{t[r]!==void 0&&n[r]===void 0?console.error(`downshift: A component has changed the controlled prop "${r}" to be uncontrolled. ${i}`):t[r]===void 0&&n[r]!==void 0&&console.error(`downshift: A component has changed the uncontrolled prop "${r}" to be controlled. ${i}`)})});const CE=Kr(e=>{Df(e).textContent=""},500);function Ff(e,t){const n=Df(t);e&&(n.textContent=e,CE(t))}function Df(e){e===void 0&&(e=document);let t=e.getElementById("a11y-status-message");return t||(t=e.createElement("div"),t.setAttribute("id","a11y-status-message"),t.setAttribute("role","status"),t.setAttribute("aria-live","polite"),t.setAttribute("aria-relevant","additions text"),Object.assign(t.style,{border:"0",clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:"0",position:"absolute",width:"1px"}),e.body.appendChild(t),t)}const jf=xe.NODE_ENV!=="production"?"__autocomplete_unknown__":0,Vf=xe.NODE_ENV!=="production"?"__autocomplete_mouseup__":1,Bf=xe.NODE_ENV!=="production"?"__autocomplete_item_mouseenter__":2,ar=xe.NODE_ENV!=="production"?"__autocomplete_keydown_arrow_up__":3,sr=xe.NODE_ENV!=="production"?"__autocomplete_keydown_arrow_down__":4,zf=xe.NODE_ENV!=="production"?"__autocomplete_keydown_escape__":5,Kf=xe.NODE_ENV!=="production"?"__autocomplete_keydown_enter__":6,Uf=xe.NODE_ENV!=="production"?"__autocomplete_keydown_home__":7,Hf=xe.NODE_ENV!=="production"?"__autocomplete_keydown_end__":8,$f=xe.NODE_ENV!=="production"?"__autocomplete_click_item__":9,qf=xe.NODE_ENV!=="production"?"__autocomplete_blur_input__":10,Wf=xe.NODE_ENV!=="production"?"__autocomplete_change_input__":11,Gf=xe.NODE_ENV!=="production"?"__autocomplete_keydown_space_button__":12,ns=xe.NODE_ENV!=="production"?"__autocomplete_click_button__":13,Jf=xe.NODE_ENV!=="production"?"__autocomplete_blur_button__":14,Yf=xe.NODE_ENV!=="production"?"__autocomplete_controlled_prop_updated_selected_item__":15,Qf=xe.NODE_ENV!=="production"?"__autocomplete_touchend__":16;var _E=Object.freeze({__proto__:null,unknown:jf,mouseUp:Vf,itemMouseEnter:Bf,keyDownArrowUp:ar,keyDownArrowDown:sr,keyDownEscape:zf,keyDownEnter:Kf,keyDownHome:Uf,keyDownEnd:Hf,clickItem:$f,blurInput:qf,changeInput:Wf,keyDownSpaceButton:Gf,clickButton:ns,blurButton:Jf,controlledPropUpdatedSelectedItem:Yf,touchEnd:Qf});const IE=(()=>{class e extends V.Component{constructor(n){var i;super(n),i=this,this.id=this.props.id||`downshift-${Of()}`,this.menuId=this.props.menuId||`${this.id}-menu`,this.labelId=this.props.labelId||`${this.id}-label`,this.inputId=this.props.inputId||`${this.id}-input`,this.getItemId=this.props.getItemId||(h=>`${this.id}-item-${h}`),this.input=null,this.items=[],this.itemCount=null,this.previousResultCount=0,this.timeoutIds=[],this.internalSetTimeout=(h,d)=>{const m=setTimeout(()=>{this.timeoutIds=this.timeoutIds.filter(b=>b!==m),h()},d);this.timeoutIds.push(m)},this.setItemCount=h=>{this.itemCount=h},this.unsetItemCount=()=>{this.itemCount=null},this.setHighlightedIndex=function(h,d){h===void 0&&(h=i.props.defaultHighlightedIndex),d===void 0&&(d={}),d=Qi(d),i.internalSetState({highlightedIndex:h,...d})},this.clearSelection=h=>{this.internalSetState({selectedItem:null,inputValue:"",highlightedIndex:this.props.defaultHighlightedIndex,isOpen:this.props.defaultIsOpen},h)},this.selectItem=(h,d,m)=>{d=Qi(d),this.internalSetState({isOpen:this.props.defaultIsOpen,highlightedIndex:this.props.defaultHighlightedIndex,selectedItem:h,inputValue:this.props.itemToString(h),...d},m)},this.selectItemAtIndex=(h,d,m)=>{const b=this.items[h];b!=null&&this.selectItem(b,d,m)},this.selectHighlightedItem=(h,d)=>this.selectItemAtIndex(this.getState().highlightedIndex,h,d),this.internalSetState=(h,d)=>{let m,b;const v={},S=typeof h=="function";return!S&&h.hasOwnProperty("inputValue")&&this.props.onInputValueChange(h.inputValue,{...this.getStateAndHelpers(),...h}),this.setState(E=>{E=this.getState(E);let k=S?h(E):h;k=this.props.stateReducer(E,k),m=k.hasOwnProperty("selectedItem");const I={};return m&&k.selectedItem!==E.selectedItem&&(b=k.selectedItem),k.type=k.type||jf,Object.keys(k).forEach(N=>{E[N]!==k[N]&&(v[N]=k[N]),N!=="type"&&(k[N],vr(this.props,N)||(I[N]=k[N]))}),S&&k.hasOwnProperty("inputValue")&&this.props.onInputValueChange(k.inputValue,{...this.getStateAndHelpers(),...k}),I},()=>{wu(d)(),Object.keys(v).length>1&&this.props.onStateChange(v,this.getStateAndHelpers()),m&&this.props.onSelect(h.selectedItem,this.getStateAndHelpers()),b!==void 0&&this.props.onChange(b,this.getStateAndHelpers()),this.props.onUserAction(v,this.getStateAndHelpers())})},this.rootRef=h=>this._rootNode=h,this.getRootProps=function(h,d){let{refKey:m="ref",ref:b,...v}=h===void 0?{}:h,{suppressRefError:S=!1}=d===void 0?{}:d;i.getRootProps.called=!0,i.getRootProps.refKey=m,i.getRootProps.suppressRefError=S;const{isOpen:E}=i.getState();return{[m]:$t(b,i.rootRef),role:"combobox","aria-expanded":E,"aria-haspopup":"listbox","aria-owns":E?i.menuId:null,"aria-labelledby":i.labelId,...v}},this.keyDownHandlers={ArrowDown(h){if(h.preventDefault(),this.getState().isOpen){const d=h.shiftKey?5:1;this.moveHighlightedIndex(d,{type:sr})}else this.internalSetState({isOpen:!0,type:sr},()=>{const d=this.getItemCount();if(d>0){const{highlightedIndex:m}=this.getState(),b=gn(1,m,d,v=>this.getItemNodeFromIndex(v));this.setHighlightedIndex(b,{type:sr})}})},ArrowUp(h){if(h.preventDefault(),this.getState().isOpen){const d=h.shiftKey?-5:-1;this.moveHighlightedIndex(d,{type:ar})}else this.internalSetState({isOpen:!0,type:ar},()=>{const d=this.getItemCount();if(d>0){const{highlightedIndex:m}=this.getState(),b=gn(-1,m,d,v=>this.getItemNodeFromIndex(v));this.setHighlightedIndex(b,{type:ar})}})},Enter(h){if(h.which===229)return;const{isOpen:d,highlightedIndex:m}=this.getState();if(d&&m!=null){h.preventDefault();const b=this.items[m],v=this.getItemNodeFromIndex(m);if(b==null||v&&v.hasAttribute("disabled"))return;this.selectHighlightedItem({type:Kf})}},Escape(h){h.preventDefault(),this.reset({type:zf,...!this.state.isOpen&&{selectedItem:null,inputValue:""}})}},this.buttonKeyDownHandlers={...this.keyDownHandlers," "(h){h.preventDefault(),this.toggleMenu({type:Gf})}},this.inputKeyDownHandlers={...this.keyDownHandlers,Home(h){const{isOpen:d}=this.getState();if(!d)return;h.preventDefault();const m=this.getItemCount();if(m<=0||!d)return;const b=rn(1,0,m,v=>this.getItemNodeFromIndex(v),!1);this.setHighlightedIndex(b,{type:Uf})},End(h){const{isOpen:d}=this.getState();if(!d)return;h.preventDefault();const m=this.getItemCount();if(m<=0||!d)return;const b=rn(-1,m-1,m,v=>this.getItemNodeFromIndex(v),!1);this.setHighlightedIndex(b,{type:Hf})}},this.getToggleButtonProps=function(h){let{onClick:d,onPress:m,onKeyDown:b,onKeyUp:v,onBlur:S,...E}=h===void 0?{}:h;const{isOpen:k}=i.getState(),I={onClick:et(d,i.buttonHandleClick),onKeyDown:et(b,i.buttonHandleKeyDown),onKeyUp:et(v,i.buttonHandleKeyUp),onBlur:et(S,i.buttonHandleBlur)},N=E.disabled?{}:I;return{type:"button",role:"button","aria-label":k?"close menu":"open menu","aria-haspopup":!0,"data-toggle":!0,...N,...E}},this.buttonHandleKeyUp=h=>{h.preventDefault()},this.buttonHandleKeyDown=h=>{const d=yi(h);this.buttonKeyDownHandlers[d]&&this.buttonKeyDownHandlers[d].call(this,h)},this.buttonHandleClick=h=>{h.preventDefault(),this.props.environment.document.activeElement===this.props.environment.document.body&&h.target.focus(),xe.NODE_ENV==="test"?this.toggleMenu({type:ns}):this.internalSetTimeout(()=>this.toggleMenu({type:ns}))},this.buttonHandleBlur=h=>{const d=h.target;this.internalSetTimeout(()=>{!this.isMouseDown&&(this.props.environment.document.activeElement==null||this.props.environment.document.activeElement.id!==this.inputId)&&this.props.environment.document.activeElement!==d&&this.reset({type:Jf})})},this.getLabelProps=h=>({htmlFor:this.inputId,id:this.labelId,...h}),this.getInputProps=function(h){let{onKeyDown:d,onBlur:m,onChange:b,onInput:v,onChangeText:S,...E}=h===void 0?{}:h,k,I={};k="onChange";const{inputValue:N,isOpen:y,highlightedIndex:g}=i.getState();return E.disabled||(I={[k]:et(b,v,i.inputHandleChange),onKeyDown:et(d,i.inputHandleKeyDown),onBlur:et(m,i.inputHandleBlur)}),{"aria-autocomplete":"list","aria-activedescendant":y&&typeof g=="number"&&g>=0?i.getItemId(g):null,"aria-controls":y?i.menuId:null,"aria-labelledby":i.labelId,autoComplete:"off",value:N,id:i.inputId,...I,...E}},this.inputHandleKeyDown=h=>{const d=yi(h);d&&this.inputKeyDownHandlers[d]&&this.inputKeyDownHandlers[d].call(this,h)},this.inputHandleChange=h=>{this.internalSetState({type:Wf,isOpen:!0,inputValue:h.target.value,highlightedIndex:this.props.defaultHighlightedIndex})},this.inputHandleBlur=()=>{this.internalSetTimeout(()=>{const h=this.props.environment.document&&!!this.props.environment.document.activeElement&&!!this.props.environment.document.activeElement.dataset&&this.props.environment.document.activeElement.dataset.toggle&&this._rootNode&&this._rootNode.contains(this.props.environment.document.activeElement);!this.isMouseDown&&!h&&this.reset({type:qf})})},this.menuRef=h=>{this._menuNode=h},this.getMenuProps=function(h,d){let{refKey:m="ref",ref:b,...v}=h===void 0?{}:h,{suppressRefError:S=!1}=d===void 0?{}:d;return i.getMenuProps.called=!0,i.getMenuProps.refKey=m,i.getMenuProps.suppressRefError=S,{[m]:$t(b,i.menuRef),role:"listbox","aria-labelledby":v&&v["aria-label"]?null:i.labelId,id:i.menuId,...v}},this.getItemProps=function(h){let{onMouseMove:d,onMouseDown:m,onClick:b,onPress:v,index:S,item:E=xe.NODE_ENV==="production"?void 0:EE("getItemProps","item"),...k}=h===void 0?{}:h;S===void 0?(i.items.push(E),S=i.items.indexOf(E)):i.items[S]=E;const I="onClick",N=b,y={onMouseMove:et(d,()=>{S!==i.getState().highlightedIndex&&(i.setHighlightedIndex(S,{type:Bf}),i.avoidScrolling=!0,i.internalSetTimeout(()=>i.avoidScrolling=!1,250))}),onMouseDown:et(m,A=>{A.preventDefault()}),[I]:et(N,()=>{i.selectItemAtIndex(S,{type:$f})})},g=k.disabled?{onMouseDown:y.onMouseDown}:y;return{id:i.getItemId(S),role:"option","aria-selected":i.getState().highlightedIndex===S,...g,...k}},this.clearItems=()=>{this.items=[]},this.reset=function(h,d){h===void 0&&(h={}),h=Qi(h),i.internalSetState(m=>{let{selectedItem:b}=m;return{isOpen:i.props.defaultIsOpen,highlightedIndex:i.props.defaultHighlightedIndex,inputValue:i.props.itemToString(b),...h}},d)},this.toggleMenu=function(h,d){h===void 0&&(h={}),h=Qi(h),i.internalSetState(m=>{let{isOpen:b}=m;return{isOpen:!b,...b&&{highlightedIndex:i.props.defaultHighlightedIndex},...h}},()=>{const{isOpen:m,highlightedIndex:b}=i.getState();m&&i.getItemCount()>0&&typeof b=="number"&&i.setHighlightedIndex(b,h),wu(d)()})},this.openMenu=h=>{this.internalSetState({isOpen:!0},h)},this.closeMenu=h=>{this.internalSetState({isOpen:!1},h)},this.updateStatus=Kr(()=>{const h=this.getState(),d=this.items[h.highlightedIndex],m=this.getItemCount(),b=this.props.getA11yStatusMessage({itemToString:this.props.itemToString,previousResultCount:this.previousResultCount,resultCount:m,highlightedItem:d,...h});this.previousResultCount=m,Ff(b,this.props.environment.document)},200);const{defaultHighlightedIndex:r,initialHighlightedIndex:s=r,defaultIsOpen:o,initialIsOpen:l=o,initialInputValue:u="",initialSelectedItem:f=null}=this.props,p=this.getState({highlightedIndex:s,isOpen:l,inputValue:u,selectedItem:f});p.selectedItem!=null&&this.props.initialInputValue===void 0&&(p.inputValue=this.props.itemToString(p.selectedItem)),this.state=p}internalClearTimeouts(){this.timeoutIds.forEach(n=>{clearTimeout(n)}),this.timeoutIds=[]}getState(n){return n===void 0&&(n=this.state),bi(n,this.props)}getItemCount(){let n=this.items.length;return this.itemCount!=null?n=this.itemCount:this.props.itemCount!==void 0&&(n=this.props.itemCount),n}getItemNodeFromIndex(n){return this.props.environment.document.getElementById(this.getItemId(n))}scrollHighlightedItemIntoView(){{const n=this.getItemNodeFromIndex(this.getState().highlightedIndex);this.props.scrollIntoView(n,this._menuNode)}}moveHighlightedIndex(n,i){const r=this.getItemCount(),{highlightedIndex:s}=this.getState();if(r>0){const o=gn(n,s,r,l=>this.getItemNodeFromIndex(l));this.setHighlightedIndex(o,i)}}getStateAndHelpers(){const{highlightedIndex:n,inputValue:i,selectedItem:r,isOpen:s}=this.getState(),{itemToString:o}=this.props,{id:l}=this,{getRootProps:u,getToggleButtonProps:f,getLabelProps:p,getMenuProps:h,getInputProps:d,getItemProps:m,openMenu:b,closeMenu:v,toggleMenu:S,selectItem:E,selectItemAtIndex:k,selectHighlightedItem:I,setHighlightedIndex:N,clearSelection:y,clearItems:g,reset:A,setItemCount:M,unsetItemCount:F,internalSetState:R}=this;return{getRootProps:u,getToggleButtonProps:f,getLabelProps:p,getMenuProps:h,getInputProps:d,getItemProps:m,reset:A,openMenu:b,closeMenu:v,toggleMenu:S,selectItem:E,selectItemAtIndex:k,selectHighlightedItem:I,setHighlightedIndex:N,clearSelection:y,clearItems:g,setItemCount:M,unsetItemCount:F,setState:R,itemToString:o,id:l,highlightedIndex:n,inputValue:i,isOpen:s,selectedItem:r}}componentDidMount(){xe.NODE_ENV!=="production"&&this.getMenuProps.called&&!this.getMenuProps.suppressRefError&&ku(this._menuNode,this.getMenuProps);{const n=()=>{this.isMouseDown=!0},i=u=>{this.isMouseDown=!1,!br(u.target,[this._rootNode,this._menuNode],this.props.environment)&&this.getState().isOpen&&this.reset({type:Vf},()=>this.props.onOuterClick(this.getStateAndHelpers()))},r=()=>{this.isTouchMove=!1},s=()=>{this.isTouchMove=!0},o=u=>{const f=br(u.target,[this._rootNode,this._menuNode],this.props.environment,!1);!this.isTouchMove&&!f&&this.getState().isOpen&&this.reset({type:Qf},()=>this.props.onOuterClick(this.getStateAndHelpers()))},{environment:l}=this.props;l.addEventListener("mousedown",n),l.addEventListener("mouseup",i),l.addEventListener("touchstart",r),l.addEventListener("touchmove",s),l.addEventListener("touchend",o),this.cleanup=()=>{this.internalClearTimeouts(),this.updateStatus.cancel(),l.removeEventListener("mousedown",n),l.removeEventListener("mouseup",i),l.removeEventListener("touchstart",r),l.removeEventListener("touchmove",s),l.removeEventListener("touchend",o)}}}shouldScroll(n,i){const{highlightedIndex:r}=this.props.highlightedIndex===void 0?this.getState():this.props,{highlightedIndex:s}=i.highlightedIndex===void 0?n:i;return r&&this.getState().isOpen&&!n.isOpen||r!==s}componentDidUpdate(n,i){xe.NODE_ENV!=="production"&&(Ts(this.state,n,this.props),this.getMenuProps.called&&!this.getMenuProps.suppressRefError&&ku(this._menuNode,this.getMenuProps)),vr(this.props,"selectedItem")&&this.props.selectedItemChanged(n.selectedItem,this.props.selectedItem)&&this.internalSetState({type:Yf,inputValue:this.props.itemToString(this.props.selectedItem)}),!this.avoidScrolling&&this.shouldScroll(i,n)&&this.scrollHighlightedItemIntoView(),this.updateStatus()}componentWillUnmount(){this.cleanup()}render(){const n=Su(this.props.children,wt);this.clearItems(),this.getRootProps.called=!1,this.getRootProps.refKey=void 0,this.getRootProps.suppressRefError=void 0,this.getMenuProps.called=!1,this.getMenuProps.refKey=void 0,this.getMenuProps.suppressRefError=void 0,this.getLabelProps.called=!1,this.getInputProps.called=!1;const i=Su(n(this.getStateAndHelpers()));if(!i)return null;if(this.getRootProps.called||this.props.suppressRefError)return xe.NODE_ENV!=="production"&&!this.getRootProps.suppressRefError&&!this.props.suppressRefError&&AE(i,this.getRootProps),i;if(Lf(i))return V.cloneElement(i,this.getRootProps(Mf(i)));if(xe.NODE_ENV!=="production")throw new Error("downshift: If you return a non-DOM element, you must apply the getRootProps function")}}return e.defaultProps={defaultHighlightedIndex:null,defaultIsOpen:!1,getA11yStatusMessage:Rf,itemToString:t=>t==null?"":(xe.NODE_ENV!=="production"&&kE(t)&&!t.hasOwnProperty("toString")&&console.warn("downshift: An object was passed to the default implementation of `itemToString`. You should probably provide your own `itemToString` implementation. Please refer to the `itemToString` API documentation.","The object that was passed:",t),String(t)),onStateChange:wt,onInputValueChange:wt,onUserAction:wt,onChange:wt,onSelect:wt,onOuterClick:wt,selectedItemChanged:(t,n)=>t!==n,environment:typeof window>"u"?{}:window,stateReducer:(t,n)=>n,suppressRefError:!1,scrollIntoView:Pf},e.stateChangeTypes=_E,e})();xe.NODE_ENV!=="production"&&(IE.propTypes={children:ee.func,defaultHighlightedIndex:ee.number,defaultIsOpen:ee.bool,initialHighlightedIndex:ee.number,initialSelectedItem:ee.any,initialInputValue:ee.string,initialIsOpen:ee.bool,getA11yStatusMessage:ee.func,itemToString:ee.func,onChange:ee.func,onSelect:ee.func,onStateChange:ee.func,onInputValueChange:ee.func,onUserAction:ee.func,onOuterClick:ee.func,selectedItemChanged:ee.func,stateReducer:ee.func,itemCount:ee.number,id:ee.string,environment:ee.shape({addEventListener:ee.func,removeEventListener:ee.func,document:ee.shape({getElementById:ee.func,activeElement:ee.any,body:ee.any})}),suppressRefError:ee.bool,scrollIntoView:ee.func,selectedItem:ee.any,isOpen:ee.bool,inputValue:ee.string,highlightedIndex:ee.number,labelId:ee.string,inputId:ee.string,menuId:ee.string,getItemId:ee.func});function ku(e,t){let{refKey:n}=t;e||console.error(`downshift: The ref prop "${n}" from getMenuProps was not applied correctly on your menu element.`)}function AE(e,t){let{refKey:n}=t;const i=n!=="ref",r=!Lf(e);r&&!i&&!vu.isForwardRef(e)?console.error("downshift: You returned a non-DOM element. You must specify a refKey in getRootProps"):!r&&i&&console.error(`downshift: You returned a DOM element. You should not specify a refKey in getRootProps. You specified "${n}"`),!vu.isForwardRef(e)&&!Mf(e)[n]&&console.error(`downshift: You must apply the ref prop "${n}" from getRootProps onto your root element.`)}const Zf={highlightedIndex:-1,isOpen:!1,selectedItem:null,inputValue:""};function TE(e,t,n){const{props:i,type:r}=e,s={};Object.keys(t).forEach(o=>{NE(o,e,t,n),n[o]!==t[o]&&(s[o]=n[o])}),i.onStateChange&&Object.keys(s).length&&i.onStateChange({type:r,...s})}function NE(e,t,n,i){const{props:r,type:s}=t,o=`on${Ns(e)}Change`;r[o]&&i[e]!==void 0&&i[e]!==n[e]&&r[o]({type:s,...i})}function PE(e,t){return t.changes}function OE(e){const{selectedItem:t,itemToString:n}=e;return t?`${n(t)} has been selected.`:""}const RE=Kr((e,t)=>{Ff(e(),t)},200),LE=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u"?V.useLayoutEffect:V.useEffect;function Xf(e){let{id:t=`downshift-${Of()}`,labelId:n,menuId:i,getItemId:r,toggleButtonId:s,inputId:o}=e;return V.useRef({labelId:n||`${t}-label`,menuId:i||`${t}-menu`,getItemId:r||(u=>`${t}-item-${u}`),toggleButtonId:s||`${t}-toggle-button`,inputId:o||`${t}-input`}).current}function ep(e,t,n){return e!==void 0?e:n.length===0?-1:n.indexOf(t)}function ME(e){return e?String(e):""}function Cu(e){return/^\S{1}$/.test(e)}function Ns(e){return`${e.slice(0,1).toUpperCase()}${e.slice(1)}`}function Ps(e){const t=V.useRef(e);return t.current=e,t}function tp(e,t,n){const i=V.useRef(),r=V.useRef(),s=V.useCallback((h,d)=>{r.current=d,h=bi(h,d.props);const m=e(h,d);return d.props.stateReducer(h,{...d,changes:m})},[e]),[o,l]=V.useReducer(s,t),u=Ps(n),f=V.useCallback(h=>l({props:u.current,...h}),[u]),p=r.current;return V.useEffect(()=>{p&&i.current&&i.current!==o&&TE(p,bi(i.current,p.props),o),i.current=o},[o,n,p]),[o,f]}function FE(e,t,n){const[i,r]=tp(e,t,n);return[bi(i,n),r]}const pi={itemToString:ME,stateReducer:PE,getA11ySelectionMessage:OE,scrollIntoView:Pf,circularNavigation:!1,environment:typeof window>"u"?{}:window};function dt(e,t,n){n===void 0&&(n=Zf);const i=e[`default${Ns(t)}`];return i!==void 0?i:n[t]}function Zi(e,t,n){n===void 0&&(n=Zf);const i=e[t];if(i!==void 0)return i;const r=e[`initial${Ns(t)}`];return r!==void 0?r:dt(e,t,n)}function np(e){const t=Zi(e,"selectedItem"),n=Zi(e,"isOpen"),i=Zi(e,"highlightedIndex"),r=Zi(e,"inputValue");return{highlightedIndex:i<0&&t&&n?e.items.indexOf(t):i,isOpen:n,selectedItem:t,inputValue:r}}function Wn(e,t,n,i){const{items:r,initialHighlightedIndex:s,defaultHighlightedIndex:o}=e,{selectedItem:l,highlightedIndex:u}=t;return r.length===0?-1:s!==void 0&&u===s?s:o!==void 0?o:l?n===0?r.indexOf(l):gn(n,r.indexOf(l),r.length,i,!1):n===0?-1:n<0?r.length-1:0}function ip(e,t,n,i){const r=V.useRef({isMouseDown:!1,isTouchMove:!1});return V.useEffect(()=>{const s=()=>{r.current.isMouseDown=!0},o=p=>{r.current.isMouseDown=!1,e&&!br(p.target,t.map(h=>h.current),n)&&i()},l=()=>{r.current.isTouchMove=!1},u=()=>{r.current.isTouchMove=!0},f=p=>{e&&!r.current.isTouchMove&&!br(p.target,t.map(h=>h.current),n,!1)&&i()};return n.addEventListener("mousedown",s),n.addEventListener("mouseup",o),n.addEventListener("touchstart",l),n.addEventListener("touchmove",u),n.addEventListener("touchend",f),function(){n.removeEventListener("mousedown",s),n.removeEventListener("mouseup",o),n.removeEventListener("touchstart",l),n.removeEventListener("touchmove",u),n.removeEventListener("touchend",f)}},[e,n]),r}let Os=()=>wt;xe.NODE_ENV!=="production"&&(Os=function(){const e=V.useRef(!0);for(var t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];const r=V.useRef(n.reduce((o,l)=>(o[l]={},o),{}));return V.useEffect(()=>{Object.keys(r.current).forEach(o=>{const l=r.current[o];if(e.current&&!Object.keys(l).length){console.error(`downshift: You forgot to call the ${o} getter function on your component / element.`);return}const{suppressRefError:u,refKey:f,elementRef:p}=l;(!p||!p.current)&&!u&&console.error(`downshift: The ref prop "${f}" from ${o} was not applied correctly on your element.`)}),e.current=!1}),V.useCallback((o,l,u,f)=>{r.current[o]={suppressRefError:l,refKey:u,elementRef:f}},[])});function yr(e,t,n){let{isInitialMount:i,highlightedIndex:r,items:s,environment:o,...l}=n;V.useEffect(()=>{i||RE(()=>e({highlightedIndex:r,highlightedItem:s[r],resultCount:s.length,...l}),o.document)},t)}function rp(e){let{highlightedIndex:t,isOpen:n,itemRefs:i,getItemNodeFromIndex:r,menuElement:s,scrollIntoView:o}=e;const l=V.useRef(!0);return LE(()=>{t<0||!n||!Object.keys(i.current).length||(l.current===!1?l.current=!0:o(r(t),s))},[t]),l}let Rs=wt;xe.NODE_ENV!=="production"&&(Rs=e=>{let{isInitialMount:t,props:n,state:i}=e;const r=V.useRef(n);V.useEffect(()=>{t||(Ts(i,r.current,n),r.current=n)},[i,n,t])});function ap(e,t,n){const{type:i,props:r}=t;let s;switch(i){case n.ItemMouseMove:s={highlightedIndex:t.disabled?-1:t.index};break;case n.MenuMouseLeave:s={highlightedIndex:-1};break;case n.ToggleButtonClick:case n.FunctionToggleMenu:s={isOpen:!e.isOpen,highlightedIndex:e.isOpen?-1:Wn(r,e,0)};break;case n.FunctionOpenMenu:s={isOpen:!0,highlightedIndex:Wn(r,e,0)};break;case n.FunctionCloseMenu:s={isOpen:!1};break;case n.FunctionSetHighlightedIndex:s={highlightedIndex:t.highlightedIndex};break;case n.FunctionSetInputValue:s={inputValue:t.inputValue};break;case n.FunctionReset:s={highlightedIndex:dt(r,"highlightedIndex"),isOpen:dt(r,"isOpen"),selectedItem:dt(r,"selectedItem"),inputValue:dt(r,"inputValue")};break;default:throw new Error("Reducer called without proper action type.")}return{...e,...s}}function _u(e){for(var t=e.keysSoFar,n=e.highlightedIndex,i=e.items,r=e.itemToString,s=e.getItemNodeFromIndex,o=t.toLowerCase(),l=0;l<i.length;l++){var u=(l+n+1)%i.length,f=i[u];if(f!==void 0&&r(f).toLowerCase().startsWith(o)){var p=s(u);if(!(p!=null&&p.hasAttribute("disabled")))return u}}return n}var DE={items:ee.array.isRequired,itemToString:ee.func,getA11yStatusMessage:ee.func,getA11ySelectionMessage:ee.func,circularNavigation:ee.bool,highlightedIndex:ee.number,defaultHighlightedIndex:ee.number,initialHighlightedIndex:ee.number,isOpen:ee.bool,defaultIsOpen:ee.bool,initialIsOpen:ee.bool,selectedItem:ee.any,initialSelectedItem:ee.any,defaultSelectedItem:ee.any,id:ee.string,labelId:ee.string,menuId:ee.string,getItemId:ee.func,toggleButtonId:ee.string,stateReducer:ee.func,onSelectedItemChange:ee.func,onHighlightedIndexChange:ee.func,onStateChange:ee.func,onIsOpenChange:ee.func,environment:ee.shape({addEventListener:ee.func,removeEventListener:ee.func,document:ee.shape({getElementById:ee.func,activeElement:ee.any,body:ee.any})})};function jE(e){var t=e.isOpen,n=e.resultCount,i=e.previousResultCount;return t?n?n!==i?"".concat(n," result").concat(n===1?" is":"s are"," available, use up and down arrow keys to navigate. Press Enter or Space Bar keys to select."):"":"No results are available.":""}var VE=Ot(Ot({},pi),{getA11yStatusMessage:jE}),sp=wt;xe.NODE_ENV!=="production"&&(sp=function(e,t){ee.checkPropTypes(DE,e,"prop",t.name)});const Ls=xe.NODE_ENV!=="production"?"__menu_keydown_arrow_down__":0,Ms=xe.NODE_ENV!=="production"?"__menu_keydown_arrow_up__":1,Fs=xe.NODE_ENV!=="production"?"__menu_keydown_escape__":2,Ds=xe.NODE_ENV!=="production"?"__menu_keydown_home__":3,js=xe.NODE_ENV!=="production"?"__menu_keydown_end__":4,Vs=xe.NODE_ENV!=="production"?"__menu_keydown_enter__":5,Bs=xe.NODE_ENV!=="production"?"__menu_keydown_space_button__":6,zs=xe.NODE_ENV!=="production"?"__menu_keydown_character__":7,wr=xe.NODE_ENV!=="production"?"__menu_blur__":8,op=xe.NODE_ENV!=="production"?"__menu_mouse_leave__":9,lp=xe.NODE_ENV!=="production"?"__item_mouse_move__":10,Ks=xe.NODE_ENV!=="production"?"__item_click__":11,up=xe.NODE_ENV!=="production"?"__togglebutton_click__":12,Us=xe.NODE_ENV!=="production"?"__togglebutton_keydown_arrow_down__":13,Hs=xe.NODE_ENV!=="production"?"__togglebutton_keydown_arrow_up__":14,$s=xe.NODE_ENV!=="production"?"__togglebutton_keydown_character__":15,cp=xe.NODE_ENV!=="production"?"__function_toggle_menu__":16,hp=xe.NODE_ENV!=="production"?"__function_open_menu__":17,fp=xe.NODE_ENV!=="production"?"__function_close_menu__":18,pp=xe.NODE_ENV!=="production"?"__function_set_highlighted_index__":19,qs=xe.NODE_ENV!=="production"?"__function_select_item__":20,is=xe.NODE_ENV!=="production"?"__function_set_input_value__":21,dp=xe.NODE_ENV!=="production"?"__function_reset__":22;var gp=Object.freeze({__proto__:null,MenuKeyDownArrowDown:Ls,MenuKeyDownArrowUp:Ms,MenuKeyDownEscape:Fs,MenuKeyDownHome:Ds,MenuKeyDownEnd:js,MenuKeyDownEnter:Vs,MenuKeyDownSpaceButton:Bs,MenuKeyDownCharacter:zs,MenuBlur:wr,MenuMouseLeave:op,ItemMouseMove:lp,ItemClick:Ks,ToggleButtonClick:up,ToggleButtonKeyDownArrowDown:Us,ToggleButtonKeyDownArrowUp:Hs,ToggleButtonKeyDownCharacter:$s,FunctionToggleMenu:cp,FunctionOpenMenu:hp,FunctionCloseMenu:fp,FunctionSetHighlightedIndex:pp,FunctionSelectItem:qs,FunctionSetInputValue:is,FunctionReset:dp});function BE(e,t){const{type:n,props:i,shiftKey:r}=t;let s;switch(n){case Ks:s={isOpen:dt(i,"isOpen"),highlightedIndex:dt(i,"highlightedIndex"),selectedItem:i.items[t.index]};break;case $s:{const o=t.key,l=`${e.inputValue}${o}`,u=_u({keysSoFar:l,highlightedIndex:e.selectedItem?i.items.indexOf(e.selectedItem):-1,items:i.items,itemToString:i.itemToString,getItemNodeFromIndex:t.getItemNodeFromIndex});s={inputValue:l,...u>=0&&{selectedItem:i.items[u]}}}break;case Us:s={highlightedIndex:Wn(i,e,1,t.getItemNodeFromIndex),isOpen:!0};break;case Hs:s={highlightedIndex:Wn(i,e,-1,t.getItemNodeFromIndex),isOpen:!0};break;case Vs:case Bs:s={isOpen:dt(i,"isOpen"),highlightedIndex:dt(i,"highlightedIndex"),...e.highlightedIndex>=0&&{selectedItem:i.items[e.highlightedIndex]}};break;case Ds:s={highlightedIndex:rn(1,0,i.items.length,t.getItemNodeFromIndex,!1)};break;case js:s={highlightedIndex:rn(-1,i.items.length-1,i.items.length,t.getItemNodeFromIndex,!1)};break;case Fs:s={isOpen:!1,highlightedIndex:-1};break;case wr:s={isOpen:!1,highlightedIndex:-1};break;case zs:{const o=t.key,l=`${e.inputValue}${o}`,u=_u({keysSoFar:l,highlightedIndex:e.highlightedIndex,items:i.items,itemToString:i.itemToString,getItemNodeFromIndex:t.getItemNodeFromIndex});s={inputValue:l,...u>=0&&{highlightedIndex:u}}}break;case Ls:s={highlightedIndex:gn(r?5:1,e.highlightedIndex,i.items.length,t.getItemNodeFromIndex,i.circularNavigation)};break;case Ms:s={highlightedIndex:gn(r?-5:-1,e.highlightedIndex,i.items.length,t.getItemNodeFromIndex,i.circularNavigation)};break;case qs:s={selectedItem:t.selectedItem};break;default:return ap(e,t,gp)}return{...e,...s}}Ws.stateChangeTypes=gp;function Ws(e){e===void 0&&(e={}),sp(e,Ws);const t={...VE,...e},{items:n,scrollIntoView:i,environment:r,initialIsOpen:s,defaultIsOpen:o,itemToString:l,getA11ySelectionMessage:u,getA11yStatusMessage:f}=t,p=np(t),[h,d]=FE(BE,p,t),{isOpen:m,highlightedIndex:b,selectedItem:v,inputValue:S}=h,E=V.useRef(null),k=V.useRef(null),I=V.useRef({}),N=V.useRef(!0),y=V.useRef(null),g=Xf(t),A=V.useRef(),M=V.useRef(!0),F=Ps({state:h,props:t}),R=V.useCallback(H=>I.current[g.getItemId(H)],[g]);yr(f,[m,b,S,n],{isInitialMount:M.current,previousResultCount:A.current,items:n,environment:r,itemToString:l,...h}),yr(u,[v],{isInitialMount:M.current,previousResultCount:A.current,items:n,environment:r,itemToString:l,...h});const j=rp({menuElement:k.current,highlightedIndex:b,isOpen:m,itemRefs:I,scrollIntoView:i,getItemNodeFromIndex:R});V.useEffect(()=>(y.current=Kr(H=>{H({type:is,inputValue:""})},500),()=>{y.current.cancel()}),[]),V.useEffect(()=>{S&&y.current(d)},[d,S]),Rs({isInitialMount:M.current,props:t,state:h}),V.useEffect(()=>{if(M.current){(s||o||m)&&k.current&&k.current.focus();return}if(m){k.current&&k.current.focus();return}r.document.activeElement===k.current&&E.current&&(N.current=!1,E.current.focus())},[m]),V.useEffect(()=>{M.current||(A.current=n.length)});const B=ip(m,[k,E],r,()=>{d({type:wr})}),D=Os("getMenuProps","getToggleButtonProps");V.useEffect(()=>{M.current=!1},[]),V.useEffect(()=>{m||(I.current={})},[m]);const se=V.useMemo(()=>({ArrowDown(H){H.preventDefault(),d({type:Us,getItemNodeFromIndex:R,shiftKey:H.shiftKey})},ArrowUp(H){H.preventDefault(),d({type:Hs,getItemNodeFromIndex:R,shiftKey:H.shiftKey})}}),[d,R]),ue=V.useMemo(()=>({ArrowDown(H){H.preventDefault(),d({type:Ls,getItemNodeFromIndex:R,shiftKey:H.shiftKey})},ArrowUp(H){H.preventDefault(),d({type:Ms,getItemNodeFromIndex:R,shiftKey:H.shiftKey})},Home(H){H.preventDefault(),d({type:Ds,getItemNodeFromIndex:R})},End(H){H.preventDefault(),d({type:js,getItemNodeFromIndex:R})},Escape(){d({type:Fs})},Enter(H){H.preventDefault(),d({type:Vs})}," "(H){H.preventDefault(),d({type:Bs})}}),[d,R]),te=V.useCallback(()=>{d({type:cp})},[d]),ae=V.useCallback(()=>{d({type:fp})},[d]),ge=V.useCallback(()=>{d({type:hp})},[d]),ve=V.useCallback(H=>{d({type:pp,highlightedIndex:H})},[d]),L=V.useCallback(H=>{d({type:qs,selectedItem:H})},[d]),G=V.useCallback(()=>{d({type:dp})},[d]),ne=V.useCallback(H=>{d({type:is,inputValue:H})},[d]),O=V.useCallback(H=>({id:g.labelId,htmlFor:g.toggleButtonId,...H}),[g]),he=V.useCallback(function(H,K){let{onMouseLeave:J,refKey:ie="ref",onKeyDown:X,onBlur:$,ref:Y,...le}=H===void 0?{}:H,{suppressRefError:de=!1}=K===void 0?{}:K;const Se=F.current.state,ye=be=>{const Pe=yi(be);Pe&&ue[Pe]?ue[Pe](be):Cu(Pe)&&d({type:zs,key:Pe,getItemNodeFromIndex:R})},ke=()=>{if(N.current===!1){N.current=!0;return}!B.current.isMouseDown&&d({type:wr})},Ie=()=>{d({type:op})};return D("getMenuProps",de,ie,k),{[ie]:$t(Y,be=>{k.current=be}),id:g.menuId,role:"listbox","aria-labelledby":g.labelId,tabIndex:-1,...Se.isOpen&&Se.highlightedIndex>-1&&{"aria-activedescendant":g.getItemId(Se.highlightedIndex)},onMouseLeave:et(J,Ie),onKeyDown:et(X,ye),onBlur:et($,ke),...le}},[d,F,ue,B,D,g,R]),W=V.useCallback(function(H,K){let{onClick:J,onKeyDown:ie,refKey:X="ref",ref:$,...Y}=H===void 0?{}:H,{suppressRefError:le=!1}=K===void 0?{}:K;const de=()=>{d({type:up})},Se=ke=>{const Ie=yi(ke);Ie&&se[Ie]?se[Ie](ke):Cu(Ie)&&d({type:$s,key:Ie,getItemNodeFromIndex:R})},ye={[X]:$t($,ke=>{E.current=ke}),id:g.toggleButtonId,"aria-haspopup":"listbox","aria-expanded":F.current.state.isOpen,"aria-labelledby":`${g.labelId} ${g.toggleButtonId}`,...Y};return Y.disabled||(ye.onClick=et(J,de),ye.onKeyDown=et(ie,Se)),D("getToggleButtonProps",le,X,E),ye},[d,F,se,D,g,R]),Z=V.useCallback(function(H){let{item:K,index:J,onMouseMove:ie,onClick:X,refKey:$="ref",ref:Y,disabled:le,...de}=H===void 0?{}:H;const{state:Se,props:ye}=F.current,ke=()=>{J!==Se.highlightedIndex&&(j.current=!1,d({type:lp,index:J,disabled:le}))},Ie=()=>{d({type:Ks,index:J})},be=ep(J,K,ye.items);if(be<0)throw new Error("Pass either item or item index in getItemProps!");const Pe={disabled:le,role:"option","aria-selected":`${be===Se.highlightedIndex}`,id:g.getItemId(be),[$]:$t(Y,Be=>{Be&&(I.current[g.getItemId(be)]=Be)}),...de};return le||(Pe.onClick=et(X,Ie)),Pe.onMouseMove=et(ie,ke),Pe},[d,F,j,g]);return{getToggleButtonProps:W,getLabelProps:O,getMenuProps:he,getItemProps:Z,toggleMenu:te,openMenu:ge,closeMenu:ae,setHighlightedIndex:ve,selectItem:L,reset:G,setInputValue:ne,highlightedIndex:b,isOpen:m,selectedItem:v,inputValue:S}}const Gs=xe.NODE_ENV!=="production"?"__input_keydown_arrow_down__":0,Js=xe.NODE_ENV!=="production"?"__input_keydown_arrow_up__":1,Ys=xe.NODE_ENV!=="production"?"__input_keydown_escape__":2,Qs=xe.NODE_ENV!=="production"?"__input_keydown_home__":3,Zs=xe.NODE_ENV!=="production"?"__input_keydown_end__":4,Xs=xe.NODE_ENV!=="production"?"__input_keydown_enter__":5,eo=xe.NODE_ENV!=="production"?"__input_change__":6,Er=xe.NODE_ENV!=="production"?"__input_blur__":7,mp=xe.NODE_ENV!=="production"?"__menu_mouse_leave__":8,xp=xe.NODE_ENV!=="production"?"__item_mouse_move__":9,to=xe.NODE_ENV!=="production"?"__item_click__":10,vp=xe.NODE_ENV!=="production"?"__togglebutton_click__":11,bp=xe.NODE_ENV!=="production"?"__function_toggle_menu__":12,yp=xe.NODE_ENV!=="production"?"__function_open_menu__":13,wp=xe.NODE_ENV!=="production"?"__function_close_menu__":14,Ep=xe.NODE_ENV!=="production"?"__function_set_highlighted_index__":15,no=xe.NODE_ENV!=="production"?"__function_select_item__":16,Sp=xe.NODE_ENV!=="production"?"__function_set_input_value__":17,kp=xe.NODE_ENV!=="production"?"__function_reset__":18,io=xe.NODE_ENV!=="production"?"__controlled_prop_updated_selected_item__":19;var Cp=Object.freeze({__proto__:null,InputKeyDownArrowDown:Gs,InputKeyDownArrowUp:Js,InputKeyDownEscape:Ys,InputKeyDownHome:Qs,InputKeyDownEnd:Zs,InputKeyDownEnter:Xs,InputChange:eo,InputBlur:Er,MenuMouseLeave:mp,ItemMouseMove:xp,ItemClick:to,ToggleButtonClick:vp,FunctionToggleMenu:bp,FunctionOpenMenu:yp,FunctionCloseMenu:wp,FunctionSetHighlightedIndex:Ep,FunctionSelectItem:no,FunctionSetInputValue:Sp,FunctionReset:kp,ControlledPropUpdatedSelectedItem:io});function zE(e){const t=np(e),{selectedItem:n}=t;let{inputValue:i}=t;return i===""&&n&&e.defaultInputValue===void 0&&e.initialInputValue===void 0&&e.inputValue===void 0&&(i=e.itemToString(n)),{...t,inputValue:i}}const KE={items:ee.array.isRequired,itemToString:ee.func,getA11yStatusMessage:ee.func,getA11ySelectionMessage:ee.func,circularNavigation:ee.bool,highlightedIndex:ee.number,defaultHighlightedIndex:ee.number,initialHighlightedIndex:ee.number,isOpen:ee.bool,defaultIsOpen:ee.bool,initialIsOpen:ee.bool,selectedItem:ee.any,initialSelectedItem:ee.any,defaultSelectedItem:ee.any,inputValue:ee.string,defaultInputValue:ee.string,initialInputValue:ee.string,id:ee.string,labelId:ee.string,menuId:ee.string,getItemId:ee.func,inputId:ee.string,toggleButtonId:ee.string,stateReducer:ee.func,onSelectedItemChange:ee.func,onHighlightedIndexChange:ee.func,onStateChange:ee.func,onIsOpenChange:ee.func,onInputValueChange:ee.func,environment:ee.shape({addEventListener:ee.func,removeEventListener:ee.func,document:ee.shape({getElementById:ee.func,activeElement:ee.any,body:ee.any})})};function UE(e,t,n){const i=V.useRef(),[r,s]=tp(e,t,n);return V.useEffect(()=>{vr(n,"selectedItem")&&(i.current!==n.selectedItem&&s({type:io,inputValue:n.itemToString(n.selectedItem)}),i.current=r.selectedItem===i.current?n.selectedItem:r.selectedItem)}),[bi(r,n),s]}let _p=wt;xe.NODE_ENV!=="production"&&(_p=(e,t)=>{ee.checkPropTypes(KE,e,"prop",t.name)});const HE={...pi,getA11yStatusMessage:Rf,circularNavigation:!0};function $E(e,t){const{type:n,props:i,shiftKey:r}=t;let s;switch(n){case to:s={isOpen:dt(i,"isOpen"),highlightedIndex:dt(i,"highlightedIndex"),selectedItem:i.items[t.index],inputValue:i.itemToString(i.items[t.index])};break;case Gs:e.isOpen?s={highlightedIndex:gn(r?5:1,e.highlightedIndex,i.items.length,t.getItemNodeFromIndex,i.circularNavigation)}:s={highlightedIndex:Wn(i,e,1,t.getItemNodeFromIndex),isOpen:i.items.length>=0};break;case Js:e.isOpen?s={highlightedIndex:gn(r?-5:-1,e.highlightedIndex,i.items.length,t.getItemNodeFromIndex,i.circularNavigation)}:s={highlightedIndex:Wn(i,e,-1,t.getItemNodeFromIndex),isOpen:i.items.length>=0};break;case Xs:s={...e.isOpen&&e.highlightedIndex>=0&&{selectedItem:i.items[e.highlightedIndex],isOpen:dt(i,"isOpen"),highlightedIndex:dt(i,"highlightedIndex"),inputValue:i.itemToString(i.items[e.highlightedIndex])}};break;case Ys:s={isOpen:!1,highlightedIndex:-1,...!e.isOpen&&{selectedItem:null,inputValue:""}};break;case Qs:s={highlightedIndex:rn(1,0,i.items.length,t.getItemNodeFromIndex,!1)};break;case Zs:s={highlightedIndex:rn(-1,i.items.length-1,i.items.length,t.getItemNodeFromIndex,!1)};break;case Er:s={isOpen:!1,highlightedIndex:-1,...e.highlightedIndex>=0&&t.selectItem&&{selectedItem:i.items[e.highlightedIndex],inputValue:i.itemToString(i.items[e.highlightedIndex])}};break;case eo:s={isOpen:!0,highlightedIndex:dt(i,"highlightedIndex"),inputValue:t.inputValue};break;case no:s={selectedItem:t.selectedItem,inputValue:i.itemToString(t.selectedItem)};break;case io:s={inputValue:t.inputValue};break;default:return ap(e,t,Cp)}return{...e,...s}}Ur.stateChangeTypes=Cp;function Ur(e){e===void 0&&(e={}),_p(e,Ur);const t={...HE,...e},{initialIsOpen:n,defaultIsOpen:i,items:r,scrollIntoView:s,environment:o,getA11yStatusMessage:l,getA11ySelectionMessage:u,itemToString:f}=t,p=zE(t),[h,d]=UE($E,p,t),{isOpen:m,highlightedIndex:b,selectedItem:v,inputValue:S}=h,E=V.useRef(null),k=V.useRef({}),I=V.useRef(null),N=V.useRef(null),y=V.useRef(null),g=V.useRef(!0),A=Xf(t),M=V.useRef(),F=Ps({state:h,props:t}),R=V.useCallback(K=>k.current[A.getItemId(K)],[A]);yr(l,[m,b,S,r],{isInitialMount:g.current,previousResultCount:M.current,items:r,environment:o,itemToString:f,...h}),yr(u,[v],{isInitialMount:g.current,previousResultCount:M.current,items:r,environment:o,itemToString:f,...h});const j=rp({menuElement:E.current,highlightedIndex:b,isOpen:m,itemRefs:k,scrollIntoView:s,getItemNodeFromIndex:R});Rs({isInitialMount:g.current,props:t,state:h}),V.useEffect(()=>{(n||i||m)&&I.current&&I.current.focus()},[]),V.useEffect(()=>{g.current||(M.current=r.length)});const B=ip(m,[y,E,N],o,()=>{d({type:Er,selectItem:!1})}),D=Os("getInputProps","getComboboxProps","getMenuProps");V.useEffect(()=>{g.current=!1},[]),V.useEffect(()=>{m||(k.current={})},[m]);const se=V.useMemo(()=>({ArrowDown(K){K.preventDefault(),d({type:Gs,shiftKey:K.shiftKey,getItemNodeFromIndex:R})},ArrowUp(K){K.preventDefault(),d({type:Js,shiftKey:K.shiftKey,getItemNodeFromIndex:R})},Home(K){F.current.state.isOpen&&(K.preventDefault(),d({type:Qs,getItemNodeFromIndex:R}))},End(K){F.current.state.isOpen&&(K.preventDefault(),d({type:Zs,getItemNodeFromIndex:R}))},Escape(K){const J=F.current.state;(J.isOpen||J.inputValue||J.selectedItem||J.highlightedIndex>-1)&&(K.preventDefault(),d({type:Ys}))},Enter(K){const J=F.current.state;!J.isOpen||J.highlightedIndex<0||K.which===229||(K.preventDefault(),d({type:Xs,getItemNodeFromIndex:R}))}}),[d,F,R]),ue=V.useCallback(K=>({id:A.labelId,htmlFor:A.inputId,...K}),[A]),te=V.useCallback(function(K,J){let{onMouseLeave:ie,refKey:X="ref",ref:$,...Y}=K===void 0?{}:K,{suppressRefError:le=!1}=J===void 0?{}:J;return D("getMenuProps",le,X,E),{[X]:$t($,de=>{E.current=de}),id:A.menuId,role:"listbox","aria-labelledby":A.labelId,onMouseLeave:et(ie,()=>{d({type:mp})}),...Y}},[d,D,A]),ae=V.useCallback(function(K){let{item:J,index:ie,refKey:X="ref",ref:$,onMouseMove:Y,onMouseDown:le,onClick:de,onPress:Se,disabled:ye,...ke}=K===void 0?{}:K;const{props:Ie,state:be}=F.current,Pe=ep(ie,J,Ie.items);if(Pe<0)throw new Error("Pass either item or item index in getItemProps!");const Be="onClick",$e=de,Te=()=>{ie!==be.highlightedIndex&&(j.current=!1,d({type:xp,index:ie,disabled:ye}))},nt=()=>{d({type:to,index:ie})},Q=re=>re.preventDefault();return{[X]:$t($,re=>{re&&(k.current[A.getItemId(Pe)]=re)}),disabled:ye,role:"option","aria-selected":`${Pe===be.highlightedIndex}`,id:A.getItemId(Pe),...!ye&&{[Be]:et($e,nt)},onMouseMove:et(Y,Te),onMouseDown:et(le,Q),...ke}},[d,F,j,A]),ge=V.useCallback(function(K){let{onClick:J,onPress:ie,refKey:X="ref",ref:$,...Y}=K===void 0?{}:K;const le=()=>{d({type:vp}),!F.current.state.isOpen&&I.current&&I.current.focus()};return{[X]:$t($,de=>{N.current=de}),id:A.toggleButtonId,tabIndex:-1,...!Y.disabled&&{onClick:et(J,le)},...Y}},[d,F,A]),ve=V.useCallback(function(K,J){let{onKeyDown:ie,onChange:X,onInput:$,onBlur:Y,onChangeText:le,refKey:de="ref",ref:Se,...ye}=K===void 0?{}:K,{suppressRefError:ke=!1}=J===void 0?{}:J;D("getInputProps",ke,de,I);const Ie=F.current.state,be=nt=>{const Q=yi(nt);Q&&se[Q]&&se[Q](nt)},Pe=nt=>{d({type:eo,inputValue:nt.target.value})},Be=()=>{Ie.isOpen&&!B.current.isMouseDown&&d({type:Er,selectItem:!0})},$e="onChange";let Te={};return ye.disabled||(Te={[$e]:et(X,$,Pe),onKeyDown:et(ie,be),onBlur:et(Y,Be)}),{[de]:$t(Se,nt=>{I.current=nt}),id:A.inputId,"aria-autocomplete":"list","aria-controls":A.menuId,...Ie.isOpen&&Ie.highlightedIndex>-1&&{"aria-activedescendant":A.getItemId(Ie.highlightedIndex)},"aria-labelledby":A.labelId,autoComplete:"off",value:Ie.inputValue,...Te,...ye}},[d,se,F,B,D,A]),L=V.useCallback(function(K,J){let{refKey:ie="ref",ref:X,...$}=K===void 0?{}:K,{suppressRefError:Y=!1}=J===void 0?{}:J;return D("getComboboxProps",Y,ie,y),{[ie]:$t(X,le=>{y.current=le}),role:"combobox","aria-haspopup":"listbox","aria-owns":A.menuId,"aria-expanded":F.current.state.isOpen,...$}},[F,D,A]),G=V.useCallback(()=>{d({type:bp})},[d]),ne=V.useCallback(()=>{d({type:wp})},[d]),O=V.useCallback(()=>{d({type:yp})},[d]),he=V.useCallback(K=>{d({type:Ep,highlightedIndex:K})},[d]),W=V.useCallback(K=>{d({type:no,selectedItem:K})},[d]),Z=V.useCallback(K=>{d({type:Sp,inputValue:K})},[d]),H=V.useCallback(()=>{d({type:kp})},[d]);return{getItemProps:ae,getLabelProps:ue,getMenuProps:te,getInputProps:ve,getComboboxProps:L,getToggleButtonProps:ge,toggleMenu:G,openMenu:O,closeMenu:ne,setHighlightedIndex:he,setInputValue:Z,selectItem:W,reset:H,highlightedIndex:b,isOpen:m,selectedItem:v,inputValue:S}}ee.array,ee.array,ee.array,ee.func,ee.func,ee.func,ee.number,ee.number,ee.number,ee.func,ee.func,ee.string,ee.string,ee.shape({addEventListener:ee.func,removeEventListener:ee.func,document:ee.shape({getElementById:ee.func,activeElement:ee.any,body:ee.any})});pi.itemToString,pi.stateReducer,pi.environment;const Iu=[{label:"json",value:"json"},{label:"csv",value:"csv"}],qE=({onSelect:e})=>{const{isOpen:t,selectedItem:n,getToggleButtonProps:i,getMenuProps:r,getItemProps:s}=Ws({items:Iu,onSelectedItemChange:({selectedItem:o})=>{e(o==null?void 0:o.value)},itemToString:o=>o?o.value:""});return C.jsxs("div",{className:"w-full",children:[C.jsxs("div",{"data-cy":"localization-export-file-type-select",className:Ue("w-full p-2 flex items-center justify-between cursor-pointer space-x-1 bg-grey-300 text-grey-50 h-6",{"border-l border-r border-t border-primary-dark rounded-t":t,rounded:!t}),...i(),children:[C.jsx("span",{className:"text-grey-50 text-xs",children:n?n.label:"Select a file format"}),C.jsx(Je.FdDown,{className:"w-4 h-4"})]}),C.jsx("ul",{className:Ue("h-full rounded-b py-[6px]",{hidden:!t,"border-[1px] border-primary-dark":t}),...r(),children:t&&Iu.map((o,l)=>C.jsx("li",{className:Ue("h-5 p-1 bg-grey-900 text-xs hover:bg-primary-hover cursor-pointer"),...s({item:o,index:l}),children:o.label},l))})]})},WE=({selected:e,delimiter:t,onSelect:n,label:i})=>C.jsxs("div",{className:"flex flex-row items-center justify-between space-x-2",children:[C.jsx("div",{className:"flex h-[16px] w-[16px] items-center justify-center rounded-full border",onClick:()=>n(t),children:e===t&&C.jsx("div",{className:"h-2 w-2 rounded-full bg-primary-dark"})}),C.jsxs("div",{className:"text-sm text-grey-50",children:[i,` (${t})`]})]}),GE=({enable:e,onSelect:t})=>{const{state:n,actions:i}=fe.useStateObject({delimiters:[{label:"Comma",value:","},{label:"Semicolon",value:";"}],selected:","});return V.useEffect(()=>{t(n.selected)},[n.selected]),e?C.jsxs("div",{className:"flex flex-row items-center justify-between",children:[C.jsx("span",{className:"text-sm text-grey-50",children:" Select a Delimiter "}),C.jsx("div",{className:"flex flex-row space-x-2",children:n.delimiters.map(({label:r,value:s},o)=>C.jsx(WE,{onSelect:l=>i.setSelected(l),selected:n.selected,delimiter:s,label:r},o))})]}):C.jsx(C.Fragment,{})},JE={SELECT_FILE_TYPE:"Please Select a File Format !"},YE=({toExport:e})=>{var se,ue;const[t,n]=V.useState(),i=vn(),r=i.getWebformTabs(),s=V.useRef(null),o=V.useRef([]),l=V.useRef([]),{i18n:u}=sn(),f=((se=i.getUserComponents)==null?void 0:se.call(i))??{},p=((ue=i.getBuildResolver)==null?void 0:ue.call(i))??{},[h]=V.useState(!0),{state:{isOpen:d,fileType:m,error:b,csvDelimier:v},actions:S}=fe.useStateObject({error:"",isOpen:!1,fileType:"",supprtedExtension:[".json",".csv"],csvDelimier:","}),E=e.length===0;V.useEffect(()=>{fe.tasksManagerSubject.subscribe({next:te=>{if(te.type==="i18n"&&te.action==="cancel"){const{id:ae}=te;l.current.push(ae)}}}),n({...p,...f})},[]);const k=()=>{S.setFileType(""),S.setError(""),S.setIsOpen(!1)},I=()=>{k()},N=()=>I(),y=()=>{const te={};t&&(Object.entries(t).forEach(([ae,ge])=>{const{info:{settings:ve}}=ge;if(ve)if(ae==="Text")te.Text=[{keyPropName:"doc",keyDefaultName:"text"}];else{const L=g(ve,"");te[ae]=L}}),s.current=te)},g=(te,ae)=>{let ge=[];if(Array.isArray(te))te.forEach(ve=>ge=ge.concat(g(ve,ae)));else if(oe.isObject(te)){const{key:ve,type:L}=te;if(L===fe.ESetting.GROUP){const{components:G}=te;G==null||G.forEach(ne=>ge=ge.concat(g(ne,ae)))}else L===fe.ESetting.I18NFIELD?ge.push({keyPropName:ae||ve,keyDefaultName:ve}):Object.entries(te).forEach(([,G])=>{oe.isObject(G)&&(ge=ge.concat(g(G,ae||ve)))})}return ge},A=(te,ae)=>{const{content:ge}=te,{components:ve}=ge,L={};if(!ve)return te;const G=(O,he,W,Z)=>{const H=[];if(oe.has(O,W)){const ie=oe.get(O,W);H.push(...Xa(ie,W,Z))}const J=[];return H.forEach(ie=>{const X=oe.get(O,ie),$={__dataPath:ie,__default:X};e.forEach(Y=>{const le=`i18n:${Y}`,de=Object.keys(he),Se=de.find(ke=>ke.startsWith(le)),ye=de.reduce((ke,Ie)=>(Ie!==le&&Ie.endsWith(le)&&ke.push(Ie),ke),[]);if(Se){const ke=oe.get(he,`${Se}.${ie}`);oe.set($,Y,ke)}if(ye.length&&ye.forEach(ke=>{const Ie=oe.get(he,`${ke}.${ie}`);let be=ke;be=ke.replace("states:",""),be=be.replace("i18n:",""),Ie&&oe.set($,be,Ie)}),!Se){const ke=oe.get(O,`${ie}`);oe.set($,Y,ke)}}),J.push($)}),J},ne=(O,he,W)=>{const Z=[],H=oe.get(O,W);return H?(Z.push({key:"__default",props:H}),e.forEach(J=>{const ie=`i18n:${J}`,X=Object.keys(he),$=X.find(le=>le.startsWith(ie)),Y=X.reduce((le,de)=>(de!==ie&&de.endsWith(ie)&&le.push(de),le),[]);if($){const le=oe.get(he,`${$}.${W}`);le&&Z.push({key:J,props:le})}Y.length&&Y.forEach(le=>{const de=oe.get(he,`${le}.${W}`);Z.push({key:le,props:de||""})}),!$&&!Y.length&&Z.push({key:J,props:H})}),Z.reduce((J,ie)=>{const{key:X,props:$}=ie,Y=g1($);return{...J,[X]:Y}},{__dataPath:W})):O};return Object.entries(ve).forEach(([O,he])=>{const{props:W,custom:Z={},type:H}=he,K=H.resolvedName,J=ae[K];if(!J||J.length===0)return;const ie=J.map(({keyPropName:X,keyDefaultName:$})=>K==="Text"?ne(W,Z,X):G(W,Z,X,$));oe.set(L,O,{resolverName:K,props:[...ie.flat()]})}),L},M=async(te,ae)=>{const ge={},ve=L=>{const G=L+1===te.length?te.length:L,ne=Math.ceil(G/te.length*100);fe.tasksManagerSubject.next({id:ae,action:"update",type:"i18n",payload:{progress:ne,status:ne>=100?"finished":"ongoing"}})};for(let L=0;L<te.length;L++){const G=te[L],ne=r.find(W=>W.name===G.name&&W.type==="webform");if(!s.current){ve(L);continue}const O=ne||await fe.getNodeInfo({verb:fe.DesignerRequestVerb.GET_INFO,content:!0,path:`WebForms/${G.name}.${G.ext}`,as:"json"}),he=A(O,s.current);if(oe.isEmpty(he)||oe.set(ge,G.name,he),l.current.find(W=>W===ae))return{};ve(L)}return ge},F=(te,ae,ge)=>{const ve="data:text/json;charset=utf-8,"+encodeURIComponent(te),L=document.createElement("a");L.setAttribute("href",ve),L.setAttribute("download",ae+`.${ge}`),document.body.appendChild(L),L.click(),L.remove()},R=te=>{switch(m){case"csv":{const ae=["keys","resolverName","__t"].concat(e.concat(["i18nkey_default"]));return p1(te,ae,v)}case"json":return JSON.stringify(te,null," ");default:return JSON.stringify(te,null," ")}},j=(te,ae)=>{Object.entries(ae.keys).forEach(([ve,L])=>{Object.keys(L).forEach(G=>{o.current.push(`i18n.${ve}.${G}`)})});const ge={};return Object.entries(ae.keys).forEach(([ve,L])=>{ge[ve]={default:L.default},e.forEach(G=>{ge[ve][G]=Object.hasOwn(L,G)?L[G]:h?L.default:void 0})}),{webforms:{...te},i18n:ge}},B=te=>S.setCsvDelimier(te),D=async()=>{const te=ss.generate().toString();try{fe.tasksManagerSubject.next({id:te,action:"add",type:"i18n",payload:{progress:0,name:"Export i18n",status:"ongoing",date:new Date().toISOString(),time:f1()}}),y();const ae=await Wh(),ge=await M(ae,te),ve=j(ge,u),L=R(ve);oe.isEmpty(L)||F(L,"export-i18n",m),k()}catch(ae){fe.tasksManagerSubject.next({id:te,type:"i18n",action:"update",payload:{status:"canceled"}}),fe.tasksManagerSubject.next({id:te,type:"i18n",action:"error",payload:{errorMessage:ae.message||"Export file error"}})}k()};return C.jsxs(C.Fragment,{children:[C.jsx(fe.Tooltip,{label:"Export",container:it(),children:C.jsx("button",{"data-cy":"localization-export-button",disabled:E,className:Ue("flex h-full flex-row items-center p-1 rounded disabled:opacity-50",{"cursor-not-allowed":E},{"hover:bg-primary-hover":!E}),onClick:()=>{S.setIsOpen(!0)},children:C.jsx(Je.FdUpload,{className:"h-4 w-4"})})}),C.jsxs(Af,{isOpen:d,onClose:I,title:"Export","data-cy":"localization-export-dialog",children:[C.jsx("div",{className:"mt-4",children:C.jsx(qE,{onSelect:te=>S.setFileType(te)})}),C.jsx(GE,{enable:m==="csv",onSelect:B}),C.jsxs("div",{className:"mt-3 flex items-center justify-between gap-4",children:[C.jsxs("div",{className:"flex flex-row space-x-1 justify-center items-center text-purple-600 hover:underline cursor-pointer",onClick:()=>{window.open("https://developer.4d.com/qodly/4DQodlyPro/localization#exporting-and-importing-translations","_blank")},children:[C.jsx("p",{className:"text-xs",children:"How to Export an i18n File"}),C.jsx(Je.FdOutload,{className:"ml-1 h-4 w-4 text-grey-50"})]}),C.jsxs("div",{className:"flex items-center space-x-2",children:[C.jsx("button",{onClick:N,className:"rounded border w-16 border-white px-2 py-1 text-xs font-medium text-grey-50 hover:bg-white hover:border-white hover:font-bold hover:text-primary-dark",children:"Cancel"}),C.jsx("button",{onClick:()=>{m?(S.setIsOpen(!1),D()):S.setError(JE.SELECT_FILE_TYPE)},className:"rounded w-16 px-2 py-1 text-xs font-medium text-grey-50 bg-primary-dark hover:border-white hover:border hover:bg-primary-hover hover:text-white hover:font-bold",children:"Export"})]})]}),b&&C.jsx("div",{className:"flex items-center justify-center p-2",children:C.jsx("span",{className:"text-sm text-red-500",children:b})})]})]})},QE={DROP_EVENT_ERROR:"Not Suported File type! Only .json and .csv are Supported."},ZE=["default"],XE={MISSING_WEBFORMS_OR_I18N:"The file must contain 'webforms' or 'i18n' (or both). The file is empty or missing these keys."},Ip=["__dataPath","__default","default","__t","i18nkey_default"],eS=["i18n:","state:"],Sr=e=>Ip.includes(e)||eS.some(t=>e.startsWith(t)),tS=e=>{const t=new Set;return e.webforms&&Object.values(e.webforms).forEach(n=>{Object.values(n).forEach(i=>{(i.props||[]).forEach(r=>{Object.keys(r).forEach(s=>{Sr(s)||t.add(s)})})})}),e.i18n&&Object.values(e.i18n).forEach(n=>{Object.keys(n||{}).forEach(i=>{Sr(i)||t.add(i)})}),Array.from(t).sort()},Au=e=>{if(Ip.includes(e))return null;if(e.startsWith("state:")){const t=e.lastIndexOf("i18n:");return t!==-1&&e.slice(t+5)||null}return e},nS=(e,t)=>{const n=new Set(t),i={};return e.webforms&&(i.webforms={},Object.entries(e.webforms).forEach(([r,s])=>{if(!s||typeof s!="object")return;const o={};Object.entries(s).forEach(([l,u])=>{if(!u||typeof u!="object")return;const f={resolverName:u.resolverName};u.resolverName==="Text"?(u.props&&(f.props=u.props),u.custom&&(f.custom={},Object.entries(u.custom).forEach(([h,d])=>{const m=h.startsWith("state:")||h.startsWith("states:")?Au(h):h.startsWith("i18n:")?h.slice(5):h;m&&n.has(m)&&(f.custom[h]=d)}))):Object.entries(u).forEach(([h,d])=>{if(h!=="resolverName")if(d&&oe.isObject(d)&&!Array.isArray(d)){const m={};Object.entries(d).forEach(([b,v])=>{const S=Au(b);(S===null||n.has(S))&&(m[b]=v)}),Object.keys(m).length>0&&(f[h]=m)}else f[h]=d}),o[l]=f}),i.webforms[r]=o})),e.i18n&&(i.i18n={},Object.entries(e.i18n).forEach(([r,s])=>{if(!s||typeof s!="object")return;const o={};Object.entries(s).forEach(([l,u])=>{(l==="default"||!Sr(l)&&n.has(l))&&(o[l]=u)}),Object.keys(o).length>0&&(i.i18n[r]=o)})),i},iS=e=>{const{data:t}=ls.parse(e),n=t[0];if(!n||!Array.isArray(n))return[];const i=n.slice(2).filter(r=>r&&!Sr(r.trim()));return[...new Set(i)].sort()},Kn={EMPTY_OR_INVALID:"The CSV file is empty or could not be parsed.",HEADER_REQUIRED:"The first row must be a header with at least columns: 'keys', 'resolverName', and one locale (e.g. __t, fr, en).",KEY_FORMAT:"Each data row's first column (keys) must be non-empty and start with 'webforms.' or 'i18n.'.",ROW_COLUMNS:"Every row must have the same number of columns as the header."},rS=e=>{const t=Gh(e),{data:n}=ls.parse(t),i=n;if(!(i!=null&&i.length))return{valid:!1,message:Kn.EMPTY_OR_INVALID};const r=i[0];if(!r||r.length<3)return{valid:!1,message:Kn.HEADER_REQUIRED};const s=(r[0]??"").trim().toLowerCase(),o=(r[1]??"").trim().toLowerCase();if(s!=="keys"||o!=="resolvername")return{valid:!1,message:Kn.HEADER_REQUIRED};const l=r.length;for(let u=1;u<i.length;u++){if(i[u].length<=1)continue;const f=i[u];if(!f||f.length!==l)return{valid:!1,message:Kn.ROW_COLUMNS};const p=(f[0]??"").trim();if(!p)return{valid:!1,message:Kn.KEY_FORMAT};if(!p.startsWith("webforms.")&&!p.startsWith("i18n."))return{valid:!1,message:Kn.KEY_FORMAT}}return{valid:!0}},aS=(e,t)=>{const i=new dd.Validator().validate(e,t);if(i.valid)return{valid:!0};const r=i.errors[0],s=r?`${r.property||"root"} ${r.message}`.trim():"Invalid file format";return{valid:!1,message:oe.isObject(e)&&!oe.has(e,"webforms")&&!oe.has(e,"i18n")&&(s.includes("subschema")||s.includes("any of"))?XE.MISSING_WEBFORMS_OR_I18N:s}},sS="Export i18n",oS="Schema for i18n export format. Must have webforms, i18n, or both.",lS="object",uS=!1,cS={webforms:{type:"object",description:"Webform names to their component localizations",additionalProperties:{$ref:"#/definitions/webformComponents"}},i18n:{type:"object",description:"Shared i18n keys and their localized values",additionalProperties:{$ref:"#/definitions/i18nKeys"}}},hS=[{required:["webforms"]},{required:["i18n"]}],fS={webformComponents:{type:"object",description:"Component ID to component localization entry",additionalProperties:{$ref:"#/definitions/componentEntry"}},componentEntry:{type:"object",required:["resolverName","props"],additionalProperties:!1,properties:{resolverName:{type:"string",description:"Name of the component resolver (e.g. Button)"},props:{type:"array",description:"Localized prop entries",items:{$ref:"#/definitions/propLocalization"}}}},propLocalization:{type:"object",required:["__dataPath","__default"],properties:{__dataPath:{type:"string",description:"Path to the prop (e.g. text)"},__default:{type:"string",description:"Default value for the prop"}},additionalProperties:{type:"string",description:"Locale code to localized string (e.g. fr, en)"}},i18nKeys:{type:"object",required:["default"],properties:{default:{type:"string",description:"Default value"}},additionalProperties:{type:"string",description:"Locale code to localized string (e.g. fr, en)"}}},pS={title:sS,description:oS,type:lS,additionalProperties:uS,properties:cS,anyOf:hS,definitions:fS},dS=({label:e,isocode:t,isChecked:n,onToggle:i})=>C.jsxs("label",{className:"flex cursor-pointer items-center gap-2 rounded py-0.5 text-xs text-grey-50 hover:bg-grey-700 hover:text-white",children:[C.jsx(fe.Checkbox,{className:"h-4",isChecked:n,onChange:i}),C.jsx("span",{className:"truncate",title:t,children:e})]}),gS=({detectedLanguageDetails:e,selectedIsocodes:t,onToggleIsocode:n})=>C.jsxs("div",{className:"mt-2 w-full rounded border border-grey-50 bg-grey-800 px-2 py-1.5",children:[C.jsx("p",{className:"mb-1.5 text-xs font-medium text-grey-100",children:"Detected locales"}),C.jsx("div",{className:"flex flex-col gap-1 overflow-y-auto",style:{maxHeight:"5rem"},children:e.map(i=>C.jsx(dS,{label:`${i.native} - ${i.isocode??""}`,isocode:i.isocode,isChecked:t.includes(i.isocode),onToggle:()=>n(i.isocode)},i.isocode))})]}),mS="Drop or Add a File !",xS=({getRootProps:e,getInputProps:t,isDragActive:n,file:i,error:r,onResetFile:s,detectedLanguageDetails:o,selectedIsocodes:l,onToggleIsocode:u,onClose:f,onImport:p,setError:h,hasNoSelection:d})=>C.jsxs(C.Fragment,{children:[C.jsxs("div",{className:"mt-4 space-y-2",children:[C.jsxs("div",{...e(),children:[C.jsx("input",{...t()}),C.jsx("div",{className:Ue("min-h-[100px] rounded border border-dashed text-center text-sm",{"border-purple-500":n,"flex items-center justify-center":i}),children:i?C.jsxs("div",{className:"flex items-center justify-center gap-1 px-2",children:[C.jsx("p",{className:"min-w-0 flex-1 truncate",children:i.name}),C.jsx(fe.Tooltip,{label:"Remove file",container:it(),children:C.jsx("button",{type:"button",onClick:m=>{m.stopPropagation(),s()},className:"flex shrink-0 rounded p-1 text-grey-100 hover:bg-grey-700 hover:text-white","aria-label":"Remove file",children:C.jsx(Je.FdClose,{className:"h-4 w-4"})})})]}):C.jsxs("div",{className:"flex min-h-[100px] w-full flex-col items-center justify-center text-grey-100",children:[C.jsx("p",{className:"max-w-md px-2 text-center text-xs ",children:'Drag and drop the file with ".json" or ".csv" extension here or click to select it from your computer.'}),C.jsx(Je.FdDownload,{className:"mt-2 h-6 w-6 text-grey-200"})]})}),r&&C.jsx("div",{className:"flex items-center justify-center p-2",children:C.jsx("p",{className:"text-xs text-red-400",children:r})})]}),i&&o.length>0&&C.jsx(gS,{detectedLanguageDetails:o,selectedIsocodes:l,onToggleIsocode:u})]}),C.jsxs("div",{className:"mt-4 flex items-center justify-between gap-4",children:[C.jsxs("div",{className:"flex flex-row space-x-1 justify-center items-center text-purple-600 hover:underline cursor-pointer",onClick:()=>{window.open("https://developer.4d.com/qodly/4DQodlyPro/localization#exporting-and-importing-translations","_blank")},children:[C.jsx("p",{className:"text-xs",children:"How to Import an i18n File"}),C.jsx(Je.FdOutload,{className:"ml-1 h-4 w-4 text-grey-50"})]}),C.jsxs("div",{className:"flex items-center space-x-2",children:[C.jsx("button",{onClick:f,className:"rounded border w-16 border-white px-2 py-1 text-xs font-medium text-grey-50 hover:bg-white hover:border-white hover:font-bold hover:text-primary-dark",children:"Cancel"}),C.jsx("button",{disabled:d,onClick:()=>{!r&&i?p():i||h(mS)},className:Ue("rounded w-16 px-2 py-1 text-xs font-medium text-grey-50 bg-primary-dark",d&&"cursor-not-allowed opacity-50",!d&&"hover:border-white hover:border hover:bg-primary-hover hover:text-white hover:font-bold"),children:"Import"})]})]})]}),vS=({summary:e,onClose:t})=>C.jsxs(C.Fragment,{children:[C.jsxs("div",{className:"mt-4 space-y-4",children:[C.jsx("p",{className:"text-sm text-grey-100",children:"Summary"}),C.jsxs("div",{className:"rounded border border-grey-50 bg-grey-800 px-3 py-3 space-y-2",children:[C.jsxs("div",{className:"flex items-center justify-between text-xs",children:[C.jsx("span",{className:"text-grey-200",children:"Keys Imported"}),C.jsx("span",{className:"font-medium text-white",children:e.importedKeys})]}),C.jsxs("div",{className:"flex items-center justify-between text-xs",children:[C.jsx("span",{className:"text-grey-200",children:"Keys Merged"}),C.jsx("span",{className:"font-medium text-white",children:e.mergedKeys})]}),C.jsxs("div",{className:"flex items-center justify-between text-xs",children:[C.jsx("span",{className:"text-grey-200",children:"Keys Unchanged"}),C.jsx("span",{className:"font-medium text-white",children:e.unchangedKeys})]})]})]}),C.jsx("div",{className:"mt-4 flex justify-end",children:C.jsx("button",{onClick:t,className:"rounded border border-white px-4 py-1.5 text-xs font-medium text-grey-50 hover:bg-white hover:border-white hover:font-bold hover:text-primary-dark",children:"Close"})})]}),Ap=({disable:e,enable:t,RenderTrigger:n})=>{const i=vn(),{state:{file:r,isOpen:s,supprtedExtension:o,error:l,content:u,detectedLanguages:f,selectedIsocodes:p,showSummaryView:h,summary:d},actions:m}=fe.useStateObject({file:null,error:"",isOpen:!1,fileType:"",supprtedExtension:[".json",".csv"],content:{},detectedLanguages:[],selectedIsocodes:[],showSummaryView:!1,summary:{importedKeys:0,mergedKeys:0,unchangedKeys:0}}),b=i.getWebformTabs(),{i18n:{keys:v}}=sn(),{allSupportedLanguages:S,userLanguages:{supported:E,primary:k},setUserLangSettings:I}=on(),N=V.useMemo(()=>S.filter(W=>f.includes(W.isocode)),[S,f]),y=W=>{const Z=new Set(E.map(J=>J.isocode)),H=W.filter(J=>!Z.has(J));if(H.length===0)return;const K=H.map(J=>dn(J,S)).filter(J=>J!=null).map(J=>({isocode:J.isocode}));K.length!==0&&I({primary:E.length===0?K[0].isocode:k,supported:E.concat(K)})},{getRootProps:g,getInputProps:A,isDragActive:M}=pd.useDropzone({async onDropAccepted([W]){if(o.find(Z=>W.name.endsWith(Z))){m.setError(""),m.setFile(W);const Z=await j(W),H=W.name.split(".").pop()||"";try{if(H==="csv"){const K=rS(Z);if(!K.valid){m.setError(K.message);return}const J=L(Z,H);m.setContent(J||{});const ie=iS(Z);m.setDetectedLanguages(ie),m.setSelectedIsocodes(ie)}else{const K=JSON.parse(Z),J=aS(K,pS);if(!J.valid){m.setError(J.message);return}const ie=L(Z,H);m.setContent(ie||{});const X=tS(K);m.setDetectedLanguages(X),m.setSelectedIsocodes(X)}}catch(K){m.setError(K.message||"Invalid file");return}}else m.setError(QE.DROP_EVENT_ERROR)},accept:{"application/*":o},multiple:!1}),F=()=>{m.setFileType(""),m.setError(""),m.setFile(null),m.setContent({}),m.setDetectedLanguages([]),m.setSelectedIsocodes([])},R=()=>{m.setIsOpen(!1),m.setShowSummaryView(!1),m.setSummary({importedKeys:0,mergedKeys:0,unchangedKeys:0}),F()},j=W=>new Promise(Z=>{const H=new FileReader;H.onload=()=>Z(H.result),H.readAsText(W)}),B=async(W,Z,H)=>{if(H){const K=`WebForms/${Z}.WebForm`;await i.actions.setTabContent({path:K,content:W.content}),fe.webformSubject.next({path:K,action:fe.WebformActions.RECOMPUTE,payload:W.content.components})}else{const K={...W};await fe.saveContent({verb:fe.DesignerRequestVerb.SAVE_CONTENT,content:K.content,path:`WebForms/${Z}.WebForm`})}},D=(W,Z)=>{const{content:{components:H}}=oe.cloneDeep(W);if(!H)return W;const K=(X,$,Y,le)=>{if(Array.isArray(X))X.forEach((de,Se)=>{let ye="";Y==="Text"?ye=Array.isArray(de)?`${$}.[${Se}].children`:`${$}.[${Se}]`:ye=`${$}.[${Se}]`,K(de,ye,Y,le)});else if(oe.isObject(X))if(Object.keys(X).length>1){const Se=Object.keys(X),ye={};Se.forEach(Ie=>{const be=oe.get(X,Ie);if(Ie==="__t")oe.set(le,`props.${$}`,be);else if(be&&Ie.startsWith("states:")){const Pe=Ie.split(":"),Be=Pe.map(($e,Te)=>Te+1===Pe.length?`i18n:${$e}`:$e).join(":");if(!le.custom)return;oe.set(ye,`${Be}.${$}`,be)}else if(be){const Pe=`i18n:${Ie}`;if(!le.custom)return;oe.set(ye,`${Pe}.${$}`,be)}});const[ke]=$.split(".");Object.entries(ye).forEach(([Ie,be])=>{const Pe=oe.get(le,`props.${ke}`,{}),Be=oe.get(le,`custom.${Ie}.${ke}`);let $e="";typeof Be=="string"||typeof Pe=="string"?$e=oe.get(be,ke):$e=oe.merge(Be||oe.cloneDeep(Pe),oe.get(be,ke)),oe.set(le,`custom.${Ie}.${ke}`,$e)})}else{const Se=Object.entries(X)[0],ye=Se[0],ke=Se[1];$=`${$}.${ye}`,K(ke,$,Y,le)}},J=Object.entries(Z);for(let X=0;X<J.length;X++){const[$,Y]=J[X],{resolverName:le,...de}=Y,Se=oe.get(H,$);if(Se)if(le==="Text"){const{custom:ye,props:ke}=de;oe.set(H,$,{...Se,props:{...Se.props,...ke},custom:{...Se.custom,...ye}})}else Object.entries(de).forEach(([ye,ke])=>{const Ie=oe.get(H,$);if(!Ie)return;const be=oe.cloneDeep(Ie);K(ke,ye,le,be),oe.set(H,$,be)})}const ie=oe.cloneDeep(W);return oe.set(ie,"content.components",H),ie},se=W=>W==null||typeof W=="string"&&W.trim()==="",ue=(W,Z)=>{const H=W&&oe.isObject(W)?W:{},K=Z&&oe.isObject(Z)?Z:{};if(se(K))return oe.cloneDeep(H);const J=oe.cloneDeep(H);for(const ie of Object.keys(K)){const X=K[ie];if(!X||!oe.isObject(X))continue;const $=J[ie],Y=new Set([...Object.keys(X),...$&&oe.isObject($)?Object.keys($):[]]),le={};for(const de of Y){const Se=oe.get(X,de),ye=$&&oe.isObject($)?oe.get($,de):void 0;se(Se)?se(ye)||(le[de]=ye):le[de]=Se}for(const de of ZE){const Se=oe.get(le,de),ye=$&&oe.isObject($)?oe.get($,de):void 0;!se(ye)&&se(Se)&&oe.set(le,de,ye)}J[ie]=le}return J},te=(W,Z)=>{const H={importedKeys:0,mergedKeys:0,unchangedKeys:0},K=new Set(Object.keys(Z||{}));for(const J of K){const ie=Z[J],X=W[J];if(!X||!oe.isObject(X)){H.importedKeys+=1;continue}const $=Object.keys(ie);let Y=!1;for(const le of $){const de=ie[le],Se=oe.get(X,le),ye=se(de)&&!se(Se),ke=String(de??"")===String(Se??"");if(!ye&&!ke){Y=!0;break}}$.length>0&&!Y?H.unchangedKeys+=1:Y&&(H.mergedKeys+=1)}for(const J of Object.keys(W))K.has(J)||(H.unchangedKeys+=1);return H},ae=async(W,Z,H)=>{const{webforms:K,i18n:J}=W,ie=ue(v,J),X=te(v,J);fe.i18nSubject.next({action:"set_content",payload:ie});const $=Y=>{const le=Y+1===Z.length?Z.length:Y,de=Math.ceil(le/Z.length*100);fe.tasksManagerSubject.next({id:H,action:"update",type:"i18n",payload:{progress:de,status:de>=100?"finished":"ongoing"}})};if(se(K))return X;for(let Y=0;Y<Z.length;Y++){const le=Z[Y],de=b.find(be=>be.name===le.name&&be.type==="webform"),Se=!!de,ye=Se?de:await fe.getNodeInfo({verb:fe.DesignerRequestVerb.GET_INFO,content:!0,path:`WebForms/${le.name}.${le.ext}`,as:"json"}),{name:ke}=ye;if(!K[ke]){$(Y);continue}const Ie=D(ye,K[ke]);await B(Ie,ke,Se),$(Y)}return X},ge=W=>{const Z=Gh(W),{data:H}=ls.parse(Z),K={};let J=[];return H.forEach((ie,X)=>{if(X===0){J=ie;return}let $="",Y="";ie.forEach((le,de)=>{if(de===0)$=le;else if(de===1)Y=le;else if($.startsWith("i18n")){if(oe.has(K,$)&&oe.get(K,$))return;oe.set(K,$,le)}else if(le){const{webformName:Se,componentId:ye,propName:ke}=x1($);if(oe.set(K,`webforms.${Se}.${ye}.resolverName`,Y),Y==="Text"){const Ie=va(le),be=J[de];be==="__t"?oe.set(K,`webforms.${Se}.${ye}.props.${ke}`,Ie):oe.set(K,`webforms.${Se}.${ye}.custom.i18n:${be}.${ke}`,Ie)}else{const Ie=J[de];let be=Ie==="i18nkey_default"?"default":Ie;if(be.includes(":")){const Pe=be.split(":");be=Pe.map((Be,$e)=>$e===0?`states:${Be}`:$e===Pe.length-1?`i18n:${Be}`:Be).join(":")}oe.set(K,`${$}.${be}`,le)}}})}),K},ve=W=>{const Z=JSON.parse(W),H={},{webforms:K,i18n:J}=Z;return K&&Object.keys(K).forEach(X=>{const $=oe.get(K,X);Object.keys($).forEach(le=>{const de=oe.get($,le),{props:Se,resolverName:ye}=de;oe.set(H,`webforms.${X}.${le}.resolverName`,ye),Array.isArray(Se)&&Se.forEach(({__dataPath:ke,__default:Ie,...be})=>{if(ye==="Text"){const Pe=va(Ie);oe.set(H,`webforms.${X}.${le}.props.doc`,Pe),Object.keys(be).forEach(Be=>{const $e=va(be[Be]);oe.set(H,`webforms.${X}.${le}.custom.i18n:${Be}.doc`,$e)})}else oe.set(H,`webforms.${X}.${le}.${ke}.__t`,Ie),Object.keys(be).forEach(Pe=>{let Be=Pe;if(Be.includes(":")){const $e=Be.split(":");Be=$e.map((Te,nt)=>nt===0?`states:${Te}`:nt===$e.length-1?`i18n:${Te}`:Te).join(":")}oe.set(H,`webforms.${X}.${le}.${ke}.${Be}`,be[Pe])})})})}),J&&Object.keys(J).forEach(X=>{const $=oe.get(J,X);$&&Object.keys($).forEach(le=>{const de=oe.get($,le);oe.set(H,`i18n.${X}.${le}`,de)})}),H},L=(W,Z)=>{switch(Z){case"csv":return ge(W);case"json":return ve(W)}},G=async()=>{if(r){const W=ss.generate().toString();try{fe.tasksManagerSubject.next({id:W,action:"add",type:"i18n",payload:{date:new Date().toISOString(),progress:0,name:"Import i18n",status:"ongoing"}});const Z=await Wh(),H=nS(u,p),K=await ae(H,Z,W);m.setSummary(K),m.setShowSummaryView(!0),y(p)}catch(Z){fe.tasksManagerSubject.next({id:W,type:"i18n",action:"update",payload:{status:"canceled"}}),fe.tasksManagerSubject.next({id:W,type:"i18n",action:"error",payload:{errorMessage:Z.message||"Import file error"}})}}};if(!t)return C.jsx(C.Fragment,{});const ne=()=>{m.setIsOpen(!0),F()},O=W=>{m.setSelectedIsocodes(p.includes(W)?p.filter(Z=>Z!==W):[...p,W])},he=n?C.jsx(n,{onClick:ne,disabled:!!e}):C.jsx(fe.Tooltip,{label:"Import",container:it(),children:C.jsx("button",{"data-cy":"localization-import-button",disabled:e,className:Ue("flex h-full flex-row items-center rounded p-1 disabled:opacity-50",{"cursor-not-allowed":e},{"hover:bg-primary-hover":!e}),onClick:ne,children:C.jsx(Je.FdDownload,{className:"h-4 w-4"})})});return C.jsxs(C.Fragment,{children:[he,C.jsx(Af,{isOpen:s,onClose:R,title:h?"Import summary":"Import",children:h?C.jsx(vS,{summary:d,onClose:R}):C.jsx(xS,{getRootProps:g,getInputProps:A,isDragActive:M,file:r,error:l,onResetFile:F,detectedLanguages:f,detectedLanguageDetails:N,selectedIsocodes:p,onToggleIsocode:O,onClose:R,onImport:G,setError:m.setError,hasNoSelection:p.length===0})})]})},bS=({onClick:e})=>C.jsx(fe.Tooltip,{label:"Edit",container:it(),children:C.jsx("button",{"data-cy":"locales-list-item-edit-button",onClick:t=>{t.stopPropagation(),e()},className:"cursor-pointer rounded p-1 hover:bg-primary-hover focus:outline-none",children:C.jsx(Je.FdPen,{className:"h-4 w-4"})})}),yS=({onClick:e,disable:t})=>t?C.jsx(C.Fragment,{}):C.jsx(fe.Tooltip,{label:"Remove",container:it(),children:C.jsx("button",{"data-cy":"locales-list-item-remove-button",disabled:t,onClick:n=>{n.stopPropagation(),e()},className:"cursor-pointer rounded p-1 hover:bg-primary-hover focus:outline-none",children:C.jsx(Je.FdTrash,{className:"h-4 w-4"})})}),wS=({collapse:e,onClick:t})=>C.jsx(fe.Tooltip,{label:"Collapse",container:it(),children:C.jsx("button",{onClick:n=>{n.stopPropagation(),t()},className:"cursor-pointer rounded p-1 hover:bg-primary-hover focus:outline-none",children:C.jsx(Je.FdDown,{className:Ue("h-4 w-4 ",{"-rotate-90":e})})})}),ES=({lang:e,onCancel:t,onConfirm:n})=>{var I,N,y;const{allSupportedLanguages:i,setEditing:r}=on(),{i18n:s}=sn();V.useEffect(()=>(r(!0),()=>{r(!1)}),[r]);const o=V.useMemo(()=>{var A,M;const g=new Set;return(A=s==null?void 0:s.userLang)!=null&&A.primary&&g.add(s.userLang.primary),(M=s==null?void 0:s.userLang)!=null&&M.supported&&s.userLang.supported.forEach(F=>{g.add(F.isocode)}),i.filter(F=>!g.has(F.isocode))},[i,(I=s==null?void 0:s.userLang)==null?void 0:I.primary,(N=s==null?void 0:s.userLang)==null?void 0:N.supported]),{state:{supported:l,selectedLanguage:u,highlightedLanguageIndex:f},actions:p}=fe.useStateObject({supported:o,editing:!1,selectedLanguage:null,highlightedLanguageIndex:-1}),{isOpen:h,getToggleButtonProps:d,getMenuProps:m,getItemProps:b,getInputProps:v,openMenu:S}=Ur({onSelectedItemChange:({selectedItem:g})=>{g&&(p.setSelectedLanguage({isocode:g.isocode}),p.setSupported(o))},onInputValueChange:({inputValue:g})=>{if(!g){p.setSupported(o);return}const A=new RegExp(oe.escapeRegExp(g),"gi"),M=o.filter(F=>!g||F.native.match(A)||F.isocode.match(A)||F.locale.match(A));p.setSupported(M)},items:l,itemToString:g=>{if(!g)return"";const A=dn(g.isocode,i);return A?`${A.locale} - ${A.native}`:g.isocode},onHighlightedIndexChange:({highlightedIndex:g})=>{p.setHighlightedLanguageIndex(g)}}),E=fe.useOutsideClick(()=>{k()},"mousedown"),k=()=>{u?n(u):t()};return C.jsxs("div",{className:"flex flex-row justify-between items-center border-1 mb-2 bg-grey-300 rounded border px-2 py-2 hover:cursor-pointer",ref:E,children:[C.jsxs("div",{children:[C.jsx("div",{className:Ue("flex flex-col gap-1 border w-48",{"border-primary-dark rounded-t":h||u,rounded:!h}),children:C.jsxs("div",{className:"flex h-7 rounded bg-grey-300 w-full",children:[C.jsx("input",{"data-cy":"locales-new-language-input",placeholder:((y=dn(e==null?void 0:e.isocode,i))==null?void 0:y.locale)||"Select a language",className:"w-full cursor-pointer placeholder:text-grey-50 text-xs rounded text-grey-50 caret-grey-50 bg-grey-300 p-1.5 placeholder:text-xs focus:outline-none",...v({onClick:()=>{S()},onKeyUp:g=>{g.key==="Enter"&&k()}}),autoFocus:!0}),C.jsx("button",{"aria-label":"toggle menu",className:"cursor-pointer rounded px-2",type:"button",...d({onClick:()=>{p.setSupported(o)}}),children:C.jsx(Je.FdDown,{className:"w-4 h-4 text-green-50"})})]})}),C.jsx("ul",{className:`absolute z-10 w-48 max-h-80 overflow-scroll bg-grey-900 py-1 space-y-1 border-b border-x border-1 rounded-b border-primary-dark ${!(h&&l.length)&&"hidden"}`,...m(),children:h&&l.map((g,A)=>{const M=dn(g.isocode,i);return C.jsx("li",{className:Ue("cursor-pointer text-grey-50 h-5 p-1","flex flex-col justify-center items-start",{"bg-primary-hover":A===f}),...b({item:g,index:A}),children:C.jsx("span",{className:"truncate text-xs text-justify flex justify-center items-center",children:`${M==null?void 0:M.native} - ${M==null?void 0:M.isocode}`})},g.isocode)})})]}),C.jsxs("div",{className:"flex space-x-1",children:[C.jsx(fe.Tooltip,{label:"Cancel",container:it(),children:C.jsx("button",{"data-cy":"locales-new-language-cancel-button",className:"cursor-pointer rounded p-1 hover:bg-primary-hover focus:outline-none",onClick:t,children:C.jsx(Je.FdClose,{className:"h-4 w-4 text-gray-50"})})}),C.jsx(fe.Tooltip,{label:"Confirm",container:it(),children:C.jsx("button",{"data-cy":"locales-new-language-confirm-button",className:Ue("rounded p-1 focus:outline-none",{"cursor-not-allowed opacity-50":!u,"cursor-pointer hover:bg-primary-hover":u}),onClick:k,disabled:!u,children:C.jsx(Je.FdCheckCircle,{className:"h-4 w-4 text-gray-50"})})})]})]})},Tp=({activate:e,...t})=>e?C.jsx(ES,{...t}):C.jsx(C.Fragment,{}),SS=({primary:e,selected:t,selectMode:n,lang:i,onSelect:r,onRemove:s,onEdit:o,"data-cy":l})=>{const{state:{hover:u,selected:f,collapse:p,editing:h},actions:{setHover:d,setSelected:m,setCollapse:b,setEditing:v}}=fe.useStateObject({hover:!1,selected:!1,collapse:!0,editing:!1}),{selectedLanguage:S,setSelectedLanguage:E}=on(),{isocode:k,locale:I,native:N}=i||{isocode:"",locale:"",native:""},y=e===k,g=()=>{d(!0)},A=()=>{d(!1)},M=()=>{m(!f),r(k,!f)},F=()=>{v(!0)},R=()=>{s(k)},j=()=>{E(i)},B=se=>{v(!1),o(i,se)},D=()=>{v(!1)};return V.useEffect(()=>{m(t)},[t]),V.useEffect(()=>{y&&E(i)},[]),h?C.jsx(Tp,{lang:i,activate:h,onCancel:D,onConfirm:B}):C.jsxs("div",{"data-cy":l,className:Ue("border-[1px] mb-2 bg-grey-300 flex flex-col space-y-2 rounded px-2 py-2 hover:cursor-pointer",{"border-primary-dark":(S==null?void 0:S.isocode)===(i==null?void 0:i.isocode)}),onMouseEnter:g,onMouseLeave:A,onClick:j,children:[C.jsxs("div",{className:"flex flex-row justify-between items-center",children:[C.jsxs("div",{className:"flex flex-row space-x-1 text-gray-50",children:[u||n?C.jsx(fe.Checkbox,{className:Ue("h-4 w-4 rounded"),isChecked:f,onChange:M}):C.jsx(C.Fragment,{}),C.jsx(Je.FdLocalization,{className:Ue("w-4 h-4",{hidden:n||u})}),C.jsx("span",{className:Ue("text-xs",{"italic font-bold":y}),children:N})]}),C.jsxs("div",{className:"text-grey-50 flex flex-row items-center space-x-1",children:[y&&C.jsx("div",{className:"bg-primary-dark rounded p-0.5 text-xs text-center shrink-0 h-5 w-12",children:"Primary"}),C.jsx(bS,{onClick:F}),C.jsx(yS,{disable:y,onClick:R}),C.jsx(wS,{collapse:p,onClick:()=>b(!p)})]})]}),C.jsxs("div",{className:Ue("ml-6 flex justify-between p-1 text-xs",{hidden:p}),children:[C.jsx("span",{className:"text-grey-50",children:"English name"}),C.jsx("span",{className:"text-grey-100",children:I})]}),C.jsxs("div",{className:Ue("text-grey-50 ml-6 flex justify-between p-1 text-xs",{hidden:p}),children:[C.jsx("span",{className:"text-grey-50",children:"Iso Code"}),C.jsx("span",{className:"text-grey-100",children:k})]})]})};var Tu=function(t){return t.reduce(function(n,i){var r=i[0],s=i[1];return n[r]=s,n},{})},Nu=typeof window<"u"&&window.document&&window.document.createElement?U.useLayoutEffect:U.useEffect,mt="top",Mt="bottom",Ft="right",xt="left",ro="auto",Ai=[mt,Mt,Ft,xt],Gn="start",wi="end",kS="clippingParents",Np="viewport",oi="popper",CS="reference",Pu=Ai.reduce(function(e,t){return e.concat([t+"-"+Gn,t+"-"+wi])},[]),Pp=[].concat(Ai,[ro]).reduce(function(e,t){return e.concat([t,t+"-"+Gn,t+"-"+wi])},[]),_S="beforeRead",IS="read",AS="afterRead",TS="beforeMain",NS="main",PS="afterMain",OS="beforeWrite",RS="write",LS="afterWrite",MS=[_S,IS,AS,TS,NS,PS,OS,RS,LS];function Jt(e){return e?(e.nodeName||"").toLowerCase():null}function St(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Tn(e){var t=St(e).Element;return e instanceof t||e instanceof Element}function Lt(e){var t=St(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function ao(e){if(typeof ShadowRoot>"u")return!1;var t=St(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function FS(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var i=t.styles[n]||{},r=t.attributes[n]||{},s=t.elements[n];!Lt(s)||!Jt(s)||(Object.assign(s.style,i),Object.keys(r).forEach(function(o){var l=r[o];l===!1?s.removeAttribute(o):s.setAttribute(o,l===!0?"":l)}))})}function DS(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(i){var r=t.elements[i],s=t.attributes[i]||{},o=Object.keys(t.styles.hasOwnProperty(i)?t.styles[i]:n[i]),l=o.reduce(function(u,f){return u[f]="",u},{});!Lt(r)||!Jt(r)||(Object.assign(r.style,l),Object.keys(s).forEach(function(u){r.removeAttribute(u)}))})}}const jS={name:"applyStyles",enabled:!0,phase:"write",fn:FS,effect:DS,requires:["computeStyles"]};function Wt(e){return e.split("-")[0]}var _n=Math.max,kr=Math.min,Jn=Math.round;function rs(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function Op(){return!/^((?!chrome|android).)*safari/i.test(rs())}function Yn(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var i=e.getBoundingClientRect(),r=1,s=1;t&&Lt(e)&&(r=e.offsetWidth>0&&Jn(i.width)/e.offsetWidth||1,s=e.offsetHeight>0&&Jn(i.height)/e.offsetHeight||1);var o=Tn(e)?St(e):window,l=o.visualViewport,u=!Op()&&n,f=(i.left+(u&&l?l.offsetLeft:0))/r,p=(i.top+(u&&l?l.offsetTop:0))/s,h=i.width/r,d=i.height/s;return{width:h,height:d,top:p,right:f+h,bottom:p+d,left:f,x:f,y:p}}function so(e){var t=Yn(e),n=e.offsetWidth,i=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-i)<=1&&(i=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:i}}function Rp(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&ao(n)){var i=t;do{if(i&&e.isSameNode(i))return!0;i=i.parentNode||i.host}while(i)}return!1}function an(e){return St(e).getComputedStyle(e)}function VS(e){return["table","td","th"].indexOf(Jt(e))>=0}function wn(e){return((Tn(e)?e.ownerDocument:e.document)||window.document).documentElement}function Hr(e){return Jt(e)==="html"?e:e.assignedSlot||e.parentNode||(ao(e)?e.host:null)||wn(e)}function Ou(e){return!Lt(e)||an(e).position==="fixed"?null:e.offsetParent}function BS(e){var t=/firefox/i.test(rs()),n=/Trident/i.test(rs());if(n&&Lt(e)){var i=an(e);if(i.position==="fixed")return null}var r=Hr(e);for(ao(r)&&(r=r.host);Lt(r)&&["html","body"].indexOf(Jt(r))<0;){var s=an(r);if(s.transform!=="none"||s.perspective!=="none"||s.contain==="paint"||["transform","perspective"].indexOf(s.willChange)!==-1||t&&s.willChange==="filter"||t&&s.filter&&s.filter!=="none")return r;r=r.parentNode}return null}function Ti(e){for(var t=St(e),n=Ou(e);n&&VS(n)&&an(n).position==="static";)n=Ou(n);return n&&(Jt(n)==="html"||Jt(n)==="body"&&an(n).position==="static")?t:n||BS(e)||t}function oo(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function di(e,t,n){return _n(e,kr(t,n))}function zS(e,t,n){var i=di(e,t,n);return i>n?n:i}function Lp(){return{top:0,right:0,bottom:0,left:0}}function Mp(e){return Object.assign({},Lp(),e)}function Fp(e,t){return t.reduce(function(n,i){return n[i]=e,n},{})}var KS=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,Mp(typeof t!="number"?t:Fp(t,Ai))};function US(e){var t,n=e.state,i=e.name,r=e.options,s=n.elements.arrow,o=n.modifiersData.popperOffsets,l=Wt(n.placement),u=oo(l),f=[xt,Ft].indexOf(l)>=0,p=f?"height":"width";if(!(!s||!o)){var h=KS(r.padding,n),d=so(s),m=u==="y"?mt:xt,b=u==="y"?Mt:Ft,v=n.rects.reference[p]+n.rects.reference[u]-o[u]-n.rects.popper[p],S=o[u]-n.rects.reference[u],E=Ti(s),k=E?u==="y"?E.clientHeight||0:E.clientWidth||0:0,I=v/2-S/2,N=h[m],y=k-d[p]-h[b],g=k/2-d[p]/2+I,A=di(N,g,y),M=u;n.modifiersData[i]=(t={},t[M]=A,t.centerOffset=A-g,t)}}function HS(e){var t=e.state,n=e.options,i=n.element,r=i===void 0?"[data-popper-arrow]":i;r!=null&&(typeof r=="string"&&(r=t.elements.popper.querySelector(r),!r)||Rp(t.elements.popper,r)&&(t.elements.arrow=r))}const $S={name:"arrow",enabled:!0,phase:"main",fn:US,effect:HS,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Qn(e){return e.split("-")[1]}var qS={top:"auto",right:"auto",bottom:"auto",left:"auto"};function WS(e,t){var n=e.x,i=e.y,r=t.devicePixelRatio||1;return{x:Jn(n*r)/r||0,y:Jn(i*r)/r||0}}function Ru(e){var t,n=e.popper,i=e.popperRect,r=e.placement,s=e.variation,o=e.offsets,l=e.position,u=e.gpuAcceleration,f=e.adaptive,p=e.roundOffsets,h=e.isFixed,d=o.x,m=d===void 0?0:d,b=o.y,v=b===void 0?0:b,S=typeof p=="function"?p({x:m,y:v}):{x:m,y:v};m=S.x,v=S.y;var E=o.hasOwnProperty("x"),k=o.hasOwnProperty("y"),I=xt,N=mt,y=window;if(f){var g=Ti(n),A="clientHeight",M="clientWidth";if(g===St(n)&&(g=wn(n),an(g).position!=="static"&&l==="absolute"&&(A="scrollHeight",M="scrollWidth")),g=g,r===mt||(r===xt||r===Ft)&&s===wi){N=Mt;var F=h&&g===y&&y.visualViewport?y.visualViewport.height:g[A];v-=F-i.height,v*=u?1:-1}if(r===xt||(r===mt||r===Mt)&&s===wi){I=Ft;var R=h&&g===y&&y.visualViewport?y.visualViewport.width:g[M];m-=R-i.width,m*=u?1:-1}}var j=Object.assign({position:l},f&&qS),B=p===!0?WS({x:m,y:v},St(n)):{x:m,y:v};if(m=B.x,v=B.y,u){var D;return Object.assign({},j,(D={},D[N]=k?"0":"",D[I]=E?"0":"",D.transform=(y.devicePixelRatio||1)<=1?"translate("+m+"px, "+v+"px)":"translate3d("+m+"px, "+v+"px, 0)",D))}return Object.assign({},j,(t={},t[N]=k?v+"px":"",t[I]=E?m+"px":"",t.transform="",t))}function GS(e){var t=e.state,n=e.options,i=n.gpuAcceleration,r=i===void 0?!0:i,s=n.adaptive,o=s===void 0?!0:s,l=n.roundOffsets,u=l===void 0?!0:l,f={placement:Wt(t.placement),variation:Qn(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:r,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,Ru(Object.assign({},f,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:o,roundOffsets:u})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,Ru(Object.assign({},f,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:u})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const JS={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:GS,data:{}};var Xi={passive:!0};function YS(e){var t=e.state,n=e.instance,i=e.options,r=i.scroll,s=r===void 0?!0:r,o=i.resize,l=o===void 0?!0:o,u=St(t.elements.popper),f=[].concat(t.scrollParents.reference,t.scrollParents.popper);return s&&f.forEach(function(p){p.addEventListener("scroll",n.update,Xi)}),l&&u.addEventListener("resize",n.update,Xi),function(){s&&f.forEach(function(p){p.removeEventListener("scroll",n.update,Xi)}),l&&u.removeEventListener("resize",n.update,Xi)}}const QS={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:YS,data:{}};var ZS={left:"right",right:"left",bottom:"top",top:"bottom"};function or(e){return e.replace(/left|right|bottom|top/g,function(t){return ZS[t]})}var XS={start:"end",end:"start"};function Lu(e){return e.replace(/start|end/g,function(t){return XS[t]})}function lo(e){var t=St(e),n=t.pageXOffset,i=t.pageYOffset;return{scrollLeft:n,scrollTop:i}}function uo(e){return Yn(wn(e)).left+lo(e).scrollLeft}function ek(e,t){var n=St(e),i=wn(e),r=n.visualViewport,s=i.clientWidth,o=i.clientHeight,l=0,u=0;if(r){s=r.width,o=r.height;var f=Op();(f||!f&&t==="fixed")&&(l=r.offsetLeft,u=r.offsetTop)}return{width:s,height:o,x:l+uo(e),y:u}}function tk(e){var t,n=wn(e),i=lo(e),r=(t=e.ownerDocument)==null?void 0:t.body,s=_n(n.scrollWidth,n.clientWidth,r?r.scrollWidth:0,r?r.clientWidth:0),o=_n(n.scrollHeight,n.clientHeight,r?r.scrollHeight:0,r?r.clientHeight:0),l=-i.scrollLeft+uo(e),u=-i.scrollTop;return an(r||n).direction==="rtl"&&(l+=_n(n.clientWidth,r?r.clientWidth:0)-s),{width:s,height:o,x:l,y:u}}function co(e){var t=an(e),n=t.overflow,i=t.overflowX,r=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+r+i)}function Dp(e){return["html","body","#document"].indexOf(Jt(e))>=0?e.ownerDocument.body:Lt(e)&&co(e)?e:Dp(Hr(e))}function gi(e,t){var n;t===void 0&&(t=[]);var i=Dp(e),r=i===((n=e.ownerDocument)==null?void 0:n.body),s=St(i),o=r?[s].concat(s.visualViewport||[],co(i)?i:[]):i,l=t.concat(o);return r?l:l.concat(gi(Hr(o)))}function as(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function nk(e,t){var n=Yn(e,!1,t==="fixed");return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}function Mu(e,t,n){return t===Np?as(ek(e,n)):Tn(t)?nk(t,n):as(tk(wn(e)))}function ik(e){var t=gi(Hr(e)),n=["absolute","fixed"].indexOf(an(e).position)>=0,i=n&&Lt(e)?Ti(e):e;return Tn(i)?t.filter(function(r){return Tn(r)&&Rp(r,i)&&Jt(r)!=="body"}):[]}function rk(e,t,n,i){var r=t==="clippingParents"?ik(e):[].concat(t),s=[].concat(r,[n]),o=s[0],l=s.reduce(function(u,f){var p=Mu(e,f,i);return u.top=_n(p.top,u.top),u.right=kr(p.right,u.right),u.bottom=kr(p.bottom,u.bottom),u.left=_n(p.left,u.left),u},Mu(e,o,i));return l.width=l.right-l.left,l.height=l.bottom-l.top,l.x=l.left,l.y=l.top,l}function jp(e){var t=e.reference,n=e.element,i=e.placement,r=i?Wt(i):null,s=i?Qn(i):null,o=t.x+t.width/2-n.width/2,l=t.y+t.height/2-n.height/2,u;switch(r){case mt:u={x:o,y:t.y-n.height};break;case Mt:u={x:o,y:t.y+t.height};break;case Ft:u={x:t.x+t.width,y:l};break;case xt:u={x:t.x-n.width,y:l};break;default:u={x:t.x,y:t.y}}var f=r?oo(r):null;if(f!=null){var p=f==="y"?"height":"width";switch(s){case Gn:u[f]=u[f]-(t[p]/2-n[p]/2);break;case wi:u[f]=u[f]+(t[p]/2-n[p]/2);break}}return u}function Ei(e,t){t===void 0&&(t={});var n=t,i=n.placement,r=i===void 0?e.placement:i,s=n.strategy,o=s===void 0?e.strategy:s,l=n.boundary,u=l===void 0?kS:l,f=n.rootBoundary,p=f===void 0?Np:f,h=n.elementContext,d=h===void 0?oi:h,m=n.altBoundary,b=m===void 0?!1:m,v=n.padding,S=v===void 0?0:v,E=Mp(typeof S!="number"?S:Fp(S,Ai)),k=d===oi?CS:oi,I=e.rects.popper,N=e.elements[b?k:d],y=rk(Tn(N)?N:N.contextElement||wn(e.elements.popper),u,p,o),g=Yn(e.elements.reference),A=jp({reference:g,element:I,placement:r}),M=as(Object.assign({},I,A)),F=d===oi?M:g,R={top:y.top-F.top+E.top,bottom:F.bottom-y.bottom+E.bottom,left:y.left-F.left+E.left,right:F.right-y.right+E.right},j=e.modifiersData.offset;if(d===oi&&j){var B=j[r];Object.keys(R).forEach(function(D){var se=[Ft,Mt].indexOf(D)>=0?1:-1,ue=[mt,Mt].indexOf(D)>=0?"y":"x";R[D]+=B[ue]*se})}return R}function ak(e,t){t===void 0&&(t={});var n=t,i=n.placement,r=n.boundary,s=n.rootBoundary,o=n.padding,l=n.flipVariations,u=n.allowedAutoPlacements,f=u===void 0?Pp:u,p=Qn(i),h=p?l?Pu:Pu.filter(function(b){return Qn(b)===p}):Ai,d=h.filter(function(b){return f.indexOf(b)>=0});d.length===0&&(d=h);var m=d.reduce(function(b,v){return b[v]=Ei(e,{placement:v,boundary:r,rootBoundary:s,padding:o})[Wt(v)],b},{});return Object.keys(m).sort(function(b,v){return m[b]-m[v]})}function sk(e){if(Wt(e)===ro)return[];var t=or(e);return[Lu(e),t,Lu(t)]}function ok(e){var t=e.state,n=e.options,i=e.name;if(!t.modifiersData[i]._skip){for(var r=n.mainAxis,s=r===void 0?!0:r,o=n.altAxis,l=o===void 0?!0:o,u=n.fallbackPlacements,f=n.padding,p=n.boundary,h=n.rootBoundary,d=n.altBoundary,m=n.flipVariations,b=m===void 0?!0:m,v=n.allowedAutoPlacements,S=t.options.placement,E=Wt(S),k=E===S,I=u||(k||!b?[or(S)]:sk(S)),N=[S].concat(I).reduce(function(he,W){return he.concat(Wt(W)===ro?ak(t,{placement:W,boundary:p,rootBoundary:h,padding:f,flipVariations:b,allowedAutoPlacements:v}):W)},[]),y=t.rects.reference,g=t.rects.popper,A=new Map,M=!0,F=N[0],R=0;R<N.length;R++){var j=N[R],B=Wt(j),D=Qn(j)===Gn,se=[mt,Mt].indexOf(B)>=0,ue=se?"width":"height",te=Ei(t,{placement:j,boundary:p,rootBoundary:h,altBoundary:d,padding:f}),ae=se?D?Ft:xt:D?Mt:mt;y[ue]>g[ue]&&(ae=or(ae));var ge=or(ae),ve=[];if(s&&ve.push(te[B]<=0),l&&ve.push(te[ae]<=0,te[ge]<=0),ve.every(function(he){return he})){F=j,M=!1;break}A.set(j,ve)}if(M)for(var L=b?3:1,G=function(W){var Z=N.find(function(H){var K=A.get(H);if(K)return K.slice(0,W).every(function(J){return J})});if(Z)return F=Z,"break"},ne=L;ne>0;ne--){var O=G(ne);if(O==="break")break}t.placement!==F&&(t.modifiersData[i]._skip=!0,t.placement=F,t.reset=!0)}}const lk={name:"flip",enabled:!0,phase:"main",fn:ok,requiresIfExists:["offset"],data:{_skip:!1}};function Fu(e,t,n){return n===void 0&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function Du(e){return[mt,Ft,Mt,xt].some(function(t){return e[t]>=0})}function uk(e){var t=e.state,n=e.name,i=t.rects.reference,r=t.rects.popper,s=t.modifiersData.preventOverflow,o=Ei(t,{elementContext:"reference"}),l=Ei(t,{altBoundary:!0}),u=Fu(o,i),f=Fu(l,r,s),p=Du(u),h=Du(f);t.modifiersData[n]={referenceClippingOffsets:u,popperEscapeOffsets:f,isReferenceHidden:p,hasPopperEscaped:h},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":p,"data-popper-escaped":h})}const ck={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:uk};function hk(e,t,n){var i=Wt(e),r=[xt,mt].indexOf(i)>=0?-1:1,s=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,o=s[0],l=s[1];return o=o||0,l=(l||0)*r,[xt,Ft].indexOf(i)>=0?{x:l,y:o}:{x:o,y:l}}function fk(e){var t=e.state,n=e.options,i=e.name,r=n.offset,s=r===void 0?[0,0]:r,o=Pp.reduce(function(p,h){return p[h]=hk(h,t.rects,s),p},{}),l=o[t.placement],u=l.x,f=l.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=u,t.modifiersData.popperOffsets.y+=f),t.modifiersData[i]=o}const pk={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:fk};function dk(e){var t=e.state,n=e.name;t.modifiersData[n]=jp({reference:t.rects.reference,element:t.rects.popper,placement:t.placement})}const gk={name:"popperOffsets",enabled:!0,phase:"read",fn:dk,data:{}};function mk(e){return e==="x"?"y":"x"}function xk(e){var t=e.state,n=e.options,i=e.name,r=n.mainAxis,s=r===void 0?!0:r,o=n.altAxis,l=o===void 0?!1:o,u=n.boundary,f=n.rootBoundary,p=n.altBoundary,h=n.padding,d=n.tether,m=d===void 0?!0:d,b=n.tetherOffset,v=b===void 0?0:b,S=Ei(t,{boundary:u,rootBoundary:f,padding:h,altBoundary:p}),E=Wt(t.placement),k=Qn(t.placement),I=!k,N=oo(E),y=mk(N),g=t.modifiersData.popperOffsets,A=t.rects.reference,M=t.rects.popper,F=typeof v=="function"?v(Object.assign({},t.rects,{placement:t.placement})):v,R=typeof F=="number"?{mainAxis:F,altAxis:F}:Object.assign({mainAxis:0,altAxis:0},F),j=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,B={x:0,y:0};if(g){if(s){var D,se=N==="y"?mt:xt,ue=N==="y"?Mt:Ft,te=N==="y"?"height":"width",ae=g[N],ge=ae+S[se],ve=ae-S[ue],L=m?-M[te]/2:0,G=k===Gn?A[te]:M[te],ne=k===Gn?-M[te]:-A[te],O=t.elements.arrow,he=m&&O?so(O):{width:0,height:0},W=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:Lp(),Z=W[se],H=W[ue],K=di(0,A[te],he[te]),J=I?A[te]/2-L-K-Z-R.mainAxis:G-K-Z-R.mainAxis,ie=I?-A[te]/2+L+K+H+R.mainAxis:ne+K+H+R.mainAxis,X=t.elements.arrow&&Ti(t.elements.arrow),$=X?N==="y"?X.clientTop||0:X.clientLeft||0:0,Y=(D=j==null?void 0:j[N])!=null?D:0,le=ae+J-Y-$,de=ae+ie-Y,Se=di(m?kr(ge,le):ge,ae,m?_n(ve,de):ve);g[N]=Se,B[N]=Se-ae}if(l){var ye,ke=N==="x"?mt:xt,Ie=N==="x"?Mt:Ft,be=g[y],Pe=y==="y"?"height":"width",Be=be+S[ke],$e=be-S[Ie],Te=[mt,xt].indexOf(E)!==-1,nt=(ye=j==null?void 0:j[y])!=null?ye:0,Q=Te?Be:be-A[Pe]-M[Pe]-nt+R.altAxis,re=Te?be+A[Pe]+M[Pe]-nt-R.altAxis:$e,T=m&&Te?zS(Q,be,re):di(m?Q:Be,be,m?re:$e);g[y]=T,B[y]=T-be}t.modifiersData[i]=B}}const vk={name:"preventOverflow",enabled:!0,phase:"main",fn:xk,requiresIfExists:["offset"]};function bk(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function yk(e){return e===St(e)||!Lt(e)?lo(e):bk(e)}function wk(e){var t=e.getBoundingClientRect(),n=Jn(t.width)/e.offsetWidth||1,i=Jn(t.height)/e.offsetHeight||1;return n!==1||i!==1}function Ek(e,t,n){n===void 0&&(n=!1);var i=Lt(t),r=Lt(t)&&wk(t),s=wn(t),o=Yn(e,r,n),l={scrollLeft:0,scrollTop:0},u={x:0,y:0};return(i||!i&&!n)&&((Jt(t)!=="body"||co(s))&&(l=yk(t)),Lt(t)?(u=Yn(t,!0),u.x+=t.clientLeft,u.y+=t.clientTop):s&&(u.x=uo(s))),{x:o.left+l.scrollLeft-u.x,y:o.top+l.scrollTop-u.y,width:o.width,height:o.height}}function Sk(e){var t=new Map,n=new Set,i=[];e.forEach(function(s){t.set(s.name,s)});function r(s){n.add(s.name);var o=[].concat(s.requires||[],s.requiresIfExists||[]);o.forEach(function(l){if(!n.has(l)){var u=t.get(l);u&&r(u)}}),i.push(s)}return e.forEach(function(s){n.has(s.name)||r(s)}),i}function kk(e){var t=Sk(e);return MS.reduce(function(n,i){return n.concat(t.filter(function(r){return r.phase===i}))},[])}function Ck(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function _k(e){var t=e.reduce(function(n,i){var r=n[i.name];return n[i.name]=r?Object.assign({},r,i,{options:Object.assign({},r.options,i.options),data:Object.assign({},r.data,i.data)}):i,n},{});return Object.keys(t).map(function(n){return t[n]})}var ju={placement:"bottom",modifiers:[],strategy:"absolute"};function Vu(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some(function(i){return!(i&&typeof i.getBoundingClientRect=="function")})}function Ik(e){e===void 0&&(e={});var t=e,n=t.defaultModifiers,i=n===void 0?[]:n,r=t.defaultOptions,s=r===void 0?ju:r;return function(l,u,f){f===void 0&&(f=s);var p={placement:"bottom",orderedModifiers:[],options:Object.assign({},ju,s),modifiersData:{},elements:{reference:l,popper:u},attributes:{},styles:{}},h=[],d=!1,m={state:p,setOptions:function(E){var k=typeof E=="function"?E(p.options):E;v(),p.options=Object.assign({},s,p.options,k),p.scrollParents={reference:Tn(l)?gi(l):l.contextElement?gi(l.contextElement):[],popper:gi(u)};var I=kk(_k([].concat(i,p.options.modifiers)));return p.orderedModifiers=I.filter(function(N){return N.enabled}),b(),m.update()},forceUpdate:function(){if(!d){var E=p.elements,k=E.reference,I=E.popper;if(Vu(k,I)){p.rects={reference:Ek(k,Ti(I),p.options.strategy==="fixed"),popper:so(I)},p.reset=!1,p.placement=p.options.placement,p.orderedModifiers.forEach(function(R){return p.modifiersData[R.name]=Object.assign({},R.data)});for(var N=0;N<p.orderedModifiers.length;N++){if(p.reset===!0){p.reset=!1,N=-1;continue}var y=p.orderedModifiers[N],g=y.fn,A=y.options,M=A===void 0?{}:A,F=y.name;typeof g=="function"&&(p=g({state:p,options:M,name:F,instance:m})||p)}}}},update:Ck(function(){return new Promise(function(S){m.forceUpdate(),S(p)})}),destroy:function(){v(),d=!0}};if(!Vu(l,u))return m;m.setOptions(f).then(function(S){!d&&f.onFirstUpdate&&f.onFirstUpdate(S)});function b(){p.orderedModifiers.forEach(function(S){var E=S.name,k=S.options,I=k===void 0?{}:k,N=S.effect;if(typeof N=="function"){var y=N({state:p,name:E,instance:m,options:I}),g=function(){};h.push(y||g)}})}function v(){h.forEach(function(S){return S()}),h=[]}return m}}var Ak=[QS,gk,JS,jS,pk,lk,vk,$S,ck],Tk=Ik({defaultModifiers:Ak}),Ma,Bu;function Nk(){if(Bu)return Ma;Bu=1;var e=typeof Element<"u",t=typeof Map=="function",n=typeof Set=="function",i=typeof ArrayBuffer=="function"&&!!ArrayBuffer.isView;function r(s,o){if(s===o)return!0;if(s&&o&&typeof s=="object"&&typeof o=="object"){if(s.constructor!==o.constructor)return!1;var l,u,f;if(Array.isArray(s)){if(l=s.length,l!=o.length)return!1;for(u=l;u--!==0;)if(!r(s[u],o[u]))return!1;return!0}var p;if(t&&s instanceof Map&&o instanceof Map){if(s.size!==o.size)return!1;for(p=s.entries();!(u=p.next()).done;)if(!o.has(u.value[0]))return!1;for(p=s.entries();!(u=p.next()).done;)if(!r(u.value[1],o.get(u.value[0])))return!1;return!0}if(n&&s instanceof Set&&o instanceof Set){if(s.size!==o.size)return!1;for(p=s.entries();!(u=p.next()).done;)if(!o.has(u.value[0]))return!1;return!0}if(i&&ArrayBuffer.isView(s)&&ArrayBuffer.isView(o)){if(l=s.length,l!=o.length)return!1;for(u=l;u--!==0;)if(s[u]!==o[u])return!1;return!0}if(s.constructor===RegExp)return s.source===o.source&&s.flags===o.flags;if(s.valueOf!==Object.prototype.valueOf&&typeof s.valueOf=="function"&&typeof o.valueOf=="function")return s.valueOf()===o.valueOf();if(s.toString!==Object.prototype.toString&&typeof s.toString=="function"&&typeof o.toString=="function")return s.toString()===o.toString();if(f=Object.keys(s),l=f.length,l!==Object.keys(o).length)return!1;for(u=l;u--!==0;)if(!Object.prototype.hasOwnProperty.call(o,f[u]))return!1;if(e&&s instanceof Element)return!1;for(u=l;u--!==0;)if(!((f[u]==="_owner"||f[u]==="__v"||f[u]==="__o")&&s.$$typeof)&&!r(s[f[u]],o[f[u]]))return!1;return!0}return s!==s&&o!==o}return Ma=function(o,l){try{return r(o,l)}catch(u){if((u.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw u}},Ma}var Pk=Nk();const Ok=Lr(Pk);var Rk=[],Lk=function(t,n,i){i===void 0&&(i={});var r=U.useRef(null),s={onFirstUpdate:i.onFirstUpdate,placement:i.placement||"bottom",strategy:i.strategy||"absolute",modifiers:i.modifiers||Rk},o=U.useState({styles:{popper:{position:s.strategy,left:"0",top:"0"},arrow:{position:"absolute"}},attributes:{}}),l=o[0],u=o[1],f=U.useMemo(function(){return{name:"updateState",enabled:!0,phase:"write",fn:function(m){var b=m.state,v=Object.keys(b.elements);Ku.flushSync(function(){u({styles:Tu(v.map(function(S){return[S,b.styles[S]||{}]})),attributes:Tu(v.map(function(S){return[S,b.attributes[S]]}))})})},requires:["computeStyles"]}},[]),p=U.useMemo(function(){var d={onFirstUpdate:s.onFirstUpdate,placement:s.placement,strategy:s.strategy,modifiers:[].concat(s.modifiers,[f,{name:"applyStyles",enabled:!1}])};return Ok(r.current,d)?r.current||d:(r.current=d,d)},[s.onFirstUpdate,s.placement,s.strategy,s.modifiers,f]),h=U.useRef();return Nu(function(){h.current&&h.current.setOptions(p)},[p]),Nu(function(){if(!(t==null||n==null)){var d=i.createPopper||Tk,m=d(t,n,p);return h.current=m,function(){m.destroy(),h.current=null}}},[t,n,i.createPopper]),{state:h.current?h.current.state:null,styles:l.styles,attributes:l.attributes,update:h.current?h.current.update:null,forceUpdate:h.current?h.current.forceUpdate:null}};const Mk=()=>{var R,j;const[e,t]=V.useState(),[n,i]=V.useState(null),[r,s]=V.useState(null),[o,l]=V.useState([]),{allSupportedLanguages:u,userLanguages:{supported:f=[],primary:p},setUserLangSettings:h,editing:d}=on(),{i18n:m}=sn(),b=V.useMemo(()=>{var D,se;const B=new Set;return(D=m==null?void 0:m.userLang)!=null&&D.primary&&B.add(m.userLang.primary),(se=m==null?void 0:m.userLang)!=null&&se.supported&&m.userLang.supported.forEach(ue=>{B.add(ue.isocode)}),u.filter(ue=>!B.has(ue.isocode))},[u,(R=m==null?void 0:m.userLang)==null?void 0:R.primary,(j=m==null?void 0:m.userLang)==null?void 0:j.supported]),{styles:v,attributes:S}=Lk(e,n,{modifiers:[{name:"offset",options:{offset:[-10,10]}}],placement:"right-start"}),{isOpen:E,getToggleButtonProps:k,getMenuProps:I,getItemProps:N,getInputProps:y,openMenu:g,highlightedIndex:A,reset:M}=Ur({onSelectedItemChange:({selectedItem:B})=>{B&&s({isocode:B.isocode})},onInputValueChange:({inputValue:B})=>{if(!B){l(b);return}const D=new RegExp(oe.escapeRegExp(B),"gi"),se=b.filter(ue=>ue.native.match(D)||ue.isocode.match(D)||ue.locale.match(D));l(se)},items:o,itemToString:B=>{if(!B)return"";const D=dn(B.isocode,u);return D?`${D.locale} - ${D.native}`:B.isocode}});V.useEffect(()=>{s(null),l(b),M()},[n]),V.useEffect(()=>{l(b)},[b]);const F=B=>{if(!r)return;const D={primary:f.length===0?r.isocode:p,supported:f.concat(r)};h(D),B()};return C.jsxs("div",{className:"flex items-center justify-between",children:[C.jsxs("div",{className:"text-grey-50 flex flex-row justify-between",children:[C.jsxs("div",{className:"flex flex-row items-center justify-center space-x-2 text-sm",children:[C.jsx(Je.FdLocalization,{className:"h-4 w-4"}),C.jsx("span",{className:"text-sm text-gray-50",children:"Locales "})]}),C.jsx("div",{className:"space-x-2",children:C.jsx(fe.Tip,{tipKey:"editors:i18n:locals",alwaysOn:!0})})]}),C.jsx(Wr.Popover,{children:({open:B,close:D})=>C.jsxs(C.Fragment,{children:[C.jsx(Wr.Popover.Button,{className:Ue("rounded p-1",{"hover:bg-primary-hover":!d,"cursor-not-allowed opacity-50":d}),ref:t,"data-cy":"locales-header-add-button",children:C.jsx(fe.Tooltip,{label:"Add new language",container:it(),children:C.jsx("span",{children:C.jsx(Je.FdPlus,{className:Ue("h-4 w-4",{"text-gray-50":!d,"text-grey-200":d})})})})}),B&&!d&&Cr.createPortal(C.jsxs(Wr.Popover.Panel,{ref:i,style:v.popper,...S.popper,className:"z-[10000] w-80 rounded border border-grey-50 bg-grey-900 px-4 py-2 text-xs text-white shadow-md",static:!0,children:[C.jsx("h5",{className:"mb-2 text-xs font-semibold",children:"Add a Language"}),C.jsx("div",{className:"mt-2",children:C.jsxs("label",{className:"flex items-start space-x-4",children:[C.jsx("span",{className:"mt-1 block text-grey-100",children:"Language"}),C.jsxs("div",{className:"relative flex-1",children:[C.jsxs("div",{className:Ue("flex h-7 rounded border bg-grey-300 w-full",{"border-primary-dark":E||r,"border-grey-100":!E&&!r}),children:[C.jsx("input",{"data-cy":"locales-new-language-input",placeholder:"Select a language",className:"w-full cursor-pointer placeholder:text-grey-50 text-xs rounded text-grey-50 caret-grey-50 bg-grey-300 p-1.5 placeholder:text-xs focus:outline-none",...y({onClick:()=>g(),onKeyUp:se=>{se.key==="Enter"&&F(D)}}),autoFocus:!0}),C.jsx("button",{"aria-label":"toggle menu",className:"cursor-pointer rounded px-2",type:"button",...k({onClick:()=>l(b)}),children:C.jsx(Je.FdDown,{className:"w-3 h-3 text-grey-50"})})]}),C.jsx("ul",{className:Ue("absolute z-10 w-full max-h-80 overflow-auto bg-grey-900 py-1 space-y-1 border-b border-x rounded-b border-primary-dark",{hidden:!(E&&o.length)}),...I(),children:E&&o.map((se,ue)=>{const te=dn(se.isocode,u);return C.jsx("li",{className:Ue("cursor-pointer text-grey-50 px-2 py-1","flex flex-col justify-center items-start",{"bg-primary-hover":ue===A}),...N({item:se,index:ue}),children:C.jsx("span",{className:"truncate text-xs",children:`${te==null?void 0:te.native} - ${te==null?void 0:te.isocode}`})},se.isocode)})})]})]})}),C.jsxs("div",{className:"mt-4 flex items-center justify-center space-x-2",children:[C.jsx("button",{"data-cy":"locales-new-language-confirm-button",className:Ue("rounded border text-xs border-primary-dark bg-primary-dark px-4 py-1 focus:outline-none focus:ring-1 focus:ring-white",{"cursor-not-allowed opacity-50":!r,"hover:border-primary-hover hover:bg-primary-hover cursor-pointer":r}),disabled:!r,onClick:()=>F(D),children:"Confirm"}),C.jsx("button",{"data-cy":"locales-new-language-cancel-button",className:"rounded border border-grey-50 px-4 py-1 text-xs text-white hover:bg-white hover:border-white hover:text-primary-dark cursor-pointer",onClick:()=>D(),children:"Cancel"})]})]}),document.body)]})})]})},Fk=()=>{const{state:{selectedLanguages:e,selectAll:t},actions:n}=fe.useStateObject({selectAll:!1,selectedLanguages:[]}),{userLanguages:{supported:i=[],primary:r},addFirstLanguage:s,setAddFirstLanguage:o,setUserLangSettings:l,setSelectedLanguage:u,allSupportedLanguages:f}=on(),{editLanguageKeys:p,deleteLanguageKeys:h}=sn(),d=Ad(f),m=Td(e),b=vn(),v=b.getI18nCurrent(),S=b.getTabs(),E=(F,R)=>{const j=R?e.concat(F):e.filter(B=>B!==F);n.setSelectedLanguages(j),t&&n.setSelectAll(!1)},k=()=>{n.setSelectAll(!t),t?n.setSelectedLanguages([]):n.setSelectedLanguages(i.map(F=>F.isocode))},I=(F,R)=>{const j=`i18n:${R}`,B=`:i18n:${R}`,D=se=>{se.custom&&Object.keys(se.custom).forEach(ue=>{(ue.includes(j)||ue.endsWith(B))&&delete se.custom[ue]})};return Object.values(F).forEach(se=>D(se)),F},N=(F,R)=>F.map(j=>{var D;const B=oe.cloneDeep(j);return(D=B.content)!=null&&D.components&&(B.content={...B.content,components:I({...B.content.components},R)}),B}),y=(F,R,j)=>{const B=`i18n:${R}`,D=`:i18n:${R}`,se=ue=>{ue.custom&&Object.keys(ue.custom).forEach(te=>{if(te===B){const ae=ue.custom[te];delete ue.custom[te],ue.custom[`i18n:${j}`]=ae}else if(te.endsWith(D)){const ae=ue.custom[te];delete ue.custom[te];const ge=te.replace(`:i18n:${R}`,`:i18n:${j}`);ue.custom[ge]=ae}})};return Object.values(F).forEach(ue=>se(ue)),F},g=(F,R,j)=>F.map(B=>{var se;const D=oe.cloneDeep(B);return(se=D.content)!=null&&se.components&&(D.content={...D.content,components:y({...D.content.components},R,j)}),D}),A=async F=>{const{confirmed:R}=await b.actions.openModal({title:"Delete Language",message:"Your translations will be lost , want to proceed ?",type:fe.ModalType.CONFIRM,color:fe.ModalColor.WARNING,icon:"FdWarningDanger"});if(!R)return;h({isocode:F});const j=N(S,F);b.actions.setTabs(j);const B={primary:r,supported:i.filter(D=>D.isocode!==F)};l(B),e.includes(F)&&n.setSelectedLanguages(e.filter(D=>D!==F)),B.supported.length===0&&o(!1),F===v&&b.actions.setI18nCurrent("")},M=(F,R)=>{const j={primary:r===F.isocode?R.isocode:r,supported:i.map(D=>D.isocode===F.isocode?R:D)},B=g(S,F.isocode,R.isocode);b.actions.setTabs(B),v===F.isocode&&b.actions.setI18nCurrent(R.isocode),p(F,R),l(j),u(R)};return C.jsxs("div",{className:"flex w-72 flex-col space-y-2 px-2 py-3 shrink-0",children:[C.jsx(Mk,{}),C.jsxs("div",{className:"flex px-[5px] justify-between text-gray-50",children:[C.jsxs("div",{"data-cy":"locales-select-all-checkbox",className:Ue("text-grey-50 flex items-center justify-center space-x-1",{visible:d,invisible:!d}),children:[C.jsx(fe.Checkbox,{id:"select-all",isChecked:t,onChange:k}),C.jsx("label",{htmlFor:"select-all",className:"text-xs cursor-pointer",children:"Select all"})]}),C.jsxs("div",{className:"flex flex-row items-center justify-center space-x-1",children:[C.jsx(YE,{"data-cy":"localization-export-button",enable:!0,disable:!1,toExport:e}),C.jsx(Ap,{"data-cy":"localization-import-button",enable:!0,disable:!1})]})]}),C.jsx("div",{style:{height:"calc(100vh - 11.75rem)"},children:C.jsxs(fd,{"data-cy":"locales-list",style:{height:"100%",width:"100%"},children:[s&&i.length===0&&C.jsx(Tp,{activate:!0,onCancel:()=>o(!1),onConfirm:F=>{const R={primary:F.isocode,supported:[F]};l(R)}}),[...i].sort(F=>F.isocode===r?-1:1).map((F,R)=>{const j=dn(F.isocode,f);return C.jsx(SS,{"data-cy":`locales-list-item-${j==null?void 0:j.isocode}`,primary:r,selected:t||e.includes(j==null?void 0:j.isocode),lang:j,onSelect:E,selectMode:m,onRemove:A,onEdit:M},R)})]})})]})},Dk=({onAddLocal:e})=>C.jsxs("div",{"data-cy":"localization-empty-view",className:"flex flex-col justify-center items-center space-y-3 pb-[30%] w-full h-full bg-grey-800",children:[C.jsx(Je.FdInfoBold,{className:"h-8 w-8 text-grey-200"}),C.jsx("span",{className:"text-grey-200 text-sm text-center",children:"No locale is available yet. Add a new one or import a locale."}),C.jsxs("div",{className:"flex flex-row items-center justify-center space-x-2",children:[C.jsxs("div",{"data-cy":"localization-empty-add-button",className:"flex flex-row items-center justify-center px-2 py-1 space-x-1 bg-primary-dark rounded cursor-pointer",onClick:e,children:[C.jsx(Je.FdPlus,{className:"h-4 w-4 text-grey-50"}),C.jsx("span",{className:"text-grey-50 text-sm",children:"Add new Locale"})]}),C.jsx(Ap,{enable:!0,RenderTrigger:({onClick:t})=>C.jsxs("div",{className:"flex flex-row items-center justify-center px-2 py-1 space-x-1 bg-primary-dark rounded text-grey-50 text-sm disabled:opacity-50 cursor-pointer",onClick:t,children:[C.jsx(Je.FdDownload,{className:"h-4 w-4 text-grey-50"}),C.jsx("span",{className:"text-grey-50 text-sm",children:"Import Locale"})]})})]})]}),jk=()=>{var o;const{userLanguages:e,addFirstLanguage:t,setAddFirstLanguage:n}=on(),r=(((o=e.supported)==null?void 0:o.length)??0)===0&&!t,s=()=>{n(!0)};return r?C.jsx(Dk,{onAddLocal:s}):C.jsxs("div",{className:Ue("flex flex-row w-full h-full bg-grey-800",{"justify-center items-center":r}),children:[C.jsx(Fk,{}),C.jsx(ng,{})]})},Vp=()=>C.jsx(dc,{children:C.jsx(jk,{})}),Vk=()=>{const{modals:e,closeModal:t,editModal:n}=ac();return C.jsx(C.Fragment,{children:e.map((i,r)=>C.jsx(fe.Modal,{hasOverlay:r===0,...i,onClose:t,onEdit:n,container:it()},i.id))})},ui={keys:{},userLang:{primary:"",supported:[]}},Bk=e=>{if(!e)return ui;try{const t=JSON.parse(e);return{keys:(t==null?void 0:t.keys)??ui.keys,userLang:(t==null?void 0:t.userLang)??ui.userLang}}catch{return ui}},zk=({onTabsChange:e,onI18nCurrentChange:t})=>{const n=vn(),i=(n==null?void 0:n.getTabs())||[],r=n==null?void 0:n.getI18nCurrent();return fe.useDidMountEffect(()=>{e&&e(i)},[e,i]),fe.useDidMountEffect(()=>{t&&r&&t(r)},[t,r]),C.jsxs(C.Fragment,{children:[C.jsx("div",{className:`relative h-screen z-10 overflow-hidden ${os.LOCALIZATION_EDITOR_SCOPE_CLASS}`,children:C.jsx(Vp,{})}),C.jsx(Vk,{})]})},Kk=({children:e})=>{const t=vn();return C.jsx(hc,{getSupportedLanguages:n=>(t==null?void 0:t.getSupportedLanguages(n))||Promise.resolve([]),i18nCurrent:t==null?void 0:t.getI18nCurrent(),activeTabPath:t==null?void 0:t.getActiveTabPath(),flagsForActiveTab:t==null?void 0:t.getFlagsByPath(t==null?void 0:t.getActiveTabPath()),children:e})},Uk=({userComponents:e,buildResolver:t,supportedLanguages:n,initialValue:i,onChange:r,...s})=>{const o=rc(e,t,n),[l,u]=V.useState({}),f=V.useRef(ui),p=V.useMemo(()=>Bk(i),[i]);return V.useEffect(()=>{f.current=p},[p]),fe.useDidMountEffect(()=>{if(!(!r||oe.isEqual(l,f.current)))try{r==null||r(JSON.stringify(l)),f.current=l}catch{}},[l,r]),C.jsx($u,{adapter:o,children:C.jsx(lc,{isI18nEnabled:!0,onI18nChange:u,children:C.jsx(Kk,{children:C.jsx(fe.TipsProvider,{children:C.jsx(zk,{...s})})})})})},Hk=({tabs:e=[],i18nCurrent:t="",initialValue:n,...i})=>C.jsx(ic,{tabs:e,i18nCurrent:t,initialI18nFile:n,children:C.jsx(Uk,{initialValue:n,...i})}),$k={supported:[{isocode:"af",locale:"Afrikaans",native:"Afrikaans",flag:"🇿🇦"},{isocode:"af-NA",locale:"Afrikaans (Namibie)",native:"Afrikaans (Namibië)",flag:"🇳🇦"},{isocode:"af-ZA",locale:"Afrikaans (South Africa)",native:"Afrikaans (Suid-Afrika)",flag:"🇿🇦"},{isocode:"agq",locale:"Aghem",native:"Aghem",flag:"🇨🇲"},{isocode:"agq-CM",locale:"Aghem (Cameroun)",native:"Aghem (Kàmàlûŋ)",flag:"🇨🇲"},{isocode:"ak",locale:"Akan",native:"Akan",flag:"🇬🇭"},{isocode:"ak-GH",locale:"Akan (Ghana)",native:"Akan (Gaana)",flag:"🇬🇭"},{isocode:"am",locale:"Amharique",native:"አማርኛ",flag:"🇪🇹"},{isocode:"am-ET",locale:"Amharique (Éthiopie)",native:"አማርኛ (ኢትዮጵያ)",flag:"🇪🇹"},{isocode:"ar",locale:"Arabic",native:"العربية",flag:"🇸🇦"},{isocode:"ar-001",locale:"Arabic (World)",native:"العربية (العالم)",flag:"🌍"},{isocode:"ar-AE",locale:"Arabic (Émirats arabes unis)",native:"العربية (الإمارات العربية المتحدة)",flag:"🇦🇪"},{isocode:"ar-BH",locale:"Arabic (Bahreïn)",native:"العربية (البحرين)",flag:"🇧🇭"},{isocode:"ar-DJ",locale:"Arabic (Djibouti)",native:"العربية (جيبوتي)",flag:"🇩🇯"},{isocode:"ar-DZ",locale:"Arabic (Algérie)",native:"العربية (الجزائر)",flag:"🇩🇿"},{isocode:"ar-EG",locale:"Arabic (Égypte)",native:"العربية (مصر)",flag:"🇪🇬"},{isocode:"ar-EH",locale:"Arabic (Sahara occidental)",native:"العربية (الصحراء الغربية)",flag:"🇪🇭"},{isocode:"ar-ER",locale:"Arabic (Érythrée)",native:"العربية (إريتريا)",flag:"🇪🇷"},{isocode:"ar-IL",locale:"Arabic (Israël)",native:"العربية (إسرائيل)",flag:"🇮🇱"},{isocode:"ar-IQ",locale:"Arabic (Irak)",native:"العربية (العراق)",flag:"🇮🇶"},{isocode:"ar-JO",locale:"Arabic (Jordanie)",native:"العربية (الأردن)",flag:"🇯🇴"},{isocode:"ar-KM",locale:"Arabic (Comores)",native:"العربية (جزر القمر)",flag:"🇰🇲"},{isocode:"ar-KW",locale:"Arabic (Koweït)",native:"العربية (الكويت)",flag:"🇰🇼"},{isocode:"ar-LB",locale:"Arabic (Liban)",native:"العربية (لبنان)",flag:"🇱🇧"},{isocode:"ar-LY",locale:"Arabic (Libye)",native:"العربية (ليبيا)",flag:"🇱🇾"},{isocode:"ar-MA",locale:"Arabic (Maroc)",native:"العربية (المغرب)",flag:"🇲🇦"},{isocode:"ar-MR",locale:"Arabic (Mauritanie)",native:"العربية (موريتانيا)",flag:"🇲🇷"},{isocode:"ar-OM",locale:"Arabic (Oman)",native:"العربية (عُمان)",flag:"🇴🇲"},{isocode:"ar-PS",locale:"Arabic (Territoires palestiniens)",native:"العربية (الأراضي الفلسطينية)",flag:"🇵🇸"},{isocode:"ar-QA",locale:"Arabic (Qatar)",native:"العربية (قطر)",flag:"🇶🇦"},{isocode:"ar-SA",locale:"Arabic (Arabie saoudite)",native:"العربية (المملكة العربية السعودية)",flag:"🇸🇦"},{isocode:"ar-SD",locale:"Arabic (Soudan)",native:"العربية (السودان)",flag:"🇸🇩"},{isocode:"ar-SO",locale:"Arabic (Somalie)",native:"العربية (الصومال)",flag:"🇸🇴"},{isocode:"ar-SS",locale:"Arabic (Soudan du Sud)",native:"العربية (جنوب السودان)",flag:"🇸🇸"},{isocode:"ar-SY",locale:"Arabic (Syrie)",native:"العربية (سوريا)",flag:"🇸🇾"},{isocode:"ar-TD",locale:"Arabic (Tchad)",native:"العربية (تشاد)",flag:"🇹🇩"},{isocode:"ar-TN",locale:"Arabic (Tunisie)",native:"العربية (تونس)",flag:"🇹🇳"},{isocode:"ar-YE",locale:"Arabic (Yémen)",native:"العربية (اليمن)",flag:"🇾🇪"},{isocode:"as",locale:"Assamais",native:"অসমীয়া",flag:"🇮🇳"},{isocode:"as-IN",locale:"Assamais (India)",native:"অসমীয়া (ভারত)",flag:"🇮🇳"},{isocode:"asa",locale:"Assou",native:"Kipare",flag:"🇹🇿"},{isocode:"asa-TZ",locale:"Assou (Tanzanie)",native:"Kipare (Tadhania)",flag:"🇹🇿"},{isocode:"ast",locale:"Asturien",native:"Asturianu",flag:"🇪🇸"},{isocode:"ast-ES",locale:"Asturien (Spain)",native:"Asturianu (España)",flag:"🇪🇸"},{isocode:"az",locale:"Azéri",native:"Azərbaycan",flag:"🇦🇿"},{isocode:"az-Cyrl",locale:"Azéri (cyrillique)",native:"азәрбајҹан (Кирил)",flag:"🇦🇿"},{isocode:"az-Cyrl-AZ",locale:"Azéri (cyrillique, Azerbaïdjan)",native:"азәрбајҹан (Кирил, Азәрбајҹан)",flag:"🇦🇿"},{isocode:"az-Latn",locale:"Azéri (latin)",native:"Azərbaycan (latın)",flag:"🇦🇿"},{isocode:"az-Latn-AZ",locale:"Azéri (latin, Azerbaïdjan)",native:"Azərbaycan (latın, Azərbaycan)",flag:"🇦🇿"},{isocode:"bas",locale:"Bassa",native:"Ɓàsàa",flag:"🇨🇲"},{isocode:"bas-CM",locale:"Bassa (Cameroun)",native:"Ɓàsàa (Kàmɛ̀rûn)",flag:"🇨🇲"},{isocode:"be",locale:"Biélorusse",native:"беларуская",flag:"🇧🇾"},{isocode:"be-BY",locale:"Biélorusse (Biélorussie)",native:"беларуская (Беларусь)",flag:"🇧🇾"},{isocode:"bem",locale:"Bemba",native:"Ichibemba",flag:"🇿🇲"},{isocode:"bem-ZM",locale:"Bemba (Zambie)",native:"Ichibemba (Zambia)",flag:"🇿🇲"},{isocode:"bez",locale:"Béna",native:"Hibena",flag:"🇹🇿"},{isocode:"bez-TZ",locale:"Béna (Tanzanie)",native:"Hibena (Hutanzania)",flag:"🇹🇿"},{isocode:"bg",locale:"Bulgare",native:"български",flag:"🇧🇬"},{isocode:"bg-BG",locale:"Bulgare (Bulgarie)",native:"български (България)",flag:"🇧🇬"},{isocode:"bm",locale:"Bambara",native:"Bamanakan",flag:"🇲🇱"},{isocode:"bm-ML",locale:"Bambara (Mali)",native:"Bamanakan (Mali)",flag:"🇲🇱"},{isocode:"bn",locale:"Bengali",native:"বাংলা",flag:"🇧🇩"},{isocode:"bn-BD",locale:"Bengali (Bangladesh)",native:"বাংলা (বাংলাদেশ)",flag:"🇧🇩"},{isocode:"bn-IN",locale:"Bengali (India)",native:"বাংলা (ভারত)",flag:"🇮🇳"},{isocode:"bo",locale:"Tibétain",native:"བོད་སྐད་",flag:"🇨🇳"},{isocode:"bo-CN",locale:"Tibétain (Chine)",native:"བོད་སྐད་ (རྒྱ་ནག)",flag:"🇨🇳"},{isocode:"bo-IN",locale:"Tibétain (India)",native:"བོད་སྐད་ (རྒྱ་གར་)",flag:"🇮🇳"},{isocode:"br",locale:"Breton",native:"Brezhoneg",flag:"🇫🇷"},{isocode:"br-FR",locale:"Breton (France)",native:"Brezhoneg (Frañs)",flag:"🇫🇷"},{isocode:"brx",locale:"Bodo",native:"बड़ो",flag:"🇮🇳"},{isocode:"brx-IN",locale:"Bodo (India)",native:"बड़ो (भारत)",flag:"🇮🇳"},{isocode:"bs",locale:"Bosniaque",native:"Bosanski",flag:"🇧🇦"},{isocode:"bs-Cyrl",locale:"Bosniaque (cyrillique)",native:"босански (ћирилица)",flag:"🇧🇦"},{isocode:"bs-Cyrl-BA",locale:"Bosniaque (cyrillique, Bosnie-Herzégovine)",native:"босански (ћирилица, Босна и Херцеговина)",flag:"🇧🇦"},{isocode:"bs-Latn",locale:"Bosniaque (latin)",native:"Bosanski (latinica)",flag:"🇧🇦"},{isocode:"bs-Latn-BA",locale:"Bosniaque (latin, Bosnie-Herzégovine)",native:"Bosanski (latinica, Bosna i Hercegovina)",flag:"🇧🇦"},{isocode:"ca",locale:"Catalan",native:"Català",flag:"🇪🇸"},{isocode:"ca-AD",locale:"Catalan (Andorre)",native:"Català (Andorra)",flag:"🇦🇩"},{isocode:"ca-ES",locale:"Catalan (Spain)",native:"Català (Espanya)",flag:"🇪🇸"},{isocode:"ca-FR",locale:"Catalan (France)",native:"Català (França)",flag:"🇫🇷"},{isocode:"ca-IT",locale:"Catalan (Italie)",native:"Català (Itàlia)",flag:"🇮🇹"},{isocode:"ccp",locale:"Ccp",native:"𑄌𑄋𑄴𑄟𑄳𑄦",flag:"🇧🇩"},{isocode:"ccp-BD",locale:"Ccp (Bangladesh)",native:"𑄌𑄋𑄴𑄟𑄳𑄦 (𑄝𑄁𑄣𑄘𑄬𑄌𑄴)",flag:"🇧🇩"},{isocode:"ccp-IN",locale:"Ccp (India)",native:"𑄌𑄋𑄴𑄟𑄳𑄦 (𑄞𑄢𑄧𑄖𑄴)",flag:"🇮🇳"},{isocode:"ce",locale:"Tchétchène",native:"нохчийн",flag:"🇷🇺"},{isocode:"ce-RU",locale:"Tchétchène (Russie)",native:"нохчийн (Росси)",flag:"🇷🇺"},{isocode:"cgg",locale:"Kiga",native:"Rukiga",flag:"🇺🇬"},{isocode:"cgg-UG",locale:"Kiga (Ouganda)",native:"Rukiga (Uganda)",flag:"🇺🇬"},{isocode:"chr",locale:"Cherokee",native:"ᏣᎳᎩ",flag:"🇺🇸"},{isocode:"chr-US",locale:"Cherokee (United States)",native:"ᏣᎳᎩ (ᏌᏊ ᎢᏳᎾᎵᏍᏔᏅ ᏍᎦᏚᎩ)",flag:"🇺🇸"},{isocode:"ckb",locale:"Sorani",native:"کوردیی ناوەندی",flag:"🇮🇶"},{isocode:"ckb-IQ",locale:"Sorani (Irak)",native:"کوردیی ناوەندی (عێراق)",flag:"🇮🇶"},{isocode:"ckb-IR",locale:"Sorani (Iran)",native:"کوردیی ناوەندی (ئێران)",flag:"🇮🇷"},{isocode:"cs",locale:"Tchèque",native:"čeština",flag:"🇨🇿"},{isocode:"cs-CZ",locale:"Tchèque (Tchéquie)",native:"čeština (Česko)",flag:"🇨🇿"},{isocode:"cy",locale:"Gallois",native:"Cymraeg",flag:"🏴󠁧󠁢󠁷󠁬󠁳󠁿"},{isocode:"cy-GB",locale:"Gallois (United Kingdom)",native:"Cymraeg (Y Deyrnas Unedig)",flag:"🇬🇧"},{isocode:"da",locale:"Danois",native:"Dansk",flag:"🇩🇰"},{isocode:"da-DK",locale:"Danois (Danemark)",native:"Dansk (Danmark)",flag:"🇩🇰"},{isocode:"da-GL",locale:"Danois (Groenland)",native:"Dansk (Grønland)",flag:"🇬🇱"},{isocode:"dav",locale:"Taita",native:"Kitaita",flag:"🇰🇪"},{isocode:"dav-KE",locale:"Taita (Kenya)",native:"Kitaita (Kenya)",flag:"🇰🇪"},{isocode:"de",locale:"German",native:"Deutsch",flag:"🇩🇪"},{isocode:"de-AT",locale:"German (Autriche)",native:"Deutsch (Österreich)",flag:"🇦🇹"},{isocode:"de-BE",locale:"German (Belgium)",native:"Deutsch (Belgien)",flag:"🇧🇪"},{isocode:"de-CH",locale:"German (Switzerland)",native:"Deutsch (Schweiz)",flag:"🇨🇭"},{isocode:"de-DE",locale:"German (Germany)",native:"Deutsch (Deutschland)",flag:"🇩🇪"},{isocode:"de-IT",locale:"German (Italie)",native:"Deutsch (Italien)",flag:"🇮🇹"},{isocode:"de-LI",locale:"German (Liechtenstein)",native:"Deutsch (Liechtenstein)",flag:"🇱🇮"},{isocode:"de-LU",locale:"German (Luxembourg)",native:"Deutsch (Luxemburg)",flag:"🇱🇺"},{isocode:"dje",locale:"Zarma",native:"Zarmaciine",flag:"🇳🇪"},{isocode:"dje-NE",locale:"Zarma (Niger)",native:"Zarmaciine (Nižer)",flag:"🇳🇪"},{isocode:"dsb",locale:"Bas-sorabe",native:"Dolnoserbšćina",flag:"🇩🇪"},{isocode:"dsb-DE",locale:"Bas-sorabe (Germany)",native:"Dolnoserbšćina (Nimska)",flag:"🇩🇪"},{isocode:"dua",locale:"Douala",native:"Duálá",flag:"🇨🇲"},{isocode:"dua-CM",locale:"Douala (Cameroun)",native:"Duálá (Cameroun)",flag:"🇨🇲"},{isocode:"dyo",locale:"Diola-fogny",native:"Joola",flag:"🇸🇳"},{isocode:"dyo-SN",locale:"Diola-fogny (Sénégal)",native:"Joola (Senegal)",flag:"🇸🇳"},{isocode:"dz",locale:"Dzongkha",native:"རྫོང་ཁ",flag:"🇧🇹"},{isocode:"dz-BT",locale:"Dzongkha (Bhoutan)",native:"རྫོང་ཁ། (འབྲུག།)",flag:"🇧🇹"},{isocode:"ebu",locale:"Embou",native:"Kĩembu",flag:"🇰🇪"},{isocode:"ebu-KE",locale:"Embou (Kenya)",native:"Kĩembu (Kenya)",flag:"🇰🇪"},{isocode:"ee",locale:"Éwé",native:"Eʋegbe",flag:"🇬🇭"},{isocode:"ee-GH",locale:"Éwé (Ghana)",native:"Eʋegbe (Ghana nutome)",flag:"🇬🇭"},{isocode:"ee-TG",locale:"Éwé (Togo)",native:"Eʋegbe (Togo nutome)",flag:"🇹🇬"},{isocode:"el",locale:"Grec",native:"Ελληνικά",flag:"🇬🇷"},{isocode:"el-CY",locale:"Grec (Chypre)",native:"Ελληνικά (Κύπρος)",flag:"🇨🇾"},{isocode:"el-GR",locale:"Grec (Grèce)",native:"Ελληνικά (Ελλάδα)",flag:"🇬🇷"},{isocode:"en",locale:"English",native:"English",flag:"🇬🇧"},{isocode:"en-001",locale:"English (World)",native:"English (World)",flag:"🌍"},{isocode:"en-150",locale:"English (Europe)",native:"English (Europe)",flag:"🇪🇺"},{isocode:"en-AG",locale:"English (Antigua-et-Barbuda)",native:"English (Antigua & Barbuda)",flag:"🇦🇬"},{isocode:"en-AI",locale:"English (Anguilla)",native:"English (Anguilla)",flag:"🇦🇮"},{isocode:"en-AS",locale:"English (Samoa américaines)",native:"English (American Samoa)",flag:"🇦🇸"},{isocode:"en-AT",locale:"English (Autriche)",native:"English (Austria)",flag:"🇦🇹"},{isocode:"en-AU",locale:"English (Australia)",native:"English (Australia)",flag:"🇦🇺"},{isocode:"en-BB",locale:"English (Barbade)",native:"English (Barbados)",flag:"🇧🇧"},{isocode:"en-BE",locale:"English (Belgium)",native:"English (Belgium)",flag:"🇧🇪"},{isocode:"en-BI",locale:"English (Burundi)",native:"English (Burundi)",flag:"🇧🇮"},{isocode:"en-BM",locale:"English (Bermudes)",native:"English (Bermuda)",flag:"🇧🇲"},{isocode:"en-BS",locale:"English (Bahamas)",native:"English (Bahamas)",flag:"🇧🇸"},{isocode:"en-BW",locale:"English (Botswana)",native:"English (Botswana)",flag:"🇧🇼"},{isocode:"en-BZ",locale:"English (Belize)",native:"English (Belize)",flag:"🇧🇿"},{isocode:"en-CA",locale:"English (Canada)",native:"English (Canada)",flag:"🇨🇦"},{isocode:"en-CC",locale:"English (Îles Cocos)",native:"English (Cocos [Keeling] Islands)",flag:"🇨🇨"},{isocode:"en-CH",locale:"English (Switzerland)",native:"English (Switzerland)",flag:"🇨🇭"},{isocode:"en-CK",locale:"English (Îles Cook)",native:"English (Cook Islands)",flag:"🇨🇰"},{isocode:"en-CM",locale:"English (Cameroun)",native:"English (Cameroon)",flag:"🇨🇲"},{isocode:"en-CX",locale:"English (Île Christmas)",native:"English (Christmas Island)",flag:"🇨🇽"},{isocode:"en-CY",locale:"English (Chypre)",native:"English (Cyprus)",flag:"🇨🇾"},{isocode:"en-DE",locale:"English (Germany)",native:"English (Germany)",flag:"🇩🇪"},{isocode:"en-DG",locale:"English (Diego Garcia)",native:"English (Diego Garcia)",flag:"🇩🇬"},{isocode:"en-DK",locale:"English (Danemark)",native:"English (Denmark)",flag:"🇩🇰"},{isocode:"en-DM",locale:"English (Dominique)",native:"English (Dominica)",flag:"🇩🇲"},{isocode:"en-ER",locale:"English (Érythrée)",native:"English (Eritrea)",flag:"🇪🇷"},{isocode:"en-FI",locale:"English (Finlande)",native:"English (Finland)",flag:"🇫🇮"},{isocode:"en-FJ",locale:"English (Fidji)",native:"English (Fiji)",flag:"🇫🇯"},{isocode:"en-FK",locale:"English (Îles Malouines)",native:"English (Falkland Islands)",flag:"🇫🇰"},{isocode:"en-FM",locale:"English (États fédérés de Micronésie)",native:"English (Micronesia)",flag:"🇫🇲"},{isocode:"en-GB",locale:"English (United Kingdom)",native:"English (United Kingdom)",flag:"🇬🇧"},{isocode:"en-GD",locale:"English (Grenade)",native:"English (Grenada)",flag:"🇬🇩"},{isocode:"en-GG",locale:"English (Guernesey)",native:"English (Guernsey)",flag:"🇬🇬"},{isocode:"en-GH",locale:"English (Ghana)",native:"English (Ghana)",flag:"🇬🇭"},{isocode:"en-GI",locale:"English (Gibraltar)",native:"English (Gibraltar)",flag:"🇬🇮"},{isocode:"en-GM",locale:"English (Gambie)",native:"English (Gambia)",flag:"🇬🇲"},{isocode:"en-GU",locale:"English (Guam)",native:"English (Guam)",flag:"🇬🇺"},{isocode:"en-GY",locale:"English (Guyana)",native:"English (Guyana)",flag:"🇬🇾"},{isocode:"en-HK",locale:"English (R.A.S. chinoise de Hong Kong)",native:"English (Hong Kong SAR China)",flag:"🇭🇰"},{isocode:"en-IE",locale:"English (Irlande)",native:"English (Ireland)",flag:"🇮🇪"},{isocode:"en-IL",locale:"English (Israël)",native:"English (Israel)",flag:"🇮🇱"},{isocode:"en-IM",locale:"English (Île de Man)",native:"English (Isle of Man)",flag:"🇮🇲"},{isocode:"en-IN",locale:"English (India)",native:"English (India)",flag:"🇮🇳"},{isocode:"en-IO",locale:"English (Territoire britannique de l'océan Indien)",native:"English (British Indian Ocean Territory)",flag:"🇮🇴"},{isocode:"en-JE",locale:"English (Jersey)",native:"English (Jersey)",flag:"🇯🇪"},{isocode:"en-JM",locale:"English (Jamaïque)",native:"English (Jamaica)",flag:"🇯🇲"},{isocode:"en-KE",locale:"English (Kenya)",native:"English (Kenya)",flag:"🇰🇪"},{isocode:"en-KI",locale:"English (Kiribati)",native:"English (Kiribati)",flag:"🇰🇮"},{isocode:"en-KN",locale:"English (Saint-Christophe-et-Niévès)",native:"English (St. Kitts & Nevis)",flag:"🇰🇳"},{isocode:"en-KY",locale:"English (Îles Caïmans)",native:"English (Cayman Islands)",flag:"🇰🇾"},{isocode:"en-LC",locale:"English (Sainte-Lucie)",native:"English (St. Lucia)",flag:"🇱🇨"},{isocode:"en-LR",locale:"English (Libéria)",native:"English (Liberia)",flag:"🇱🇷"},{isocode:"en-LS",locale:"English (Lesotho)",native:"English (Lesotho)",flag:"🇱🇸"},{isocode:"en-MG",locale:"English (Madagascar)",native:"English (Madagascar)",flag:"🇲🇬"},{isocode:"en-MH",locale:"English (Îles Marshall)",native:"English (Marshall Islands)",flag:"🇲🇭"},{isocode:"en-MO",locale:"English (R.A.S. chinoise de Macao)",native:"English (Macau SAR China)",flag:"🇲🇴"},{isocode:"en-MP",locale:"English (Îles Mariannes du Nord)",native:"English (Northern Mariana Islands)",flag:"🇲🇵"},{isocode:"en-MS",locale:"English (Montserrat)",native:"English (Montserrat)",flag:"🇲🇸"},{isocode:"en-MT",locale:"English (Malte)",native:"English (Malta)",flag:"🇲🇹"},{isocode:"en-MU",locale:"English (Maurice)",native:"English (Mauritius)",flag:"🇲🇺"},{isocode:"en-MW",locale:"English (Malawi)",native:"English (Malawi)",flag:"🇲🇼"},{isocode:"en-MY",locale:"English (Malaisie)",native:"English (Malaysia)",flag:"🇲🇾"},{isocode:"en-NA",locale:"English (Namibie)",native:"English (Namibia)",flag:"🇳🇦"},{isocode:"en-NF",locale:"English (Île Norfolk)",native:"English (Norfolk Island)",flag:"🇳🇫"},{isocode:"en-NG",locale:"English (Nigéria)",native:"English (Nigeria)",flag:"🇳🇬"},{isocode:"en-NL",locale:"English (Pays-Bas)",native:"English (Netherlands)",flag:"🇳🇱"},{isocode:"en-NR",locale:"English (Nauru)",native:"English (Nauru)",flag:"🇳🇷"},{isocode:"en-NU",locale:"English (Niue)",native:"English (Niue)",flag:"🇳🇺"},{isocode:"en-NZ",locale:"English (New Zealand)",native:"English (New Zealand)",flag:"🇳🇿"},{isocode:"en-PG",locale:"English (Papouasie-Nouvelle-Guinée)",native:"English (Papua New Guinea)",flag:"🇵🇬"},{isocode:"en-PH",locale:"English (Philippines)",native:"English (Philippines)",flag:"🇵🇭"},{isocode:"en-PK",locale:"English (Pakistan)",native:"English (Pakistan)",flag:"🇵🇰"},{isocode:"en-PN",locale:"English (Îles Pitcairn)",native:"English (Pitcairn Islands)",flag:"🇵🇳"},{isocode:"en-PR",locale:"English (Porto Rico)",native:"English (Puerto Rico)",flag:"🇵🇷"},{isocode:"en-PW",locale:"English (Palaos)",native:"English (Palau)",flag:"🇵🇼"},{isocode:"en-RW",locale:"English (Rwanda)",native:"English (Rwanda)",flag:"🇷🇼"},{isocode:"en-SB",locale:"English (Îles Salomon)",native:"English (Solomon Islands)",flag:"🇸🇧"},{isocode:"en-SC",locale:"English (Seychelles)",native:"English (Seychelles)",flag:"🇸🇨"},{isocode:"en-SD",locale:"English (Soudan)",native:"English (Sudan)",flag:"🇸🇩"},{isocode:"en-SE",locale:"English (Suède)",native:"English (Sweden)",flag:"🇸🇪"},{isocode:"en-SG",locale:"English (Singapour)",native:"English (Singapore)",flag:"🇸🇬"},{isocode:"en-SH",locale:"English (Sainte-Hélène)",native:"English (St. Helena)",flag:"🇸🇭"},{isocode:"en-SI",locale:"English (Slovénie)",native:"English (Slovenia)",flag:"🇸🇮"},{isocode:"en-SL",locale:"English (Sierra Leone)",native:"English (Sierra Leone)",flag:"🇸🇱"},{isocode:"en-SS",locale:"English (Soudan du Sud)",native:"English (South Sudan)",flag:"🇸🇸"},{isocode:"en-SX",locale:"English (Saint-Martin [partie néerlandaise])",native:"English (Sint Maarten)",flag:"🇸🇽"},{isocode:"en-SZ",locale:"English (Swaziland)",native:"English (Swaziland)",flag:"🇸🇿"},{isocode:"en-TC",locale:"English (Îles Turques-et-Caïques)",native:"English (Turks & Caicos Islands)",flag:"🇹🇨"},{isocode:"en-TK",locale:"English (Tokélaou)",native:"English (Tokelau)",flag:"🇹🇰"},{isocode:"en-TO",locale:"English (Tonga)",native:"English (Tonga)",flag:"🇹🇴"},{isocode:"en-TT",locale:"English (Trinité-et-Tobago)",native:"English (Trinidad & Tobago)",flag:"🇹🇹"},{isocode:"en-TV",locale:"English (Tuvalu)",native:"English (Tuvalu)",flag:"🇹🇻"},{isocode:"en-TZ",locale:"English (Tanzanie)",native:"English (Tanzania)",flag:"🇹🇿"},{isocode:"en-UG",locale:"English (Ouganda)",native:"English (Uganda)",flag:"🇺🇬"},{isocode:"en-UM",locale:"English (Îles mineures éloignées des United States)",native:"English (U.S. Outlying Islands)",flag:"🇺🇲"},{isocode:"en-US",locale:"English (United States)",native:"English (United States)",flag:"🇺🇸"},{isocode:"en-US-POSIX",locale:"English (United States, Computer)",native:"English (United States, Computer)",flag:"💻"},{isocode:"en-VC",locale:"English (Saint-Vincent-et-les-Grenadines)",native:"English (St. Vincent & Grenadines)",flag:"🇻🇨"},{isocode:"en-VG",locale:"English (Îles Vierges britanniques)",native:"English (British Virgin Islands)",flag:"🇻🇬"},{isocode:"en-VI",locale:"English (Îles Vierges des United States)",native:"English (U.S. Virgin Islands)",flag:"🇻🇮"},{isocode:"en-VU",locale:"English (Vanuatu)",native:"English (Vanuatu)",flag:"🇻🇺"},{isocode:"en-WS",locale:"English (Samoa)",native:"English (Samoa)",flag:"🇼🇸"},{isocode:"en-ZA",locale:"English (South Africa)",native:"English (South Africa)",flag:"🇿🇦"},{isocode:"en-ZM",locale:"English (Zambie)",native:"English (Zambia)",flag:"🇿🇲"},{isocode:"en-ZW",locale:"English (Zimbabwe)",native:"English (Zimbabwe)",flag:"🇿🇼"},{isocode:"eo",locale:"Espéranto",native:"Esperanto",flag:"🌍"},{isocode:"es",locale:"Espagnol",native:"Español",flag:"🇪🇸"},{isocode:"es-419",locale:"Espagnol (Latin America)",native:"Español (Latinoamérica)",flag:"🌎"},{isocode:"es-AR",locale:"Espagnol (Argentine)",native:"Español (Argentina)",flag:"🇦🇷"},{isocode:"es-BO",locale:"Espagnol (Bolivie)",native:"Español (Bolivia)",flag:"🇧🇴"},{isocode:"es-BR",locale:"Espagnol (Brazil)",native:"Español (Brasil)",flag:"🇧🇷"},{isocode:"es-BZ",locale:"Espagnol (Belize)",native:"Español (Belice)",flag:"🇧🇿"},{isocode:"es-CL",locale:"Espagnol (Chili)",native:"Español (Chile)",flag:"🇨🇱"},{isocode:"es-CO",locale:"Espagnol (Colombie)",native:"Español (Colombia)",flag:"🇨🇴"},{isocode:"es-CR",locale:"Espagnol (Costa Rica)",native:"Español (Costa Rica)",flag:"🇨🇷"},{isocode:"es-CU",locale:"Espagnol (Cuba)",native:"Español (Cuba)",flag:"🇨🇺"},{isocode:"es-DO",locale:"Espagnol (République dominicaine)",native:"Español (República Dominicana)",flag:"🇩🇴"},{isocode:"es-EA",locale:"Espagnol (Ceuta et Melilla)",native:"Español (Ceuta y Melilla)",flag:"🇪🇦"},{isocode:"es-EC",locale:"Espagnol (Équateur)",native:"Español (Ecuador)",flag:"🇪🇨"},{isocode:"es-ES",locale:"Espagnol (Spain)",native:"Español (España)",flag:"🇪🇸"},{isocode:"es-GQ",locale:"Espagnol (Guinée équatoriale)",native:"Español (Guinea Ecuatorial)",flag:"🇬🇶"},{isocode:"es-GT",locale:"Espagnol (Guatemala)",native:"Español (Guatemala)",flag:"🇬🇹"},{isocode:"es-HN",locale:"Espagnol (Honduras)",native:"Español (Honduras)",flag:"🇭🇳"},{isocode:"es-IC",locale:"Espagnol (Îles Canaries)",native:"Español (Canarias)",flag:"🇮🇨"},{isocode:"es-MX",locale:"Espagnol (Mexico)",native:"Español (México)",flag:"🇲🇽"},{isocode:"es-NI",locale:"Espagnol (Nicaragua)",native:"Español (Nicaragua)",flag:"🇳🇮"},{isocode:"es-PA",locale:"Espagnol (Panama)",native:"Español (Panamá)",flag:"🇵🇦"},{isocode:"es-PE",locale:"Espagnol (Pérou)",native:"Español (Perú)",flag:"🇵🇪"},{isocode:"es-PH",locale:"Espagnol (Philippines)",native:"Español (Filipinas)",flag:"🇵🇭"},{isocode:"es-PR",locale:"Espagnol (Porto Rico)",native:"Español (Puerto Rico)",flag:"🇵🇷"},{isocode:"es-PY",locale:"Espagnol (Paraguay)",native:"Español (Paraguay)",flag:"🇵🇾"},{isocode:"es-SV",locale:"Espagnol (Salvador)",native:"Español (El Salvador)",flag:"🇸🇻"},{isocode:"es-US",locale:"Espagnol (United States)",native:"Español (Estados Unidos)",flag:"🇺🇸"},{isocode:"es-UY",locale:"Espagnol (Uruguay)",native:"Español (Uruguay)",flag:"🇺🇾"},{isocode:"es-VE",locale:"Espagnol (Venezuela)",native:"Español (Venezuela)",flag:"🇻🇪"},{isocode:"et",locale:"Estonien",native:"Eesti",flag:"🇪🇪"},{isocode:"et-EE",locale:"Estonien (Estonie)",native:"Eesti (Eesti)",flag:"🇪🇪"},{isocode:"eu",locale:"Basque",native:"Euskara",flag:"🇪🇸"},{isocode:"eu-ES",locale:"Basque (Spain)",native:"Euskara (Espainia)",flag:"🇪🇸"},{isocode:"ewo",locale:"Éwondo",native:"Ewondo",flag:"🇨🇲"},{isocode:"ewo-CM",locale:"Éwondo (Cameroun)",native:"Ewondo (Kamərún)",flag:"🇨🇲"},{isocode:"fa",locale:"Persan",native:"فارسی",flag:"🇮🇷"},{isocode:"fa-AF",locale:"Persan (Afghanistan)",native:"فارسی (افغانستان)",flag:"🇦🇫"},{isocode:"fa-IR",locale:"Persan (Iran)",native:"فارسی (ایران)",flag:"🇮🇷"},{isocode:"ff",locale:"Peul",native:"Pulaar",flag:"🇸🇳"},{isocode:"ff-CM",locale:"Peul (Cameroun)",native:"Pulaar (Kameruun)",flag:"🇨🇲"},{isocode:"ff-GN",locale:"Peul (Guinée)",native:"Pulaar (Gine)",flag:"🇬🇳"},{isocode:"ff-MR",locale:"Peul (Mauritanie)",native:"Pulaar (Muritani)",flag:"🇲🇷"},{isocode:"ff-SN",locale:"Peul (Sénégal)",native:"Pulaar (Senegaal)",flag:"🇸🇳"},{isocode:"fi",locale:"Finnois",native:"Suomi",flag:"🇫🇮"},{isocode:"fi-FI",locale:"Finnois (Finlande)",native:"Suomi (Suomi)",flag:"🇫🇮"},{isocode:"fil",locale:"Filipino",native:"Filipino",flag:"🇵🇭"},{isocode:"fil-PH",locale:"Filipino (Philippines)",native:"Filipino (Pilipinas)",flag:"🇵🇭"},{isocode:"fo",locale:"Féroïen",native:"Føroyskt",flag:"🇫🇴"},{isocode:"fo-DK",locale:"Féroïen (Danemark)",native:"Føroyskt (Danmark)",flag:"🇩🇰"},{isocode:"fo-FO",locale:"Féroïen (Îles Féroé)",native:"Føroyskt (Føroyar)",flag:"🇫🇴"},{isocode:"fr",locale:"French",native:"Français",flag:"🇫🇷"},{isocode:"fr-BE",locale:"French (Belgium)",native:"Français (Belgique)",flag:"🇧🇪"},{isocode:"fr-BF",locale:"French (Burkina Faso)",native:"Français (Burkina Faso)",flag:"🇧🇫"},{isocode:"fr-BI",locale:"French (Burundi)",native:"Français (Burundi)",flag:"🇧🇮"},{isocode:"fr-BJ",locale:"French (Bénin)",native:"Français (Bénin)",flag:"🇧🇯"},{isocode:"fr-BL",locale:"French (Saint-Barthélemy)",native:"Français (Saint-Barthélemy)",flag:"🇧🇱"},{isocode:"fr-CA",locale:"French (Canada)",native:"Français (Canada)",flag:"🇨🇦"},{isocode:"fr-CD",locale:"French (Congo-Kinshasa)",native:"Français (Congo-Kinshasa)",flag:"🇨🇩"},{isocode:"fr-CF",locale:"French (République centrafricaine)",native:"Français (République centrafricaine)",flag:"🇨🇫"},{isocode:"fr-CG",locale:"French (Congo-Brazzaville)",native:"Français (Congo-Brazzaville)",flag:"🇨🇬"},{isocode:"fr-CH",locale:"French (Switzerland)",native:"Français (Suisse)",flag:"🇨🇭"},{isocode:"fr-CI",locale:"French (Côte d'Ivoire)",native:"Français (Côte d'Ivoire)",flag:"🇨🇮"},{isocode:"fr-CM",locale:"French (Cameroun)",native:"Français (Cameroun)",flag:"🇨🇲"},{isocode:"fr-DJ",locale:"French (Djibouti)",native:"Français (Djibouti)",flag:"🇩🇯"},{isocode:"fr-DZ",locale:"French (Algérie)",native:"Français (Algérie)",flag:"🇩🇿"},{isocode:"fr-FR",locale:"French (France)",native:"Français (France)",flag:"🇫🇷"},{isocode:"fr-GA",locale:"French (Gabon)",native:"Français (Gabon)",flag:"🇬🇦"},{isocode:"fr-GF",locale:"French (Guyane française)",native:"Français (Guyane française)",flag:"🇬🇫"},{isocode:"fr-GN",locale:"French (Guinée)",native:"Français (Guinée)",flag:"🇬🇳"},{isocode:"fr-GP",locale:"French (Guadeloupe)",native:"Français (Guadeloupe)",flag:"🇬🇵"},{isocode:"fr-GQ",locale:"French (Guinée équatoriale)",native:"Français (Guinée équatoriale)",flag:"🇬🇶"},{isocode:"fr-HT",locale:"French (Haïti)",native:"Français (Haïti)",flag:"🇭🇹"},{isocode:"fr-KM",locale:"French (Comores)",native:"Français (Comores)",flag:"🇰🇲"},{isocode:"fr-LU",locale:"French (Luxembourg)",native:"Français (Luxembourg)",flag:"🇱🇺"},{isocode:"fr-MA",locale:"French (Maroc)",native:"Français (Maroc)",flag:"🇲🇦"},{isocode:"fr-MC",locale:"French (Monaco)",native:"Français (Monaco)",flag:"🇲🇨"},{isocode:"fr-MF",locale:"French (Saint-Martin)",native:"Français (Saint-Martin)",flag:"🇲🇫"},{isocode:"fr-MG",locale:"French (Madagascar)",native:"Français (Madagascar)",flag:"🇲🇬"},{isocode:"fr-ML",locale:"French (Mali)",native:"Français (Mali)",flag:"🇲🇱"},{isocode:"fr-MQ",locale:"French (Martinique)",native:"Français (Martinique)",flag:"🇲🇶"},{isocode:"fr-MR",locale:"French (Mauritanie)",native:"Français (Mauritanie)",flag:"🇲🇷"},{isocode:"fr-MU",locale:"French (Maurice)",native:"Français (Maurice)",flag:"🇲🇺"},{isocode:"fr-NC",locale:"French (Nouvelle-Calédonie)",native:"Français (Nouvelle-Calédonie)",flag:"🇳🇨"},{isocode:"fr-NE",locale:"French (Niger)",native:"Français (Niger)",flag:"🇳🇪"},{isocode:"fr-PF",locale:"French (Polynésie française)",native:"Français (Polynésie française)",flag:"🇵🇫"},{isocode:"fr-PM",locale:"French (Saint-Pierre-et-Miquelon)",native:"Français (Saint-Pierre-et-Miquelon)",flag:"🇵🇲"},{isocode:"fr-RE",locale:"French (La Réunion)",native:"Français (La Réunion)",flag:"🇷🇪"},{isocode:"fr-RW",locale:"French (Rwanda)",native:"Français (Rwanda)",flag:"🇷🇼"},{isocode:"fr-SC",locale:"French (Seychelles)",native:"Français (Seychelles)",flag:"🇸🇨"},{isocode:"fr-SN",locale:"French (Sénégal)",native:"Français (Sénégal)",flag:"🇸🇳"},{isocode:"fr-SY",locale:"French (Syrie)",native:"Français (Syrie)",flag:"🇸🇾"},{isocode:"fr-TD",locale:"French (Tchad)",native:"Français (Tchad)",flag:"🇹🇩"},{isocode:"fr-TG",locale:"French (Togo)",native:"Français (Togo)",flag:"🇹🇬"},{isocode:"fr-TN",locale:"French (Tunisie)",native:"Français (Tunisie)",flag:"🇹🇳"},{isocode:"fr-VU",locale:"French (Vanuatu)",native:"Français (Vanuatu)",flag:"🇻🇺"},{isocode:"fr-WF",locale:"French (Wallis-et-Futuna)",native:"Français (Wallis-et-Futuna)",flag:"🇼🇫"},{isocode:"fr-YT",locale:"French (Mayotte)",native:"Français (Mayotte)",flag:"🇾🇹"},{isocode:"fur",locale:"Frioulan",native:"Furlan",flag:"🇮🇹"},{isocode:"fur-IT",locale:"Frioulan (Italie)",native:"Furlan (Italie)",flag:"🇮🇹"},{isocode:"fy",locale:"Frison occidental",native:"Frysk",flag:"🇳🇱"},{isocode:"fy-NL",locale:"Frison occidental (Pays-Bas)",native:"Frysk (Nederlân)",flag:"🇳🇱"},{isocode:"ga",locale:"Irlandais",native:"Gaeilge",flag:"🇮🇪"},{isocode:"ga-IE",locale:"Irlandais (Irlande)",native:"Gaeilge (Éire)",flag:"🇮🇪"},{isocode:"gd",locale:"Gaélique écossais",native:"Gàidhlig",flag:"🏴󠁧󠁢󠁳󠁣󠁴󠁿"},{isocode:"gd-GB",locale:"Gaélique écossais (United Kingdom)",native:"Gàidhlig (An Rìoghachd Aonaichte)",flag:"🇬🇧"},{isocode:"gl",locale:"Galicien",native:"Galego",flag:"🇪🇸"},{isocode:"gl-ES",locale:"Galicien (Spain)",native:"Galego (España)",flag:"🇪🇸"},{isocode:"gsw",locale:"Switzerland German",native:"Schwiizertüütsch",flag:"🇨🇭"},{isocode:"gsw-CH",locale:"Switzerland German (Switzerland)",native:"Schwiizertüütsch (Schwiiz)",flag:"🇨🇭"},{isocode:"gsw-FR",locale:"Switzerland German (France)",native:"Schwiizertüütsch (Frankriich)",flag:"🇫🇷"},{isocode:"gsw-LI",locale:"Switzerland German (Liechtenstein)",native:"Schwiizertüütsch (Liächteschtäi)",flag:"🇱🇮"},{isocode:"gu",locale:"Goudjerati",native:"ગુજરાતી",flag:"🇮🇳"},{isocode:"gu-IN",locale:"Goudjerati (India)",native:"ગુજરાતી (ભારત)",flag:"🇮🇳"},{isocode:"guz",locale:"Gusii",native:"Ekegusii",flag:"🇰🇪"},{isocode:"guz-KE",locale:"Gusii (Kenya)",native:"Ekegusii (Kenya)",flag:"🇰🇪"},{isocode:"gv",locale:"Mannois",native:"Gaelg",flag:"🇮🇲"},{isocode:"gv-IM",locale:"Mannois (Île de Man)",native:"Gaelg (Ellan Vannin)",flag:"🇮🇲"},{isocode:"ha",locale:"Haoussa",native:"Hausa",flag:"🇳🇬"},{isocode:"ha-GH",locale:"Haoussa (Ghana)",native:"Hausa (Gana)",flag:"🇬🇭"},{isocode:"ha-NE",locale:"Haoussa (Niger)",native:"Hausa (Nijar)",flag:"🇳🇪"},{isocode:"ha-NG",locale:"Haoussa (Nigéria)",native:"Hausa (Najeriya)",flag:"🇳🇬"},{isocode:"haw",locale:"Hawaïen",native:"ʻŌlelo Hawaiʻi",flag:"🇺🇸"},{isocode:"haw-US",locale:"Hawaïen (United States)",native:"ʻŌlelo Hawaiʻi (ʻAmelika Hui Pū ʻIa)",flag:"🇺🇸"},{isocode:"he",locale:"Hébreu",native:"עברית",flag:"🇮🇱"},{isocode:"he-IL",locale:"Hébreu (Israël)",native:"עברית (ישראל)",flag:"🇮🇱"},{isocode:"hi",locale:"Hindi",native:"हिन्दी",flag:"🇮🇳"},{isocode:"hi-IN",locale:"Hindi (India)",native:"हिन्दी (भारत)",flag:"🇮🇳"},{isocode:"hr",locale:"Croate",native:"Hrvatski",flag:"🇭🇷"},{isocode:"hr-BA",locale:"Croate (Bosnie-Herzégovine)",native:"Hrvatski (Bosna i Hercegovina)",flag:"🇧🇦"},{isocode:"hr-HR",locale:"Croate (Croatie)",native:"Hrvatski (Hrvatska)",flag:"🇭🇷"},{isocode:"hsb",locale:"Haut-sorabe",native:"Hornjoserbšćina",flag:"🇩🇪"},{isocode:"hsb-DE",locale:"Haut-sorabe (Germany)",native:"Hornjoserbšćina (Němska)",flag:"🇩🇪"},{isocode:"hu",locale:"Hongrois",native:"Magyar",flag:"🇭🇺"},{isocode:"hu-HU",locale:"Hongrois (Hongrie)",native:"Magyar (Magyarország)",flag:"🇭🇺"},{isocode:"hy",locale:"Arménien",native:"հայերեն",flag:"🇦🇲"},{isocode:"hy-AM",locale:"Arménien (Arménie)",native:"հայերեն (Հայաստան)",flag:"🇦🇲"},{isocode:"id",locale:"Indonésien",native:"Indonesia",flag:"🇮🇩"},{isocode:"id-ID",locale:"Indonésien (Indonésie)",native:"Indonesia (Indonesia)",flag:"🇮🇩"},{isocode:"ig",locale:"Igbo",native:"Igbo",flag:"🇳🇬"},{isocode:"ig-NG",locale:"Igbo (Nigéria)",native:"Igbo (Naịjịrịa)",flag:"🇳🇬"},{isocode:"ii",locale:"Yi du Sichuan",native:"ꆈꌠꉙ",flag:"🇨🇳"},{isocode:"ii-CN",locale:"Yi du Sichuan (Chine)",native:"ꆈꌠꉙ (ꍏꇩ)",flag:"🇨🇳"},{isocode:"is",locale:"Islandais",native:"íslenska",flag:"🇮🇸"},{isocode:"is-IS",locale:"Islandais (Islande)",native:"íslenska (Ísland)",flag:"🇮🇸"},{isocode:"it",locale:"Italian",native:"Italiano",flag:"🇮🇹"},{isocode:"it-CH",locale:"Italian (Switzerland)",native:"Italiano (Svizzera)",flag:"🇨🇭"},{isocode:"it-IT",locale:"Italian (Italie)",native:"Italiano (Italia)",flag:"🇮🇹"},{isocode:"it-SM",locale:"Italian (Saint-Marin)",native:"Italiano (San Marino)",flag:"🇸🇲"},{isocode:"it-VA",locale:"Italian (État de la Cité du Vatican)",native:"Italiano (Città del Vaticano)",flag:"🇻🇦"},{isocode:"ja",locale:"Japonais",native:"日本語",flag:"🇯🇵"},{isocode:"ja-JP",locale:"Japonais (Japan)",native:"日本語 (日本)",flag:"🇯🇵"},{isocode:"jgo",locale:"Ngomba",native:"Ndaꞌa",flag:"🇨🇲"},{isocode:"jgo-CM",locale:"Ngomba (Cameroun)",native:"Ndaꞌa (Kamɛlûn)",flag:"🇨🇲"},{isocode:"jmc",locale:"Matchamé",native:"Kimachame",flag:"🇹🇿"},{isocode:"jmc-TZ",locale:"Matchamé (Tanzanie)",native:"Kimachame (Tanzania)",flag:"🇹🇿"},{isocode:"ka",locale:"Géorgien",native:"ქართული",flag:"🇬🇪"},{isocode:"ka-GE",locale:"Géorgien (Géorgie)",native:"ქართული (საქართველო)",flag:"🇬🇪"},{isocode:"kab",locale:"Kabyle",native:"Taqbaylit",flag:"🇩🇿"},{isocode:"kab-DZ",locale:"Kabyle (Algérie)",native:"Taqbaylit (Lezzayer)",flag:"🇩🇿"},{isocode:"kam",locale:"Kamba",native:"Kikamba",flag:"🇰🇪"},{isocode:"kam-KE",locale:"Kamba (Kenya)",native:"Kikamba (Kenya)",flag:"🇰🇪"},{isocode:"kde",locale:"Makondé",native:"Chimakonde",flag:"🇹🇿"},{isocode:"kde-TZ",locale:"Makondé (Tanzanie)",native:"Chimakonde (Tanzania)",flag:"🇹🇿"},{isocode:"kea",locale:"Capverdien",native:"Kabuverdianu",flag:"🇨🇻"},{isocode:"kea-CV",locale:"Capverdien (Cap-Vert)",native:"Kabuverdianu (Kabu Verdi)",flag:"🇨🇻"},{isocode:"khq",locale:"Koyra chiini",native:"Koyra ciini",flag:"🇲🇱"},{isocode:"khq-ML",locale:"Koyra chiini (Mali)",native:"Koyra ciini (Maali)",flag:"🇲🇱"},{isocode:"ki",locale:"Kikuyu",native:"Gikuyu",flag:"🇰🇪"},{isocode:"ki-KE",locale:"Kikuyu (Kenya)",native:"Gikuyu (Kenya)",flag:"🇰🇪"},{isocode:"kk",locale:"Kazakh",native:"қазақ тілі",flag:"🇰🇿"},{isocode:"kk-KZ",locale:"Kazakh (Kazakhstan)",native:"қазақ тілі (Қазақстан)",flag:"🇰🇿"},{isocode:"kkj",locale:"Kako",native:"Kakɔ",flag:"🇨🇲"},{isocode:"kkj-CM",locale:"Kako (Cameroun)",native:"Kakɔ (Kamɛrun)",flag:"🇨🇲"},{isocode:"kl",locale:"Groenlandais",native:"Kalaallisut",flag:"🇬🇱"},{isocode:"kl-GL",locale:"Groenlandais (Groenland)",native:"Kalaallisut (Kalaallit Nunaat)",flag:"🇬🇱"},{isocode:"kln",locale:"Kalendjin",native:"Kalenjin",flag:"🇰🇪"},{isocode:"kln-KE",locale:"Kalendjin (Kenya)",native:"Kalenjin (Emetab Kenya)",flag:"🇰🇪"},{isocode:"km",locale:"Khmer",native:"ខ្មែរ",flag:"🇰🇭"},{isocode:"km-KH",locale:"Khmer (Cambodge)",native:"ខ្មែរ (កម្ពុជា)",flag:"🇰🇭"},{isocode:"kn",locale:"Kannada",native:"ಕನ್ನಡ",flag:"🇮🇳"},{isocode:"kn-IN",locale:"Kannada (India)",native:"ಕನ್ನಡ (ಭಾರತ)",flag:"🇮🇳"},{isocode:"ko",locale:"Coréen",native:"한국어",flag:"🇰🇷"},{isocode:"ko-KP",locale:"Coréen (Corée du Nord)",native:"한국어(조선민주주의인민공화국)",flag:"🇰🇵"},{isocode:"ko-KR",locale:"Coréen (Corée du Sud)",native:"한국어(대한민국)",flag:"🇰🇷"},{isocode:"kok",locale:"Konkani",native:"कोंकणी",flag:"🇮🇳"},{isocode:"kok-IN",locale:"Konkani (India)",native:"कोंकणी (भारत)",flag:"🇮🇳"},{isocode:"ks",locale:"Kashmiri",native:"کٲشُر",flag:"🇮🇳"},{isocode:"ks-IN",locale:"Kashmiri (India)",native:"کٲشُر (ہِنٛدوستان)",flag:"🇮🇳"},{isocode:"ksb",locale:"Chambala",native:"Kishambaa",flag:"🇹🇿"},{isocode:"ksb-TZ",locale:"Chambala (Tanzanie)",native:"Kishambaa (Tanzania)",flag:"🇹🇿"},{isocode:"ksf",locale:"Bafia",native:"Rikpa",flag:"🇨🇲"},{isocode:"ksf-CM",locale:"Bafia (Cameroun)",native:"Rikpa (kamɛrún)",flag:"🇨🇲"},{isocode:"ksh",locale:"Francique ripuaire",native:"Kölsch",flag:"🇩🇪"},{isocode:"ksh-DE",locale:"Francique ripuaire (Germany)",native:"Kölsch en Doütschland",flag:"🇩🇪"},{isocode:"kw",locale:"Cornique",native:"Kernewek",flag:"🇬🇧"},{isocode:"kw-GB",locale:"Cornique (United Kingdom)",native:"Kernewek (Rywvaneth Unys)",flag:"🇬🇧"},{isocode:"ky",locale:"Kirghize",native:"кыргызча",flag:"🇰🇬"},{isocode:"ky-KG",locale:"Kirghize (Kirghizistan)",native:"кыргызча (Кыргызстан)",flag:"🇰🇬"},{isocode:"lag",locale:"Langi",native:"Kɨlaangi",flag:"🇹🇿"},{isocode:"lag-TZ",locale:"Langi (Tanzanie)",native:"Kɨlaangi (Taansanía)",flag:"🇹🇿"},{isocode:"lb",locale:"Luxembourgeois",native:"Lëtzebuergesch",flag:"🇱🇺"},{isocode:"lb-LU",locale:"Luxembourgeois (Luxembourg)",native:"Lëtzebuergesch (Lëtzebuerg)",flag:"🇱🇺"},{isocode:"lg",locale:"Ganda",native:"Luganda",flag:"🇺🇬"},{isocode:"lg-UG",locale:"Ganda (Ouganda)",native:"Luganda (Yuganda)",flag:"🇺🇬"},{isocode:"lkt",locale:"Lakota",native:"Lakȟólʼiyapi",flag:"🇺🇸"},{isocode:"lkt-US",locale:"Lakota (United States)",native:"Lakȟólʼiyapi (Mílahaŋska Tȟamákȟočhe)",flag:"🇺🇸"},{isocode:"ln",locale:"Lingala",native:"Lingála",flag:"🇨🇩"},{isocode:"ln-AO",locale:"Lingala (Angola)",native:"Lingála (Angóla)",flag:"🇦🇴"},{isocode:"ln-CD",locale:"Lingala (Congo-Kinshasa)",native:"Lingála (Republíki ya Kongó Demokratíki)",flag:"🇨🇩"},{isocode:"ln-CF",locale:"Lingala (République centrafricaine)",native:"Lingála (Repibiki ya Afríka ya Káti)",flag:"🇨🇫"},{isocode:"ln-CG",locale:"Lingala (Congo-Brazzaville)",native:"Lingála (Kongo)",flag:"🇨🇬"},{isocode:"lo",locale:"Lao",native:"ລາວ",flag:"🇱🇦"},{isocode:"lo-LA",locale:"Lao (Laos)",native:"ລາວ (ລາວ)",flag:"🇱🇦"},{isocode:"lrc",locale:"Lori du Nord",native:"لۊری شومالی",flag:"🇮🇷"},{isocode:"lrc-IQ",locale:"Lori du Nord (Irak)",native:"لۊری شومالی (IQ)",flag:"🇮🇶"},{isocode:"lrc-IR",locale:"Lori du Nord (Iran)",native:"لۊری شومالی (IR)",flag:"🇮🇷"},{isocode:"lt",locale:"Lituanien",native:"Lietuvių",flag:"🇱🇹"},{isocode:"lt-LT",locale:"Lituanien (Lituanie)",native:"Lietuvių (Lietuva)",flag:"🇱🇹"},{isocode:"lu",locale:"Luba-katanga",native:"Tshiluba",flag:"🇨🇩"},{isocode:"lu-CD",locale:"Luba-katanga (Congo-Kinshasa)",native:"Tshiluba (Ditunga wa Kongu)",flag:"🇨🇩"},{isocode:"luo",locale:"Luo",native:"Dholuo",flag:"🇰🇪"},{isocode:"luo-KE",locale:"Luo (Kenya)",native:"Dholuo (Kenya)",flag:"🇰🇪"},{isocode:"luy",locale:"Luhya",native:"Luluhia",flag:"🇰🇪"},{isocode:"luy-KE",locale:"Luhya (Kenya)",native:"Luluhia (Kenya)",flag:"🇰🇪"},{isocode:"lv",locale:"Letton",native:"Latviešu",flag:"🇱🇻"},{isocode:"lv-LV",locale:"Letton (Lettonie)",native:"Latviešu (Latvija)",flag:"🇱🇻"},{isocode:"mas",locale:"Massaï",native:"Maa",flag:"🇰🇪"},{isocode:"mas-KE",locale:"Massaï (Kenya)",native:"Maa (Kenya)",flag:"🇰🇪"},{isocode:"mas-TZ",locale:"Massaï (Tanzanie)",native:"Maa (Tansania)",flag:"🇹🇿"},{isocode:"mer",locale:"Mérou",native:"Kĩmĩrũ",flag:"🇰🇪"},{isocode:"mer-KE",locale:"Mérou (Kenya)",native:"Kĩmĩrũ (Kenya)",flag:"🇰🇪"},{isocode:"mfe",locale:"Créole mauricien",native:"Kreol morisien",flag:"🇲🇺"},{isocode:"mfe-MU",locale:"Créole mauricien (Maurice)",native:"Kreol morisien (Moris)",flag:"🇲🇺"},{isocode:"mg",locale:"Malgache",native:"Malagasy",flag:"🇲🇬"},{isocode:"mg-MG",locale:"Malgache (Madagascar)",native:"Malagasy (Madagasikara)",flag:"🇲🇬"},{isocode:"mgh",locale:"Makhuwa-meetto",native:"Makua",flag:"🇲🇿"},{isocode:"mgh-MZ",locale:"Makhuwa-meetto (Mozambique)",native:"Makua (Umozambiki)",flag:"🇲🇿"},{isocode:"mgo",locale:"Méta'",native:"Metaʼ",flag:"🇨🇲"},{isocode:"mgo-CM",locale:"Méta' (Cameroun)",native:"Metaʼ (Kamalun)",flag:"🇨🇲"},{isocode:"mk",locale:"Macédonien",native:"македонски",flag:"🇲🇰"},{isocode:"mk-MK",locale:"Macédonien (Macédoine)",native:"македонски (Македонија)",flag:"🇲🇰"},{isocode:"ml",locale:"Malayalam",native:"മലയാളം",flag:"🇮🇳"},{isocode:"ml-IN",locale:"Malayalam (India)",native:"മലയാളം (ഇന്ത്യ)",flag:"🇮🇳"},{isocode:"mn",locale:"Mongol",native:"монгол",flag:"🇲🇳"},{isocode:"mn-MN",locale:"Mongol (Mongolie)",native:"монгол (Монгол)",flag:"🇲🇳"},{isocode:"mr",locale:"Marathe",native:"मराठी",flag:"🇮🇳"},{isocode:"mr-IN",locale:"Marathe (India)",native:"मराठी (भारत)",flag:"🇮🇳"},{isocode:"ms",locale:"Malais",native:"Melayu",flag:"🇲🇾"},{isocode:"ms-BN",locale:"Malais (Brunéi Darussalam)",native:"Melayu (Brunei)",flag:"🇧🇳"},{isocode:"ms-MY",locale:"Malais (Malaisie)",native:"Melayu (Malaysia)",flag:"🇲🇾"},{isocode:"ms-SG",locale:"Malais (Singapour)",native:"Melayu (Singapura)",flag:"🇸🇬"},{isocode:"mt",locale:"Maltais",native:"Malti",flag:"🇲🇹"},{isocode:"mt-MT",locale:"Maltais (Malte)",native:"Malti (Malta)",flag:"🇲🇹"},{isocode:"mua",locale:"Moundang",native:"MUNDAŊ",flag:"🇨🇲"},{isocode:"mua-CM",locale:"Moundang (Cameroun)",native:"MUNDAŊ (kameruŋ)",flag:"🇨🇲"},{isocode:"my",locale:"Birman",native:"မြန်မာ",flag:"🇲🇲"},{isocode:"my-MM",locale:"Birman (Myanmar [Birmanie])",native:"မြန်မာ (မြန်မာ)",flag:"🇲🇲"},{isocode:"mzn",locale:"Mazandérani",native:"مازرونی",flag:"🇮🇷"},{isocode:"mzn-IR",locale:"Mazandérani (Iran)",native:"مازرونی (ایران)",flag:"🇮🇷"},{isocode:"naq",locale:"Nama",native:"Khoekhoegowab",flag:"🇳🇦"},{isocode:"naq-NA",locale:"Nama (Namibie)",native:"Khoekhoegowab (Namibiab)",flag:"🇳🇦"},{isocode:"nb",locale:"Norvégien bokmål",native:"Norsk bokmål",flag:"🇳🇴"},{isocode:"nb-NO",locale:"Norvégien bokmål (Norvège)",native:"Norsk bokmål (Norge)",flag:"🇳🇴"},{isocode:"nb-SJ",locale:"Norvégien bokmål (Svalbard et Jan Mayen)",native:"Norsk bokmål (Svalbard og Jan Mayen)",flag:"🇸🇯"},{isocode:"nd",locale:"Ndébélé du Nord",native:"IsiNdebele",flag:"🇿🇼"},{isocode:"nd-ZW",locale:"Ndébélé du Nord (Zimbabwe)",native:"IsiNdebele (Zimbabwe)",flag:"🇿🇼"},{isocode:"nds",locale:"Bas-German",native:"Nds",flag:"🇩🇪"},{isocode:"nds-DE",locale:"Bas-German (Germany)",native:"Nds (DE)",flag:"🇩🇪"},{isocode:"nds-NL",locale:"Bas-German (Pays-Bas)",native:"Nds (NL)",flag:"🇳🇱"},{isocode:"ne",locale:"Népalais",native:"नेपाली",flag:"🇳🇵"},{isocode:"ne-IN",locale:"Népalais (India)",native:"नेपाली (भारत)",flag:"🇮🇳"},{isocode:"ne-NP",locale:"Népalais (Népal)",native:"नेपाली (नेपाल)",flag:"🇳🇵"},{isocode:"nl",locale:"Néerlandais",native:"Nederlands",flag:"🇳🇱"},{isocode:"nl-AW",locale:"Néerlandais (Aruba)",native:"Nederlands (Aruba)",flag:"🇦🇼"},{isocode:"nl-BE",locale:"Néerlandais (Belgium)",native:"Nederlands (België)",flag:"🇧🇪"},{isocode:"nl-BQ",locale:"Néerlandais (Pays-Bas caribéens)",native:"Nederlands (Caribisch Nederland)",flag:"🇧🇶"},{isocode:"nl-CW",locale:"Néerlandais (Curaçao)",native:"Nederlands (Curaçao)",flag:"🇨🇼"},{isocode:"nl-NL",locale:"Néerlandais (Pays-Bas)",native:"Nederlands (Nederland)",flag:"🇳🇱"},{isocode:"nl-SR",locale:"Néerlandais (Suriname)",native:"Nederlands (Suriname)",flag:"🇸🇷"},{isocode:"nl-SX",locale:"Néerlandais (Saint-Martin [partie néerlandaise])",native:"Nederlands (Sint-Maarten)",flag:"🇸🇽"},{isocode:"nmg",locale:"Kwasio",native:"Nmg",flag:"🇨🇲"},{isocode:"nmg-CM",locale:"Kwasio (Cameroun)",native:"Nmg (Kamerun)",flag:"🇨🇲"},{isocode:"nn",locale:"Norvégien nynorsk",native:"Nynorsk",flag:"🇳🇴"},{isocode:"nn-NO",locale:"Norvégien nynorsk (Norvège)",native:"Nynorsk (Noreg)",flag:"🇳🇴"},{isocode:"nnh",locale:"Ngiemboon",native:"Shwóŋò ngiembɔɔn",flag:"🇨🇲"},{isocode:"nnh-CM",locale:"Ngiemboon (Cameroun)",native:"Shwóŋò ngiembɔɔn (Kàmalûm)",flag:"🇨🇲"},{isocode:"nus",locale:"Nuer",native:"Thok Nath",flag:"🇸🇸"},{isocode:"nus-SS",locale:"Nuer (Soudan du Sud)",native:"Thok Nath (SS)",flag:"🇸🇸"},{isocode:"nyn",locale:"Nyankolé",native:"Runyankore",flag:"🇺🇬"},{isocode:"nyn-UG",locale:"Nyankolé (Ouganda)",native:"Runyankore (Uganda)",flag:"🇺🇬"},{isocode:"om",locale:"Oromo",native:"Oromoo",flag:"🇪🇹"},{isocode:"om-ET",locale:"Oromo (Éthiopie)",native:"Oromoo (Itoophiyaa)",flag:"🇪🇹"},{isocode:"om-KE",locale:"Oromo (Kenya)",native:"Oromoo (Keeniyaa)",flag:"🇰🇪"},{isocode:"or",locale:"Oriya",native:"ଓଡ଼ିଆ",flag:"🇮🇳"},{isocode:"or-IN",locale:"Oriya (India)",native:"ଓଡ଼ିଆ (ଭାରତ)",flag:"🇮🇳"},{isocode:"os",locale:"Ossète",native:"ирон",flag:"🇬🇪"},{isocode:"os-GE",locale:"Ossète (Géorgie)",native:"ирон (Гуырдзыстон)",flag:"🇬🇪"},{isocode:"os-RU",locale:"Ossète (Russie)",native:"ирон (Уӕрӕсе)",flag:"🇷🇺"},{isocode:"pa",locale:"Pendjabi",native:"ਪੰਜਾਬੀ",flag:"🇮🇳"},{isocode:"pa-Arab",locale:"Pendjabi (Arabic)",native:"پنجابی (عربی)",flag:"🇵🇰"},{isocode:"pa-Arab-PK",locale:"Pendjabi (Arabic, Pakistan)",native:"پنجابی (عربی, پاکستان)",flag:"🇵🇰"},{isocode:"pa-Guru",locale:"Pendjabi (gourmoukhî)",native:"ਪੰਜਾਬੀ (ਗੁਰਮੁਖੀ)",flag:"🇮🇳"},{isocode:"pa-Guru-IN",locale:"Pendjabi (gourmoukhî, India)",native:"ਪੰਜਾਬੀ (ਗੁਰਮੁਖੀ, ਭਾਰਤ)",flag:"🇮🇳"},{isocode:"pl",locale:"Polonais",native:"Polski",flag:"🇵🇱"},{isocode:"pl-PL",locale:"Polonais (Pologne)",native:"Polski (Polska)",flag:"🇵🇱"},{isocode:"ps",locale:"Pachto",native:"پښتو",flag:"🇦🇫"},{isocode:"ps-AF",locale:"Pachto (Afghanistan)",native:"پښتو (افغانستان)",flag:"🇦🇫"},{isocode:"pt",locale:"Portugais",native:"Português",flag:"🇵🇹"},{isocode:"pt-AO",locale:"Portugais (Angola)",native:"Português (Angola)",flag:"🇦🇴"},{isocode:"pt-BR",locale:"Portugais (Brazil)",native:"Português (Brasil)",flag:"🇧🇷"},{isocode:"pt-CH",locale:"Portugais (Switzerland)",native:"Português (Suíça)",flag:"🇨🇭"},{isocode:"pt-CV",locale:"Portugais (Cap-Vert)",native:"Português (Cabo Verde)",flag:"🇨🇻"},{isocode:"pt-GQ",locale:"Portugais (Guinée équatoriale)",native:"Português (Guiné Equatorial)",flag:"🇬🇶"},{isocode:"pt-GW",locale:"Portugais (Guinée-Bissau)",native:"Português (Guiné-Bissau)",flag:"🇬🇼"},{isocode:"pt-LU",locale:"Portugais (Luxembourg)",native:"Português (Luxemburgo)",flag:"🇱🇺"},{isocode:"pt-MO",locale:"Portugais (R.A.S. chinoise de Macao)",native:"Português (Macau, RAE da China)",flag:"🇲🇴"},{isocode:"pt-MZ",locale:"Portugais (Mozambique)",native:"Português (Moçambique)",flag:"🇲🇿"},{isocode:"pt-PT",locale:"Portugais (Portugal)",native:"Português (Portugal)",flag:"🇵🇹"},{isocode:"pt-ST",locale:"Portugais (Sao Tomé-et-Principe)",native:"Português (São Tomé e Príncipe)",flag:"🇸🇹"},{isocode:"pt-TL",locale:"Portugais (Timor oriental)",native:"Português (Timor-Leste)",flag:"🇹🇱"},{isocode:"qu",locale:"Quechua",native:"Runasimi",flag:"🇵🇪"},{isocode:"qu-BO",locale:"Quechua (Bolivie)",native:"Runasimi (Bolivia)",flag:"🇧🇴"},{isocode:"qu-EC",locale:"Quechua (Équateur)",native:"Runasimi (Ecuador)",flag:"🇪🇨"},{isocode:"qu-PE",locale:"Quechua (Pérou)",native:"Runasimi (Perú)",flag:"🇵🇪"},{isocode:"rm",locale:"Romanche",native:"Rumantsch",flag:"🇨🇭"},{isocode:"rm-CH",locale:"Romanche (Switzerland)",native:"Rumantsch (Svizra)",flag:"🇨🇭"},{isocode:"rn",locale:"Roundi",native:"Ikirundi",flag:"🇧🇮"},{isocode:"rn-BI",locale:"Roundi (Burundi)",native:"Ikirundi (Uburundi)",flag:"🇧🇮"},{isocode:"ro",locale:"Roumain",native:"Română",flag:"🇷🇴"},{isocode:"ro-MD",locale:"Roumain (Moldavie)",native:"Română (Republica Moldova)",flag:"🇲🇩"},{isocode:"ro-RO",locale:"Roumain (Roumanie)",native:"Română (România)",flag:"🇷🇴"},{isocode:"rof",locale:"Rombo",native:"Kihorombo",flag:"🇹🇿"},{isocode:"rof-TZ",locale:"Rombo (Tanzanie)",native:"Kihorombo (Tanzania)",flag:"🇹🇿"},{isocode:"ru",locale:"Russe",native:"русский",flag:"🇷🇺"},{isocode:"ru-BY",locale:"Russe (Biélorussie)",native:"русский (Беларусь)",flag:"🇧🇾"},{isocode:"ru-KG",locale:"Russe (Kirghizistan)",native:"русский (Киргизия)",flag:"🇰🇬"},{isocode:"ru-KZ",locale:"Russe (Kazakhstan)",native:"русский (Казахстан)",flag:"🇰🇿"},{isocode:"ru-MD",locale:"Russe (Moldavie)",native:"русский (Молдова)",flag:"🇲🇩"},{isocode:"ru-RU",locale:"Russe (Russie)",native:"русский (Россия)",flag:"🇷🇺"},{isocode:"ru-UA",locale:"Russe (Ukraine)",native:"русский (Украина)",flag:"🇺🇦"},{isocode:"rw",locale:"Rwanda",native:"Kinyarwanda",flag:"🇷🇼"},{isocode:"rw-RW",locale:"Rwanda (Rwanda)",native:"Kinyarwanda (U Rwanda)",flag:"🇷🇼"},{isocode:"rwk",locale:"Rwa",native:"Kiruwa",flag:"🇹🇿"},{isocode:"rwk-TZ",locale:"Rwa (Tanzanie)",native:"Kiruwa (Tanzania)",flag:"🇹🇿"},{isocode:"sah",locale:"Iakoute",native:"саха тыла",flag:"🇷🇺"},{isocode:"sah-RU",locale:"Iakoute (Russie)",native:"саха тыла (Арассыыйа)",flag:"🇷🇺"},{isocode:"saq",locale:"Sambourou",native:"Kisampur",flag:"🇰🇪"},{isocode:"saq-KE",locale:"Sambourou (Kenya)",native:"Kisampur (Kenya)",flag:"🇰🇪"},{isocode:"sbp",locale:"Sangu",native:"Ishisangu",flag:"🇹🇿"},{isocode:"sbp-TZ",locale:"Sangu (Tanzanie)",native:"Ishisangu (Tansaniya)",flag:"🇹🇿"},{isocode:"se",locale:"Sami du Nord",native:"Davvisámegiella",flag:"🇳🇴"},{isocode:"se-FI",locale:"Sami du Nord (Finlande)",native:"Davvisámegiella (Suopma)",flag:"🇫🇮"},{isocode:"se-NO",locale:"Sami du Nord (Norvège)",native:"Davvisámegiella (Norga)",flag:"🇳🇴"},{isocode:"se-SE",locale:"Sami du Nord (Suède)",native:"Davvisámegiella (Ruoŧŧa)",flag:"🇸🇪"},{isocode:"seh",locale:"Cisena",native:"Sena",flag:"🇲🇿"},{isocode:"seh-MZ",locale:"Cisena (Mozambique)",native:"Sena (Moçambique)",flag:"🇲🇿"},{isocode:"ses",locale:"Koyraboro senni",native:"Koyraboro senni",flag:"🇲🇱"},{isocode:"ses-ML",locale:"Koyraboro senni (Mali)",native:"Koyraboro senni (Maali)",flag:"🇲🇱"},{isocode:"sg",locale:"Sangho",native:"Sängö",flag:"🇨🇫"},{isocode:"sg-CF",locale:"Sangho (République centrafricaine)",native:"Sängö (Ködörösêse tî Bêafrîka)",flag:"🇨🇫"},{isocode:"shi",locale:"Chleuh",native:"ⵜⴰⵛⵍⵃⵉⵜ",flag:"🇲🇦"},{isocode:"shi-Latn",locale:"Chleuh (latin)",native:"Tashelḥiyt (Latn)",flag:"🇲🇦"},{isocode:"shi-Latn-MA",locale:"Chleuh (latin, Maroc)",native:"Tashelḥiyt (Latn, lmɣrib)",flag:"🇲🇦"},{isocode:"shi-Tfng",locale:"Chleuh (tifinagh)",native:"ⵜⴰⵛⵍⵃⵉⵜ (Tfng)",flag:"🇲🇦"},{isocode:"shi-Tfng-MA",locale:"Chleuh (tifinagh, Maroc)",native:"ⵜⴰⵛⵍⵃⵉⵜ (Tfng, ⵍⵎⵖⵔⵉⴱ)",flag:"🇲🇦"},{isocode:"si",locale:"Cinghalais",native:"සිංහල",flag:"🇱🇰"},{isocode:"si-LK",locale:"Cinghalais (Sri Lanka)",native:"සිංහල (ශ්‍රී ලංකාව)",flag:"🇱🇰"},{isocode:"sk",locale:"Slovaque",native:"Slovenčina",flag:"🇸🇰"},{isocode:"sk-SK",locale:"Slovaque (Slovaquie)",native:"Slovenčina (Slovensko)",flag:"🇸🇰"},{isocode:"sl",locale:"Slovène",native:"Slovenščina",flag:"🇸🇮"},{isocode:"sl-SI",locale:"Slovène (Slovénie)",native:"Slovenščina (Slovenija)",flag:"🇸🇮"},{isocode:"smn",locale:"Sami d'Inari",native:"Anarâškielâ",flag:"🇫🇮"},{isocode:"smn-FI",locale:"Sami d'Inari (Finlande)",native:"Anarâškielâ (Suomâ)",flag:"🇫🇮"},{isocode:"sn",locale:"Shona",native:"ChiShona",flag:"🇿🇼"},{isocode:"sn-ZW",locale:"Shona (Zimbabwe)",native:"ChiShona (Zimbabwe)",flag:"🇿🇼"},{isocode:"so",locale:"Somali",native:"Soomaali",flag:"🇸🇴"},{isocode:"so-DJ",locale:"Somali (Djibouti)",native:"Soomaali (Jabuuti)",flag:"🇩🇯"},{isocode:"so-ET",locale:"Somali (Éthiopie)",native:"Soomaali (Itoobiya)",flag:"🇪🇹"},{isocode:"so-KE",locale:"Somali (Kenya)",native:"Soomaali (Kiiniya)",flag:"🇰🇪"},{isocode:"so-SO",locale:"Somali (Somalie)",native:"Soomaali (Soomaaliya)",flag:"🇸🇴"},{isocode:"sq",locale:"Albanais",native:"Shqip",flag:"🇦🇱"},{isocode:"sq-AL",locale:"Albanais (Albanie)",native:"Shqip (Shqipëri)",flag:"🇦🇱"},{isocode:"sq-MK",locale:"Albanais (Macédoine)",native:"Shqip (Maqedoni)",flag:"🇲🇰"},{isocode:"sq-XK",locale:"Albanais (Kosovo)",native:"Shqip (Kosovë)",flag:"🇽🇰"},{isocode:"sr",locale:"Serbe",native:"српски",flag:"🇷🇸"},{isocode:"sr-Cyrl",locale:"Serbe (cyrillique)",native:"српски (ћирилица)",flag:"🇷🇸"},{isocode:"sr-Cyrl-BA",locale:"Serbe (cyrillique, Bosnie-Herzégovine)",native:"српски (ћирилица, Босна и Херцеговина)",flag:"🇧🇦"},{isocode:"sr-Cyrl-ME",locale:"Serbe (cyrillique, Monténégro)",native:"српски (ћирилица, Црна Гора)",flag:"🇲🇪"},{isocode:"sr-Cyrl-RS",locale:"Serbe (cyrillique, Serbie)",native:"српски (ћирилица, Србија)",flag:"🇷🇸"},{isocode:"sr-Cyrl-XK",locale:"Serbe (cyrillique, Kosovo)",native:"српски (ћирилица, Косово)",flag:"🇽🇰"},{isocode:"sr-Latn",locale:"Serbe (latin)",native:"Srpski (latinica)",flag:"🇷🇸"},{isocode:"sr-Latn-BA",locale:"Serbe (latin, Bosnie-Herzégovine)",native:"Srpski (latinica, Bosna i Hercegovina)",flag:"🇧🇦"},{isocode:"sr-Latn-ME",locale:"Serbe (latin, Monténégro)",native:"Srpski (latinica, Crna Gora)",flag:"🇲🇪"},{isocode:"sr-Latn-RS",locale:"Serbe (latin, Serbie)",native:"Srpski (latinica, Srbija)",flag:"🇷🇸"},{isocode:"sr-Latn-XK",locale:"Serbe (latin, Kosovo)",native:"Srpski (latinica, Kosovo)",flag:"🇽🇰"},{isocode:"sv",locale:"Suédois",native:"Svenska",flag:"🇸🇪"},{isocode:"sv-AX",locale:"Suédois (Îles Åland)",native:"Svenska (Åland)",flag:"🇦🇽"},{isocode:"sv-FI",locale:"Suédois (Finlande)",native:"Svenska (Finland)",flag:"🇫🇮"},{isocode:"sv-SE",locale:"Suédois (Suède)",native:"Svenska (Sverige)",flag:"🇸🇪"},{isocode:"sw",locale:"Swahili",native:"Kiswahili",flag:"🇹🇿"},{isocode:"sw-CD",locale:"Swahili (Congo-Kinshasa)",native:"Kiswahili (Jamhuri ya Kidemokrasia ya Kongo)",flag:"🇨🇩"},{isocode:"sw-KE",locale:"Swahili (Kenya)",native:"Kiswahili (Kenya)",flag:"🇰🇪"},{isocode:"sw-TZ",locale:"Swahili (Tanzanie)",native:"Kiswahili (Tanzania)",flag:"🇹🇿"},{isocode:"sw-UG",locale:"Swahili (Ouganda)",native:"Kiswahili (Uganda)",flag:"🇺🇬"},{isocode:"ta",locale:"Tamoul",native:"தமிழ்",flag:"🇱🇰"},{isocode:"ta-IN",locale:"Tamoul (India)",native:"தமிழ் (இந்தியா)",flag:"🇮🇳"},{isocode:"ta-LK",locale:"Tamoul (Sri Lanka)",native:"தமிழ் (இலங்கை)",flag:"🇱🇰"},{isocode:"ta-MY",locale:"Tamoul (Malaisie)",native:"தமிழ் (மலேசியா)",flag:"🇲🇾"},{isocode:"ta-SG",locale:"Tamoul (Singapour)",native:"தமிழ் (சிங்கப்பூர்)",flag:"🇸🇬"},{isocode:"te",locale:"Télougou",native:"తెలుగు",flag:"🇮🇳"},{isocode:"te-IN",locale:"Télougou (India)",native:"తెలుగు (భారతదేశం)",flag:"🇮🇳"},{isocode:"teo",locale:"Teso",native:"Kiteso",flag:"🇺🇬"},{isocode:"teo-KE",locale:"Teso (Kenya)",native:"Kiteso (Kenia)",flag:"🇰🇪"},{isocode:"teo-UG",locale:"Teso (Ouganda)",native:"Kiteso (Uganda)",flag:"🇺🇬"},{isocode:"tg",locale:"Tadjik",native:"тоҷикӣ",flag:"🇹🇯"},{isocode:"tg-TJ",locale:"Tadjik (Tadjikistan)",native:"тоҷикӣ (Тоҷикистон)",flag:"🇹🇯"},{isocode:"th",locale:"Thaï",native:"ไทย",flag:"🇹🇭"},{isocode:"th-TH",locale:"Thaï (Thaïlande)",native:"ไทย (ไทย)",flag:"🇹🇭"},{isocode:"ti",locale:"Tigrigna",native:"ትግርኛ",flag:"🇪🇷"},{isocode:"ti-ER",locale:"Tigrigna (Érythrée)",native:"ትግርኛ (ኤርትራ)",flag:"🇪🇷"},{isocode:"ti-ET",locale:"Tigrigna (Éthiopie)",native:"ትግርኛ (ኢትዮጵያ)",flag:"🇪🇹"},{isocode:"to",locale:"Tonguien",native:"Lea fakatonga",flag:"🇹🇴"},{isocode:"to-TO",locale:"Tonguien (Tonga)",native:"Lea fakatonga (Tonga)",flag:"🇹🇴"},{isocode:"tr",locale:"Turc",native:"Türkçe",flag:"🇹🇷"},{isocode:"tr-CY",locale:"Turc (Chypre)",native:"Türkçe (Kıbrıs)",flag:"🇨🇾"},{isocode:"tr-TR",locale:"Turc (Turquie)",native:"Türkçe (Türkiye)",flag:"🇹🇷"},{isocode:"tt",locale:"Tatar",native:"татар",flag:"🇷🇺"},{isocode:"tt-RU",locale:"Tatar (Russie)",native:"татар (Россия)",flag:"🇷🇺"},{isocode:"twq",locale:"Tasawaq",native:"Tasawaq senni",flag:"🇳🇪"},{isocode:"twq-NE",locale:"Tasawaq (Niger)",native:"Tasawaq senni (Nižer)",flag:"🇳🇪"},{isocode:"tzm",locale:"Amazighe de l'Atlas central",native:"Tamaziɣt n laṭlaṣ",flag:"🇲🇦"},{isocode:"tzm-MA",locale:"Amazighe de l'Atlas central (Maroc)",native:"Tamaziɣt n laṭlaṣ (Meṛṛuk)",flag:"🇲🇦"},{isocode:"ug",locale:"Ouïghour",native:"ئۇيغۇرچە",flag:"🇨🇳"},{isocode:"ug-CN",locale:"Ouïghour (Chine)",native:"ئۇيغۇرچە (جۇڭگو)",flag:"🇨🇳"},{isocode:"uk",locale:"Ukrainien",native:"українська",flag:"🇺🇦"},{isocode:"uk-UA",locale:"Ukrainien (Ukraine)",native:"українська (Україна)",flag:"🇺🇦"},{isocode:"ur",locale:"Ourdou",native:"اردو",flag:"🇵🇰"},{isocode:"ur-IN",locale:"Ourdou (India)",native:"اردو (بھارت)",flag:"🇮🇳"},{isocode:"ur-PK",locale:"Ourdou (Pakistan)",native:"اردو (پاکستان)",flag:"🇵🇰"},{isocode:"uz",locale:"Ouzbek",native:"O‘zbek",flag:"🇺🇿"},{isocode:"uz-Arab",locale:"Ouzbek (Arabic)",native:"اوزبیک (عربی)",flag:"🇦🇫"},{isocode:"uz-Arab-AF",locale:"Ouzbek (Arabic, Afghanistan)",native:"اوزبیک (عربی, افغانستان)",flag:"🇦🇫"},{isocode:"uz-Cyrl",locale:"Ouzbek (cyrillique)",native:"ўзбекча (Кирил)",flag:"🇺🇿"},{isocode:"uz-Cyrl-UZ",locale:"Ouzbek (cyrillique, Ouzbékistan)",native:"ўзбекча (Кирил, Ўзбекистон)",flag:"🇺🇿"},{isocode:"uz-Latn",locale:"Ouzbek (latin)",native:"O‘zbek (lotin)",flag:"🇺🇿"},{isocode:"uz-Latn-UZ",locale:"Ouzbek (latin, Ouzbékistan)",native:"O‘zbek (lotin, Oʻzbekiston)",flag:"🇺🇿"},{isocode:"vai",locale:"Vaï",native:"ꕙꔤ",flag:"🇱🇷"},{isocode:"vai-Latn",locale:"Vaï (latin)",native:"Vai (Latn)",flag:"🇱🇷"},{isocode:"vai-Latn-LR",locale:"Vaï (latin, Libéria)",native:"Vai (Latn, Laibhiya)",flag:"🇱🇷"},{isocode:"vai-Vaii",locale:"Vaï (vaï)",native:"ꕙꔤ (Vaii)",flag:"🇱🇷"},{isocode:"vai-Vaii-LR",locale:"Vaï (vaï, Libéria)",native:"ꕙꔤ (Vaii, ꕞꔤꔫꕩ)",flag:"🇱🇷"},{isocode:"vi",locale:"Vietnamien",native:"Tiếng Việt",flag:"🇻🇳"},{isocode:"vi-VN",locale:"Vietnamien (Vietnam)",native:"Tiếng Việt (Việt Nam)",flag:"🇻🇳"},{isocode:"vun",locale:"Vunjo",native:"Kyivunjo",flag:"🇹🇿"},{isocode:"vun-TZ",locale:"Vunjo (Tanzanie)",native:"Kyivunjo (Tanzania)",flag:"🇹🇿"},{isocode:"wae",locale:"Walser",native:"Walser",flag:"🇨🇭"},{isocode:"wae-CH",locale:"Walser (Switzerland)",native:"Walser (Schwiz)",flag:"🇨🇭"},{isocode:"wo",locale:"Wolof",native:"Wolof",flag:"🇸🇳"},{isocode:"wo-SN",locale:"Wolof (Sénégal)",native:"Wolof (Senegaal)",flag:"🇸🇳"},{isocode:"xog",locale:"Soga",native:"Olusoga",flag:"🇺🇬"},{isocode:"xog-UG",locale:"Soga (Ouganda)",native:"Olusoga (Yuganda)",flag:"🇺🇬"},{isocode:"yav",locale:"Yangben",native:"Nuasue",flag:"🇨🇲"},{isocode:"yav-CM",locale:"Yangben (Cameroun)",native:"Nuasue (Kemelún)",flag:"🇨🇲"},{isocode:"yi",locale:"Yiddish",native:"ייִדיש",flag:"🏳️"},{isocode:"yi-001",locale:"Yiddish (World)",native:"ייִדיש (וועלט)",flag:"🏳️"},{isocode:"yo",locale:"Yoruba",native:"Èdè Yorùbá",flag:"🇳🇬"},{isocode:"yo-BJ",locale:"Yoruba (Bénin)",native:"Èdè Yorùbá (Orílɛ́ède Bɛ̀nɛ̀)",flag:"🇧🇯"},{isocode:"yo-NG",locale:"Yoruba (Nigéria)",native:"Èdè Yorùbá (Orílẹ́ède Nàìjíríà)",flag:"🇳🇬"},{isocode:"yue",locale:"Cantonais",native:"粵語",flag:"🇭🇰"},{isocode:"yue-Hans",locale:"Cantonais (simplifié)",native:"粤语 (简体)",flag:"🇨🇳"},{isocode:"yue-Hans-CN",locale:"Cantonais (simplifié, Chine)",native:"粤语 (简体,中华人民共和国)",flag:"🇨🇳"},{isocode:"yue-Hant",locale:"Cantonais (traditionnel)",native:"粵語 (繁體)",flag:"🇭🇰"},{isocode:"yue-Hant-HK",locale:"Cantonais (traditionnel, R.A.S. chinoise de Hong Kong)",native:"粵語 (繁體,中華人民共和國香港特別行政區)",flag:"🇭🇰"},{isocode:"zgh",locale:"Amazighe standard marocain",native:"ⵜⴰⵎⴰⵣⵉⵖⵜ",flag:"🇲🇦"},{isocode:"zgh-MA",locale:"Amazighe standard marocain (Maroc)",native:"ⵜⴰⵎⴰⵣⵉⵖⵜ (ⵍⵎⵖⵔⵉⴱ)",flag:"🇲🇦"},{isocode:"zh",locale:"Chinese",native:"中文",flag:"🇨🇳"},{isocode:"zh-Hans",locale:"Chinese (simplifié)",native:"中文(简体)",flag:"🇨🇳"},{isocode:"zh-Hans-CN",locale:"Chinese (simplifié, Chine)",native:"中文(简体,中国)",flag:"🇨🇳"},{isocode:"zh-Hans-HK",locale:"Chinese (simplifié, R.A.S. chinoise de Hong Kong)",native:"中文(简体,中国香港特别行政区)",flag:"🇭🇰"},{isocode:"zh-Hans-MO",locale:"Chinese (simplifié, R.A.S. chinoise de Macao)",native:"中文(简体,中国澳门特别行政区)",flag:"🇲🇴"},{isocode:"zh-Hans-SG",locale:"Chinese (simplifié, Singapour)",native:"中文(简体,新加坡)",flag:"🇸🇬"},{isocode:"zh-Hant",locale:"Chinese (traditionnel)",native:"中文(繁體)",flag:"🇹🇼"},{isocode:"zh-Hant-HK",locale:"Chinese (traditionnel, R.A.S. chinoise de Hong Kong)",native:"中文(繁體字,中國香港特別行政區)",flag:"🇭🇰"},{isocode:"zh-Hant-MO",locale:"Chinese (traditionnel, R.A.S. chinoise de Macao)",native:"中文(繁體字,中國澳門特別行政區)",flag:"🇲🇴"},{isocode:"zh-Hant-TW",locale:"Chinese (traditionnel, Taïwan)",native:"中文(繁體,台灣)",flag:"🇹🇼"},{isocode:"zu",locale:"Zoulou",native:"IsiZulu",flag:"🇿🇦"},{isocode:"zu-ZA",locale:"Zoulou (South Africa)",native:"IsiZulu (iNingizimu Afrika)",flag:"🇿🇦"}]};exports.LOCALIZATION_EDITOR_SCOPE_CLASS=os.LOCALIZATION_EDITOR_SCOPE_CLASS;exports.EditorStateAdapterProvider=$u;exports.EditorStateContext=Ir;exports.I18N_ACTIONS=Jd;exports.I18N_CONSTANT=oc;exports.I18nProvider=lc;exports.LocalizationEditor=Vp;exports.LocalizationEditorProvider=dc;exports.LocalizationProvider=hc;exports.Portal=Xd;exports.ReducerAdapterProvider=ic;exports.Standalone=Hk;exports.getDefaultContainer=it;exports.getDefaultInitialState=nc;exports.getLanguageDetails=dn;exports.languages=$k;exports.localizationReducer=tc;exports.useEditorStateAdapter=vn;exports.useI18n=sn;exports.useLocalization=fc;exports.useLocalizationEditor=on;exports.useModals=ac;exports.useReducerAdapter=rc;exports.useReduxAdapter=Pd;
177
158
  //# sourceMappingURL=index.cjs.js.map