1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7010],{230:(e,t,n)=>{n.d(t,{A:()=>r});let r=(0,n(45751).A)("thumbs-down",[["path",{d:"M17 14V2",key:"8ymqnk"}],["path",{d:"M9 18.12 10 14H4.17a2 2 0 0 1-1.92-2.56l2.33-8A2 2 0 0 1 6.5 2H20a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2h-2.76a2 2 0 0 0-1.79 1.11L12 22a3.13 3.13 0 0 1-3-3.88Z",key:"m61m77"}]])},868:(e,t,n)=>{n.d(t,{v:()=>r});function r(e){return e instanceof Date&&!isNaN(e)}},885:(e,t,n)=>{n.d(t,{C:()=>a});var r=n(23073),i=n(61051),s=n(54728),a=e=>{let{present:t,children:n}=e,a=function(e){var t,n;let[i,a]=r.useState(),l=r.useRef(null),u=r.useRef(e),c=r.useRef("none"),[d,h]=(t=e?"mounted":"unmounted",n={mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}},r.useReducer((e,t)=>n[e][t]??e,t));return r.useEffect(()=>{let e=o(l.current);c.current="mounted"===d?e:"none"},[d]),(0,s.N)(()=>{let t=l.current,n=u.current;if(n!==e){let r=c.current,i=o(t);e?h("MOUNT"):"none"===i||t?.display==="none"?h("UNMOUNT"):n&&r!==i?h("ANIMATION_OUT"):h("UNMOUNT"),u.current=e}},[e,h]),(0,s.N)(()=>{if(i){let e,t=i.ownerDocument.defaultView??window,n=n=>{let r=o(l.current).includes(CSS.escape(n.animationName));if(n.target===i&&r&&(h("ANIMATION_END"),!u.current)){let n=i.style.animationFillMode;i.style.animationFillMode="forwards",e=t.setTimeout(()=>{"forwards"===i.style.animationFillMode&&(i.style.animationFillMode=n)})}},r=e=>{e.target===i&&(c.current=o(l.current))};return i.addEventListener("animationstart",r),i.addEventListener("animationcancel",n),i.addEventListener("animationend",n),()=>{t.clearTimeout(e),i.removeEventListener("animationstart",r),i.removeEventListener("animationcancel",n),i.removeEventListener("animationend",n)}}h("ANIMATION_END")},[i,h]),{isPresent:["mounted","unmountSuspended"].includes(d),ref:r.useCallback(e=>{l.current=e?getComputedStyle(e):null,a(e)},[])}}(t),l="function"==typeof n?n({present:a.isPresent}):r.Children.only(n),u=(0,i.s)(a.ref,function(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(n=(t=Object.getOwnPropertyDescriptor(e,"ref")?.get)&&"isReactWarning"in t&&t.isReactWarning)?e.props.ref:e.props.ref||e.ref}(l));return"function"==typeof n||a.isPresent?r.cloneElement(l,{ref:u}):null};function o(e){return e?.animationName||"none"}a.displayName="Presence"},1551:(e,t,n)=>{n.d(t,{Z:()=>a});var r=n(39024),i=n(34401),s=n(28963);function a(){return(0,i.N)(function(e,t){e.subscribe((0,s._)(t,function(e){return(0,r.gV)(e,t)}))})}},1645:(e,t,n)=>{n.d(t,{R:()=>o});var r=n(82967),i=function(e){function t(t,n){return e.call(this)||this}return(0,r.C6)(t,e),t.prototype.schedule=function(e,t){return void 0===t&&(t=0),this},t}(n(4956).yU),s={setInterval:function(e,t){for(var n=[],i=2;i<arguments.length;i++)n[i-2]=arguments[i];var a=s.delegate;return(null==a?void 0:a.setInterval)?a.setInterval.apply(a,(0,r.fX)([e,t],(0,r.zs)(n))):setInterval.apply(void 0,(0,r.fX)([e,t],(0,r.zs)(n)))},clearInterval:function(e){var t=s.delegate;return((null==t?void 0:t.clearInterval)||clearInterval)(e)},delegate:void 0},a=n(52851),o=function(e){function t(t,n){var r=e.call(this,t,n)||this;return r.scheduler=t,r.work=n,r.pending=!1,r}return(0,r.C6)(t,e),t.prototype.schedule=function(e,t){if(void 0===t&&(t=0),this.closed)return this;this.state=e;var n,r=this.id,i=this.scheduler;return null!=r&&(this.id=this.recycleAsyncId(i,r,t)),this.pending=!0,this.delay=t,this.id=null!=(n=this.id)?n:this.requestAsyncId(i,this.id,t),this},t.prototype.requestAsyncId=function(e,t,n){return void 0===n&&(n=0),s.setInterval(e.flush.bind(e,this),n)},t.prototype.recycleAsyncId=function(e,t,n){if(void 0===n&&(n=0),null!=n&&this.delay===n&&!1===this.pending)return t;null!=t&&s.clearInterval(t)},t.prototype.execute=function(e,t){if(this.closed)return Error("executing a cancelled action");this.pending=!1;var n=this._execute(e,t);if(n)return n;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))},t.prototype._execute=function(e,t){var n,r=!1;try{this.work(e)}catch(e){r=!0,n=e||Error("Scheduled action threw falsy error")}if(r)return this.unsubscribe(),n},t.prototype.unsubscribe=function(){if(!this.closed){var t=this.id,n=this.scheduler,r=n.actions;
1this.work=this.state=this.scheduler=null,this.pending=!1,(0,a.o)(r,this),null!=t&&(this.id=this.recycleAsyncId(n,t,null)),this.delay=null,e.prototype.unsubscribe.call(this)}},t}(i)},1795:(e,t,n)=>{n.d(t,{xQ:()=>s});var r=n(23073),i=n(69652);function s(e=!0){let t=(0,r.useContext)(i.t);if(null===t)return[!0,null];let{isPresent:n,onExitComplete:a,register:o}=t,l=(0,r.useId)();(0,r.useEffect)(()=>{e&&o(l)},[e]);let u=(0,r.useCallback)(()=>e&&a&&a(l),[l,a,e]);return!n&&a?[!1,u]:[!0]}},2141:(e,t,n)=>{n.d(t,{n:()=>a});var r=n(59761),i=n(34401),s=n(28963);function a(e,t){return(0,i.N)(function(n,i){var a=null,o=0,l=!1,u=function(){return l&&!a&&i.complete()};n.subscribe((0,s._)(i,function(n){null==a||a.unsubscribe();var l=0,c=o++;(0,r.Tg)(e(n,c)).subscribe(a=(0,s._)(i,function(e){return i.next(t?t(n,e,c,l++):e)},function(){a=null,u()}))},function(){l=!0,u()}))})}},2804:(e,t,n)=>{n.d(t,{S:()=>r});function r(e){return e.toLowerCase()}},3123:(e,t,n)=>{let r;function i(e,...t){return"function"==typeof e?e(...t):e}n.d(t,{xG:()=>x});class s{#e=!0;#t;#n;#r;#i;#s;#a;#o;#l=0;#u=5;#c=!1;#d=!1;#h=null;#p=()=>{this.debugLog("Connected to event bus"),this.#s=!0,this.#c=!1,this.debugLog("Emitting queued events",this.#i),this.#i.forEach(e=>this.emitEventToBus(e)),this.#i=[],this.stopConnectLoop(),this.#n().removeEventListener("tanstack-connect-success",this.#p)};#f=()=>{if(this.#l<this.#u){this.#l++,this.dispatchCustomEvent("tanstack-connect",{});return}this.#n().removeEventListener("tanstack-connect",this.#f),this.#d=!0,this.debugLog("Max retries reached, giving up on connection"),this.stopConnectLoop()};#m=()=>{this.#c||(this.#c=!0,this.#n().addEventListener("tanstack-connect-success",this.#p),this.#f())};constructor({pluginId:e,debug:t=!1,enabled:n=!0,reconnectEveryMs:r=300}){this.#t=e,this.#e=n,this.#n=this.getGlobalTarget,this.#r=t,this.debugLog(" Initializing event subscription for plugin",this.#t),this.#i=[],this.#s=!1,this.#d=!1,this.#a=null,this.#o=r}startConnectLoop(){null!==this.#a||this.#s||(this.debugLog(`Starting connect loop (every ${this.#o}ms)`),this.#a=setInterval(this.#f,this.#o))}stopConnectLoop(){this.#c=!1,null!==this.#a&&(clearInterval(this.#a),this.#a=null,this.#i=[],this.debugLog("Stopped connect loop"))}debugLog(...e){this.#r&&console.log(`ð´ [tanstack-devtools:${this.#t}-plugin]`,...e)}getGlobalTarget(){if("undefined"!=typeof globalThis&&globalThis.__TANSTACK_EVENT_TARGET__)return this.debugLog("Using global event target"),globalThis.__TANSTACK_EVENT_TARGET__;if("undefined"!=typeof window&&void 0!==window.addEventListener)return this.debugLog("Using window as event target"),window;let e="undefined"!=typeof EventTarget?new EventTarget:void 0;return void 0===e||void 0===e.addEventListener?(this.debugLog("No event mechanism available, running in non-web environment"),{addEventListener:()=>{},removeEventListener:()=>{},dispatchEvent:()=>!1}):(this.debugLog("Using new EventTarget as fallback"),e)}getPluginId(){return this.#t}dispatchCustomEventShim(e,t){try{let n=new Event(e,{detail:t});this.#n().dispatchEvent(n)}catch(e){this.debugLog("Failed to dispatch shim event")}}dispatchCustomEvent(e,t){try{this.#n().dispatchEvent(new CustomEvent(e,{detail:t}))}catch(n){this.dispatchCustomEventShim(e,t)}}emitEventToBus(e){this.debugLog("Emitting event to client bus",e),this.dispatchCustomEvent("tanstack-dispatch-event",e)}createEventPayload(e,t){return{type:`${this.#t}:${e}`,payload:t,pluginId:this.#t}}emit(e,t){if(!this.#e)return void this.debugLog("Event bus client is disabled, not emitting event",e,t);if(this.#h&&(this.debugLog("Emitting event to internal event target",e,t),this.#h.dispatchEvent(new CustomEvent(`${this.#t}:${e}`,{detail:this.createEventPayload(e,t)}))),this.#d)return void this.debugLog("Previously failed to connect, not emitting to bus");if(!this.#s){this.debugLog("Bus not available, will be pushed as soon as connected"),this.#i.push(this.createEventPayload(e,t)),"undefined"==typeof CustomEvent||this.#c||(this.#m(),this.startConnectLoop());return}return this.emitEventToBus(this.createEventPayload(e,t))}on(e,t,n){let r=n?.withEventTarget??!1,i=`${this.#t}:${e}`;if(r&&(this.#h||(this.#h=new EventTarget),this.#h.addEventListener(i,e=>{t(e.detail)})),!this.#e)return this.debugLog("Event bus client is disabled, not registering event",i),()=>{};let s=e=>{this.debugLog("Received event from bus",e.detail),t(e.detail)};return this.#n().addEventListener(i,s),this.debugLog("Registered event to bus",i),()=>{r&&this.#h?.removeEventListener(i,s),this.#n().removeEventListener(i,s)}}onAll(e){if(!this.#e)return this.debugLog("Event bus client is disabled, not registering event"),()=>{};let t=t=>{e(t.detail)};return this.#n().addEventListener("tanstack-devtools-global",t),()=>this.#n().removeEventListener("tanstack-devtools-global",t)}onAllPluginEvents(e){if(!this.#e)return this.debugLog("Event bus client is disabled, not registering event"),()=>{};let t=t=>{let n=t.detail;this.#t&&n.pluginId!==this.#t||e(n)};return this.#n().addEventListener("tanstack-devtools-global",t),()=>this.#n().removeEventListener("tanstack-devtools-global",t)}}let a=new Map;function o(e){if(void 0!==e)try{return JSON.parse(JSON.stringify(e))}catch{return null}}let l=new class extends s{constructor(e){super({pluginId:"pacer",debug:e?.debug,reconnectEveryMs:1e3})}};var u=(e=>(e[e.None=0]="None",e[e.Mutable=1]="Mutable",e[e.Watching=2]="Watching",e[e.RecursedCheck=4]="RecursedCheck",e[e.Recursed=8]="Recursed",e[e.Dirty=16]="Dirty",e[e.Pending=32]="Pending",e))(u||{});
1function c(e,t,n){let r="object"==typeof e,i=r?e:void 0;return{next:(r?e.next:e)?.bind(i),error:(r?e.error:t)?.bind(i),complete:(r?e.complete:n)?.bind(i)}}let d=[],h=0,{link:p,unlink:f,propagate:m,checkDirty:g,shallowPropagate:y}=function({update:e,notify:t,unwatched:n}){return{link:function(e,t,n){let r=t.depsTail;if(void 0!==r&&r.dep===e)return;let i=void 0!==r?r.nextDep:t.deps;if(void 0!==i&&i.dep===e){i.version=n,t.depsTail=i;return}let s=e.subsTail;if(void 0!==s&&s.version===n&&s.sub===t)return;let a=t.depsTail=e.subsTail={version:n,dep:e,sub:t,prevDep:r,nextDep:i,prevSub:s,nextSub:void 0};void 0!==i&&(i.prevDep=a),void 0!==r?r.nextDep=a:t.deps=a,void 0!==s?s.nextSub=a:e.subs=a},unlink:function(e,t=e.sub){let r=e.dep,i=e.prevDep,s=e.nextDep,a=e.nextSub,o=e.prevSub;return void 0!==s?s.prevDep=i:t.depsTail=i,void 0!==i?i.nextDep=s:t.deps=s,void 0!==a?a.prevSub=o:r.subsTail=o,void 0!==o?o.nextSub=a:void 0===(r.subs=a)&&n(r),s},propagate:function(e){let n,r=e.nextSub;e:for(;;){let i=e.sub,s=i.flags;if(60&s?12&s?4&s?!(48&s)&&function(e,t){let n=t.depsTail;for(;void 0!==n;){if(n===e)return!0;n=n.prevDep}return!1}(e,i)?(i.flags=40|s,s&=1):s=0:i.flags=-9&s|32:s=0:i.flags=32|s,2&s&&t(i),1&s){let t=i.subs;if(void 0!==t){let i=(e=t).nextSub;void 0!==i&&(n={value:r,prev:n},r=i);continue}}if(void 0!==(e=r)){r=e.nextSub;continue}for(;void 0!==n;
1)if(e=n.value,n=n.prev,void 0!==e){r=e.nextSub;continue e}break}},checkDirty:function(t,n){let i,s=0,a=!1;e:for(;;){let o=t.dep,l=o.flags;if(16&n.flags)a=!0;else if((17&l)==17){if(e(o)){let e=o.subs;void 0!==e.nextSub&&r(e),a=!0}}else if((33&l)==33){(void 0!==t.nextSub||void 0!==t.prevSub)&&(i={value:t,prev:i}),t=o.deps,n=o,++s;continue}if(!a){let e=t.nextDep;if(void 0!==e){t=e;continue}}for(;s--;){let s=n.subs,o=void 0!==s.nextSub;if(o?(t=i.value,i=i.prev):t=s,a){if(e(n)){o&&r(s),n=t.sub;continue}a=!1}else n.flags&=-33;n=t.sub;let l=t.nextDep;if(void 0!==l){t=l;continue e}}return a}},shallowPropagate:r};function r(e){do{let n=e.sub,r=n.flags;(48&r)==32&&(n.flags=16|r,(6&r)==2&&t(n))}while(void 0!==(e=e.nextSub))}}({update:e=>e._update(),notify(e){d[b++]=e,e.flags&=~u.Watching},unwatched(e){void 0!==e.depsTail&&(e.depsTail=void 0,e.flags=u.Mutable|u.Dirty,E(e))}}),v=0,b=0;function E(e){let t=e.depsTail,n=void 0!==t?t.nextDep:e.deps;for(;void 0!==n;)n=f(n,e)}class T{constructor(e){this.atom=function(e,t){let n="function"==typeof e,i={_snapshot:n?void 0:e,subs:void 0,subsTail:void 0,deps:void 0,depsTail:void 0,flags:n?u.None:u.Mutable,get:()=>(void 0!==r&&p(i,r,h),i._snapshot),subscribe(e){let t=c(e),n={current:!1},s=function(e){let t=()=>{let t=r;r=n,++h,n.depsTail=void 0,n.flags=u.Watching|u.RecursedCheck;try{return e()}finally{r=t,n.flags&=~u.RecursedCheck,E(n)}},n={deps:void 0,depsTail:void 0,subs:void 0,subsTail:void 0,flags:u.Watching|u.RecursedCheck,notify(){let e=this.flags;e&u.Dirty||e&u.Pending&&g(this.deps,this)?t():this.flags=u.Watching},stop(){this.flags=u.None,this.depsTail=void 0,E(this)}};return t(),n}(()=>{i.get(),n.current?t.next?.(i._snapshot):n.current=!0});return{unsubscribe:()=>{s.stop()}}},_update(t){let s=r,a=(void 0)??Object.is;if(n)r=i,++h,i.depsTail=void 0;else if(void 0===t)return!1;n&&(i.flags=u.Mutable|u.RecursedCheck);try{let r=i._snapshot,s="function"==typeof t?t(r):void 0===t&&n?e(r):t;if(void 0===r||!a(r,s))return i._snapshot=s,!0;return!1}finally{r=s,n&&(i.flags&=~u.RecursedCheck),E(i)}}};return n?(i.flags=u.Mutable|u.Dirty,i.get=function(){let e=i.flags;if(e&u.Dirty||e&u.Pending&&g(i.deps,i)){if(i._update()){let e=i.subs;void 0!==e&&y(e)}}else e&u.Pending&&(i.flags=e&~u.Pending);return void 0!==r&&p(i,r,h),i._snapshot}):i.set=function(e){if(i._update(e)){let e=i.subs;if(void 0!==e&&(m(e),y(e),1)){for(;v<b;){let e=d[v];d[v++]=void 0,e.notify()}v=0,b=0}}},i}(e)}setState(e){this.atom.set(e)}get state(){return this.atom.get()}get(){return this.state}subscribe(e){return this.atom.subscribe(c(e))}}function _(){return{executionCount:0,isPending:!1,lastArgs:void 0,lastExecutionTime:0,nextExecutionTime:0,status:"idle",maybeExecuteCount:0}}let A={enabled:!0,leading:!0,trailing:!0,wait:0};var x=class{#g;constructor(e,t){this.fn=e,this.store=new T(_()),this.setOptions=e=>{this.options={...this.options,...e},this.#y()||this.cancel()},this.maybeExecute=(...e)=>{this.#v({maybeExecuteCount:this.store.state.maybeExecuteCount+1});let t=Date.now(),n=t-this.store.state.lastExecutionTime,r=this.#b();if(this.options.leading&&n>=r)this.#E(...e);else if(this.#v({lastArgs:e}),!this.#g&&this.options.trailing){let e=r-(this.store.state.lastExecutionTime?t-this.store.state.lastExecutionTime:0);this.#v({isPending:!0}),this.#g=setTimeout(()=>{let{lastArgs:e}=this.store.state;void 0!==e&&this.#E(...e)},e)}},this.flush=()=>{this.store.state.isPending&&this.store.state.lastArgs&&this.#E(...this.store.state.lastArgs)},this.cancel=()=>{this.#T(),this.#v({lastArgs:void 0,isPending:!1})},this.reset=()=>{this.#v(_())},this.key=t.key,this.options={...A,...t},this.#v(this.options.initialState??{}),this.key&&l.on("d-Throttler",e=>{e.payload.key===this.key&&(this.#v(e.payload.store.state),this.setOptions(e.payload.options))})}#v=e=>{this.store.setState(t=>{let n={...t,...e},{isPending:r}=n;return{...n,status:this.#y()?r?"pending":"idle":"disabled"}}),((e,t)=>{let n=t.key;n&&(a.set(n,t),l.emit(e,function(e){var t;return{key:e.key,store:{state:o("function"==typeof(t=e.store).get?t.get():t.state)},options:o(e.options)}}({...t,key:n})))})("Throttler",this)};#y=()=>!!i(this.options.enabled,this);#b=()=>i(this.options.wait,this);#E=(...e)=>{if(!this.#y())return;this.fn(...e);let t=Date.now(),n=t+this.#b();this.#T(),this.#v({executionCount:this.store.state.executionCount+1,lastExecutionTime:t,nextExecutionTime:n,isPending:!1,lastArgs:void 0}),this.options.onExecute?.(e,this),setTimeout(()=>{this.store.state.isPending||this.#v({nextExecutionTime:void 0})}
1,this.#b())};#T=()=>{this.#g&&(clearTimeout(this.#g),this.#g=void 0)}}},3125:(e,t,n)=>{n.d(t,{Y:()=>s,l:()=>a});var r=n(83109),i=null;function s(e){if(r.$.useDeprecatedSynchronousErrorHandling){var t=!i;if(t&&(i={errorThrown:!1,error:null}),e(),t){var n=i,s=n.errorThrown,a=n.error;if(i=null,s)throw a}}else e()}function a(e){r.$.useDeprecatedSynchronousErrorHandling&&i&&(i.errorThrown=!0,i.error=e)}},3181:(e,t,n)=>{let r;n.d(t,{Ik:()=>k});let i=Symbol("Let zodToJsonSchema decide on which parser to use"),s={name:void 0,$refStrategy:"root",basePath:["#"],effectStrategy:"input",pipeStrategy:"all",dateStrategy:"format:date-time",mapStrategy:"entries",removeAdditionalStrategy:"passthrough",allowedAdditionalProperties:!0,rejectedAdditionalProperties:!1,definitionPath:"definitions",target:"jsonSchema7",strictUnions:!1,definitions:{},errorMessages:!1,markdownDescription:!1,patternStrategy:"escape",applyRegexFlags:!1,emailStrategy:"format:email",base64Strategy:"contentEncoding:base64",nameStrategy:"ref",openAiAnyTypeName:"OpenAiAnyType"};var a=n(59193);let o=(e,t)=>{let n=0;for(;n<e.length&&n<t.length&&e[n]===t[n];n++);return[(e.length-n).toString(),...t.slice(n)].join("/")};function l(e){if("openAi"!==e.target)return{};let t=[...e.basePath,e.definitionPath,e.openAiAnyTypeName];return e.flags.hasReferencedOpenAiAnyType=!0,{$ref:"relative"===e.$refStrategy?o(t,e.currentPath):t.join("/")}}function u(e,t,n,r){r?.errorMessages&&n&&(e.errorMessage={...e.errorMessage,[t]:n})}function c(e,t,n,r,i){e[t]=n,u(e,t,r,i)}function d(e,t){return _(e.type._def,t)}let h={cuid:/^[cC][^\s-]{8,}$/,cuid2:/^[0-9a-z]+$/,ulid:/^[0-9A-HJKMNP-TV-Z]{26}$/,email:/^(?!\.)(?!.*\.\.)([a-zA-Z0-9_'+\-\.]*)[a-zA-Z0-9_+-]@([a-zA-Z0-9][a-zA-Z0-9\-]*\.)+[a-zA-Z]{2,}$/,emoji:()=>(void 0===r&&(r=RegExp("^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$","u")),r),ipv4Cidr:/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/(3[0-2]|[12]?[0-9])$/,ipv6Cidr:/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,base64:/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,base64url:/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,nanoid:/^[a-zA-Z0-9_-]{21}$/,jwt:/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/};function p(e,t){let n={type:"string"};if(e.checks)for(let r of e.checks)switch(r.kind){case"min":c(n,"minLength","number"==typeof n.minLength?Math.max(n.minLength,r.value):r.value,r.message,t);break;case"max":c(n,"maxLength","number"==typeof n.maxLength?Math.min(n.maxLength,r.value):r.value,r.message,t);break;case"email":switch(t.emailStrategy){case"format:email":g(n,"email",r.message,t);break;case"format:idn-email":g(n,"idn-email",r.message,t);break;case"pattern:zod":y(n,h.email,r.message,t)}break;case"url":g(n,"uri",r.message,t);break;case"uuid":g(n,"uuid",r.message,t);break;case"regex":y(n,r.regex,r.message,t);break;case"cuid":y(n,h.cuid,r.message,t);break;case"cuid2":y(n,h.cuid2,r.message,t);break;case"startsWith":y(n,RegExp(`^${f(r.value,t)}`),r.message,t);break;case"endsWith":y(n,RegExp(`${f(r.value,t)}$`),r.message,t);break;case"datetime":g(n,"date-time",r.message,t);break;case"date":g(n,"date",r.message,t);break;case"time":g(n,"time",r.message,t);break;case"duration":g(n,"duration",r.message,t);break;case"length":c(n,"minLength","number"==typeof n.minLength?Math.max(n.minLength,r.value):r.value,r.message,t),c(n,"maxLength","number"==typeof n.maxLength?Math.min(n.maxLength,r.value):r.value,r.message,t);break;case"includes":y(n,RegExp(f(r.value,t)),r.message,t);break;case"ip":"v6"!==r.version&&g(n,"ipv4",r.message,t),"v4"!==r.version&&g(n,"ipv6",r.message,t);break;case"base64url":y(n,h.base64url,r.message,t);break;case"jwt":y(n,h.jwt,r.message,t);break;case"cidr":"v6"!==r.version&&y(n,h.ipv4Cidr,r.message,t),"v4"!==r.version&&y(n,h.ipv6Cidr,r.message,t);break;case"emoji":y(n,h.emoji(),r.message,t);break;case"ulid":y(n,h.ulid,r.message,t);break;case"base64":switch(t.base64Strategy){case"format:binary":g(n,"binary",r.message,t);break;case"contentEncoding:base64":c(n,"contentEncoding","base64",r.message,t);break;case"pattern:zod":y(n,h.base64,r.message,t)}break;case"nanoid":y(n,h.nanoid,r.message,t)}return n}function f(e,t){return"escape"===t.patternStrategy?function(e){let t="";for(let n=0;n<e.length;
1n++)m.has(e[n])||(t+="\\"),t+=e[n];return t}(e):e}let m=new Set("ABCDEFGHIJKLMNOPQRSTUVXYZabcdefghijklmnopqrstuvxyz0123456789");function g(e,t,n,r){e.format||e.anyOf?.some(e=>e.format)?(e.anyOf||(e.anyOf=[]),e.format&&(e.anyOf.push({format:e.format,...e.errorMessage&&r.errorMessages&&{errorMessage:{format:e.errorMessage.format}}}),delete e.format,e.errorMessage&&(delete e.errorMessage.format,0===Object.keys(e.errorMessage).length&&delete e.errorMessage)),e.anyOf.push({format:t,...n&&r.errorMessages&&{errorMessage:{format:n}}})):c(e,"format",t,n,r)}function y(e,t,n,r){e.pattern||e.allOf?.some(e=>e.pattern)?(e.allOf||(e.allOf=[]),e.pattern&&(e.allOf.push({pattern:e.pattern,...e.errorMessage&&r.errorMessages&&{errorMessage:{pattern:e.errorMessage.pattern}}}),delete e.pattern,e.errorMessage&&(delete e.errorMessage.pattern,0===Object.keys(e.errorMessage).length&&delete e.errorMessage)),e.allOf.push({pattern:v(t,r),...n&&r.errorMessages&&{errorMessage:{pattern:n}}})):c(e,"pattern",v(t,r),n,r)}function v(e,t){if(!t.applyRegexFlags||!e.flags)return e.source;let n={i:e.flags.includes("i"),m:e.flags.includes("m"),s:e.flags.includes("s")},r=n.i?e.source.toLowerCase():e.source,i="",s=!1,a=!1,o=!1;for(let e=0;e<r.length;e++){if(s){i+=r[e],s=!1;continue}if(n.i){if(a){if(r[e].match(/[a-z]/)){o?(i+=r[e],i+=`${r[e-2]}-${r[e]}`.toUpperCase(),o=!1):"-"===r[e+1]&&r[e+2]?.match(/[a-z]/)?(i+=r[e],o=!0):i+=`${r[e]}${r[e].toUpperCase()}`;continue}}else if(r[e].match(/[a-z]/)){i+=`[${r[e]}${r[e].toUpperCase()}]`;continue}}if(n.m){if("^"===r[e]){i+=`(^|(?<=[\r 2]))`;continue}else if("$"===r[e]){i+=`($|(?=[\r 3]))`;continue}}if(n.s&&"."===r[e]){i+=a?`${r[e]}\r 4`:`[${r[e]}\r 5]`;continue}i+=r[e],"\\"===r[e]?s=!0:a&&"]"===r[e]?a=!1:a||"["!==r[e]||(a=!0)}try{new RegExp(i)}catch{return console.warn(`Could not convert regex pattern at ${t.currentPath.join("/")} to a flag-independent form! Falling back to the flag-ignorant source`),e.source}return i}function b(e,t){if("openAi"===t.target&&console.warn("Warning: OpenAI may not support records in schemas! Try an array of key-value pairs instead."),"openApi3"===t.target&&e.keyType?._def.typeName===a.kY.ZodEnum)return{type:"object",required:e.keyType._def.values,properties:e.keyType._def.values.reduce((n,r)=>({...n,[r]:_(e.valueType._def,{...t,currentPath:[...t.currentPath,"properties",r]})??l(t)}),{}),additionalProperties:t.rejectedAdditionalProperties};let n={type:"object",additionalProperties:_(e.valueType._def,{...t,currentPath:[...t.currentPath,"additionalProperties"]})??t.allowedAdditionalProperties};if("openApi3"===t.target)return n;if(e.keyType?._def.typeName===a.kY.ZodString&&e.keyType._def.checks?.length){let{type:r,...i}=p(e.keyType._def,t);return{...n,propertyNames:i}}if(e.keyType?._def.typeName===a.kY.ZodEnum)return{...n,propertyNames:{enum:e.keyType._def.values}};if(e.keyType?._def.typeName===a.kY.ZodBranded&&e.keyType._def.type._def.typeName===a.kY.ZodString&&e.keyType._def.type._def.checks?.length){let{type:r,...i}=d(e.keyType._def,t);return{...n,propertyNames:i}}return n}let E={ZodString:"string",ZodNumber:"number",ZodBigInt:"integer",ZodBoolean:"boolean",ZodNull:"null"},T=(e,t)=>{let n=(e.options instanceof Map?Array.from(e.options.values()):e.options).map((e,n)=>_(e._def,{...t,currentPath:[...t.currentPath,"anyOf",`${n}`]})).filter(e=>!!e&&(!t.strictUnions||"object"==typeof e&&Object.keys(e).length>0));return n.length?{anyOf:n}:void 0};function _(e,t,n=!1){let r=t.seen.get(e);if(t.override){let s=t.override?.(e,t,r,n);if(s!==i)return s}if(r&&!n){let e=A(r,t);if(void 0!==e)return e}let s={def:e,path:t.currentPath,jsonSchema:void 0};t.seen.set(e,s);let o=((e,t,n)=>{switch(t){case a.kY.ZodString:return p(e,n);case a.kY.ZodNumber:var r,i,s,o,h,f,m,g,y,v=e,A=n;let x={type:"number"};if(!v.checks)return x;for(let e of v.checks)switch(e.kind){case"int":x.type="integer",u(x,"type",e.message,A);break;case"min":"jsonSchema7"===A.target?e.inclusive?c(x,"minimum",e.value,e.message,A):c(x,"exclusiveMinimum",e.value,e.message,A):(e.inclusive||(x.exclusiveMinimum=!0),c(x,"minimum",e.value,e.message,A));break;case"max":"jsonSchema7"===A.target?e.inclusive?c(x,"maximum",e.value,e.message,A):c(x,"exclusiveMaximum",e.value,e.message,A):(e.inclusive||(x.exclusiveMaximum=!0),c(x,"maximum",e.value,e.message,A));break;case"multipleOf":c(x,"multipleOf",e.value,e.message,A)}return x;case a.kY.ZodObject:return function(e,t){let n="openAi"===t.target,r={type:"object",properties:{}},i=[],s=e.shape();for(let e in s){let a=s[e];if(void 0===a||void 0===a._def)continue;let o=function(e){try{return e.isOptional()}catch{return!0}}(a);o&&n&&("ZodOptional"===a._def.typeName&&(a=a._def.innerType),a.isNullable()||(a=a.nullable()),o=!1);let l=_(a._def,{...t,currentPath:[...t.currentPath,"properties",e],propertyPath:[...t.currentPath,"properties",e]});void 0!==l&&(r.properties[e]=l,o||i.push(e))}i.length&&(r.required=i);let a=function(e,t){if("ZodNever"!==e.catchall._def.typeName)return _(e.catchall._def,{...t,currentPath:[...t.currentPath,"additionalProperties"]});switch(e.unknownKeys){case"passthrough":return t.allowedAdditionalProperties;case"strict":return t.rejectedAdditionalProperties;case"strip":return"strict"===t.removeAdditionalStrategy?t.allowedAdditionalProperties:t.rejectedAdditionalProperties}}(e,t);return void 0!==a&&(r.additionalProperties=a),r}(e,n);case a.kY.ZodBigInt:var k=e,S=n;let w={type:"integer",format:"int64"};if(!k.checks)return w;for(let e of k.checks)switch(e.kind){case"min":"jsonSchema7"===S.target?e.inclusive?c(w,"minimum",e.value,e.message,S):c(w,"exclusiveMinimum",e.value,e.message,S):(e.inclusive||(w.exclusiveMinimum=!0),c(w,"minimum",e.value,e.message,S));break;case"max":"jsonSchema7"===S.target?e.inclusive?c(w,"maximum",e.value,e.message,S):c(w,"exclusiveMaximum",e.value,e.message,S):(e.inclusive||(w.exclusiveMaximum=!0),c(w,"maximum",e.value,e.message,S));break;case"multipleOf":c(w,"multipleOf",e.value,e.message,S)}return w;case a.kY.ZodBoolean:return{type:"boolean"};
5case a.kY.ZodDate:return function e(t,n,r){let i=r??n.dateStrategy;if(Array.isArray(i))return{anyOf:i.map((r,i)=>e(t,n,r))};switch(i){case"string":case"format:date-time":return{type:"string",format:"date-time"};case"format:date":return{type:"string",format:"date"};case"integer":var s=t,a=n;let o={type:"integer",format:"unix-time"};if("openApi3"===a.target)return o;for(let e of s.checks)switch(e.kind){case"min":c(o,"minimum",e.value,e.message,a);break;case"max":c(o,"maximum",e.value,e.message,a)}return o}}(e,n);case a.kY.ZodUndefined:return{not:l(n)};case a.kY.ZodNull:return"openApi3"===n.target?{enum:["null"],nullable:!0}:{type:"null"};case a.kY.ZodArray:var I=e,C=n;let N={type:"array"};return I.type?._def&&I.type?._def?.typeName!==a.kY.ZodAny&&(N.items=_(I.type._def,{...C,currentPath:[...C.currentPath,"items"]})),I.minLength&&c(N,"minItems",I.minLength.value,I.minLength.message,C),I.maxLength&&c(N,"maxItems",I.maxLength.value,I.maxLength.message,C),I.exactLength&&(c(N,"minItems",I.exactLength.value,I.exactLength.message,C),c(N,"maxItems",I.exactLength.value,I.exactLength.message,C)),N;case a.kY.ZodUnion:case a.kY.ZodDiscriminatedUnion:var R=e,O=n;if("openApi3"===O.target)return T(R,O);let P=R.options instanceof Map?Array.from(R.options.values()):R.options;if(P.every(e=>e._def.typeName in E&&(!e._def.checks||!e._def.checks.length))){let e=P.reduce((e,t)=>{let n=E[t._def.typeName];return n&&!e.includes(n)?[...e,n]:e},[]);return{type:e.length>1?e:e[0]}}if(P.every(e=>"ZodLiteral"===e._def.typeName&&!e.description)){let e=P.reduce((e,t)=>{let n=typeof t._def.value;switch(n){case"string":case"number":case"boolean":return[...e,n];case"bigint":return[...e,"integer"];case"object":if(null===t._def.value)return[...e,"null"];default:return e}},[]);if(e.length===P.length){let t=e.filter((e,t,n)=>n.indexOf(e)===t);return{type:t.length>1?t:t[0],enum:P.reduce((e,t)=>e.includes(t._def.value)?e:[...e,t._def.value],[])}}}else if(P.every(e=>"ZodEnum"===e._def.typeName))return{type:"string",enum:P.reduce((e,t)=>[...e,...t._def.values.filter(t=>!e.includes(t))],[])};return T(R,O);case a.kY.ZodIntersection:var D=e,M=n;let L=[_(D.left._def,{...M,currentPath:[...M.currentPath,"allOf","0"]}),_(D.right._def,{...M,currentPath:[...M.currentPath,"allOf","1"]})].filter(e=>!!e),j="jsonSchema2019-09"===M.target?{unevaluatedProperties:!1}:void 0,z=[];return L.forEach(e=>{if((!("type"in e)||"string"!==e.type)&&"allOf"in e)z.push(...e.allOf),void 0===e.unevaluatedProperties&&(j=void 0);else{let t=e;if("additionalProperties"in e&&!1===e.additionalProperties){let{additionalProperties:n,...r}=e;t=r}else j=void 0;z.push(t)}}),z.length?{allOf:z,...j}:void 0;case a.kY.ZodTuple:return r=e,i=n,r.rest?{type:"array",minItems:r.items.length,items:r.items.map((e,t)=>_(e._def,{...i,currentPath:[...i.currentPath,"items",`${t}`]})).reduce((e,t)=>void 0===t?e:[...e,t],[]),additionalItems:_(r.rest._def,{...i,currentPath:[...i.currentPath,"additionalItems"]})}:{type:"array",minItems:r.items.length,maxItems:r.items.length,items:r.items.map((e,t)=>_(e._def,{...i,currentPath:[...i.currentPath,"items",`${t}`]})).reduce((e,t)=>void 0===t?e:[...e,t],[])};case a.kY.ZodRecord:return b(e,n);case a.kY.ZodLiteral:var F=e,B=n;let $=typeof F.value;return"bigint"!==$&&"number"!==$&&"boolean"!==$&&"string"!==$?{type:Array.isArray(F.value)?"array":"object"}:"openApi3"===B.target?{type:"bigint"===$?"integer":$,enum:[F.value]}:{type:"bigint"===$?"integer":$,const:F.value};case a.kY.ZodEnum:return{type:"string",enum:Array.from(e.values)};case a.kY.ZodNativeEnum:var U=e;let H=U.values,G=Object.keys(U.values).filter(e=>"number"!=typeof H[H[e]]).map(e=>H[e]),Y=Array.from(new Set(G.map(e=>typeof e)));return{type:1===Y.length?"string"===Y[0]?"string":"number":["string","number"],enum:G};case a.kY.ZodNullable:var Z=e,V=n;if(["ZodString","ZodNumber","ZodBigInt","ZodBoolean","ZodNull"].includes(Z.innerType._def.typeName)&&(!Z.innerType._def.checks||!Z.innerType._def.checks.length))return"openApi3"===V.target?{type:E[Z.innerType._def.typeName],nullable:!0}:{type:[E[Z.innerType._def.typeName],"null"]};if("openApi3"===V.target){let e=_(Z.innerType._def,{...V,currentPath:[...V.currentPath]});return e&&"$ref"in e?{allOf:[e],nullable:!0}:e&&{...e,nullable:!0}}let W=_(Z.innerType._def,{...V,currentPath:[...V.currentPath,"anyOf","0"]});return W&&{anyOf:[W,{type:"null"}]};case a.kY.ZodOptional:var q=e,K=n;if(K.currentPath.toString()===K.propertyPath?.toString())return _(q.innerType._def,K);
5let X=_(q.innerType._def,{...K,currentPath:[...K.currentPath,"anyOf","1"]});return X?{anyOf:[{not:l(K)},X]}:l(K);case a.kY.ZodMap:return s=e,"record"===(o=n).mapStrategy?b(s,o):{type:"array",maxItems:125,items:{type:"array",items:[_(s.keyType._def,{...o,currentPath:[...o.currentPath,"items","items","0"]})||l(o),_(s.valueType._def,{...o,currentPath:[...o.currentPath,"items","items","1"]})||l(o)],minItems:2,maxItems:2}};case a.kY.ZodSet:var Q=e,J=n;let ee={type:"array",uniqueItems:!0,items:_(Q.valueType._def,{...J,currentPath:[...J.currentPath,"items"]})};return Q.minSize&&c(ee,"minItems",Q.minSize.value,Q.minSize.message,J),Q.maxSize&&c(ee,"maxItems",Q.maxSize.value,Q.maxSize.message,J),ee;case a.kY.ZodLazy:return()=>e.getter()._def;case a.kY.ZodPromise:return _(e.type._def,n);case a.kY.ZodNaN:case a.kY.ZodNever:return"openAi"===(h=n).target?void 0:{not:l({...h,currentPath:[...h.currentPath,"not"]})};case a.kY.ZodEffects:return f=e,"input"===(m=n).effectStrategy?_(f.schema._def,m):l(m);case a.kY.ZodAny:case a.kY.ZodUnknown:return l(n);case a.kY.ZodDefault:return g=e,y=n,{..._(g.innerType._def,y),default:g.defaultValue()};case a.kY.ZodBranded:return d(e,n);case a.kY.ZodReadonly:case a.kY.ZodCatch:return _(e.innerType._def,n);case a.kY.ZodPipeline:var et=e,en=n;if("input"===en.pipeStrategy)return _(et.in._def,en);if("output"===en.pipeStrategy)return _(et.out._def,en);let er=_(et.in._def,{...en,currentPath:[...en.currentPath,"allOf","0"]}),ei=_(et.out._def,{...en,currentPath:[...en.currentPath,"allOf",er?"1":"0"]});return{allOf:[er,ei].filter(e=>void 0!==e)};case a.kY.ZodFunction:case a.kY.ZodVoid:case a.kY.ZodSymbol:default:return}})(e,e.typeName,t),h="function"==typeof o?_(o(),t):o;if(h&&x(e,t,h),t.postProcess){let n=t.postProcess(h,e,t);return s.jsonSchema=h,n}return s.jsonSchema=h,h}let A=(e,t)=>{switch(t.$refStrategy){case"root":return{$ref:e.path.join("/")};case"relative":return{$ref:o(t.currentPath,e.path)};case"none":case"seen":if(e.path.length<t.currentPath.length&&e.path.every((e,n)=>t.currentPath[n]===e))return console.warn(`Recursive reference detected at ${t.currentPath.join("/")}! Defaulting to any`),l(t);return"seen"===t.$refStrategy?l(t):void 0}},x=(e,t,n)=>(e.description&&(n.description=e.description,t.markdownDescription&&(n.markdownDescription=e.description)),n),k=(e,t)=>{let n=(e=>{let t=(e=>"string"==typeof e?{...s,name:e}:{...s,...e})(e),n=void 0!==t.name?[...t.basePath,t.definitionPath,t.name]:t.basePath;return{...t,flags:{hasReferencedOpenAiAnyType:!1},currentPath:n,propertyPath:void 0,seen:new Map(Object.entries(t.definitions).map(([e,n])=>[n._def,{def:n._def,path:[...t.basePath,t.definitionPath,e],jsonSchema:void 0}]))}})(t),r="object"==typeof t&&t.definitions?Object.entries(t.definitions).reduce((e,[t,r])=>({...e,[t]:_(r._def,{...n,currentPath:[...n.basePath,n.definitionPath,t]},!0)??l(n)}),{}):void 0,i="string"==typeof t?t:t?.nameStrategy==="title"?void 0:t?.name,a=_(e._def,void 0===i?n:{...n,currentPath:[...n.basePath,n.definitionPath,i]},!1)??l(n),o="object"==typeof t&&void 0!==t.name&&"title"===t.nameStrategy?t.name:void 0;void 0!==o&&(a.title=o),n.flags.hasReferencedOpenAiAnyType&&(r||(r={}),r[n.openAiAnyTypeName]||(r[n.openAiAnyTypeName]={type:["string","number","integer","boolean","array","null"],items:{$ref:"relative"===n.$refStrategy?"1":[...n.basePath,n.definitionPath,n.openAiAnyTypeName].join("/")}}));let u=void 0===i?r?{...a,[n.definitionPath]:r}:a:{$ref:[..."relative"===n.$refStrategy?[]:n.basePath,n.definitionPath,i].join("/"),[n.definitionPath]:{...r,[i]:a}};return"jsonSchema7"===n.target?u.$schema="http://json-schema.org/draft-07/schema#":("jsonSchema2019-09"===n.target||"openAi"===n.target)&&(u.$schema="https://json-schema.org/draft/2019-09/schema#"),"openAi"===n.target&&("anyOf"in u||"oneOf"in u||"allOf"in u||"type"in u&&Array.isArray(u.type))&&console.warn("Warning: OpenAI may not support schemas with unions as roots! Try wrapping it in an object property."),u}},3870:(e,t,n)=>{n.d(t,{B:()=>u});var r=n(82967),i=n(65174),s=n(4956),a=(0,n(7542).L)(function(e){return function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),o=n(52851),l=n(3125),u=function(e){function t(){var t=e.call(this)||this;return t.closed=!1,t.currentObservers=null,t.observers=[],t.isStopped=!1,t.hasError=!1,t.thrownError=null,t}return(0,r.C6)(t,e),t.prototype.lift=function(e){var t=new c(this,this);return t.operator=e,t},t.prototype._throwIfClosed=function(){if(this.closed)throw new a},t.prototype.next=function(e){var t=this;(0,l.Y)(function(){var n,i;if(t._throwIfClosed(),!t.isStopped){t.currentObservers||(t.currentObservers=Array.from(t.observers));try{for(var s=(0,r.Ju)(t.currentObservers),a=s.next();!a.done;a=s.next())a.value.next(e)}catch(e){n={error:e}}finally{try{a&&!a.done&&(i=s.return)&&i.call(s)}finally{if(n)throw n.error}}}})},t.prototype.error=function(e){var t=this;(0,l.Y)(function(){if(t._throwIfClosed(),!t.isStopped){t.hasError=t.isStopped=!0,t.thrownError=e;for(var n=t.observers;n.length;)n.shift().error(e)}})},t.prototype.complete=function(){var e=this;(0,l.Y)(function(){if(e._throwIfClosed(),!e.isStopped){e.isStopped=!0;for(var t=e.observers;t.length;)t.shift().complete()}})},t.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(t.prototype,"observed",{get:function(){var e;return(null==(e=this.observers)?void 0:e.length)>0}
5,enumerable:!1,configurable:!0}),t.prototype._trySubscribe=function(t){return this._throwIfClosed(),e.prototype._trySubscribe.call(this,t)},t.prototype._subscribe=function(e){return this._throwIfClosed(),this._checkFinalizedStatuses(e),this._innerSubscribe(e)},t.prototype._innerSubscribe=function(e){var t=this,n=this.hasError,r=this.isStopped,i=this.observers;return n||r?s.Kn:(this.currentObservers=null,i.push(e),new s.yU(function(){t.currentObservers=null,(0,o.o)(i,e)}))},t.prototype._checkFinalizedStatuses=function(e){var t=this.hasError,n=this.thrownError,r=this.isStopped;t?e.error(n):r&&e.complete()},t.prototype.asObservable=function(){var e=new i.c;return e.source=this,e},t.create=function(e,t){return new c(e,t)},t}(i.c),c=function(e){function t(t,n){var r=e.call(this)||this;return r.destination=t,r.source=n,r}return(0,r.C6)(t,e),t.prototype.next=function(e){var t,n;null==(n=null==(t=this.destination)?void 0:t.next)||n.call(t,e)},t.prototype.error=function(e){var t,n;null==(n=null==(t=this.destination)?void 0:t.error)||n.call(t,e)},t.prototype.complete=function(){var e,t;null==(t=null==(e=this.destination)?void 0:e.complete)||t.call(e)},t.prototype._subscribe=function(e){var t,n;return null!=(n=null==(t=this.source)?void 0:t.subscribe(e))?n:s.Kn},t}(u)},4956:(e,t,n)=>{n.d(t,{Kn:()=>l,yU:()=>o,Uv:()=>u});var r=n(82967),i=n(99244),s=(0,n(7542).L)(function(e){return function(t){e(this),this.message=t?t.length+" errors occurred during unsubscription:\n"+t.map(function(e,t){return t+1+") "+e.toString()}).join("\n "):"",this.name="UnsubscriptionError",this.errors=t}}),a=n(52851),o=function(){var e;function t(e){this.initialTeardown=e,this.closed=!1,this._parentage=null,this._finalizers=null}return t.prototype.unsubscribe=function(){if(!this.closed){this.closed=!0;var e,t,n,a,o,l=this._parentage;if(l)if(this._parentage=null,Array.isArray(l))try{for(var u=(0,r.Ju)(l),d=u.next();!d.done;d=u.next())d.value.remove(this)}catch(t){e={error:t}}finally{try{d&&!d.done&&(t=u.return)&&t.call(u)}finally{if(e)throw e.error}}else l.remove(this);var h=this.initialTeardown;if((0,i.T)(h))try{h()}catch(e){o=e instanceof s?e.errors:[e]}var p=this._finalizers;if(p){this._finalizers=null;try{for(var f=(0,r.Ju)(p),m=f.next();!m.done;m=f.next()){var g=m.value;try{c(g)}catch(e){o=null!=o?o:[],e instanceof s?o=(0,r.fX)((0,r.fX)([],(0,r.zs)(o)),(0,r.zs)(e.errors)):o.push(e)}}}catch(e){n={error:e}}finally{try{m&&!m.done&&(a=f.return)&&a.call(f)}finally{if(n)throw n.error}}}if(o)throw new s(o)}},t.prototype.add=function(e){var n;if(e&&e!==this)if(this.closed)c(e);else{if(e instanceof t){if(e.closed||e._hasParent(this))return;e._addParent(this)}(this._finalizers=null!=(n=this._finalizers)?n:[]).push(e)}},t.prototype._hasParent=function(e){var t=this._parentage;return t===e||Array.isArray(t)&&t.includes(e)},t.prototype._addParent=function(e){var t=this._parentage;this._parentage=Array.isArray(t)?(t.push(e),t):t?[t,e]:e},t.prototype._removeParent=function(e){var t=this._parentage;t===e?this._parentage=null:Array.isArray(t)&&(0,a.o)(t,e)},t.prototype.remove=function(e){var n=this._finalizers;n&&(0,a.o)(n,e),e instanceof t&&e._removeParent(this)},(e=new t).closed=!0,t.EMPTY=e,t}
5(),l=o.EMPTY;function u(e){return e instanceof o||e&&"closed"in e&&(0,i.T)(e.remove)&&(0,i.T)(e.add)&&(0,i.T)(e.unsubscribe)}function c(e){(0,i.T)(e)?e():e.unsubscribe()}},5660:(e,t,n)=>{n.d(t,{L:()=>r});function r(e){return TypeError("You provided "+(null!==e&&"object"==typeof e?"an invalid object":"'"+e+"'")+" where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.")}},6036:(e,t,n)=>{n.d(t,{w:()=>d});var r=n(87611),i=n(868),s=n(34401),a=n(59761),o=n(7542),l=n(28963),u=n(96238),c=(0,o.L)(function(e){return function(t){void 0===t&&(t=null),e(this),this.message="Timeout has occurred",this.name="TimeoutError",this.info=t}});function d(e,t){var n=(0,i.v)(e)?{first:e}:"number"==typeof e?{each:e}:e,o=n.first,c=n.each,d=n.with,p=void 0===d?h:d,f=n.scheduler,m=void 0===f?null!=t?t:r.E:f,g=n.meta,y=void 0===g?null:g;if(null==o&&null==c)throw TypeError("No timeout provided.");return(0,s.N)(function(e,t){var n,r,i=null,s=0,d=function(e){r=(0,u.N)(t,m,function(){try{n.unsubscribe(),(0,a.Tg)(p({meta:y,lastValue:i,seen:s})).subscribe(t)}catch(e){t.error(e)}},e)};n=e.subscribe((0,l._)(t,function(e){null==r||r.unsubscribe(),s++,t.next(i=e),c>0&&d(c)},void 0,void 0,function(){(null==r?void 0:r.closed)||null==r||r.unsubscribe(),i=null})),s||d(null!=o?"number"==typeof o?o:o-m.now():c)})}function h(e){throw new c(e)}},6829:(e,t,n)=>{n.d(t,{H:()=>s});var r=n(13720),i=n(99244);function s(e,t){return(0,i.T)(t)?(0,r.Z)(e,t,1):(0,r.Z)(e,1)}},6847:(e,t,n)=>{n.d(t,{qW:()=>h});var r,i=n(23073),s=n(44560),a=n(95996),o=n(61051),l=n(57872),u=n(805),c="dismissableLayer.update",d=i.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),h=i.forwardRef((e,t)=>{let{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:h,onPointerDownOutside:m,onFocusOutside:g,onInteractOutside:y,onDismiss:v,...b}=e,E=i.useContext(d),[T,_]=i.useState(null),A=T?.ownerDocument??globalThis?.document,[,x]=i.useState({}),k=(0,o.s)(t,e=>_(e)),S=Array.from(E.layers),[w]=[...E.layersWithOutsidePointerEventsDisabled].slice(-1),I=S.indexOf(w),C=T?S.indexOf(T):-1,N=E.layersWithOutsidePointerEventsDisabled.size>0,R=C>=I,O=function(e,t=globalThis?.document){let n=(0,l.c)(e),r=i.useRef(!1),s=i.useRef(()=>{});return i.useEffect(()=>{let e=e=>{if(e.target&&!r.current){let r=function(){f("dismissableLayer.pointerDownOutside",n,i,{discrete:!0})},i={originalEvent:e};"touch"===e.pointerType?(t.removeEventListener("click",s.current),s.current=r,t.addEventListener("click",s.current,{once:!0})):r()}else t.removeEventListener("click",s.current);r.current=!1},i=window.setTimeout(()=>{t.addEventListener("pointerdown",e)},0);return()=>{window.clearTimeout(i),t.removeEventListener("pointerdown",e),t.removeEventListener("click",s.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}(e=>{let t=e.target,n=[...E.branches].some(e=>e.contains(t));R&&!n&&(m?.(e),y?.(e),e.defaultPrevented||v?.())},A),P=function(e,t=globalThis?.document){let n=(0,l.c)(e),r=i.useRef(!1);return i.useEffect(()=>{let e=e=>{e.target&&!r.current&&f("dismissableLayer.focusOutside",n,{originalEvent:e},{discrete:!1})};return t.addEventListener("focusin",e),()=>t.removeEventListener("focusin",e)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}(e=>{let t=e.target;![...E.branches].some(e=>e.contains(t))&&(g?.(e),y?.(e),e.defaultPrevented||v?.())},A);return!function(e,t=globalThis?.document){let n=(0,l.c)(e);i.useEffect(()=>{let e=e=>{"Escape"===e.key&&n(e)};return t.addEventListener("keydown",e,{capture:!0}),()=>t.removeEventListener("keydown",e,{capture:!0})},[n,t])}(e=>{C===E.layers.size-1&&(h?.(e),!e.defaultPrevented&&v&&(e.preventDefault(),v()))},A),i.useEffect(()=>{if(T)return n&&(0===E.layersWithOutsidePointerEventsDisabled.size&&(r=A.body.style.pointerEvents,A.body.style.pointerEvents="none"),E.layersWithOutsidePointerEventsDisabled.add(T)),E.layers.add(T),p(),()=>{n&&1===E.layersWithOutsidePointerEventsDisabled.size&&(A.body.style.pointerEvents=r)}},[T,A,n,E]),i.useEffect(()=>()=>{T&&(E.layers.delete(T),E.layersWithOutsidePointerEventsDisabled.delete(T),p())},[T,E]),i.useEffect(()=>{let e=()=>x({});return document.addEventListener(c,e),()=>document.removeEventListener(c,e)},[]),(0,u.jsx)(a.sG.div,{...b,ref:k,style:{pointerEvents:N?R?"auto":"none":void 0,...e.style},onFocusCapture:(0,s.mK)(e.onFocusCapture,P.onFocusCapture),onBlurCapture:(0,s.mK)(e.onBlurCapture,P.onBlurCapture),onPointerDownCapture:(0,s.mK)(e.onPointerDownCapture,O.onPointerDownCapture)})});function p(){let e=new CustomEvent(c);document.dispatchEvent(e)}function f(e,t,n,{discrete:r}){let i=n.originalEvent.target,s=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&i.addEventListener(e,t,{once:!0}),r?(0,a.hO)(i,s):i.dispatchEvent(s)}h.displayName="DismissableLayer",i.forwardRef((e,t)=>
5{let n=i.useContext(d),r=i.useRef(null),s=(0,o.s)(t,r);return i.useEffect(()=>{let e=r.current;if(e)return n.branches.add(e),()=>{n.branches.delete(e)}},[n.branches]),(0,u.jsx)(a.sG.div,{...e,ref:s})}).displayName="DismissableLayerBranch"},7542:(e,t,n)=>{n.d(t,{L:()=>r});function r(e){var t=e(function(e){Error.call(e),e.stack=Error().stack});return t.prototype=Object.create(Error.prototype),t.prototype.constructor=t,t}},7924:(e,t,n)=>{n.d(t,{A:()=>r});let r=(0,n(45751).A)("play",[["polygon",{points:"6 3 20 12 6 21 6 3",key:"1oa8hb"}]])},8875:(e,t)=>{function n(e){let{ampFirst:t=!1,hybrid:n=!1,hasQuery:r=!1}=void 0===e?{}:e;return t||n&&r}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"isInAmpMode",{enumerable:!0,get:function(){return n}})},9125:(e,t,n)=>{n.d(t,{A:()=>r});let r=(0,n(45751).A)("chevron-left",[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]])},9154:(e,t,n)=>{n.d(t,{w:()=>a});var r=n(34401),i=n(28963),s=n(60184);function a(){return(0,r.N)(function(e,t){e.subscribe((0,i._)(t,s.l))})}},10742:(e,t,n)=>{n.d(t,{A:()=>r});let r=(0,n(45751).A)("check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]])},10810:(e,t,n)=>{n.d(t,{Q:()=>a});var r=n(96238),i=n(34401),s=n(28963);function a(e,t){return void 0===t&&(t=0),(0,i.N)(function(n,i){n.subscribe((0,s._)(i,function(n){return(0,r.N)(i,e,function(){return i.next(n)},t)},function(){return(0,r.N)(i,e,function(){return i.complete()},t)},function(n){return(0,r.N)(i,e,function(){return i.error(n)},t)}))})}},10892:e=>{var t=Object.prototype.hasOwnProperty,n=Object.prototype.toString,r=Object.defineProperty,i=Object.getOwnPropertyDescriptor,s=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===n.call(e)},a=function(e){if(!e||"[object Object]"!==n.call(e))return!1;var r,i=t.call(e,"constructor"),s=e.constructor&&e.constructor.prototype&&t.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!i&&!s)return!1;for(r in e);return void 0===r||t.call(e,r)},o=function(e,t){r&&"__proto__"===t.name?r(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},l=function(e,n){if("__proto__"===n){if(!t.call(e,n))return;else if(i)return i(e,n).value}return e[n]};e.exports=function e(){var t,n,r,i,u,c,d=arguments[0],h=1,p=arguments.length,f=!1;for("boolean"==typeof d&&(f=d,d=arguments[1]||{},h=2),(null==d||"object"!=typeof d&&"function"!=typeof d)&&(d={});h<p;++h)if(t=arguments[h],null!=t)for(n in t)r=l(d,n),d!==(i=l(t,n))&&(f&&i&&(a(i)||(u=s(i)))?(u?(u=!1,c=r&&s(r)?r:[]):c=r&&a(r)?r:{},o(d,{name:n,newValue:e(f,c,i)})):void 0!==i&&o(d,{name:n,newValue:i}));return d}},11194:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{default:function(){return l},getImageProps:function(){return o}});let r=n(59224),i=n(50146),s=n(90250),a=r._(n(70754));function o(e){let{props:t}=(0,i.getImgProps)(e,{defaultLoader:a.default,imgConf:{deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[16,32,48,64,96,128,256,384],path:"/_next/image",loader:"default",dangerouslyAllowSVG:!1,unoptimized:!1}});for(let[e,n]of Object.entries(t))void 0===n&&delete t[e];return{props:t}}let l=s.Image},11412:(e,t,n)=>{n.d(t,{i3:()=>K,UC:()=>q,ZL:()=>W,Kq:()=>Y,bL:()=>Z,l9:()=>V});var r=n(23073),i=n(44560),s=n(61051),a=n(84741),o=n(6847),l=n(51068),u=n(30577),c=n(67712),d=n(885),h=n(95996),p=n(44567),f=n(24688),m=n(805),g=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),y=r.forwardRef((e,t)=>(0,m.jsx)(h.sG.span,{...e,ref:t,style:{...g,...e.style}}));y.displayName="VisuallyHidden";var[v,b]=(0,a.A)("Tooltip",[u.Bk]),E=(0,u.Bk)(),T="TooltipProvider",_="tooltip.open",[A,x]=v(T),k=e=>{let{__scopeTooltip:t,delayDuration:n=700,skipDelayDuration:i=300,disableHoverableContent:s=!1,children:a}=e,o=r.useRef(!0),l=r.useRef(!1),u=r.useRef(0);return r.useEffect(()=>{let e=u.current;return()=>window.clearTimeout(e)},[]),(0,m.jsx)(A,{scope:t,isOpenDelayedRef:o,delayDuration:n,onOpen:r.useCallback(()=>{window.clearTimeout(u.current),o.current=!1},[]),onClose:r.useCallback(()=>{window.clearTimeout(u.current),u.current=window.setTimeout(()=>
5o.current=!0,i)},[i]),isPointerInTransitRef:l,onPointerInTransitChange:r.useCallback(e=>{l.current=e},[]),disableHoverableContent:s,children:a})};k.displayName=T;var S="Tooltip",[w,I]=v(S),C=e=>{let{__scopeTooltip:t,children:n,open:i,defaultOpen:s,onOpenChange:a,disableHoverableContent:o,delayDuration:c}=e,d=x(S,e.__scopeTooltip),h=E(t),[p,g]=r.useState(null),y=(0,l.B)(),v=r.useRef(0),b=o??d.disableHoverableContent,T=c??d.delayDuration,A=r.useRef(!1),[k,I]=(0,f.i)({prop:i,defaultProp:s??!1,onChange:e=>{e?(d.onOpen(),document.dispatchEvent(new CustomEvent(_))):d.onClose(),a?.(e)},caller:S}),C=r.useMemo(()=>k?A.current?"delayed-open":"instant-open":"closed",[k]),N=r.useCallback(()=>{window.clearTimeout(v.current),v.current=0,A.current=!1,I(!0)},[I]),R=r.useCallback(()=>{window.clearTimeout(v.current),v.current=0,I(!1)},[I]),O=r.useCallback(()=>{window.clearTimeout(v.current),v.current=window.setTimeout(()=>{A.current=!0,I(!0),v.current=0},T)},[T,I]);return r.useEffect(()=>()=>{v.current&&(window.clearTimeout(v.current),v.current=0)},[]),(0,m.jsx)(u.bL,{...h,children:(0,m.jsx)(w,{scope:t,contentId:y,open:k,stateAttribute:C,trigger:p,onTriggerChange:g,onTriggerEnter:r.useCallback(()=>{d.isOpenDelayedRef.current?O():N()},[d.isOpenDelayedRef,O,N]),onTriggerLeave:r.useCallback(()=>{b?R():(window.clearTimeout(v.current),v.current=0)},[R,b]),onOpen:N,onClose:R,disableHoverableContent:b,children:n})})};C.displayName=S;var N="TooltipTrigger",R=r.forwardRef((e,t)=>{let{__scopeTooltip:n,...a}=e,o=I(N,n),l=x(N,n),c=E(n),d=r.useRef(null),p=(0,s.s)(t,d,o.onTriggerChange),f=r.useRef(!1),g=r.useRef(!1),y=r.useCallback(()=>f.current=!1,[]);return r.useEffect(()=>()=>document.removeEventListener("pointerup",y),[y]),(0,m.jsx)(u.Mz,{asChild:!0,...c,children:(0,m.jsx)(h.sG.button,{"aria-describedby":o.open?o.contentId:void 0,"data-state":o.stateAttribute,...a,ref:p,onPointerMove:(0,i.mK)(e.onPointerMove,e=>{"touch"!==e.pointerType&&(g.current||l.isPointerInTransitRef.current||(o.onTriggerEnter(),g.current=!0))}),onPointerLeave:(0,i.mK)(e.onPointerLeave,()=>{o.onTriggerLeave(),g.current=!1}),onPointerDown:(0,i.mK)(e.onPointerDown,()=>{o.open&&o.onClose(),f.current=!0,document.addEventListener("pointerup",y,{once:!0})}),onFocus:(0,i.mK)(e.onFocus,()=>{f.current||o.onOpen()}),onBlur:(0,i.mK)(e.onBlur,o.onClose),onClick:(0,i.mK)(e.onClick,o.onClose)})})});R.displayName=N;var O="TooltipPortal",[P,D]=v(O,{forceMount:void 0}),M=e=>{let{__scopeTooltip:t,forceMount:n,children:r,container:i}=e,s=I(O,t);return(0,m.jsx)(P,{scope:t,forceMount:n,children:(0,m.jsx)(d.C,{present:n||s.open,children:(0,m.jsx)(c.Z,{asChild:!0,container:i,children:r})})})};M.displayName=O;var L="TooltipContent",j=r.forwardRef((e,t)=>{let n=D(L,e.__scopeTooltip),{forceMount:r=n.forceMount,side:i="top",...s}=e,a=I(L,e.__scopeTooltip);return(0,m.jsx)(d.C,{present:r||a.open,children:a.disableHoverableContent?(0,m.jsx)(U,{side:i,...s,ref:t}):(0,m.jsx)(z,{side:i,...s,ref:t})})}),z=r.forwardRef((e,t)=>{let n=I(L,e.__scopeTooltip),i=x(L,e.__scopeTooltip),a=r.useRef(null),o=(0,s.s)(t,a),[l,u]=r.useState(null),{trigger:c,onClose:d}=n,h=a.current,{onPointerInTransitChange:p}=i,f=r.useCallback(()=>{u(null),p(!1)},[p]),g=r.useCallback((e,t)=>{let n=e.currentTarget,r={x:e.clientX,y:e.clientY},i=function(e,t){let n=Math.abs(t.top-e.y),r=Math.abs(t.bottom-e.y),i=Math.abs(t.right-e.x),s=Math.abs(t.left-e.x);switch(Math.min(n,r,i,s)){case s:return"left";case i:return"right";case n:return"top";case r:return"bottom";default:throw Error("unreachable")}}(r,n.getBoundingClientRect());u(function(e){let t=e.slice();return t.sort((e,t)=>e.x<t.x?-1:e.x>t.x?1:e.y<t.y?-1:1*!!(e.y>t.y)),function(e){if(e.length<=1)return e.slice();let t=[];for(let n=0;n<e.length;n++){let r=e[n];for(;t.length>=2;){let e=t[t.length-1],n=t[t.length-2];if((e.x-n.x)*(r.y-n.y)>=(e.y-n.y)*(r.x-n.x))t.pop();else break}t.push(r)}t.pop();let n=[];for(let t=e.length-1;t>=0;t--){let r=e[t];for(;n.length>=2;){let e=n[n.length-1],t=n[n.length-2];if((e.x-t.x)*(r.y-t.y)>=(e.y-t.y)*(r.x-t.x))n.pop();else break}n.push(r)}return(n.pop(),1===t.length&&1===n.length&&t[0].x===n[0].x&&t[0].y===n[0].y)?t:t.concat(n)}(t)}([...function(e,t,n=5){let r=[];switch(t){case"top":r.push({x:e.x-n,y:e.y+n},{x:e.x+n,y:e.y+n});break;case"bottom":r.push({x:e.x-n,y:e.y-n},{x:e.x+n,y:e.y-n});break;case"left":r.push({x:e.x+n,y:e.y-n},{x:e.x+n,y:e.y+n});break;case"right":r.push({x:e.x-n,y:e.y-n},{x:e.x-n,y:e.y+n})}return r}(r,i),...function(e){let{top:t,right:n,bottom:r,left:i}=e;return[{x:i,y:t},{x:n,y:t},{x:n,y:r},{x:i,y:r}]}(t.getBoundingClientRect())])),p(!0)},[p]);return r.useEffect(()=>()=>f(),[f]),r.useEffect(()=>{if(c&&h){let e=e=>g(e,h),t=e=>g(e,c);return c.addEventListener("pointerleave",e),h.addEventListener("pointerleave",t),()=>{c.removeEventListener("pointerleave",e),h.removeEventListener("pointerleave",t)}}},[c,h,g,f]),r.useEffect(()=>{if(l){let e=e=>{let t=e.target,n={x:e.clientX,y:e.clientY},r=c?.contains(t)||h?.contains(t),i=!function(e,t){let{x:n,y:r}=e,i=!1;for(let e=0,s=t.length-1;e<t.length;s=e++){let a=t[e],o=t[s],l=a.x,u=a.y,c=o.x,d=o.y;u>r!=d>r&&n<(c-l)*(r-u)/(d-u)+l&&(i=!i)}return i}(n,l);r?f():i&&(f(),d())};return document.addEventListener("pointermove",e),()=>document.removeEventListener("pointermove",e)}},[c,h,l,d,f]),(0,m.jsx)(U,{...e,ref:o})}),[F,B]=v(S,{isInside:!1}),$=(0,p.Dc)("TooltipContent"),U=r.forwardRef((e,t)=>
5{let{__scopeTooltip:n,children:i,"aria-label":s,onEscapeKeyDown:a,onPointerDownOutside:l,...c}=e,d=I(L,n),h=E(n),{onClose:p}=d;return r.useEffect(()=>(document.addEventListener(_,p),()=>document.removeEventListener(_,p)),[p]),r.useEffect(()=>{if(d.trigger){let e=e=>{let t=e.target;t?.contains(d.trigger)&&p()};return window.addEventListener("scroll",e,{capture:!0}),()=>window.removeEventListener("scroll",e,{capture:!0})}},[d.trigger,p]),(0,m.jsx)(o.qW,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:a,onPointerDownOutside:l,onFocusOutside:e=>e.preventDefault(),onDismiss:p,children:(0,m.jsxs)(u.UC,{"data-state":d.stateAttribute,...h,...c,ref:t,style:{...c.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[(0,m.jsx)($,{children:i}),(0,m.jsx)(F,{scope:n,isInside:!0,children:(0,m.jsx)(y,{id:d.contentId,role:"tooltip",children:s||i})})]})})});j.displayName=L;var H="TooltipArrow",G=r.forwardRef((e,t)=>{let{__scopeTooltip:n,...r}=e,i=E(n);return B(H,n).isInside?null:(0,m.jsx)(u.i3,{...i,...r,ref:t})});G.displayName=H;var Y=k,Z=C,V=R,W=M,q=j,K=G},11511:(e,t,n)=>{n.d(t,{I:()=>r});class r{constructor(e,t){this.dataListeners=[],this.propsListeners=[],this.currentProps={},this.isConnected=!1,this.context=e,this.behaviorTree=function e(t,n){let r=t;for(;"ZodOptional"===r._def.typeName||"ZodNullable"===r._def.typeName||"ZodDefault"===r._def.typeName;)r=r._def.innerType;if("checks"===n)return{type:"CHECKABLE"};if("ZodUnion"===r._def.typeName){let e=r._def.options;if(e.some(e=>"ZodObject"===e._def.typeName&&e._def.shape().event))return{type:"ACTION"};if(e.some(e=>"ZodObject"===e._def.typeName&&e._def.shape().path&&!e._def.shape().componentId))return{type:"DYNAMIC"};if(e.some(e=>"ZodObject"===e._def.typeName&&e._def.shape().componentId&&e._def.shape().path))return{type:"STRUCTURAL"}}else r._def.typeName;if("ZodArray"===r._def.typeName)return{type:"ARRAY",element:e(r._def.type)};if("ZodObject"===r._def.typeName){let t={};for(let[n,i]of Object.entries(r._def.shape()))t[n]=e(i,n);return{type:"OBJECT",shape:t}}return{type:"STATIC"}}(t),"OBJECT"!==this.behaviorTree.type&&(this.behaviorTree={type:"OBJECT",shape:{}}),this.resolveInitialProps()}resolveInitialProps(){let e=this.context.componentModel.properties,t=this.resolveAndBind(e,this.behaviorTree,[],!0);this.currentProps={...this.currentProps,...t}}connect(){if(this.isConnected)return;this.isConnected=!0;let e=this.context.componentModel.onUpdated.subscribe(()=>{this.rebuildAllBindings()});this.compUnsub=()=>e.unsubscribe(),this.rebuildAllBindings()}rebuildAllBindings(){this.dataListeners.forEach(e=>e()),this.dataListeners=[];let e=this.context.componentModel.properties,t=this.resolveAndBind(e,this.behaviorTree,[],!1);this.currentProps={...this.currentProps,...t},this.notify()}resolveAndBind(e,t,n,r){if(null==e)return e;switch(t.type){case"DYNAMIC":{let t=this.context.dataContext.subscribeDynamicValue(e,e=>{this.updateDeepValue(n,e),this.notify()});return r?t.unsubscribe():this.dataListeners.push(()=>t.unsubscribe()),t.value}case"ACTION":return()=>{let t=e=>{if("object"!=typeof e||null===e)return e;if("path"in e||"call"in e)return this.context.dataContext.resolveDynamicValue(e);if(Array.isArray(e))return e.map(t);let n={};for(let[r,i]of Object.entries(e))n[r]=t(i);return n};this.context.dispatchAction(t(e))};case"STRUCTURAL":if(e&&"object"==typeof e&&e.path&&e.componentId){let t=this.context.dataContext.subscribeDynamicValue({path:e.path},t=>{let r=Array.isArray(t)?t:[],i=this.context.dataContext.nested(e.path),s=r.map((t,n)=>({id:e.componentId,basePath:i.nested(String(n)).path}));this.updateDeepValue(n,s),this.notify()});r?t.unsubscribe():this.dataListeners.push(()=>t.unsubscribe());let i=Array.isArray(t.value)?t.value:[],s=this.context.dataContext.nested(e.path);return i.map((t,n)=>({id:e.componentId,basePath:s.nested(String(n)).path}))}return e;case"CHECKABLE":{let t=Array.isArray(e)?e:[],i=t.map(()=>({valid:!0,message:""})),s=n.slice(0,-1),a=()=>{let e=i.filter(e=>!e.valid).map(e=>e.message);this.updateDeepValue([...s,"isValid"],0===e.length),this.updateDeepValue([...s,"validationErrors"],e),this.notify()};t.forEach((e,t)=>{let n=e.condition||e,s=e.message||"Validation failed";i[t].message=s;let o=this.context.dataContext.subscribeDynamicValue(n,e=>{i[t].valid=!!e,a()});r?o.unsubscribe():this.dataListeners.push(()=>o.unsubscribe()),i[t].valid=!!o.value});let o=i.filter(e=>!e.valid).map(e=>e.message);return this.updateDeepValue([...s,"isValid"],0===o.length),this.updateDeepValue([...s,"validationErrors"],o),e}case"STATIC":return e;case"ARRAY":if(!Array.isArray(e))return e;return e.map((e,i)=>this.resolveAndBind(e,t.element,[...n,i.toString()],r));case"OBJECT":{if("object"!=typeof e)return e;let i={};for(let[s,a]of Object.entries(e)){let e=t.shape[s]||{type:"STATIC"};i[s]=this.resolveAndBind(a,e,[...n,s],r)}for(let[n,r]of Object.entries(t.shape))if("DYNAMIC"===r.type){let t=`set${n.charAt(0).toUpperCase()+n.slice(1)}`,r=e[n];i[t]=e=>{r&&"object"==typeof r&&"path"in r&&this.context.dataContext.set(r.path,e)}}return i}}}updateDeepValue(e,t){this.currentProps=this.cloneAndUpdate(this.currentProps,e,t)}cloneAndUpdate(e,t,n){if(0===t.length)return n;let[r,...i]=t;if(!Array.isArray(e))return{...e||{},[r]:this.cloneAndUpdate((e||{})[r],i,n)};{let t=[...e];return t[Number(r)]=this.cloneAndUpdate(t[Number(r)],i,n),t}}dispose(){this.isConnected&&(this.isConnected=!1,this.dataListeners.forEac
5h(e=>e()),this.dataListeners=[],this.compUnsub&&(this.compUnsub(),this.compUnsub=void 0))}notify(){this.propsListeners.forEach(e=>e(this.currentProps))}subscribe(e){return 0===this.propsListeners.length&&this.connect(),this.propsListeners.push(e),{unsubscribe:()=>{this.propsListeners=this.propsListeners.filter(t=>t!==e),0===this.propsListeners.length&&this.dispose()}}}get snapshot(){return this.currentProps}}},11663:(e,t,n)=>{n.d(t,{G:()=>s,eq:()=>i});var r=n(32156);let i=r.ZS.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite"]);class s extends Error{get errors(){return this.issues}constructor(e){super(),this.issues=[],this.addIssue=e=>{this.issues=[...this.issues,e]},this.addIssues=(e=[])=>{this.issues=[...this.issues,...e]};let t=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,t):this.__proto__=t,this.name="ZodError",this.issues=e}format(e){let t=e||function(e){return e.message},n={_errors:[]},r=e=>{for(let i of e.issues)if("invalid_union"===i.code)i.unionErrors.map(r);else if("invalid_return_type"===i.code)r(i.returnTypeError);else if("invalid_arguments"===i.code)r(i.argumentsError);else if(0===i.path.length)n._errors.push(t(i));else{let e=n,r=0;for(;r<i.path.length;){let n=i.path[r];r===i.path.length-1?(e[n]=e[n]||{_errors:[]},e[n]._errors.push(t(i))):e[n]=e[n]||{_errors:[]},e=e[n],r++}}};return r(this),n}static assert(e){if(!(e instanceof s))throw Error(`Not a ZodError: ${e}`)}toString(){return this.message}get message(){return JSON.stringify(this.issues,r.ZS.jsonStringifyReplacer,2)}get isEmpty(){return 0===this.issues.length}flatten(e=e=>e.message){let t={},n=[];for(let r of this.issues)if(r.path.length>0){let n=r.path[0];t[n]=t[n]||[],t[n].push(e(r))}else n.push(e(r));return{formErrors:n,fieldErrors:t}}get formErrors(){return this.flatten()}}s.create=e=>new s(e)},12060:(e,t,n)=>{n.d(t,{DX:()=>c});var r,i=n(23073),s=n(61051),a=n(805),o=Symbol.for("react.lazy"),l=(r||(r=n.t(i,2)))[" use ".trim().toString()];function u(e){var t;return null!=e&&"object"==typeof e&&"$$typeof"in e&&e.$$typeof===o&&"_payload"in e&&"object"==typeof(t=e._payload)&&null!==t&&"then"in t}var c=function(e){let t=function(e){let t=i.forwardRef((e,t)=>{let{children:n,...r}=e;if(u(n)&&"function"==typeof l&&(n=l(n._payload)),i.isValidElement(n)){var a;let e,o,l=(a=n,(o=(e=Object.getOwnPropertyDescriptor(a.props,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning)?a.ref:(o=(e=Object.getOwnPropertyDescriptor(a,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning)?a.props.ref:a.props.ref||a.ref),u=function(e,t){let n={...t};for(let r in t){let i=e[r],s=t[r];/^on[A-Z]/.test(r)?i&&s?n[r]=(...e)=>{let t=s(...e);return i(...e),t}:i&&(n[r]=i):"style"===r?n[r]={...i,...s}:"className"===r&&(n[r]=[i,s].filter(Boolean).join(" "))}return{...e,...n}}(r,n.props);return n.type!==i.Fragment&&(u.ref=t?(0,s.t)(t,l):l),i.cloneElement(n,u)}return i.Children.count(n)>1?i.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}(e),n=i.forwardRef((e,n)=>{let{children:r,...s}=e;u(r)&&"function"==typeof l&&(r=l(r._payload));let o=i.Children.toArray(r),c=o.find(h);if(c){let e=c.props.children,r=o.map(t=>t!==c?t:i.Children.count(e)>1?i.Children.only(null):i.isValidElement(e)?e.props.children:null);return(0,a.jsx)(t,{...s,ref:n,children:i.isValidElement(e)?i.cloneElement(e,void 0,r):null})}return(0,a.jsx)(t,{...s,ref:n,children:r})});return n.displayName=`${e}.Slot`,n}("Slot"),d=Symbol("radix.slottable");function h(e){return i.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===d}},12766:(e,t,n)=>{function r(){let e=0,t=0;for(let n=0;n<28;n+=7){let r=this.buf[this.pos++];if(e|=(127&r)<<n,(128&r)==0)return this.assertBounds(),[e,t]}let n=this.buf[this.pos++];if(e|=(15&n)<<28,t=(112&n)>>4,(128&n)==0)return this.assertBounds(),[e,t];for(let n=3;n<=31;n+=7){let r=this.buf[this.pos++];if(t|=(127&r)<<n,(128&r)==0)return this.assertBounds(),[e,t]}throw Error("invalid varint")}function i(e,t,n){for(let r=0;r<28;r+=7){let i=e>>>r,s=i>>>7!=0||0!=t,a=(s?128|i:i)&255;if(n.push(a),!s)return}let r=e>>>28&15|(7&t)<<4,i=t>>3!=0;if(n.push((i?128|r:r)&255),i){for(let e=3;e<31;e+=7){let r=t>>>e,i=r>>>7!=0,s=(i?128|r:r)&255;if(n.push(s),!i)return}n.push(t>>>31&1)}}function s(e){let t="-"===e[0];t&&(e=e.slice(1));let n=0,r=0;function i(t,i){let s=Number(e.slice(t,i));r*=1e6,(n=1e6*n+s)>=0x100000000&&(r+=n/0x100000000|0,n%=0x100000000)}return i(-24,-18),i(-18,-12),i(-12,-6),i(-6),t?l(n,r):o(n,r)}function a(e,t){if({lo:e,hi:t}={lo:e>>>0,hi:t>>>0},t<=2097151)return String(0x100000000*t+e);let n=0xffffff&e,r=(e>>>24|t<<8)&0xffffff,i=t>>16&65535,s=n+6777216*r+6710656*i,a=r+8147497*i,o=2*i;return s>=1e7&&(a+=Math.floor(s/1e7),s%=1e7),a>=1e7&&(o+=Math.floor(a/1e7),a%=1e7),o.toString()+u(a)+u(s)}function o(e,t){return{lo:0|e,hi:0|t}}function l(e,t){return t=~t,e?e=~e+1:t+=1,o(e,t)}n.d(t,{V5:()=>E,fI:()=>b});let u=e=>{let t=String(e);return"0000000".slice(t.length)+t};function c(e,t){if(e>=0){for(;e>127;)t.push(127&e|128),e>>>=7;t.push(e)}else{for(let n=0;n<9;n++)t.push(127&e|128),e>>=7;t.push(1)}}function d(){let e=this.buf[this.pos++],t=127&e;if((128&e)==0||(t|=(127&(e=this.buf[this.pos++]))<<7,(128&e)==0)||(t|=(127&(e=this.buf[this.pos++]))<<14,(128&e)==0)||(t|=(127&(e=this.buf[this.pos++]))<<21,(128&e)==0))return this.assertBounds(),t;
5t|=(15&(e=this.buf[this.pos++]))<<28;for(let t=5;(128&e)!=0&&t<10;t++)e=this.buf[this.pos++];if((128&e)!=0)throw Error("invalid varint");return this.assertBounds(),t>>>0}var h,p=n(30880);let f=function(){let e=new DataView(new ArrayBuffer(8));if("function"==typeof BigInt&&"function"==typeof e.getBigInt64&&"function"==typeof e.getBigUint64&&"function"==typeof e.setBigInt64&&"function"==typeof e.setBigUint64&&(globalThis.Deno||"object"!=typeof p||"object"!=typeof p.env||"1"!==p.env.BUF_BIGINT_DISABLE)){let t=BigInt("-9223372036854775808"),n=BigInt("9223372036854775807"),r=BigInt("0"),i=BigInt("18446744073709551615");return{zero:BigInt(0),supported:!0,parse(e){let r="bigint"==typeof e?e:BigInt(e);if(r>n||r<t)throw Error(`invalid int64: ${e}`);return r},uParse(e){let t="bigint"==typeof e?e:BigInt(e);if(t>i||t<r)throw Error(`invalid uint64: ${e}`);return t},enc(t){return e.setBigInt64(0,this.parse(t),!0),{lo:e.getInt32(0,!0),hi:e.getInt32(4,!0)}},uEnc(t){return e.setBigInt64(0,this.uParse(t),!0),{lo:e.getInt32(0,!0),hi:e.getInt32(4,!0)}},dec:(t,n)=>(e.setInt32(0,t,!0),e.setInt32(4,n,!0),e.getBigInt64(0,!0)),uDec:(t,n)=>(e.setInt32(0,t,!0),e.setInt32(4,n,!0),e.getBigUint64(0,!0))}}return{zero:"0",supported:!1,parse:e=>("string"!=typeof e&&(e=e.toString()),m(e),e),uParse:e=>("string"!=typeof e&&(e=e.toString()),g(e),e),enc:e=>("string"!=typeof e&&(e=e.toString()),m(e),s(e)),uEnc:e=>("string"!=typeof e&&(e=e.toString()),g(e),s(e)),dec:(e,t)=>(function(e,t){let n=o(e,t),r=0x80000000&n.hi;r&&(n=l(n.lo,n.hi));let i=a(n.lo,n.hi);return r?"-"+i:i})(e,t),uDec:(e,t)=>a(e,t)}}();function m(e){if(!/^-?[0-9]+$/.test(e))throw Error("invalid int64: "+e)}function g(e){if(!/^[0-9]+$/.test(e))throw Error("invalid uint64: "+e)}let y=Symbol.for("@bufbuild/protobuf/text-encoding");function v(){if(void 0==globalThis[y]){let e=new globalThis.TextEncoder,t=new globalThis.TextDecoder;globalThis[y]={encodeUtf8:t=>e.encode(t),decodeUtf8:e=>t.decode(e),checkUtf8(e){try{return encodeURIComponent(e),!0}catch(e){return!1}}}}return globalThis[y]}!function(e){e[e.Varint=0]="Varint",e[e.Bit64=1]="Bit64",e[e.LengthDelimited=2]="LengthDelimited",e[e.StartGroup=3]="StartGroup",e[e.EndGroup=4]="EndGroup",e[e.Bit32=5]="Bit32"}(h||(h={}));class b{constructor(e=v().encodeUtf8){this.encodeUtf8=e,this.stack=[],this.chunks=[],this.buf=[]}finish(){this.buf.length&&(this.chunks.push(new Uint8Array(this.buf)),this.buf=[]);let e=0;for(let t=0;t<this.chunks.length;t++)e+=this.chunks[t].length;let t=new Uint8Array(e),n=0;for(let e=0;e<this.chunks.length;e++)t.set(this.chunks[e],n),n+=this.chunks[e].length;return this.chunks=[],t}fork(){return this.stack.push({chunks:this.chunks,buf:this.buf}),this.chunks=[],this.buf=[],this}join(){let e=this.finish(),t=this.stack.pop();if(!t)throw Error("invalid state, fork stack empty");return this.chunks=t.chunks,this.buf=t.buf,this.uint32(e.byteLength),this.raw(e)}tag(e,t){return this.uint32((e<<3|t)>>>0)}raw(e){return this.buf.length&&(this.chunks.push(new Uint8Array(this.buf)),this.buf=[]),this.chunks.push(e),this}uint32(e){for(_(e);e>127;)this.buf.push(127&e|128),e>>>=7;return this.buf.push(e),this}int32(e){return T(e),c(e,this.buf),this}bool(e){return this.buf.push(+!!e),this}bytes(e){return this.uint32(e.byteLength),this.raw(e)}string(e){let t=this.encodeUtf8(e);return this.uint32(t.byteLength),this.raw(t)}float(e){var t=e;if("string"==typeof t){let e=t;if(Number.isNaN(t=Number(t))&&"NaN"!==e)throw Error("invalid float32: "+e)}else if("number"!=typeof t)throw Error("invalid float32: "+typeof t);if(Number.isFinite(t)&&(t>34028234663852886e22||t<-34028234663852886e22))throw Error("invalid float32: "+t);let n=new Uint8Array(4);return new DataView(n.buffer).setFloat32(0,e,!0),this.raw(n)}double(e){let t=new Uint8Array(8);return new DataView(t.buffer).setFloat64(0,e,!0),this.raw(t)}fixed32(e){_(e);let t=new Uint8Array(4);return new DataView(t.buffer).setUint32(0,e,!0),this.raw(t)}sfixed32(e){T(e);let t=new Uint8Array(4);return new DataView(t.buffer).setInt32(0,e,!0),this.raw(t)}sint32(e){return T(e),c(e=(e<<1^e>>31)>>>0,this.buf),this}sfixed64(e){let t=new Uint8Array(8),n=new DataView(t.buffer),r=f.enc(e);return n.setInt32(0,r.lo,!0),n.setInt32(4,r.hi,!0),this.raw(t)}fixed64(e){let t=new Uint8Array(8),n=new DataView(t.buffer),r=f.uEnc(e);return n.setInt32(0,r.lo,!0),n.setInt32(4,r.hi,!0),this.raw(t)}int64(e){let t=f.enc(e);return i(t.lo,t.hi,this.buf),this}sint64(e){let t=f.enc(e),n=t.hi>>31;return i(t.lo<<1^n,(t.hi<<1|t.lo>>>31)^n,this.buf),this}uint64(e){let t=f.uEnc(e);return i(t.lo,t.hi,this.buf),this}}class E{constructor(e,t=v().decodeUtf8){this.decodeUtf8=t,this.varint64=r,this.uint32=d,this.buf=e,this.len=e.length,this.pos=0,this.view=new DataView(e.buffer,e.byteOffset,e.byteLength)}tag(){let e=this.uint32(),t=e>>>3,n=7&e;
5if(t<=0||n<0||n>5)throw Error("illegal tag: field no "+t+" wire type "+n);return[t,n]}skip(e,t){let n=this.pos;switch(e){case h.Varint:for(;128&this.buf[this.pos++];);break;case h.Bit64:this.pos+=4;case h.Bit32:this.pos+=4;break;case h.LengthDelimited:let r=this.uint32();this.pos+=r;break;case h.StartGroup:for(;;){let[e,n]=this.tag();if(n===h.EndGroup){if(void 0!==t&&e!==t)throw Error("invalid end group tag");break}this.skip(n,e)}break;default:throw Error("cant skip wire type "+e)}return this.assertBounds(),this.buf.subarray(n,this.pos)}assertBounds(){if(this.pos>this.len)throw RangeError("premature EOF")}int32(){return 0|this.uint32()}sint32(){let e=this.uint32();return e>>>1^-(1&e)}int64(){return f.dec(...this.varint64())}uint64(){return f.uDec(...this.varint64())}sint64(){let[e,t]=this.varint64(),n=-(1&e);return e=(e>>>1|(1&t)<<31)^n,t=t>>>1^n,f.dec(e,t)}bool(){let[e,t]=this.varint64();return 0!==e||0!==t}fixed32(){return this.view.getUint32((this.pos+=4)-4,!0)}sfixed32(){return this.view.getInt32((this.pos+=4)-4,!0)}fixed64(){return f.uDec(this.sfixed32(),this.sfixed32())}sfixed64(){return f.dec(this.sfixed32(),this.sfixed32())}float(){return this.view.getFloat32((this.pos+=4)-4,!0)}double(){return this.view.getFloat64((this.pos+=8)-8,!0)}bytes(){let e=this.uint32(),t=this.pos;return this.pos+=e,this.assertBounds(),this.buf.subarray(t,t+e)}string(){return this.decodeUtf8(this.bytes())}}function T(e){if("string"==typeof e)e=Number(e);else if("number"!=typeof e)throw Error("invalid int32: "+typeof e);if(!Number.isInteger(e)||e>0x7fffffff||e<-0x80000000)throw Error("invalid int32: "+e)}function _(e){if("string"==typeof e)e=Number(e);else if("number"!=typeof e)throw Error("invalid uint32: "+typeof e);if(!Number.isInteger(e)||e>0xffffffff||e<0)throw Error("invalid uint32: "+e)}},13452:(e,t,n)=>{n.d(t,{$W:()=>l,GT:()=>a,_e:()=>s,cr:()=>o,tm:()=>r,xI:()=>i});let r=Object.freeze({status:"aborted"});function i(e,t,n){function r(n,r){var i;for(let s in Object.defineProperty(n,"_zod",{value:n._zod??{},enumerable:!1}),(i=n._zod).traits??(i.traits=new Set),n._zod.traits.add(e),t(n,r),a.prototype)s in n||Object.defineProperty(n,s,{value:a.prototype[s].bind(n)});n._zod.constr=a,n._zod.def=r}let i=n?.Parent??Object;class s extends i{}function a(e){var t;let i=n?.Parent?new s:this;for(let n of(r(i,e),(t=i._zod).deferred??(t.deferred=[]),i._zod.deferred))n();return i}return Object.defineProperty(s,"name",{value:e}),Object.defineProperty(a,"init",{value:r}),Object.defineProperty(a,Symbol.hasInstance,{value:t=>!!n?.Parent&&t instanceof n.Parent||t?._zod?.traits?.has(e)}),Object.defineProperty(a,"name",{value:e}),a}let s=Symbol("zod_brand");class a extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}}let o={};function l(e){return e&&Object.assign(o,e),o}},13720:(e,t,n)=>{n.d(t,{Z:()=>function e(t,n,l){return(void 0===l&&(l=1/0),(0,o.T)(n))?e(function(e,s){return(0,r.T)(function(t,r){return n(e,t,s,r)})((0,i.Tg)(t(e,s)))},l):("number"==typeof n&&(l=n),(0,s.N)(function(e,n){var r,s,o,u,c,d,h,p,f;return r=l,o=[],u=0,c=0,d=!1,h=function(){!d||o.length||u||n.complete()},p=function(e){return u<r?f(e):o.push(e)},f=function(e){u++;var l=!1;(0,i.Tg)(t(e,c++)).subscribe((0,a._)(n,function(e){s?p(e):n.next(e)},function(){l=!0},void 0,function(){if(l)try{for(u--;o.length&&u<r;)!function(){var e=o.shift();f(e)}();h()}catch(e){n.error(e)}}))},e.subscribe((0,a._)(n,p,function(){d=!0,h()})),function(){}}))}});var r=n(76509),i=n(59761),s=n(34401),a=(n(96238),n(28963)),o=n(99244)},14131:(e,t,n)=>{n.d(t,{Z:()=>a});var r=n(89823),i=n(33097),s=n(34401);function a(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=(0,i.lI)(e);return(0,s.N)(function(t,i){(n?(0,r.x)(e,t,n):(0,r.x)(e,t)).subscribe(i)})}},14563:(e,t,n)=>{n.d(t,{$:()=>f});var r,i=n(82967),s=n(1645),a=1,o={};function l(e){return e in o&&(delete o[e],!0)}var u={setImmediate:function(e){var t=a++;return o[t]=!0,r||(r=Promise.resolve()),r.then(function(){return l(t)&&e()}),t},clearImmediate:function(e){l(e)}},c=u.setImmediate,d=u.clearImmediate,h={setImmediate:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=h.delegate;return((null==n?void 0:n.setImmediate)||c).apply(void 0,(0,i.fX)([],(0,i.zs)(e)))},clearImmediate:function(e){var t=h.delegate;return((null==t?void 0:t.clearImmediate)||d)(e)},delegate:void 0},p=function(e){function t(t,n){var r=e.call(this,t,n)||this;
5return r.scheduler=t,r.work=n,r}return(0,i.C6)(t,e),t.prototype.requestAsyncId=function(t,n,r){return(void 0===r&&(r=0),null!==r&&r>0)?e.prototype.requestAsyncId.call(this,t,n,r):(t.actions.push(this),t._scheduled||(t._scheduled=h.setImmediate(t.flush.bind(t,void 0))))},t.prototype.recycleAsyncId=function(t,n,r){if(void 0===r&&(r=0),null!=r?r>0:this.delay>0)return e.prototype.recycleAsyncId.call(this,t,n,r);var i,s=t.actions;null!=n&&(null==(i=s[s.length-1])?void 0:i.id)!==n&&(h.clearImmediate(n),t._scheduled===n&&(t._scheduled=void 0))},t}(s.R),f=new(function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,i.C6)(t,e),t.prototype.flush=function(e){this._active=!0;var t,n=this._scheduled;this._scheduled=void 0;var r=this.actions;e=e||r.shift();do if(t=e.execute(e.state,e.delay))break;while((e=r[0])&&e.id===n&&r.shift());if(this._active=!1,t){for(;(e=r[0])&&e.id===n&&r.shift();)e.unsubscribe();throw t}},t}(n(32860).q))(p)},14998:(e,t,n)=>{n.d(t,{OA:()=>r,WL:()=>s,u$:()=>i});let r={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},i=e=>(...t)=>({_$litDirective$:e,values:t});class s{constructor(e){}get _$AU(){return this._$AM._$AU}_$AT(e,t,n){this._$Ct=e,this._$AM=t,this._$Ci=n}_$AS(e,t){return this.update(e,t)}update(e,t){return this.render(...t)}}},19176:(e,t,n)=>{n.d(t,{H:()=>s});var r=n(46492),i=n(14998);let s=(0,i.u$)(class extends i.WL{constructor(e){if(super(e),e.type!==i.OA.ATTRIBUTE||"class"!==e.name||e.strings?.length>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(e){return" "+Object.keys(e).filter(t=>e[t]).join(" ")+" "}update(e,[t]){if(void 0===this.st){for(let n in this.st=new Set,void 0!==e.strings&&(this.nt=new Set(e.strings.join(" ").split(/\s/).filter(e=>""!==e))),t)t[n]&&!this.nt?.has(n)&&this.st.add(n);return this.render(t)}let n=e.element.classList;for(let e of this.st)e in t||(n.remove(e),this.st.delete(e));for(let e in t){let r=!!t[e];r===this.st.has(e)||this.nt?.has(e)||(r?(n.add(e),this.st.add(e)):(n.remove(e),this.st.delete(e)))}return r.c0}})},19181:(e,t,n)=>{n.d(t,{UC:()=>t8,q7:()=>ne,JU:()=>t7,ZL:()=>t6,bL:()=>t9,wv:()=>nt,Pb:()=>nn,G5:()=>ni,ZP:()=>nr,l9:()=>t5});var r,i,s=n(23073),a=n(44560),o=n(61051),l=n(84741),u=n(24688),c=n(95996),d=n(44567),h=n(805);function p(e){let t=e+"CollectionProvider",[n,r]=(0,l.A)(t),[i,a]=n(t,{collectionRef:{current:null},itemMap:new Map}),u=e=>{let{scope:t,children:n}=e,r=s.useRef(null),a=s.useRef(new Map).current;return(0,h.jsx)(i,{scope:t,itemMap:a,collectionRef:r,children:n})};u.displayName=t;let c=e+"CollectionSlot",p=(0,d.TL)(c),f=s.forwardRef((e,t)=>{let{scope:n,children:r}=e,i=a(c,n),s=(0,o.s)(t,i.collectionRef);return(0,h.jsx)(p,{ref:s,children:r})});f.displayName=c;let m=e+"CollectionItemSlot",g="data-radix-collection-item",y=(0,d.TL)(m),v=s.forwardRef((e,t)=>{let{scope:n,children:r,...i}=e,l=s.useRef(null),u=(0,o.s)(t,l),c=a(m,n);return s.useEffect(()=>(c.itemMap.set(l,{ref:l,...i}),()=>void c.itemMap.delete(l))),(0,h.jsx)(y,{...{[g]:""},ref:u,children:r})});return v.displayName=m,[{Provider:u,Slot:f,ItemSlot:v},function(t){let n=a(e+"CollectionConsumer",t);return s.useCallback(()=>{let e=n.collectionRef.current;if(!e)return[];let t=Array.from(e.querySelectorAll(`[${g}]`));return Array.from(n.itemMap.values()).sort((e,n)=>t.indexOf(e.ref.current)-t.indexOf(n.ref.current))},[n.collectionRef,n.itemMap])},r]}var f=new WeakMap;function m(e,t){if("at"in Array.prototype)return Array.prototype.at.call(e,t);let n=function(e,t){let n=e.length,r=g(t),i=r>=0?r:n+r;return i<0||i>=n?-1:i}(e,t);return -1===n?void 0:e[n]}function g(e){return e!=e||0===e?0:Math.trunc(e)}(class e extends Map{#_;constructor(e){super(e),this.#_=[...super.keys()],f.set(this,!0)}set(e,t){return f.get(this)&&(this.has(e)?this.#_[this.#_.indexOf(e)]=e:this.#_.push(e)),super.set(e,t),this}insert(e,t,n){let r,i=this.has(t),s=this.#_.length,a=g(e),o=a>=0?a:s+a,l=o<0||o>=s?-1:o;if(l===this.size||i&&l===this.size-1||-1===l)return this.set(t,n),this;let u=this.size+ +!i;a<0&&o++;let c=[...this.#_],d=!1;for(let e=o;e<u;e++)if(o===e){let s=c[e];c[e]===t&&(s=c[e+1]),i&&this.delete(t),r=this.get(s),this.set(t,n)}else{d||c[e-1]!==t||(d=!0);let n=c[d?e:e-1],i=r;r=this.get(n),this.delete(n),this.set(n,i)}return this}with(t,n,r){let i=new e(this);return i.insert(t,n,r),i}before(e){let t=this.#_.indexOf(e)-1;if(!(t<0))return this.entryAt(t)}setBefore(e,t,n){let r=this.#_.indexOf(e);return -1===r?this:this.insert(r,t,n)}after(e){let t=this.#_.indexOf(e);if(-1!==(t=-1===t||t===this.size-1?-1:t+1))return this.entryAt(t)}setAfter(e,t,n){let r=this.#_.indexOf(e);return -1===r?this:this.insert(r+1,t,n)}first(){return this.entryAt(0)}last(){return this.entryAt(-1)}clear(){return this.#_=[],super.clear()}delete(e){let t=super.delete(e);return t&&this.#_.splice(this.#_.indexOf(e),1),t}deleteAt(e){let t=this.keyAt(e);return void 0!==t&&this.delete(t)}at(e){let t=m(this.#_,e);if(void 0!==t)return this.get(t)}entryAt(e){let t=m(this.#_,e);if(void 0!==t)return[t,this.get(t)]}indexOf(e){return this.#_.indexOf(e)}keyAt(e){return m(this.#_,e)}from(e,t){let n=this.indexOf(e);if(-1===n)return;let r=n+t;return r<0&&(r=0),r>=this.size&&(r=this.size-1),this.at(r)}keyFrom(e,t){let n=this.indexOf(e);if(-1===n)return;let r=n+t;return r<0&&(r=0),r>=this.size&&(r=this.size-1),this.keyAt(r)}find(e,t){let n=0;for(let r of this){if(Reflect.apply(e,t,[r,n,this]))return r;n++}
5}findIndex(e,t){let n=0;for(let r of this){if(Reflect.apply(e,t,[r,n,this]))return n;n++}return -1}filter(t,n){let r=[],i=0;for(let e of this)Reflect.apply(t,n,[e,i,this])&&r.push(e),i++;return new e(r)}map(t,n){let r=[],i=0;for(let e of this)r.push([e[0],Reflect.apply(t,n,[e,i,this])]),i++;return new e(r)}reduce(...e){let[t,n]=e,r=0,i=n??this.at(0);for(let n of this)i=0===r&&1===e.length?n:Reflect.apply(t,this,[i,n,r,this]),r++;return i}reduceRight(...e){let[t,n]=e,r=n??this.at(-1);for(let n=this.size-1;n>=0;n--){let i=this.at(n);r=n===this.size-1&&1===e.length?i:Reflect.apply(t,this,[r,i,n,this])}return r}toSorted(t){return new e([...this.entries()].sort(t))}toReversed(){let t=new e;for(let e=this.size-1;e>=0;e--){let n=this.keyAt(e),r=this.get(n);t.set(n,r)}return t}toSpliced(...t){let n=[...this.entries()];return n.splice(...t),new e(n)}slice(t,n){let r=new e,i=this.size-1;if(void 0===t)return r;t<0&&(t+=this.size),void 0!==n&&n>0&&(i=n-1);for(let e=t;e<=i;e++){let t=this.keyAt(e),n=this.get(t);r.set(t,n)}return r}every(e,t){let n=0;for(let r of this){if(!Reflect.apply(e,t,[r,n,this]))return!1;n++}return!0}some(e,t){let n=0;for(let r of this){if(Reflect.apply(e,t,[r,n,this]))return!0;n++}return!1}});var y=s.createContext(void 0);function v(e){let t=s.useContext(y);return e||t||"ltr"}var b=n(6847),E=0;function T(){let 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 _=n(57872),A="focusScope.autoFocusOnMount",x="focusScope.autoFocusOnUnmount",k={bubbles:!1,cancelable:!0},S=s.forwardRef((e,t)=>{let{loop:n=!1,trapped:r=!1,onMountAutoFocus:i,onUnmountAutoFocus:a,...l}=e,[u,d]=s.useState(null),p=(0,_.c)(i),f=(0,_.c)(a),m=s.useRef(null),g=(0,o.s)(t,e=>d(e)),y=s.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;s.useEffect(()=>{if(r){let e=function(e){if(y.paused||!u)return;let t=e.target;u.contains(t)?m.current=t:C(m.current,{select:!0})},t=function(e){if(y.paused||!u)return;let t=e.relatedTarget;null!==t&&(u.contains(t)||C(m.current,{select:!0}))};document.addEventListener("focusin",e),document.addEventListener("focusout",t);let n=new MutationObserver(function(e){if(document.activeElement===document.body)for(let t of e)t.removedNodes.length>0&&C(u)});return u&&n.observe(u,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",e),document.removeEventListener("focusout",t),n.disconnect()}}},[r,u,y.paused]),s.useEffect(()=>{if(u){N.add(y);let e=document.activeElement;if(!u.contains(e)){let t=new CustomEvent(A,k);u.addEventListener(A,p),u.dispatchEvent(t),t.defaultPrevented||(function(e,{select:t=!1}={}){let n=document.activeElement;for(let r of e)if(C(r,{select:t}),document.activeElement!==n)return}(w(u).filter(e=>"A"!==e.tagName),{select:!0}),document.activeElement===e&&C(u))}return()=>{u.removeEventListener(A,p),setTimeout(()=>{let t=new CustomEvent(x,k);u.addEventListener(x,f),u.dispatchEvent(t),t.defaultPrevented||C(e??document.body,{select:!0}),u.removeEventListener(x,f),N.remove(y)},0)}}},[u,p,f,y]);let v=s.useCallback(e=>{if(!n&&!r||y.paused)return;let t="Tab"===e.key&&!e.altKey&&!e.ctrlKey&&!e.metaKey,i=document.activeElement;if(t&&i){let t=e.currentTarget,[r,s]=function(e){let t=w(e);return[I(t,e),I(t.reverse(),e)]}(t);r&&s?e.shiftKey||i!==s?e.shiftKey&&i===r&&(e.preventDefault(),n&&C(s,{select:!0})):(e.preventDefault(),n&&C(r,{select:!0})):i===t&&e.preventDefault()}},[n,r,y.paused]);return(0,h.jsx)(c.sG.div,{tabIndex:-1,...l,ref:g,onKeyDown:v})});function w(e){let t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>{let t="INPUT"===e.tagName&&"hidden"===e.type;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function I(e,t){for(let n of e)if(!function(e,{upTo:t}){if("hidden"===getComputedStyle(e).visibility)return!0;for(;e&&(void 0===t||e!==t);){if("none"===getComputedStyle(e).display)return!0;e=e.parentElement}return!1}(n,{upTo:t}))return n}function C(e,{select:t=!1}={}){if(e&&e.focus){var n;let r=document.activeElement;e.focus({preventScroll:!0}),e!==r&&(n=e)instanceof HTMLInputElement&&"select"in n&&t&&e.select()}}S.displayName="FocusScope";var N=function(){let e=[];return{add(t){let n=e[0];t!==n&&n?.pause(),(e=R(e,t)).unshift(t)},remove(t){e=R(e,t),e[0]?.resume()}}}();function R(e,t){let n=[...e],r=n.indexOf(t);return -1!==r&&n.splice(r,1),n}var O=n(51068),P=n(30577),D=n(67712),M=n(885),L="rovingFocusGroup.onEntryFocus",j={bubbles:!1,cancelable:!0},z="RovingFocusGroup",[F,B,$]=p(z),[U,H]=(0,l.A)(z,[$]),[G,Y]=U(z),Z=s.forwardRef((e,t)=>
5(0,h.jsx)(F.Provider,{scope:e.__scopeRovingFocusGroup,children:(0,h.jsx)(F.Slot,{scope:e.__scopeRovingFocusGroup,children:(0,h.jsx)(V,{...e,ref:t})})}));Z.displayName=z;var V=s.forwardRef((e,t)=>{let{__scopeRovingFocusGroup:n,orientation:r,loop:i=!1,dir:l,currentTabStopId:d,defaultCurrentTabStopId:p,onCurrentTabStopIdChange:f,onEntryFocus:m,preventScrollOnEntryFocus:g=!1,...y}=e,b=s.useRef(null),E=(0,o.s)(t,b),T=v(l),[A,x]=(0,u.i)({prop:d,defaultProp:p??null,onChange:f,caller:z}),[k,S]=s.useState(!1),w=(0,_.c)(m),I=B(n),C=s.useRef(!1),[N,R]=s.useState(0);return s.useEffect(()=>{let e=b.current;if(e)return e.addEventListener(L,w),()=>e.removeEventListener(L,w)},[w]),(0,h.jsx)(G,{scope:n,orientation:r,dir:T,loop:i,currentTabStopId:A,onItemFocus:s.useCallback(e=>x(e),[x]),onItemShiftTab:s.useCallback(()=>S(!0),[]),onFocusableItemAdd:s.useCallback(()=>R(e=>e+1),[]),onFocusableItemRemove:s.useCallback(()=>R(e=>e-1),[]),children:(0,h.jsx)(c.sG.div,{tabIndex:k||0===N?-1:0,"data-orientation":r,...y,ref:E,style:{outline:"none",...e.style},onMouseDown:(0,a.mK)(e.onMouseDown,()=>{C.current=!0}),onFocus:(0,a.mK)(e.onFocus,e=>{let t=!C.current;if(e.target===e.currentTarget&&t&&!k){let t=new CustomEvent(L,j);if(e.currentTarget.dispatchEvent(t),!t.defaultPrevented){let e=I().filter(e=>e.focusable);X([e.find(e=>e.active),e.find(e=>e.id===A),...e].filter(Boolean).map(e=>e.ref.current),g)}}C.current=!1}),onBlur:(0,a.mK)(e.onBlur,()=>S(!1))})})}),W="RovingFocusGroupItem",q=s.forwardRef((e,t)=>{let{__scopeRovingFocusGroup:n,focusable:r=!0,active:i=!1,tabStopId:o,children:l,...u}=e,d=(0,O.B)(),p=o||d,f=Y(W,n),m=f.currentTabStopId===p,g=B(n),{onFocusableItemAdd:y,onFocusableItemRemove:v,currentTabStopId:b}=f;return s.useEffect(()=>{if(r)return y(),()=>v()},[r,y,v]),(0,h.jsx)(F.ItemSlot,{scope:n,id:p,focusable:r,active:i,children:(0,h.jsx)(c.sG.span,{tabIndex:m?0:-1,"data-orientation":f.orientation,...u,ref:t,onMouseDown:(0,a.mK)(e.onMouseDown,e=>{r?f.onItemFocus(p):e.preventDefault()}),onFocus:(0,a.mK)(e.onFocus,()=>f.onItemFocus(p)),onKeyDown:(0,a.mK)(e.onKeyDown,e=>{if("Tab"===e.key&&e.shiftKey)return void f.onItemShiftTab();if(e.target!==e.currentTarget)return;let t=function(e,t,n){var r;let i=(r=e.key,"rtl"!==n?r:"ArrowLeft"===r?"ArrowRight":"ArrowRight"===r?"ArrowLeft":r);if(!("vertical"===t&&["ArrowLeft","ArrowRight"].includes(i))&&!("horizontal"===t&&["ArrowUp","ArrowDown"].includes(i)))return K[i]}(e,f.orientation,f.dir);if(void 0!==t){if(e.metaKey||e.ctrlKey||e.altKey||e.shiftKey)return;e.preventDefault();let n=g().filter(e=>e.focusable).map(e=>e.ref.current);if("last"===t)n.reverse();else if("prev"===t||"next"===t){"prev"===t&&n.reverse();let r=n.indexOf(e.currentTarget);n=f.loop?function(e,t){return e.map((n,r)=>e[(t+r)%e.length])}(n,r+1):n.slice(r+1)}setTimeout(()=>X(n))}}),children:"function"==typeof l?l({isCurrentTabStop:m,hasTabStop:null!=b}):l})})});q.displayName=W;var K={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function X(e,t=!1){let n=document.activeElement;for(let r of e)if(r===n||(r.focus({preventScroll:t}),document.activeElement!==n))return}var Q=new WeakMap,J=new WeakMap,ee={},et=0,en=function(e){return e&&(e.host||en(e.parentNode))},er=function(e,t,n,r){var i=(Array.isArray(e)?e:[e]).map(function(e){if(t.contains(e))return e;var n=en(e);return n&&t.contains(n)?n:(console.error("aria-hidden",e,"in not contained inside",t,". Doing nothing"),null)}).filter(function(e){return!!e});ee[n]||(ee[n]=new WeakMap);var s=ee[n],a=[],o=new Set,l=new Set(i),u=function(e){!e||o.has(e)||(o.add(e),u(e.parentNode))};i.forEach(u);var c=function(e){!e||l.has(e)||Array.prototype.forEach.call(e.children,function(e){if(o.has(e))c(e);else try{var t=e.getAttribute(r),i=null!==t&&"false"!==t,l=(Q.get(e)||0)+1,u=(s.get(e)||0)+1;Q.set(e,l),s.set(e,u),a.push(e),1===l&&i&&J.set(e,!0),1===u&&e.setAttribute(n,"true"),i||e.setAttribute(r,"true")}catch(t){console.error("aria-hidden: cannot operate on ",e,t)}})};return c(t),o.clear(),et++,function(){a.forEach(function(e){var t=Q.get(e)-1,i=s.get(e)-1;Q.set(e,t),s.set(e,i),t||(J.has(e)||e.removeAttribute(r),J.delete(e)),i||e.removeAttribute(n)}),--et||(Q=new WeakMap,Q=new WeakMap,J=new WeakMap,ee={})}},ei=function(e,t,n){void 0===n&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),i=t||("undefined"==typeof document?null:(Array.isArray(e)?e[0]:e).ownerDocument.body);return i?(r.push.apply(r,Array.from(i.querySelectorAll("[aria-live], script"))),er(r,i,n,"aria-hidden")):function(){return null}},es=n(82967),ea="right-scroll-bar-position",eo="width-before-scroll-bar";function el(e,t){return"function"==typeof e?e(t):e&&(e.current=t),e}var eu="undefined"!=typeof window?s.useLayoutEffect:s.useEffect,ec=new WeakMap;function ed(e){return e}var eh=function(e){void 0===e&&(e={});var t,n,r,i=(void 0===t&&(t=ed),n=[],r=!1,{read:function(){if(r)throw Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:null},useMedium:function(e){var i=t(e,r);return n.push(i),function(){n=n.filter(function(e){return e!==i})}},assignSyncMedium:function(e){for(r=!0;n.length;){var t=n;n=[],t.forEach(e)}n={push:function(t){return e(t)},filter:function(){return n}}},assignMedium:function(e){r=!0;var t=[];if(n.length){var i=n;
5n=[],i.forEach(e),t=n}var s=function(){var n=t;t=[],n.forEach(e)},a=function(){return Promise.resolve().then(s)};a(),n={push:function(e){t.push(e),a()},filter:function(e){return t=t.filter(e),n}}}});return i.options=(0,es.Cl)({async:!0,ssr:!1},e),i}(),ep=function(){},ef=s.forwardRef(function(e,t){var n,r,i,a,o=s.useRef(null),l=s.useState({onScrollCapture:ep,onWheelCapture:ep,onTouchMoveCapture:ep}),u=l[0],c=l[1],d=e.forwardProps,h=e.children,p=e.className,f=e.removeScrollBar,m=e.enabled,g=e.shards,y=e.sideCar,v=e.noRelative,b=e.noIsolation,E=e.inert,T=e.allowPinchZoom,_=e.as,A=e.gapMode,x=(0,es.Tt)(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),k=(n=[o,t],r=function(e){return n.forEach(function(t){return el(t,e)})},(i=(0,s.useState)(function(){return{value:null,callback:r,facade:{get current(){return i.value},set current(value){var e=i.value;e!==value&&(i.value=value,i.callback(value,e))}}}})[0]).callback=r,a=i.facade,eu(function(){var e=ec.get(a);if(e){var t=new Set(e),r=new Set(n),i=a.current;t.forEach(function(e){r.has(e)||el(e,null)}),r.forEach(function(e){t.has(e)||el(e,i)})}ec.set(a,n)},[n]),a),S=(0,es.Cl)((0,es.Cl)({},x),u);return s.createElement(s.Fragment,null,m&&s.createElement(y,{sideCar:eh,removeScrollBar:f,shards:g,noRelative:v,noIsolation:b,inert:E,setCallbacks:c,allowPinchZoom:!!T,lockRef:o,gapMode:A}),d?s.cloneElement(s.Children.only(h),(0,es.Cl)((0,es.Cl)({},S),{ref:k})):s.createElement(void 0===_?"div":_,(0,es.Cl)({},S,{className:p,ref:k}),h))});ef.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},ef.classNames={fullWidth:eo,zeroRight:ea};
5var em=function(e){var t=e.sideCar,n=(0,es.Tt)(e,["sideCar"]);if(!t)throw Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw Error("Sidecar medium not found");return s.createElement(r,(0,es.Cl)({},n))};em.isSideCarExport=!0;var eg=function(){var e=0,t=null;return{add:function(r){if(0==e&&(t=function(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=i||n.nc;return t&&e.setAttribute("nonce",t),e}())){var s,a;(s=t).styleSheet?s.styleSheet.cssText=r:s.appendChild(document.createTextNode(r)),a=t,(document.head||document.getElementsByTagName("head")[0]).appendChild(a)}e++},remove:function(){--e||!t||(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},ey=function(){var e=eg();return function(t,n){s.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},ev=function(){var e=ey();return function(t){return e(t.styles,t.dynamic),null}},eb={left:0,top:0,right:0,gap:0},eE=function(e){return parseInt(e||"",10)||0},eT=function(e){var t=window.getComputedStyle(document.body),n=t["padding"===e?"paddingLeft":"marginLeft"],r=t["padding"===e?"paddingTop":"marginTop"],i=t["padding"===e?"paddingRight":"marginRight"];return[eE(n),eE(r),eE(i)]},e_=function(e){if(void 0===e&&(e="margin"),"undefined"==typeof window)return eb;var t=eT(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},eA=ev(),ex="data-scroll-locked",ek=function(e,t,n,r){var i=e.left,s=e.top,a=e.right,o=e.gap;return void 0===n&&(n="margin"),"\n .".concat("with-scroll-bars-hidden"," {\n overflow: hidden ").concat(r,";\n padding-right: ").concat(o,"px ").concat(r,";\n }\n body[").concat(ex,"] {\n overflow: hidden ").concat(r,";\n overscroll-behavior: contain;\n ").concat([t&&"position: relative ".concat(r,";"),"margin"===n&&"\n padding-left: ".concat(i,"px;\n padding-top: ").concat(s,"px;\n padding-right: ").concat(a,"px;\n margin-left:0;\n margin-top:0;\n margin-right: ").concat(o,"px ").concat(r,";\n "),"padding"===n&&"padding-right: ".concat(o,"px ").concat(r,";")].filter(Boolean).join(""),"\n }\n \n .").concat(ea," {\n right: ").concat(o,"px ").concat(r,";\n }\n \n .").concat(eo," {\n margin-right: ").concat(o,"px ").concat(r,";\n }\n \n .").concat(ea," .").concat(ea," {\n right: 0 ").concat(r,";\n }\n \n .").concat(eo," .").concat(eo," {\n margin-right: 0 ").concat(r,";\n }\n \n body[").concat(ex,"] {\n ").concat("--removed-body-scroll-bar-size",": ").concat(o,"px;\n }\n")},eS=function(){var e=parseInt(document.body.getAttribute(ex)||"0",10);return isFinite(e)?e:0},ew=function(){s.useEffect(function(){return document.body.setAttribute(ex,(eS()+1).toString()),function(){var e=eS()-1;e<=0?document.body.removeAttribute(ex):document.body.setAttribute(ex,e.toString())}},[])},eI=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,i=void 0===r?"margin":r;ew();var a=s.useMemo(function(){return e_(i)},[i]);return s.createElement(eA,{styles:ek(a,!t,i,n?"":"!important")})},eC=!1;if("undefined"!=typeof window)try{var eN=Object.defineProperty({},"passive",{get:function(){return eC=!0,!0}});window.addEventListener("test",eN,eN),window.removeEventListener("test",eN,eN)}catch(e){eC=!1}var eR=!!eC&&{passive:!1},eO=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return"hidden"!==n[t]&&(n.overflowY!==n.overflowX||"TEXTAREA"===e.tagName||"visible"!==n[t])},eP=function(e,t){var n=t.ownerDocument,r=t;do{if("undefined"!=typeof ShadowRoot&&r instanceof ShadowRoot&&(r=r.host),eD(e,r)){var i=eM(e,r);if(i[1]>i[2])return!0}r=r.parentNode}while(r&&r!==n.body);return!1},eD=function(e,t){return"v"===e?eO(t,"overflowY"):eO(t,"overflowX")},eM=function(e,t){return"v"===e?[t.scrollTop,t.scrollHeight,t.clientHeight]:[t.scrollLeft,t.scrollWidth,t.clientWidth]},eL=function(e,t,n,r,i){var s,a=(s=window.getComputedStyle(t).direction,"h"===e&&"rtl"===s?-1:1),o=a*r,l=n.target,u=t.contains(l),c=!1,d=o>0,h=0,p=0;do{if(!l)break;var f=eM(e,l),m=f[0],g=f[1]-f[2]-a*m;(m||g)&&eD(e,l)&&(h+=g,p+=m);var y=l.parentNode;l=y&&y.nodeType===Node.DOCUMENT_FRAGMENT_NODE?y.host:y}while(!u&&l!==document.body||u&&(t.contains(l)||t===l));return d&&(i&&1>Math.abs(h)||!i&&o>h)?c=!0:!d&&(i&&1>Math.abs(p)||!i&&-o>p)&&(c=!0),c},ej=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},ez=function(e){return[e.deltaX,e.deltaY]},eF=function(e){return e&&"current"in e?e.current:e},eB=0,e$=[];let eU=(r=function(e){var t=s.useRef([]),n=s.useRef([0,0]),r=s.useRef(),i=s.useState(eB++)[0],a=s.useState(ev)[0],o=s.useRef(e);s.useEffect(function(){o.current=e},[e]),s.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(i));var t=(0,es.fX)([e.lockRef.current],(e.shards||[]).map(eF),!0).filter(
5Boolean);return t.forEach(function(e){return e.classList.add("allow-interactivity-".concat(i))}),function(){document.body.classList.remove("block-interactivity-".concat(i)),t.forEach(function(e){return e.classList.remove("allow-interactivity-".concat(i))})}}},[e.inert,e.lockRef.current,e.shards]);var l=s.useCallback(function(e,t){if("touches"in e&&2===e.touches.length||"wheel"===e.type&&e.ctrlKey)return!o.current.allowPinchZoom;var i,s=ej(e),a=n.current,l="deltaX"in e?e.deltaX:a[0]-s[0],u="deltaY"in e?e.deltaY:a[1]-s[1],c=e.target,d=Math.abs(l)>Math.abs(u)?"h":"v";if("touches"in e&&"h"===d&&"range"===c.type)return!1;var h=window.getSelection(),p=h&&h.anchorNode;if(p&&(p===c||p.contains(c)))return!1;var f=eP(d,c);if(!f)return!0;if(f?i=d:(i="v"===d?"h":"v",f=eP(d,c)),!f)return!1;if(!r.current&&"changedTouches"in e&&(l||u)&&(r.current=i),!i)return!0;var m=r.current||i;return eL(m,t,e,"h"===m?l:u,!0)},[]),u=s.useCallback(function(e){if(e$.length&&e$[e$.length-1]===a){var n="deltaY"in e?ez(e):ej(e),r=t.current.filter(function(t){var r;return t.name===e.type&&(t.target===e.target||e.target===t.shadowParent)&&(r=t.delta,r[0]===n[0]&&r[1]===n[1])})[0];if(r&&r.should){e.cancelable&&e.preventDefault();return}if(!r){var i=(o.current.shards||[]).map(eF).filter(Boolean).filter(function(t){return t.contains(e.target)});(i.length>0?l(e,i[0]):!o.current.noIsolation)&&e.cancelable&&e.preventDefault()}}},[]),c=s.useCallback(function(e,n,r,i){var s={name:e,delta:n,target:r,should:i,shadowParent:function(e){for(var t=null;null!==e;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}(r)};t.current.push(s),setTimeout(function(){t.current=t.current.filter(function(e){return e!==s})},1)},[]),d=s.useCallback(function(e){n.current=ej(e),r.current=void 0},[]),h=s.useCallback(function(t){c(t.type,ez(t),t.target,l(t,e.lockRef.current))},[]),p=s.useCallback(function(t){c(t.type,ej(t),t.target,l(t,e.lockRef.current))},[]);s.useEffect(function(){return e$.push(a),e.setCallbacks({onScrollCapture:h,onWheelCapture:h,onTouchMoveCapture:p}),document.addEventListener("wheel",u,eR),document.addEventListener("touchmove",u,eR),document.addEventListener("touchstart",d,eR),function(){e$=e$.filter(function(e){return e!==a}),document.removeEventListener("wheel",u,eR),document.removeEventListener("touchmove",u,eR),document.removeEventListener("touchstart",d,eR)}},[]);var f=e.removeScrollBar,m=e.inert;return s.createElement(s.Fragment,null,m?s.createElement(a,{styles:"\n .block-interactivity-".concat(i," {pointer-events: none;}\n .allow-interactivity-").concat(i," {pointer-events: all;}\n")}):null,f?s.createElement(eI,{noRelative:e.noRelative,gapMode:e.gapMode}):null)},eh.useMedium(r),em);var eH=s.forwardRef(function(e,t){return s.createElement(ef,(0,es.Cl)({},e,{ref:t,sideCar:eU}))});eH.classNames=ef.classNames;var eG=["Enter"," "],eY=["ArrowUp","PageDown","End"],eZ=["ArrowDown","PageUp","Home",...eY],eV={ltr:[...eG,"ArrowRight"],rtl:[...eG,"ArrowLeft"]},eW={ltr:["ArrowLeft"],rtl:["ArrowRight"]},eq="Menu",[eK,eX,eQ]=p(eq),[eJ,e0]=(0,l.A)(eq,[eQ,P.Bk,H]),e1=(0,P.Bk)(),e2=H(),[e3,e4]=eJ(eq),[e9,e5]=eJ(eq),e6=e=>{let{__scopeMenu:t,open:n=!1,children:r,dir:i,onOpenChange:a,modal:o=!0}=e,l=e1(t),[u,c]=s.useState(null),d=s.useRef(!1),p=(0,_.c)(a),f=v(i);return s.useEffect(()=>{let e=()=>{d.current=!0,document.addEventListener("pointerdown",t,{capture:!0,once:!0}),document.addEventListener("pointermove",t,{capture:!0,once:!0})},t=()=>d.current=!1;return document.addEventListener("keydown",e,{capture:!0}),()=>{document.removeEventListener("keydown",e,{capture:!0}),document.removeEventListener("pointerdown",t,{capture:!0}),document.removeEventListener("pointermove",t,{capture:!0})}},[]),(0,h.jsx)(P.bL,{...l,children:(0,h.jsx)(e3,{scope:t,open:n,onOpenChange:p,content:u,onContentChange:c,children:(0,h.jsx)(e9,{scope:t,onClose:s.useCallback(()=>p(!1),[p]),isUsingKeyboardRef:d,dir:f,modal:o,children:r})})})};e6.displayName=eq;var e8=s.forwardRef((e,t)=>{let{__scopeMenu:n,...r}=e,i=e1(n);return(0,h.jsx)(P.Mz,{...i,...r,ref:t})});e8.displayName="MenuAnchor";var e7="MenuPortal",[te,tt]=eJ(e7,{forceMount:void 0}),tn=e=>{let{__scopeMenu:t,forceMount:n,children:r,container:i}=e,s=e4(e7,t);return(0,h.jsx)(te,{scope:t,forceMount:n,children:(0,h.jsx)(M.C,{present:n||s.open,children:(0,h.jsx)(D.Z,{asChild:!0,container:i,children:r})})})};tn.displayName=e7;var tr="MenuContent",[ti,ts]=eJ(tr),ta=s.forwardRef((e,t)=>
5{let n=tt(tr,e.__scopeMenu),{forceMount:r=n.forceMount,...i}=e,s=e4(tr,e.__scopeMenu),a=e5(tr,e.__scopeMenu);return(0,h.jsx)(eK.Provider,{scope:e.__scopeMenu,children:(0,h.jsx)(M.C,{present:r||s.open,children:(0,h.jsx)(eK.Slot,{scope:e.__scopeMenu,children:a.modal?(0,h.jsx)(to,{...i,ref:t}):(0,h.jsx)(tl,{...i,ref:t})})})})}),to=s.forwardRef((e,t)=>{let n=e4(tr,e.__scopeMenu),r=s.useRef(null),i=(0,o.s)(t,r);return s.useEffect(()=>{let e=r.current;if(e)return ei(e)},[]),(0,h.jsx)(tc,{...e,ref:i,trapFocus:n.open,disableOutsidePointerEvents:n.open,disableOutsideScroll:!0,onFocusOutside:(0,a.mK)(e.onFocusOutside,e=>e.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>n.onOpenChange(!1)})}),tl=s.forwardRef((e,t)=>{let n=e4(tr,e.__scopeMenu);return(0,h.jsx)(tc,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>n.onOpenChange(!1)})}),tu=(0,d.TL)("MenuContent.ScrollLock"),tc=s.forwardRef((e,t)=>{let{__scopeMenu:n,loop:r=!1,trapFocus:i,onOpenAutoFocus:l,onCloseAutoFocus:u,disableOutsidePointerEvents:c,onEntryFocus:d,onEscapeKeyDown:p,onPointerDownOutside:f,onFocusOutside:m,onInteractOutside:g,onDismiss:y,disableOutsideScroll:v,..._}=e,A=e4(tr,n),x=e5(tr,n),k=e1(n),w=e2(n),I=eX(n),[C,N]=s.useState(null),R=s.useRef(null),O=(0,o.s)(t,R,A.onContentChange),D=s.useRef(0),M=s.useRef(""),L=s.useRef(0),j=s.useRef(null),z=s.useRef("right"),F=s.useRef(0),B=v?eH:s.Fragment;s.useEffect(()=>()=>window.clearTimeout(D.current),[]),s.useEffect(()=>{let e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??T()),document.body.insertAdjacentElement("beforeend",e[1]??T()),E++,()=>{1===E&&document.querySelectorAll("[data-radix-focus-guard]").forEach(e=>e.remove()),E--}},[]);let $=s.useCallback(e=>z.current===j.current?.side&&function(e,t){return!!t&&function(e,t){let{x:n,y:r}=e,i=!1;for(let e=0,s=t.length-1;e<t.length;s=e++){let a=t[e],o=t[s],l=a.x,u=a.y,c=o.x,d=o.y;u>r!=d>r&&n<(c-l)*(r-u)/(d-u)+l&&(i=!i)}return i}({x:e.clientX,y:e.clientY},t)}(e,j.current?.area),[]);return(0,h.jsx)(ti,{scope:n,searchRef:M,onItemEnter:s.useCallback(e=>{$(e)&&e.preventDefault()},[$]),onItemLeave:s.useCallback(e=>{$(e)||(R.current?.focus(),N(null))},[$]),onTriggerLeave:s.useCallback(e=>{$(e)&&e.preventDefault()},[$]),pointerGraceTimerRef:L,onPointerGraceIntentChange:s.useCallback(e=>{j.current=e},[]),children:(0,h.jsx)(B,{...v?{as:tu,allowPinchZoom:!0}:void 0,children:(0,h.jsx)(S,{asChild:!0,trapped:i,onMountAutoFocus:(0,a.mK)(l,e=>{e.preventDefault(),R.current?.focus({preventScroll:!0})}),onUnmountAutoFocus:u,children:(0,h.jsx)(b.qW,{asChild:!0,disableOutsidePointerEvents:c,onEscapeKeyDown:p,onPointerDownOutside:f,onFocusOutside:m,onInteractOutside:g,onDismiss:y,children:(0,h.jsx)(Z,{asChild:!0,...w,dir:x.dir,orientation:"vertical",loop:r,currentTabStopId:C,onCurrentTabStopIdChange:N,onEntryFocus:(0,a.mK)(d,e=>{x.isUsingKeyboardRef.current||e.preventDefault()}),preventScrollOnEntryFocus:!0,children:(0,h.jsx)(P.UC,{role:"menu","aria-orientation":"vertical","data-state":tz(A.open),"data-radix-menu-content":"",dir:x.dir,...k,..._,ref:O,style:{outline:"none",..._.style},onKeyDown:(0,a.mK)(_.onKeyDown,e=>{let t=e.target.closest("[data-radix-menu-content]")===e.currentTarget,n=e.ctrlKey||e.altKey||e.metaKey,r=1===e.key.length;t&&("Tab"===e.key&&e.preventDefault(),!n&&r&&(e=>{let t=M.current+e,n=I().filter(e=>!e.disabled),r=document.activeElement,i=n.find(e=>e.ref.current===r)?.textValue,s=function(e,t,n){var r;let i=t.length>1&&Array.from(t).every(e=>e===t[0])?t[0]:t,s=n?e.indexOf(n):-1,a=(r=Math.max(s,0),e.map((t,n)=>e[(r+n)%e.length]));1===i.length&&(a=a.filter(e=>e!==n));let o=a.find(e=>e.toLowerCase().startsWith(i.toLowerCase()));return o!==n?o:void 0}(n.map(e=>e.textValue),t,i),a=n.find(e=>e.textValue===s)?.ref.current;!function e(t){M.current=t,window.clearTimeout(D.current),""!==t&&(D.current=window.setTimeout(()=>e(""),1e3))}(t),a&&setTimeout(()=>a.focus())})(e.key));let i=R.current;if(e.target!==i||!eZ.includes(e.key))return;e.preventDefault();let s=I().filter(e=>!e.disabled).map(e=>e.ref.current);
5eY.includes(e.key)&&s.reverse(),function(e){let t=document.activeElement;for(let n of e)if(n===t||(n.focus(),document.activeElement!==t))return}(s)}),onBlur:(0,a.mK)(e.onBlur,e=>{e.currentTarget.contains(e.target)||(window.clearTimeout(D.current),M.current="")}),onPointerMove:(0,a.mK)(e.onPointerMove,t$(e=>{let t=e.target,n=F.current!==e.clientX;e.currentTarget.contains(t)&&n&&(z.current=e.clientX>F.current?"right":"left",F.current=e.clientX)}))})})})})})})});ta.displayName=tr;var td=s.forwardRef((e,t)=>{let{__scopeMenu:n,...r}=e;return(0,h.jsx)(c.sG.div,{role:"group",...r,ref:t})});td.displayName="MenuGroup";var th=s.forwardRef((e,t)=>{let{__scopeMenu:n,...r}=e;return(0,h.jsx)(c.sG.div,{...r,ref:t})});th.displayName="MenuLabel";var tp="MenuItem",tf="menu.itemSelect",tm=s.forwardRef((e,t)=>{let{disabled:n=!1,onSelect:r,...i}=e,l=s.useRef(null),u=e5(tp,e.__scopeMenu),d=ts(tp,e.__scopeMenu),p=(0,o.s)(t,l),f=s.useRef(!1);return(0,h.jsx)(tg,{...i,ref:p,disabled:n,onClick:(0,a.mK)(e.onClick,()=>{let e=l.current;if(!n&&e){let t=new CustomEvent(tf,{bubbles:!0,cancelable:!0});e.addEventListener(tf,e=>r?.(e),{once:!0}),(0,c.hO)(e,t),t.defaultPrevented?f.current=!1:u.onClose()}}),onPointerDown:t=>{e.onPointerDown?.(t),f.current=!0},onPointerUp:(0,a.mK)(e.onPointerUp,e=>{f.current||e.currentTarget?.click()}),onKeyDown:(0,a.mK)(e.onKeyDown,e=>{let t=""!==d.searchRef.current;n||t&&" "===e.key||eG.includes(e.key)&&(e.currentTarget.click(),e.preventDefault())})})});tm.displayName=tp;var tg=s.forwardRef((e,t)=>{let{__scopeMenu:n,disabled:r=!1,textValue:i,...l}=e,u=ts(tp,n),d=e2(n),p=s.useRef(null),f=(0,o.s)(t,p),[m,g]=s.useState(!1),[y,v]=s.useState("");return s.useEffect(()=>{let e=p.current;e&&v((e.textContent??"").trim())},[l.children]),(0,h.jsx)(eK.ItemSlot,{scope:n,disabled:r,textValue:i??y,children:(0,h.jsx)(q,{asChild:!0,...d,focusable:!r,children:(0,h.jsx)(c.sG.div,{role:"menuitem","data-highlighted":m?"":void 0,"aria-disabled":r||void 0,"data-disabled":r?"":void 0,...l,ref:f,onPointerMove:(0,a.mK)(e.onPointerMove,t$(e=>{r?u.onItemLeave(e):(u.onItemEnter(e),e.defaultPrevented||e.currentTarget.focus({preventScroll:!0}))})),onPointerLeave:(0,a.mK)(e.onPointerLeave,t$(e=>u.onItemLeave(e))),onFocus:(0,a.mK)(e.onFocus,()=>g(!0)),onBlur:(0,a.mK)(e.onBlur,()=>g(!1))})})})}),ty=s.forwardRef((e,t)=>{let{checked:n=!1,onCheckedChange:r,...i}=e;return(0,h.jsx)(tk,{scope:e.__scopeMenu,checked:n,children:(0,h.jsx)(tm,{role:"menuitemcheckbox","aria-checked":tF(n)?"mixed":n,...i,ref:t,"data-state":tB(n),onSelect:(0,a.mK)(i.onSelect,()=>r?.(!!tF(n)||!n),{checkForDefaultPrevented:!1})})})});ty.displayName="MenuCheckboxItem";var tv="MenuRadioGroup",[tb,tE]=eJ(tv,{value:void 0,onValueChange:()=>{}}),tT=s.forwardRef((e,t)=>{let{value:n,onValueChange:r,...i}=e,s=(0,_.c)(r);return(0,h.jsx)(tb,{scope:e.__scopeMenu,value:n,onValueChange:s,children:(0,h.jsx)(td,{...i,ref:t})})});tT.displayName=tv;var t_="MenuRadioItem",tA=s.forwardRef((e,t)=>{let{value:n,...r}=e,i=tE(t_,e.__scopeMenu),s=n===i.value;return(0,h.jsx)(tk,{scope:e.__scopeMenu,checked:s,children:(0,h.jsx)(tm,{role:"menuitemradio","aria-checked":s,...r,ref:t,"data-state":tB(s),onSelect:(0,a.mK)(r.onSelect,()=>i.onValueChange?.(n),{checkForDefaultPrevented:!1})})})});tA.displayName=t_;var tx="MenuItemIndicator",[tk,tS]=eJ(tx,{checked:!1}),tw=s.forwardRef((e,t)=>{let{__scopeMenu:n,forceMount:r,...i}=e,s=tS(tx,n);return(0,h.jsx)(M.C,{present:r||tF(s.checked)||!0===s.checked,children:(0,h.jsx)(c.sG.span,{...i,ref:t,"data-state":tB(s.checked)})})});tw.displayName=tx;var tI=s.forwardRef((e,t)=>{let{__scopeMenu:n,...r}=e;return(0,h.jsx)(c.sG.div,{role:"separator","aria-orientation":"horizontal",...r,ref:t})});tI.displayName="MenuSeparator";var tC=s.forwardRef((e,t)=>{let{__scopeMenu:n,...r}=e,i=e1(n);return(0,h.jsx)(P.i3,{...i,...r,ref:t})});tC.displayName="MenuArrow";var tN="MenuSub",[tR,tO]=eJ(tN),tP=e=>{let{__scopeMenu:t,children:n,open:r=!1,onOpenChange:i}=e,a=e4(tN,t),o=e1(t),[l,u]=s.useState(null),[c,d]=s.useState(null),p=(0,_.c)(i);return s.useEffect(()=>(!1===a.open&&p(!1),()=>p(!1)),[a.open,p]),(0,h.jsx)(P.bL,{...o,children:(0,h.jsx)(e3,{scope:t,open:r,onOpenChange:p,content:c,onContentChange:d,children:(0,h.jsx)(tR,{scope:t,contentId:(0,O.B)(),triggerId:(0,O.B)(),trigger:l,onTriggerChange:u,children:n})})})};tP.displayName=tN;var tD="MenuSubTrigger",tM=s.forwardRef((e,t)=>
5{let n=e4(tD,e.__scopeMenu),r=e5(tD,e.__scopeMenu),i=tO(tD,e.__scopeMenu),l=ts(tD,e.__scopeMenu),u=s.useRef(null),{pointerGraceTimerRef:c,onPointerGraceIntentChange:d}=l,p={__scopeMenu:e.__scopeMenu},f=s.useCallback(()=>{u.current&&window.clearTimeout(u.current),u.current=null},[]);return s.useEffect(()=>f,[f]),s.useEffect(()=>{let e=c.current;return()=>{window.clearTimeout(e),d(null)}},[c,d]),(0,h.jsx)(e8,{asChild:!0,...p,children:(0,h.jsx)(tg,{id:i.triggerId,"aria-haspopup":"menu","aria-expanded":n.open,"aria-controls":i.contentId,"data-state":tz(n.open),...e,ref:(0,o.t)(t,i.onTriggerChange),onClick:t=>{e.onClick?.(t),e.disabled||t.defaultPrevented||(t.currentTarget.focus(),n.open||n.onOpenChange(!0))},onPointerMove:(0,a.mK)(e.onPointerMove,t$(t=>{l.onItemEnter(t),!t.defaultPrevented&&(e.disabled||n.open||u.current||(l.onPointerGraceIntentChange(null),u.current=window.setTimeout(()=>{n.onOpenChange(!0),f()},100)))})),onPointerLeave:(0,a.mK)(e.onPointerLeave,t$(e=>{f();let t=n.content?.getBoundingClientRect();if(t){let r=n.content?.dataset.side,i="right"===r,s=t[i?"left":"right"],a=t[i?"right":"left"];l.onPointerGraceIntentChange({area:[{x:e.clientX+(i?-5:5),y:e.clientY},{x:s,y:t.top},{x:a,y:t.top},{x:a,y:t.bottom},{x:s,y:t.bottom}],side:r}),window.clearTimeout(c.current),c.current=window.setTimeout(()=>l.onPointerGraceIntentChange(null),300)}else{if(l.onTriggerLeave(e),e.defaultPrevented)return;l.onPointerGraceIntentChange(null)}})),onKeyDown:(0,a.mK)(e.onKeyDown,t=>{let i=""!==l.searchRef.current;e.disabled||i&&" "===t.key||eV[r.dir].includes(t.key)&&(n.onOpenChange(!0),n.content?.focus(),t.preventDefault())})})})});tM.displayName=tD;var tL="MenuSubContent",tj=s.forwardRef((e,t)=>{let n=tt(tr,e.__scopeMenu),{forceMount:r=n.forceMount,...i}=e,l=e4(tr,e.__scopeMenu),u=e5(tr,e.__scopeMenu),c=tO(tL,e.__scopeMenu),d=s.useRef(null),p=(0,o.s)(t,d);return(0,h.jsx)(eK.Provider,{scope:e.__scopeMenu,children:(0,h.jsx)(M.C,{present:r||l.open,children:(0,h.jsx)(eK.Slot,{scope:e.__scopeMenu,children:(0,h.jsx)(tc,{id:c.contentId,"aria-labelledby":c.triggerId,...i,ref:p,align:"start",side:"rtl"===u.dir?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:e=>{u.isUsingKeyboardRef.current&&d.current?.focus(),e.preventDefault()},onCloseAutoFocus:e=>e.preventDefault(),onFocusOutside:(0,a.mK)(e.onFocusOutside,e=>{e.target!==c.trigger&&l.onOpenChange(!1)}),onEscapeKeyDown:(0,a.mK)(e.onEscapeKeyDown,e=>{u.onClose(),e.preventDefault()}),onKeyDown:(0,a.mK)(e.onKeyDown,e=>{let t=e.currentTarget.contains(e.target),n=eW[u.dir].includes(e.key);t&&n&&(l.onOpenChange(!1),c.trigger?.focus(),e.preventDefault())})})})})})});function tz(e){return e?"open":"closed"}function tF(e){return"indeterminate"===e}function tB(e){return tF(e)?"indeterminate":e?"checked":"unchecked"}function t$(e){return t=>"mouse"===t.pointerType?e(t):void 0}tj.displayName=tL;var tU="DropdownMenu",[tH,tG]=(0,l.A)(tU,[e0]),tY=e0(),[tZ,tV]=tH(tU),tW=e=>{let{__scopeDropdownMenu:t,children:n,dir:r,open:i,defaultOpen:a,onOpenChange:o,modal:l=!0}=e,c=tY(t),d=s.useRef(null),[p,f]=(0,u.i)({prop:i,defaultProp:a??!1,onChange:o,caller:tU});return(0,h.jsx)(tZ,{scope:t,triggerId:(0,O.B)(),triggerRef:d,contentId:(0,O.B)(),open:p,onOpenChange:f,onOpenToggle:s.useCallback(()=>f(e=>!e),[f]),modal:l,children:(0,h.jsx)(e6,{...c,open:p,onOpenChange:f,dir:r,modal:l,children:n})})};tW.displayName=tU;var tq="DropdownMenuTrigger",tK=s.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,disabled:r=!1,...i}=e,s=tV(tq,n),l=tY(n);return(0,h.jsx)(e8,{asChild:!0,...l,children:(0,h.jsx)(c.sG.button,{type:"button",id:s.triggerId,"aria-haspopup":"menu","aria-expanded":s.open,"aria-controls":s.open?s.contentId:void 0,"data-state":s.open?"open":"closed","data-disabled":r?"":void 0,disabled:r,...i,ref:(0,o.t)(t,s.triggerRef),onPointerDown:(0,a.mK)(e.onPointerDown,e=>{!r&&0===e.button&&!1===e.ctrlKey&&(s.onOpenToggle(),s.open||e.preventDefault())}),onKeyDown:(0,a.mK)(e.onKeyDown,e=>{!r&&(["Enter"," "].includes(e.key)&&s.onOpenToggle(),"ArrowDown"===e.key&&s.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(e.ke
5y)&&e.preventDefault())})})})});tK.displayName=tq;var tX=e=>{let{__scopeDropdownMenu:t,...n}=e,r=tY(t);return(0,h.jsx)(tn,{...r,...n})};tX.displayName="DropdownMenuPortal";var tQ="DropdownMenuContent",tJ=s.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=tV(tQ,n),o=tY(n),l=s.useRef(!1);return(0,h.jsx)(ta,{id:i.contentId,"aria-labelledby":i.triggerId,...o,...r,ref:t,onCloseAutoFocus:(0,a.mK)(e.onCloseAutoFocus,e=>{l.current||i.triggerRef.current?.focus(),l.current=!1,e.preventDefault()}),onInteractOutside:(0,a.mK)(e.onInteractOutside,e=>{let t=e.detail.originalEvent,n=0===t.button&&!0===t.ctrlKey,r=2===t.button||n;(!i.modal||r)&&(l.current=!0)}),style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});tJ.displayName=tQ,s.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=tY(n);return(0,h.jsx)(td,{...i,...r,ref:t})}).displayName="DropdownMenuGroup";var t0=s.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=tY(n);return(0,h.jsx)(th,{...i,...r,ref:t})});t0.displayName="DropdownMenuLabel";var t1=s.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=tY(n);return(0,h.jsx)(tm,{...i,...r,ref:t})});t1.displayName="DropdownMenuItem",s.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=tY(n);return(0,h.jsx)(ty,{...i,...r,ref:t})}).displayName="DropdownMenuCheckboxItem",s.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=tY(n);return(0,h.jsx)(tT,{...i,...r,ref:t})}).displayName="DropdownMenuRadioGroup",s.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=tY(n);return(0,h.jsx)(tA,{...i,...r,ref:t})}).displayName="DropdownMenuRadioItem",s.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=tY(n);return(0,h.jsx)(tw,{...i,...r,ref:t})}).displayName="DropdownMenuItemIndicator";var t2=s.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=tY(n);return(0,h.jsx)(tI,{...i,...r,ref:t})});t2.displayName="DropdownMenuSeparator",s.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=tY(n);return(0,h.jsx)(tC,{...i,...r,ref:t})}).displayName="DropdownMenuArrow";var t3=s.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=tY(n);return(0,h.jsx)(tM,{...i,...r,ref:t})});t3.displayName="DropdownMenuSubTrigger";var t4=s.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=tY(n);return(0,h.jsx)(tj,{...i,...r,ref:t,style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});t4.displayName="DropdownMenuSubContent";var t9=tW,t5=tK,t6=tX,t8=tJ,t7=t0,ne=t1,nt=t2,nn=e=>{let{__scopeDropdownMenu:t,children:n,open:r,onOpenChange:i,defaultOpen:s}=e,a=tY(t),[o,l]=(0,u.i)({prop:r,defaultProp:s??!1,onChange:i,caller:"DropdownMenuSub"});return(0,h.jsx)(tP,{...a,open:o,onOpenChange:l,children:n})},nr=t3,ni=t4},20335:(e,t,n)=>{n.d(t,{j:()=>i});var r=n(34401);function i(e){return(0,r.N)(function(t,n){try{t.subscribe(n)}finally{n.add(e)}})}},20357:(e,t,n)=>{n.d(t,{y:()=>i});var r=n(99244);function i(e){return(0,r.T)(null==e?void 0:e.then)}},21330:(e,t,n)=>{n.d(t,{L:()=>r});let r=(0,n(23073).createContext)({})},22338:(e,t,n)=>{n.d(t,{H:()=>b});var r=n(59761),i=n(10810),s=n(34401);function a(e,t){return void 0===t&&(t=0),(0,s.N)(function(n,r){r.add(e.schedule(function(){return n.subscribe(r)},t))})}var o=n(65174),l=n(41614),u=n(99244),c=n(96238);function d(e,t){if(!e)throw Error("Iterable cannot be null");return new o.c(function(n){(0,c.N)(n,t,function(){var r=e[Symbol.asyncIterator]();(0,c.N)(n,t,function(){r.next().then(function(e){e.done?n.complete():n.next(e.value)})},0,!0)})})}
5var h=n(89432),p=n(20357),f=n(66226),m=n(96990),g=n(68810),y=n(5660),v=n(57515);function b(e,t){return t?function(e,t){if(null!=e){if((0,h.l)(e))return(0,r.Tg)(e).pipe(a(t),(0,i.Q)(t));if((0,f.X)(e))return new o.c(function(n){var r=0;return t.schedule(function(){r===e.length?n.complete():(n.next(e[r++]),n.closed||this.schedule())})});if((0,p.y)(e))return(0,r.Tg)(e).pipe(a(t),(0,i.Q)(t));if((0,g.T)(e))return d(e,t);if((0,m.x)(e))return new o.c(function(n){var r;return(0,c.N)(n,t,function(){r=e[l.l](),(0,c.N)(n,t,function(){var e,t,i;try{t=(e=r.next()).value,i=e.done}catch(e){n.error(e);return}i?n.complete():n.next(t)},0,!0)}),function(){return(0,u.T)(null==r?void 0:r.return)&&r.return()}});if((0,v.U)(e))return d((0,v.C)(e),t)}throw(0,y.L)(e)}(e,t):(0,r.Tg)(e)}},22491:(e,t,n)=>{n.d(t,{F:()=>a});var r=n(83107);let i=e=>"boolean"==typeof e?`${e}`:0===e?"0":e,s=r.$,a=(e,t)=>n=>{var r;if((null==t?void 0:t.variants)==null)return s(e,null==n?void 0:n.class,null==n?void 0:n.className);let{variants:a,defaultVariants:o}=t,l=Object.keys(a).map(e=>{let t=null==n?void 0:n[e],r=null==o?void 0:o[e];if(null===t)return null;let s=i(t)||i(r);return a[e][s]}),u=n&&Object.entries(n).reduce((e,t)=>{let[n,r]=t;return void 0===r||(e[n]=r),e},{});return s(e,l,null==t||null==(r=t.compoundVariants)?void 0:r.reduce((e,t)=>{let{class:n,className:r,...i}=t;return Object.entries(i).every(e=>{let[t,n]=e;return Array.isArray(n)?n.includes({...o,...u}[t]):({...o,...u})[t]===n})?[...e,n,r]:e},[]),null==n?void 0:n.class,null==n?void 0:n.className)}},22698:(e,t,n)=>{n.d(t,{U:()=>s});var r=n(13720),i=n(50742);function s(e){return void 0===e&&(e=1/0),(0,r.Z)(i.D,e)}},22900:function(e,t,n){var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),t.Allow=t.MalformedJSON=t.PartialJSON=t.parseJSON=t.parse=void 0;let s=n(33966);Object.defineProperty(t,"Allow",{enumerable:!0,get:function(){return s.Allow}}),i(n(33966),t);class a extends Error{}t.PartialJSON=a;class o extends Error{}function l(e,t=s.Allow.ALL){if("string"!=typeof e)throw TypeError(`expecting str, got ${typeof e}`);if(!e.trim())throw Error(`${e} is empty`);return u(e.trim(),t)}t.MalformedJSON=o,t.parseJSON=l;let u=(e,t)=>{let n=e.length,r=0,i=e=>{throw new a(`${e} at position ${r}`)},l=e=>{throw new o(`${e} at position ${r}`)},u=()=>(f(),r>=n&&i("Unexpected end of input"),'"'===e[r])?c():"{"===e[r]?d():"["===e[r]?h():"null"===e.substring(r,r+4)||s.Allow.NULL&t&&n-r<4&&"null".startsWith(e.substring(r))?(r+=4,null):"true"===e.substring(r,r+4)||s.Allow.BOOL&t&&n-r<4&&"true".startsWith(e.substring(r))?(r+=4,!0):"false"===e.substring(r,r+5)||s.Allow.BOOL&t&&n-r<5&&"false".startsWith(e.substring(r))?(r+=5,!1):"Infinity"===e.substring(r,r+8)||s.Allow.INFINITY&t&&n-r<8&&"Infinity".startsWith(e.substring(r))?(r+=8,1/0):"-Infinity"===e.substring(r,r+9)||s.Allow._INFINITY&t&&1<n-r&&n-r<9&&"-Infinity".startsWith(e.substring(r))?(r+=9,-1/0):"NaN"===e.substring(r,r+3)||s.Allow.NAN&t&&n-r<3&&"NaN".startsWith(e.substring(r))?(r+=3,NaN):p(),c=()=>{let a=r,o=!1;for(r++;r<n&&('"'!==e[r]||o&&"\\"===e[r-1]);)o="\\"===e[r]&&!o,r++;if('"'==e.charAt(r))try{return JSON.parse(e.substring(a,++r-Number(o)))}catch(e){l(String(e))}else if(s.Allow.STR&t)try{return JSON.parse(e.substring(a,r-Number(o))+'"')}catch(t){return JSON.parse(e.substring(a,e.lastIndexOf("\\"))+'"')}i("Unterminated string literal")},d=()=>{r++,f();let a={};try{for(;"}"!==e[r];){if(f(),r>=n&&s.Allow.OBJ&t)return a;let i=c();f(),r++;try{let e=u();a[i]=e}catch(e){if(s.Allow.OBJ&t)return a;throw e}f(),","===e[r]&&r++}}catch(e){if(s.Allow.OBJ&t)return a;i("Expected '}' at end of object")}return r++,a},h=()=>{r++;let n=[];try{for(;"]"!==e[r];)n.push(u()),f(),","===e[r]&&r++}catch(e){if(s.Allow.ARR&t)return n;i("Expected ']' at end of array")}return r++,n},p=()=>
5{if(0===r){"-"===e&&l("Not sure what '-' is");try{return JSON.parse(e)}catch(n){if(s.Allow.NUM&t)try{return JSON.parse(e.substring(0,e.lastIndexOf("e")))}catch(e){}l(String(n))}}let a=r;for("-"===e[r]&&r++;e[r]&&-1===",]}".indexOf(e[r]);)r++;r!=n||s.Allow.NUM&t||i("Unterminated number literal");try{return JSON.parse(e.substring(a,r))}catch(t){"-"===e.substring(a,r)&&i("Not sure what '-' is");try{return JSON.parse(e.substring(a,e.lastIndexOf("e")))}catch(e){l(String(e))}}},f=()=>{for(;r<n&&" \n\r ".includes(e[r]);)r++};return u()};t.parse=l},24216:(e,t,n)=>{n.d(t,{w:()=>r});var r=new(n(65174)).c(function(e){return e.complete()})},24687:(e,t,n)=>{n.d(t,{yQ:()=>v});var r=e=>"function"==typeof e?e:function(){return e},i="undefined"!=typeof window?window:null,s=("undefined"!=typeof self?self:null)||i||globalThis,a={connecting:0,open:1,closing:2,closed:3},o={closed:"closed",errored:"errored",joined:"joined",joining:"joining",leaving:"leaving"},l={close:"phx_close",error:"phx_error",join:"phx_join",reply:"phx_reply",leave:"phx_leave"},u={longpoll:"longpoll",websocket:"websocket"},c={complete:4},d="base64url.bearer.phx.",h=class{constructor(e,t,n,r){this.channel=e,this.event=t,this.payload=n||function(){return{}},this.receivedResp=null,this.timeout=r,this.timeoutTimer=null,this.recHooks=[],this.sent=!1}resend(e){this.timeout=e,this.reset(),this.send()}send(){this.hasReceived("timeout")||(this.startTimeout(),this.sent=!0,this.channel.socket.push({topic:this.channel.topic,event:this.event,payload:this.payload(),ref:this.ref,join_ref:this.channel.joinRef()}))}receive(e,t){return this.hasReceived(e)&&t(this.receivedResp.response),this.recHooks.push({status:e,callback:t}),this}reset(){this.cancelRefEvent(),this.ref=null,this.refEvent=null,this.receivedResp=null,this.sent=!1}matchReceive({status:e,response:t,_ref:n}){this.recHooks.filter(t=>t.status===e).forEach(e=>e.callback(t))}cancelRefEvent(){this.refEvent&&this.channel.off(this.refEvent)}cancelTimeout(){clearTimeout(this.timeoutTimer),this.timeoutTimer=null}startTimeout(){this.timeoutTimer&&this.cancelTimeout(),this.ref=this.channel.socket.makeRef(),this.refEvent=this.channel.replyEventName(this.ref),this.channel.on(this.refEvent,e=>{this.cancelRefEvent(),this.cancelTimeout(),this.receivedResp=e,this.matchReceive(e)}),this.timeoutTimer=setTimeout(()=>{this.trigger("timeout",{})},this.timeout)}hasReceived(e){return this.receivedResp&&this.receivedResp.status===e}trigger(e,t){this.channel.trigger(this.refEvent,{status:e,response:t})}},p=class{constructor(e,t){this.callback=e,this.timerCalc=t,this.timer=null,this.tries=0}reset(){this.tries=0,clearTimeout(this.timer)}scheduleTimeout(){clearTimeout(this.timer),this.timer=setTimeout(()=>{this.tries=this.tries+1,this.callback()},this.timerCalc(this.tries+1))}},f=class{constructor(e,t,n){this.state=o.closed,this.topic=e,this.params=r(t||{}),this.socket=n,this.bindings=[],this.bindingRef=0,this.timeout=this.socket.timeout,this.joinedOnce=!1,this.joinPush=new h(this,l.join,this.params,this.timeout),this.pushBuffer=[],this.stateChangeRefs=[],this.rejoinTimer=new p(()=>{this.socket.isConnected()&&this.rejoin()},this.socket.rejoinAfterMs),this.stateChangeRefs.push(this.socket.onError(()=>this.rejoinTimer.reset())),this.stateChangeRefs.push(this.socket.onOpen(()=>{this.rejoinTimer.reset(),this.isErrored()&&this.rejoin()})),this.joinPush.receive("ok",()=>{this.state=o.joined,this.rejoinTimer.reset(),this.pushBuffer.forEach(e=>e.send()),this.pushBuffer=[]}),this.joinPush.receive("error",()=>{this.state=o.errored,this.socket.isConnected()&&this.rejoinTimer.scheduleTimeout()}),this.onClose(()=>{this.rejoinTimer.reset(),this.socket.hasLogger()&&this.socket.log("channel",`close ${this.topic} ${this.joinRef()}`),this.state=o.closed,this.socket.remove(this)}),this.onError(e=>{this.socket.hasLogger()&&this.socket.log("channel",`error ${this.topic}`,e),this.isJoining()&&this.joinPush.reset(),this.state=o.errored,this.socket.isConnected()&&this.rejoinTimer.scheduleTimeout()}),this.joinPush.receive("timeout",()=>{this.socket.hasLogger()&&this.socket.log("channel",`timeout ${this.topic} (${this.joinRef()})`,this.joinPush.timeout),new h(this,l.leave,r({}),this.timeout).send(),this.state=o.errored,this.joinPush.reset(),this.socket.isConnected()&&this.rejoinTimer.scheduleTimeout()}),this.on(l.reply,(e,t)=>{this.trigger(this.replyEventName(t),e)})}join(e=this.timeout){if(!this.joinedOnce)return this.timeout=e,this.joinedOnce=!0,this.rejoin(),this.joinPush;throw Error("tried to join multiple times. 'join' can only be called a single time per channel instance")}onClose(e){this.on(l.close,e)}onError(e){return this.on(l.error,t=>e(t))}on(e,t){let n=this.bindingRef++;return this.bindings.push({event:e,ref:n,callback:t}),n}off(e,t){this.bindings=this.bindings.filter(n=>n.event!==e||void 0!==t&&t!==n.ref)}canPush(){return this.socket.isConnected()&&this.isJoined()}push(e,t,n=this.timeout){if(t=t||{},!this.joinedOnce)throw Error(`tried to push '${e}' to '${this.topic}' before joining. Use channel.join() before pushing events`);let r=new h(this,e,function(){return t},n);return this.canPush()?r.send():(r.startTimeout(),this.pushBuffer.push(r)),r}leave(e=this.timeout){this.rejoinTimer.reset(),this.joinPush.cancelTimeout(),this.state=o.leaving;let t=()=>{this.socket.hasLogger()&&this.socket.log("channel",`leave ${this.topic}`),this.trigger(l.close,"leave")},n=new h(this,l.leave,r({}),e);return n.receive("ok",()=>t()).receive("timeout",()=>t()),n.send(),this.canPush()||n.trigger("ok",{}),n}onMessage(e,t,n){return t}
5isMember(e,t,n,r){return this.topic===e&&(!r||r===this.joinRef()||(this.socket.hasLogger()&&this.socket.log("channel","dropping outdated message",{topic:e,event:t,payload:n,joinRef:r}),!1))}joinRef(){return this.joinPush.ref}rejoin(e=this.timeout){this.isLeaving()||(this.socket.leaveOpenTopic(this.topic),this.state=o.joining,this.joinPush.resend(e))}trigger(e,t,n,r){let i=this.onMessage(e,t,n,r);if(t&&!i)throw Error("channel onMessage callbacks must return the payload, modified or unmodified");let s=this.bindings.filter(t=>t.event===e);for(let e=0;e<s.length;e++)s[e].callback(i,n,r||this.joinRef())}replyEventName(e){return`chan_reply_${e}`}isClosed(){return this.state===o.closed}isErrored(){return this.state===o.errored}isJoined(){return this.state===o.joined}isJoining(){return this.state===o.joining}isLeaving(){return this.state===o.leaving}},m=class{static request(e,t,n,r,i,a,o){if(s.XDomainRequest){let n=new s.XDomainRequest;return this.xdomainRequest(n,e,t,r,i,a,o)}if(s.XMLHttpRequest){let l=new s.XMLHttpRequest;return this.xhrRequest(l,e,t,n,r,i,a,o)}if(s.fetch&&s.AbortController)return this.fetchRequest(e,t,n,r,i,a,o);throw Error("No suitable XMLHttpRequest implementation found")}static fetchRequest(e,t,n,r,i,a,o){let l={method:e,headers:n,body:r},u=null;return i&&(u=new AbortController,setTimeout(()=>u.abort(),i),l.signal=u.signal),s.fetch(t,l).then(e=>e.text()).then(e=>this.parseJSON(e)).then(e=>o&&o(e)).catch(e=>{"AbortError"===e.name&&a?a():o&&o(null)}),u}static xdomainRequest(e,t,n,r,i,s,a){return e.timeout=i,e.open(t,n),e.onload=()=>{let t=this.parseJSON(e.responseText);a&&a(t)},s&&(e.ontimeout=s),e.onprogress=()=>{},e.send(r),e}static xhrRequest(e,t,n,r,i,s,a,o){for(let[i,a]of(e.open(t,n,!0),e.timeout=s,Object.entries(r)))e.setRequestHeader(i,a);return e.onerror=()=>o&&o(null),e.onreadystatechange=()=>{e.readyState===c.complete&&o&&o(this.parseJSON(e.responseText))},a&&(e.ontimeout=a),e.send(i),e}static parseJSON(e){if(!e||""===e)return null;try{return JSON.parse(e)}catch{return console&&console.log("failed to parse JSON response",e),null}}static serialize(e,t){let n=[];for(var r in e){if(!Object.prototype.hasOwnProperty.call(e,r))continue;let i=t?`${t}[${r}]`:r,s=e[r];"object"==typeof s?n.push(this.serialize(s,i)):n.push(encodeURIComponent(i)+"="+encodeURIComponent(s))}return n.join("&")}static appendParams(e,t){if(0===Object.keys(t).length)return e;let n=e.match(/\?/)?"&":"?";return`${e}${n}${this.serialize(t)}`}},g=class{constructor(e,t){t&&2===t.length&&t[1].startsWith(d)&&(this.authToken=atob(t[1].slice(d.length))),this.endPoint=null,this.token=null,this.skipHeartbeat=!0,this.reqs=new Set,this.awaitingBatchAck=!1,this.currentBatch=null,this.currentBatchTimer=null,this.batchBuffer=[],this.onopen=function(){},this.onerror=function(){},this.onmessage=function(){},this.onclose=function(){},this.pollEndpoint=this.normalizeEndpoint(e),this.readyState=a.connecting,setTimeout(()=>this.poll(),0)}normalizeEndpoint(e){return e.replace("ws://","http://").replace("wss://","https://").replace(RegExp("(.*)/"+u.websocket),"$1/"+u.longpoll)}endpointURL(){return m.appendParams(this.pollEndpoint,{token:this.token})}closeAndRetry(e,t,n){this.close(e,t,n),this.readyState=a.connecting}ontimeout(){this.onerror("timeout"),this.closeAndRetry(1005,"timeout",!1)}isActive(){return this.readyState===a.open||this.readyState===a.connecting}poll(){let e={Accept:"application/json"};this.authToken&&(e["X-Phoenix-AuthToken"]=this.authToken),this.ajax("GET",e,null,()=>this.ontimeout(),e=>{if(e){var{status:t,token:n,messages:r}=e;if(410===t&&null!==this.token){this.onerror(410),this.closeAndRetry(3410,"session_gone",!1);return}this.token=n}else t=0;switch(t){case 200:r.forEach(e=>{setTimeout(()=>this.onmessage({data:e}),0)}),this.poll();break;case 204:this.poll();break;case 410:this.readyState=a.open,this.onopen({}),this.poll();break;
5case 403:this.onerror(403),this.close(1008,"forbidden",!1);break;case 0:case 500:this.onerror(500),this.closeAndRetry(1011,"internal server error",500);break;default:throw Error(`unhandled poll status ${t}`)}})}send(e){"string"!=typeof e&&(e=(e=>{let t="",n=new Uint8Array(e),r=n.byteLength;for(let e=0;e<r;e++)t+=String.fromCharCode(n[e]);return btoa(t)})(e)),this.currentBatch?this.currentBatch.push(e):this.awaitingBatchAck?this.batchBuffer.push(e):(this.currentBatch=[e],this.currentBatchTimer=setTimeout(()=>{this.batchSend(this.currentBatch),this.currentBatch=null},0))}batchSend(e){this.awaitingBatchAck=!0,this.ajax("POST",{"Content-Type":"application/x-ndjson"},e.join("\n"),()=>this.onerror("timeout"),e=>{this.awaitingBatchAck=!1,e&&200===e.status?this.batchBuffer.length>0&&(this.batchSend(this.batchBuffer),this.batchBuffer=[]):(this.onerror(e&&e.status),this.closeAndRetry(1011,"internal server error",!1))})}close(e,t,n){for(let e of this.reqs)e.abort();this.readyState=a.closed;let r=Object.assign({code:1e3,reason:void 0,wasClean:!0},{code:e,reason:t,wasClean:n});this.batchBuffer=[],clearTimeout(this.currentBatchTimer),this.currentBatchTimer=null,"undefined"!=typeof CloseEvent?this.onclose(new CloseEvent("close",r)):this.onclose(r)}ajax(e,t,n,r,i){let s,a=()=>{this.reqs.delete(s),r()};s=m.request(e,this.endpointURL(),t,n,this.timeout,a,e=>{this.reqs.delete(s),this.isActive()&&i(e)}),this.reqs.add(s)}},y={HEADER_LENGTH:1,META_LENGTH:4,KINDS:{push:0,reply:1,broadcast:2},encode(e,t){return e.payload.constructor===ArrayBuffer?t(this.binaryEncode(e)):t(JSON.stringify([e.join_ref,e.ref,e.topic,e.event,e.payload]))},decode(e,t){if(e.constructor===ArrayBuffer)return t(this.binaryDecode(e));{let[n,r,i,s,a]=JSON.parse(e);return t({join_ref:n,ref:r,topic:i,event:s,payload:a})}},binaryEncode(e){let{join_ref:t,ref:n,event:r,topic:i,payload:s}=e,a=this.META_LENGTH+t.length+n.length+i.length+r.length,o=new ArrayBuffer(this.HEADER_LENGTH+a),l=new DataView(o),u=0;l.setUint8(u++,this.KINDS.push),l.setUint8(u++,t.length),l.setUint8(u++,n.length),l.setUint8(u++,i.length),l.setUint8(u++,r.length),Array.from(t,e=>l.setUint8(u++,e.charCodeAt(0))),Array.from(n,e=>l.setUint8(u++,e.charCodeAt(0))),Array.from(i,e=>l.setUint8(u++,e.charCodeAt(0))),Array.from(r,e=>l.setUint8(u++,e.charCodeAt(0)));var c=new Uint8Array(o.byteLength+s.byteLength);return c.set(new Uint8Array(o),0),c.set(new Uint8Array(s),o.byteLength),c.buffer},binaryDecode(e){let t=new DataView(e),n=t.getUint8(0),r=new TextDecoder;switch(n){case this.KINDS.push:return this.decodePush(e,t,r);case this.KINDS.reply:return this.decodeReply(e,t,r);case this.KINDS.broadcast:return this.decodeBroadcast(e,t,r)}},decodePush(e,t,n){let r=t.getUint8(1),i=t.getUint8(2),s=t.getUint8(3),a=this.HEADER_LENGTH+this.META_LENGTH-1,o=n.decode(e.slice(a,a+r));a+=r;let l=n.decode(e.slice(a,a+i));a+=i;let u=n.decode(e.slice(a,a+s));return a+=s,{join_ref:o,ref:null,topic:l,event:u,payload:e.slice(a,e.byteLength)}},decodeReply(e,t,n){let r=t.getUint8(1),i=t.getUint8(2),s=t.getUint8(3),a=t.getUint8(4),o=this.HEADER_LENGTH+this.META_LENGTH,u=n.decode(e.slice(o,o+r));o+=r;let c=n.decode(e.slice(o,o+i));o+=i;let d=n.decode(e.slice(o,o+s));o+=s;let h=n.decode(e.slice(o,o+a));o+=a;let p=e.slice(o,e.byteLength);return{join_ref:u,ref:c,topic:d,event:l.reply,payload:{status:h,response:p}}},decodeBroadcast(e,t,n){let r=t.getUint8(1),i=t.getUint8(2),s=this.HEADER_LENGTH+2,a=n.decode(e.slice(s,s+r));s+=r;let o=n.decode(e.slice(s,s+i));return s+=i,{join_ref:null,ref:null,topic:a,event:o,payload:e.slice(s,e.byteLength)}}},v=class{constructor(e,t={}){this.stateChangeCallbacks={open:[],close:[],error:[],message:[]},this.channels=[],this.sendBuffer=[],this.ref=0,this.fallbackRef=null,this.timeout=t.timeout||1e4,this.transport=t.transport||s.WebSocket||g,this.primaryPassedHealthCheck=!1,this.longPollFallbackMs=t.longPollFallbackMs,this.fallbackTimer=null,this.sessionStore=t.sessionStorage||s&&s.sessionStorage,this.establishedConnections=0,this.defaultEncoder=y.encode.bind(y),this.defaultDecoder=y.decode.bind(y),this.closeWasClean=!1,this.disconnecting=!1,this.binaryType=t.binaryType||"arraybuffer",this.connectClock=1,this.pageHidden=!1,this.transport!==g?(this.encode=t.encode||this.defaultEncoder,this.decode=t.decode||this.defaultDecoder):(this.encode=this.defaultEncoder,this.decode=this.defaultDecoder);let n=null;i&&i.addEventListener&&(i.addEventListener("pagehide",e=>{this.conn&&(this.disconnect(),n=this.connectClock)}),i.addEventListener("pageshow",e=>{n===this.connectClock&&(n=null,this.connect())}),i.addEventListener("visibilitychange",()=>{"hidden"===document.visibilityState?this.pageHidden=!0:(this.pageHidden=!1,this.isConnected()||this.closeWasClean||this.teardown(()=>this.connect()))})),this.heartbeatIntervalMs=t.heartbeatIntervalMs||3e4,this.rejoinAfterMs=e=>t.rejoinAfterMs?t.rejoinAfterMs(e):[1e3,2e3,5e3][e-1]||1e4,this.reconnectAfterMs=e=>t.reconnectAfterMs?t.reconnectAfterMs(e):[10,50,100,150,200,250,500,1e3,2e3][e-1]||5e3,this.logger=t.logger||null,!this.logger&&t.debug&&(this.logger=(e,t,n)=>{console.log(`${e}: ${t}`,n)}),this.longpollerTimeout=t.longpollerTimeout||2e4,this.params=r(t.params||{}),this.endPoint=`${e}/${u.websocket}`,this.vsn=t.vsn||"2.0.0",this.heartbeatTimeoutTimer=null,this.heartbeatTimer=null,this.pendingHeartbeatRef=null,this.reconnectTimer=new p(()=>
5{if(this.pageHidden){this.log("Not reconnecting as page is hidden!"),this.teardown();return}this.teardown(()=>this.connect())},this.reconnectAfterMs),this.authToken=t.authToken}getLongPollTransport(){return g}replaceTransport(e){this.connectClock++,this.closeWasClean=!0,clearTimeout(this.fallbackTimer),this.reconnectTimer.reset(),this.conn&&(this.conn.close(),this.conn=null),this.transport=e}protocol(){return location.protocol.match(/^https/)?"wss":"ws"}endPointURL(){let e=m.appendParams(m.appendParams(this.endPoint,this.params()),{vsn:this.vsn});return"/"!==e.charAt(0)?e:"/"===e.charAt(1)?`${this.protocol()}:${e}`:`${this.protocol()}://${location.host}${e}`}disconnect(e,t,n){this.connectClock++,this.disconnecting=!0,this.closeWasClean=!0,clearTimeout(this.fallbackTimer),this.reconnectTimer.reset(),this.teardown(()=>{this.disconnecting=!1,e&&e()},t,n)}connect(e){e&&(console&&console.log("passing params to connect is deprecated. Instead pass :params to the Socket constructor"),this.params=r(e)),(!this.conn||this.disconnecting)&&(this.longPollFallbackMs&&this.transport!==g?this.connectWithF
5allback(g,this.longPollFallbackMs):this.transportConnect())}log(e,t,n){this.logger&&this.logger(e,t,n)}hasLogger(){return null!==this.logger}onOpen(e){let t=this.makeRef();return this.stateChangeCallbacks.open.push([t,e]),t}onClose(e){let t=this.makeRef();return this.stateChangeCallbacks.close.push([t,e]),t}onError(e){let t=this.makeRef();return this.stateChangeCallbacks.error.push([t,e]),t}onMessage(e){let t=this.makeRef();return this.stateChangeCallbacks.message.push([t,e]),t}ping(e){if(!this.isConnected())return!1;let t=this.makeRef(),n=Date.now();this.push({topic:"phoenix",event:"heartbeat",payload:{},ref:t});let r=this.onMessage(i=>{i.ref===t&&(this.off([r]),e(Date.now()-n))});return!0}transportName(e){return e===g?"LongPoll":e.name}transportConnect(){let e;this.connectClock++,this.closeWasClean=!1,this.authToken&&(e=["phoenix",`${d}${btoa(this.authToken).replace(/=/g,"")}`]),this.conn=new this.transport(this.endPointURL(),e),this.conn.binaryType=this.binaryType,this.conn.timeout=this.longpollerTimeout,this.conn.onopen=()=>this.onConnOpen(),this.conn.onerror=e=>this.onConnError(e),this.conn.onmessage=e=>this.onConnMessage(e),this.conn.onclose=e=>this.onConnClose(e)}getSession(e){return this.sessionStore&&this.sessionStore.getItem(e)}storeSession(e,t){this.sessionStore&&this.sessionStore.setItem(e,t)}connectWithFallback(e,t=2500){let n,r;clearTimeout(this.fallbackTimer);let i=!1,s=!0,a=this.transportName(e),o=t=>{this.log("transport",`falling back to ${a}...`,t),this.off([n,r]),s=!1,this.replaceTransport(e),this.transportConnect()};if(this.getSession(`phx:fallback:${a}`))return o("memorized");this.fallbackTimer=setTimeout(o,t),r=this.onError(e=>{this.log("transport","error",e),s&&!i&&(clearTimeout(this.fallbackTimer),o(e))}),this.fallbackRef&&this.off([this.fallbackRef]),this.fallbackRef=this.onOpen(()=>{if(i=!0,!s){let t=this.transportName(e);return this.primaryPassedHealthCheck||this.storeSession(`phx:fallback:${t}`,"true"),this.log("transport",`established ${t} fallback`)}clearTimeout(this.fallbackTimer),this.fallbackTimer=setTimeout(o,t),this.ping(e=>{this.log("transport","connected to primary after",e),this.primaryPassedHealthCheck=!0,clearTimeout(this.fallbackTimer)})}),this.transportConnect()}clearHeartbeats(){clearTimeout(this.heartbeatTimer),clearTimeout(this.heartbeatTimeoutTimer)}onConnOpen(){this.hasLogger()&&this.log("transport",`${this.transportName(this.transport)} connected to ${this.endPointURL()}`),this.closeWasClean=!1,this.disconnecting=!1,this.establishedConnections++,this.flushSendBuffer(),this.reconnectTimer.reset(),this.resetHeartbeat(),this.stateChangeCallbacks.open.forEach(([,e])=>e())}heartbeatTimeout(){this.pendingHeartbeatRef&&(this.pendingHeartbeatRef=null,this.hasLogger()&&this.log("transport","heartbeat timeout. Attempting to re-establish connection"),this.triggerChanError(),this.closeWasClean=!1,this.teardown(()=>this.reconnectTimer.scheduleTimeout(),1e3,"heartbeat timeout"))}resetHeartbeat(){this.conn&&this.conn.skipHeartbeat||(this.pendingHeartbeatRef=null,this.clearHeartbeats(),this.heartbeatTimer=setTimeout(()=>this.sendHeartbeat(),this.heartbeatIntervalMs))}teardown(e,t,n){if(!this.conn)return e&&e();let r=this.conn;this.waitForBufferDone(r,()=>{t?r.close(t,n||""):r.close(),this.waitForSocketClosed(r,()=>{this.conn===r&&(this.conn.onopen=function(){},this.conn.onerror=function(){},this.conn.onmessage=function(){},this.conn.onclose=function(){},this.conn=null),e&&e()})})}waitForBufferDone(e,t,n=1){if(5===n||!e.bufferedAmount)return void t();setTimeout(()=>{this.waitForBufferDone(e,t,n+1)},150*n)}waitForSocketClosed(e,t,n=1){if(5===n||e.readyState===a.closed)return void t();setTimeout(()=>{this.waitForSocketClosed(e,t,n+1)},150*n)}onConnClose(e){this.conn&&(this.conn.onclose=()=>{});let t=e&&e.code;this.hasLogger()&&this.log("transport","close",e),this.triggerChanError(),this.clearHeartbeats(),this.closeWasClean||1e3===t||this.reconnectTimer.scheduleTimeout(),this.stateChangeCallbacks.close.forEach(([,t])=>t(e))}onConnError(e){this.hasLogger()&&this.log("transport",e);let t=this.transport,n=this.establishedConnections;this.stateChangeCallbacks.error.forEach(([,r])=>{r(e,t,n)}),(t===this.transport||n>0)&&this.triggerChanError()}
5triggerChanError(){this.channels.forEach(e=>{e.isErrored()||e.isLeaving()||e.isClosed()||e.trigger(l.error)})}connectionState(){switch(this.conn&&this.conn.readyState){case a.connecting:return"connecting";case a.open:return"open";case a.closing:return"closing";default:return"closed"}}isConnected(){return"open"===this.connectionState()}remove(e){this.off(e.stateChangeRefs),this.channels=this.channels.filter(t=>t!==e)}off(e){for(let t in this.stateChangeCallbacks)this.stateChangeCallbacks[t]=this.stateChangeCallbacks[t].filter(([t])=>-1===e.indexOf(t))}channel(e,t={}){let n=new f(e,t,this);return this.channels.push(n),n}push(e){if(this.hasLogger()){let{topic:t,event:n,payload:r,ref:i,join_ref:s}=e;this.log("push",`${t} ${n} (${s}, ${i})`,r)}this.isConnected()?this.encode(e,e=>this.conn.send(e)):this.sendBuffer.push(()=>this.encode(e,e=>this.conn.send(e)))}makeRef(){let e=this.ref+1;return e===this.ref?this.ref=0:this.ref=e,this.ref.toString()}sendHeartbeat(){(!this.pendingHeartbeatRef||this.isConnected())&&(this.pendingHeartbeatRef=this.makeRef(),this.push({topic:"phoenix",event:"heartbeat",payload:{},ref:this.pendingHeartbeatRef}),this.heartbeatTimeoutTimer=setTimeout(()=>this.heartbeatTimeout(),this.heartbeatIntervalMs))}flushSendBuffer(){this.isConnected()&&this.sendBuffer.length>0&&(this.sendBuffer.forEach(e=>e()),this.sendBuffer=[])}onConnMessage(e){this.decode(e.data,e=>{let{topic:t,event:n,payload:r,ref:i,join_ref:s}=e;i&&i===this.pendingHeartbeatRef&&(this.clearHeartbeats(),this.pendingHeartbeatRef=null,this.heartbeatTimer=setTimeout(()=>this.sendHeartbeat(),this.heartbeatIntervalMs)),this.hasLogger()&&this.log("receive",`${r.status||""} ${t} ${n} ${i&&"("+i+")"||""}`,r);for(let e=0;e<this.channels.length;e++){let a=this.channels[e];a.isMember(t,n,r,s)&&a.trigger(n,r,i,s)}for(let t=0;t<this.stateChangeCallbacks.message.length;t++){let[,n]=this.stateChangeCallbacks.message[t];n(e)}})}leaveOpenTopic(e){let t=this.channels.find(t=>t.topic===e&&(t.isJoined()||t.isJoining()));t&&(this.hasLogger()&&this.log("transport",`leaving duplicate topic "${e}"`),t.leave())}}},24688:(e,t,n)=>{n.d(t,{i:()=>o});var r,i=n(23073),s=n(54728),a=(r||(r=n.t(i,2)))[" useInsertionEffect ".trim().toString()]||s.N;function o({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){let[s,o,l]=function({defaultProp:e,onChange:t}){let[n,r]=i.useState(e),s=i.useRef(n),o=i.useRef(t);return a(()=>{o.current=t},[t]),i.useEffect(()=>{s.current!==n&&(o.current?.(n),s.current=n)},[n,s]),[n,r,o]}({defaultProp:t,onChange:n}),u=void 0!==e,c=u?e:s;{let t=i.useRef(void 0!==e);i.useEffect(()=>{let e=t.current;if(e!==u){let t=u?"controlled":"uncontrolled";console.warn(`${r} is changing from ${e?"controlled":"uncontrolled"} to ${t}. 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.`)}t.current=u},[u,r])}return[c,i.useCallback(t=>{if(u){let n="function"==typeof t?t(e):t;n!==e&&l.current?.(n)}else o(t)},[u,e,o,l])]}Symbol("RADIX:SYNC_STATE")},25115:(e,t,n)=>{n.d(t,{z:()=>g});var r=n(65174),i=Array.isArray,s=Object.getPrototypeOf,a=Object.prototype,o=Object.keys,l=n(22338),u=n(50742),c=n(82967),d=n(76509),h=Array.isArray,p=n(33097),f=n(28963),m=n(96238);function g(){for(var e,t,n,m=[],g=0;g<arguments.length;g++)m[g]=arguments[g];var v=(0,p.lI)(m),b=(0,p.ms)(m),E=function(e){if(1===e.length){var t,n=e[0];if(i(n))return{args:n,keys:null};if((t=n)&&"object"==typeof t&&s(t)===a){var r=o(n);return{args:r.map(function(e){return n[e]}),keys:r}}}return{args:e,keys:null}}(m),T=E.args,_=E.keys;if(0===T.length)return(0,l.H)([],v);var A=new r.c((e=T,t=v,void 0===(n=_?function(e){return _.reduce(function(t,n,r){return t[n]=e[r],t},{})}:u.D)&&(n=u.D),function(r){y(t,function(){for(var i=e.length,s=Array(i),a=i,o=i,u=function(i){y(t,function(){var u=(0,l.H)(e[i],t),c=!1;u.subscribe((0,f._)(r,function(e){s[i]=e,!c&&(c=!0,o--),o||r.next(n(s.slice()))},function(){--a||r.complete()}))},r)},c=0;c<i;c++)u(c)},r)}));return b?A.pipe((0,d.T)(function(e){return h(e)?b.apply(void 0,(0,c.fX)([],(0,c.zs)(e))):b(e)})):A}function y(e,t,n){e?(0,m.N)(n,e,t):t()}},25669:(e,t,n)=>{n.d(t,{h:()=>l});var r=n(22698),i=n(59761),s=n(24216),a=n(33097),o=n(22338);function l(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=(0,a.lI)(e),l=(0,a.R0)(e,1/0);return e.length?1===e.length?(0,i.Tg)(e[0]):(0,r.U)(l)((0,o.H)(e,n)):s.w}},26119:(e,t,n)=>{n.d(t,{W:()=>a,d:()=>s});var r=n(11663),i=n(61641);function s(e,t){return{name:e.name,returnType:e.returnType,schema:e.schema,execute:t}}class a{constructor(e,t,n=[],s){this.id=e;let a=new Map;for(let e of t)a.set(e.name,e);this.components=a;let o=new Map;for(let e of n)o.set(e.name,e);this.functions=o,this.themeSchema=s,this.invoker=(e,t,n,s)=>{let a=this.functions.get(e);if(!a)throw new i.Oi(`Function not found in catalog '${this.id}': ${e}`,e);try{let e=a.schema.parse(t);return a.execute(e,n,s)}catch(t){if(t?.name==="ZodError"||t instanceof r.G)throw new i.Oi(`Validation failed for function '${e}': ${t.message}`,e,t.errors??t.issues);throw t}}}}}
5,26452:(e,t,n)=>{n.d(t,{$i:()=>tI,A8:()=>ey,Ak:()=>N,BN:()=>ec,Bo:()=>$,Bu:()=>tf,CL:()=>tt,DN:()=>e6,E$:()=>eW,EB:()=>m,EV:()=>t_,Fs:()=>tT,Gk:()=>ev,Gl:()=>D,Gp:()=>H,HA:()=>ed,HR:()=>eT,Ie:()=>tO,Ih:()=>tS,Ii:()=>tr,Ik:()=>eB,In:()=>eu,JE:()=>tN,Jj:()=>R,Jv:()=>eV,K3:()=>K,K5:()=>eE,KC:()=>eG,Kf:()=>F,Kq:()=>eo,Kz:()=>e2,L5:()=>eC,LE:()=>er,Lq:()=>j,Lr:()=>em,Mf:()=>ty,Ml:()=>eS,ND:()=>p,NJ:()=>te,Nl:()=>tM,Np:()=>ei,OZ:()=>S,Os:()=>b,PQ:()=>ex,PV:()=>eK,Pq:()=>tj,RZ:()=>tw,Rp:()=>y,Rv:()=>tu,S8:()=>eh,Sd:()=>td,Tj:()=>e1,Tq:()=>tv,UC:()=>h,Ut:()=>e0,Uy:()=>tk,VV:()=>eb,Vb:()=>e4,Vx:()=>eA,W5:()=>Y,WF:()=>ep,Wh:()=>el,Xi:()=>tl,YO:()=>ej,YP:()=>tP,Yj:()=>f,Yl:()=>V,Z0:()=>L,ZE:()=>ez,Zg:()=>I,Zm:()=>eR,_:()=>eI,_$:()=>X,_H:()=>eU,_Z:()=>e_,a$:()=>en,a0:()=>eO,aP:()=>eD,aR:()=>d,ai:()=>ea,b8:()=>eX,bv:()=>eF,bz:()=>ew,cM:()=>g,ch:()=>ek,cl:()=>to,dd:()=>tx,eY:()=>tp,eu:()=>e8,fO:()=>B,fZ:()=>eH,fc:()=>e5,fi:()=>et,g1:()=>eQ,gE:()=>A,gF:()=>O,gM:()=>eZ,gZ:()=>_,hQ:()=>ee,hZ:()=>e3,hw:()=>tg,iS:()=>eN,im:()=>e7,iv:()=>tC,jg:()=>eJ,jv:()=>eY,k5:()=>e9,kM:()=>z,kX:()=>tm,l1:()=>ts,l7:()=>W,lq:()=>ti,m7:()=>J,me:()=>ta,n:()=>eL,n$:()=>C,n4:()=>v,nH:()=>x,nL:()=>q,o:()=>eg,oi:()=>tb,p6:()=>eM,pd:()=>tn,qX:()=>M,r0:()=>Q,rI:()=>eP,rS:()=>es,re:()=>e$,tB:()=>tA,tr:()=>P,uE:()=>tL,uR:()=>T,uX:()=>U,ug:()=>G,ut:()=>tE,vX:()=>E,vZ:()=>th,vk:()=>tz,xg:()=>tc,y0:()=>eq,yC:()=>w,z6:()=>tR,zM:()=>ef,zY:()=>k,zn:()=>tD,zr:()=>Z});var r=n(13452),i=n(31817),s=n(61807),a=n(60564),o=n(48417),l=n(95854),u=n(74265),c=n(72447);let d=r.xI("ZodType",(e,t)=>(i.W4.init(e,t),e.def=t,Object.defineProperty(e,"_def",{value:t}),e.check=(...n)=>e.clone({...t,checks:[...t.checks??[],...n.map(e=>"function"==typeof e?{_zod:{check:e,def:{check:"custom"},onattach:[]}}:e)]}),e.clone=(t,n)=>s.clone(e,t,n),e.brand=()=>e,e.register=(t,n)=>(t.add(e,n),e),e.parse=(t,n)=>c.qg(e,t,n,{callee:e.parse}),e.safeParse=(t,n)=>c.xL(e,t,n),e.parseAsync=async(t,n)=>c.EJ(e,t,n,{callee:e.parseAsync}),e.safeParseAsync=async(t,n)=>c.bp(e,t,n),e.spa=e.safeParseAsync,e.refine=(t,n)=>e.check(tP(t,n)),e.superRefine=t=>e.check(tD(t)),e.overwrite=t=>e.check(o.bS(t)),e.optional=()=>ti(e),e.nullable=()=>ta(e),e.nullish=()=>ti(ta(e)),e.nonoptional=t=>tp(e,t),e.array=()=>ej(e),e.or=t=>eG([e,t]),e.and=t=>eW(e,t),e.transform=t=>tT(e,tn(t)),e.default=t=>tu(e,t),e.prefault=t=>td(e,t),e.catch=t=>ty(e,t),e.pipe=t=>tT(e,t),e.readonly=()=>tA(e),e.describe=t=>{let n=e.clone();return a.fd.add(n,{description:t}),n},Object.defineProperty(e,"description",{get:()=>a.fd.get(e)?.description,configurable:!0}),e.meta=(...t)=>{if(0===t.length)return a.fd.get(e);let n=e.clone();return a.fd.add(n,t[0]),n},e.isOptional=()=>e.safeParse(void 0).success,e.isNullable=()=>e.safeParse(null).success,e)),h=r.xI("_ZodString",(e,t)=>{i.$v.init(e,t),d.init(e,t);let n=e._zod.bag;e.format=n.format??null,e.minLength=n.minimum??null,e.maxLength=n.maximum??null,e.regex=(...t)=>e.check(o.Fk(...t)),e.includes=(...t)=>e.check(o.dR(...t)),e.startsWith=(...t)=>e.check(o.$S(...t)),e.endsWith=(...t)=>e.check(o.ER(...t)),e.min=(...t)=>e.check(o.m9(...t)),e.max=(...t)=>e.check(o.Eb(...t)),e.length=(...t)=>e.check(o.YA(...t)),e.nonempty=(...t)=>e.check(o.m9(1,...t)),e.lowercase=t=>e.check(o.hH(t)),e.uppercase=t=>e.check(o.qF(t)),e.trim=()=>e.check(o.WN()),e.normalize=(...t)=>e.check(o.lo(...t)),e.toLowerCase=()=>e.check(o.Il()),e.toUpperCase=()=>e.check(o.xY())}),p=r.xI("ZodString",(e,t)=>{i.$v.init(e,t),h.init(e,t),e.email=t=>e.check(o.Mu(g,t)),e.url=t=>e.check(o.Fn(k,t)),e.jwt=t=>e.check(o.rk(et,t)),e.emoji=t=>e.check(o.aC(w,t)),e.guid=t=>e.check(o.tB(v,t)),e.uuid=t=>e.check(o.Be(E,t)),e.uuidv4=t=>e.check(o.nA(E,t)),e.uuidv6=t=>e.check(o.pY(E,t)),e.uuidv7=t=>e.check(o.wA(E,t)),e.nanoid=t=>e.check(o.Dl(C,t)),e.guid=t=>e.check(o.tB(v,t)),e.cuid=t=>e.check(o.fs(R,t)),e.cuid2=t=>e.check(o.Bj(P,t)),e.ulid=t=>e.check(o.Ct(M,t)),e.base64=t=>e.check(o.rt(q,t)),e.base64url=t=>e.check(o.cU(X,t)),e.xid=t=>e.check(o.Pw(j,t)),e.ksuid=t=>e.check(o._z(F,t)),e.ipv4=t=>e.check(o.Ny($,t)),e.ipv6=t=>e.check(o.$O(H,t)),e.cidrv4=t=>e.check(o.Uy(Y,t)),e.cidrv6=t=>e.check(o.gP(V,t)),e.e164=t=>e.check(o.KB(J,t)),e.datetime=t=>e.check(u.datetime(t)),e.date=t=>e.check(u.date(t)),e.time=t=>e.check(u.time(t)),e.duration=t=>e.check(u.duration(t))});function f(e){return o.Rl(p,e)}let m=r.xI("ZodStringFormat",(e,t)=>{i.EY.init(e,t),h.init(e,t)}),g=r.xI("ZodEmail",(e,t)=>{i.qG.init(e,t),m.init(e,t)});function y(e){return o.Mu(g,e)}let v=r.xI("ZodGUID",(e,t)=>{i.Zc.init(e,t),m.init(e,t)});function b(e){return o.tB(v,e)}let E=r.xI("ZodUUID",(e,t)=>{i.Zn.init(e,t),m.init(e,t)});function T(e){return o.Be(E,e)}function _(e){return o.nA(E,e)}function A(e){return o.pY(E,e)}function x(e){return o.wA(E,e)}let k=r.xI("ZodURL",(e,t)=>{i.VY.init(e,t),m.init(e,t)});function S(e){return o.Fn(k,e)}let w=r.xI("ZodEmoji",(e,t)=>{i.cG.init(e,t),m.init(e,t)});function I(e){return o.aC(w,e)}let C=r.xI("ZodNanoID",(e,t)=>{i.Py.init(e,t),m.init(e,t)});function N(e){return o.Dl(C,e)}let R=r.xI("ZodCUID",(e,t)=>{i.bl.init(e,t),m.init(e,t)});function O(e){return o.fs(R,e)}let P=r.xI("ZodCUID2",(e,t)=>{i.Zu.init(e,t),m.init(e,t)});function D(e){return o.Bj(P,e)}let M=r.xI("ZodULID",(e,t)=>{i.g5.init(e,t),m.init(e,t)});function L(e){return o.Ct(M,e)}let j=r.xI("ZodXID",(e,t)=>{i.TF.init(e,t),m.init(e,t)});function z(e){return o.Pw(j,e)}let F=r.xI("ZodKSUID",(e,t)=>{i.GY.init(e,t),m.init(e,t)});function B(e){return o._z(F,e)}let $=r.xI("ZodIPv4",(e,t)=>{i.Lc.init(e,t),m.init(e,t)});function U(e){return o.Ny($,e)}let H=r.xI("ZodIPv6",(e,t)=>{i.Zy.init(e,t),m.init(e,t)});function G(e){return o.$O(H,e)}let Y=r.xI("ZodCIDRv4",(e,t)=>{i.CI.init(e,t),m.init(e,t)});function Z(e){return o.Uy(Y,e)}let V=r.xI("ZodCIDRv6",(e,t)=>{i.Cn.init(e,t),m.init(e,t)});function W(e){return o.gP(V,e)}let q=r.xI("ZodBase64",(e,t)=>{i.Dq.init(e,t),m.init(e,t)});function K(e){return o.rt(q,e)}let X=r.xI("ZodBase64URL",(e,t)=>{i.CQ.init(e,t),m.init(e,t)});function Q(e){return o.cU(X,e)}let J=r.xI("ZodE164",(e,t)=>{i.Oy.init(e,t),m.init(e,t)});function ee(e){return o.KB(J,e)}let et=r.xI("ZodJWT",(e,t)=>{i.h8.init(e,t),m.init(e,t)});function en(e){return o.rk(et,e)}let er=r.xI("ZodCustomStringFormat",(e,t)=>{i.ZQ.init(e,t),m.init(e,t)});function ei(e,t,n={}){return o.Af(er,e,t,n)}let es=r.xI("ZodNumber",(e,t)=>{i.vz.init(e,t),d.init(e,t),e.gt=(t,n)=>e.check(o.Tx(t,n)),e.gte=(t,n)=>e.check(o.qm(t,n)),e.min=(t,n)=>e.check(o.qm(t,n)),e.lt=(t,n)=>e.check(o.Au(t,n)),e.lte=(t,n)=>e.check(o.Zm(t,n)),e.max=(t,n)=>e.check(o.Zm(t,n)),e.int=t=>e.check(el(t)),e.safe=t=>e.check(el(t)),e.positive=t=>e.check(o.Tx(0,t)),e.nonnegative=t=>e.check(o.qm(0,t)),e.negative=t=>e.check(o.Au(0,t)),e.nonpositive=t=>e.check(o.Zm(0,t)),e.multipleOf=(t,n)=>e.check(o.Hi(t,n)),e.step=(t,n)=>e.check(o.Hi(t,n)),e.finite=()=>e;let n=e._zod.bag;e.minValue=Math.max(n.minimum??-1/0,n.exclusiveMinimum??-1/0)??null,e.maxValue=Math.min(n.maximum??1/0,n.exclusiveMaximum??1/0)??null,e.isInt=(n.format??"").includes("int")||Number.isSafeInteger(n.multipleOf??.5),e.isFinite=!0,e.format=n.format??null});function ea(e){return o.F7(es,e)}let eo=r.xI("ZodNumberFormat",(e,t)=>{i.I.init(e,t),es.init(e,t)});function el(e){return o.LK(eo,e)}function eu(e){return o.HL(eo,e)}function ec(e){return o.g6(eo,e)}function ed(e){return o.sw(eo,e)}function eh(e){return o.P(eo,e)}let ep=r.xI("ZodBoolean",(e,t)=>{i.sF.init(e,t),d.init(e,t)});function ef(e){return o._L(ep,e)}let em=r.xI("ZodBigInt",(e,t)=>{i.BN.init(e,t),d.init(e,t),e.gte=(t,n)=>e.check(o.qm(t,n)),e.min=(t,n)=>e.check(o.qm(t,n)),e.gt=(t,n)=>e.check(o.Tx(t,n)),e.gte=(t,n)=>e.check(o.qm(t,n)),e.min=(t,n)=>e.check(o.qm(t,n)),e.lt=(t,n)=>e.check(o.Au(t,n)),e.lte=(t,n)=>e.check(o.Zm(t,n)),e.max=(t,n)=>e.check(o.Zm(t,n)),e.positive=t=>e.check(o.Tx(BigInt(0),t)),e.negative=t=>e.check(o.Au(BigInt(0),t)),e.nonpositive=t=>e.check(o.Zm(BigInt(0),t)),e.nonnegative=t=>e.check(o.qm(BigInt(0),t)),e.multipleOf=(t,n)=>e.check(o.Hi(t,n));let n=e._zod.bag;e.minValue=n.minimum??null,e.maxValue=n.maximum??null,e.format=n.format??null});function eg(e){return o.z$(em,e)}let ey=r.xI("ZodBigIntFormat",(e,t)=>{i.IT.init(e,t),em.init(e,t)});function ev(e){return o.Jg(ey,e)}function eb(e){return o.ii(ey,e)}let eE=r.xI("ZodSymbol",(e,t)=>{i.U5.init(e,t),d.init(e,t)});function eT(e){return o.W7(eE,e)}let e_=r.xI("ZodUndefined",(e,t)=>{i.Mv.init(e,t),d.init(e,t)});function eA(e){return o.E4(e_,e)}let ex=r.xI("ZodNull",(e,t)=>{i.x8.init(e,t),d.init(e,t)});function ek(e){return o.jw(ex,e)}let eS=r.xI("ZodAny",(e,t)=>{i.Gb.init(e,t),d.init(e,t)});function ew(){return o.KA(eS)}let eI=r.xI("ZodUnknown",(e,t)=>{i.GP.init(e,t),d.init(e,t)});function eC(){return o.em(eI)}let eN=r.xI("ZodNever",(e,t)=>{i.Um.init(e,t),d.init(e,t)});function eR(e){return o.G8(eN,e)}let eO=r.xI("ZodVoid",(e,t)=>{i.WH.init(e,t),d.init(e,t)});function eP(e){return o.OC(eO,e)}let eD=r.xI("ZodDate",(e,t)=>{i.o5.init(e,t),d.init(e,t),e.min=(t,n)=>e.check(o.qm(t,n)),e.max=(t,n)=>e.check(o.Zm(t,n));let n=e._zod.bag;e.minDate=n.minimum?new Date(n.minimum):null,e.maxDate=n.maximum?new Date(n.maximum):null});function eM(e){return o.YY(eD,e)}let eL=r.xI("ZodArray",(e,t)=>{i.$p.init(e,t),d.init(e,t),e.element=t.element,e.min=(t,n)=>e.check(o.m9(t,n)),e.nonempty=t=>e.check(o.m9(1,t)),e.max=(t,n)=>e.check(o.Eb(t,n)),e.length=(t,n)=>e.check(o.YA(t,n)),e.unwrap=()=>e.element});function ej(e,t){return o.dZ(eL,e,t)}function ez(e){return e8(Object.keys(e._zod.def.shape))}let eF=r.xI("ZodObject",(e,t)=>{i.L8.init(e,t),d.init(e,t),s.defineLazy(e,"shape",()=>t.shape),e.keyof=()=>e9(Object.keys(e._zod.def.shape)),e.catchall=t=>e.clone({...e._zod.def,catchall:t}),e.passthrough=()=>e.clone({...e._zod.def,catchall:eC()}),e.loose=()=>e.clone({...e._zod.def,catchall:eC()}),e.strict=()=>e.clone({...e._zod.def,catchall:eR()}),e.strip=()=>e.clone({...e._zod.def,catchall:void 0}),e.extend=t=>s.extend(e,t),e.merge=t=>s.merge(e,t),e.pick=t=>s.pick(e,t),e.omit=t=>s.omit(e,t),e.partial=(...t)=>s.partial(tr,e,t[0]),e.required=(...t)=>s.required(th,e,t[0])});function eB(e,t){return new eF({type:"object",get shape(){return s.assignProp(this,"shape",{...e}),this.shape},...s.normalizeParams(t)})}function e$(e,t){return new eF({type:"object",get shape(){return s.assignProp(this,"shape",{...e}),this.shape},catchall:eR(),...s.normalizeParams(t)})}function eU(e,t){return new eF({type:"object",get shape(){return s.assignProp(this,"shape",{...e}),this.shape},catchall:eC(),...s.normalizeParams(t)})}let eH=r.xI("ZodUnion",(e,t)=>{i.cu.init(e,t),d.init(e,t),e.options=t.options});function eG(e,t){return new eH({type:"union",options:e,...s.normalizeParams(t)})}let eY=r.xI("ZodDiscriminatedUnion",(e,t)=>{eH.init(e,t),i.P0.init(e,t)});function eZ(e,t,n){return new eY({type:"union",options:t,discriminator:e,...s.normalizeParams(n)})}let eV=r.xI("ZodIntersection",(e,t)=>{i.LJ.init(e,t),d.init(e,t)});function eW(e,t){return new eV({type:"intersection",left:e,right:t})}let eq=r.xI("ZodTuple",(e,t)=>{i.G3.init(e,t),d.init(e,t),e.rest=t=>e.clone({...e._zod.def,rest:t})});
5function eK(e,t,n){let r=t instanceof i.W4,a=r?n:t;return new eq({type:"tuple",items:e,rest:r?t:null,...s.normalizeParams(a)})}let eX=r.xI("ZodRecord",(e,t)=>{i.h.init(e,t),d.init(e,t),e.keyType=t.keyType,e.valueType=t.valueType});function eQ(e,t,n){return new eX({type:"record",keyType:e,valueType:t,...s.normalizeParams(n)})}function eJ(e,t,n){return new eX({type:"record",keyType:eG([e,eR()]),valueType:t,...s.normalizeParams(n)})}let e0=r.xI("ZodMap",(e,t)=>{i.eb.init(e,t),d.init(e,t),e.keyType=t.keyType,e.valueType=t.valueType});function e1(e,t,n){return new e0({type:"map",keyType:e,valueType:t,...s.normalizeParams(n)})}let e2=r.xI("ZodSet",(e,t)=>{i.Oi.init(e,t),d.init(e,t),e.min=(...t)=>e.check(o.Nd(...t)),e.nonempty=t=>e.check(o.Nd(1,t)),e.max=(...t)=>e.check(o.vL(...t)),e.size=(...t)=>e.check(o.d$(...t))});function e3(e,t){return new e2({type:"set",valueType:e,...s.normalizeParams(t)})}let e4=r.xI("ZodEnum",(e,t)=>{i.VO.init(e,t),d.init(e,t),e.enum=t.entries,e.options=Object.values(t.entries);let n=new Set(Object.keys(t.entries));e.extract=(e,r)=>{let i={};for(let r of e)if(n.has(r))i[r]=t.entries[r];else throw Error(`Key ${r} not found in enum`);return new e4({...t,checks:[],...s.normalizeParams(r),entries:i})},e.exclude=(e,r)=>{let i={...t.entries};for(let t of e)if(n.has(t))delete i[t];else throw Error(`Key ${t} not found in enum`);return new e4({...t,checks:[],...s.normalizeParams(r),entries:i})}});function e9(e,t){return new e4({type:"enum",entries:Array.isArray(e)?Object.fromEntries(e.map(e=>[e,e])):e,...s.normalizeParams(t)})}function e5(e,t){return new e4({type:"enum",entries:e,...s.normalizeParams(t)})}let e6=r.xI("ZodLiteral",(e,t)=>{i.nu.init(e,t),d.init(e,t),e.values=new Set(t.values),Object.defineProperty(e,"value",{get(){if
5(t.values.length>1)throw Error("This schema contains multiple valid literal values. Use `.values` instead.");return t.values[0]}})});function e8(e,t){return new e6({type:"literal",values:Array.isArray(e)?e:[e],...s.normalizeParams(t)})}let e7=r.xI("ZodFile",(e,t)=>{i.CT.init(e,t),d.init(e,t),e.min=(t,n)=>e.check(o.Nd(t,n)),e.max=(t,n)=>e.check(o.vL(t,n)),e.mime=(t,n)=>e.check(o.GZ(Array.isArray(t)?t:[t],n))});function te(e){return o.K2(e7,e)}let tt=r.xI("ZodTransform",(e,t)=>{i.Wc.init(e,t),d.init(e,t),e._zod.parse=(n,r)=>{n.addIssue=r=>{"string"==typeof r?n.issues.push(s.issue(r,n.value,t)):(r.fatal&&(r.continue=!1),r.code??(r.code="custom"),r.input??(r.input=n.value),r.inst??(r.inst=e),r.continue??(r.continue=!0),n.issues.push(s.issue(r)))};let i=t.transform(n.value,n);return i instanceof Promise?i.then(e=>(n.value=e,n)):(n.value=i,n)}});function tn(e){return new tt({type:"transform",transform:e})}let tr=r.xI("ZodOptional",(e,t)=>{i.ig.init(e,t),d.init(e,t),e.unwrap=()=>e._zod.def.innerType});function ti(e){return new tr({type:"optional",innerType:e})}let ts=r.xI("ZodNullable",(e,t)=>{i.qc.init(e,t),d.init(e,t),e.unwrap=()=>e._zod.def.innerType});function ta(e){return new ts({type:"nullable",innerType:e})}function to(e){return ti(ta(e))}let tl=r.xI("ZodDefault",(e,t)=>{i.rv.init(e,t),d.init(e,t),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap});function tu(e,t){return new tl({type:"default",innerType:e,get defaultValue(){return"function"==typeof t?t():t}})}let tc=r.xI("ZodPrefault",(e,t)=>{i.VF.init(e,t),d.init(e,t),e.unwrap=()=>e._zod.def.innerType});function td(e,t){return new tc({type:"prefault",innerType:e,get defaultValue(){return"function"==typeof t?t():t}})}let th=r.xI("ZodNonOptional",(e,t)=>{i.N$.init(e,t),d.init(e,t),e.unwrap=()=>e._zod.def.innerType});function tp(e,t){return new th({type:"nonoptional",innerType:e,...s.normalizeParams(t)})}let tf=r.xI("ZodSuccess",(e,t)=>{i.Dw.init(e,t),d.init(e,t),e.unwrap=()=>e._zod.def.innerType});function tm(e){return new tf({type:"success",innerType:e})}let tg=r.xI("ZodCatch",(e,t)=>{i.t$.init(e,t),d.init(e,t),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap});function ty(e,t){return new tg({type:"catch",innerType:e,catchValue:"function"==typeof t?t:()=>t})}let tv=r.xI("ZodNaN",(e,t)=>{i.zP.init(e,t),d.init(e,t)});function tb(e){return o.L4(tv,e)}let tE=r.xI("ZodPipe",(e,t)=>{i._m.init(e,t),d.init(e,t),e.in=t.in,e.out=t.out});function tT(e,t){return new tE({type:"pipe",in:e,out:t})}let t_=r.xI("ZodReadonly",(e,t)=>{i.Sb.init(e,t),d.init(e,t)});function tA(e){return new t_({type:"readonly",innerType:e})}let tx=r.xI("ZodTemplateLiteral",(e,t)=>{i.d.init(e,t),d.init(e,t)});function tk(e,t){return new tx({type:"template_literal",parts:e,...s.normalizeParams(t)})}let tS=r.xI("ZodLazy",(e,t)=>{i.kU.init(e,t),d.init(e,t),e.unwrap=()=>e._zod.def.getter()});function tw(e){return new tS({type:"lazy",getter:e})}let tI=r.xI("ZodPromise",(e,t)=>{i.hA.init(e,t),d.init(e,t),e.unwrap=()=>e._zod.def.innerType});function tC(e){return new tI({type:"promise",innerType:e})}let tN=r.xI("ZodCustom",(e,t)=>{i.b0.init(e,t),d.init(e,t)});function tR(e){let t=new l.QP({check:"custom"});return t._zod.check=e,t}function tO(e,t){return o.FO(tN,e??(()=>!0),t)}function tP(e,t={}){return o.fU(tN,e,t)}function tD(e){let t=tR(n=>(n.addIssue=e=>{"string"==typeof e?n.issues.push(s.issue(e,n.value,t._zod.def)):(e.fatal&&(e.continue=!1),e.code??(e.code="custom"),e.input??(e.input=n.value),e.inst??(e.inst=t),e.continue??(e.continue=!t._zod.def.abort),n.issues.push(s.issue(e)))},e(n.value,n)));return t}function tM(e,t={error:`Input not instance of ${e.name}`}){let n=new tN({type:"custom",check:"custom",fn:t=>t instanceof e,abort:!0,...s.normalizeParams(t)});return n._zod.bag.Class=e,n}let tL=(...e)=>o.fI({Pipe:tE,Boolean:ep,String:p,Transform:tt},...e);function tj(e){let t=tw(()=>eG([f(e),ea(),ef(),ek(),ej(t),eQ(f(),t)]));return t}function tz(e,t){return tT(tn(e),t)}},26822:(e,t,n)=>{n.d(t,{A:()=>r});let r=(0,n(45751).A)("chevron-right",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]])},26950:(e,t,n)=>{n.d(t,{EJ:()=>u,Od:()=>c,Rb:()=>l,Tj:()=>a,bp:()=>p,qg:()=>o,wG:()=>h,xL:()=>d});var r=n(13452),i=n(69684),s=n(61807);let a=e=>(t,n,i,a)=>{let o=i?Object.assign(i,{async:!1}):{async:!1},l=t._zod.run({value:n,issues:[]},o);if(l instanceof Promise)throw new r.GT;if(l.issues.length){let t=new(a?.Err??e)(l.issues.map(e=>s.finalizeIssue(e,o,r.$W())));throw s.captureStackTrace(t,a?.callee),t}return l.value},o=a(i.Kd),l=e=>async(t,n,i,a)=>{let o=i?Object.assign(i,{async:!0}):{async:!0},l=t._zod.run({value:n,issues:[]},o);if(l instanceof Promise&&(l=await l),l.issues.length){let t=new(a?.Err??e)(l.issues.map(e=>s.finalizeIssue(e,o,r.$W())));throw s.captureStackTrace(t,a?.callee),t}return l.value},u=l(i.Kd),c=e=>(t,n,a)=>{let o=a?{...a,async:!1}:{async:!1},l=t._zod.run({value:n,issues:[]},o);if(l instanceof Promise)throw new r.GT;return l.issues.length?{success:!1,error:new(e??i.a$)(l.issues.map(e=>s.finalizeIssue(e,o,r.$W())))}:{success:!0,data:l.value}},d=c(i.Kd),h=e=>async(t,n,i)=>{let a=i?Object.assign(i,{async:!0}):{async:!0},o=t._zod.run({value:n,issues:[]},a);return o instanceof Promise&&(o=await o),o.issues.length?{success:!1,error:new e(o.issues.map(e=>s.finalizeIssue(e,a,r.$W())))}:{success:!0,data:o.value}},p=h(i.Kd)},27008:(e,t,n)=>
5{Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"RouterContext",{enumerable:!0,get:function(){return r}});let r=n(59224)._(n(23073)).default.createContext(null)},27232:(e,t,n)=>{n.d(t,{F:()=>i,m:()=>s});var r=n(50742);function i(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return s(e)}function s(e){return 0===e.length?r.D:1===e.length?e[0]:function(t){return e.reduce(function(e,t){return t(e)},t)}}},27486:(e,t,n)=>{n.d(t,{c:()=>p});var r=n(87611),i=n(89823),s=n(28866),a=n(9154),o=n(76509),l=n(13720),u=n(59761),c=n(65174),d=n(62521),h=n(868);function p(e,t){void 0===t&&(t=r.E);var n,p,f,m,g=(n=e,p=t,void 0===n&&(n=0),void 0===f&&(f=r.b),m=-1,null!=p&&((0,d.m)(p)?f=p:m=p),new c.c(function(e){var t=(0,h.v)(n)?n-f.now():n;t<0&&(t=0);var r=0;return f.schedule(function(){e.closed||(e.next(r++),0<=m?this.schedule(void 0,m):e.complete())},t)}));return function e(t,n){return n?function(r){return(0,i.x)(n.pipe((0,s.s)(1),(0,a.w)()),r.pipe(e(t)))}:(0,l.Z)(function(e,n){return(0,u.Tg)(t(e,n)).pipe((0,s.s)(1),(0,o.T)(function(){return e}))})}(function(){return g})}},28202:(e,t,n)=>{n.d(t,{P:()=>r});let r=function(e){if("undefined"==typeof Proxy)return e;let t=new Map;return new Proxy((...t)=>e(...t),{get:(n,r)=>"create"===r?e:(t.has(r)||t.set(r,e(r)),t.get(r))})}(n(54565).G)},28366:(e,t,n)=>{n.d(t,{E:()=>a});var r=n(80150),i=n(38207);let s=Object.keys(i);class a extends r.R{constructor(e,t,n,r){let a=-1;if(super(e,t),function(e,t,n){n&&(e[t]=n)}(this,"space",r),"number"==typeof n)for(;++a<s.length;){let e=s[a];!function(e,t,n){n&&(e[t]=n)}(this,s[a],(n&i[e])===i[e])}}}a.prototype.defined=!0},28861:(e,t,n)=>{n.d(t,{Ar:()=>tw,xO:()=>to,qB:()=>tI,N4:()=>eE,BR:()=>eO,I$:()=>eb,bt:()=>eq,l8:()=>eD});var r={};n.r(r),n.d(r,{JsonPatchError:()=>y,_areEquals:()=>w,applyOperation:()=>_,applyPatch:()=>A,applyReducer:()=>x,deepClone:()=>v,getValueByPointer:()=>T,validate:()=>S,validator:()=>k});var i={};n.r(i),n.d(i,{compare:()=>M,generate:()=>P,observe:()=>O,unobserve:()=>R});var s=n(33828),a=n(31900),o=function(){var e=function(t,n){return(e=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),l=Object.prototype.hasOwnProperty;function u(e,t){return l.call(e,t)}function c(e){if(Array.isArray(e)){for(var t=Array(e.length),n=0;n<t.length;n++)t[n]=""+n;return t}if(Object.keys)return Object.keys(e);var r=[];for(var i in e)u(e,i)&&r.push(i);return r}function d(e){switch(typeof e){case"object":return JSON.parse(JSON.stringify(e));case"undefined":return null;default:return e}}function h(e){for(var t,n=0,r=e.length;n<r;){if((t=e.charCodeAt(n))>=48&&t<=57){n++;continue}return!1}return!0}function p(e){return -1===e.indexOf("/")&&-1===e.indexOf("~")?e:e.replace(/~/g,"~0").replace(/\//g,"~1")}function f(e){return e.replace(/~1/g,"/").replace(/~0/g,"~")}function m(e,t){var n=[e];for(var r in t){var i="object"==typeof t[r]?JSON.stringify(t[r],null,2):t[r];void 0!==i&&n.push(r+": "+i)}return n.join("\n")}var g=function(e){function t(t,n,r,i,s){var a=this.constructor,o=e.call(this,m(t,{name:n,index:r,operation:i,tree:s}))||this;return o.name=n,o.index=r,o.operation=i,o.tree=s,Object.setPrototypeOf(o,a.prototype),o.message=m(t,{name:n,index:r,operation:i,tree:s}),o}return o(t,e),t}(Error),y=g,v=d,b={add:function(e,t,n){return e[t]=this.value,{newDocument:n}},remove:function(e,t,n){var r=e[t];return delete e[t],{newDocument:n,removed:r}},replace:function(e,t,n){var r=e[t];return e[t]=this.value,{newDocument:n,removed:r}},move:function(e,t,n){var r=T(n,this.path);r&&(r=d(r));var i=_(n,{op:"remove",path:this.from}).removed;return _(n,{op:"add",path:this.path,value:i}),{newDocument:n,removed:r}},copy:function(e,t,n){var r=T(n,this.from);return _(n,{op:"add",path:this.path,value:d(r)}),{newDocument:n}},test:function(e,t,n){return{newDocument:n,test:w(e[t],this.value)}},_get:function(e,t,n){return this.value=e[t],{newDocument:n}}}
5,E={add:function(e,t,n){return h(t)?e.splice(t,0,this.value):e[t]=this.value,{newDocument:n,index:t}},remove:function(e,t,n){return{newDocument:n,removed:e.splice(t,1)[0]}},replace:function(e,t,n){var r=e[t];return e[t]=this.value,{newDocument:n,removed:r}},move:b.move,copy:b.copy,test:b.test,_get:b._get};function T(e,t){if(""==t)return e;var n={op:"_get",path:t};return _(e,n),n.value}function _(e,t,n,r,i,s){if(void 0===n&&(n=!1),void 0===r&&(r=!0),void 0===i&&(i=!0),void 0===s&&(s=0),n&&("function"==typeof n?n(t,0,e,t.path):k(t,0)),""===t.path){var a={newDocument:e};if("add"===t.op)return a.newDocument=t.value,a;if("replace"===t.op)return a.newDocument=t.value,a.removed=e,a;if("move"===t.op||"copy"===t.op)return a.newDocument=T(e,t.from),"move"===t.op&&(a.removed=e),a;else if("test"===t.op){if(a.test=w(e,t.value),!1===a.test)throw new y("Test operation failed","TEST_OPERATION_FAILED",s,t,e);return a.newDocument=e,a}else if("remove"===t.op)return a.removed=e,a.newDocument=null,a;else if("_get"===t.op)return t.value=e,a;else if(!n)return a;else throw new y("Operation `op` property is not one of operations defined in RFC-6902","OPERATION_OP_INVALID",s,t,e)}r||(e=d(e));var o=(t.path||"").split("/"),l=e,u=1,c=o.length,p=void 0,m=void 0,g=void 0;for(g="function"==typeof n?n:k;;){if((m=o[u])&&-1!=m.indexOf("~")&&(m=f(m)),i&&("__proto__"==m||"prototype"==m&&u>0&&"constructor"==o[u-1]))throw TypeError("JSON-Patch: modifying `__proto__` or `constructor/prototype` prop is banned for security reasons, if this was on purpose, please set `banPrototypeModifications` flag false and pass it to this function. More info in fast-json-patch README");if(n&&void 0===p&&(void 0===l[m]?p=o.slice(0,u).join("/"):u==c-1&&(p=t.path),void 0!==p&&g(t,0,e,p)),u++,Array.isArray(l)){if("-"===m)m=l.length;else if(n&&!h(m))throw new y("Expected an unsigned base-10 integer value, making the new referenced value the array element with the zero-based index","OPERATION_PATH_ILLEGAL_ARRAY_INDEX",s,t,e);else h(m)&&(m=~~m);if(u>=c){if(n&&"add"===t.op&&m>l.length)throw new y("The specified index MUST NOT be greater than the number of elements in the array","OPERATION_VALUE_OUT_OF_BOUNDS",s,t,e);var a=E[t.op].call(t,l,m,e);if(!1===a.test)throw new y("Test operation failed","TEST_OPERATION_FAILED",s,t,e);return a}}else if(u>=c){var a=b[t.op].call(t,l,m,e);if(!1===a.test)throw new y("Test operation failed","TEST_OPERATION_FAILED",s,t,e);return a}if(l=l[m],n&&u<c&&(!l||"object"!=typeof l))throw new y("Cannot perform operation at the desired path","OPERATION_PATH_UNRESOLVABLE",s,t,e)}}function A(e,t,n,r,i){if(void 0===r&&(r=!0),void 0===i&&(i=!0),n&&!Array.isArray(t))throw new y("Patch sequence must be an array","SEQUENCE_NOT_AN_ARRAY");r||(e=d(e));for(var s=Array(t.length),a=0,o=t.length;a<o;a++)s[a]=_(e,t[a],n,!0,i,a),e=s[a].newDocument;return s.newDocument=e,s}function x(e,t,n){var r=_(e,t);if(!1===r.test)throw new y("Test operation failed","TEST_OPERATION_FAILED",n,t,e);return r.newDocument}function k(e,t,n,r){if("object"!=typeof e||null===e||Array.isArray(e))throw new y("Operation is not an object","OPERATION_NOT_AN_OBJECT",t,e,n);if(b[e.op]){if("string"!=typeof e.path)throw new y("Operation `path` property is not a string","OPERATION_PATH_INVALID",t,e,n);else if(0!==e.path.indexOf("/")&&e.path.length>0)throw new y('Operation `path` property must start with "/"',"OPERATION_PATH_INVALID",t,e,n);else if(("move"===e.op||"copy"===e.op)&&"string"!=typeof e.from)throw new y("Operation `from` property is not present (applicable in `move` and `copy` operations)","OPERATION_FROM_REQUIRED",t,e,n);else if(("add"===e.op||"replace"===e.op||"test"===e.op)&&void 0===e.value)throw new y("Operation `value` property is not present (applicable in `add`, `replace` and `test` operations)","OPERATION_VALUE_REQUIRED",t,e,n);else if(("add"===e.op||"replace"===e.op||"test"===e.op)&&function e(t){if(void 0===t)return!0;if(t){if(Array.isArray(t)){for(var n=0,r=t.length;n<r;n++)if(e(t[n]))return!0}else if("object"==typeof t){for(var i=c(t),s=i.length,a=0;a<s;a++)if(e(t[i[a]]))return!0}}return!1}(e.value))throw new y("Operation `value` property is not present (applicable in `add`, `replace` and `test` operations)","OPERATION_VALUE_CANNOT_CONTAIN_UNDEFINED",t,e,n);else if(n){if("add"==e.op){var i=e.path.split("/").length,s=r.split("/").length;if(i!==s+1&&i!==s)throw new y("Cannot perform an `add` operation at the desired path","OPERATION_PATH_CANNOT_ADD",t,e,n)}else if("replace"===e.op||"remove"===e.op||"_get"===e.op){if(e.path!==r)throw new y("Cannot perform the operation at a path that does not exist","OPERATION_PATH_UNRESOLVABLE",t,e,n)}else if("move"===e.op||"copy"===e.op){var a=S([{op:"_get",path:e.from,value:void 0}],n);if(a&&"OPERATION_PATH_UNRESOLVABLE"===a.name)throw new y("Cannot perform the operation from a path that does not exist","OPERATION_FROM_UNRESOLVABLE",t,e,n)}}}else throw new y("Operation `op` property is not one of operations defined in RFC-6902","OPERATION_OP_INVALID",t,e,n)}function S(e,t,n){try{if(!Array.isArray(e))throw new y("Patch sequence must be an array","SEQUENCE_NOT_AN_ARRAY");if(t)A(d(t),d(e),n||!0);else{n=n||k;for(var r=0;r<e.length;r++)n(e[r],r,t,void 0)}}catch(e){if(e instanceof y)return e;throw e}}function w(e,t){if(e===t)return!0;
5if(e&&t&&"object"==typeof e&&"object"==typeof t){var n,r,i,s=Array.isArray(e),a=Array.isArray(t);if(s&&a){if((r=e.length)!=t.length)return!1;for(n=r;0!=n--;)if(!w(e[n],t[n]))return!1;return!0}if(s!=a)return!1;var o=Object.keys(e);if((r=o.length)!==Object.keys(t).length)return!1;for(n=r;0!=n--;)if(!t.hasOwnProperty(o[n]))return!1;for(n=r;0!=n--;)if(!w(e[i=o[n]],t[i]))return!1;return!0}return e!=e&&t!=t}var I=new WeakMap,C=function(e){this.observers=new Map,this.obj=e},N=function(e,t){this.callback=e,this.observer=t};function R(e,t){t.unobserve()}function O(e,t){var n=I.get(e);if(n){var r,i=n.observers.get(t);r=i&&i.observer}else n=new C(e),I.set(e,n);if(r)return r;if(r={},n.value=d(e),t){r.callback=t,r.next=null;var s=function(){P(r)},a=function(){clearTimeout(r.next),r.next=setTimeout(s)};"undefined"!=typeof window&&(window.addEventListener("mouseup",a),window.addEventListener("keyup",a),window.addEventListener("mousedown",a),window.addEventListener("keydown",a),window.addEventListener("change",a))}return r.patches=[],r.object=e,r.unobserve=function(){var e,t;P(r),clearTimeout(r.next),e=n,t=r,e.observers.delete(t.callback),"undefined"!=typeof window&&(window.removeEventListener("mouseup",a),window.removeEventListener("keyup",a),window.removeEventListener("mousedown",a),window.removeEventListener("keydown",a),window.removeEventListener("change",a))},n.observers.set(t,new N(t,r)),r}function P(e,t){void 0===t&&(t=!1);var n=I.get(e.object);D(n.value,e.object,e.patches,"",t),e.patches.length&&A(n.value,e.patches);var r=e.patches;return r.length>0&&(e.patches=[],e.callback&&e.callback(r)),r}function D(e,t,n,r,i){if(t!==e){"function"==typeof t.toJSON&&(t=t.toJSON());for(var s=c(t),a=c(e),o=!1,l=a.length-1;l>=0;l--){var h=a[l],f=e[h];if(u(t,h)&&(void 0!==t[h]||void 0===f||!1!==Array.isArray(t))){var m=t[h];"object"==typeof f&&null!=f&&"object"==typeof m&&null!=m&&Array.isArray(f)===Array.isArray(m)?D(f,m,n,r+"/"+p(h),i):f!==m&&(i&&n.push({op:"test",path:r+"/"+p(h),value:d(f)}),n.push({op:"replace",path:r+"/"+p(h),value:d(m)}))}else Array.isArray(e)===Array.isArray(t)?(i&&n.push({op:"test",path:r+"/"+p(h),value:d(f)}),n.push({op:"remove",path:r+"/"+p(h)}),o=!0):(i&&n.push({op:"test",path:r,value:e}),n.push({op:"replace",path:r,value:t}))}if(o||s.length!=a.length)for(var l=0;l<s.length;l++){var h=s[l];u(e,h)||void 0===t[h]||n.push({op:"add",path:r+"/"+p(h),value:d(t[h])})}}}function M(e,t,n){void 0===n&&(n=!1);var r=[];return D(e,t,r,"",n),r}let L=Object.assign({},r,i,{JsonPatchError:g,deepClone:d,escapePathComponent:p,unescapePathComponent:f});var j=n(71766),z=n(24216),F=n(36093),B=n(89425),$=n(22338),U=n(65174),H=n(3870),G=n(89264),Y=n(13720),Z=n(20335),V=n(60644),W=n(27232),q=n(6829),K=n(22698),X=n(34401),Q=n(28963),J=n(2141),ee=n(76509),et=n(38099),en=n(99438),er=n(51346),ei=n(98818);function es(e){return" \r\n ".indexOf(e)>=0}function ea(e){for(var t,n,r,i=["topLevel"],s=0,a=function(e){return i.push(e)},o=function(e){return i[i.length-1]=e},l=function(e){null==t&&(t=s,n=i.length,r=e)},u=function(e){e===r&&(t=void 0,n=void 0,r=void 0)},c=function(){return i.pop()},d=function(){return s--},h=function(e){if("0"<=e&&e<="9")return void a("number");switch(e){case'"':a("string");return;case"-":a("numberNeedsDigit");return;case"t":a("true");return;case"f":a("false");return;case"n":a("null");return;case"[":a("arrayNeedsValue");return;case"{":a("objectNeedsKey");return}},p=e.length;s<p;s++){var f=e[s];switch(i[i.length-1]){case"topLevel":h(f);break;case"string":switch(f){case'"':c();break;case"\\":l("stringEscape"),a("stringEscaped")}break;case"stringEscaped":"u"===f?a("stringUnicode"):(u("stringEscape"),c());break;case"stringUnicode":s-e.lastIndexOf("u",s)==4&&(u("stringEscape"),c());break;case"number":"."===f?o("numberNeedsDigit"):"e"===f||"E"===f?o("numberNeedsExponent"):(f<"0"||f>"9")&&(d(),c());break;case"numberNeedsDigit":o("number");break;case"numberNeedsExponent":o("+"===f||"-"===f?"numberNeedsDigit":"number");break;case"true":case"false":case"null":(f<"a"||f>"z")&&(d(),c());break;case"arrayNeedsValue":"]"===f?c():es(f)||(u("collectionItem"),o("arrayNeedsComma"),h(f));break;case"arrayNeedsComma":"]"===f?c():","===f&&(l("collectionItem"),o("arrayNeedsValue"));break;case"objectNeedsKey":"}"===f?c():'"'===f&&(l("collectionItem"),o("objectNeedsColon"),a("string"));break;case"objectNeedsColon":":"===f&&o("objectNeedsValue");break;case"objectNeedsValue":es(f)||(u("collectionItem"),o("objectNeedsComma"),h(f));break;case"objectNeedsComma":"}"===f?c():","===f&&(l("collectionItem"),o("objectNeedsKey"))}}null!=n&&(i.length=n);for(var m=[null!=t?e.slice(0,t):e],g=function(t){return m.push(t.slice(e.length-e.lastIndexOf(t[0])))},y=i.length-1;y>=0;
5y--)switch(i[y]){case"string":m.push('"');break;case"numberNeedsDigit":case"numberNeedsExponent":m.push("0");break;case"true":g("true");break;case"false":g("false");break;case"null":g("null");break;case"arrayNeedsValue":case"arrayNeedsComma":m.push("]");break;case"objectNeedsKey":case"objectNeedsColon":case"objectNeedsValue":case"objectNeedsComma":m.push("}")}return m.join("")}var eo=n(53165);let el=/^[v^~<>=]*?(\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+))?(?:-([\da-z\-]+(?:\.[\da-z\-]+)*))?(?:\+[\da-z\-]+(?:\.[\da-z\-]+)*)?)?)?$/i,eu=e=>{if("string"!=typeof e)throw TypeError("Invalid argument expected string");let t=e.match(el);if(!t)throw Error(`Invalid argument not valid semver ('${e}' received)`);return t.shift(),t},ec=e=>"*"===e||"x"===e||"X"===e,ed=e=>{let t=parseInt(e,10);return isNaN(t)?e:t},eh=(e,t)=>{if(ec(e)||ec(t))return 0;let[n,r]=((e,t)=>typeof e!=typeof t?[String(e),String(t)]:[e,t])(ed(e),ed(t));return n>r?1:n<r?-1:0},ep=(e,t)=>{for(let n=0;n<Math.max(e.length,t.length);n++){let r=eh(e[n]||"0",t[n]||"0");if(0!==r)return r}return 0},ef=(e,t)=>{let n=eu(e),r=eu(t),i=n.pop(),s=r.pop(),a=ep(n,r);return 0!==a?a:i&&s?ep(i.split("."),s.split(".")):i||s?i?-1:1:0};var em=n(76520),eg=n(26452),ey=n(30880);let ev="@ag-ui/client",eb=e=>{if("function"==typeof structuredClone)return structuredClone(e);try{return JSON.parse(JSON.stringify(e))}catch{return Array.isArray(e)?[...e]:{...e}}};function eE(){return(0,s.A)()}function eT(e){if(Object.freeze(e),"object"==typeof e&&e)for(let t of Object.values(e))"object"==typeof t&&t&&!Object.isFrozen(t)&&eT(t);return e}function e_(e,t,n){let r=0,i=[e,t],s=new WeakSet;for(;i.length>0;){let e=i.pop();if("string"==typeof e){if((r+=e.length)>n)return!0}else if("object"==typeof e&&e){if(s.has(e))continue;if(s.add(e),Array.isArray(e))for(let t=0;t<e.length;t++)i.push(e[t]);else{let t=Object.keys(e);for(let s=0;s<t.length;s++){let a=t[s];if((r+=a.length)>n)return!0;i.push(e[a])}}}}return!1}async function eA(e,t,n,r){let i="u">typeof ey&&void 0!==ey.env,s=i&&!!ey.env.VITEST_WORKER_ID,a=i&&!!ey.env.VITEST_WORKER_ID,o=a&&!e_(t,n,524288),l=o?eb(t):t,u=o?eb(n):n,c=!1,d=!1,h;for(let t of e)try{o&&(eT(l),eT(u));let e=await r(t,l,u);if(void 0===e)continue;let n=!1;if(void 0!==e.messages&&e.messages!==l&&(l=eb(e.messages),c=!0,n=!0),void 0!==e.state&&e.state!==u&&(u=eb(e.state),d=!0,n=!0),o&&n&&e_(l,u,524288)&&(o=!1),h=e.stopPropagation,!0===h)break}catch(e){var p;if(s&&e instanceof TypeError)throw e;o&&a&&(p=e)instanceof TypeError&&/read[- ]?only|not extensible|cannot add property|cannot delete property|can't be deleted|unable to delete property|object is frozen|is not writable/i.test(p.message)?console.error("AG-UI: Subscriber attempted to mutate frozen inputs in-place. Return mutations via AgentStateMutation instead of mutating directly.",e):console.error("Subscriber error:",e);continue}return{...c?{messages:Object.isFrozen(l)?eb(l):l}:{},...d?{state:Object.isFrozen(u)?eb(u):u}:{},...void 0===h?{}:{stopPropagation:h}}}function ex(e){if(!e)return{enabled:!1,events:!1,lifecycle:!1,verbose:!1};if(!0===e)return{enabled:!0,events:!0,lifecycle:!0,verbose:!0};let t=e.events??!0,n=e.lifecycle??!0;return{enabled:t||n,events:t,lifecycle:n,verbose:e.verbose??!1}}function ek(e){return e instanceof eS?e:!0===e?new eS(ex(!0)):void 0}var eS=class{constructor(e){this.config=e}event(e,t,n,r){this.config.events&&(this.config.verbose?console.debug(`[${e}] ${t}`,"string"==typeof n?n:JSON.stringify(n)):console.debug(`[${e}] ${t}`,r??n))}lifecycle(e,t,n){this.config.lifecycle&&(n?console.debug(`[${e}] ${t}`,n):console.debug(`[${e}] ${t}`))}get eventsEnabled(){return this.config.events}get lifecycleEnabled(){return this.config.lifecycle}get enabled(){return this.config.enabled}};function ew(e){return e.enabled?new eS(e):void 0}function eI(e,t){return!!e&&void 0!==t.metadata&&(e.metadata=(0,a.W1)(e.metadata,eb(t.metadata)),!0)}let eC=(e,t,n,r,i)=>{var s;let o=ek(i),l=eb(n.messages),u=eb(e.state),c={},d=[],h=new Set,p=e=>{void 0!==e.messages&&(l=e.messages,c.messages=e.messages),void 0!==e.state&&(u=e.state,c.state=e.state)},f=()=>{let e=eb(c);return c={},void 0!==e.messages||void 0!==e.state?(0,j.of)(e):z.w};return t.pipe((0,q.H)(async t=>{let i=await eA(r,l,u,(r,i,s)=>r.onEvent?.({event:t,agent:n,input:e,messages:i,state:s}));
5if(p(i),!0===i.stopPropagation?o?.event("APPLY","Event dropped:",t,{type:t.type,reason:"stopPropagation by subscriber"}):o?.event("APPLY","Event applied:",t,{type:t.type,subscribers:r.length}),!0===i.stopPropagation)return f();switch(t.type){case a.Bx.TEXT_MESSAGE_START:{let i=await eA(r,l,u,(r,i,s)=>r.onTextMessageStartEvent?.({event:t,messages:i,state:s,agent:n,input:e}));if(p(i),!0!==i.stopPropagation){let{messageId:e,role:n="assistant",name:r,subagentRunId:i}=t,s=l.find(t=>t.id===e);if(s?.role==="activity")return console.warn(`TEXT_MESSAGE_START: Message '${e}' is an activity message â message ids must be unique across activity and text messages`),f();let a=s;if(!a){let t={id:e,role:n,content:"",...void 0!==r&&{name:r},...null!=i&&{subagentRunId:i}};l.push(t),a=t}let o=eI(a,t);(!s||o)&&p({messages:l})}return f()}case a.Bx.TEXT_MESSAGE_CONTENT:{let{messageId:i,delta:s}=t,a=l.find(e=>e.id===i);if(!a)return console.warn(`TEXT_MESSAGE_CONTENT: No message found with ID '${i}'`),f();if("activity"===a.role)return console.warn(`TEXT_MESSAGE_CONTENT: Message '${i}' is an activity message â message ids must be unique across activity and text messages`),f();let o=await eA(r,l,u,(r,i,s)=>r.onTextMessageContentEvent?.({event:t,messages:i,state:s,agent:n,input:e,textMessageBuffer:"string"==typeof a.content?a.content:""}));return p(o),!0!==o.stopPropagation&&(a.content=`${"string"==typeof a.content?a.content:""}${s}`,eI(a,t),p({messages:l})),f()}case a.Bx.TEXT_MESSAGE_END:{let{messageId:i}=t,s=l.find(e=>e.id===i);if(!s)return console.warn(`TEXT_MESSAGE_END: No message found with ID '${i}'`),f();if("activity"===s.role)return console.warn(`TEXT_MESSAGE_END: Message '${i}' is an activity message â message ids must be unique across activity and text messages`),f();let a=await eA(r,l,u,(r,i,a)=>r.onTextMessageEndEvent?.({event:t,messages:i,state:a,agent:n,input:e,textMessageBuffer:"string"==typeof s.content?s.content:""}));return p(a),!0!==a.stopPropagation&&eI(s,t)&&p({messages:l}),await Promise.all(r.map(t=>{t.onNewMessage?.({message:s,messages:l,state:u,agent:n,input:e})})),f()}case a.Bx.TOOL_CALL_START:{let i=await eA(r,l,u,(r,i,s)=>r.onToolCallStartEvent?.({event:t,messages:i,state:s,agent:n,input:e}));if(p(i),!0!==i.stopPropagation){let{toolCallId:e,toolCallName:n,parentMessageId:r,subagentRunId:i}=t;d.includes(e)||d.push(e);let s=l.find(t=>t.toolCalls?.some(t=>t.id===e))?.toolCalls?.find(t=>t.id===e);if(s){let r=s.function.name!==n;return r&&(console.warn(`TOOL_CALL_START: tool call '${e}' already exists with name '${s.function.name}' â updating it to '${n}'`),s.function.name=n),(eI(s,t)||r)&&p({messages:l}),f()}let a=new Set(l.map(e=>e.id)),o=function(e,t,n){if(t){let r=e.find(e=>e.id===t);if(r?.role==="assistant")return r;r&&console.warn(`TOOL_CALL_START: parentMessageId '${t}' matches a '${r.role}' message, not assistant â falling back to toolCallId`);let i={id:r?n:t,role:"assistant",toolCalls:[]};return e.push(i),i}let r={id:n,role:"assistant",toolCalls:[]};return e.push(r),r}(l,r,e);a.has(o.id)||null==i||void 0!==o.subagentRunId||(o.subagentRunId=i),o.toolCalls??=[];let u={id:e,type:"function",function:{name:n,arguments:""}};o.toolCalls.push(u),eI(u,t),p({messages:l})}return f()}case a.Bx.TOOL_CALL_ARGS:{let{toolCallId:i,delta:s}=t,a=l.find(e=>e.toolCalls?.some(e=>e.id===i));if(!a)return console.warn(`TOOL_CALL_ARGS: No message found containing tool call with ID '${i}'`),f();let o=a.toolCalls?.find(e=>e.id===i);if(!o)return console.warn(`TOOL_CALL_ARGS: No tool call found with ID '${i}'`),f();let c=await eA(r,l,u,(r,i,s)=>{let a=o.function.arguments,l=o.function.name,u={};try{u=ea(a)}catch{}return r.onToolCallArgsEvent?.({event:t,messages:i,state:s,agent:n,input:e,toolCallBuffer:a,toolCallName:l,partialToolCallArgs:u})});return p(c),!0!==c.stopPropagation&&(o.function.arguments+=s,eI(o,t),p({messages:l})),f()}case a.Bx.TOOL_CALL_END:{let{toolCallId:i}=t,s=l.find(e=>e.toolCalls?.some(e=>e.id===i));if(!s)return console.warn(`TOOL_CALL_END: No message found containing tool call with ID '${i}'`),f();let a=s.toolCalls?.find(e=>e.id===i);if(!a)return console.warn(`TOOL_CALL_END: No tool call found with ID '${i}'`),f();let o=await eA(r,l,u,(r,i,s)=>{let o=a.function.arguments,l=a.function.name,u={};try{u=JSON.parse(o)}catch{}return r.onToolCallEndEvent?.({event:t,messages:i,state:s,agent:n,input:e,toolCallName:l,toolCallArgs:u})});return p(o),!0!==o.stopPropagation&&eI(a,t)&&p({messages:l}),await Promise.all(r.map(t=>{t.onNewToolCall?.({toolCall:a,messages:l,state:u,agent:n,input:e})})),f()}case a.Bx.TOOL_CALL_RESULT:{let i=await eA(r,l,u,(r,i,s)=>r.onToolCallResultEvent?.({event:t,messages:i,state:s,agent:n,input:e}));if(p(i),!0!==i.stopPropagation){let{messageId:i,toolCallId:s,content:a,role:o,subagentRunId:c}=t;h.add(s);let d={id:i,toolCallId:s,role:o||"tool",content:a,...null!=c&&{subagentRunId:c}};eI(d,t);let f=l.findIndex(e=>"assistant"===e.role&&e.toolCalls?.some(e=>e.id===s));if(-1===f)l.push(d);else{let e=f+1;for(;e<l.length&&"tool"===l[e].role;)e++;l.splice(e,0,d)}await Promise.all(r.map(t=>{t.onNewMessage?.({message:d,messages:l,state:u,agent:n,input:e})})),p({messages:l})}return f()}case a.Bx.STATE_SNAPSHOT:{let i=await eA(r,l,u,(r,i,s)=>r.onStateSnapshotEvent?.({event:t,messages:i,state:s,agent:n,input:e}));if(p(i),!0!==i.stopPropagation){let{snapshot:e}=t;p({state:u=e})}return f()}case a.Bx.STATE_DELTA:{let i=await eA(r,l,u,(r,i,s)=>r.onStateDeltaEvent?.({event:t,messages:i,state:s,agent:n,input:e}));if(p(i),!0!==i.stopPropagation){let{delta:e}=t;try{u=L.applyPatch(u,e,!0,!1).newDocument,p({state:u})}catch(n){let t=n instanceof Error?n.message:String(n);console.warn(`Failed to apply state patch: 6Current state: ${JSON.stringify(u,null,2)} 7Patch operations: ${JSON.stringify(e,null,2)} 8Error: ${t}`)}}return f()}case a.Bx.MESSAGES_SNAPSHOT:{let i=await eA(r,l,u,(r,i,s)=>r.onMessagesSnapshotEvent?.({event:t,messages:i,state:s,agent:n,input:e}));if(p(i),!0!==i.stopPropagation){let{messages:e}
8=t,n=e.map(e=>{if(null!==e.subagentRunId)return e;let t={...e};return delete t.subagentRunId,t}),r=new Map(n.map(e=>[e.id,e])),i=function(e){if(!e.metadata||!Object.prototype.hasOwnProperty.call(e.metadata,ev))return;let t=e.metadata?.[ev];if(!t||"object"!=typeof t||Array.isArray(t))return[];if(!Object.prototype.hasOwnProperty.call(t,"authoritativeActivityTypes"))return;let n=t.authoritativeActivityTypes;return null===n?null:Array.isArray(n)&&n.every(e=>"string"==typeof e)?n:[]}(t),s=n.some(e=>"activity"===e.role),a=n.some(e=>"reasoning"===e.role),o=new Set((l=l.filter(e=>r.has(e.id)||(e=>"activity"===e.role&&(i?!i.includes(e.activityType):null!==i&&!s)||"reasoning"===e.role&&!a)(e)).map(e=>r.get(e.id)??e)).map(e=>e.id));for(let e of n)o.has(e.id)||l.push(e);p({messages:l})}return f()}case a.Bx.ACTIVITY_SNAPSHOT:{let i=l.findIndex(e=>e.id===t.messageId),s=i>=0?l[i]:void 0,a=s?.role==="activity"?s:void 0,o=t.replace??!0,c=await eA(r,l,u,(r,i,o)=>r.onActivitySnapshotEvent?.({event:t,messages:i,state:o,agent:n,input:e,activityMessage:a,existingMessage:s}));if(p(c),!0!==c.stopPropagation){let s={id:t.messageId,role:"activity",activityType:t.activityType,content:eb(t.content),...null!=t.subagentRunId&&{subagentRunId:t.subagentRunId}},c,d;-1===i?(l.push(s),c=s,d=s):a?(o&&(l[i]={...a,activityType:t.activityType,content:eb(t.content),subagentRunId:t.subagentRunId},t.subagentRunId??delete l[i].subagentRunId),d=l[i]):o&&(l[i]=s,c=s,d=s),eI(d,t),p({messages:l}),c&&await Promise.all(r.map(t=>t.onNewMessage?.({message:c,messages:l,state:u,agent:n,input:e})))}return f()}case a.Bx.ACTIVITY_DELTA:{let i=l.findIndex(e=>e.id===t.messageId);if(-1===i)return f();let s=l[i];if("activity"!==s.role)return console.warn(`ACTIVITY_DELTA: Message '${t.messageId}' is not an activity message`),f();let a=await eA(r,l,u,(r,i,a)=>r.onActivityDeltaEvent?.({event:t,messages:i,state:a,agent:n,input:e,activityMessage:s}));if(p(a),!0!==a.stopPropagation)try{eI(s,t)&&p({messages:l});let e=eb(s.content??{}),n=L.applyPatch(e,t.patch??[],!0,!1).newDocument;l[i]={...s,content:eb(n),activityType:t.activityType},p({messages:l})}catch(n){let e=n instanceof Error?n.message:String(n);console.warn(`Failed to apply activity patch for '${t.messageId}': ${e}`)}return f()}case a.Bx.RAW:return p(await eA(r,l,u,(r,i,s)=>r.onRawEvent?.({event:t,messages:i,state:s,agent:n,input:e}))),f();case a.Bx.CUSTOM:return p(await eA(r,l,u,(r,i,s)=>r.onCustomEvent?.({event:t,messages:i,state:s,agent:n,input:e}))),f();case a.Bx.RUN_STARTED:{let i=await eA(r,l,u,(r,i,s)=>r.onRunStartedEvent?.({event:t,messages:i,state:s,agent:n,input:e}));if(p(i),d=[],h=new Set,!0!==i.stopPropagation&&t.input?.messages){for(let e of t.input.messages){let t=e;if(null===e.subagentRunId){let n={...e};delete n.subagentRunId,t=n}l.find(e=>e.id===t.id)||l.push(t)}p({messages:l})}return f()}case a.Bx.RUN_FINISHED:{let i=t.outcome?.type==="interrupt"?{event:t,outcome:"interrupt",interrupts:t.outcome.interrupts}:t.outcome?.type==="cancelled"?{event:t,outcome:"cancelled"}:{event:t,outcome:"success",result:t.result,pendingToolCallIds:(e=>{let t=e.outcome?.type==="success"?e.outcome.pendingToolCallIds:void 0;return void 0!==t&&t.length>0?[...t]:d.filter(e=>!h.has(e))})(t)},s=await eA(r,l,u,(t,r,s)=>t.onRunFinishedEvent?.({...i,messages:r,state:s,agent:n,input:e}));return p(s),!0!==s.stopPropagation&&(n.pendingInterrupts="interrupt"===i.outcome?i.interrupts.map(e=>{if(null!==e.subagentRunId)return e;let t={...e};return delete t.subagentRunId,t}):[]),f()}case a.Bx.RUN_ERROR:return p(await eA(r,l,u,(r,i,s)=>r.onRunErrorEvent?.({event:t,messages:i,state:s,agent:n,input:e}))),f();case a.Bx.STEP_STARTED:return p(await eA(r,l,u,(r,i,s)=>r.onStepStartedEvent?.({event:t,messages:i,state:s,agent:n,input:e}))),f();case a.Bx.STEP_FINISHED:return p(await eA(r,l,u,(r,i,s)=>r.onStepFinishedEvent?.({event:t,messages:i,state:s,agent:n,input:e}))),f();case a.Bx.TEXT_MESSAGE_CHUNK:throw Error("TEXT_MESSAGE_CHUNK must be transformed before being applied");case a.Bx.TOOL_CALL_CHUNK:throw Error("TOOL_CALL_CHUNK must be transformed before being applied");case a.Bx.REASONING_START:return p(await eA(r,l,u,(r,i,s)=>r.onReasoningStartEvent?.({event:t,messages:i,state:s,agent:n,input:e}))),f();case a.Bx.REASONING_MESSAGE_START:{let i=await eA(r,l,u,(r,i,s)=>r.onReasoningMessageStartEvent?.({event:t,messages:i,state:s,agent:n,input:e}));if(p(i),!0!==i.stopPropagation){let{messageId:e,subagentRunId:n}=t,r=l.find(t=>
8t.id===e);if(r?.role==="activity")return console.warn(`REASONING_MESSAGE_START: Message '${e}' is an activity message â message ids must be unique across activity and reasoning messages`),f();let i=r;if(!i){let t={id:e,role:"reasoning",content:"",...null!=n&&{subagentRunId:n}};l.push(t),i=t}let s=eI(i,t);(!r||s)&&p({messages:l})}return f()}case a.Bx.REASONING_MESSAGE_CONTENT:{let{messageId:i,delta:s}=t,a=l.find(e=>e.id===i);if(!a)return console.warn(`REASONING_MESSAGE_CONTENT: No message found with ID '${i}'`),f();if("activity"===a.role)return console.warn(`REASONING_MESSAGE_CONTENT: Message '${i}' is an activity message â message ids must be unique across activity and reasoning messages`),f();let o=await eA(r,l,u,(r,i,s)=>r.onReasoningMessageContentEvent?.({event:t,messages:i,state:s,agent:n,input:e,reasoningMessageBuffer:"string"==typeof a.content?a.content:""}));return p(o),!0!==o.stopPropagation&&(a.content=`${"string"==typeof a.content?a.content:""}${s}`,eI(a,t),p({messages:l})),f()}case a.Bx.REASONING_MESSAGE_END:{let{messageId:i}=t,s=l.find(e=>e.id===i);if(!s)return console.warn(`REASONING_MESSAGE_END: No message found with ID '${i}'`),f();if("activity"===s.role)return console.warn(`REASONING_MESSAGE_END: Message '${i}' is an activity message â message ids must be unique across activity and reasoning messages`),f();let a=await eA(r,l,u,(r,i,a)=>r.onReasoningMessageEndEvent?.({event:t,messages:i,state:a,agent:n,input:e,reasoningMessageBuffer:"string"==typeof s.content?s.content:""}));return p(a),!0!==a.stopPropagation&&eI(s,t)&&p({messages:l}),await Promise.all(r.map(t=>{t.onNewMessage?.({message:s,messages:l,state:u,agent:n,input:e})})),f()}case a.Bx.REASONING_MESSAGE_CHUNK:throw Error("REASONING_MESSAGE_CHUNK must be transformed before being applied");case a.Bx.REASONING_END:return p(await eA(r,l,u,(r,i,s)=>r.onReasoningEndEvent?.({event:t,messages:i,state:s,agent:n,input:e}))),f();case a.Bx.REASONING_ENCRYPTED_VALUE:{let{subtype:i,entityId:s,encryptedValue:a}=t,o=await eA(r,l,u,(r,i,s)=>r.onReasoningEncryptedValueEvent?.({event:t,messages:i,state:s,agent:n,input:e}));if(p(o),!0!==o.stopPropagation){let e=!1;if("tool-call"===i){for(let t of l)if("assistant"===t.role&&t.toolCalls){let n=t.toolCalls.find(e=>e.id===s);if(n){n.encryptedValue=a,e=!0;break}}}else{let t=l.find(e=>e.id===s);t?.role!=="activity"&&t&&(t.encryptedValue=a,e=!0)}e&&(c.messages=l)}return f()}case a.Bx.SUBAGENT_STARTED:return p(await eA(r,l,u,(r,i,s)=>r.onSubagentStartedEvent?.({event:t,messages:i,state:s,agent:n,input:e}))),f();case a.Bx.SUBAGENT_FINISHED:return p(await eA(r,l,u,(r,i,s)=>r.onSubagentFinishedEvent?.({event:t,messages:i,state:s,agent:n,input:e}))),f();case a.Bx.SUBAGENT_ERROR:return p(await eA(r,l,u,(r,i,s)=>r.onSubagentErrorEvent?.({event:t,messages:i,state:s,agent:n,input:e}))),f()}return t.type,f()}),(0,K.U)(),r.length>0?(s={},(0,X.N)(function(e,t){var n=!1;e.subscribe((0,Q._)(t,function(e){n=!0,t.next(e)},function(){n||t.next(s),t.complete()}))})):e=>e)},eN=e=>t=>{let n=ek(e),r=new Set,i=new Set,s=new Set,o=new Set,l={message:new Map,toolCall:new Map,activity:new Map,reasoning:new Map},u=!1,c=!1,d=!1,h=new Map,p=e=>{let t=h.get(e);return t||(t=new Map,h.set(e,t)),t},f=new Map,m=new Set,g=!1,y=(e,t)=>{let n=e??[];if(Array.isArray(n))for(let e of n){if(!e||"string"!=typeof e.id)continue;if(null===e.subagentRunId)return new a.$e(`Cannot send a message (id '${e.id}') with 'subagentRunId: null'. The field is optional â omit it entirely.`);let n="reasoning"===e.role?l.reasoning:"activity"===e.role?l.activity:l.message;for(let r of((t||!n.has(e.id))&&n.set(e.id,{subagentRunId:e.subagentRunId}),e.toolCalls??[]))r&&"string"==typeof r.id&&(t||!l.toolCall.has(r.id))&&l.toolCall.set(r.id,{subagentRunId:e.subagentRunId??void 0})}},v=(e,t,n,r,i)=>{if(void 0!==t&&n&&n.subagentRunId!==t)return new a.$e(`Cannot send '${e}': subagentRunId '${t}' does not match the ${r} '${i}' opener's subagent '${n.subagentRunId??"(the parent agent)"}'.`)};return t.pipe((0,Y.Z)(e=>{let t=e.type;if(n?.event("VERIFY","Event:",e,{type:e.type}),c&&t!==a.Bx.RUN_STARTED)return(0,F.$)(()=>new a.$e(`Cannot send event type '${t}': The run has already errored with 'RUN_ERROR'. No further events can be sent.`));if(u&&t!==a.Bx.RUN_ERROR&&t!==a.Bx.RUN_STARTED)return(0,F.$)(()=>new a.$e(`Cannot send event type '${t}': The run has already finished with 'RUN_FINISHED'. Start a new run with 'RUN_STARTED'.`));if(d){if(t===a.Bx.RUN_STARTED){if(g&&!u&&!c)return(0,F.$)(()=>new a.$e("Cannot send 'RUN_STARTED' while a run is still active. The previous run must be finished with 'RUN_FINISHED' before starting a new run."));(u||c)&&(r.clear(),i.clear(),s.clear(),o.clear(),l.message.clear(),l.toolCall.clear(),l.activity.clear(),l.reasoning.clear(),h.clear(),f.clear(),m.clear(),u=!1,c=!1,g=!0)}}else if(d=!0,t!==a.Bx.RUN_STARTED&&t!==a.Bx.RUN_ERROR)return(0,F.$)(()=>new a.$e("First event must be 'RUN_STARTED'"));if(null===e.subagentRunId)return(0,F.$)(()=>new a.$e(`Cannot send '${t}' with 'subagentRunId: null'. The field is optional â omit it entirely.`));if(t===a.Bx.SUBAGENT_STARTED||t===a.Bx.SUBAGENT_FINISHED||t===a.Bx.SUBAGENT_ERROR){for(let n of t===a.Bx.SUBAGENT_STARTED?["description","parentSubagentRunId","parentToolCallId","parentMessageId"]:t===a.Bx.SUBAGENT_FINISHED?["outcome"]:["code"])if(null===e[n])return(0,F.$)(()=>new a.$e(`Cannot send '${t}' with '${n}: null'. The field is optional â omit it entirely.`));let n=e.outcome;if(null!=n&&"success"!==n.type&&"suspended"!==n.type)return(0,F.$)(()=>new a.$e(`Cannot send '${t}' with outcome type '${String(n.type)}'. The outcome is either { type: "success" } or { type: "suspended" }.`));if(n&&null===n.interruptIds)return(0,F.$)(()=>new a.$e(`Cannot send '${t}' with 'outcome.interruptIds: null'. The field is optional â omit it entirely.`));if(n&&Array.isArray(n.interruptIds)&&n.interruptIds.some(e=>"string"!=typeof e))return(0,F.$)(()=>new a.$e(`Cannot send '${t}' with a non-string entry in 'outcome.interruptIds'. Interrupt ids are strings.`))}if(t===a.Bx.RUN_FINISHED){let t=e.outcome;if(t?.type==="interrupt"&&Array.isArray(t.interrupts)){for(let e of t.interrupts)if(e&&null===e.subagentRunId)return(0,F.$)(()=>new a.$e(`Cannot send 'RUN_FINISHED' with an interrupt (id '${e.id}') carrying 'subagentRunId: null'. The field is optional â omit it entirely.`))}}switch(t){case a.Bx.TEXT_MESSAGE_START:{let n=e.messageId;if(r.has(n))return(0,F.$)(()=>new a.$e(`Cannot send 'TEXT_MESSAGE_START' event: A text message with ID '${n}' is already in progress. Complete it with 'TEXT_MESSAGE_END' first.`));let i=l.message.get(n);if(i){let r=v(t,e.subagentRunId,i,"message",n);if(r)return(0,F.$)(()=>r)}return r.add(n),i||l.message.set(n,{subagentRunId:e.subagentRunId}),(0,j.of)(e)}case a.Bx.TEXT_MESSAGE_CONTENT:{let n=e.messageId;if(!r.has(n))return(0,F.$)(()=>new a.$e(`Cannot send 'TEXT_MESSAGE_CONTENT' event: No active text message found with ID '${n}'. Start a text message with 'TEXT_MESSAGE_START' first.`));let i=v(t,e.subagentRunId,l.message.get(n),"message",n);return i?(0,F.$)(()=>i):(0,j.of)(e)}case a.Bx.TEXT_MESSAGE_END:{let n=e.messageId;if(!r.has(n))return(0,F.$)(()=>new a.$e(`Cannot send 'TEXT_MESSAGE_END' event: No active text message found with ID '${n}'. A 'TEXT_MESSAGE_START' event must be sent first.`));let i=v(t,e.subagentRunId,l.message.get(n),"message",n);return i?(0,F.$)(()=>i):(r.delete(n),(0,j.of)(e))}case a.Bx.TOOL_CALL_START:{let n=e.toolCallId;if(i.has(n))return(0,F.$)(()=>new a.$e(`Cannot send 'TOOL_CALL_START' event: A tool call with ID '${n}' is already in progress. Complete it with 'TOOL_CALL_END' first.`));let r=e.parentMessageId,s=e.subagentRunId,o;if(void 0!==r){let e=l.message.get(r);if(e){if(void 0!==s&&s!==e.subagentRunId)return(0,F.$)(()=>new a.$e(`Cannot send 'TOOL_CALL_START': subagentRunId '${s}' does not match its parent message '${r}' owner '${e.subagentRunId??"(the parent agent)"}'. A tool call belongs to the message that carries it.`));o=e}}let u=l.toolCall.get(n);if(u){let e=v(t,s,u,"tool call",n);if(e)return(0,F.$)(()=>e);if(void 0===s&&o&&o.subagentRunId!==u.subagentRunId)return(0,F.$)(()=>new a.$e(`Cannot send 'TOOL_CALL_START': tool call '${n}' is owned by '${u.subagentRunId??"(the parent agent)"}' but its parent message '${r}' is owned by '${o.subagentRunId??"(the parent agent)"}'. A tool call belongs to the message that carries it.`))}return i.add(n),u||l.toolCall.set(n,void 0===s?o??{subagentRunId:void 0}:{subagentRunId:s}),(0,j.of)(e)}case a.Bx.TOOL_CALL_ARGS:{let n=e.toolCallId;if(!i.has(n))return(0,F.$)(()=>new a.$e(`Cannot send 'TOOL_CALL_ARGS' event: No active tool call found with ID '${n}'. Start a tool call with 'TOOL_CALL_START' first.`));let r=v(t,e.subagentRunId,l.toolCall.get(n),"tool call",n);return r?(0,F.$)(()=>r):(0,j.of)(e)}case a.Bx.TOOL_CALL_END:{let n=e.toolCallId;if(!i.has(n))return(0,F.$)(()=>new a.$e(`Cannot send 'TOOL_CALL_END' event: No active tool call found with ID '${n}'. A 'TOOL_CALL_START' event must be sent first.`));let r=v(t,e.subagentRunId,l.toolCall.get(n),"tool call",n);return r?(0,F.$)(()=>r):(i.delete(n),(0,j.of)(e))}case a.Bx.STEP_STARTED:{let t=e.stepName,n=e.subagentRunId;return p(n).has(t)?(0,F.$)(()=>new a.$e(`Step "${t}" is already active for 'STEP_STARTED'${void 0===n?"":` in subagent '${n}'`}`)):(p(n).set(t,!0),(0,j.of)(e))}case a.Bx.STEP_FINISHED:{let t=e.stepName,n=e.subagentRunId;if(!p(n).has(t)){let e,r=!1;for(let[i,s]of h)if(i!==n&&s.has(t)){e=i,r=!0;break}return(0,F.$)(r?()=>new a.$e(`Cannot send 'STEP_FINISHED' for step "${t}" attributed to ${void 0===n?"the parent agent":`subagent '${n}'`}: that step is open under ${void 0===e?"the parent agent":`subagent '${e}'`}. A step must be finished by whoever started it.`):()=>new a.$e(`Cannot send 'STEP_FINISHED' for step "${t}" that was not started`))}return p(n).delete(t),(0,j.of)(e)}case a.Bx.ACTIVITY_SNAPSHOT:{let t=e.messageId;return l.activity.has(t)&&!1===e.replace||l.activity.set(t,{subagentRunId:e.subagentRunId}),(0,j.of)(e)}case a.Bx.TOOL_CALL_RESULT:{let t=e.messageId;return"string"==typeof t&&l.message.set(t,{subagentRunId:e.subagentRunId}),(0,j.of)(e)}case a.Bx.REASONING_START:case a.Bx.REASONING_MESSAGE_START:{let n=e.messageId,r=t===a.Bx.REASONING_START,i=r?s:o;if(i.has(n))return(0,F.$)(()=>new a.$e(r?`Cannot send 'REASONING_START' event: A reasoning span with ID '${n}' is already in progress. Complete it with 'REASONING_END' first.`:`Cannot send 'REASONING_MESSAGE_START' event: A reasoning message with ID '${n}' is already in progress. Complete it with 'REASONING_MESSAGE_END' first.`));let u=l.reasoning.get(n);if(u){let r=v(t,e.subagentRunId,u,"reasoning message",n);if(r)return(0,F.$)(()=>r)}return i.add(n),u||l.reasoning.set(n,{subagentRunId:e.subagentRunId}),(0,j.of)(e)}case a.Bx.REASONING_MESSAGE_CONTENT:case a.Bx.REASONING_MESSAGE_END:case a.Bx.REASONING_END:{let n=e.messageId,r=t===a.Bx.REASONING_END,i=r?s:o;if(!i.has(n))return(0,F.$)(()=>new a.$e(r?`Cannot send 'REASONING_END' event: No active reasoning span found with ID '${n}'. A 'REASONING_START' event must be sent first.`:`Cannot send '${t}' event: No active reasoning message found with ID '${n}'. Start a reasoning message with 'REASONING_MESSAGE_START' first.`));
8let u=v(t,e.subagentRunId,l.reasoning.get(n),"reasoning message",n);return u?(0,F.$)(()=>u):((t===a.Bx.REASONING_END||t===a.Bx.REASONING_MESSAGE_END)&&i.delete(n),(0,j.of)(e))}case a.Bx.REASONING_ENCRYPTED_VALUE:{let n=e.entityId,r=e.subtype,i="tool-call"===r?l.toolCall.get(n):"message"===r?l.message.get(n)??l.reasoning.get(n):l.reasoning.get(n),s=v(t,e.subagentRunId,i,"tool-call"===r?"tool call":"message"===r?"message":"reasoning message",n);return s?(0,F.$)(()=>s):(0,j.of)(e)}case a.Bx.ACTIVITY_DELTA:{let n=e.messageId,r=v(t,e.subagentRunId,l.activity.get(n),"activity",n);return r?(0,F.$)(()=>r):(0,j.of)(e)}case a.Bx.SUBAGENT_STARTED:{if("string"!=typeof e.subagentRunId)return(0,F.$)(()=>new a.$e("Cannot send 'SUBAGENT_STARTED' without a 'subagentRunId'."));if("string"!=typeof e.name)return(0,F.$)(()=>new a.$e("Cannot send 'SUBAGENT_STARTED' without a 'name'."));let t=e.subagentRunId,n=e.parentSubagentRunId;return f.has(t)?(0,F.$)(()=>new a.$e(`Cannot send 'SUBAGENT_STARTED': subagent '${t}' is already active. Finish it with 'SUBAGENT_FINISHED' first.`)):m.has(t)?(0,F.$)(()=>new a.$e(`Cannot send 'SUBAGENT_STARTED': subagent '${t}' has already finished in this run. Subagent IDs are per-invocation and cannot be reused.`)):void 0===n||f.has(n)||m.has(n)?(f.set(t,!0),(0,j.of)(e)):(0,F.$)(()=>new a.$e(`Cannot send 'SUBAGENT_STARTED': parentSubagentRunId '${n}' has not been started in this run.`))}case a.Bx.SUBAGENT_FINISHED:case a.Bx.SUBAGENT_ERROR:{if("string"!=typeof e.subagentRunId)return(0,F.$)(()=>new a.$e(`Cannot send '${t}' without a 'subagentRunId'.`));if(t===a.Bx.SUBAGENT_ERROR&&"string"!=typeof e.message)return(0,F.$)(()=>new a.$e("Cannot send 'SUBAGENT_ERROR' without a 'message'."));let n=e.subagentRunId;return f.has(n)?(f.delete(n),m.add(n),(0,j.of)(e)):(0,F.$)(()=>new a.$e(`Cannot send '${t}': no active subagent found with ID '${n}'. A 'SUBAGENT_STARTED' event must be sent first.`))}case a.Bx.MESSAGES_SNAPSHOT:{let t=y(e.messages,!0);if(t)return(0,F.$)(()=>t)}return(0,j.of)(e);case a.Bx.RUN_STARTED:g=!0;{let t=y((e.input??{}).messages,!1);if(t)return(0,F.$)(()=>t)}return(0,j.of)(e);case a.Bx.RUN_FINISHED:if((()=>{for(let e of h.values())if(e.size>0)return!0;return!1})()){let e=[];for(let[t,n]of h)for(let r of n.keys())e.push(void 0===t?r:`${r} (subagent '${t}')`);let t=e.join(", ");return(0,F.$)(()=>new a.$e(`Cannot send 'RUN_FINISHED' while steps are still active: ${t}`))}if(r.size>0){let e=Array.from(r.keys()).join(", ");return(0,F.$)(()=>new a.$e(`Cannot send 'RUN_FINISHED' while text messages are still active: ${e}`))}if(o.size>0){let e=Array.from(o.keys()).join(", ");return(0,F.$)(()=>new a.$e(`Cannot send 'RUN_FINISHED' while reasoning messages are still active: ${e}`))}if(s.size>0){let e=Array.from(s.keys()).join(", ");return(0,F.$)(()=>new a.$e(`Cannot send 'RUN_FINISHED' while reasoning spans are still active: ${e}`))}if(i.size>0){let e=Array.from(i.keys()).join(", ");return(0,F.$)(()=>new a.$e(`Cannot send 'RUN_FINISHED' while tool calls are still active: ${e}`))}if(f.size>0){let e=Array.from(f.keys()).join(", ");return(0,F.$)(()=>new a.$e(`Cannot send 'RUN_FINISHED' while subagents are still active: ${e}`))}return u=!0,(0,j.of)(e);case a.Bx.RUN_ERROR:return c=!0,(0,j.of)(e);case a.Bx.CUSTOM:default:return(0,j.of)(e)}}))},eR=function(e){return e.HEADERS="headers",e.DATA="data",e}({}),eO=e=>(0,B.v)(()=>(0,$.H)(e())).pipe((0,J.n)(e=>{if(!e.ok){let t=e.headers.get("content-type")||"";return(0,$.H)(e.text()).pipe((0,Y.Z)(n=>{let r=n;if(t.includes("application/json"))try{r=JSON.parse(n)}catch{}let i=Error(`HTTP ${e.status}: ${"string"==typeof r?r:JSON.stringify(r)}`);return i.status=e.status,i.payload=r,(0,F.$)(()=>i)}))}let t={type:eR.HEADERS,status:e.status,headers:e.headers},n=e.body?.getReader();return n?new U.c(e=>(e.next(t),(async()=>{try{for(;;){let{done:t,value:r}=await n.read();if(t)break;let i={type:eR.DATA,data:r};e.next(i)}e.complete()}catch(t){e.error(t)}})(),()=>{n.cancel().catch(e=>{if(e?.name!=="AbortError")throw e})})):(0,F.$)(()=>Error("Failed to getReader() from response"))})),eP=()=>"u">typeof ey&&void 0!==ey.env&&!!ey.env.SUPPRESS_TRANSFORMATION_WARNINGS,eD=(e,t)=>{let n=ek(t),r=new H.B,i=new G.m(1),s=!1,o,l=!1,u=()=>{l=!0,o?.unsubscribe()},c=e=>{u(),r.error(e)},d=()=>{u(),r.complete()};return o=e.subscribe({next:e=>{if(i.next(e),e.type!==eR.HEADERS||s)s||c(Error("No headers event received before data events"));else{s=!0;let t=e.headers.get("content-type");n?.lifecycle("HTTP","Stream format detected:",{contentType:t,parser:t===eo.Hx?"protobuf":"sse"}),t===eo.Hx?((e,t)=>
8{let n=ek(t),r=new H.B,i=new Uint8Array,s=!1;function a(){if(!s)for(;i.length>=4;){let e=4+new DataView(i.buffer,i.byteOffset,4).getUint32(0,!1);if(e>0xa00000)return void r.error(Error("Protobuf message size exceeded maximum limit of 10 MB"));if(i.length<e)break;try{let t=i.slice(4,e),s=eo.D4(t);n?.event("PROTO","Event received:",s,{type:s.type}),r.next(s)}catch(e){if(e instanceof eo.Z0)eP()||console.warn("[ag-ui][proto] Dropped an event this build does not know: the protocol has a variant this SDK predates.");else{let t=e instanceof Error?e.message:String(e);s=!0,r.error(Error(`Failed to decode protocol buffer message: ${t}`));return}}i=i.slice(e)}}return e.subscribe({next:e=>{if(e.type!==eR.HEADERS&&e.type===eR.DATA&&e.data){let t=new Uint8Array(i.length+e.data.length);t.set(i,0),t.set(e.data,i.length),i=t,a()}},error:e=>r.error(e),complete:()=>{if(a(),!s){if(i.length>0)return void r.error(Error(`The binary stream ended mid-frame: ${i.length} trailing bytes could not be read as a complete message.`));r.complete()}}}),r.asObservable()})(i,n).subscribe({next:e=>r.next(e),error:e=>c(e),complete:()=>d()}):((e,t)=>{let n=ek(t),r=new H.B,i=new TextDecoder("utf-8",{fatal:!1}),s="";function a(e){let t=e.split(` 9`),i=[];for(let e of t)e.startsWith("data:")&&i.push(e.slice(5).replace(/^ /,""));if(i.length>0)try{let e=i.join(` 10`),t=JSON.parse(e);n?.event("SSE","Event received:",t,{type:t?.type}),r.next(t)}catch(e){r.error(e)}}return e.subscribe({next:e=>{if(e.type!==eR.HEADERS&&e.type===eR.DATA&&e.data){let t=i.decode(e.data,{stream:!0}),n=(s+=t).split(/\n\n/);for(let e of(s=n.pop()||"",n))a(e);if(s.length>0xa00000)return void r.error(Error("SSE buffer size exceeded maximum limit of 10 MB"))}},error:e=>r.error(e),complete:()=>{s&&a(s+=i.decode()),r.complete()}}),r.asObservable()})(i,n).subscribe({next:e=>{if("object"!=typeof e||!e||Array.isArray(e)){let t=Error("Invalid event: the frame is not a JSON object.");n?.event("HTTP","Event invalid:",{json:e,error:String(t)}),c(t);return}if("string"!=typeof e.type||0===e.type.length){let t=Error("Invalid event: the frame carries no event type.");n?.event("HTTP","Event invalid:",{json:e,error:String(t)}),c(t);return}n?.event("HTTP","Event received:",e,{type:e.type}),r.next(e)},error:e=>{if(e?.name==="AbortError"){r.next({type:a.Bx.RUN_ERROR,message:e.message||"Request aborted",code:"abort",rawEvent:e}),d();return}return c(e)},complete:()=>d()})}},error:e=>{i.error(e),c(e)},complete:()=>{i.complete()}}),l&&o.unsubscribe(),r.asObservable()},eM={TextMessageStart:"TextMessageStart",TextMessageContent:"TextMessageContent",TextMessageEnd:"TextMessageEnd",ActionExecutionStart:"ActionExecutionStart",ActionExecutionArgs:"ActionExecutionArgs",ActionExecutionEnd:"ActionExecutionEnd",ActionExecutionResult:"ActionExecutionResult",AgentStateMessage:"AgentStateMessage",MetaEvent:"MetaEvent",RunError:"RunError"},eL=e=>{if("string"==typeof e)return e;if(!Array.isArray(e))return;let t=e.filter(e=>"text"===e.type).map(e=>e.text).filter(e=>e.length>0);if(0!==t.length)return t.join(` 11`)};function ej(e,t){return(0,a.cc)(t)&&ez(`[ag-ui][legacy] The result of tool call '${e}' carries content parts the legacy protocol cannot represent; only its text parts are bridged and the rest is dropped.`),(0,a.QX)(t)}let ez=e=>{"u">typeof ey&&void 0!==ey.env&&ey.env.SUPPRESS_TRANSFORMATION_WARNINGS||console.warn(e)},eF=e=>"tool"===e.kind?e.fields.toolCallId:e.fields.messageId,eB=(e,t,n,r,i)=>{if(void 0!==r&&r!==i)throw Error(`Cannot continue ${e} '${t}': chunk ${n} '${r}' does not match the open stream's ${n} ${void 0===i?"(absent)":`'${i}'`}.`)},e$=(e,t)=>void 0===t.metadata?e:{...e,metadata:t.metadata},eU=(e,t)=>{let n=e$(e,t);return void 0===t.rawEvent?n:{...n,rawEvent:t.rawEvent}},eH=e=>new Set(Object.keys(e.shape)),eG=eH(em.hY),eY=eH(em.xr),eZ=eH(em.Ds),eV=(e,t)=>{let n;for(let r of Object.keys(e))t.has(r)||((n??={})[r]=e[r]);return n},eW=(e,t,n,r)=>{var i;if(void 0===t||n||0===e.length)return;let s=e[e.length-1],a=Object.keys(t).filter(e=>Object.prototype.hasOwnProperty.call(s,e));a.length>0&&(i=`A ${r} carried ${a.map(e=>`'${e}'`).join(", ")}, which the synthesized ${String(s.type)} already describes. The synthesized value is kept and the chunk's is dropped â this stage does not judge a described field, so the producer's value cannot be substituted for its own.`,"u">typeof ey&&void 0!==ey.env&&ey.env.SUPPRESS_TRANSFORMATION_WARNINGS||console.warn(`[ag-ui][transform] ${i} Set SUPPRESS_TRANSFORMATION_WARNINGS=true to silence.`)),e[e.length-1]={...t,...s}},eq=e=>t=>{let n=ek(e),r=new Map,i=e=>{let t=r.get(e);if(!t)return[];switch(r.delete(e),t.kind){case"text":{let e={type:a.Bx.TEXT_MESSAGE_END,messageId:t.fields.messageId,...void 0!==t.fields.subagentRunId&&{subagentRunId:t.fields.subagentRunId}};return n?.event("TRANSFORM","TEXT_MESSAGE_END",e,{messageId:e.messageId}),[e]}case"tool":{let e={type:a.Bx.TOOL_CALL_END,toolCallId:t.fields.toolCallId,...void 0!==t.fields.subagentRunId&&{subagentRunId:t.fields.subagentRunId}};return n?.event("TRANSFORM","TOOL_CALL_END",e,{toolCallId:e.toolCallId}),[e]}case"reasoning":{let e={type:a.Bx.REASONING_MESSAGE_END,messageId:t.fields.messageId,...void 0!==t.fields.subagentRunId&&{subagentRunId:t.fields.subagentRunId}};return n?.event("TRANSFORM","REASONING_MESSAGE_END",e,{messageId:e.messageId}),[e]}}},s=()=>[...r.keys()].flatMap(e=>i(e)),o=(e,t,n,i,s)=>{if(void 0!==t){let i=((e,t)=>{for(let[n,i]of r)if(i.kind===e&&eF(i)===t)return{owner:n}})(e,t);if(i){if(void 0!==n&&n!==i.owner)throw Error(`Cannot continue ${s} '${t}': chunk subagentRunId '${n}' does not match the open stream's subagent '${i.owner??"(the parent agent)"}'.`);return i.owner}return n}if(void 0!==n)return n;if(r.get(void 0)?.kind===e)return;let a=[...r.entries()].filter(([,t])=>t.kind===e);if(1===a.length)return a[0][0];if(a.length>1)throw Error(`Ambiguous ${i}: it carries neither a ${"tool"===e?"toolCallId":"messageId"} nor a subagentRunId, but ${a.length} lanes have an open ${s}. Attribute the chunk to the subagent it belongs to.`)};return t.pipe((0,Y.Z)(e=>{switch(e.type){case a.Bx.TEXT_MESSAGE_START:case a.Bx.TEXT_MESSAGE_CONTENT:case a.Bx.TEXT_MESSAGE_END:case a.Bx.TOOL_CALL_START:case a.Bx.TOOL_CALL_ARGS:case a.Bx.TOOL_CALL_END:case a.Bx.TOOL_CALL_RESULT:case a.Bx.STATE_SNAPSHOT:case a.Bx.STATE_DELTA:case a.Bx.CUSTOM:case a.Bx.STEP_STARTED:case a.Bx.STEP_FINISHED:case a.Bx.REASONING_START:case a.Bx.REASONING_MESSAGE_START:case a.Bx.REASONING_MESSAGE_CONTENT:case a.Bx.REASONING_MESSAGE_END:case a.Bx.REASONING_END:return[...i(e.subagentRunId??void 0),e];case a.Bx.RUN_STARTED:case a.Bx.RUN_FINISHED:case a.Bx.RUN_ERROR:case a.Bx.MESSAGES_SNAPSHOT:return[...s(),e];case a.Bx.RAW:case a.Bx.ACTIVITY_SNAPSHOT:case a.Bx.ACTIVITY_DELTA:case a.Bx.REASONING_ENCRYPTED_VALUE:case a.Bx.SUBAGENT_STARTED:return[e];case a.Bx.SUBAGENT_FINISHED:case a.Bx.SUBAGENT_ERROR:{let t=e.subagentRunId;return null==t?[e]:[...i(t),e]}case a.Bx.TEXT_MESSAGE_CHUNK:{let t=eV(e,eG),s=o("text",e.messageId,e.subagentRunId??void 0,"TEXT_MESSAGE_CHUNK","text message"),l=r.get(s),u=[],c=!1,d;if(l?.kind==="text"&&(void 0===e.messageId||e.messageId===l.fields.messageId))eB("text message",l.fields.messageId,"role",e.role,l.fields.role),eB("text message",l.fields.messageId,"name",e.name,l.fields.name),d=l.fields;
11else{if(u.push(...i(s)),void 0===e.messageId)throw Error("First TEXT_MESSAGE_CHUNK must have a messageId");d={messageId:e.messageId,role:void 0===e.role?"assistant":e.role,name:e.name,subagentRunId:e.subagentRunId},r.set(s,{kind:"text",fields:d});let t=e$({type:a.Bx.TEXT_MESSAGE_START,messageId:e.messageId,role:d.role,...void 0!==e.name&&{name:e.name},...void 0!==e.subagentRunId&&{subagentRunId:e.subagentRunId}},e);u.push(t),n?.event("TRANSFORM","TEXT_MESSAGE_START",t,{messageId:e.messageId})}if(void 0!==e.delta||void 0!==e.rawEvent){let r=void 0===e.subagentRunId?d.subagentRunId:e.subagentRunId,i=eU({...t,type:a.Bx.TEXT_MESSAGE_CONTENT,messageId:d.messageId,delta:void 0===e.delta?"":e.delta,...void 0!==r&&{subagentRunId:r}},e);u.push(i),c=!0,n?.event("TRANSFORM","TEXT_MESSAGE_CONTENT",i,{messageId:d.messageId})}if(0===u.length&&(void 0!==e.metadata||void 0!==e.rawEvent||null===e.subagentRunId||void 0!==t)){let n=void 0===e.subagentRunId?d.subagentRunId:e.subagentRunId;u.push({...t,type:a.Bx.TEXT_MESSAGE_CONTENT,messageId:d.messageId,delta:"",...void 0!==e.metadata&&{metadata:e.metadata},...void 0!==e.rawEvent&&{rawEvent:e.rawEvent},...void 0!==n&&{subagentRunId:n}}),c=!0}return eW(u,t,c,"TEXT_MESSAGE_CHUNK"),u}case a.Bx.TOOL_CALL_CHUNK:{let t=eV(e,eY),s=o("tool",e.toolCallId,e.subagentRunId??void 0,"TOOL_CALL_CHUNK","tool call"),l=r.get(s),u=[],c=!1,d;if(l?.kind==="tool"&&(void 0===e.toolCallId||e.toolCallId===l.fields.toolCallId))eB("tool call",l.fields.toolCallId,"toolCallName",e.toolCallName,l.fields.toolCallName),eB("tool call",l.fields.toolCallId,"parentMessageId",e.parentMessageId,l.fields.parentMessageId),d=l.fields;
11else{if(u.push(...i(s)),void 0===e.toolCallId)throw Error("First TOOL_CALL_CHUNK must have a toolCallId");if(void 0===e.toolCallName)throw Error("First TOOL_CALL_CHUNK must have a toolCallName");d={toolCallId:e.toolCallId,toolCallName:e.toolCallName,parentMessageId:e.parentMessageId,subagentRunId:e.subagentRunId},r.set(s,{kind:"tool",fields:d});let t=e$({type:a.Bx.TOOL_CALL_START,toolCallId:e.toolCallId,toolCallName:e.toolCallName,...void 0!==e.parentMessageId&&{parentMessageId:e.parentMessageId},...void 0!==e.subagentRunId&&{subagentRunId:e.subagentRunId}},e);u.push(t),n?.event("TRANSFORM","TOOL_CALL_START",t,{toolCallId:e.toolCallId,toolCallName:e.toolCallName})}if(void 0!==e.delta||void 0!==e.rawEvent){let r=void 0===e.subagentRunId?d.subagentRunId:e.subagentRunId,i=eU({...t,type:a.Bx.TOOL_CALL_ARGS,toolCallId:d.toolCallId,delta:void 0===e.delta?"":e.delta,...void 0!==r&&{subagentRunId:r}},e);u.push(i),c=!0,n?.event("TRANSFORM","TOOL_CALL_ARGS",i,{toolCallId:d.toolCallId})}if(0===u.length&&(void 0!==e.metadata||void 0!==e.rawEvent||null===e.subagentRunId||void 0!==t)){let n=void 0===e.subagentRunId?d.subagentRunId:e.subagentRunId;u.push({...t,type:a.Bx.TOOL_CALL_ARGS,toolCallId:d.toolCallId,delta:"",...void 0!==e.metadata&&{metadata:e.metadata},...void 0!==e.rawEvent&&{rawEvent:e.rawEvent},...void 0!==n&&{subagentRunId:n}}),c=!0}return eW(u,t,c,"TOOL_CALL_CHUNK"),u}case a.Bx.REASONING_MESSAGE_CHUNK:{let t=eV(e,eZ),s=o("reasoning",e.messageId,e.subagentRunId??void 0,"REASONING_MESSAGE_CHUNK","reasoning message"),l=r.get(s),u=[],c=!1,d;if(l?.kind==="reasoning"&&(void 0===e.messageId||e.messageId===l.fields.messageId))d=l.fields;
11else{if(u.push(...i(s)),void 0===e.messageId)throw Error("First REASONING_MESSAGE_CHUNK must have a messageId");d={messageId:e.messageId,subagentRunId:e.subagentRunId},r.set(s,{kind:"reasoning",fields:d});let t=e$({type:a.Bx.REASONING_MESSAGE_START,messageId:e.messageId,role:"reasoning",...void 0!==e.subagentRunId&&{subagentRunId:e.subagentRunId}},e);u.push(t),n?.event("TRANSFORM","REASONING_MESSAGE_START",t,{messageId:e.messageId})}if(void 0!==e.delta||void 0!==e.rawEvent){let r=void 0===e.subagentRunId?d.subagentRunId:e.subagentRunId,i=eU({...t,type:a.Bx.REASONING_MESSAGE_CONTENT,messageId:d.messageId,delta:void 0===e.delta?"":e.delta,...void 0!==r&&{subagentRunId:r}},e);u.push(i),c=!0,n?.event("TRANSFORM","REASONING_MESSAGE_CONTENT",i,{messageId:d.messageId})}if(0===u.length&&(void 0!==e.metadata||void 0!==e.rawEvent||null===e.subagentRunId||void 0!==t)){let n=void 0===e.subagentRunId?d.subagentRunId:e.subagentRunId;u.push({...t,type:a.Bx.REASONING_MESSAGE_CONTENT,messageId:d.messageId,delta:"",...void 0!==e.metadata&&{metadata:e.metadata},...void 0!==e.rawEvent&&{rawEvent:e.rawEvent},...void 0!==n&&{subagentRunId:n}}),c=!0}return eW(u,t,c,"REASONING_MESSAGE_CHUNK"),u}}return e.type,[e]}),(0,Z.j)(()=>{s()}))},eK=Symbol("agui.strip.drop");function eX(e){let t=e;for(;;){if(t instanceof eg.Ii||t instanceof eg.l1||t instanceof eg.Xi||t instanceof eg.EV||t instanceof eg.hw){t=t.unwrap();continue}if(t instanceof eg.ut){t=t.def.in;continue}if(t instanceof eg.Ih){t=t.def.getter();continue}return t}}function eQ(e){let t=Array.isArray(e.def?.values)?e.def.values:e.values?Array.from(e.values):void 0;return t&&1===t.length?t[0]:e.value}function eJ(e,t){let n=[],r=function e(t,n,r,i){let s=eX(n);if(s instanceof eg.bv){if("object"!=typeof t||!t||Array.isArray(t))return t;let n=s.shape,a={},o=s.meta()?.specOpen===!0;for(let s of Object.keys(t)){let l=Object.prototype.hasOwnProperty.call(n,s)?n[s]:void 0;if(void 0===l){if(o){a[s]=t[s];continue}i.push(`${r}/${s}`);continue}let u=i.length,c=e(t[s],l,`${r}/${s}`,i);if(c===eK){if(i.length=u,l.safeParse(void 0).success){i.push(`${r}/${s}`);continue}return eK}a[s]=c}return a}if(s instanceof eg.n){if(!Array.isArray(t))return t;let n=s.element,a=[];return t.forEach((t,s)=>{let o=i.length,l=e(t,n,`${r}/${s}`,i);if(l===eK){i.length=o,i.push(`${r}/${s}`);return}a.push(l)}),a}if(s instanceof eg.b8){if("object"!=typeof t||!t||Array.isArray(t))return t;let n=s.def.valueType,a={};for(let s of Object.keys(t)){let o=i.length,l=e(t[s],n,`${r}/${s}`,i);if(l===eK){i.length=o,i.push(`${r}/${s}`);continue}a[s]=l}return a}if(s instanceof eg.fZ){let n,a=s.options,o=(n=s.def,"string"==typeof n?.discriminator?n.discriminator:void 0);if(void 0!==o){if("object"!=typeof t||!t||Array.isArray(t))return t;let n=t[o];for(let s of a){let a=eX(s);if(a instanceof eg.bv&&function(e){let t=eX(e);return t instanceof eg.DN?eQ(t):void 0}(a.shape[o])===n)return e(t,s,r,i)}return eK}let l=a.filter(e=>eX(e)instanceof eg.bv),u="object"==typeof t&&!!t&&!Array.isArray(t);if(l.length>1&&u)return t;for(let n of a){let s=eX(n);if(s instanceof eg.n&&Array.isArray(t)||s instanceof eg.bv&&u)return e(t,n,r,i)}}return t}(e,t,"",n);if(r===eK)throw Error(`Internal error: the stripper found the whole value unrecognisable, which the schemas are not supposed to allow â schema/stripper mismatch.`);return{value:r,stripped:n}}let e0=new Set(Object.values(a.Bx)),e1=new Map(em.g$.options.map(e=>[String(eQ(e.shape.type)),e]));function e2(e){"u">typeof ey&&void 0!==ey.env&&ey.env.SUPPRESS_TRANSFORMATION_WARNINGS||console.warn(`[ag-ui][enforce] ${e}`)}let e3=e=>t=>{let n=ek(e);return t.pipe((0,Y.Z)(e=>{if(!e0.has(e.type))return e2(`Dropping unrecognised event '${String(e.type)}': no middleware translated it and the protocol does not describe it.`),n?.event("ENFORCE","Unrecognised event dropped:",e,{type:e.type}),z.w;let t=e1.get(e.type);if(void 0===t)throw Error(`No validator for recognised event type '${String(e.type)}'`);let{value:r,stripped:i}=eJ(e,t);for(let t of i)e2(`Removed unrecognised material at '${t}' on ${String(e.type)}. Nothing handled it; see the repo-root DEPRECATIONS.md if it is a retired shape.`);return(0,j.of)(t.parse(r))}))};var e4=class{runNext(e,t){return t.run(e).pipe(eq(!1))}runNextWithState(e,t){let n=eb(e.messages||[]),r=eb(void 0===e.state?{}:e.state),i=new G.m;return eC(e,i,t,[]).subscribe({next:e=>{void 0!==e.messages&&(n=e.messages),void 0!==e.state&&(r=e.state)},error:()=>{}}),this.runNext(e,t).pipe((0,q.H)(async e=>(i.next(e),await new Promise(e=>setTimeout(e,0)),{event:e,messages:eb(n),state:eb(r)})))}},e9=class extends e4{constructor(e){super(),this.fn=e}run(e,t){return this.fn(e,t)}};function e5(e){let t=e.content;if(!Array.isArray(t))return e;let n=t.flatMap(e=>{var n;if("object"==typeof e&&e&&"type"in e&&"binary"===e.type&&"mimeType"in e&&"string"==typeof e.mimeType){let r,i=(r=(n=e.mimeType).startsWith("image/")?"image":n.startsWith("audio/")?"audio":n.startsWith("video/")?"video":"document",e.data?{type:r,source:{type:"data",value:e.data,mimeType:e.mimeType}
11,...e.filename?{metadata:{filename:e.filename}}:{}}:e.url?{type:r,source:{type:"url",value:e.url,mimeType:e.mimeType},...e.filename?{metadata:{filename:e.filename}}:{}}:((typeof ey>"u"||void 0===ey.env||!ey.env.SUPPRESS_TRANSFORMATION_WARNINGS)&&console.warn(`[ag-ui][compat] A binary content part carries only an id ('${e.id??""}') and cannot be converted to a modern media part; a 1.0 peer will not accept it. Provide data or a url. See the repo-root DEPRECATIONS.md.`),e));return"binary"!==i.type&&t.some(t=>(function(e,t,n){if("object"!=typeof e||!e||!("type"in e)||e.type!==t.type||!("source"in e))return!1;let r=e.source;return"object"==typeof r&&!!r&&"type"in r&&r.type===t.source.type&&"value"in r&&r.value===t.source.value&&"mimeType"in r&&r.mimeType===t.source.mimeType&&(!n||"metadata"in e&&"object"==typeof e.metadata&&null!==e.metadata&&"filename"in e.metadata&&e.metadata.filename===n)})(t,i,e.filename))?[]:[i]}return[e]});return{...e,content:n}}let e6="THINKING_START",e8="THINKING_END",e7="THINKING_TEXT_MESSAGE_START",te="THINKING_TEXT_MESSAGE_CONTENT",tt="THINKING_TEXT_MESSAGE_END";function tn(e,t){"u">typeof ey&&void 0!==ey.env&&ey.env.SUPPRESS_TRANSFORMATION_WARNINGS||console.warn(`[ag-ui][compat] Converting deprecated ${e} to ${t}. The old shape leaves the protocol after its shim window â see the repo-root DEPRECATIONS.md. Set SUPPRESS_TRANSFORMATION_WARNINGS=true to silence.`)}function tr(e){return"object"==typeof e&&!!e&&!Array.isArray(e)}function ti(e,t,n){if(!tr(e)||null!==e[t])return e;tn(`${n}.${t}: null`,"an absent field");let{[t]:r,...i}=e;return i}function ts(e,t,n){if(!tr(e)||!Array.isArray(e[t]))return e;let r=e[t],i=r.map(n);return i.some((e,t)=>e!==r[t])?{...e,[t]:i}:e}function ta(e){return ts(e,"content",e=>{if(!tr(e))return e;switch(e.type){case"image":case"audio":case"video":case"document":return ti(e,"metadata",`${e.type} input content`);default:return e}})}var to=class extends e4{constructor(...e){super(...e),this.currentReasoningId=null,this.currentMessageId=null}warn(e,t){tn(e,t)}mintedContinuationId(e,t){if(null!==t)return t;let n=eE();return this.warnAside(`Minting a messageId ('${n}') for ${e}: no THINKING opener preceded it, so there was no id to continue. The id is this client's invention, not the producer's, and verification will reject the translated event for naming something nothing opened.`),n}warnAside(e){"u">typeof ey&&void 0!==ey.env&&ey.env.SUPPRESS_TRANSFORMATION_WARNINGS||console.warn(`[ag-ui][compat] ${e} Set SUPPRESS_TRANSFORMATION_WARNINGS=true to silence.`)}run(e,t){return this.currentReasoningId=null,this.currentMessageId=null,e.messages=e.messages.map(e5),t.run(e).pipe((0,ee.T)(e=>this.transformEvent(e)))}transformEvent(e){if(null===e.rawEvent){this.warn(`${e.type}.rawEvent: null`,"an absent field");let{rawEvent:t,...n}=e;e=n}if((e.type===a.Bx.RUN_FINISHED||e.type===a.Bx.SUBAGENT_FINISHED)&&null===e.result){this.warn(`${e.type}.result: null`,"an absent field");let{result:t,...n}=e;e=n}switch(e.type){case e6:{this.currentReasoningId=eE();let{title:t,...n}=e;return this.warn(e6,a.Bx.REASONING_START),void 0!==t&&this.warnAside(`Dropping ${e6}.title ${JSON.stringify(t)}: ${a.Bx.REASONING_START} has no title field, so the span's label cannot be carried and nothing downstream can recover it.`),{...n,type:a.Bx.REASONING_START,messageId:this.currentReasoningId}}case e7:return this.currentMessageId=eE(),this.warn(e7,a.Bx.REASONING_MESSAGE_START),{...e,type:a.Bx.REASONING_MESSAGE_START,messageId:this.currentMessageId,role:"reasoning"};case te:{let{delta:t,...n}=e;return this.warn(te,a.Bx.REASONING_MESSAGE_CONTENT),{...n,type:a.Bx.REASONING_MESSAGE_CONTENT,messageId:this.mintedContinuationId(te,this.currentMessageId),delta:t}}case tt:{let t=this.mintedContinuationId(tt,this.currentMessageId);return this.currentMessageId=null,this.warn(tt,a.Bx.REASONING_MESSAGE_END),{...e,type:a.Bx.REASONING_MESSAGE_END,messageId:t}}case e8:{let t=this.mintedContinuationId(e8,this.currentReasoningId);return this.currentReasoningId=null,this.warn(e8,a.Bx.REASONING_END),{...e,type:a.Bx.REASONING_END,messageId:t}}case a.Bx.TOOL_CALL_START:case a.Bx.TOOL_CALL_CHUNK:{let t=e;if(null===t.parentMessageId){this.warn(`${e.type}.parentMessageId: null`,"an absent field");let{parentMessageId:n,...r}=t;return r}return e}case a.Bx.RUN_FINISHED:{let t=e;if(null===t.outcome){this.warn("RUN_FINISHED.outcome: null","an absent field");let{outcome:e,...n}=t;return n}return e}case a.Bx.MESSAGES_SNAPSHOT:{let t=e;return Array.isArray(t.messages)?{...t,messages:t.messages.map(e=>this.upgradeInboundMessage(e))}:e}case a.Bx.RUN_STARTED:{let t,n=(t=ts(t=ti(e.input,"forwardedProps","RunAgentInput"),"tools",e=>ti(e,"parameters","Tool")),t=ts(t,"resume",e=>ti(e,"payload","ResumeEntry")),ts(t,"messages",ta)),r=n===e.input?e:{...e,input:n};return r.input&&Array.isArray(r.input.messages)?{...r,input:{...r.input,messages:r.input.messages.map(e=>this.upgradeInboundMessage(e))}}:r}default:return e}}upgradeInboundMessage(e){let t=(e=ta(e)).content;return Array.isArray(t)&&t.some(e=>"object"==typeof e&&!!e&&"binary"===e.type)?(this.warn("binary input content","the modern media content parts"),e5(e)):e}};function tl(){return"u">typeof ey&&void 0!==ey.env&&!!ey.env.SUPPRESS_TRANSFORMATION_WARNINGS}function tu(e){let t=e.content;if(Array.isArray(t)){var n;let r=e=>"object"==typeof e&&!!e&&"type"in e&&"text"===e.type,i=e=>r(e)&&"string"==typeof e.text,s=t.filter(e=>r(e)&&!i(e));if(s.length>0)return n=s.length,tl()||console.warn(`[ag-ui][compat] Not flattening message content for a <=0.0.39 peer: ${n} content part(s) claim type "text" but carry a malformed 'text' value. That is a defect in the message, not media the peer cannot represent, and a downgrade must not repair it â the content is passed on unchanged so the outgoing enforcement boundary reports it. See the repo-root DEPRECATIONS.md.`),e;let a=t.filter(e=>!i(e)).map(e=>"object"==typeof e&&e&&"type"in e?String(e.type):typeof e);a.length>0&&(tl()||console.warn(`[ag-ui][compat] Flattening message content for a <=0.0.39 peer DROPS non-text parts (${a.join(", ")}). The peer cannot receive them; upgrade it to keep media content. See the repo-root DEPRECATIONS.md.`));let o=t.filter(i).map(e=>e.text).join("");return{...e,content:o}}return"string"==typeof t?e:void 0===t?{...e,content:""}:e}var tc=class extends e4{run(e,t){let{parentRunId:n,...r}=e,i={...r,messages:r.messages.map(tu)};return this.runNext(i,t)}};let td="THINKING_START",th="THINKING_END",tp="THINKING_TEXT_MESSAGE_START",tf="THINKING_TEXT_MESSAGE_CONTENT",tm="THINKING_TEXT_MESSAGE_END";var tg=class extends e4{constructor(...e){super(...e),this.currentReasoningId=null,this.currentMessageId=null}warnAboutTransformation(e,t){"u">typeof ey&&void 0!==ey.env&&ey.env.SUPPRESS_TRANSFORMATION_WARNINGS||console.warn(`AG-UI is convert
11ing ${e} to ${t}. To remove this warning, upgrade your AG-UI integration package (e.g. @ag-ui/langgraph). To surpress it, set SUPPRESS_TRANSFORMATION_WARNINGS=true in your .env file.`)}run(e,t){return this.currentReasoningId=null,this.currentMessageId=null,this.runNext(e,t).pipe((0,ee.T)(e=>this.transformEvent(e)))}transformEvent(e){switch(e.type){case td:{this.currentReasoningId=eE();let{title:t,...n}=e;return this.warnAboutTransformation(td,a.Bx.REASONING_START),{...n,type:a.Bx.REASONING_START,messageId:this.currentReasoningId}}case tp:return this.currentMessageId=eE(),this.warnAboutTransformation(tp,a.Bx.REASONING_MESSAGE_START),{...e,type:a.Bx.REASONING_MESSAGE_START,messageId:this.currentMessageId,role:"reasoning"};case tf:{let{delta:t,...n}=e;return this.warnAboutTransformation(tf,a.Bx.REASONING_MESSAGE_CONTENT),{...n,type:a.Bx.REASONING_MESSAGE_CONTENT,messageId:this.currentMessageId??eE(),delta:t}}case tm:{let t=this.currentMessageId??eE();return this.warnAboutTransformation(tm,a.Bx.REASONING_MESSAGE_END),{...e,type:a.Bx.REASONING_MESSAGE_END,messageId:t}}case th:{let t=this.currentReasoningId??eE();return this.warnAboutTransformation(th,a.Bx.REASONING_END),{...e,type:a.Bx.REASONING_END,messageId:t}}default:return e}}};let ty="SUBAGENT_STARTED",tv="SUBAGENT_FINISHED",tb="SUBAGENT_ERROR";function tE(e){if(e&&"object"==typeof e&&"subagentRunId"in e){let{subagentRunId:t,...n}=e;return n}return e}function tT(e){return e.map(e=>tE(e))}var t_=class extends e4{warnDroppedLifecycleEvent(e){"u">typeof ey&&void 0!==ey.env&&ey.env.SUPPRESS_TRANSFORMATION_WARNINGS||console.warn(`AG-UI is dropping ${e} because the target agent predates subagent support. To remove this warning, upgrade your AG-UI integration package. To suppress it, set SUPPRESS_TRANSFORMATION_WARNINGS=true in your .env file.`)}run(e,t){let n={...e,messages:(e.messages??[]).map(e=>tE(e))};return this.runNext(n,t).pipe((0,en.M)(e=>{let t=e.type;(t===ty||t===tv||t===tb)&&this.warnDroppedLifecycleEvent(t)}),(0,et.p)(e=>{let t=e.type;return t!==ty&&t!==tv&&t!==tb}),(0,ee.T)(e=>{let t=tE(e);return t.type===a.Bx.MESSAGES_SNAPSHOT&&Array.isArray(t.messages)?{...t,messages:tT(t.messages)}:t.type===a.Bx.RUN_FINISHED&&t.outcome&&Array.isArray(t.outcome.interrupts)?{...t,outcome:{...t.outcome,interrupts:t.outcome.interrupts.map(e=>tE(e))}}:t.type===a.Bx.RUN_STARTED&&t.input&&Array.isArray(t.input.messages)?{...t,input:{...t.input,messages:tT(t.input.messages)}}:t}))}},tA="1.0.1";let tx=!1,tk=new WeakSet,tS=e=>{let t=e.protocolVersion;if(void 0!==t&&t!==a.WP)switch(((e,t)=>/^\d+\.\d+$/.test(e)?ef(e,t)>0?"newer":"not-newer":"uninterpretable")(t,a.WP)){case"uninterpretable":console.warn(`[ag-ui] The producer declared protocol version '${t}', which this client cannot interpret.`);return;case"newer":console.warn(`[ag-ui] The producer speaks protocol ${t}; this client speaks ${a.WP}. Unrecognised material will be stripped with warnings.`);return;case"not-newer":return}};var tw=class e{resolvePeerCeiling(t){if(this.resolvingPeerCeiling)return tA;let n=Object.getOwnPropertyDescriptor(this,"maxVersion"),r=Object.getOwnPropertyDescriptor(this,"maxProtocolVersion"),i=Object.getPrototypeOf(this);for(;i&&i!==e.prototype;)n??=Object.getOwnPropertyDescriptor(i,"maxVersion"),r??=Object.getOwnPropertyDescriptor(i,"maxProtocolVersion"),i=Object.getPrototypeOf(i);if("maxVersion"===t&&n)return tA;let s="maxProtocolVersion"===t?n:r;if(!s)return tA;this.resolvingPeerCeiling=!0;try{return s.get?s.get.call(this):s.value}finally{this.resolvingPeerCeiling=!1}}get maxProtocolVersion(){return this.resolvePeerCeiling("maxProtocolVersion")}get maxVersion(){return this.resolvingPeerCeiling||tx||(tx=!0,console.warn(`[ag-ui] AbstractAgent.maxVersion is deprecated â use maxProtocolVersion. Same value; the new name says whose version it is and that it is a ceiling.`)),this.resolvePeerCeiling("maxVersion")}get debug(){return this._debug}set debug(e){this._debug=ex(e),this._debugLogger=ew(this._debug)}get debugLogger(){return this._debugLogger}set debugLogger(e){"boolean"==typeof e?this._debugLogger=e?ew(ex(!0)):void 0:this._debugLogger=e}resolvedCeilingDuringConstruction(){let e=this.maxProtocolVersion;
11if("string"!=typeof e||!("string"==typeof e&&/^[v\d]/.test(e)&&el.test(e)))throw new a.$e(`maxProtocolVersion resolved to ${JSON.stringify(e)} during construction, which is not a version this client can compare. A ceiling read from an instance field is not available yet â return a literal from the getter.`);return e}constructor({agentId:e,description:t,threadId:n,initialMessages:r,initialState:i,debug:a}={}){this.subscribers=[],this.isRunning=!1,this.pendingInterrupts=[],this.middlewares=[],this.resolvingPeerCeiling=!1,this.agentId=e,this.description=t??"",this.threadId=n??(0,s.A)(),this.messages=eb(r??[]),this.state=eb(i??{}),this._debug=ex(a),this._debugLogger=ew(this._debug);let o=this.resolvedCeilingDuringConstruction();0>=ef(o,"0.0.39")&&this.middlewares.unshift(new tc),0>=ef(o,"0.0.45")&&this.middlewares.unshift(new tg),0>=ef(o,"0.0.57")&&this.middlewares.unshift(new t_)}subscribe(e){return this.subscribers.push(e),{unsubscribe:()=>{this.subscribers=this.subscribers.filter(t=>t!==e)}}}use(...e){let t=e.map(e=>"function"==typeof e?new e9(e):e);return this.middlewares.push(...t),this}async runAgent(e,t){try{let n;this.isRunning=!0,this.agentId=this.agentId??(0,s.A)();let r=this.prepareRunAgentInput(e);this.debugLogger?.lifecycle("LIFECYCLE","Run started:",{agentId:this.agentId,threadId:this.threadId});let i,a=new Set(this.messages.map(e=>e.id)),o=[{onRunStartedEvent:({event:e})=>tS(e),onRunFinishedEvent:e=>{"success"===e.outcome&&(i=e.result)}},...this.subscribers,t??{}];tk.add(r),await this.onInitialize(r,o),this.activeRunDetach$=new H.B,this.activeRunCompletionPromise=new Promise(e=>{n=e}),await (0,V.s)((0,W.F)(()=>[...this.middlewares,new to].reduceRight((e,t)=>({run:n=>t.run(n,e),get messages(){return e.messages},get state(){return e.state}}),this).run(r),e3(this.debugLogger),eq(this.debugLogger),eN(this.debugLogger),e=>e.pipe((0,er.Q)(this.activeRunDetach$)),e=>this.apply(r,e,o),e=>this.processApplyEvents(r,e,o),(0,ei.W)(e=>(this.debugLogger?.lifecycle("LIFECYCLE","Run errored:",{agentId:this.agentId,error:e instanceof Error?e.message:String(e)}),this.isRunning=!1,this.onError(r,e,o))),(0,Z.j)(()=>{this.debugLogger?.lifecycle("LIFECYCLE","Run finished:",{agentId:this.agentId,threadId:this.threadId}),this.isRunning=!1,this.onFinalize(r,o),n?.(),n=void 0,this.activeRunCompletionPromise=void 0,this.activeRunDetach$=void 0}))((0,j.of)(null)));let l=eb(this.messages).filter(e=>!a.has(e.id));return{result:i,newMessages:l}}finally{this.isRunning=!1}}connect(e){throw new a.Qk}async connectAgent(e,t){try{let n;this.isRunning=!0,this.agentId=this.agentId??(0,s.A)();let r=this.prepareRunAgentInput(e),i,o=new Set(this.messages.map(e=>e.id)),l=[{onRunStartedEvent:({event:e})=>tS(e),onRunFinishedEvent:e=>{"success"===e.outcome&&(i=e.result)}},...this.subscribers,t??{}];await this.onInitialize(r,l),this.activeRunDetach$=new H.B,this.activeRunCompletionPromise=new Promise(e=>{n=e}),await (0,V.s)((0,W.F)(()=>(0,B.v)(()=>this.connect(r)),e=>{let t;return e3(this.debugLogger)((t=e,(0,B.v)(()=>{let e=new to;return t.pipe((0,ee.T)(t=>e.transformEvent(t)))})))},eq(this.debugLogger),eN(this.debugLogger),e=>e.pipe((0,er.Q)(this.activeRunDetach$)),e=>this.apply(r,e,l),e=>this.processApplyEvents(r,e,l),(0,ei.W)(e=>(this.isRunning=!1,e instanceof a.Qk?z.w:this.onError(r,e,l))),(0,Z.j)(()=>{this.isRunning=!1,this.onFinalize(r,l),n?.(),n=void 0,this.activeRunCompletionPromise=void 0,this.activeRunDetach$=void 0}))((0,j.of)(null)),{defaultValue:void 0});let u=eb(this.messages).filter(e=>!o.has(e.id));return{result:i,newMessages:u}}finally{this.isRunning=!1}}abortRun(){}async detachActiveRun(){if(!this.activeRunDetach$)return;let e=this.activeRunCompletionPromise??Promise.resolve();this.activeRunDetach$.next(),this.activeRunDetach$?.complete(),await e}apply(e,t,n){return eC(e,t,this,n,this.debugLogger)}
11processApplyEvents(e,t,n){return t.pipe((0,en.M)(t=>{t.messages&&(this.messages=t.messages,n.forEach(t=>{t.onMessagesChanged?.({messages:this.messages,state:this.state,agent:this,input:e})})),void 0!==t.state&&(this.state=t.state,n.forEach(t=>{t.onStateChanged?.({state:this.state,messages:this.messages,agent:this,input:e})}))}))}prepareRunAgentInput(e){let t=eb(this.messages);for(let e of t)null===e.subagentRunId&&delete e.subagentRunId;let n=t.filter(e=>"activity"!==e.role);return{threadId:this.threadId,runId:e?.runId||(0,s.A)(),...ef(this.maxProtocolVersion,tA)>=0&&{protocolVersion:a.WP},tools:eb(e?.tools??[]),context:eb(e?.context??[]),forwardedProps:eb(e?.forwardedProps??{}),state:eb(this.state),messages:n,...e?.resume===void 0?{}:{resume:eb(e.resume)}}}async onInitialize(e,t){if(tk.has(e)&&this.pendingInterrupts.length>0){let t=new Set((e.resume??[]).map(e=>e.interruptId)),n=this.pendingInterrupts.map(e=>e.id).filter(e=>!t.has(e));if(n.length>0)throw new a.$e(`Thread has ${n.length} pending interrupt(s) not addressed by resume: ${n.join(", ")}`);for(let t of this.pendingInterrupts)if(function(e,t=new Date){return void 0!==e.expiresAt&&new Date(e.expiresAt)<=t}(t)&&(e.resume??[]).find(e=>e.interruptId===t.id)?.status!=="cancelled")throw new a.$e(`Interrupt ${t.id} expired at ${t.expiresAt} and can no longer be answered. Cancel it to continue the thread.`)}let n=await eA(t,this.messages,this.state,(t,n,r)=>t.onRunInitialized?.({messages:n,state:r,agent:this,input:e}));if(void 0!==n.messages||void 0!==n.state){if(n.messages){for(let e of(this.messages=n.messages,n.messages))null===e.subagentRunId&&delete e.subagentRunId;e.messages=n.messages.filter(e=>"activity"!==e.role),t.forEach(t=>{t.onMessagesChanged?.({messages:this.messages,state:this.state,agent:this,input:e})})}void 0!==n.state&&(this.state=n.state,e.state=n.state,t.forEach(t=>{t.onStateChanged?.({state:this.state,messages:this.messages,agent:this,input:e})}))}}onError(e,t,n){return(0,$.H)(eA(n,this.messages,this.state,(n,r,i)=>n.onRunFailed?.({error:t,messages:r,state:i,agent:this,input:e}))).pipe((0,ee.T)(r=>{if((void 0!==r.messages||void 0!==r.state)&&(void 0!==r.messages&&(this.messages=r.messages,n.forEac
11h(t=>{t.onMessagesChanged?.({messages:this.messages,state:this.state,agent:this,input:e})})),void 0!==r.state&&(this.state=r.state,n.forEach(t=>{t.onStateChanged?.({state:this.state,messages:this.messages,agent:this,input:e})}))),!0!==r.stopPropagation){let e=String(t);if("AbortError"!==t.name&&"Fetch is aborted"!==t.message&&"signal is aborted without reason"!==t.message&&"component unmounted"!==t.message&&"component unmounted"!==e)throw console.error("Agent execution failed:",t),t}return{}}))}async onFinalize(e,t){let n=await eA(t,this.messages,this.state,(t,n,r)=>t.onRunFinalized?.({messages:n,state:r,agent:this,input:e}));(void 0!==n.messages||void 0!==n.state)&&(void 0!==n.messages&&(this.messages=n.messages,t.forEach(t=>{t.onMessagesChanged?.({messages:this.messages,state:this.state,agent:this,input:e})})),void 0!==n.state&&(this.state=n.state,t.forEach(t=>{t.onStateChanged?.({state:this.state,messages:this.messages,agent:this,input:e})})))}clone(){let e=Object.create(Object.getPrototypeOf(this));return e.agentId=this.agentId,e.description=this.description,e.threadId=this.threadId,e.messages=eb(this.messages),e.state=eb(this.state),e._debug=this._debug,e._debugLogger=this._debugLogger,e.isRunning=this.isRunning,e.subscribers=[...this.subscribers],e.middlewares=[...this.middlewares],e.pendingInterrupts=eb(this.pendingInterrupts),e}addMessage(e){this.messages.push(e),(async()=>{for(let t of this.subscribers)await t.onNewMessage?.({message:e,messages:this.messages,state:this.state,agent:this});if("assistant"===e.role&&e.toolCalls)for(let t of e.toolCalls)for(let e of this.subscribers)await e.onNewToolCall?.({toolCall:t,messages:this.messages,state:this.state,agent:this});for(let e of this.subscribers)await e.onMessagesChanged?.({messages:this.messages,state:this.state,agent:this})})()}addMessages(e){this.messages.push(...e),(async()=>{for(let t of e){for(let e of this.subscribers)await e.onNewMessage?.({message:t,messages:this.messages,state:this.state,agent:this});if("assistant"===t.role&&t.toolCalls)for(let e of t.toolCalls)for(let t of this.subscribers)await t.onNewToolCall?.({toolCall:e,messages:this.messages,state:this.state,agent:this})}for(let e of this.subscribers)await e.onMessagesChanged?.({messages:this.messages,state:this.state,agent:this})})()}setMessages(e){this.messages=eb(e),(async()=>{for(let e of this.subscribers)await e.onMessagesChanged?.({messages:this.messages,state:this.state,agent:this})})()}setState(e){this.state=eb(e),(async()=>{for(let e of this.subscribers)await e.onStateChanged?.({messages:this.messages,state:this.state,agent:this})})()}legacy_to_be_removed_runAgentBridged(e){let t,n,r;this.agentId=this.agentId??(0,s.A)();let i=this.prepareRunAgentInput(e);return[...this.middlewares,new to].reduceRight((e,t)=>({run:n=>t.run(n,e),get messages(){return e.messages},get state(){return e.state}}),this).run(i).pipe(e3(this.debugLogger),eq(this.debugLogger),eN(this.debugLogger),(t=this.threadId,n=i.runId,r=this.agentId,e=>{let i={},s=!0,o=!0,l="",u=null,c=null,d=[],h={},p=!1,f=e=>{"object"==typeof e&&e&&("messages"in e&&delete e.messages,i=e)};return e.pipe((0,Y.Z)(e=>{switch(e.type){case a.Bx.TEXT_MESSAGE_START:return[{type:eM.TextMessageStart,messageId:e.messageId,role:e.role}];case a.Bx.TEXT_MESSAGE_CONTENT:return[{type:eM.TextMessageContent,messageId:e.messageId,content:e.delta}];case a.Bx.TEXT_MESSAGE_END:return[{type:eM.TextMessageEnd,messageId:e.messageId}];case a.Bx.TOOL_CALL_START:return d.push({id:e.toolCallId,type:"function",function:{name:e.toolCallName,arguments:""}}),o=!0,h[e.toolCallId]=e.toolCallName,[{type:eM.ActionExecutionStart,actionExecutionId:e.toolCallId,actionName:e.toolCallName,parentMessageId:e.parentMessageId}];case a.Bx.TOOL_CALL_ARGS:{let a=d.find(t=>t.id===e.toolCallId);if(!a)return ez(`[ag-ui][legacy] TOOL_CALL_ARGS: No tool call found with ID '${e.toolCallId}'`),[];a.function.arguments+=e.delta;let u=!1;if(c){let e=c.find(e=>e.tool==a.function.name);if(e)try{let t=JSON.parse(ea(a.function.arguments));e.tool_argument&&e.tool_argument in t?(f({...i,[e.state_key]:t[e.tool_argument]}
11),u=!0):e.tool_argument||(f({...i,[e.state_key]:t}),u=!0)}catch{}}return[{type:eM.ActionExecutionArgs,actionExecutionId:e.toolCallId,args:e.delta},...u?[{type:eM.AgentStateMessage,threadId:t,agentName:r,nodeName:l,runId:n,running:s,role:"assistant",state:JSON.stringify(i),active:o}]:[]]}case a.Bx.TOOL_CALL_END:return[{type:eM.ActionExecutionEnd,actionExecutionId:e.toolCallId}];case a.Bx.TOOL_CALL_RESULT:{let t=h[e.toolCallId];return(void 0===t||""===t)&&ez(`[ag-ui][legacy] No usable tool name was seen for tool call '${e.toolCallId}' (${void 0===t?"no TOOL_CALL_START reached this bridge":"its TOOL_CALL_START carried an empty toolCallName"}), so its result is being bridged with the fabricated action name "unknown". Downstream consumers route on that name.`),[{type:eM.ActionExecutionResult,actionExecutionId:e.toolCallId,result:ej(e.toolCallId,e.content),actionName:t||"unknown"}]}case a.Bx.RAW:return p||(p=!0,ez("[ag-ui][legacy] Dropping RAW events: the legacy runtime protocol has no equivalent, so the provider payloads they carry do not reach the legacy stream. Reported once per stream.")),[];case a.Bx.CUSTOM:switch(e.name){case"Exit":s=!1;break;case"PredictState":c=e.value}return[{type:eM.MetaEvent,name:e.name,value:e.value}];case a.Bx.STATE_SNAPSHOT:return f(e.snapshot),[{type:eM.AgentStateMessage,threadId:t,agentName:r,nodeName:l,runId:n,running:s,role:"assistant",state:JSON.stringify(i),active:o}];case a.Bx.STATE_DELTA:{let a;try{a=L.applyPatch(i,e.delta,!0,!1).newDocument}catch(n){let t=n instanceof Error?n.message:String(n);return ez(`[ag-ui][legacy] Failed to apply state patch: 12Current state: ${JSON.stringify(i,null,2)} 13Patch operations: ${JSON.stringify(e.delta,null,2)} 14Error: ${t}`),[]}return f(a),[{type:eM.AgentStateMessage,threadId:t,agentName:r,nodeName:l,runId:n,running:s,role:"assistant",state:JSON.stringify(i),active:o}]}case a.Bx.MESSAGES_SNAPSHOT:return u=e.messages,[{type:eM.AgentStateMessage,threadId:t,agentName:r,nodeName:l,runId:n,running:s,role:"assistant",state:JSON.stringify({...i,...u?{messages:u}:{}}),active:!0}];case a.Bx.RUN_STARTED:return[];case a.Bx.RUN_FINISHED:{if(u&&(i.messages=u),0===Object.keys(i).length)return[];let e=null;if(u)try{e=function(e){let t=[];for(let n of e)if("assistant"===n.role||"user"===n.role||"system"===n.role){let e=eL(n.content);if(e){let r={id:n.id,role:n.role,content:e};t.push(r)}if("assistant"===n.role&&n.toolCalls&&n.toolCalls.length>0)for(let e of n.toolCalls){let r;try{r=JSON.parse(e.function.arguments)}catch(t){throw Error(`Failed to parse arguments for tool call '${e.id}' (${e.function.name}): ${t.message}`)}let i={id:e.id,name:e.function.name,arguments:r,parentMessageId:n.id};t.push(i)}}else if("tool"===n.role){let r="unknown";for(let t of e)if("assistant"===t.role&&t.toolCalls?.length){for(let e of t.toolCalls)if(e.id===n.toolCallId){r=e.function.name;break}}let i={id:n.id,result:ej(n.toolCallId,n.content),actionExecutionId:n.toolCallId,actionName:r};t.push(i)}return t}(u)}catch(e){return[{type:eM.RunError,message:e.message}]}return[{type:eM.AgentStateMessage,threadId:t,agentName:r,nodeName:l,runId:n,running:s,role:"assistant",state:JSON.stringify({...i,...e?{messages:e}:{}}),active:!1}]}case a.Bx.RUN_ERROR:return[{type:eM.RunError,message:e.message,code:e.code}];case a.Bx.STEP_STARTED:return l=e.stepName,d=[],c=null,[{type:eM.AgentStateMessage,threadId:t,agentName:r,nodeName:l,runId:n,running:s,role:"assistant",state:JSON.stringify(i),active:!0}];case a.Bx.STEP_FINISHED:return d=[],c=null,[{type:eM.AgentStateMessage,threadId:t,agentName:r,nodeName:l,runId:n,running:s,role:"assistant",state:JSON.stringify(i),active:!1}];default:return[]}}))}),e=>e.pipe((0,ee.T)(e=>(this.debugLogger?.event("LEGACY","Event:",e,{type:e.type}),e))))}},tI=class extends tw{requestInit(e){return{method:"POST",headers:{...this.headers,"Content-Type":"application/json",Accept:"text/event-stream"},body:JSON.stringify(function(e){if(!Array.isArray(e.messages))return e;let t=!1,n=e.messages.map(e=>{if(null===e.subagentRunId){t=!0;let n={...e};return delete n.subagentRunId,n}return e});return t?{...e,messages:n}:e}(e)),signal:this.abortController.signal}}runAgent(e,t){return this.abortController=e?.abortController??new AbortController,super.runAgent(e,t)}abortRun(){this.abortController.abort(),super.abortRun()}constructor(e){super(e),this.abortController=new AbortController,this.url=e.url,this.headers=eb(e.headers??{}),this.fetch=e.fetch??((e,t)=>fetch(e,t))}run(e){return eD(eO(()=>this.fetch(this.url,this.requestInit(function(e){let{value:t,stripped:n}=eJ((0,a.SB)(e,"RunAgentInput"),em.oQ);for(let e of n)e2(`Removed unrecognised material at '${e}' from the outgoing input.`);return em.oQ.parse(t)}(e)))),this.debugLogger)}clone(){let e=super.clone();e.url=this.url,e.headers=eb(this.headers??{}),e.fetch=this.fetch;let t=new AbortController,n=this.abortController.signal;return n.aborted&&t.abort(n.reason),e.abortController=t,e}}},28866:(e,t,n)=>{n.d(t,{s:()=>a});var r=n(24216),i=n(34401),s=n(28963);function a(e){return e<=0?function(){return r.w}:(0,i.N)(function(t,n){var r=0;t.subscribe((0,s._)(n,function(t){++r<=e&&(n.next(t),e<=r&&n.complete())}))})}},28963:(e,t,n)=>{n.d(t,{_:()=>i});var r=n(82967);function i(e,t,n,r,i){return new s(e,t,n,r,i)}var s=function(e){function t(t,n,r,i,s,a){var o=e.call(this,t)||this;return o.onFinalize=s,o.shouldUnsubscribe=a,o._next=n?function(e){try{n(e)}catch(e){t.error(e)}}:e.prototype._next,o._error=i?function(e){try{i(e)}catch(e){t.error(e)}finally{this.unsubscribe()}}:e.prototype._error,o._complete=r?function(){try{r()}catch(e){t.error(e)}finally{this.unsubscribe()}}:e.prototype._complete,o}return(0,r.C6)(t,e),t.prototype.unsubscribe=function(){var t;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){var n=this.closed;e.prototype.unsubscribe.call(this),n||null==(t=this.onFinalize)||t.call(this)}},t}(n(96574).vU)},29835:(e,t,n)=>{n.d(t,{A:()=>r});let r=(0,n(45751).A)("square-pen",[["path",{d:"M12 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7",key:"1m0v6g"}],["path",{d:"M18.375 2.625a1 1 0 0 1 3 3l-9.013 9.014a2 2 0 0 1-.853.505l-2.873.84a.5.5 0 0 1-.62-.62l.84-2.873a2 2 0 0 1 .506-.852z",key:"ohrbg2"}]])}
14,30389:(e,t,n)=>{n.d(t,{$:()=>r});function r(){for(var e,t,n=0,r="";n<arguments.length;)(e=arguments[n++])&&(t=function e(t){var n,r,i="";if("string"==typeof t||"number"==typeof t)i+=t;else if("object"==typeof t)if(Array.isArray(t))for(n=0;n<t.length;n++)t[n]&&(r=e(t[n]))&&(i&&(i+=" "),i+=r);else for(n in t)t[n]&&(i&&(i+=" "),i+=n);return i}(e))&&(r&&(r+=" "),r+=t);return r}},30577:(e,t,n)=>{n.d(t,{Mz:()=>e0,i3:()=>e2,UC:()=>e1,bL:()=>eJ,Bk:()=>ej});var r=n(23073);let i=["top","right","bottom","left"],s=Math.min,a=Math.max,o=Math.round,l=Math.floor,u=e=>({x:e,y:e}),c={left:"right",right:"left",bottom:"top",top:"bottom"},d={start:"end",end:"start"};function h(e,t){return"function"==typeof e?e(t):e}function p(e){return e.split("-")[0]}function f(e){return e.split("-")[1]}function m(e){return"x"===e?"y":"x"}function g(e){return"y"===e?"height":"width"}let y=new Set(["top","bottom"]);function v(e){return y.has(p(e))?"y":"x"}function b(e){return e.replace(/start|end/g,e=>d[e])}let E=["left","right"],T=["right","left"],_=["top","bottom"],A=["bottom","top"];function x(e){return e.replace(/left|right|bottom|top/g,e=>c[e])}function k(e){return"number"!=typeof e?{top:0,right:0,bottom:0,left:0,...e}:{top:e,right:e,bottom:e,left:e}}function S(e){let{x:t,y:n,width:r,height:i}=e;return{width:r,height:i,top:n,left:t,right:t+r,bottom:n+i,x:t,y:n}}function w(e,t,n){let r,{reference:i,floating:s}=e,a=v(t),o=m(v(t)),l=g(o),u=p(t),c="y"===a,d=i.x+i.width/2-s.width/2,h=i.y+i.height/2-s.height/2,y=i[l]/2-s[l]/2;switch(u){case"top":r={x:d,y:i.y-s.height};break;case"bottom":r={x:d,y:i.y+i.height};break;case"right":r={x:i.x+i.width,y:h};break;case"left":r={x:i.x-s.width,y:h};break;default:r={x:i.x,y:i.y}}switch(f(t)){case"start":r[o]-=y*(n&&c?-1:1);break;case"end":r[o]+=y*(n&&c?-1:1)}return r}let I=async(e,t,n)=>{let{placement:r="bottom",strategy:i="absolute",middleware:s=[],platform:a}=n,o=s.filter(Boolean),l=await (null==a.isRTL?void 0:a.isRTL(t)),u=await a.getElementRects({reference:e,floating:t,strategy:i}),{x:c,y:d}=w(u,r,l),h=r,p={},f=0;for(let n=0;n<o.length;n++){let{name:s,fn:m}=o[n],{x:g,y:y,data:v,reset:b}=await m({x:c,y:d,initialPlacement:r,placement:h,strategy:i,middlewareData:p,rects:u,platform:a,elements:{reference:e,floating:t}});c=null!=g?g:c,d=null!=y?y:d,p={...p,[s]:{...p[s],...v}},b&&f<=50&&(f++,"object"==typeof b&&(b.placement&&(h=b.placement),b.rects&&(u=!0===b.rects?await a.getElementRects({reference:e,floating:t,strategy:i}):b.rects),{x:c,y:d}=w(u,h,l)),n=-1)}return{x:c,y:d,placement:h,strategy:i,middlewareData:p}};async function C(e,t){var n;void 0===t&&(t={});let{x:r,y:i,platform:s,rects:a,elements:o,strategy:l}=e,{boundary:u="clippingAncestors",rootBoundary:c="viewport",elementContext:d="floating",altBoundary:p=!1,padding:f=0}=h(t,e),m=k(f),g=o[p?"floating"===d?"reference":"floating":d],y=S(await s.getClippingRect({element:null==(n=await (null==s.isElement?void 0:s.isElement(g)))||n?g:g.contextElement||await (null==s.getDocumentElement?void 0:s.getDocumentElement(o.floating)),boundary:u,rootBoundary:c,strategy:l})),v="floating"===d?{x:r,y:i,width:a.floating.width,height:a.floating.height}:a.reference,b=await (null==s.getOffsetParent?void 0:s.getOffsetParent(o.floating)),E=await (null==s.isElement?void 0:s.isElement(b))&&await (null==s.getScale?void 0:s.getScale(b))||{x:1,y:1},T=S(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({elements:o,rect:v,offsetParent:b,strategy:l}):v);return{top:(y.top-T.top+m.top)/E.y,bottom:(T.bottom-y.bottom+m.bottom)/E.y,left:(y.left-T.left+m.left)/E.x,right:(T.right-y.right+m.right)/E.x}}function N(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function R(e){return i.some(t=>e[t]>=0)}let O=new Set(["left","top"]);async function P(e,t){let{placement:n,platform:r,elements:i}=e,s=await (null==r.isRTL?void 0:r.isRTL(i.floating)),a=p(n),o=f(n),l="y"===v(n),u=O.has(a)?-1:1,c=s&&l?-1:1,d=h(t,e),{mainAxis:m,crossAxis:g,alignmentAxis:y}="number"==typeof d?{mainAxis:d,crossAxis:0,alignmentAxis:null}
14:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return o&&"number"==typeof y&&(g="end"===o?-1*y:y),l?{x:g*c,y:m*u}:{x:m*u,y:g*c}}function D(){return"undefined"!=typeof window}function M(e){return z(e)?(e.nodeName||"").toLowerCase():"#document"}function L(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function j(e){var t;return null==(t=(z(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function z(e){return!!D()&&(e instanceof Node||e instanceof L(e).Node)}function F(e){return!!D()&&(e instanceof Element||e instanceof L(e).Element)}function B(e){return!!D()&&(e instanceof HTMLElement||e instanceof L(e).HTMLElement)}function $(e){return!!D()&&"undefined"!=typeof ShadowRoot&&(e instanceof ShadowRoot||e instanceof L(e).ShadowRoot)}let U=new Set(["inline","contents"]);function H(e){let{overflow:t,overflowX:n,overflowY:r,display:i}=ee(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!U.has(i)}let G=new Set(["table","td","th"]),Y=[":popover-open",":modal"];function Z(e){return Y.some(t=>{try{return e.matches(t)}catch(e){return!1}})}let V=["transform","translate","scale","rotate","perspective"],W=["transform","translate","scale","rotate","perspective","filter"],q=["paint","layout","strict","content"];function K(e){let t=X(),n=F(e)?ee(e):e;return V.some(e=>!!n[e]&&"none"!==n[e])||!!n.containerType&&"normal"!==n.containerType||!t&&!!n.backdropFilter&&"none"!==n.backdropFilter||!t&&!!n.filter&&"none"!==n.filter||W.some(e=>(n.willChange||"").includes(e))||q.some(e=>(n.contain||"").includes(e))}function X(){return"undefined"!=typeof CSS&&!!CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")}let Q=new Set(["html","body","#document"]);function J(e){return Q.has(M(e))}function ee(e){return L(e).getComputedStyle(e)}function et(e){return F(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function en(e){if("html"===M(e))return e;let t=e.assignedSlot||e.parentNode||$(e)&&e.host||j(e);return $(t)?t.host:t}function er(e,t,n){var r;void 0===t&&(t=[]),void 0===n&&(n=!0);let i=function e(t){let n=en(t);return J(n)?t.ownerDocument?t.ownerDocument.body:t.body:B(n)&&H(n)?n:e(n)}(e),s=i===(null==(r=e.ownerDocument)?void 0:r.body),a=L(i);if(s){let e=ei(a);return t.concat(a,a.visualViewport||[],H(i)?i:[],e&&n?er(e):[])}return t.concat(i,er(i,[],n))}function ei(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function es(e){let t=ee(e),n=parseFloat(t.width)||0,r=parseFloat(t.height)||0,i=B(e),s=i?e.offsetWidth:n,a=i?e.offsetHeight:r,l=o(n)!==s||o(r)!==a;return l&&(n=s,r=a),{width:n,height:r,$:l}}function ea(e){return F(e)?e:e.contextElement}function eo(e){let t=ea(e);if(!B(t))return u(1);let n=t.getBoundingClientRect(),{width:r,height:i,$:s}=es(t),a=(s?o(n.width):n.width)/r,l=(s?o(n.height):n.height)/i;return a&&Number.isFinite(a)||(a=1),l&&Number.isFinite(l)||(l=1),{x:a,y:l}}let el=u(0);function eu(e){let t=L(e);return X()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:el}function ec(e,t,n,r){var i;void 0===t&&(t=!1),void 0===n&&(n=!1);let s=e.getBoundingClientRect(),a=ea(e),o=u(1);t&&(r?F(r)&&(o=eo(r)):o=eo(e));let l=(void 0===(i=n)&&(i=!1),r&&(!i||r===L(a))&&i)?eu(a):u(0),c=(s.left+l.x)/o.x,d=(s.top+l.y)/o.y,h=s.width/o.x,p=s.height/o.y;if(a){let e=L(a),t=r&&F(r)?L(r):r,n=e,i=ei(n);for(;i&&r&&t!==n;){let e=eo(i),t=i.getBoundingClientRect(),r=ee(i),s=t.left+(i.clientLeft+parseFloat(r.paddingLeft))*e.x,a=t.top+(i.clientTop+parseFloat(r.paddingTop))*e.y;c*=e.x,d*=e.y,h*=e.x,p*=e.y,c+=s,d+=a,i=ei(n=L(i))}}return S({width:h,height:p,x:c,y:d})}function ed(e,t){let n=et(e).scrollLeft;return t?t.left+n:ec(j(e)).left+n}function eh(e,t){let n=e.getBoundingClientRect();return{x:n.left+t.scrollLeft-ed(e,n),y:n.top+t.scrollTop}}let ep=new Set(["absolute","fixed"]);function ef(e,t,n){let r;if("viewport"===t)r=function(e,t){let n=L(e),r=j(e),i=n.visualViewport,s=r.clientWidth,a=r.clientHeight,o=0,l=0;if(i){s=i.width,a=i.height;let e=X();(!e||e&&"fixed"===t)&&(o=i.offsetLeft,l=i.offsetTop)}let u=ed(r);if(u<=0){let e=r.ownerDocument,t=e.body,n=getComputedStyle(t),i="CSS1Compat"===e.compatMode&&parseFloat(n.marginLeft)+parseFloat(n.marginRight)||0,a=Math.abs(r.clientWidth-t.clientWidth-i);a<=25&&(s-=a)}else u<=25&&(s+=u);return{width:s,height:a,x:o,y:l}}(e,n);else if("document"===t)r=function(e){let t=j(e),n=et(e),r=e.ownerDocument.body,i=a(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),s=a(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight),o=-n.scrollLeft+ed(e),l=-n.scrollTop;return"rtl"===ee(r).direction&&(o+=a(t.clientWidth,r.clientWidth)-i),{width:i,height:s,x:o,y:l}}(j(e));else if(F(t))r=function(e,t){let n=ec(e,!0,"fixed"===t),r=n.top+e.clientTop,i=n.left+e.clientLeft,s=B(e)?eo(e):u(1),a=e.clientWidth*s.x,o=e.clientHeight*s.y;return{width:a,height:o,x:i*s.x,y:r*s.y}}(t,n);else{let n=eu(e);r={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return S(r)}function em(e){return"static"===ee(e).position}function eg(e,t){if(!B(e)||"fixed"===ee(e).position)return null;if(t)return t(e);let n=e.offsetParent;return j(e)===n&&(n=n.ownerDocument.body),n}function ey(e,t){var n;let r=L(e);if(Z(e))return r;if(!B(e)){let t=en(e);for(;t&&!J(t);){if(F(t)&&!em(t))return t;t=en(t)}return r}let i=eg(e,t);for(;i&&(n=i,G.has(M(n)))&&em(i);)i=eg(i,t);
14return i&&J(i)&&em(i)&&!K(i)?r:i||function(e){let t=en(e);for(;B(t)&&!J(t);){if(K(t))return t;if(Z(t))break;t=en(t)}return null}(e)||r}let ev=async function(e){let t=this.getOffsetParent||ey,n=this.getDimensions,r=await n(e.floating);return{reference:function(e,t,n){let r=B(t),i=j(t),s="fixed"===n,a=ec(e,!0,s,t),o={scrollLeft:0,scrollTop:0},l=u(0);if(r||!r&&!s)if(("body"!==M(t)||H(i))&&(o=et(t)),r){let e=ec(t,!0,s,t);l.x=e.x+t.clientLeft,l.y=e.y+t.clientTop}else i&&(l.x=ed(i));s&&!r&&i&&(l.x=ed(i));let c=!i||r||s?u(0):eh(i,o);return{x:a.left+o.scrollLeft-l.x-c.x,y:a.top+o.scrollTop-l.y-c.y,width:a.width,height:a.height}}(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}},eb={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e,s="fixed"===i,a=j(r),o=!!t&&Z(t.floating);if(r===a||o&&s)return n;let l={scrollLeft:0,scrollTop:0},c=u(1),d=u(0),h=B(r);if((h||!h&&!s)&&(("body"!==M(r)||H(a))&&(l=et(r)),B(r))){let e=ec(r);c=eo(r),d.x=e.x+r.clientLeft,d.y=e.y+r.clientTop}let p=!a||h||s?u(0):eh(a,l);return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-l.scrollLeft*c.x+d.x+p.x,y:n.y*c.y-l.scrollTop*c.y+d.y+p.y}},getDocumentElement:j,getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e,o=[..."clippingAncestors"===n?Z(t)?[]:function(e,t){let n=t.get(e);if(n)return n;let r=er(e,[],!1).filter(e=>F(e)&&"body"!==M(e)),i=null,s="fixed"===ee(e).position,a=s?en(e):e;for(;F(a)&&!J(a);){let t=ee(a),n=K(a);n||"fixed"!==t.position||(i=null),(s?!n&&!i:!n&&"static"===t.position&&!!i&&ep.has(i.position)||H(a)&&!n&&function e(t,n){let r=en(t);return!(r===n||!F(r)||J(r))&&("fixed"===ee(r).position||e(r,n))}(e,a))?r=r.filter(e=>e!==a):i=t,a=en(a)}return t.set(e,r),r}(t,this._c):[].concat(n),r],l=o[0],u=o.reduce((e,n)=>{let r=ef(t,n,i);return e.top=a(r.top,e.top),e.right=s(r.right,e.right),e.bottom=s(r.bottom,e.bottom),e.left=a(r.left,e.left),e},ef(t,l,i));return{width:u.right-u.left,height:u.bottom-u.top,x:u.left,y:u.top}},getOffsetParent:ey,getElementRects:ev,getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){let{width:t,height:n}=es(e);return{width:t,height:n}},getScale:eo,isElement:F,isRTL:function(e){return"rtl"===ee(e).direction}};function eE(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}let eT=e=>({name:"arrow",options:e,async fn(t){let{x:n,y:r,placement:i,rects:o,platform:l,elements:u,middlewareData:c}=t,{element:d,padding:p=0}=h(e,t)||{};if(null==d)return{};let y=k(p),b={x:n,y:r},E=m(v(i)),T=g(E),_=await l.getDimensions(d),A="y"===E,x=A?"clientHeight":"clientWidth",S=o.reference[T]+o.reference[E]-b[E]-o.floating[T],w=b[E]-o.reference[E],I=await (null==l.getOffsetParent?void 0:l.getOffsetParent(d)),C=I?I[x]:0;C&&await (null==l.isElement?void 0:l.isElement(I))||(C=u.floating[x]||o.floating[T]);let N=C/2-_[T]/2-1,R=s(y[A?"top":"left"],N),O=s(y[A?"bottom":"right"],N),P=C-_[T]-O,D=C/2-_[T]/2+(S/2-w/2),M=a(R,s(D,P)),L=!c.arrow&&null!=f(i)&&D!==M&&o.reference[T]/2-(D<R?R:O)-_[T]/2<0,j=L?D<R?D-R:D-P:0;return{[E]:b[E]+j,data:{[E]:M,centerOffset:D-M-j,...L&&{alignmentOffset:j}},reset:L}}});var e_=n(52452),eA="undefined"!=typeof document?r.useLayoutEffect:function(){};function ex(e,t){let n,r,i;if(e===t)return!0;if(typeof e!=typeof t)return!1;if("function"==typeof e&&e.toString()===t.toString())return!0;if(e&&t&&"object"==typeof e){if(Array.isArray(e)){if((n=e.length)!==t.length)return!1;for(r=n;0!=r--;)if(!ex(e[r],t[r]))return!1;return!0}if((n=(i=Object.keys(e)).length)!==Object.keys(t).length)return!1;for(r=n;0!=r--;)if(!({}).hasOwnProperty.call(t,i[r]))return!1;for(r=n;0!=r--;){let n=i[r];if(("_owner"!==n||!e.$$typeof)&&!ex(e[n],t[n]))return!1}return!0}return e!=e&&t!=t}function ek(e){return"undefined"==typeof window?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function eS(e,t){let n=ek(e);return Math.round(t*n)/n}function ew(e){let t=r.useRef(e);return eA(()=>{t.current=e}),t}var eI=n(95996),eC=n(805),eN=r.forwardRef((e,t)=>{let{children:n,width:r=10,height:i=5,...s}=e;return(0,eC.jsx)(eI.sG.svg,{...s,ref:t,width:r,height:i,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:(0,eC.jsx)("polygon",{points:"0,0 30,0 15,10"})})});eN.displayName="Arrow";var eR=n(61051),eO=n(84741),eP=n(57872),eD=n(54728),eM="Popper",[eL,ej]=(0,eO.A)(eM),[ez,eF]=eL(eM),eB=e=>{let{__scopePopper:t,children:n}=e,[i,s]=r.useState(null);return(0,eC.jsx)(ez,{scope:t,anchor:i,onAnchorChange:s,children:n})};eB.displayName=eM;var e$="PopperAnchor",eU=r.forwardRef((e,t)=>
14{let{__scopePopper:n,virtualRef:i,...s}=e,a=eF(e$,n),o=r.useRef(null),l=(0,eR.s)(t,o),u=r.useRef(null);return r.useEffect(()=>{let e=u.current;u.current=i?.current||o.current,e!==u.current&&a.onAnchorChange(u.current)}),i?null:(0,eC.jsx)(eI.sG.div,{...s,ref:l})});eU.displayName=e$;var eH="PopperContent",[eG,eY]=eL(eH),eZ=r.forwardRef((e,t)=>{let{__scopePopper:n,side:i="bottom",sideOffset:o=0,align:u="center",alignOffset:c=0,arrowPadding:d=0,avoidCollisions:y=!0,collisionBoundary:k=[],collisionPadding:S=0,sticky:w="partial",hideWhenDetached:D=!1,updatePositionStrategy:M="optimized",onPlaced:L,...z}=e,F=eF(eH,n),[B,$]=r.useState(null),U=(0,eR.s)(t,e=>$(e)),[H,G]=r.useState(null),Y=function(e){let[t,n]=r.useState(void 0);return(0,eD.N)(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});let t=new ResizeObserver(t=>{let r,i;if(!Array.isArray(t)||!t.length)return;let s=t[0];if("borderBoxSize"in s){let e=s.borderBoxSize,t=Array.isArray(e)?e[0]:e;r=t.inlineSize,i=t.blockSize}else r=e.offsetWidth,i=e.offsetHeight;n({width:r,height:i})});return t.observe(e,{box:"border-box"}),()=>t.unobserve(e)}n(void 0)},[e]),t}(H),Z=Y?.width??0,V=Y?.height??0,W="number"==typeof S?S:{top:0,right:0,bottom:0,left:0,...S},q=Array.isArray(k)?k:[k],K=q.length>0,X={padding:W,boundary:q.filter(eK),altBoundary:K},{refs:Q,floatingStyles:J,placement:ee,isPositioned:et,middlewareData:en}=function(e){void 0===e&&(e={});let{placement:t="bottom",strategy:n="absolute",middleware:i=[],platform:s,elements:{reference:a,floating:o}={},transform:l=!0,whileElementsMounted:u,open:c}=e,[d,h]=r.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[p,f]=r.useState(i);ex(p,i)||f(i);let[m,g]=r.useState(null),[y,v]=r.useState(null),b=r.useCallback(e=>{e!==A.current&&(A.current=e,g(e))},[]),E=r.useCallback(e=>{e!==x.current&&(x.current=e,v(e))},[]),T=a||m,_=o||y,A=r.useRef(null),x=r.useRef(null),k=r.useRef(d),S=null!=u,w=ew(u),C=ew(s),N=ew(c),R=r.useCallback(()=>{if(!A.current||!x.current)return;let e={placement:t,strategy:n,middleware:p};C.current&&(e.platform=C.current),((e,t,n)=>{let r=new Map,i={platform:eb,...n},s={...i.platform,_c:r};return I(e,t,{...i,platform:s})})(A.current,x.current,e).then(e=>{let t={...e,isPositioned:!1!==N.current};O.current&&!ex(k.current,t)&&(k.current=t,e_.flushSync(()=>{h(t)}))})},[p,t,n,C,N]);eA(()=>{!1===c&&k.current.isPositioned&&(k.current.isPositioned=!1,h(e=>({...e,isPositioned:!1})))},[c]);let O=r.useRef(!1);eA(()=>(O.current=!0,()=>{O.current=!1}),[]),eA(()=>{if(T&&(A.current=T),_&&(x.current=_),T&&_){if(w.current)return w.current(T,_,R);R()}},[T,_,R,w,S]);let P=r.useMemo(()=>({reference:A,floating:x,setReference:b,setFloating:E}),[b,E]),D=r.useMemo(()=>({reference:T,floating:_}),[T,_]),M=r.useMemo(()=>{let e={position:n,left:0,top:0};if(!D.floating)return e;let t=eS(D.floating,d.x),r=eS(D.floating,d.y);return l?{...e,transform:"translate("+t+"px, "+r+"px)",...ek(D.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:t,top:r}},[n,l,D.floating,d.x,d.y]);return r.useMemo(()=>({...d,update:R,refs:P,elements:D,floatingStyles:M}),[d,R,P,D,M])}({strategy:"fixed",placement:i+("center"!==u?"-"+u:""),whileElementsMounted:(...e)=>(function(e,t,n,r){let i;void 0===r&&(r={});let{ancestorScroll:o=!0,ancestorResize:u=!0,elementResize:c="function"==typeof ResizeObserver,layoutShift:d="function"==typeof IntersectionObserver,animationFrame:h=!1}=r,p=ea(e),f=o||u?[...p?er(p):[],...er(t)]:[];f.forEach(e=>{o&&e.addEventListener("scroll",n,{passive:!0}),u&&e.addEventListener("resize",n)});let m=p&&d?function(e,t){let n,r=null,i=j(e);function o(){var e;clearTimeout(n),null==(e=r)||e.disconnect(),r=null}return!function u(c,d){void 0===c&&(c=!1),void 0===d&&(d=1),o();let h=e.getBoundingClientRect(),{left:p,top:f,width:m,height:g}=h;if(c||t(),!m||!g)return;let y=l(f),v=l(i.clientWidth-(p+m)),b={rootMargin:-y+"px "+-v+"px "+-l(i.clientHeight-(f+g))+"px "+-l(p)+"px",threshold:a(0,s(1,d))||1},E=!0;function T(t){let r=t[0].intersectionRatio;if(r!==d){if(!E)return u();r?u(!1,r):n=setTimeout(()=>{u(!1,1e-7)},1e3)}1!==r||eE(h,e.getBoundingClientRect())||u(),E=!1}try{r=new IntersectionObserver(T,{...b,root:i.ownerDocument})}catch(e){r=new IntersectionObserver(T,b)}r.observe(e)}(!0),o}(p,n):null,g=-1,y=null;c&&(y=new ResizeObserver(e=>{let[r]=e;r&&r.target===p&&y&&(y.unobserve(t),cancelAnimationFrame(g),g=requestAnimationFrame(()=>{var e;null==(e=y)||e.observe(t)})),n()}),p&&!h&&y.observe(p),y.observe(t));let v=h?ec(e):null;return h&&function t(){let r=ec(e);v&&!eE(v,r)&&n(),v=r,i=requestAnimationFrame(t)}(),n(),()=>{var e;
14f.forEach(e=>{o&&e.removeEventListener("scroll",n),u&&e.removeEventListener("resize",n)}),null==m||m(),null==(e=y)||e.disconnect(),y=null,h&&cancelAnimationFrame(i)}})(...e,{animationFrame:"always"===M}),elements:{reference:F.anchor},middleware:[((e,t)=>({...function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){var n,r;let{x:i,y:s,placement:a,middlewareData:o}=t,l=await P(t,e);return a===(null==(n=o.offset)?void 0:n.placement)&&null!=(r=o.arrow)&&r.alignmentOffset?{}:{x:i+l.x,y:s+l.y,data:{...l,placement:a}}}}}(e),options:[e,t]}))({mainAxis:o+V,alignmentAxis:c}),y&&((e,t)=>({...function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){let{x:n,y:r,placement:i}=t,{mainAxis:o=!0,crossAxis:l=!1,limiter:u={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...c}=h(e,t),d={x:n,y:r},f=await C(t,c),g=v(p(i)),y=m(g),b=d[y],E=d[g];if(o){let e="y"===y?"top":"left",t="y"===y?"bottom":"right",n=b+f[e],r=b-f[t];b=a(n,s(b,r))}if(l){let e="y"===g?"top":"left",t="y"===g?"bottom":"right",n=E+f[e],r=E-f[t];E=a(n,s(E,r))}let T=u.fn({...t,[y]:b,[g]:E});return{...T,data:{x:T.x-n,y:T.y-r,enabled:{[y]:o,[g]:l}}}}}}(e),options:[e,t]}))({mainAxis:!0,crossAxis:!1,limiter:"partial"===w?((e,t)=>({...function(e){return void 0===e&&(e={}),{options:e,fn(t){let{x:n,y:r,placement:i,rects:s,middlewareData:a}=t,{offset:o=0,mainAxis:l=!0,crossAxis:u=!0}=h(e,t),c={x:n,y:r},d=v(i),f=m(d),g=c[f],y=c[d],b=h(o,t),E="number"==typeof b?{mainAxis:b,crossAxis:0}:{mainAxis:0,crossAxis:0,...b};if(l){let e="y"===f?"height":"width",t=s.reference[f]-s.floating[e]+E.mainAxis,n=s.reference[f]+s.reference[e]-E.mainAxis;g<t?g=t:g>n&&(g=n)}if(u){var T,_;let e="y"===f?"width":"height",t=O.has(p(i)),n=s.reference[d]-s.floating[e]+(t&&(null==(T=a.offset)?void 0:T[d])||0)+(t?0:E.crossAxis),r=s.reference[d]+s.reference[e]+(t?0:(null==(_=a.offset)?void 0:_[d])||0)-(t?E.crossAxis:0);y<n?y=n:y>r&&(y=r)}return{[f]:g,[d]:y}}}}(e),options:[e,t]}))():void 0,...X}),y&&((e,t)=>({...function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var n,r,i,s,a;let{placement:o,middlewareData:l,rects:u,initialPlacement:c,platform:d,elements:y}=t,{mainAxis:k=!0,crossAxis:S=!0,fallbackPlacements:w,fallbackStrategy:I="bestFit",fallbackAxisSideDirection:N="none",flipAlignment:R=!0,...O}=h(e,t);if(null!=(n=l.arrow)&&n.alignmentOffset)return{};let P=p(o),D=v(c),M=p(c)===c,L=await (null==d.isRTL?void 0:d.isRTL(y.floating)),j=w||(M||!R?[x(c)]:function(e){let t=x(e);return[b(e),t,b(t)]}(c)),z="none"!==N;!w&&z&&j.push(...function(e,t,n,r){let i=f(e),s=function(e,t,n){switch(e){case"top":case"bottom":if(n)return t?T:E;return t?E:T;case"left":case"right":return t?_:A;default:return[]}}(p(e),"start"===n,r);return i&&(s=s.map(e=>e+"-"+i),t&&(s=s.concat(s.map(b)))),s}(c,R,N,L));let F=[c,...j],B=await C(t,O),$=[],U=(null==(r=l.flip)?void 0:r.overflows)||[];if(k&&$.push(B[P]),S){let e=function(e,t,n){void 0===n&&(n=!1);let r=f(e),i=m(v(e)),s=g(i),a="x"===i?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top";return t.reference[s]>t.floating[s]&&(a=x(a)),[a,x(a)]}(o,u,L);$.push(B[e[0]],B[e[1]])}if(U=[...U,{placement:o,overflows:$}],!$.every(e=>e<=0)){let e=((null==(i=l.flip)?void 0:i.index)||0)+1,t=F[e];if(t&&("alignment"!==S||D===v(t)||U.every(e=>v(e.placement)!==D||e.overflows[0]>0)))return{data:{index:e,overflows:U},reset:{placement:t}};let n=null==(s=U.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0])?void 0:s.placement;if(!n)switch(I){case"bestFit":{let e=null==(a=U.filter(e=>{if(z){let t=v(e.placement);return t===D||"y"===t}return!0}).map(e=>[e.placement,e.overflows.filter(e=>e>0).reduce((e,t)=>e+t,0)]).sort((e,t)=>e[1]-t[1])[0])?void 0:a[0];e&&(n=e);break}case"initialPlacement":n=c}if(o!==n)return{reset:{placement:n}}}return{}}}}(e),options:[e,t]}))({...X}),((e,t)=>({...function(e){return void 0===e&&(e={}),{name:"size",options:e,async fn(t){var n,r;let i,o,{placement:l,rects:u,platform:c,elements:d}=t,{apply:m=()=>{},...g}=h(e,t),y=await C(t,g),b=p(l),E=f(l),T="y"===v(l),{width:_,height:A}=u.floating;"top"===b||"bottom"===b?(i=b,o=E===(await (null==c.isRTL?void 0:c.isRTL(d.floating))?"start":"end")?"left":"right"):(o=b,i="end"===E?"top":"bottom");let x=A-y.top-y.bottom,k=_-y.left-y.right,S=s(A-y[i],x),w=s(_-y[o],k),I=!t.middlewareData.shift,N=S,R=w;if(null!=(n=t.middlewareData.shift)&&n.enabled.x&&(R=k),null!=(r=t.middlewareData.shift)&&r.enabled.y&&(N=x),I&&!E){let e=a(y.left,0),t=a(y.right,0),n=a(y.top,0),r=a(y.bottom,0);T?R=_-2*(0!==e||0!==t?e+t:a(y.left,y.right)):N=A-2*(0!==n||0!==r?n+r:a(y.top,y.bottom))}await m({...t,availableWidth:R,availableHeight:N});let O=await c.getDimensions(d.floating);return _!==O.width||A!==O.height?{reset:{rects:!0}}:{}}}}(e),options:[e,t]}))({...X,apply:({elements:e,rects:t,availableWidth:n,availableHeight:r})=>{let{width:i,height:s}=t.reference,a=e.floating.style;a.setProperty("--radix-popper-available-width",`${n}px`),a.setProperty("--radix-popper-available-height",`${r}px`),a.setProperty("--radix-popper-anchor-width",`${i}px`),a.setProperty("--radix-popper-anchor-height",`${s}px`)}}),H&&((e,t)=>({...(e=>({name:"arrow",options:e,fn(t){let{element:n,padding:r}="function"==typeof e?e(t):e;return n&&({}).hasOwnProperty.call(n,"current")?null!=n.current?eT({element:n.current,padding:r}).fn(t):{}:n?eT({element:n,padding:r}).fn(t):{}}}))(e),options:[e,t]}))({element:H,padding:d}),eX({arrowWidth:Z,arrowHeight:V}),D&&((e,t)=>({...function(e){return void 0===e&&(e={}),{name:"hide",options:e,async fn(t){let{rects:n}=t,{strategy:r="referenceHidden",...i}=h(e,t);switch(r){case"referenceHidden":{let e=N(await C(t,{...i,elementContext:"reference"}),n.reference);return{data:{referenceHiddenOffsets:e,referenceHidden:R(e)}}}case"escaped":{let e=N(await C(t,{...i,altBoundary:!0}),n.floating);return{data:{escapedOffsets:e,escaped:R(e)}}}default:return{}}}}}(e),options:[e,t]}))({strategy:"referenceHidden",...X})]}),[ei,es]=eQ(ee),eo=(0,eP.c)(L);(0,eD.N)(()=>{et&&eo?.()},[et,eo]);let el=en.arrow?.x,eu=en.arrow?.y,ed=en.arrow?.centerOffset!==0,[eh,ep]=r.useState();return(0,eD.N)(()=>{B&&ep(window.getComputedStyle(B).zIndex)},[B]),(0,eC.jsx)("div",{ref:Q.setFloating,"data-radix-popper-content-wrapper":"",style:{...J,transform:et?J.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:eh,"--radix-popper-transform-origin":[en.transformOrigin?.x,en.transformOrigin?.y].join(" "),...en.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:(0,eC.jsx)(eG,{scope:n,placedSide:ei,onArrowChange:G,arrowX:el,arrowY:eu,shouldHideArrow:ed,children:(0,eC.jsx)(eI.sG.div,{"data-side":ei,"data-align":es,...z,ref:U,style:{...z.style,animation:et?void 0:"none"}})})})});eZ.displayName=eH;var eV="PopperArrow",eW={top:"bottom",right:"left",bottom:"top",left:"r
14ight"},eq=r.forwardRef(function(e,t){let{__scopePopper:n,...r}=e,i=eY(eV,n),s=eW[i.placedSide];return(0,eC.jsx)("span",{ref:i.onArrowChange,style:{position:"absolute",left:i.arrowX,top:i.arrowY,[s]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[i.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[i.placedSide],visibility:i.shouldHideArrow?"hidden":void 0},children:(0,eC.jsx)(eN,{...r,ref:t,style:{...r.style,display:"block"}})})});function eK(e){return null!==e}eq.displayName=eV;var eX=e=>({name:"transformOrigin",options:e,fn(t){let{placement:n,rects:r,middlewareData:i}=t,s=i.arrow?.centerOffset!==0,a=s?0:e.arrowWidth,o=s?0:e.arrowHeight,[l,u]=eQ(n),c={start:"0%",center:"50%",end:"100%"}[u],d=(i.arrow?.x??0)+a/2,h=(i.arrow?.y??0)+o/2,p="",f="";return"bottom"===l?(p=s?c:`${d}px`,f=`${-o}px`):"top"===l?(p=s?c:`${d}px`,f=`${r.floating.height+o}px`):"right"===l?(p=`${-o}px`,f=s?c:`${h}px`):"left"===l&&(p=`${r.floating.width+o}px`,f=s?c:`${h}px`),{data:{x:p,y:f}}}});function eQ(e){let[t,n="center"]=e.split("-");return[t,n]}var eJ=eB,e0=eU,e1=eZ,e2=eq},30837:(e,t,n)=>{n.d(t,{default:()=>i.a});var r=n(11194),i=n.n(r)},31817:(e,t,n)=>{n.d(t,{$N:()=>w,$p:()=>ee,$v:()=>d,Ax:()=>S,BN:()=>H,CI:()=>N,CQ:()=>M,CT:()=>ev,Cn:()=>R,Dq:()=>P,Dw:()=>ew,EY:()=>h,G3:()=>eu,GP:()=>q,GY:()=>A,Gb:()=>W,I:()=>$,IT:()=>G,Ko:()=>x,L8:()=>er,LJ:()=>eo,Lc:()=>I,Mv:()=>Z,N$:()=>ek,Oi:()=>ef,Oy:()=>L,P0:()=>ea,Py:()=>v,Sb:()=>eO,TF:()=>_,U5:()=>Y,UY:()=>O,Um:()=>K,VF:()=>ex,VO:()=>eg,VY:()=>g,W4:()=>c,WH:()=>X,Wc:()=>eb,ZQ:()=>F,Zc:()=>p,Zn:()=>f,Zu:()=>E,Zy:()=>C,_m:()=>eN,b0:()=>ej,bl:()=>b,c2:()=>j,cG:()=>y,cu:()=>es,d:()=>eD,eb:()=>eh,g5:()=>T,h:()=>ed,h8:()=>z,hA:()=>eM,ig:()=>eE,kU:()=>eL,nu:()=>ey,o5:()=>Q,o8:()=>l.clone,qG:()=>m,qc:()=>eT,rv:()=>e_,sF:()=>U,t$:()=>eI,tV:()=>D,v1:()=>k,vz:()=>B,x8:()=>V,zP:()=>eC});var r=n(95854),i=n(13452),s=n(42323),a=n(26950),o=n(90910),l=n(61807),u=n(43366);let c=i.xI("$ZodType",(e,t)=>{var n;e??(e={}),e._zod.def=t,e._zod.bag=e._zod.bag||{},e._zod.version=u.r;let r=[...e._zod.def.checks??[]];for(let t of(e._zod.traits.has("$ZodCheck")&&r.unshift(e),r))for(let n of t._zod.onattach)n(e);if(0===r.length)(n=e._zod).deferred??(n.deferred=[]),e._zod.deferred?.push(()=>{e._zod.run=e._zod.parse});else{let t=(e,t,n)=>{let r,s=l.aborted(e);for(let a of t){if(a._zod.def.when){if(!a._zod.def.when(e))continue}else if(s)continue;let t=e.issues.length,o=a._zod.check(e);if(o instanceof Promise&&n?.async===!1)throw new i.GT;if(r||o instanceof Promise)r=(r??Promise.resolve()).then(async()=>{await o,e.issues.length!==t&&(s||(s=l.aborted(e,t)))});else{if(e.issues.length===t)continue;s||(s=l.aborted(e,t))}}return r?r.then(()=>e):e};e._zod.run=(n,s)=>{let a=e._zod.parse(n,s);if(a instanceof Promise){if(!1===s.async)throw new i.GT;return a.then(e=>t(e,r,s))}return t(a,r,s)}}e["~standard"]={validate:t=>{try{let n=(0,a.xL)(e,t);return n.success?{value:n.data}:{issues:n.error?.issues}}catch(n){return(0,a.bp)(e,t).then(e=>e.success?{value:e.data}:{issues:e.error?.issues})}},vendor:"zod",version:1}}),d=i.xI("$ZodString",(e,t)=>{c.init(e,t),e._zod.pattern=[...e?._zod.bag?.patterns??[]].pop()??o.string(e._zod.bag),e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=String(n.value)}catch(e){}return"string"==typeof n.value||n.issues.push({expected:"string",code:"invalid_type",input:n.value,inst:e}),n}}),h=i.xI("$ZodStringFormat",(e,t)=>{r.ql.init(e,t),d.init(e,t)}),p=i.xI("$ZodGUID",(e,t)=>{t.pattern??(t.pattern=o.guid),h.init(e,t)}),f=i.xI("$ZodUUID",(e,t)=>{if(t.version){let e={v1:1,v2:2,v3:3,v4:4,v5:5,v6:6,v7:7,v8:8}[t.version];if(void 0===e)throw Error(`Invalid UUID version: "${t.version}"`);t.pattern??(t.pattern=o.uuid(e))}else t.pattern??(t.pattern=o.uuid());h.init(e,t)}),m=i.xI("$ZodEmail",(e,t)=>{t.pattern??(t.pattern=o.email),h.init(e,t)}),g=i.xI("$ZodURL",(e,t)=>{h.init(e,t),e._zod.check=n=>{try{let r=n.value,i=new URL(r),s=i.href;t.hostname&&(t.hostname.lastIndex=0,t.hostname.test(i.hostname)||n.issues.push({code:"invalid_format",format:"url",n
14ote:"Invalid hostname",pattern:o.hostname.source,input:n.value,inst:e,continue:!t.abort})),t.protocol&&(t.protocol.lastIndex=0,t.protocol.test(i.protocol.endsWith(":")?i.protocol.slice(0,-1):i.protocol)||n.issues.push({code:"invalid_format",format:"url",note:"Invalid protocol",pattern:t.protocol.source,input:n.value,inst:e,continue:!t.abort})),!r.endsWith("/")&&s.endsWith("/")?n.value=s.slice(0,-1):n.value=s;return}catch(r){n.issues.push({code:"invalid_format",format:"url",input:n.value,inst:e,continue:!t.abort})}}}),y=i.xI("$ZodEmoji",(e,t)=>{t.pattern??(t.pattern=o.emoji()),h.init(e,t)}),v=i.xI("$ZodNanoID",(e,t)=>{t.pattern??(t.pattern=o.nanoid),h.init(e,t)}),b=i.xI("$ZodCUID",(e,t)=>{t.pattern??(t.pattern=o.cuid),h.init(e,t)}),E=i.xI("$ZodCUID2",(e,t)=>{t.pattern??(t.pattern=o.cuid2),h.init(e,t)}),T=i.xI("$ZodULID",(e,t)=>{t.pattern??(t.pattern=o.ulid),h.init(e,t)}),_=i.xI("$ZodXID",(e,t)=>{t.pattern??(t.pattern=o.xid),h.init(e,t)}),A=i.xI("$ZodKSUID",(e,t)=>{t.pattern??(t.pattern=o.ksuid),h.init(e,t)}),x=i.xI("$ZodISODateTime",(e,t)=>{t.pattern??(t.pattern=o.datetime(t)),h.init(e,t)}),k=i.xI("$ZodISODate",(e,t)=>{t.pattern??(t.pattern=o.date),h.init(e,t)}),S=i.xI("$ZodISOTime",(e,t)=>{t.pattern??(t.pattern=o.time(t)),h.init(e,t)}),w=i.xI("$ZodISODuration",(e,t)=>{t.pattern??(t.pattern=o.duration),h.init(e,t)}),I=i.xI("$ZodIPv4",(e,t)=>{t.pattern??(t.pattern=o.ipv4),h.init(e,t),e._zod.onattach.push(e=>{e._zod.bag.format="ipv4"})}),C=i.xI("$ZodIPv6",(e,t)=>{t.pattern??(t.pattern=o.ipv6),h.init(e,t),e._zod.onattach.push(e=>{e._zod.bag.format="ipv6"}),e._zod.check=n=>{try{new URL(`http://[${n.value}]`)}catch{n.issues.push({code:"invalid_format",format:"ipv6",input:n.value,inst:e,continue:!t.abort})}}}),N=i.xI("$ZodCIDRv4",(e,t)=>{t.pattern??(t.pattern=o.cidrv4),h.init(e,t)}),R=i.xI("$ZodCIDRv6",(e,t)=>{t.pattern??(t.pattern=o.cidrv6),h.init(e,t),e._zod.check=n=>{let[r,i]=n.value.split("/");try{if(!i)throw Error();let e=Number(i);if(`${e}`!==i||e<0||e>128)throw Error();new URL(`http://[${r}]`)}catch{n.issues.push({code:"invalid_format",format:"cidrv6",input:n.value,inst:e,continue:!t.abort})}}});function O(e){if(""===e)return!0;if(e.length%4!=0)return!1;try{return atob(e),!0}catch{return!1}}let P=i.xI("$ZodBase64",(e,t)=>{t.pattern??(t.pattern=o.base64),h.init(e,t),e._zod.onattach.push(e=>{e._zod.bag.contentEncoding="base64"}),e._zod.check=n=>{O(n.value)||n.issues.push({code:"invalid_format",format:"base64",input:n.value,inst:e,continue:!t.abort})}});function D(e){if(!o.base64url.test(e))return!1;let t=e.replace(/[-_]/g,e=>"-"===e?"+":"/");return O(t.padEnd(4*Math.ceil(t.length/4),"="))}let M=i.xI("$ZodBase64URL",(e,t)=>{t.pattern??(t.pattern=o.base64url),h.init(e,t),e._zod.onattach.push(e=>{e._zod.bag.contentEncoding="base64url"}),e._zod.check=n=>{D(n.value)||n.issues.push({code:"invalid_format",format:"base64url",input:n.value,inst:e,continue:!t.abort})}}),L=i.xI("$ZodE164",(e,t)=>{t.pattern??(t.pattern=o.e164),h.init(e,t)});function j(e,t=null){try{let n=e.split(".");if(3!==n.length)return!1;let[r]=n;if(!r)return!1;let i=JSON.parse(atob(r));if("typ"in i&&i?.typ!=="JWT"||!i.alg||t&&(!("alg"in i)||i.alg!==t))return!1;return!0}catch{return!1}}let z=i.xI("$ZodJWT",(e,t)=>{h.init(e,t),e._zod.check=n=>{j(n.value,t.alg)||n.issues.push({code:"invalid_format",format:"jwt",input:n.value,inst:e,continue:!t.abort})}}),F=i.xI("$ZodCustomStringFormat",(e,t)=>{h.init(e,t),e._zod.check=n=>{t.fn(n.value)||n.issues.push({code:"invalid_format",format:t.format,input:n.value,inst:e,continue:!t.abort})}}),B=i.xI("$ZodNumber",(e,t)=>{c.init(e,t),e._zod.pattern=e._zod.bag.pattern??o.number,e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=Number(n.value)}catch(e){}let i=n.value;if("number"==typeof i&&!Number.isNaN(i)&&Number.isFinite(i))return n;let s="number"==typeof i?Number.isNaN(i)?"NaN":Number.isFinite(i)?void 0:"Infinity":void 0;return n.issues.push({expected:"number",code:"invalid_type",input:i,inst:e,...s?{received:s}:{}}),n}}),$=i.xI("$ZodNumber",(e,t)=>{r.KH.init(e,t),B.init(e,t)}),U=i.xI("$ZodBoolean",(e,t)=>{c.init(e,t),e._zod.pattern=o.boolean,e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=!!n.value}catch(e){}let i=n.value;return"boolean"==typeof i||n.issues.push({expected:"boolean",code:"invalid_type",input:i,inst:e}),n}}),H=i.xI("$ZodBigInt",(e,t)=>{c.init(e,t),e._zod.pattern=o.bigint,e._zod.parse=(n,r)=>
14{if(t.coerce)try{n.value=BigInt(n.value)}catch(e){}return"bigint"==typeof n.value||n.issues.push({expected:"bigint",code:"invalid_type",input:n.value,inst:e}),n}}),G=i.xI("$ZodBigInt",(e,t)=>{r.uE.init(e,t),H.init(e,t)}),Y=i.xI("$ZodSymbol",(e,t)=>{c.init(e,t),e._zod.parse=(t,n)=>{let r=t.value;return"symbol"==typeof r||t.issues.push({expected:"symbol",code:"invalid_type",input:r,inst:e}),t}}),Z=i.xI("$ZodUndefined",(e,t)=>{c.init(e,t),e._zod.pattern=o.undefined,e._zod.values=new Set([void 0]),e._zod.optin="optional",e._zod.optout="optional",e._zod.parse=(t,n)=>{let r=t.value;return void 0===r||t.issues.push({expected:"undefined",code:"invalid_type",input:r,inst:e}),t}}),V=i.xI("$ZodNull",(e,t)=>{c.init(e,t),e._zod.pattern=o.null,e._zod.values=new Set([null]),e._zod.parse=(t,n)=>{let r=t.value;return null===r||t.issues.push({expected:"null",code:"invalid_type",input:r,inst:e}),t}}),W=i.xI("$ZodAny",(e,t)=>{c.init(e,t),e._zod.parse=e=>e}),q=i.xI("$ZodUnknown",(e,t)=>{c.init(e,t),e._zod.parse=e=>e}),K=i.xI("$ZodNever",(e,t)=>{c.init(e,t),e._zod.parse=(t,n)=>(t.issues.push({expected:"never",code:"invalid_type",input:t.value,inst:e}),t)}),X=i.xI("$ZodVoid",(e,t)=>{c.init(e,t),e._zod.parse=(t,n)=>{let r=t.value;return void 0===r||t.issues.push({expected:"void",code:"invalid_type",input:r,inst:e}),t}}),Q=i.xI("$ZodDate",(e,t)=>{c.init(e,t),e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=new Date(n.value)}catch(e){}let i=n.value,s=i instanceof Date;return s&&!Number.isNaN(i.getTime())||n.issues.push({expected:"date",code:"invalid_type",input:i,...s?{received:"Invalid Date"}:{},inst:e}),n}});function J(e,t,n){e.issues.length&&t.issues.push(...l.prefixIssues(n,e.issues)),t.value[n]=e.value}let ee=i.xI("$ZodArray",(e,t)=>{c.init(e,t),e._zod.parse=(n,r)=>{let i=n.value;if(!Array.isArray(i))return n.issues.push({expected:"array",code:"invalid_type",input:i,inst:e}),n;n.value=Array(i.length);let s=[];for(let e=0;e<i.length;e++){let a=i[e],o=t.element._zod.run({value:a,issues:[]},r);o instanceof Promise?s.push(o.then(t=>J(t,n,e))):J(o,n,e)}return s.length?Promise.all(s).then(()=>n):n}});function et(e,t,n){e.issues.length&&t.issues.push(...l.prefixIssues(n,e.issues)),t.value[n]=e.value}function en(e,t,n,r){e.issues.length?void 0===r[n]?n in r?t.value[n]=void 0:t.value[n]=e.value:t.issues.push(...l.prefixIssues(n,e.issues)):void 0===e.value?n in r&&(t.value[n]=void 0):t.value[n]=e.value}let er=i.xI("$ZodObject",(e,t)=>{let n,r;c.init(e,t);let a=l.cached(()=>{let e=Object.keys(t.shape);for(let n of e)if(!(t.shape[n]instanceof c))throw Error(`Invalid element at key "${n}": expected a Zod schema`);let n=l.optionalKeys(t.shape);return{shape:t.shape,keys:e,keySet:new Set(e),numKeys:e.length,optionalKeys:new Set(n)}});l.defineLazy(e._zod,"propValues",()=>{let e=t.shape,n={};for(let t in e){let r=e[t]._zod;if(r.values)for(let e of(n[t]??(n[t]=new Set),r.values))n[t].add(e)}return n});let o=l.isObject,u=!i.cr.jitless,d=l.allowsEval,h=u&&d.value,p=t.catchall;e._zod.parse=(i,c)=>{r??(r=a.value);let d=i.value;if(!o(d))return i.issues.push({expected:"object",code:"invalid_type",input:d,inst:e}),i;let f=[];if(u&&h&&c?.async===!1&&!0!==c.jitless)n||(n=(e=>{let t=new s.J(["shape","payload","ctx"]),n=a.value,r=e=>{let t=l.esc(e);return`shape[${t}]._zod.run({ value: input[${t}], issues: [] }, ctx)`};t.write("const input = payload.value;");let i=Object.create(null),o=0;for(let e of n.keys)i[e]=`key_${o++}`;for(let e of(t.write("const newResult = {}"),n.keys))if(n.optionalKeys.has(e)){let n=i[e];t.write(`const ${n} = ${r(e)};`);let s=l.esc(e);t.write(` 15 if (${n}.issues.length) { 16 if (input[${s}] === undefined) { 17 if (${s} in input) { 18 newResult[${s}] = undefined; 19 } 20 } else { 21 payload.issues = payload.issues.concat( 22 ${n}.issues.map((iss) => ({ 23 ...iss, 24 path: iss.path ? [${s}, ...iss.path] : [${s}], 25 })) 26 ); 27 } 28 } else if (${n}.value === undefined) { 29 if (${s} in input) newResult[${s}] = undefined; 30 } else { 31 newResult[${s}] = ${n}.value; 32 } 33 `)}else{let n=i[e];t.write(`const ${n} = ${r(e)};`),t.write(` 34 if (${n}.issues.length) payload.issues = payload.issues.concat(${n}.issues.map(iss => ({ 35 ...iss, 36 path: iss.path ? [${l.esc(e)}, ...iss.path] : [${l.esc(e)}] 37 })));`),t.write(`newResult[${l.esc(e)}] = ${n}.value`)}t.write("payload.value = newResult;"),t.write("return payload;");let u=t.compile();return(t,n)=>u(e,t,n)})(t.shape)),i=n(i,c);else{i.value={};let e=r.shape;for(let t of r.keys){let n=e[t],r=n._zod.run({value:d[t],issues:[]},c),s="optional"===n._zod.optin&&"optional"===n._zod.optout;r instanceof Promise?f.push(r.then(e=>s?en(e,i,t,d):et(e,i,t))):s?en(r,i,t,d):et(r,i,t)}}if(!p)return f.length?Promise.all(f).then(()=>i):i;let m=[],g=r.keySet,y=p._zod,v=y.def.type;for(let e of Object.keys(d)){if(g.has(e))continue;if("never"===v){m.push(e);continue}let t=y.run({value:d[e],issues:[]},c);t instanceof Promise?f.push(t.then(t=>et(t,i,e))):et(t,i,e)}return(m.length&&i.issues.push({code:"unrecognized_keys",keys:m,input:d,inst:e}),f.length)?Promise.all(f).then(()=>i):i}});function ei(e,t,n,r){for(let n of e)if(0===n.issues.length)return t.value=n.value,t;return t.issues.push({code:"invalid_union",input:t.value,inst:n,errors:e.map(e=>e.issues.map(e=>l.finalizeIssue(e,r,i.$W())))}),t}let es=i.xI("$ZodUnion",(e,t)=>{c.init(e,t),l.defineLazy(e._zod,"optin",()=>t.options.some(e=>
37"optional"===e._zod.optin)?"optional":void 0),l.defineLazy(e._zod,"optout",()=>t.options.some(e=>"optional"===e._zod.optout)?"optional":void 0),l.defineLazy(e._zod,"values",()=>{if(t.options.every(e=>e._zod.values))return new Set(t.options.flatMap(e=>Array.from(e._zod.values)))}),l.defineLazy(e._zod,"pattern",()=>{if(t.options.every(e=>e._zod.pattern)){let e=t.options.map(e=>e._zod.pattern);return RegExp(`^(${e.map(e=>l.cleanRegex(e.source)).join("|")})$`)}}),e._zod.parse=(n,r)=>{let i=!1,s=[];for(let e of t.options){let t=e._zod.run({value:n.value,issues:[]},r);if(t instanceof Promise)s.push(t),i=!0;else{if(0===t.issues.length)return t;s.push(t)}}return i?Promise.all(s).then(t=>ei(t,n,e,r)):ei(s,n,e,r)}}),ea=i.xI("$ZodDiscriminatedUnion",(e,t)=>{es.init(e,t);let n=e._zod.parse;l.defineLazy(e._zod,"propValues",()=>{let e={};for(let n of t.options){let r=n._zod.propValues;if(!r||0===Object.keys(r).length)throw Error(`Invalid discriminated union option at index "${t.options.indexOf(n)}"`);for(let[t,n]of Object.entries(r))for(let r of(e[t]||(e[t]=new Set),n))e[t].add(r)}return e});let r=l.cached(()=>{let e=t.options,n=new Map;for(let r of e){let e=r._zod.propValues[t.discriminator];if(!e||0===e.size)throw Error(`Invalid discriminated union option at index "${t.options.indexOf(r)}"`);for(let t of e){if(n.has(t))throw Error(`Duplicate discriminator value "${String(t)}"`);n.set(t,r)}}return n});e._zod.parse=(i,s)=>{let a=i.value;if(!l.isObject(a))return i.issues.push({code:"invalid_type",expected:"object",input:a,inst:e}),i;let o=r.value.get(a?.[t.discriminator]);return o?o._zod.run(i,s):t.unionFallback?n(i,s):(i.issues.push({code:"invalid_union",errors:[],note:"No matching discriminator",input:a,path:[t.discriminator],inst:e}),i)}}),eo=i.xI("$ZodIntersection",(e,t)=>{c.init(e,t),e._zod.parse=(e,n)=>{let r=e.value,i=t.left._zod.run({value:r,issues:[]},n),s=t.right._zod.run({value:r,issues:[]},n);return i instanceof Promise||s instanceof Promise?Promise.all([i,s]).then(([t,n])=>el(e,t,n)):el(e,i,s)}});function el(e,t,n){if(t.issues.length&&e.issues.push(...t.issues),n.issues.length&&e.issues.push(...n.issues),l.aborted(e))return e;let r=function e(t,n){if(t===n||t instanceof Date&&n instanceof Date&&+t==+n)return{valid:!0,data:t};if(l.isPlainObject(t)&&l.isPlainObject(n)){let r=Object.keys(n),i=Object.keys(t).filter(e=>-1!==r.indexOf(e)),s={...t,...n};for(let r of i){let i=e(t[r],n[r]);if(!i.valid)return{valid:!1,mergeErrorPath:[r,...i.mergeErrorPath]};s[r]=i.data}return{valid:!0,data:s}}if(Array.isArray(t)&&Array.isArray(n)){if(t.length!==n.length)return{valid:!1,mergeErrorPath:[]};let r=[];for(let i=0;i<t.length;i++){let s=e(t[i],n[i]);if(!s.valid)return{valid:!1,mergeErrorPath:[i,...s.mergeErrorPath]};r.push(s.data)}return{valid:!0,data:r}}return{valid:!1,mergeErrorPath:[]}}(t.value,n.value);if(!r.valid)throw Error(`Unmergable intersection. Error path: ${JSON.stringify(r.mergeErrorPath)}`);return e.value=r.data,e}let eu=i.xI("$ZodTuple",(e,t)=>{c.init(e,t);let n=t.items,r=n.length-[...n].reverse().findIndex(e=>"optional"!==e._zod.optin);e._zod.parse=(i,s)=>{let a=i.value;if(!Array.isArray(a))return i.issues.push({input:a,inst:e,expected:"tuple",code:"invalid_type"}),i;i.value=[];let o=[];if(!t.rest){let t=a.length>n.length,s=a.length<r-1;if(t||s)return i.issues.push({input:a,inst:e,origin:"array",...t?{code:"too_big",maximum:n.length}:{code:"too_small",minimum:n.length}}),i}let l=-1;for(let e of n){if(++l>=a.length&&l>=r)continue;let t=e._zod.run({value:a[l],issues:[]},s);t instanceof Promise?o.push(t.then(e=>ec(e,i,l))):ec(t,i,l)}if(t.rest)for(let e of a.slice(n.length)){l++;let n=t.rest._zod.run({value:e,issues:[]},s);n instanceof Promise?o.push(n.then(e=>ec(e,i,l))):ec(n,i,l)}return o.length?Promise.all(o).then(()=>i):i}});function ec(e,t,n){e.issues.length&&t.issues.push(...l.prefixIssues(n,e.issues)),t.value[n]=e.value}let ed=i.xI("$ZodRecord",(e,t)=>{c.init(e,t),e._zod.parse=(n,r)=>{let s=n.value;if(!l.isPlainObject(s))return n.issues.push({expected:"record",code:"invalid_type",input:s,inst:e}),n;let a=[];if(t.keyType._zod.values){let i,o=t.keyType._zod.values;for(let e of(n.value={},o))if("string"==typeof e||"number"==typeof e||"symbol"==typeof e){let i=t.valueType._zod.run({value:s[e],issues:[]},r);i instanceof Promise?a.push(i.then(t=>{t.issues.length&&n.issues.push(...l.prefixIssues(e,t.issues)),n.value[e]=t.value})):(i.issues.length&&n.issues.push(...l.prefixIssues(e,i.issues)),n.value[e]=i.value)}for(let e in s)o.has(e)||(i=i??[]).push(e);i&&i.length>0&&n.issues.push({code:"unrecognized_keys",input:s,inst:e,keys:i})}else for(let o of(n.value={},Reflect.ownKeys(s))){if("__proto__"===o)continue;let u=t.keyType._zod.run({value:o,issues:[]},r);if(u instanceof Promise)throw Error("Async schemas not supported in object keys currently");if(u.issues.length){n.issues.push({origin:"record",code:"invalid_key",issues:u.issues.map(e=>
37l.finalizeIssue(e,r,i.$W())),input:o,path:[o],inst:e}),n.value[u.value]=u.value;continue}let c=t.valueType._zod.run({value:s[o],issues:[]},r);c instanceof Promise?a.push(c.then(e=>{e.issues.length&&n.issues.push(...l.prefixIssues(o,e.issues)),n.value[u.value]=e.value})):(c.issues.length&&n.issues.push(...l.prefixIssues(o,c.issues)),n.value[u.value]=c.value)}return a.length?Promise.all(a).then(()=>n):n}}),eh=i.xI("$ZodMap",(e,t)=>{c.init(e,t),e._zod.parse=(n,r)=>{let i=n.value;if(!(i instanceof Map))return n.issues.push({expected:"map",code:"invalid_type",input:i,inst:e}),n;let s=[];for(let[a,o]of(n.value=new Map,i)){let l=t.keyType._zod.run({value:a,issues:[]},r),u=t.valueType._zod.run({value:o,issues:[]},r);l instanceof Promise||u instanceof Promise?s.push(Promise.all([l,u]).then(([t,s])=>{ep(t,s,n,a,i,e,r)})):ep(l,u,n,a,i,e,r)}return s.length?Promise.all(s).then(()=>n):n}});function ep(e,t,n,r,s,a,o){e.issues.length&&(l.propertyKeyTypes.has(typeof r)?n.issues.push(...l.prefixIssues(r,e.issues)):n.issues.push({origin:"map",code:"invalid_key",input:s,inst:a,issues:e.issues.map(e=>l.finalizeIssue(e,o,i.$W()))})),t.issues.length&&(l.propertyKeyTypes.has(typeof r)?n.issues.push(...l.prefixIssues(r,t.issues)):n.issues.push({origin:"map",code:"invalid_element",input:s,inst:a,key:r,issues:t.issues.map(e=>l.finalizeIssue(e,o,i.$W()))})),n.value.set(e.value,t.value)}let ef=i.xI("$ZodSet",(e,t)=>{c.init(e,t),e._zod.parse=(n,r)=>{let i=n.value;if(!(i instanceof Set))return n.issues.push({input:i,inst:e,expected:"set",code:"invalid_type"}),n;let s=[];for(let e of(n.value=new Set,i)){let i=t.valueType._zod.run({value:e,issues:[]},r);i instanceof Promise?s.push(i.then(e=>em(e,n))):em(i,n)}return s.length?Promise.all(s).then(()=>n):n}});function em(e,t){e.issues.length&&t.issues.push(...e.issues),t.value.add(e.value)}let eg=i.xI("$ZodEnum",(e,t)=>{c.init(e,t);let n=l.getEnumValues(t.entries);e._zod.values=new Set(n),e._zod.pattern=RegExp(`^(${n.filter(e=>l.propertyKeyTypes.has(typeof e)).map(e=>"string"==typeof e?l.escapeRegex(e):e.toString()).join("|")})$`),e._zod.parse=(t,r)=>{let i=t.value;return e._zod.values.has(i)||t.issues.push({code:"invalid_value",values:n,input:i,inst:e}),t}}),ey=i.xI("$ZodLiteral",(e,t)=>{c.init(e,t),e._zod.values=new Set(t.values),e._zod.pattern=RegExp(`^(${t.values.map(e=>"string"==typeof e?l.escapeRegex(e):e?e.toString():String(e)).join("|")})$`),e._zod.parse=(n,r)=>{let i=n.value;return e._zod.values.has(i)||n.issues.push({code:"invalid_value",values:t.values,input:i,inst:e}),n}}),ev=i.xI("$ZodFile",(e,t)=>{c.init(e,t),e._zod.parse=(t,n)=>{let r=t.value;return r instanceof File||t.issues.push({expected:"file",code:"invalid_type",input:r,inst:e}),t}}),eb=i.xI("$ZodTransform",(e,t)=>{c.init(e,t),e._zod.parse=(e,n)=>{let r=t.transform(e.value,e);if(n.async)return(r instanceof Promise?r:Promise.resolve(r)).then(t=>(e.value=t,e));if(r instanceof Promise)throw new i.GT;return e.value=r,e}}),eE=i.xI("$ZodOptional",(e,t)=>{c.init(e,t),e._zod.optin="optional",e._zod.optout="optional",l.defineLazy(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,void 0]):void 0),l.defineLazy(e._zod,"pattern",()=>{let e=t.innerType._zod.pattern;return e?RegExp(`^(${l.cleanRegex(e.source)})?$`):void 0}),e._zod.parse=(e,n)=>"optional"===t.innerType._zod.optin?t.innerType._zod.run(e,n):void 0===e.value?e:t.innerType._zod.run(e,n)}),eT=i.xI("$ZodNullable",(e,t)=>{c.init(e,t),l.defineLazy(e._zod,"optin",()=>t.innerType._zod.optin),l.defineLazy(e._zod,"optout",()=>t.innerType._zod.optout),l.defineLazy(e._zod,"pattern",()=>{let e=t.innerType._zod.pattern;return e?RegExp(`^(${l.cleanRegex(e.source)}|null)$`):void 0}),l.defineLazy(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,null]):void 0),e._zod.parse=(e,n)=>null===e.value?e:t.innerType._zod.run(e,n)}),e_=i.xI("$ZodDefault",(e,t)=>{c.init(e,t),e._zod.optin="optional",l.defineLazy(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(e,n)=>{if(void 0===e.value)return e.value=t.defaultValue,e;let r=t.innerType._zod.run(e,n);return r instanceof Promise?r.then(e=>eA(e,t)):eA(r,t)}});function eA(e,t){return void 0===e.value&&(e.value=t.defaultValue),e}let ex=i.xI("$ZodPrefault",(e,t)=>{c.init(e,t),e._zod.optin="optional",l.defineLazy(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(e,n)=>(void 0===e.value&&(e.value=t.defaultValue),t.innerType._zod.run(e,n))}),ek=i.xI("$ZodNonOptional",(e,t)=>{c.init(e,t),l.defineLazy(e._zod,"values",()=>{let e=t.innerType._zod.values;return e?new Set([...e].filter(e=>void 0!==e)):void 0}),e._zod.parse=(n,r)=>{let i=t.innerType._zod.run(n,r);return i instanceof Promise?i.then(t=>eS(t,e)):eS(i,e)}});function eS(e,t){return e.issues.length||void 0!==e.value||e.issues.push({code:"invalid_type",expected:"nonoptional",input:e.value,inst:t}),e}let ew=i.xI("$ZodSuccess",(e,t)=>{c.init(e,t),e._zod.parse=(e,n)=>{let r=t.innerType._zod.run(e,n);return r instanceof Promise?r.then(t=>(e.value=0===t.issues.length,e)):(e.value=0===r.issues.length,e)}}),eI=i.xI("$ZodCatch",(e,t)=>{c.init(e,t),e._zod.optin="optional",l.defineLazy(e._zod,"optout",()=>t.innerType._zod.optout),l.defineLazy(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(e,n)=>{let r=t.innerType._zod.run(e,n);return r instanceof Promise?r.then(r=>(e.value=r.value,r.issues.length&&(e.value=t.catchValue({...e,error:{issues:r.issues.map(e=>l.finalizeIssue(e,n,i.$W()))},input:e.value}),e.issues=[]),e)):(e.value=r.value,r.issues.length&&(e.value=t.catchValue({...e,error:{issues:r.issues.map(e=>l.finalizeIssue(e,n,i.$W()))},input:e.value}),e.issues=[]),e)}}),eC=i.xI("$ZodNaN",(e,t)=>{c.init(e,t),e._zod.parse=(t,n)=>("number"==typeof t.value&&Number.isNaN(t.value)||t.issues.push({input:t.value,inst:e,expected:"nan",code:"invalid_type"}),t)}),eN=i.xI("$ZodPipe",(e,t)=>{c.init(e,t),l.defineLazy(e._zod,"values",()=>t.in._zod.values),l.defineLazy(e._zod,"optin",()=>t.in._zod.optin),l.defineLazy(e._zod,"optout",()=>t.out._zod.optout),e._zod.parse=(e,n)=>{let r=t.in._zod.run(e,n);return r instanceof Promise?r.then(e=>eR(e,t,n)):eR(r,t,n)}});function eR(e,t,n){return l.aborted(e)?e:t.out._zod.run({value:e.value,issues:e.issues},n)}let eO=i.xI("$ZodReadonly",(e,t)=>{c.init(e,t),l.defineLazy(e._zod,"propValues",()=>t.innerType._zod.propValues),l.defineLazy(e._zod,"values",()=>t.innerType._zod.values),l.defineLazy(e._zod,"optin",()=>t.innerType._zod.optin),l.defineLazy(e._zod,"optout",()=>t.innerType._zod.optout),e._zod.parse=(e,n)=>{let r=t.innerType._zod.run(e,n);return r instanceof Promise?r.then(eP):eP(r)}});function eP(e){return e.value=Object.freeze(e.value),e}let eD=i.xI("$ZodTemplateLiteral",(e,t)=>{c.init(e,t);let n=[];for(let e of t.parts)if(e instanceof c){if(!e._zod.pattern)throw Error(`Invalid template literal part, no pattern found: ${[...e._zod.traits].shift()}`);let t=e._zod.pattern instanceof RegExp?e._zod.pattern.source:e._zod.pattern;if(!t)throw Error(`Invalid template literal part: ${e._zod.traits}`);let r=+!!t.startsWith("^"),i=t.endsWith("$")?t.length-1:t.length;n.push(t.slice(r,i))}else if(null===e||l.primitiveTypes.has(typeof e))n.push(l.escapeRegex(`${e}`));else throw Error(`Invalid template literal part: ${e}`);e._zod.pattern=RegExp(`^${n.join("")}$`),e._zod.parse=(t,n)=>
37("string"!=typeof t.value?t.issues.push({input:t.value,inst:e,expected:"template_literal",code:"invalid_type"}):(e._zod.pattern.lastIndex=0,e._zod.pattern.test(t.value)||t.issues.push({input:t.value,inst:e,code:"invalid_format",format:"template_literal",pattern:e._zod.pattern.source})),t)}),eM=i.xI("$ZodPromise",(e,t)=>{c.init(e,t),e._zod.parse=(e,n)=>Promise.resolve(e.value).then(e=>t.innerType._zod.run({value:e,issues:[]},n))}),eL=i.xI("$ZodLazy",(e,t)=>{c.init(e,t),l.defineLazy(e._zod,"innerType",()=>t.getter()),l.defineLazy(e._zod,"pattern",()=>e._zod.innerType._zod.pattern),l.defineLazy(e._zod,"propValues",()=>e._zod.innerType._zod.propValues),l.defineLazy(e._zod,"optin",()=>e._zod.innerType._zod.optin),l.defineLazy(e._zod,"optout",()=>e._zod.innerType._zod.optout),e._zod.parse=(t,n)=>e._zod.innerType._zod.run(t,n)}),ej=i.xI("$ZodCustom",(e,t)=>{r.QP.init(e,t),c.init(e,t),e._zod.parse=(e,t)=>e,e._zod.check=n=>{let r=n.value,i=t.fn(r);if(i instanceof Promise)return i.then(t=>ez(t,n,r,e));ez(i,n,r,e)}});function ez(e,t,n,r){if(!e){let e={code:"custom",input:n,inst:r,path:[...r._zod.def.path??[]],continue:!r._zod.def.abort};r._zod.def.params&&(e.params=r._zod.def.params),t.issues.push(l.issue(e))}}},31900:(e,t,n)=>{n.d(t,{$e:()=>a,Bx:()=>r.n,QX:()=>u,Qk:()=>o,SB:()=>s,W1:()=>l,WP:()=>r.t,cc:()=>c});var r=n(36009);let i={TextMessageStartEvent:{optional:["timestamp","rawEvent","metadata","subagentRunId","role","name"],fields:{}},TextMessageContentEvent:{optional:["timestamp","rawEvent","metadata","subagentRunId"],fields:{}},TextMessageEndEvent:{optional:["timestamp","rawEvent","metadata","subagentRunId"],fields:{}},TextMessageChunkEvent:{optional:["timestamp","rawEvent","metadata","subagentRunId","messageId","role","delta","name"],fields:{}},ToolCallStartEvent:{optional:["timestamp","rawEvent","metadata","subagentRunId","parentMessageId"],fields:{}},ToolCallArgsEvent:{optional:["timestamp","rawEvent","metadata","subagentRunId"],fields:{}},ToolCallEndEvent:{optional:["timestamp","rawEvent","metadata","subagentRunId"],fields:{}},ToolCallChunkEvent:{optional:["timestamp","rawEvent","metadata","subagentRunId","toolCallId","toolCallName","parentMessageId","delta"],fields:{}},TextPart:{optional:["id","metadata"],fields:{}},DataSource:{optional:[],fields:{}},UrlSource:{optional:["mimeType"],fields:{}},FileSource:{optional:["provider","mimeType"],fields:{}},PartSource:{discriminator:"type",variants:{data:"DataSource",url:"UrlSource",file:"FileSource"}},ImagePart:{optional:["id","metadata"],fields:{source:"PartSource"}},AudioPart:{optional:["id","metadata"],fields:{source:"PartSource"}},VideoPart:{optional:["id","metadata"],fields:{source:"PartSource"}},DocumentPart:{optional:["id","metadata"],fields:{source:"PartSource"}},ContentPart:{discriminator:"type",variants:{text:"TextPart",image:"ImagePart",audio:"AudioPart",video:"VideoPart",document:"DocumentPart"}},ToolCallResultEvent:{optional:["timestamp","rawEvent","metadata","subagentRunId","role"],fields:{content:{array:"ContentPart"}}},StateSnapshotEvent:{optional:["timestamp","rawEvent","metadata","subagentRunId"],fields:{}},AddOperation:{optional:[],fields:{}},RemoveOperation:{optional:[],fields:{}},ReplaceOperation:{optional:[],fields:{}},MoveOperation:{optional:[],fields:{}},CopyOperation:{optional:[],fields:{}},TestOperation:{optional:[],fields:{}},JsonPatchOperation:{discriminator:"op",variants:{add:"AddOperation",remove:"RemoveOperation",replace:"ReplaceOperation",move:"MoveOperation",copy:"CopyOperation",test:"TestOperation"}},StateDeltaEvent:{optional:["timestamp","rawEvent","metadata","subagentRunId"],fields:{delta:{array:"JsonPatchOperation"}}},DeveloperMessage:{optional:["subagentRunId","name","encryptedValue","metadata"],fields:{}},SystemMessage:{optional:["subagentRunId","name","encryptedValue","metadata"],fields:{}},FunctionCall:{optional:[],fields:{}},ToolCall:{optional:["encryptedValue","metadata"],fields:{function:"FunctionCall"}},AssistantMessage:{optional:["subagentRunId","name","encryptedValue","metadata","content","toolCalls"],fields:{toolCalls:{array:"ToolCall"}}},UserMessage:{optional:["subagentRunId","name","encryptedValue","metadata"],fields:{content:{array:"ContentPart"}}},ToolMessage:{optional:["subagentRunId","error","encryptedValue","metadata"],fields:{content:{array:"ContentPart"}}},ActivityMessage:{optional:["subagentRunId","metadata"],fields:{}},ReasoningMessage:{optional:["subagentRunId","encryptedValue","metadata"],fields:{}},Message:{discriminator:"role",variants:{developer:"DeveloperMessage",system:"SystemMessage",assistant:"AssistantMessage",user:"UserMessage",tool:"ToolMessage",activity:"ActivityMessage",reasoning:"ReasoningMessage"}},MessagesSnapshotEvent:{optional:["timestamp","rawEvent","metadata"],fields:{messages:{array:"Message"}}},ActivitySnapshotEvent:{optional:["timestamp","rawEvent","metadata","
37subagentRunId","replace"],fields:{}},ActivityDeltaEvent:{optional:["timestamp","rawEvent","metadata","subagentRunId"],fields:{patch:{array:"JsonPatchOperation"}}},RawEvent:{optional:["timestamp","rawEvent","metadata","subagentRunId","source"],fields:{}},CustomEvent:{optional:["timestamp","rawEvent","metadata","subagentRunId"],fields:{}},Tool:{optional:["parameters","metadata"],fields:{}},Context:{optional:[],fields:{}},ResumeEntry:{optional:["payload","metadata"],fields:{}},RunAgentInput:{optional:["protocolVersion","parentRunId","state","tools","context","forwardedProps","resume"],fields:{messages:{array:"Message"},tools:{array:"Tool"},context:{array:"Context"},resume:{array:"ResumeEntry"}}},RunStartedEvent:{optional:["timestamp","rawEvent","metadata","protocolVersion","parentRunId","input"],fields:{input:"RunAgentInput"}},RunFinishedSuccessOutcome:{optional:["pendingToolCallIds"],fields:{}},Interrupt:{optional:["subagentRunId","message","toolCallId","responseSchema","expiresAt","metadata"],fields:{}},RunFinishedInterruptOutcome:{optional:[],fields:{interrupts:{array:"Interrupt"}}},RunFinishedCancelledOutcome:{optional:[],fields:{}},RunFinishedOutcome:{discriminator:"type",variants:{success:"RunFinishedSuccessOutcome",interrupt:"RunFinishedInterruptOutcome",cancelled:"RunFinishedCancelledOutcome"}},TokenUsage:{optional:["provider","model","inputTokens","outputTokens","totalTokens","reasoningTokens","cachedInputTokens","cacheWriteInputTokens"],fields:{}},RunFinishedEvent:{optional:["timestamp","rawEvent","metadata","result","outcome","usage"],fields:{outcome:"RunFinishedOutcome",usage:{array:"TokenUsage"}}},RunErrorEvent:{optional:["timestamp","rawEvent","metadata","code","usage"],fields:{usage:{array:"TokenUsage"}}},StepStartedEvent:{optional:["timestamp","rawEvent","metadata","subagentRunId"],fields:{}},StepFinishedEvent:{optional:["timestamp","rawEvent","metadata","subagentRunId"],fields:{}},ReasoningStartEvent:{optional:["timestamp","rawEvent","metadata","subagentRunId"],fields:{}},ReasoningMessageStartEvent:{optional:["timestamp","rawEvent","metadata","subagentRunId"],fields:{}},ReasoningMessageContentEvent:{optional:["timestamp","rawEvent","metadata","subagentRunId"],fields:{}},ReasoningMessageEndEvent:{optional:["timestamp","rawEvent","metadata","subagentRunId"],fields:{}},ReasoningMessageChunkEvent:{optional:["timestamp","rawEvent","metadata","subagentRunId","messageId","delta"],fields:{}},ReasoningEndEvent:{optional:["timestamp","rawEvent","metadata","subagentRunId"],fields:{}},ReasoningEncryptedValueEvent:{optional:["timestamp","rawEvent","metadata","subagentRunId"],fields:{}},SubagentStartedEvent:{optional:["timestamp","rawEvent","metadata","description","parentSubagentRunId","parentToolCallId","parentMessageId"],fields:{}},SubagentFinishedSuccessOutcome:{optional:[],fields:{}},SubagentFinishedSuspendedOutcome:{optional:["interruptIds"],fields:{}},SubagentFinishedOutcome:{discriminator:"type",variants:{success:"SubagentFinishedSuccessOutcome",suspended:"SubagentFinishedSuspendedOutcome"}},SubagentFinishedEvent:{optional:["timestamp","rawEvent","metadata","result","outcome"],fields:{outcome:"SubagentFinishedOutcome"}},SubagentErrorEvent:{optional:["timestamp","rawEvent","metadata","code"],fields:{}},Event:{discriminator:"type",variants:{TEXT_MESSAGE_START:"TextMessageStartEvent",TEXT_MESSAGE_CONTENT:"TextMessageContentEvent",TEXT_MESSAGE_END:"TextMessageEndEvent",TEXT_MESSAGE_CHUNK:"TextMessageChunkEvent",TOOL_CALL_START:"ToolCallStartEvent",TOOL_CALL_ARGS:"ToolCallArgsEvent",TOOL_CALL_END:"ToolCallEndEvent",TOOL_CALL_CHUNK:"ToolCallChunkEvent",TOOL_CALL_RESULT:"ToolCallResultEvent",STATE_SNAPSHOT:"StateSnapshotEvent",STATE_DELTA:"StateDeltaEvent",MESSAGES_SNAPSHOT:"MessagesSnapshotEvent",ACTIVITY_SNAPSHOT:"ActivitySnapshotEvent",ACTIVITY_DELTA:"ActivityDeltaEvent",RAW:"RawEvent",CUSTOM:"CustomEvent",RUN_STARTED:"RunStartedEvent",RUN_FINISHED:"RunFinishedEvent",RUN_ERROR:"RunErrorEvent",STEP_STARTED:"StepStartedEvent",STEP_FINISHED:"StepFinishedEvent",REASONING_START:"ReasoningStartEvent",REASONING_MESSAGE_START:"ReasoningMessageStartEvent",REASONING_MESSAGE_CONTENT:"ReasoningMessageContentEvent",REASONING_MESSAGE_END:"ReasoningMessageEndEvent",REASONING_MESSAGE_CHUNK:"ReasoningMessageChunkEvent",REASONING_END:"ReasoningEndEvent",REASONING_ENCRYPTED_VALUE:"ReasoningEncryptedValueEvent",SUBAGENT_STARTED:"SubagentStartedEvent",SUBAGENT_FINISHED:"SubagentFinishedEvent",SUBAGENT_ERROR:"SubagentErrorEvent"}},SubagentInfo:{optional:["description"],fields:{}},IdentityCapabilities:{optional:["name","type","description","version","provider","documentationUrl","metadata"],fields:{}},TransportCapabilities:{optional:["streaming","websocket","httpBinary","pushNotifications","resumable"],fields:{}},ToolsCapabilities:{optional:["supported","items","parallelCalls","clientProvided"],fields:{items:{array:"Tool"}}},OutputCapabilities:{optional:["structuredOutput","supportedMimeTypes"],fields:{}},StateCapabilities:{optional:["snapshots","deltas","memory","persistentState"],fields:{}},MultiAgentCapabilities:{optional:["supported","delegation","handoffs","subagents"],fields:{subagents:{array:"SubagentInfo"}}},ReasoningCapabilities:{optional:["supported","streaming","encrypted"],fields:{}},MultimodalInputCapabilities:{optional:["image","audio","video","pdf","file"],fields:{}},MultimodalOutputCapabilities:{optional:["image","audio"],fields:{}},MultimodalCapabilities:{optional:["input","output"],fields:{input:"MultimodalInputCapabilities",output:"MultimodalOutputCapabilities"}}
37,ExecutionCapabilities:{optional:["codeExecution","sandboxed","maxIterations","maxExecutionTime"],fields:{}},HumanInTheLoopCapabilities:{optional:["supported","approvals","interventions","feedback","interrupts","approveWithEdits"],fields:{}},AgentCapabilities:{optional:["identity","transport","tools","output","state","multiAgent","reasoning","multimodal","execution","humanInTheLoop","custom"],fields:{identity:"IdentityCapabilities",transport:"TransportCapabilities",tools:"ToolsCapabilities",output:"OutputCapabilities",state:"StateCapabilities",multiAgent:"MultiAgentCapabilities",reasoning:"ReasoningCapabilities",multimodal:"MultimodalCapabilities",execution:"ExecutionCapabilities",humanInTheLoop:"HumanInTheLoopCapabilities"}}};function s(e,t){return function e(t,n){if("string"==typeof n)return e(t,i[n]);if("array"in n){if(!Array.isArray(t))return t;let r=t.map(t=>e(t,n.array));return r.every((e,n)=>e===t[n])?t:r}if("object"!=typeof t||null===t||Array.isArray(t))return t;if("discriminator"in n){let r=t[n.discriminator];return"string"==typeof r&&Object.prototype.hasOwnProperty.call(n.variants,r)?e(t,n.variants[r]):t}let r=t;for(let e of n.optional)Object.prototype.hasOwnProperty.call(t,e)&&null===t[e]&&(r===t&&(r={...t}),delete r[e]);for(let[i,s]of Object.entries(n.fields)){if(!Object.prototype.hasOwnProperty.call(r,i))continue;let n=e(r[i],s);n!==r[i]&&(r===t&&(r={...t}),r[i]=n)}return r}(e,t)}var a=class extends Error{constructor(e){super(e)}},o=class extends a{constructor(){super("Connect not implemented. This method is not supported by the current agent.")}};function l(e,t){return void 0===t?e:void 0===e?{...t}:{...e,...t}}function u(e){return void 0===e?"":"string"==typeof e?e:e.filter(e=>"text"===e.type).map(e=>e.text).join("")}function c(e){return Array.isArray(e)&&e.some(e=>"text"!==e.type)}},31981:(e,t,n)=>{let r;n.d(t,{Te:()=>_});var i=n(23073),s=n(52452);function a(e,t,n){let r,i=n.initialDeps??[],s=!0;function a(){let a=e();return a.length!==i.length||a.some((e,t)=>i[t]!==e)?(i=a,r=t(...a),(null==n?void 0:n.onChange)&&!(s&&n.skipInitialOnChange)&&n.onChange(r),s=!1,r):r}return a.updateDeps=e=>{i=e},a}function o(e,t){if(void 0!==e)return e;throw Error(`Unexpected undefined${t?`: ${t}`:""}`)}let l=(e,t)=>1.01>Math.abs(e-t),u=()=>{if(void 0!==r)return r;if("undefined"==typeof navigator)return r=!1;if(/iP(hone|od|ad)/.test(navigator.userAgent))return r=!0;let e=navigator.maxTouchPoints;return r="MacIntel"===navigator.platform&&void 0!==e&&e>0},c=e=>{let{offsetWidth:t,offsetHeight:n}=e;return{width:t,height:n}},d=e=>e,h=e=>{let t=Math.max(e.startIndex-e.overscan,0),n=Math.min(e.endIndex+e.overscan,e.count-1)-t+1,r=Array(n);for(let e=0;e<n;e++)r[e]=t+e;return r},p=(e,t)=>{let n=e.scrollElement;if(!n)return;let r=e.targetWindow;if(!r)return;let i=e=>{let{width:n,height:r}=e;t({width:Math.round(n),height:Math.round(r)})};if(i(c(n)),!r.ResizeObserver)return()=>{};let s=new r.ResizeObserver(t=>{let r=()=>{let e=t[0];if(null==e?void 0:e.borderBoxSize){let t=e.borderBoxSize[0];if(t)return void i({width:t.inlineSize,height:t.blockSize})}i(c(n))};e.options.useAnimationFrameWithResizeObserver?requestAnimationFrame(r):r()});return s.observe(n,{box:"border-box"}),()=>{s.unobserve(n)}},f={passive:!0},m="undefined"==typeof window||"onscrollend"in window,g=(e,t)=>((e,t,n)=>{let r=e.scrollElement;if(!r)return;let i=e.targetWindow;if(!i)return;let s=e.options.useScrollendEvent&&m,a=0,o=s?null:((e,t,n)=>{let r;return Object.assign(function(...i){e.clearTimeout(r),r=e.setTimeout(()=>t.apply(this,i),n)},{cancel:()=>{e.clearTimeout(r)}})})(i,()=>t(n(r),!1),e.options.isScrollingResetDelay),l=e=>()=>{a=n(r),null==o||o(),t(a,e)},u=l(!0),c=l(!1);return r.addEventListener("scroll",u,f),s&&r.addEventListener("scrollend",c,f),()=>{r.removeEventListener("scroll",u),s&&r.removeEventListener("scrollend",c),null==o||o.cancel()}})(e,t,t=>{let{horizontal:n,isRtl:r}=e.options;return n?t.scrollLeft*(r&&-1||1):t.scrollTop}),y=(e,t,n)=>{if(n.options.useCachedMeasurements){let t=n.indexFromElement(e),r=n.options.getItemKey(t);return n.itemSizeCache.get(r)??n.options.estimateSize(t)}if(null==t?void 0:t.borderBoxSize){let e=t.borderBoxSize[0];if(e)return Math.round(e[n.options.horizontal?"inlineSize":"blockSize"])}if(!t){let t=n.indexFromElement(e),r=n.options.getItemKey(t),i=n.itemSizeCache.get(r);if(void 0!==i)return i}return e[n.options.horizontal?"offsetWidth":"offsetHeight"]}
37,v=(e,{adjustments:t=0,behavior:n},r)=>{var i,s;null==(s=null==(i=r.scrollElement)?void 0:i.scrollTo)||s.call(i,{[r.options.horizontal?"left":"top"]:e+t,behavior:n})};class b{constructor(e){this.unsubs=[],this.scrollElement=null,this.targetWindow=null,this.isScrolling=!1,this.scrollState=null,this.measurementsCache=[],this._singleLaneMeasurements=null,this.itemSizeCache=new Map,this.itemSizeCacheVersion=0,this.laneAssignments=new Map,this.pendingMin=null,this.prevLanes=void 0,this.lanesChangedFlag=!1,this.lanesSettling=!1,this.pendingScrollAnchor=null,this.scrollRect=null,this.scrollOffset=null,this.scrollDirection=null,this.scrollAdjustments=0,this._iosDeferredAdjustment=0,this._iosTouching=!1,this._iosJustTouchEnded=!1,this._iosTouchEndTimerId=null,this._intendedScrollOffset=null,this._clampedAdjustment=null,this.elementsCache=new Map,this.now=()=>{var e,t,n;return(null==(n=null==(t=null==(e=this.targetWindow)?void 0:e.performance)?void 0:t.now)?void 0:n.call(t))??Date.now()},this.observer=(()=>{let e=null,t=()=>e||(this.targetWindow&&this.targetWindow.ResizeObserver?e=new this.targetWindow.ResizeObserver(e=>{e.forEach(e=>{let t=()=>{let t=e.target,n=this.indexFromElement(t);if(!t.isConnected){for(let[e,n]of(this.observer.unobserve(t),this.elementsCache))if(n===t){this.elementsCache.delete(e);break}return}this.isIndexInRange(n)&&this.shouldMeasureDuringScroll(n)&&this.resizeItem(n,this.options.measureElement(t,e,this))};this.options.useAnimationFrameWithResizeObserver?requestAnimationFrame(t):t()})}):null);return{disconnect:()=>{var n;null==(n=t())||n.disconnect(),e=null},observe:e=>{var n;return null==(n=t())?void 0:n.observe(e,{box:"border-box"})},unobserve:e=>{var n;return null==(n=t())?void 0:n.unobserve(e)}}})(),this.range=null,this.setOptions=e=>{var t;let n={debug:!1,initialOffset:0,overscan:1,paddingStart:0,paddingEnd:0,scrollPaddingStart:0,scrollPaddingEnd:0,horizontal:!1,getItemKey:d,rangeExtractor:h,onChange:()=>{},measureElement:y,initialRect:{width:0,height:0},scrollMargin:0,gap:0,indexAttribute:"data-index",initialMeasurementsCache:[],lanes:1,anchorTo:"start",followOnAppend:!1,scrollEndThreshold:1,isScrollingResetDelay:150,enabled:!0,isRtl:!1,useScrollendEvent:!1,useAnimationFrameWithResizeObserver:!1,laneAssignmentMode:"estimate",useCachedMeasurements:!1};for(let t in e){let r=e[t];void 0!==r&&(n[t]=r)}let r=this.options,i=null,s=null,a=!1;if(void 0!==r&&r.enabled&&n.enabled&&"end"===n.anchorTo&&null!==this.scrollElement){let e=r.count,o=n.count,l=this.getMeasurements(),u=(null==(t=this._singleLaneMeasurements)?void 0:t.items)??l,c=e=>(function(e){return"object"==typeof e?e.key:e})(u[e]),d=e>0?c(0):null,h=e>0?c(e-1):null;if(o!==e||e>0&&o>0&&(n.getItemKey(0)!==d||n.getItemKey(o-1)!==h)){a=!0;let t=e>0?this.getVirtualItemForOffset(this.getScrollOffset())??l[0]:null;t&&(i=[t.key,this.getScrollOffset()-t.start]);let u=!0===n.followOnAppend?"auto":n.followOnAppend||null;u&&o>0&&this.isAtEnd(r.scrollEndThreshold)&&(0===e||n.getItemKey(o-1)!==h)&&(o>e||function(e,t,n,r){if(0===t)return!1;let i=r(0),s=new Set,a=0;for(;a<e;){let e=n(a);if(e===i)break;s.add(e),a++}let o=e-a;if(0===o||o>=t)return!1;for(let e=0;e<o;e++)if(r(e)!==n(a+e))return!1;for(let e=o;e<t;e++)if(s.has(r(e)))return!1;return!0}(e,o,c,n.getItemKey))&&(s=u)}}this.options=n,a&&(this.pendingMin=0,this.itemSizeCacheVersion++);let o=!1,l=0;if(i&&null!==this.scrollOffset){let[e,t]=i,n=this.getMeasurements(),{count:r,getItemKey:a}=this.options,u=0;for(;u<r&&a(u)!==e;)u++;if(u<r){let e=n[u];if(e){let n=Math.max(0,e.start+t);s||n===this.scrollOffset||(l=n-this.scrollOffset,this.scrollOffset=n,o=!0)}}}(o||s)&&(this.pendingScrollAnchor=[o?i[0]:null,o?i[1]:0,s,l])},this.notify=e=>{var t,n;null==(n=(t=this.options).onChange)||n.call(t,this,e)},this.maybeNotify=a(()=>(this.calculateRange(),[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]),e=>{this.notify(e)},{key:!1,debug:()=>this.options.debug,initialDeps:[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]}),this.cleanup=()=>
37{this.unsubs.filter(Boolean).forEach(e=>e()),this.unsubs=[],this.observer.disconnect(),null!=this.rafId&&this.targetWindow&&(this.targetWindow.cancelAnimationFrame(this.rafId),this.rafId=null),this.scrollState=null,this.isScrolling=!1,this.scrollDirection=null,this._iosDeferredAdjustment=0,this._iosTouching=!1,this._iosJustTouchEnded=!1,this._clampedAdjustment=null,this.scrollElement=null,this.targetWindow=null},this._didMount=()=>()=>{this.cleanup()},this._willUpdate=()=>{var e,t;let n=this.options.enabled?this.options.getScrollElement():null;if(this.scrollElement!==n){if(this.cleanup(),!n)return void this.maybeNotify();if(this.scrollElement=n,this.scrollElement&&"ownerDocument"in this.scrollElement?this.targetWindow=this.scrollElement.ownerDocument.defaultView:this.targetWindow=(null==(e=this.scrollElement)?void 0:e.window)??null,this.elementsCache.forEach(e=>{this.observer.observe(e)}),this.unsubs.push(this.options.observeElementRect(this,e=>{this.scrollRect=e,this.maybeNotify()})),this.unsubs.push(this.options.observeElementOffset(this,(e,t)=>{if(t&&null===this._intendedScrollOffset&&e===this.scrollOffset)return;null!==this._intendedScrollOffset&&1.5>Math.abs(e-this._intendedScrollOffset)&&(e=this._intendedScrollOffset),this._intendedScrollOffset=null,null!==this._clampedAdjustment&&Math.abs(e-this._clampedAdjustment.maxAtWrite)>=1.5&&(this._clampedAdjustment=null),this.scrollAdjustments=0;let n=this.getScrollOffset();this.scrollDirection=t?n===e?this.scrollDirection:n<e?"forward":"backward":null,this.scrollOffset=e,this.isScrolling=t,this._flushIosDeferredIfReady(),this.scrollState&&this.scheduleScrollReconcile(),this.maybeNotify()})),"addEventListener"in this.scrollElement){let e=this.scrollElement,t=()=>{this._iosTouching=!0,this._iosJustTouchEnded=!1,null!==this._iosTouchEndTimerId&&null!=this.targetWindow&&(this.targetWindow.clearTimeout(this._iosTouchEndTimerId),this._iosTouchEndTimerId=null)},n=()=>{this._iosTouching=!1,u()&&null!=this.targetWindow&&(this._iosJustTouchEnded=!0,this._iosTouchEndTimerId=this.targetWindow.setTimeout(()=>{this._iosJustTouchEnded=!1,this._iosTouchEndTimerId=null,this._flushIosDeferredIfReady()},150))};e.addEventListener("touchstart",t,f),e.addEventListener("touchend",n,f),this.unsubs.push(()=>{e.removeEventListener("touchstart",t),e.removeEventListener("touchend",n),null!==this._iosTouchEndTimerId&&null!=this.targetWindow&&(this.targetWindow.clearTimeout(this._iosTouchEndTimerId),this._iosTouchEndTimerId=null)})}this._scrollToOffset(this.getScrollOffset(),{adjustments:void 0,behavior:void 0})}let r=this.pendingScrollAnchor;if(this.pendingScrollAnchor=null,r&&this.scrollElement&&this.options.enabled){let[e,n,i,s]=r;null!==e&&!i&&(u()&&(this.isScrolling||this._iosTouching||this._iosJustTouchEnded)?0!==s&&(this._iosDeferredAdjustment+=s):((null==(t=this.scrollState)?void 0:t.behavior)!=="smooth"||l(this.getScrollOffset()-s,this.scrollState.lastTargetOffset))&&this._scrollToOffset(this.getScrollOffset(),{adjustments:void 0,behavior:void 0})),i&&this.scrollToEnd({behavior:i})}this._retryClampedAdjustment()},this._retryClampedAdjustment=()=>{if(null===this._clampedAdjustment||!this.scrollElement||!this.options.enabled)return;let{target:e,maxAtWrite:t}=this._clampedAdjustment,n=this.getMaxScrollOffset();n>t+.5&&(this._clampedAdjustment=e>n+.5?{target:e,maxAtWrite:n}:null,this._scrollToOffset(e,{adjustments:void 0,behavior:void 0}))},this._flushIosDeferredIfReady=()=>{if(0===this._iosDeferredAdjustment||this.isScrolling||this._iosTouching||this._iosJustTouchEnded)return;let e=this.getScrollOffset(),t=this.getMaxScrollOffset();if(e<0||e>t)return;if(this._iosDeferredAdjustment<0&&e>=t-1){this._iosDeferredAdjustment=0;return}let n=this._iosDeferredAdjustment;this._iosDeferredAdjustment=0,this._scrollToOffset(e,{adjustments:this.scrollAdjustments+=n,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??("function"==typeof this.options.initialOffset?this.options.initialOffset():this.options.initialOffset),this.scrollOffset):(this.scrollOffset=null,0),this.getMeasurementOptions=a(()=>[this.options.count,this.options.paddingStart,this.options.scrollMargin,this.options.getItemKey,this.options.enabled,this.options.lanes,this.options.laneAssignmentMode,this.options.gap],(e,t,n,r,i,s,a,o)=>(void 0!==this.prevLanes&&this.prevLanes!==s&&(this.lanesChangedFlag=!0),this.prevLanes=s,this.pendingMin=null,{count:e,paddingStart:t,scrollMargin:n,getItemKey:r,enabled:i,lanes:s,laneAssignmentMode:
37a,gap:o}),{key:!1}),this.isIndexInRange=e=>e>=0&&e<this.options.count,this.getMeasurements=a(()=>[this.getMeasurementOptions(),this.itemSizeCacheVersion],({count:e,paddingStart:t,scrollMargin:n,getItemKey:r,enabled:i,lanes:s,laneAssignmentMode:a,gap:o},l)=>{var u;let c=this.itemSizeCache;if(!i)return this.measurementsCache=[],this._singleLaneMeasurements=null,this.itemSizeCache.clear(),this.laneAssignments.clear(),[];if(this.laneAssignments.size>e)for(let t of this.laneAssignments.keys())t>=e&&this.laneAssignments.delete(t);this.lanesChangedFlag&&(this.lanesChangedFlag=!1,this.lanesSettling=!0,this.measurementsCache=[],this._singleLaneMeasurements=null,this.itemSizeCache.clear(),this.laneAssignments.clear(),this.pendingMin=null),0!==this.measurementsCache.length||this.lanesSettling||(this.measurementsCache=this.options.initialMeasurementsCache,this.measurementsCache.forEach(e=>{this.itemSizeCache.set(e.key,e.size)}));let d=this.lanesSettling?0:this.pendingMin??0;if(this.pendingMin=null,this.lanesSettling&&this.measurementsCache.length===e&&(this.lanesSettling=!1),1===s){let i,s=2*e,a=null==(u=this._singleLaneMeasurements)?void 0:u.flat;if(!a||a.length<s){let e=new Float64Array(s);a&&d>0&&e.set(a.subarray(0,2*d)),a=e}let l=0===d?Array(e):this._singleLaneMeasurements.items.slice();if(0===d)i=t+n;else{let e=d-1;i=a[2*e]+a[2*e+1]+o}for(let t=d;t<e;t++){let e=r(t);l[t]=e;let n=c.get(e),s="number"==typeof n?n:this.options.estimateSize(t);a[2*t]=i,a[2*t+1]=s,i+=s+o}this._singleLaneMeasurements={flat:a,items:l};let h=function(e,t){let n=e.length;return new Proxy(e,{get(e,r,i){if("string"==typeof r){let i=r.charCodeAt(0);if(i>=48&&i<=57){let i=+r;if(Number.isInteger(i)&&i>=0&&i<n){let n=e[i];if("object"!=typeof n){let r=t[2*i];n=e[i]={index:i,key:n,start:r,size:t[2*i+1],end:r+t[2*i+1],lane:0}}return n}}if("length"===r)return n}return Reflect.get(e,r,i)}})}(l,a);return this.measurementsCache=h,h}let h=this.measurementsCache.slice(0,d),p=Array(s).fill(void 0),f=new Float64Array(s),m=0;for(let e=0;e<d;e++){let t=h[e];t&&(void 0===p[t.lane]&&m++,p[t.lane]=e,f[t.lane]=t.end)}for(let i=d;i<e;i++){let e,l,u=r(i),d=this.laneAssignments.get(i),g="estimate"===a||c.has(u);if(void 0!==d&&this.options.lanes>1){let r=p[e=d],i=void 0!==r?h[r]:void 0;l=i?i.end+o:t+n}else if(m===s){let t=0,n=f[0],r=p[0];for(let e=1;e<s;e++){let i=f[e];(i<n||i===n&&p[e]<r)&&(t=e,n=i,r=p[e])}e=t,l=n+o,g&&this.laneAssignments.set(i,e)}else e=i%this.options.lanes,l=t+n,g&&this.laneAssignments.set(i,e);let y=c.get(u),v="number"==typeof y?y:this.options.estimateSize(i),b=l+v;h[i]={index:i,start:l,size:v,end:b,key:u,lane:e},void 0===p[e]&&m++,p[e]=i,f[e]=b}return this.measurementsCache=h,h},{key:!1,debug:()=>this.options.debug}),this.calculateRange=a(()=>[this.getMeasurements(),this.getSize(),this.getScrollOffset(),this.options.lanes],(e,t,n,r)=>0===e.length||0===t?(this.range=null,null):(this.range=function(e,t,n,r,i){let s=e.length-1;if(e.length<=r)return{startIndex:0,endIndex:s};if(1===r&&null!==i){let e=function(e,t,n){let r=0;for(;r<=t;){let i=(r+t)/2|0,s=e[2*i];if(s<n)r=i+1;else{if(!(s>n))return i;t=i-1}}return r>0?r-1:0}(i,s,n),r=e,a=n+t;for(;r<s&&i[2*r]+i[2*r+1]<a;)r++;return{startIndex:e,endIndex:r}}let a=E(0,s,t=>e[t].start,n),o=a;if(1===r)for(;o<s&&e[o].end<n+t;)o++;else if(r>1){let i=Array(r).fill(0);for(;o<s&&i.some(e=>e<n+t);){let t=e[o];i[t.lane]=t.end,o++}let l=Array(r).fill(n+t);for(;a>=0&&l.some(e=>e>=n);){let t=e[a];l[t.lane]=t.start,a--}a=Math.max(0,a-a%r),o=Math.min(s,o+(r-1-o%r))}return{startIndex:a,endIndex:o}}(e,t,n,r,1===r&&null!==this._singleLaneMeasurements?this._singleLaneMeasurements.flat:null),this.range),{key:!1,debug:()=>this.options.debug}
37),this.getVirtualIndexes=a(()=>{let e=null,t=null,n=this.calculateRange();return n&&(e=n.startIndex,t=n.endIndex),this.maybeNotify.updateDeps([this.isScrolling,e,t]),[this.options.rangeExtractor,this.options.overscan,this.options.count,e,t]},(e,t,n,r,i)=>null===r||null===i?[]:e({startIndex:r,endIndex:i,overscan:t,count:n}),{key:!1,debug:()=>this.options.debug}),this.indexFromElement=e=>{let t=this.options.indexAttribute,n=e.getAttribute(t);return n?parseInt(n,10):(console.warn(`Missing attribute name '${t}={index}' on measured element.`),-1)},this.shouldMeasureDuringScroll=e=>{var t;if(!this.scrollState||"smooth"!==this.scrollState.behavior)return!0;let n=this.scrollState.index??(null==(t=this.getVirtualItemForOffset(this.scrollState.lastTargetOffset))?void 0:t.index);if(void 0!==n&&this.range){let t=Math.max(this.options.overscan,Math.ceil((this.range.endIndex-this.range.startIndex)/2)),r=Math.max(0,n-t),i=Math.min(this.options.count-1,n+t);return e>=r&&e<=i}return!0},this.measureElement=e=>{if(!e)return void this.elementsCache.forEach((e,t)=>{e.isConnected||(this.observer.unobserve(e),this.elementsCache.delete(t))});let t=this.indexFromElement(e);if(!this.isIndexInRange(t))return;let n=this.options.getItemKey(t),r=this.elementsCache.get(n);r!==e&&(r&&this.observer.unobserve(r),this.observer.observe(e),this.elementsCache.set(n,e)),(!this.isScrolling||this.scrollState)&&this.shouldMeasureDuringScroll(t)&&this.resizeItem(t,this.options.measureElement(e,void 0,this))},this.resizeItem=(e,t)=>{var n,r,i;let s,a,o;if(!this.isIndexInRange(e))return;let l=null==(n=this._singleLaneMeasurements)?void 0:n.flat;if(1===this.options.lanes&&null!=l)o=this.options.getItemKey(e),a=l[2*e],s=l[2*e+1];else{let t=this.measurementsCache[e];if(!t)return;o=t.key,a=t.start,s=t.size}let u=this.itemSizeCache.get(o)??s,c=t-u;if(0!==c){let n="end"===this.options.anchorTo&&(null==(r=this.scrollState)?void 0:r.behavior)!=="smooth"&&this.getVirtualDistanceFromEnd()<=this.options.scrollEndThreshold,l=n?this.getTotalSize():0,d=this.getScrollOffset()+this.scrollAdjustments,h=this.itemSizeCache.has(o)?a+u<=d&&"backward"!==this.scrollDirection:a<d,p=(null==(i=this.scrollState)?void 0:i.behavior)!=="smooth"&&(void 0!==this.shouldAdjustScrollPositionOnItemSizeChange?this.shouldAdjustScrollPositionOnItemSizeChange(this.measurementsCache[e]??{index:e,key:o,start:a,size:s,end:a+s,lane:0},c,this):h);(null===this.pendingMin||e<this.pendingMin)&&(this.pendingMin=e),this.itemSizeCache.set(o,t),this.itemSizeCacheVersion++;let f=!1;n?f=this.applyScrollAdjustment(this.getTotalSize()-l):p&&(f=this.applyScrollAdjustment(c)),this.notify(f),this._retryClampedAdjustment()}},this.getVirtualItems=a(()=>
37[this.getVirtualIndexes(),this.getMeasurements()],(e,t)=>{let n=[];for(let r=0,i=e.length;r<i;r++){let i=t[e[r]];n.push(i)}return n},{key:!1,debug:()=>this.options.debug}),this.getVirtualItemForOffset=e=>{var t;let n=this.getMeasurements();if(0===n.length)return;let r=null==(t=this._singleLaneMeasurements)?void 0:t.flat,i=1===this.options.lanes&&null!=r,s=E(0,n.length-1,i?e=>r[2*e]:e=>o(n[e]).start,e);return o(n[s])},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;{let e=this.scrollElement.document.documentElement;return this.options.horizontal?e.scrollWidth-this.scrollElement.innerWidth:e.scrollHeight-this.scrollElement.innerHeight}},this.getVirtualDistanceFromEnd=()=>Math.max(this.getTotalSize()-this.getSize()-this.getScrollOffset(),0),this.getDistanceFromEnd=()=>Math.max(this.getMaxScrollOffset()-this.getScrollOffset(),0),this.isAtEnd=(e=this.options.scrollEndThreshold)=>this.getDistanceFromEnd()<=e,this.getOffsetForAlignment=(e,t,n=0)=>
37{if(!this.scrollElement)return 0;let r=this.getSize(),i=this.getScrollOffset();return"auto"===t&&(t=e>=i+r?"end":"start"),"center"===t?e+=(n-r)/2:"end"===t&&(e-=r),Math.max(Math.min(this.getMaxScrollOffset(),e),0)},this.getOffsetForIndex=(e,t="auto")=>{e=Math.max(0,Math.min(e,this.options.count-1));let n=this.getSize(),r=this.getScrollOffset(),i=this.measurementsCache[e];if(!i)return;if("auto"===t)if(i.end>=r+n-this.options.scrollPaddingEnd)t="end";else{if(!(i.start<=r+this.options.scrollPaddingStart))return[r,t];t="start"}if("end"===t&&e===this.options.count-1)return[this.getMaxScrollOffset(),t];let s="end"===t?i.end+this.options.scrollPaddingEnd:i.start-this.options.scrollPaddingStart;return[this.getOffsetForAlignment(s,t,i.size),t]},this.scrollToOffset=(e,{align:t="start",behavior:n="auto"}={})=>{this._iosDeferredAdjustment=0;let r=this.getOffsetForAlignment(e,t),i=this.now();this.scrollState={index:null,align:t,behavior:n,startedAt:i,lastTargetOffset:r,stableFrames:0},this._scrollToOffset(r,{adjustments:void 0,behavior:n}),this.scheduleScrollReconcile()},this.scrollToIndex=(e,{align:t="auto",behavior:n="auto"}={})=>{this._iosDeferredAdjustment=0,e=Math.max(0,Math.min(e,this.options.count-1));let r=this.getOffsetForIndex(e,t);if(!r)return;let[i,s]=r,a=this.now();this.scrollState={index:e,align:s,behavior:n,startedAt:a,lastTargetOffset:i,stableFrames:0},this._scrollToOffset(i,{adjustments:void 0,behavior:n}),this.scheduleScrollReconcile()},this.scrollBy=(e,{behavior:t="auto"}={})=>{let n=this.getScrollOffset()+e,r=this.now();this.scrollState={index:null,align:"start",behavior:t,startedAt:r,lastTargetOffset:n,stableFrames:0},this._scrollToOffset(n,{adjustments:void 0,behavior:t}),this.scheduleScrollReconcile()},this.scrollToEnd=({behavior:e="auto"}={})=>{if(this.options.count>0)return void this.scrollToIndex(this.options.count-1,{align:"end",behavior:e});this.scrollToOffset(Math.max(this.getTotalSize()-this.getSize(),0),{behavior:e})},this.getTotalSize=()=>{var e,t;let n,r=this.getMeasurements();if(0===r.length)n=this.options.paddingStart;else if(1===this.options.lanes){let i=r.length-1,s=null==(e=this._singleLaneMeasurements)?void 0:e.flat;n=null!=s?s[2*i]+s[2*i+1]:(null==(t=r[i])?void 0:t.end)??0}else{let e=Array(this.options.lanes).fill(null),t=r.length-1;for(;t>=0&&e.some(e=>null===e);){let n=r[t];null===e[n.lane]&&(e[n.lane]=n.end),t--}n=Math.max(...e.filter(e=>null!==e))}return Math.max(n-this.options.scrollMargin+this.options.paddingEnd,0)},this.takeSnapshot=()=>{let e=[];
37if(0===this.itemSizeCache.size)return e;for(let t of this.getMeasurements())t&&this.itemSizeCache.has(t.key)&&e.push({index:t.index,key:t.key,start:t.start,size:t.size,end:t.end,lane:t.lane});return e},this._scrollToOffset=(e,{adjustments:t,behavior:n})=>{this._intendedScrollOffset=e+(t??0),this.options.scrollToFn(e,{behavior:n,adjustments:t},this)},this.measure=()=>{this.pendingMin=null,this.itemSizeCache.clear(),this.laneAssignments.clear(),this.itemSizeCacheVersion++,this.notify(!1)},this.setOptions(e)}applyScrollAdjustment(e,t){if(0===e)return!1;if(u()&&(this.isScrolling||this._iosTouching||this._iosJustTouchEnded))return this._iosDeferredAdjustment+=e,!1;{let n=this.getScrollOffset()+this.scrollAdjustments+e,r=this.scrollElement,i=null!==r&&("scrollHeight"in r||"document"in r)?this.getMaxScrollOffset():null;return this._clampedAdjustment=null!==i&&n>i+.5?{target:n,maxAtWrite:i}:null,this._scrollToOffset(this.getScrollOffset(),{adjustments:this.scrollAdjustments+=e,behavior:t}),null!==this.scrollOffset&&(this.scrollOffset+=this.scrollAdjustments,this.scrollOffset<0&&(this.scrollOffset=0),this.scrollAdjustments=0),!0}}scheduleScrollReconcile(){if(!this.targetWindow){this.scrollState=null;return}null==this.rafId&&(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}let e=null!=this.scrollState.index?this.getOffsetForIndex(this.scrollState.index,this.scrollState.align):void 0,t=e?e[0]:this.scrollState.lastTargetOffset,n=t!==this.scrollState.lastTargetOffset;if(!n&&l(t,this.getScrollOffset())){if(this.scrollState.stableFrames++,this.scrollState.stableFrames>=1){this.getScrollOffset()!==t&&this._scrollToOffset(t,{adjustments:void 0,behavior:"auto"}),this.scrollState=null;return}}else if(this.scrollState.stableFrames=0,n){let e=this.getSize()||600,n=Math.abs(t-this.getScrollOffset()),r="smooth"===this.scrollState.behavior&&n>e;this.scrollState.lastTargetOffset=t,r||(this.scrollState.behavior="auto"),this._scrollToOffset(t,{adjustments:void 0,behavior:r?"smooth":"auto"})}this.scheduleScrollReconcile()}}let E=(e,t,n,r)=>{for(;e<=t;){let i=(e+t)/2|0,s=n(i);if(s<r)e=i+1;else{if(!(s>r))return i;t=i-1}}return e>0?e-1:0},T="undefined"!=typeof document?i.useLayoutEffect:i.useEffect;function _(e){return function({useFlushSync:e=!0,directDomUpdates:t=!1,directDomUpdatesMode:n="transform",...r}){let a=i.useReducer(e=>e+1,0)[1],o=i.useRef({enabled:t,mode:n,container:null,lastSize:null,lastPositions:new WeakMap,prevRange:null});o.current.enabled=t,o.current.mode=n;let l=i.useRef(!1),u=e=>{let t=o.current;if(!t.enabled||!t.container)return;let n=e.getTotalSize();if(n!==t.lastSize){t.lastSize=n;let r=e.options.horizontal?"width":"height";t.container.style[r]=`${n}px`}},c=e=>{let t=o.current;if(!t.enabled||!t.container)return;u(e);let n=!!e.options.horizontal,r="transform"===t.mode,i=n?"left":"top",s=e.options.scrollMargin;for(let a of e.getVirtualItems()){let o=a.start-s,l=e.elementsCache.get(a.key);l&&t.lastPositions.get(l)!==o&&(t.lastPositions.set(l,o),r?l.style.transform=n?`translate3d(${o}px, 0, 0)`:`translate3d(0, ${o}px, 0)`:l.style[i]=`${o}px`)}},d={...r,onChange:(t,n)=>{var i;let u=o.current,d=!0;if(u.enabled){c(t);let e=t.range,n=u.prevRange;(d=!n||n.isScrolling!==t.isScrolling||n.startIndex!==(null==e?void 0:e.startIndex)||n.endIndex!==(null==e?void 0:e.endIndex))&&(u.prevRange=e?{startIndex:e.startIndex,endIndex:e.endIndex,isScrolling:t.isScrolling}:null)}d&&(e&&n&&!l.current?(0,s.flushSync)(a):a()),null==(i=r.onChange)||i.call(r,t,n)}},[h]=i.useState(()=>{let e=new b(d),t=e.measureElement;return e.measureElement=e=>{l.current=!0;try{t(e)}finally{l.current=!1}},Object.assign(e,{containerRef:t=>{let n=o.current;if(n.container=t,n.lastSize=null,t&&n.enabled){let r=e.getTotalSize();n.lastSize=r;let i=e.options.horizontal?"width":"height";t.style[i]=`${r}px`}}})});return h.setOptions(d),T(()=>h._didMount(),[]),T(()=>(u(h),h._willUpdate())),T(()=>{c(h)}),h}({observeElementRect:p,observeElementOffset:g,scrollToFn:v,...e})}},32156:(e,t,n)=>{var r,i;n.d(t,{CR:()=>a,ZS:()=>r,Zp:()=>s}),function(e){e.assertEqual=e=>{},e.assertIs=function(e){},e.assertNever=function(e){throw Error()},e.arrayToEnum=e=>{let t={};for(let n of e)t[n]=n;return t},e.getValidEnumValues=t=>{let n=e.objectKeys(t).filter(e=>
37"number"!=typeof t[t[e]]),r={};for(let e of n)r[e]=t[e];return e.objectValues(r)},e.objectValues=t=>e.objectKeys(t).map(function(e){return t[e]}),e.objectKeys="function"==typeof Object.keys?e=>Object.keys(e):e=>{let t=[];for(let n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.push(n);return t},e.find=(e,t)=>{for(let n of e)if(t(n))return n},e.isInteger="function"==typeof Number.isInteger?e=>Number.isInteger(e):e=>"number"==typeof e&&Number.isFinite(e)&&Math.floor(e)===e,e.joinValues=function(e,t=" | "){return e.map(e=>"string"==typeof e?`'${e}'`:e).join(t)},e.jsonStringifyReplacer=(e,t)=>"bigint"==typeof t?t.toString():t}(r||(r={})),(i||(i={})).mergeShapes=(e,t)=>({...e,...t});let s=r.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),a=e=>{switch(typeof e){case"undefined":return s.undefined;case"string":return s.string;case"number":return Number.isNaN(e)?s.nan:s.number;case"boolean":return s.boolean;case"function":return s.function;case"bigint":return s.bigint;case"symbol":return s.symbol;case"object":if(Array.isArray(e))return s.array;if(null===e)return s.null;if(e.then&&"function"==typeof e.then&&e.catch&&"function"==typeof e.catch)return s.promise;if("undefined"!=typeof Map&&e instanceof Map)return s.map;if("undefined"!=typeof Set&&e instanceof Set)return s.set;if("undefined"!=typeof Date&&e instanceof Date)return s.date;return s.object;default:return s.unknown}}},32485:(e,t,n)=>{n.d(t,{Q:()=>r});let r=(0,n(23073).createContext)({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"})},32860:(e,t,n)=>{n.d(t,{q:()=>a});var r=n(82967),i=n(83230),s=function(){function e(t,n){void 0===n&&(n=e.now),this.schedulerActionCtor=t,this.now=n}return e.prototype.schedule=function(e,t,n){return void 0===t&&(t=0),new this.schedulerActionCtor(this,e).schedule(n,t)},e.now=i.U.now,e}(),a=function(e){function t(t,n){void 0===n&&(n=s.now);var r=e.call(this,t,n)||this;return r.actions=[],r._active=!1,r}return(0,r.C6)(t,e),t.prototype.flush=function(e){var t,n=this.actions;if(this._active)return void n.push(e);this._active=!0;do if(t=e.execute(e.state,e.delay))break;while(e=n.shift());if(this._active=!1,t){for(;e=n.shift();)e.unsubscribe();throw t}},t}(s)},33097:(e,t,n)=>{n.d(t,{R0:()=>l,lI:()=>o,ms:()=>a});var r=n(99244),i=n(62521);function s(e){return e[e.length-1]}function a(e){return(0,r.T)(s(e))?e.pop():void 0}function o(e){return(0,i.m)(s(e))?e.pop():void 0}function l(e,t){return"number"==typeof s(e)?e.pop():t}},33276:(e,t,n)=>{n.d(t,{A:()=>r});let r=(0,n(45751).A)("loader-circle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]])},33795:(e,t,n)=>{n.d(t,{A:()=>r});let r=(0,n(45751).A)("wrench",[["path",{d:"M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.77-3.77a6 6 0 0 1-7.94 7.94l-6.91 6.91a2.12 2.12 0 0 1-3-3l6.91-6.91a6 6 0 0 1 7.94-7.94l-3.76 3.76z",key:"cbrjhi"}]])},33828:(e,t,n)=>{let r;n.d(t,{A:()=>o});let i={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)},s=new Uint8Array(16),a=[];for(let e=0;e<256;++e)a.push((e+256).toString(16).slice(1));let o=function(e,t,n){if(i.randomUUID&&!t&&!e)return i.randomUUID();let o=(e=e||{}).random??e.rng?.()??function(){if(!r){if("undefined"==typeof crypto||!crypto.getRandomValues)throw Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");r=crypto.getRandomValues.bind(crypto)}return r(s)}();if(o.length<16)throw Error("Random bytes length must be >= 16");if(o[6]=15&o[6]|64,o[8]=63&o[8]|128,t){if((n=n||0)<0||n+16>t.length)throw RangeError(`UUID byte range ${n}:${n+15} is out of buffer bounds`);for(let e=0;e<16;++e)t[n+e]=o[e];return t}return function(e,t=0){return(a[e[t+0]]+a[e[t+1]]+a[e[t+2]]+a[e[t+3]]+"-"+a[e[t+4]]+a[e[t+5]]+"-"+a[e[t+6]]+a[e[t+7]]+"-"+a[e[t+8]]+a[e[t+9]]+"-"+a[e[t+10]]+a[e[t+11]]+a[e[t+12]]+a[e[t+13]]+a[e[t+14]]+a[e[t+15]]).toLowerCase()}(o)}},33876:(e,t,n)=>{n.d(t,{m:()=>i});let r=/[ \t\n\f\r]/g;function i(e){return"object"==typeof e?"text"===e.type&&s(e.value):s(e)}function s(e){return""===e.replace(r,"")}},33966:(e,t)=>
37{Object.defineProperty(t,"__esModule",{value:!0}),t.Allow=t.ALL=t.COLLECTION=t.ATOM=t.SPECIAL=t.INF=t._INFINITY=t.INFINITY=t.NAN=t.BOOL=t.NULL=t.OBJ=t.ARR=t.NUM=t.STR=void 0,t.STR=1,t.NUM=2,t.ARR=4,t.OBJ=8,t.NULL=16,t.BOOL=32,t.NAN=64,t.INFINITY=128,t._INFINITY=256,t.INF=t.INFINITY|t._INFINITY,t.SPECIAL=t.NULL|t.BOOL|t.INF|t.NAN,t.ATOM=t.STR|t.NUM|t.SPECIAL,t.COLLECTION=t.ARR|t.OBJ,t.ALL=t.ATOM|t.COLLECTION,t.Allow={STR:t.STR,NUM:t.NUM,ARR:t.ARR,OBJ:t.OBJ,NULL:t.NULL,BOOL:t.BOOL,NAN:t.NAN,INFINITY:t.INFINITY,_INFINITY:t._INFINITY,INF:t.INF,SPECIAL:t.SPECIAL,ATOM:t.ATOM,COLLECTION:t.COLLECTION,ALL:t.ALL},t.default=t.Allow},34401:(e,t,n)=>{n.d(t,{N:()=>i});var r=n(99244);function i(e){return function(t){if((0,r.T)(null==t?void 0:t.lift))return t.lift(function(t){try{return e(t,this)}catch(e){this.error(e)}});throw TypeError("Unable to lift unknown Observable type")}}},36009:(e,t,n)=>{n.d(t,{n:()=>r,t:()=>i});let r=function(e){return e.TEXT_MESSAGE_START="TEXT_MESSAGE_START",e.TEXT_MESSAGE_CONTENT="TEXT_MESSAGE_CONTENT",e.TEXT_MESSAGE_END="TEXT_MESSAGE_END",e.TEXT_MESSAGE_CHUNK="TEXT_MESSAGE_CHUNK",e.TOOL_CALL_START="TOOL_CALL_START",e.TOOL_CALL_ARGS="TOOL_CALL_ARGS",e.TOOL_CALL_END="TOOL_CALL_END",e.TOOL_CALL_CHUNK="TOOL_CALL_CHUNK",e.TOOL_CALL_RESULT="TOOL_CALL_RESULT",e.STATE_SNAPSHOT="STATE_
37SNAPSHOT",e.STATE_DELTA="STATE_DELTA",e.MESSAGES_SNAPSHOT="MESSAGES_SNAPSHOT",e.ACTIVITY_SNAPSHOT="ACTIVITY_SNAPSHOT",e.ACTIVITY_DELTA="ACTIVITY_DELTA",e.RAW="RAW",e.CUSTOM="CUSTOM",e.RUN_STARTED="RUN_STARTED",e.RUN_FINISHED="RUN_FINISHED",e.RUN_ERROR="RUN_ERROR",e.STEP_STARTED="STEP_STARTED",e.STEP_FINISHED="STEP_FINISHED",e.REASONING_START="REASONING_START",e.REASONING_MESSAGE_START="REASONING_MESSAGE_START",e.REASONING_MESSAGE_CONTENT="REASONING_MESSAGE_CONTENT",e.REASONING_MESSAGE_END="REASONING_MESSAGE_END",e.REASONING_MESSAGE_CHUNK="REASONING_MESSAGE_CHUNK",e.REASONING_END="REASONING_END",e.REASONING_ENCRYPTED_VALUE="REASONING_ENCRYPTED_VALUE",e.SUBAGENT_STARTED="SUBAGENT_STARTED",e.SUBAGENT_FINISHED="SUBAGENT_FINISHED",e.SUBAGENT_ERROR="SUBAGENT_ERROR",e}({}),i="1.0"},36093:(e,t,n)=>{n.d(t,{$:()=>s});var r=n(65174),i=n(99244);function s(e,t){var n=(0,i.T)(e)?e:function(){return e},s=function(e){return e.error(n())};return new r.c(t?function(e){return t.schedule(s,0,e)}:s)}},36153:(e,t,n)=>{n.d(t,{$:()=>u});var r=n(82967),i=n(34401),s=n(49564),a=n(33097),o=n(22338);function l(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=(0,a.lI)(e);return(0,i.N)(function(t,i){(0,s.K)()((0,o.H)((0,r.fX)([t],(0,r.zs)(e)),n)).subscribe(i)})}function u(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return l.apply(void 0,(0,r.fX)([],(0,r.zs)(e)))}},36183:(e,t,n)=>{n.d(t,{jH:()=>r.i});var r=n(72362)},36740:(e,t,n)=>{n.d(t,{A:()=>r});let r=(0,n(45751).A)("chevron-down",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]])},37965:(e,t,n)=>{n.d(t,{Q:()=>P});var r=/^\[(.+)\]$/;function i(e,t){var n=e;return t.split("-").forEach(function(e){n.nextPart.has(e)||n.nextPart.set(e,{nextPart:new Map,validators:[]}),n=n.nextPart.get(e)}),n}var s=/\s+/;function a(){for(var e,t,n=0,r="";n<arguments.length;)(e=arguments[n++])&&(t=function e(t){if("string"==typeof t)return t;for(var n,r="",i=0;i<t.length;i++)t[i]&&(n=e(t[i]))&&(r&&(r+=" "),r+=n);return r}(e))&&(r&&(r+=" "),r+=t);return r}function o(e){var t=function(t){return t[e]||[]};return t.isThemeGetter=!0,t}var l=/^\[(?:([a-z-]+):)?(.+)\]$/i,u=/^\d+\/\d+$/,c=new Set(["px","full","screen"]),d=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,h=/\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$/,p=/^-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/;function f(e){return E(e)||c.has(e)||u.test(e)||m(e)}function m(e){return w(e,"length",I)}function g(e){return w(e,"size",C)}function y(e){return w(e,"position",C)}function v(e){return w(e,"url",N)}function b(e){return w(e,"number",E)}function E(e){return!Number.isNaN(Number(e))}function T(e){return e.endsWith("%")&&E(e.slice(0,-1))}function _(e){return R(e)||w(e,"number",R)}function A(e){return l.test(e)}function x(){return!0}function k(e){return d.test(e)}function S(e){return w(e,"",O)}function w(e,t,n){var r=l.exec(e);return!!r&&(r[1]?r[1]===t:n(r[2]))}function I(e){return h.test(e)}function C(){return!1}function N(e){return e.startsWith("url(")}function R(e){return Number.isInteger(Number(e))}function O(e){return p.test(e)}var P=function(){for(var e,t,n,o=arguments.length,l=Array(o),u=0;u<o;u++)l[u]=arguments[u];var c=function(s){var a=l[0];return t=(e=function(e){var t,n,s,a,o,l,u,c,d,h,p,f,m,g;return{cache:function(e){if(e<1)return{get:function(){},set:function(){}};var t=0,n=new Map,r=new Map;function i(i,s){n.set(i,s),++t>e&&(t=0,r=n,n=new Map)}return{get:function(e){var t=n.get(e);return void 0!==t?t:void 0!==(t=r.get(e))?(i(e,t),t):void 0},set:function(e,t){n.has(e)?n.set(e,t):i(e,t)}}}(e.cacheSize),splitModifiers:(n=1===(t=e.separator||":").length,s=t[0],a=t.length,function(e){for(var r,i=[],o=0,l=0,u=0;u<e.length;u++){var c=e[u];if(0===o){if(c===s&&(n||e.slice(u,u+a)===t)){i.push(e.slice(l,u)),l=u+a;continue}if("/"===c){r=u;continue}}"["===c?o++:"]"===c&&o--}var d=0===i.length?e:e.substring(l),h=d.startsWith("!"),p=h?d.substring(1):d;return{modifiers:i,hasImportantModifier:h,baseClassName:p,maybePostfixModifierPosition:r&&r>l?r-l:void 0}}),...(h=(d=e).theme,p=d.prefix,f={nextPart:new Map,validators:[]},(m=Object.entries(d.classGroups),(g=p)?m.map(function(e){return[e[0],e[1].map(function(e){return"string"==typeof e?g+e:"object"==typeof e?Object.fromEntries(Object.entries(e).map(function(e){return[g+e[0],e[1]]})):e})]}):m).forEach(function(e){var t=e[0];!function e(t,n,r,s){t.forEach(function(t){if("string"==typeof t){(""===t?n:i(n,t)).classGroupId=r;return}if("function"==typeof t)return t.isThemeGetter?void e(t(s),n,r,s):void n.validators.push({validator:t,classGroupId:r});Object.entries(t).forEach(function(t){var a=t[0];e(t[1],i(n,a),r,s)})})}(e[1],f,t,h)}),o=f,l=e.conflictingClassGroups,c=void 0===(u=e.conflictingClassGroupModifiers)?{}:u,{getClassGroupId:function(e){var t=e.split("-");return""===t[0]&&1!==t.length&&t.shift(),function e(t,n){if(0===t.length)return n.classGroupId;var r=t[0],i=n.nextPart.get(r),s=i?e(t.slice(1),i):void 0;if(s)return s;if(0!==n.validators.length){var a=t.join("-");return n.validators.find(function(e){return(0,e.validator)(a)})?.classGroupId}}(t,o)||function(e){if(r.test(e)){var t=r.exec(e)[1],n=t?.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}}(e)},getConflictingClassGroupIds:function(e,t){var n=l[e]||[];return t&&c[e]?[].concat(n,c[e]):n}})}}(l.slice(1).reduce(function(e,t){return t(e)},a()))).cache.get,n=e.cache.set,c=d,d(s)};function d(r){var i,a,o,l,u,c=t(r);if(c)return c;var d=(a=(i=e).splitModifiers,o=i.getClassGroupId,l=i.getConflictingClassGroupIds,u=new Set,r.trim().split(s).map(function(e){var t=a(e),n=t.modifiers,r
37=t.hasImportantModifier,i=t.baseClassName,s=t.maybePostfixModifierPosition,l=o(s?i.substring(0,s):i),u=!!s;if(!l){if(!s||!(l=o(i)))return{isTailwindClass:!1,originalClassName:e};u=!1}var c=(function(e){if(e.length<=1)return e;var t=[],n=[];return e.forEach(function(e){"["===e[0]?(t.push.apply(t,n.sort().concat([e])),n=[]):n.push(e)}),t.push.apply(t,n.sort()),t})(n).join(":");return{isTailwindClass:!0,modifierId:r?c+"!":c,classGroupId:l,originalClassName:e,hasPostfixModifier:u}}).reverse().filter(function(e){if(!e.isTailwindClass)return!0;var t=e.modifierId,n=e.classGroupId,r=e.hasPostfixModifier,i=t+n;return!u.has(i)&&(u.add(i),l(n,r).forEach(function(e){return u.add(t+e)}),!0)}).reverse().map(function(e){return e.originalClassName}).join(" "));return n(r,d),d}return function(){return c(a.apply(null,arguments))}}(function(){var e=o("colors"),t=o("spacing"),n=o("blur"),r=o("brightness"),i=o("borderColor"),s=o("borderRadius"),a=o("borderSpacing"),l=o("borderWidth"),u=o("contrast"),c=o("grayscale"),d=o("hueRotate"),h=o("invert"),p=o("gap"),w=o("gradientColorStops"),I=o("gradientColorStopPositions"),C=o("inset"),N=o("margin"),R=o("opacity"),O=o("padding"),P=o("saturate"),D=o("scale"),M=o("sepia"),L=o("skew"),j=o("space"),z=o("translate"),F=function(){return["auto","contain","none"]},B=function(){return["auto","hidden","clip","visible","scroll"]},$=function(){return["auto",A,t]},U=function(){return[A,t]},H=function(){return["",f]},G=function(){return["auto",E,A]},Y=function(){return["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"]},Z=function(){return["solid","dashed","dotted","double","none"]},V=function(){return["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity","plus-lighter"]},W=function(){return["start","end","center","between","around","evenly","stretch"]},q=function(){return["","0",A]},K=function(){return["auto","avoid","all","avoid-page","page","left","right","column"]},X=function(){return[E,b]},Q=function(){return[E,A]};return{cacheSize:500,theme:{colors:[x],spacing:[f],blur:["none","",k,A],brightness:X(),borderColor:[e],borderRadius:["none","","full",k,A],borderSpacing:U(),borderWidth:H(),contrast:X(),grayscale:q(),hueRotate:Q(),invert:q(),gap:U(),gradientColorStops:[e],gradientColorStopPositions:[T,m],inset:$(),margin:$(),opacity:X(),padding:U(),saturate:X(),scale:X(),sepia:q(),skew:Q(),space:U(),translate:U()},classGroups:{aspect:[{aspect:["auto","square","video",A]}],container:["container"],columns:[{columns:[k]}],"break-after":[{"break-after":K()}],"break-before":[{"break-before":K()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none"]}],clear:[{clear:["left","right","both","none"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[].concat(Y(),[A])}],overflow:[{overflow:B()}],"overflow-x":[{"overflow-x":B()}],"overflow-y":[{"overflow-y":B()}],overscroll:[{overscroll:F()}],"overscroll-x":[{"overscroll-x":F()}],"overscroll-y":[{"overscroll-y":F()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[C]}],"inset-x":[{"inset-x":[C]}],"inset-y":[{"inset-y":[C]}],start:[{start:[C]}],end:[{end:[C]}],top:[{top:[C]}],right:[{right:[C]}],bottom:[{bottom:[C]}],left:[{left:[C]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",_]}],basis:[{basis:$()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",A]}],grow:[{grow:q()}],shrink:[{shrink:q()}],order:[{order:["first","last","none",_]}],"grid-cols":[{"grid-cols":[x]}],"col-start-end":[{col:["auto",{span:["full",_]},A]}],"col-start":[{"col-start":G()}
vendor: 4,942 bytes, line 37
37],"col-end":[{"col-end":G()}],"grid-rows":[{"grid-rows":[x]}],"row-start-end":[{row:["auto",{span:[_]},A]}],"row-start":[{"row-start":G()}],"row-end":[{"row-end":G()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",A]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",A]}],gap:[{gap:[p]}],"gap-x":[{"gap-x":[p]}],"gap-y":[{"gap-y":[p]}],"justify-content":[{justify:["normal"].concat(W())}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal"].concat(W(),["baseline"])}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[].concat(W(),["baseline"])}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[O]}],px:[{px:[O]}],py:[{py:[O]}],ps:[{ps:[O]}],pe:[{pe:[O]}],pt:[{pt:[O]}],pr:[{pr:[O]}],pb:[{pb:[O]}],pl:[{pl:[O]}],m:[{m:[N]}],mx:[{mx:[N]}],my:[{my:[N]}],ms:[{ms:[N]}],me:[{me:[N]}],mt:[{mt:[N]}],mr:[{mr:[N]}],mb:[{mb:[N]}],ml:[{ml:[N]}],"space-x":[{"space-x":[j]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[j]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit",A,t]}],"min-w":[{"min-w":["min","max","fit",A,f]}],"max-w":[{"max-w":["0","none","full","min","max","fit","prose",{screen:[k]},k,A]}],h:[{h:[A,t,"auto","min","max","fit"]}],"min-h":[{"min-h":["min","max","fit",A,f]}],"max-h":[{"max-h":[A,t,"min","max","fit"]}],"font-size":[{text:["base",k,m]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",b]}],"font-family":[{font:[x]}],"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-fractons"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",A]}],"line-clamp":[{"line-clamp":["none",E,b]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",A,f]}],"list-image":[{"list-image":["none",A]}],"list-style-type":[{list:["none","disc","decimal",A]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[R]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[R]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[].concat(Z(),["wavy"])}],"text-decoration-thickness":[{decoration:["auto","from-font",f]}],"underline-offset":[{"underline-offset":["auto",A,f]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],indent:[{indent:U()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",A]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",A]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[R]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[].concat(Y(),[y])}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",g]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},v]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[I]}],"gradient-via-pos":[{via:[I]}],"gradient-to-pos":[{to:[I]}],"gradient-from":[{from:[w]}],"gradient-via":[{via:[w]}],"gradient-to":[{to:[w]}],rounded:[{rounded:[s]}],"rounded-s":[{"rounded-s":[s]}],"rounded-e":[{"rounded-e":[s]}],"rounded-t":[{"rounded-t":[s]}],"rounded-r":[{"rounded-r":[s]}],"rounded-b":[{"rounded-b":[s]}],"rounded-l":[{"rounded-l":[s]}],"rounded-ss":[{"rounded-ss":[s]}],"rounded-se":[{"rounded-se":[s]}],"rounded-ee":[{"rounded-ee":[s]}],"rounded-es":[{"rounded-es":[s]}],"rounded-tl":[{"rounded-tl":[s]}],"rounded-tr":[{"rounded-tr":[s]}],"rounded-br":[{"rounded-br":[s]}],"rounded-bl":[{"rounded-bl":[s]}],"border-w":[{border:[l]}],"border-w-x":[{"border-x":[l]}],"border-w-y":[{"border-y":[l]}],"border-w-s":[{"border-s":[l]}],"border-w-e":[{"border-e":[l]}],"border-w-t":[{"border-t":[l]}],"border-w-r":[{"border-r":[l]}],"border-w-b":[{"border-b":[l]}
vendor: 4,175 bytes, line 37
37],"border-w-l":[{"border-l":[l]}],"border-opacity":[{"border-opacity":[R]}],"border-style":[{border:[].concat(Z(),["hidden"])}],"divide-x":[{"divide-x":[l]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[l]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[R]}],"divide-style":[{divide:Z()}],"border-color":[{border:[i]}],"border-color-x":[{"border-x":[i]}],"border-color-y":[{"border-y":[i]}],"border-color-t":[{"border-t":[i]}],"border-color-r":[{"border-r":[i]}],"border-color-b":[{"border-b":[i]}],"border-color-l":[{"border-l":[i]}],"divide-color":[{divide:[i]}],"outline-style":[{outline:[""].concat(Z())}],"outline-offset":[{"outline-offset":[A,f]}],"outline-w":[{outline:[f]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:H()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[R]}],"ring-offset-w":[{"ring-offset":[f]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",k,S]}],"shadow-color":[{shadow:[x]}],opacity:[{opacity:[R]}],"mix-blend":[{"mix-blend":V()}],"bg-blend":[{"bg-blend":V()}],filter:[{filter:["","none"]}],blur:[{blur:[n]}],brightness:[{brightness:[r]}],contrast:[{contrast:[u]}],"drop-shadow":[{"drop-shadow":["","none",k,A]}],grayscale:[{grayscale:[c]}],"hue-rotate":[{"hue-rotate":[d]}],invert:[{invert:[h]}],saturate:[{saturate:[P]}],sepia:[{sepia:[M]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[n]}],"backdrop-brightness":[{"backdrop-brightness":[r]}],"backdrop-contrast":[{"backdrop-contrast":[u]}],"backdrop-grayscale":[{"backdrop-grayscale":[c]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[d]}],"backdrop-invert":[{"backdrop-invert":[h]}],"backdrop-opacity":[{"backdrop-opacity":[R]}],"backdrop-saturate":[{"backdrop-saturate":[P]}],"backdrop-sepia":[{"backdrop-sepia":[M]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[a]}],"border-spacing-x":[{"border-spacing-x":[a]}],"border-spacing-y":[{"border-spacing-y":[a]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",A]}],duration:[{duration:Q()}],ease:[{ease:["linear","in","out","in-out",A]}],delay:[{delay:Q()}],animate:[{animate:["none","spin","ping","pulse","bounce",A]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[D]}],"scale-x":[{"scale-x":[D]}],"scale-y":[{"scale-y":[D]}],rotate:[{rotate:[_,A]}],"translate-x":[{"translate-x":[z]}],"translate-y":[{"translate-y":[z]}],"skew-x":[{"skew-x":[L]}],"skew-y":[{"skew-y":[L]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",A]}],accent:[{accent:["auto",e]}],appearance:["appearance-none"],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",A]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":U()}],"scroll-mx":[{"scroll-mx":U()}],"scroll-my":[{"scroll-my":U()}],"scroll-ms":[{"scroll-ms":U()}],"scroll-me":[{"scroll-me":U()}],"scroll-mt":[{"scroll-mt":U()}],"scroll-mr":[{"scroll-mr":U()}],"scroll-mb":[{"scroll-mb":U()}],"scroll-ml":[{"scroll-ml":U()}],"scroll-p":[{"scroll-p":U()}],"scroll-px":[{"scroll-px":U()}],"scroll-py":[{"scroll-py":U()}],"scroll-ps":[{"scroll-ps":U()}],"scroll-pe":[{"scroll-pe":U()}],"scroll-pt":[{"scroll-pt":U()}],"scroll-pr":[{"scroll-pr":U()}],"scroll-pb":[{"scroll-pb":U()}],"scroll-pl":[{"scroll-pl":U()}],"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"]}
37],touch:[{touch:["auto","none","pinch-zoom","manipulation",{pan:["x","left","right","y","up","down"]}]}],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",A]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[f,b]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"]},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"],"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"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}})},38099:(e,t,n)=>{n.d(t,{p:()=>s});var r=n(34401),i=n(28963);function s(e,t){return(0,r.N)(function(n,r){var s=0;n.subscribe((0,i._)(r,function(n){return e.call(t,n,s++)&&r.next(n)}))})}},38207:(e,t,n)=>{n.r(t),n.d(t,{boolean:()=>i,booleanish:()=>s,commaOrSpaceSeparated:()=>c,commaSeparated:()=>u,number:()=>o,overloadedBoolean:()=>a,spaceSeparated:()=>l});let r=0,i=d(),s=d(),a=d(),o=d(),l=d(),u=d(),c=d();function d(){return 2**++r}},39024:(e,t,n)=>{n.d(t,{Eg:()=>l,gV:()=>u});var r,i=n(24216),s=n(71766),a=n(36093),o=n(99244);!function(e){e.NEXT="N",e.ERROR="E",e.COMPLETE="C"}(r||(r={}));var l=function(){function e(e,t,n){this.kind=e,this.value=t,this.error=n,this.hasValue="N"===e}return e.prototype.observe=function(e){return u(this,e)},e.prototype.do=function(e,t,n){var r=this.kind,i=this.value,s=this.error;return"N"===r?null==e?void 0:e(i):"E"===r?null==t?void 0:t(s):null==n?void 0:n()},e.prototype.accept=function(e,t,n){return(0,o.T)(null==e?void 0:e.next)?this.observe(e):this.do(e,t,n)},e.prototype.toObservable=function(){var e=this.kind,t=this.value,n=this.error,r="N"===e?(0,s.of)(t):"E"===e?(0,a.$)(function(){return n}):"C"===e?i.w:0;if(!r)throw TypeError("Unexpected notification kind "+e);return r},e.createNext=function(t){return new e("N",t)},e.createError=function(t){return new e("E",void 0,t)},e.createComplete=function(){return e.completeNotification},e.completeNotification=new e("C"),e}();function u(e,t){var n,r,i,s=e.kind,a=e.value,o=e.error;if("string"!=typeof s)throw TypeError('Invalid notification, missing "kind"');"N"===s?null==(n=t.next)||n.call(t,a):"E"===s?null==(r=t.error)||r.call(t,o):null==(i=t.complete)||i.call(t)}},39073:(e,t,n)=>{n.d(t,{A:()=>r});let r=(0,n(45751).A)("mic",[["path",{d:"M12 19v3",key:"npa21l"}],["path",{d:"M19 10v2a7 7 0 0 1-14 0v-2",key:"1vc78b"}],["rect",{x:"9",y:"2",width:"6",height:"13",rx:"3",key:"s6n7sd"}]])},39932:(e,t,n)=>
37{Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return a}});let r=n(23073),i=r.useLayoutEffect,s=r.useEffect;function a(e){let{headManager:t,reduceComponentsToState:n}=e;function a(){if(t&&t.mountedInstances){let i=r.Children.toArray(Array.from(t.mountedInstances).filter(Boolean));t.updateHead(n(i,e))}}return i(()=>{var n;return null==t||null==(n=t.mountedInstances)||n.add(e.children),()=>{var n;null==t||null==(n=t.mountedInstances)||n.delete(e.children)}}),i(()=>(t&&(t._pendingUpdate=a),()=>{t&&(t._pendingUpdate=a)})),s(()=>(t&&t._pendingUpdate&&(t._pendingUpdate(),t._pendingUpdate=null),()=>{t&&t._pendingUpdate&&(t._pendingUpdate(),t._pendingUpdate=null)})),null}},40912:(e,t,n)=>{n.d(t,{A:()=>r});let r=(0,n(45751).A)("message-circle",[["path",{d:"M7.9 20A9 9 0 1 0 4 16.1L2 22Z",key:"vv11sd"}]])},41245:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"ImageConfigContext",{enumerable:!0,get:function(){return s}});let r=n(59224)._(n(23073)),i=n(80527),s=r.default.createContext(i.imageConfigDefault)},41614:(e,t,n)=>{n.d(t,{l:()=>r});var r="function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"},42255:(e,t,n)=>{n.d(t,{E:()=>i});var r=n(23073);let i=n(78179).B?r.useLayoutEffect:r.useEffect},42323:(e,t,n)=>{n.d(t,{J:()=>r});class r{constructor(e=[]){this.content=[],this.indent=0,this&&(this.args=e)}indented(e){this.indent+=1,e(this),this.indent-=1}write(e){if("function"==typeof e){e(this,{execution:"sync"}),e(this,{execution:"async"});return}let t=e.split("\n").filter(e=>e),n=Math.min(...t.map(e=>e.length-e.trimStart().length));for(let e of t.map(e=>e.slice(n)).map(e=>" ".repeat(2*this.indent)+e))this.content.push(e)}compile(){return Function(...this?.args,[...(this?.content??[""]).map(e=>` ${e}`)].join("\n"))}}},42743:(e,t,n)=>{n.d(t,{z:()=>o});var r=n(64910),i=n(11663),s=n(61641);class a{constructor(e,t){this.surface=e,this.path=t,this.dataModel=e.dataModel,this.functionInvoker=e.catalog.invoker}set(e,t){let n=this.resolvePath(e);this.dataModel.set(n,t)}resolveDynamicValue(e){if(null===e||"object"!=typeof e||Array.isArray(e))return e;if("path"in e){let t=this.resolvePath(e.path);return this.dataModel.get(t)}if("call"in e){let t={};for(let[n,r]of Object.entries(e.args))t[n]=this.resolveDynamicValue(r);let n=new AbortController,i=this.evaluateFunctionReactive(e.call,t,n.signal);if(void 0===i)return;return(0,r.Hp)(i)?(0,r.bQ)(i):i}return e}subscribeDynamicValue(e,t){let n=this.resolveSignal(e),i=!0,s=(0,r.bQ)(n),a=(0,r.QZ)(()=>{let e=(0,r._W)(n);s=e,i||t(e)});return i=!1,{get value(){return s},unsubscribe:()=>{a(),n.unsubscribe?.()}}}resolveSignal(e){if("object"!=typeof e||null===e||Array.isArray(e))return(0,r.vP)(e);if("path"in e){let t=this.resolvePath(e.path);return this.dataModel.getSignal(t)}if("call"in e){let t,n,i={};for(let[t,n]of Object.entries(e.args))i[t]=this.resolveSignal(n);if(0===Object.keys(i).length){let t=new AbortController,n=this.evaluateFunctionReactive(e.call,{},t.signal),i=(0,r.Hp)(n)?n:(0,r.vP)(n);return i.unsubscribe=()=>t.abort(),i}let s=Object.keys(i),a=(0,r.vP)(void 0),o=(0,r.EW)(()=>{let e={};for(let t=0;t<s.length;t++)e[s[t]]=(0,r._W)(i[s[t]]);return e}),l=(0,r.QZ)(()=>{try{let i=(0,r._W)(o);t&&t.abort(),n&&(n(),n=void 0),t=new AbortController;let s=this.evaluateFunctionReactive(e.call,i,t.signal);(0,r.Hp)(s)?n=(0,r.QZ)(()=>{(0,r.KY)(a,(0,r._W)(s))}):(0,r.KY)(a,s)}catch(t){this.dispatchExpressionError(t,e.call),(0,r.KY)(a,void 0)}});return a.unsubscribe=()=>{l(),n&&n(),t&&t.abort();for(let e=0;e<s.length;e++)i[s[e]].unsubscribe?.()},a}return(0,r.vP)(e)}resolveAction(e){if("event"in e){let t={};if(e.event.context)for(let[n,r]of Object.entries(e.event.context))t[n]=this.resolveDynamicValue(r);return{event:{...e.event,context:t}}}return"functionCall"in e?this.resolveDynamicValue(e.functionCall):e}evaluateFunctionReactive(e,t,n){try{return this.functionInvoker(e,t,this,n)}catch(t){this.dispatchExpressionError(t,e);return}}dispatchExpressionError(e,t){if(e?.name==="ZodError"||e instanceof i.G){let n=new s.Oi(`Validation failed for function '${t}': ${e.message}`,t,e.errors??e.issues);this.surface.dispatchError({code:"EXPRESSION_ERROR",message:n.message,expression:t,details:n.details})}else e instanceof s.Oi?this.surface.dispatchError({code:"EXPRESSION_ERROR",message:e.message,expression:e.expression,details:e.details}):this.surface.dispatchError({code:"EXPRESSION_ERROR",message:e.message??`An unexpected error occurred in function ${t}.`,expression:t,details:{stack:e.stack}})}nested(e){let t=this.resolvePath(e);return new a(this.surface,t)}resolvePath(e){if(e.startsWith("/"))return e;if(""===e||"."===e)return this.path;let t=this.path;return t.endsWith("/")&&t.length>
371&&(t=t.slice(0,-1)),"/"===t&&(t=""),`${t}/${e}`}}class o{constructor(e,t,n="/"){let r=e.componentsModel.get(t);if(!r)throw new s.L$(`Component not found: ${t}`);this.componentModel=r,this.surfaceComponents=e.componentsModel,this.theme=e.theme,this.dataContext=new a(e,n),this._actionDispatcher=t=>e.dispatchAction(t,this.componentModel.id)}dispatchAction(e){return this._actionDispatcher(e)}}},43366:(e,t,n)=>{n.d(t,{r:()=>r});let r={major:4,minor:0,patch:0}},43801:(e,t,n)=>{n.d(t,{m:()=>s});var r=n(83109),i=n(59197);function s(e){i.f.setTimeout(function(){var t=r.$.onUnhandledError;if(t)t(e);else throw e})}},43957:(e,t,n)=>{n.d(t,{A:()=>r});let r=(0,n(45751).A)("panel-left-open",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 3v18",key:"fh3hqa"}],["path",{d:"m14 9 3 3-3 3",key:"8010ee"}]])},44560:(e,t,n)=>{function r(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(e?.(r),!1===n||!r.defaultPrevented)return t?.(r)}}n.d(t,{mK:()=>r}),"undefined"!=typeof window&&window.document&&window.document.createElement},44567:(e,t,n)=>{n.d(t,{Dc:()=>l,TL:()=>a});var r=n(23073),i=n(61051),s=n(805);function a(e){let t=function(e){let t=r.forwardRef((e,t)=>{let{children:n,...s}=e;if(r.isValidElement(n)){var a;let e,o,l=(a=n,(o=(e=Object.getOwnPropertyDescriptor(a.props,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning)?a.ref:(o=(e=Object.getOwnPropertyDescriptor(a,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning)?a.props.ref:a.props.ref||a.ref),u=function(e,t){let n={...t};for(let r in t){let i=e[r],s=t[r];/^on[A-Z]/.test(r)?i&&s?n[r]=(...e)=>{let t=s(...e);return i(...e),t}:i&&(n[r]=i):"style"===r?n[r]={...i,...s}:"className"===r&&(n[r]=[i,s].filter(Boolean).join(" "))}return{...e,...n}}(s,n.props);return n.type!==r.Fragment&&(u.ref=t?(0,i.t)(t,l):l),r.cloneElement(n,u)}return r.Children.count(n)>1?r.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}(e),n=r.forwardRef((e,n)=>{let{children:i,...a}=e,o=r.Children.toArray(i),l=o.find(u);if(l){let e=l.props.children,i=o.map(t=>t!==l?t:r.Children.count(e)>1?r.Children.only(null):r.isValidElement(e)?e.props.children:null);return(0,s.jsx)(t,{...a,ref:n,children:r.isValidElement(e)?r.cloneElement(e,void 0,i):null})}return(0,s.jsx)(t,{...a,ref:n,children:i})});return n.displayName=`${e}.Slot`,n}var o=Symbol("radix.slottable");function l(e){let t=({children:e})=>(0,s.jsx)(s.Fragment,{children:e});return t.displayName=`${e}.Slottable`,t.__radixId=o,t}function u(e){return r.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===o}},45727:(e,t,n)=>{n.d(t,{A:()=>i});let r={}.hasOwnProperty;function i(e,t){let n=t||{};function i(t,...n){let s=i.invalid,a=i.handlers;if(t&&r.call(t,e)){let n=String(t[e]);s=r.call(a,n)?a[n]:i.unknown}if(s)return s.call(this,t,...n)}return i.handlers=n.handlers||{},i.invalid=n.invalid,i.unknown=n.unknown,i}},45751:(e,t,n)=>{n.d(t,{A:()=>l});var r=n(23073);let i=e=>{let t=e.replace(/^([A-Z])|[\s-_]+(\w)/g,(e,t,n)=>n?n.toUpperCase():t.toLowerCase());return t.charAt(0).toUpperCase()+t.slice(1)},s=(...e)=>e.filter((e,t,n)=>!!e&&""!==e.trim()&&n.indexOf(e)===t).join(" ").trim();var a={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};let o=(0,r.forwardRef)(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:i,className:o="",children:l,iconNode:u,...c},d)=>(0,r.createElement)("svg",{ref:d,...a,width:t,height:t,stroke:e,strokeWidth:i?24*Number(n)/Number(t):n,className:s("lucide",o),...!l&&!(e=>{for(let t in e)if(t.startsWith("aria-")||"role"===t||"title"===t)return!0})(c)&&{"aria-hidden":"true"},...c},[...u.map(([e,t])=>(0,r.createElement)(e,t)),...Array.isArray(l)?l:[l]])),l=(e,t)=>
37{let n=(0,r.forwardRef)(({className:n,...a},l)=>(0,r.createElement)(o,{ref:l,iconNode:t,className:s(`lucide-${i(e).replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()}`,`lucide-${e}`,n),...a}));return n.displayName=i(e),n}},46492:(e,t,n)=>{n.d(t,{XX:()=>H,c0:()=>S,ge:()=>$,qy:()=>k,s6:()=>w});let r=globalThis,i=e=>e,s=r.trustedTypes,a=s?s.createPolicy("lit-html",{createHTML:e=>e}):void 0,o="$lit$",l=`lit$${Math.random().toFixed(9).slice(2)}$`,u="?"+l,c=`<${u}>`,d=document,h=()=>d.createComment(""),p=e=>null===e||"object"!=typeof e&&"function"!=typeof e,f=Array.isArray,m=e=>f(e)||"function"==typeof e?.[Symbol.iterator],g="[ \n\f\r]",y=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,v=/-->/g,b=/>/g,E=RegExp(`>|${g}(?:([^\\s"'>=/]+)(${g}*=${g}*(?:[^ 38\f\r"'\`<>=]|("|')|))|$)`,"g"),T=/'/g,_=/"/g,A=/^(?:script|style|textarea|title)$/i,x=e=>(t,...n)=>({_$litType$:e,strings:t,values:n}),k=x(1),S=(x(2),x(3),Symbol.for("lit-noChange")),w=Symbol.for("lit-nothing"),I=new WeakMap,C=d.createTreeWalker(d,129);function N(e,t){if(!f(e)||!e.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==a?a.createHTML(t):t}let R=(e,t)=>{let n=e.length-1,r=[],i,s=2===t?"<svg>":3===t?"<math>":"",a=y;for(let t=0;t<n;t++){let n=e[t],u,d,h=-1,p=0;for(;p<n.length&&(a.lastIndex=p,null!==(d=a.exec(n)));)p=a.lastIndex,a===y?"!--"===d[1]?a=v:void 0!==d[1]?a=b:void 0!==d[2]?(A.test(d[2])&&(i=RegExp("</"+d[2],"g")),a=E):void 0!==d[3]&&(a=E):a===E?">"===d[0]?(a=i??y,h=-1):void 0===d[1]?h=-2:(h=a.lastIndex-d[2].length,u=d[1],a=void 0===d[3]?E:'"'===d[3]?_:T):a===_||a===T?a=E:a===v||a===b?a=y:(a=E,i=void 0);let f=a===E&&e[t+1].startsWith("/>")?" ":"";s+=a===y?n+c:h>=0?(r.push(u),n.slice(0,h)+o+n.slice(h)+l+f):n+l+(-2===h?t:f)}return[N(e,s+(e[n]||"<?>")+(2===t?"</svg>":3===t?"</math>":"")),r]};class O{constructor({strings:e,_$litType$:t},n){let r;this.parts=[];let i=0,a=0,c=e.length-1,d=this.parts,[p,f]=R(e,t);if(this.el=O.createElement(p,n),C.currentNode=this.el.content,2===t||3===t){let e=this.el.content.firstChild;e.replaceWith(...e.childNodes)}for(;null!==(r=C.nextNode())&&d.length<c;){if(1===r.nodeType){if(r.hasAttributes())for(let e of r.getAttributeNames())if(e.endsWith(o)){let t=f[a++],n=r.getAttribute(e).split(l),s=/([.?@])?(.*)/.exec(t);d.push({type:1,index:i,name:s[2],strings:n,ctor:"."===s[1]?j:"?"===s[1]?z:"@"===s[1]?F:L}),r.removeAttribute(e)}else e.startsWith(l)&&(d.push({type:6,index:i}),r.removeAttribute(e));if(A.test(r.tagName)){let e=r.textContent.split(l),t=e.length-1;if(t>0){r.textContent=s?s.emptyScript:"";for(let n=0;n<t;n++)r.append(e[n],h()),C.nextNode(),d.push({type:2,index:++i});r.append(e[t],h())}}}else if(8===r.nodeType)if(r.data===u)d.push({type:2,index:i});else{let e=-1;for(;-1!==(e=r.data.indexOf(l,e+1));)d.push({type:7,index:i}),e+=l.length-1}i++}}static createElement(e,t){let n=d.createElement("template");return n.innerHTML=e,n}}function P(e,t,n=e,r){if(t===S)return t;let i=void 0!==r?n._$Co?.[r]:n._$Cl,s=p(t)?void 0:t._$litDirective$;return i?.constructor!==s&&(i?._$AO?.(!1),void 0===s?i=void 0:(i=new s(e))._$AT(e,n,r),void 0!==r?(n._$Co??=[])[r]=i:n._$Cl=i),void 0!==i&&(t=P(e,i._$AS(e,t.values),i,r)),t}class D{constructor(e,t){this._$AV=[],this._$AN=void 0,this._$AD=e,this._$AM=t}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(e){let{el:{content:t},parts:n}=this._$AD,r=(e?.creationScope??d).importNode(t,!0);C.currentNode=r;let i=C.nextNode(),s=0,a=0,o=n[0];for(;void 0!==o;){if(s===o.index){let t;2===o.type?t=new M(i,i.nextSibling,this,e):1===o.type?t=new o.ctor(i,o.name,o.strings,this,e):6===o.type&&(t=new B(i,this,e)),this._$AV.push(t),o=n[++a]}s!==o?.index&&(i=C.nextNode(),s++)}return C.currentNode=d,r}p(e){let t=0;for(let n of this._$AV)void 0!==n&&(void 0!==n.strings?(n._$AI(e,n,t),t+=n.strings.length-2):n._$AI(e[t])),t++}}class M{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(e,t,n,r){this.type=2,this._$AH=w,this._$AN=void 0,this._$AA=e,this._$AB=t,this._$AM=n,this.options=r,this._$Cv=r?.isConnected??!0}get parentNode(){let e=this._$AA.parentNode,t=this._$AM;return void 0!==t&&11===e?.nodeType&&(e=t.parentNode),e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,t=this){p(e=P(this,e,t))?e===w||null==e||""===e?(this._$AH!==w&&this._$AR(),this._$AH=w):e!==this._$AH&&e!==S&&this._(e):void 0!==e._$litType$?this.$(e):void 0!==e.nodeType?this.T(e):m(e)?this.k(e):this._(e)}O(e){return this._$AA.parentNode.insertBefore(e,this._$AB)}T(e){this._$AH!==e&&(this._$AR(),this._$AH=this.O(e))}_(e){this._$AH!==w&&p(this._$AH)?this._$AA.nextSibling.data=e:this.T(d.createTextNode(e)),this._$AH=e}$(e){let{values:t,_$litType$:n}=e,r="number"==typeof n?this._$AC(e):(void 0===n.el&&(n.el=O.createElement(N(n.h,n.h[0]),this.options)),n);if(this._$AH?._$AD===r)this._$AH.p(t);
38else{let e=new D(r,this),n=e.u(this.options);e.p(t),this.T(n),this._$AH=e}}_$AC(e){let t=I.get(e.strings);return void 0===t&&I.set(e.strings,t=new O(e)),t}k(e){f(this._$AH)||(this._$AH=[],this._$AR());let t=this._$AH,n,r=0;for(let i of e)r===t.length?t.push(n=new M(this.O(h()),this.O(h()),this,this.options)):n=t[r],n._$AI(i),r++;r<t.length&&(this._$AR(n&&n._$AB.nextSibling,r),t.length=r)}_$AR(e=this._$AA.nextSibling,t){for(this._$AP?.(!1,!0,t);e!==this._$AB;){let t=i(e).nextSibling;i(e).remove(),e=t}}setConnected(e){void 0===this._$AM&&(this._$Cv=e,this._$AP?.(e))}}class L{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(e,t,n,r,i){this.type=1,this._$AH=w,this._$AN=void 0,this.element=e,this.name=t,this._$AM=r,this.options=i,n.length>2||""!==n[0]||""!==n[1]?(this._$AH=Array(n.length-1).fill(new String),this.strings=n):this._$AH=w}_$AI(e,t=this,n,r){let i=this.strings,s=!1;if(void 0===i)(s=!p(e=P(this,e,t,0))||e!==this._$AH&&e!==S)&&(this._$AH=e);else{let r,a,o=e;for(e=i[0],r=0;r<i.length-1;r++)(a=P(this,o[n+r],t,r))===S&&(a=this._$AH[r]),s||=!p(a)||a!==this._$AH[r],a===w?e=w:e!==w&&(e+=(a??"")+i[r+1]),this._$AH[r]=a}s&&!r&&this.j(e)}j(e){e===w?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e??"")}}class j extends L{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===w?void 0:e}}class z extends L{constructor(){super(...arguments),this.type=4}j(e){this.element.toggleAttribute(this.name,!!e&&e!==w)}}class F extends L{constructor(e,t,n,r,i){super(e,t,n,r,i),this.type=5}
38_$AI(e,t=this){if((e=P(this,e,t,0)??w)===S)return;let n=this._$AH,r=e===w&&n!==w||e.capture!==n.capture||e.once!==n.once||e.passive!==n.passive,i=e!==w&&(n===w||r);r&&this.element.removeEventListener(this.name,this,n),i&&this.element.addEventListener(this.name,this,e),this._$AH=e}handleEvent(e){"function"==typeof this._$AH?this._$AH.call(this.options?.host??this.element,e):this._$AH.handleEvent(e)}}class B{constructor(e,t,n){this.element=e,this.type=6,this._$AN=void 0,this._$AM=t,this.options=n}get _$AU(){return this._$AM._$AU}_$AI(e){P(this,e)}}let $={M:o,P:l,A:u,C:1,L:R,R:D,D:m,V:P,I:M,H:L,N:z,U:F,B:j,F:B},U=r.litHtmlPolyfillSupport;U?.(O,M),(r.litHtmlVersions??=[]).push("3.3.2");let H=(e,t,n)=>{let r=n?.renderBefore??t,i=r._$litPart$;if(void 0===i){let e=n?.renderBefore??null;r._$litPart$=i=new M(t.insertBefore(h(),e),e,void 0,n??{})}return i._$AI(e),i}},46946:(e,t,n)=>{n.d(t,{N:()=>y});var r=n(805),i=n(23073),s=n(21330),a=n(74414),o=n(69652),l=n(32485);class u extends i.Component{getSnapshotBeforeUpdate(e){let t=this.props.childRef.current;if(t&&e.isPresent&&!this.props.isPresent){let e=this.props.sizeRef.current;e.height=t.offsetHeight||0,e.width=t.offsetWidth||0,e.top=t.offsetTop,e.left=t.offsetLeft}return null}componentDidUpdate(){}render(){return this.props.children}}function c({children:e,isPresent:t}){let n=(0,i.useId)(),s=(0,i.useRef)(null),a=(0,i.useRef)({width:0,height:0,top:0,left:0}),{nonce:o}=(0,i.useContext)(l.Q);return(0,i.useInsertionEffect)(()=>{let{width:e,height:r,top:i,left:l}=a.current;if(t||!s.current||!e||!r)return;s.current.dataset.motionPopId=n;let u=document.createElement("style");return o&&(u.nonce=o),document.head.appendChild(u),u.sheet&&u.sheet.insertRule(` 39 [data-motion-pop-id="${n}"] { 40 position: absolute !important; 41 width: ${e}px !important; 42 height: ${r}px !important; 43 top: ${i}px !important; 44 left: ${l}px !important; 45 } 46 `),()=>{document.head.removeChild(u)}},[t]),(0,r.jsx)(u,{isPresent:t,childRef:s,sizeRef:a,children:i.cloneElement(e,{ref:s})})}let d=({children:e,initial:t,isPresent:n,onExitComplete:s,custom:l,presenceAffectsLayout:u,mode:d})=>{let p=(0,a.M)(h),f=(0,i.useId)(),m=(0,i.useCallback)(e=>{for(let t of(p.set(e,!0),p.values()))if(!t)return;s&&s()},[p,s]),g=(0,i.useMemo)(()=>({id:f,initial:t,isPresent:n,custom:l,onExitComplete:m,register:e=>(p.set(e,!1),()=>p.delete(e))}),u?[Math.random(),m]:[n,m]);return(0,i.useMemo)(()=>{p.forEach((e,t)=>p.set(t,!1))},[n]),i.useEffect(()=>{n||p.size||!s||s()},[n]),"popLayout"===d&&(e=(0,r.jsx)(c,{isPresent:n,children:e})),(0,r.jsx)(o.t.Provider,{value:g,children:e})};function h(){return new Map}var p=n(1795);let f=e=>e.key||"";function m(e){let t=[];return i.Children.forEach(e,e=>{(0,i.isValidElement)(e)&&t.push(e)}),t}var g=n(42255);let y=({children:e,custom:t,initial:n=!0,onExitComplete:o,presenceAffectsLayout:l=!0,mode:u="sync",propagate:c=!1})=>{let[h,y]=(0,p.xQ)(c),v=(0,i.useMemo)(()=>m(e),[e]),b=c&&!h?[]:v.map(f),E=(0,i.useRef)(!0),T=(0,i.useRef)(v),_=(0,a.M)(()=>new Map),[A,x]=(0,i.useState)(v),[k,S]=(0,i.useState)(v);(0,g.E)(()=>{E.current=!1,T.current=v;for(let e=0;e<k.length;e++){let t=f(k[e]);b.includes(t)?_.delete(t):!0!==_.get(t)&&_.set(t,!1)}},[k,b.length,b.join("-")]);let w=[];if(v!==A){let e=[...v];for(let t=0;t<k.length;t++){let n=k[t],r=f(n);b.includes(r)||(e.splice(t,0,n),w.push(n))}"wait"===u&&w.length&&(e=w),S(m(e)),x(v);return}let{forceRender:I}=(0,i.useContext)(s.L);return(0,r.jsx)(r.Fragment,{children:k.map(e=>{let i=f(e),s=(!c||!!h)&&(v===k||b.includes(i));return(0,r.jsx)(d,{isPresent:s,initial:(!E.current||!!n)&&void 0,custom:s?void 0:t,presenceAffectsLayout:l,mode:u,onExitComplete:s?void 0:()=>{if(!_.has(i))return;_.set(i,!0);let e=!0;_.forEach(t=>{t||(e=!1)}),e&&(null==I||I(),S(T.current),c&&(null==y||y()),o&&o())},children:e},i)})})}},47201:(e,t,n)=>{n.d(t,{QP:()=>em,zu:()=>ef});let r=(e=new Map,t=null,n)=>({nextPart:e,validators:t,classGroupId:n}),i=[],s=(e,t,n)=>{if(0==e.length-t)return n.classGroupId;let r=e[t],i=n.nextPart.get(r);if(i){let n=s(e,t+1,i);if(n)return n}let a=n.validators;if(null===a)return;let o=0===t?e.join("-"):e.slice(t).join("-"),l=a.length;for(let e=0;e<l;e++){let t=a[e];if(t.validator(o))return t.classGroupId}},a=(e,t)=>{let n=r();for(let r in e)o(e[r],n,r,t);return n},o=(e,t,n,r)=>{let i=e.length;for(let s=0;s<i;s++)l(e[s],t,n,r)},l=(e,t,n,r)=>"string"==typeof e?void u(e,t,n):"function"==typeof e?void c(e,t,n,r):void d(e,t,n,r),u=(e,t,n
46)=>{(""===e?t:h(t,e)).classGroupId=n},c=(e,t,n,r)=>{if(p(e))return void o(e(r),t,n,r);null===t.validators&&(t.validators=[]),t.validators.push({classGroupId:n,validator:e})},d=(e,t,n,r)=>{let i=Object.entries(e),s=i.length;for(let e=0;e<s;e++){let[s,a]=i[e];o(a,h(t,s),n,r)}},h=(e,t)=>{let n=e,i=t.split("-"),s=i.length;for(let e=0;e<s;e++){let t=i[e],s=n.nextPart.get(t);s||(s=r(),n.nextPart.set(t,s)),n=s}return n},p=e=>"isThemeGetter"in e&&!0===e.isThemeGetter,f=[],m=(e,t,n,r,i)=>({modifiers:e,hasImportantModifier:t,baseClassName:n,maybePostfixModifierPosition:r,isExternal:i}),g=/\s+/,y=e=>{let t;if("string"==typeof e)return e;let n="";for(let r=0;r<e.length;r++)e[r]&&(t=y(e[r]))&&(n&&(n+=" "),n+=t);return n},v=(e,...t)=>{let n,r,o,l,u=e=>{let t=r(e);if(t)return t;let i=((e,t)=>{let{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:i,sortModifiers:s}=t,a=[],o=e.trim().split(g),l="";for(let e=o.length-1;e>=0;e-=1){let t=o[e],{isExternal:u,modifiers:c,hasImportantModifier:d,baseClassName:h,maybePostfixModifierPosition:p}=n(t);if(u){l=t+(l.length>0?" "+l:l);continue}let f=!!p,m=r(f?h.substring(0,p):h);if(!m){if(!f||!(m=r(h))){l=t+(l.length>0?" "+l:l);continue}f=!1}let g=0===c.length?"":1===c.length?c[0]:s(c).join(":"),y=d?g+"!":g,v=y+m;if(a.indexOf(v)>-1)continue;a.push(v);let b=i(m,f);for(let e=0;e<b.length;++e){let t=b[e];a.push(y+t)}l=t+(l.length>0?" "+l:l)}return l})(e,n);return o(e,i),i};return l=c=>(r=(n=(e=>({cache:(e=>{if(e<1)return{get:()=>void 0,set:()=>{}};let t=0,n=Object.create(null),r=Object.create(null),i=(i,s)=>{n[i]=s,++t>e&&(t=0,r=n,n=Object.create(null))};return{get(e){let t=n[e];return void 0!==t?t:void 0!==(t=r[e])?(i(e,t),t):void 0},set(e,t){e in n?n[e]=t:i(e,t)}}})(e.cacheSize),parseClassName:(e=>{let{prefix:t,experimentalParseClassName:n}=e,r=e=>{let t,n=[],r=0,i=0,s=0,a=e.length;for(let o=0;o<a;o++){let a=e[o];if(0===r&&0===i){if(":"===a){n.push(e.slice(s,o)),s=o+1;continue}if("/"===a){t=o;continue}}"["===a?r++:"]"===a?r--:"("===a?i++:")"===a&&i--}let o=0===n.length?e:e.slice(s),l=o,u=!1;return o.endsWith("!")?(l=o.slice(0,-1),u=!0):o.startsWith("!")&&(l=o.slice(1),u=!0),m(n,u,l,t&&t>s?t-s:void 0)};if(t){let e=t+":",n=r;r=t=>t.startsWith(e)?n(t.slice(e.length)):m(f,!1,t,void 0,!0)}if(n){let e=r;r=t=>n({className:t,parseClassName:e})}return r})(e),sortModifiers:(e=>{let t=new Map;return e.orderSensitiveModifiers.forEach((e,n)=>{t.set(e,1e6+n)}),e=>{let n=[],r=[];for(let i=0;i<e.length;i++){let s=e[i],a="["===s[0],o=t.has(s);a||o?(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}})(e),...(e=>{let t=(e=>{let{theme:t,classGroups:n}=e;return a(n,t)})(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:e=>{if(e.startsWith("[")&&e.endsWith("]"))return(e=>-1===e.slice(1,-1).indexOf(":")?void 0:(()=>{let t=e.slice(1,-1),n=t.indexOf(":"),r=t.slice(0,n);return r?"arbitrary.."+r:void 0})())(e);let n=e.split("-"),r=+(""===n[0]&&n.length>1);return s(n,r,t)},getConflictingClassGroupIds:(e,t)=>{if(t){let t=r[e],s=n[e];return t?s?((e,t)=>{let n=Array(e.length+t.length);for(let t=0;t<e.length;t++)n[t]=e[t];for(let r=0;r<t.length;r++)n[e.length+r]=t[r];return n})(s,t):t:s||i}return n[e]||i}}})(e)}))(t.reduce((e,t)=>t(e),e()))).cache.get,o=n.cache.set,l=u,u(c)),(...e)=>l(((...e)=>{let t,n,r=0,i="";for(;r<e.length;)(t=e[r++])&&(n=y(t))&&(i&&(i+=" "),i+=n);return i})(...e))},b=[],E=e=>{let t=t=>t[e]||b;return t.isThemeGetter=!0,t},T=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,_=/^\((?:(\w[\w-]*):)?(.+)\)$/i,A=/^\d+\/\d+$/,x=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,k=/\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$/,S=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,w=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,I=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,C=e=>A.test(e),N=e=>!!e&&!Number.isNaN(Number(e)),R=e=>!!e&&Number.isInteger(Number(e)),O=e=>e.endsWith("%")&&N(e.slice(0,-1)),P=e=>x.test(e),D=()=>!0,M=e=>k.test(e)&&!S.test(e),L=()=>!1,j=e=>w.test(e),z=e=>I.test(e),F=e=>!$(e)&&!V(e),B=e=>ee(e,ei,L),$=e=>T.test(e),U=e=>ee(e,es,M),H=e=>ee(e,ea,N),G=e=>ee(e,en,L),Y=e=>ee(e,er,z),Z=e=>ee(e,el,j),V=e=>_.test(e),W=e=>et(e,es),q=e=>et(e,eo),K=e=>et(e,en),X=e=>et(e,ei),Q=e=>et(e,er),J=e=>
vendor: 4,434 bytes, line 46
46et(e,el,!0),ee=(e,t,n)=>{let r=T.exec(e);return!!r&&(r[1]?t(r[1]):n(r[2]))},et=(e,t,n=!1)=>{let r=_.exec(e);return!!r&&(r[1]?t(r[1]):n)},en=e=>"position"===e||"percentage"===e,er=e=>"image"===e||"url"===e,ei=e=>"length"===e||"size"===e||"bg-size"===e,es=e=>"length"===e,ea=e=>"number"===e,eo=e=>"family-name"===e,el=e=>"shadow"===e;Symbol.toStringTag;let eu=()=>{let e=E("color"),t=E("font"),n=E("text"),r=E("font-weight"),i=E("tracking"),s=E("leading"),a=E("breakpoint"),o=E("container"),l=E("spacing"),u=E("radius"),c=E("shadow"),d=E("inset-shadow"),h=E("text-shadow"),p=E("drop-shadow"),f=E("blur"),m=E("perspective"),g=E("aspect"),y=E("ease"),v=E("animate"),b=()=>["auto","avoid","all","avoid-page","page","left","right","column"],T=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],_=()=>[...T(),V,$],A=()=>["auto","hidden","clip","visible","scroll"],x=()=>["auto","contain","none"],k=()=>[V,$,l],S=()=>[C,"full","auto",...k()],w=()=>[R,"none","subgrid",V,$],I=()=>["auto",{span:["full",R,V,$]},R,V,$],M=()=>[R,"auto",V,$],L=()=>["auto","min","max","fr",V,$],j=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],z=()=>["start","end","center","stretch","center-safe","end-safe"],ee=()=>["auto",...k()],et=()=>[C,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...k()],en=()=>[e,V,$],er=()=>[...T(),K,G,{position:[V,$]}],ei=()=>["no-repeat",{repeat:["","x","y","space","round"]}],es=()=>["auto","cover","contain",X,B,{size:[V,$]}],ea=()=>[O,W,U],eo=()=>["","none","full",u,V,$],el=()=>["",N,W,U],eu=()=>["solid","dashed","dotted","double"],ec=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],ed=()=>[N,O,K,G],eh=()=>["","none",f,V,$],ep=()=>["none",N,V,$],ef=()=>["none",N,V,$],em=()=>[N,V,$],eg=()=>[C,"full",...k()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[P],breakpoint:[P],color:[D],container:[P],"drop-shadow":[P],ease:["in","out","in-out"],font:[F],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[P],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[P],shadow:[P],spacing:["px",N],text:[P],"text-shadow":[P],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",C,$,V,g]}],container:["container"],columns:[{columns:[N,$,V,o]}],"break-after":[{"break-after":b()}],"break-before":[{"break-before":b()}],"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:_()}],overflow:[{overflow:A()}],"overflow-x":[{"overflow-x":A()}],"overflow-y":[{"overflow-y":A()}],overscroll:[{overscroll:x()}],"overscroll-x":[{"overscroll-x":x()}],"overscroll-y":[{"overscroll-y":x()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:S()}],"inset-x":[{"inset-x":S()}],"inset-y":[{"inset-y":S()}],start:[{start:S()}],end:[{end:S()}],top:[{top:S()}],right:[{right:S()}],bottom:[{bottom:S()}],left:[{left:S()}],visibility:["visible","invisible","collapse"],z:[{z:[R,"auto",V,$]}],basis:[{basis:[C,"full","auto",o,...k()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[N,C,"auto","initial","none",$]}],grow:[{grow:["",N,V,$]}],shrink:[{shrink:["",N,V,$]}],order:[{order:[R,"first","last","none",V,$]}],"grid-cols":[{"grid-cols":w()}],"col-start-end":[{col:I()}],"col-start":[{"col-start":M()}
vendor: 11,006 bytes, line 46
46],"col-end":[{"col-end":M()}],"grid-rows":[{"grid-rows":w()}],"row-start-end":[{row:I()}],"row-start":[{"row-start":M()}],"row-end":[{"row-end":M()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":L()}],"auto-rows":[{"auto-rows":L()}],gap:[{gap:k()}],"gap-x":[{"gap-x":k()}],"gap-y":[{"gap-y":k()}],"justify-content":[{justify:[...j(),"normal"]}],"justify-items":[{"justify-items":[...z(),"normal"]}],"justify-self":[{"justify-self":["auto",...z()]}],"align-content":[{content:["normal",...j()]}],"align-items":[{items:[...z(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...z(),{baseline:["","last"]}]}],"place-content":[{"place-content":j()}],"place-items":[{"place-items":[...z(),"baseline"]}],"place-self":[{"place-self":["auto",...z()]}],p:[{p:k()}],px:[{px:k()}],py:[{py:k()}],ps:[{ps:k()}],pe:[{pe:k()}],pt:[{pt:k()}],pr:[{pr:k()}],pb:[{pb:k()}],pl:[{pl:k()}],m:[{m:ee()}],mx:[{mx:ee()}],my:[{my:ee()}],ms:[{ms:ee()}],me:[{me:ee()}],mt:[{mt:ee()}],mr:[{mr:ee()}],mb:[{mb:ee()}],ml:[{ml:ee()}],"space-x":[{"space-x":k()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":k()}],"space-y-reverse":["space-y-reverse"],size:[{size:et()}],w:[{w:[o,"screen",...et()]}],"min-w":[{"min-w":[o,"screen","none",...et()]}],"max-w":[{"max-w":[o,"screen","none","prose",{screen:[a]},...et()]}],h:[{h:["screen","lh",...et()]}],"min-h":[{"min-h":["screen","lh","none",...et()]}],"max-h":[{"max-h":["screen","lh",...et()]}],"font-size":[{text:["base",n,W,U]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[r,V,H]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",O,$]}],"font-family":[{font:[q,$,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:[i,V,$]}],"line-clamp":[{"line-clamp":[N,"none",V,H]}],leading:[{leading:[s,...k()]}],"list-image":[{"list-image":["none",V,$]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",V,$]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:en()}],"text-color":[{text:en()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...eu(),"wavy"]}],"text-decoration-thickness":[{decoration:[N,"from-font","auto",V,U]}],"text-decoration-color":[{decoration:en()}],"underline-offset":[{"underline-offset":[N,"auto",V,$]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:k()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",V,$]}],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",V,$]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:er()}],"bg-repeat":[{bg:ei()}],"bg-size":[{bg:es()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},R,V,$],radial:["",V,$],conic:[R,V,$]},Q,Y]}],"bg-color":[{bg:en()}],"gradient-from-pos":[{from:ea()}],"gradient-via-pos":[{via:ea()}],"gradient-to-pos":[{to:ea()}],"gradient-from":[{from:en()}],"gradient-via":[{via:en()}],"gradient-to":[{to:en()}],rounded:[{rounded:eo()}],"rounded-s":[{"rounded-s":eo()}],"rounded-e":[{"rounded-e":eo()}],"rounded-t":[{"rounded-t":eo()}],"rounded-r":[{"rounded-r":eo()}],"rounded-b":[{"rounded-b":eo()}],"rounded-l":[{"rounded-l":eo()}],"rounded-ss":[{"rounded-ss":eo()}],"rounded-se":[{"rounded-se":eo()}],"rounded-ee":[{"rounded-ee":eo()}],"rounded-es":[{"rounded-es":eo()}],"rounded-tl":[{"rounded-tl":eo()}],"rounded-tr":[{"rounded-tr":eo()}],"rounded-br":[{"rounded-br":eo()}],"rounded-bl":[{"rounded-bl":eo()}],"border-w":[{border:el()}],"border-w-x":[{"border-x":el()}],"border-w-y":[{"border-y":el()}],"border-w-s":[{"border-s":el()}],"border-w-e":[{"border-e":el()}],"border-w-t":[{"border-t":el()}],"border-w-r":[{"border-r":el()}],"border-w-b":[{"border-b":el()}],"border-w-l":[{"border-l":el()}],"divide-x":[{"divide-x":el()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":el()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...eu(),"hidden","none"]}],"divide-style":[{divide:[...eu(),"hidden","none"]}],"border-color":[{border:en()}],"border-color-x":[{"border-x":en()}],"border-color-y":[{"border-y":en()}],"border-color-s":[{"border-s":en()}],"border-color-e":[{"border-e":en()}],"border-color-t":[{"border-t":en()}],"border-color-r":[{"border-r":en()}],"border-color-b":[{"border-b":en()}],"border-color-l":[{"border-l":en()}],"divide-color":[{divide:en()}],"outline-style":[{outline:[...eu(),"none","hidden"]}],"outline-offset":[{"outline-offset":[N,V,$]}],"outline-w":[{outline:["",N,W,U]}],"outline-color":[{outline:en()}],shadow:[{shadow:["","none",c,J,Z]}],"shadow-color":[{shadow:en()}],"inset-shadow":[{"inset-shadow":["none",d,J,Z]}],"inset-shadow-color":[{"inset-shadow":en()}],"ring-w":[{ring:el()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:en()}],"ring-offset-w":[{"ring-offset":[N,U]}],"ring-offset-color":[{"ring-offset":en()}],"inset-ring-w":[{"inset-ring":el()}],"inset-ring-color":[{"inset-ring":en()}],"text-shadow":[{"text-shadow":["none",h,J,Z]}],"text-shadow-color":[{"text-shadow":en()}],opacity:[{opacity:[N,V,$]}],"mix-blend":[{"mix-blend":[...ec(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":ec()}],"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":[N]}],"mask-image-linear-from-pos":[{"mask-linear-from":ed()}],"mask-image-linear-to-pos":[{"mask-linear-to":ed()}],"mask-image-linear-from-color":[{"mask-linear-from":en()}],"mask-image-linear-to-color":[{"mask-linear-to":en()}],"mask-image-t-from-pos":[{"mask-t-from":ed()}],"mask-image-t-to-pos":[{"mask-t-to":ed()}],"mask-image-t-from-color":[{"mask-t-from":en()}],"mask-image-t-to-color":[{"mask-t-to":en()}],"mask-image-r-from-pos":[{"mask-r-from":ed()}],"mask-image-r-to-pos":[{"mask-r-to":ed()}],"mask-image-r-from-color":[{"mask-r-from":en()}],"mask-image-r-to-color":[{"mask-r-to":en()}],"mask-image-b-from-pos":[{"mask-b-from":ed()}],"mask-image-b-to-pos":[{"mask-b-to":ed()}],"mask-image-b-from-color":[{"mask-b-from":en()}],"mask-image-b-to-color":[{"mask-b-to":en()}],"mask-image-l-from-pos":[{"mask-l-from":ed()}],"mask-image-l-to-pos":[{"mask-l-to":ed()}],"mask-image-l-from-color":[{"mask-l-from":en()}],"mask-image-l-to-color":[{"mask-l-to":en()}],"mask-image-x-from-pos":[{"mask-x-from":ed()}],"mask-image-x-to-pos":[{"mask-x-to":ed()}],"mask-image-x-from-color":[{"mask-x-from":en()}],"mask-image-x-to-color":[{"mask-x-to":en()}],"mask-image-y-from-pos":[{"mask-y-from":ed()}],"mask-image-y-to-pos":[{"mask-y-to":ed()}],"mask-image-y-from-color":[{"mask-y-from":en()}],"mask-image-y-to-color":[{"mask-y-to":en()}],"mask-image-radial":[{"mask-radial":[V,$]}],"mask-image-radial-from-pos":[{"mask-radial-from":ed()}],"mask-image-radial-to-pos":[{"mask-radial-to":ed()}],"mask-image-radial-from-color":[{"mask-radial-from":en()}],"mask-image-radial-to-color":[{"mask-radial-to":en()}],"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":T()}],"mask-image-conic-pos":[{"mask-conic":[N]}],"mask-image-conic-from-pos":[{"mask-conic-from":ed()}],"mask-image-conic-to-pos":[{"mask-conic-to":ed()}],"mask-image-conic-from-color":[{"mask-conic-from":en()}],"mask-image-conic-to-color":[{"mask-conic-to":en()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:er()}],"mask-repeat":[{mask:ei()}],"mask-size":[{mask:es()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",V,$]}],filter:[{filter:["","none",V,$]}],blur:[{blur:eh()}],brightness:[{brightness:[N,V,$]}],contrast:[{contrast:[N,V,$]}],"drop-shadow":[{"drop-shadow":["","none",p,J,Z]}],"drop-shadow-color":[{"drop-shadow":en()}],grayscale:[{grayscale:["",N,V,$]}],"hue-rotate":[{"hue-rotate":[N,V,$]}],invert:[{invert:["",N,V,$]}],saturate:[{saturate:[N,V,$]}],sepia:[{sepia:["",N,V,$]}],"backdrop-filter":[{"backdrop-filter":["","none",V,$]}],"backdrop-blur":[{"backdrop-blur":eh()}],"backdrop-brightness":[{"backdrop-brightness":[N,V,$]}],"backdrop-contrast":[{"backdrop-contrast":[N,V,$]}],"backdrop-grayscale":[{"backdrop-grayscale":["",N,V,$]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[N,V,$]}],"backdrop-invert":[{"backdrop-invert":["",N,V,$]}],"backdrop-opacity":[{"backdrop-opacity":[N,V,$]}],"backdrop-saturate":[{"backdrop-saturate":[N,V,$]}],"backdrop-sepia":[{"backdrop-sepia":["",N,V,$]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":k()}],"border-spacing-x":[{"border-spacing-x":k()}],"border-spacing-y":[{"border-spacing-y":k()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",V,$]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[N,"initial",V,$]}],ease:[{ease:["linear","initial",y,V,$]}],delay:[{delay:[N,V,$]}],animate:[{animate:["none",v,V,$]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[m,V,$]}],"perspective-origin":[{"perspective-origin":_()}],rotate:[{rotate:ep()}],"rotate-x":[{"rotate-x":ep()}],"rotate-y":[{"rotate-y":ep()}],"rotate-z":[{"rotate-z":ep()}],scale:[{scale:ef()}],"scale-x":[{"scale-x":ef()}],"scale-y":[{"scale-y":ef()}],"scale-z":[{"scale-z":ef()}],"scale-3d":["scale-3d"],skew:[{skew:em()}],"skew-x":[{"skew-x":em()}],"skew-y":[{"skew-y":em()}],transform:[{transform:[V,$,"","none","gpu","cpu"]}],"transform-origin":[{origin:_()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:eg()}],"translate-x":[{"translate-x":eg()}],"translate-y":[{"translate-y":eg()}],"translate-z":[{"translate-z":eg()}],"translate-none":["translate-none"],accent:[{accent:en()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:en()}
vendor: 4,464 bytes, line 46
46],"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",V,$]}],"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":k()}],"scroll-mx":[{"scroll-mx":k()}],"scroll-my":[{"scroll-my":k()}],"scroll-ms":[{"scroll-ms":k()}],"scroll-me":[{"scroll-me":k()}],"scroll-mt":[{"scroll-mt":k()}],"scroll-mr":[{"scroll-mr":k()}],"scroll-mb":[{"scroll-mb":k()}],"scroll-ml":[{"scroll-ml":k()}],"scroll-p":[{"scroll-p":k()}],"scroll-px":[{"scroll-px":k()}],"scroll-py":[{"scroll-py":k()}],"scroll-ps":[{"scroll-ps":k()}],"scroll-pe":[{"scroll-pe":k()}],"scroll-pt":[{"scroll-pt":k()}],"scroll-pr":[{"scroll-pr":k()}],"scroll-pb":[{"scroll-pb":k()}],"scroll-pl":[{"scroll-pl":k()}],"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",V,$]}],fill:[{fill:["none",...en()]}],"stroke-w":[{stroke:[N,W,U,H]}],stroke:[{stroke:["none",...en()]}],"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"]}},ec=(e,t,n)=>{void 0!==n&&(e[t]=n)},ed=(e,t)=>
46{if(t)for(let n in t)ec(e,n,t[n])},eh=(e,t)=>{if(t)for(let n in t)ep(e,t,n)},ep=(e,t,n)=>{let r=t[n];void 0!==r&&(e[n]=e[n]?e[n].concat(r):r)},ef=(e,...t)=>"function"==typeof e?v(eu,e,...t):v(()=>((e,{cacheSize:t,prefix:n,experimentalParseClassName:r,extend:i={},override:s={}})=>(ec(e,"cacheSize",t),ec(e,"prefix",n),ec(e,"experimentalParseClassName",r),ed(e.theme,s.theme),ed(e.classGroups,s.classGroups),ed(e.conflictingClassGroups,s.conflictingClassGroups),ed(e.conflictingClassGroupModifiers,s.conflictingClassGroupModifiers),ec(e,"orderSensitiveModifiers",s.orderSensitiveModifiers),eh(e.theme,i.theme),eh(e.classGroups,i.classGroups),eh(e.conflictingClassGroups,i.conflictingClassGroups),eh(e.conflictingClassGroupModifiers,i.conflictingClassGroupModifiers),ep(e,i,"orderSensitiveModifiers"),e))(eu(),e),...t),em=v(eu)},48032:(e,t,n)=>{n.d(t,{u:()=>l});var r=n(82967),i=n(59761),s=n(3870),a=n(96574),o=n(34401);function l(e){void 0===e&&(e={});var t=e.connector,n=void 0===t?function(){return new s.B}:t,r=e.resetOnError,l=void 0===r||r,c=e.resetOnComplete,d=void 0===c||c,h=e.resetOnRefCountZero,p=void 0===h||h;return function(e){var t,r,s,c=0,h=!1,f=!1,m=function(){null==r||r.unsubscribe(),r=void 0},g=function(){m(),t=s=void 0,h=f=!1},y=function(){var e=t;g(),null==e||e.unsubscribe()};return(0,o.N)(function(e,o){c++,f||h||m();var v=s=null!=s?s:n();o.add(function(){0!=--c||f||h||(r=u(y,p))}),v.subscribe(o),!t&&c>0&&(t=new a.Ms({next:function(e){return v.next(e)},error:function(e){f=!0,m(),r=u(g,l,e),v.error(e)},complete:function(){h=!0,m(),r=u(g,d),v.complete()}}),(0,i.Tg)(e).subscribe(t))})(e)}}function u(e,t){for(var n=[],s=2;s<arguments.length;s++)n[s-2]=arguments[s];if(!0===t)return void e();if(!1!==t){var o=new a.Ms({next:function(){o.unsubscribe(),e()}});return(0,i.Tg)(t.apply(void 0,(0,r.fX)([],(0,r.zs)(n)))).subscribe(o)}}},48355:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{default:function(){return m},defaultHead:function(){return d}});let r=n(59224),i=n(77725),s=n(805),a=i._(n(23073)),o=r._(n(39932)),l=n(50915),u=n(49395),c=n(8875);function d(e){void 0===e&&(e=!1);let t=[(0,s.jsx)("meta",{charSet:"utf-8"},"charset")];return e||t.push((0,s.jsx)("meta",{name:"viewport",content:"width=device-width"},"viewport")),t}function h(e,t){return"string"==typeof t||"number"==typeof t?e:t.type===a.default.Fragment?e.concat(a.default.Children.toArray(t.props.children).reduce((e,t)=>"string"==typeof t||"number"==typeof t?e:e.concat(t),[])):e.concat(t)}n(47299);let p=["name","httpEquiv","charSet","itemProp"];function f(e,t){let{inAmpMode:n}=t;return e.reduce(h,[]).reverse().concat(d(n).reverse()).filter(function(){let e=new Set,t=new Set,n=new Set,r={};return i=>{let s=!0,a=!1;if(i.key&&"number"!=typeof i.key&&i.key.indexOf("$")>0){a=!0;let t=i.key.slice(i.key.indexOf("$")+1);e.has(t)?s=!1:e.add(t)}switch(i.type){case"title":case"base":t.has(i.type)?s=!1:t.add(i.type);break;case"meta":for(let e=0,t=p.length;e<t;e++){let t=p[e];if(i.props.hasOwnProperty(t))if("charSet"===t)n.has(t)?s=!1:n.add(t);else{let e=i.props[t],n=r[t]||new Set;("name"!==t||!a)&&n.has(e)?s=!1:(n.add(e),r[t]=n)}}}return s}}()).reverse().map((e,t)=>{let n=e.key||t;return a.default.cloneElement(e,{key:n})})}let m=function(e){let{children:t}=e,n=(0,a.useContext)(l.AmpStateContext),r=(0,a.useContext)(u.HeadManagerContext);return(0,s.jsx)(o.default,{reduceComponentsToState:f,headManager:r,inAmpMode:(0,c.isInAmpMode)(n),children:t})};("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},48417:(e,t,n)=>{n.d(t,{$8:()=>eB,$O:()=>A,$S:()=>eA,Af:()=>e9,Au:()=>ei,B4:()=>en,Bb:()=>ej,Be:()=>c,Bj:()=>v,Bt:()=>eJ,CM:()=>eQ,Ct:()=>b,Dl:()=>g,E4:()=>q,ER:()=>ex,Eb:()=>eg,F7:()=>M,FG:()=>eD,FO:()=>e2,Fk:()=>eb,Fn:()=>f,G1:()=>R,G8:()=>J,GZ:()=>eS,HL:()=>z,Hi:()=>eh,Il:()=>eN,Jf:()=>ek,Jg:()=>Z,K2:()=>eH,KA:()=>X,KB:()=>I,K_:()=>o,Kn:()=>P,L4:()=>er,LK:()=>j,MQ:()=>eG,Mu:()=>l,NC:()=>el,Nd:()=>ef,Ny:()=>_,OC:()=>ee,P:()=>$,P7:()=>eq,Pw:()=>E,QC:()=>eF,Q_:()=>eo,Rl:()=>a,Rv:()=>eV,So:()=>N,St:()=>Y,Tx:()=>ea,UI:()=>ed,Un:()=>e$,Uy:()=>x,W7:()=>W,WN:()=>eC,YA:()=>ev,YY:()=>et,Yv:()=>es,Z$:()=>e1,Zm:()=>es,_L:()=>U,_z:()=>T,aC:()=>m,bR:()=>eu,bS:()=>ew,cU:()=>w,d$:()=>em,dN:()=>H,dR:()=>e_,dZ:()=>eO,db:()=>O,ej:()=>ec,em:()=>Q,f2:()=>D,fI:()=>e4,fU:()=>e3,fs:()=>y,g6:()=>F,gP:()=>k,gt:()=>eL,h8:()=>eP,hH:()=>eE,ii:()=>V,jS:()=>eZ,jw:()=>K,kx:()=>e0,lo:()=>eI,m9:()=>ey,nA:()=>d,nb:()=>eK,oI:()=>eY,pY:()=>h,qF:()=>eT,qG:()=>L,qm:()=>eo,rF:()=>ez,rk:()=>C,rn:()=>eU,rt:()=>S,sw:()=>B,tB:()=>u,tj:()=>eM,v$:()=>eW,vL:()=>ep,wA:()=>p,xY:()=>eR,yz:()=>eX,z$:()=>G});var r=n(95854),i=n(31817),s=n(61807);function a(e,t){return new e({type:"string",...s.normalizeParams(t)})}function o(e,t){return new e({type:"string",coerce:!0,...s.normalizeParams(t)})}function l(e,t){return new e({type:"string",format:"email",check:"string_format",abort:!1,...s.normalizeParams(t)})}function u(e,t){return new e({type:"string",format:"guid",check:"string_format",abort:!1,...s.normalizeParams(t)})}function c(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,...s.normalizeParams(t)})}function d(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v4",...s.normalizeParams(t)})}function h(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v6",...s.normalizeParams(t)})}function p(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v7",...s.normalizeParams(t)})}function f(e,t){return new e({type:"string",format:"url",check:"string_format",abort:!1,...s.normalizeParams(t)})}function m(e,t){return new e({type:"string",format:"emoji",check:"string_format",abort:!1,...s.normalizeParams(t)})}function g(e,t){return new e({type:"string",format:"nanoid",check:"string_format",abort:!1,...s.normalizeParams(t)})}function y(e,t){return new e({type:"string",format:"cuid",check:"string_format",abort:!1,...s.normalizeParams(t)})}function v(e,t){return new e({type:"string",format:"cuid2",check:"string_format",abort:!1,...s.normalizeParams(t)})}function b(e,t){return new e({type:"string",format:"ulid",check:"string_format",abort:!1,...s.normalizeParams(t)})}function E(e,t){return new e({type:"string",format:"xid",check:"string_format",abort:!1,...s.normalizeParams(t)})}function T(e,t){return new e({type:"string",format:"ksuid",check:"string_format",abort:!1,...s.normalizeParams(t)})}function _(e,t){return new e({type:"string",format:"ipv4",check:"string_format",abort:!1,...s.normalizeParams(t)})}function A(e,t){return new e({type:"string",format:"ipv6",check:"string_format",abort:!1,...s.normalizeParams(t)})}function x(e,t){return new e({type:"string",format:"cidrv4",check:"string_format",abort:!1,...s.normalizeParams(t)})}function k(e,t){return new e({type:"string",format:"cidrv6",check:"string_format",abort:!1,...s.normalizeParams(t)})}function S(e,t){return new e({type:"string",format:"base64",check:"string_format",abort:!1,...s.normalizeParams(t)})}function w(e,t){return new e({type:"string",format:"base64url",check:"string_format",abort:!1,...s.normalizeParams(t)})}function I(e,t){return new e({type:"string",format:"e164",check:"string_format",abort:!1,...s.normalizeParams(t)})}function C(e,t){return new e({type:"string",format:"jwt",check:"string_format",abort:!1,...s.normalizeParams(t)})}let N={Any:null,Minute:-1,Second:0,Millisecond:3,Microsecond:6};function R(e,t){return new e({type:"string",format:"datetime",check:"string_format",offset:!1,local:!1,precision:null,...s.normalizeParams(t)})}function O(e,t){return new e({type:"string",format:"date",check:"string_format",...s.normalizeParams(t)})}function P(e,t){return new e({type:"string",format:"time",check:"string_format",precision:null,...s.normalizeParams(t)})}function D(e,t){return new e({type:"string",format:"duration",check:"string_format",...s.normalizeParams(t)})}function M(e,t){return new e({type:"number",checks:[],...s.normalizeParams(t)})}function L(e,t){return new e({type:"number",coerce:!0,checks:[],...s.normalizeParams(t)})}function j(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"safeint",...s.normalizeParams(t)})}function z(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"float32",...s.normalizeParams(t)})}function F(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"float64",...s.normalizeParams(t)})}function B(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"int32",...s.normalizeParams(t)})}function $(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"uint32",...s.normalizeParams(t)})}function U(e,t){return new e({type:"boolean",...s.normalizeParams(t)})}function H(e,t){return new e({type:"boolean",coerce:!0,...s.normalizeParams(t)})}function G(e,t){return new e({type:"bigint",...s.normalizeParams(t)})}function Y(e,t){return new e({type:"bigint",coerce:!0,...s.normalizeParams(t)})}function Z(e,t){return new e({type:"bigint",check:"bigint_format",abort:!1,format:"int64",...s.normalizeParams(t)})}function V(e,t){return new e({type:"bigint",check:"bigint_format",abort:!1,format:"uint64",...s.normalizeParams(t)})}function W(e,t){return new e({type:"symbol",...s.normalizeParams(t)})}function q(e,t){return new e({type:"undefined",...s.normalizeParams(t)})}function K(e,t){return new e({type:"null",...s.normalizeParams(t)})}function X(e){return new e({type:"any"})}function Q(e){return new e({type:"unknown"})}function J(e,t){return new e({type:"never",...s.normalizeParams(t)})}function ee(e,t){return new e({type:"void",...s.normalizeParams(t)})}function et(e,t){return new e({type:"date",...s.normalizeParams(t)})}function en(e,t){return new e({type:"date",coerce:!0,...s.normalizeParams(t)})}function er(e,t){return new e({type:"nan",...s.normalizeParams(t)})}function ei(e,t){return new r.sm({check:"less_than",...s.normalizeParams(t),value:e,inclusive:!1})}function es(e,t){return new r.sm({check:"less_than",...s.normalizeParams(t),value:e,inclusive:!0})}function ea(e,t){return new r.J_({check:"greater_than",...s.normalizeParams(t),value:e,inclusive:!1})}function eo(e,t){return new r.J_({check:"greater_than",...s.normalizeParams(t),value:e,inclusive:!0})}function el(e){return ea(0,e)}function eu(e){return ei(0,e)}function ec(e){return es(0,e)}function ed(e){return eo(0,e)}function eh(e,t){return new r.Jk({check:"multiple_of",...s.normalizeParams(t),value:e})}function ep(e,t){return new r.j2({check:"max_size",...s.normalizeParams(t),maximum:e})}function ef(e,t){return new r.PH({check:"min_size",...s.normalizeParams(t),minimum:e})}function em(e,t){return new r.e2({check:"size_equals",...s.normalizeParams(t),size:e})}function eg(e,t){return new r.Yk({check:"max_length",...s.normalizeParams(t),maximum:e})}function ey(e,t){return new r.Kk({check:"min_length",...s.normalizeParams(t),minimum:e})}function ev(e,t){return new r.RM({check:"length_equals",...s.normalizeParams(t),length:e})}function eb(e,t){return new r.DG({check:"string_format",format:"regex",...s.normalizeParams(t),pattern:e})}function eE(e){return new r.NI({check:"string_format",format:"lowercase",...s.normalizeParams(e)})}function eT(e){return new r.kH({check:"string_format",format:"up
46percase",...s.normalizeParams(e)})}function e_(e,t){return new r.Tt({check:"string_format",format:"includes",...s.normalizeParams(t),includes:e})}function eA(e,t){return new r.J({check:"string_format",format:"starts_with",...s.normalizeParams(t),prefix:e})}function ex(e,t){return new r.E6({check:"string_format",format:"ends_with",...s.normalizeParams(t),suffix:e})}function ek(e,t,n){return new r.XF({check:"property",property:e,schema:t,...s.normalizeParams(n)})}function eS(e,t){return new r.sj({check:"mime_type",mime:e,...s.normalizeParams(t)})}function ew(e){return new r.v$({check:"overwrite",tx:e})}function eI(e){return ew(t=>t.normalize(e))}function eC(){return ew(e=>e.trim())}function eN(){return ew(e=>e.toLowerCase())}function eR(){return ew(e=>e.toUpperCase())}function eO(e,t,n){return new e({type:"array",element:t,...s.normalizeParams(n)})}function eP(e,t,n){return new e({type:"union",options:t,...s.normalizeParams(n)})}function eD(e,t,n,r){return new e({type:"union",options:n,discriminator:t,...s.normalizeParams(r)})}function eM(e,t,n){return new e({type:"intersection",left:t,right:n})}function eL(e,t,n,r){let a=n instanceof i.W4,o=a?r:n;return new e({type:"tuple",items:t,rest:a?n:null,...s.normalizeParams(o)})}function ej(e,t,n,r){return new e({type:"record",keyType:t,valueType:n,...s.normalizeParams(r)})}function ez(e,t,n,r){return new e({type:"map",keyType:t,valueType:n,...s.normalizeParams(r)})}function eF(e,t,n){return new e({type:"set",valueType:t,...s.normalizeParams(n)})}function eB(e,t,n){return new e({type:"enum",entries:Array.isArray(t)?Object.fromEntries(t.map(e=>[e,e])):t,...s.normalizeParams(n)})}function e$(e,t,n){return new e({type:"enum",entries:t,...s.normalizeParams(n)})}function eU(e,t,n){return new e({type:"literal",values:Array.isArray(t)?t:[t],...s.normalizeParams(n)})}function eH(e,t){return new e({type:"file",...s.normalizeParams(t)})}function eG(e,t){return new e({type:"transform",transform:t})}function eY(e,t){return new e({type:"optional",innerType:t})}function eZ(e,t){return new e({type:"nullable",innerType:t})}function eV(e,t,n){return new e({type:"default",innerType:t,get defaultValue(){return"function"==typeof n?n():n}})}function eW(e,t,n){return new e({type:"nonoptional",innerType:t,...s.normalizeParams(n)})}function eq(e,t){return new e({type:"success",innerType:t})}function eK(e,t,n){return new e({type:"catch",innerType:t,catchValue:"function"==typeof n?n:()=>n})}function eX(e,t,n){return new e({type:"pipe",in:t,out:n})}function eQ(e,t){return new e({type:"readonly",innerType:t})}function eJ(e,t,n){return new e({type:"template_literal",parts:t,...s.normalizeParams(n)})}function e0(e,t){return new e({type:"lazy",getter:t})}function e1(e,t){return new e({type:"promise",innerType:t})}function e2(e,t,n){let r=s.normalizeParams(n);return r.abort??(r.abort=!0),new e({type:"custom",check:"custom",fn:t,...r})}function e3(e,t,n){return new e({type:"custom",check:"custom",fn:t,...s.normalizeParams(n)})}function e4(e,t){let n=s.normalizeParams(t),r=n.truthy??["true","1","yes","on","y","enabled"],a=n.falsy??["false","0","no","off","n","disabled"];"sensitive"!==n.case&&(r=r.map(e=>"string"==typeof e?e.toLowerCase():e),a=a.map(e=>"string"==typeof e?e.toLowerCase():e));let o=new Set(r),l=new Set(a),u=e.Pipe??i._m,c=e.Boolean??i.sF,d=e.String??i.$v,h=new(e.Transform??i.Wc)({type:"transform",transform:(e,t)=>{let r=e;return"sensitive"!==n.case&&(r=r.toLowerCase()),!!o.has(r)||!l.has(r)&&(t.issues.push({code:"invalid_value",expected:"stringbool",values:[...o,...l],input:t.value,inst:h}),{})},error:n.error}),p=new u({type:"pipe",in:new d({type:"string",error:n.error}),out:h,error:n.error});return new u({type:"pipe",in:p,out:new c({type:"boolean",error:n.error}),error:n.error})}function e9(e,t,n,r={}){let i=s.normalizeParams(r),a={...s.normalizeParams(r),check:"string_format",type:"string",format:t,fn:"function"==typeof n?n:e=>n.test(e),...i};return n instanceof RegExp&&(a.pattern=n),new e(a)}},49067:(e,t)=>{function n(e){let{widthInt:t,heightInt:n,blurWidth:r,blurHeight:i,blurDataURL:s,objectFit:a}=e,o=r?40*r:t,l=i?40*i:n,u=o&&l?"viewBox='0 0 "+o+" "+l+"'":"";return"%3Csvg xmlns='http://www.w3.org/2000/svg' "+u+"%3E%3Cfilter id='b' color-interpolation-filters='sRGB'%3E%3CfeGaussianBlur stdDeviation='20'/%3E%3Cfe
46ColorMatrix values='1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 100 -1' result='s'/%3E%3CfeFlood x='0' y='0' width='100%25' height='100%25'/%3E%3CfeComposite operator='out' in='s'/%3E%3CfeComposite in2='SourceGraphic'/%3E%3CfeGaussianBlur stdDeviation='20'/%3E%3C/filter%3E%3Cimage width='100%25' height='100%25' x='0' y='0' preserveAspectRatio='"+(u?"none":"contain"===a?"xMidYMid":"cover"===a?"xMidYMid slice":"none")+"' style='filter: url(%23b);' href='"+s+"'/%3E%3C/svg%3E"}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getImageBlurSvg",{enumerable:!0,get:function(){return n}})},49564:(e,t,n)=>{n.d(t,{K:()=>i});var r=n(22698);function i(){return(0,r.U)(1)}},50146:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getImgProps",{enumerable:!0,get:function(){return l}}),n(47299);let r=n(49067),i=n(80527),s=["-moz-initial","fill","none","scale-down",void 0];function a(e){return void 0!==e.default}function o(e){return void 0===e?e:"number"==typeof e?Number.isFinite(e)?e:NaN:"string"==typeof e&&/^[0-9]+$/.test(e)?parseInt(e,10):NaN}function l(e,t){var n,l;let u,c,d,{src:h,sizes:p,unoptimized:f=!1,priority:m=!1,loading:g,className:y,quality:v,width:b,height:E,fill:T=!1,style:_,overrideSrc:A,onLoad:x,onLoadingComplete:k,placeholder:S="empty",blurDataURL:w,fetchPriority:I,decoding:C="async",layout:N,objectFit:R,objectPosition:O,lazyBoundary:P,lazyRoot:D,...M}=e,{imgConf:L,showAltText:j,blurComplete:z,defaultLoader:F}=t,B=L||i.imageConfigDefault;if("allSizes"in B)u=B;else{let e=[...B.deviceSizes,...B.imageSizes].sort((e,t)=>e-t),t=B.deviceSizes.sort((e,t)=>e-t),r=null==(n=B.qualities)?void 0:n.sort((e,t)=>e-t);u={...B,allSizes:e,deviceSizes:t,qualities:r}}if(void 0===F)throw Object.defineProperty(Error("images.loaderFile detected but the file is missing default export.\nRead more: https://nextjs.org/docs/messages/invalid-images-config"),"__NEXT_ERROR_CODE",{value:"E163",enumerable:!1,configurable:!0});let $=M.loader||F;delete M.loader,delete M.srcSet;let U="__next_img_default"in $;if(U){if("custom"===u.loader)throw Object.defineProperty(Error('Image with src "'+h+'" is missing "loader" prop.\nRead more: https://nextjs.org/docs/messages/next-image-missing-loader'),"__NEXT_ERROR_CODE",{value:"E252",enumerable:!1,configurable:!0})}else{let e=$;$=t=>{let{config:n,...r}=t;return e(r)}}if(N){"fill"===N&&(T=!0);let e={intrinsic:{maxWidth:"100%",height:"auto"},responsive:{width:"100%",height:"auto"}}[N];e&&(_={..._,...e});let t={responsive:"100vw",fill:"100vw"}[N];t&&!p&&(p=t)}let H="",G=o(b),Y=o(E),Z=!1;if((l=h)&&"object"==typeof l&&(a(l)||void 0!==l.src)){let e=a(h)?h.default:h;if(!e.src)throw Object.defineProperty(Error("An object should only be passed to the image component src parameter if it comes from a static image import. It must include src. Received "+JSON.stringify(e)),"__NEXT_ERROR_CODE",{value:"E460",enumerable:!1,configurable:!0});if(!e.height||!e.width)throw Object.defineProperty(Error("An object should only be passed to the image component src parameter if it comes from a static image import. It must include height and width. Received "+JSON.stringify(e)),"__NEXT_ERROR_CODE",{value:"E48",enumerable:!1,configurable:!0});if(c=e.blurWidth,d=e.blurHeight,w=w||e.blurDataURL,H=e.src,Z=/\.avif(?:\?|$)/i.test(H),!T)if(G||Y){if(G&&!Y){let t=G/e.width;Y=Math.round(e.height*t)}else if(!G&&Y){let t=Y/e.height;G=Math.round(e.width*t)}}else G=e.width,Y=e.height}Z&&"blur"===S&&!w&&(S="empty");let V=!m&&("lazy"===g||void 0===g);(!(h="string"==typeof h?h:H)||h.startsWith("data:")||h.startsWith("blob:"))&&(f=!0,V=!1),u.unoptimized&&(f=!0),U&&!u.dangerouslyAllowSVG&&h.split("?",1)[0].endsWith(".svg")&&(f=!0);let W=o(v),q=Object.assign(T?{position:"absolute",height:"100%",width:"100%",left:0,top:0,right:0,bottom:0,objectFit:R,objectPosition:O}:{},j?{}:{color:"transparent"},_),K=z||"empty"===S?null:"blur"===S?'url("data:image/svg+xml;charset=utf-8,'+(0,r.getImageBlurSvg)({widthInt:G,heightInt:Y,blurWidth:c,blurHeight:d,blurDataURL:w||"",objectFit:q.objectFit})+'")':'url("'+S+'")',X=s.includes(q.objectFit)?"fill"===q.objectFit?"100% 100%":"cover":q.objectFit,Q=K?{backgroundSize:X,backgroundPosition:q.objectPosition||"50% 50%",backgroundRepeat:"no-repeat",backgroundImage:K}:{}
46,J=function(e){let{config:t,src:n,unoptimized:r,width:i,quality:s,sizes:a,loader:o}=e;if(r)return{src:n,srcSet:void 0,sizes:void 0};let{widths:l,kind:u}=function(e,t,n){let{deviceSizes:r,allSizes:i}=e;if(n){let e=/(^|\s)(1?\d?\d)vw/g,t=[];for(let r;r=e.exec(n);)t.push(parseInt(r[2]));if(t.length){let e=.01*Math.min(...t);return{widths:i.filter(t=>t>=r[0]*e),kind:"w"}}return{widths:i,kind:"w"}}return"number"!=typeof t?{widths:r,kind:"w"}:{widths:[...new Set([t,2*t].map(e=>i.find(t=>t>=e)||i[i.length-1]))],kind:"x"}}(t,i,a),c=l.length-1;return{sizes:a||"w"!==u?a:"100vw",srcSet:l.map((e,r)=>o({config:t,src:n,quality:s,width:e})+" "+("w"===u?e:r+1)+u).join(", "),src:o({config:t,src:n,quality:s,width:l[c]})}}({config:u,src:h,unoptimized:f,width:G,quality:W,sizes:p,loader:$});return{props:{...M,loading:V?"lazy":g,fetchPriority:I,width:G,height:Y,decoding:C,className:y,style:{...q,...Q},sizes:J.sizes,srcSet:J.srcSet,src:A||J.src},meta:{unoptimized:f,priority:m,placeholder:S,fill:T}}}},50742:(e,t,n)=>{n.d(t,{D:()=>r});function r(e){return e}},50915:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"AmpStateContext",{enumerable:!0,get:function(){return r}});let r=n(59224)._(n(23073)).default.createContext({})},51068:(e,t,n)=>{n.d(t,{B:()=>l});var r,i=n(23073),s=n(54728),a=(r||(r=n.t(i,2)))[" useId ".trim().toString()]||(()=>void 0),o=0;function l(e){let[t,n]=i.useState(a());return(0,s.N)(()=>{e||n(e=>e??String(o++))},[e]),e||(t?`radix-${t}`:"")}},51346:(e,t,n)=>{n.d(t,{Q:()=>o});var r=n(34401),i=n(28963),s=n(59761),a=n(60184);function o(e){return(0,r.N)(function(t,n){(0,s.Tg)(e).subscribe((0,i._)(n,function(){return n.complete()},a.l)),n.closed||t.subscribe(n)})}},51846:(e,t,n)=>{n.d(t,{A:()=>r});let r=(0,n(45751).A)("x",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]])},52851:(e,t,n)=>{n.d(t,{o:()=>r});function r(e,t){if(e){var n=e.indexOf(t);0<=n&&e.splice(n,1)}}},54236:(e,t,n)=>{n.d(t,{z:()=>p,B:()=>f});var r=n(805),i=n(23073);let s={damping:.7,stiffness:.05,mass:1.25},a=1e3/60,o=!1;function l(e,t){let n=(0,i.useCallback)(t=>(n.current=t,e(t)),t);return n}globalThis.document?.addEventListener("mousedown",()=>{o=!0}),globalThis.document?.addEventListener("mouseup",()=>{o=!1}),globalThis.document?.addEventListener("click",()=>{o=!1});let u=new Map;function c(...e){let t={...s},n=!1;for(let r of e){if("instant"===r){n=!0;continue}"object"==typeof r&&(n=!1,t.damping=r.damping??t.damping,t.stiffness=r.stiffness??t.stiffness,t.mass=r.mass??t.mass)}let r=JSON.stringify(t);return u.has(r)||u.set(r,Object.freeze(t)),n?"instant":u.get(r)}let d=(0,i.createContext)(null),h="undefined"!=typeof window?i.useLayoutEffect:i.useEffect;function p({instance:e,children:t,resize:n,initial:s,mass:u,damping:p,stiffness:f,targetScrollTop:m,contextRef:g,...y}){let v=(0,i.useRef)(null),b=((e={})=>{let[t,n]=(0,i.useState)(!1),[r,s]=(0,i.useState)(!1!==e.initial),[u,d]=(0,i.useState)(!1),h=(0,i.useRef)(null);h.current=e;let p=(0,i.useCallback)(()=>{if(!o)return!1;let e=window.getSelection();if(!e||!e.rangeCount)return!1;let t=e.getRangeAt(0);return t.commonAncestorContainer.contains(T.current)||T.current?.contains(t.commonAncestorContainer)},[]),f=(0,i.useCallback)(e=>{g.isAtBottom=e,s(e)},[]),m=(0,i.useCallback)(e=>{g.escapedFromLock=e,n(e)},[]),g=(0,i.useMemo)(()=>{let n;return{escapedFromLock:t,isAtBottom:r,resizeDifference:0,accumulated:0,velocity:0,listeners:new Set,get scrollTop(){return T.current?.scrollTop??0},set scrollTop(scrollTop){T.current&&(T.current.scrollTop=scrollTop,g.ignoreScrollToTop=T.current.scrollTop)},get targetScrollTop(){if(!T.current||!_.current)return 0;return T.current.scrollHeight-1-T.current.clientHeight},get calculatedTargetScrollTop(){if(!T.current||!_.current)return 0;let{targetScrollTop:t}=this;if(!e.targetScrollTop)return t;if(n?.targetScrollTop===t)return n.calculatedScrollTop;let r=Math.max(Math.min(e.targetScrollTop(t,{scrollElement:T.current,contentElement:_.current}),t),0);return n={targetScrollTop:t,calculatedScrollTop:r},requestAnimationFrame(()=>{n=void 0}),r},get scrollDifference(){return this.calculatedTargetScrollTop-this.scrollTop},get isNearBottom(){return this.scrollDifference<=70}}},[]),y=(0,i.useCallback)((e={})=>{let t;"string"==typeof e&&(e={animation:e}),e.preserveScrollPosition||f(!0);let n=Date.now()+(Number(e.wait)||0),r=c(h.current,e.animation),{ignoreEscapes:i=!1}=e,s=g.calculatedTargetScrollTop;e.duration instanceof Promise?e.duration.finally(()=>{t=Date.now()}):t=n+(e.duration??0);let o=async()=>{let e=new Promise(requestAnimationFrame).then(()=>
46{if(!g.isAtBottom)return g.animation=void 0,!1;let{scrollTop:l}=g,u=performance.now(),d=(u-(g.lastTick??u))/a;if(g.animation||(g.animation={behavior:r,promise:e,ignoreEscapes:i}),g.animation.behavior===r&&(g.lastTick=u),p()||n>Date.now())return o();if(l<Math.min(s,g.calculatedTargetScrollTop)){if(g.animation?.behavior===r){if("instant"===r)return g.scrollTop=g.calculatedTargetScrollTop,o();g.velocity=(r.damping*g.velocity+r.stiffness*g.scrollDifference)/r.mass,g.accumulated+=g.velocity*d,g.scrollTop+=g.accumulated,g.scrollTop!==l&&(g.accumulated=0)}return o()}return t>Date.now()?(s=g.calculatedTargetScrollTop,o()):(g.animation=void 0,g.scrollTop<g.calculatedTargetScrollTop)?y({animation:c(h.current,h.current.resize),ignoreEscapes:i,duration:Math.max(0,t-Date.now())||void 0}):g.isAtBottom});return e.then(e=>(requestAnimationFrame(()=>{g.animation||(g.lastTick=void 0,g.velocity=0)}),e))};return(!0!==e.wait&&(g.animation=void 0),g.animation?.behavior===r)?g.animation.promise:o()},[f,p,g]),v=(0,i.useCallback)(()=>{m(!0),f(!1)},[m,f]),b=(0,i.useCallback)(({target:e})=>{if(e!==T.current)return;let{scrollTop:t,ignoreScrollToTop:n}=g,{lastScrollTop:r=t}=g;g.lastScrollTop=t,g.ignoreScrollToTop=void 0,n&&n>t&&(r=n),d(g.isNearBottom),setTimeout(()=>{if(g.resizeDifference||t===n)return;if(p()){m(!0),f(!1);return}let e=t>r,i=t<r;if(g.animation?.ignoreEscapes){g.scrollTop=r;return}i&&(m(!0),f(!1)),e&&m(!1),!g.escapedFromLock&&g.isNearBottom&&f(!0)},1)},[m,f,p,g]),E=(0,i.useCallback)(({target:e,deltaY:t})=>{let n=e;for(;!["scroll","auto"].includes(getComputedStyle(n).overflow);){if(!n.parentElement)return;n=n.parentElement}n===T.current&&t<0&&T.current.scrollHeight>T.current.clientHeight&&!g.animation?.ignoreEscapes&&(m(!0),f(!1))},[m,f,g]),T=l(e=>{T.current?.removeEventListener("scroll",b),T.current?.removeEventListener("wheel",E),e?.addEventListener("scroll",b,{passive:!0}),e?.addEventListener("wheel",E,{passive:!0})},[]),_=l(e=>{let t;g.resizeObserver?.disconnect(),e&&(g.resizeObserver=new ResizeObserver(([e])=>{let{height:n}=e.contentRect,r=n-(t??n);if(g.resizeDifference=r,g.scrollTop>g.targetScrollTop&&(g.scrollTop=g.targetScrollTop),d(g.isNearBottom),r>=0){let e=c(h.current,t?h.current.resize:h.current.initial);y({animation:e,wait:!0,preserveScrollPosition:!0,duration:"instant"===e?void 0:350})}else g.isNearBottom&&(m(!1),f(!0));t=n,requestAnimationFrame(()=>{setTimeout(()=>{g.resizeDifference===r&&(g.resizeDifference=0)},1)})}),g.resizeObserver?.observe(e))},[]);return{contentRef:_,scrollRef:T,scrollToBottom:y,stopScroll:v,isAtBottom:r||u,isNearBottom:u,escapedFromLock:t,state:g}})({mass:u,damping:p,stiffness:f,resize:n,initial:s,targetScrollTop:i.useCallback((e,t)=>{let n=w?.targetScrollTop??m;return n?.(e,t)??e},[m])}),{scrollRef:E,contentRef:T,scrollToBottom:_,stopScroll:A,isAtBottom:x,escapedFromLock:k,state:S}=e??b,w=(0,i.useMemo)(()=>({scrollToBottom:_,stopScroll:A,scrollRef:E,isAtBottom:x,escapedFromLock:k,contentRef:T,state:S,get targetScrollTop(){return v.current},set targetScrollTop(targetScrollTop){v.current=targetScrollTop}}),[_,x,T,E,A,k,S]);return(0,i.useImperativeHandle)(g,()=>w,[w]),h(()=>{E.current&&"visible"===getComputedStyle(E.current).overflow&&(E.current.style.overflow="auto")},[]),(0,r.jsx)(d.Provider,{value:w,children:(0,r.jsx)("div",{...y,children:"function"==typeof t?t(w):t})})}function f(){let e=(0,i.useContext)(d);if(!e)throw Error("use-stick-to-bottom component context must be used within a StickToBottom component");return e}(p||(p={})).Content=function({children:e,...t}){let n=f();return(0,r.jsx)("div",{ref:n.scrollRef,style:{height:"100%",width:"100%"},children:(0,r.jsx)("div",{...t,ref:n.contentRef,children:"function"==typeof e?e(n):e})})}},54489:(e,t,n)=>{n.d(t,{S:()=>s});var r=n(34401),i=n(28963);function s(e,t){var n;return(0,r.N)((n=arguments.length>=2,function(r,s){var a=n,o=t,l=0;r.subscribe((0,i._)(s,function(t){var n=l++;o=a?e(o,t,n):(a=!0,t),s.next(o)},void 0))}))}},54565:(e,t,n)=>{let r;function i(e){return null!==e&&"object"==typeof e&&"function"==typeof e.start}n.d(t,{G:()=>si});let s=e=>Array.isArray(e);function a(e,t){if(!Array.isArray(t))return!1;let n=t.length;if(n!==e.length)return!1;for(let r=0;r<n;r++)if(t[r]!==e[r])return!1;return!0}function o(e){return"string"==typeof e||Array.isArray(e)}function l(e){let t=[{},{}];
46return null==e||e.values.forEach((e,n)=>{t[0][n]=e.get(),t[1][n]=e.getVelocity()}),t}function u(e,t,n,r){if("function"==typeof t){let[i,s]=l(r);t=t(void 0!==n?n:e.custom,i,s)}if("string"==typeof t&&(t=e.variants&&e.variants[t]),"function"==typeof t){let[i,s]=l(r);t=t(void 0!==n?n:e.custom,i,s)}return t}function c(e,t,n){let r=e.getProps();return u(r,t,void 0!==n?n:r.custom,e)}let d=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],h=["initial",...d];function p(e,t){return e?e[t]||e.default||e:void 0}let f=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],m=new Set(f),g=new Set(["width","height","top","left","right","bottom",...f]),y=e=>s(e)?e[e.length-1]||0:e,v={skipAnimations:!1,useManualTiming:!1},b=e=>e,E=["read","resolveKeyframes","update","preRender","render","postRender"];function T(e,t){let n=!1,r=!0,i={delta:0,timestamp:0,isProcessing:!1},s=()=>n=!0,a=E.reduce((e,t)=>(e[t]=function(e){let t=new Set,n=new Set,r=!1,i=!1,s=new WeakSet,a={delta:0,timestamp:0,isProcessing:!1};function o(t){s.has(t)&&(l.schedule(t),e()),t(a)}let l={schedule:(e,i=!1,a=!1)=>{let o=a&&r?t:n;return i&&s.add(e),o.has(e)||o.add(e),e},cancel:e=>{n.delete(e),s.delete(e)},process:e=>{if(a=e,r){i=!0;return}r=!0,[t,n]=[n,t],t.forEach(o),t.clear(),r=!1,i&&(i=!1,l.process(e))}};return l}(s),e),{}),{read:o,resolveKeyframes:l,update:u,preRender:c,render:d,postRender:h}=a,p=()=>{let s=v.useManualTiming?i.timestamp:performance.now();n=!1,i.delta=r?1e3/60:Math.max(Math.min(s-i.timestamp,40),1),i.timestamp=s,i.isProcessing=!0,o.process(i),l.process(i),u.process(i),c.process(i),d.process(i),h.process(i),i.isProcessing=!1,n&&t&&(r=!1,e(p))};return{schedule:E.reduce((t,s)=>{let o=a[s];return t[s]=(t,s=!1,a=!1)=>(!n&&(n=!0,r=!0,i.isProcessing||e(p)),o.schedule(t,s,a)),t},{}),cancel:e=>{for(let t=0;t<E.length;t++)a[E[t]].cancel(e)},state:i,steps:a}}let{schedule:_,cancel:A,state:x,steps:k}=T("undefined"!=typeof requestAnimationFrame?requestAnimationFrame:b,!0);function S(){r=void 0}let w={now:()=>(void 0===r&&w.set(x.isProcessing||v.useManualTiming?x.timestamp:performance.now()),r),set:e=>{r=e,queueMicrotask(S)}};function I(e,t){-1===e.indexOf(t)&&e.push(t)}function C(e,t){let n=e.indexOf(t);n>-1&&e.splice(n,1)}class N{constructor(){this.subscriptions=[]}add(e){return I(this.subscriptions,e),()=>C(this.subscriptions,e)}notify(e,t,n){let r=this.subscriptions.length;if(r)if(1===r)this.subscriptions[0](e,t,n);else for(let i=0;i<r;i++){let r=this.subscriptions[i];r&&r(e,t,n)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}let R={current:void 0};class O{constructor(e,t={}){this.version="11.18.2",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(e,t=!0)=>{let n=w.now();this.updatedAt!==n&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(e),this.current!==this.prev&&this.events.change&&this.events.change.notify(this.current),t&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.hasAnimated=!1,this.setCurrent(e),this.owner=t.owner}setCurrent(e){this.current=e,this.updatedAt=w.now(),null===this.canTrackVelocity&&void 0!==e&&(this.canTrackVelocity=!isNaN(parseFloat(this.current)))}setPrevFrameValue(e=this.current){this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt}onChange(e){return this.on("change",e)}on(e,t){this.events[e]||(this.events[e]=new N);let n=this.events[e].add(t);return"change"===e?()=>{n(),_.read(()=>{this.events.change.getSize()||this.stop()})}:n}clearListeners(){for(let e in this.events)this.events[e].clear()}attach(e,t){this.passiveEffect=e,this.stopPassiveEffect=t}set(e,t=!0){t&&this.passiveEffect?this.passiveEffect(e,this.updateAndNotify):this.updateAndNotify(e,t)}setWithVelocity(e,t,n){this.set(t),this.prev=void 0,this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt-n}jump(e,t=!0){this.updateAndNotify(e),this.prev=e,this.prevUpdatedAt=this.prevFrameValue=void 0,t&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return R.current&&R.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){var e;let t=w.now();if(!this.canTrackVelocity||void 0===this.prevFrameValue||t-this.updatedAt>30)return 0;let n=Math.min(this.updatedAt-this.prevUpdatedAt,30);return e=parseFloat(this.current)-parseFloat(this.prevFrameValue),n?1e3/n*e:0}start(e){return this.stop(),new Promise(t=>{this.hasAnimated=!0,this.animation=e(t),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function P(e,t){return new O(e,t)}let D=e=>!!(e&&e.getVelocity);function M(e,t){let n=e.getValue("willChange");if(D(n)&&n.add)return n.add(t)}let L=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),j="data-"+L("framerAppearId");function z(e){let t;return()=>(void 0===t&&(t=e()),t)}let F=z(()=>void 0!==window.ScrollTimeline);class B{constructor(e){this.stop=()=>this.runAll("stop"),this.animations=e.filter(Boolean)}get finished(){return Promise.all(this.animations.map(e=>"finished"in e?e.finished:e))}getAll(e){return this.animations[0][e]}setAll(e,t){for(let n=0;n<this.animations.length;n++)this.animations[n][e]=t}attachTimeline(e,t){let n=this.animations.map(n=>F()&&n.attachTimeline?n.attachTimeline(e):"function"==typeof t?t(n):void 0);return()=>
46{n.forEach((e,t)=>{e&&e(),this.animations[t].stop()})}}get time(){return this.getAll("time")}set time(e){this.setAll("time",e)}get speed(){return this.getAll("speed")}set speed(e){this.setAll("speed",e)}get startTime(){return this.getAll("startTime")}get duration(){let e=0;for(let t=0;t<this.animations.length;t++)e=Math.max(e,this.animations[t].duration);return e}runAll(e){this.animations.forEach(t=>t[e]())}flatten(){this.runAll("flatten")}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}}class $ extends B{then(e,t){return Promise.all(this.animations).then(e).catch(t)}}let U=e=>1e3*e,H={current:!1};function G(e){return"function"==typeof e}function Y(e,t){e.timeline=t,e.onfinish=null}let Z=e=>Array.isArray(e)&&"number"==typeof e[0],V={linearEasing:void 0},W=function(e,t){let n=z(e);return()=>{var e;return null!=(e=V[t])?e:n()}}(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch(e){return!1}return!0},"linearEasing"),q=(e,t,n)=>{let r=t-e;return 0===r?1:(n-e)/r},K=(e,t,n=10)=>{let r="",i=Math.max(Math.round(t/n),2);for(let t=0;t<i;t++)r+=e(q(0,i-1,t))+", ";return`linear(${r.substring(0,r.length-2)})`},X=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,Q={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:X([0,.65,.55,1]),circOut:X([.55,0,1,.45]),backIn:X([.31,.01,.66,-.59]),backOut:X([.33,1.53,.69,.99])},J=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e;function ee(e,t,n,r){return e===t&&n===r?b:i=>0===i||1===i?i:J(function(e,t,n,r,i){let s,a,o=0;do(s=J(a=t+(n-t)/2,r,i)-e)>0?n=a:t=a;while(Math.abs(s)>1e-7&&++o<12);return a}(i,0,1,e,n),t,r)}let et=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,en=e=>t=>1-e(1-t),er=ee(.33,1.53,.69,.99),ei=en(er),es=et(ei),ea=e=>(e*=2)<1?.5*ei(e):.5*(2-Math.pow(2,-10*(e-1))),eo=e=>1-Math.sin(Math.acos(e)),el=en(eo),eu=et(eo),ec=e=>/^0[^.\s]+$/u.test(e),ed=(e,t,n)=>n>t?t:n<e?e:n,eh={test:e=>"number"==typeof e,parse:parseFloat,transform:e=>e},ep={...eh,transform:e=>ed(0,1,e)},ef={...eh,default:1},em=e=>Math.round(1e5*e)/1e5,eg=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu,ey=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,ev=(e,t)=>n=>!!("string"==typeof n&&ey.test(n)&&n.startsWith(e)||t&&null!=n&&Object.prototype.hasOwnProperty.call(n,t)),eb=(e,t,n)=>r=>{if("string"!=typeof r)return r;let[i,s,a,o]=r.match(eg);return{[e]:parseFloat(i),[t]:parseFloat(s),[n]:parseFloat(a),alpha:void 0!==o?parseFloat(o):1}},eE={...eh,transform:e=>Math.round(ed(0,255,e))},eT={test:ev("rgb","red"),parse:eb("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+eE.transform(e)+", "+eE.transform(t)+", "+eE.transform(n)+", "+em(ep.transform(r))+")"},e_={test:ev("#"),parse:function(e){let t="",n="",r="",i="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),i=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),i=e.substring(4,5),t+=t,n+=n,r+=r,i+=i),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:i?parseInt(i,16)/255:1}},transform:eT.transform},eA=e=>({test:t=>"string"==typeof t&&t.endsWith(e)&&1===t.split(" ").length,parse:parseFloat,transform:t=>`${t}${e}`}),ex=eA("deg"),ek=eA("%"),eS=eA("px"),ew=eA("vh"),eI=eA("vw"),eC={...ek,parse:e=>ek.parse(e)/100,transform:e=>ek.transform(100*e)},eN={test:ev("hsl","hue"),parse:eb("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+ek.transform(em(t))+", "+ek.transform(em(n))+", "+em(ep.transform(r))+")"},eR={test:e=>eT.test(e)||e_.test(e)||eN.test(e),parse:e=>eT.test(e)?eT.parse(e):eN.test(e)?eN.parse(e):e_.parse(e),transform:e=>"string"==typeof e?e:e.hasOwnProperty("red")?eT.transform(e):eN.transform(e)},eO=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu,eP="number",eD="color",eM=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function eL(e){let t=e.toString(),n=[],r={color:[],number:[],var:[]},i=[],s=0,a=t.replace(eM,e=>(eR.test(e)?(r.color.push(s),i.push(eD),n.push(eR.parse(e))):e.startsWith("var(")?(r.var.push(s),i.push("var"),n.push(e)):(r.number.push(s),i.push(eP),n.push(parseFloat(e))),++s,"${}")).split("${}");return{values:n,split:a,indexes:r,types:i}}function ej(e){return eL(e).values}function ez(e){let{split:t,types:n}=eL(e),r=t.length;return e=>{let i="";for(let s=0;s<r;s++)if(i+=t[s],void 0!==e[s]){let t=n[s];t===eP?i+=em(e[s]):t===eD?i+=eR.transform(e[s]):i+=e[s]}return i}}let eF=e=>"number"==typeof e?0:e,eB={test:function(e){var t,n;return isNaN(e)&&"string"==typeof e&&((null==(t=e.match(eg))?void 0:t.length)||0)+((null==(n=e.match(eO))?void 0:n.length)||0)>0},parse:ej,createTransformer:ez,getAnimatableNone:function(e){let t=ej(e);return ez(e)(t.map(eF))}},e$=new Set(["brightness","contrast","saturate","opacity"]);function eU(e){let[t,n]=e.slice(0,-1).split("(");if("drop-shadow"===t)return e;let[r]=n.match(eg)||[];if(!r)return e;let i=n.replace(r,""),s=+!!e$.has(t);return r!==n&&(s*=100),t+"("+s+i+")"}let eH=/\b([a-z-]*)\(.*?\)/gu,eG={...eB,getAnimatableNone:e=>{let t=e.match(eH);return t?t.map(eU).join(" "):e}},eY={...eh,transform:Math.round},eZ={borderWidth:eS,borderTopWidth:eS,borderRightWidth:eS,borderBottomWidth:eS,borderLeftWidth:eS,borderRadius:eS,radius:eS,borderTopLeftRadius:eS,borderTopRightRadius:eS,borderBottomRightRadius:eS,borderBottomLeftRadius:eS,width:eS,maxWidth:eS,height:eS,maxHeight:eS,top:eS,right:eS,bottom:eS,left
46:eS,padding:eS,paddingTop:eS,paddingRight:eS,paddingBottom:eS,paddingLeft:eS,margin:eS,marginTop:eS,marginRight:eS,marginBottom:eS,marginLeft:eS,backgroundPositionX:eS,backgroundPositionY:eS,rotate:ex,rotateX:ex,rotateY:ex,rotateZ:ex,scale:ef,scaleX:ef,scaleY:ef,scaleZ:ef,skew:ex,skewX:ex,skewY:ex,distance:eS,translateX:eS,translateY:eS,translateZ:eS,x:eS,y:eS,z:eS,perspective:eS,transformPerspective:eS,opacity:ep,originX:eC,originY:eC,originZ:eS,zIndex:eY,size:eS,fillOpacity:ep,strokeOpacity:ep,numOctaves:eY},eV={...eZ,color:eR,backgroundColor:eR,outlineColor:eR,fill:eR,stroke:eR,borderColor:eR,borderTopColor:eR,borderRightColor:eR,borderBottomColor:eR,borderLeftColor:eR,filter:eG,WebkitFilter:eG},eW=e=>eV[e];function eq(e,t){let n=eW(e);return n!==eG&&(n=eB),n.getAnimatableNone?n.getAnimatableNone(t):void 0}let eK=new Set(["auto","none","0"]),eX=e=>e===eh||e===eS,eQ=(e,t)=>parseFloat(e.split(", ")[t]),eJ=(e,t)=>(n,{transform:r})=>{if("none"===r||!r)return 0;let i=r.match(/^matrix3d\((.+)\)$/u);if(i)return eQ(i[1],t);{let t=r.match(/^matrix\((.+)\)$/u);return t?eQ(t[1],e):0}},e0=new Set(["x","y","z"]),e1=f.filter(e=>!e0.has(e)),e2={width:({x:e},{paddingLeft:t="0",paddingRight:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),height:({y:e},{paddingTop:t="0",paddingBottom:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:eJ(4,13),y:eJ(5,14)};e2.translateX=e2.x,e2.translateY=e2.y;let e3=new Set,e4=!1,e9=!1;function e5(){if(e9){let e=Array.from(e3).filter(e=>e.needsMeasurement),t=new Set(e.map(e=>e.element)),n=new Map;t.forEach(e=>{let t=function(e){let t=[];return e1.forEach(n=>{let r=e.getValue(n);void 0!==r&&(t.push([n,r.get()]),r.set(+!!n.startsWith("scale")))}),t}(e);t.length&&(n.set(e,t),e.render())}),e.forEach(e=>e.measureInitialState()),t.forEach(e=>{e.render();let t=n.get(e);t&&t.forEach(([t,n])=>{var r;null==(r=e.getValue(t))||r.set(n)})}),e.forEach(e=>e.measureEndState()),e.forEach(e=>{void 0!==e.suspendedScrollY&&window.scrollTo(0,e.suspendedScrollY)})}e9=!1,e4=!1,e3.forEach(e=>e.complete()),e3.clear()}function e6(){e3.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(e9=!0)})}class e8{constructor(e,t,n,r,i,s=!1){this.isComplete=!1,this.isAsync=!1,this.needsMeasurement=!1,this.isScheduled=!1,this.unresolvedKeyframes=[...e],this.onComplete=t,this.name=n,this.motionValue=r,this.element=i,this.isAsync=s}scheduleResolve(){this.isScheduled=!0,this.isAsync?(e3.add(this),e4||(e4=!0,_.read(e6),_.resolveKeyframes(e5))):(this.readKeyframes(),this.complete())}readKeyframes(){let{unresolvedKeyframes:e,name:t,element:n,motionValue:r}=this;for(let i=0;i<e.length;i++)if(null===e[i])if(0===i){let i=null==r?void 0:r.get(),s=e[e.length-1];if(void 0!==i)e[0]=i;else if(n&&t){let r=n.readValue(t,s);null!=r&&(e[0]=r)}void 0===e[0]&&(e[0]=s),r&&void 0===i&&r.set(e[0])}else e[i]=e[i-1]}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(){this.isComplete=!0,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe),e3.delete(this)}cancel(){this.isComplete||(this.isScheduled=!1,e3.delete(this))}resume(){this.isComplete||this.scheduleResolve()}}let e7=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),te=e=>t=>"string"==typeof t&&t.startsWith(e),tt=te("--"),tn=te("var(--"),tr=e=>!!tn(e)&&ti.test(e.split("/*")[0].trim()),ti=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,ts=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u,ta=e=>t=>t.test(e),to=[eh,eS,ek,ex,eI,ew,{test:e=>"auto"===e,parse:e=>e}],tl=e=>to.find(ta(e));class tu extends e8{constructor(e,t,n,r,i){super(e,t,n,r,i,!0)}readKeyframes(){let{unresolvedKeyframes:e,element:t,name:n}=this;if(!t||!t.current)return;super.readKeyframes();for(let n=0;n<e.length;n++){let r=e[n];if("string"==typeof r&&tr(r=r.trim())){let i=function e(t,n,r=1){b(r<=4,`Max CSS variable fallback depth detected in property "${t}". This may indicate a circular fallback dependency.`);let[i,s]=function(e){let t=ts.exec(e);if(!t)return[,];let[,n,r,i]=t;return[`--${null!=n?n:r}`,i]}(t);if(!i)return;let a=window.getComputedStyle(n).getPropertyValue(i);if(a){let e=a.trim();return e7(e)?parseFloat(e):e}return tr(s)?e(s,n,r+1):s}(r,t.current);void 0!==i&&(e[n]=i),n===e.length-1&&(this.finalKeyframe=r)}}if(this.resolveNoneKeyframes(),!g.has(n)||2!==e.length)return;let[r,i]=e,s=tl(r),a=tl(i);if(s!==a)if(eX(s)&&eX(a))for(let t=0;t<e.length;t++){let n=e[t];"string"==typeof n&&(e[t]=parseFloat(n))}else this.needsMeasurement=!0}resolveNoneKeyframes(){let{unresolvedKeyframes:e,name:t}=this,n=[];for(let t=0;t<e.length;t++){var r;("number"==typeof(r=e[t])?0===r:null===r||"none"===r||"0"===r||ec(r))&&n.push(t)}n.length&&function(e,t,n){let r,i=0;for(;i<e.length&&!r;){let t=e[i];"string"==typeof t&&!eK.has(t)&&eL(t).values.length&&(r=e[i]),i++}if(r&&n)for(let i of t)e[i]=eq(n,r)}(e,n,t)}measureInitialState(){let{element:e,unresolvedKeyframes:t,name:n}=this;if(!e||!e.current)return;"height"===n&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=e2[n](e.measureViewportBox(),window.getComputedStyle(e.current)),t[0]=this.measuredOrigin;let r=t[t.length-1];void 0!==r&&e.getValue(n,r).jump(r,!1)}measureEndState(){var e;let{element:t,name:n,unresolvedKeyframes:r}=this;if(!t||!t.current)return;let i=t.getValue(n);i&&i.jump(this.measuredOrigin,!1);let s=r.length-1,a=r[s];r[s]=e2[n](t.measureViewportBox(),window.getComputedStyle(t.current)),null!==a&&void 0===this.finalKeyframe&&(this.finalKeyframe=a),(null==(e=this.removedTransforms)?void 0:e.length)&&this.removedTransforms.forEac
46h(([e,n])=>{t.getValue(e).set(n)}),this.resolveNoneKeyframes()}}let tc=(e,t)=>"zIndex"!==t&&!!("number"==typeof e||Array.isArray(e)||"string"==typeof e&&(eB.test(e)||"0"===e)&&!e.startsWith("url(")),td=e=>null!==e;function th(e,{repeat:t,repeatType:n="loop"},r){let i=e.filter(td),s=t&&"loop"!==n&&t%2==1?0:i.length-1;return s&&void 0!==r?r:i[s]}class tp{constructor({autoplay:e=!0,delay:t=0,type:n="keyframes",repeat:r=0,repeatDelay:i=0,repeatType:s="loop",...a}){this.isStopped=!1,this.hasAttemptedResolve=!1,this.createdAt=w.now(),this.options={autoplay:e,delay:t,type:n,repeat:r,repeatDelay:i,repeatType:s,...a},this.updateFinishedPromise()}calcStartTime(){return this.resolvedAt&&this.resolvedAt-this.createdAt>40?this.resolvedAt:this.createdAt}get resolved(){return this._resolved||this.hasAttemptedResolve||(e6(),e5()),this._resolved}onKeyframesResolved(e,t){this.resolvedAt=w.now(),this.hasAttemptedResolve=!0;let{name:n,type:r,velocity:i,delay:s,onComplete:a,onUpdate:o,isGenerator:l}=this.options;if(!l&&!function(e,t,n,r){let i=e[0];if(null===i)return!1;if("display"===t||"visibility"===t)return!0;let s=e[e.length-1],a=tc(i,t),o=tc(s,t);return b(a===o,`You are trying to animate ${t} from "${i}" to "${s}". ${i} is not an animatable value - to enable this animation set ${i} to a value animatable to ${s} via the \`style\` property.`),!!a&&!!o&&(function(e){let t=e[0];if(1===e.length)return!0;for(let n=0;n<e.length;n++)if(e[n]!==t)return!0}(e)||("spring"===n||G(n))&&r)}(e,n,r,i))if(H.current||!s){o&&o(th(e,this.options,t)),a&&a(),this.resolveFinishedPromise();return}else this.options.duration=0;let u=this.initPlayback(e,t);!1!==u&&(this._resolved={keyframes:e,finalKeyframe:t,...u},this.onPostResolved())}onPostResolved(){}then(e,t){return this.currentFinishedPromise.then(e,t)}flatten(){this.options.type="keyframes",this.options.ease="linear"}updateFinishedPromise(){this.currentFinishedPromise=new Promise(e=>{this.resolveFinishedPromise=e})}}function tf(e){let t=0,n=e.next(t);for(;!n.done&&t<2e4;)t+=50,n=e.next(t);return t>=2e4?1/0:t}
46let tm=(e,t,n)=>e+(t-e)*n;function tg(e,t,n){return(n<0&&(n+=1),n>1&&(n-=1),n<1/6)?e+(t-e)*6*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function ty(e,t){return n=>n>0?t:e}let tv=(e,t,n)=>{let r=e*e,i=n*(t*t-r)+r;return i<0?0:Math.sqrt(i)},tb=[e_,eT,eN];function tE(e){let t=tb.find(t=>t.test(e));if(b(!!t,`'${e}' is not an animatable color. Use the equivalent color code instead.`),!t)return!1;let n=t.parse(e);return t===eN&&(n=function({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,n/=100;let i=0,s=0,a=0;if(t/=100){let r=n<.5?n*(1+t):n+t-n*t,o=2*n-r;i=tg(o,r,e+1/3),s=tg(o,r,e),a=tg(o,r,e-1/3)}else i=s=a=n;return{red:Math.round(255*i),green:Math.round(255*s),blue:Math.round(255*a),alpha:r}}(n)),n}let tT=(e,t)=>{let n=tE(e),r=tE(t);if(!n||!r)return ty(e,t);let i={...n};return e=>(i.red=tv(n.red,r.red,e),i.green=tv(n.green,r.green,e),i.blue=tv(n.blue,r.blue,e),i.alpha=tm(n.alpha,r.alpha,e),eT.transform(i))},t_=(e,t)=>n=>t(e(n)),tA=(...e)=>e.reduce(t_),tx=new Set(["none","hidden"]);function tk(e,t){return n=>tm(e,t,n)}function tS(e){return"number"==typeof e?tk:"string"==typeof e?tr(e)?ty:eR.test(e)?tT:tC:Array.isArray(e)?tw:"object"==typeof e?eR.test(e)?tT:tI:ty}function tw(e,t){let n=[...e],r=n.length,i=e.map((e,n)=>tS(e)(e,t[n]));return e=>{for(let t=0;t<r;t++)n[t]=i[t](e);return n}}function tI(e,t){let n={...e,...t},r={};for(let i in n)void 0!==e[i]&&void 0!==t[i]&&(r[i]=tS(e[i])(e[i],t[i]));return e=>{for(let t in r)n[t]=r[t](e);return n}}let tC=(e,t)=>{let n=eB.createTransformer(t),r=eL(e),i=eL(t);return r.indexes.var.length===i.indexes.var.length&&r.indexes.color.length===i.indexes.color.length&&r.indexes.number.length>=i.indexes.number.length?tx.has(e)&&!i.values.length||tx.has(t)&&!r.values.length?function(e,t){return tx.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}(e,t):tA(tw(function(e,t){var n;let r=[],i={color:0,var:0,number:0};for(let s=0;s<t.values.length;s++){let a=t.types[s],o=e.indexes[a][i[a]],l=null!=(n=e.values[o])?n:0;r[s]=l,i[a]++}return r}(r,i),i.values),n):(b(!0,`Complex values '${e}' and '${t}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`),ty(e,t))};function tN(e,t,n){return"number"==typeof e&&"number"==typeof t&&"number"==typeof n?tm(e,t,n):tS(e)(e,t)}function tR(e,t,n){var r,i;let s=Math.max(t-5,0);return r=n-e(s),(i=t-s)?1e3/i*r:0}let tO={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1};function tP(e,t){return e*Math.sqrt(1-t*t)}let tD=["duration","bounce"],tM=["stiffness","damping","mass"];function tL(e,t){return t.some(t=>void 0!==e[t])}function tj(e=tO.visualDuration,t=tO.bounce){let n,r="object"!=typeof e?{visualDuration:e,keyframes:[0,1],bounce:t}:e,{restSpeed:i,restDelta:s}=r,a=r.keyframes[0],o=r.keyframes[r.keyframes.length-1],l={done:!1,value:a},{stiffness:u,damping:c,mass:d,duration:h,velocity:p,isResolvedFromDuration:f}=function(e){let t={velocity:tO.velocity,stiffness:tO.stiffness,damping:tO.damping,mass:tO.mass,isResolvedFromDuration:!1,...e};if(!tL(e,tM)&&tL(e,tD))if(e.visualDuration){let n=2*Math.PI/(1.2*e.visualDuration),r=n*n,i=2*ed(.05,1,1-(e.bounce||0))*Math.sqrt(r);t={...t,mass:tO.mass,stiffness:r,damping:i}}else{let n=function({duration:e=tO.duration,bounce:t=tO.bounce,velocity:n=tO.velocity,mass:r=tO.mass}){let i,s;b(e<=U(tO.maxDuration),"Spring duration must be 10 seconds or less");let a=1-t;a=ed(tO.minDamping,tO.maxDamping,a),e=ed(tO.minDuration,tO.maxDuration,e/1e3),a<1?(i=t=>{let r=t*a,i=r*e;return .001-(r-n)/tP(t,a)*Math.exp(-i)},s=t=>{let r=t*a*e,s=Math.pow(a,2)*Math.pow(t,2)*e,o=Math.exp(-r),l=tP(Math.pow(t,2),a);return(r*n+n-s)*o*(-i(t)+.001>0?-1:1)/l}):(i=t=>-.001+Math.exp(-t*e)*((t-n)*e+1),s=t=>e*e*(n-t)*Math.exp(-t*e));let o=function(e,t,n){let r=n;for(let n=1;n<12;n++)r-=e(r)/t(r);return r}(i,s,5/e);if(e=U(e),isNaN(o))return{stiffness:tO.stiffness,damping:tO.damping,duration:e};{let t=Math.pow(o,2)*r;
46return{stiffness:t,damping:2*a*Math.sqrt(r*t),duration:e}}}(e);(t={...t,...n,mass:tO.mass}).isResolvedFromDuration=!0}return t}({...r,velocity:-((r.velocity||0)/1e3)}),m=p||0,g=c/(2*Math.sqrt(u*d)),y=o-a,v=Math.sqrt(u/d)/1e3,E=5>Math.abs(y);if(i||(i=E?tO.restSpeed.granular:tO.restSpeed.default),s||(s=E?tO.restDelta.granular:tO.restDelta.default),g<1){let e=tP(v,g);n=t=>o-Math.exp(-g*v*t)*((m+g*v*y)/e*Math.sin(e*t)+y*Math.cos(e*t))}else if(1===g)n=e=>o-Math.exp(-v*e)*(y+(m+v*y)*e);else{let e=v*Math.sqrt(g*g-1);n=t=>{let n=Math.exp(-g*v*t),r=Math.min(e*t,300);return o-n*((m+g*v*y)*Math.sinh(r)+e*y*Math.cosh(r))/e}}let T={calculatedDuration:f&&h||null,next:e=>{let t=n(e);if(f)l.done=e>=h;else{let r=0;g<1&&(r=0===e?U(m):tR(n,e,t));let a=Math.abs(o-t)<=s;l.done=Math.abs(r)<=i&&a}return l.value=l.done?o:t,l},toString:()=>{let e=Math.min(tf(T),2e4),t=K(t=>T.next(e*t).value,e,30);return e+"ms "+t}};return T}function tz({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:i=10,bounceStiffness:s=500,modifyTarget:a,min:o,max:l,restDelta:u=.5,restSpeed:c}){let d,h,p=e[0],f={done:!1,value:p},m=n*t,g=p+m,y=void 0===a?g:a(g);y!==g&&(m=y-p);let v=e=>-m*Math.exp(-e/r),b=e=>y+v(e),E=e=>{let t=v(e),n=b(e);f.done=Math.abs(t)<=u,f.value=f.done?y:n},T=e=>{let t;if(t=f.value,void 0!==o&&t<o||void 0!==l&&t>l){var n;d=e,h=tj({keyframes:[f.value,(n=f.value,void 0===o?l:void 0===l||Math.abs(o-n)<Math.abs(l-n)?o:l)],velocity:tR(b,e,f.value),damping:i,stiffness:s,restDelta:u,restSpeed:c})}};return T(0),{calculatedDuration:null,next:e=>{let t=!1;return(h||void 0!==d||(t=!0,E(e),T(e)),void 0!==d&&e>=d)?h.next(e-d):(t||E(e),f)}}}let tF=ee(.42,0,1,1),tB=ee(0,0,.58,1),t$=ee(.42,0,.58,1),tU={linear:b,easeIn:tF,easeInOut:t$,easeOut:tB,circIn:eo,circInOut:eu,circOut:el,backIn:ei,backInOut:es,backOut:er,anticipate:ea},tH=e=>{if(Z(e)){b(4===e.length,"Cubic bezier arrays must contain four numerical values.");let[t,n,r,i]=e;return ee(t,n,r,i)}return"string"==typeof e?(b(void 0!==tU[e],`Invalid easing type '${e}'`),tU[e]):e};function tG({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){var i;let s=Array.isArray(r)&&"number"!=typeof r[0]?r.map(tH):tH(r),a={done:!1,value:t[0]},o=function(e,t,{clamp:n=!0,ease:r,mixer:i}={}){let s=e.length;if(b(s===t.length,"Both input and output ranges must be the same length"),1===s)return()=>t[0];if(2===s&&t[0]===t[1])return()=>t[1];let a=e[0]===e[1];e[0]>e[s-1]&&(e=[...e].reverse(),t=[...t].reverse());let o=function(e,t,n){let r=[],i=n||tN,s=e.length-1;for(let n=0;n<s;n++){let s=i(e[n],e[n+1]);t&&(s=tA(Array.isArray(t)?t[n]||b:t,s)),r.push(s)}return r}(t,r,i),l=o.length,u=n=>{if(a&&n<e[0])return t[0];let r=0;if(l>1)for(;r<e.length-2&&!(n<e[r+1]);r++);let i=q(e[r],e[r+1],n);return o[r](i)};return n?t=>u(ed(e[0],e[s-1],t)):u}((i=n&&n.length===t.length?n:function(e){let t=[0];return!function(e,t){let n=e[e.length-1];for(let r=1;r<=t;r++){let i=q(0,t,r);e.push(tm(n,1,i))}}(t,e.length-1),t}(t),i.map(t=>t*e)),t,{ease:Array.isArray(s)?s:t.map(()=>s||t$).splice(0,t.length-1)});return{calculatedDuration:e,next:t=>(a.value=o(t),a.done=t>=e,a)}}let tY=e=>{let t=({timestamp:t})=>e(t);return{start:()=>_.update(t,!0),stop:()=>A(t),now:()=>x.isProcessing?x.timestamp:w.now()}},tZ={decay:tz,inertia:tz,tween:tG,keyframes:tG,spring:tj},tV=e=>e/100;class tW extends tp{constructor(e){super(e),this.holdTime=null,this.cancelTime=null,this.currentTime=0,this.playbackSpeed=1,this.pendingPlayState="running",this.startTime=null,this.state="idle",this.stop=()=>{if(this.resolver.cancel(),this.isStopped=!0,"idle"===this.state)return;this.teardown();let{onStop:e}=this.options;e&&e()};let{name:t,motionValue:n,element:r,keyframes:i}=this.options,s=(null==r?void 0:r.KeyframeResolver)||e8,a=(e,t)=>this.onKeyframesResolved(e,t);this.resolver=new s(i,a,t,n,r),this.resolver.scheduleResolve()}flatten(){super.flatten(),this._resolved&&Object.assign(this._resolved,this.initPlayback(this._resolved.keyframes))}initPlayback(e){let t,n,{type:r="keyframes",repeat:i=0,repeatDelay:s=0,repeatType:a,velocity:o=0}=this.options,l=G(r)?r:tZ[r]||tG;l!==tG&&"number"!=typeof e[0]&&(t=tA(tV,tN(e[0],e[1])),e=[0,100]);let u=l({...this.options,keyframes:e});"mirror"===a&&(n=l({...this.options,keyframes:[...e].reverse(),velocity:-o})),null===u.calculatedDuration&&(u.calculatedDuration=tf(u));let{calculatedDuration:c}=u,d=c+s;return{generator:u,mirroredGenerator:n,mapPercentToKeyframes:t,calculatedDuration:c,resolvedDuration:d,totalDuration:d*(i+1)-s}}onPostResolved(){let{autoplay:e=!0}=this.options;this.play(),"paused"!==this.pendingPlayState&&e?this.state=this.pendingPlayState:this.pause()}tick(e,t=!1){let{resolved:n}=this;if(!n){let{keyframes:e}=this.options;return{done:!0,value:e[e.length-1]}}let{finalKeyframe:r,generator:i,mirroredGenerator:s,mapPercentToKeyframes:a,keyframes:o,c
46alculatedDuration:l,totalDuration:u,resolvedDuration:c}=n;if(null===this.startTime)return i.next(0);let{delay:d,repeat:h,repeatType:p,repeatDelay:f,onUpdate:m}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,e):this.speed<0&&(this.startTime=Math.min(e-u/this.speed,this.startTime)),t?this.currentTime=e:null!==this.holdTime?this.currentTime=this.holdTime:this.currentTime=Math.round(e-this.startTime)*this.speed;let g=this.currentTime-d*(this.speed>=0?1:-1),y=this.speed>=0?g<0:g>u;this.currentTime=Math.max(g,0),"finished"===this.state&&null===this.holdTime&&(this.currentTime=u);let v=this.currentTime,b=i;if(h){let e=Math.min(this.currentTime,u)/c,t=Math.floor(e),n=e%1;!n&&e>=1&&(n=1),1===n&&t--,(t=Math.min(t,h+1))%2&&("reverse"===p?(n=1-n,f&&(n-=f/c)):"mirror"===p&&(b=s)),v=ed(0,1,n)*c}let E=y?{done:!1,value:o[0]}:b.next(v);a&&(E.value=a(E.value));let{done:T}=E;y||null===l||(T=this.speed>=0?this.currentTime>=u:this.currentTime<=0);let _=null===this.holdTime&&("finished"===this.state||"running"===this.state&&T);return _&&void 0!==r&&(E.value=th(o,this.options,r)),m&&m(E.value),_&&this.finish(),E}get duration(){let{resolved:e}=this;return e?e.calculatedDuration/1e3:0}get time(){return this.currentTime/1e3}set time(e){e=U(e),this.currentTime=e,null!==this.holdTime||0===this.speed?this.holdTime=e:this.driver&&(this.startTime=this.driver.now()-e/this.speed)}get speed(){return this.playbackSpeed}set speed(e){let t=this.playbackSpeed!==e;this.playbackSpeed=e,t&&(this.time=this.currentTime/1e3)}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved){this.pendingPlayState="running";return}if(this.isStopped)return;let{driver:e=tY,onPlay:t,startTime:n}=this.options;this.driver||(this.driver=e(e=>this.tick(e))),t&&t();let r=this.driver.now();null!==this.holdTime?this.startTime=r-this.holdTime:this.startTime?"finished"===this.state&&(this.startTime=r):this.startTime=null!=n?n:this.calcStartTime(),"finished"===this.state&&this.updateFinishedPromise(),this.cancelTime=this.startTime,this.holdTime=null,this.state="running",this.driver.start()}pause(){var e;if(!this._resolved){this.pendingPlayState="paused";return}this.state="paused",this.holdTime=null!=(e=this.currentTime)?e:0}complete(){"running"!==this.state&&this.play(),this.pendingPlayState=this.state="finished",this.holdTime=null}finish(){this.teardown(),this.state="finished";let{onComplete:e}=this.options;e&&e()}cancel(){null!==this.cancelTime&&this.tick(this.cancelTime),this.teardown(),this.updateFinishedPromise()}teardown(){this.state="idle",this.stopDriver(),this.resolveFinishedPromise(),this.updateFinishedPromise(),this.startTime=this.cancelTime=null,this.resolver.cancel()}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(e){return this.startTime=0,this.tick(e,!0)}}let tq=new Set(["opacity","clipPath","filter","transform"]),tK=z(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),tX={anticipate:ea,backInOut:es,circInOut:eu};class tQ extends tp{constructor(e){super(e);let{name:t,motionValue:n,element:r,keyframes:i}=this.options;this.resolver=new tu(i,(e,t)=>this.onKeyframesResolved(e,t),t,n,r),this.resolver.scheduleResolve()}initPlayback(e,t){var n;let{duration:r=300,times:i,ease:s,type:a,motionValue:o,name:l,startTime:u}=this.options;if(!o.owner||!o.owner.current)return!1;if("string"==typeof s&&W()&&s in tX&&(s=tX[s]),G((n=this.options).type)||"spring"===n.type||!function e(t){return!!("function"==typeof t&&W()||!t||"string"==typeof t&&(t in Q||W())||Z(t)||Array.isArray(t)&&t.every(e))}(n.ease)){let{onComplete:t,onUpdate:n,motionValue:o,element:l,...u}=this.options,c=function(e,t){let n=new tW({...t,keyframes:e,repeat:0,delay:0,isGenerator:!0}),r={done:!1,value:e[0]},i=[],s=0;for(;!r.done&&s<2e4;)i.push((r=n.sample(s)).value),s+=10;return{times:void 0,keyframes:i,duration:s-10,ease:"linear"}}(e,u);1===(e=c.keyframes).length&&(e[1]=e[0]),r=c.duration,i=c.times,s=c.ease,a="keyframes"}let c=function(e,t,n,{delay:r=0,duration:i=300,repeat:s=0,repeatType:a="loop",ease:o="easeInOut",times:l}={}){let u={[t]:n};l&&(u.offset=l);let c=function e(t,n){if(t)return"function"==typeof t&&W()?K(t,n):Z(t)?X(t):Array.isArray(t)?t.map(t=>e(t,n)||Q.easeOut):Q[t]}(o,i);return Array.isArray(c)&&(u.easing=c),e.animate(u,{delay:r,duration:i,easing:Array.isArray(c)?"linear":c,fill:"both",iterations:s+1,direction:"reverse"===a?"alternate":"normal"})}(o.owner.current,l,e,{...this.options,duration:r,times:i,ease:s});return c.startTime=null!=u?u:this.calcStartTime(),this.pendingTimeline?(Y(c,this.pendingTimeline),this.pendingTimeline=void 0):c.onfinish=()=>{let{onComplete:n}=this.options;o.set(th(e,this.options,t)),n&&n(),this.cancel(),this.resolveFinishedProm
46ise()},{animation:c,duration:r,times:i,type:a,ease:s,keyframes:e}}get duration(){let{resolved:e}=this;if(!e)return 0;let{duration:t}=e;return t/1e3}get time(){let{resolved:e}=this;if(!e)return 0;let{animation:t}=e;return(t.currentTime||0)/1e3}set time(e){let{resolved:t}=this;if(!t)return;let{animation:n}=t;n.currentTime=U(e)}get speed(){let{resolved:e}=this;if(!e)return 1;let{animation:t}=e;return t.playbackRate}set speed(e){let{resolved:t}=this;if(!t)return;let{animation:n}=t;n.playbackRate=e}get state(){let{resolved:e}=this;if(!e)return"idle";let{animation:t}=e;return t.playState}get startTime(){let{resolved:e}=this;if(!e)return null;let{animation:t}=e;return t.startTime}attachTimeline(e){if(this._resolved){let{resolved:t}=this;if(!t)return b;let{animation:n}=t;Y(n,e)}else this.pendingTimeline=e;return b}play(){if(this.isStopped)return;let{resolved:e}=this;if(!e)return;let{animation:t}=e;"finished"===t.playState&&this.updateFinishedPromise(),t.play()}pause(){let{resolved:e}=this;if(!e)return;let{animation:t}=e;t.pause()}stop(){if(this.resolver.cancel(),this.isStopped=!0,"idle"===this.state)return;this.resolveFinishedPromise(),this.updateFinishedPromise();let{resolved:e}=this;if(!e)return;let{animation:t,keyframes:n,duration:r,type:i,ease:s,times:a}=e;if("idle"===t.playState||"finished"===t.playState)return;if(this.time){let{motionValue:e,onUpdate:t,onComplete:o,element:l,...u}=this.options,c=new tW({...u,keyframes:n,duration:r,type:i,ease:s,times:a,isGenerator:!0}),d=U(this.time);e.setWithVelocity(c.sample(d-10).value,c.sample(d).value,10)}let{onStop:o}=this.options;o&&o(),this.cancel()}complete(){let{resolved:e}=this;e&&e.animation.finish()}cancel(){let{resolved:e}=this;e&&e.animation.cancel()}static supports(e){let{motionValue:t,name:n,repeatDelay:r,repeatType:i,damping:s,type:a}=e;if(!t||!t.owner||!(t.owner.current instanceof HTMLElement))return!1;let{onUpdate:o,transformTemplate:l}=t.owner.getProps();return tK()&&n&&tq.has(n)&&!o&&!l&&!r&&"mirror"!==i&&0!==s&&"inertia"!==a}}let tJ={type:"spring",stiffness:500,damping:25,restSpeed:10},t0={type:"keyframes",duration:.8},t1={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},t2=(e,t,n,r={},i,s)=>a=>{let o=p(r,e)||{},l=o.delay||r.delay||0,{elapsed:u=0}=r;u-=U(l);let c={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...o,delay:-u,onUpdate:e=>{t.set(e),o.onUpdate&&o.onUpdate(e)},onComplete:()=>{a(),o.onComplete&&o.onComplete()},name:e,motionValue:t,element:s?void 0:i};!function({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:i,repeat:s,repeatType:a,repeatDelay:o,from:l,elapsed:u,...c}){return!!Object.keys(c).length}(o)&&(c={...c,...((e,{keyframes:t})=>t.length>2?t0:m.has(e)?e.startsWith("scale")?{type:"spring",stiffness:550,damping:0===t[1]?2*Math.sqrt(550):30,restSpeed:10}:tJ:t1)(e,c)}),c.duration&&(c.duration=U(c.duration)),c.repeatDelay&&(c.repeatDelay=U(c.repeatDelay)),void 0!==c.from&&(c.keyframes[0]=c.from);let d=!1;if(!1!==c.type&&(0!==c.duration||c.repeatDelay)||(c.duration=0,0===c.delay&&(d=!0)),(H.current||v.skipAnimations)&&(d=!0,c.duration=0,c.delay=0),d&&!s&&void 0!==t.get()){let e=th(c.keyframes,o);if(void 0!==e)return _.update(()=>{c.onUpdate(e),c.onComplete()}),new $([])}return!s&&tQ.supports(c)?new tQ(c):new tW(c)};function t3(e,t,{delay:n=0,transitionOverride:r,type:i}={}){var s;let{transition:a=e.getDefaultTransition(),transitionEnd:o,...l}=t;r&&(a=r);let u=[],d=i&&e.animationState&&e.animationState.getState()[i];for(let t in l){let r=e.getValue(t,null!=(s=e.latestValues[t])?s:null),i=l[t];if(void 0===i||d&&function({protectedKeys:e,needsAnimating:t},n){let r=e.hasOwnProperty(n)&&!0!==t[n];return t[n]=!1,r}(d,t))continue;let o={delay:n,...p(a||{},t)},c=!1;if(window.MotionHandoffAnimation){let n=e.props[j];if(n){let e=window.MotionHandoffAnimation(n,t,_);null!==e&&(o.startTime=e,c=!0)}}M(e,t),r.start(t2(t,r,i,e.shouldReduceMotion&&g.has(t)?{type:!1}:o,e,c));let h=r.animation;h&&u.push(h)}return o&&Promise.all(u).then(()=>{_.update(()=>{o&&function(e,t){let{transitionEnd:n={},transition:r={},...i}=c(e,t)||{};for(let t in i={...i,...n}){let n=y(i[t]);e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,P(n))}}(e,o)})}),u}function t4(e,t,n={}){var r;let i=c(e,t,"exit"===n.type?null==(r=e.presenceContext)?void 0:r.custom:void 0),{transition:s=e.getDefaultTransition()||{}}=i||{};
46n.transitionOverride&&(s=n.transitionOverride);let a=i?()=>Promise.all(t3(e,i,n)):()=>Promise.resolve(),o=e.variantChildren&&e.variantChildren.size?(r=0)=>{let{delayChildren:i=0,staggerChildren:a,staggerDirection:o}=s;return function(e,t,n=0,r=0,i=1,s){let a=[],o=(e.variantChildren.size-1)*r,l=1===i?(e=0)=>e*r:(e=0)=>o-e*r;return Array.from(e.variantChildren).sort(t9).forEach((e,r)=>{e.notify("AnimationStart",t),a.push(t4(e,t,{...s,delay:n+l(r)}).then(()=>e.notify("AnimationComplete",t)))}),Promise.all(a)}(e,t,i+r,a,o,n)}:()=>Promise.resolve(),{when:l}=s;if(!l)return Promise.all([a(),o(n.delay)]);{let[e,t]="beforeChildren"===l?[a,o]:[o,a];return e().then(()=>t())}}function t9(e,t){return e.sortNodePosition(t)}let t5=h.length,t6=[...d].reverse(),t8=d.length;function t7(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function ne(){return{animate:t7(!0),whileInView:t7(),whileHover:t7(),whileTap:t7(),whileDrag:t7(),whileFocus:t7(),exit:t7()}}class nt{constructor(e){this.isMounted=!1,this.node=e}update(){}}class nn extends nt{constructor(e){super(e),e.animationState||(e.animationState=function(e){let t=t=>Promise.all(t.map(({animation:t,options:n})=>(function(e,t,n={}){let r;if(e.notify("AnimationStart",t),Array.isArray(t))r=Promise.all(t.map(t=>t4(e,t,n)));else if("string"==typeof t)r=t4(e,t,n);else{let i="function"==typeof t?c(e,t,n.custom):t;r=Promise.all(t3(e,i,n))}return r.then(()=>{e.notify("AnimationComplete",t)})})(e,t,n))),n=ne(),r=!0,l=t=>(n,r)=>{var i;let s=c(e,r,"exit"===t?null==(i=e.presenceContext)?void 0:i.custom:void 0);if(s){let{transition:e,transitionEnd:t,...r}=s;n={...n,...r,...t}}return n};function u(u){let{props:c}=e,d=function e(t){if(!t)return;if(!t.isControllingVariants){let n=t.parent&&e(t.parent)||{};return void 0!==t.props.initial&&(n.initial=t.props.initial),n}let n={};for(let e=0;e<t5;e++){let r=h[e],i=t.props[r];(o(i)||!1===i)&&(n[r]=i)}return n}(e.parent)||{},p=[],f=new Set,m={},g=1/0;for(let t=0;t<t8;t++){var y,v;let h=t6[t],b=n[h],E=void 0!==c[h]?c[h]:d[h],T=o(E),_=h===u?b.isActive:null;!1===_&&(g=t);let A=E===d[h]&&E!==c[h]&&T;if(A&&r&&e.manuallyAnimateOnMount&&(A=!1),b.protectedKeys={...m},!b.isActive&&null===_||!E&&!b.prevProp||i(E)||"boolean"==typeof E)continue;let x=(y=b.prevProp,"string"==typeof(v=E)?v!==y:!!Array.isArray(v)&&!a(v,y)),k=x||h===u&&b.isActive&&!A&&T||t>g&&T,S=!1,w=Array.isArray(E)?E:[E],I=w.reduce(l(h),{});!1===_&&(I={});let{prevResolvedValues:C={}}=b,N={...C,...I},R=t=>{k=!0,f.has(t)&&(S=!0,f.delete(t)),b.needsAnimating[t]=!0;let n=e.getValue(t);n&&(n.liveStyle=!1)};for(let e in N){let t=I[e],n=C[e];if(!m.hasOwnProperty(e))(s(t)&&s(n)?a(t,n):t===n)?void 0!==t&&f.has(e)?R(e):b.protectedKeys[e]=!0:null!=t?R(e):f.add(e)}b.prevProp=E,b.prevResolvedValues=I,b.isActive&&(m={...m,...I}),r&&e.blockInitialAnimation&&(k=!1);let O=!(A&&x)||S;k&&O&&p.push(...w.map(e=>({animation:e,options:{type:h}})))}if(f.size){let t={};f.forEach(n=>{let r=e.getBaseTarget(n),i=e.getValue(n);i&&(i.liveStyle=!0),t[n]=null!=r?r:null}),p.push({animation:t})}let b=!!p.length;return r&&(!1===c.initial||c.initial===c.animate)&&!e.manuallyAnimateOnMount&&(b=!1),r=!1,b?t(p):Promise.resolve()}return{animateChanges:u,setActive:function(t,r){var i;if(n[t].isActive===r)return Promise.resolve();null==(i=e.variantChildren)||i.forEach(e=>{var n;return null==(n=e.animationState)?void 0:n.setActive(t,r)}),n[t].isActive=r;let s=u(t);for(let e in n)n[e].protectedKeys={};return s},setAnimateFunction:function(n){t=n(e)},getState:()=>n,reset:()=>{n=ne(),r=!0}}}(e))}updateAnimationControlsSubscription(){let{animate:e}=this.node.getProps();i(e)&&(this.unmountControls=e.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){let{animate:e}=this.node.getProps(),{animate:t}=this.node.prevProps||{};e!==t&&this.updateAnimationControlsSubscription()}unmount(){var e;this.node.animationState.reset(),null==(e=this.unmountControls)||e.call(this)}}let nr=0;class ni extends nt{constructor(){super(...arguments),this.id=nr++}update(){if(!this.node.presenceContext)return;let{isPresent:e,onExitComplete:t}=this.node.presenceContext,{isPresent:n}=this.node.prevPresenceContext||{};if(!this.node.animationState||e===n)return;let r=this.node.animationState.setActive("exit",!e);t&&!e&&r.then(()=>
46t(this.id))}mount(){let{register:e}=this.node.presenceContext||{};e&&(this.unmount=e(this.id))}unmount(){}}let ns={x:!1,y:!1},na=e=>"mouse"===e.pointerType?"number"!=typeof e.button||e.button<=0:!1!==e.isPrimary;function no(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}function nl(e){return{point:{x:e.pageX,y:e.pageY}}}function nu(e,t,n,r){return no(e,t,e=>na(e)&&n(e,nl(e)),r)}let nc=(e,t)=>Math.abs(e-t);class nd{constructor(e,t,{transformPagePoint:n,contextWindow:r,dragSnapToOrigin:i=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let e=nf(this.lastMoveEventInfo,this.history),t=null!==this.startEvent,n=function(e,t){return Math.sqrt(nc(e.x,t.x)**2+nc(e.y,t.y)**2)}(e.offset,{x:0,y:0})>=3;if(!t&&!n)return;let{point:r}=e,{timestamp:i}=x;this.history.push({...r,timestamp:i});let{onStart:s,onMove:a}=this.handlers;t||(s&&s(this.lastMoveEvent,e),this.startEvent=this.lastMoveEvent),a&&a(this.lastMoveEvent,e)},this.handlePointerMove=(e,t)=>{this.lastMoveEvent=e,this.lastMoveEventInfo=nh(t,this.transformPagePoint),_.update(this.updatePoint,!0)},this.handlePointerUp=(e,t)=>{this.end();let{onEnd:n,onSessionEnd:r,resumeAnimation:i}=this.handlers;if(this.dragSnapToOrigin&&i&&i(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let s=nf("pointercancel"===e.type?this.lastMoveEventInfo:nh(t,this.transformPagePoint),this.history);this.startEvent&&n&&n(e,s),r&&r(e,s)},!na(e))return;this.dragSnapToOrigin=i,this.handlers=t,this.transformPagePoint=n,this.contextWindow=r||window;let s=nh(nl(e),this.transformPagePoint),{point:a}=s,{timestamp:o}=x;this.history=[{...a,timestamp:o}];let{onSessionStart:l}=t;l&&l(e,nf(s,this.history)),this.removeListeners=tA(nu(this.contextWindow,"pointermove",this.handlePointerMove),nu(this.contextWindow,"pointerup",this.handlePointerUp),nu(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),A(this.updatePoint)}}function nh(e,t){return t?{point:t(e.point)}:e}function np(e,t){return{x:e.x-t.x,y:e.y-t.y}}function nf({point:e},t){return{point:e,delta:np(e,nm(t)),offset:np(e,t[0]),velocity:function(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null,i=nm(e);for(;n>=0&&(r=e[n],!(i.timestamp-r.timestamp>U(.1)));)n--;if(!r)return{x:0,y:0};let s=(i.timestamp-r.timestamp)/1e3;if(0===s)return{x:0,y:0};let a={x:(i.x-r.x)/s,y:(i.y-r.y)/s};return a.x===1/0&&(a.x=0),a.y===1/0&&(a.y=0),a}(t,.1)}}function nm(e){return e[e.length-1]}function ng(e){return e&&"object"==typeof e&&Object.prototype.hasOwnProperty.call(e,"current")}function ny(e){return e.max-e.min}function nv(e,t,n,r=.5){e.origin=r,e.originPoint=tm(t.min,t.max,e.origin),e.scale=ny(n)/ny(t),e.translate=tm(n.min,n.max,e.origin)-e.originPoint,(e.scale>=.9999&&e.scale<=1.0001||isNaN(e.scale))&&(e.scale=1),(e.translate>=-.01&&e.translate<=.01||isNaN(e.translate))&&(e.translate=0)}function nb(e,t,n,r){nv(e.x,t.x,n.x,r?r.originX:void 0),nv(e.y,t.y,n.y,r?r.originY:void 0)}function nE(e,t,n){e.min=n.min+t.min,e.max=e.min+ny(t)}function nT(e,t,n){e.min=t.min-n.min,e.max=e.min+ny(t)}function n_(e,t,n){nT(e.x,t.x,n.x),nT(e.y,t.y,n.y)}function nA(e,t,n){return{min:void 0!==t?e.min+t:void 0,max:void 0!==n?e.max+n-(e.max-e.min):void 0}}function nx(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.min<e.max-e.min&&([n,r]=[r,n]),{min:n,max:r}}function nk(e,t,n){return{min:nS(e,t),max:nS(e,n)}}function nS(e,t){return"number"==typeof e?e:e[t]||0}let nw=()=>({translate:0,scale:1,origin:0,originPoint:0}),nI=()=>({x:nw(),y:nw()}),nC=()=>({min:0,max:0}),nN=()=>({x:nC(),y:nC()});function nR(e){return[e("x"),e("y")]}function nO({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function nP(e){return void 0===e||1===e}function nD({scale:e,scaleX:t,scaleY:n}){return!nP(e)||!nP(t)||!nP(n)}function nM(e){return nD(e)||nL(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function nL(e){var t,n;
46return(t=e.x)&&"0%"!==t||(n=e.y)&&"0%"!==n}function nj(e,t,n,r,i){return void 0!==i&&(e=r+i*(e-r)),r+n*(e-r)+t}function nz(e,t=0,n=1,r,i){e.min=nj(e.min,t,n,r,i),e.max=nj(e.max,t,n,r,i)}function nF(e,{x:t,y:n}){nz(e.x,t.translate,t.scale,t.originPoint),nz(e.y,n.translate,n.scale,n.originPoint)}function nB(e,t){e.min=e.min+t,e.max=e.max+t}function n$(e,t,n,r,i=.5){let s=tm(e.min,e.max,i);nz(e,t,n,s,r)}function nU(e,t){n$(e.x,t.x,t.scaleX,t.scale,t.originX),n$(e.y,t.y,t.scaleY,t.scale,t.originY)}function nH(e,t){return nO(function(e,t){if(!t)return e;let n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}(e.getBoundingClientRect(),t))}let nG=({current:e})=>e?e.ownerDocument.defaultView:null,nY=new WeakMap;class nZ{constructor(e){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=nN(),this.visualElement=e}start(e,{snapToCursor:t=!1}={}){let{presenceContext:n}=this.visualElement;if(n&&!1===n.isPresent)return;let r=e=>{let{dragSnapToOrigin:n}=this.getProps();n?this.pauseAnimation():this.stopAnimation(),t&&this.snapToCursor(nl(e).point)},i=(e,t)=>{let{drag:n,dragPropagation:r,onDragStart:i}=this.getProps();if(n&&!r&&(this.openDragLock&&this.openDragLock(),this.openDragLock=function(e){if("x"===e||"y"===e)if(ns[e])return null;else return ns[e]=!0,()=>{ns[e]=!1};return ns.x||ns.y?null:(ns.x=ns.y=!0,()=>{ns.x=ns.y=!1})}(n),!this.openDragLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),nR(e=>{let t=this.getAxisMotionValue(e).get()||0;if(ek.test(t)){let{projection:n}=this.visualElement;if(n&&n.layout){let r=n.layout.layoutBox[e];r&&(t=ny(r)*(parseFloat(t)/100))}}this.originPoint[e]=t}),i&&_.postRender(()=>i(e,t)),M(this.visualElement,"transform");let{animationState:s}=this.visualElement;s&&s.setActive("whileDrag",!0)},s=(e,t)=>{let{dragPropagation:n,dragDirectionLock:r,onDirectionLock:i,onDrag:s}=this.getProps();if(!n&&!this.openDragLock)return;let{offset:a}=t;if(r&&null===this.currentDirection){this.currentDirection=function(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}(a),null!==this.currentDirection&&i&&i(this.currentDirection);return}this.updateAxis("x",t.point,a),this.updateAxis("y",t.point,a),this.visualElement.render(),s&&s(e,t)},a=(e,t)=>this.stop(e,t),o=()=>nR(e=>{var t;return"paused"===this.getAnimationState(e)&&(null==(t=this.getAxisMotionValue(e).animation)?void 0:t.play())}),{dragSnapToOrigin:l}=this.getProps();this.panSession=new nd(e,{onSessionStart:r,onStart:i,onMove:s,onSessionEnd:a,resumeAnimation:o},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:l,contextWindow:nG(this.visualElement)})}stop(e,t){let n=this.isDragging;if(this.cancel(),!n)return;let{velocity:r}=t;this.startAnimation(r);let{onDragEnd:i}=this.getProps();i&&_.postRender(()=>i(e,t))}cancel(){this.isDragging=!1;let{projection:e,animationState:t}=this.visualElement;e&&(e.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;let{dragPropagation:n}=this.getProps();!n&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),t&&t.setActive("whileDrag",!1)}updateAxis(e,t,n){let{drag:r}=this.getProps();if(!n||!nV(e,r,this.currentDirection))return;let i=this.getAxisMotionValue(e),s=this.originPoint[e]+n[e];this.constraints&&this.constraints[e]&&(s=function(e,{min:t,max:n},r){return void 0!==t&&e<t?e=r?tm(t,e,r.min):Math.max(e,t):void 0!==n&&e>n&&(e=r?tm(n,e,r.max):Math.min(e,n)),e}(s,this.constraints[e],this.elastic[e])),i.set(s)}resolveConstraints(){var e;let{dragConstraints:t,dragElastic:n}=this.getProps(),r=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):null==(e=this.visualElement.projection)?void 0:e.layout,i=this.constraints;t&&ng(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&r?this.constraints=function(e,{top:t,left:n,bottom:r,right:i}){return{x:nA(e.x,n,i),y:nA(e.y,t,r)}}(r.layoutBox,t):this.constraints=!1,this.elastic=function(e=.35){return!1===e?e=0:!0===e&&(e=.35),{x:nk(e,"left","right"),y:nk(e,"top","bottom")}}(n),i!==this.constraints&&r&&this.constraints&&!this.hasMutatedConstraints&&nR(e=>{!1!==this.constraints&&this.getAxisMotionValue(e)&&(this.constraints[e]=function(e,t){let n={};return void 0!==t.min&&(n.min=t.min-e.min),void 0!==t.max&&(n.max=t.max-e.min),n}(r.layoutBox[e],this.constraints[e]))})}resolveRefConstraints(){var e;let{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!ng(t))return!1;let r=t.current;b(null!==r,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.");let{projection:i}=this.visualElement;if(!i||!i.layout)return!1;let s=function(e,t,n){let r=nH(e,n),{scroll:i}=t;return i&&(nB(r.x,i.offset.x),nB(r.y,i.offset.y)),r}(r,i.root,this.visualElement.getTransformPagePoint()),a=(e=i.layout.layoutBox,{x:nx(e.x,s.x),y:nx(e.y,s.y)});if(n){let e=n(function({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}(a));this.hasMutatedConstraints=!!e,e&&(a=nO(e))}return a}startAnimation(e){let{drag:t,dragMomentum:n,dragElastic:r,dragTransition:i,dragSnapToOrigin:s,onDragTransitionEnd:a}=this.getProps(),o=this.constraints||{};return Promise.all(nR(a=>{if(!nV(a,t,this.currentDirection))return;let l=o&&o[a]||{};s&&(l={min:0,max:0});let u={type:"inertia",velocity:n?e[a]:0,bounceStiffness:r?200:1e6,bounceDamping:r?40:1e7,timeConstant:750,restDelta:1,restSpeed:10,...i,...l};return this.startAxisValueAnimation(a,u)})).then(a)}startAxisValueAnimation(e,t){let n=this.getAxisMotionValue(e);return M(this.visualElement,e),n.start(t2(e,n,0,t,this.visualElement,!1))}
46stopAnimation(){nR(e=>this.getAxisMotionValue(e).stop())}pauseAnimation(){nR(e=>{var t;return null==(t=this.getAxisMotionValue(e).animation)?void 0:t.pause()})}getAnimationState(e){var t;return null==(t=this.getAxisMotionValue(e).animation)?void 0:t.state}getAxisMotionValue(e){let t=`_drag${e.toUpperCase()}`,n=this.visualElement.getProps();return n[t]||this.visualElement.getValue(e,(n.initial?n.initial[e]:void 0)||0)}snapToCursor(e){nR(t=>{let{drag:n}=this.getProps();if(!nV(t,n,this.currentDirection))return;let{projection:r}=this.visualElement,i=this.getAxisMotionValue(t);if(r&&r.layout){let{min:n,max:s}=r.layout.layoutBox[t];i.set(e[t]-tm(n,s,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;let{drag:e,dragConstraints:t}=this.getProps(),{projection:n}=this.visualElement;if(!ng(t)||!n||!this.constraints)return;this.stopAnimation();let r={x:0,y:0};nR(e=>{let t=this.getAxisMotionValue(e);if(t&&!1!==this.constraints){let n=t.get();r[e]=function(e,t){let n=.5,r=ny(e),i=ny(t);return i>r?n=q(t.min,t.max-r,e.min):r>i&&(n=q(e.min,e.max-i,t.min)),ed(0,1,n)}({min:n,max:n},this.constraints[e])}});let{transformTemplate:i}=this.visualElement.getProps();this.visualElement.current.style.transform=i?i({},""):"none",n.root&&n.root.updateScroll(),n.updateLayout(),this.resolveConstraints(),nR(t=>{if(!nV(t,e,null))return;let n=this.getAxisMotionValue(t),{min:i,max:s}=this.constraints[t];n.set(tm(i,s,r[t]))})}addListeners(){if(!this.visualElement.current)return;nY.set(this.visualElement,this);let e=nu(this.visualElement.current,"pointerdown",e=>{let{drag:t,dragListener:n=!0}=this.getProps();t&&n&&this.start(e)}),t=()=>{let{dragConstraints:e}=this.getProps();ng(e)&&e.current&&(this.constraints=this.resolveRefConstraints())},{projection:n}=this.visualElement,r=n.addEventListener("measure",t);n&&!n.layout&&(n.root&&n.root.updateScroll(),n.updateLayout()),_.read(t);let i=no(window,"resize",()=>this.scalePositionWithinConstraints()),s=n.addEventListener("didUpdate",({delta:e,hasLayoutChanged:t})=>{this.isDragging&&t&&(nR(t=>{let n=this.getAxisMotionValue(t);n&&(this.originPoint[t]+=e[t].translate,n.set(n.get()+e[t].translate))}),this.visualElement.render())});return()=>{i(),e(),r(),s&&s()}}getProps(){let e=this.visualElement.getProps(),{drag:t=!1,dragDirectionLock:n=!1,dragPropagation:r=!1,dragConstraints:i=!1,dragElastic:s=.35,dragMomentum:a=!0}=e;return{...e,drag:t,dragDirectionLock:n,dragPropagation:r,dragConstraints:i,dragElastic:s,dragMomentum:a}}}function nV(e,t,n){return(!0===t||t===e)&&(null===n||n===e)}class nW extends nt{constructor(e){super(e),this.removeGroupControls=b,this.removeListeners=b,this.controls=new nZ(e)}mount(){let{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||b}unmount(){this.removeGroupControls(),this.removeListeners()}}let nq=e=>(t,n)=>{e&&_.postRender(()=>e(t,n))};class nK extends nt{constructor(){super(...arguments),this.removePointerDownListener=b}onPointerDown(e){this.session=new nd(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:nG(this.node)})}createPanHandlers(){let{onPanSessionStart:e,onPanStart:t,onPan:n,onPanEnd:r}=this.node.getProps();return{onSessionStart:nq(e),onStart:nq(t),onMove:n,onEnd:(e,t)=>{delete this.session,r&&_.postRender(()=>r(e,t))}}}mount(){this.removePointerDownListener=nu(this.node.current,"pointerdown",e=>this.onPointerDown(e))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}var nX,nQ,nJ=n(805),n0=n(23073),n1=n(1795),n2=n(21330);let n3=(0,n0.createContext)({}),n4={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function n9(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}let n5={correct:(e,t)=>{if(!t.target)return e;if("string"==typeof e)if(!eS.test(e))return e;else e=parseFloat(e);let n=n9(e,t.target.x),r=n9(e,t.target.y);return`${n}% ${r}%`}},n6={},{schedule:n8,cancel:n7}=T(queueMicrotask,!1);class re extends n0.Component{componentDidMount(){let{visualElement:e,layoutGroup:t,switchLayoutGroup:n,layoutId:r}=this.props,{projection:i}=e;Object.assign(n6,rn),i&&(t.group&&t.group.add(i),n&&n.register&&r&&n.register(i),i.root.didUpdate(),i.addEventListener("animationComplete",()=>{this.safeToRemove()}),i.setOptions({...i.options,onExitComplete:()=>this.safeToRemove()})),n4.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){let{layoutDependency:t,visualElement:n,drag:r,isPresent:i}=this.props,s=n.projection;return s&&(s.isPresent=i,r||e.layoutDependency!==t||void 0===t?s.willUpdate():this.safeToRemove(),e.isPresent!==i&&(i?s.promote():s.relegate()||_.postRender(()=>{let e=s.getStack();e&&e.members.length||this.safeToRemove()}))),null}componentDidUpdate(){let{projection:e}=this.props.visualElement;e&&(e.root.didUpdate(),n8.postRender(()=>{!e.currentAnimation&&e.isLead()&&this.safeToRemove()}))}componentWillUnmount(){let{visualElement:e,layoutGroup:t,switchLayoutGroup:n}=this.props,{projection:r}=e;r&&(r.scheduleCheckAfterUnmount(),t&&t.group&&t.group.remove(r),n&&n.deregister&&n.deregister(r))}safeToRemove(){let{safeToRemove:e}=this.props;e&&e()}render(){return null}}function rt(e){let[t,n]=(0,n1.xQ)(),r=(0,n0.useContext)(n2.L);return(0,nJ.jsx)(re,{...e,layoutGroup:r,switchLayoutGroup:(0,n0.useContext)(n3),isPresent:t,safeToRemove:n})}let rn={borderRadius:{...n5,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:n5,borderTopRightRadius:n5,borderBottomLeftRadius:n5,borderBottomRightRadius:n5,boxSh
46adow:{correct:(e,{treeScale:t,projectionDelta:n})=>{let r=eB.parse(e);if(r.length>5)return e;let i=eB.createTransformer(e),s=+("number"!=typeof r[0]),a=n.x.scale*t.x,o=n.y.scale*t.y;r[0+s]/=a,r[1+s]/=o;let l=tm(a,o,.5);return"number"==typeof r[2+s]&&(r[2+s]/=l),"number"==typeof r[3+s]&&(r[3+s]/=l),i(r)}}},rr=(e,t)=>e.depth-t.depth;class ri{constructor(){this.children=[],this.isDirty=!1}add(e){I(this.children,e),this.isDirty=!0}remove(e){C(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(rr),this.isDirty=!1,this.children.forEach(e)}}function rs(e){let t=D(e)?e.get():e;return t&&"object"==typeof t&&t.mix&&t.toValue?t.toValue():t}let ra=["TopLeft","TopRight","BottomLeft","BottomRight"],ro=ra.length,rl=e=>"string"==typeof e?parseFloat(e):e,ru=e=>"number"==typeof e||eS.test(e);function rc(e,t){return void 0!==e[t]?e[t]:e.borderRadius}let rd=rp(0,.5,el),rh=rp(.5,.95,b);function rp(e,t,n){return r=>r<e?0:r>t?1:n(q(e,t,r))}function rf(e,t){e.min=t.min,e.max=t.max}function rm(e,t){rf(e.x,t.x),rf(e.y,t.y)}function rg(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function ry(e,t,n,r,i){return e-=t,e=r+1/n*(e-r),void 0!==i&&(e=r+1/i*(e-r)),e}function rv(e,t,[n,r,i],s,a){!function(e,t=0,n=1,r=.5,i,s=e,a=e){if(ek.test(t)&&(t=parseFloat(t),t=tm(a.min,a.max,t/100)-a.min),"number"!=typeof t)return;let o=tm(s.min,s.max,r);e===s&&(o-=t),e.min=ry(e.min,t,n,o,i),e.max=ry(e.max,t,n,o,i)}(e,t[n],t[r],t[i],t.scale,s,a)}let rb=["x","scaleX","originX"],rE=["y","scaleY","originY"];function rT(e,t,n,r){rv(e.x,t,rb,n?n.x:void 0,r?r.x:void 0),rv(e.y,t,rE,n?n.y:void 0,r?r.y:void 0)}function r_(e){return 0===e.translate&&1===e.scale}function rA(e){return r_(e.x)&&r_(e.y)}function rx(e,t){return e.min===t.min&&e.max===t.max}function rk(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function rS(e,t){return rk(e.x,t.x)&&rk(e.y,t.y)}function rw(e){return ny(e.x)/ny(e.y)}function rI(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}class rC{constructor(){this.members=[]}add(e){I(this.members,e),e.scheduleRender()}remove(e){if(C(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){let e=this.members[this.members.length-1];e&&this.promote(e)}}relegate(e){let t,n=this.members.findIndex(t=>e===t);if(0===n)return!1;for(let e=n;e>=0;e--){let n=this.members[e];if(!1!==n.isPresent){t=n;break}}return!!t&&(this.promote(t),!0)}promote(e,t){let n=this.lead;if(e!==n&&(this.prevLead=n,this.lead=e,e.show(),n)){n.instance&&n.scheduleRender(),e.scheduleRender(),e.resumeFrom=n,t&&(e.resumeFrom.preserveOpacity=!0),n.snapshot&&(e.snapshot=n.snapshot,e.snapshot.latestValues=n.animationValues||n.latestValues),e.root&&e.root.isUpdating&&(e.isLayoutDirty=!0);let{crossfade:r}=e.options;!1===r&&n.hide()}}exitAnimationComplete(){this.members.forEach(e=>{let{options:t,resumingFrom:n}=e;t.onExitComplete&&t.onExitComplete(),n&&n.options.onExitComplete&&n.options.onExitComplete()})}scheduleRender(){this.members.forEach(e=>{e.instance&&e.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}let rN={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0},rR="undefined"!=typeof window&&void 0!==window.MotionDebug,rO=["","X","Y","Z"],rP={visibility:"hidden"},rD=0;function rM(e,t,n,r){let{latestValues:i}=t;i[e]&&(n[e]=i[e],t.setStaticValue(e,0),r&&(r[e]=0))}function rL({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:i}){return class{constructor(e={},n=null==t?void 0:t()){this.id=rD++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,rR&&(rN.totalNodes=rN.resolvedTargetDeltas=rN.recalculatedProjection=0),this.nodes.forEac
46h(rF),this.nodes.forEach(rZ),this.nodes.forEach(rV),this.nodes.forEach(rB),rR&&window.MotionDebug.record(rN)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=e,this.root=n?n.root||n:this,this.path=n?[...n.path,n]:[],this.parent=n,this.depth=n?n.depth+1:0;for(let e=0;e<this.path.length;e++)this.path[e].shouldResetTransform=!0;this.root===this&&(this.nodes=new ri)}addEventListener(e,t){return this.eventHandlers.has(e)||this.eventHandlers.set(e,new N),this.eventHandlers.get(e).add(t)}notifyListeners(e,...t){let n=this.eventHandlers.get(e);n&&n.notify(...t)}hasListeners(e){return this.eventHandlers.has(e)}mount(t,n=this.root.hasTreeAnimated){if(this.instance)return;this.isSVG=t instanceof SVGElement&&"svg"!==t.tagName,this.instance=t;let{layoutId:r,layout:i,visualElement:s}=this.options;if(s&&!s.current&&s.mount(t),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),n&&(i||r)&&(this.isLayoutDirty=!0),e){let n,r=()=>this.root.updateBlockedByResize=!1;e(t,()=>{this.root.updateBlockedByResize=!0,n&&n(),n=function(e,t){let n=w.now(),r=({timestamp:t})=>{let i=t-n;i>=250&&(A(r),e(i-250))};return _.read(r,!0),()=>A(r)}(r,250),n4.hasAnimatedSinceResize&&(n4.hasAnimatedSinceResize=!1,this.nodes.forEach(rY))})}r&&this.root.registerSharedNode(r,this),!1!==this.options.animate&&s&&(r||i)&&this.addEventListener("didUpdate",({delta:e,hasLayoutChanged:t,hasRelativeTargetChanged:n,layout:r})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}let i=this.options.transition||s.getDefaultTransition()||rJ,{onLayoutAnimationStart:a,onLayoutAnimationComplete:o}=s.getProps(),l=!this.targetLayout||!rS(this.targetLayout,r)||n,u=!t&&n;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||u||t&&(l||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(e,u);let t={...p(i,"layout"),onPlay:a,onComplete:o};(s.shouldReduceMotion||this.options.layoutRoot)&&(t.delay=0,t.type=!1),this.startAnimation(t)}else t||rY(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=r})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);let e=this.getStack();e&&e.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,A(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){!this.isUpdateBlocked()&&(this.isUpdating=!0,this.nodes&&this.nodes.forEach(rW),this.animationId++)}getTransformTemplate(){let{visualElement:e}=this.options;return e&&e.getProps().transformTemplate}willUpdate(e=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&function e(t){if(t.hasCheckedOptimisedAppear=!0,t.root===t)return;let{visualElement:n}=t.options;if(!n)return;let r=n.props[j];if(window.MotionHasOptimisedAnimation(r,"transform")){let{layout:e,layoutId:n}=t.options;window.MotionCancelOptimisedAnimation(r,"transform",_,!(e||n))}let{parent:i}=t;i&&!i.hasCheckedOptimisedAppear&&e(i)}(this),this.root.isUpdating||this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let e=0;e<this.path.length;e++){let t=this.path[e];t.shouldResetTransform=!0,t.updateScroll("snapshot"),t.options.layoutRoot&&t.willUpdate(!1)}let{layoutId:t,layout:n}=this.options;if(void 0===t&&!n)return;let r=this.getTransformTemplate();this.prevTransformTemplateValue=r?r(this.latestValues,""):void 0,this.updateSnapshot(),e&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEac
46h(rU);return}this.isUpdating||this.nodes.forEach(rH),this.isUpdating=!1,this.nodes.forEach(rG),this.nodes.forEach(rj),this.nodes.forEach(rz),this.clearAllSnapshots();let e=w.now();x.delta=ed(0,1e3/60,e-x.timestamp),x.timestamp=e,x.isProcessing=!0,k.update.process(x),k.preRender.process(x),k.render.process(x),x.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,n8.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(r$),this.sharedNodes.forEach(rq)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,_.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){_.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){!this.snapshot&&this.instance&&(this.snapshot=this.measure())}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let e=0;e<this.path.length;e++)this.path[e].updateScroll();let e=this.layout;this.layout=this.measure(!1),this.layoutCorrected=nN(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);let{visualElement:t}=this.options;t&&t.notify("LayoutMeasure",this.layout.layoutBox,e?e.layoutBox:void 0)}updateScroll(e="measure"){let t=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===e&&(t=!1),t){let t=r(this.instance);this.scroll={animationId:this.root.animationId,phase:e,isRoot:t,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:t}}}resetTransform(){if(!i)return;let e=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,t=this.projectionDelta&&!rA(this.projectionDelta),n=this.getTransformTemplate(),r=n?n(this.latestValues,""):void 0,s=r!==this.prevTransformTemplateValue;e&&(t||nM(this.latestValues)||s)&&(i(this.instance,r),this.shouldResetTransform=!1,this.scheduleRender())}measure(e=!0){var t;let n=this.measurePageBox(),r=this.removeElementScroll(n);return e&&(r=this.removeTransform(r)),r2((t=r).x),r2(t.y),{animationId:this.root.animationId,measuredBox:n,layoutBox:r,latestValues:{},source:this.id}}measurePageBox(){var e;let{visualElement:t}=this.options;if(!t)return nN();let n=t.measureViewportBox();if(!((null==(e=this.scroll)?void 0:e.wasRoot)||this.path.some(r4))){let{scroll:e}=this.root;e&&(nB(n.x,e.offset.x),nB(n.y,e.offset.y))}return n}removeElementScroll(e){var t;let n=nN();if(rm(n,e),null==(t=this.scroll)?void 0:t.wasRoot)return n;for(let t=0;t<this.path.length;t++){let r=this.path[t],{scroll:i,options:s}=r;r!==this.root&&i&&s.layoutScroll&&(i.wasRoot&&rm(n,e),nB(n.x,i.offset.x),nB(n.y,i.offset.y))}return n}applyTransform(e,t=!1){let n=nN();rm(n,e);for(let e=0;e<this.path.length;e++){let r=this.path[e];!t&&r.options.layoutScroll&&r.scroll&&r!==r.root&&nU(n,{x:-r.scroll.offset.x,y:-r.scroll.offset.y}),nM(r.latestValues)&&nU(n,r.latestValues)}return nM(this.latestValues)&&nU(n,this.latestValues),n}removeTransform(e){let t=nN();rm(t,e);for(let e=0;e<this.path.length;e++){let n=this.path[e];if(!n.instance||!nM(n.latestValues))continue;nD(n.latestValues)&&n.updateSnapshot();let r=nN();rm(r,n.measurePageBox()),rT(t,n.latestValues,n.snapshot?n.snapshot.layoutBox:void 0,r)}return nM(this.latestValues)&&rT(t,this.latestValues),t}setTargetDelta(e){this.targetDelta=e,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(e){this.options={...this.options,...e,crossfade:void 0===e.crossfade||e.crossfade}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==x.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(e=!1){var t,n,r,i;let s=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=s.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=s.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=s.isS
46haredProjectionDirty);let a=!!this.resumingFrom||this!==s;if(!(e||a&&this.isSharedProjectionDirty||this.isProjectionDirty||(null==(t=this.parent)?void 0:t.isProjectionDirty)||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;let{layout:o,layoutId:l}=this.options;if(this.layout&&(o||l)){if(this.resolvedRelativeTargetAt=x.timestamp,!this.targetDelta&&!this.relativeTarget){let e=this.getClosestProjectingParent();e&&e.layout&&1!==this.animationProgress?(this.relativeParent=e,this.forceRelativeParentToResolveTarget(),this.relativeTarget=nN(),this.relativeTargetOrigin=nN(),n_(this.relativeTargetOrigin,this.layout.layoutBox,e.layout.layoutBox),rm(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(this.relativeTarget||this.targetDelta){if((this.target||(this.target=nN(),this.targetWithTransforms=nN()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target)?(this.forceRelativeParentToResolveTarget(),n=this.target,r=this.relativeTarget,i=this.relativeParent.target,nE(n.x,r.x,i.x),nE(n.y,r.y,i.y)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):rm(this.target,this.layout.layoutBox),nF(this.target,this.targetDelta)):rm(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget){this.attemptToResolveRelativeTarget=!1;let e=this.getClosestProjectingParent();e&&!!e.resumingFrom==!!this.resumingFrom&&!e.options.layoutScroll&&e.target&&1!==this.animationProgress?(this.relativeParent=e,this.forceRelativeParentToResolveTarget(),this.relativeTarget=nN(),this.relativeTargetOrigin=nN(),n_(this.relativeTargetOrigin,this.target,e.target),rm(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}rR&&rN.resolvedTargetDeltas++}}}getClosestProjectingParent(){if(!(!this.parent||nD(this.parent.latestValues)||nL(this.parent.latestValues)))if(this.parent.isProjecting())return this.parent;else return this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){var e;let t=this.getLead(),n=!!this.resumingFrom||this!==t,r=!0;if((this.isProjectionDirty||(null==(e=this.parent)?void 0:e.isProjectionDirty))&&(r=!1),n&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(r=!1),this.resolvedRelativeTargetAt===x.timestamp&&(r=!1),r)return;let{layout:i,layoutId:s}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(i||s))return;rm(this.layoutCorrected,this.layout.layoutBox);let a=this.treeScale.x,o=this.treeScale.y;!function(e,t,n,r=!1){let i,s,a=n.length;if(a){t.x=t.y=1;for(let o=0;o<a;o++){s=(i=n[o]).projectionDelta;let{visualElement:a}=i.options;(!a||!a.props.style||"contents"!==a.props.style.display)&&(r&&i.options.layoutScroll&&i.scroll&&i!==i.root&&nU(e,{x:-i.scroll.offset.x,y:-i.scroll.offset.y}),s&&(t.x*=s.x.scale,t.y*=s.y.scale,nF(e,s)),r&&nM(i.latestValues)&&nU(e,i.latestValues))}t.x<1.0000000000001&&t.x>.999999999999&&(t.x=1),t.y<1.0000000000001&&t.y>.999999999999&&(t.y=1)}}(this.layoutCorrected,this.treeScale,this.path,n),t.layout&&!t.target&&(1!==this.treeScale.x||1!==this.treeScale.y)&&(t.target=t.layout.layoutBox,t.targetWithTransforms=nN());let{target:l}=t;if(!l){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}this.projectionDelta&&this.prevProjectionDelta?(rg(this.prevProjectionDelta.x,this.projectionDelta.x),rg(this.prevProjectionDelta.y,this.projectionDelta.y)):this.createProjectionDeltas(),nb(this.projectionDelta,this.layoutCorrected,l,this.latestValues),this.treeScale.x===a&&this.treeScale.y===o&&rI(this.projectionDelta.x,this.prevProjectionDelta.x)&&rI(this.projectionDelta.y,this.prevProjectionDelta.y)||(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",l)),rR&&rN.recalculatedProjection++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(e=!0){var t;if(null==(t=this.options.visualElement)||t.scheduleRender(),e){let e=this.getStack();e&&e.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=nI(),this.projectionDelta=nI(),this.projectionDeltaWithTransform=nI()}setAnimationOrigin(e,t=!1){let n,r=this.snapshot,i=r?r.latestValues:{},s={...this.latestValues},a=nI();this.relativeParent&&this.relativeParent.options.layoutRoot||(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!t;let o=nN(),l=(r?r.source:void 0)!==(this.layout?this.layout.source:void 0),u=this.getStack(),c=!u||u.members.length<=1,d=!!(l&&!c&&!0===this.options.crossfade&&!this.path.some(rQ));this.animationProgress=0,this.mixTargetDelta=t=>{let r=t/1e3;if(rK(a.x,e.x,r),rK(a.y,e.y,r),this.setTargetDelta(a),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout){var u,h,p,f,m,g;n_(o,this.layout.layoutBox,this.relativeParent.layout.layoutBox),p=this.relativeTarget,f=this.relativeTargetOrigin,m=o,g=r,rX(p.x,f.x,m.x,g),rX(p.y,f.y,m.y,g),n&&(u=this.relativeTarget,h=n,rx(u.x,h.x)&&rx(u.y,h.y))&&(this.isProjectionDirty=!1),n||(n=nN()),rm(n,this.relativeTarget)}l&&(this.animationValues=s,function(e,t,n,r,i,s){i?(e.opacity=tm(0,void 0!==n.opacity?n.opacity:1,rd(r)),e.opacityExit=tm(void 0!==t.opacity?t.opacity:1,0,rh(r))):s&&(e.opacity=tm(void 0!==t.opacity?t.opacity:1,void 0!==n.opacity?n.opacity:1,r));for(let i=0;i<ro;i++){let s=`border${ra[i]}
46Radius`,a=rc(t,s),o=rc(n,s);(void 0!==a||void 0!==o)&&(a||(a=0),o||(o=0),0===a||0===o||ru(a)===ru(o)?(e[s]=Math.max(tm(rl(a),rl(o),r),0),(ek.test(o)||ek.test(a))&&(e[s]+="%")):e[s]=o)}(t.rotate||n.rotate)&&(e.rotate=tm(t.rotate||0,n.rotate||0,r))}(s,i,this.latestValues,r,d,c)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=r},this.mixTargetDelta(1e3*!!this.options.layoutRoot)}startAnimation(e){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(A(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=_.update(()=>{n4.hasAnimatedSinceResize=!0,this.currentAnimation=function(e,t,n){let r=D(0)?0:P(e);return r.start(t2("",r,1e3,n)),r.animation}(0,0,{...e,onUpdate:t=>{this.mixTargetDelta(t),e.onUpdate&&e.onUpdate(t)},onComplete:()=>{e.onComplete&&e.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);let e=this.getStack();e&&e.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(1e3),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){let e=this.getLead(),{targetWithTransforms:t,target:n,layout:r,latestValues:i}=e;if(t&&n&&r){if(this!==e&&this.layout&&r&&r3(this.options.animationType,this.layout.layoutBox,r.layoutBox)){n=this.target||nN();let t=ny(this.layout.layoutBox.x);n.x.min=e.target.x.min,n.x.max=n.x.min+t;let r=ny(this.layout.layoutBox.y);n.y.min=e.target.y.min,n.y.max=n.y.min+r}rm(t,n),nU(t,i),nb(this.projectionDeltaWithTransform,this.layoutCorrected,t,i)}}registerSharedNode(e,t){this.sharedNodes.has(e)||this.sharedNodes.set(e,new rC),this.sharedNodes.get(e).add(t);let n=t.options.initialPromotionConfig;t.promote({transition:n?n.transition:void 0,preserveFollowOpacity:n&&n.shouldPreserveFollowOpacity?n.shouldPreserveFollowOpacity(t):void 0})}isLead(){let e=this.getStack();return!e||e.lead===this}getLead(){var e;let{layoutId:t}=this.options;return t&&(null==(e=this.getStack())?void 0:e.lead)||this}getPrevLead(){var e;let{layoutId:t}=this.options;return t?null==(e=this.getStack())?void 0:e.prevLead:void 0}getStack(){let{layoutId:e}=this.options;if(e)return this.root.sharedNodes.get(e)}promote({needsReset:e,transition:t,preserveFollowOpacity:n}={}){let r=this.getStack();r&&r.promote(this,n),e&&(this.projectionDelta=void 0,this.needsReset=!0),t&&this.setOptions({transition:t})}relegate(){let e=this.getStack();return!!e&&e.relegate(this)}resetSkewAndRotation(){let{visualElement:e}=this.options;if(!e)return;let t=!1,{latestValues:n}=e;if((n.z||n.rotate||n.rotateX||n.rotateY||n.rotateZ||n.skewX||n.skewY)&&(t=!0),!t)return;let r={};n.z&&rM("z",e,r,this.animationValues);for(let t=0;t<rO.length;t++)rM(`rotate${rO[t]}`,e,r,this.animationValues),rM(`skew${rO[t]}`,e,r,this.animationValues);for(let t in e.render(),r)e.setStaticValue(t,r[t]),this.animationValues&&(this.animationValues[t]=r[t]);e.scheduleRender()}getProjectionStyles(e){var t,n;if(!this.instance||this.isSVG)return;if(!this.isVisible)return rP;let r={visibility:""},i=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,r.opacity="",r.pointerEvents=rs(null==e?void 0:e.pointerEvents)||"",r.transform=i?i(this.latestValues,""):"none",r;let s=this.getLead();if(!this.projectionDelta||!this.layout||!s.target){let t={};return this.options.layoutId&&(t.opacity=void 0!==this.latestValues.opacity?this.latestValues.opacity:1,t.pointerEvents=rs(null==e?void 0:e.pointerEvents)||""),this.hasProjected&&!nM(this.latestValues)&&(t.transform=i?i({},""):"none",this.hasProjected=!1),t}let a=s.animationValues||s.latestValues;this.applyTransformsToTarget(),r.transform=function(e,t,n){let r="",i=e.x.translate/t.x,s=e.y.translate/t.y,a=(null==n?void 0:n.z)||0;if((i||s||a)&&(r=`translate3d(${i}px, ${s}px, ${a}px) `),(1!==t.x||1!==t.y)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){let{transformPerspective:e,rotate:t,rotateX:i,rotateY:s,skewX:a,skewY:o}=n;e&&(r=`perspective(${e}px) ${r}`),t&&(r+=`rotate(${t}deg) `),i&&(r+=`rotateX(${i}deg) `),s&&(r+=`rotateY(${s}deg) `),a&&(r+=`skewX(${a}deg) `),o&&(r+=`skewY(${o}deg) `)}let o=e.x.scale*t.x,l=e.y.scale*t.y;return(1!==o||1!==l)&&(r+=`scale(${o}, ${l}
46)`),r||"none"}(this.projectionDeltaWithTransform,this.treeScale,a),i&&(r.transform=i(a,r.transform));let{x:o,y:l}=this.projectionDelta;for(let e in r.transformOrigin=`${100*o.origin}% ${100*l.origin}% 0`,s.animationValues?r.opacity=s===this?null!=(n=null!=(t=a.opacity)?t:this.latestValues.opacity)?n:1:this.preserveOpacity?this.latestValues.opacity:a.opacityExit:r.opacity=s===this?void 0!==a.opacity?a.opacity:"":void 0!==a.opacityExit?a.opacityExit:0,n6){if(void 0===a[e])continue;let{correct:t,applyTo:n}=n6[e],i="none"===r.transform?a[e]:t(a[e],s);if(n){let e=n.length;for(let t=0;t<e;t++)r[n[t]]=i}else r[e]=i}return this.options.layoutId&&(r.pointerEvents=s===this?rs(null==e?void 0:e.pointerEvents)||"":"none"),r}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(e=>{var t;return null==(t=e.currentAnimation)?void 0:t.stop()}),this.root.nodes.forEach(rU),this.root.sharedNodes.clear()}}}function rj(e){e.updateLayout()}function rz(e){var t;let n=(null==(t=e.resumeFrom)?void 0:t.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&n&&e.hasListeners("didUpdate")){let{layoutBox:t,measuredBox:r}=e.layout,{animationType:i}=e.options,s=n.source!==e.layout.source;"size"===i?nR(e=>{let r=s?n.measuredBox[e]:n.layoutBox[e],i=ny(r);r.min=t[e].min,r.max=r.min+i}):r3(i,n.layoutBox,t)&&nR(r=>{let i=s?n.measuredBox[r]:n.layoutBox[r],a=ny(t[r]);i.max=i.min+a,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[r].max=e.relativeTarget[r].min+a)});let a=nI();nb(a,t,n.layoutBox);let o=nI();s?nb(o,e.applyTransform(r,!0),n.measuredBox):nb(o,t,n.layoutBox);let l=!rA(a),u=!1;if(!e.resumeFrom){let r=e.getClosestProjectingParent();if(r&&!r.resumeFrom){let{snapshot:i,layout:s}=r;if(i&&s){let a=nN();n_(a,n.layoutBox,i.layoutBox);let o=nN();n_(o,t,s.layoutBox),rS(a,o)||(u=!0),r.options.layoutRoot&&(e.relativeTarget=o,e.relativeTargetOrigin=a,e.relativeParent=r)}}}e.notifyListeners("didUpdate",{layout:t,snapshot:n,delta:o,layoutDelta:a,hasLayoutChanged:l,hasRelativeTargetChanged:u})}else if(e.isLead()){let{onExitComplete:t}=e.options;t&&t()}e.options.transition=void 0}function rF(e){rR&&rN.totalNodes++,e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function rB(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function r$(e){e.clearSnapshot()}function rU(e){e.clearMeasurements()}function rH(e){e.isLayoutDirty=!1}function rG(e){let{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function rY(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function rZ(e){e.resolveTargetDelta()}function rV(e){e.calcProjection()}function rW(e){e.resetSkewAndRotation()}function rq(e){e.removeLeadSnapshot()}function rK(e,t,n){e.translate=tm(t.translate,0,n),e.scale=tm(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function rX(e,t,n,r){e.min=tm(t.min,n.min,r),e.max=tm(t.max,n.max,r)}function rQ(e){return e.animationValues&&void 0!==e.animationValues.opacityExit}let rJ={duration:.45,ease:[.4,0,.1,1]},r0=e=>"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),r1=r0("applewebkit/")&&!r0("chrome/")?Math.round:b;function r2(e){e.min=r1(e.min),e.max=r1(e.max)}function r3(e,t,n){return"position"===e||"preserve-aspect"===e&&!(.2>=Math.abs(rw(t)-rw(n)))}function r4(e){var t;return e!==e.root&&(null==(t=e.scroll)?void 0:t.wasRoot)}let r9=rL({attachResizeListener:(e,t)=>no(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),r5={current:void 0},r6=rL({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!r5.current){let e=new r9({});e.mount(window),e.setOptions({layoutScroll:!0}),r5.current=e}return r5.current},resetTransform:(e,t)=>
46{e.style.transform=void 0!==t?t:"none"},checkIsScrollRoot:e=>"fixed"===window.getComputedStyle(e).position});function r8(e,t){let n=function(e,t,n){if(e instanceof Element)return[e];if("string"==typeof e){let t=document.querySelectorAll(e);return t?Array.from(t):[]}return Array.from(e)}(e),r=new AbortController;return[n,{passive:!0,...t,signal:r.signal},()=>r.abort()]}function r7(e){return t=>{"touch"===t.pointerType||ns.x||ns.y||e(t)}}function ie(e,t,n){let{props:r}=e;e.animationState&&r.whileHover&&e.animationState.setActive("whileHover","Start"===n);let i=r["onHover"+n];i&&_.postRender(()=>i(t,nl(t)))}class it extends nt{mount(){let{current:e}=this.node;e&&(this.unmount=function(e,t,n={}){let[r,i,s]=r8(e,n),a=r7(e=>{let{target:n}=e,r=t(e);if("function"!=typeof r||!n)return;let s=r7(e=>{r(e),n.removeEventListener("pointerleave",s)});n.addEventListener("pointerleave",s,i)});return r.forEach(e=>{e.addEventListener("pointerenter",a,i)}),s}(e,e=>(ie(this.node,e,"Start"),e=>ie(this.node,e,"End"))))}unmount(){}}class ir extends nt{constructor(){super(...arguments),this.isActive=!1}onFocus(){let e=!1;try{e=this.node.current.matches(":focus-visible")}catch(t){e=!0}e&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){this.isActive&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=tA(no(this.node.current,"focus",()=>this.onFocus()),no(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}let ii=(e,t)=>!!t&&(e===t||ii(e,t.parentElement)),is=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]),ia=new WeakSet;function io(e){return t=>{"Enter"===t.key&&e(t)}}function il(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}function iu(e){return na(e)&&!(ns.x||ns.y)}function ic(e,t,n){let{props:r}=e;e.animationState&&r.whileTap&&e.animationState.setActive("whileTap","Start"===n);let i=r["onTap"+("End"===n?"":n)];i&&_.postRender(()=>i(t,nl(t)))}class id extends nt{mount(){let{current:e}=this.node;e&&(this.unmount=function(e,t,n={}){let[r,i,s]=r8(e,n),a=e=>{let r=e.currentTarget;if(!iu(e)||ia.has(r))return;ia.add(r);let s=t(e),a=(e,t)=>{window.removeEventListener("pointerup",o),window.removeEventListener("pointercancel",l),iu(e)&&ia.has(r)&&(ia.delete(r),"function"==typeof s&&s(e,{success:t}))},o=e=>{a(e,n.useGlobalTarget||ii(r,e.target))},l=e=>{a(e,!1)};window.addEventListener("pointerup",o,i),window.addEventListener("pointercancel",l,i)};return r.forEach(e=>{is.has(e.tagName)||-1!==e.tabIndex||null!==e.getAttribute("tabindex")||(e.tabIndex=0),(n.useGlobalTarget?window:e).addEventListener("pointerdown",a,i),e.addEventListener("focus",e=>((e,t)=>{let n=e.currentTarget;if(!n)return;let r=io(()=>{if(ia.has(n))return;il(n,"down");let e=io(()=>{il(n,"up")});n.addEventListener("keyup",e,t),n.addEventListener("blur",()=>il(n,"cancel"),t)});n.addEventListener("keydown",r,t),n.addEventListener("blur",()=>n.removeEventListener("keydown",r),t)})(e,i),i)}),s}(e,e=>(ic(this.node,e,"Start"),(e,{success:t})=>ic(this.node,e,t?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}let ih=new WeakMap,ip=new WeakMap,im=e=>{let t=ih.get(e.target);t&&t(e)},ig=e=>{e.forEach(im)},iy={some:0,all:1};class iv extends nt{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();let{viewport:e={}}=this.node.getProps(),{root:t,margin:n,amount:r="some",once:i}=e,s={root:t?t.current:void 0,rootMargin:n,threshold:"number"==typeof r?r:iy[r]},a=e=>{let{isIntersecting:t}=e;if(this.isInView===t||(this.isInView=t,i&&!t&&this.hasEnteredView))return;t&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",t);let{onViewportEnter:n,onViewportLeave:r}=this.node.getProps(),s=t?n:r;s&&s(e)};var o=this.node.current;let l=function({root:e,...t}){let n=e||document;ip.has(n)||ip.set(n,{});let r=ip.get(n),i=JSON.stringify(t);return r[i]||(r[i]=new IntersectionObserver(ig,{root:e,...t})),r[i]}(s);return ih.set(o,a),l.observe(o),()=>{ih.delete(o),l.unobserve(o)}}mount(){this.startObserver()}update(){if("undefined"==typeof IntersectionObserver)return;let{props:e,prevProps:t}=this.node;["amount","margin","root"].some(function({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}(e,t))&&this.startObserver()}unmount(){}}let ib=(0,n0.createContext)({strict:!1});var iE=n(32485);let iT=(0,n0.createContext)({});function i_(e){return i(e.animate)||h.some(t=>o(e[t]))}function iA(e){return!!(i_(e)||e.variants)}function ix(e){return Array.isArray(e)?e.join(" "):e}var ik=n(78179);let iS={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},iw={};for(let e in iS)iw[e]={isEnabled:t=>iS[e].some(e=>!!t[e])};let iI=Symbol.for("motionComponentSymbol");var iC=n(69652),iN=n(42255);let iR=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function iO(e){if("string"!=typeof e||e.includes("-"));else if(iR.indexOf(e)>-1||/[A-Z]/u.test(e))return!0;return!1}var iP=n(74414);let iD=e=>(t,n)=>{let r=(0,n0.useContext)(iT),s=(0,n0.useContext)(iC.t),a=()=>(function({scrapeMotionValuesFromProps:e,createRenderState:t,onUpdate:n},r,s,a){let o={latestValues:function(e,t,n,r){let s={}
46,a=r(e,{});for(let e in a)s[e]=rs(a[e]);let{initial:o,animate:l}=e,c=i_(e),d=iA(e);t&&d&&!c&&!1!==e.inherit&&(void 0===o&&(o=t.initial),void 0===l&&(l=t.animate));let h=!!n&&!1===n.initial,p=(h=h||!1===o)?l:o;if(p&&"boolean"!=typeof p&&!i(p)){let t=Array.isArray(p)?p:[p];for(let n=0;n<t.length;n++){let r=u(e,t[n]);if(r){let{transitionEnd:e,transition:t,...n}=r;for(let e in n){let t=n[e];if(Array.isArray(t)){let e=h?t.length-1:0;t=t[e]}null!==t&&(s[e]=t)}for(let t in e)s[t]=e[t]}}}return s}(r,s,a,e),renderState:t()};return n&&(o.onMount=e=>n({props:r,current:e,...o}),o.onUpdate=e=>n(e)),o})(e,t,r,s);return n?a():(0,iP.M)(a)},iM=(e,t)=>t&&"number"==typeof e?t.transform(e):e,iL={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},ij=f.length;function iz(e,t,n){let{style:r,vars:i,transformOrigin:s}=e,a=!1,o=!1;for(let e in t){let n=t[e];if(m.has(e)){a=!0;continue}if(tt(e)){i[e]=n;continue}{let t=iM(n,eZ[e]);e.startsWith("origin")?(o=!0,s[e]=t):r[e]=t}}if(!t.transform&&(a||n?r.transform=function(e,t,n){let r="",i=!0;for(let s=0;s<ij;s++){let a=f[s],o=e[a];if(void 0===o)continue;let l=!0;if(!(l="number"==typeof o?o===+!!a.startsWith("scale"):0===parseFloat(o))||n){let e=iM(o,eZ[a]);if(!l){i=!1;let t=iL[a]||a;r+=`${t}(${e}) `}n&&(t[a]=e)}}return r=r.trim(),n?r=n(t,i?"":r):i&&(r="none"),r}(t,e.transform,n):r.transform&&(r.transform="none")),o){let{originX:e="50%",originY:t="50%",originZ:n=0}=s;r.transformOrigin=`${e} ${t} ${n}`}}let iF={offset:"stroke-dashoffset",array:"stroke-dasharray"},iB={offset:"strokeDashoffset",array:"strokeDasharray"};function i$(e,t,n){return"string"==typeof e?e:eS.transform(t+n*e)}function iU(e,{attrX:t,attrY:n,attrScale:r,originX:i,originY:s,pathLength:a,pathSpacing:o=1,pathOffset:l=0,...u},c,d){if(iz(e,u,d),c){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};let{attrs:h,style:p,dimensions:f}=e;h.transform&&(f&&(p.transform=h.transform),delete h.transform),f&&(void 0!==i||void 0!==s||p.transform)&&(p.transformOrigin=function(e,t,n){let r=i$(t,e.x,e.width),i=i$(n,e.y,e.height);return`${r} ${i}`}(f,void 0!==i?i:.5,void 0!==s?s:.5)),void 0!==t&&(h.x=t),void 0!==n&&(h.y=n),void 0!==r&&(h.scale=r),void 0!==a&&function(e,t,n=1,r=0,i=!0){e.pathLength=1;let s=i?iF:iB;e[s.offset]=eS.transform(-r);let a=eS.transform(t),o=eS.transform(n);e[s.array]=`${a} ${o}`}(h,a,o,l,!1)}let iH=()=>({style:{},transform:{},transformOrigin:{},vars:{}}),iG=()=>({...iH(),attrs:{}}),iY=e=>"string"==typeof e&&"svg"===e.toLowerCase();function iZ(e,{style:t,vars:n},r,i){for(let s in Object.assign(e.style,t,i&&i.getProjectionStyles(r)),n)e.style.setProperty(s,n[s])}let iV=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function iW(e,t,n,r){for(let n in iZ(e,t,void 0,r),t.attrs)e.setAttribute(iV.has(n)?n:L(n),t.attrs[n])}function iq(e,{layout:t,layoutId:n}){return m.has(e)||e.startsWith("origin")||(t||void 0!==n)&&(!!n6[e]||"opacity"===e)}function iK(e,t,n){var r;let{style:i}=e,s={};for(let a in i)(D(i[a])||t.style&&D(t.style[a])||iq(a,e)||(null==(r=null==n?void 0:n.getValue(a))?void 0:r.liveStyle)!==void 0)&&(s[a]=i[a]);return s}function iX(e,t,n){let r=iK(e,t,n);for(let n in e)(D(e[n])||D(t[n]))&&(r[-1!==f.indexOf(n)?"attr"+n.charAt(0).toUpperCase()+n.substring(1):n]=e[n]);return r}let iQ=["x","y","width","height","cx","cy","r"],iJ={useVisualState:iD({scrapeMotionValuesFromProps:iX,createRenderState:iG,onUpdate:({props:e,prevProps:t,current:n,renderState:r,latestValues:i})=>{if(!n)return;let s=!!e.drag;if(!s){for(let e in i)if(m.has(e)){s=!0;break}}if(!s)return;let a=!t;if(t)for(let n=0;n<iQ.length;n++){let r=iQ[n];e[r]!==t[r]&&(a=!0)}a&&_.read(()=>{!function(e,t){try{t.dimensions="function"==typeof e.getBBox?e.getBBox():e.getBoundingClientRect()}catch(e){t.dimensions={x:0,y:0,width:0,height:0}}}(n,r),_.render(()=>{iU(r,i,iY(n.tagName),e.transformTemplate),iW(n,r)})})}})},i0={useVisualState:iD({scrapeMotionValuesFromProps:iK,createRenderState:iH})};function i1(e,t,n){for(let r in t)D(t[r])||iq(r,n)||(e[r]=t[r])}let i2=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function i3(e){return e.startsWith("while")||e.startsWith("drag")&&"draggable"!==e||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||i2.has(e)}let i4=e=>!i3(e);try{!function(e){e&&(i4=t=>t.startsWith("on")?!i3(t):e(t))}(require("@emotion/is-prop-valid").default)}catch(e){}let i9={current:null},i5={current:!1},i6=[...to,eR,eB],i8=new WeakMap,i7=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class se{scrapeMotionValuesFromProps(e,t,n){return{}}constructor({parent:e,props:t,presenceContext:n,reducedMotionConfig:r,blockInitialAnimation:i,visualState:s},a={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=e8,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{let e=w.now();this.renderScheduledAt<e&&(this.renderScheduledAt=e,_.render(this.render,!1,!0))};let{latestValues:o,renderState:l,onUpdate:u}=s;this.onUpdate=u,this.latestValues=o,this.baseTarget={...o},this.initialValues=t.initial?{...o}:{},this.renderState=l,this.parent=e,this.props=t,this.presenceContext=n,this.depth=e?e.depth+1:0,this.reducedMotionConfig=r,this.options=a,this.blockInitialAnimation=!!i,this.isControllingVariants=i_(t),this.isVariantNode=iA(t),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(e&&e.current);let{willChange:c,...d}=this.scrapeMotionValuesFromProps(t,{},this);for(let e in d){let t=d[e];void 0!==o[e]&&D(t)&&t.set(o[e],!1)}}mount(e){this.current=e,i8.set(e,this),this.projection&&!this.projection.instance&&this.projection.mount(e),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEac
46h((e,t)=>this.bindToMotionValue(t,e)),i5.current||function(){if(i5.current=!0,ik.B)if(window.matchMedia){let e=window.matchMedia("(prefers-reduced-motion)"),t=()=>i9.current=e.matches;e.addListener(t),t()}else i9.current=!1}(),this.shouldReduceMotion="never"!==this.reducedMotionConfig&&("always"===this.reducedMotionConfig||i9.current),this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){for(let e in i8.delete(this.current),this.projection&&this.projection.unmount(),A(this.notifyUpdate),A(this.render),this.valueSubscriptions.forEach(e=>e()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this),this.events)this.events[e].clear();for(let e in this.features){let t=this.features[e];t&&(t.unmount(),t.isMounted=!1)}this.current=null}bindToMotionValue(e,t){let n;this.valueSubscriptions.has(e)&&this.valueSubscriptions.get(e)();let r=m.has(e),i=t.on("change",t=>{this.latestValues[e]=t,this.props.onUpdate&&_.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0)}),s=t.on("renderRequest",this.scheduleRender);window.MotionCheckAppearSync&&(n=window.MotionCheckAppearSync(this,e,t)),this.valueSubscriptions.set(e,()=>{i(),s(),n&&n(),t.owner&&t.stop()})}sortNodePosition(e){return this.current&&this.sortInstanceNodePosition&&this.type===e.type?this.sortInstanceNodePosition(this.current,e.current):0}updateFeatures(){let e="animation";for(e in iw){let t=iw[e];if(!t)continue;let{isEnabled:n,Feature:r}=t;if(!this.features[e]&&r&&n(this.props)&&(this.features[e]=new r(this)),this.features[e]){let t=this.features[e];t.isMounted?t.update():(t.mount(),t.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):nN()}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,t){this.latestValues[e]=t}update(e,t){(e.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=e,this.prevPresenceContext=this.presenceContext,this.presenceContext=t;for(let t=0;t<i7.length;t++){let n=i7[t];this.propEventSubscriptions[n]&&(this.propEventSubscriptions[n](),delete this.propEventSubscriptions[n]);let r=e["on"+n];r&&(this.propEventSubscriptions[n]=this.on(n,r))}this.prevMotionValues=function(e,t,n){for(let r in t){let i=t[r],s=n[r];if(D(i))e.addValue(r,i);else if(D(s))e.addValue(r,P(i,{owner:e}));else if(s!==i)if(e.hasValue(r)){let t=e.getValue(r);!0===t.liveStyle?t.jump(i):t.hasAnimated||t.set(i)}else{let t=e.getStaticValue(r);e.addValue(r,P(void 0!==t?t:i,{owner:e}))}}for(let r in n)void 0===t[r]&&e.removeValue(r);return t}(this,this.scrapeMotionValuesFromProps(e,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue(),this.onUpdate&&this.onUpdate(this)}getProps(){return this.props}getVariant(e){return this.props.variants?this.props.variants[e]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(e){let t=this.getClosestVariantNode();if(t)return t.variantChildren&&t.variantChildren.add(e),()=>t.variantChildren.delete(e)}addValue(e,t){let n=this.values.get(e);t!==n&&(n&&this.removeValue(e),this.bindToMotionValue(e,t),this.values.set(e,t),this.latestValues[e]=t.get())}removeValue(e){this.values.delete(e);let t=this.valueSubscriptions.get(e);t&&(t(),this.valueSubscriptions.delete(e)),delete this.latestValues[e],this.removeValueFromRenderState(e,this.renderState)}hasValue(e){return this.values.has(e)}getValue(e,t){if(this.props.values&&this.props.values[e])return this.props.values[e];let n=this.values.get(e);return void 0===n&&void 0!==t&&(n=P(null===t?void 0:t,{owner:this}),this.addValue(e,n)),n}readValue(e,t){var n;let r=void 0===this.latestValues[e]&&this.current?null!=(n=this.getBaseTargetFromProps(this.props,e))?n:this.readValueFromInstance(this.current,e,this.options):this.latestValues[e];if(null!=r){if("string"==typeof r&&(e7(r)||ec(r)))r=parseFloat(r);else{let n;n=r,!i6.find(ta(n))&&eB.test(t)&&(r=eq(e,t))}this.setBaseTarget(e,D(r)?r.get():r)}return D(r)?r.get():r}setBaseTarget(e,t){this.baseTarget[e]=t}getBaseTarget(e){var t;let n,{initial:r}=this.props;if("string"==typeof r||"object"==typeof r){let i=u(this.props,r,null==(t=this.presenceContext)?void 0:t.custom);i&&(n=i[e])}if(r&&void 0!==n)return n;let i=this.getBaseTargetFromProps(this.props,e);return void 0===i||D(i)?void 0!==this.initialValues[e]&&void 0===n?void 0:this.baseTarget[e]:i}on(e,t){return this.events[e]||(this.events[e]=new N),this.events[e].add(t)}notify(e,...t){this.events[e]&&this.events[e].notify(...t)}}class st extends se{constructor(){super(...arguments),this.KeyframeResolver=tu}sortInstanceNodePosition(e,t){return 2&e.compareDocumentPosition(t)?1:-1}getBaseTargetFromProps(e,t){return e.style?e.style[t]:void 0}removeValueFromRenderState(e,{vars:t,style:n}){delete t[e],delete n[e]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);let{children:e}=this.props;D(e)&&(this.childSubscription=e.on("change",e=>{this.current&&(this.current.textContent=`${e}`)}))}}class sn extends st{constructor(){super(...arguments),this.type="html",this.renderInstance=iZ}readValueFromInstance(e,t){if(m.has(t)){let e=eW(t);return e&&e.default||0}{let n=window.getComputedStyle(e),r=(tt(t)?n.getPropertyValue(t):n[t])||0;return"string"==typeof r?r.trim():r}}measureInstanceViewportBox(e,{transformPagePoint:t}){return nH(e,t)}build(e,t,n){iz(e,t,n.transformTemplate)}scrapeMotionValuesFromProps(e,t,n){return iK(e,t,n)}}class sr extends st{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=nN}getBaseTargetFromProps(e,t){return e[t]}readValueFromInstance(e,t){if(m.has(t)){let e=eW(t);return e&&e.default||0}return t=iV.has(t)?t:L(t),e.getAttribute(t)}scrapeMotionValuesFromProps(e,t,n){return iX(e,t,n)}
46build(e,t,n){iU(e,t,this.isSVGTag,n.transformTemplate)}renderInstance(e,t,n,r){iW(e,t,n,r)}mount(e){this.isSVGTag=iY(e.tagName),super.mount(e)}}let si=(nX={animation:{Feature:nn},exit:{Feature:ni},inView:{Feature:iv},tap:{Feature:id},focus:{Feature:ir},hover:{Feature:it},pan:{Feature:nK},drag:{Feature:nW,ProjectionNode:r6,MeasureLayout:rt},layout:{ProjectionNode:r6,MeasureLayout:rt}},nQ=(e,t)=>iO(e)?new sr(t):new sn(t,{allowProjection:e!==n0.Fragment}),function(e,{forwardMotionProps:t}={forwardMotionProps:!1}){return function({preloadedFeatures:e,createVisualElement:t,useRender:n,useVisualState:r,Component:i}){var s,a;function l(e,s){var a;let l,u={...(0,n0.useContext)(iE.Q),...e,layoutId:function({layoutId:e}){let t=(0,n0.useContext)(n2.L).id;return t&&void 0!==e?t+"-"+e:e}(e)},{isStatic:c}=u,d=function(e){let{initial:t,animate:n}=function(e,t){if(i_(e)){let{initial:t,animate:n}=e;return{initial:!1===t||o(t)?t:void 0,animate:o(n)?n:void 0}}return!1!==e.inherit?t:{}}(e,(0,n0.useContext)(iT));return(0,n0.useMemo)(()=>({initial:t,animate:n}),[ix(t),ix(n)])}(e),h=r(e,c);if(!c&&ik.B){(0,n0.useContext)(ib).strict;let e=function(e){let{drag:t,layout:n}=iw;if(!t&&!n)return{};let r={...t,...n};return{MeasureLayout:(null==t?void 0:t.isEnabled(e))||(null==n?void 0:n.isEnabled(e))?r.MeasureLayout:void 0,ProjectionNode:r.ProjectionNode}}(u);l=e.MeasureLayout,d.visualElement=function(e,t,n,r,i){var s,a;let{visualElement:o}=(0,n0.useContext)(iT),l=(0,n0.useContext)(ib),u=(0,n0.useContext)(iC.t),c=(0,n0.useContext)(iE.Q).reducedMotion,d=(0,n0.useRef)(null);r=r||l.renderer,!d.current&&r&&(d.current=r(e,{visualState:t,parent:o,props:n,presenceContext:u,blockInitialAnimation:!!u&&!1===u.initial,reducedMotionConfig:c}));let h=d.current,p=(0,n0.useContext)(n3);h&&!h.projection&&i&&("html"===h.type||"svg"===h.type)&&function(e,t,n,r){let{layoutId:i,layout:s,drag:a,dragConstraints:o,layoutScroll:l,layoutRoot:u}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:function e(t){if(t)return!1!==t.options.allowProjection?t.projection:e(t.parent)}(e.parent)),e.projection.setOptions({layoutId:i,layout:s,alwaysMeasureLayout:!!a||o&&ng(o),visualElement:e,animationType:"string"==typeof s?s:"both",initialPromotionConfig:r,layoutScroll:l,layoutRoot:u})}(d.current,n,i,p);let f=(0,n0.useRef)(!1);(0,n0.useInsertionEffect)(()=>{h&&f.current&&h.update(n,u)});let m=n[j],g=(0,n0.useRef)(!!m&&!(null==(s=window.MotionHandoffIsComplete)?void 0:s.call(window,m))&&(null==(a=window.MotionHasOptimisedAnimation)?void 0:a.call(window,m)));return(0,iN.E)(()=>{h&&(f.current=!0,window.MotionIsMounted=!0,h.updateFeatures(),n8.render(h.render),g.current&&h.animationState&&h.animationState.animateChanges())}),(0,n0.useEffect)(()=>{h&&(!g.current&&h.animationState&&h.animationState.animateChanges(),g.current&&(queueMicrotask(()=>{var e;null==(e=window.MotionHandoffMarkAsComplete)||e.call(window,m)}),g.current=!1))}),h}(i,h,u,t,e.ProjectionNode)}return(0,nJ.jsxs)(iT.Provider,{value:d,children:[l&&d.visualElement?(0,nJ.jsx)(l,{visualElement:d.visualElement,...u}):null,n(i,e,(a=d.visualElement,(0,n0.useCallback)(e=>{e&&h.onMount&&h.onMount(e),a&&(e?a.mount(e):a.unmount()),s&&("function"==typeof s?s(e):ng(s)&&(s.current=e))},[a])),h,c,d.visualElement)]})}e&&function(e){for(let t in e)iw[t]={...iw[t],...e[t]}}(e),l.displayName=`motion.${"string"==typeof i?i:`create(${null!=(a=null!=(s=i.displayName)?s:i.name)?a:""})`}`;let u=(0,n0.forwardRef)(l);return u[iI]=i,u}({...iO(e)?iJ:i0,preloadedFeatures:nX,useRender:function(e=!1){return(t,n,r,{latestValues:i},s)=>{let a=(iO(t)?function(e,t,n,r){let i=(0,n0.useMemo)(()=>{let n=iG();return iU(n,t,iY(r),e.transformTemplate),{...n.attrs,style:{...n.style}}},[t]);if(e.style){let t={};i1(t,e.style,e),i.style={...t,...i.style}}return i}:function(e,t){let n={},r=function(e,t){let n=e.style||{},r={};return i1(r,n,e),Object.assign(r,function({transformTemplate:e},t){return(0,n0.useMemo)(()=>{let n=iH();return iz(n,t,e),Object.assign({},n.vars,n.style)},[t])}(e,t)),r}(e,t);return e.drag&&!1!==e.dragListener&&(n.draggable=!1,r.userSelect=r.WebkitUserSelect=r.WebkitTouchCallout="none",r.touchAction=!0===e.drag?"none":`pan-${"x"===e.drag?"y":"x"}
46`),void 0===e.tabIndex&&(e.onTap||e.onTapStart||e.whileTap)&&(n.tabIndex=0),n.style=r,n})(n,i,s,t),o=function(e,t,n){let r={};for(let i in e)("values"!==i||"object"!=typeof e.values)&&(i4(i)||!0===n&&i3(i)||!t&&!i3(i)||e.draggable&&i.startsWith("onDrag"))&&(r[i]=e[i]);return r}(n,"string"==typeof t,e),l=t!==n0.Fragment?{...o,...a,ref:r}:{},{children:u}=n,c=(0,n0.useMemo)(()=>D(u)?u.get():u,[u]);return(0,n0.createElement)(t,{...l,children:c})}}(t),createVisualElement:nQ,Component:e})})},54728:(e,t,n)=>{n.d(t,{N:()=>i});var r=n(23073),i=globalThis?.document?r.useLayoutEffect:()=>{}},57515:(e,t,n)=>{n.d(t,{C:()=>s,U:()=>a});var r=n(82967),i=n(99244);function s(e){return(0,r.AQ)(this,arguments,function(){var t,n,i;return(0,r.YH)(this,function(s){switch(s.label){case 0:t=e.getReader(),s.label=1;case 1:s.trys.push([1,,9,10]),s.label=2;case 2:return[4,(0,r.N3)(t.read())];case 3:if(i=(n=s.sent()).value,!n.done)return[3,5];return[4,(0,r.N3)(void 0)];case 4:return[2,s.sent()];case 5:return[4,(0,r.N3)(i)];case 6:return[4,s.sent()];case 7:return s.sent(),[3,2];case 8:return[3,10];case 9:return t.releaseLock(),[7];case 10:return[2]}})})}function a(e){return(0,i.T)(null==e?void 0:e.getReader)}},57568:(e,t,n)=>{n.d(t,{U:()=>E});var r=n(61641),i=n(64910);function s(e){return/^\d+$/.test(e)}class a{constructor(e={}){this.data={},this.signals=new Map,this.subscriptions=new Set,this.data=e}getSignal(e){let t=this.normalizePath(e);return this.signals.has(t)||this.signals.set(t,(0,i.vP)(this.get(t))),this.signals.get(t)}set(e,t){if(null==e)throw new r.Uu("Path cannot be null or undefined.");if("/"===e||""===e)return this.data=t,this.notifyAllSignals(),this;let n=this.parsePath(e),i=n.pop();this.data||(this.data={});let a=this.data;for(let t=0;t<n.length;t++){let o=n[t];if(Array.isArray(a)&&!s(o))throw new r.Uu(`Cannot use non-numeric segment '${o}' on an array in path '${e}'.`,e);if(void 0!==a[o]&&null!==a[o]&&"object"!=typeof a[o])throw new r.Uu(`Cannot set path '${e}': segment '${o}' is a primitive value.`,e);if(void 0===a[o]||null===a[o]){let e=t<n.length-1?n[t+1]:i;a[o]=s(e)?[]:{}}a=a[o]}if(Array.isArray(a)&&!s(i))throw new r.Uu(`Cannot use non-numeric segment '${i}' on an array in path '${e}'.`,e);return void 0===t?Array.isArray(a)?a[parseInt(i,10)]=void 0:delete a[i]:a[i]=t,this.notifySignals(e),this}get(e){if(null==e)throw new r.Uu("Path cannot be null or undefined.");if("/"===e||""===e)return this.data;let t=this.parsePath(e),n=this.data;for(let e of t){if(null==n)return;n=n[e]}return n}subscribe(e,t){let n=this.getSignal(e),r=!0,s=(0,i.bQ)(n),a=(0,i.QZ)(()=>{let e=(0,i._W)(n);s=e,r||t(e)});return r=!1,this.subscriptions.add(a),{get value(){return s},unsubscribe:()=>{a(),this.subscriptions.delete(a)}}}dispose(){for(let e of this.subscriptions)e();this.subscriptions.clear(),this.signals.clear()}normalizePath(e){return e.length>1&&e.endsWith("/")?e.slice(0,-1):e||"/"}parsePath(e){return e.split("/").filter(e=>e.length>0).map(e=>e.replace(/~([01])/g,(e,t)=>"1"===t?"/":"~"))}notifySignals(e){let t=this.normalizePath(e);(0,i.os)(()=>{this.updateSignal(t);let e=t;for(;"/"!==e&&""!==e;)e=e.substring(0,e.lastIndexOf("/"))||"/",this.updateSignal(e);for(let e of this.signals.keys())this.isDescendant(e,t)&&this.updateSignal(e)})}updateSignal(e){let t=this.signals.get(e);if(t){let n=this.get(e);Array.isArray(n)?(0,i.KY)(t,[...n]):"object"==typeof n&&null!==n?(0,i.KY)(t,{...n}):(0,i.KY)(t,n)}}notifyAllSignals(){(0,i.os)(()=>{for(let e of this.signals.keys())this.updateSignal(e)})}isDescendant(e,t){return"/"===t||""===t?"/"!==e:e.startsWith(t+"/")}}class o{constructor(){this.listeners=new Set}subscribe(e){return this.listeners.add(e),{unsubscribe:()=>this.listeners.delete(e)}}async emit(e){for(let t of this.listeners)try{await t(e)}catch(e){console.error("EventEmitter error:",e)}}dispose(){this.listeners.clear()}}class l{constructor(){this.components=new Map,this._onCreated=new o,this._onDeleted=new o,this.onCreated=this._onCreated,this.onDeleted=this._onDeleted}get(e){return this.components.get(e)}get entries(){return this.components.entries()}addComponent(e){if(this.components.has(e.id))throw new r.L$(`Component with id '${e.id}' already exists.`);this.components.set(e.id,e),this._onCreated.emit(e)}
46removeComponent(e){let t=this.components.get(e);t&&(this.components.delete(e),t.dispose(),this._onDeleted.emit(e))}dispose(){for(let e of this.components.values())e.dispose();this.components.clear(),this._onCreated.dispose(),this._onDeleted.dispose()}}var u=n(59193);let c=u.Ik({name:u.Yj().describe("The name of the action, taken from the component's action.event.name property."),surfaceId:u.Yj().describe("The id of the surface where the event originated."),sourceComponentId:u.Yj().describe("The id of the component that triggered the event."),timestamp:u.Yj().datetime().describe("An ISO 8601 timestamp of when the event occurred."),context:u.g1(u.bz()).describe("A JSON object containing the key-value pairs from the component's action.event.context, after resolving all data bindings.")}).strict(),d=u.Ik({code:u.eu("VALIDATION_FAILED"),surfaceId:u.Yj().describe("The id of the surface where the error occurred."),path:u.Yj().describe("The JSON pointer to the field that failed validation (e.g. '/components/0/text')."),message:u.Yj().describe("A short one or tw
46o sentence description of why validation failed.")}).strict(),h=u.Ik({code:u.Yj().refine(e=>"VALIDATION_FAILED"!==e),message:u.Yj().describe("A short one or two sentence description of why the error occurred."),surfaceId:u.Yj().describe("The id of the surface where the error occurred.")}).passthrough(),p=u.KC([d,h]),f=u.Ik({version:u.eu("v0.9")}).and(u.KC([u.Ik({action:c}),u.Ik({error:p})]));u.Ik({version:u.eu("v0.9"),surfaces:u.g1(u.Ik({}).passthrough()).describe("A map of surface IDs to their current data models.")}).strict();let m=u.YO(f).describe("A list of client messages.");u.Ik({messages:m}).strict().describe("An object wrapping a list of client messages.");class g{constructor(e,t,n={},r=!1){this.id=e,this.catalog=t,this.theme=n,this.sendDataModel=r,this._onAction=new o,this._onError=new o,this.onAction=this._onAction,this.onError=this._onError,this.dataModel=new a({}),this.componentsModel=new l}async dispatchAction(e,t){if(e&&"object"==typeof e&&"event"in e&&e.event){let n={name:e.event.name,surfaceId:this.id,sourceComponentId:t,timestamp:new Date().toISOString(),context:e.event.context||{}},r=c.safeParse(n);r.success?await this._onAction.emit(r.data):console.error("A2UI: Invalid action payload dispatched.",r.error.format())}}async dispatchError(e){await this._onError.emit({...e,surfaceId:this.id})}dispose(){this.dataModel.dispose(),this.componentsModel.dispose(),this._onAction.dispose(),this._onError.dispose()}}class y{constructor(){this.surfaces=new Map,this.surfaceUnsubscribers=new Map,this._onSurfaceCreated=new o,this._onSurfaceDeleted=new o,this._onAction=new o,this.onSurfaceCreated=this._onSurfaceCreated,this.onSurfaceDeleted=this._onSurfaceDeleted,this.onAction=this._onAction}addSurface(e){if(this.surfaces.has(e.id))return void console.warn(`Surface ${e.id} already exists. Ignoring.`);this.surfaces.set(e.id,e);let t=e.onAction.subscribe(e=>this._onAction.emit(e));this.surfaceUnsubscribers.set(e.id,t),this._onSurfaceCreated.emit(e)}deleteSurface(e){let t=this.surfaces.get(e);if(t){let n=this.surfaceUnsubscribers.get(e);n&&(n.unsubscribe(),this.surfaceUnsubscribers.delete(e)),this.surfaces.delete(e),t.dispose(),this._onSurfaceDeleted.emit(e)}}getSurface(e){return this.surfaces.get(e)}get surfacesMap(){return this.surfaces}dispose(){for(let e of Array.from(this.surfaces.keys()))this.deleteSurface(e);this._onSurfaceCreated.dispose(),this._onSurfaceDeleted.dispose(),this._onAction.dispose()}}class v{constructor(e,t,n){this.id=e,this.type=t,this._onUpdated=new o,this.onUpdated=this._onUpdated,this._properties=n}get properties(){return this._properties}set properties(e){this._properties=e,this._onUpdated.emit(this)}dispose(){this._onUpdated.dispose()}
46get componentTree(){return{id:this.id,type:this.type,...this._properties}}}var b=n(3181);class E{constructor(e,t){this.catalogs=e,this.actionHandler=t,this.model=new y,this.actionHandler&&this.model.onAction.subscribe(this.actionHandler)}getClientCapabilities(e){let t={"v0.9":{supportedCatalogIds:this.catalogs.map(e=>e.id)}};return e?.includeInlineCatalogs&&(t["v0.9"].inlineCatalogs=this.catalogs.map(e=>this.generateInlineCatalog(e))),t}generateInlineCatalog(e){let t,n={};for(let[t,r]of e.components.entries()){let e=(0,b.Ik)(r.schema,{target:"jsonSchema2019-09"});this.processRefs(e),n[t]={allOf:[{$ref:"common_types.json#/$defs/ComponentCommon"},{properties:{component:{const:t},...e.properties},required:["component",...e.required||[]]}]}}let r=[];for(let t of e.functions.values()){let e=(0,b.Ik)(t.schema,{target:"jsonSchema2019-09"});this.processRefs(e),r.push({name:t.name,description:t.schema.description,returnType:t.returnType,parameters:e})}if(e.themeSchema){let n=(0,b.Ik)(e.themeSchema,{target:"jsonSchema2019-09"});this.processRefs(n),t=n.properties}return{catalogId:e.id,components:n,functions:r.length>0?r:void 0,theme:t}}processRefs(e){if("object"==typeof e&&null!==e){if("string"==typeof e.description&&e.description.startsWith("REF:")){let t=e.description.substring(4).split("|"),n=t[0],r=t[1]||"";for(let t of Object.keys(e))delete e[t];e.$ref=n,r&&(e.description=r);return}if(Array.isArray(e))for(let t of e)this.processRefs(t);else for(let t of Object.keys(e))this.processRefs(e[t])}}getClientDataModel(){let e={};for(let t of this.model.surfacesMap.values())t.sendDataModel&&(e[t.id]=t.dataModel.get("/"));if(0!==Object.keys(e).length)return{version:"v0.9",surfaces:e}}onSurfaceCreated(e){return this.model.onSurfaceCreated.subscribe(e)}onSurfaceDeleted(e){return this.model.onSurfaceDeleted.subscribe(e)}processMessages(e){for(let t of Array.isArray(e)?e:e.messages)this.processMessage(t)}processMessage(e){let t=["createSurface","updateComponents","updateDataModel","deleteSurface"].filter(t=>t in e);if(t.length>1)throw new r.Po(`Message contains multiple update types: ${t.join(", ")}.`);return"createSurface"in e?void this.processCreateSurfaceMessage(e):"deleteSurface"in e?void this.processDeleteSurfaceMessage(e):"updateComponents"in e?void this.processUpdateComponentsMessage(e):"updateDataModel"in e?void this.processUpdateDataModelMessage(e):void 0}processCreateSurfaceMessage(e){let{surfaceId:t,catalogId:n,theme:i,sendDataModel:s}=e.createSurface,a=this.catalogs.find(e=>e.id===n);if(!a)throw new r.L$(`Catalog not found: ${n}`);if(this.model.getSurface(t))throw new r.L$(`Surface ${t} already exists.`);let o=new g(t,a,i,s??!1);this.model.addSurface(o)}processDeleteSurfaceMessage(e){let t=e.deleteSurface;t.surfaceId&&this.model.deleteSurface(t.surfaceId)}processUpdateComponentsMessage(e){let t=e.updateComponents;if(!t.surfaceId)return;let n=this.model.getSurface(t.surfaceId);if(!n)throw new r.L$(`Surface not found for message: ${t.surfaceId}`);for(let e of t.components){let{id:t,component:i,...s}=e;if(!t)throw new r.Po(`Component '${i}' is missing an 'id'.`);let a=n.componentsModel.get(t);if(a)if(i&&i!==a.type){n.componentsModel.removeComponent(t);let e=new v(t,i,s);n.componentsModel.addComponent(e)}else a.properties=s;else{if(!i)throw new r.Po(`Cannot create component ${t} without a type.`);let e=new v(t,i,s);n.componentsModel.addComponent(e)}}}processUpdateDataModelMessage(e){let t=e.updateDataModel;if(!t.surfaceId)return;let n=this.model.getSurface(t.surfaceId);if(!n)throw new r.L$(`Surface not found for message: ${t.surfaceId}`);let i=t.path||"/",s=t.value;n.dataModel.set(i,s)}resolvePath(e,t){if(e.startsWith("/"))return e;if(t){let n=t.endsWith("/")?t:`${t}/`;return`${n}${e}`}return`/${e}`}}},57872:(e,t,n)=>{n.d(t,{c:()=>i});var r=n(23073);function i(e){let t=r.useRef(e);return r.useEffect(()=>{t.current=e}),r.useMemo(()=>(...e)=>t.current?.(...e),[])}},58587:(e,t,n)=>{n.d(t,{t:()=>s});var r=n(89264),i=n(48032);function s(e,t,n){var s,a,o,l,u=!1;return e&&"object"==typeof e?(l=void 0===(s=e.bufferSize)?1/0:s,t=void 0===(a=e.windowTime)?1/0:a,u=void 0!==(o=e.refCount)&&o,n=e.sc
46heduler):l=null!=e?e:1/0,(0,i.u)({connector:function(){return new r.m(l,t,n)},resetOnError:!0,resetOnComplete:!1,resetOnRefCountZero:u})}},59193:(e,t,n)=>{let r;n.d(t,{kY:()=>s,bz:()=>ex,YO:()=>eS,zM:()=>eA,au:()=>eD,gM:()=>eC,k5:()=>eO,eu:()=>eR,ai:()=>e_,Ik:()=>ew,vk:()=>eP,g1:()=>eN,Yj:()=>eT,KC:()=>eI,L5:()=>ek});var i,s,a=n(11663),o=n(32156);let l=(e,t)=>{let n;switch(e.code){case a.eq.invalid_type:n=e.received===o.Zp.undefined?"Required":`Expected ${e.expected}, received ${e.received}`;break;case a.eq.invalid_literal:n=`Invalid literal value, expected ${JSON.stringify(e.expected,o.ZS.jsonStringifyReplacer)}`;break;case a.eq.unrecognized_keys:n=`Unrecognized key(s) in object: ${o.ZS.joinValues(e.keys,", ")}`;break;case a.eq.invalid_union:n="Invalid input";break;case a.eq.invalid_union_discriminator:n=`Invalid discriminator value. Expected ${o.ZS.joinValues(e.options)}`;break;case a.eq.invalid_enum_value:n=`Invalid enum value. Expected ${o.ZS.joinValues(e.options)}, received '${e.received}'`;break;case a.eq.invalid_arguments:n="Invalid function arguments";break;case a.eq.invalid_return_type:n="Invalid function return type";break;case a.eq.invalid_date:n="Invalid date";break;case a.eq.invalid_string:"object"==typeof e.validation?"includes"in e.validation?(n=`Invalid input: must include "${e.validation.includes}"`,"number"==typeof e.validation.position&&(n=`${n} at one or more positions greater than or equal to ${e.validation.position}`)):"startsWith"in e.validation?n=`Invalid input: must start with "${e.validation.startsWith}"`:"endsWith"in e.validation?n=`Invalid input: must end with "${e.validation.endsWith}"`:o.ZS.assertNever(e.validation):n="regex"!==e.validation?`Invalid ${e.validation}`:"Invalid";break;case a.eq.too_small:n="array"===e.type?`Array must contain ${e.exact?"exactly":e.inclusive?"at least":"more than"} ${e.minimum} element(s)`:"string"===e.type?`String must contain ${e.exact?"exactly":e.inclusive?"at least":"over"} ${e.minimum} character(s)`:"number"===e.type||"bigint"===e.type?`Number must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${e.minimum}`:"date"===e.type?`Date must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(e.minimum))}`:"Invalid input";break;case a.eq.too_big:n="array"===e.type?`Array must contain ${e.exact?"exactly":e.inclusive?"at most":"less than"} ${e.maximum} element(s)`:"string"===e.type?`String must contain ${e.exact?"exactly":e.inclusive?"at most":"under"} ${e.maximum} character(s)`:"number"===e.type?`Number must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:"bigint"===e.type?`BigInt must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:"date"===e.type?`Date must be ${e.exact?"exactly":e.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(e.maximum))}`:"Invalid input";break;case a.eq.custom:n="Invalid input";break;case a.eq.invalid_intersection_types:n="Intersection results could not be merged";break;case a.eq.not_multiple_of:n=`Number must be a multiple of ${e.multipleOf}`;break;case a.eq.not_finite:n="Number must be finite";break;default:n=t.defaultError,o.ZS.assertNever(e)}return{message:n}};!function(e){e.errToObj=e=>"string"==typeof e?{message:e}:e||{},e.toString=e=>"string"==typeof e?e:e?.message}(i||(i={}));let u=e=>{let{data:t,path:n,errorMaps:r,issueData:i}=e,s=[...n,...i.path||[]],a={...i,path:s};if(void 0!==i.message)return{...i,path:s,message:i.message};let o="";for(let e of r.filter(e=>!!e).slice().reverse())o=e(a,{data:t,defaultError:o}).message;return{...i,path:s,message:o}};function c(e,t){let n=u({issueData:t,data:e.data,path:e.path,errorMaps:[e.common.contextualErrorMap,e.schemaErrorMap,l,void 0].filter(e=>!!e)});e.common.issues.push(n)}class d{constructor(){this.value="valid"}dirty(){"valid"===this.value&&(this.value="dirty")}abort(){"aborted"!==this.value&&(this.value="aborted")}static mergeArray(e,t){let n=[];for(let r of t){if("aborted"===r.status)return h;"dirty"===r.status&&e.dirty(),n.push(r.value)}return{status:e.value,value:n}}static async mergeObjectAsync(e,t){let n=[];for(let e of t){let t=await e.key,r=await e.value;n.push({key:t,value:r})}return d.mergeObjectSync(e,n)}static mergeObjectSync(e,t){let n={};for(let r of t){let{key:t,value:i}=r;if("aborted"===t.status||"aborted"===i.status)return h;"dirty"===t.status&&e.dirty(),"dirty"===i.status&&e.dirty(),"__proto__"!==t.value&&(void 0!==i.value||r.alwaysSet)&&(n[t.value]=i.value)}return{status:e.value,value:n}}}let h=Object.freeze({status:"aborted"}),p=e=>({status:"dirty",value:e}),f=e=>
vendor: 5,499 bytes, line 46
46({status:"valid",value:e}),m=e=>"undefined"!=typeof Promise&&e instanceof Promise;class g{constructor(e,t,n,r){this._cachedPath=[],this.parent=e,this.data=t,this._path=n,this._key=r}get path(){return this._cachedPath.length||(Array.isArray(this._key)?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}}let y=(e,t)=>{if("valid"===t.status)return{success:!0,data:t.value};if(!e.common.issues.length)throw Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;let t=new a.G(e.common.issues);return this._error=t,this._error}}};function v(e){if(!e)return{};let{errorMap:t,invalid_type_error:n,required_error:r,description:i}=e;if(t&&(n||r))throw Error('Can\'t use "invalid_type_error" or "required_error" in conjunction with custom error map.');return t?{errorMap:t,description:i}:{errorMap:(t,i)=>{let{message:s}=e;return"invalid_enum_value"===t.code?{message:s??i.defaultError}:void 0===i.data?{message:s??r??i.defaultError}:"invalid_type"!==t.code?{message:i.defaultError}:{message:s??n??i.defaultError}},description:i}}class b{get description(){return this._def.description}_getType(e){return(0,o.CR)(e.data)}_getOrReturnCtx(e,t){return t||{common:e.parent.common,data:e.data,parsedType:(0,o.CR)(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}_processInputParams(e){return{status:new d,ctx:{common:e.parent.common,data:e.data,parsedType:(0,o.CR)(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}}_parseSync(e){let t=this._parse(e);if(m(t))throw Error("Synchronous parse encountered promise.");return t}_parseAsync(e){return Promise.resolve(this._parse(e))}parse(e,t){let n=this.safeParse(e,t);if(n.success)return n.data;throw n.error}safeParse(e,t){let n={common:{issues:[],async:t?.async??!1,contextualErrorMap:t?.errorMap},path:t?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:(0,o.CR)(e)},r=this._parseSync({data:e,path:n.path,parent:n});return y(n,r)}"~validate"(e){let t={common:{issues:[],async:!!this["~standard"].async},path:[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:(0,o.CR)(e)};if(!this["~standard"].async)try{let n=this._parseSync({data:e,path:[],parent:t});return"valid"===n.status?{value:n.value}:{issues:t.common.issues}}catch(e){e?.message?.toLowerCase()?.includes("encountered")&&(this["~standard"].async=!0),t.common={issues:[],async:!0}}return this._parseAsync({data:e,path:[],parent:t}).then(e=>"valid"===e.status?{value:e.value}:{issues:t.common.issues})}async parseAsync(e,t){let n=await this.safeParseAsync(e,t);if(n.success)return n.data;throw n.error}async safeParseAsync(e,t){let n={common:{issues:[],contextualErrorMap:t?.errorMap,async:!0},path:t?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:(0,o.CR)(e)},r=this._parse({data:e,path:n.path,parent:n});return y(n,await (m(r)?r:Promise.resolve(r)))}refine(e,t){return this._refinement((n,r)=>{let i=e(n),s=()=>r.addIssue({code:a.eq.custom,..."string"==typeof t||void 0===t?{message:t}:"function"==typeof t?t(n):t});return"undefined"!=typeof Promise&&i instanceof Promise?i.then(e=>!!e||(s(),!1)):!!i||(s(),!1)})}refinement(e,t){return this._refinement((n,r)=>!!e(n)||(r.addIssue("function"==typeof t?t(n,r):t),!1))}_refinement(e){return new eh({schema:this,typeName:s.ZodEffects,effect:{type:"refinement",refinement:e}})}superRefine(e){return this._refinement(e)}constructor(e){this.spa=this.safeParseAsync,this._def=e,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.readonly=this.readonly.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this),this["~standard"]={version:1,vendor:"zod",validate:e=>this["~validate"](e)}}optional(){return ep.create(this,this._def)}nullable(){return ef.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return q.create(this)}promise(){return ed.create(this,this._def)}or(e){return X.create([this,e],this._def)}and(e){return ee.create(this,e,this._def)}transform(e){return new eh({...v(this._def),schema:this,typeName:s.ZodEffects,effect:{type:"transform",transform:e}})}default(e){return new em({...v(this._def),innerType:this,defaultValue:"function"==typeof e?e:()=>e,typeName:s.ZodDefault})}brand(){return new ev({typeName:s.ZodBranded,type:this,...v(this._def)})}catch(e){return new eg({...v(this._def),innerType:this,catchValue:"function"==typeof e?e:()=>e,typeName:s.ZodCatch})}describe(e){return new this.constructor({...this._def,description:e})}pipe(e){return eb.create(this,e)}readonly(){return eE.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}let E=/^c[^\s-]{8,}
46$/i,T=/^[0-9a-z]+$/,_=/^[0-9A-HJKMNP-TV-Z]{26}$/i,A=/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i,x=/^[a-z0-9_-]{21}$/i,k=/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/,S=/^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/,w=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,I=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,C=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/(3[0-2]|[12]?[0-9])$/,N=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$/,R=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,O=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,P=/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,D="((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))",M=RegExp(`^${D}$`);function L(e){let t="[0-5]\\d";e.precision?t=`${t}\\.\\d{${e.precision}}`:null==e.precision&&(t=`${t}(\\.\\d+)?`);let n=e.precision?"+":"?";return`([01]\\d|2[0-3]):[0-5]\\d(:${t})${n}`}class j extends b{_parse(e){var t,n,i,s;let l;if(this._def.coerce&&(e.data=String(e.data)),this._getType(e)!==o.Zp.string){let t=this._getOrReturnCtx(e);return c(t,{code:a.eq.invalid_type,expected:o.Zp.string,received:t.parsedType}),h}let u=new d;for(let d of this._def.checks)if("min"===d.kind)e.data.length<d.value&&(c(l=this._getOrReturnCtx(e,l),{code:a.eq.too_small,minimum:d.value,type:"string",inclusive:!0,exact:!1,message:d.message}),u.dirty());else if("max"===d.kind)e.data.length>d.value&&(c(l=this._getOrReturnCtx(e,l),{code:a.eq.too_big,maximum:d.value,type:"string",inclusive:!0,exact:!1,message:d.message}),u.dirty());else if("length"===d.kind){let t=e.data.length>d.value,n=e.data.length<d.value;(t||n)&&(l=this._getOrReturnCtx(e,l),t?c(l,{code:a.eq.too_big,maximum:d.value,type:"string",inclusive:!0,exact:!0,message:d.message}):n&&c(l,{code:a.eq.too_small,minimum:d.value,type:"string",inclusive:!0,exact:!0,message:d.message}),u.dirty())}else if("email"===d.kind)w.test(e.data)||(c(l=this._getOrReturnCtx(e,l),{validation:"email",code:a.eq.invalid_string,message:d.message}),u.dirty());else if("emoji"===d.kind)r||(r=RegExp("^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$","u")),r.test(e.data)||(c(l=this._getOrReturnCtx(e,l),{validation:"emoji",code:a.eq.invalid_string,message:d.message}),u.dirty());else if("uuid"===d.kind)A.test(e.data)||(c(l=this._getOrReturnCtx(e,l),{validation:"uuid",code:a.eq.invali
vendor: 11,721 bytes, line 46
46d_string,message:d.message}),u.dirty());else if("nanoid"===d.kind)x.test(e.data)||(c(l=this._getOrReturnCtx(e,l),{validation:"nanoid",code:a.eq.invalid_string,message:d.message}),u.dirty());else if("cuid"===d.kind)E.test(e.data)||(c(l=this._getOrReturnCtx(e,l),{validation:"cuid",code:a.eq.invalid_string,message:d.message}),u.dirty());else if("cuid2"===d.kind)T.test(e.data)||(c(l=this._getOrReturnCtx(e,l),{validation:"cuid2",code:a.eq.invalid_string,message:d.message}),u.dirty());else if("ulid"===d.kind)_.test(e.data)||(c(l=this._getOrReturnCtx(e,l),{validation:"ulid",code:a.eq.invalid_string,message:d.message}),u.dirty());else if("url"===d.kind)try{new URL(e.data)}catch{c(l=this._getOrReturnCtx(e,l),{validation:"url",code:a.eq.invalid_string,message:d.message}),u.dirty()}else"regex"===d.kind?(d.regex.lastIndex=0,d.regex.test(e.data)||(c(l=this._getOrReturnCtx(e,l),{validation:"regex",code:a.eq.invalid_string,message:d.message}),u.dirty())):"trim"===d.kind?e.data=e.data.trim():"includes"===d.kind?e.data.includes(d.value,d.position)||(c(l=this._getOrReturnCtx(e,l),{code:a.eq.invalid_string,validation:{includes:d.value,position:d.position},message:d.message}),u.dirty()):"toLowerCase"===d.kind?e.data=e.data.toLowerCase():"toUpperCase"===d.kind?e.data=e.data.toUpperCase():"startsWith"===d.kind?e.data.startsWith(d.value)||(c(l=this._getOrReturnCtx(e,l),{code:a.eq.invalid_string,validation:{startsWith:d.value},message:d.message}),u.dirty()):"endsWith"===d.kind?e.data.endsWith(d.value)||(c(l=this._getOrReturnCtx(e,l),{code:a.eq.invalid_string,validation:{endsWith:d.value},message:d.message}),u.dirty()):"datetime"===d.kind?(function(e){let t=`${D}T${L(e)}`,n=[];return n.push(e.local?"Z?":"Z"),e.offset&&n.push("([+-]\\d{2}:?\\d{2})"),t=`${t}(${n.join("|")})`,RegExp(`^${t}$`)})(d).test(e.data)||(c(l=this._getOrReturnCtx(e,l),{code:a.eq.invalid_string,validation:"datetime",message:d.message}),u.dirty()):"date"===d.kind?M.test(e.data)||(c(l=this._getOrReturnCtx(e,l),{code:a.eq.invalid_string,validation:"date",message:d.message}),u.dirty()):"time"===d.kind?RegExp(`^${L(d)}$`).test(e.data)||(c(l=this._getOrReturnCtx(e,l),{code:a.eq.invalid_string,validation:"time",message:d.message}),u.dirty()):"duration"===d.kind?S.test(e.data)||(c(l=this._getOrReturnCtx(e,l),{validation:"duration",code:a.eq.invalid_string,message:d.message}),u.dirty()):"ip"===d.kind?(t=e.data,!(("v4"===(n=d.version)||!n)&&I.test(t)||("v6"===n||!n)&&N.test(t))&&1&&(c(l=this._getOrReturnCtx(e,l),{validation:"ip",code:a.eq.invalid_string,message:d.message}),u.dirty())):"jwt"===d.kind?!function(e,t){if(!k.test(e))return!1;try{let[n]=e.split(".");if(!n)return!1;let r=n.replace(/-/g,"+").replace(/_/g,"/").padEnd(n.length+(4-n.length%4)%4,"="),i=JSON.parse(atob(r));if("object"!=typeof i||null===i||"typ"in i&&i?.typ!=="JWT"||!i.alg||t&&i.alg!==t)return!1;return!0}catch{return!1}}(e.data,d.alg)&&(c(l=this._getOrReturnCtx(e,l),{validation:"jwt",code:a.eq.invalid_string,message:d.message}),u.dirty()):"cidr"===d.kind?(i=e.data,!(("v4"===(s=d.version)||!s)&&C.test(i)||("v6"===s||!s)&&R.test(i))&&1&&(c(l=this._getOrReturnCtx(e,l),{validation:"cidr",code:a.eq.invalid_string,message:d.message}),u.dirty())):"base64"===d.kind?O.test(e.data)||(c(l=this._getOrReturnCtx(e,l),{validation:"base64",code:a.eq.invalid_string,message:d.message}),u.dirty()):"base64url"===d.kind?P.test(e.data)||(c(l=this._getOrReturnCtx(e,l),{validation:"base64url",code:a.eq.invalid_string,message:d.message}),u.dirty()):o.ZS.assertNever(d);return{status:u.value,value:e.data}}_regex(e,t,n){return this.refinement(t=>e.test(t),{validation:t,code:a.eq.invalid_string,...i.errToObj(n)})}_addCheck(e){return new j({...this._def,checks:[...this._def.checks,e]})}email(e){return this._addCheck({kind:"email",...i.errToObj(e)})}url(e){return this._addCheck({kind:"url",...i.errToObj(e)})}emoji(e){return this._addCheck({kind:"emoji",...i.errToObj(e)})}uuid(e){return this._addCheck({kind:"uuid",...i.errToObj(e)})}nanoid(e){return this._addCheck({kind:"nanoid",...i.errToObj(e)})}cuid(e){return this._addCheck({kind:"cuid",...i.errToObj(e)})}cuid2(e){return this._addCheck({kind:"cuid2",...i.errToObj(e)})}ulid(e){return this._addCheck({kind:"ulid",...i.errToObj(e)})}base64(e){return this._addCheck({kind:"base64",...i.errToObj(e)})}base64url(e){return this._addCheck({kind:"base64url",...i.errToObj(e)})}jwt(e){return this._addCheck({kind:"jwt",...i.errToObj(e)})}ip(e){return this._addCheck({kind:"ip",...i.errToObj(e)})}cidr(e){return this._addCheck({kind:"cidr",...i.errToObj(e)})}datetime(e){return"string"==typeof e?this._addCheck({kind:"datetime",precision:null,offset:!1,local:!1,message:e}):this._addCheck({kind:"datetime",precision:void 0===e?.precision?null:e?.precision,offset:e?.offset??!1,local:e?.local??!1,...i.errToObj(e?.message)})}date(e){return this._addCheck({kind:"date",message:e})}time(e){return"string"==typeof e?this._addCheck({kind:"time",precision:null,message:e}):this._addCheck({kind:"time",precision:void 0===e?.precision?null:e?.precision,...i.errToObj(e?.message)})}duration(e){return this._addCheck({kind:"duration",...i.errToObj(e)})}regex(e,t){return this._addCheck({kind:"regex",regex:e,...i.errToObj(t)})}includes(e,t){return this._addCheck({kind:"includes",value:e,position:t?.position,...i.errToObj(t?.message)})}startsWith(e,t){return this._addCheck({kind:"startsWith",value:e,...i.errToObj(t)})}endsWith(e,t){return this._addCheck({kind:"endsWith",value:e,...i.errToObj(t)})}min(e,t){return this._addCheck({kind:"min",value:e,...i.errToObj(t)})}max(e,t){return this._addCheck({kind:"max",value:e,...i.errToObj(t)})}length(e,t){return this._addCheck({kind:"length",value:e,...i.errToObj(t)})}nonempty(e){return this.min(1,i.errToObj(e))}trim(){return new j({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new j({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new j({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find(e=>"datetime"===e.kind)}get isDate(){return!!this._def.checks.find(e=>"date"===e.kind)}get isTime(){return!!this._def.checks.find(e=>"time"===e.kind)}get isDuration(){return!!this._def.checks.find(e=>"duration"===e.kind)}get isEmail(){return!!this._def.checks.find(e=>"email"===e.kind)}get isURL(){return!!this._def.checks.find(e=>"url"===e.kind)}get isEmoji(){return!!this._def.checks.find(e=>"emoji"===e.kind)}get isUUID(){return!!this._def.checks.find(e=>"uuid"===e.kind)}get isNANOID(){return!!this._def.checks.find(e=>"nanoid"===e.kind)}get isCUID(){return!!this._def.checks.find(e=>"cuid"===e.kind)}get isCUID2(){return!!this._def.checks.find(e=>"cuid2"===e.kind)}get isULID(){return!!this._def.checks.find(e=>"ulid"===e.kind)}get isIP(){return!!this._def.checks.find(e=>"ip"===e.kind)}get isCIDR(){return!!this._def.checks.find(e=>"cidr"===e.kind)}get isBase64(){return!!this._def.checks.find(e=>"base64"===e.kind)}get isBase64url(){return!!this._def.checks.find(e=>"base64url"===e.kind)}get minLength(){let e=null;for(let t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return e}get maxLength(){let e=null;for(let t of this._def.checks)"max"===t.kind&&(null===e||t.value<e)&&(e=t.value);return e}}j.create=e=>new j({checks:[],typeName:s.ZodString,coerce:e?.coerce??!1,...v(e)});class z extends b{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(e){let t;if(this._def.coerce&&(e.data=Number(e.data)),this._getType(e)!==o.Zp.number){let t=this._getOrReturnCtx(e);return c(t,{code:a.eq.invalid_type,expected:o.Zp.number,received:t.parsedType}),h}let n=new d;for(let r of this._def.checks)"int"===r.kind?o.ZS.isInteger(e.data)||(c(t=this._getOrReturnCtx(e,t),{code:a.eq.invalid_type,expected:"integer",received:"float",message:r.message}),n.dirty()):"min"===r.kind?(r.inclusive?e.data<r.value:e.data<=r.value)&&(c(t=this._getOrReturnCtx(e,t),{code:a.eq.too_small,minimum:r.value,type:"number",inclusive:r.inclusive,exact:!1,message:r.message}),n.dirty()):"max"===r.kind?(r.inclusive?e.data>r.value:e.data>=r.value)&&(c(t=this._getOrReturnCtx(e,t),{code:a.eq.too_big,maximum:r.value,type:"number",inclusive:r.inclusive,exact:!1,message:r.message}),n.dirty()):"multipleOf"===r.kind?0!==function(e,t){let n=(e.toString().split(".")[1]||"").length,r=(t.toString().split(".")[1]||"").length,i=n>r?n:r;return Number.parseInt(e.toFixed(i).replace(".",""))%Number.parseInt(t.toFixed(i).replace(".",""))/10**i}(e.data,r.value)&&(c(t=this._getOrReturnCtx(e,t),{code:a.eq.not_multiple_of,multipleOf:r.value,message:r.message}),n.dirty()):"finite"===r.kind?Number.isFinite(e.data)||(c(t=this._getOrReturnCtx(e,t),{code:a.eq.not_finite,message:r.message}),n.dirty()):o.ZS.assertNever(r);return{status:n.value,value:e.data}}gte(e,t){return this.setLimit("min",e,!0,i.toString(t))}gt(e,t){return this.setLimit("min",e,!1,i.toString(t))}lte(e,t){return this.setLimit("max",e,!0,i.toString(t))}lt(e,t){return this.setLimit("max",e,!1,i.toString(t))}setLimit(e,t,n,r){return new z({...this._def,checks:[...this._def.checks,{kind:e,value:t,inclusive:n,message:i.toString(r)}]})}_addCheck(e){return new z({...this._def,checks:[...this._def.checks,e]})}int(e){return this._addCheck({kind:"int",message:i.toString(e)})}positive(e){return this._addCheck({kind:"min",value:0,inclusive:!1,message:i.toString(e)})}negative(e){return this._addCheck({kind:"max",value:0,inclusive:!1,message:i.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:0,inclusive:!0,message:i.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:0,inclusive:!0,message:i.toString(e)})}multipleOf(e,t){return this._addCheck({kind:"multipleOf",value:e,message:i.toString(t)})}finite(e){return this._addCheck({kind:"finite",message:i.toString(e)})}safe(e){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:i.toString(e)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:i.toString(e)})}get minValue(){let e=null;for(let t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return e}get maxValue(){let e=null;for(let t of this._def.checks)"max"===t.kind&&(null===e||t.value<e)&&(e=t.value);return e}get isInt(){return!!this._def.checks.find(e=>"int"===e.kind||"multipleOf"===e.kind&&o.ZS.isInteger(e.value))}get isFinite(){let e=null,t=null;for(let n of this._def.checks)if("finite"===n.kind||"int"===n.kind||"multipleOf"===n.kind)return!0;else"min"===n.kind?(null===t||n.value>t)&&(t=n.value):"max"===n.kind&&(null===e||n.value<e)&&(e=n.value);return Number.isFinite(t)&&Number.isFinite(e)}}z.create=e=>new z({checks:[],typeName:s.ZodNumber,coerce:e?.coerce||!1,...v(e)});class F extends b{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(e){let t;if(this._def.coerce)try{e.data=BigInt(e.data)}catch{return this._getInvalidInput(e)}if(this._getType(e)!==o.Zp.bigint)return this._getInvalidInput(e);let n=new d;for(let r of this._def.checks)"min"===r.kind?(r.inclusive?e.data<r.value:e.data<=r.value)&&(c(t=this._getOrReturnCtx(e,t),{code:a.eq.too_small,type:"bigint",minimum:r.value,inclusive:r.inclusive,message:r.message}),n.dirty()):"max"===r.kind?(r.inclusive?e.data>r.value:e.data>=r.value)&&(c(t=this._getOrReturnCtx(e,t),{code:a.eq.too_big,type:"bigint",maximum:r.value,inclusive:r.inclusive,message:r.message}),n.dirty()):"multipleOf"===r.kind?e.data%r.value!==BigInt(0)&&(c(t=this._getOrReturnCtx(e,t),{code:a.eq.not_multiple_of,multipleOf:r.value,message:r.message}),n.dirty()):o.ZS.assertNever(r);return{status:n.value,value:e.data}}_getInvalidInput(e){let t=this._getOrReturnCtx(e);
46return c(t,{code:a.eq.invalid_type,expected:o.Zp.bigint,received:t.parsedType}),h}gte(e,t){return this.setLimit("min",e,!0,i.toString(t))}gt(e,t){return this.setLimit("min",e,!1,i.toString(t))}lte(e,t){return this.setLimit("max",e,!0,i.toString(t))}lt(e,t){return this.setLimit("max",e,!1,i.toString(t))}setLimit(e,t,n,r){return new F({...this._def,checks:[...this._def.checks,{kind:e,value:t,inclusive:n,message:i.toString(r)}]})}_addCheck(e){return new F({...this._def,checks:[...this._def.checks,e]})}positive(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:i.toString(e)})}negative(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:i.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:i.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:i.toString(e)})}multipleOf(e,t){return this._addCheck({kind:"multipleOf",value:e,message:i.toString(t)})}get minValue(){let e=null;for(let t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return e}get maxValue(){let e=null;for(let t of this._def.checks)"max"===t.kind&&(null===e||t.value<e)&&(e=t.value);return e}}F.create=e=>new F({checks:[],typeName:s.ZodBigInt,coerce:e?.coerce??!1,...v(e)});class B extends b{_parse(e){if(this._def.coerce&&(e.data=!!e.data),this._getType(e)!==o.Zp.boolean){let t=this._getOrReturnCtx(e);return c(t,{code:a.eq.invalid_type,expected:o.Zp.boolean,received:t.parsedType}),h}return f(e.data)}}B.create=e=>new B({typeName:s.ZodBoolean,coerce:e?.coerce||!1,...v(e)});class $ extends b{_parse(e){let t;if(this._def.coerce&&(e.data=new Date(e.data)),this._getType(e)!==o.Zp.date){let t=this._getOrReturnCtx(e);return c(t,{code:a.eq.invalid_type,expected:o.Zp.date,received:t.parsedType}),h}if(Number.isNaN(e.data.getTime()))return c(this._getOrReturnCtx(e),{code:a.eq.invalid_date}),h;let n=new d;for(let r of this._def.checks)"min"===r.kind?e.data.getTime()<r.value&&(c(t=this._getOrReturnCtx(e,t),{code:a.eq.too_small,message:r.message,inclusive:!0,exact:!1,minimum:r.value,type:"date"}),n.dirty()):"max"===r.kind?e.data.getTime()>r.value&&(c(t=this._getOrReturnCtx(e,t),{code:a.eq.too_big,message:r.message,inclusive:!0,exact:!1,maximum:r.value,type:"date"}),n.dirty()):o.ZS.assertNever(r);return{status:n.value,value:new Date(e.data.getTime())}}_addCheck(e){return new $({...this._def,checks:[...this._def.checks,e]})}min(e,t){return this._addCheck({kind:"min",value:e.getTime(),message:i.toString(t)})}max(e,t){return this._addCheck({kind:"max",value:e.getTime(),message:i.toString(t)})}get minDate(){let e=null;for(let t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return null!=e?new Date(e):null}get maxDate(){let e=null;for(let t of this._def.checks)"max"===t.kind&&(null===e||t.value<e)&&(e=t.value);return null!=e?new Date(e):null}}$.create=e=>new $({checks:[],coerce:e?.coerce||!1,typeName:s.ZodDate,...v(e)});class U extends b{_parse(e){if(this._getType(e)!==o.Zp.symbol){let t=this._getOrReturnCtx(e);return c(t,{code:a.eq.invalid_type,expected:o.Zp.symbol,received:t.parsedType}),h}return f(e.data)}}U.create=e=>new U({typeName:s.ZodSymbol,...v(e)});class H extends b{_parse(e){if(this._getType(e)!==o.Zp.undefined){let t=this._getOrReturnCtx(e);return c(t,{code:a.eq.invalid_type,expected:o.Zp.undefined,received:t.parsedType}),h}return f(e.data)}}H.create=e=>new H({typeName:s.ZodUndefined,...v(e)});class G extends b{_parse(e){if(this._getType(e)!==o.Zp.null){let t=this._getOrReturnCtx(e);return c(t,{code:a.eq.invalid_type,expected:o.Zp.null,received:t.parsedType}),h}return f(e.data)}}G.create=e=>new G({typeName:s.ZodNull,...v(e)});class Y extends b{constructor(){super(...arguments),this._any=!0}_parse(e){return f(e.data)}}Y.create=e=>new Y({typeName:s.ZodAny,...v(e)});class Z extends b{constructor(){super(...arguments),this._unknown=!0}_parse(e){return f(e.data)}}Z.create=e=>new Z({typeName:s.ZodUnknown,...v(e)});class V extends b{_parse(e){let t=this._getOrReturnCtx(e);
46return c(t,{code:a.eq.invalid_type,expected:o.Zp.never,received:t.parsedType}),h}}V.create=e=>new V({typeName:s.ZodNever,...v(e)});class W extends b{_parse(e){if(this._getType(e)!==o.Zp.undefined){let t=this._getOrReturnCtx(e);return c(t,{code:a.eq.invalid_type,expected:o.Zp.void,received:t.parsedType}),h}return f(e.data)}}W.create=e=>new W({typeName:s.ZodVoid,...v(e)});class q extends b{_parse(e){let{ctx:t,status:n}=this._processInputParams(e),r=this._def;if(t.parsedType!==o.Zp.array)return c(t,{code:a.eq.invalid_type,expected:o.Zp.array,received:t.parsedType}),h;if(null!==r.exactLength){let e=t.data.length>r.exactLength.value,i=t.data.length<r.exactLength.value;(e||i)&&(c(t,{code:e?a.eq.too_big:a.eq.too_small,minimum:i?r.exactLength.value:void 0,maximum:e?r.exactLength.value:void 0,type:"array",inclusive:!0,exact:!0,message:r.exactLength.message}),n.dirty())}if(null!==r.minLength&&t.data.length<r.minLength.value&&(c(t,{code:a.eq.too_small,minimum:r.minLength.value,type:"array",inclusive:!0,exact:!1,message:r.minLength.message}),n.dirty()),null!==r.maxLength&&t.data.length>r.maxLength.value&&(c(t,{code:a.eq.too_big,maximum:r.maxLength.value,type:"array",inclusive:!0,exact:!1,message:r.maxLength.message}),n.dirty()),t.common.async)return Promise.all([...t.data].map((e,n)=>r.type._parseAsync(new g(t,e,t.path,n)))).then(e=>d.mergeArray(n,e));let i=[...t.data].map((e,n)=>r.type._parseSync(new g(t,e,t.path,n)));return d.mergeArray(n,i)}get element(){return this._def.type}min(e,t){return new q({...this._def,minLength:{value:e,message:i.toString(t)}})}max(e,t){return new q({...this._def,maxLength:{value:e,message:i.toString(t)}})}length(e,t){return new q({...this._def,exactLength:{value:e,message:i.toString(t)}})}nonempty(e){return this.min(1,e)}}q.create=(e,t)=>new q({type:e,minLength:null,maxLength:null,exactLength:null,typeName:s.ZodArray,...v(t)});class K extends b{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(null!==this._cached)return this._cached;let e=this._def.shape(),t=o.ZS.objectKeys(e);return this._cached={shape:e,keys:t},this._cached}_parse(e){if(this._getType(e)!==o.Zp.object){let t=this._getOrReturnCtx(e);return c(t,{code:a.eq.invalid_type,expected:o.Zp.object,received:t.parsedType}),h}let{status:t,ctx:n}=this._processInputParams(e),{shape:r,keys:i}=this._getCached(),s=[];if(!(this._def.catchall instanceof V&&"strip"===this._def.unknownKeys))for(let e in n.data)i.includes(e)||s.push(e);let l=[];for(let e of i){let t=r[e],i=n.data[e];l.push({key:{status:"valid",value:e},value:t._parse(new g(n,i,n.path,e)),alwaysSet:e in n.data})}if(this._def.catchall instanceof V){let e=this._def.unknownKeys;if("passthrough"===e)for(let e of s)l.push({key:{status:"valid",value:e},value:{status:"valid",value:n.data[e]}});else if("strict"===e)s.length>0&&(c(n,{code:a.eq.unrecognized_keys,keys:s}),t.dirty());else if("strip"===e);else throw Error("Internal ZodObject error: invalid unknownKeys value.")}else{let e=this._def.catchall;for(let t of s){let r=n.data[t];l.push({key:{status:"valid",value:t},value:e._parse(new g(n,r,n.path,t)),alwaysSet:t in n.data})}}return n.common.async?Promise.resolve().then(async()=>{let e=[];for(let t of l){let n=await t.key,r=await t.value;e.push({key:n,value:r,alwaysSet:t.alwaysSet})}return e}).then(e=>d.mergeObjectSync(t,e)):d.mergeObjectSync(t,l)}get shape(){return this._def.shape()}strict(e){return i.errToObj,new K({...this._def,unknownKeys:"strict",...void 0!==e?{errorMap:(t,n)=>{let r=this._def.errorMap?.(t,n).message??n.defaultError;return"unrecognized_keys"===t.code?{message:i.errToObj(e).message??r}:{message:r}}}:{}})}strip(){return new K({...this._def,unknownKeys:"strip"})}passthrough(){return new K({...this._def,unknownKeys:"passthrough"})}extend(e){return new K({...this._def,shape:()=>({...this._def.shape(),...e})})}merge(e){return new K({unknownKeys:e._def.unknownKeys,catchall:e._def.catchall,shape:()=>({...this._def.shape(),...e._def.shape()}),typeName:s.ZodObject})}setKey(e,t){return this.augment({[e]:t})}catchall(e){return new K({...this._def,catchall:e})}pick(e){let t={};for(let n of o.ZS.objectKeys(e))e[n]&&this.shape[n]&&(t[n]=this.shape[n]);return new K({...this._def,shape:()=>t})}omit(e){let t={};for(let n of o.ZS.objectKeys(this.shape))e[n]||(t[n]=this.shape[n]);return new K({...this._def,shape:()=>t})}deepPartial(){return function e(t){if(t instanceof K){let n={};for(let r in t.shape){let i=t.shape[r];n[r]=ep.create(e(i))}return new K({...t._def,shape:()=>n})}if(t instanceof q)return new q({...t._def,type:e(t.element)});if(t instanceof ep)return ep.create(e(t.unwrap()));if(t instanceof ef)return ef.create(e(t.unwrap()));if(t instanceof et)return et.create(t.items.map(t=>e(t)));else return t}(this)}partial(e){let t={};for(let n of o.ZS.objectKeys(this.shape)){let r=this.shape[n];e&&!e[n]?t[n]=r:t[n]=r.optional()}return new K({...this._def,shape:()=>t})}required(e){let t={};for(let n of o.ZS.objectKeys(this.shape))if(e&&!e[n])t[n]=this.shape[n];else{let e=this.shape[n];for(;e instanceof ep;)e=e._def.innerType;t[n]=e}return new K({...this._def,shape:()=>t})}keyof(){return el(o.ZS.objectKeys(this.shape))}}K.create=(e,t)=>
46new K({shape:()=>e,unknownKeys:"strip",catchall:V.create(),typeName:s.ZodObject,...v(t)}),K.strictCreate=(e,t)=>new K({shape:()=>e,unknownKeys:"strict",catchall:V.create(),typeName:s.ZodObject,...v(t)}),K.lazycreate=(e,t)=>new K({shape:e,unknownKeys:"strip",catchall:V.create(),typeName:s.ZodObject,...v(t)});class X extends b{_parse(e){let{ctx:t}=this._processInputParams(e),n=this._def.options;if(t.common.async)return Promise.all(n.map(async e=>{let n={...t,common:{...t.common,issues:[]},parent:null};return{result:await e._parseAsync({data:t.data,path:t.path,parent:n}),ctx:n}})).then(function(e){for(let t of e)if("valid"===t.result.status)return t.result;for(let n of e)if("dirty"===n.result.status)return t.common.issues.push(...n.ctx.common.issues),n.result;let n=e.map(e=>new a.G(e.ctx.common.issues));return c(t,{code:a.eq.invalid_union,unionErrors:n}),h});{let e,r=[];for(let i of n){let n={...t,common:{...t.common,issues:[]},parent:null},s=i._parseSync({data:t.data,path:t.path,parent:n});if("valid"===s.status)return s;"dirty"!==s.status||e||(e={result:s,ctx:n}),n.common.issues.length&&r.push(n.common.issues)}if(e)return t.common.issues.push(...e.ctx.common.issues),e.result;let i=r.map(e=>new a.G(e));return c(t,{code:a.eq.invalid_union,unionErrors:i}),h}}get options(){return this._def.options}}X.create=(e,t)=>new X({options:e,typeName:s.ZodUnion,...v(t)});let Q=e=>{if(e instanceof ea)return Q(e.schema);if(e instanceof eh)return Q(e.innerType());if(e instanceof eo)return[e.value];if(e instanceof eu)return e.options;if(e instanceof ec)return o.ZS.objectValues(e.enum);else if(e instanceof em)return Q(e._def.innerType);else if(e instanceof H)return[void 0];else if(e instanceof G)return[null];else if(e instanceof ep)return[void 0,...Q(e.unwrap())];else if(e instanceof ef)return[null,...Q(e.unwrap())];else if(e instanceof ev)return Q(e.unwrap());else if(e instanceof eE)return Q(e.unwrap());else if(e instanceof eg)return Q(e._def.innerType);else return[]};class J extends b{_parse(e){let{ctx:t}=this._processInputParams(e);if(t.parsedType!==o.Zp.object)return c(t,{code:a.eq.invalid_type,expected:o.Zp.object,received:t.parsedType}),h;let n=this.discriminator,r=t.data[n],i=this.optionsMap.get(r);return i?t.common.async?i._parseAsync({data:t.data,path:t.path,parent:t}):i._parseSync({data:t.data,path:t.path,parent:t}):(c(t,{code:a.eq.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[n]}),h)}get discriminator(){return this._def.discriminator}get options(){return this._def.options}get optionsMap(){return this._def.optionsMap}static create(e,t,n){let r=new Map;for(let n of t){let t=Q(n.shape[e]);if(!t.length)throw Error(`A discriminator value for key \`${e}\` could not be extracted from all schema options`);for(let i of t){if(r.has(i))throw Error(`Discriminator property ${String(e)} has duplicate value ${String(i)}`);r.set(i,n)}}return new J({typeName:s.ZodDiscriminatedUnion,discriminator:e,options:t,optionsMap:r,...v(n)})}}class ee extends b{_parse(e){let{status:t,ctx:n}=this._processInputParams(e),r=(e,r)=>{if("aborted"===e.status||"aborted"===r.status)return h;let i=function e(t,n){let r=(0,o.CR)(t),i=(0,o.CR)(n);if(t===n)return{valid:!0,data:t};if(r===o.Zp.object&&i===o.Zp.object){let r=o.ZS.objectKeys(n),i=o.ZS.objectKeys(t).filter(e=>-1!==r.indexOf(e)),s={...t,...n};for(let r of i){let i=e(t[r],n[r]);if(!i.valid)return{valid:!1};s[r]=i.data}return{valid:!0,data:s}}if(r===o.Zp.array&&i===o.Zp.array){if(t.length!==n.length)return{valid:!1};let r=[];for(let i=0;i<t.length;i++){let s=e(t[i],n[i]);if(!s.valid)return{valid:!1};r.push(s.data)}return{valid:!0,data:r}}if(r===o.Zp.date&&i===o.Zp.date&&+t==+n)return{valid:!0,data:t};return{valid:!1}}(e.value,r.value);return i.valid?(("dirty"===e.status||"dirty"===r.status)&&t.dirty(),{status:t.value,value:i.data}):(c(n,{code:a.eq.invalid_intersection_types}),h)};return n.common.async?Promise.all([this._def.left._parseAsync({data:n.data,path:n.path,parent:n}),this._def.right._parseAsync({data:n.data,path:n.path,parent:n})]).then(([e,t])=>r(e,t)):r(this._def.left._parseSync({data:n.data,path:n.path,parent:n}),this._def.right._parseSync({data:n.data,path:n.path,parent:n}))}}
46ee.create=(e,t,n)=>new ee({left:e,right:t,typeName:s.ZodIntersection,...v(n)});class et extends b{_parse(e){let{status:t,ctx:n}=this._processInputParams(e);if(n.parsedType!==o.Zp.array)return c(n,{code:a.eq.invalid_type,expected:o.Zp.array,received:n.parsedType}),h;if(n.data.length<this._def.items.length)return c(n,{code:a.eq.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),h;!this._def.rest&&n.data.length>this._def.items.length&&(c(n,{code:a.eq.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),t.dirty());let r=[...n.data].map((e,t)=>{let r=this._def.items[t]||this._def.rest;return r?r._parse(new g(n,e,n.path,t)):null}).filter(e=>!!e);return n.common.async?Promise.all(r).then(e=>d.mergeArray(t,e)):d.mergeArray(t,r)}get items(){return this._def.items}rest(e){return new et({...this._def,rest:e})}}et.create=(e,t)=>{if(!Array.isArray(e))throw Error("You must pass an array of schemas to z.tuple([ ... ])");return new et({items:e,typeName:s.ZodTuple,rest:null,...v(t)})};class en extends b{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){let{status:t,ctx:n}=this._processInputParams(e);if(n.parsedType!==o.Zp.object)return c(n,{code:a.eq.invalid_type,expected:o.Zp.object,received:n.parsedType}),h;let r=[],i=this._def.keyType,s=this._def.valueType;for(let e in n.data)r.push({key:i._parse(new g(n,e,n.path,e)),value:s._parse(new g(n,n.data[e],n.path,e)),alwaysSet:e in n.data});return n.common.async?d.mergeObjectAsync(t,r):d.mergeObjectSync(t,r)}get element(){return this._def.valueType}static create(e,t,n){return new en(t instanceof b?{keyType:e,valueType:t,typeName:s.ZodRecord,...v(n)}:{keyType:j.create(),valueType:e,typeName:s.ZodRecord,...v(t)})}}class er extends b{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){let{status:t,ctx:n}=this._processInputParams(e);if(n.parsedType!==o.Zp.map)return c(n,{code:a.eq.invalid_type,expected:o.Zp.map,received:n.parsedType}),h;let r=this._def.keyType,i=this._def.valueType,s=[...n.data.entries()].map(([e,t],s)=>({key:r._parse(new g(n,e,n.path,[s,"key"])),value:i._parse(new g(n,t,n.path,[s,"value"]))}));if(n.common.async){let e=new Map;return Promise.resolve().then(async()=>{for(let n of s){let r=await n.key,i=await n.value;if("aborted"===r.status||"aborted"===i.status)return h;("dirty"===r.status||"dirty"===i.status)&&t.dirty(),e.set(r.value,i.value)}return{status:t.value,value:e}})}{let e=new Map;for(let n of s){let r=n.key,i=n.value;if("aborted"===r.status||"aborted"===i.status)return h;("dirty"===r.status||"dirty"===i.status)&&t.dirty(),e.set(r.value,i.value)}return{status:t.value,value:e}}}}er.create=(e,t,n)=>new er({valueType:t,keyType:e,typeName:s.ZodMap,...v(n)});class ei extends b{_parse(e){let{status:t,ctx:n}=this._processInputParams(e);if(n.parsedType!==o.Zp.set)return c(n,{code:a.eq.invalid_type,expected:o.Zp.set,received:n.parsedType}),h;let r=this._def;null!==r.minSize&&n.data.size<r.minSize.value&&(c(n,{code:a.eq.too_small,minimum:r.minSize.value,type:"set",inclusive:!0,exact:!1,message:r.minSize.message}),t.dirty()),null!==r.maxSize&&n.data.size>r.maxSize.value&&(c(n,{code:a.eq.too_big,maximum:r.maxSize.value,type:"set",inclusive:!0,exact:!1,message:r.maxSize.message}),t.dirty());let i=this._def.valueType;function s(e){let n=new Set;for(let r of e){if("aborted"===r.status)return h;"dirty"===r.status&&t.dirty(),n.add(r.value)}return{status:t.value,value:n}}let l=[...n.data.values()].map((e,t)=>i._parse(new g(n,e,n.path,t)));return n.common.async?Promise.all(l).then(e=>s(e)):s(l)}min(e,t){return new ei({...this._def,minSize:{value:e,message:i.toString(t)}})}max(e,t){return new ei({...this._def,maxSize:{value:e,message:i.toString(t)}})}size(e,t){return this.min(e,t).max(e,t)}nonempty(e){return this.min(1,e)}}ei.create=(e,t)=>new ei({valueType:e,minSize:null,maxSize:null,typeName:s.ZodSet,...v(t)});class es extends b{constructor(){super(...arguments),this.validate=this.implement}_parse(e){let{ctx:t}=this._processInputParams(e);
46if(t.parsedType!==o.Zp.function)return c(t,{code:a.eq.invalid_type,expected:o.Zp.function,received:t.parsedType}),h;function n(e,n){return u({data:e,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,l,l].filter(e=>!!e),issueData:{code:a.eq.invalid_arguments,argumentsError:n}})}function r(e,n){return u({data:e,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,l,l].filter(e=>!!e),issueData:{code:a.eq.invalid_return_type,returnTypeError:n}})}let i={errorMap:t.common.contextualErrorMap},s=t.data;if(this._def.returns instanceof ed){let e=this;return f(async function(...t){let o=new a.G([]),l=await e._def.args.parseAsync(t,i).catch(e=>{throw o.addIssue(n(t,e)),o}),u=await Reflect.apply(s,this,l);return await e._def.returns._def.type.parseAsync(u,i).catch(e=>{throw o.addIssue(r(u,e)),o})})}{let e=this;return f(function(...t){let o=e._def.args.safeParse(t,i);if(!o.success)throw new a.G([n(t,o.error)]);let l=Reflect.apply(s,this,o.data),u=e._def.returns.safeParse(l,i);if(!u.success)throw new a.G([r(l,u.error)]);return u.data})}}parameters(){return this._def.args}returnType(){return this._def.returns}args(...e){return new es({...this._def,args:et.create(e).rest(Z.create())})}returns(e){return new es({...this._def,returns:e})}implement(e){return this.parse(e)}strictImplement(e){return this.parse(e)}static create(e,t,n){return new es({args:e||et.create([]).rest(Z.create()),returns:t||Z.create(),typeName:s.ZodFunction,...v(n)})}}class ea extends b{get schema(){return this._def.getter()}_parse(e){let{ctx:t}=this._processInputParams(e);return this._def.getter()._parse({data:t.data,path:t.path,parent:t})}}ea.create=(e,t)=>new ea({getter:e,typeName:s.ZodLazy,...v(t)});class eo extends b{_parse(e){if(e.data!==this._def.value){let t=this._getOrReturnCtx(e);return c(t,{received:t.data,code:a.eq.invalid_literal,expected:this._def.value}),h}return{status:"valid",value:e.data}}get value(){return this._def.value}}function el(e,t){return new eu({values:e,typeName:s.ZodEnum,...v(t)})}eo.create=(e,t)=>new eo({value:e,typeName:s.ZodLiteral,...v(t)});class eu extends b{_parse(e){if("string"!=typeof e.data){let t=this._getOrReturnCtx(e),n=this._def.values;return c(t,{expected:o.ZS.joinValues(n),received:t.parsedType,code:a.eq.invalid_type}),h}if(this._cache||(this._cache=new Set(this._def.values)),!this._cache.has(e.data)){let t=this._getOrReturnCtx(e),n=this._def.values;return c(t,{received:t.data,code:a.eq.invalid_enum_value,options:n}),h}return f(e.data)}get options(){return this._def.values}get enum(){let e={};for(let t of this._def.values)e[t]=t;return e}get Values(){let e={};for(let t of this._def.values)e[t]=t;return e}get Enum(){let e={};for(let t of this._def.values)e[t]=t;return e}extract(e,t=this._def){return eu.create(e,{...this._def,...t})}exclude(e,t=this._def){return eu.create(this.options.filter(t=>!e.includes(t)),{...this._def,...t})}}eu.create=el;class ec extends b{_parse(e){let t=o.ZS.getValidEnumValues(this._def.values),n=this._getOrReturnCtx(e);if(n.parsedType!==o.Zp.string&&n.parsedType!==o.Zp.number){let e=o.ZS.objectValues(t);return c(n,{expected:o.ZS.joinValues(e),received:n.parsedType,code:a.eq.invalid_type}),h}if(this._cache||(this._cache=new Set(o.ZS.getValidEnumValues(this._def.values))),!this._cache.has(e.data)){let e=o.ZS.objectValues(t);return c(n,{received:n.data,code:a.eq.invalid_enum_value,options:e}),h}return f(e.data)}get enum(){return this._def.values}}ec.create=(e,t)=>new ec({values:e,typeName:s.ZodNativeEnum,...v(t)});class ed extends b{unwrap(){return this._def.type}_parse(e){let{ctx:t}=this._processInputParams(e);return t.parsedType!==o.Zp.promise&&!1===t.common.async?(c(t,{code:a.eq.invalid_type,expected:o.Zp.promise,received:t.parsedType}),h):f((t.parsedType===o.Zp.promise?t.data:Promise.resolve(t.data)).then(e=>this._def.type.parseAsync(e,{path:t.path,errorMap:t.common.contextualErrorMap})))}}ed.create=(e,t)=>new ed({type:e,typeName:s.ZodPromise,...v(t)});class eh extends b{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===s.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(e){let{status:t,ctx:n}=this._processInputParams(e),r=this._def.effect||null,i={addIssue:e=>{c(n,e),e.fatal?t.abort():t.dirty()},get path(){return n.path}};if(i.addIssue=i.addIssue.bind(i),"preprocess"===r.type){let e=r.transform(n.data,i);if(n.common.async)return Promise.resolve(e).then(async e=>{if("aborted"===t.value)return h;let r=await this._def.schema._parseAsync({data:e,path:n.path,parent:n});return"aborted"===r.status?h:"dirty"===r.status||"dirty"===t.value?p(r.value):r});{if("aborted"===t.value)return h;let r=this._def.schema._parseSync({data:e,path:n.path,parent:n});return"aborted"===r.status?h:"dirty"===r.status||"dirty"===t.value?p(r.value):r}}if("refinement"===r.type){let e=e=>{let t=r.refinement(e,i);if(n.common.async)return Promise.resolve(t);if(t instanceof Promise)throw Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return e};if(!1!==n.common.async)return this._def.schema._parseAsync({data:n.data,path:n.path,parent:n}).then(n=>"aborted"===n.status?h:("dirty"===n.status&&t.dirty(),e(n.value).then(()=>({status:t.value,value:n.value}))));{let r=this._def.schema._parseSync({data:n.data,path:n.path,parent:n});return"aborted"===r.status?h:("dirty"===r.status&&t.dirty(),e(r.value),{status:t.value,value:r.value})}}if("transform"===r.type)if(!1!==n.common.async)return this._def.schema._parseAsync({data:n.data,path:n.path,parent:n}).then(e=>"valid"!==e.status?h:Promise.resolve(r.transform(e.value,i)).then(e=>({status:t.value,value:e})));else{let e=this._def.schema._parseSync({data:n.data,path:n.path,parent:n});if("valid"!==e.status)return h;let s=r.transform(e.value,i);if(s instanceof Promise)throw Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:t.value,value:s}}o.ZS.assertNever(r)}}
46eh.create=(e,t,n)=>new eh({schema:e,typeName:s.ZodEffects,effect:t,...v(n)}),eh.createWithPreprocess=(e,t,n)=>new eh({schema:t,effect:{type:"preprocess",transform:e},typeName:s.ZodEffects,...v(n)});class ep extends b{_parse(e){return this._getType(e)===o.Zp.undefined?f(void 0):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}}ep.create=(e,t)=>new ep({innerType:e,typeName:s.ZodOptional,...v(t)});class ef extends b{_parse(e){return this._getType(e)===o.Zp.null?f(null):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}}ef.create=(e,t)=>new ef({innerType:e,typeName:s.ZodNullable,...v(t)});class em extends b{_parse(e){let{ctx:t}=this._processInputParams(e),n=t.data;return t.parsedType===o.Zp.undefined&&(n=this._def.defaultValue()),this._def.innerType._parse({data:n,path:t.path,parent:t})}removeDefault(){return this._def.innerType}}em.create=(e,t)=>new em({innerType:e,typeName:s.ZodDefault,defaultValue:"function"==typeof t.default?t.default:()=>t.default,...v(t)});class eg extends b{_parse(e){let{ctx:t}=this._processInputParams(e),n={...t,common:{...t.common,issues:[]}},r=this._def.innerType._parse({data:n.data,path:n.path,parent:{...n}});return m(r)?r.then(e=>({status:"valid",value:"valid"===e.status?e.value:this._def.catchValue({get error(){return new a.G(n.common.issues)},input:n.data})})):{status:"valid",value:"valid"===r.status?r.value:this._def.catchValue({get error(){return new a.G(n.common.issues)},input:n.data})}}removeCatch(){return this._def.innerType}}eg.create=(e,t)=>new eg({innerType:e,typeName:s.ZodCatch,catchValue:"function"==typeof t.catch?t.catch:()=>t.catch,...v(t)});class ey extends b{_parse(e){if(this._getType(e)!==o.Zp.nan){let t=this._getOrReturnCtx(e);return c(t,{code:a.eq.invalid_type,expected:o.Zp.nan,received:t.parsedType}),h}return{status:"valid",value:e.data}}}ey.create=e=>new ey({typeName:s.ZodNaN,...v(e)}),Symbol("zod_brand");class ev extends b{_parse(e){let{ctx:t}=this._processInputParams(e),n=t.data;return this._def.type._parse({data:n,path:t.path,parent:t})}unwrap(){return this._def.type}}class eb extends b{_parse(e){let{status:t,ctx:n}=this._processInputParams(e);if(n.common.async)return(async()=>{let e=await this._def.in._parseAsync({data:n.data,path:n.path,parent:n});return"aborted"===e.status?h:"dirty"===e.status?(t.dirty(),p(e.value)):this._def.out._parseAsync({data:e.value,path:n.path,parent:n})})();{let e=this._def.in._parseSync({data:n.data,path:n.path,parent:n});return"aborted"===e.status?h:"dirty"===e.status?(t.dirty(),{status:"dirty",value:e.value}):this._def.out._parseSync({data:e.value,path:n.path,parent:n})}}static create(e,t){return new eb({in:e,out:t,typeName:s.ZodPipeline})}}class eE extends b{_parse(e){let t=this._def.innerType._parse(e),n=e=>("valid"===e.status&&(e.value=Object.freeze(e.value)),e);return m(t)?t.then(e=>n(e)):n(t)}unwrap(){return this._def.innerType}}eE.create=(e,t)=>new eE({innerType:e,typeName:s.ZodReadonly,...v(t)}),K.lazycreate,function(e){e.ZodString="ZodString",e.ZodNumber="ZodNumber",e.ZodNaN="ZodNaN",e.ZodBigInt="ZodBigInt",e.ZodBoolean="ZodBoolean",e.ZodDate="ZodDate",e.ZodSymbol="ZodSymbol",e.ZodUndefined="ZodUndefined",e.ZodNull="ZodNull",e.ZodAny="ZodAny",e.ZodUnknown="ZodUnknown",e.ZodNever="ZodNever",e.ZodVoid="ZodVoid",e.ZodArray="ZodArray",e.ZodObject="ZodObject",e.ZodUnion="ZodUnion",e.ZodDiscriminatedUnion="ZodDiscriminatedUnion",e.ZodIntersection="ZodIntersection",e.ZodTuple="ZodTuple",e.ZodRecord="ZodRecord",e.ZodMap="ZodMap",e.ZodSet="ZodSet",e.ZodFunction="ZodFunction",e.ZodLazy="ZodLazy",e.ZodLiteral="ZodLiteral",e.ZodEnum="ZodEnum",e.ZodEffects="ZodEffects",e.ZodNativeEnum="ZodNativeEnum",e.ZodOptional="ZodOptional",e.ZodNullable="ZodNullable",e.ZodDefault="ZodDefault",e.ZodCatch="ZodCatch",e.ZodPromise="ZodPromise",e.ZodBranded="ZodBranded",e.ZodPipeline="ZodPipeline",e.ZodReadonly="ZodReadonly"}(s||(s={}));let eT=j.create,e_=z.create;ey.create,F.create;let eA=B.create;$.create,U.create,H.create,G.create;let ex=Y.create,ek=Z.create;V.create,W.create;let eS=q.create,ew=K.create;K.strictCreate;let eI=X.create,eC=J.create;ee.create,et.create;let eN=en.create;er.create,ei.create,es.create,ea.create;let eR=eo.create,eO=eu.create;
46ec.create,ed.create,eh.create,ep.create,ef.create;let eP=eh.createWithPreprocess;eb.create;let eD={string:e=>j.create({...e,coerce:!0}),number:e=>z.create({...e,coerce:!0}),boolean:e=>B.create({...e,coerce:!0}),bigint:e=>F.create({...e,coerce:!0}),date:e=>$.create({...e,coerce:!0})}},59197:(e,t,n)=>{n.d(t,{f:()=>i});var r=n(82967),i={setTimeout:function(e,t){for(var n=[],s=2;s<arguments.length;s++)n[s-2]=arguments[s];var a=i.delegate;return(null==a?void 0:a.setTimeout)?a.setTimeout.apply(a,(0,r.fX)([e,t],(0,r.zs)(n))):setTimeout.apply(void 0,(0,r.fX)([e,t],(0,r.zs)(n)))},clearTimeout:function(e){var t=i.delegate;return((null==t?void 0:t.clearTimeout)||clearTimeout)(e)},delegate:void 0}},59761:(e,t,n)=>{n.d(t,{Tg:()=>m});var r=n(82967),i=n(66226),s=n(20357),a=n(65174),o=n(89432),l=n(68810),u=n(5660),c=n(96990),d=n(57515),h=n(99244),p=n(43801),f=n(72361);function m(e){if(e instanceof a.c)return e;if(null!=e){var t,n,m,y,v;if((0,o.l)(e)){return t=e,new a.c(function(e){var n=t[f.s]();if((0,h.T)(n.subscribe))return n.subscribe(e);throw TypeError("Provided object does not correctly implement Symbol.observable")})}if((0,i.X)(e)){return n=e,new a.c(function(e){for(var t=0;t<n.length&&!e.closed;t++)e.next(n[t]);e.complete()})}if((0,s.y)(e)){return m=e,new a.c(function(e){m.then(function(t){e.closed||(e.next(t),e.complete())},function(t){return e.error(t)}).then(null,p.m)})}if((0,l.T)(e))return g(e);if((0,c.x)(e)){return y=e,new a.c(function(e){var t,n;try{for(var i=(0,r.Ju)(y),s=i.next();!s.done;s=i.next()){var a=s.value;if(e.next(a),e.closed)return}}catch(e){t={error:e}}finally{try{s&&!s.done&&(n=i.return)&&n.call(i)}finally{if(t)throw t.error}}e.complete()})}if((0,d.U)(e)){return v=e,g((0,d.C)(v))}}throw(0,u.L)(e)}function g(e){return new a.c(function(t){(function(e,t){var n,i,s,a;return(0,r.sH)(this,void 0,void 0,function(){var o;return(0,r.YH)(this,function(l){switch(l.label){case 0:l.trys.push([0,5,6,11]),n=(0,r.xN)(e),l.label=1;case 1:return[4,n.next()];case 2:if((i=l.sent()).done)return[3,4];if(o=i.value,t.next(o),t.closed)return[2];l.label=3;case 3:return[3,1];case 4:return[3,11];case 5:return s={error:l.sent()},[3,11];case 6:if(l.trys.push([6,,9,10]),!(i&&!i.done&&(a=n.return)))return[3,8];return[4,a.call(n)];case 7:l.sent(),l.label=8;case 8:return[3,10];case 9:if(s)throw s.error;return[7];case 10:return[7];case 11:return t.complete(),[2]}})})})(e,t).catch(function(e){return t.error(e)})})}},60184:(e,t,n)=>{n.d(t,{l:()=>r});function r(){}},60564:(e,t,n)=>{n.d(t,{UY:()=>r,fd:()=>o,nP:()=>i,rs:()=>s,u5:()=>a});let r=Symbol("ZodOutput"),i=Symbol("ZodInput");class s{constructor(){this._map=new Map,this._idmap=new Map}add(e,...t){let n=t[0];if(this._map.set(e,n),n&&"object"==typeof n&&"id"in n){if(this._idmap.has(n.id))throw Error(`ID ${n.id} already exists in the registry`);this._idmap.set(n.id,e)}return this}clear(){return this._map=new Map,this._idmap=new Map,this}remove(e){let t=this._map.get(e);return t&&"object"==typeof t&&"id"in t&&this._idmap.delete(t.id),this._map.delete(e),this}get(e){let t=e._zod.parent;if(t){let n={...this.get(t)??{}};return delete n.id,{...n,...this._map.get(e)}}return this._map.get(e)}has(e){return this._map.has(e)}}function a(){return new s}let o=a()},60644:(e,t,n)=>{n.d(t,{s:()=>i});var r=n(66373);function i(e,t){var n="object"==typeof t;return new Promise(function(i,s){var a,o=!1;e.subscribe({next:function(e){a=e,o=!0},error:s,complete:function(){o?i(a):n?i(t.defaultValue):s(new r.G)}})})}},61051:(e,t,n)=>{n.d(t,{s:()=>a,t:()=>s});var r=n(23073);function i(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}function s(...e){return t=>{let n=!1,r=e.map(e=>{let r=i(e,t);return n||"function"!=typeof r||(n=!0),r});if(n)return()=>{for(let t=0;t<r.length;t++){let n=r[t];"function"==typeof n?n():i(e[t],null)}}}}function a(...e){return r.useCallback(s(...e),e)}},61641:(e,t,n)=>{n.d(t,{L$:()=>o,Oi:()=>a,Po:()=>i,Uu:()=>s});class r extends Error{constructor(e,t="UNKNOWN_ERROR"){super(e),this.name=this.constructor.name,this.code=t,Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor)}}class i extends r{constructor(e,t){super(e,"VALIDATION_ERROR"),this.details=t}}class s extends r{constructor(e,t){super(e,"DATA_ERROR"),this.path=t}}class a extends r{constructor(e,t,n){super(e,"EXPRESSION_ERROR"),this.expression=t,this.details=n}}class o extends r{constructor(e){super(e,"STATE_ERROR")}}},61807:(e,t,n)=>{function r(e){return e}function i(e){return e}function s(e){}function a(e){throw Error()}function o(e){}function l(e){let t=Object.values(e).filter(e=>"number"==typeof e);return Object.entries(e).filter(([e,n])=>-1===t.indexOf(+e)).map(([e,t])=>t)}
46function u(e,t="|"){return e.map(e=>P(e)).join(t)}function c(e,t){return"bigint"==typeof t?t.toString():t}function d(e){return{get value(){{let t=e();return Object.defineProperty(this,"value",{value:t}),t}}}}function h(e){return null==e}function p(e){let t=+!!e.startsWith("^"),n=e.endsWith("$")?e.length-1:e.length;return e.slice(t,n)}function f(e,t){let n=(e.toString().split(".")[1]||"").length,r=(t.toString().split(".")[1]||"").length,i=n>r?n:r;return Number.parseInt(e.toFixed(i).replace(".",""))%Number.parseInt(t.toFixed(i).replace(".",""))/10**i}function m(e,t,n){Object.defineProperty(e,t,{get(){{let r=n();return e[t]=r,r}},set(n){Object.defineProperty(e,t,{value:n})},configurable:!0})}function g(e,t,n){Object.defineProperty(e,t,{value:n,writable:!0,enumerable:!0,configurable:!0})}function y(e,t){return t?t.reduce((e,t)=>e?.[t],e):e}function v(e){let t=Object.keys(e);return Promise.all(t.map(t=>e[t])).then(e=>{let n={};for(let r=0;r<t.length;r++)n[t[r]]=e[r];return n})}function b(e=10){let t="abcdefghijklmnopqrstuvwxyz",n="";for(let r=0;r<e;r++)n+=t[Math.floor(Math.random()*t.length)];return n}function E(e){return JSON.stringify(e)}n.r(t),n.d(t,{BIGINT_FORMAT_RANGES:()=>L,Class:()=>X,NUMBER_FORMAT_RANGES:()=>M,aborted:()=>H,allowsEval:()=>A,assert:()=>o,assertEqual:()=>r,assertIs:()=>s,assertNever:()=>a,assertNotEqual:()=>i,assignProp:()=>g,cached:()=>d,captureStackTrace:()=>T,cleanEnum:()=>K,cleanRegex:()=>p,clone:()=>N,createTransparentProxy:()=>O,defineLazy:()=>m,esc:()=>E,escapeRegex:()=>C,extend:()=>F,finalizeIssue:()=>Z,floatSafeRemainder:()=>f,getElementAtPath:()=>y,getEnumValues:()=>l,getLengthableOrigin:()=>W,getParsedType:()=>S,getSizableOrigin:()=>V,isObject:()=>_,isPlainObject:()=>x,issue:()=>q,joinValues:()=>u,jsonStringifyReplacer:()=>c,merge:()=>B,normalizeParams:()=>R,nullish:()=>h,numKeys:()=>k,omit:()=>z,optionalKeys:()=>D,partial:()=>$,pick:()=>j,prefixIssues:()=>G,primitiveTypes:()=>I,promiseAllObject:()=>v,propertyKeyTypes:()=>w,randomString:()=>b,required:()=>U,stringifyPrimitive:()=>P,unwrapMessage:()=>Y});let T=Error.captureStackTrace?Error.captureStackTrace:(...e)=>{};function _(e){return"object"==typeof e&&null!==e&&!Array.isArray(e)}let A=d(()=>{if("undefined"!=typeof navigator&&navigator?.userAgent?.includes("Cloudflare"))return!1;try{return Function(""),!0}catch(e){return!1}});function x(e){if(!1===_(e))return!1;let t=e.constructor;if(void 0===t)return!0;let n=t.prototype;return!1!==_(n)&&!1!==Object.prototype.hasOwnProperty.call(n,"isPrototypeOf")}function k(e){let t=0;for(let n in e)Object.prototype.hasOwnProperty.call(e,n)&&t++;return t}let S=e=>{let t=typeof e;switch(t){case"undefined":return"undefined";case"string":return"string";case"number":return Number.isNaN(e)?"nan":"number";case"boolean":return"boolean";case"function":return"function";case"bigint":return"bigint";case"symbol":return"symbol";case"object":if(Array.isArray(e))return"array";if(null===e)return"null";if(e.then&&"function"==typeof e.then&&e.catch&&"function"==typeof e.catch)return"promise";if("undefined"!=typeof Map&&e instanceof Map)return"map";if("undefined"!=typeof Set&&e instanceof Set)return"set";if("undefined"!=typeof Date&&e instanceof Date)return"date";if("undefined"!=typeof File&&e instanceof File)return"file";return"object";default:throw Error(`Unknown data type: ${t}`)}},w=new Set(["string","number","symbol"]),I=new Set(["string","number","bigint","boolean","symbol","undefined"]);function C(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function N(e,t,n){let r=new e._zod.constr(t??e._zod.def);return(!t||n?.parent)&&(r._zod.parent=e),r}function R(e){if(!e)return{};if("string"==typeof e)return{error:()=>e};if(e?.message!==void 0){if(e?.error!==void 0)throw Error("Cannot specify both `message` and `error` params");e.error=e.message}return(delete e.message,"string"==typeof e.error)?{...e,error:()=>e.error}:e}function O(e){let t;return new Proxy({},{get:(n,r,i)=>(t??(t=e()),Reflect.get(t,r,i)),set:(n,r,i,s)=>(t??(t=e()),Reflect.set(t,r,i,s)),has:(n,r)=>(t??(t=e()),Reflect.has(t,r)),deleteProperty:(n,r)=>(t??(t=e()),Reflect.deleteProperty(t,r)),ownKeys:n=>
46(t??(t=e()),Reflect.ownKeys(t)),getOwnPropertyDescriptor:(n,r)=>(t??(t=e()),Reflect.getOwnPropertyDescriptor(t,r)),defineProperty:(n,r,i)=>(t??(t=e()),Reflect.defineProperty(t,r,i))})}function P(e){return"bigint"==typeof e?e.toString()+"n":"string"==typeof e?`"${e}"`:`${e}`}function D(e){return Object.keys(e).filter(t=>"optional"===e[t]._zod.optin&&"optional"===e[t]._zod.optout)}let M={safeint:[Number.MIN_SAFE_INTEGER,Number.MAX_SAFE_INTEGER],int32:[-0x80000000,0x7fffffff],uint32:[0,0xffffffff],float32:[-34028234663852886e22,34028234663852886e22],float64:[-Number.MAX_VALUE,Number.MAX_VALUE]},L={int64:[BigInt("-9223372036854775808"),BigInt("9223372036854775807")],uint64:[BigInt(0),BigInt("18446744073709551615")]};function j(e,t){let n={},r=e._zod.def;for(let e in t){if(!(e in r.shape))throw Error(`Unrecognized key: "${e}"`);t[e]&&(n[e]=r.shape[e])}return N(e,{...e._zod.def,shape:n,checks:[]})}function z(e,t){let n={...e._zod.def.shape},r=e._zod.def;for(let e in t){if(!(e in r.shape))throw Error(`Unrecognized key: "${e}"`);t[e]&&delete n[e]}return N(e,{...e._zod.def,shape:n,checks:[]})}function F(e,t){if(!x(t))throw Error("Invalid input to extend: expected a plain object");let n={...e._zod.def,get shape(){let n={...e._zod.def.shape,...t};return g(this,"shape",n),n},checks:[]};return N(e,n)}function B(e,t){return N(e,{...e._zod.def,get shape(){let n={...e._zod.def.shape,...t._zod.def.shape};return g(this,"shape",n),n},catchall:t._zod.def.catchall,checks:[]})}function $(e,t,n){let r=t._zod.def.shape,i={...r};if(n)for(let t in n){if(!(t in r))throw Error(`Unrecognized key: "${t}"`);n[t]&&(i[t]=e?new e({type:"optional",innerType:r[t]}):r[t])}else for(let t in r)i[t]=e?new e({type:"optional",innerType:r[t]}):r[t];return N(t,{...t._zod.def,shape:i,checks:[]})}function U(e,t,n){let r=t._zod.def.shape,i={...r};if(n)for(let t in n){if(!(t in i))throw Error(`Unrecognized key: "${t}"`);n[t]&&(i[t]=new e({type:"nonoptional",innerType:r[t]}))}else for(let t in r)i[t]=new e({type:"nonoptional",innerType:r[t]});return N(t,{...t._zod.def,shape:i,checks:[]})}function H(e,t=0){for(let n=t;n<e.issues.length;n++)if(e.issues[n]?.continue!==!0)return!0;return!1}function G(e,t){return t.map(t=>(t.path??(t.path=[]),t.path.unshift(e),t))}function Y(e){return"string"==typeof e?e:e?.message}function Z(e,t,n){let r={...e,path:e.path??[]};return e.message||(r.message=Y(e.inst?._zod.def?.error?.(e))??Y(t?.error?.(e))??Y(n.customError?.(e))??Y(n.localeError?.(e))??"Invalid input"),delete r.inst,delete r.continue,t?.reportInput||delete r.input,r}function V(e){return e instanceof Set?"set":e instanceof Map?"map":e instanceof File?"file":"unknown"}function W(e){return Array.isArray(e)?"array":"string"==typeof e?"string":"unknown"}function q(...e){let[t,n,r]=e;return"string"==typeof t?{message:t,code:"custom",input:n,inst:r}:{...t}}function K(e){return Object.entries(e).filter(([e,t])=>Number.isNaN(Number.parseInt(e,10))).map(e=>e[1])}class X{constructor(...e){}}},62521:(e,t,n)=>{n.d(t,{m:()=>i});var r=n(99244);function i(e){return e&&(0,r.T)(e.schedule)}},64321:e=>{var t=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,n=/\n/g,r=/^\s*/,i=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,s=/^:\s*/,a=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,o=/^[;\s]*/,l=/^\s+|\s+$/g;function u(e){return e?e.replace(l,""):""}e.exports=function(e,l){if("string"!=typeof e)throw TypeError("First argument must be a string");if(!e)return[];l=l||{};var c=1,d=1;function h(e){var t=e.match(n);t&&(c+=t.length);var r=e.lastIndexOf("\n");d=~r?e.length-r:d+e.length}function p(){var e={line:c,column:d};return function(t){return t.position=new f(e),g(r),t}}function f(e){this.start=e,this.end={line:c,column:d},this.source=l.source}function m(t){var n=Error(l.source+":"+c+":"+d+": "+t);if(n.reason=t,n.filename=l.source,n.line=c,n.column=d,n.source=e,l.silent);else throw n}function g(t){var n=t.exec(e);if(n){var r=n[0];return h(r),e=e.slice(r.length),n}}function y(e){var t;for(e=e||[];t=v();)!1!==t&&e.push(t);return e}function v(){var t=p();if("/"==e.charAt(0)&&"*"==e.charAt(1)){for(var n=2;""!=e.charAt(n)&&("*"!=e.charAt(n)||"/"!=e.charAt(n+1));)++n;if(n+=2,""===e.charAt(n-1))return m("End of comment missing");var r=e.slice(2,n-2);return d+=2,h(r),e=e.slice(n),d+=2,t({type:"comment",comment:r})}}f.prototype.content=e,g(r);var b,E=[];for(y(E);b=function(){var e=p(),n=g(i);if(n){if(v(),!g(s))return m("property missing ':'");var r=g(a),l=e({type:"declaration",property:u(n[0].replace(t,"")),value:r?u(r[0].replace(t,"")):""});return g(o),l}}();)!1!==b&&(E.push(b),y(E));return E}},64910:(e,t,n)=>{let r,i,s,a,o,l,u,c;n.d(t,{os:()=>j,EW:()=>M,QZ:()=>L,_W:()=>F,Hp:()=>z,bQ:()=>$,KY:()=>B,vP:()=>D});var d=Symbol.for("preact-signals");function h(){if(y>1)y--;else{var e,t=!1,n=T;for(T=void 0;void 0!==n;){var r=n.S;if(r.v===n.v)for(var i=r.t;void 0!==i;i=i.x)i.i===n.i&&(i.i=r.i);n=n.o}for(;void 0!==g;){var s=g;for(g=void 0,v++;void 0!==s;){var a=s.u;if(s.u=void 0,s.f&=-3,!(8&s.f)&&k(s))try{s.c()}catch(n){t||(e=n,t=!0)}s=a}}if(v=0,y--,t)throw e}}var p,f=void 0;function m(e){var t=f,n=p;f=void 0,p=void 0;try{return e()}finally{f=t,p=n}}var g=void 0,y=0,v=0,b=0,E=0,T=void 0,_=0;function A(e){if(void 0!==f){var t=e.n;if(void 0===t||t.t!==f)return t={i:0,S:e,p:f.s,n:void 0,t:f,e:void 0,x:void 0,r:t}
46,void 0!==f.s&&(f.s.n=t),f.s=t,e.n=t,32&f.f&&e.S(t),t;if(-1===t.i)return t.i=0,void 0!==t.n&&(t.n.p=t.p,void 0!==t.p&&(t.p.n=t.n),t.p=f.s,t.n=void 0,f.s.n=t,f.s=t),t}}function x(e,t){this.v=e,this.i=0,this.n=void 0,this.t=void 0,this.l=0,this.W=null==t?void 0:t.watched,this.Z=null==t?void 0:t.unwatched,this.name=null==t?void 0:t.name}function k(e){for(var t=e.s;void 0!==t;t=t.n)if(t.S.i!==t.i||!t.S.h()||t.S.i!==t.i)return!0;return!1}function S(e){for(var t=e.s;void 0!==t;t=t.n){var n=t.S.n;if(void 0!==n&&(t.r=n),t.S.n=t,t.i=-1,void 0===t.n){e.s=t;break}}}function w(e){for(var t=e.s,n=void 0;void 0!==t;){var r=t.p;-1===t.i?(t.S.U(t),void 0!==r&&(r.n=t.n),void 0!==t.n&&(t.n.p=r)):n=t,t.S.n=t.r,void 0!==t.r&&(t.r=void 0),t=r}e.s=n}function I(e,t){x.call(this,void 0,t),this.x=e,this.s=void 0,this.g=_-1,this.f=4}function C(e){var t=e.m;if(e.m=void 0,"function"==typeof t){y++;var n=f;f=void 0;try{t()}catch(t){throw e.f&=-2,e.f|=8,N(e),t}finally{f=n,h()}}}function N(e){for(var t=e.s;void 0!==t;t=t.n)t.S.U(t);e.x=void 0,e.s=void 0,C(e)}function R(e){if(f!==this)throw Error("Out-of-order effect");w(this),f=e,this.f&=-2,8&this.f&&N(this),h()}function O(e,t){this.x=e,this.m=void 0,this.s=void 0,this.u=void 0,this.f=32,this.name=null==t?void 0:t.name,p&&p.push(this)}function P(e,t){var n=new O(e,t);try{n.c()}catch(e){throw n.d(),e}var r=n.d.bind(n);return r[Symbol.dispose]=r,r}function D(e){return r(e)}function M(e){return i(e)}function L(e){return s(e)}function j(e){return a(e)}function z(e){return o(e)}function F(e){return l(e)}function B(e,t){u(e,t)}function $(e){return c(e)}x.prototype.brand=d,x.prototype.h=function(){return!0},x.prototype.S=function(e){var t=this,n=this.t;n!==e&&void 0===e.e&&(e.x=n,this.t=e,void 0!==n?n.e=e:m(function(){var e;null==(e=t.W)||e.call(t)}))},x.prototype.U=function(e){var t=this;if(void 0!==this.t){var n=e.e,r=e.x;void 0!==n&&(n.x=r,e.e=void 0),void 0!==r&&(r.e=n,e.x=void 0),e===this.t&&(this.t=r,void 0===r&&m(function(){var e;null==(e=t.Z)||e.call(t)}))}},x.prototype.subscribe=function(e){var t=this;return P(function(){var n=t.value;m(function(){return e(n)})},{name:"sub"})},x.prototype.valueOf=function(){return this.value},x.prototype.toString=function(){return this.value+""},x.prototype.toJSON=function(){return this.value},x.prototype.peek=function(){var e=this;return m(function(){return e.value})},Object.defineProperty(x.prototype,"value",{get:function(){var e=A(this);return void 0!==e&&(e.i=this.i),this.v},set:function(e){if(e!==this.v){if(v>100)throw Error("Cycle detected");0!==y&&0===v&&this.l!==E&&(this.l=E,T={S:this,v:this.v,i:this.i,o:T}),this.v=e,this.i++,_++,y++;try{for(var t=this.t;void 0!==t;t=t.x)t.t.N()}finally{h()}}}}),I.prototype=new x,I.prototype.h=function(){if(this.f&=-3,1&this.f)return!1;if(32==(36&this.f)||(this.f&=-5,this.g===_))return!0;if(this.g=_,this.f|=1,this.i>0&&!k(this))return this.f&=-2,!0;var e=f;try{S(this),f=this;var t=this.x();(16&this.f||this.v!==t||0===this.i)&&(this.v=t,this.f&=-17,this.i++)}catch(e){this.v=e,this.f|=16,this.i++}return f=e,w(this),this.f&=-2,!0},I.prototype.S=function(e){if(void 0===this.t){this.f|=36;for(var t=this.s;void 0!==t;t=t.n)t.S.S(t)}x.prototype.S.call(this,e)},I.prototype.U=function(e){if(void 0!==this.t&&(x.prototype.U.call(this,e),void 0===this.t)){this.f&=-33;for(var t=this.s;void 0!==t;t=t.n)t.S.U(t)}},I.prototype.N=function(){if(!(2&this.f)){this.f|=6;for(var e=this.t;void 0!==e;e=e.x)e.t.N()}},Object.defineProperty(I.prototype,"value",{get:function(){if(1&this.f)throw Error("Cycle detected");var e=A(this);if(this.h(),void 0!==e&&(e.i=this.i),16&this.f)throw this.v;return this.v}}),O.prototype.c=function(){var e=this.S();try{if(8&this.f||void 0===this.x)return;var t=this.x();"function"==typeof t&&(this.m=t)}finally{e()}},O.prototype.S=function(){if(1&this.f)throw Error("Cycle detected");this.f|=1,this.f&=-9,C(this),S(this),y++;var e=f;return f=this,R.bind(this,e)},O.prototype.N=function(){2&this.f||(this.f|=2,this.u=g,g=this)},O.prototype.d=function(){this.f|=8,1&this.f||N(this)},O.prototype.dispose=function(){this.d()},!function(e){r=e.signal,i=e.computed,s=e.effect,a=e.batchWrite,o=e.isSignal,l=e.getValue,u=e.setValue,c=e.peekValue}({signal:function(e,t){return new x(e,t)},computed:function(e,t){return new I(e,t)},effect:P,batchWrite:function(e){if(y>0)return e();E=++b,y++;try{return e()}finally{h()}},isSignal:e=>!!e&&"object"==typeof e&&"value"in e&&"peek"in e,getValue:e=>e.value,setValue:(e,t)=>
46{e instanceof I||(e.value=t)},peekValue:e=>e.peek()})},65174:(e,t,n)=>{n.d(t,{c:()=>c});var r=n(96574),i=n(4956),s=n(72361),a=n(27232),o=n(83109),l=n(99244),u=n(3125),c=function(){function e(e){e&&(this._subscribe=e)}return e.prototype.lift=function(t){var n=new e;return n.source=this,n.operator=t,n},e.prototype.subscribe=function(e,t,n){var s=this,a=!function(e){return e&&e instanceof r.vU||e&&(0,l.T)(e.next)&&(0,l.T)(e.error)&&(0,l.T)(e.complete)&&(0,i.Uv)(e)}(e)?new r.Ms(e,t,n):e;return(0,u.Y)(function(){var e=s.operator,t=s.source;a.add(e?e.call(a,t):t?s._subscribe(a):s._trySubscribe(a))}),a},e.prototype._trySubscribe=function(e){try{return this._subscribe(e)}catch(t){e.error(t)}},e.prototype.forEach=function(e,t){var n=this;return new(t=d(t))(function(t,i){var s=new r.Ms({next:function(t){try{e(t)}catch(e){i(e),s.unsubscribe()}},error:i,complete:t});n.subscribe(s)})},e.prototype._subscribe=function(e){var t;return null==(t=this.source)?void 0:t.subscribe(e)},e.prototype[s.s]=function(){return this},e.prototype.pipe=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return(0,a.m)(e)(this)},e.prototype.toPromise=function(e){var t=this;return new(e=d(e))(function(e,n){var r;t.subscribe(function(e){return r=e},function(e){return n(e)},function(){return e(r)})})},e.create=function(t){return new e(t)},e}();function d(e){var t;return null!=(t=null!=e?e:o.$.Promise)?t:Promise}},65294:(e,t,n)=>{function r(e){let t=[],n=String(e||""),r=n.indexOf(","),i=0,s=!1;for(;!s;){-1===r&&(r=n.length,s=!0);let e=n.slice(i,r).trim();(e||!s)&&t.push(e),i=r+1,r=n.indexOf(",",i)}return t}function i(e,t){let n=t||{};return(""===e[e.length-1]?[...e,""]:e).join((n.padRight?" ":"")+","+(!1===n.padLeft?"":" ")).trim()}n.d(t,{A:()=>i,q:()=>r})},66226:(e,t,n)=>{n.d(t,{X:()=>r});var r=function(e){return e&&"number"==typeof e.length&&"function"!=typeof e}},66373:(e,t,n)=>{n.d(t,{G:()=>r});var r=(0,n(7542).L)(function(e){return function(){e(this),this.name="EmptyError",this.message="no elements in sequence"}})},67712:(e,t,n)=>{n.d(t,{Z:()=>l});var r=n(23073),i=n(52452),s=n(95996),a=n(54728),o=n(805),l=r.forwardRef((e,t)=>{let{container:n,...l}=e,[u,c]=r.useState(!1);(0,a.N)(()=>c(!0),[]);let d=n||u&&globalThis?.document?.body;return d?i.createPortal((0,o.jsx)(s.sG.div,{...l,ref:t}),d):null});l.displayName="Portal"},68219:(e,t,n)=>{n.d(t,{A:()=>r});let r=(0,n(45751).A)("upload",[["path",{d:"M12 3v12",key:"1x0j5s"}],["path",{d:"m17 8-5-5-5 5",key:"7q97r8"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}]])},68300:(e,t,n)=>{n.d(t,{_:()=>s});var r=n(66373),i=n(96574);function s(e,t){var n="object"==typeof t;return new Promise(function(s,a){var o=new i.Ms({next:function(e){s(e),o.unsubscribe()},error:a,complete:function(){n?s(t.defaultValue):a(new r.G)}});e.subscribe(o)})}},68810:(e,t,n)=>{n.d(t,{T:()=>i});var r=n(99244);function i(e){return Symbol.asyncIterator&&(0,r.T)(null==e?void 0:e[Symbol.asyncIterator])}},68843:(e,t,n)=>{n.d(t,{A:()=>r});let r=(0,n(45751).A)("arrow-up",[["path",{d:"m5 12 7-7 7 7",key:"hav0vg"}],["path",{d:"M12 19V5",key:"x0mq9r"}]])},69293:(e,t,n)=>{function r(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}n.d(t,{JG:()=>ec,xI:()=>eg});var i=r(),s={exec:()=>null};function a(e,t=""){let n="string"==typeof e?e:e.source,r={replace:(e,t)=>{let i="string"==typeof t?t:t.source;return i=i.replace(l.caret,"$1"),n=n.replace(e,i),r},getRegex:()=>new RegExp(n,t)};return r}var o=(()=>{try{return!!RegExp("(?<=1)(?<!1)")}catch{return!1}})(),l={codeRemoveIndent:/^(?: {1,4}| {0,3}\t)/gm,outputLinkReplace:/\\([\[\]])/g,indentCodeCompensation:/^(\s+)(?:```)/,beginningSpace:/^\s+/,endingHash:/#$/,startingSpaceChar:/^ /,endingSpaceChar:/ $/,nonSpaceChar:/[^ ]/,newLineCharGlobal:/\n/g,tabCharGlobal:/\t/g,multipleSpaceGlobal:/\s+/g,blankLine:/^[ \t]*$/,doubleBlankLine:/\n[ \t]*\n[ \t]*$/,blockquoteStart:/^ {0,3}>/,blockquoteSetextReplace:/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,blockquoteSetextReplace2:/^ {0,3}>[ \t]?/gm,listReplaceTabs:/^\t+/,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] /,listReplaceTask:/^\[[ xX]\] +/,anyLine
vendor: 4,134 bytes, line 46
46:/\n.*\n/,hrefBrackets:/^<(.*)>$/,tableDelimiter:/[:|]/,tableAlignChars:/^\||\| *$/g,tableRowBlankLine:/\n[ \t]*$/,tableAlignRight:/^ *-+: *$/,tableAlignCenter:/^ *:-+: *$/,tableAlignLeft:/^ *:-+ *$/,startATag:/^<a /i,endATag:/^<\/a>/i,startPreScriptTag:/^<(pre|code|kbd|script)(\s|>)/i,endPreScriptTag:/^<\/(pre|code|kbd|script)(\s|>)/i,startAngleBracket:/^</,endAngleBracket:/>$/,pedanticHrefTitle:/^([^'"]*[^\s])\s+(['"])(.*)\2/,unicodeAlphaNumeric:/[\p{L}\p{N}]/u,escapeTest:/[&<>"']/,escapeReplace:/[&<>"']/g,escapeTestNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,escapeReplaceNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,unescapeTest:/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:e=>RegExp(`^( {0,3}${e})((?:[ ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:e=>RegExp(`^ {0,${Math.min(3,e-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`),hrRegex:e=>RegExp(`^ {0,${Math.min(3,e-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),fencesBeginRegex:e=>RegExp(`^ {0,${Math.min(3,e-1)}}(?:\`\`\`|~~~)`),headingBeginRegex:e=>RegExp(`^ {0,${Math.min(3,e-1)}}#`),htmlBeginRegex:e=>RegExp(`^ {0,${Math.min(3,e-1)}}<(?:[a-z].*>|!--)`,"i")},u=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,c=/(?:[*+-]|\d{1,9}[.)])/,d=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,h=a(d).replace(/bull/g,c).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/\|table/g,"").getRegex(),p=a(d).replace(/bull/g,c).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/table/g,/ {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(),f=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,m=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,g=a(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",m).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),y=a(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,c).getRegex(),v="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|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",b=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,E=a("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))","i").replace("comment",b).replace("tag",v).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),T=a(f).replace("hr",u).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",v).getRegex(),_={blockquote:a(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",T).getRegex(),code:/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,def:g,fences:/^ {0,3}(`{3,}
vendor: 4,605 bytes, lines 46-47
46(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,heading:/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,hr:u,html:E,lheading:h,list:y,newline:/^(?:[ \t]*(?:\n|$))+/,paragraph:T,table:s,text:/^[^\n]+/},A=a("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",u).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code","(?: {4}| {0,3} )[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",v).getRegex(),x={..._,lheading:p,table:A,paragraph:a(f).replace("hr",u).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",A).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",v).getRegex()},k={..._,html:a(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",b).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:s,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:a(f).replace("hr",u).replace("heading",` *#{1,6} *[^ 47]`).replace("lheading",h).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},S=/^( {2,}|\\)\n(?!\s*$)/,w=/[\p{P}\p{S}]/u,I=/[\s\p{P}\p{S}]/u,C=/[^\s\p{P}\p{S}]/u,N=a(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,I).getRegex(),R=/(?!~)[\p{P}\p{S}]/u,O=a(/link|precode-code|html/,"g").replace("link",/\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace("precode-",o?"(?<!`)()":"(^^|[^`])").replace("code",/(?<b>`+)[^`]+\k<b>(?!`)/).replace("html",/<(?! )[^<>]*?>/).getRegex(),P=/^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/,D=a(P,"u").replace(/punct/g,w).getRegex(),M=a(P,"u").replace(/punct/g,R).getRegex(),L="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",j=a(L,"gu").replace(/notPunctSpace/g,C).replace(/punctSpace/g,I).replace(/punct/g,w).getRegex(),z=a(L,"gu").replace(/notPunctSpace/g,/(?:[^\s\p{P}\p{S}]|~)/u).replace(/punctSpace/g,/(?!~)[\s\p{P}\p{S}]/u).replace(/punct/g,R).getRegex(),F=a("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,C).replace(/punctSpace/g,I).replace(/punct/g,w).getRegex(),B=a(/\\(punct)/,"gu").replace(/punct/g,w).getRegex(),$=a(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme",/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email",/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(),U=a(b).replace("(?:--\x3e|$)","--\x3e").getRegex(),H=a("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment",U).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),G=/(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+[^`]*?`+(?!`)|[^\[\]\\`])*?/,Y=a(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]*(?:\n[ \t]*)?)(title))?\s*\)/).replace("label",G).replace("href",/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),Z=a(/^!?\[(label)\]\[(ref)\]/).replace("label",G).replace("ref",m).getRegex(),V=a(/^!?\[(ref)\](?:\[\])?/).replace("ref",m).getRegex(),W=a("reflink|nolink(?!\\()","g").replace("reflink",Z).replace("nolink",V).getRegex(),q=/[hH][tT][tT][pP][sS]?|[fF][tT][pP]/,K={_backpedal:s,anyPunctuation:B,autolink:$,blockSkip:O,br:S,
47code:/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,del:s,emStrongLDelim:D,emStrongRDelimAst:j,emStrongRDelimUnd:F,escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,link:Y,nolink:V,punctuation:N,reflink:Z,reflinkSearch:W,tag:H,text:/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,url:s},X={...K,link:a(/^!?\[(label)\]\((.*?)\)/).replace("label",G).getRegex(),reflink:a(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",G).getRegex()},Q={...K,emStrongRDelimAst:z,emStrongLDelim:M,url:a(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol",q).replace("email",/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])((?:\\[\s\S]|[^\\])*?(?:\\[\s\S]|[^\s~\\]))\1(?=[^~]|$)/,text:a(/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/).replace("protocol",q).getRegex()},J={...Q,br:a(S).replace("{2,}","*").getRegex(),text:a(Q.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},ee={normal:_,gfm:x,pedantic:k},et={normal:K,gfm:Q,breaks:J,pedantic:X},en={"&":"&","<":"<",">":">",'"':""","'":"'"},er=e=>en[e];function ei(e,t){if(t){if(l.escapeTest.test(e))return e.replace(l.escapeReplace,er)}else if(l.escapeTestNoEncode.test(e))return e.replace(l.escapeReplaceNoEncode,er);return e}function es(e){try{e=encodeURI(e).replace(l.percentDecode,"%")}catch{return null}return e}function ea(e,t){let n=e.replace(l.findPipe,(e,t,n)=>{let r=!1,i=t;for(;--i>=0&&"\\"===n[i];)r=!r;return r?"|":" |"}).split(l.splitPipe),r=0;if(n[0].trim()||n.shift(),n.length>0&&!n.at(-1)?.trim()&&n.pop(),t)if(n.length>t)n.splice(t);else for(;n.length<t;)n.push("");for(;r<n.length;r++)n[r]=n[r].trim().replace(l.slashPipe,"|");return n}function eo(e,t,n){let r=e.length;if(0===r)return"";let i=0;for(;i<r;){let s=e.charAt(r-i-1);if(s!==t||n)if(s!==t&&n)i++;else break;else i++}return e.slice(0,r-i)}function el(e,t,n,r,i){let s=t.href,a=t.title||null,o=e[1].replace(i.other.outputLinkReplace,"$1");r.state.inLink=!0;let l={type:"!"===e[0].charAt(0)?"image":"link",raw:n,href:s,title:a,text:o,tokens:r.inlineTokens(o)};return r.state.inLink=!1,l}var eu=class{options;rules;lexer;constructor(e){this.options=e||i}space(e){let t=this.rules.block.newline.exec(e);if(t&&t[0].length>0)return{type:"space",raw:t[0]}}code(e){let t=this.rules.block.code.exec(e);if(t){let e=t[0].replace(this.rules.other.codeRemoveIndent,"");return{type:"code",raw:t[0],codeBlockStyle:"indented",text:this.options.pedantic?e:eo(e,` 48`)}}}fences(e){let t=this.rules.block.fences.exec(e);if(t){let e=t[0],n=function(e,t,n){let r=e.match(n.other.indentCodeCompensation);if(null===r)return t;let i=r[1];return t.split(` 49`).map(e=>{let t=e.match(n.other.beginningSpace);if(null===t)return e;let[r]=t;return r.length>=i.length?e.slice(i.length):e}).join(` 50`)}(e,t[3]||"",this.rules);return{type:"code",raw:e,lang:t[2]?t[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):t[2],text:n}}}heading(e){let t=this.rules.block.heading.exec(e);if(t){let e=t[2].trim();if(this.rules.other.endingHash.test(e)){let t=eo(e,"#");(this.options.pedantic||!t||this.rules.other.endingSpaceChar.test(t))&&(e=t.trim())}return{type:"heading",raw:t[0],depth:t[1].length,text:e,tokens:this.lexer.inline(e)}}}hr(e){let t=this.rules.block.hr.exec(e);if(t)return{type:"hr",raw:eo(t[0],` 51`)}}blockquote(e){let t=this.rules.block.blockquote.exec(e);if(t){let e=eo(t[0],` 52`).split(` 53`),n="",r="",i=[];for(;e.length>0;){let t=!1,s=[],a;for(a=0;a<e.length;a++)if(this.rules.other.blockquoteStart.test(e[a]))s.push(e[a]),t=!0;else if(t)break;else s.push(e[a]);e=e.slice(a);let o=s.join(` 54`),l=o.replace(this.rules.other.blockquoteSetextReplace,` 55 $1`).replace(this.rules.other.blockquoteSetextReplace2,"");n=n?`${n} 56${o}`:o,r=r?`${r} 57${l}`:l;let u=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTokens(l,i,!0),this.lexer.state.top=u,0===e.length)break;let c=i.at(-1);if(c?.type==="code")break;if(c?.type==="blockquote"){let t=c.raw+` 58`+e.join(` 59`),s=this.blockquote(t);i[i.length-1]=s,n=n.substring(0,n.length-c.raw.length)+s.raw,r=r.substring(0,r.length-c.text.length)+s.text;break}if(c?.type==="list"){let t=c.raw+` 60`+e.join(` 61`),s=this.list(t);i[i.length-1]=s,n=n.substring(0,n.length-c.raw.length)+s.raw,r=r.substring(0,r.length-c.raw.length)+s.raw,e=t.substring(i.at(-1).raw.length).split(` 62`);continue}}return{type:"blockquote",raw:n,tokens:i,text:r}}}list(e){let t=this.rules.block.list.exec(e);
62if(t){let n=t[1].trim(),r=n.length>1,i={type:"list",raw:"",ordered:r,start:r?+n.slice(0,-1):"",loose:!1,items:[]};n=r?`\\d{1,9}\\${n.slice(-1)}`:`\\${n}`,this.options.pedantic&&(n=r?n:"[*+-]");let s=this.rules.other.listItemRegex(n),a=!1;for(;e;){let n=!1,r="",o="";if(!(t=s.exec(e))||this.rules.block.hr.test(e))break;r=t[0],e=e.substring(r.length);let l=t[2].split(` 63`,1)[0].replace(this.rules.other.listReplaceTabs,e=>" ".repeat(3*e.length)),u=e.split(` 64`,1)[0],c=!l.trim(),d=0;if(this.options.pedantic?(d=2,o=l.trimStart()):c?d=t[1].length+1:(d=(d=t[2].search(this.rules.other.nonSpaceChar))>4?1:d,o=l.slice(d),d+=t[1].length),c&&this.rules.other.blankLine.test(u)&&(r+=u+` 65`,e=e.substring(u.length+1),n=!0),!n){let t=this.rules.other.nextBulletRegex(d),n=this.rules.other.hrRegex(d),i=this.rules.other.fencesBeginRegex(d),s=this.rules.other.headingBeginRegex(d),a=this.rules.other.htmlBeginRegex(d);for(;e;){let h=e.split(` 66`,1)[0],p;if(u=h,p=this.options.pedantic?u=u.replace(this.rules.other.listReplaceNesting," "):u.replace(this.rules.other.tabCharGlobal," "),i.test(u)||s.test(u)||a.test(u)||t.test(u)||n.test(u))break;if(p.search(this.rules.other.nonSpaceChar)>=d||!u.trim())o+=` 67`+p.slice(d);else{if(c||l.replace(this.rules.other.tabCharGlobal," ").search(this.rules.other.nonSpaceChar)>=4||i.test(l)||s.test(l)||n.test(l))break;o+=` 68`+u}c||u.trim()||(c=!0),r+=h+` 69`,e=e.substring(h.length+1),l=p.slice(d)}}i.loose||(a?i.loose=!0:this.rules.other.doubleBlankLine.test(r)&&(a=!0));let h=null,p;this.options.gfm&&(h=this.rules.other.listIsTask.exec(o))&&(p="[ ] "!==h[0],o=o.replace(this.rules.other.listReplaceTask,"")),i.items.push({type:"list_item",raw:r,task:!!h,checked:p,loose:!1,text:o,tokens:[]}),i.raw+=r}let o=i.items.at(-1);if(!o)return;o.raw=o.raw.trimEnd(),o.text=o.text.trimEnd(),i.raw=i.raw.trimEnd();for(let e=0;e<i.items.length;e++)if(this.lexer.state.top=!1,i.items[e].tokens=this.lexer.blockTokens(i.items[e].text,[]),!i.loose){let t=i.items[e].tokens.filter(e=>"space"===e.type);i.loose=t.length>0&&t.some(e=>this.rules.other.anyLine.test(e.raw))}if(i.loose)for(let e=0;e<i.items.length;e++)i.items[e].loose=!0;return i}}html(e){let t=this.rules.block.html.exec(e);if(t)return{type:"html",block:!0,raw:t[0],pre:"pre"===t[1]||"script"===t[1]||"style"===t[1],text:t[0]}}def(e){let t=this.rules.block.def.exec(e);if(t){let e=t[1].toLowerCase().replace(this.rules.other.multipleSpaceGlobal," "),n=t[2]?t[2].replace(this.rules.other.hrefBrackets,"$1").replace(this.rules.inline.anyPunctuation,"$1"):"",r=t[3]?t[3].substring(1,t[3].length-1).replace(this.rules.inline.anyPunctuation,"$1"):t[3];return{type:"def",tag:e,raw:t[0],href:n,title:r}}}table(e){let t=this.rules.block.table.exec(e);if(!t||!this.rules.other.tableDelimiter.test(t[2]))return;let n=ea(t[1]),r=t[2].replace(this.rules.other.tableAlignChars,"").split("|"),i=t[3]?.trim()?t[3].replace(this.rules.other.tableRowBlankLine,"").split(` 70`):[],s={type:"table",raw:t[0],header:[],align:[],rows:[]};if(n.length===r.length){for(let e of r)this.rules.other.tableAlignRight.test(e)?s.align.push("right"):this.rules.other.tableAlignCenter.test(e)?s.align.push("center"):this.rules.other.tableAlignLeft.test(e)?s.align.push("left"):s.align.push(null);for(let e=0;e<n.length;e++)s.header.push({text:n[e],tokens:this.lexer.inline(n[e]),header:!0,align:s.align[e]});for(let e of i)s.rows.push(ea(e,s.header.length).map((e,t)=>({text:e,tokens:this.lexer.inline(e),header:!1,align:s.align[t]})));return s}}lheading(e){let t=this.rules.block.lheading.exec(e);if(t)return{type:"heading",raw:t[0],depth:"="===t[2].charAt(0)?1:2,text:t[1],tokens:this.lexer.inline(t[1])}}paragraph(e){let t=this.rules.block.paragraph.exec(e);if(t){let e=t[1].charAt(t[1].length-1)===` 71`?t[1].slice(0,-1):t[1];return{type:"paragraph",raw:t[0],text:e,tokens:this.lexer.inline(e)}}}text(e){let t=this.rules.block.text.exec(e);if(t)return{type:"text",raw:t[0],text:t[0],tokens:this.lexer.inline(t[0])}}escape(e){let t=this.rules.inline.escape.exec(e);if(t)return{type:"escape",raw:t[0],text:t[1]}}tag(e){let t=this.rules.inline.tag.exec(e);if(t)return!this.lexer.state.inLink&&this.rules.other.startATag.test(t[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&this.rules.other.endATag.test(t[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&this.rules.other.startPreScriptTag.test(t[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&this.rules.other.endPreScriptTag.test(t[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:t[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:t[0]}}link(e){let t=this.rules.inline.link.exec(e);if(t){let e=t[2].trim();if(!this.options.pedantic&&this.rules.other.startAngleBracket.test(e)){if(!this.rules.other.endAngleBracket.test(e))return;let t=eo(e.slice(0,-1),"\\");if((e.length-t.length)%2==0)return}else{let e=function(e,t){if(-1===e.indexOf(")"))return -1;let n=0;for(let r=0;r<e.length;r++)if("\\"===e[r])r++;else if("("===e[r])n++;else if(e[r]===t[1]&&--n<0)return r;return n>0?-2:-1}(t[2],"()");if(-2===e)return;if(e>-1){let n=(0===t[0].indexOf("!")?5:4)+t[1].length+e;t[2]=t[2].substring(0,e),t[0]=t[0].substring(0,n).trim(),t[3]=""}}let n=t[2],r="";if(this.options.pedantic){let e=this.rules.other.pedanticHrefTitle.exec(n);e&&(n=e[1],r=e[3])}else r=t[3]?t[3].slice(1,-1):"";return n=n.trim(),this.rules.other.startAngleBracket.test(n)&&(n=this.options.pedantic&&!this.rules.other.endAngleBracket.test(e)?n.slice(1):n.slice(1,-1)),el(t,{href:n&&n.replace(this.rules.inline.anyPunctuation,"$1"),title:r&&r.replace(this.rules.inline.anyPunctuation,"$1")},t[0],this.lexer,this.rules)}}reflink(e,t){let n;if((n=this.rules.inline.reflink.exec(e))||(n=this.rules.inline.nolink.exec(e))){let e=t[(n[2]||n[1]).replace(this.rules.other.multipleSpaceGlobal," ").toLowerCase()];if(!e){let e=n[0].charAt(0);return{type:"text",raw:e,text:e}}return el(n,e,n[0],this.lexer,this.rules)}}emStrong(e,t,n=""){let r=this.rules.inline.emStrongLDelim.exec(e);if(!(!r||r[3]&&n.match(this.rules.other.unicodeAlphaNumeric))&&(!(r[1]||r[2])||!n||this.rules.inline.punctuation.exec(n))){let n=[...r[0]].length-1,i,s,a=n,o=0,l="*"===r[0][0]?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(l.lastIndex=0,t=t.slice(-1*e.length+n);null!=(r=l.exec(t));){if(!(i=r[1]||r[2]||r[3]||r[4]||r[5]||r[6]))continue;if(s=[...i].length,r[3]||r[4]){a+=s;continue}if((r[5]||r[6])&&n%3&&!((n+s)%3)){o+=s;continue}if((a-=s)>0)continue;s=Math.min(s,s+a+o);let t=[...r[0]][0].length,l=e.slice(0,n+r.index+t+s);if(Math.min(n,s)%2){let e=l.slice(1,-1);return{type:"em",raw:l,text:e,tokens:this.lexer.inlineTokens(e)}}let u=l.slice(2,-2);return{type:"strong",raw:l,text:u,tokens:this.lexer.inlineTokens(u)}}}}codespan(e){let t=this.rules.inline.code.exec(e);if(t){let e=t[2].replace(this.rules.other.newLineCharGlobal," "),n=this.rules.other.nonSpaceChar.test(e),r=this.rules.other.startingSpaceChar.test(e)&&this.rules.other.endingSpaceChar.test(e);return n&&r&&(e=e.substring(1,e.length-1)),{type:"codespan",raw:t[0],text:e}}}br(e){let t=this.rules.inline.br.exec(e);if(t)return{type:"br",raw:t[0]}}del(e){let t=this.rules.inline.del.exec(e);if(t)return{type:"del",raw:t[0],text:t[2],tokens:this.lexer.inlineTokens(t[2])}}autolink(e){let t=this.rules.inline.autolink.exec(e);if(t){let e,n;return n="@"===t[2]?"mailto:"+(e=t[1]):e=t[1],{type:"link",raw:t[0],text:e,href:n,tokens:[{type:"text",raw:e,text:e}]}}}url(e){let t;if(t=this.rules.inline.url.exec(e)){let e,n;if("@"===t[2])n="mailto:"+(e=t[0]);else{let r;do r=t[0],t[0]=this.rules.inline._backpedal.exec(t[0])?.[0]??"";while(r!==t[0]);e=t[0],n="www."===t[1]?"http://"+t[0]:t[0]}return{type:"link",raw:t[0],text:e,href:n,tokens:[{type:"text",raw:e,text:e}]}}}inlineText(e){let t=this.rules.inline.text.exec(e);if(t){let e=this.lexer.state.inRawBlock;return{type:"text",raw:t[0],text:t[0],escaped:e}}}},ec=class e{tokens;options;state;tokenizer;inlineQueue;constructor(e){this.tokens=[],this.tokens.links=Object.create(null),this.options=e||i,this.options.tokenizer=this.options.tokenizer||new eu,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};let t={other:l,block:ee.normal,inline:et.normal};this.options.pedantic?(t.block=ee.pedantic,t.inline=et.pedantic):this.options.gfm&&(t.block=ee.gfm,this.options.breaks?t.inline=et.breaks:t.inline=et.gfm),this.tokenizer.rules=t}static get rules(){return{block:ee,inline:et}}static lex(t,n){return new e(n).lex(t)}static lexInline(t,n){return new e(n).inlineTokens(t)}lex(e){e=e.replace(l.carriageReturn,` 72`),this.blockTokens(e,this.tokens);for(let e=0;
72e<this.inlineQueue.length;e++){let t=this.inlineQueue[e];this.inlineTokens(t.src,t.tokens)}return this.inlineQueue=[],this.tokens}blockTokens(e,t=[],n=!1){for(this.options.pedantic&&(e=e.replace(l.tabCharGlobal," ").replace(l.spaceLine,""));e;){let r;if(this.options.extensions?.block?.some(n=>!!(r=n.call({lexer:this},e,t))&&(e=e.substring(r.raw.length),t.push(r),!0)))continue;if(r=this.tokenizer.space(e)){e=e.substring(r.raw.length);let n=t.at(-1);1===r.raw.length&&void 0!==n?n.raw+=` 73`:t.push(r);continue}if(r=this.tokenizer.code(e)){e=e.substring(r.raw.length);let n=t.at(-1);n?.type==="paragraph"||n?.type==="text"?(n.raw+=(n.raw.endsWith(` 74`)?"":` 75`)+r.raw,n.text+=` 76`+r.text,this.inlineQueue.at(-1).src=n.text):t.push(r);continue}if((r=this.tokenizer.fences(e))||(r=this.tokenizer.heading(e))||(r=this.tokenizer.hr(e))||(r=this.tokenizer.blockquote(e))||(r=this.tokenizer.list(e))||(r=this.tokenizer.html(e))){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.def(e)){e=e.substring(r.raw.length);let n=t.at(-1);n?.type==="paragraph"||n?.type==="text"?(n.raw+=(n.raw.endsWith(` 77`)?"":` 78`)+r.raw,n.text+=` 79`+r.raw,this.inlineQueue.at(-1).src=n.text):this.tokens.links[r.tag]||(this.tokens.links[r.tag]={href:r.href,title:r.title},t.push(r));continue}if((r=this.tokenizer.table(e))||(r=this.tokenizer.lheading(e))){e=e.substring(r.raw.length),t.push(r);continue}let i=e;if(this.options.extensions?.startBlock){let t=1/0,n=e.slice(1),r;this.options.extensions.startBlock.forEach(e=>{"number"==typeof(r=e.call({lexer:this},n))&&r>=0&&(t=Math.min(t,r))}),t<1/0&&t>=0&&(i=e.substring(0,t+1))}if(this.state.top&&(r=this.tokenizer.paragraph(i))){let s=t.at(-1);n&&s?.type==="paragraph"?(s.raw+=(s.raw.endsWith(` 80`)?"":` 81`)+r.raw,s.text+=` 82`+r.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=s.text):t.push(r),n=i.length!==e.length,e=e.substring(r.raw.length);continue}if(r=this.tokenizer.text(e)){e=e.substring(r.raw.length);let n=t.at(-1);n?.type==="text"?(n.raw+=(n.raw.endsWith(` 83`)?"":` 84`)+r.raw,n.text+=` 85`+r.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=n.text):t.push(r);continue}if(e){let t="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(t);break}throw Error(t)}}return this.state.top=!0,t}inline(e,t=[]){return this.inlineQueue.push({src:e,tokens:t}),t}inlineTokens(e,t=[]){let n,r=e,i=null;if(this.tokens.links){let e=Object.keys(this.tokens.links);if(e.length>0)for(;null!=(i=this.tokenizer.rules.inline.reflinkSearch.exec(r));)e.includes(i[0].slice(i[0].lastIndexOf("[")+1,-1))&&(r=r.slice(0,i.index)+"["+"a".repeat(i[0].length-2)+"]"+r.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;null!=(i=this.tokenizer.rules.inline.anyPunctuation.exec(r));)r=r.slice(0,i.index)+"++"+r.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);for(;null!=(i=this.tokenizer.rules.inline.blockSkip.exec(r));)n=i[2]?i[2].length:0,r=r.slice(0,i.index+n)+"["+"a".repeat(i[0].length-n-2)+"]"+r.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);r=this.options.hooks?.emStrongMask?.call({lexer:this},r)??r;let s=!1,a="";for(;e;){let n;if(s||(a=""),s=!1,this.options.extensions?.inline?.some(r=>!!(n=r.call({lexer:this},e,t))&&(e=e.substring(n.raw.length),t.push(n),!0)))continue;if((n=this.tokenizer.escape(e))||(n=this.tokenizer.tag(e))||(n=this.tokenizer.link(e))){e=e.substring(n.raw.length),t.push(n);continue}if(n=this.tokenizer.reflink(e,this.tokens.links)){e=e.substring(n.raw.length);let r=t.at(-1);"text"===n.type&&r?.type==="text"?(r.raw+=n.raw,r.text+=n.text):t.push(n);continue}if((n=this.tokenizer.emStrong(e,r,a))||(n=this.tokenizer.codespan(e))||(n=this.tokenizer.br(e))||(n=this.tokenizer.del(e))||(n=this.tokenizer.autolink(e))||!this.state.inLink&&(n=this.tokenizer.url(e))){e=e.substring(n.raw.length),t.push(n);continue}let i=e;if(this.options.extensions?.startInline){let t=1/0,n=e.slice(1),r;this.options.extensions.startInline.forEach(e=>{"number"==typeof(r=e.call({lexer:this},n))&&r>=0&&(t=Math.min(t,r))}),t<1/0&&t>=0&&(i=e.substring(0,t+1))}if(n=this.tokenizer.inlineText(i)){e=e.substring(n.raw.length),"_"!==n.raw.slice(-1)&&(a=n.raw.slice(-1)),s=!0;let r=t.at(-1);r?.type==="text"?(r.raw+=n.raw,r.text+=n.text):t.push(n);continue}if(e){let t="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(t);break}throw Error(t)}}return t}},ed=class{options;parser;constructor(e){this.options=e||i}space(e){return""}code({text:e,lang:t,escaped:n}
85){let r=(t||"").match(l.notSpaceStart)?.[0],i=e.replace(l.endingNewline,"")+` 86`;return r?'<pre><code class="language-'+ei(r)+'">'+(n?i:ei(i,!0))+`</code></pre> 87`:"<pre><code>"+(n?i:ei(i,!0))+`</code></pre> 88`}blockquote({tokens:e}){return`<blockquote> 89${this.parser.parse(e)}</blockquote> 90`}html({text:e}){return e}def(e){return""}heading({tokens:e,depth:t}){return`<h${t}>${this.parser.parseInline(e)}</h${t}> 91`}hr(e){return`<hr> 92`}list(e){let t=e.ordered,n=e.start,r="";for(let t=0;t<e.items.length;t++){let n=e.items[t];r+=this.listitem(n)}let i=t?"ol":"ul";return"<"+i+(t&&1!==n?' start="'+n+'"':"")+`> 93`+r+"</"+i+`> 94`}listitem(e){let t="";if(e.task){let n=this.checkbox({checked:!!e.checked});e.loose?e.tokens[0]?.type==="paragraph"?(e.tokens[0].text=n+" "+e.tokens[0].text,e.tokens[0].tokens&&e.tokens[0].tokens.length>0&&"text"===e.tokens[0].tokens[0].type&&(e.tokens[0].tokens[0].text=n+" "+ei(e.tokens[0].tokens[0].text),e.tokens[0].tokens[0].escaped=!0)):e.tokens.unshift({type:"text",raw:n+" ",text:n+" ",escaped:!0}):t+=n+" "}return t+=this.parser.parse(e.tokens,!!e.loose),`<li>${t}</li> 95`}checkbox({checked:e}){return"<input "+(e?'checked="" ':"")+'disabled="" type="checkbox">'}paragraph({tokens:e}){return`<p>${this.parser.parseInline(e)}</p> 96`}table(e){let t="",n="";for(let t=0;t<e.header.length;t++)n+=this.tablecell(e.header[t]);t+=this.tablerow({text:n});let r="";for(let t=0;t<e.rows.length;t++){let i=e.rows[t];n="";for(let e=0;e<i.length;e++)n+=this.tablecell(i[e]);r+=this.tablerow({text:n})}return r&&(r=`<tbody>${r}</tbody>`),`<table> 97<thead> 98`+t+`</thead> 99`+r+`</table> 100`}tablerow({text:e}){return`<tr> 101${e}</tr> 102`}tablecell(e){let t=this.parser.parseInline(e.tokens),n=e.header?"th":"td";return(e.align?`<${n} align="${e.align}">`:`<${n}>`)+t+`</${n}> 103`}strong({tokens:e}){return`<strong>${this.parser.parseInline(e)}</strong>`}em({tokens:e}){return`<em>${this.parser.parseInline(e)}</em>`}codespan({text:e}){return`<code>${ei(e,!0)}</code>`}br(e){return"<br>"}del({tokens:e}){return`<del>${this.parser.parseInline(e)}</del>`}link({href:e,title:t,tokens:n}){let r=this.parser.parseInline(n),i=es(e);if(null===i)return r;let s='<a href="'+(e=i)+'"';return t&&(s+=' title="'+ei(t)+'"'),s+=">"+r+"</a>"}image({href:e,title:t,text:n,tokens:r}){r&&(n=this.parser.parseInline(r,this.parser.textRenderer));let i=es(e);if(null===i)return ei(n);e=i;let s=`<img src="${e}" alt="${n}"`;return t&&(s+=` title="${ei(t)}"`),s+=">"}text(e){return"tokens"in e&&e.tokens?this.parser.parseInline(e.tokens):"escaped"in e&&e.escaped?e.text:ei(e.text)}},eh=class{strong({text:e}){return e}em({text:e}){return e}codespan({text:e}){return e}del({text:e}){return e}html({text:e}){return e}text({text:e}){return e}link({text:e}){return""+e}image({text:e}){return""+e}br(){return""}},ep=class e{options;renderer;textRenderer;constructor(e){this.options=e||i,this.options.renderer=this.options.renderer||new ed,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new eh}static parse(t,n){return new e(n).parse(t)}static parseInline(t,n){return new e(n).parseInline(t)}parse(e,t=!0){let n="";for(let r=0;r<e.length;r++){let i=e[r];if(this.options.extensions?.renderers?.[i.type]){let e=this.options.extensions.renderers[i.type].call({parser:this},i);if(!1!==e||!["space","hr","heading","code","table","blockquote","list","html","def","paragraph","text"].includes(i.type)){n+=e||"";continue}}switch(i.type){case"space":n+=this.renderer.space(i);continue;case"hr":n+=this.renderer.hr(i);continue;case"heading":n+=this.renderer.heading(i);continue;case"code":n+=this.renderer.code(i);continue;case"table":n+=this.renderer.table(i);continue;case"blockquote":n+=this.renderer.blockquote(i);continue;case"list":n+=this.renderer.list(i);continue;case"html":n+=this.renderer.html(i);continue;case"def":n+=this.renderer.def(i);continue;case"paragraph":n+=this.renderer.paragraph(i);continue;case"text":{let s=i,a=this.renderer.text(s);for(;r+1<e.length&&"text"===e[r+1].type;)s=e[++r],a+=` 104`+this.renderer.text(s);t?n+=this.renderer.paragraph({type:"paragraph",raw:a,text:a,tokens:[{type:"text",raw:a,text:a,escaped:!0}]}):n+=a;continue}default:{let e='Token with "'+i.type+'" type was not found.';if(this.options.silent)return console.error(e),"";throw Error(e)}}}return n}parseInline(e,t=this.renderer){let n="";for(let r=0;r<e.length;r++){let i=e[r];if(this.options.extensions?.renderers?.[i.type]){let e=this.options.extensions.renderers[i.type].call({parser:this},i);if(!1!==e||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(i.type)){n+=e||"";continue}}switch(i.type){case"escape":case"text":n+=t.text(i);break;case"html":n+=t.html(i);break;case"link":n+=t.link(i);break;case"image":n+=t.image(i);break;case"strong":n+=t.strong(i);break;case"em":n+=t.em(i);break;case"codespan":n+=t.codespan(i);break;case"br":n+=t.br(i);break;case"del":n+=t.del(i);break;default:{let e='Token with "'+i.type+'" type was not found.';if(this.options.silent)return console.error(e),"";throw Error(e)}}}return n}},ef=class{options;block;constructor(e){this.options=e||i}static passThroughHooks=new Set(["preprocess","postprocess","processAllTokens","emStrongMask"]);static passThroughHooksRespectAsync=new Set(["preprocess","postprocess","processAllTokens"]);preprocess(e){return e}postprocess(e){return e}processAllTokens(e){return e}emStrongMask(e){return e}provideLexer(){return this.block?ec.lex:ec.lexInline}provideParser(){return this.block?ep.parse:ep.parseInline}},em=new class{defaults=r();options=this.setOptions;parse=this.parseMarkdown(!0);parseInline=this.parseMarkdown(!1);Parser=ep;Renderer=ed;TextRenderer=eh;Lexer=ec;Tokenizer=eu;Hooks=ef;constructor(...e){this.use(...e)}walkTokens(e,t){let n=[];for(let r of e)switch(n=n.concat(t.call(this,r)),r.type){case"table":for(let e of r.header)n=n.concat(this.walkTokens(e.tokens,t));for(let e of r.rows)for(let r of e)n=n.concat(this.walkTokens(r.tokens,t));break;case"list":n=n.concat(this.walkTokens(r.items,t));break;default:{let e=r;this.defaults.extensions?.childTokens?.[e.type]?this.defaults.extensions.childTokens[e.type].forEach(r=>{let i=e[r].flat(1/0);n=n.concat(this.walkTokens(i,t))}):e.tokens&&(n=n.concat(this.walkTokens(e.tokens,t)))}}return n}use(...e){let t=this.defaults.extensions||{renderers:{},childTokens:{}};
104return e.forEach(e=>{let n={...e};if(n.async=this.defaults.async||n.async||!1,e.extensions&&(e.extensions.forEach(e=>{if(!e.name)throw Error("extension name required");if("renderer"in e){let n=t.renderers[e.name];n?t.renderers[e.name]=function(...t){let r=e.renderer.apply(this,t);return!1===r&&(r=n.apply(this,t)),r}:t.renderers[e.name]=e.renderer}if("tokenizer"in e){if(!e.level||"block"!==e.level&&"inline"!==e.level)throw Error("extension level must be 'block' or 'inline'");let n=t[e.level];n?n.unshift(e.tokenizer):t[e.level]=[e.tokenizer],e.start&&("block"===e.level?t.startBlock?t.startBlock.push(e.start):t.startBlock=[e.start]:"inline"===e.level&&(t.startInline?t.startInline.push(e.start):t.startInline=[e.start]))}"childTokens"in e&&e.childTokens&&(t.childTokens[e.name]=e.childTokens)}),n.extensions=t),e.renderer){let t=this.defaults.renderer||new ed(this.defaults);for(let n in e.renderer){if(!(n in t))throw Error(`renderer '${n}' does not exist`);if(["options","parser"].includes(n))continue;let r=e.renderer[n],i=t[n];t[n]=(...e)=>{let n=r.apply(t,e);return!1===n&&(n=i.apply(t,e)),n||""}}n.renderer=t}if(e.tokenizer){let t=this.defaults.tokenizer||new eu(this.defaults);for(let n in e.tokenizer){if(!(n in t))throw Error(`tokenizer '${n}' does not exist`);if(["options","rules","lexer"].includes(n))continue;let r=e.tokenizer[n],i=t[n];t[n]=(...e)=>{let n=r.apply(t,e);return!1===n&&(n=i.apply(t,e)),n}}n.tokenizer=t}if(e.hooks){let t=this.defaults.hooks||new ef;for(let n in e.hooks){if(!(n in t))throw Error(`hook '${n}' does not exist`);if(["options","block"].includes(n))continue;let r=e.hooks[n],i=t[n];ef.passThroughHooks.has(n)?t[n]=e=>{if(this.defaults.async&&ef.passThroughHooksRespectAsync.has(n))return(async()=>{let n=await r.call(t,e);return i.call(t,n)})();let s=r.call(t,e);return i.call(t,s)}:t[n]=(...e)=>{if(this.defaults.async)return(async()=>{let n=await r.apply(t,e);return!1===n&&(n=await i.apply(t,e)),n})();let n=r.apply(t,e);return!1===n&&(n=i.apply(t,e)),n}}n.hooks=t}if(e.walkTokens){let t=this.defaults.walkTokens,r=e.walkTokens;n.walkTokens=function(e){let n=[];return n.push(r.call(this,e)),t&&(n=n.concat(t.call(this,e))),n}}this.defaults={...this.defaults,...n}}),this}setOptions(e){return this.defaults={...this.defaults,...e},this}lexer(e,t){return ec.lex(e,t??this.defaults)}parser(e,t){return ep.parse(e,t??this.defaults)}parseMarkdown(e){return(t,n)=>{let r={...n},i={...this.defaults,...r},s=this.onError(!!i.silent,!!i.async);if(!0===this.defaults.async&&!1===r.async)return s(Error("marked(): The async option was set to true by an extension. Remove async: false from the parse options object to return a Promise."));if(typeof t>"u"||null===t)return s(Error("marked(): input parameter is undefined or null"));if("string"!=typeof t)return s(Error("marked(): input parameter is of type "+Object.prototype.toString.call(t)+", string expected"));if(i.hooks&&(i.hooks.options=i,i.hooks.block=e),i.async)return(async()=>{let n=i.hooks?await i.hooks.preprocess(t):t,r=await (i.hooks?await i.hooks.provideLexer():e?ec.lex:ec.lexInline)(n,i),s=i.hooks?await i.hooks.processAllTokens(r):r;i.walkTokens&&await Promise.all(this.walkTokens(s,i.walkTokens));let a=await (i.hooks?await i.hooks.provideParser():e?ep.parse:ep.parseInline)(s,i);return i.hooks?await i.hooks.postprocess(a):a})().catch(s);try{i.hooks&&(t=i.hooks.preprocess(t));let n=(i.hooks?i.hooks.provideLexer():e?ec.lex:ec.lexInline)(t,i);i.hooks&&(n=i.hooks.processAllTokens(n)),i.walkTokens&&this.walkTokens(n,i.walkTokens);let r=(i.hooks?i.hooks.provideParser():e?ep.parse:ep.parseInline)(n,i);return i.hooks&&(r=i.hooks.postprocess(r)),r}catch(e){return s(e)}}}onError(e,t){return n=>{if(n.message+=` 105Please report this to https://github.com/markedjs/marked.`,e){let e="<p>An error occurred:</p><pre>"+ei(n.message+"",!0)+"</pre>";return t?Promise.resolve(e):e}if(t)return Promise.reject(n);throw n}}};function eg(e,t){return em.parse(e,t)}eg.options=eg.setOptions=function(e){return em.setOptions(e),eg.defaults=em.defaults,i=eg.defaults,eg},eg.getDefaults=r,eg.defaults=i,eg.use=function(...e){return em.use(...e),eg.defaults=em.defaults,i=eg.defaults,eg},eg.walkTokens=function(e,t){return em.walkTokens(e,t)},eg.parseInline=em.parseInline,eg.Parser=ep,eg.parser=ep.parse,eg.Renderer=ed,eg.TextRenderer=eh,eg.Lexer=ec,eg.lexer=ec.lex,eg.Tokenizer=eu,eg.Hooks=ef,eg.parse=eg,eg.options,eg.setOptions,eg.use,eg.walkTokens,eg.parseInline,ep.parse,ec.lex},69551:(e,t,n)=>{n.d(t,{A:()=>r});
105let r=(0,n(45751).A)("copy",[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]])},69576:(e,t,n)=>{n.d(t,{Uu:()=>r});let r=(0,n(54565).G)("div")},69652:(e,t,n)=>{n.d(t,{t:()=>r});let r=(0,n(23073).createContext)(null)},69665:(e,t,n)=>{n.d(t,{C:()=>u,Ff:()=>m,LA:()=>v,Q$:()=>A,Qg:()=>a,Qi:()=>b,W:()=>l,cj:()=>E,fc:()=>p,iZ:()=>o,jb:()=>f,jf:()=>h,kB:()=>T,kJ:()=>_,kM:()=>g,pY:()=>d,s_:()=>y,yI:()=>c});var r=n(59193),i=n(77079);let s={accessibility:i.Pf.optional(),weight:r.ai().describe("The relative weight of this component within a Row or Column. This is similar to the CSS 'flex-grow' property. Note: this may ONLY be set when the component is a direct descendant of a Row or Column.").optional()},a={name:"Text",schema:r.Ik({...s,text:i.Sg.describe("The text content to display. While simple Markdown formatting is supported (i.e. without HTML, images, or links), utilizing dedicated UI components is generally preferred for a richer and more structured presentation."),variant:r.k5(["h1","h2","h3","h4","h5","caption","body"]).default("body").describe("A hint for the base text style.").optional()}).strict()},o={name:"Image",schema:r.Ik({...s,url:i.Sg.describe("The URL of the image to display."),description:i.Sg.describe("The accessibility description of the image.").optional(),fit:r.k5(["contain","cover","fill","none","scaleDown"]).default("fill").describe("Specifies how the image should be resized to fit its container. This corresponds to the CSS 'object-fit' property.").optional(),variant:r.k5(["icon","avatar","smallFeature","mediumFeature","largeFeature","header"]).default("mediumFeature").describe("A hint for the image size and style.").optional()}).strict()},l={name:"Icon",schema:r.Ik({...s,name:r.KC([r.k5(["accountCircle","add","arrowBack","arrowForward","attachFile","calendarToday","call","camera","check","close","delete","download","edit","event","error","fastForward","favorite","favoriteOff","folder","help","home","info","locationOn","lock","lockOpen","mail","menu","moreVert","moreHoriz","notificationsOff","notifications","pause","payment","person","phone","photo","play","print","refresh","rewind","search","send","settings","share","shoppingCart","skipNext","skipPrevious","star","starHalf","starOff","stop","upload","visibility","visibilityOff","volumeDown","volumeMute","volumeOff","volumeUp","warning"]),r.Ik({svgPath:r.Yj().describe("Custom SVG path data")}).strict(),r.Ik({path:r.Yj()}).strict()]).describe("The name of the icon to display.")}).strict()},u={name:"Video",schema:r.Ik({...s,url:i.Sg.describe("The URL of the video to display.")}).strict()},c={name:"AudioPlayer",schema:r.Ik({...s,url:i.Sg.describe("The URL of the audio to be played."),description:i.Sg.describe("A description of the audio, such as a title or summary.").optional()}).strict()},d={name:"Row",schema:r.Ik({...s,children:i.ib.describe("Defines the children. Use an array of strings for a fixed set of children, or a template object to generate children from a data list. Children cannot be defined inline, they must be referred to by ID."),justify:r.k5(["center","end","spaceAround","spaceBetween","spaceEvenly","start","stretch"]).default("start").describe("Defines the arrangement of children along the main axis (horizontally). Use 'spaceBetween' to push items to the edges, or 'start'/'end'/'center' to pack them together.").optional(),align:r.k5(["start","center","end","stretch"]).default("stretch").describe("Defines the alignment of children along the cross axis (vertically). This is similar to the CSS 'align-items' property, but uses camelCase values (e.g., 'start').").optional()}).strict().describe("A layout component that arranges its children horizontally. To create a grid layout, nest Columns within this Row.")},h={name:"Column",schema:r.Ik({...s,children:i.ib.describe("Defines the children. Use an array of strings for a fixed set of children, or a template object to generate children from a data list. Children cannot be defined inline, they must be referred to by ID."),justify:r.k5(["start","center","end","spaceBetween","spaceAround","spaceEvenly","stretch"]).default("start").describe("Defines the arrangement of children along the main axis (vertically). Use 'spaceBetween' to push items to the edges (e.g. header at top, footer at bottom), or 'start'/'end'/'center' to pack them together.").optional(),align:r.k5(["center","end","start","stretch"]).default("stretch").describe("Defines the alignment of children along the cross axis (horizontally). This is similar to the CSS 'align-items' property.").optional()}).strict().describe("A layout component that arranges its children vertically. To create a grid layout, nest Rows within this Column.")}
105,p={name:"List",schema:r.Ik({...s,children:i.ib.describe("Defines the children. Use an array of strings for a fixed set of children, or a template object to generate children from a data list."),direction:r.k5(["vertical","horizontal"]).default("vertical").describe("The direction in which the list items are laid out.").optional(),align:r.k5(["start","center","end","stretch"]).default("stretch").describe("Defines the alignment of children along the cross axis.").optional(),listStyle:r.k5(["ordered","unordered","none"]).describe("The style of the list (ordered, unordered, or none).").optional()}).strict()},f={name:"Card",schema:r.Ik({...s,child:i._P.describe("The ID of the single child component to be rendered inside the card. To display multiple elements, you MUST wrap them in a layout component (like Column or Row) and pass that container's ID here. Do NOT pass multiple IDs or a non-existent ID. Do NOT define the child component inline.")}).strict()},m={name:"Tabs",schema:r.Ik({...s,tabs:r.YO(r.Ik({title:i.Sg.describe("The tab title."),child:i._P.describe("The ID of the child component. Do NOT define the component inline.")}).strict()).min(1).describe("An array of objects, where each object defines a tab with a title and a child component.")}).strict()},g={name:"Modal",schema:r.Ik({...s,trigger:i._P.describe("The ID of the component that opens the modal when interacted with (e.g., a button). Do NOT define the component inline."),content:i._P.describe("The ID of the component to be displayed inside the modal. Do NOT define the component inline.")}).strict()},y={name:"Divider",schema:r.Ik({...s,axis:r.k5(["horizontal","vertical"]).default("horizontal").describe("The orientation of the divider.").optional()}).strict()},v={name:"Button",schema:r.Ik({...s,child:i._P.describe("The ID of the child component. Use a 'Text' component for a labeled button. Only use an 'Icon' if the requirements explicitly ask for an icon-only button. Do NOT define the child component inline."),variant:r.k5(["default","primary","borderless"]).default("default").describe("A hint for the button style. If omitted, a default button style is used. 'primary' indicates this is the main call-to-action button. 'borderless' means the button has no visual border or background, making its child content appear like a clickable link.").optional(),action:i.OS,checks:i.U9.shape.checks}).strict()},b={name:"TextField",schema:r.Ik({...s,label:i.Sg.describe("The text label for the input field."),value:i.Sg.describe("The value of the text field.").optional(),variant:r.k5(["longText","number","shortText","obscured"]).default("shortText").describe("The type of input field to display.").optional(),validationRegexp:r.Yj().describe("A regular expression used for client-side validation of the input.").optional(),checks:i.U9.shape.checks}).strict()},E={name:"CheckBox",schema:r.Ik({...s,label:i.Sg.describe("The text to display next to the checkbox."),value:i.vL.describe("The current state of the checkbox (true for checked, false for unchecked)."),checks:i.U9.shape.checks}).strict()},T={name:"ChoicePicker",schema:r.Ik({...s,label:i.Sg.describe("The label for the group of options.").optional(),variant:r.k5(["multipleSelection","mutuallyExclusive"]).default("mutuallyExclusive").describe("A hint for how the choice picker should be displayed and behave.").optional(),options:r.YO(r.Ik({label:i.Sg.describe("The text to display for this option."),value:r.Yj().describe("The stable value associated with this option.")}).strict()).describe("The list of available options to choose from."),value:i.O.describe("The list of currently selected values. This should be bound to a string array in the data model."),displayStyle:r.k5(["checkbox","chips"]).default("checkbox").describe("The display style of the component.").optional(),filterable:r.zM().default(!1).describe("If true, displays a search input to filter the options.").optional(),checks:i.U9.shape.checks}).strict().describe("A component that allows selecting one or more options from a list.")}
105,_={name:"Slider",schema:r.Ik({...s,label:i.Sg.describe("The label for the slider.").optional(),min:r.ai().default(0).describe("The minimum value of the slider.").optional(),max:r.ai().describe("The maximum value of the slider."),step:r.ai().describe("The granularity or step size of the slider.").optional(),value:i.cl.describe("The current value of the slider."),checks:i.U9.shape.checks}).strict()},A={name:"DateTimeInput",schema:r.Ik({...s,value:i.Sg.describe("The selected date and/or time value in ISO 8601 format. If not yet set, initialize with an empty string."),enableDate:r.zM().default(!1).describe("If true, allows the user to select a date.").optional(),enableTime:r.zM().default(!1).describe("If true, allows the user to select a time.").optional(),min:r.KC([i.Sg,r.Yj().date(),r.Yj().time(),r.Yj().datetime()]).describe("The minimum allowed date/time in ISO 8601 format.").optional(),max:r.KC([i.Sg,r.Yj().date(),r.Yj().time(),r.Yj().datetime()]).describe("The maximum allowed date/time in ISO 8601 format.").optional(),label:i.Sg.describe("The text label for the input field.").optional(),checks:i.U9.shape.checks}).strict()}},69684:(e,t,n)=>{n.d(t,{JM:()=>l,Kd:()=>o,S1:()=>h,Wk:()=>u,ZC:()=>c,a$:()=>a,sR:()=>d});var r=n(13452),i=n(61807);let s=(e,t)=>{e.name="$ZodError",Object.defineProperty(e,"_zod",{value:e._zod,enumerable:!1}),Object.defineProperty(e,"issues",{value:t,enumerable:!1}),Object.defineProperty(e,"message",{get:()=>JSON.stringify(t,i.jsonStringifyReplacer,2),enumerable:!0}),Object.defineProperty(e,"toString",{value:()=>e.message,enumerable:!1})},a=(0,r.xI)("$ZodError",s),o=(0,r.xI)("$ZodError",s,{Parent:Error});function l(e,t=e=>e.message){let n={},r=[];for(let i of e.issues)i.path.length>0?(n[i.path[0]]=n[i.path[0]]||[],n[i.path[0]].push(t(i))):r.push(t(i));return{formErrors:r,fieldErrors:n}}function u(e,t){let n=t||function(e){return e.message},r={_errors:[]},i=e=>{for(let t of e.issues)if("invalid_union"===t.code&&t.errors.length)t.errors.map(e=>i({issues:e}));else if("invalid_key"===t.code)i({issues:t.issues});else if("invalid_element"===t.code)i({issues:t.issues});else if(0===t.path.length)r._errors.push(n(t));else{let e=r,i=0;for(;i<t.path.length;){let r=t.path[i];i===t.path.length-1?(e[r]=e[r]||{_errors:[]},e[r]._errors.push(n(t))):e[r]=e[r]||{_errors:[]},e=e[r],i++}}};return i(e),r}function c(e,t){let n=t||function(e){return e.message},r={errors:[]},i=(e,t=[])=>{var s,a;for(let o of e.issues)if("invalid_union"===o.code&&o.errors.length)o.errors.map(e=>i({issues:e},o.path));else if("invalid_key"===o.code)i({issues:o.issues},o.path);else if("invalid_element"===o.code)i({issues:o.issues},o.path);else{let e=[...t,...o.path];if(0===e.length){r.errors.push(n(o));continue}let i=r,l=0;for(;l<e.length;){let t=e[l],r=l===e.length-1;"string"==typeof t?(i.properties??(i.properties={}),(s=i.properties)[t]??(s[t]={errors:[]}),i=i.properties[t]):(i.items??(i.items=[]),(a=i.items)[t]??(a[t]={errors:[]}),i=i.items[t]),r&&i.errors.push(n(o)),l++}}};return i(e),r}function d(e){let t=[];for(let n of e)"number"==typeof n?t.push(`[${n}]`):"symbol"==typeof n?t.push(`[${JSON.stringify(String(n))}]`):/[^\w$]/.test(n)?t.push(`[${JSON.stringify(n)}]`):(t.length&&t.push("."),t.push(n));return t.join("")}function h(e){let t=[];for(let n of[...e.issues].sort((e,t)=>e.path.length-t.path.length))t.push(`â ${n.message}`),n.path?.length&&t.push(` â at ${d(n.path)}`);return t.join("\n")}},70716:(e,t,n)=>{n.d(t,{WF:()=>w,AH:()=>u,qy:()=>k.qy,s6:()=>k.s6,XX:()=>k.XX,iz:()=>l});let r=globalThis,i=r.ShadowRoot&&(void 0===r.ShadyCSS||r.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,s=Symbol(),a=new WeakMap;class o{constructor(e,t,n){if(this._$cssResult$=!0,n!==s)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=e,this.t=t}get styleSheet(){let e=this.o,t=this.t;if(i&&void 0===e){let n=void 0!==t&&1===t.length;n&&(e=a.get(t)),void 0===e&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),n&&a.set(t,e))}return e}toString(){return this.cssText}}let l=e=>new o("string"==typeof e?e:e+"",void 0,s),u=(e,...t)=>new o(1===e.length?e[0]:t.reduce((t,n,r)=>t+(e=>{if(!0===e._$cssResult$)return e.cssText;if("number"==typeof e)return e;throw Error("Value passed to 'css' function must be a 'css' function result: "+e+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(n)+e[r+1],e[0]),e,s),c=i?e=>e:e=>e instanceof CSSStyleSheet?(e=>{let t="";for(let n of e.cssRules)t+=n.cssText;return l(t)})(e):e,{is:d,defineProperty:h,getOwnPropertyDescriptor:p,getOwnPropertyNames:f,getOwnPropertySymbols:m,getPrototypeOf:g}=Object,y=globalThis,v=y.trustedTypes,b=v?v.emptyScript:"",E=y.reactiveElementPolyfillSupport,T={toAttribute(e,t){switch(t){case Boolean:e=e?b:null;break;case Object:case Array:e=null==e?e:JSON.stringify(e)}return e},fromAttribute(e,t){let n=e;switch(t){case Boolean:n=null!==e;break;case Number:n=null===e?null:Number(e);break;case Object:case Array:try{n=JSON.parse(e)}catch(e){n=null}}return n}},_=(e,t)=>
105!d(e,t),A={attribute:!0,type:String,converter:T,reflect:!1,useDefault:!1,hasChanged:_};Symbol.metadata??=Symbol("metadata"),y.litPropertyMetadata??=new WeakMap;class x extends HTMLElement{static addInitializer(e){this._$Ei(),(this.l??=[]).push(e)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(e,t=A){if(t.state&&(t.attribute=!1),this._$Ei(),this.prototype.hasOwnProperty(e)&&((t=Object.create(t)).wrapped=!0),this.elementProperties.set(e,t),!t.noAccessor){let n=Symbol(),r=this.getPropertyDescriptor(e,n,t);void 0!==r&&h(this.prototype,e,r)}}static getPropertyDescriptor(e,t,n){let{get:r,set:i}=p(this.prototype,e)??{get(){return this[t]},set(e){this[t]=e}};return{get:r,set(t){let s=r?.call(this);i?.call(this,t),this.requestUpdate(e,s,n)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){return this.elementProperties.get(e)??A}static _$Ei(){if(this.hasOwnProperty("elementProperties"))return;let e=g(this);e.finalize(),void 0!==e.l&&(this.l=[...e.l]),this.elementProperties=new Map(e.elementProperties)}static finalize(){if(this.hasOwnProperty("finalized"))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty("properties")){let e=this.properties;for(let t of[...f(e),...m(e)])this.createProperty(t,e[t])}let e=this[Symbol.metadata];if(null!==e){let t=litPropertyMetadata.get(e);if(void 0!==t)for(let[e,n]of t)this.elementProperties.set(e,n)}for(let[e,t]of(this._$Eh=new Map,this.elementProperties)){let n=this._$Eu(e,t);void 0!==n&&this._$Eh.set(n,e)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(e){let t=[];if(Array.isArray(e))for(let n of new Set(e.flat(1/0).reverse()))t.unshift(c(n));else void 0!==e&&t.push(c(e));return t}static _$Eu(e,t){let n=t.attribute;return!1===n?void 0:"string"==typeof n?n:"string"==typeof e?e.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){this._$ES=new Promise(e=>this.enableUpdating=e),this._$AL=new Map,this._$E_(),this.requestUpdate(),this.constructor.l?.forEach(e=>e(this))}addController(e){(this._$EO??=new Set).add(e),void 0!==this.renderRoot&&this.isConnected&&e.hostConnected?.()}removeController(e){this._$EO?.delete(e)}_$E_(){let e=new Map;for(let t of this.constructor.elementProperties.keys())this.hasOwnProperty(t)&&(e.set(t,this[t]),delete this[t]);e.size>0&&(this._$Ep=e)}createRenderRoot(){let e=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return((e,t)=>{if(i)e.adoptedStyleSheets=t.map(e=>e instanceof CSSStyleSheet?e:e.styleSheet);else for(let n of t){let t=document.createElement("style"),i=r.litNonce;void 0!==i&&t.setAttribute("nonce",i),t.textContent=n.cssText,e.appendChild(t)}})(e,this.constructor.elementStyles),e}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$EO?.forEach(e=>e.hostConnected?.())}enableUpdating(e){}disconnectedCallback(){this._$EO?.forEach(e=>e.hostDisconnected?.())}attributeChangedCallback(e,t,n){this._$AK(e,n)}_$ET(e,t){let n=this.constructor.elementProperties.get(e),r=this.constructor._$Eu(e,n);if(void 0!==r&&!0===n.reflect){let i=(void 0!==n.converter?.toAttribute?n.converter:T).toAttribute(t,n.type);this._$Em=e,null==i?this.removeAttribute(r):this.setAttribute(r,i),this._$Em=null}}_$AK(e,t){let n=this.constructor,r=n._$Eh.get(e);if(void 0!==r&&this._$Em!==r){let e=n.getPropertyOptions(r),i="function"==typeof e.converter?{fromAttribute:e.converter}:void 0!==e.converter?.fromAttribute?e.converter:T;this._$Em=r;let s=i.fromAttribute(t,e.type);this[r]=s??this._$Ej?.get(r)??s,this._$Em=null}}requestUpdate(e,t,n,r=!1,i){if(void 0!==e){let s=this.constructor;if(!1===r&&(i=this[e]),!(((n??=s.getPropertyOptions(e)).hasChanged??_)(i,t)||n.useDefault&&n.reflect&&i===this._$Ej?.get(e)&&!this.hasAttribute(s._$Eu(e,n))))return;this.C(e,t,n)}!1===this.isUpdatePending&&(this._$ES=this._$EP())}C(e,t,{useDefault:n,reflect:r,wrapped:i},s){n&&!(this._$Ej??=new Map).has(e)&&(this._$Ej.set(e,s??t??this[e]),!0!==i||void 0!==s)||(this._$AL.has(e)||(this.hasUpdated||n||(t=void 0),this._$AL.set(e,t)),!0===r&&this._$Em!==e&&(this._$Eq??=new Set).add(e))}async _$EP(){this.isUpdatePending=!0;try{await this._$ES}catch(e){Promise.reject(e)}let e=this.scheduleUpdate();return null!=e&&await e,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(let[e,t]of this._$Ep)this[e]=t;this._$Ep=void 0}let e=this.constructor.elementProperties;if(e.size>0)for(let[t,n]of e){let{wrapped:e}=n,r=this[t];!0!==e||this._$AL.has(t)||void 0===r||this.C(t,void 0,n,r)}}let e=!1,t=this._$AL;try{(e=this.shouldUpdate(t))?(this.willUpdate(t),this._$EO?.forEach(e
105=>e.hostUpdate?.()),this.update(t)):this._$EM()}catch(t){throw e=!1,this._$EM(),t}e&&this._$AE(t)}willUpdate(e){}_$AE(e){this._$EO?.forEach(e=>e.hostUpdated?.()),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(e)),this.updated(e)}_$EM(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(e){return!0}update(e){this._$Eq&&=this._$Eq.forEach(e=>this._$ET(e,this[e])),this._$EM()}updated(e){}firstUpdated(e){}}x.elementStyles=[],x.shadowRootOptions={mode:"open"},x.elementProperties=new Map,x.finalized=new Map,E?.({ReactiveElement:x}),(y.reactiveElementVersions??=[]).push("2.1.2");var k=n(46492);let S=globalThis;class w extends x{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){let e=super.createRenderRoot();return this.renderOptions.renderBefore??=e.firstChild,e}update(e){let t=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(e),this._$Do=(0,k.XX)(t,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return k.c0}}w._$litElement$=!0,w.finalized=!0,S.litElementHydrateSupport?.({LitElement:w});let I=S.litElementPolyfillSupport;I?.({LitElement:w}),(S.litElementVersions??=[]).push("4.2.2")},70754:(e,t)=>{function n(e){var t;let{config:n,src:r,width:i,quality:s}=e,a=s||(null==(t=n.qualities)?void 0:t.reduce((e,t)=>Math.abs(t-75)<Math.abs(e-75)?t:e))||75;return n.path+"?url="+encodeURIComponent(r)+"&w="+i+"&q="+a+(r.startsWith("/_next/static/media/")&&1?"&dpl=dpl_3SiszV5ygPKezcPywYRgGjDvLWyd":"")}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return r}}),n.__next_img_default=!0;let r=n},71341:(e,t,n)=>{n.d(t,{A:()=>r});let r=(0,n(45751).A)("square",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}]])},71766:(e,t,n)=>{n.d(t,{of:()=>s});var r=n(33097),i=n(22338);function s(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=(0,r.lI)(e);return(0,i.H)(e,n)}},72167:(e,t,n)=>{n.d(t,{eO:()=>o});let r=/\r\n|[\n\r]/g;function i(e,t){let n=0,i=1;for(let s of e.body.matchAll(r)){if("number"==typeof s.index||function(e,t){if(!e)throw Error("Unexpected invariant triggered.")}(!1),s.index>=t)break;n=s.index+s[0].length,i+=1}return{line:i,column:t+1-n}}function s(e,t){let n=e.locationOffset.column-1,r="".padStart(n)+e.body,i=t.line-1,s=e.locationOffset.line-1,o=t.line+s,l=1===t.line?n:0,u=t.column+l,c=`${e.name}:${o}:${u} 106`,d=r.split(/\r\n|[\n\r]/g),h=d[i];if(h.length>120){let e=Math.floor(u/80),t=[];for(let e=0;e<h.length;e+=80)t.push(h.slice(e,e+80));return c+a([[`${o} |`,t[0]],...t.slice(1,e+1).map(e=>["|",e]),["|","^".padStart(u%80)],["|",t[e+1]]])}return c+a([[`${o-1} |`,d[i-1]],[`${o} |`,h],["|","^".padStart(u)],[`${o+1} |`,d[i+1]]])}function a(e){let t=e.filter(([e,t])=>void 0!==t),n=Math.max(...t.map(([e])=>e.length));return t.map(([e,t])=>e.padStart(n)+(t?" "+t:"")).join("\n")}class o extends Error{constructor(e,...t){var n,r,s;let{nodes:a,source:u,positions:c,path:d,originalError:h,extensions:p}=function(e){let t=e[0];return null==t||"kind"in t||"length"in t?{nodes:t,source:e[1],positions:e[2],path:e[3],originalError:e[4],extensions:e[5]}:t}(t);super(e),this.name="GraphQLError",this.path=null!=d?d:void 0,this.originalError=null!=h?h:void 0,this.nodes=l(Array.isArray(a)?a:a?[a]:void 0);let f=l(null==(n=this.nodes)?void 0:n.map(e=>e.loc).filter(e=>null!=e));this.source=null!=u?u:null==f||null==(r=f[0])?void 0:r.source,this.positions=null!=c?c:null==f?void 0:f.map(e=>e.start),this.locations=c&&u?c.map(e=>i(u,e)):null==f?void 0:f.map(e=>i(e.source,e.start));let m=!function(e){return"object"==typeof e&&null!==e}(null==h?void 0:h.extensions)||null==h?void 0:h.extensions;this.extensions=null!=(s=null!=p?p:m)?s:Object.create(null),Object.defineProperties(this,{message:{writable:!0,enumerable:!0},name:{enumerable:!1},nodes:{enumerable:!1},source:{enumerable:!1},positions:{enumerable:!1},originalError:{enumerable:!1}}),null!=h&&h.stack?Object.defineProperty(this,"stack",{value:h.stack,writable:!0,configurable:!0}):Error.captureStackTrace?Error.captureStackTrace(this,o):Object.defineProperty(this,"stack",{value:Error().stack,writable:!0,configurable:!0})}get[Symbol.toStringTag](){return"GraphQLError"}toString(){let e=this.message;if(this.nodes)for(let n of this.nodes){var t;n.loc&&(e+="\n\n"+s((t=n.loc).source,i(t.source,t.start)))}else if(this.source&&this.locations)for(let t of this.locations)e+="\n\n"+s(this.source,t);return e}toJSON(){let e={message:this.message};return null!=this.locations&&(e.locations=this.locations),null!=this.path&&(e.path=this.path),null!=this.extensions&&Object.keys(this.extensions).length>0&&(e.extensions=this.extensions),e}}function l(e){return void 0===e||0===e.length?void 0:e}},72361:(e,t,n)=>{n.d(t,{s:()=>r});var r="function"==typeof Symbol&&Symbol.observable||"@@observable"}
106,72362:(e,t,n)=>{n.d(t,{a:()=>lh,b:()=>lf,c:()=>uA,g:()=>uv,i:()=>uT});var r,i,s,a,o,l,u,c,d,h,p,f,m,g,y,v,b={};n.r(b),n.d(b,{attentionMarkers:()=>ow,contentInitial:()=>oT,disable:()=>oI,document:()=>oE,flow:()=>oA,flowInitial:()=>o_,insideSpan:()=>oS,string:()=>ox,text:()=>ok});var E=n(23073);let T=function(e){var t,n;if(null==e)return A;if("function"==typeof e)return _(e);if("object"==typeof e){return Array.isArray(e)?function(e){let t=[],n=-1;for(;++n<e.length;)t[n]=T(e[n]);return _(function(...e){let n=-1;for(;++n<t.length;)if(t[n].apply(this,e))return!0;return!1})}(e):(t=e,_(function(e){let n;for(n in t)if(e[n]!==t[n])return!1;return!0}))}if("string"==typeof e){return n=e,_(function(e){return e&&e.type===n})}throw Error("Expected function, string, or object as test")};function _(e){return function(t,n,r){return!!(function(e){return null!==e&&"object"==typeof e&&"type"in e}(t)&&e.call(this,t,"number"==typeof n?n:void 0,r||void 0))}}function A(){return!0}let x=[],k="skip";function S(e,t,n,r){let i;"function"==typeof t&&"function"!=typeof n?(r=n,n=t):i=t;let s=T(i),a=r?-1:1;(function e(i,o,l){let u=i&&"object"==typeof i?i:{};if("string"==typeof u.type){let e="string"==typeof u.tagName?u.tagName:"string"==typeof u.name?u.name:void 0;Object.defineProperty(c,"name",{value:"node ("+i.type+(e?"<"+e+">":"")+")"})}return c;function c(){var u;let c,d,h,p=x;if((!t||s(i,o,l[l.length-1]||void 0))&&!1===(p=Array.isArray(u=n(i,l))?u:"number"==typeof u?[!0,u]:null==u?x:[u])[0])return p;if("children"in i&&i.children&&i.children&&p[0]!==k)for(d=(r?i.children.length:-1)+a,h=l.concat(i);d>-1&&d<i.children.length;){if(!1===(c=e(i.children[d],d,h)())[0])return c;d="number"==typeof c[1]?c[1]:d+a}return p}})(e,void 0,[])()}function w(e,t,n,r){let i,s,a;"function"==typeof t&&"function"!=typeof n?(s=void 0,a=t,i=n):(s=t,a=n,i=r),S(e,s,function(e,t){let n=t[t.length-1],r=n?n.children.indexOf(e):void 0;return a(e,r,n)},i)}function I(e,t){if("string"!=typeof e)return null;try{return new URL(e)}catch{if(t)try{return new URL(e,t)}catch{return null}if(e.startsWith("/")||e.startsWith("./")||e.startsWith("../"))try{return new URL(e,"http://example.com")}catch{}return null}}let C=new Set(["https:","http:","irc:","ircs:","mailto:","xmpp:","blob:"]),N=new Set(["javascript:","data:","file:","vbscript:"]);function R(e,t,n,r=!1,i=!1,s=[]){if(!e)return null;if("string"==typeof e&&e.startsWith("#")&&!i)try{if(new URL(e,"http://example.com").hash===e)return e}catch{}if("string"==typeof e&&e.startsWith("data:"))return i&&r&&e.startsWith("data:image/")?e:null;if("string"==typeof e&&e.startsWith("blob:")){try{let t=new URL(e);if("blob:"===t.protocol&&e.length>5){let t=e.substring(5);if(t&&t.length>0&&"invalid"!==t)return e}}catch{}return null}let a=I(e,n);if(!a||N.has(a.protocol)||!(C.has(a.protocol)||s.includes(a.protocol)||s.includes("*")))return null;if("mailto:"===a.protocol||!a.protocol.match(/^https?:$/))return a.href;let o="string"==typeof e&&(e.startsWith("/")||e.startsWith("./")||e.startsWith("../"));return a&&t.some(e=>{let t=I(e,n);return!!t&&t.origin===a.origin&&a.href.startsWith(t.href)})?o?a.pathname+a.search+a.hash:a.href:t.includes("*")?"https:"!==a.protocol&&"http:"!==a.protocol?null:o?a.pathname+a.search+a.hash:a.href:null}let O=Symbol("node-seen");var P=n(85197),D=n(65294);let M=/[#.]/g;var L=n(92978),j=n(2804),z=n(79217);function F(e,t,n){let r=n?function(e){let t=new Map;for(let n of e)t.set(n.toLowerCase(),n);return t}(n):void 0;return function(n,i,...s){let a;if(null==n)a={type:"root",children:[]},s.unshift(i);else{let o=(a=function(e,t){let n,r,i=e||"",s={},a=0;for(;a<i.length;){M.lastIndex=a;let e=M.exec(i),t=i.slice(a,e?e.index:i.length);t&&(n?"#"===n?s.id=t:Array.isArray(s.className)?s.className.push(t):s.className=[t]:r=t,a+=t.length),e&&(n=e[0],a++)}return{type:"element",tagName:r||t||"div",properties:s,children:[]}}(n,t)).tagName.toLowerCase(),l=r?r.get(o):void 0;if(a.tagName=l||o,function(e){if(null===e||"object"!=typeof e||Array.isArray(e))return!0;if("string"!=typeof e.type)return!1;for(let t of Object.keys(e)){let n=e[t];if(n&&"object"==typeof n){if(!Array.isArray(n))return!0;for(let e of n)if("number"!=typeof e&&"string"!=typeof e)return!0}}return!!("children"in e&&Array.isArray(e.children))}(i))s.unshift(i);else for(let[t,n]of Object.entries(i))!function(e,t,n,r){let i,s=(0,L.I)(e,n);if(null!=r){if("number"==typeof r){if(Number.isNaN(r))return;i=r}else i="boolean"==typeof r?r:"string"==typeof r?s.spaceSeparated?(0,z.q)(r):s.commaSeparated?(0,D.q)(r):s.commaOrSpaceSeparated?(0,z.q)((0,D.q)(r).join(" ")):B(s,s.property,r):Array.isArray(r)?[...r]:"style"===s.property?function(e){let t=[];for(let[n,r]of Object.entries(e))t.push([n,r].join(": "));return t.join("; ")}(r):String(r);if(Array.isArray(i)){let e=[];for(let t of i)e.push(B(s,s.property,t));i=e}"className"===s.property&&Array.isArray(t.className)&&(i=t.className.concat(i)),t[s.property]=i}}(e,a.properties,t,n)}for(let e of s)!function e(t,n){if(null==n);else if("number"==typeof n||"string"==typeof n)t.push({type:"text",value:String(n)});else if(Array.isArray(n))for(let r of n)e(t,r);else if("object"==typeof n&&"type"in n)"root"===n.type?e(t,n.children):t.push(n);else throw Error("Expected node, nodes, or string, got `"+n+"`")}(a.children,e);return"element"===a.type&&"template"===a.tagName&&(a.content={type:"root",children:a.children},a.children=[]),a}}function B(e,t,n){if("string"==typeof n){if(e.number&&n&&!Number.isNaN(Number(n)))return Number(n);if((e.boolean||e.overloadedBoolean)&&(""===n||(0,j.S)(n)===(0,j.S)(t)))return!0}return n}let $=F(P.qy,"div"),U=F(P.JW,"g",["altGlyph","altGlyphDef","altGlyphItem","animateColor","animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","glyphRef","linearGradient","radialGradient","solidColor","textArea","textPath"]),H={html:"http://www.w3.org/1999/xhtml",mathml:"http://www.w3.org/1998/Math/MathML",svg:"http://www.w3.org/2000/svg",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function G(e,t){let n=function(e,t){switch(e.nodeType){case 1:return function(e,t){let n=e.namespaceURI,r=n===H.svg?U:$,i=n===H.html?e.tagName.toLowerCase():e.tagName,s=n===H.html&&"template"===i?e.content:e,a=e.getAttributeNames(),o={},l=-1;for(;++l<a.length;)o[a[l]]=e.getAttribute(a[l])||"";return r(i,o,Y(s,t))}(e,t);case 3:return{type:"text",value:e.nodeValue||""};case 8:return{type:"comment",value:e.nodeValue||""};case 9:case 11:return function(e,t){return{type:"root",children:Y(e,t)}}(e,t);case 10:return{type:"doctype"};default:return}}(e,t);return n&&t.afterTransform&&t.afterTransform(e,n),n}function Y(e,t){let n=e.childNodes,r=[],i=-1;for(;++i<n.length;){let e=G(n[i],t);void 0!==e&&r.push(e)}return r}let Z=new DOMParser,V=function(e,t,n){let r=T(n);if(!e||!e.type||!e.children)throw Error("Expected parent node");if("number"==typeof t){if(t<0||t===1/0)throw Error("Expected positive finite number as index")}else if((t=e.children.indexOf(t))<0)throw Error("Expected child node or index");for(;++t<e.children.length;)if(r(e.children[t],t,e))return e.children[t]},W=function(e){if(null==e)return K;if("string"==typeof e){var t;return t=e,q(function(e){return e.tagName===t})}if("object"==typeof e){var n=e;let t=[],r=-1;for(;++r<n.length;)t[r]=W(n[r]);return q(function(...e){let n=-1;for(;++n<t.length;)if(t[n].apply(this,e))return!0;return!1})}if("function"==typeof e)return q(e);throw Error("Expected function, string, or array as `test`")};function q(e){return function(t,n,r){var i;return!!(null!==(i=t)&&"object"==typeof i&&"type"in i&&"tagName"in i&&e.call(this,t,"number"==typeof n?n:void 0,r||void 0))}}function K(e){return!!(e&&"object"==typeof e&&"type"in e&&"element"===e.type&&"tagName"in e&&"string"==typeof e.tagName)}let X=/\n/g,Q=/[\t ]+/g,J=W("br"),ee=W(function(e){return"td"===e.tagName||"th"===e.tagName}),et=W("p"),en=W("tr"),er=W(["datalist","head","noembed","noframes","noscript","rp","script","style","template","title",function(e){return!!(e.properties||{}).hidden},function(e){return"dialog"===e.tagName&&!(e.properties||{}).open}]),ei=W(["address","article","aside","blockquote","body","caption","center","dd","dialog","dir","dl","dt","div","figure","figcaption","footer","form,","h1","h2","h3","h4","h5","h6","header","hgroup","hr","html","legend","li","listing","main","menu","nav","ol","p","plaintext","pre","section","ul","xmp"]);function es(e,t){let n,r=String(e.value),i=[],s=[],a=0;for(;a<=r.length;){X.lastIndex=a;let e=X.exec(r),n=e&&"index"in e?e.index:r.length;i.push(function(e,t,n){let r,i=[],s=0;for(;s<e.length;){Q.lastIndex=s;let n=Q.exec(e);r=n?n.index:e.length,s||r||!n||t||i.push(""),s!==r&&i.push(e.slice(s,r)),s=n?r+n[0].length:r}return s===r||n||i.push(""),i.join(" ")}(r.slice(a,n).replace(/[\u061C\u200E\u200F\u202A-\u202E\u2066-\u2069]/g,""),0!==a||t.breakBefore,n!==r.length||t.breakAfter)),a=n+1}let o=-1;for(;++o<i.length;
106)8203===i[o].charCodeAt(i[o].length-1)||o<i.length-1&&8203===i[o+1].charCodeAt(0)?(s.push(i[o]),n=void 0):i[o]?("number"==typeof n&&s.push(n),s.push(i[o]),n=0):(0===o||o===i.length-1)&&s.push(0);return s}function ea(e,t){if("element"===e.type){let n=e.properties||{};switch(e.tagName){case"listing":case"plaintext":case"xmp":return"pre";case"nobr":return"nowrap";case"pre":return n.wrap?"pre-wrap":"pre";case"td":case"th":return n.noWrap?"nowrap":t.whitespace;case"textarea":return"pre-wrap"}}return t.whitespace}var eo=n(59338);let el={},eu=[];function ec(e){let t=e||el;return function(e,n){S(e,"element",function(e,r){let i,s=Array.isArray(e.properties.className)?e.properties.className:eu,a=s.includes("language-math"),o=s.includes("math-display"),l=s.includes("math-inline"),u=o;if(!a&&!o&&!l)return;let c=r[r.length-1],d=e;if("code"===e.tagName&&a&&c&&"element"===c.type&&"pre"===c.tagName&&(d=c,c=r[r.length-2],u=!0),!c)return;let h=function(e,t){let n,r="children"in e?e.children:[],i=ei(e),s=ea(e,{whitespace:(t||{}).whitespace||"normal",breakBefore:!1,breakAfter:!1}),a=[];("text"===e.type||"comment"===e.type)&&a.push(...es(e,{whitespace:s,breakBefore:!0,breakAfter:!0}));let o=-1;for(;++o<r.length;)a.push(...function e(t,n,r){return"element"===t.type?function(t,n,r){let i,s,a=ea(t,r),o=t.children||[],l=-1,u=[];if(er(t))return u;for(J(t)||en(t)&&V(n,t,en)?s="\n":et(t)?(i=2,s=2):ei(t)&&(i=1,s=1);++l<o.length;)u=u.concat(e(o[l],t,{whitespace:a,breakBefore:l?void 0:i,breakAfter:l<o.length-1?J(o[l+1]):s}));return ee(t)&&V(n,t,ee)&&u.push(" "),i&&u.unshift(i),s&&u.push(s),u}(t,n,r):"text"===t.type?"normal"===r.whitespace?es(t,r):[String(t.value)]:[]}(r[o],e,{whitespace:s,breakBefore:o?void 0:i,breakAfter:o<r.length-1?J(r[o+1]):i}));let l=[];for(o=-1;++o<a.length;){let e=a[o];"number"==typeof e?void 0!==n&&e>n&&(n=e):e&&(void 0!==n&&n>-1&&l.push("\n".repeat(n)||" "),n=-1,l.push(e))}return l.join("")}(d,{whitespace:"pre"});try{i=eo.default.renderToString(h,{...t,displayMode:u,throwOnError:!0})}catch(a){let s=a.name.toLowerCase();n.message("Could not render math with KaTeX",{ancestors:[...r,e],cause:a,place:e.position,ruleId:s,source:"rehype-katex"});try{i=eo.default.renderToString(h,{...t,displayMode:u,strict:"ignore",throwOnError:!1})}catch{i=[{type:"element",tagName:"span",properties:{className:["katex-error"],style:"color:"+(t.errorColor||"#cc0000"),title:String(a)},children:[{type:"text",value:h}]}]}}if("string"==typeof i){var p,f;i=(p=i,f={fragment:!0},G(f?.fragment?function(e){let t=document.createElement("template");return t.innerHTML=e,t.content}(p):Z.parseFromString(p,"text/html"),{})||{type:"root",children:[]}).children}let m=c.children.indexOf(d);return c.children.splice(m,1,...i),k})}}let ed="object"==typeof self?self:globalThis,eh=e=>((e,t)=>{let n=(t,n)=>(e.set(n,t),t),r=i=>{if(e.has(i))return e.get(i);let[s,a]=t[i];switch(s){case 0:case -1:return n(a,i);case 1:{let e=n([],i);for(let t of a)e.push(r(t));return e}case 2:{let e=n({},i);for(let[t,n]of a)e[r(t)]=r(n);return e}case 3:return n(new Date(a),i);case 4:{let{source:e,flags:t}=a;return n(new RegExp(e,t),i)}case 5:{let e=n(new Map,i);for(let[t,n]of a)e.set(r(t),r(n));return e}case 6:{let e=n(new Set,i);for(let t of a)e.add(r(t));return e}case 7:{let{name:e,message:t}=a;return n(new ed[e](t),i)}case 8:return n(BigInt(a),i);case"BigInt":return n(Object(BigInt(a)),i);case"ArrayBuffer":return n(new Uint8Array(a).buffer,a);case"DataView":{let{buffer:e}=new Uint8Array(a);return n(new DataView(e),a)}}return n(new ed[s](a),i)};return r})(new Map,e)(0),{toString:ep}={},{keys:ef}=Object,em=e=>{let t=typeof e;if("object"!==t||!e)return[0,t];let n=ep.call(e).slice(8,-1);switch(n){case"Array":return[1,""];case"Object":return[2,""];case"Date":return[3,""];case"RegExp":return[4,""];case"Map":return[5,""];case"Set":return[6,""];case"DataView":return[1,n]}return n.includes("Array")?[1,n]:n.includes("Error")?[7,n]:[2,n]},eg=([e,t])=>0===e&&("function"===t||"symbol"===t),ey=(e,{json:t,lossy:n}={})=>{let r=[];return((e,t,n,r)=>{let i=(e,t)=>{let i=r.push(e)-1;return n.set(t,i),i},s=r=>{if(n.has(r))return n.get(r);let[a,o]=em(r);switch(a){case 0:{let t=r;switch(o){case"bigint":a=8,t=r.toString();break;case"function":case"symbol":if(e)throw TypeError("unable to serialize "+o);t=null;break;case"undefined":return i([-1],r)}return i([a,t],r)}case 1:{if(o){let e=r;return"DataView"===o?e=new Uint8Array(r.buffer):"ArrayBuffer"===o&&(e=new Uint8Array(r)),i([o,[...e]],r)}let e=[],t=i([a,e],r);for(let t of r)e.push(s(t));return t}case 2:{if(o)switch(o){case"BigInt":return i([o,r.toString()],r);case"Boolean":case"Number":case"String":return i([o,r.valueOf()],r)}if(t&&"toJSON"in r)return s(r.toJSON());let n=[],l=i([a,n],r);for(let t of ef(r))(e||!eg(em(r[t])))&&n.push([s(t),s(r[t])]);return l}case 3:return i([a,r.toISOString()],r);case 4:{let{source:e,flags:t}=r;return i([a,{source:e,flags:t}],r)}case 5:{let t=[],n=i([a,t],r);
106for(let[n,i]of r)(e||!(eg(em(n))||eg(em(i))))&&t.push([s(n),s(i)]);return n}case 6:{let t=[],n=i([a,t],r);for(let n of r)(e||!eg(em(n)))&&t.push(s(n));return n}}let{message:l}=r;return i([a,{name:o,message:l}],r)};return s})(!(t||n),!!t,new Map,r)(e),r},ev="function"==typeof structuredClone?(e,t)=>t&&("json"in t||"lossy"in t)?eh(ey(e,t)):structuredClone(e):(e,t)=>eh(ey(e,t));function eb(e,t){let n=e.indexOf("\r",t),r=e.indexOf("\n",t);return -1===r?n:-1===n||n+1===r?r:n<r?n:r}let eE={}.hasOwnProperty,eT=Object.prototype;function e_(e,t){let n;switch(t.nodeName){case"#comment":return n={type:"comment",value:t.data},ex(e,t,n),n;case"#document":case"#document-fragment":{let r="mode"in t&&("quirks"===t.mode||"limited-quirks"===t.mode);if(n={type:"root",children:eA(e,t.childNodes),data:{quirksMode:r}},e.file&&e.location){let t=String(e.file),r=function(e){let t=String(e),n=[];return{toOffset:function(e){if(e&&"number"==typeof e.line&&"number"==typeof e.column&&!Number.isNaN(e.line)&&!Number.isNaN(e.column)){for(;n.length<e.line;){let e=n[n.length-1],r=eb(t,e),i=-1===r?t.length+1:r+1;if(e===i)break;n.push(i)}let r=(e.line>1?n[e.line-2]:0)+e.column-1;if(r<n[e.line-1])return r}},toPoint:function(e){if("number"==typeof e&&e>-1&&e<=t.length){let r=0;for(;;){let i=n[r];if(void 0===i){let e=eb(t,n[r-1]);i=-1===e?t.length+1:e+1,n[r]=i}if(i>e)return{line:r+1,column:e-(r>0?n[r-1]:0)+1,offset:e};r++}}}}}(t),i=r.toPoint(0),s=r.toPoint(t.length);n.position={start:i,end:s}}return n}case"#documentType":return ex(e,t,n={type:"doctype"}),n;case"#text":return n={type:"text",value:t.value},ex(e,t,n),n;default:return function(e,t){let n=e.schema;e.schema=t.namespaceURI===H.svg?P.JW:P.qy;let r=-1,i={};for(;++r<t.attrs.length;){let e=t.attrs[r],n=(e.prefix?e.prefix+":":"")+e.name;eE.call(eT,n)||(i[n]=e.value)}let s=("svg"===e.schema.space?U:$)(t.tagName,i,eA(e,t.childNodes));if(ex(e,t,s),"template"===s.tagName){let n=t.sourceCodeLocation,r=n&&n.startTag&&ek(n.startTag),i=n&&n.endTag&&ek(n.endTag),a=e_(e,t.content);r&&i&&e.file&&(a.position={start:r.end,end:i.start}),s.content=a}return e.schema=n,s}(e,t)}}function eA(e,t){let n=-1,r=[];for(;++n<t.length;){let i=e_(e,t[n]);r.push(i)}return r}function ex(e,t,n){if("sourceCodeLocation"in t&&t.sourceCodeLocation&&e.file){let r=function(e,t,n){let r=ek(n);if("element"===t.type){let i=t.children[t.children.length-1];if(r&&!n.endTag&&i&&i.position&&i.position.end&&(r.end=Object.assign({},i.position.end)),e.verbose){let r,i={};if(n.attrs)for(r in n.attrs)eE.call(n.attrs,r)&&(i[(0,L.I)(e.schema,r).property]=ek(n.attrs[r]));n.startTag;let s=ek(n.startTag),a=n.endTag?ek(n.endTag):void 0,o={opening:s};a&&(o.closing=a),o.properties=i,t.data={position:o}}}return r}(e,n,t.sourceCodeLocation);r&&(e.location=!0,n.position=r)}}function ek(e){let t=eS({line:e.startLine,column:e.startCol,offset:e.startOffset}),n=eS({line:e.endLine,column:e.endCol,offset:e.endOffset});return t||n?{start:t,end:n}:void 0}function eS(e){return e.line&&e.column?e:void 0}var ew=n(45727);let eI={}.hasOwnProperty,eC=(0,ew.A)("type",{handlers:{root:function(e,t){let n={nodeName:"#document",mode:(e.data||{}).quirksMode?"quirks":"no-quirks",childNodes:[]};return n.childNodes=eN(e.children,n,t),eR(e,n),n},element:function(e,t){let n,r=t;"element"===e.type&&"svg"===e.tagName.toLowerCase()&&"html"===t.space&&(r=P.JW);let i=[];if(e.properties){for(n in e.properties)if("children"!==n&&eI.call(e.properties,n)){let t=function(e,t,n){let r=(0,L.I)(e,t);if(!1===n||null==n||"number"==typeof n&&Number.isNaN(n)||!n&&r.boolean)return;Array.isArray(n)&&(n=r.commaSeparated?(0,D.A)(n):(0,z.A)(n));let i={name:r.attribute,value:!0===n?"":String(n)};if(r.space&&"html"!==r.space&&"svg"!==r.space){let e=i.name.indexOf(":");e<0?i.prefix="":(i.name=i.name.slice(e+1),i.prefix=r.attribute.slice(0,e)),i.namespace=H[r.space]}return i}(r,n,e.properties[n]);t&&i.push(t)}}let s=r.space,a={nodeName:e.tagName,tagName:e.tagName,attrs:i,namespaceURI:H[s],childNodes:[],parentNode:null};return a.childNodes=eN(e.children,a,r),eR(e,a),"template"===e.tagName&&e.content&&(a.content=function(e,t){let n={nodeName:"#document-fragment",childNodes:[]};return n.childNodes=eN(e.children,n,t),eR(e,n),n}(e.content,r)),a},text:function(e){let t={nodeName:"#text",value:e.value,parentNode:null};return eR(e,t),t},comment:function(e){let t={nodeName:"#comment",data:e.value,parentNode:null};return eR(e,t),t},doctype:function(e){let t={nodeName:"#documentType",name:"html",publicId:"",systemId:"",parentNode:null};return eR(e,t),t}}});
106function eN(e,t,n){let r=-1,i=[];if(e)for(;++r<e.length;){let s=eC(e[r],n);s.parentNode=t,i.push(s)}return i}function eR(e,t){let n=e.position;n&&n.start&&n.end&&(n.start.offset,n.end.offset,t.sourceCodeLocation={startLine:n.start.line,startCol:n.start.column,startOffset:n.start.offset,endLine:n.end.line,endCol:n.end.column,endOffset:n.end.offset})}var eO=n(83632);let eP=new Set([65534,65535,131070,131071,196606,196607,262142,262143,327678,327679,393214,393215,458750,458751,524286,524287,589822,589823,655358,655359,720894,720895,786430,786431,851966,851967,917502,917503,983038,983039,1048574,1048575,1114110,1114111]);!function(e){e[e.EOF=-1]="EOF",e[e.NULL=0]="NULL",e[e.TABULATION=9]="TABULATION",e[e.CARRIAGE_RETURN=13]="CARRIAGE_RETURN",e[e.LINE_FEED=10]="LINE_FEED",e[e.FORM_FEED=12]="FORM_FEED",e[e.SPACE=32]="SPACE",e[e.EXCLAMATION_MARK=33]="EXCLAMATION_MARK",e[e.QUOTATION_MARK=34]="QUOTATION_MARK",e[e.AMPERSAND=38]="AMPERSAND",e[e.APOSTROPHE=39]="APOSTROPHE",e[e.HYPHEN_MINUS=45]="HYPHEN_MINUS",e[e.SOLIDUS=47]="SOLIDUS",e[e.DIGIT_0=48]="DIGIT_0",e[e.DIGIT_9=57]="DIGIT_9",e[e.SEMICOLON=59]="SEMICOLON",e[e.LESS_THAN_SIGN=60]="LESS_THAN_SIGN",e[e.EQUALS_SIGN=61]="EQUALS_SIGN",e[e.GREATER_THAN_SIGN=62]="GREATER_THAN_SIGN",e[e.QUESTION_MARK=63]="QUESTION_MARK",e[e.LATIN_CAPITAL_A=65]="LATIN_CAPITAL_A",e[e.LATIN_CAPITAL_Z=90]="LATIN_CAPITAL_Z",e[e.RIGHT_SQUARE_BRACKET=93]="RIGHT_SQUARE_BRACKET",e[e.GRAVE_ACCENT=96]="GRAVE_ACCENT",e[e.LATIN_SMALL_A=97]="LATIN_SMALL_A",e[e.LATIN_SMALL_Z=122]="LATIN_SMALL_Z"}(r||(r={}));let eD={DASH_DASH:"--",CDATA_START:"[CDATA[",DOCTYPE:"doctype",SCRIPT:"script",PUBLIC:"public",SYSTEM:"system"};function eM(e){return e>=55296&&e<=57343}function eL(e){return 32!==e&&10!==e&&13!==e&&9!==e&&12!==e&&e>=1&&e<=31||e>=127&&e<=159}function ej(e){return e>=64976&&e<=65007||eP.has(e)}!function(e){e.controlCharacterInInputStream="control-character-in-input-stream",e.noncharacterInInputStream="noncharacter-in-input-stream",e.surrogateInInputStream="surrogate-in-input-stream",e.nonVoidHtmlElementStartTagWithTrailingSolidus="non-void-html-element-start-tag-with-trailing-solidus",e.endTagWithAttributes="end-tag-with-attributes",e.endTagWithTrailingSolidus="end-tag-with-trailing-solidus",e.unexpectedSolidusInTag="unexpected-solidus-in-tag",e.unexpectedNullCharacter="unexpected-null-character",e.unexpectedQuestionMarkInsteadOfTagName="unexpected-question-mark-instead-of-tag-name",e.invalidFirstCharacterOfTagName="invalid-first-character-of-tag-name",e.unexpectedEqualsSignBeforeAttributeName="unexpected-equals-sign-before-attribute-name",e.missingEndTagName="missing-end-tag-name",e.unexpectedCharacterInAttributeName="unexpected-character-in-attribute-name",e.unknownNamedCharacterReference="unknown-named-character-reference",e.missingSemicolonAfterCharacterReference="missing-semicolon-after-character-reference",e.unexpectedCharacterAfterDoctypeSystemIdentifier="unexpected-character-after-doctype-system-identifier",e.unexpectedCharacterInUnquotedAttributeValue="unexpected-character-in-unquoted-attribute-value",e.eofBeforeTagName="eof-before-tag-name",e.eofInTag="eof-in-tag",e.missingAttributeValue="missing-attribute-value",e.missingWhitespaceBetweenAttributes="missing-whitespace-between-attributes",e.missingWhitespaceAfterDoctypePublicKeyword="missing-whitespace-after-doctype-public-keyword",e.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers="missing-whitespace-between-doctype-public-and-system-identifiers",e.missingWhitespaceAfterDoctypeSystemKeyword="missing-whitespace-after-doctype-system-keyword",e.missingQuoteBeforeDoctypePublicIdentifier="missing-quote-before-doctype-public-identifier",e.missingQuoteBeforeDoctypeSystemIdentifier="missing-quote-before-doctype-system-identifier",e.missingDoctypePublicIdentifier="missing-doctype-public-identifier",e.missingDoctypeSystemIdentifier="missing-doctype-system-identifier",e.abruptDoctypePublicIdentifier="abrupt-doctype-public-identifier",e.abruptDoctypeSystemIdentifier="abrupt-doctype-system-identifier",e.cdataInHtmlContent="cdata-in-html-content",e.incorrectlyOpenedComment="incorrectly-opened-comment",e.eofInScriptHtmlCommentLikeText="eof-in-script-html-comment-like-text",e.eofInDoctype="eof-in-doctype",e.nestedComment="nested-comment",e.abruptClosingOfEmptyComment="abrupt-closing-of-empty-comment",e.eofInComment="eof-in-comment",e.incorrectlyClosedComment="incorrectly-closed-comment",e.eofInCdata="eof-in-cdata",e.absenceOfDigitsInNumericCharacterReference="absence-of-digits-in-numeric-character-reference",e.nullCharacterReference="null-character-reference",e.surrogateCharacterReference="surrogate-character-reference",e.characterReferenceOutsideUnicodeRange="character-reference-outside-unicode-range",e.controlCharacterReference="control-character-reference",e.noncharacterCharacterReference="noncharacter-character-reference",e.missingWhitespaceBeforeDoctypeName="missing-whitespace-before-doctype-name",e.missingDoctypeName="missing-doctype-name",e.invali
vendor: 10,162 bytes, line 106
106dCharacterSequenceAfterDoctypeName="invalid-character-sequence-after-doctype-name",e.duplicateAttribute="duplicate-attribute",e.nonConformingDoctype="non-conforming-doctype",e.missingDoctype="missing-doctype",e.misplacedDoctype="misplaced-doctype",e.endTagWithoutMatchingOpenElement="end-tag-without-matching-open-element",e.closingOfElementWithOpenChildElements="closing-of-element-with-open-child-elements",e.disallowedContentInNoscriptInHead="disallowed-content-in-noscript-in-head",e.openElementsLeftAfterEof="open-elements-left-after-eof",e.abandonedHeadElementChild="abandoned-head-element-child",e.misplacedStartTagForHeadElement="misplaced-start-tag-for-head-element",e.nestedNoscriptInHead="nested-noscript-in-head",e.eofInElementThatCanContainOnlyText="eof-in-element-that-can-contain-only-text"}(i||(i={}));class ez{constructor(e){this.handler=e,this.html="",this.pos=-1,this.lastGapPos=-2,this.gapStack=[],this.skipNextNewLine=!1,this.lastChunkWritten=!1,this.endOfChunkHit=!1,this.bufferWaterline=65536,this.isEol=!1,this.lineStartPos=0,this.droppedBufferSize=0,this.line=1,this.lastErrOffset=-1}get col(){return this.pos-this.lineStartPos+Number(this.lastGapPos!==this.pos)}get offset(){return this.droppedBufferSize+this.pos}getError(e,t){let{line:n,col:r,offset:i}=this,s=r+t,a=i+t;return{code:e,startLine:n,endLine:n,startCol:s,endCol:s,startOffset:a,endOffset:a}}_err(e){this.handler.onParseError&&this.lastErrOffset!==this.offset&&(this.lastErrOffset=this.offset,this.handler.onParseError(this.getError(e,0)))}_addGap(){this.gapStack.push(this.lastGapPos),this.lastGapPos=this.pos}_processSurrogate(e){if(this.pos!==this.html.length-1){let t=this.html.charCodeAt(this.pos+1);if(t>=56320&&t<=57343)return this.pos++,this._addGap(),(e-55296)*1024+9216+t}else if(!this.lastChunkWritten)return this.endOfChunkHit=!0,r.EOF;return this._err(i.surrogateInInputStream),e}willDropParsedChunk(){return this.pos>this.bufferWaterline}dropParsedChunk(){this.willDropParsedChunk()&&(this.html=this.html.substring(this.pos),this.lineStartPos-=this.pos,this.droppedBufferSize+=this.pos,this.pos=0,this.lastGapPos=-2,this.gapStack.length=0)}write(e,t){this.html.length>0?this.html+=e:this.html=e,this.endOfChunkHit=!1,this.lastChunkWritten=t}insertHtmlAtCurrentPos(e){this.html=this.html.substring(0,this.pos+1)+e+this.html.substring(this.pos+1),this.endOfChunkHit=!1}startsWith(e,t){if(this.pos+e.length>this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,!1;if(t)return this.html.startsWith(e,this.pos);for(let t=0;t<e.length;t++)if((32|this.html.charCodeAt(this.pos+t))!==e.charCodeAt(t))return!1;return!0}peek(e){let t=this.pos+e;if(t>=this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,r.EOF;let n=this.html.charCodeAt(t);return n===r.CARRIAGE_RETURN?r.LINE_FEED:n}advance(){if(this.pos++,this.isEol&&(this.isEol=!1,this.line++,this.lineStartPos=this.pos),this.pos>=this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,r.EOF;let e=this.html.charCodeAt(this.pos);return e===r.CARRIAGE_RETURN?(this.isEol=!0,this.skipNextNewLine=!0,r.LINE_FEED):e===r.LINE_FEED&&(this.isEol=!0,this.skipNextNewLine)?(this.line--,this.skipNextNewLine=!1,this._addGap(),this.advance()):(this.skipNextNewLine=!1,eM(e)&&(e=this._processSurrogate(e)),null===this.handler.onParseError||e>31&&e<127||e===r.LINE_FEED||e===r.CARRIAGE_RETURN||e>159&&e<64976||this._checkForProblematicCharacters(e),e)}_checkForProblematicCharacters(e){eL(e)?this._err(i.controlCharacterInInputStream):ej(e)&&this._err(i.noncharacterInInputStream)}retreat(e){for(this.pos-=e;this.pos<this.lastGapPos;)this.lastGapPos=this.gapStack.pop(),this.pos--;this.isEol=!1}}function eF(e,t){for(let n=e.attrs.length-1;n>=0;n--)if(e.attrs[n].name===t)return e.attrs[n].value;return null}!function(e){e[e.CHARACTER=0]="CHARACTER",e[e.NULL_CHARACTER=1]="NULL_CHARACTER",e[e.WHITESPACE_CHARACTER=2]="WHITESPACE_CHARACTER",e[e.START_TAG=3]="START_TAG",e[e.END_TAG=4]="END_TAG",e[e.COMMENT=5]="COMMENT",e[e.DOCTYPE=6]="DOCTYPE",e[e.EOF=7]="EOF",e[e.HIBERNATION=8]="HIBERNATION"}(s||(s={}));let eB=new Uint16Array('áµ<\xd5ıÊÒÕ»×ÙµÛÞ¢ßà à©àªà¶¡à¹à¼à¼¦áá¨á¡ááááá¥\0\0\0\0\0\0á«áá¦á°á·á½¾â â°âââ»ââ ¤â¤â´â¹â¿ããºã¹ã¬ã£¾ã¨¨ã©±ã« 㬮à EMabcfglmnoprstu\\bfms\x7f\x84\x8b\x90\x95\x98\xa6\xb3\xb9\xc8\xcfligè»\xc6äPè»&ä¦cuteè»\xc1äreve;äÄiyx}rcè»\xc2ä;är;ì\ud835\udd04raveè»\xc0äpha;äacr;äd;æ©Ägp\x9d\xa1on;äf;ì\ud835\udd38plyFunction;æ¡ingè»\xc5ä
Äcs\xbe\xc3r;ì\ud835\udc9cign;æildeè»\xc3ämlè»\xc4äÐaceforsu\xe5\xfb\xfeÄÄĢħĪÄcr\xea\xf2kslash;æÅ¶\xf6\xf8;æ«§ed;æy;äÆcrtÄ
ÄÄause;æµnoullis;æ¬a;är;ì\ud835\udd05pf;ì\ud835\udd39eve;äc\xf2Ämpeq;æÜHOacdefhilorsuÅÅÅÆÆÆ¢ÆµÆ·ÆºÇÈɳɸɾcy;ä§PYè»\xa9䩯cpyÅŢźute;äÄ;iŧŨætalDifferentialD;æ
leys;æÈaeioÆÆÆÆron;ädilè»\xc7ärc;änint;æ°ot;äÄdnƧÆilla;ä¸terDot;ä·\xf2Å¿i;ä§rcleÈDMPTÇÇÇÇot;æinus;ælus;æimes;æoÄcsǢǸkwiseContourIntegral;æ²eCurlyÄDQÈÈoubleQuote;æuote;æÈlnpuÈȨÉÉonÄ;eȥȦæ·;æ©´ÆgitȯȶȺruent;æ¡nt;æ¯ourIntegral;æ®ÄfrÉÉ;æoduct;ænterClockwiseContourIntegral;æ³oss;樯cr;ì\ud835\udc9epÄ;CÊÊ
æap;æÖDJSZacefiosÊ Ê¬Ê°Ê´Ê¸ËËˡ˦̳ÒÄ;oŹʥtrahd;æ¤cy;äcy;ä
cy;äÆgrsÊ¿ËËger;æ¡r;æ¡hv;櫤ÄayËËron;ä;älÄ;tËËæa;är;ì\ud835\udd07Äaf˫̧Äcm˰̢riticalÈADGTÌÌÌÌcute;ä´oÅ´ÌÌ;äbleAcute;ärave;ä ilde;äond;æferentialD;æ
Ѱ̽\0\0\0ÍÍ\0Ð
f;ì\ud835\udd3bÆ;DEÍÍÍä¨ot;æqual;æbleÌCDLRUVͣͲÎÏϢϸontourIntegra\xecȹoɴ͹\0\0Í»\xbbÍnArrow;æÄeoÎΤftÆARTÎÎΡrrow;æightArrow;æe\xe5ËngÄLRΫÏeftÄARγιrrow;æ¸ightArrow;æºightArrow;æ¹ightÄATÏÏrrow;æee;æ¨pÉÏ©\0\0ϯrrow;æownArrow;æerticalBar;æ¥nÌABLRTaÐЪаÑѿͼrrowÆ;BUÐÐТæar;æ¤pArrow;æµreve;äeftËк\0Ñ\0ÑightVector;æ¥eeVector;æ¥ectorÄ;BÑÑæ½ar;æ¥ightÇѧ\0ѱeeVector;æ¥ectorÄ;BѺѻæar;æ¥eeÄ;AÒÒæ¤rrow;æ§ÄctÒÒr;ì\ud835\udc9frok;äà NTacdfglmopqstuxÒ½ÓÓÓÓÓ¢Ó§Ó®ÓµÔ¡Ô¯Ô¶ÕÕÕ Õ¥G;ä
Hè»\xd0äcuteè»\xc9äÆaiyÓÓÓron;ärcè»\xcaä;äot;är;ì\ud835\udd08raveè»\xc8äement;æÄapÓºÓ¾cr;ätyÉÔ\0\0ÔmallSquare;æ»erySmallSquare;æ«ÄgpÔ¦Ôªon;äf;ì\ud835\udd3csilon;äuÄaiÔ¼ÕlÄ;TÕÕæ©µilde;ælibrium;æÄciÕÕr;æ°m;橳a;ämlè»\xcbäÄipÕªÕ¯sts;æonentialE;æ
ÊcfiosÖ
ÖÖÖ²×y;ä¤r;ì\ud835\udd09lledÉÖ\0\0Ö£mallSquare;æ¼erySmallSquare;æªÍ°Öº\0Ö¿\0\0×f;ì\ud835\udd3dAll;æriertrf;æ±c\xf2רJTabcdfgorst×¨×¬×¯×ºØØØØØØ£Ù¬Ù²cy;äè»>ä¾mmaÄ;d׷׸ä;äreve;äÆeiyØØØdil;ä¢rc;ä;äot;ä r;ì\ud835\udd0a;æpf;ì\ud835\udd3eeaterÌEFGLSTصÙÙÙÙÙ¦qualÄ;Lؾؿæ¥ess;æullEqual;æ§reater;檢ess;æ·lantEqual;橾ilde;æ³cr;ì\ud835\udca2;æ«ÐAacfiosuÚ
ÚÚÚÚÚªÚ¾ÛRDcy;äªÄctÚÚek;ä;äirc;ä¤r;ælbertSpace;æÇ°Ú¯\0Ú²f;æizontalLine;æÄctÛÛ
\xf2Ú©rok;ä¦mpÅÛÛownHum\xf0įqual;æÜEJOacdfgmnostuÛºÛ¾ÜÜÜÜÜܡܨÝݸÞÞÞcy;älig;ä²cy;äcuteè»\xcdäÄiyÜÜrcè»\xceä;äot;ä°r;æraveè»\xccäÆ;apÜ Ü¯Ü¿ÄcgÜ´Ü·r;äªinaryI;æ
lie\xf3ÏÇ´Ý\0Ý¢Ä;eÝÝæ¬ÄgrÝÝral;æ«section;æisibleÄCTݬݲomma;æ£imes;æ¢ÆgptÝ¿ÞÞon;ä®f;ì\ud835\udd40a;äcr;æilde;ä¨Ç«Þ\0Þcy;älè»\xcfäÊcfosuÞ¬Þ·Þ¼ßßÄiyÞ±Þµrc;ä´;är;ì\ud835\udd0dpf;ì\ud835\udd41Ç£ß\0ßr;ì\ud835\udca5rcy;äkcy;äÎHJacfosߤߨ߽߬߱à à cy;ä¥cy;äppa;äÄeyß¶ß»dil;ä¶;är;ì\ud835\udd0epf;ì\ud835\udd42cr;ì\ud835\udca6ÖJTaceflmostà ¥à ©à ¬à¡à¡£à¦³à¦¸à§à§à¨·à©cy;äè»<ä¼Êcmnprà ·à ¼à¡à¡à¡ute;ä¹bda;äg;æªlacetrf;ær;æÆaeyà¡à¡à¡¡ron;ä½dil;ä»;äÄfsࡨ॰tÔACDFRTUVarࡾࢩࢱࣦ࣠ࣼयà¥Î४Änrà¢à¢gleBracket;æ¨rowÆ;BRà¢à¢à¢æar;æ¤ightArrow;æeiling;æoǵࢷ\0à£bleBracket;æ¦nÇà£\0à£eeVector;楡ectorÄ;Bà£à£æar;æ¥loor;æightÄAV࣯ࣵrrow;æector;æ¥Äerà¤à¤eÆ;AVà¤à¤à¤æ£rrow;æ¤ector;æ¥iangleÆ;BEतथऩæ²ar;æ§qual;æ´pÆDTVषà¥à¥ownVector;æ¥eeVector;æ¥ ectorÄ;Bà¥à¥æ¿ar;æ¥ectorÄ;B॥०æ¼ar;æ¥ight\xe1ÎsÌEFGLSTॾà¦à¦à¦à¦¢à¦qualGreater;æullEqual;æ¦reater;æ¶ess;檡lantEqual;橽ilde;æ²r;ì\ud835\udd0fÄ;eঽাæftarrow;æidot;ä¿Ænpwà§à¨à¨gÈLRlrà§à§·à¨à¨eftÄAR০৬rrow;æµightArrow;æ·ightArrow;æ¶eftÄarγà¨ight\xe1οight\xe1Ïf;ì\ud835\udd43erÄLRਢਬeftArrow;æightArrow;æÆchtਾà©à©\xf2à¡;æ°rok;ä
;æªÐacefiosuà©à©à© ੷੼àª
àªàªp;æ¤
y;äÄdl੥੯iumSpace;ælintrf;æ³r;ì\ud835\udd10nusPlus;æpf;ì\ud835\udd44c\xf2à©¶;äÒJacefostuણધàªà«à¬à¬à¶à¶à¶cy;äcute;ä
Æaey઴હાron;ä
dil;ä
;äÆgswà«à«°à¬ativeÆMTVà«à«à«¨ediumSpace;æhiÄcn૦à«\xebà«eryThi\xeeà«tedÄGL૸à¬reaterGreate\xf2Ù³essLes\xf3à©Line;är;ì\ud835\udd11ÈBnptଢନଷ଺reak;æ BreakingSpace;ä f;æÚ;CDEGHLNPRSTVàààªà¼à®¡à¯«à°à±à²à²¦à³àµ¡à¶
櫬Äouàà¤ngruent;æ¢pCap;æoubleVerticalBar;æ¦Ælqxà®à®à®ement;æualÄ;Tà®à®æ ilde;ìâ̸ists;æreaterÎ;EFGLSTஶஷ஽à¯à¯à¯à¯¥æ¯qual;æ±ullEqual;ìâ§Ì¸reater;ìâ«Ì¸ess;æ¹lantEqual;ì⩾̸ilde;æµumpÅ௲௽ownHump;ìâ̸qual;ìâ̸eÄfsà°à°§tTriangleÆ;BEà°à°à°¡æªar;ìâ§Ì¸qual;æ¬sÌ;EGLSTవశ఼à±à±à±æ®qual;æ°reater;æ¸ess;ìâªÌ¸lantEqual;ì⩽̸ilde;æ´estedÄGL౨౹reaterGreater;ì⪢̸essLess;ì⪡̸recedesÆ;ESà²à²à²æqual;ì⪯̸lantEqual;æ ÄeiಫಹverseElement;æghtTriangleÆ;BEà³à³à³æ«ar;ìâ§Ì¸qual;æÄquà³à´uareSuÄbp೨೹setÄ;Eà³°à³³ìâ̸qual;æ¢ersetÄ;Eà´à´ìâ̸qual;æ£Æbcpà´à´¤àµsetÄ;Eà´à´ìââqual;æceedsÈ;ESTà´²à´³à´»àµæqual;ì⪰̸lantEqual;æ¡ilde;ìâ¿Ì¸ersetÄ;Eàµàµìââqual;æildeÈ;EFT൮൯൵ൿæqual;æullEqual;æilde;æerticalBar;æ¤cr;ì\ud835\udca9ildeè»\xd1ä;äÜEacdfgmoprstuvà¶½à·à·à·à·à· à·§à·¼à¸à¸ ยา฿à¹lig;ä
cuteè»\xd3äÄiyà·à·rcè»\xd4ä;äblac;ä
r;ì\ud835\udd12raveè»\xd2äÆaei෮ෲ෶cr;ä
ga;ä©cron;äpf;ì\ud835\udd46enCurlyÄDQà¸à¸oubleQuote;æuote;æ;æ©Äclวฬr;ì\ud835\udcaaashè»\xd8äiŬื฼deè»\xd5äes;樷mlè»\xd6äerÄBPà¹à¹ Äarà¹à¹r;æ¾acÄekà¹à¹;æet;æ´arenthesis;
106æÒacfhilors๿àºàºàºàºàºàºàº°à»¼rtialD;æy;är;ì\ud835\udd13i;ä¦;ä usMinus;ä±Äipຢàºncareplan\xe5Úf;æÈ;eio຺ູ໠໤檻cedesÈ;ESTà»à»à»à»æºqual;檯lantEqual;æ¼ilde;æ¾me;æ³Ädp໩໮uct;æortionÄ;aȥ໹l;æÄcià¼à¼r;ì\ud835\udcab;ä¨ÈUfosà¼à¼à¼à¼OTè»"ä¢r;ì\ud835\udd14pf;æcr;ì\ud835\udcacØBEacefhiorsu༾à½à½à½ ཱིྦྷྪà¾áá©á´á¾arr;æ¤Gè»\xae䮯cnrà½à½à½ute;ä
g;æ«rÄ;tà½à½æ l;æ¤Æaeyཧཬཱron;ä
dil;ä
;ä Ä;vླྀཹæerseÄEUà¾à¾Älqà¾à¾ement;æuilibrium;æpEquilibrium;楯r\xbbཹo;ä¡ghtÐACDFTUVaà¿à¿«à¿³á¢á¨ááÏÄnrà¿à¿gleBracket;æ©rowÆ;BLà¿à¿à¿¡æar;æ¥eftArrow;æeiling;æoǵ࿹\0á
bleBracket;æ§nÇá\0áeeVector;æ¥ectorÄ;Bááæar;æ¥loor;æÄerááeÆ;AVáµá¶á¼æ¢rrow;æ¦ector;æ¥iangleÆ;BEáááæ³ar;æ§qual;æµpÆDTVá£á®á¸ownVector;æ¥eeVector;æ¥ectorÄ;Bááæ¾ar;æ¥ectorÄ;Bááæar;æ¥Äpuááf;ændImplies;楰ightarrow;æÄchá¹á¼r;æ;æ±leDelayed;æ§´ÚHOacfhimoqstuá¤á±á·á½ááá
á
á
¡á
§áµá»á¿ÄCcá©á®Hcy;ä©y;ä¨FTcy;ä¬cute;ä
Ê;aeiyáááááæª¼ron;ä
dil;ä
rc;ä
;ä¡r;ì\ud835\udd16ortÈDLRUáªá´á¾á
ownArrow\xbbÐeftArrow\xbbà¢ightArrow\xbbà¿pArrow;ægma;ä£allCircle;æpf;ì\ud835\udd4aɲá
\0\0á
°t;æareÈ;ISUá
ȇ
¼áá¯æ¡ntersection;æuÄbpáásetÄ;Eááæqual;æersetÄ;Eá¨á©æqual;ænion;æcr;ì\ud835\udcaear;æÈbcmpááááÄ;sááæetÄ;Eááqual;æÄchá á
eedsÈ;ESTáá®á´á¿æ»qual;檰lantEqual;æ½ilde;æ¿Th\xe1à¾;æÆ;esááá£ærsetÄ;Eááæqual;æet\xbbáÖHRSacfhiorsá¾ááááá±á¶ááááORNè»\xdeäADE;æ¢ÄHcáácy;äy;ä¦Äbuáá;ä;䤯aeyá¥áªá¯ron;ä
¤dil;ä
¢;ä¢r;ì\ud835\udd17Äeiá»áDzá\0áefore;æ´a;äÄcnáákSpace;ìââSpace;ældeÈ;EFTá«á¬á²á¼æ¼qual;æullEqual;æ
ilde;æpf;ì\ud835\udd4bipleDot;æÄctáár;ì\ud835\udcafrok;ä
¦à«¡á·ááá¦\0á¬á±\0\0\0\0\0á¸á½á·á
\0á¿áááÄcrá»áuteè»\xdaärÄ;oááæcir;æ¥rÇ£á\0áy;äve;ä
¬Äiyáá£rcè»\xdbä;ä£blac;ä
°r;ì\ud835\udd18raveè»\xd9äacr;ä
ªÄdiáá©erÄBPááÄaráár;äacÄekáá;æet;æµarenthesis;æonÄ;Pá°á±ælus;æÄgpá»á¿on;ä
²f;ì\ud835\udd4cÐADETadpsáá®á¸áϨááá³rrowÆ;BDá
á á¤ar;æ¤ownArrow;æ
ownArrow;æquilibrium;楮eeÄ;Aááæ¥rrow;æ¥own\xe1ϳerÄLRáá¨eftArrow;æightArrow;æiÄ;lá¹áºäon;ä¥ing;ä
®cr;ì\ud835\udcb0ilde;ä
¨mlè»\xdcäÒDbcdefosvá§á¬á°á³á¾á
áááash;æ«ar;æ««y;äashÄ;lá»á¼æ©;櫦Äeráá
;æÆbtyáááºar;æÄ;iáácalÈBLSTá¡á¥áªá´ar;æ£ine;ä¼eparator;æilde;æThinSpace;ær;ì\ud835\udd19pf;ì\ud835\udd4dcr;ì\ud835\udcb1dash;æªÊcefosá§á¬á±á¶á¼irc;ä
´dge;ær;ì\ud835\udd1apf;ì\ud835\udd4ecr;ì\ud835\udcb2Èfiosáááár;ì\ud835\udd1b;äpf;ì\ud835\udd4fcr;ì\ud835\udcb3ÒAIUacfosuá±áµá¹á½ááááá cy;ä¯cy;äcy;ä®cuteè»\xddäÄiyáárc;ä
¶;ä«r;ì\ud835\udd1cpf;ì\ud835\udd50cr;ì\ud835\udcb4ml;ä
¸ÐHacdefosáµá¹á¿áááá á¤cy;äcute;ä
¹Äayááron;ä
½;äot;ä
»Ç²á\0áoWidt\xe8à«a;är;æ¨pf;æ¤cr;ì\ud835\udcb5௡ááá\0á°á¶á¿\0\0\0\0ááá«áá\0ááá²á¹\0á¾cuteè»\xe1ä¡reve;äÌ;Ediuyááá¡á£á¨áæ¾;ìâ¾Ì³;æ¿rcè»\xe2ä¢teè»\xb4Ì;ä°ligè»\xe6ä¦Ä;r\xb2áº;ì\ud835\udd1eraveè»\xe0ä ÄepááÄfpáásym;æµ\xe8áha;ä±ÄapácÄclá¤á§r;äg;樿ɤá°\0\0áÊ;adsváºá»á¿ááæ§nd;æ©;æ©lope;æ©;æ©Î;elmrszááááá¿ááæ ;榤e\xbbásdÄ;aá¥á¦æ¡Ñ¡á°á²á´á¶á¸áºá¼á¾;榨;榩;榪;榫;榬;æ¦;榮;榯tÄ;vá
áæbÄ;dááæ¾;æ¦Äptááh;æ¢\xbb\xb9arr;æ¼Ägpá£á§on;ä
f;ì\ud835\udd52Î;Eaeiopáá»á½áááá;æ©°cir;橯;æd;æs;ä§roxÄ;eáá\xf1áingè»\xe5䥯ctyá¡á¦á¨r;ì\ud835\udcb6;äªmpÄ;eáá¯\xf1Êildeè»\xe3ä£mlè»\xe4ä¤Äciááonin\xf4ɲnt;æ¨à Nabcdefiklnoprsuáá±á°á¼ááá¸á½á á¦á ¹á¡á᤽á¥á¥°ot;æ«Äcrá¶ákÈcepsáá
ááong;æpsilon;ä¶rime;æµimÄ;eááæ½q;æÅ¶á¢á¦ee;æ½edÄ;gá¬áæ
e\xbbárkÄ;táá·brk;æ¶Äoyáá;ä±quo;æÊcmprtááá¡á¤á¨ausÄ;eÄÄptyv;榰s\xe9áno\xf5ÄÆahwá¯á±á³;ä²;æ¶een;æ¬r;ì\ud835\udd1fgÎcostuvwááá³ááááÆaiuááá\xf0Ý rc;æ¯p\xbbá±Ædptá¤á¨áot;æ¨lus;æ¨imes;æ¨É±á¹\0\0á¾cup;æ¨ar;æ
riangleÄduááown;æ½p;æ³plus;æ¨e\xe5á\xe5áarow;æ¤Æakoáá ¦á µÄcná²á £kÆlstáºÖ«á ozenge;æ§«riangleÈ;dlrá á á á æ´own;æ¾eft;æight;æ¸k;æ£Æ±á «\0á ³Æ²á ¯\0á ±;æ;æ4;æck;æÄeoá ¾á¡Ä;qá¡á¡ì=â¥uiv;ìâ¡â¥t;æÈptwxá¡á¡á¡§á¡¬f;ì\ud835\udd53Ä;táá¡£om\xbbátie;æØDHUVbdhmptuvá¢
á¢á¢ªá¢»á£á£á£¬á£¿á¤
á¤á¤á¤¡ÈLRlrá¢á¢á¢á¢;æ;æ;æ;æÊ;DUduᢡᢢᢤᢦᢨæ;æ¦;æ©;æ¤;æ§ÈLRlrᢳᢵᢷᢹ;æ;æ;æ;æÎ;HLRhlrá£á£á£á£á£á£á£æ;æ¬;æ£;æ ;æ«;æ¢;æox;æ§ÈLRlrᣤᣦᣨᣪ;æ;æ;æ;æÊ;DUduڽ᣷᣹᣻᣽;æ¥;æ¨;æ¬;æ´inus;ælus;æimes;æ ÈLRlrá¤á¤á¤á¤;æ;æ;æ;æÎ;HLRhlrᤰᤱᤳᤵᤷ᤻᤹æ;æª;æ¡;æ;æ¼;æ¤;æÄevÄ£á¥barè»\xa6ä¦Èceioá¥á¥á¥á¥ r;ì\ud835\udcb7mi;æmÄ;eáálÆ;bhᥨᥩᥫä;æ§
sub;æÅ¬á¥´á¥¾lÄ;e᥹᥺æ¢t\xbb᥺pÆ;Eeįá¦
á¦;檮Ä;qÛÛೡᦧ\0᧨á¨á¨á¨²\0ᨷá©\0\0᪴\0\0á«\0\0ᬡᬮáá\0᯽\0á°Æcprá¦á¦²á§ute;äÌ;abcdsᦿá§á§á§á§á§æ©nd;æ©rcup;æ©Äauá§á§p;æ©p;æ©ot;æ©;ìâ©ï¸Äeo᧢᧥t;æ\xeeÚÈaeiuá§°á§»á¨á¨
ǰ᧵\0᧸s;æ©on;
106ädilè»\xe7ä§rc;äpsÄ;sá¨á¨æ©m;æ©ot;äÆdmná¨á¨ ᨦilè»\xb8Æptyv;榲tè\xa2;eá¨á¨®ä¢r\xe4Ʋr;ì\ud835\udd20Æceiᨽá©á©y;äckÄ;má©á©æark\xbbá©;ärÎ;Ecefmsá©á© ᩢᩫ᪤᪪᪮æ;æ§Æ;elᩩᩪá©äq;æeɡᩴ\0\0áªrrowÄlr᩼áªeft;æºight;æ»ÊRSacdáªáªáªáªáª\xbbà½;æst;æirc;æash;ænint;æ¨id;櫯cir;æ§ubsÄ;u᪻᪼æ£it\xbb᪼ˬá«á«á«º\0á¬onÄ;eá«á«äºÄ;q\xc7\xc6Éá«\0\0á«¢aÄ;tá«á«ä¬;äÆ;fl᫨᫩᫫æ\xeeá
eÄmx᫱᫶ent\xbbá«©e\xf3Éǧ᫾\0á¬Ä;dá»á¬ot;æ©n\xf4ÉÆfryá¬á¬á¬;ì\ud835\udd54o\xe4Éè\xa9;sÅá¬r;æÄaoᬥᬩrr;æµss;æÄcuᬲᬷr;ì\ud835\udcb8ÄbpᬼáÄ;eááæ«;æ«Ä;eááæ«;æ«dot;æ¯Îdelprvwá á¬á·á®á®¬á¯á¯¹arrÄlrá¨áª;椸;椵ɰá²\0\0áµr;æc;æarrÄ;pá¿á®æ¶;椽Ì;bcdosá®á®á®á®¡á®¥á®¨æªrcap;æ©Äauá®á®p;æ©p;æ©ot;ær;æ©
;ìâªï¸Èalrv᮵ᮿá¯á¯£rrÄ;mᮼᮽæ·;椼yÆevwá¯á¯á¯qɰá¯\0\0á¯re\xe3á³u\xe3áµee;æedge;æenè»\xa4ä¤earrowÄlrᯮ᯳eft\xbbá®ight\xbbᮽe\xe4á¯Äciá°á°onin\xf4Ç·nt;æ±lcty;æà¦AHabcdefhijlorstuwz᰸᰻᰿á±á±©á±µá²á²á²¬á²·á³»á³¿á´áµ»á¶á¶«á¶»á·á·r\xf2Îar;楥Èglrsá±á±á±á±ger;æ eth;æ¸\xf2á³hÄ;vá±á±æ\xbbà¤Å«á±¡á±§arow;æ¤a\xe3ÌÄayᱮᱳron;ä;ä´Æ;ao̲ᱼá²ÄgrÊ¿á²r;ætseq;æ©·Æglmá²á²á²è»\xb0ä°ta;ä´ptyv;榱ÄirᲣᲨsht;楿;ì\ud835\udd21arÄlrᲳᲵ\xbbà£\xbbáÊaegsvá³Í¸á³á³á³ mÆ;oșá³á³ndÄ;șá³uit;æ¦amma;äin;æ²Æ;io᳧᳨᳸ä·deè\xf7;oá³§á³°ntimes;æn\xf8á³·cy;äcɯá´\0\0á´rn;æop;æÊlptuwá´á´á´¢áµáµlar;ä¤f;ì\ud835\udd55Ê;empsÌá´á´·á´½áµqÄ;dÍá´³ot;æinus;æ¸lus;æquare;æ¡blebarwedg\xe5\xfanÆadhá®áµáµ§ownarrow\xf3á²arpoonÄlrᵲᵶef\xf4á²´igh\xf4ᲶŢᵿá¶
karo\xf7à½É¯á¶\0\0á¶rn;æop;æÆcotá¶á¶£á¶¦Äryá¶á¶¡;ì\ud835\udcb9;äl;æ§¶rok;äÄdrá¶°á¶´ot;æ±iÄ;fá¶ºá æ¿Äahá·á·r\xf2Щa\xf2ྦangle;榦Äciá·á·y;ägrarr;æ¿à¤Dacdefglmnopqrstuxá¸á¸á¸á¸¸Õ¸á¸¼á¹á¹¡á¹¾áº¥áº¯áº½á»¡á¼ªá¼·á½á½á½ÄDoá¸á´´o\xf4á²Äcsá¸á¸uteè»\xe9ä©ter;æ©®ÈaioyḢḧḱḶron;ärÄ;cá¸á¸®æè»\xeaäªlon;æ;äot;äÄDrá¹á¹
ot;æ;ì\ud835\udd22Æ;rsá¹á¹á¹æªaveè»\xe8ä¨Ä;dá¹á¹æªot;æªÈ;ilsṪṫṲṴæªnters;æ§;æÄ;dṹṺæªot;æªÆapsáº
áºáºcr;ätyÆ;sváºáºáºæ
et\xbbáºpÄ1;áºáº¤Ä³áº¡áº£;æ;æ
æÄgsẪẬ;ä
p;æÄgpẴẸon;äf;ì\ud835\udd56Æalsá»á»á»rÄ;sá»á»æl;æ§£us;橱iÆ;lvá»á»á»äµon\xbbá»;äµÈcsuvỪỳá¼á¼£Äioữḱrc\xbbḮɩỹ\0\0á»»\xedÕantÄglá¼á¼tr\xbbá¹ess\xbbṺÆaeiá¼á¼á¼ls;ä½st;ævÄ;DȵἠD;橸parsl;æ§¥ÄDaἯἳot;ærr;楱Æcdiá¼¾á½á»¸r;æ¯o\xf4ÍÄahá½á½;ä·è»\xf0ä°Ämrá½á½lè»\xebä«o;æ¬Æcipὡὤὧl;ä¡s\xf4Õ®ÄeoὬὴctatio\xeeÕnential\xe5չৡá¾\0á¾\0ᾡᾧ\0\0á¿á¿\0á¿\0ῦῪâ\0ââllingdotse\xf1á¹y;ämale;æÆilrá¾á¾³á¿lig;èï¬É©á¾¹\0\0á¾½g;èï¬ig;èï¬;ì\ud835\udd23lig;èï¬lig;ìfjÆaltá¿á¿á¿¡t;æig;èï¬ns;æ±of;äǰ΅\0ῳf;ì\ud835\udd57ÄakÖ¿á¿·Ä;vῼ´æ;æ«artint;æ¨ÄaoââÄcsââαââ°â¸â
â\0âβâ¢â¥â§âªâ¬\0â®è»\xbdä½;æ
è»\xbcä¼;æ
;æ
;æ
Ƴâ´\0â¶;æ
;æ
Ê´â¾â\0\0âè»\xbeä¾;æ
;æ
5;æ
ƶâ\0â;æ
;æ
8;æ
l;æwn;æ¢cr;ì\ud835\udcbbà¢Eabcdefgijlnorstvââââ¥â°â´â°âµâºâ¿âââ¸Ìâ¾â
âÄ;lÙâ;æªÆcmpâââute;äµmaÄ;dâá³ä³;æªreve;äÄiyâªâ®rc;ä;ä³ot;ä¡È;lqsؾÙâ½âÆ;qsؾÙâlan\xf4Ù¥È;cdlÙ¥âââ¥c;檩otÄ;oââæªÄ;lâ¢â£æª;æªÄ;eâªâìâï¸s;æªr;ì\ud835\udd24Ä;gÙ³Ømel;æ·cy;äÈ;EajÙâââ;æª;檥;檤ÈEaesâââ©â´;æ©pÄ;pâ£â¤æªrox\xbbâ¤Ä;qâ®â¯æªÄ;qâ®âim;æ§pf;ì\ud835\udd58Äciâ
â
r;æmÆ;elÙ«â
â
;æª;æªè>;cdlqr×®â
â
ªâ
®â
³â
¹Äciâ
¥â
§;檧r;橺ot;æPar;æ¦uest;橼Êadelsââ
ªâÙâǰâ\0âpro\xf8âr;楸qÄlqØ¿âles\xf3âi\xedÙ«Äenâ£ârtneqq;ìâ©ï¸\xc5âªÔAabcefkosyâââ±âµâºâââ¯â¨â½r\xf2Î Èilmrâââârs\xf0áf\xbbâ¤il\xf4Ú©Ädrâ â¤cy;äÆ;cwࣴâ«â¯ir;æ¥;æar;æirc;䥯alrââârtsÄ;uââæ¥it\xbbâlip;æ¦con;æ¹r;ì\ud835\udd25sÄewâ£â©arow;椥arow;椦Êamoprâºâ¾âââ£rr;æ¿tht;æ»kÄlrââeftarrow;æ©ightarrow;æªf;ì\ud835\udd59bar;æÆcltâ¯â´â¸r;ì\ud835\udcbdas\xe8â´rok;ä§Äbpââull;æhen\xbbá±à«¡â£\0âª\0â¸â
â\0ââ³\0\0â¸â¢â§â¢â¿\0ââªâ´cuteè»\xedäÆ;
106iyݱâ°âµrcè»\xeeä®;ä¸Äcxâ¼â¿y;äµclè»\xa1ä¡ÄfrÎâ;ì\ud835\udd26raveè»\xecä¬È;inoܾââ©â®Äinâ¢â¦nt;æ¨t;æfin;æ§ta;æ©lig;䳯aopâ¾ââÆcgtâ
ââr;䫯elpÜââin\xe5Þar\xf4Ü h;ä±f;æ·ed;äµÊ;cfotÓ´â¬â±â½âare;æ
inÄ;tâ¸â¹æie;æ§do\xf4âÊ;celpÝââââ¡al;æºÄgrââer\xf3á£\xe3âarhk;æ¨rod;樼Ècgptâ¯â²â¶â»y;äon;ä¯f;ì\ud835\udd5aa;ä¹uestè»\xbfä¿Äciââr;ì\ud835\udcbenÊ;EdsvÓ´âââ¡Ó³;æ¹ot;æµÄ;vâ¦â§æ´;æ³Ä;iÝ·â®lde;ä©Ç«â¸\0â¼cy;älè»\xefä¯Ìcfmosuââââ¡â§âµÄiyâârc;äµ;ä¹r;ì\ud835\udd27ath;ä·pf;ì\ud835\udd5bÇ£â¬\0â±r;ì\ud835\udcbfrcy;äkcy;äÐacfghjosâââ¢â§ââ±âµâ»ppaÄ;vââäº;ä°Äeyââ dil;ä·;äºr;ì\ud835\udd28reen;ä¸cy;ä
cy;äpf;ì\ud835\udd5ccr;ì\ud835\udcc0à®ABEHabcdefghjlmnoprstuvâ°ââââââ½âââââ¥â¹â½ââ²âââ¨âââ â Æartâ·âºâ¼r\xf2à§\xf2Îail;æ¤arr;æ¤Ä;gà¦â;æªar;楢ॣâ¥\0âª\0â±\0\0\0\0\0âµâº\0âââ\0â¹ute;äºmptyv;榴ra\xeeà¡bda;ä»gÆ;dlà¢ââ;æ¦\xe5à¢;æª
uoè»\xabä«rÐ;bfhlpstà¢ââ¦â©â«â®â±âµÄ;fà¢â£s;æ¤s;æ¤\xebâp;æ«l;椹im;楳l;æ¢Æ;aeâ¿ââæª«il;æ¤Ä;sââæª;ìâªï¸Æabrââârr;æ¤rk;æ²Äakâ¢â¬cÄekâ¨âª;ä»;äÄesâ±â³;æ¦lÄduâ¹â»;æ¦;æ¦Èaeuyââââron;ä¾Ädiââil;ä¼\xecࢰ\xe2â©;
106ä»Ècqrsâ£â¦ââ½a;椶uoÄ;rà¸áÄduâ²â·har;楧shar;æ¥h;æ²Ê;fgqsââà¦â³â¿æ¤tÊahlrtââ¤â·ââ¨rrowÄ;tà¢â¡a\xe9â¶arpoonÄduâ¯â´own\xbbÑp\xbb०eftarrows;æightÆahsââârrowÄ;sࣴࢧarpoon\xf3à¾quigarro\xf7â°hreetimes;æÆ;qsâà¦âºlan\xf4বÊ;cdgsবââââ¨c;檨otÄ;oââæ©¿Ä;rââæª;æªÄ;eâ¢â¥ìâï¸s;æªÊadegsâ³â¹â½ââppro\xf8âot;æqÄgqââ
\xf4à¦gt\xf2â\xf4à¦i\xedলÆilrâ࣡âsht;楼;ì\ud835\udd29Ä;Eà¦â£;æªÅ¡â©â¶rÄduâ²â®Ä;l॥â³;楪lk;æcy;äÊ;achtà©ââââr\xf2âorne\xf2á´ard;楫ri;æºÄioââ¤dot;ä
ustÄ;aâ¬âæ°che\xbbâÈEaesâ»â½ââ;æ¨pÄ;pââæªrox\xbbâÄ;qââæªÄ;qââ»im;æ¦Ðabnoptwzâ©â´â·ââ¯âââÄnrâ®â±g;æ¬r;æ½r\xebà£gÆlmrâ¿ââeftÄar০âight\xe1à§²apsto;æ¼ight\xe1à§½parrowÄlrâ¥â©ef\xf4âight;æ¬Æaflâ¶â¹â½r;æ¦
;ì\ud835\udd5dus;æ¨imes;樴šââst;æ\xe1áÆ;efââá ænge\xbbâarÄ;lâ¤â¥ä¨t;æ¦Êachmtâ³â¶â¼â
âr\xf2ࢨorne\xf2á¶arÄ;dà¾â;æ¥;æri;æ¿Ìachiqtââà©â¢â®â»quo;æ¹r;ì\ud835\udcc1mÆ;egলâªâ¬;æª;æªÄbuâªâ³oÄ;rà¸â¹;ærok;ä
è<;cdhilqrà «ââ¹ââ â¥âªâ°Äciââ;檦r;橹re\xe5â²mes;æarr;楶uest;æ©»ÄPiâµâ¹ar;æ¦Æ;efâ à¤á ærÄduâ â shar;æ¥har;楦Äenâ â ¡rtneqq;ìâ¨ï¸\xc5â ÜDacdefhilnopsuâ¡â¡
â¢â¢â¢â¢ ⢥⢨â£â£¢â£¤àªâ£³â¤Dot;æºÈclprâ¡â¡â¡£â¡½rè»\xafä¯Äetâ¡â¡;æÄ;eâ¡â¡æ se\xbbâ¡Ä;sá»â¡¨toÈ;dluá»â¡³â¡·â¡»ow\xeeÒef\xf4à¤\xf0áker;æ®Äoyâ¢â¢mma;権;ä¼ash;æasuredangle\xbbá¦r;ì\ud835\udd2ao;æ§Æcdn⢯⢴â£roè»\xb5äµÈ;acdá¤â¢½â£â£s\xf4á§ir;æ«°otè»\xb7ƵusÆ;bdâ£á¤â£æÄ;uá´¼â£;横ţâ£â£¡p;æ«\xf2â\xf0àªÄdp⣩⣮els;æ§f;ì\ud835\udd5eÄct⣸⣽r;ì\ud835\udcc2pos\xbbáÆ;lmâ¤â¤â¤ä¼timap;æ¸à°GLRVabcdefghijlmoprstuvwâ¥â¥â¥¾â¦â¦â§â§©â¨â¨â©â©âªâªâª¤âª¨â¬â¬ââ¿â®®â°´â±§â±¼â³©Ägtâ¥â¥;ìâ̸Ä;vâ¥à¯ìâ«âÆeltâ¥â¥²â¥¶ftÄar⥡⥧rrow;æightarrow;æ;ìâ̸Ä;v⥻à±ìâªâightarrow;æÄDdâ¦â¦ash;æ¯ash;æ®Êbcnpt⦣⦧⦬⦱â§la\xbbËute;ä
g;ìâ âÊ;Eiopà¶â¦¼â§â§
â§;ì⩰̸d;ìâ̸s;ä
ro\xf8à¶urÄ;aâ§â§æ®lÄ;sâ§à¬¸Ç³â§\0â§£pè»\xa0ଷmpÄ;e௹à°Êaeouyâ§´â§¾â¨â¨â¨Ç°â§¹\0â§»;æ©on;ä
dil;ä
ngÄ;dൾâ¨ot;ìâ©Ì¸p;æ©;ä½ash;æÎ;Aadqsxà®â¨©â¨â¨»â©â©
â©rr;ærÄhr⨳⨶k;椤Ä;oá²á°ot;ìâ̸ui\xf6à£Äeiâ©â©ar;椨\xedà®istÄ;sà® à®r;ì\ud835\udd2bÈEestà¯
⩦⩹⩼Æ;qs஼â©à¯¡Æ;qs஼à¯
â©´lan\xf4௢i\xed௪Ä;rà®¶âª\xbbà®·ÆAapâªâªâªr\xf2⥱rr;æ®ar;櫲Æ;svà¾âªà¾Ä;d⪡⪢æ¼;æºcy;äÎAEadest⪷⪺⪾â«â«
⫶⫹r\xf2⥦;ìâ¦Ì¸rr;ær;æ¥È;fqsà°»â«â«£â«¯tÄarâ«â«rro\xf7â«ightarro\xf7âªÆ;qs఻⪺⫪lan\xf4à±Ä;sà±â«´\xbbà°¶i\xedà±Ä;rవ⫾iÄ;eà°à°¥i\xe4à¶Äptâ¬â¬f;ì\ud835\udd5fè\xac;inâ¬â¬â¬¶ä¬nÈ;Edvà®â¬¤â¬¨â¬®;ìâ¹Ì¸ot;ìâµÌ¸Ç¡à®â¬³â¬µ;æ·;æ¶iÄ;vಸ⬼ǡಸââ;æ¾;æ½Æaorââ£â©rÈ;astà»âââlle\xecà»l;ì⫽â¥;ìâ̸lint;æ¨Æ;ceà²â°â³u\xe5ಥÄ;cà²â¸Ä;eà²â½\xf1à²ÈAaitâ®â®â®â®§r\xf2â¦rrÆ;cwâ®â®â®æ;ì⤳̸;ìâ̸ghtarrow\xbbâ®riÄ;eà³à³Îchimpqu⮽â¯â¯â¬à¸â¯¤â¯¯È;cerà´²â¯à´·â¯u\xe5àµ
;ì\ud835\udcc3ortÉâ¬
\0\0â¯ar\xe1âmÄ;e൮â¯Ä;q൴൳suÄbp⯫â¯\xe5೸\xe5à´Æbcp⯶â°â°È;Ees⯿â°à´¢â°æ;ìâ«
̸etÄ;eà´â°qÄ;qà´£â°cÄ;eà´²â°\xf1à´¸È;EesⰢⰣàµâ°§æ
;ìâ«Ì¸etÄ;eàµâ°®qÄ;qൠⰣÈgilrⰽⰿâ±
â±\xecà¯ldeè»\xf1ä±\xe7à±iangleÄlrâ±â±eftÄ;eà°â±\xf1à°¦ightÄ;eà³â±¥\xf1à³Ä;mⱬâ±ä½Æ;esⱴⱵⱹä£ro;æp;æÒDHadgilrsâ²â²â²â²â²£â²°â²¶â³â³£ash;æarr;æ¤p;ìââash;æ¬ÄetⲨⲬ;ìâ¥â;ì>ânfin;æ§ÆAetâ²½â³â³
rr;æ¤;ìâ¤âÄ;râ³â³ì<âie;ìâ´âÄAtâ³â³rr;æ¤rie;ìâµâim;ìâ¼âÆAanâ³°â³´â´rr;ærÄhr⳺⳽k;椣Ä;oá§á¥ear;椧ááª\0\0\0\0\0\0\0\0\0\0\0\0\0â´\0â´¸âµâµ ⵥ⵲â¶á¬\0\0â¶â¶«\0â·â·\0â·â¸â¸«â¸¾â¹Äcsâ´±áªuteè»\xf3ä³Äiyâ´¼âµ
rÄ;cáªâµè»\xf4ä´;ä¾Êabios᪠âµâµÇâµlac;ä
v;樸old;榼lig;ä
Äcr⵩âµir;榿;ì\ud835\udd2cͯ⵹\0\0âµ¼\0â¶n;äaveè»\xf2ä²;æ§Äbmâ¶à·´ar;榵Èacitâ¶â¶â¶¥â¶¨r\xf2áªÄirâ¶â¶ r;榾oss;榻n\xe5à¹;æ§Æaeiⶱⶵⶹcr;ä
ga;äÆcdnâ·â·
Çron;ä¿;榶pf;ì\ud835\udd60Æaelâ·â·Çr;榷rp;榹Î;adiosvⷪⷫⷮâ¸â¸â¸â¸æ¨r\xf2áªÈ;efmâ··â·¸â¸â¸
æ©rÄ;oⷾⷿæ´f\xbbâ·¿è»\xaaäªè»\xbaäºgof;æ¶r;æ©lope;æ©;æ©Æcloâ¸â¸¡â¸§\xf2â¸ashè»\xf8ä¸l;æiŬⸯ⸴deè»\xf5äµesÄ;aÇ⸺s;樶mlè»\xf6ä¶bar;æ½à«¡â¹\0â¹½\0âºâº\0⺢⺹\0\0â»àº\0â¼\0\0⼫⾼\0â¿rÈ;
106astÐâ¹§â¹²àº
è\xb6;lâ¹â¹®ä¶le\xecÐɩ⹸\0\0â¹»m;櫳;櫽y;ä¿rÊcimptâºâºâºá¡¥âºnt;ä¥od;ä®il;æ°enk;æ±r;ì\ud835\udd2dÆimo⺨⺰⺴Ä;vâºâº®ä;äma\xf4à©¶ne;æÆ;tv⺿â»â»ächfork\xbb´;äÄauâ»â»nÄckâ»â»kÄ;hâ´â»;æ\xf6â´sÒ;abcdemst⻳⻴á¤â»¹â»½â¼â¼â¼â¼ä«cir;樣ir;樢Äouáµâ¼;樥;橲nè»\xb1àºim;樦wo;樧Æipuâ¼â¼ â¼¥ntint;æ¨f;ì\ud835\udd61ndè»\xa3ä£Ô;Eaceinosuà»â¼¿â½â½â½â¾â¾â¾â½¾â¾¶;檳p;檷u\xe5à»Ä;cà»â½Ì;acensà»â½â½â½¦â½¨â½¾ppro\xf8â½urlye\xf1à»\xf1à»Æaes⽯⽶⽺pprox;檹qq;檵im;æ¨i\xedà»meÄ;sâ¾àº®æ²ÆEas⽸â¾â½º\xf0â½µÆdfp໬â¾â¾¯Æals⾠⾥⾪lar;æ®ine;æurf;æÄ;t໻⾴\xefà»»rel;æ°Äciâ¿â¿
r;ì\ud835\udcc5;äncsp;æÌfiopsuâ¿â¢â¿â¿¥â¿«â¿±r;ì\ud835\udd2epf;ì\ud835\udd62rime;æcr;ì\ud835\udcc6Æaeo⿸ããtÄei⿾ã
rnion\xf3Ú°nt;æ¨stÄ;eããä¿\xf1á¼\xf4à¼àªABHabcdefhilmnoprstuxããããã ãã«ã
ã
¢ã
²ãããã¤ã©ãã®ã²ãã°ã·Æartãããr\xf2á³\xf2Ïail;æ¤ar\xf2á±¥ar;楤Îcdenqrtã¨ãµã¸ã¿ãããÄeuãã±;ìâ½Ì±te;ä
i\xe3á
®mptyv;榳gÈ;delà¿ããã;æ¦;榥\xe5à¿uoè»\xbbä»rÖ;abcfhlpstwà¿ã¬ã¯ã·ã¹ã¼ã¾ããããp;極Ä;fà¿ ã´s;æ¤ ;椳s;æ¤\xebâ\xf0â®l;æ¥
im;楴l;æ£;æÄaiããil;æ¤oÄ;nããæ¶al\xf3à¼Æabrã§ãªã®r\xf2á¥rk;æ³Äakã³ã½cÄekã¹ã»;ä½;äÄesãã;æ¦lÄduãã;æ¦;æ¦Èaeuyããã§ã©ron;ä
Ädiã¡ã¥il;ä
\xec࿲\xe2ãº;äÈclqsã´ã·ã½ã
a;椷dhar;楩uoÄ;rÈÈh;æ³Æacgã
ã
à½lÈ;ipsླྀã
ã
án\xe5á»ar\xf4ྩt;æÆilrã
©á£ã
®sht;楽;ì\ud835\udd2fÄaoã
·ãrÄduã
½ã
¿\xbbÑ»Ä;láã;楬Ä;vããä;䱯gnsãã¹ã¼htÌahlrstã¤ã°ããã¤ã®rrowÄ;tà¿ãa\xe9ãarpoonÄduã»ã¿ow\xeeã
¾p\xbbáeftÄahããrrow\xf3࿪arpoon\xf3Õightarrows;æquigarro\xf7ãhreetimes;æg;äingdotse\xf1á¼²Æahmãããr\xf2࿪a\xf2Õ;æoustÄ;aããæ±che\xbbãmid;æ«®Èabptã²ã½ããÄnrã·ãºg;ær;æ¾r\xebáÆaflãããr;æ¦;ì\ud835\udd63us;樮imes;樵Äapãã§rÄ;gã£ã¤ä©t;æ¦olint;æ¨ar\xf2ã£Èachqã»ãá¼ã
quo;æºr;ì\ud835\udcc7Äbuã»ãoÄ;rÈÈÆhirããã re\xe5ã¸mes;æiÈ;eflãªáá ¡ã«æ¹tri;æ§luhar;楨;æàµ¡ãããã¬ã¸ã±\0ãºã¤\0\0ã¬ã°\0ã¨ãããã±ãã±\0ã\0\0ã³cute;ä
qu\xefâºÔ;Eaceinpsyáã³ãµã¿ããããã¦ã©;檴ǰãº\0ã¼;檸on;ä
¡u\xe5á¾Ä;dá³ãil;ä
rc;ä
ÆEasããã;檶p;檺im;æ©olint;æ¨i\xedá;äotÆ;beã´áµãµæ
;橦ÎAacmstxãããããã£ãrr;ærÄhrãã\xebâ¨Ä;oਸ਼਴tè»\xa7ä§i;ä»war;椩mÄinã©\xf0nu\xf3\xf1t;æ¶rÄ;oã¶âì\ud835\udd30Èacoyãããã rp;æ¯Ähyããcy;ä;ärtÉã\0\0ãi\xe4á¤ara\xec⹯è»\xadäÄgmã¨ã´maÆ;fvã±ã²ã²ä;äÐ;deglnprá«ã
ããããã¡ã¦ot;橪Ä;qá±á°Ä;Eããæª;æª Ä;Eããæª;æªe;ælus;樤arr;楲ar\xf2á½Èaeitã¸ãããÄlsã½ãlsetm\xe9ãªhp;樳parsl;槤Ädlá£ãe;æ£Ä;eããæªªÄ;sã¢ã£æª¬;ìâª¬ï¸Æflpã®ã³ãtcy;äÄ;bã¸ã¹ä¯Ä;aã¾ã¿æ§r;æ¿f;ì\ud835\udd64aÄdrãÐesÄ;uããæ it\xbbãÆcsuã ã¹ãÄauã¥ã¯pÄ;sáã«;ìâï¸pÄ;sá´ãµ;ìâï¸uÄbpã¿ãÆ;esááãetÄ;eáã\xf1áÆ;esá¨áãetÄ;eá¨ã\xf1á®Æ;afá
»ã¦Ö°rÅ¥ã«Ö±\xbbá
¼ar\xf2á
Ècemtã¹ã¾ãã
r;ì\ud835\udcc8tm\xee\xf1i\xecãar\xe6á¾ÄarããrÄ;fãá¿æÄanããightÄepã£ãªpsilo\xeeá» h\xe9⺯s\xbbâ¡Êbcmnpã»ãáããÒ;Edemnprsãããããã£ã¬ã±ã¶æ;æ«
ot;檽Ä;dáãot;æ«ult;æ«ÄEeã¨ãª;æ«;ælus;檿arr;楹Æeiuã½ããtÆ;enãã
ãqÄ;qáãeqÄ;qã«ã¨m;æ«Äbpãã;æ«;æ«cÌ;acensáã¬ã²ã¹ã»ã¦ppro\xf8ãºurlye\xf1á¾\xf1á³Æaesãããppro\xf8ãq\xf1ãg;æªÚ123;Edehlmnpsã©ã¬ã¯áã²ã´ãããããã¨ãè»\xb9ä¹è»\xb2ä²è»\xb3ä³;æ«Äosã¹ã¼t;檾ub;æ«Ä;dá¢ã
ot;æ«sÄouããl;æb;æ«arr;楻ult;æ«ÄEeã¤ã¦;æ«;ælus;æ«Æeiuã´ããtÆ;enáã¼ãqÄ;qá¢ã²eqÄ;qã§ã¤m;æ«Äbpãã;æ«;æ«ÆAanãã ãrr;ærÄhrã¦ã¨\xebâ®Ä;oਫ਩war;椪ligè»\xdfä௡ããã áã³ã¹\0ã¾ã\0\0\0\0\0ãã\0ãã¬\0\0\0ãɲã\0\0ãget;æ;är\xebà¹Æaeyã¦ã«ã°ron;ä
¥dil;ä
£;älrec;ær;ì\ud835\udd31Èeikoãããµã¼Ç²ã\0ãeÄ4fááaÆ;svãããä¸ym;äÄcnã¢ã²kÄasã¨ã®ppro\xf8áim\xbbá¬s\xf0áÄasãºã®\xf0árnè»\xfeä¾Ç¬Ìãâ§esè\xd7;bdãããäÄ;
106aá¤ãr;樱;樰Æepsã¡ã£ã\xe1â©È;bcfÒã¬ã°ã´ot;æ¶ir;櫱Ä;oã¹ã¼ì\ud835\udd65rk;æ«\xe1ã¢rime;æ´Æaipããã¤d\xe5áÎadempstã¡ããããããngleÊ;dlqrã°ã±ã¶ããæµown\xbbá¶»eftÄ;eâ ã¾\xf1म;æightÄ;eãªã\xf1áot;æ¬inus;樺lus;樹b;æ§ime;樻ezium;æ¢Æchtã²ã½ãÄryã·ã»;ì\ud835\udcc9;äcy;ärok;ä
§Äioããx\xf4á·headÄlrãã eftarro\xf7à¡ightarrow\xbbà½à¤AHabcdfghlmoprstuwãããã¤ã°ã¼ã ã 㠣㠴ã¡ã¡ã¡«ã¢©ã£ã£ã£ªã£¶r\xf2Ïar;楣Äcrãã¢uteè»\xfaäº\xf2á
rÇ£ãª\0ãy;äve;ä
Äiyãµãºrcè»\xfbä»;äÆabhã ã ã r\xf2álac;ä
±a\xf2áÄirã ã sht;楾;ì\ud835\udd32raveè»\xf9ä¹Å¡ã §ã ±rÄlr㠬㠮\xbbà¥\xbbálk;æÄctã ¹ã¡É¯ã ¿\0\0ã¡rnÄ;eã¡
ã¡ær\xbbã¡op;æri;æ¸Äalã¡ã¡cr;ä
«è»\xa8ÍÄgp㡢㡦on;ä
³f;ì\ud835\udd66Ìadhlsuá
㡸㡽á²ã¢ã¢ own\xe1á³arpoonÄlrã¢ã¢ef\xf4ã igh\xf4ã ¯iÆ;hlã¢ã¢ã¢ä
\xbbáºon\xbbã¢parrows;æÆcit㢰ã£ã£É¯ã¢¶\0\0ã£rnÄ;e㢼㢽ær\xbb㢽op;æng;ä
¯ri;æ¹cr;ì\ud835\udccaÆdirã£ã£ã£¢ot;æ°lde;ä
©iÄ;fã°ã£¨\xbbá Äam㣯㣲r\xf2㢨lè»\xfcä¼angle;榧ÞABDacdeflnoprszã¤ã¤ã¤©ã¤ã¦µã¦¸ã¦½ã§ã§¤ã§¨ã§³ã§¹ã§½ã¨ã¨ r\xf2Ï·arÄ;v㤦㤧櫨;æ«©as\xe8Ï¡Änr㤲㤷grt;æ¦Îeknprstã£ã¥ã¥ã¥ã¥ã¥¤ã¦app\xe1âothin\xe7áºÆhirã«â»ã¥op\xf4â¾µÄ;há·ã¥¢\xefãÄiu㥩ã¥gm\xe1ã³Äbp㥲ã¦setneqÄ;q㥽ã¦ìâï¸;ìâ«ï¸setneqÄ;qã¦ã¦ìâï¸;ìâ«ï¸Ährã¦ã¦et\xe1ãiangleÄlr㦪㦯eft\xbbथight\xbbáy;ä²ash\xbbá¶Æelrã§ã§ã§Æ;beâ·ªã§ã§ar;æ»q;ælip;æ®Äbtã§á¨a\xf2á©r;ì\ud835\udd33tr\xe9㦮suÄbp㧯㧱\xbbà´\xbbàµpf;ì\ud835\udd67ro\xf0à»»tr\xe9㦴Äcuã¨ã¨r;ì\ud835\udccbÄbpã¨ã¨nÄEeã¦ã¨\xbb㥾nÄEeã¦ã¨\xbbã¦igzag;æ¦Îcefoprs㨶㨻ã©ã©ã©ã©¡ã©ªirc;ä
µÄdiã©ã©Äbgã©
ã©ar;æ©eÄ;qáºã©;æerp;ær;ì\ud835\udd34pf;ì\ud835\udd68Ä;eá¹ã©¦at\xe8á¹cr;ì\ud835\udcccà«£áãª\0ãª\0ãªãª\0\0ãªãª¨ãª«ãª¯\0\0ã«ã«\0ã«áátr\xe9ár;ì\ud835\udd35ÄAaãªãªr\xf2Ïr\xf2à§¶;ä¾ÄAa㪡㪤r\xf2θr\xf2à§«a\xf0âis;æ»Ædptá¤ãªµãª¾Äfl㪺á©;ì\ud835\udd69im\xe5á²ÄAaã«ã«r\xf2Ïr\xf2à¨Äcqã«á¸r;ì\ud835\udccdÄptáã«r\xe9áÐacefiosu㫰㫽ã¬ã¬ã¬ã¬ã¬ã¬¡cÄuyã«¶ã«»teè»\xfdä½;äÄiyã¬ã¬rc;ä
·;änè»\xa5ä¥r;ì\ud835\udd36cy;äpf;ì\ud835\udd6acr;ì\ud835\udcceÄcm㬦㬩y;älè»\xffä¿Ôacdefhioswããããã¤ã©ãã´ãºã®cute;ä
ºÄayããron;ä
¾;ä·ot;ä
¼Äetãã¡tr\xe6áa;ä¶r;ì\ud835\udd37cy;ä¶grarr;æpf;ì\ud835\udd6bcr;ì\ud835\udccfÄjnã®
ã®;æj;æ'.split("").map(e=>e.charCodeAt(0))),e$=new Map([[0,65533],[128,8364],[130,8218],[131,402],[132,8222],[133,8230],[134,8224],[135,8225],[136,710],[137,8240],[138,352],[139,8249],[140,338],[142,381],[145,8216],[146,8217],[147,8220],[148,8221],[149,8226],[150,8211],[151,8212],[152,732],[153,8482],[154,353],[155,8250],[156,339],[158,382],[159,376]]);function eU(e){return e>=a.ZERO&&e<=a.NINE}String.fromCodePoint,!function(e){e[e.NUM=35]="NUM",e[e.SEMI=59]="SEMI",e[e.EQUALS=61]="EQUALS",e[e.ZERO=48]="ZERO",e[e.NINE=57]="NINE",e[e.LOWER_A=97]="LOWER_A",e[e.LOWER_F=102]="LOWER_F",e[e.LOWER_X=120]="LOWER_X",e[e.LOWER_Z=122]="LOWER_Z",e[e.UPPER_A=65]="UPPER_A",e[e.UPPER_F=70]="UPPER_F",e[e.UPPER_Z=90]="UPPER_Z"}(a||(a={})),!function(e){e[e.VALUE_LENGTH=49152]="VALUE_LENGTH",e[e.BRANCH_LENGTH=16256]="BRANCH_LENGTH",e[e.JUMP_TABLE=127]="JUMP_TABLE"}(o||(o={})),!function(e){e[e.EntityStart=0]="EntityStart",e[e.NumericStart=1]="NumericStart",e[e.NumericDecimal=2]="NumericDecimal",e[e.NumericHex=3]="NumericHex",e[e.NamedEntity=4]="NamedEntity"}(l||(l={})),function(e){e[e.Legacy=0]="Legacy",e[e.Strict=1]="Strict",e[e.Attribute=2]="Attribute"}(u||(u={}));class eH{constructor(e,t,n){this.decodeTree=e,this.emitCodePoint=t,this.errors=n,this.state=l.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=u.Strict}startEntity(e){this.decodeMode=e,this.state=l.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1}write(e,t){switch(this.state){case l.EntityStart:if(e.charCodeAt(t)===a.NUM)return this.state=l.NumericStart,this.consumed+=1,this.stateNumericStart(e,t+1);return this.state=l.NamedEntity,this.stateNamedEntity(e,t);case l.NumericStart:return this.stateNumericStart(e,t);case l.NumericDecimal:return this.stateNumericDecimal(e,t);case l.NumericHex:return this.stateNumericHex(e,t);case l.NamedEntity:return this.stateNamedEntity(e,t)}}stateNumericStart(e,t){return t>=e.length?-1:(32|e.charCodeAt(t))===a.LOWER_X?(this.state=l.NumericHex,this.consumed+=1,this.stateNumericHex(e,t+1)):(this.state=l.NumericDecimal,this.stateNumericDecimal(e,t))}addToNumericResult(e,t,n,r){if(t!==n){let i=n-t;this.result=this.result*Math.pow(r,i)+Number.parseInt(e.substr(t,
106i),r),this.consumed+=i}}stateNumericHex(e,t){let n=t;for(;t<e.length;){var r;let i=e.charCodeAt(t);if(!eU(i)&&(!((r=i)>=a.UPPER_A)||!(r<=a.UPPER_F))&&(!(r>=a.LOWER_A)||!(r<=a.LOWER_F)))return this.addToNumericResult(e,n,t,16),this.emitNumericEntity(i,3);t+=1}return this.addToNumericResult(e,n,t,16),-1}stateNumericDecimal(e,t){let n=t;for(;t<e.length;){let r=e.charCodeAt(t);if(!eU(r))return this.addToNumericResult(e,n,t,10),this.emitNumericEntity(r,2);t+=1}return this.addToNumericResult(e,n,t,10),-1}emitNumericEntity(e,t){var n,r,i;if(this.consumed<=t)return null==(n=this.errors)||n.absenceOfDigitsInNumericCharacterReference(this.consumed),0;if(e===a.SEMI)this.consumed+=1;else if(this.decodeMode===u.Strict)return 0;return this.emitCodePoint((r=this.result)>=55296&&r<=57343||r>1114111?65533:null!=(i=e$.get(r))?i:r,this.consumed),this.errors&&(e!==a.SEMI&&this.errors.missingSemicolonAfterCharacterReference(),this.errors.validateNumericCharacterReference(this.result)),this.consumed}stateNamedEntity(e,t){let{decodeTree:n}=this,r=n[this.treeIndex],i=(r&o.VALUE_LENGTH)>>14;for(;t<e.length;t++,this.excess++){let s=e.charCodeAt(t);if(this.treeIndex=function(e,t,n,r){let i=(t&o.BRANCH_LENGTH)>>7,s=t&o.JUMP_TABLE;if(0===i)return 0!==s&&r===s?n:-1;if(s){let t=r-s;return t<0||t>=i?-1:e[n+t]-1}let a=n,l=a+i-1;for(;a<=l;){let t=a+l>>>1,n=e[t];if(n<r)a=t+1;else{if(!(n>r))return e[t+i];l=t-1}}return -1}(n,r,this.treeIndex+Math.max(1,i),s),this.treeIndex<0)return 0===this.result||this.decodeMode===u.Attribute&&(0===i||function(e){var t;return e===a.EQUALS||(t=e)>=a.UPPER_A&&t<=a.UPPER_Z||t>=a.LOWER_A&&t<=a.LOWER_Z||eU(t)}(s))?0:this.emitNotTerminatedNamedEntity();if(0!=(i=((r=n[this.treeIndex])&o.VALUE_LENGTH)>>14)){if(s===a.SEMI)return this.emitNamedEntityData(this.treeIndex,i,this.consumed+this.excess);this.decodeMode!==u.Strict&&(this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0)}}return -1}emitNotTerminatedNamedEntity(){var e;let{result:t,decodeTree:n}=this,r=(n[t]&o.VALUE_LENGTH)>>14;return this.emitNamedEntityData(t,r,this.consumed),null==(e=this.errors)||e.missingSemicolonAfterCharacterReference(),this.consumed}emitNamedEntityData(e,t,n){let{decodeTree:r}=this;return this.emitCodePoint(1===t?r[e]&~o.VALUE_LENGTH:r[e+1],n),3===t&&this.emitCodePoint(r[e+2],n),n}end(){var e;switch(this.state){case l.NamedEntity:return 0!==this.result&&(this.decodeMode!==u.Attribute||this.result===this.treeIndex)?this.emitNotTerminatedNamedEntity():0;case l.NumericDecimal:return this.emitNumericEntity(0,2);case l.NumericHex:return this.emitNumericEntity(0,3);case l.NumericStart:return null==(e=this.errors)||e.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case l.EntityStart:return 0}}}!function(e){e.HTML="http://www.w3.org/1999/xhtml",e.MATHML="http://www.w3.org/1998/Math/MathML",e.SVG="http://www.w3.org/2000/svg",e.XLINK="http://www.w3.org/1999/xlink",e.XML="http://www.w3.org/XML/1998/namespace",e.XMLNS="http://www.w3.org/2000/xmlns/"}(c||(c={})),function(e){e.TYPE="type",e.ACTION="action",e.ENCODING="encoding",e.PROMPT="prompt",e.NAME="name",e.COLOR="color",e.FACE="face",e.SIZE="size"}(d||(d={})),function(e){e.NO_QUIRKS="no-quirks",e.QUIRKS="quirks",e.LIMITED_QUIRKS="limited-quirks"}(h||(h={})),function(e){e.A="a",e.ADDRESS="address",e.ANNOTATION_XML="annotation-xml",e.APPLET="applet",e.AREA="area",e.ARTICLE="article",e.ASIDE="aside",e.B="b",e.BASE="base",e.BASEFONT="basefont",e.BGSOUND="bgsound",e.BIG="big",e.BLOCKQUOTE="blockquote",e.BODY="body",e.BR="br",e.BUTTON="button",e.CAPTION="caption",e.CENTER="center",e.CODE="code",e.COL="col",e.COLGROUP="colgroup",e.DD="dd",e.DESC="desc",e.DETAILS="details",e.DIALOG="dialog",e.DIR="dir",e.DIV="div",e.DL="dl",e.DT="dt",e.EM="em",e.EMBED="embed",e.FIELDSET="fieldset",e.FIGCAPTION="figcaption",e.FIGURE="figure",e.FONT="font",e.FOOTER="footer",e.FOREIGN_OBJECT="foreignObject",e.FORM="form",e.FRAME="frame",e.FRAMESET="frameset",e.H1="h1",e.H2="h2",e.H3="h3",e.H4="h4",e.H5="h5",e.H6="h6",e.HEAD="head",e.HEADER="header",e.HGROUP="hgroup",e.HR="hr",e.HTML="html",e.I="i",e.IMG="img",e.IMAGE="image",e.INPUT="input",e.IFRAME="iframe",e.KEYGEN="keygen",e.LABEL="label",e.LI="li",e.LINK="link",e.LISTING="listing",e.MAIN="main",e.MALIGNMARK="malignmark",e.MARQUEE="marquee",e.MATH="math",e.MENU="menu",e.META="meta",e.MGLYPH="mglyph",e.MI="mi",e.MO="mo",e.MN="mn",e.MS="ms",e.MTEXT="mtext",e.NAV="nav",e.NOBR="nobr",e.NOFRAMES="noframes",e.NOEMBED="noembed",e.NOSCRIPT="noscript",e.OBJECT="object",e.OL="ol",e.OPTGROUP="optgroup",e.OPTION="option",e.P="p",e.PARAM="param",e.PLAINTEXT="plaintext",e.PRE="pre",e.RB="rb",e.RP="rp",e.RT="rt",e.RTC="rtc",e.RUBY="ruby",e.S="s",e.SCRIPT="script",e.SEARCH="search",e.SECTION="section",e.SELECT="select",e.SOURCE="source",e.SMALL="small",e.SPAN="span",e.STRIKE="str
106ike",e.STRONG="strong",e.STYLE="style",e.SUB="sub",e.SUMMARY="summary",e.SUP="sup",e.TABLE="table",e.TBODY="tbody",e.TEMPLATE="template",e.TEXTAREA="textarea",e.TFOOT="tfoot",e.TD="td",e.TH="th",e.THEAD="thead",e.TITLE="title",e.TR="tr",e.TRACK="track",e.TT="tt",e.U="u",e.UL="ul",e.SVG="svg",e.VAR="var",e.WBR="wbr",e.XMP="xmp"}(p||(p={})),function(e){e[e.UNKNOWN=0]="UNKNOWN",e[e.A=1]="A",e[e.ADDRESS=2]="ADDRESS",e[e.ANNOTATION_XML=3]="ANNOTATION_XML",e[e.APPLET=4]="APPLET",e[e.AREA=5]="AREA",e[e.ARTICLE=6]="ARTICLE",e[e.ASIDE=7]="ASIDE",e[e.B=8]="B",e[e.BASE=9]="BASE",e[e.BASEFONT=10]="BASEFONT",e[e.BGSOUND=11]="BGSOUND",e[e.BIG=12]="BIG",e[e.BLOCKQUOTE=13]="BLOCKQUOTE",e[e.BODY=14]="BODY",e[e.BR=15]="BR",e[e.BUTTON=16]="BUTTON",e[e.CAPTION=17]="CAPTION",e[e.CENTER=18]="CENTER",e[e.CODE=19]="CODE",e[e.COL=20]="COL",e[e.COLGROUP=21]="COLGROUP",e[e.DD=22]="DD",e[e.DESC=23]="DESC",e[e.DETAILS=24]="DETAILS",e[e.DIALOG=25]="DIALOG",e[e.DIR=26]="DIR",e[e.DIV=27]="DIV",e[e.DL=28]="DL",e[e.DT=29]="DT",e[e.EM=30]="EM",e[e.EMBED=31]="EMBED",e[e.FIELDSET=32]="FIELDSET",e[e.FIGCAPTION=33]="FIGCAPTION",e[e.FIGURE=34]="FIGURE",e[e.FONT=35]="FONT",e[e.FOOTER=36]="FOOTER",e[e.FOREIGN_OBJECT=37]="FOREIGN_OBJECT",e[e.FORM=38]="FORM",e[e.FRAME=39]="FRAME",e[e.FRAMESET=40]="FRAMESET",e[e.H1=41]="H1",e[e.H2=42]="H2",e[e.H3=43]="H3",e[e.H4=44]="H4",e[e.H5=45]="H5",e[e.H6=46]="H6",e[e.HEAD=47]="HEAD",e[e.HEADER=48]="HEADER",e[e.HGROUP=49]="HGROUP",e[e.HR=50]="HR",e[e.HTML=51]="HTML",e[e.I=52]="I",e[e.IMG=53]="IMG",e[e.IMAGE=54]="IMAGE",e[e.INPUT=55]="INPUT",e[e.IFRAME=56]="IFRAME",e[e.KEYGEN=57]="KEYGEN",e[e.LABEL=58]="LABEL",e[e.LI=59]="LI",e[e.LINK=60]="LINK",e[e.LISTING=61]="LISTING",e[e.MAIN=62]="MAIN",e[e.MALIGNMARK=63]="MALIGNMARK",e[e.MARQUEE=64]="MARQUEE",e[e.MATH=65]="MATH",e[e.MENU=66]="MENU",e[e.META=67]="META",e[e.MGLYPH=68]="MGLYPH",e[e.MI=69]="MI",e[e.MO=70]="MO",e[e.MN=71]="MN",e[e.MS=72]="MS",e[e.MTEXT=73]="MTEXT",e[e.NAV=74]="NAV",e[e.NOBR=75]="NOBR",e[e.NOFRAMES=76]="NOFRAMES",e[e.NOEMBED=77]="NOEMBED",e[e.NOSCRIPT=78]="NOSCRIPT",e[e.OBJECT=79]="OBJECT",e[e.OL=80]="OL",e[e.OPTGROUP=81]="OPTGROUP",e[e.OPTION=82]="OPTION",e[e.P=83]="P",e[e.PARAM=84]="PARAM",e[e.PLAINTEXT=85]="PLAINTEXT",e[e.PRE=86]="PRE",e[e.RB=87]="RB",e[e.RP=88]="RP",e[e.RT=89]="RT",e[e.RTC=90]="RTC",e[e.RUBY=91]="RUBY",e[e.S=92]="S",e[e.SCRIPT=93]="SCRIPT",e[e.SEARCH=94]="SEARCH",e[e.SECTION=95]="SECTION",e[e.SELECT=96]="SELECT",e[e.SOURCE=97]="SOURCE",e[e.SMALL=98]="SMALL",e[e.SPAN=99]="SPAN",e[e.STRIKE=100]="STRIKE",e[e.STRONG=101]="STRONG",e[e.STYLE=102]="STYLE",e[e.SUB=103]="SUB",e[e.SUMMARY=104]="SUMMARY",e[e.SUP=105]="SUP",e[e.TABLE=106]="TABLE",e[e.TBODY=107]="TBODY",e[e.TEMPLATE=108]="TEMPLATE",e[e.TEXTAREA=109]="TEXTAREA",e[e.TFOOT=110]="TFOOT",e[e.TD=111]="TD",e[e.TH=112]="TH",e[e.THEAD=113]="THEAD",e[e.TITLE=114]="TITLE",e[e.TR=115]="TR",e[e.TRACK=116]="TRACK",e[e.TT=117]="TT",e[e.U=118]="U",e[e.UL=119]="UL",e[e.SVG=120]="SVG",e[e.VAR=121]="VAR",e[e.WBR=122]="WBR",e[e.XMP=123]="XMP"}(f||(f={}));let eG=new Map([[p.A,f.A],[p.ADDRESS,f.ADDRESS],[p.ANNOTATION_XML,f.ANNOTATION_XML],[p.APPLET,f.APPLET],[p.AREA,f.AREA],[p.ARTICLE,f.ARTICLE],[p.ASIDE,f.ASIDE],[p.B,f.B],[p.BASE,f.BASE],[p.BASEFONT,f.BASEFONT],[p.BGSOUND,f.BGSOUND],[p.BIG,f.BIG],[p.BLOCKQUOTE,f.BLOCKQUOTE],[p.BODY,f.BODY],[p.BR,f.BR],[p.BUTTON,f.BUTTON],[p.CAPTION,f.CAPTION],[p.CENTER,f.CENTER],[p.CODE,f.CODE],[p.COL,f.COL],[p.COLGROUP,f.COLGROUP],[p.DD,f.DD],[p.DESC,f.DESC],[p.DETAILS,f.DETAILS],[p.DIALOG,f.DIALOG],[p.DIR,f.DIR],[p.DIV,f.DIV],[p.DL,f.DL],[p.DT,f.DT],[p.EM,f.EM],[p.EMBED,f.EMBED],[p.FIELDSET,f.FIELDSET],[p.FIGCAPTION,f.FIGCAPTION],[p.FIGURE,f.FIGURE],[p.FONT,f.FONT],[p.FOOTER,f.FOOTER],[p.FOREIGN_OBJECT,f.FOREIGN_OBJECT],[p.FORM,f.FORM],[p.FRAME,f.FRAME],[p.FRAMESET,f.FRAMESET],[p.H1,f.H1],[p.H2,f.H2],[p.H3,f.H3],[p.H4,f.H4],[p.H5,f.H5],[p.H6,f.H6],[p.HEAD,f.HEAD],[p.HEADER,f.HEADER],[p.HGROUP,f.HGROUP],[p.HR,f.HR],[p.HTML,f.HTML],[p.I,f.I],[p.IMG,f.IMG],[p.IMAGE,f.IMAGE],[p.INPUT,f.INPUT],[p.IFRAME,f.IFRAME],[p.KEYGEN,f.KEYGEN],[p.LABEL,f.LABEL],[p.LI,f.LI],[p.LINK,f.LINK],[p.LISTING,f.LISTING],[p.MAIN,f.MAIN],[p.MALIGNMARK,f.MALIGNMARK],[p.MARQUEE,f.MARQUEE],[p.MATH,f.MATH],[p.MENU,f.MENU],[p.META,f.META],[p.MGLYPH,f.MGLYPH],[p.MI,f.MI],[p.MO,f.MO],[p.MN,f.MN],[p.MS,f.MS],[p.MTEXT,f.MTEXT],[p.NAV,f.NAV],[p.NOBR,f.NOBR],[p.NOFRAMES,f.NOFRAMES],[p.NOEMBED,f.NOEMBED],[p.NOSCRIPT,f.NOSCRIPT],[p.OBJ
106ECT,f.OBJECT],[p.OL,f.OL],[p.OPTGROUP,f.OPTGROUP],[p.OPTION,f.OPTION],[p.P,f.P],[p.PARAM,f.PARAM],[p.PLAINTEXT,f.PLAINTEXT],[p.PRE,f.PRE],[p.RB,f.RB],[p.RP,f.RP],[p.RT,f.RT],[p.RTC,f.RTC],[p.RUBY,f.RUBY],[p.S,f.S],[p.SCRIPT,f.SCRIPT],[p.SEARCH,f.SEARCH],[p.SECTION,f.SECTION],[p.SELECT,f.SELECT],[p.SOURCE,f.SOURCE],[p.SMALL,f.SMALL],[p.SPAN,f.SPAN],[p.STRIKE,f.STRIKE],[p.STRONG,f.STRONG],[p.STYLE,f.STYLE],[p.SUB,f.SUB],[p.SUMMARY,f.SUMMARY],[p.SUP,f.SUP],[p.TABLE,f.TABLE],[p.TBODY,f.TBODY],[p.TEMPLATE,f.TEMPLATE],[p.TEXTAREA,f.TEXTAREA],[p.TFOOT,f.TFOOT],[p.TD,f.TD],[p.TH,f.TH],[p.THEAD,f.THEAD],[p.TITLE,f.TITLE],[p.TR,f.TR],[p.TRACK,f.TRACK],[p.TT,f.TT],[p.U,f.U],[p.UL,f.UL],[p.SVG,f.SVG],[p.VAR,f.VAR],[p.WBR,f.WBR],[p.XMP,f.XMP]]);function eY(e){var t;return null!=(t=eG.get(e))?t:f.UNKNOWN}let eZ=f,eV={[c.HTML]:new Set([eZ.ADDRESS,eZ.APPLET,eZ.AREA,eZ.ARTICLE,eZ.ASIDE,eZ.BASE,eZ.BASEFONT,eZ.BGSOUND,eZ.BLOCKQUOTE,eZ.BODY,eZ.BR,eZ.BUTTON,eZ.CAPTION,eZ.CENTER,eZ.COL,eZ.COLGROUP,eZ.DD,eZ.DETAILS,eZ.DIR,eZ.DIV,eZ.DL,eZ.DT,eZ.EMBED,eZ.FIELDSET,eZ.FIGCAPTION,eZ.FIGURE,eZ.FOOTER,eZ.FORM,eZ.FRAME,eZ.FRAMESET,eZ.H1,eZ.H2,eZ.H3,eZ.H4,eZ.H5,eZ.H6,eZ.HEAD,eZ.HEADER,eZ.HGROUP,eZ.HR,eZ.HTML,eZ.IFRAME,eZ.IMG,eZ.INPUT,eZ.LI,eZ.LINK,eZ.LISTING,eZ.MAIN,eZ.MARQUEE,eZ.MENU,eZ.META,eZ.NAV,eZ.NOEMBED,eZ.NOFRAMES,eZ.NOSCRIPT,eZ.OBJECT,eZ.OL,eZ.P,eZ.PARAM,eZ.PLAINTEXT,eZ.PRE,eZ.SCRIPT,eZ.SECTION,eZ.SELECT,eZ.SOURCE,eZ.STYLE,eZ.SUMMARY,eZ.TABLE,eZ.TBODY,eZ.TD,eZ.TEMPLATE,eZ.TEXTAREA,eZ.TFOOT,eZ.TH,eZ.THEAD,eZ.TITLE,eZ.TR,eZ.TRACK,eZ.UL,eZ.WBR,eZ.XMP]),[c.MATHML]:new Set([eZ.MI,eZ.MO,eZ.MN,eZ.MS,eZ.MTEXT,eZ.ANNOTATION_XML]),[c.SVG]:new Set([eZ.TITLE,eZ.FOREIGN_OBJECT,eZ.DESC]),[c.XLINK]:new Set,[c.XML]:new Set,[c.XMLNS]:new Set},eW=new Set([eZ.H1,eZ.H2,eZ.H3,eZ.H4,eZ.H5,eZ.H6]);p.STYLE,p.SCRIPT,p.XMP,p.IFRAME,p.NOEMBED,p.NOFRAMES,p.PLAINTEXT,function(e){e[e.DATA=0]="DATA",e[e.RCDATA=1]="RCDATA",e[e.RAWTEXT=2]="RAWTEXT",e[e.SCRIPT_DATA=3]="SCRIPT_DATA",e[e.PLAINTEXT=4]="PLAINTEXT",e[e.TAG_OPEN=5]="TAG_OPEN",e[e.END_TAG_OPEN=6]="END_TAG_OPEN",e[e.TAG_NAME=7]="TAG_NAME",e[e.RCDATA_LESS_THAN_SIGN=8]="RCDATA_LESS_THAN_SIGN",e[e.RCDATA_END_TAG_OPEN=9]="RCDATA_END_TAG_OPEN",e[e.RCDATA_END_TAG_NAME=10]="RCDATA_END_TAG_NAME",e[e.RAWTEXT_LESS_THAN_SIGN=11]="RAWTEXT_LESS_THAN_SIGN",e[e.RAWTEXT_END_TAG_OPEN=12]="RAWTEXT_END_TAG_OPEN",e[e.RAWTEXT_END_TAG_NAME=13]="RAWTEXT_END_TAG_NAME",e[e.SCRIPT_DATA_LESS_THAN_SIGN=14]="SCRIPT_DATA_LESS_THAN_SIGN",e[e.SCRIPT_DATA_END_TAG_OPEN=15]="SCRIPT_DATA_END_TAG_OPEN",e[e.SCRIPT_DATA_END_TAG_NAME=16]="SCRIPT_DATA_END_TAG_NAME",e[e.SCRIPT_DATA_ESCAPE_START=17]="SCRIPT_DATA_ESCAPE_START",e[e.SCRIPT_DATA_ESCAPE_START_DASH=18]="SCRIPT_DATA_ESCAPE_START_DASH",e[e.SCRIPT_DATA_ESCAPED=19]="SCRIPT_DATA_ESCAPED",e[e.SCRIPT_DATA_ESCAPED_DASH=20]="SCRIPT_DATA_ESCAPED_DASH",e[e.SCRIPT_DATA_ESCAPED_DASH_DASH=21]="SCRIPT_DATA_ESCAPED_DASH_DASH",e[e.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN=22]="SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN",e[e.SCRIPT_DATA_ESCAPED_END_TAG_OPEN=23]="SCRIPT_DATA_ESCAPED_END_TAG_OPEN",e[e.SCRIPT_DATA_ESCAPED_END_TAG_NAME=24]="SCRIPT_DATA_ESCAPED_END_TAG_NAME",e[e.SCRIPT_DATA_DOUBLE_ESCAPE_START=25]="SCRIPT_DATA_DOUBLE_ESCAPE_START",e[e.SCRIPT_DATA_DOUBLE_ESCAPED=26]="SCRIPT_DATA_DOUBLE_ESCAPED",e[e.SCRIPT_DATA_DOUBLE_ESCAPED_DASH=27]="SCRIPT_DATA_DOUBLE_ESCAPED_DASH",e[e.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH=28]="SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH",e[e.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN=29]="SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN",e[e.SCRIPT_DATA_DOUBLE_ESCAPE_END=30]="SCRIPT_DATA_DOUBLE_ESCAPE_END",e[e.BEFORE_ATTRIBUTE_NAME=31]="BEFORE_ATTRIBUTE_NAME",e[e.ATTRIBUTE_NAME=32]="ATTRIBUTE_NAME",e[e.AFTER_ATTRIBUTE_NAME=33]="AFTER_ATTRIBUTE_NAME",e[e.BEFORE_ATTRIBUTE_VALUE=34]="BEFORE_ATTRIBUTE_VALUE",e[e.ATTRIBUTE_VALUE_DOUBLE_QUOTED=35]="ATTRIBUTE_VALUE_DOUBLE_QUOTED",e[e.ATTRIBUTE_VALUE_SINGLE_QUOTED=36]="ATTRIBUTE_VALUE_SINGLE_QUOTED",e[e.ATTRIBUTE_VALUE_UNQUOTED=37]="ATTRIBUTE_VALUE_UNQUOTED",e[e.AFTER_ATTRIBUTE_VALUE_QUOTED=38]="AFTER_ATTRIBUTE_VALUE_QUOTED",e[e.SELF_CLOSING_START_TAG=39]="SELF_CLOSING_START_TAG",e[e.BOGUS_COMMENT=40]="BOGUS_COMMENT",e[e.MARKUP_DECLARATION_OPEN=41]="MARKUP_DECLARATION_OPEN",e[e.COMMENT_START=42]="COMMENT_START",e[e.COMMENT_START_DASH=43]="COMMENT_START_DASH",e[e.COMMENT=44]="COMMENT",e[e.COMMENT_LESS_THAN_SIGN=45]="COMMENT_LESS_THAN_SIGN",e[e.COMMENT_LESS_THAN_SIGN_BANG=46]="COMMENT_LESS_THAN_SIGN_BANG",e[e.COMMENT_LESS_THAN_SIGN_BANG_DASH=47]="COMMENT_LESS_THAN_SIGN_BANG_DASH",e[e.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH=48]="COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH",e[e.COMMENT_END_DASH=49]="COMMENT_END_DASH",e[e.COMMENT_END=50]="COMMENT_END",e[e.COMMENT_END_BANG=51]="COMMENT_END_BANG",e[e.DOCTYPE=52]="DOCTYPE",e[e.BEFORE_DOCTYPE_NAME=53]="BEFORE_DOCTYPE_NAME",e[e.DOCTYPE_NAME=54]="DOCTYPE_NAME",e[e.AFTER_DOCTYPE_NAME=55]="AFTER_DOCTYPE_NAME",e[e.AFTER_DOCTYPE_PUBLIC_KEYWORD=56]="AFTER_DOCTYPE_PUBLIC_KEYWORD",e[e.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER=57]="BEFORE_DOCTYPE_PUBLIC_IDENTIFIER",e[e.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED=58]="DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED",e[e.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED=59]="DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED",e[e.AFTER_DOCTYPE_PUBLIC_IDENTIFIER=60]="AFTER_DOCTYPE_PUBLIC_IDENTIFIER",e[e.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS=61]="BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS",e[e.AFTER_DOCTYPE_SYSTEM_KEYWORD=62]="AFTER_DOCTYPE_SYSTEM_KEYWORD",e[e.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER=63]="BEFORE_DOCTYPE_SYSTEM_IDENTIFIER",e[e.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED=64]="DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED",e[e.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED=65]="DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED",e[e.AFTER_DOCTYPE_SYSTEM_IDENTIFIER=66]="AFTER_DOCTYPE_SYSTEM_IDENTIFIER",e[e.BOGUS_DOCTYPE=67]="BOGUS_DOCTYPE",e[e.CDATA_SECTION=68]="CDATA_SECTION",e[e.CDATA_SECTION_BRACKET=69]="CDATA_SECTION_BRACKET",e[e.CDATA_SECTION_END=70]="CDATA_SECTION_END",e[e.CHARACTER_REFERENCE=71]="CHARACTER_REFERENCE",e[e.AMBIGUOUS_AMPERSAND=72]="AMBIGUOUS_AMPERSAND"}(m||(m={}));let eq={DATA:m.DATA,RCDATA:m.RCDATA,RAWTEXT:m.RAWTEXT,SCRIPT_DATA:m.SCRIPT_DATA,PLAINTEXT:m.PLAINTEXT,CDATA_SECTION:m.CDATA_SECTION};function eK(e){return e>=r.LATIN_CAPITAL_A&&e<=r.LATIN_CAPITAL_Z}function eX(e){return e>=r.LATIN_SMALL_A&&e<=r.LATIN_SMALL_Z||eK(e)}function eQ(e){return eX(e)||e>=r.DIGIT_0&&e<=r.DIGIT_9}function eJ(e){return e===r.SPACE||e===r.LINE_FEED||e===r.TABULATION||e===r.FORM_FEED}function e0(e){return eJ(e)||e===r.SOLIDUS||e===r.GREATER_THAN_SIGN}class e1{constructor(e,t){this.options=e,this.handler=t,this.paused=!1,this.inLoop=!1,this.inForeignNode=!1,this.lastStartTagName="",this.active=!1,this.state=m.DATA,this.returnState=m.DATA,this.entityStartPos=0,this.consumedAfterSnapshot=-1,this.currentCharacterToken=null,this.currentToken=null,this.currentAttr={name:"",value:""},this.preprocessor=new ez(t),this.currentLocation=this.getCurrentLocation(-1),this.entityDecoder=new eH(eB,(e,t)=>{this.preprocessor.pos=this.entityStartPos+t-1,this._flushCodePointConsumedAsCharacterReference(e)},t.onParseError?{missingSemicolonAfterCharacterReference:()=>{this._err(i.missingSemicolonAfterCharacterReference,1)},absenceOfDigitsInNumericCharacterReference:e=>{this._err(i.absenceOfDigitsInNumericCharacterReference,this.entityStartPos-this.preprocessor.pos+e)},validateNumericCharacterReference:e=>{let t=function(e){if(e===r.NULL)return i.nullCharacterReference;if(e>1114111)return i.characterReferenceOutsideUnicodeRange;if(eM(e))return i.surrogateCharacterReference;if(ej(e))return i.noncharacterCharacterReference;
106if(eL(e)||e===r.CARRIAGE_RETURN)return i.controlCharacterReference;return null}(e);t&&this._err(t,1)}}:void 0)}_err(e,t=0){var n,r;null==(r=(n=this.handler).onParseError)||r.call(n,this.preprocessor.getError(e,t))}getCurrentLocation(e){return this.options.sourceCodeLocationInfo?{startLine:this.preprocessor.line,startCol:this.preprocessor.col-e,startOffset:this.preprocessor.offset-e,endLine:-1,endCol:-1,endOffset:-1}:null}_runParsingLoop(){if(!this.inLoop){for(this.inLoop=!0;this.active&&!this.paused;){this.consumedAfterSnapshot=0;let e=this._consume();this._ensureHibernation()||this._callState(e)}this.inLoop=!1}}pause(){this.paused=!0}resume(e){if(!this.paused)throw Error("Parser was already resumed");this.paused=!1,!this.inLoop&&(this._runParsingLoop(),this.paused||null==e||e())}write(e,t,n){this.active=!0,this.preprocessor.write(e,t),this._runParsingLoop(),this.paused||null==n||n()}insertHtmlAtCurrentPos(e){this.active=!0,this.preprocessor.insertHtmlAtCurrentPos(e),this._runParsingLoop()}_ensureHibernation(){return!!this.preprocessor.endOfChunkHit&&(this.preprocessor.retreat(this.consumedAfterSnapshot),this.consumedAfterSnapshot=0,this.active=!1,!0)}_consume(){return this.consumedAfterSnapshot++,this.preprocessor.advance()}_advanceBy(e){this.consumedAfterSnapshot+=e;for(let t=0;t<e;t++)this.preprocessor.advance()}_consumeSequenceIfMatch(e,t){return!!this.preprocessor.startsWith(e,t)&&(this._advanceBy(e.length-1),!0)}_createStartTagToken(){this.currentToken={type:s.START_TAG,tagName:"",tagID:f.UNKNOWN,selfClosing:!1,ackSelfClosing:!1,attrs:[],location:this.getCurrentLocation(1)}}_createEndTagToken(){this.currentToken={type:s.END_TAG,tagName:"",tagID:f.UNKNOWN,selfClosing:!1,ackSelfClosing:!1,attrs:[],location:this.getCurrentLocation(2)}}_createCommentToken(e){this.currentToken={type:s.COMMENT,data:"",location:this.getCurrentLocation(e)}}_createDoctypeToken(e){this.currentToken={type:s.DOCTYPE,name:e,forceQuirks:!1,publicId:null,systemId:null,location:this.currentLocation}}_createCharacterToken(e,t){this.currentCharacterToken={type:e,chars:t,location:this.currentLocation}}_createAttr(e){this.currentAttr={name:e,value:""},this.currentLocation=this.getCurrentLocation(0)}_leaveAttrName(){var e,t;let n=this.currentToken;null===eF(n,this.currentAttr.name)?(n.attrs.push(this.currentAttr),n.location&&this.currentLocation&&((null!=(e=(t=n.location).attrs)?e:t.attrs=Object.create(null))[this.currentAttr.name]=this.currentLocation,this._leaveAttrValue())):this._err(i.duplicateAttribute)}_leaveAttrValue(){this.currentLocation&&(this.currentLocation.endLine=this.preprocessor.line,this.currentLocation.endCol=this.preprocessor.col,this.currentLocation.endOffset=this.preprocessor.offset)}prepareToken(e){this._emitCurrentCharacterToken(e.location),this.currentToken=null,e.location&&(e.location.endLine=this.preprocessor.line,e.location.endCol=this.preprocessor.col+1,e.location.endOffset=this.preprocessor.offset+1),this.currentLocation=this.getCurrentLocation(-1)}emitCurrentTagToken(){let e=this.currentToken;this.prepareToken(e),e.tagID=eY(e.tagName),e.type===s.START_TAG?(this.lastStartTagName=e.tagName,this.handler.onStartTag(e)):(e.attrs.length>0&&this._err(i.endTagWithAttributes),e.selfClosing&&this._err(i.endTagWithTrailingSolidus),this.handler.onEndTag(e)),this.preprocessor.dropParsedChunk()}emitCurrentComment(e){this.prepareToken(e),this.handler.onComment(e),this.preprocessor.dropParsedChunk()}emitCurrentDoctype(e){this.prepareToken(e),this.handler.onDoctype(e),this.preprocessor.dropParsedChunk()}_emitCurrentCharacterToken(e){if(this.currentCharacterToken){switch(e&&this.currentCharacterToken.location&&(this.currentCharacterToken.location.endLine=e.startLine,this.currentCharacterToken.location.endCol=e.startCol,this.currentCharacterToken.location.endOffset=e.startOffset),this.currentCharacterToken.type){case s.CHARACTER:this.handler.onCharacter(this.currentCharacterToken);break;case s.NULL_CHARACTER:this.handler.onNullCharacter(this.currentCharacterToken);break;case s.WHITESPACE_CHARACTER:this.handler.onWhitespaceCharacter(this.currentCharacterToken)}this.currentCharacterToken=null}}_emitEOFToken(){let e=this.getCurrentLocation(0);e&&(e.endLine=e.startLine,e.endCol=e.startCol,e.endOffset=e.startOffset),this._emitCurrentCharacterToken(e),this.handler.onEof({type:s.EOF,location:e}),this.active=!1}_appendCharToCurrentCharacterToken(e,t){if(this.currentCharacterToken)if(this.currentCharacterToken.type===e){this.currentCharacterToken.chars+=t;return}else this.currentLocation=this.getCurrentLocation(0),this._emitCurrentCharacterToken(this.currentLocation),this.preprocessor.dropParsedChunk();this._createCharacterToken(e,t)}_emitCodePoint(e){let t=eJ(e)?s.WHITESPACE_CHARACTER:e===r.NULL?s.NULL_CHARACTER:s.CHARACTER;this._appendCharToCurrentCharacterToken(t,String.fromCodePoint(e))}_emitChars(e){this._appendCharToCurrentCharacterToken(s.CHARACTER,e)}_startCharacterReference(){this.returnState=this.state,this.state=m.CHARACTER_REFERENCE,this.entityStartPos=this.preprocessor.pos,this.entityDecoder.startEntity(this._isCharacterReferenceInAttribute()?u.Attribute:u.Legacy)}_isCharacterReferenceInAttribute(){return this.returnState===m.ATTRIBUTE_VALUE_DOUBLE_QUOTED||this.returnState===m.ATTRIBUTE_VALUE_SINGLE_QUOTED||this.returnState===m.ATTRIBUTE_VALUE_UNQUOTED}_flushCodePointConsumedAsCharacterReference(e){this._isCharacterReferenceInAttribute()?this.currentAttr.value+=String.fromCodePoint(e):this._emitCodePoint(e)}_callState(e){switch(this.state){case m.DATA:this._stateData(e);break;case m.RCDATA:this._stateRcdata(e);break;case m.RAWTEXT:this._stateRawtext(e);break;case m.SCRIPT_DATA:this._stateScriptData(e);break;case m.PLAINTEXT:this._statePlaintext(e);break;case m.TAG_OPEN:this._stateTagOpen(e);break;case m.END_TAG_OPEN:this._stateEndTagOpen(e);break;case m.TAG_NAME:this._stateTagName(e);break;case m.RCDATA_LESS_THAN_SIGN:this._stateRcdataLessThanSign(e);break;case m.RCDATA_END_TAG_OPEN:this._stateRcdataEndTagOpen(e);break;case m.RCDATA_END_TAG_NAME:this._stateRcdataEndTagName(e);break;case m.RAWTEXT_LESS_THAN_SIGN:this._stateRawtextLessThanSign(e);break;case m.RAWTEXT_END_TAG_OPEN:this._stateRawtextEndTagOpen(e);break;case m.RAWTEXT_END_TAG_NAME:this._stateRawtextEndTagName(e);break;case m.SCRIPT_DATA_LESS_THAN_SIGN:this._stateScriptDataLessThanSign(e);break;case m.SCRIPT_DATA_END_TAG_OPEN:this._stateScriptDataEndTagOpen(e);break;case m.SCRIPT_DATA_END_TAG_NAME:this._stateScriptDataEndTagName(e);break;case m.SCRIPT_DATA_ESCAPE_START:this._stateScriptDataEscapeStart(e);break;case m.SCRIPT_DATA_ESCAPE_START_DASH:this._stateScriptDataEscapeStartDash(e);break;case m.SCRIPT_DATA_ESCAPED:this._stateScriptDataEscaped(e);break;case m.SCRIPT_DATA_ESCAPED_DASH:this._stateScriptDataEscapedDash(e);break;case m.SCRIPT_DATA_ESCAPED_DASH_DASH:this._stateScriptDataEscapedDashDash(e);break;case m.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN:this._stateScriptDataEscapedLessThanSign(e);break;case m.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:this._stateScriptDataEscapedEndTagOpen(e);break;case m.SCRIPT_DATA_ESCAPED_END_TAG_NAME:this._stateScriptDataEscapedEndTagName(e);break;case m.SCRIPT_DATA_DOUBLE_ESCAPE_START:this._stateScriptDataDoubleEscape
vendor: 14,256 bytes, line 106
106Start(e);break;case m.SCRIPT_DATA_DOUBLE_ESCAPED:this._stateScriptDataDoubleEscaped(e);break;case m.SCRIPT_DATA_DOUBLE_ESCAPED_DASH:this._stateScriptDataDoubleEscapedDash(e);break;case m.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH:this._stateScriptDataDoubleEscapedDashDash(e);break;case m.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN:this._stateScriptDataDoubleEscapedLessThanSign(e);break;case m.SCRIPT_DATA_DOUBLE_ESCAPE_END:this._stateScriptDataDoubleEscapeEnd(e);break;case m.BEFORE_ATTRIBUTE_NAME:this._stateBeforeAttributeName(e);break;case m.ATTRIBUTE_NAME:this._stateAttributeName(e);break;case m.AFTER_ATTRIBUTE_NAME:this._stateAfterAttributeName(e);break;case m.BEFORE_ATTRIBUTE_VALUE:this._stateBeforeAttributeValue(e);break;case m.ATTRIBUTE_VALUE_DOUBLE_QUOTED:this._stateAttributeValueDoubleQuoted(e);break;case m.ATTRIBUTE_VALUE_SINGLE_QUOTED:this._stateAttributeValueSingleQuoted(e);break;case m.ATTRIBUTE_VALUE_UNQUOTED:this._stateAttributeValueUnquoted(e);break;case m.AFTER_ATTRIBUTE_VALUE_QUOTED:this._stateAfterAttributeValueQuoted(e);break;case m.SELF_CLOSING_START_TAG:this._stateSelfClosingStartTag(e);break;case m.BOGUS_COMMENT:this._stateBogusComment(e);break;case m.MARKUP_DECLARATION_OPEN:this._stateMarkupDeclarationOpen(e);break;case m.COMMENT_START:this._stateCommentStart(e);break;case m.COMMENT_START_DASH:this._stateCommentStartDash(e);break;case m.COMMENT:this._stateComment(e);break;case m.COMMENT_LESS_THAN_SIGN:this._stateCommentLessThanSign(e);break;case m.COMMENT_LESS_THAN_SIGN_BANG:this._stateCommentLessThanSignBang(e);break;case m.COMMENT_LESS_THAN_SIGN_BANG_DASH:this._stateCommentLessThanSignBangDash(e);break;case m.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:this._stateCommentLessThanSignBangDashDash(e);break;case m.COMMENT_END_DASH:this._stateCommentEndDash(e);break;case m.COMMENT_END:this._stateCommentEnd(e);break;case m.COMMENT_END_BANG:this._stateCommentEndBang(e);break;case m.DOCTYPE:this._stateDoctype(e);break;case m.BEFORE_DOCTYPE_NAME:this._stateBeforeDoctypeName(e);break;case m.DOCTYPE_NAME:this._stateDoctypeName(e);break;case m.AFTER_DOCTYPE_NAME:this._stateAfterDoctypeName(e);break;case m.AFTER_DOCTYPE_PUBLIC_KEYWORD:this._stateAfterDoctypePublicKeyword(e);break;case m.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER:this._stateBeforeDoctypePublicIdentifier(e);break;case m.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED:this._stateDoctypePublicIdentifierDoubleQuoted(e);break;case m.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED:this._stateDoctypePublicIdentifierSingleQuoted(e);break;case m.AFTER_DOCTYPE_PUBLIC_IDENTIFIER:this._stateAfterDoctypePublicIdentifier(e);break;case m.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS:this._stateBetweenDoctypePublicAndSystemIdentifiers(e);break;case m.AFTER_DOCTYPE_SYSTEM_KEYWORD:this._stateAfterDoctypeSystemKeyword(e);break;case m.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER:this._stateBeforeDoctypeSystemIdentifier(e);break;case m.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED:this._stateDoctypeSystemIdentifierDoubleQuoted(e);break;case m.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED:this._stateDoctypeSystemIdentifierSingleQuoted(e);break;case m.AFTER_DOCTYPE_SYSTEM_IDENTIFIER:this._stateAfterDoctypeSystemIdentifier(e);break;case m.BOGUS_DOCTYPE:this._stateBogusDoctype(e);break;case m.CDATA_SECTION:this._stateCdataSection(e);break;case m.CDATA_SECTION_BRACKET:this._stateCdataSectionBracket(e);break;case m.CDATA_SECTION_END:this._stateCdataSectionEnd(e);break;case m.CHARACTER_REFERENCE:this._stateCharacterReference();break;case m.AMBIGUOUS_AMPERSAND:this._stateAmbiguousAmpersand(e);break;default:throw Error("Unknown state")}}_stateData(e){switch(e){case r.LESS_THAN_SIGN:this.state=m.TAG_OPEN;break;case r.AMPERSAND:this._startCharacterReference();break;case r.NULL:this._err(i.unexpectedNullCharacter),this._emitCodePoint(e);break;case r.EOF:this._emitEOFToken();break;default:this._emitCodePoint(e)}}_stateRcdata(e){switch(e){case r.AMPERSAND:this._startCharacterReference();break;case r.LESS_THAN_SIGN:this.state=m.RCDATA_LESS_THAN_SIGN;break;case r.NULL:this._err(i.unexpectedNullCharacter),this._emitChars("�");break;case r.EOF:this._emitEOFToken();break;default:this._emitCodePoint(e)}}_stateRawtext(e){switch(e){case r.LESS_THAN_SIGN:this.state=m.RAWTEXT_LESS_THAN_SIGN;break;case r.NULL:this._err(i.unexpectedNullCharacter),this._emitChars("�");break;case r.EOF:this._emitEOFToken();break;default:this._emitCodePoint(e)}}_stateScriptData(e){switch(e){case r.LESS_THAN_SIGN:this.state=m.SCRIPT_DATA_LESS_THAN_SIGN;break;case r.NULL:this._err(i.unexpectedNullCharacter),this._emitChars("�");break;case r.EOF:this._emitEOFToken();break;default:this._emitCodePoint(e)}}_statePlaintext(e){switch(e){case r.NULL:this._err(i.unexpectedNullCharacter),this._emitChars("�");break;case r.EOF:this._emitEOFToken();break;default:this._emitCodePoint(e)}}_stateTagOpen(e){if(eX(e))this._createStartTagToken(),this.state=m.TAG_NAME,this._stateTagName(e);else switch(e){case r.EXCLAMATION_MARK:this.state=m.MARKUP_DECLARATION_OPEN;break;case r.SOLIDUS:this.state=m.END_TAG_OPEN;break;case r.QUESTION_MARK:this._err(i.unexpectedQuestionMarkInsteadOfTagName),this._createCommentToken(1),this.state=m.BOGUS_COMMENT,this._stateBogusComment(e);break;case r.EOF:this._err(i.eofBeforeTagName),this._emitChars("<"),this._emitEOFToken();break;default:this._err(i.invalidFirstCharacterOfTagName),this._emitChars("<"),this.state=m.DATA,this._stateData(e)}}_stateEndTagOpen(e){if(eX(e))this._createEndTagToken(),this.state=m.TAG_NAME,this._stateTagName(e);else switch(e){case r.GREATER_THAN_SIGN:this._err(i.missingEndTagName),this.state=m.DATA;break;case r.EOF:this._err(i.eofBeforeTagName),this._emitChars("</"),this._emitEOFToken();break;default:this._err(i.invalidFirstCharacterOfTagName),this._createCommentToken(2),this.state=m.BOGUS_COMMENT,this._stateBogusComment(e)}}_stateTagName(e){let t=this.currentToken;switch(e){case r.SPACE:case r.LINE_FEED:case r.TABULATION:case r.FORM_FEED:this.state=m.BEFORE_ATTRIBUTE_NAME;break;case r.SOLIDUS:this.state=m.SELF_CLOSING_START_TAG;break;case r.GREATER_THAN_SIGN:this.state=m.DATA,this.emitCurrentTagToken();break;case r.NULL:this._err(i.unexpectedNullCharacter),t.tagName+="�";break;case r.EOF:this._err(i.eofInTag),this._emitEOFToken();break;default:t.tagName+=String.fromCodePoint(eK(e)?e+32:e)}}_stateRcdataLessThanSign(e){e===r.SOLIDUS?this.state=m.RCDATA_END_TAG_OPEN:(this._emitChars("<"),this.state=m.RCDATA,this._stateRcdata(e))}_stateRcdataEndTagOpen(e){eX(e)?(this.state=m.RCDATA_END_TAG_NAME,this._stateRcdataEndTagName(e)):(this._emitChars("</"),this.state=m.RCDATA,this._stateRcdata(e))}handleSpecialEndTag(e){if(!this.preprocessor.startsWith(this.lastStartTagName,!1))return!this._ensureHibernation();switch(this._createEndTagToken(),this.currentToken.tagName=this.lastStartTagName,this.preprocessor.peek(this.lastStartTagName.length)){case r.SPACE:case r.LINE_FEED:case r.TABULATION:case r.FORM_FEED:return this._advanceBy(this.lastStartTagName.length),this.state=m.BEFORE_ATTRIBUTE_NAME,!1;case r.SOLIDUS:return this._advanceBy(this.lastStartTagName.length),this.state=m.SELF_CLOSING_START_TAG,!1;case r.GREATER_THAN_SIGN:return this._advanceBy(this.lastStartTagName.length),this.emitCurrentTagToken(),this.state=m.DATA,!1;default:return!this._ensureHibernation()}}_stateRcdataEndTagName(e){this.handleSpecialEndTag(e)&&(this._emitChars("</"),this.state=m.RCDATA,this._stateRcdata(e))}_stateRawtextLessThanSign(e){e===r.SOLIDUS?this.state=m.RAWTEXT_END_TAG_OPEN:(this._emitChars("<"),this.state=m.RAWTEXT,this._stateRawtext(e))}_stateRawtextEndTagOpen(e){eX(e)?(this.state=m.RAWTEXT_END_TAG_NAME,this._stateRawtextEndTagName(e)):(this._emitChars("</"),this.state=m.RAWTEXT,this._stateRawtext(e))}_stateRawtextEndTagName(e){this.handleSpecialEndTag(e)&&(this._emitChars("</"),this.state=m.RAWTEXT,this._stateRawtext(e))}_stateScriptDataLessThanSign(e){switch(e){case r.SOLIDUS:this.state=m.SCRIPT_DATA_END_TAG_OPEN;break;case r.EXCLAMATION_MARK:this.state=m.SCRIPT_DATA_ESCAPE_START,this._emitChars("<!");break;default:this._emitChars("<"),this.state=m.SCRIPT_DATA,this._stateScriptData(e)}}_stateScriptDataEndTagOpen(e){eX(e)?(this.state=m.SCRIPT_DATA_END_TAG_NAME,this._stateScriptDataEndTagName(e)):(this._emitChars("</"),this.state=m.SCRIPT_DATA,this._stateScriptData(e))}_stateScriptDataEndTagName(e){this.handleSpecialEndTag(e)&&(this._emitChars("</"),this.state=m.SCRIPT_DATA,this._stateScriptData(e))}_stateScriptDataEscapeStart(e){e===r.HYPHEN_MINUS?(this.state=m.SCRIPT_DATA_ESCAPE_START_DASH,this._emitChars("-")):(this.state=m.SCRIPT_DATA,this._stateScriptData(e))}_stateScriptDataEscapeStartDash(e){e===r.HYPHEN_MINUS?(this.state=m.SCRIPT_DATA_ESCAPED_DASH_DASH,this._emitChars("-")):(this.state=m.SCRIPT_DATA,this._stateScriptData(e))}_stateScriptDataEscaped(e){switch(e){case r.HYPHEN_MINUS:this.state=m.SCRIPT_DATA_ESCAPED_DASH,this._emitChars("-");break;case r.LESS_THAN_SIGN:this.state=m.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break;case r.NULL:this._err(i.unexpectedNullCharacter),this._emitChars("�");break;case r.EOF:this._err(i.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break;default:this._emitCodePoint(e)}}_stateScriptDataEscapedDash(e){switch(e){case r.HYPHEN_MINUS:this.state=m.SCRIPT_DATA_ESCAPED_DASH_DASH,this._emitChars("-");break;case r.LESS_THAN_SIGN:this.state=m.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break;case r.NULL:this._err(i.unexpectedNullCharacter),this.state=m.SCRIPT_DATA_ESCAPED,this._emitChars("�");break;case r.EOF:this._err(i.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break;default:this.state=m.SCRIPT_DATA_ESCAPED,this._emitCodePoint(e)}}_stateScriptDataEscapedDashDash(e){switch(e){case r.HYPHEN_MINUS:this._emitChars("-");break;case r.LESS_THAN_SIGN:this.state=m.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break;case r.GREATER_THAN_SIGN:this.state=m.SCRIPT_DATA,this._emitChars(">");break;case r.NULL:this._err(i.unexpectedNullCharacter),this.state=m.SCRIPT_DATA_ESCAPED,this._emitChars("�");break;case r.EOF:this._err(i.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break;default:this.state=m.SCRIPT_DATA_ESCAPED,this._emitCodePoint(e)}}_stateScriptDataEscapedLessThanSign(e){e===r.SOLIDUS?this.state=m.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:eX(e)?(this._emitChars("<"),this.state=m.SCRIPT_DATA_DOUBLE_ESCAPE_START,this._stateScriptDataDoubleEscapeStart(e)):(this._emitChars("<"),this.state=m.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(e))}_stateScriptDataEscapedEndTagOpen(e){eX(e)?(this.state=m.SCRIPT_DATA_ESCAPED_END_TAG_NAME,this._stateScriptDataEscapedEndTagName(e)):(this._emitChars("</"),this.state=m.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(e))}_stateScriptDataEscapedEndTagName(e){this.handleSpecialEndTag(e)&&(this._emitChars("</"),this.state=m.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(e))}_stateScriptDataDoubleEscapeStart(e){if(this.preprocessor.startsWith(eD.SCRIPT,!1)&&e0(this.preprocessor.peek(eD.SCRIPT.length))){this._emitCodePoint(e);for(let e=0;e<eD.SCRIPT.length;e++)this._emitCodePoint(this._consume());this.state=m.SCRIPT_DATA_DOUBLE_ESCAPED}else this._ensureHibernation()||(this.state=m.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(e))}_stateScriptDataDoubleEscaped(e){switch(e){case r.HYPHEN_MINUS:this.state=m.SCRIPT_DATA_DOUBLE_ESCAPED_DASH,this._emitChars("-");break;case r.LESS_THAN_SIGN:this.state=m.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break;case r.NULL:this._err(i.unexpectedNullCharacter),this._emitChars("�");break;case r.EOF:this._err(i.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break;default:this._emitCodePoint(e)}}_stateScriptDataDoubleEscapedDash(e){switch(e){case r.HYPHEN_MINUS:this.state=m.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH,this._emitChars("-");break;case r.LESS_THAN_SIGN:this.state=m.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break;case r.NULL:this._err(i.unexpectedNullCharacter),this.state=m.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars("�");break;case r.EOF:this._err(i.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break;default:this.state=m.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(e)}}_stateScriptDataDoubleEscapedDashDash(e){switch(e){case r.HYPHEN_MINUS:this._emitChars("-");break;case r.LESS_THAN_SIGN:this.state=m.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break;case r.GREATER_THAN_SIGN:this.state=m.SCRIPT_DATA,this._emitChars(">");break;case r.NULL:this._err(i.unexpectedNullCharacter),this.state=m.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars("�");break;case r.EOF:this._err(i.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break;default:this.state=m.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(e)}}_stateScriptDataDoubleEscapedLessThanSign(e){e===r.SOLIDUS?(this.state=m.SCRIPT_DATA_DOUBLE_ESCAPE_END,this._emitChars("/")):(this.state=m.SCRIPT_DATA_DOUBLE_ESCAPED,this._stateScriptDataDoubleEscaped(e))}_stateScriptDataDoubleEscapeEnd(e){if(this.preprocessor.startsWith(eD.SCRIPT,!1)&&e0(this.preprocessor.peek(eD.SCRIPT.length))){this._emitCodePoint(e);for(let e=0;e<eD.SCRIPT.length;e++)this._emitCodePoint(this._consume());this.state=m.SCRIPT_DATA_ESCAPED}else this._ensureHibernation()||(this.state=m.SCRIPT_DATA_DOUBLE_ESCAPED,this._stateScriptDataDoubleEscaped(e))}_stateBeforeAttributeName(e){switch(e){case r.SPACE:case r.LINE_FEED:case r.TABULATION:case r.FORM_FEED:break;case r.SOLIDUS:case r.GREATER_THAN_SIGN:case r.EOF:this.state=m.AFTER_ATTRIBUTE_NAME,this._stateAfterAttributeName(e);break;case r.EQUALS_SIGN:this._err(i.unexpectedEqualsSignBeforeAttributeName),this._createAttr("="),this.state=m.ATTRIBUTE_NAME;break;default:this._createAttr(""),this.state=m.ATTRIBUTE_NAME,this._stateAttributeName(e)}}_stateAttributeName(e){switch(e){case r.SPACE:case r.LINE_FEED:case r.TABULATION:case r.FORM_FEED:case r.SOLIDUS:case r.GREATER_THAN_SIGN:case r.EOF:this._leaveAttrName(),this.state=m.AFTER_ATTRIBUTE_NAME,this._stateAfterAttributeName(e);break;case r.EQUALS_SIGN:this._leaveAttrName(),this.state=m.BEFORE_ATTRIBUTE_VALUE;break;case r.QUOTATION_MARK:case r.APOSTROPHE:case r.LESS_THAN_SIGN:this._err(i.unexpectedCharacterInAttributeName),this.currentAttr.name+=String.fromCodePoint(e);break;case r.NULL:this._err(i.unexpectedNullCharacter),this.currentAttr.name+="
106�";break;default:this.currentAttr.name+=String.fromCodePoint(eK(e)?e+32:e)}}_stateAfterAttributeName(e){switch(e){case r.SPACE:case r.LINE_FEED:case r.TABULATION:case r.FORM_FEED:break;case r.SOLIDUS:this.state=m.SELF_CLOSING_START_TAG;break;case r.EQUALS_SIGN:this.state=m.BEFORE_ATTRIBUTE_VALUE;break;case r.GREATER_THAN_SIGN:this.state=m.DATA,this.emitCurrentTagToken();break;case r.EOF:this._err(i.eofInTag),this._emitEOFToken();break;default:this._createAttr(""),this.state=m.ATTRIBUTE_NAME,this._stateAttributeName(e)}}_stateBeforeAttributeValue(e){switch(e){case r.SPACE:case r.LINE_FEED:case r.TABULATION:case r.FORM_FEED:break;case r.QUOTATION_MARK:this.state=m.ATTRIBUTE_VALUE_DOUBLE_QUOTED;break;case r.APOSTROPHE:this.state=m.ATTRIBUTE_VALUE_SINGLE_QUOTED;break;case r.GREATER_THAN_SIGN:this._err(i.missingAttributeValue),this.state=m.DATA,this.emitCurrentTagToken();break;default:this.state=m.ATTRIBUTE_VALUE_UNQUOTED,this._stateAttributeValueUnquoted(e)}}_stateAttributeValueDoubleQuoted(e){switch(e){case r.QUOTATION_MARK:this.state=m.AFTER_ATTRIBUTE_VALUE_QUOTED;break;case r.AMPERSAND:this._startCharacterReference();break;case r.NULL:this._err(i.unexpectedNullCharacter),this.currentAttr.value+="�";break;case r.EOF:this._err(i.eofInTag),this._emitEOFToken();break;default:this.currentAttr.value+=String.fromCodePoint(e)}}_stateAttributeValueSingleQuoted(e){switch(e){case r.APOSTROPHE:this.state=m.AFTER_ATTRIBUTE_VALUE_QUOTED;break;case r.AMPERSAND:this._startCharacterReference();break;case r.NULL:this._err(i.unexpectedNullCharacter),this.currentAttr.value+="�";break;case r.EOF:this._err(i.eofInTag),this._emitEOFToken();break;default:this.currentAttr.value+=String.fromCodePoint(e)}}_stateAttributeValueUnquoted(e){switch(e){case r.SPACE:case r.LINE_FEED:case r.TABULATION:case r.FORM_FEED:this._leaveAttrValue(),this.state=m.BEFORE_ATTRIBUTE_NAME;break;case r.AMPERSAND:this._startCharacterReference();break;case r.GREATER_THAN_SIGN:this._leaveAttrValue(),this.state=m.DATA,this.emitCurrentTagToken();break;case r.NULL:this._err(i.unexpectedNullCharacter),this.currentAttr.value+="�";break;case r.QUOTATION_MARK:case r.APOSTROPHE:case r.LESS_THAN_SIGN:case r.EQUALS_SIGN:case r.GRAVE_ACCENT:this._err(i.unexpectedCharacterInUnquotedAttributeValue),this.currentAttr.value+=String.fromCodePoint(e);break;case r.EOF:this._err(i.eofInTag),this._emitEOFToken();break;default:this.currentAttr.value+=String.fromCodePoint(e)}}_stateAfterAttributeValueQuoted(e){switch(e){case r.SPACE:case r.LINE_FEED:case r.TABULATION:case r.FORM_FEED:this._leaveAttrValue(),this.state=m.BEFORE_ATTRIBUTE_NAME;break;case r.SOLIDUS:this._leaveAttrValue(),this.state=m.SELF_CLOSING_START_TAG;break;case r.GREATER_THAN_SIGN:this._leaveAttrValue(),this.state=m.DATA,this.emitCurrentTagToken();break;case r.EOF:this._err(i.eofInTag),this._emitEOFToken();break;default:this._err(i.missingWhitespaceBetweenAttributes),this.state=m.BEFORE_ATTRIBUTE_NAME,this._stateBeforeAttributeName(e)}}_stateSelfClosingStartTag(e){switch(e){case r.GREATER_THAN_SIGN:this.currentToken.selfClosing=!0,this.state=m.DATA,this.emitCurrentTagToken();break;case r.EOF:this._err(i.eofInTag),this._emitEOFToken();break;default:this._err(i.unexpectedSolidusInTag),this.state=m.BEFORE_ATTRIBUTE_NAME,this._stateBeforeAttributeName(e)}}_stateBogusComment(e){let t=this.currentToken;switch(e){case r.GREATER_THAN_SIGN:this.state=m.DATA,this.emitCurrentComment(t);break;case r.EOF:this.emitCurrentComment(t),this._emitEOFToken();break;case r.NULL:this._err(i.unexpectedNullCharacter),t.data+="�";break;default:t.data+=String.fromCodePoint(e)}}_stateMarkupDeclarationOpen(e){this._consumeSequenceIfMatch(eD.DASH_DASH,!0)?(this._createCommentToken(eD.DASH_DASH.length+1),this.state=m.COMMENT_START):this._consumeSequenceIfMatch(eD.DOCTYPE,!1)?(this.currentLocation=this.getCurrentLocation(eD.DOCTYPE.length+1),this.state=m.DOCTYPE):this._consumeSequenceIfMatch(eD.CDATA_START,!0)?this.inForeignNode?this.state=m.CDATA_SECTION:(this._err(i.cdataInHtmlContent),this._createCommentToken(eD.CDATA_START.length+1),this.currentToken.data="[CDATA[",this.state=m.BOGUS_COMMENT):this._ensureHibernation()||(this._err(i.incorrectlyOpenedComment),this._createCommentToken(2),this.state=m.BOGUS_COMMENT,this._stateBogusComment(e))}_stateCommentStart(e){switch(e){case r.HYPHEN_MINUS:this.state=m.COMMENT_START_DASH;break;case r.GREATER_THAN_SIGN:{this._err(i.abruptClosingOfEmptyComment),this.state=m.DATA;let e=this.currentToken;this.emitCurrentComment(e);break}default:this.state=m.COMMENT,this._stateComment(e)}}_stateCommentStartDash(e){let t=this.currentToken;switch(e){case r.HYPHEN_MINUS:this.state=m.COMMENT_END;break;case r.GREATER_THAN_SIGN:this._err(i.abruptClosingOfEmptyComment),this.state=m.DATA,this.emitCurrentComment(t);break;case r.EOF:this._err(i.eofInComment),this.emitCurrentComment(t),this._emitEOFToken();break;default:t.data+="-",this.state=m.COMMENT,this._stateComment(e)}}_stateComment(e){let t=this.currentToken;switch(e){case r.HYPHEN_MINUS:this.state=m.COMMENT_END_DASH;break;case r.LESS_THAN_SIGN:t.data+="<",this.state=m.COMMENT_LESS_THAN_SIGN;break;case r.NULL:this._err(i.unexpectedNullCharacter),t.data+="�";break;case r.EOF:this._err(i.eofInComment),this.emitCurrentComment(t),this._emitEOFToken();break;default:t.data+=String.fromCodePoint(e)}}_stateCommentLessThanSign(e){let t=this.currentToken;switch(e){case r.EXCLAMATION_MARK:t.data+="!",this.state=m.COMMENT_LESS_THAN_SIGN_BANG;break;case r.LESS_THAN_SIGN:t.data+="<";break;default:this.state=m.COMMENT,this._stateComment(e)}}_stateCommentLessThanSignBang(e){e===r.HYPHEN_MINUS?this.state=m.COMMENT_LESS_THAN_SIGN_BANG_DASH:(this.state=m.COMMENT,this._stateComment(e))}_stateCommentLessThanSignBangDash(e){e===r.HYPHEN_MINUS?this.state=m.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:(this.state=m.COMMENT_END_DASH,this._stateCommentEndDash(e))}_stateCommentLessThanSignBangDashDash(e){e!==r.GREATER_THAN_SIGN&&e!==r.EOF&&this._err(i.nestedComment),this.state=m.COMMENT_END,this._stateCommentEnd(e)}_stateCommentEndDash(e){let t=this.currentToken;switch(e){case r.HYPHEN_MINUS:this.state=m.COMMENT_END;break;case r.EOF:this._err(i.eofInComment),this.emitCurrentComment(t),this._emitEOFToken();break;default:t.data+="-",this.state=m.COMMENT,this._stateComment(e)}}_stateCommentEnd(e){let t=this.currentToken;switch(e){case r.GREATER_THAN_SIGN:this.state=m.DATA,this.emitCurrentComment(t);break;case r.EXCLAMATION_MARK:this.state=m.COMMENT_END_BANG;break;case r.HYPHEN_MINUS:t.data+="-";break;case r.EOF:this._err(i.eofInComment),this.emitCurrentComment(t),this._emitEOFToken();break;default:t.data+="--",this.state=m.COMMENT,this._stateComment(e)}}_stateCommentEndBang(e){let t=this.currentToken;switch(e){case r.HYPHEN_MINUS:t.data+="--!",this.state=m.COMMENT_END_DASH;break;case r.GREATER_THAN_SIGN:this._err(i.incorrectlyClosedComment),this.state=m.DATA,this.emitCurrentComment(t);break;case r.EOF:this._err(i.eofInComment),this.emitCurrentComment(t),this._emitEOFToken();break;default:t.data+="--!",this.state=m.COMMENT,this._stateComment(e)}}_stateDoctype(e){switch(e){case r.SPACE:case r.LINE_FEED:case r.TABULATION:case r.FORM_FEED:this.state=m.BEFORE_DOCTYPE_NAME;break;case r.GREATER_THAN_SIGN:this.state=m.BEFORE_DOCTYPE_NAME,this._stateBeforeDoctypeName(e);break;case r.EOF:{this._err(i.eofInDoctype),this._createDoctypeToken(null);let e=this.currentToken;e.forceQuirks=!0,this.emitCurrentDoctype(e),this._emitEOFToken();break}default:this._err(i.missingWhitespaceBeforeDoctypeName),this.state=m.BEFORE_DOCTYPE_NAME,this._stateBeforeDoctypeName(e)}}_stateBeforeDoctypeName(e){if(eK(e))this._createDoctypeToken(String.fromCharCode(e+32)),this.state=m.DOCTYPE_NAME;else switch(e){case r.SPACE:case r.LINE_FEED:case r.TABULATION:case r.FORM_FEED:break;case r.NULL:this._err(i.unexpectedNullCharacter),this._createDoctypeToken("�"),this.state=m.DOCTYPE_NAME;break;case r.GREATER_THAN_SIGN:{this._err(i.missingDoctypeName),this._createDoctypeToken(null);let e=this.currentToken;e.forceQuirks=!0,this.emitCurrentDoctype(e),this.state=m.DATA;break}case r.EOF:{this._err(i.eofInDoctype),this._createDoctypeToken(null);let e=this.currentToken;e.forceQuirks=!0,this.emitCurrentDoctype(e),this._emitEOFToken();break}default:this._createDoctypeToken(String.fromCodePoint(e)),this.state=m.DOCTYPE_NAME}}_stateDoctypeName(e){let t=this.currentToken;switch(e){case r.SPACE:case r.LINE_FEED:case r.TABULATION:case r.FORM_FEED:this.state=m.AFTER_DOCTYPE_NAME;break;case r.GREATER_THAN_SIGN:this.state=m.DATA,this.emitCurrentDoctype(t);break;
vendor: 4,189 bytes, line 106
106case r.NULL:this._err(i.unexpectedNullCharacter),t.name+="�";break;case r.EOF:this._err(i.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:t.name+=String.fromCodePoint(eK(e)?e+32:e)}}_stateAfterDoctypeName(e){let t=this.currentToken;switch(e){case r.SPACE:case r.LINE_FEED:case r.TABULATION:case r.FORM_FEED:break;case r.GREATER_THAN_SIGN:this.state=m.DATA,this.emitCurrentDoctype(t);break;case r.EOF:this._err(i.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:this._consumeSequenceIfMatch(eD.PUBLIC,!1)?this.state=m.AFTER_DOCTYPE_PUBLIC_KEYWORD:this._consumeSequenceIfMatch(eD.SYSTEM,!1)?this.state=m.AFTER_DOCTYPE_SYSTEM_KEYWORD:this._ensureHibernation()||(this._err(i.invalidCharacterSequenceAfterDoctypeName),t.forceQuirks=!0,this.state=m.BOGUS_DOCTYPE,this._stateBogusDoctype(e))}}_stateAfterDoctypePublicKeyword(e){let t=this.currentToken;switch(e){case r.SPACE:case r.LINE_FEED:case r.TABULATION:case r.FORM_FEED:this.state=m.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER;break;case r.QUOTATION_MARK:this._err(i.missingWhitespaceAfterDoctypePublicKeyword),t.publicId="",this.state=m.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED;break;case r.APOSTROPHE:this._err(i.missingWhitespaceAfterDoctypePublicKeyword),t.publicId="",this.state=m.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED;break;case r.GREATER_THAN_SIGN:this._err(i.missingDoctypePublicIdentifier),t.forceQuirks=!0,this.state=m.DATA,this.emitCurrentDoctype(t);break;case r.EOF:this._err(i.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:this._err(i.missingQuoteBeforeDoctypePublicIdentifier),t.forceQuirks=!0,this.state=m.BOGUS_DOCTYPE,this._stateBogusDoctype(e)}}_stateBeforeDoctypePublicIdentifier(e){let t=this.currentToken;switch(e){case r.SPACE:case r.LINE_FEED:case r.TABULATION:case r.FORM_FEED:break;case r.QUOTATION_MARK:t.publicId="",this.state=m.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED;break;case r.APOSTROPHE:t.publicId="",this.state=m.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED;break;case r.GREATER_THAN_SIGN:this._err(i.missingDoctypePublicIdentifier),t.forceQuirks=!0,this.state=m.DATA,this.emitCurrentDoctype(t);break;case r.EOF:this._err(i.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:this._err(i.missingQuoteBeforeDoctypePublicIdentifier),t.forceQuirks=!0,this.state=m.BOGUS_DOCTYPE,this._stateBogusDoctype(e)}}_stateDoctypePublicIdentifierDoubleQuoted(e){let t=this.currentToken;switch(e){case r.QUOTATION_MARK:this.state=m.AFTER_DOCTYPE_PUBLIC_IDENTIFIER;break;case r.NULL:this._err(i.unexpectedNullCharacter),t.publicId+="�";break;case r.GREATER_THAN_SIGN:this._err(i.abruptDoctypePublicIdentifier),t.forceQuirks=!0,this.emitCurrentDoctype(t),this.state=m.DATA;break;case r.EOF:this._err(i.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:t.publicId+=String.fromCodePoint(e)}}_stateDoctypePublicIdentifierSingleQuoted(e){let t=this.currentToken;switch(e){case r.APOSTROPHE:this.state=m.AFTER_DOCTYPE_PUBLIC_IDENTIFIER;break;case r.NULL:this._err(i.unexpectedNullCharacter),t.publicId+="�";break;case r.GREATER_THAN_SIGN:this._err(i.abruptDoctypePublicIdentifier),t.forceQuirks=!0,this.emitCurrentDoctype(t),this.state=m.DATA;break;case r.EOF:this._err(i.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:t.publicId+=String.fromCodePoint(e)}}_stateAfterDoctypePublicIdentifier(e){let t=this.currentToken;switch(e){case r.SPACE:case r.LINE_FEED:case r.TABULATION:case r.FORM_FEED:this.state=m.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS;break;case r.GREATER_THAN_SIGN:this.state=m.DATA,this.emitCurrentDoctype(t);break;case r.QUOTATION_MARK:this._err(i.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),t.systemId="",this.state=m.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break;case r.APOSTROPHE:this._err(i.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),t.systemId="",this.state=m.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break;case r.EOF:this._err(i.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;
vendor: 4,995 bytes, line 106
106default:this._err(i.missingQuoteBeforeDoctypeSystemIdentifier),t.forceQuirks=!0,this.state=m.BOGUS_DOCTYPE,this._stateBogusDoctype(e)}}_stateBetweenDoctypePublicAndSystemIdentifiers(e){let t=this.currentToken;switch(e){case r.SPACE:case r.LINE_FEED:case r.TABULATION:case r.FORM_FEED:break;case r.GREATER_THAN_SIGN:this.emitCurrentDoctype(t),this.state=m.DATA;break;case r.QUOTATION_MARK:t.systemId="",this.state=m.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break;case r.APOSTROPHE:t.systemId="",this.state=m.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break;case r.EOF:this._err(i.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:this._err(i.missingQuoteBeforeDoctypeSystemIdentifier),t.forceQuirks=!0,this.state=m.BOGUS_DOCTYPE,this._stateBogusDoctype(e)}}_stateAfterDoctypeSystemKeyword(e){let t=this.currentToken;switch(e){case r.SPACE:case r.LINE_FEED:case r.TABULATION:case r.FORM_FEED:this.state=m.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER;break;case r.QUOTATION_MARK:this._err(i.missingWhitespaceAfterDoctypeSystemKeyword),t.systemId="",this.state=m.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break;case r.APOSTROPHE:this._err(i.missingWhitespaceAfterDoctypeSystemKeyword),t.systemId="",this.state=m.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break;case r.GREATER_THAN_SIGN:this._err(i.missingDoctypeSystemIdentifier),t.forceQuirks=!0,this.state=m.DATA,this.emitCurrentDoctype(t);break;case r.EOF:this._err(i.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:this._err(i.missingQuoteBeforeDoctypeSystemIdentifier),t.forceQuirks=!0,this.state=m.BOGUS_DOCTYPE,this._stateBogusDoctype(e)}}_stateBeforeDoctypeSystemIdentifier(e){let t=this.currentToken;switch(e){case r.SPACE:case r.LINE_FEED:case r.TABULATION:case r.FORM_FEED:break;case r.QUOTATION_MARK:t.systemId="",this.state=m.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break;case r.APOSTROPHE:t.systemId="",this.state=m.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break;case r.GREATER_THAN_SIGN:this._err(i.missingDoctypeSystemIdentifier),t.forceQuirks=!0,this.state=m.DATA,this.emitCurrentDoctype(t);break;case r.EOF:this._err(i.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:this._err(i.missingQuoteBeforeDoctypeSystemIdentifier),t.forceQuirks=!0,this.state=m.BOGUS_DOCTYPE,this._stateBogusDoctype(e)}}_stateDoctypeSystemIdentifierDoubleQuoted(e){let t=this.currentToken;switch(e){case r.QUOTATION_MARK:this.state=m.AFTER_DOCTYPE_SYSTEM_IDENTIFIER;break;case r.NULL:this._err(i.unexpectedNullCharacter),t.systemId+="�";break;case r.GREATER_THAN_SIGN:this._err(i.abruptDoctypeSystemIdentifier),t.forceQuirks=!0,this.emitCurrentDoctype(t),this.state=m.DATA;break;case r.EOF:this._err(i.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:t.systemId+=String.fromCodePoint(e)}}_stateDoctypeSystemIdentifierSingleQuoted(e){let t=this.currentToken;switch(e){case r.APOSTROPHE:this.state=m.AFTER_DOCTYPE_SYSTEM_IDENTIFIER;break;case r.NULL:this._err(i.unexpectedNullCharacter),t.systemId+="�";break;case r.GREATER_THAN_SIGN:this._err(i.abruptDoctypeSystemIdentifier),t.forceQuirks=!0,this.emitCurrentDoctype(t),this.state=m.DATA;break;case r.EOF:this._err(i.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:t.systemId+=String.fromCodePoint(e)}}_stateAfterDoctypeSystemIdentifier(e){let t=this.currentToken;switch(e){case r.SPACE:case r.LINE_FEED:case r.TABULATION:case r.FORM_FEED:break;case r.GREATER_THAN_SIGN:this.emitCurrentDoctype(t),this.state=m.DATA;break;case r.EOF:this._err(i.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:this._err(i.unexpectedCharacterAfterDoctypeSystemIdentifier),this.state=m.BOGUS_DOCTYPE,this._stateBogusDoctype(e)}}_stateBogusDoctype(e){let t=this.currentToken;switch(e){case r.GREATER_THAN_SIGN:this.emitCurrentDoctype(t),this.state=m.DATA;break;case r.NULL:this._err(i.unexpectedNullCharacter);break;case r.EOF:this.emitCurrentDoctype(t),this._emitEOFToken()}}_stateCdataSection(e){switch(e){case r.RIGHT_SQUARE_BRACKET:this.state=m.CDATA_SECTION_BRACKET;break;case r.EOF:this._err(i.eofInCdata),this._emitEOFToken();break;default:this._emitCodePoint(e)}}_stateCdataSectionBracket(e){e===r.RIGHT_SQUARE_BRACKET?this.state=m.CDATA_SECTION_END:(this._emitChars("]"),this.state=m.CDATA_SECTION,this._stateCdataSection(e))}_stateCdataSectionEnd(e){switch(e){case r.GREATER_THAN_SIGN:this.state=m.DATA;break;case r.RIGHT_SQUARE_BRACKET:this._emitChars("]");break;default:this._emitChars("]]"),this.state=m.CDATA_SECTION,this._stateCdataSection(e)}}_stateCharacterReference(){let e=this.entityDecoder.write(this.preprocessor.html,this.preprocessor.pos);if(e<0)if(this.preprocessor.lastChunkWritten)e=this.entityDecoder.end();else{this.active=!1,this.preprocessor.pos=this.preprocessor.html.length-1,this.consumedAfterSnapshot=0,this.preprocessor.endOfChunkHit=!0;return}
vendor: 4,107 bytes, line 106
1060===e?(this.preprocessor.pos=this.entityStartPos,this._flushCodePointConsumedAsCharacterReference(r.AMPERSAND),this.state=!this._isCharacterReferenceInAttribute()&&eQ(this.preprocessor.peek(1))?m.AMBIGUOUS_AMPERSAND:this.returnState):this.state=this.returnState}_stateAmbiguousAmpersand(e){eQ(e)?this._flushCodePointConsumedAsCharacterReference(e):(e===r.SEMICOLON&&this._err(i.unknownNamedCharacterReference),this.state=this.returnState,this._callState(e))}}let e2=new Set([f.DD,f.DT,f.LI,f.OPTGROUP,f.OPTION,f.P,f.RB,f.RP,f.RT,f.RTC]),e3=new Set([...e2,f.CAPTION,f.COLGROUP,f.TBODY,f.TD,f.TFOOT,f.TH,f.THEAD,f.TR]),e4=new Set([f.APPLET,f.CAPTION,f.HTML,f.MARQUEE,f.OBJECT,f.TABLE,f.TD,f.TEMPLATE,f.TH]),e9=new Set([...e4,f.OL,f.UL]),e5=new Set([...e4,f.BUTTON]),e6=new Set([f.ANNOTATION_XML,f.MI,f.MN,f.MO,f.MS,f.MTEXT]),e8=new Set([f.DESC,f.FOREIGN_OBJECT,f.TITLE]),e7=new Set([f.TR,f.TEMPLATE,f.HTML]),te=new Set([f.TBODY,f.TFOOT,f.THEAD,f.TEMPLATE,f.HTML]),tt=new Set([f.TABLE,f.TEMPLATE,f.HTML]),tn=new Set([f.TD,f.TH]);class tr{get currentTmplContentOrNode(){return this._isInTemplate()?this.treeAdapter.getTemplateContent(this.current):this.current}constructor(e,t,n){this.treeAdapter=t,this.handler=n,this.items=[],this.tagIDs=[],this.stackTop=-1,this.tmplCount=0,this.currentTagId=f.UNKNOWN,this.current=e}_indexOf(e){return this.items.lastIndexOf(e,this.stackTop)}_isInTemplate(){return this.currentTagId===f.TEMPLATE&&this.treeAdapter.getNamespaceURI(this.current)===c.HTML}_updateCurrentElement(){this.current=this.items[this.stackTop],this.currentTagId=this.tagIDs[this.stackTop]}push(e,t){this.stackTop++,this.items[this.stackTop]=e,this.current=e,this.tagIDs[this.stackTop]=t,this.currentTagId=t,this._isInTemplate()&&this.tmplCount++,this.handler.onItemPush(e,t,!0)}pop(){let e=this.current;this.tmplCount>0&&this._isInTemplate()&&this.tmplCount--,this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(e,!0)}replace(e,t){let n=this._indexOf(e);this.items[n]=t,n===this.stackTop&&(this.current=t)}insertAfter(e,t,n){let r=this._indexOf(e)+1;this.items.splice(r,0,t),this.tagIDs.splice(r,0,n),this.stackTop++,r===this.stackTop&&this._updateCurrentElement(),this.current&&void 0!==this.currentTagId&&this.handler.onItemPush(this.current,this.currentTagId,r===this.stackTop)}popUntilTagNamePopped(e){let t=this.stackTop+1;do t=this.tagIDs.lastIndexOf(e,t-1);while(t>0&&this.treeAdapter.getNamespaceURI(this.items[t])!==c.HTML);this.shortenToLength(Math.max(t,0))}shortenToLength(e){for(;this.stackTop>=e;){let t=this.current;this.tmplCount>0&&this._isInTemplate()&&(this.tmplCount-=1),this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(t,this.stackTop<e)}}popUntilElementPopped(e){let t=this._indexOf(e);this.shortenToLength(Math.max(t,0))}popUntilPopped(e,t){let n=this._indexOfTagNames(e,t);this.shortenToLength(Math.max(n,0))}popUntilNumberedHeaderPopped(){this.popUntilPopped(eW,c.HTML)}popUntilTableCellPopped(){this.popUntilPopped(tn,c.HTML)}popAllUpToHtmlElement(){this.tmplCount=0,this.shortenToLength(1)}_indexOfTagNames(e,t){for(let n=this.stackTop;n>=0;n--)if(e.has(this.tagIDs[n])&&this.treeAdapter.getNamespaceURI(this.items[n])===t)return n;return -1}clearBackTo(e,t){let n=this._indexOfTagNames(e,t);this.shortenToLength(n+1)}clearBackToTableContext(){this.clearBackTo(tt,c.HTML)}clearBackToTableBodyContext(){this.clearBackTo(te,c.HTML)}clearBackToTableRowContext(){this.clearBackTo(e7,c.HTML)}remove(e){let t=this._indexOf(e);t>=0&&(t===this.stackTop?this.pop():(this.items.splice(t,1),this.tagIDs.splice(t,1),this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(e,!1)))}tryPeekProperlyNestedBodyElement(){return this.stackTop>=1&&this.tagIDs[1]===f.BODY?this.items[1]:null}contains(e){return this._indexOf(e)>-1}getCommonAncestor(e){let t=this._indexOf(e)-1;return t>=0?this.items[t]:null}isRootHtmlElementCurrent(){return 0===this.stackTop&&this.tagIDs[0]===f.HTML}hasInDynamicScope(e,t){for(let n=this.stackTop;n>=0;n--){let r=this.tagIDs[n];switch(this.treeAdapter.getNamespaceURI(this.items[n])){case c.HTML:if(r===e)return!0;
106if(t.has(r))return!1;break;case c.SVG:if(e8.has(r))return!1;break;case c.MATHML:if(e6.has(r))return!1}}return!0}hasInScope(e){return this.hasInDynamicScope(e,e4)}hasInListItemScope(e){return this.hasInDynamicScope(e,e9)}hasInButtonScope(e){return this.hasInDynamicScope(e,e5)}hasNumberedHeaderInScope(){for(let e=this.stackTop;e>=0;e--){let t=this.tagIDs[e];switch(this.treeAdapter.getNamespaceURI(this.items[e])){case c.HTML:if(eW.has(t))return!0;if(e4.has(t))return!1;break;case c.SVG:if(e8.has(t))return!1;break;case c.MATHML:if(e6.has(t))return!1}}return!0}hasInTableScope(e){for(let t=this.stackTop;t>=0;t--)if(this.treeAdapter.getNamespaceURI(this.items[t])===c.HTML)switch(this.tagIDs[t]){case e:return!0;case f.TABLE:case f.HTML:return!1}return!0}hasTableBodyContextInTableScope(){for(let e=this.stackTop;e>=0;e--)if(this.treeAdapter.getNamespaceURI(this.items[e])===c.HTML)switch(this.tagIDs[e]){case f.TBODY:case f.THEAD:case f.TFOOT:return!0;case f.TABLE:case f.HTML:return!1}return!0}hasInSelectScope(e){for(let t=this.stackTop;t>=0;t--)if(this.treeAdapter.getNamespaceURI(this.items[t])===c.HTML)switch(this.tagIDs[t]){case e:return!0;case f.OPTION:case f.OPTGROUP:break;default:return!1}return!0}generateImpliedEndTags(){for(;void 0!==this.currentTagId&&e2.has(this.currentTagId);)this.pop()}generateImpliedEndTagsThoroughly(){for(;void 0!==this.currentTagId&&e3.has(this.currentTagId);)this.pop()}generateImpliedEndTagsWithExclusion(e){for(;void 0!==this.currentTagId&&this.currentTagId!==e&&e3.has(this.currentTagId);)this.pop()}}!function(e){e[e.Marker=0]="Marker",e[e.Element=1]="Element"}(g||(g={}));let ti={type:g.Marker};class ts{constructor(e){this.treeAdapter=e,this.entries=[],this.bookmark=null}_getNoahArkConditionCandidates(e,t){let n=[],r=t.length,i=this.treeAdapter.getTagName(e),s=this.treeAdapter.getNamespaceURI(e);for(let e=0;e<this.entries.length;e++){let t=this.entries[e];if(t.type===g.Marker)break;let{element:a}=t;if(this.treeAdapter.getTagName(a)===i&&this.treeAdapter.getNamespaceURI(a)===s){let t=this.treeAdapter.getAttrList(a);t.length===r&&n.push({idx:e,attrs:t})}}return n}_ensureNoahArkCondition(e){if(this.entries.length<3)return;let t=this.treeAdapter.getAttrList(e),n=this._getNoahArkConditionCandidates(e,t);if(n.length<3)return;let r=new Map(t.map(e=>[e.name,e.value])),i=0;for(let e=0;e<n.length;e++){let t=n[e];t.attrs.every(e=>r.get(e.name)===e.value)&&(i+=1)>=3&&this.entries.splice(t.idx,1)}}insertMarker(){this.entries.unshift(ti)}pushElement(e,t){this._ensureNoahArkCondition(e),this.entries.unshift({type:g.Element,element:e,token:t})}insertElementAfterBookmark(e,t){let n=this.entries.indexOf(this.bookmark);this.entries.splice(n,0,{type:g.Element,element:e,token:t})}removeEntry(e){let t=this.entries.indexOf(e);-1!==t&&this.entries.splice(t,1)}clearToLastMarker(){let e=this.entries.indexOf(ti);-1===e?this.entries.length=0:this.entries.splice(0,e+1)}getElementEntryInScopeWithTagName(e){let t=this.entries.find(t=>t.type===g.Marker||this.treeAdapter.getTagName(t.element)===e);return t&&t.type===g.Element?t:null}getElementEntry(e){return this.entries.find(t=>t.type===g.Element&&t.element===e)}}let ta={createDocument:()=>({nodeName:"#document",mode:h.NO_QUIRKS,childNodes:[]}),createDocumentFragment:()=>({nodeName:"#document-fragment",childNodes:[]}),createElement:(e,t,n)=>({nodeName:e,tagName:e,attrs:n,namespaceURI:t,childNodes:[],parentNode:null}),createCommentNode:e=>({nodeName:"#comment",data:e,parentNode:null}),createTextNode:e=>({nodeName:"#text",value:e,parentNode:null}),appendChild(e,t){e.childNodes.push(t),t.parentNode=e},insertBefore(e,t,n){let r=e.childNodes.indexOf(n);e.childNodes.splice(r,0,t),t.parentNode=e},setTemplateContent(e,t){e.content=t},getTemplateContent:e=>e.content,setDocumentType(e,t,n,r){let i=e.childNodes.find(e=>"#documentType"===e.nodeName);i?(i.name=t,i.publicId=n,i.systemId=r):ta.appendChild(e,{nodeName:"#documentType",name:t,publicId:n,systemId:r,parentNode:null})},setDocumentMode(e,t){e.mode=t},getDocumentMode:e=>e.mode,detachNode(e){if(e.parentNode){let t=e.parentNode.childNodes.indexOf(e);e.parentNode.childNodes.splice(t,1),e.parentNode=null}},insertText(e,t){if(e.childNodes.length>0){let n=e.childNodes[e.childNodes.length-1];if(ta.isTextNode(n)){n.value+=t;return}}ta.appendChild(e,ta.createTextNode(t))},insertTextBefore(e,t,n){let r=e.childNodes[e.childNodes.indexOf(n)-1];r&&ta.isTextNode(r)?r.value+=t:ta.insertBefore(e,ta.createTextNode(t),n)},adoptAttributes(e,t){let n=new Set(e.attrs.map(e=>e.name));for(let r=0;r<t.length;r++)n.has(t[r].name)||e.attrs.push(t[r])},getFirstChild:e=>e.childNodes[0],getChildNodes:e=>e.childNodes,getParentNode:e=>e.parentNode,getAttrList:e=>e.attrs,getTagName:e=>e.tagName,getNamespaceURI:e=>e.namespaceURI,getTextNodeContent:e=>e.value,getCommentNodeContent:e=>e.data,getDocumentTypeNodeName:e=>e.name,getDocumentTypeNodePublicId:e=>e.publicId,getDocumentTypeNodeSystemId:e=>e.systemId,isTextNode:e=>"#text"===e.nodeName,isCommentNode:e=>"#comment"===e.nodeName,isDocumentTypeNode:e=>"#documentType"===e.nodeName,isElementNode:e=>Object.prototype.hasOwnProperty.call(e,"tagName"),setNodeSourceCodeLocation(e,t){e.sourceCodeLocation=t},getNodeSourceCodeLocation:e=>e.sourceCodeLocation,updateNodeSourceCodeLocation(e,t){e.sourceCodeLocation={...e.sourceCodeLocation,...t}}},to="html",tl=["+//silmaril//dtd html pro v0r11 19970101//","-//as//dtd html 3.0 aswedit + extensions//","-//advasoft ltd//dtd html 3.0 aswedit + extensions//","-//ietf//dtd html 2.0 level 1//","-//ietf//dtd html 2.0 level 2//","-//ietf//dtd html 2.0 strict level 1//","-//ietf//dtd html 2.0 strict level 2//","-//ietf//dtd html 2.0 strict//","-//ietf//dtd html 2.0//","-//ietf//dtd html 2.1e//","-//ietf//dtd html 3.0//","-//ietf//dtd html 3.2 final//","-//ietf//dtd html 3.2//","-//ietf//dtd html 3//","-//ietf//dtd html level 0//","-//ietf//dtd html level 1//","-//ietf//dtd html level 2//","-//ietf//dtd html level 3//","-//ietf//dtd html strict level 0//","-//ietf//dtd html strict level 1//","-//ietf//dtd html strict level 2//","-//ietf//dtd html strict level 3//","-//ietf//dtd html strict//","-//ietf//dtd html//","-//metrius//dtd metrius presentational//","-//microsoft//dtd internet explorer 2.0 html strict//","-//microsoft//dtd internet explorer 2.0 html//","-//microsoft//dtd internet explorer 2.0 tables//","-//microsoft//dtd internet explorer 3.0 html strict//","-//microsoft//dtd internet explorer 3.0 html//","-//microsoft//dtd internet explorer 3.0 tables//","-//netscape comm. corp.//dtd html//","-//netscape comm. corp.//dtd strict html//","-//o'reilly and associates//dtd html 2.0//","-//o'reilly and associates//dtd html extended 1.0//","-//o'reilly and associates//dtd html extended relaxed 1.0//","-//sq//dtd html 2.0 hotmetal + extensions//","-//softquad software//dtd hotmetal pro 6.0::19990601::extensions to html 4.0//","-//softquad//dtd hotmetal pro 4.0::19971010::extensions to html 4.0//","-//spyglass//dtd html 2.0 extended//","-//sun microsystems corp.//dtd hotjava html//","-//sun microsystems corp.//dtd hotjava strict html//","-//w3c//dtd html 3 1995-03-24//","-//w3c//dtd html 3.2 draft//","-//w3c//dtd html 3.2 final//","-//w3c//dtd html 3.2//","-//w3c//dtd html 3.2s draft//","-//w3c//dtd html 4.0 frameset//","-//w3c//dtd html 4.0 transitional//","-//w3c//dtd html experimental 19960712//","-//w3c//dtd html experimental 970421//","-//w3c//dtd w3 html//","-//w3o//dtd w3 html 3.0//","-//webtechs//dtd mozilla html 2.0//","-//webtechs//dtd mozilla html//"],tu=[...tl,"-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"],tc=new Set(["-//w3o//dtd w3 html strict 3.0//en//","-/w3c/dtd html 4.0 transitional/en","html"]),td=["-//w3c//dtd xhtml 1.0 frameset//","-//w3c//dtd xhtml 1.0 transitional//"],th=[...td,"-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"];function tp(e,t){return t.some(t=>e.startsWith(t))}let tf={TEXT_HTML:"text/html",APPLICATION_XML:"application/xhtml+xml"},tm=new Map(["attributeName","attributeType","baseFrequency","baseProfile","calcMode","clipPathUnits","diffuseConstant","edgeMode","filterUnits","glyphRef","gradientTransform","gradientUnits","kernelMatrix","kernelUnitLength","keyPoints","keySplines","keyTimes","lengthAdjust","limitingConeAngle","markerHeight","markerUnits","markerWidth","maskContentUnits","maskUnits","numOctaves","pathLength","patternContentUnits","patternTransform","patternUnits","pointsAtX","pointsAtY","pointsAtZ","preserveAlpha","preserveAspectRatio","primitiveUnits","refX","refY","repeatCount","repeatDur","requiredExtensions","requiredFeatures","specularConstant","specularExponent","spreadMethod","startOffset","stdDeviation","stitchTiles","surfaceScale","systemLanguage","tableValues","targetX","targetY","textLength","viewBox","viewTarget","xChannelSelector","yChannelSelector","zoomAndPan"].map(e=>[e.toLowerCase(),e])),tg=new Map([["xlink:actuate",{prefix:"xlink",name:"actuate",namespace:c.XLINK}],["xlink:arcrole",{prefix:"xlink",name:"arcrole",namespace:c.XLINK}],["xlink:href",{prefix:"xlink",name:"href",namespace:c.XLINK}],["xlink:role",{prefix:"xlink",name:"role",namespace:c.XLINK}],["xlink:show",{prefix:"xlink",name:"show",namespace:c.XLINK}],["xlink:title",{prefix:"xlink",name:"title",namespace:c.XLINK}],["xlink:type",{prefix:"xlink",name:"type",namespace:c.XLINK}],["xml:lang",{prefix:"xml",name:"lang",namespace:c.XML}],["xml:space",{prefix:"xml",name:"space",namespace:c.XML}],["xmlns",{prefix:"",name:"xmlns",namespace:c.XMLNS}],["xmlns:xlink",{prefix:"xmlns",name:"xlink",namespace:c.XMLNS}]]),ty=new Map(["altGlyph","altGlyphDef","altGlyphItem","animateColor","animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","glyphRef","linearGradient","radialGradient","textPath"].map(e=>[e.toLowerCase(),e])),tv=new Set([f.B,f.BIG,f.BLOCKQUOTE,f.BODY,f.BR,f.CENTER,f.CODE,f.DD,f.DIV,f.DL,f.DT,f.EM,f.EMBED,f.H1,f.H2,f.H3,f.H4,f.H5,f.H6,f.HEAD,f.HR,f.I,f.IMG,f.LI,f.LISTING,f.MENU,f.META,f.NOBR,f.OL,f.P,f.PRE,f.RUBY,f.S,f.SMALL,f.SPAN,f.STRONG,f.STRIKE,f.SUB,f.SUP,f.TABLE,f.TT,f.U,f.UL,f.VAR]);function tb(e){for(let t=0;t<e.attrs.length;t++)if("definitionurl"===e.attrs[t].name){e.attrs[t].name="definitionURL";break}}function tE(e){for(let t=0;t<e.attrs.length;t++){let n=tm.get(e.attrs[t].name);null!=n&&(e.attrs[t].name=n)}}function tT(e){for(let t=0;t<e.attrs.length;t++){let n=tg.get(e.attrs[t].name);n&&(e.attrs[t].prefix=n.prefix,e.attrs[t].name=n.name,e.attrs[t].namespace=n.namespace)}}!function(e){e[e.INITIAL=0]="INITIAL",e[e.BEFORE_HTML=1]="BEFORE_HTML",e[e.BEFORE_HEAD=2]="BEFORE_HEAD",e[e.IN_HEAD=3]="IN_HEAD",e[e.IN_HEAD_NO_SCRIPT=4]="IN_HEAD_NO_SCRIPT",e[e.AFTER_HEAD=5]="AFTER_HEAD",e[e.IN_BODY=6]="IN_BODY",e[e.TEXT=7]="TEXT",e[e.IN_TABLE=8]="IN_TABLE",e[e.IN_TABLE_TEXT=9]="IN_TABLE_TEXT",e[e.IN_CAPTION=10]="IN_CAPTION",e[e.IN_COLUMN_GROUP=11]="IN_COLUMN_GROUP",e[e.IN_TABLE_BODY=12]="IN_TABLE_BODY",e[e.IN_ROW=13]="IN_ROW",e[e.IN_CELL=14]="IN_CELL",e[e.IN_SELECT=15]="IN_SELECT",e[e.IN_SELECT_IN_TABLE=16]="IN_SELECT_IN_TABLE",e[e.IN_TEMPLATE=17]="IN_TEMPLATE",e[e.AFTER_BODY=18]="AFTER_BODY",e[e.IN_FRAMESET=19]="IN_FRAMESET",e[e.AFTER_FRAMESET=20]="AFTER_FRAMESET",e[e.AFTER_AFTER_BODY=21]="AFTER_AFTER_BODY",e[e.AFTER_AFTER_FRAMESET=22]="AFTER_AFTER_FRAMESET"}(y||(y={}));let t_={startLine:-1,startCol:-1,startOffset:-1,endLine:-1,endCol:-1,endOffset:-1},tA=new Set([f.TABLE,f.TBODY,f.TFOOT,f.THEAD,f.TR]),tx={scriptingEnabled:!0,sourceCodeLocationInfo:!1,treeAdapter:ta,onParseError:null};class tk{constructor(e,t,n=null,r=null){this.fragmentContext=n,this.scriptHandler=r,this.currentToken=null,this.stopped=!1,this.insertionMode=y.INITIAL,this.originalInsertionMode=y.INITIAL,this.headElement=null,this.formElement=null,this.currentNotInHTML=!1,this.tmplInsertionModeStack=[],this.pendingCharacterTokens=[],this.hasNonWhitespacePendingCharacterToken=!1,this.framesetOk=!0,this.skipNextNewLine=!1,this.fosterParentingEnabled=!1,this.options={...tx,...e},this.treeAdapter=this.options.treeAdapter,this.onParseError=this.options.onParseError,this.onParseError&&(this.options.sourceCodeLocationInfo=!0),this.document=null!=t?t:this.treeAdapter.createDocument(),this.tokenizer=new e1(this.options,this),this.activeFormattingElements=new ts(this.treeAdapter),this.fragmentContextID=n?eY(this.treeAdapter.getTagName(n)):f.UNKNOWN,this._setContextModes(null!=n?n:this.document,this.fragmentContextID),this.openElements=new tr(this.document,this.treeAdapter,this)}static parse(e,t){let n=new this(t);return n.tokenizer.write(e,!0),n.document}static getFragmentParser(e,t){let n={...tx,...t};null!=e||(e=n.treeAdapter.createElement(p.TEMPLATE,c.HTML,[]));let r=n.treeAdapter.createElement("documentmock",c.HTML,[]),i=new this(n,r,e);return i.fragmentContextID===f.TEMPLATE&&i.tmplInsertionModeStack.unshift(y.IN_TEMPLATE),i._initTokenizerForFragmentParsing(),i._insertFakeRootElement(),i._resetInsertionMode(),i._findFormInFragmentContext(),i}getFragment(){let e=this.treeAdapter.getFirstChild(this.document),t=this.treeAdapter.createDocumentFragment();return this._adoptNodes(e,t),t}_err(e,t,n){var r;if(!this.onParseError)return;let i=null!=(r=e.location)?r:t_,s={code:t,startLine:i.startLine,startCol:i.startCol,startOffset:i.startOffset,endLine:n?i.startLine:i.endLine,endCol:n?i.startCol:i.endCol,endOffset:n?i.startOffset:i.endOffset};this.onParseError(s)}
106onItemPush(e,t,n){var r,i;null==(i=(r=this.treeAdapter).onItemPush)||i.call(r,e),n&&this.openElements.stackTop>0&&this._setContextModes(e,t)}onItemPop(e,t){var n,r;if(this.options.sourceCodeLocationInfo&&this._setEndLocation(e,this.currentToken),null==(r=(n=this.treeAdapter).onItemPop)||r.call(n,e,this.openElements.current),t){let e,t;0===this.openElements.stackTop&&this.fragmentContext?(e=this.fragmentContext,t=this.fragmentContextID):{current:e,currentTagId:t}=this.openElements,this._setContextModes(e,t)}}_setContextModes(e,t){let n=e===this.document||e&&this.treeAdapter.getNamespaceURI(e)===c.HTML;this.currentNotInHTML=!n,this.tokenizer.inForeignNode=!n&&void 0!==e&&void 0!==t&&!this._isIntegrationPoint(t,e)}_switchToTextParsing(e,t){this._insertElement(e,c.HTML),this.tokenizer.state=t,this.originalInsertionMode=this.insertionMode,this.insertionMode=y.TEXT}switchToPlaintextParsing(){this.insertionMode=y.TEXT,this.originalInsertionMode=y.IN_BODY,this.tokenizer.state=eq.PLAINTEXT}_getAdjustedCurrentElement(){return 0===this.openElements.stackTop&&this.fragmentContext?this.fragmentContext:this.openElements.current}_findFormInFragmentContext(){let e=this.fragmentContext;for(;e;){if(this.treeAdapter.getTagName(e)===p.FORM){this.formElement=e;break}e=this.treeAdapter.getParentNode(e)}}_initTokenizerForFragmentParsing(){if(this.fragmentContext&&this.treeAdapter.getNamespaceURI(this.fragmentContext)===c.HTML)switch(this.fragmentContextID){case f.TITLE:case f.TEXTAREA:this.tokenizer.state=eq.RCDATA;break;case f.STYLE:case f.XMP:case f.IFRAME:case f.NOEMBED:case f.NOFRAMES:case f.NOSCRIPT:this.tokenizer.state=eq.RAWTEXT;break;case f.SCRIPT:this.tokenizer.state=eq.SCRIPT_DATA;break;case f.PLAINTEXT:this.tokenizer.state=eq.PLAINTEXT}}_setDocumentType(e){let t=e.name||"",n=e.publicId||"",r=e.systemId||"";if(this.treeAdapter.setDocumentType(this.document,t,n,r),e.location){let t=this.treeAdapter.getChildNodes(this.document).find(e=>this.treeAdapter.isDocumentTypeNode(e));t&&this.treeAdapter.setNodeSourceCodeLocation(t,e.location)}}_attachElementToTree(e,t){if(this.options.sourceCodeLocationInfo){let n=t&&{...t,startTag:t};this.treeAdapter.setNodeSourceCodeLocation(e,n)}if(this._shouldFosterParentOnInsertion())this._fosterParentElement(e);else{let t=this.openElements.currentTmplContentOrNode;this.treeAdapter.appendChild(null!=t?t:this.document,e)}}_appendElement(e,t){let n=this.treeAdapter.createElement(e.tagName,t,e.attrs);this._attachElementToTree(n,e.location)}_insertElement(e,t){let n=this.treeAdapter.createElement(e.tagName,t,e.attrs);this._attachElementToTree(n,e.location),this.openElements.push(n,e.tagID)}_insertFakeElement(e,t){let n=this.treeAdapter.createElement(e,c.HTML,[]);this._attachElementToTree(n,null),this.openElements.push(n,t)}_insertTemplate(e){let t=this.treeAdapter.createElement(e.tagName,c.HTML,e.attrs),n=this.treeAdapter.createDocumentFragment();this.treeAdapter.setTemplateContent(t,n),this._attachElementToTree(t,e.location),this.openElements.push(t,e.tagID),this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(n,null)}_insertFakeRootElement(){let e=this.treeAdapter.createElement(p.HTML,c.HTML,[]);this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(e,null),this.treeAdapter.appendChild(this.openElements.current,e),this.openElements.push(e,f.HTML)}_appendCommentNode(e,t){let n=this.treeAdapter.createCommentNode(e.data);this.treeAdapter.appendChild(t,n),this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(n,e.location)}_insertCharacters(e){let t,n;if(this._shouldFosterParentOnInsertion()?({parent:t,beforeElement:n}=this._findFosterParentingLocation(),n?this.treeAdapter.insertTextBefore(t,e.chars,n):this.treeAdapter.insertText(t,e.chars)):(t=this.openElements.currentTmplContentOrNode,this.treeAdapter.insertText(t,e.chars)),!e.location)return;let r=this.treeAdapter.getChildNodes(t),i=n?r.lastIndexOf(n):r.length,s=r[i-1];if(this.treeAdapter.getNodeSourceCodeLocation(s)){let{endLine:t,endCol:n,endOffset:r}=e.location;this.treeAdapter.updateNodeSourceCodeLocation(s,{endLine:t,endCol:n,endOffset:r})}else this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(s,e.location)}_adoptNodes(e,t){for(let n=this.treeAdapter.getFirstChild(e);n;n=this.treeAdapter.getFirstChild(e))this.treeAdapter.detachNode(n),this.treeAdapter.appendChild(t,n)}_setEndLocation(e,t){if(this.treeAdapter.getNodeSourceCodeLocation(e)&&t.location){let n=t.location,r=this.treeAdapter.getTagName(e),i=t.type===s.END_TAG&&r===t.tagName?{endTag:{...n},endLine:n.endLine,endCol:n.endCol,endOffset:n.endOffset}:{endLine:n.startLine,endCol:n.startCol,endOffset:n.startOffset};this.treeAdapter.updateNodeSourceCodeLocation(e,i)}}shouldProcessStartTagTokenInForeignContent(e){let t,n;return!!this.currentNotInHTML&&(0===this.openElements.stackTop&&this.fragmentContext?(t=this.fragmentContext,n=this.fragmentContextID):{current:t,currentTagId:n}=this.openElements,(e.tagID!==f.SVG||this.treeAdapter.getTagName(t)!==p.ANNOTATION_XML||this.treeAdapter.getNamespaceURI(t)!==c.MATHML)&&(this.tokenizer.inForeignNode||(e.tagID===f.MGLYPH||e.tagID===f.MALIGNMARK)&&void 0!==n&&!this._isIntegrationPoint(n,t,c.HTML)))}_processToken(e){switch(e.type){case s.CHARACTER:this.onCharacter(e);break;case s.NULL_CHARACTER:this.onNullCharacter(e);break;case s.COMMENT:this.onComment(e);break;case s.DOCTYPE:this.onDoctype(e);break;case s.START_TAG:this._processStartTag(e);break;case s.END_TAG:this.onEndTag(e);break;case s.EOF:this.onEof(e);break;case s.WHITESPACE_CHARACTER:this.onWhitespaceCharacter(e)}}_isIntegrationPoint(e,t,n){let r=this.treeAdapter.getNamespaceURI(t),i=this.treeAdapter.getAttrList(t);return(!n||n===c.HTML)&&function(e,t,n){if(t===c.MATHML&&e===f.ANNOTATION_XML){for(let e=0;e<n.length;e++)if(n[e].name===d.ENCODING){let t=n[e].value.toLowerCase();return t===tf.TEXT_HTML||t===tf.APPLICATION_XML}}return t===c.SVG&&(e===f.FOREIGN_OBJECT||e===f.DESC||e===f.TITLE)}(e,r,i)||(!n||n===c.MATHML)&&r===c.MATHML&&(e===f.MI||e===f.MO||e===f.MN||e===f.MS||e===f.MTEXT)}_reconstructActiveFormattingElements(){let e=this.activeFormattingElements.entries.length;if(e){let t=this.activeFormattingElements.entries.findIndex(e=>e.type===g.Marker||this.openElements.contains(e.element)),n=-1===t?e-1:t-1;for(let e=n;e>=0;e--){let t=this.activeFormattingElements.entries[e];this._insertElement(t.token,this.treeAdapter.getNamespaceURI(t.element)),t.element=this.openElements.current}}}_closeTableCell(){this.openElements.generateImpliedEndTags(),this.openElements.popUntilTableCellPopped(),this.activeFormattingElements.clearToLastMarker(),this.insertionMode=y.IN_ROW}_closePElement(){this.openElements.generateImpliedEndTagsWithExclusion(f.P),this.openElements.popUntilTagNamePopped(f.P)}_resetInsertionMode(){for(let e=this.openElements.stackTop;e>=0;e--)switch(0===e&&this.fragmentContext?this.fragmentContextID:this.openElements.tagIDs[e]){case f.TR:this.insertionMode=y.IN_ROW;return;case f.TBODY:case f.THEAD:case f.TFOOT:this.insertionMode=y.IN_TABLE_BODY;return;case f.CAPTION:this.insertionMode=y.IN_CAPTION;return;case f.COLGROUP:this.insertionMode=y.IN_COLUMN_GROUP;return;case f.TABLE:this.insertionMode=y.IN_TABLE;return;case f.BODY:this.insertionMode=y.IN_BODY;return;case f.FRAMESET:this.insertionMode=y.IN_FRAMESET;return;case f.SELECT:return void this._resetInsertionModeForSelect(e);case f.TEMPLATE:this.insertionMode=this.tmplInsertionModeStack[0];return;case f.HTML:this.insertionMode=this.headElement?y.AFTER_HEAD:y.BEFORE_HEAD;return;case f.TD:case f.TH:if(e>0){this.insertionMode=y.IN_CELL;return}break;case f.HEAD:if(e>0){this.insertionMode=y.IN_HEAD;return}}this.insertionMode=y.IN_BODY}_resetInsertionModeForSelect(e){if(e>0)for(let t=e-1;t>0;t--){let e=this.openElements.tagIDs[t];if(e===f.TEMPLATE)break;if(e===f.TABLE){this.insertionMode=y.IN_SELECT_IN_TABLE;return}}this.insertionMode=y.IN_SELECT}_isElementCausesFosterParenting(e){return tA.has(e)}_shouldFosterParentOnInsertion(){return this.fosterParentingEnabled&&void 0!==this.openElements.currentTagId&&this._isElementCausesFosterParenting(this.openElements.currentTagId)}_findFosterParentingLocation(){for(let e=this.openElements.stackTop;e>=0;e--){let t=this.openElements.items[e];switch(this.openElements.tagIDs[e]){case f.TEMPLATE:if(this.treeAdapter.getNamespaceURI(t)===c.HTML)return{parent:this.treeAdapter.getTemplateContent(t),beforeElement:null};break;case f.TABLE:{let n=this.treeAdapter.getParentNode(t);if(n)return{parent:n,beforeElement:t};return{parent:this.openElements.items[e-1],beforeElement:null}}}}return{parent:this.openElements.items[0],beforeElement:null}}_fosterParentElement(e){let t=this._findFosterParentingLocation();t.beforeElement?this.treeAdapter.insertBefore(t.parent,e,t.beforeElement):this.treeAdapter.appendChild(t.parent,e)}_isSpecialElement(e,t){return eV[this.treeAdapter.getNamespaceURI(e)].has(t)}onCharacter(e){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode){var t,n;return void(t=this,n=e,t._insertCharacters(n),t.framesetOk=!1)}switch(this.insertionMode){case y.INITIAL:tC(this,e);break;case y.BEFORE_HTML:tN(this,e);break;case y.BEFORE_HEAD:tR(this,e);break;case y.IN_HEAD:tD(this,e);break;case y.IN_HEAD_NO_SCRIPT:tM(this,e);break;case y.AFTER_HEAD:tL(this,e);break;case y.IN_BODY:case y.IN_CAPTION:case y.IN_CELL:case y.IN_TEMPLATE:tF(this,e);break;case y.TEXT:case y.IN_SELECT:case y.IN_SELECT_IN_TABLE:this._insertCharacters(e);break;case y.IN_TABLE:case y.IN_TABLE_BODY:case y.IN_ROW:tW(this,e);break;case y.IN_TABLE_TEXT:tJ(this,e);break;case y.IN_COLUMN_GROUP:t3(this,e);break;case y.AFTER_BODY:nn(this,e);break;case y.AFTER_AFTER_BODY:nr(this,e)}}onNullCharacter(e){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode){var t,n;return void(t=this,(n=e).chars="�",t._insertCharacters(n))}switch(this.insertionMode){case y.INITIAL:tC(this,e);break;case y.BEFORE_HTML:tN(this,e);break;case y.BEFORE_HEAD:tR(this,e);break;case y.IN_HEAD:tD(this,e);break;case y.IN_HEAD_NO_SCRIPT:tM(this,e);break;case y.AFTER_HEAD:tL(this,e);break;case y.TEXT:this._insertCharacters(e);break;case y.IN_TABLE:case y.IN_TABLE_BODY:case y.IN_ROW:tW(this,e);break;case y.IN_COLUMN_GROUP:t3(this,e);break;case y.AFTER_BODY:nn(this,e);break;case y.AFTER_AFTER_BODY:nr(this,e)}}onComment(e){var t,n,r,i;if(this.skipNextNewLine=!1,this.currentNotInHTML)return void tw(this,e);switch(this.insertionMode){case y.INITIAL:case y.BEFORE_HTML:case y.BEFORE_HEAD:case y.IN_HEAD:case y.IN_HEAD_NO_SCRIPT:case y.AFTER_HEAD:case y.IN_BODY:case y.IN_TABLE:case y.IN_CAPTION:case y.IN_COLUMN_GROUP:case y.IN_TABLE_BODY:case y.IN_ROW:case y.IN_CELL:case y.IN_SELECT:case y.IN_SELECT_IN_TABLE:case y.IN_TEMPLATE:case y.IN_FRAMESET:case y.AFTER_FRAMESET:tw(this,e);break;case y.IN_TABLE_TEXT:t0(this,e);break;case y.AFTER_BODY:t=this,n=e,t._appendCommentNode(n,t.openElements.items[0]);break;case y.AFTER_AFTER_BODY:case y.AFTER_AFTER_FRAMESET:r=this,i=e,r._appendCommentNode(i,r.document)}}onDoctype(e){switch(this.skipNextNewLine=!1,this.insertionMode){case y.INITIAL:!function(e,t){e._setDocumentType(t);let n=t.forceQuirks?h.QUIRKS:function(e){if(e.name!==to)return h.QUIRKS;let{systemId:t}=e;if(t&&"http://www.ibm.com/data/dtd/v11/ibmxhtml1-transitional.dtd"===t.toLowerCase())return h.QUIRKS;let{publicId:n}=e;if(null!==n){if(n=n.toLowerCase(),tc.has(n))return h.QUIRKS;let e=null===t?tu:tl;if(tp(n,e))return h.QUIRKS;if(tp(n,e=null===t?td:th))return h.LIMITED_QUIRKS}return h.NO_QUIRKS}(t);(t.name!==to||null!==t.publicId||null!==t.systemId&&"about:legacy-compat"!==t.systemId)&&e._err(t,i.nonConformingDoctype),e.treeAdapter.setDocumentMode(e.document,n),e.insertionMode=y.BEFORE_HTML}(this,e);break;case y.BEFORE_HEAD:case y.IN_HEAD:case y.IN_HEAD_NO_SCRIPT:case y.AFTER_HEAD:this._err(e,i.misplacedDoctype);break;case y.IN_TABLE_TEXT:t0(this,e)}}onStartTag(e){this.skipNextNewLine=!1,this.currentToken=e,this._processStartTag(e),e.selfClosing&&!e.ackSelfClosing&&this._err(e,i.nonVoidHtmlElementStartTagWithTrailingSolidus)}_processStartTag(e){this.shouldProcessStartTagTokenInForeignContent(e)?function(e,t){if(function(e){let t=e.tagID;return t===f.FONT&&e.attrs.some(({name:e})=>e===d.COLOR||e===d.SIZE||e===d.FACE)||tv.has(t)}(t))ni(e),e._startTagOutsideForeignContent(t);else{let n=e._getAdjustedCurrentElement(),r=e.treeAdapter.getNamespaceURI(n);if(r===c.MATHML)tb(t);else if(r===c.SVG){let e=ty.get(t.tagName);null!=e&&(t.tagName=e,t.tagID=eY(t.tagName)),tE(t)}tT(t),t.selfClosing?e._appendElement(t,r):e._insertElement(t,r),t.ackSelfClosing=!0}}(this,e):this._startTagOutsideForeignContent(e)}_startTagOutsideForeignContent(e){switch(this.insertionMode){case y.INITIAL:tC(this,e);break;case y.BEFORE_HTML:t=this,(n=e).tagID===f.HTML?(t._insertElement(n,c.HTML),t.insertionMode=y.BEFORE_HEAD):tN(t,n);break;case y.BEFORE_HEAD:var t,n,r,s,a,o,l=this,u=e;switch(u.tagID){case f.HTML:tG(l,u);break;case f.HEAD:l._insertElement(u,c.HTML),l.headElement=l.openElements.current,l.insertionMode=y.IN_HEAD;break;default:tR(l,u)}break;case y.IN_HEAD:tO(this,e);break;case y.IN_HEAD_NO_SCRIPT:var d=this,h=e;switch(h.tagID){case f.HTML:tG(d,h);break;case f.BASEFONT:case f.BGSOUND:case f.HEAD:case f.LINK:case f.META:case f.NOFRAMES:case f.STYLE:tO(d,h);break;case f.NOSCRIPT:d._err(h,i.nestedNoscriptInHead);break;default:tM(d,h)}break;case y.AFTER_HEAD:var p=this,m=e;switch(m.tagID){case f.HTML:tG(p,m);break;case f.BODY:p._insertElement(m,c.HTML),p.framesetOk=!1,p.insertionMode=y.IN_BODY;break;case f.FRAMESET:p._insertElement(m,c.HTML),p.insertionMode=y.IN_FRAMESET;break;case f.BASE:case f.BASEFONT:case f.BGSOUND:case f.LINK:case f.META:case f.NOFRAMES:case f.SCRIPT:case f.STYLE:case f.TEMPLATE:case f.TITLE:p._err(m,i.abandonedHeadElementChild),p.openElements.push(p.headElement,f.HEAD),tO(p,m),p.openElements.remove(p.headElement);break;case f.HEAD:p._err(m,i.misplacedStartTagForHeadElement);break;default:tL(p,m)}break;case y.IN_BODY:tG(this,e);break;case y.IN_TABLE:tq(this,e);break;case y.IN_TABLE_TEXT:t0(this,e);break;case y.IN_CAPTION:var g=this,v=e;let b=v.tagID;t1.has(b)?g.openElements.hasInTableScope(f.CAPTION)&&(g.openElements.generateImpliedEndTags(),g.openElements.popUntilTagNamePopped(f.CAPTION),g.activeFormattingElements.clearToLastMarker(),g.insertionMode=y.IN_TABLE,tq(g,v)):tG(g,v);break;case y.IN_COLUMN_GROUP:t2(this,e);break;case y.IN_TABLE_BODY:t4(this,e);break;case y.IN_ROW:t5(this,e);break;case y.IN_CELL:var E=this,T=e;let _=T.tagID;t1.has(_)?(E.openElements.hasInTableScope(f.TD)||E.openElements.hasInTableScope(f.TH))&&(E._closeTableCell(),t5(E,T)):tG(E,T);break;case y.IN_SELECT:t8(this,e);break;case y.IN_SELECT_IN_TABLE:var A=this,x=e;let k=x.tagID;k===f.CAPTION||k===f.TABLE||k===f.TBODY||k===f.TFOOT||k===f.THEAD||k===f.TR||k===f.TD||k===f.TH?(A.openElements.popUntilTagNamePopped(f.SELECT),A._resetInsertionMode(),A._processStartTag(x)):t8(A,x);break;case y.IN_TEMPLATE:var S=this,w=e;switch(w.tagID){case f.BASE:case f.BASEFONT:case f.BGSOUND:case f.LINK:case f.META:case f.NOFRAMES:case f.SCRIPT:case f.STYLE:case f.TEMPLATE:case f.TITLE:tO(S,w);break;case f.CAPTION:case f.COLGROUP:case f.TBODY:case f.TFOOT:case f.THEAD:S.tmplInsertionModeStack[0]=y.IN_TABLE,S.insertionMode=y.IN_TABLE,tq(S,w);break;case f.COL:S.tmplInsertionModeStack[0]=y.IN_COLUMN_GROUP,S.insertionMode=y.IN_COLUMN_GROUP,t2(S,w);break;case f.TR:S.tmplInsertionModeStack[0]=y.IN_TABLE_BODY,S.insertionMode=y.IN_TABLE_BODY,t4(S,w);break;case f.TD:case f.TH:S.tmplInsertionModeStack[0]=y.IN_ROW,S.insertionMode=y.IN_ROW,t5(S,w);break;default:S.tmplInsertionModeStack[0]=y.IN_BODY,S.insertionMode=y.IN_BODY,tG(S,w)}break;case y.AFTER_BODY:r=this,(s=e).tagID===f.HTML?tG(r,s):nn(r,s);break;case y.IN_FRAMESET:var I=this,C=e;switch(C.tagID){case f.HTML:tG(I,C);break;case f.FRAMESET:I._insertElement(C,c.HTML);break;case f.FRAME:I._appendElement(C,c.HTML),C.ackSelfClosing=!0;break;case f.NOFRAMES:tO(I,C)}break;case y.AFTER_FRAMESET:var N=this,R=e;switch(R.tagID){case f.HTML:tG(N,R);break;case f.NOFRAMES:tO(N,R)}break;case y.AFTER_AFTER_BODY:a=this,(o=e).tagID===f.HTML?tG(a,o):nr(a,o);break;case y.AFTER_AFTER_FRAMESET:var O=this,P=e;switch(P.tagID){case f.HTML:tG(O,P);break;case f.NOFRAMES:tO(O,P)}}}onEndTag(e){this.skipNextNewLine=!1,this.currentToken=e,this.currentNotInHTML?function(e,t){if(t.tagID
106===f.P||t.tagID===f.BR){ni(e),e._endTagOutsideForeignContent(t);return}for(let n=e.openElements.stackTop;n>0;n--){let r=e.openElements.items[n];if(e.treeAdapter.getNamespaceURI(r)===c.HTML){e._endTagOutsideForeignContent(t);break}let i=e.treeAdapter.getTagName(r);if(i.toLowerCase()===t.tagName){t.tagName=i,e.openElements.shortenToLength(n);break}}}(this,e):this._endTagOutsideForeignContent(e)}_endTagOutsideForeignContent(e){switch(this.insertionMode){case y.INITIAL:tC(this,e);break;case y.BEFORE_HTML:var t,n,r,s,a,o,l=this,u=e;let c=u.tagID;(c===f.HTML||c===f.HEAD||c===f.BODY||c===f.BR)&&tN(l,u);break;case y.BEFORE_HEAD:var d=this,h=e;let p=h.tagID;p===f.HEAD||p===f.BODY||p===f.HTML||p===f.BR?tR(d,h):d._err(h,i.endTagWithoutMatchingOpenElement);break;case y.IN_HEAD:var m=this,g=e;switch(g.tagID){case f.HEAD:m.openElements.pop(),m.insertionMode=y.AFTER_HEAD;break;case f.BODY:case f.BR:case f.HTML:tD(m,g);break;case f.TEMPLATE:tP(m,g);break;default:m._err(g,i.endTagWithoutMatchingOpenElement)}break;case y.IN_HEAD_NO_SCRIPT:var v=this,b=e;switch(b.tagID){case f.NOSCRIPT:v.openElements.pop(),v.insertionMode=y.IN_HEAD;break;case f.BR:tM(v,b);break;default:v._err(b,i.endTagWithoutMatchingOpenElement)}break;case y.AFTER_HEAD:var E=this,T=e;switch(T.tagID){case f.BODY:case f.HTML:case f.BR:tL(E,T);break;case f.TEMPLATE:tP(E,T);break;default:E._err(T,i.endTagWithoutMatchingOpenElement)}break;case y.IN_BODY:tZ(this,e);break;case y.TEXT:t=this,e.tagID===f.SCRIPT&&(null==(n=t.scriptHandler)||n.call(t,t.openElements.current)),t.openElements.pop(),t.insertionMode=t.originalInsertionMode;break;case y.IN_TABLE:tK(this,e);break;case y.IN_TABLE_TEXT:t0(this,e);break;case y.IN_CAPTION:var _=this,A=e;let x=A.tagID;switch(x){case f.CAPTION:case f.TABLE:_.openElements.hasInTableScope(f.CAPTION)&&(_.openElements.generateImpliedEndTags(),_.openElements.popUntilTagNamePopped(f.CAPTION),_.activeFormattingElements.clearToLastMarker(),_.insertionMode=y.IN_TABLE,x===f.TABLE&&tK(_,A));break;case f.BODY:case f.COL:case f.COLGROUP:case f.HTML:case f.TBODY:case f.TD:case f.TFOOT:case f.TH:case f.THEAD:case f.TR:break;default:tZ(_,A)}break;case y.IN_COLUMN_GROUP:var k=this,S=e;switch(S.tagID){case f.COLGROUP:k.openElements.currentTagId===f.COLGROUP&&(k.openElements.pop(),k.insertionMode=y.IN_TABLE);break;case f.TEMPLATE:tP(k,S);break;case f.COL:break;default:t3(k,S)}break;case y.IN_TABLE_BODY:t9(this,e);break;case y.IN_ROW:t6(this,e);break;case y.IN_CELL:var w=this,I=e;let C=I.tagID;switch(C){case f.TD:case f.TH:w.openElements.hasInTableScope(C)&&(w.openElements.generateImpliedEndTags(),w.openElements.popUntilTagNamePopped(C),w.activeFormattingElements.clearToLastMarker(),w.insertionMode=y.IN_ROW);break;case f.TABLE:case f.TBODY:case f.TFOOT:case f.THEAD:case f.TR:w.openElements.hasInTableScope(C)&&(w._closeTableCell(),t6(w,I));break;case f.BODY:case f.CAPTION:case f.COL:case f.COLGROUP:case f.HTML:break;default:tZ(w,I)}break;case y.IN_SELECT:t7(this,e);break;case y.IN_SELECT_IN_TABLE:var N=this,R=e;let O=R.tagID;O===f.CAPTION||O===f.TABLE||O===f.TBODY||O===f.TFOOT||O===f.THEAD||O===f.TR||O===f.TD||O===f.TH?N.openElements.hasInTableScope(O)&&(N.openElements.popUntilTagNamePopped(f.SELECT),N._resetInsertionMode(),N.onEndTag(R)):t7(N,R);break;case y.IN_TEMPLATE:r=this,(s=e).tagID===f.TEMPLATE&&tP(r,s);break;case y.AFTER_BODY:nt(this,e);break;case y.IN_FRAMESET:a=this,e.tagID===f.FRAMESET&&!a.openElements.isRootHtmlElementCurrent()&&(a.openElements.pop(),a.fragmentContext||a.openElements.currentTagId===f.FRAMESET||(a.insertionMode=y.AFTER_FRAMESET));break;case y.AFTER_FRAMESET:o=this,e.tagID===f.HTML&&(o.insertionMode=y.AFTER_AFTER_FRAMESET);break;case y.AFTER_AFTER_BODY:nr(this,e)}}onEof(e){switch(this.insertionMode){case y.INITIAL:tC(this,e);break;case y.BEFORE_HTML:tN(this,e);break;case y.BEFORE_HEAD:tR(this,e);break;case y.IN_HEAD:tD(this,e);break;case y.IN_HEAD_NO_SCRIPT:tM(this,e);break;case y.AFTER_HEAD:tL(this,e);break;case y.IN_BODY:case y.IN_TABLE:case y.IN_CAPTION:case y.IN_COLUMN_GROUP:case y.IN_TABLE_BODY:case y.IN_ROW:case y.IN_CELL:case y.IN_SELECT:case y.IN_SELECT_IN_TABLE:tV(this,e);break;case y.TEXT:var t,n;t=this,n=e,t._err(n,i.eofInElementThatCanContainOnlyText),t.openElements.pop(),t.insertionMode=t.originalInsertionMode,t.onEof(n);break;case y.IN_TABLE_TEXT:t0(this,e);break;case y.IN_TEMPLATE:ne(this,e);break;case y.AFTER_BODY:case y.IN_FRAMESET:case y.AFTER_FRAMESET:case y.AFTER_AFTER_BODY:case y.AFTER_AFTER_FRAMESET:tI(this,e)}}onWhitespaceCharacter(e){if(this.skipNextNewLine&&(this.skipNextNewLine=!1,e.chars.charCo
106deAt(0)===r.LINE_FEED)){if(1===e.chars.length)return;e.chars=e.chars.substr(1)}if(this.tokenizer.inForeignNode)return void this._insertCharacters(e);switch(this.insertionMode){case y.IN_HEAD:case y.IN_HEAD_NO_SCRIPT:case y.AFTER_HEAD:case y.TEXT:case y.IN_COLUMN_GROUP:case y.IN_SELECT:case y.IN_SELECT_IN_TABLE:case y.IN_FRAMESET:case y.AFTER_FRAMESET:this._insertCharacters(e);break;case y.IN_BODY:case y.IN_CAPTION:case y.IN_CELL:case y.IN_TEMPLATE:case y.AFTER_BODY:case y.AFTER_AFTER_BODY:case y.AFTER_AFTER_FRAMESET:tz(this,e);break;case y.IN_TABLE:case y.IN_TABLE_BODY:case y.IN_ROW:tW(this,e);break;case y.IN_TABLE_TEXT:tQ(this,e)}}}function tS(e,t){for(let n=0;n<8;n++){let n=function(e,t){let n=e.activeFormattingElements.getElementEntryInScopeWithTagName(t.tagName);return n?e.openElements.contains(n.element)?e.openElements.hasInScope(t.tagID)||(n=null):(e.activeFormattingElements.removeEntry(n),n=null):tY(e,t),n}(e,t);if(!n)break;let r=function(e,t){let n=null,r=e.openElements.stackTop;for(;r>=0;r--){let i=e.openElements.items[r];if(i===t.element)break;e._isSpecialElement(i,e.openElements.tagIDs[r])&&(n=i)}return n||(e.openElements.shortenToLength(Math.max(r,0)),e.activeFormattingElements.removeEntry(t)),n}(e,n);if(!r)break;e.activeFormattingElements.bookmark=n;let i=function(e,t,n){let r=t,i=e.openElements.getCommonAncestor(t);for(let s=0,a=i;a!==n;s++,a=i){i=e.openElements.getCommonAncestor(a);let n=e.activeFormattingElements.getElementEntry(a),o=n&&s>=3;!n||o?(o&&e.activeFormattingElements.removeEntry(n),e.openElements.remove(a)):(a=function(e,t){let n=e.treeAdapter.getNamespaceURI(t.element),r=e.treeAdapter.createElement(t.token.tagName,n,t.token.attrs);return e.openElements.replace(t.element,r),t.element=r,r}(e,n),r===t&&(e.activeFormattingElements.bookmark=n),e.treeAdapter.detachNode(r),e.treeAdapter.appendChild(a,r),r=a)}return r}(e,r,n.element),s=e.openElements.getCommonAncestor(n.element);e.treeAdapter.detachNode(i),s&&function(e,t,n){let r=eY(e.treeAdapter.getTagName(t));if(e._isElementCausesFosterParenting(r))e._fosterParentElement(n);else{let i=e.treeAdapter.getNamespaceURI(t);r===f.TEMPLATE&&i===c.HTML&&(t=e.treeAdapter.getTemplateContent(t)),e.treeAdapter.appendChild(t,n)}}(e,s,i);let a=e.treeAdapter.getNamespaceURI(n.element),{token:o}=n,l=e.treeAdapter.createElement(o.tagName,a,o.attrs);e._adoptNodes(r,l),e.treeAdapter.appendChild(r,l),e.activeFormattingElements.insertElementAfterBookmark(l,o),e.activeFormattingElements.removeEntry(n),e.openElements.remove(n.element),e.openElements.insertAfter(r,l,o.tagID)}}function tw(e,t){e._appendCommentNode(t,e.openElements.currentTmplContentOrNode)}function tI(e,t){if(e.stopped=!0,t.location){let n=2*!e.fragmentContext;for(let r=e.openElements.stackTop;r>=n;r--)e._setEndLocation(e.openElements.items[r],t);if(!e.fragmentContext&&e.openElements.stackTop>=0){let n=e.openElements.items[0],r=e.treeAdapter.getNodeSourceCodeLocation(n);if(r&&!r.endTag&&(e._setEndLocation(n,t),e.openElements.stackTop>=1)){let n=e.openElements.items[1],r=e.treeAdapter.getNodeSourceCodeLocation(n);r&&!r.endTag&&e._setEndLocation(n,t)}}}}function tC(e,t){e._err(t,i.missingDoctype,!0),e.treeAdapter.setDocumentMode(e.document,h.QUIRKS),e.insertionMode=y.BEFORE_HTML,e._processToken(t)}function tN(e,t){e._insertFakeRootElement(),e.insertionMode=y.BEFORE_HEAD,e._processToken(t)}function tR(e,t){e._insertFakeElement(p.HEAD,f.HEAD),e.headElement=e.openElements.current,e.insertionMode=y.IN_HEAD,e._processToken(t)}function tO(e,t){switch(t.tagID){case f.HTML:tG(e,t);break;case f.BASE:case f.BASEFONT:case f.BGSOUND:case f.LINK:case f.META:e._appendElement(t,c.HTML),t.ackSelfClosing=!0;break;case f.TITLE:e._switchToTextParsing(t,eq.RCDATA);break;case f.NOSCRIPT:e.options.scriptingEnabled?e._switchToTextParsing(t,eq.RAWTEXT):(e._insertElement(t,c.HTML),e.insertionMode=y.IN_HEAD_NO_SCRIPT);break;case f.NOFRAMES:case f.STYLE:e._switchToTextParsing(t,eq.RAWTEXT);break;case f.SCRIPT:e._switchToTextParsing(t,eq.SCRIPT_DATA);break;case f.TEMPLATE:e._insertTemplate(t),e.activeFormattingElements.insertMarker(),e.framesetOk=!1,e.insertionMode=y.IN_TEMPLATE,e.tmplInsertionModeStack.unshift(y.IN_TEMPLATE);break;case f.HEAD:e._err(t,i.misplacedStartTagForHeadElement);break;default:tD(e,t)}}function tP(e,t){e.openElements.tmplCount>0?(e.openElements.generateImpliedEndTagsThoroughly(),e.openElements.currentTagId!==f.TEMPLATE&&e._err(t,i.closingOfElementWithOpenChildElements),e.openElements.popUntilTagNamePopped(f.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e.tmplInsertionModeStack.shift(),e._resetInsertionMode()):e._err(t,i.endTagWithoutMatchingOpenElement)}function tD(e,t){e.openElements.pop(),e.insertionMode=y.AFTER_HEAD,e._processToken(t)}function tM(e,t){let n=t.type===s.EOF?i.openElementsLeftAfterEof:i.disallowedContentInNoscriptInHead;e._err(t,n),e.openElements.pop(),e.insertionMode=y.IN_HEAD,e._processToken(t)}function tL(e,t){e._insertFakeElement(p.BODY,f.BODY),e.insertionMode=y.IN_BODY,tj(e,t)}function tj(e,t){switch(t.type){case s.CHARACTER:tF(e,t);break;case s.WHITESPACE_CHARACTER:tz(e,t);break;case s.COMMENT:tw(e,t);break;case s.START_TAG:tG(e,t);break;case s.END_TAG:tZ(e,t);break;case s.EOF:tV(e,t)}}function tz(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t)}function tF(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t),e.framesetOk=!1}function tB(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,c.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function t$(e){let t=eF(e,d.TYPE);return null!=t&&"hidden"===t.toLowerCase()}function tU(e,t){e._switchToTextParsing(t,eq.RAWTEXT)}function tH(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,c.HTML)}function tG(e,t){switch(t.tagID){case f.I:case f.S:case f.B:case f.U:case f.EM:case f.TT:case f.BIG:case f.CODE:case f.FONT:case f.SMALL:case f.STRIKE:case f.STRONG:e._reconstructActiveFormattingElements(),e._insertElement(t,c.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t);break;case f.A:let n=e.activeFormattingElements.getElementEntryInScopeWithTagName(p.A);n&&(tS(e,t),e.openElements.remove(n.element),e.activeFormattingElements.removeEntry(n)),e._reconstructActiveFormattingElements(),e._insertElement(t,c.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t);break;case f.H1:case f.H2:case f.H3:case f.H4:case f.H5:case f.H6:e.openElements.hasInButtonScope(f.P)&&e._closePElement(),void 0!==e.openElements.currentTagId&&eW.has(e.openElements.currentTagId)&&e.openElements.pop(),e._insertElement(t,c.HTML);break;case f.P:case f.DL:case f.OL:case f.UL:case f.DIV:case f.DIR:case f.NAV:case f.MAIN:case f.MENU:case f.ASIDE:case f.CENT
106ER:case f.FIGURE:case f.FOOTER:case f.HEADER:case f.HGROUP:case f.DIALOG:case f.DETAILS:case f.ADDRESS:case f.ARTICLE:case f.SEARCH:case f.SECTION:case f.SUMMARY:case f.FIELDSET:case f.BLOCKQUOTE:case f.FIGCAPTION:e.openElements.hasInButtonScope(f.P)&&e._closePElement(),e._insertElement(t,c.HTML);break;case f.LI:case f.DD:case f.DT:e.framesetOk=!1;let r=t.tagID;for(let t=e.openElements.stackTop;t>=0;t--){let n=e.openElements.tagIDs[t];if(r===f.LI&&n===f.LI||(r===f.DD||r===f.DT)&&(n===f.DD||n===f.DT)){e.openElements.generateImpliedEndTagsWithExclusion(n),e.openElements.popUntilTagNamePopped(n);break}if(n!==f.ADDRESS&&n!==f.DIV&&n!==f.P&&e._isSpecialElement(e.openElements.items[t],n))break}e.openElements.hasInButtonScope(f.P)&&e._closePElement(),e._insertElement(t,c.HTML);break;case f.BR:case f.IMG:case f.WBR:case f.AREA:case f.EMBED:case f.KEYGEN:tB(e,t);break;case f.HR:e.openElements.hasInButtonScope(f.P)&&e._closePElement(),e._appendElement(t,c.HTML),e.framesetOk=!1,t.ackSelfClosing=!0;break;case f.RB:case f.RTC:e.openElements.hasInScope(f.RUBY)&&e.openElements.generateImpliedEndTags(),e._insertElement(t,c.HTML);break;case f.RT:case f.RP:e.openElements.hasInScope(f.RUBY)&&e.openElements.generateImpliedEndTagsWithExclusion(f.RTC),e._insertElement(t,c.HTML);break;case f.PRE:case f.LISTING:e.openElements.hasInButtonScope(f.P)&&e._closePElement(),e._insertElement(t,c.HTML),e.skipNextNewLine=!0,e.framesetOk=!1;break;case f.XMP:e.openElements.hasInButtonScope(f.P)&&e._closePElement(),e._reconstructActiveFormattingElements(),e.framesetOk=!1,e._switchToTextParsing(t,eq.RAWTEXT);break;case f.SVG:e._reconstructActiveFormattingElements(),tE(t),tT(t),t.selfClosing?e._appendElement(t,c.SVG):e._insertElement(t,c.SVG),t.ackSelfClosing=!0;break;case f.HTML:0===e.openElements.tmplCount&&e.treeAdapter.adoptAttributes(e.openElements.items[0],t.attrs);break;case f.BASE:case f.LINK:case f.META:case f.STYLE:case f.TITLE:case f.SCRIPT:case f.BGSOUND:case f.BASEFONT:case f.TEMPLATE:tO(e,t);break;case f.BODY:let i=e.openElements.tryPeekProperlyNestedBodyElement();i&&0===e.openElements.tmplCount&&(e.framesetOk=!1,e.treeAdapter.adoptAttributes(i,t.attrs));break;case f.FORM:let s=e.openElements.tmplCount>0;(!e.formElement||s)&&(e.openElements.hasInButtonScope(f.P)&&e._closePElement(),e._insertElement(t,c.HTML),s||(e.formElement=e.openElements.current));break;case f.NOBR:e._reconstructActiveFormattingElements(),e.openElements.hasInScope(f.NOBR)&&(tS(e,t),e._reconstructActiveFormattingElements()),e._insertElement(t,c.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t);break;case f.MATH:e._reconstructActiveFormattingElements(),tb(t),tT(t),t.selfClosing?e._appendElement(t,c.MATHML):e._insertElement(t,c.MATHML),t.ackSelfClosing=!0;break;case f.TABLE:e.treeAdapter.getDocumentMode(e.document)!==h.QUIRKS&&e.openElements.hasInButtonScope(f.P)&&e._closePElement(),e._insertElement(t,c.HTML),e.framesetOk=!1,e.insertionMode=y.IN_TABLE;break;case f.INPUT:e._reconstructActiveFormattingElements(),e._appendElement(t,c.HTML),t$(t)||(e.framesetOk=!1),t.ackSelfClosing=!0;break;case f.PARAM:case f.TRACK:case f.SOURCE:e._appendElement(t,c.HTML),t.ackSelfClosing=!0;break;case f.IMAGE:t.tagName=p.IMG,t.tagID=f.IMG,tB(e,t);break;case f.BUTTON:e.openElements.hasInScope(f.BUTTON)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(f.BUTTON)),e._reconstructActiveFormattingElements(),e._insertElement(t,c.HTML),e.framesetOk=!1;break;case f.APPLET:case f.OBJECT:case f.MARQUEE:e._reconstructActiveFormattingElements(),e._insertElement(t,c.HTML),e.activeFormattingElements.insertMarker(),e.framesetOk=!1;break;case f.IFRAME:e.framesetOk=!1,e._switchToTextParsing(t,eq.RAWTEXT);break;case f.SELECT:e._reconstructActiveFormattingElements(),e._insertElement(t,c.HTML),e.framesetOk=!1,e.insertionMode=e.insertionMode===y.IN_TABLE||e.insertionMode===y.IN_CAPTION||e.insertionMode===y.IN_TABLE_BODY||e.insertionMode===y.IN_ROW||e.insertionMode===y.IN_CELL?y.IN_SELECT_IN_TABLE:y.IN_SELECT;break;case f.OPTION:case f.OPTGROUP:e.openElements.currentTagId===f.OPTION&&e.openElements.pop(),e._reconstructActiveFormattingElements(),e._insertElement(t,c.HTML);break;case f.NOEMBED:case f.NOFRAMES:tU(e,t);break;case f.FRAMESET:let a=e.openElements.tryPeekProperlyNestedBodyElement();e.framesetOk&&a&&(e.treeAdapter.detachNode(a),e.openElements.popAllUpToHtmlElement(),e._insertElement(t,c.HTML),e.insertionMode=y.IN_FRAMESET);break;case f.TEXTAREA:e._insertElement(t,c.HTML),e.skipNextNewLine=!0,e.tokenizer.state=eq.RCDATA,e.originalInsertionMode=e.insertionMode,e.framesetOk=!1,e.insertionMode=y.TEXT;break;case f.NOSCRIPT:e.options.scriptingEnabled?tU(e,t):tH(e,t);break;case f.PLAINTEXT:e.openElements.hasInButtonScope(f.P)&&e._closePElement(),e._insertElement(t,c.HTML),e.tokenizer.state=eq.PLAINTEXT;break;case f.COL:case f.TH:case f.TD:case f.TR:case f.HEAD:case f.FRAME:case f.TBODY:case f.TFOOT:case f.THEAD:case f.CAPTION:case f.COLGROUP:break;default:tH(e,t)}}function tY(e,t){let n=t.tagName,r=t.tagID;for(let t=e.openElements.stackTop;t>0;t--){let i=e.openElements.items[t],s=e.openElements.tagIDs[t];if(r===s&&(r!==f.UNKNOWN||e.treeAdapter.getTagName(i)===n)){e.openElements.generateImpliedEndTagsWithExclusion(r),e.openElements.stackTop>
106=t&&e.openElements.shortenToLength(t);break}if(e._isSpecialElement(i,s))break}}function tZ(e,t){switch(t.tagID){case f.A:case f.B:case f.I:case f.S:case f.U:case f.EM:case f.TT:case f.BIG:case f.CODE:case f.FONT:case f.NOBR:case f.SMALL:case f.STRIKE:case f.STRONG:tS(e,t);break;case f.P:e.openElements.hasInButtonScope(f.P)||e._insertFakeElement(p.P,f.P),e._closePElement();break;case f.DL:case f.UL:case f.OL:case f.DIR:case f.DIV:case f.NAV:case f.PRE:case f.MAIN:case f.MENU:case f.ASIDE:case f.BUTTON:case f.CENTER:case f.FIGURE:case f.FOOTER:case f.HEADER:case f.HGROUP:case f.DIALOG:case f.ADDRESS:case f.ARTICLE:case f.DETAILS:case f.SEARCH:case f.SECTION:case f.SUMMARY:case f.LISTING:case f.FIELDSET:case f.BLOCKQUOTE:case f.FIGCAPTION:let n=t.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n));break;case f.LI:e.openElements.hasInListItemScope(f.LI)&&(e.openElements.generateImpliedEndTagsWithExclusion(f.LI),e.openElements.popUntilTagNamePopped(f.LI));break;case f.DD:case f.DT:let r=t.tagID;e.openElements.hasInScope(r)&&(e.openElements.generateImpliedEndTagsWithExclusion(r),e.openElements.popUntilTagNamePopped(r));break;case f.H1:case f.H2:case f.H3:case f.H4:case f.H5:case f.H6:e.openElements.hasNumberedHeaderInScope()&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilNumberedHeaderPopped());break;case f.BR:e._reconstructActiveFormattingElements(),e._insertFakeElement(p.BR,f.BR),e.openElements.pop(),e.framesetOk=!1;break;case f.BODY:if(e.openElements.hasInScope(f.BODY)&&(e.insertionMode=y.AFTER_BODY,e.options.sourceCodeLocationInfo)){let n=e.openElements.tryPeekProperlyNestedBodyElement();n&&e._setEndLocation(n,t)}break;case f.HTML:e.openElements.hasInScope(f.BODY)&&(e.insertionMode=y.AFTER_BODY,nt(e,t));break;case f.FORM:let i=e.openElements.tmplCount>0,{formElement:s}=e;i||(e.formElement=null),(s||i)&&e.openElements.hasInScope(f.FORM)&&(e.openElements.generateImpliedEndTags(),i?e.openElements.popUntilTagNamePopped(f.FORM):s&&e.openElements.remove(s));break;case f.APPLET:case f.OBJECT:case f.MARQUEE:let a=t.tagID;e.openElements.hasInScope(a)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(a),e.activeFormattingElements.clearToLastMarker());break;case f.TEMPLATE:tP(e,t);break;default:tY(e,t)}}function tV(e,t){e.tmplInsertionModeStack.length>0?ne(e,t):tI(e,t)}function tW(e,t){if(void 0!==e.openElements.currentTagId&&tA.has(e.openElements.currentTagId))switch(e.pendingCharacterTokens.length=0,e.hasNonWhitespacePendingCharacterToken=!1,e.originalInsertionMode=e.insertionMode,e.insertionMode=y.IN_TABLE_TEXT,t.type){case s.CHARACTER:tJ(e,t);break;case s.WHITESPACE_CHARACTER:tQ(e,t)}else tX(e,t)}function tq(e,t){switch(t.tagID){case f.TD:case f.TH:case f.TR:e.openElements.clearBackToTableContext(),e._insertFakeElement(p.TBODY,f.TBODY),e.insertionMode=y.IN_TABLE_BODY,t4(e,t);break;case f.STYLE:case f.SCRIPT:case f.TEMPLATE:tO(e,t);break;case f.COL:e.openElements.clearBackToTableContext(),e._insertFakeElement(p.COLGROUP,f.COLGROUP),e.insertionMode=y.IN_COLUMN_GROUP,t2(e,t);break;case f.FORM:e.formElement||0!==e.openElements.tmplCount||(e._insertElement(t,c.HTML),e.formElement=e.openElements.current,e.openElements.pop());break;case f.TABLE:e.openElements.hasInTableScope(f.TABLE)&&(e.openElements.popUntilTagNamePopped(f.TABLE),e._resetInsertionMode(),e._processStartTag(t));break;case f.TBODY:case f.TFOOT:case f.THEAD:e.openElements.clearBackToTableContext(),e._insertElement(t,c.HTML),e.insertionMode=y.IN_TABLE_BODY;break;case f.INPUT:t$(t)?e._appendElement(t,c.HTML):tX(e,t),t.ackSelfClosing=!0;break;case f.CAPTION:e.openElements.clearBackToTableContext(),e.activeFormattingElements.insertMarker(),e._insertElement(t,c.HTML),e.insertionMode=y.IN_CAPTION;break;case f.COLGROUP:e.openElements.clearBackToTableContext(),e._insertElement(t,c.HTML),e.insertionMode=y.IN_COLUMN_GROUP;break;default:tX(e,t)}}function tK(e,t){switch(t.tagID){case f.TABLE:e.openElements.hasInTableScope(f.TABLE)&&(e.openElements.popUntilTagNamePopped(f.TABLE),e._resetInsertionMode());break;case f.TEMPLATE:tP(e,t);break;case f.BODY:case f.CAPTION:case f.COL:case f.COLGROUP:case f.HTML:case f.TBODY:case f.TD:case f.TFOOT:case f.TH:case f.THEAD:case f.TR:break;default:tX(e,t)}}function tX(e,t){let n=e.fosterParentingEnabled;e.fosterParentingEnabled=!0,tj(e,t),e.fosterParentingEnabled=n}
vendor: 5,181 bytes, line 106
106function tQ(e,t){e.pendingCharacterTokens.push(t)}function tJ(e,t){e.pendingCharacterTokens.push(t),e.hasNonWhitespacePendingCharacterToken=!0}function t0(e,t){let n=0;if(e.hasNonWhitespacePendingCharacterToken)for(;n<e.pendingCharacterTokens.length;n++)tX(e,e.pendingCharacterTokens[n]);else for(;n<e.pendingCharacterTokens.length;n++)e._insertCharacters(e.pendingCharacterTokens[n]);e.insertionMode=e.originalInsertionMode,e._processToken(t)}let t1=new Set([f.CAPTION,f.COL,f.COLGROUP,f.TBODY,f.TD,f.TFOOT,f.TH,f.THEAD,f.TR]);function t2(e,t){switch(t.tagID){case f.HTML:tG(e,t);break;case f.COL:e._appendElement(t,c.HTML),t.ackSelfClosing=!0;break;case f.TEMPLATE:tO(e,t);break;default:t3(e,t)}}function t3(e,t){e.openElements.currentTagId===f.COLGROUP&&(e.openElements.pop(),e.insertionMode=y.IN_TABLE,e._processToken(t))}function t4(e,t){switch(t.tagID){case f.TR:e.openElements.clearBackToTableBodyContext(),e._insertElement(t,c.HTML),e.insertionMode=y.IN_ROW;break;case f.TH:case f.TD:e.openElements.clearBackToTableBodyContext(),e._insertFakeElement(p.TR,f.TR),e.insertionMode=y.IN_ROW,t5(e,t);break;case f.CAPTION:case f.COL:case f.COLGROUP:case f.TBODY:case f.TFOOT:case f.THEAD:e.openElements.hasTableBodyContextInTableScope()&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=y.IN_TABLE,tq(e,t));break;default:tq(e,t)}}function t9(e,t){let n=t.tagID;switch(t.tagID){case f.TBODY:case f.TFOOT:case f.THEAD:e.openElements.hasInTableScope(n)&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=y.IN_TABLE);break;case f.TABLE:e.openElements.hasTableBodyContextInTableScope()&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=y.IN_TABLE,tK(e,t));break;case f.BODY:case f.CAPTION:case f.COL:case f.COLGROUP:case f.HTML:case f.TD:case f.TH:case f.TR:break;default:tK(e,t)}}function t5(e,t){switch(t.tagID){case f.TH:case f.TD:e.openElements.clearBackToTableRowContext(),e._insertElement(t,c.HTML),e.insertionMode=y.IN_CELL,e.activeFormattingElements.insertMarker();break;case f.CAPTION:case f.COL:case f.COLGROUP:case f.TBODY:case f.TFOOT:case f.THEAD:case f.TR:e.openElements.hasInTableScope(f.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=y.IN_TABLE_BODY,t4(e,t));break;default:tq(e,t)}}function t6(e,t){switch(t.tagID){case f.TR:e.openElements.hasInTableScope(f.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=y.IN_TABLE_BODY);break;case f.TABLE:e.openElements.hasInTableScope(f.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=y.IN_TABLE_BODY,t9(e,t));break;case f.TBODY:case f.TFOOT:case f.THEAD:(e.openElements.hasInTableScope(t.tagID)||e.openElements.hasInTableScope(f.TR))&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=y.IN_TABLE_BODY,t9(e,t));break;case f.BODY:case f.CAPTION:case f.COL:case f.COLGROUP:case f.HTML:case f.TD:case f.TH:break;default:tK(e,t)}}function t8(e,t){switch(t.tagID){case f.HTML:tG(e,t);break;case f.OPTION:e.openElements.currentTagId===f.OPTION&&e.openElements.pop(),e._insertElement(t,c.HTML);break;case f.OPTGROUP:e.openElements.currentTagId===f.OPTION&&e.openElements.pop(),e.openElements.currentTagId===f.OPTGROUP&&e.openElements.pop(),e._insertElement(t,c.HTML);break;case f.HR:e.openElements.currentTagId===f.OPTION&&e.openElements.pop(),e.openElements.currentTagId===f.OPTGROUP&&e.openElements.pop(),e._appendElement(t,c.HTML),t.ackSelfClosing=!0;break;case f.INPUT:case f.KEYGEN:case f.TEXTAREA:case f.SELECT:e.openElements.hasInSelectScope(f.SELECT)&&(e.openElements.popUntilTagNamePopped(f.SELECT),e._resetInsertionMode(),t.tagID!==f.SELECT&&e._processStartTag(t));break;case f.SCRIPT:case f.TEMPLATE:tO(e,t)}}function t7(e,t){switch(t.tagID){case f.OPTGROUP:e.openElements.stackTop>0&&e.openElements.currentTagId===f.OPTION&&e.openElements.tagIDs[e.openElements.stackTop-1]===f.OPTGROUP&&e.openElements.pop(),e.openElements.currentTagId===f.OPTGROUP&&e.openElements.pop();break;case f.OPTION:e.openElements.currentTagId===f.OPTION&&e.openElements.pop();break;case f.SELECT:e.openElements.hasInSelectScope(f.SELECT)&&(e.openElements.popUntilTagNamePopped(f.SELECT),e._resetInsertionMode());break;case f.TEMPLATE:tP(e,t)}}function ne(e,t){e.openElements.tmplCount>0?(e.openElements.popUntilTagNamePopped(f.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e.tmplInsertionModeStack.shift(),e._resetInsertionMode(),e.onEof(t)):tI(e,t)}function nt(e,t){var n;if(t.tagID===f.HTML){if(e.fragmentContext||(e.insertionMode=y.AFTER_AFTER_BODY),e.options.sourceCodeLocationInfo&&e.openElements.tagIDs[0]===f.HTML){e._setEndLocation(e.openElements.items[0],t);let r=e.openElements.items[1];!r||(null==(n=e.treeAdapter.getNodeSourceCodeLocation(r))?void 0:n.endTag)||e._setEndLocation(r,t)}}else nn(e,t)}function nn(e,t){e.insertionMode=y.IN_BODY,tj(e,t)}function nr(e,t){e.insertionMode=y.IN_BODY,tj(e,t)}function ni(e){for(;e.treeAdapter.getNamespaceURI(e.openElements.current)!==c.HTML&&void 0!==e.openElements.currentTagId&&!e._isIntegrationPoint(e.openElements.currentTagId,e.o
106penElements.current);)e.openElements.pop()}null==String.prototype.codePointAt||((e,t)=>e.codePointAt(t)),p.AREA,p.BASE,p.BASEFONT,p.BGSOUND,p.BR,p.COL,p.EMBED,p.FRAME,p.HR,p.IMG,p.INPUT,p.KEYGEN,p.LINK,p.META,p.PARAM,p.SOURCE,p.TRACK,p.WBR;let ns=no("end"),na=no("start");function no(e){return function(t){let n=t&&t.position&&t.position[e]||{};if("number"==typeof n.line&&n.line>0&&"number"==typeof n.column&&n.column>0)return{line:n.line,column:n.column,offset:"number"==typeof n.offset&&n.offset>-1?n.offset:void 0}}}function nl(e){let t=na(e),n=ns(e);if(t&&n)return{start:t,end:n}}let nu=/<(\/?)(iframe|noembed|noframes|plaintext|script|style|textarea|title|xmp)(?=[\t\n\f\r />])/gi,nc=new Set(["mdxFlowExpression","mdxJsxFlowElement","mdxJsxTextElement","mdxTextExpression","mdxjsEsm"]),nd={sourceCodeLocationInfo:!0,scriptingEnabled:!1};function nh(e,t){let n=function(e){let t="root"===e.type?e.children[0]:e;return!!(t&&("doctype"===t.type||"element"===t.type&&"html"===t.tagName.toLowerCase()))}(e),r=(0,ew.A)("type",{handlers:{root:nf,element:nm,text:ng,comment:nv,doctype:ny,raw:nb},unknown:nE}),i={parser:n?new tk(nd):tk.getFragmentParser(void 0,nd),handle(e){r(e,i)},stitches:!1,options:t||{}};r(e,i),nT(i,na());let s=function(e,t){let n=t||{};return e_({file:n.file||void 0,location:!1,schema:"svg"===n.space?P.JW:P.qy,verbose:n.verbose||!1},e)}(n?i.parser.document:i.parser.getFragment(),{file:i.options.file});return(i.stitches&&w(s,"comment",function(e,t,n){if(e.value.stitch&&n&&void 0!==t)return n.children[t]=e.value.stitch,t}),"root"===s.type&&1===s.children.length&&s.children[0].type===e.type)?s.children[0]:s}function np(e,t){let n=-1;if(e)for(;++n<e.length;)t.handle(e[n])}function nf(e,t){np(e.children,t)}function nm(e,t){(function(e,t){let n=e.tagName.toLowerCase();if(t.parser.tokenizer.state===eq.PLAINTEXT)return;nT(t,na(e));let r=t.parser.openElements.current,i="namespaceURI"in r?r.namespaceURI:H.html;i===H.html&&"svg"===n&&(i=H.svg);let a=eC({...e,children:[]},"svg"===({space:i===H.svg?"svg":"html"}).space?P.JW:P.qy),o={type:s.START_TAG,tagName:n,tagID:eY(n),selfClosing:!1,ackSelfClosing:!1,attrs:"attrs"in a?a.attrs:[],location:nA(e)};t.parser.currentToken=o,t.parser._processToken(t.parser.currentToken),t.parser.tokenizer.lastStartTagName=n})(e,t),np(e.children,t),function(e,t){let n=e.tagName.toLowerCase();if(!t.parser.tokenizer.inForeignNode&&eO.b.includes(n)||t.parser.tokenizer.state===eq.PLAINTEXT)return;nT(t,ns(e));let r={type:s.END_TAG,tagName:n,tagID:eY(n),selfClosing:!1,ackSelfClosing:!1,attrs:[],location:nA(e)};t.parser.currentToken=r,t.parser._processToken(t.parser.currentToken),n===t.parser.tokenizer.lastStartTagName&&(t.parser.tokenizer.state===eq.RCDATA||t.parser.tokenizer.state===eq.RAWTEXT||t.parser.tokenizer.state===eq.SCRIPT_DATA)&&(t.parser.tokenizer.state=eq.DATA)}(e,t)}function ng(e,t){t.parser.tokenizer.state>4&&(t.parser.tokenizer.state=0);let n={type:s.CHARACTER,chars:e.value,location:nA(e)};nT(t,na(e)),t.parser.currentToken=n,t.parser._processToken(t.parser.currentToken)}function ny(e,t){let n={type:s.DOCTYPE,name:"html",forceQuirks:!1,publicId:"",systemId:"",location:nA(e)};nT(t,na(e)),t.parser.currentToken=n,t.parser._processToken(t.parser.currentToken)}function nv(e,t){let n=e.value,r={type:s.COMMENT,data:n,location:nA(e)};nT(t,na(e)),t.parser.currentToken=r,t.parser._processToken(t.parser.currentToken)}function nb(e,t){if(t.parser.tokenizer.preprocessor.html="",t.parser.tokenizer.preprocessor.pos=-1,t.parser.tokenizer.preprocessor.lastGapPos=-2,t.parser.tokenizer.preprocessor.gapStack=[],t.parser.tokenizer.preprocessor.skipNextNewLine=!1,t.parser.tokenizer.preprocessor.lastChunkWritten=!1,t.parser.tokenizer.preprocessor.endOfChunkHit=!1,t.parser.tokenizer.preprocessor.isEol=!1,n_(t,na(e)),t.parser.tokenizer.write(t.options.tagfilter?e.value.replace(nu,"<$1$2"):e.value,!1),t.parser.tokenizer._runParsingLoop(),72===t.parser.tokenizer.state||78===t.parser.tokenizer.state){t.parser.tokenizer.preprocessor.lastChunkWritten=!0;let e=t.parser.tokenizer._consume();t.parser.tokenizer._callState(e)}}function nE(e,t){if(t.options.passThrough&&t.options.passThrough.includes(e.type)){var n;t.stitches=!0;let r="children"in(n=e)?ev({...n,children:[]}):ev(n);"children"in e&&"children"in r&&(r.children=nh({type:"root",children:e.children},t.options).children),nv({type:"comment",value:{stitch:r}},t)}else{let t="";
106throw nc.has(e.type)&&(t=". It looks like you are using MDX nodes with `hast-util-raw` (or `rehype-raw`). If you use this because you are using remark or rehype plugins that inject `'html'` nodes, then please raise an issue with that plugin, as its a bad and slow idea. If you use this because you are using markdown syntax, then you have to configure this utility (or plugin) to pass through these nodes (see `passThrough` in docs), but you can also migrate to use the MDX syntax"),Error("Cannot compile `"+e.type+"` node"+t)}}function nT(e,t){n_(e,t);let n=e.parser.tokenizer.currentCharacterToken;n&&n.location&&(n.location.endLine=e.parser.tokenizer.preprocessor.line,n.location.endCol=e.parser.tokenizer.preprocessor.col+1,n.location.endOffset=e.parser.tokenizer.preprocessor.offset+1,e.parser.currentToken=n,e.parser._processToken(e.parser.currentToken)),e.parser.tokenizer.paused=!1,e.parser.tokenizer.inLoop=!1,e.parser.tokenizer.active=!1,e.parser.tokenizer.returnState=eq.DATA,e.parser.tokenizer.charRefCode=-1,e.parser.tokenizer.consumedAfterSnapshot=-1,e.parser.tokenizer.currentLocation=null,e.parser.tokenizer.currentCharacterToken=null,e.parser.tokenizer.currentToken=null,e.parser.tokenizer.currentAttr={name:"",value:""}}function n_(e,t){if(t&&void 0!==t.offset){let n={startLine:t.line,startCol:t.column,startOffset:t.offset,endLine:-1,endCol:-1,endOffset:-1};e.parser.tokenizer.preprocessor.lineStartPos=-t.column+1,e.parser.tokenizer.preprocessor.droppedBufferSize=t.offset,e.parser.tokenizer.preprocessor.line=t.line,e.parser.tokenizer.currentLocation=n}}function nA(e){let t=na(e)||{line:void 0,column:void 0,offset:void 0},n=ns(e)||{line:void 0,column:void 0,offset:void 0};return{startLine:t.line,startCol:t.column,startOffset:t.offset,endLine:n.line,endCol:n.column,endOffset:n.offset}}let nx=["ariaDescribedBy","ariaLabel","ariaLabelledBy"],nk={ancestors:{tbody:["table"],td:["table"],th:["table"],thead:["table"],tfoot:["table"],tr:["table"]},attributes:{a:[...nx,"dataFootnoteBackref","dataFootnoteRef",["className","data-footnote-backref"],"href"],blockquote:["cite"],code:[["className",/^language-./]],del:["cite"],div:["itemScope","itemType"],dl:[...nx],h2:[["className","sr-only"]],img:[...nx,"longDesc","src"],input:[["disabled",!0],["type","checkbox"]],ins:["cite"],li:[["className","task-list-item"]],ol:[...nx,["className","contains-task-list"]],q:["cite"],section:["dataFootnotes",["className","footnotes"]],source:["srcSet"],summary:[...nx],table:[...nx],ul:[...nx,["className","contains-task-list"]],"*":["abbr","accept","acceptCharset","accessKey","action","align","alt","axis","border","cellPadding","cellSpacing","char","charOff","charSet","checked","clear","colSpan","color","cols","compact","coords","dateTime","dir","encType","frame","hSpace","headers","height","hrefLang","htmlFor","id","isMap","itemProp","label","lang","maxLength","media","method","multiple","name","noHref","noShade","noWrap","open","prompt","readOnly","rev","rowSpan","rows","rules","scope","selected","shape","size","span","start","summary","tabIndex","title","useMap","vAlign","value","width"]},clobber:["ariaDescribedBy","ariaLabelledBy","id","name"],clobberPrefix:"user-content-",protocols:{cite:["http","https"],href:["http","https","irc","ircs","mailto","xmpp"],longDesc:["http","https"],src:["http","https"]},required:{input:{disabled:!0,type:"checkbox"}},strip:["script"],tagNames:["a","b","blockquote","br","code","dd","del","details","div","dl","dt","em","h1","h2","h3","h4","h5","h6","hr","i","img","input","ins","kbd","li","ol","p","picture","pre","q","rp","rt","ruby","s","samp","section","source","span","strike","strong","sub","summary","sup","table","tbody","td","tfoot","th","thead","tr","tt","ul","var"]},nS={}.hasOwnProperty;function nw(e,t){if(t&&"object"==typeof t)switch("string"==typeof t.type?t.type:""){case"comment":var n=e,r=t;if(n.schema.allowComments){let e="string"==typeof r.value?r.value:"",t=e.indexOf("--\x3e"),n={type:"comment",value:t<0?e:e.slice(0,t)};return nR(n,r),n}return;case"doctype":var i=e,s=t;if(i.schema.allowDoctypes){let e={type:"doctype"};
106return nR(e,s),e}return;case"element":return function(e,t){let n="string"==typeof t.tagName?t.tagName:"";e.stack.push(n);let r=nI(e,t.children),i=function(e,t){let n,r=e.stack[e.stack.length-1],i=e.schema.attributes,s=e.schema.required,a=i&&nS.call(i,r)?i[r]:void 0,o=i&&nS.call(i,"*")?i["*"]:void 0,l=t&&"object"==typeof t?t:{},u={};for(n in l)if(nS.call(l,n)){let t=l[n],r=nC(e,nO(a,n),n,t);null==r&&(r=nC(e,nO(o,n),n,t)),null!=r&&(u[n]=r)}if(s&&nS.call(s,r)){let e=s[r];for(n in e)nS.call(e,n)&&!nS.call(u,n)&&(u[n]=e[n])}return u}(e,t.properties);e.stack.pop();let s=!1;if(n&&"*"!==n&&(!e.schema.tagNames||e.schema.tagNames.includes(n))&&(s=!0,e.schema.ancestors&&nS.call(e.schema.ancestors,n))){let t=e.schema.ancestors[n],r=-1;for(s=!1;++r<t.length;)e.stack.includes(t[r])&&(s=!0)}if(!s)return e.schema.strip&&!e.schema.strip.includes(n)?r:void 0;let a={type:"element",tagName:n,properties:i,children:r};return nR(a,t),a}(e,t);case"root":var a=e,o=t;let l={type:"root",children:nI(a,o.children)};return nR(l,o),l;case"text":var u=t;let c={type:"text",value:"string"==typeof u.value?u.value:""};return nR(c,u),c}}function nI(e,t){let n=[];if(Array.isArray(t)){let r=-1;for(;++r<t.length;){let i=nw(e,t[r]);i&&(Array.isArray(i)?n.push(...i):n.push(i))}}return n}function nC(e,t,n,r){return t?Array.isArray(r)?function(e,t,n,r){let i=-1,s=[];for(;++i<r.length;){let a=nN(e,t,n,r[i]);("number"==typeof a||"string"==typeof a)&&s.push(a)}return s}(e,t,n,r):nN(e,t,n,r):void 0}function nN(e,t,n,r){if(("boolean"==typeof r||"number"==typeof r||"string"==typeof r)&&function(e,t,n){let r=e.schema.protocols&&nS.call(e.schema.protocols,t)?e.schema.protocols[t]:void 0;if(!r||0===r.length)return!0;let i=String(n),s=i.indexOf(":"),a=i.indexOf("?"),o=i.indexOf("#"),l=i.indexOf("/");if(s<0||l>-1&&s>l||a>-1&&s>a||o>-1&&s>o)return!0;let u=-1;for(;++u<r.length;){let e=r[u];if(s===e.length&&i.slice(0,e.length)===e)return!0}return!1}(e,n,r)){if("object"==typeof t&&t.length>1){let e=!1,n=0;for(;++n<t.length;){let i=t[n];if(i&&"object"==typeof i&&"flags"in i){if(i.test(String(r))){e=!0;break}}else if(i===r){e=!0;break}}if(!e)return}return e.schema.clobber&&e.schema.clobberPrefix&&e.schema.clobber.includes(n)?e.schema.clobberPrefix+r:r}}function nR(e,t){let n=nl(t);t.data&&(e.data=ev(t.data)),n&&(e.position=n)}function nO(e,t){let n,r=-1;if(e)for(;++r<e.length;){let i=e[r],s="string"==typeof i?i:i[0];if(s===t)return i;"data*"===s&&(n=i)}if(t.length>4&&"data"===t.slice(0,4).toLowerCase())return n}let nP={eof:null,asterisk:42,underscore:95,tilde:126},nD={attentionSideAfter:2,characterGroupPunctuation:2,characterGroupWhitespace:1},nM=nV(/[A-Za-z]/),nL=nV(/[\dA-Za-z]/),nj=nV(/[#-'*+\--9=?A-Z^-~]/);function nz(e){return null!==e&&(e<32||127===e)}let nF=nV(/\d/),nB=nV(/[\dA-Fa-f]/),n$=nV(/[!-/:-@[-`{-~]/);function nU(e){return null!==e&&e<-2}function nH(e){return null!==e&&(e<0||32===e)}function nG(e){return -2===e||-1===e||32===e}let nY=nV(/\p{P}|\p{S}/u),nZ=nV(/\s/);function nV(e){return function(t){return null!==t&&t>-1&&e.test(String.fromCharCode(t))}}let nW=[161,161,164,164,167,168,170,170,173,174,176,180,182,186,188,191,198,198,208,208,215,216,222,225,230,230,232,234,236,237,240,240,242,243,247,250,252,252,254,254,257,257,273,273,275,275,283,283,294,295,299,299,305,307,312,312,319,322,324,324,328,331,333,333,338,339,358,359,363,363,462,462,464,464,466,466,468,468,470,470,472,472,474,474,476,476,593,593,609,609,708,708,711,711,713,715,717,717,720,720,728,731,733,733,735,735,768,879,913,929,931,937,945,961,963,969,1025,1025,1040,1103,1105,1105,8208,8208,8211,8214,8216,8217,8220,8221,8224,8226,8228,8231,8240,8240,8242,8243,8245,8245,8251,8251,8254,8254,8308,8308,8319,8319,8321,8324,8364,8364,8451,8451,8453,8453,8457,8457,8467,8467,8470,8470,8481,8482,8486,8486,8491,8491,8531,8532,8539,8542,8544,8555,8560,8569,8585,8585,8592,8601,8632,8633,8658,8658,8660,8660,8679,8679,8704,8704,8706,8707,8711,8712,8715,8715,8719,8719,8721,8721,8725,8725,8730,8730,8733,8736,8739,8739,8741,8741,8743,8748,8750,8750,8756,8759,8764,8765,8776,8776,8780,8780,8786,8786,8800,8801,8804,8807,8810,8811,8814,8815,8834,8835,8838,8839,8853,8853,8857,8857,8869,8869,8895,8895,8978,8978,9312,9449,9451,9547,9552,9587,9600,9615,9
106618,9621,9632,9633,9635,9641,9650,9651,9654,9655,9660,9661,9664,9665,9670,9672,9675,9675,9678,9681,9698,9701,9711,9711,9733,9734,9737,9737,9742,9743,9756,9756,9758,9758,9792,9792,9794,9794,9824,9825,9827,9829,9831,9834,9836,9837,9839,9839,9886,9887,9919,9919,9926,9933,9935,9939,9941,9953,9955,9955,9960,9961,9963,9969,9972,9972,9974,9977,9979,9980,9982,9983,10045,10045,10102,10111,11094,11097,12872,12879,57344,63743,65024,65039,65533,65533,127232,127242,127248,127277,127280,127337,127344,127373,127375,127376,127387,127404,917760,917999,983040,1048573,1048576,1114109],nq=[12288,12288,65281,65376,65504,65510],nK=[8361,8361,65377,65470,65474,65479,65482,65487,65490,65495,65498,65500,65512,65518],nX=[32,126,162,163,165,166,172,172,175,175,10214,10221,10629,10630],nQ=[4352,4447,8986,8987,9001,9002,9193,9196,9200,9200,9203,9203,9725,9726,9748,9749,9776,9783,9800,9811,9855,9855,9866,9871,9875,9875,9889,9889,9898,9899,9917,9918,9924,9925,9934,9934,9940,9940,9962,9962,9970,9971,9973,9973,9978,9978,9981,9981,9989,9989,9994,9995,10024,10024,10060,10060,10062,10062,10067,10069,10071,10071,10133,10135,10160,10160,10175,10175,11035,11036,11088,11088,11093,11093,11904,11929,11931,12019,12032,12245,12272,12287,12289,12350,12353,12438,12441,12543,12549,12591,12593,12686,12688,12773,12783,12830,12832,12871,12880,42124,42128,42182,43360,43388,44032,55203,63744,64255,65040,65049,65072,65106,65108,65126,65128,65131,94176,94180,94192,94198,94208,101589,101631,101662,101760,101874,110576,110579,110581,110587,110589,110590,110592,110882,110898,110898,110928,110930,110933,110933,110948,110951,110960,111355,119552,119638,119648,119670,126980,126980,127183,127183,127374,127374,127377,127386,127488,127490,127504,127547,127552,127560,127568,127569,127584,127589,127744,127776,127789,127797,127799,127868,127870,127891,127904,127946,127951,127955,127968,127984,127988,127988,127992,128062,128064,128064,128066,128252,128255,128317,128331,128334,128336,128359,128378,128378,128405,128406,128420,128420,128507,128591,128640,128709,128716,128716,128720,128722,128725,128728,128732,128735,128747,128748,128756,128764,128992,129003,129008,129008,129292,129338,129340,129349,129351,129535,129648,129660,129664,129674,129678,129734,129736,129736,129741,129756,129759,129770,129775,129784,131072,196605,196608,262141],nJ=(e,t)=>{let n=0,r=Math.floor(e.length/2)-1;for(;n<=r;){let i=Math.floor((n+r)/2),s=2*i;if(t<e[s])r=i-1;else{if(!(t>e[s+1]))return!0;n=i+1}}return!1},[n0,n1]=function(e){let t=e[0],n=e[1];for(let r=0;r<e.length;r+=2){let i=e[r],s=e[r+1];if(19968>=i&&19968<=s)return[i,s];s-i>n-t&&(t=i,n=s)}return[t,n]}(nQ);var n2=Object.defineProperty,n3=n9(/\p{P}|\p{S}/u),n4=n9(/\s/);function n9(e){return function(t){return null!==t&&t>-1&&e.test(String.fromCodePoint(t))}}function n5(e){if(e===nP.eof||nH(e)||n4(e))return nD.characterGroupWhitespace;let t=0;if(e>=4352){if(null!==e&&e>=65024&&e<=65038)return v.nonEmojiGeneralUseVS;switch(function(e){if(!e||e<4352)return!1;switch(function(e){if(!Number.isSafeInteger(e))throw TypeError(`Expected a code point, got \`${typeof e}\`.`);return function(e){return!(e<161)&&!(e>1114109)&&nJ(nW,e)?"ambiguous":!(e<12288)&&!(e>65510)&&nJ(nq,e)?"fullwidth":!(e<8361)&&!(e>65518)&&nJ(nK,e)?"halfwidth":!(e<32)&&!(e>10630)&&nJ(nX,e)?"narrow":e>=n0&&e<=n1||!(e<4352)&&!(e>262141)&&nJ(nQ,e)?"wide":"neutral"}(e)}(e)){case"fullwidth":case"halfwidth":return!0;case"wide":return!/^\p{Emoji_Presentation}/u.test(String.fromCodePoint(e));case"narrow":return!1;case"ambiguous":return 917760<=e&&e<=917999&&null;case"neutral":return/^\p{sc=Hangul}/u.test(String.fromCodePoint(e))}}(e)){case null:return v.ivs;case!0:t|=v.cjk}}return n3(e)&&(t|=nD.characterGroupPunctuation),t}function n6(e,t,n){if(e!==v.nonEmojiGeneralUseVS)return e;let r=t(),i=n5(r);return!r||n8(i)?e:65025===n&&r&&!(r<8216)&&(8216===r||8217===r||8220===r||8221===r)?v.cjkPunctuation:i&~v.ivs}function n8(e){return!!(e&nD.characterGroupWhitespace)}function n7(e){return(e&v.cjkPunctuation)===nD.characterGroupPunctuation}function re(e){return!!(e&v.cjk)}function rt(e){return!!(e&v.spaceOrPunctuation)}function rn(e){return!!(e&&e>=55296&&e<=56319)}function rr(e){return!!(e&&e>=56320&&e<=57343)}function ri(e,t,n){if(t._bufferIndex<2)return e;let r=n({start:{...t,_bufferIndex:t._bufferIndex-2},end:t}).codePointAt(0);return r&&r>=65536?r:e}(e=>{e.spaceOrPunctuation=3,e.cjk=4096,e.cjkPunctuation=4098,e.ivs=8192,e.cjkOrIvs=12288,e.nonEmojiGeneralUseVS=16384,e.variationSelector=24576,e.ivsToCjkRightShift=1})(v||(v={}));var rs=class{constructor(e,t,n){this.previousCode=e,this.nowPoint=t,this.sliceSerialize=n,((e,t,n)=>((e,t,n)=>t in e?n2(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}
106):e[t]=n)(e,"symbol"!=typeof t?t+"":t,n))(this,"cachedValue")}value(){return void 0===this.cachedValue&&(this.cachedValue=function(e,t,n){let r=e>=65536?2:1;if(t._bufferIndex<1+r)return null;let i=t._bufferIndex-r-2,s=n({start:{...t,_bufferIndex:i>=0?i:0},end:{...t,_bufferIndex:t._bufferIndex-r}}),a=s.charCodeAt(s.length-1);if(Number.isNaN(a))return null;if(s.length<2||a<56320||57343<a)return a;let o=s.codePointAt(0);return o&&o>=65536?o:a}(this.previousCode,this.nowPoint,this.sliceSerialize)),this.cachedValue}};function ra(e,t,n){let r=n({start:t,end:{...t,_bufferIndex:t._bufferIndex+2}}).codePointAt(0);return r&&r>=65536?r:e}function ro(e,t,n,r){let i,s=e.length,a=0;if(t=t<0?-t>s?0:s+t:t>s?s:t,n=n>0?n:0,r.length<1e4)(i=Array.from(r)).unshift(t,n),e.splice(...i);else for(n&&e.splice(t,n);a<r.length;)(i=r.slice(a,a+1e4)).unshift(t,0),e.splice(...i),a+=1e4,t+=1e4}function rl(e,t){return e.length>0?(ro(e,e.length,0,t),e):t}function ru(e,t,n){let r=[],i=-1;for(;++i<e.length;){let s=e[i].resolveAll;s&&!r.includes(s)&&(t=s(t,n),r.push(s))}return t}let rc={data:"data",characterEscape:"characterEscape",emphasis:"emphasis",emphasisSequence:"emphasisSequence",emphasisText:"emphasisText",strong:"strong",strongSequence:"strongSequence",strongText:"strongText"};var rd={name:"attention",resolveAll:function(e,t){let n,r,i,s,a,o,l,u,c=-1;for(;++c<e.length;)if("enter"===e[c][0]&&"attentionSequence"===e[c][1].type&&e[c][1]._close){for(n=c;n--;)if("exit"===e[n][0]&&"attentionSequence"===e[n][1].type&&e[n][1]._open&&t.sliceSerialize(e[n][1]).charCodeAt(0)===t.sliceSerialize(e[c][1]).charCodeAt(0)){if((e[n][1]._close||e[c][1]._open)&&(e[c][1].end.offset-e[c][1].start.offset)%3&&!((e[n][1].end.offset-e[n][1].start.offset+e[c][1].end.offset-e[c][1].start.offset)%3))continue;o=e[n][1].end.offset-e[n][1].start.offset>1&&e[c][1].end.offset-e[c][1].start.offset>1?2:1;let d={...e[n][1].end},h={...e[c][1].start};rh(d,-o),rh(h,o),s={type:o>1?rc.strongSequence:rc.emphasisSequence,start:d,end:{...e[n][1].end}},a={type:o>1?rc.strongSequence:rc.emphasisSequence,start:{...e[c][1].start},end:h},i={type:o>1?rc.strongText:rc.emphasisText,start:{...e[n][1].end},end:{...e[c][1].start}},r={type:o>1?rc.strong:rc.emphasis,start:{...s.start},end:{...a.end}},e[n][1].end={...s.start},e[c][1].start={...a.end},l=[],e[n][1].end.offset-e[n][1].start.offset&&(l=rl(l,[["enter",e[n][1],t],["exit",e[n][1],t]])),l=rl(l,[["enter",r,t],["enter",s,t],["exit",s,t],["enter",i,t]]),t.parser.constructs.insideSpan.null,l=rl(l,ru(t.parser.constructs.insideSpan.null,e.slice(n+1,c),t)),l=rl(l,[["exit",i,t],["enter",a,t],["exit",a,t],["exit",r,t]]),e[c][1].end.offset-e[c][1].start.offset?(u=2,l=rl(l,[["enter",e[c][1],t],["exit",e[c][1],t]])):u=0,ro(e,n-1,c-n+3,l),c=n+l.length-u-2;break}}for(c=-1;++c<e.length;)"attentionSequence"===e[c][1].type&&(e[c][1].type="data");return e},tokenize:function(e,t){let n,r=this.parser.constructs.attentionMarkers.null,{now:i,sliceSerialize:s,previous:a}=this,o=rr(a)?ri(a,i(),s):a,l=n5(o),u=new rs(o,i(),s),c=n6(l,u.value.bind(u),o);return function(a){return a===nP.asterisk||nP.underscore,n=a,e.enter("attentionSequence"),function a(l){if(l===n)return e.consume(l),a;let u=e.exit("attentionSequence"),d=n5(rn(l)?ra(l,i(),s):l),h=n7(c),p=h||n8(c),f=n7(d),m=f||n8(d),g=!!(c&v.cjkOrIvs),y=!m||f&&(p||g)||r.includes(l),b=!p||h&&(m||re(d))||r.includes(o);return u._open=!!(n===nP.asterisk?y:y&&(rt(c)||!b)),u._close=!!(n===nP.asterisk?b:b&&(rt(d)||!y)),t(l)}(a)}}};function rh(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}var rp=n(73352);let rf="phrasing",rm=["autolink","link","image","label"];function rg(e){this.enter({type:"link",title:null,url:"",children:[]},e)}function ry(e){this.config.enter.autolinkProtocol.call(this,e)}function rv(e){this.config.exit.autolinkProtocol.call(this,e)}function rb(e){this.config.exit.data.call(this,e);let t=this.stack[this.stack.length-1];t.type,t.url="http://"+this.sliceSerialize(e)}function rE(e){this.config.exit.autolinkEmail.call(this,e)}function rT(e){this.exit(e)}function r_(e){!function(e,t,n){let r=T((n||{}).ignore||[]),i=function(e){let t=[];if(!Array.isArray(e))throw TypeError("Expected find and replace tuple or list of tuples");let n=!e[0]||Array.isArray(e[0])?e:[e],r=-1;for(;++r<n.length;){var i;let e=n[r];t.push(["string"==typeof(i=e[0])?RegExp(function(e){if("string"!=typeof e)throw TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}(i),"g"):i,function(e){return"function"==typeof e?e:function(){return e}}(e[1])])}return t}(t),s=-1;for(;++s<i.length;)S(e,"text",a);function a(e,t){let n,a=-1;for(;++a<t.length;){let e=t[a],i=n?n.children:void 0;if(r(e,i?i.indexOf(e):void 0,n))return;n=e}if(n)return function(e,t){let n=t[t.length-1],r=i[s][0],a=i[s][1],o=0,l=n.children.indexOf(e),u=!1,c=[];r.lastIndex=0;let d=r.exec(e.value);for(;d;){let n=d.index,i={index:d.index,input:d.input,stack:[...t,e]},s=a(...d,i);if("string"==typeof s&&(s=s.length>0?{type:"text",value:s}:void 0),!1===s?r.lastIndex=n+1:(o!==n&&c.push({type:"text",value:e.value.slice(o,n)}),Array.isArray(s)?c.push(...s):s&&c.push(s),o=n+d[0].length,u=!0),!r.global)break;d=r.exec(e.value)}return u?(o<e.value.length&&c.push({type:"text",value:e.value.slice(o)}),n.children.splice(l,1,...c)):c=[e],l+c.length}(e,t)}}(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,rA],[/(?<=^|\s|\p{P}|\p{S})([-.\w+]+)@([-\w]+(?:\.[-\w]+)+)/gu,rx]],{ignore:["link","linkReference"]})}function rA(e,t,n,r,i){let s="";if(!rk(i)||(/^w/i.test(t)&&(n=t+n,t="",s="http://"),!function(e){let 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])))}(n)))return!1;let a=function(e){let t=/[!"&'),.:;<>?\]}]+$/.exec(e);if(!t)return[e,void 0];e=e.slice(0,t.index);let n=t[0],r=n.indexOf(")"),i=(0,rp.D)(e,"("),s=(0,rp.D)(e,")");for(;-1!==r&&i>s;)e+=n.slice(0,r+1),r=(n=n.slice(r+1)).indexOf(")"),s++;return[e,n]}(n+r);if(!a[0])return!1;let o={type:"link",title:null,url:s+t+a[0],children:[{type:"text",value:t+a[0]}]};return a[1]?[o,{type:"text",value:a[1]}]:o}function rx(e,t,n,r){return!(!rk(r,!0)||/[-\d_]$/.test(n))&&{type:"link",title:null,url:"mailto:"+t+"@"+n,children:[{type:"text",value:t+"@"+n}]}}function rk(e,t){let n=e.input.charCodeAt(e.index-1);return(0===e.index||nZ(n)||nY(n))&&(!t||47!==n)}function rS(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}function rw(){this.buffer()}function rI(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function rC(){this.buffer()}function rN(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function rR(e){let t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=rS(this.sliceSerialize(e)).toLowerCase(),n.label=t}function rO(e){this.exit(e)}function rP(e){let t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=rS(this.sliceSerialize(e)).toLowerCase(),n.label=t}function rD(e){this.exit(e)}function rM(e,t,n,r){let i=n.createTracker(r),s=i.move("[^"),a=n.enter("footnoteReference"),o=n.enter("reference");return s+=i.move(n.safe(n.associationId(e),{after:"]",before:s})),o(),a(),s+=i.move("]")}
106function rL(e,t,n){return 0===t?e:rj(e,t,n)}function rj(e,t,n){return(n?"":" ")+e}rM.peek=function(){return"["};let rz=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];function rF(e){this.enter({type:"delete",children:[]},e)}function rB(e){this.exit(e)}function r$(e,t,n,r){let i=n.createTracker(r),s=n.enter("strikethrough"),a=i.move("~~");return a+=n.containerPhrasing(e,{...i.current(),before:a,after:"~"}),a+=i.move("~~"),s(),a}function rU(e){return e.length}function rH(e){let t="string"==typeof e?e.codePointAt(0):0;return 67===t||99===t?99:76===t||108===t?108:114*(82===t||114===t)}r$.peek=function(){return"~"};function rG(e){return null===e||nH(e)||nZ(e)?1:nY(e)?2:void 0}let rY={};function rZ(e,t){let n=t||rY;return rV(e,"boolean"!=typeof n.includeImageAlt||n.includeImageAlt,"boolean"!=typeof n.includeHtml||n.includeHtml)}function rV(e,t,n){var r;if((r=e)&&"object"==typeof r){if("value"in e)return"html"!==e.type||n?e.value:"";if(t&&"alt"in e&&e.alt)return e.alt;if("children"in e)return rW(e.children,t,n)}return Array.isArray(e)?rW(e,t,n):""}function rW(e,t,n){let r=[],i=-1;for(;++i<e.length;)r[i]=rV(e[i],t,n);return r.join("")}function rq(e,t,n){let r=e.value||"",i="`",s=-1;for(;RegExp("(^|[^`])"+i+"([^`]|$)").test(r);)i+="`";for(/[^ \r\n]/.test(r)&&(/^[ \r\n]/.test(r)&&/[ \r\n]$/.test(r)||/^`|`$/.test(r))&&(r=" "+r+" ");++s<n.unsafe.length;){let e,t=n.unsafe[s],i=n.compilePattern(t);if(t.atBreak)for(;e=i.exec(r);){let t=e.index;10===r.charCodeAt(t)&&13===r.charCodeAt(t-1)&&t--,r=r.slice(0,t)+" "+r.slice(e.index+1)}}return i+r+i}rq.peek=function(){return"`"};T(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);let rK={inlineCode:rq,listItem:function(e,t,n,r){let i=function(e){let t=e.options.listItemIndent||"one";if("tab"!==t&&"one"!==t&&"mixed"!==t)throw Error("Cannot serialize items with `"+t+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return t}(n),s=n.bulletCurrent||function(e){let t=e.options.bullet||"*";if("*"!==t&&"+"!==t&&"-"!==t)throw Error("Cannot serialize items with `"+t+"` for `options.bullet`, expected `*`, `+`, or `-`");return t}(n);t&&"list"===t.type&&t.ordered&&(s=("number"==typeof t.start&&t.start>-1?t.start:1)+(!1===n.options.incrementListMarker?0:t.children.indexOf(e))+s);let a=s.length+1;("tab"===i||"mixed"===i&&(t&&"list"===t.type&&t.spread||e.spread))&&(a=4*Math.ceil(a/4));let o=n.createTracker(r);o.move(s+" ".repeat(a-s.length)),o.shift(a);let l=n.enter("listItem"),u=n.indentLines(n.containerFlow(e,o.current()),function(e,t,n){return t?(n?"":" ".repeat(a))+e:(n?s:s+" ".repeat(a-s.length))+e});return l(),u}};function rX(e){let t=e._align;this.enter({type:"table",align:t.map(function(e){return"none"===e?null:e}),children:[]},e),this.data.inTable=!0}function rQ(e){this.exit(e),this.data.inTable=void 0}function rJ(e){this.enter({type:"tableRow",children:[]},e)}function r0(e){this.exit(e)}function r1(e){this.enter({type:"tableCell",children:[]},e)}function r2(e){let t=this.resume();this.data.inTable&&(t=t.replace(/\\([\\|])/g,r3));let n=this.stack[this.stack.length-1];n.type,n.value=t,this.exit(e)}function r3(e,t){return"|"===t?t:e}function r4(e){let t=this.stack[this.stack.length-2];t.type,t.checked="taskListCheckValueChecked"===e.type}function r9(e){let t=this.stack[this.stack.length-2];if(t&&"listItem"===t.type&&"boolean"==typeof t.checked){let e=this.stack[this.stack.length-1];e.type;let n=e.children[0];if(n&&"text"===n.type){let r,i=t.children,s=-1;for(;++s<i.length;){let e=i[s];if("paragraph"===e.type){r=e;break}}r===e&&(n.value=n.value.slice(1),0===n.value.length?e.children.shift():e.position&&n.position&&"number"==typeof n.position.start.offset&&(n.position.start.column++,n.position.start.offset++,e.position.start=Object.assign({},n.position.start)))}}this.exit(e)}function r5(e,t,n,r){let i=e.children[0],s="boolean"==typeof e.checked&&i&&"paragraph"===i.type,a="["+(e.checked?"x":" ")+"] ",o=n.createTracker(r);s&&o.move(a);let l=rK.listItem(e,t,n,{...r,...o.current()});return s&&(l=l.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,function(e){return e+a})),l}let r6={}.hasOwnProperty;function r8(e){let t={},n=-1;for(;++n<e.length;)!function(e,t){let n;for(n in t){let r,i=(r6.call(e,n)?e[n]:void 0)||(e[n]={}),s=t[n];if(s)for(r in s){r6.call(i,r)||(i[r]=[]);let e=s[r];!function(e,t){let n=-1,r=[];for(;++n<t.length;)("after"===t[n].add?e:r).push(t[n]);ro(e,0,0,r)}(i[r],Array.isArray(e)?e:e?[e]:[])}}}(t,e[n]);return t}let r7={tokenize:function(e,t,n){let r=0;return function t(s){return(87===s||119===s)&&r<3?(r++,e.consume(s),t):46===s&&3===r?(e.consume(s),i):n(s)};function i(e){return null===e?n(e):t(e)}},partial:!0},ie={tokenize:function(e,t,n){let r,i,s;return a;function a(t){return 46===t||95===t?e.check(ir,l,o)(t):null===t||nH(t)||nZ(t)||45!==t&&nY(t)?l(t):(s=!0,e.consume(t),a)}function o(t){return 95===t?r=!0:(i=r,r=void 0),e.consume(t),a}function l(e){return i||r||!s?n(e):t(e)}},partial:!0},it={tokenize:function(e,t){let n=0,r=0;return i;function i(a){return 40===a?(n++,e.consume(a),i):41===a&&r<n?s(a):33===a||34===a||38===a||39===a||41===a||42===a||44===a||46===a||58===a||59===a||
10660===a||63===a||93===a||95===a||126===a?e.check(ir,t,s)(a):null===a||nH(a)||nZ(a)?t(a):(e.consume(a),i)}function s(t){return 41===t&&r++,e.consume(t),i}},partial:!0},ir={tokenize:function(e,t,n){return r;function r(a){return 33===a||34===a||39===a||41===a||42===a||44===a||46===a||58===a||59===a||63===a||95===a||126===a?(e.consume(a),r):38===a?(e.consume(a),s):93===a?(e.consume(a),i):60===a||null===a||nH(a)||nZ(a)?t(a):n(a)}function i(e){return null===e||40===e||91===e||nH(e)||nZ(e)?t(e):r(e)}function s(t){return nM(t)?function t(i){return 59===i?(e.consume(i),r):nM(i)?(e.consume(i),t):n(i)}(t):n(t)}},partial:!0},ii={tokenize:function(e,t,n){return function(t){return e.consume(t),r};function r(e){return nL(e)?n(e):t(e)}},partial:!0},is={name:"wwwAutolink",tokenize:function(e,t,n){let r=this;return function(t){return 87!==t&&119!==t||!ic.call(r,r.previous)||im(r.events)?n(t):(e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(r7,e.attempt(ie,e.attempt(it,i),n),n)(t))};function i(n){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),t(n)}},previous:ic},ia={name:"protocolAutolink",tokenize:function(e,t,n){let r=this,i="",s=!1;return function(t){return(72===t||104===t)&&id.call(r,r.previous)&&!im(r.events)?(e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),i+=String.fromCodePoint(t),e.consume(t),a):n(t)};function a(t){if(nM(t)&&i.length<5)return i+=String.fromCodePoint(t),e.consume(t),a;if(58===t){let n=i.toLowerCase();if("http"===n||"https"===n)return e.consume(t),o}return n(t)}function o(t){return 47===t?(e.consume(t),s)?l:(s=!0,o):n(t)}function l(t){return null===t||nz(t)||nH(t)||nZ(t)||nY(t)?n(t):e.attempt(ie,e.attempt(it,u),n)(t)}function u(n){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),t(n)}},previous:id},io={name:"emailAutolink",tokenize:function(e,t,n){let r,i,s=this;return function(t){return!ip(t)||!ih.call(s,s.previous)||im(s.events)?n(t):(e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),function t(r){return ip(r)?(e.consume(r),t):64===r?(e.consume(r),a):n(r)}(t))};function a(t){return 46===t?e.check(ii,l,o)(t):45===t||95===t||nL(t)?(i=!0,e.consume(t),a):l(t)}function o(t){return e.consume(t),r=!0,a}function l(a){return i&&r&&nM(s.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),t(a)):n(a)}},previous:ih},il={},iu=48;for(;iu<123;)il[iu]=io,58==++iu?iu=65:91===iu&&(iu=97);function ic(e){return null===e||40===e||42===e||95===e||91===e||93===e||126===e||nH(e)}function id(e){return!nM(e)}function ih(e){return!(47===e||ip(e))}function ip(e){return 43===e||45===e||46===e||95===e||nL(e)}function im(e){let t=e.length,n=!1;for(;t--;){let r=e[t][1];if(("labelLink"===r.type||"labelImage"===r.type)&&!r._balanced){n=!0;break}if(r._gfmAutolinkLiteralWalkedInto){n=!1;break}}return e.length>0&&!n&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),n}function ig(e,t,n,r){let i=r?r-1:1/0,s=0;return function(r){return nG(r)?(e.enter(n),function r(a){return nG(a)&&s++<i?(e.consume(a),r):(e.exit(n),t(a))}(r)):t(r)}}il[43]=io,il[45]=io,il[46]=io,il[95]=io,il[72]=[io,ia],il[104]=[io,ia],il[87]=[io,is],il[119]=[io,is];let iy={partial:!0,tokenize:function(e,t,n){return function(t){return nG(t)?ig(e,r,"linePrefix")(t):r(t)};function r(e){return null===e||nU(e)?t(e):n(e)}}},iv={tokenize:function(e,t,n){let r=this;return ig(e,function(e){let i=r.events[r.events.length-1];return i&&"gfmFootnoteDefinitionIndent"===i[1].type&&4===i[2].sliceSerialize(i[1],!0).length?t(e):n(e)},"gfmFootnoteDefinitionIndent",5)},partial:!0};function ib(e,t,n){let r,i=this,s=i.events.length,a=i.parser.gfmFootnotes||(i.parser.gfmFootnotes=[]);for(;s--;){let e=i.events[s][1];if("labelImage"===e.type){r=e;break}if("gfmFootnoteCall"===e.type||"labelLink"===e.type||"label"===e.type||"image"===e.type||"link"===e.type)break}return function(s){if(!r||!r._balanced)return n(s);let o=rS(i.sliceSerialize({start:r.end,end:i.now()}));return 94===o.codePointAt(0)&&a.includes(o.slice(1))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(s),e.exit("gfmFootnoteCallLabelMarker"),t(s)):n(s)}}function iE(e,t){let n=e.length;for(;n--;
106)if("labelImage"===e[n][1].type&&"enter"===e[n][0]){e[n][1];break}e[n+1][1].type="data",e[n+3][1].type="gfmFootnoteCallLabelMarker";let r={type:"gfmFootnoteCall",start:Object.assign({},e[n+3][1].start),end:Object.assign({},e[e.length-1][1].end)},i={type:"gfmFootnoteCallMarker",start:Object.assign({},e[n+3][1].end),end:Object.assign({},e[n+3][1].end)};i.end.column++,i.end.offset++,i.end._bufferIndex++;let s={type:"gfmFootnoteCallString",start:Object.assign({},i.end),end:Object.assign({},e[e.length-1][1].start)},a={type:"chunkString",contentType:"string",start:Object.assign({},s.start),end:Object.assign({},s.end)},o=[e[n+1],e[n+2],["enter",r,t],e[n+3],e[n+4],["enter",i,t],["exit",i,t],["enter",s,t],["enter",a,t],["exit",a,t],["exit",s,t],e[e.length-2],e[e.length-1],["exit",r,t]];return e.splice(n,e.length-n+1,...o),e}function iT(e,t,n){let r,i=this,s=i.parser.gfmFootnotes||(i.parser.gfmFootnotes=[]),a=0;return function(t){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(t),e.exit("gfmFootnoteCallLabelMarker"),o};function o(t){return 94!==t?n(t):(e.enter("gfmFootnoteCallMarker"),e.consume(t),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",l)}function l(o){if(a>999||93===o&&!r||null===o||91===o||nH(o))return n(o);if(93===o){e.exit("chunkString");let r=e.exit("gfmFootnoteCallString");return s.includes(rS(i.sliceSerialize(r)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(o),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),t):n(o)}return nH(o)||(r=!0),a++,e.consume(o),92===o?u:l}function u(t){return 91===t||92===t||93===t?(e.consume(t),a++,l):l(t)}}function i_(e,t,n){let r,i,s=this,a=s.parser.gfmFootnotes||(s.parser.gfmFootnotes=[]),o=0;return function(t){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(t),e.exit("gfmFootnoteDefinitionLabelMarker"),l};function l(t){return 94===t?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(t),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",u):n(t)}function u(t){if(o>999||93===t&&!i||null===t||91===t||nH(t))return n(t);if(93===t){e.exit("chunkString");let n=e.exit("gfmFootnoteDefinitionLabelString");return r=rS(s.sliceSerialize(n)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(t),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),d}return nH(t)||(i=!0),o++,e.consume(t),92===t?c:u}function c(t){return 91===t||92===t||93===t?(e.consume(t),o++,u):u(t)}function d(t){return 58===t?(e.enter("definitionMarker"),e.consume(t),e.exit("definitionMarker"),a.includes(r)||a.push(r),ig(e,h,"gfmFootnoteDefinitionWhitespace")):n(t)}function h(e){return t(e)}}function iA(e,t,n){return e.check(iy,t,e.attempt(iv,t,n))}function ix(e){e.exit("gfmFootnoteDefinition")}class ik{constructor(){this.map=[]}add(e,t,n){!function(e,t,n,r){let i=0;if(0!==n||0!==r.length){for(;i<e.map.length;){if(e.map[i][0]===t){e.map[i][1]+=n,e.map[i][2].push(...r);return}i+=1}e.map.push([t,n,r])}}(this,e,t,n)}consume(e){if(this.map.sort(function(e,t){return e[0]-t[0]}),0===this.map.length)return;let t=this.map.length,n=[];for(;t>0;)t-=1,n.push(e.slice(this.map[t][0]+this.map[t][1]),this.map[t][2]),e.length=this.map[t][0];n.push(e.slice()),e.length=0;let r=n.pop();for(;r;){for(let t of r)e.push(t);r=n.pop()}this.map.length=0}}function iS(e,t,n){let r,i=this,s=0,a=0;return function(e){let t=i.events.length-1;for(;t>-1;){let e=i.events[t][1].type;if("lineEnding"===e||"linePrefix"===e)t--;else break}let r=t>-1?i.events[t][1].type:null,s="tableHead"===r||"tableRow"===r?v:o;return s===v&&i.parser.lazy[i.now().line]?n(e):s(e)};function o(t){var n;return e.enter("tableHead"),e.enter("tableRow"),124===(n=t)||(r=!0,a+=1),l(n)}function l(t){return null===t?n(t):nU(t)?a>1?(a=0,i.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),d):n(t):nG(t)?ig(e,l,"whitespace")(t):(a+=1,r&&(r=!1,s+=1),124===t)?(e.enter("tableCellDivider"),e.consume(t),e.exit("tableCellDivider"),r=!0,l):(e.enter("data"),u(t))}function u(t){return null===t||124===t||nH(t)?(e.exit("data"),l(t)):(e.consume(t),92===t?c:u)}function c(t){return 92===t||124===t?(e.consume(t),u):u(t)}function d(t){return(i.interrupt=!1,i.parser.lazy[i.now().line])?n(t):(e.enter("tableDelimiterRow"),r=!1,nG(t))?ig(e,h,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):h(t)}function h(t){return 45===t||58===t?f(t):124===t?(r=!0,e.enter("tableCellDivider"),e.consume(t),e.exit("tableCellDivider"),p):n(t)}function p(t){return nG(t)?ig(e,f,"whitespace")(t):f(t)}
106function f(t){return 58===t?(a+=1,r=!0,e.enter("tableDelimiterMarker"),e.consume(t),e.exit("tableDelimiterMarker"),m):45===t?(a+=1,m(t)):null===t||nU(t)?y(t):n(t)}function m(t){return 45===t?(e.enter("tableDelimiterFiller"),function t(n){return 45===n?(e.consume(n),t):58===n?(r=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(n),e.exit("tableDelimiterMarker"),g):(e.exit("tableDelimiterFiller"),g(n))}(t)):n(t)}function g(t){return nG(t)?ig(e,y,"whitespace")(t):y(t)}function y(i){if(124===i)return h(i);if(null===i||nU(i))return r&&s===a?(e.exit("tableDelimiterRow"),e.exit("tableHead"),t(i)):n(i);return n(i)}function v(t){return e.enter("tableRow"),b(t)}function b(n){return 124===n?(e.enter("tableCellDivider"),e.consume(n),e.exit("tableCellDivider"),b):null===n||nU(n)?(e.exit("tableRow"),t(n)):nG(n)?ig(e,b,"whitespace")(n):(e.enter("data"),E(n))}function E(t){return null===t||124===t||nH(t)?(e.exit("data"),b(t)):(e.consume(t),92===t?T:E)}function T(t){return 92===t||124===t?(e.consume(t),E):E(t)}}function iw(e,t){let n,r,i,s=-1,a=!0,o=0,l=[0,0,0,0],u=[0,0,0,0],c=!1,d=0,h=new ik;for(;++s<e.length;){let p=e[s],f=p[1];"enter"===p[0]?"tableHead"===f.type?(c=!1,0!==d&&(iC(h,t,d,n,r),r=void 0,d=0),n={type:"table",start:Object.assign({},f.start),end:Object.assign({},f.end)},h.add(s,0,[["enter",n,t]])):"tableRow"===f.type||"tableDelimiterRow"===f.type?(a=!0,i=void 0,l=[0,0,0,0],u=[0,s+1,0,0],c&&(c=!1,r={type:"tableBody",start:Object.assign({},f.start),end:Object.assign({},f.end)},h.add(s,0,[["enter",r,t]])),o="tableDelimiterRow"===f.type?2:r?3:1):o&&("data"===f.type||"tableDelimiterMarker"===f.type||"tableDelimiterFiller"===f.type)?(a=!1,0===u[2]&&(0!==l[1]&&(u[0]=u[1],i=iI(h,t,l,o,void 0,i),l=[0,0,0,0]),u[2]=s)):"tableCellDivider"===f.type&&(a?a=!1:(0!==l[1]&&(u[0]=u[1],i=iI(h,t,l,o,void 0,i)),u=[(l=u)[1],s,0,0])):"tableHead"===f.type?(c=!0,d=s):"tableRow"===f.type||"tableDelimiterRow"===f.type?(d=s,0!==l[1]?(u[0]=u[1],i=iI(h,t,l,o,s,i)):0!==u[1]&&(i=iI(h,t,u,o,s,i)),o=0):o&&("data"===f.type||"tableDelimiterMarker"===f.type||"tableDelimiterFiller"===f.type)&&(u[3]=s)}for(0!==d&&iC(h,t,d,n,r),h.consume(t.events),s=-1;++s<t.events.length;){let e=t.events[s];"enter"===e[0]&&"table"===e[1].type&&(e[1]._align=function(e,t){let n=!1,r=[];for(;t<e.length;){let i=e[t];if(n){if("enter"===i[0])"tableContent"===i[1].type&&r.push("tableDelimiterMarker"===e[t+1][1].type?"left":"none");else if("tableContent"===i[1].type){if("tableDelimiterMarker"===e[t-1][1].type){let e=r.length-1;r[e]="left"===r[e]?"center":"right"}}else if("tableDelimiterRow"===i[1].type)break}else"enter"===i[0]&&"tableDelimiterRow"===i[1].type&&(n=!0);t+=1}return r}(t.events,s))}return e}function iI(e,t,n,r,i,s){0!==n[0]&&(s.end=Object.assign({},iN(t.events,n[0])),e.add(n[0],0,[["exit",s,t]]));let a=iN(t.events,n[1]);if(s={type:1===r?"tableHeader":2===r?"tableDelimiter":"tableData",start:Object.assign({},a),end:Object.assign({},a)},e.add(n[1],0,[["enter",s,t]]),0!==n[2]){let i=iN(t.events,n[2]),s=iN(t.events,n[3]),a={type:"tableContent",start:Object.assign({},i),end:Object.assign({},s)};if(e.add(n[2],0,[["enter",a,t]]),2!==r){let r=t.events[n[2]],i=t.events[n[3]];if(r[1].end=Object.assign({},i[1].end),r[1].type="chunkText",r[1].contentType="text",n[3]>n[2]+1){let t=n[2]+1,r=n[3]-n[2]-1;e.add(t,r,[])}}e.add(n[3]+1,0,[["exit",a,t]])}return void 0!==i&&(s.end=Object.assign({},iN(t.events,i)),e.add(i,0,[["exit",s,t]]),s=void 0),s}function iC(e,t,n,r,i){let s=[],a=iN(t.events,n);i&&(i.end=Object.assign({},a),s.push(["exit",i,t])),r.end=Object.assign({},a),s.push(["exit",r,t]),e.add(n+1,0,s)}function iN(e,t){let n=e[t],r="enter"===n[0]?"start":"end";return n[1][r]}let iR={name:"tasklistCheck",tokenize:function(e,t,n){let r=this;return function(t){return null===r.previous&&r._gfmTasklistFirstContentOfListItem?(e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(t),e.exit("taskListCheckMarker"),i):n(t)};function i(t){return nH(t)?(e.enter("taskListCheckValueUnchecked"),e.consume(t),e.exit("taskListCheckValueUnchecked"),s):88===t||120===t?(e.enter("taskListCheckValueChecked"),e.consume(t),e.exit("taskListCheckValueChecked"),s):n(t)}function s(t){return 93===t?(e.enter("taskListCheckMarker"),e.consume(t),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),a):n(t)}function a(r){return nU(r)?t(r):nG(r)?e.check({tokenize:iO},t,n)(r):n(r)}}};function iO(e,t,n){return ig(e,function(e){return null===e?n(e):t(e)},"whitespace")}let iP={},iD={tokenize:function(e,t,n){let r=this,i=r.events[r.events.length-1],s=i&&"linePrefix"===i[1].type?i[2].sliceSerialize(i[1],!0).length:0,a=0;return function(t){return e.enter("mathFlow"),e.enter("mathFlowFence"),e.enter("mathFlowFenceSequence"),function t(r){return 36===r?(e.consume(r),a++,t):a<2?n(r):(e.exit("mathFlowFenceSequence"),ig(e,o,"whitespace")(r))}(t)};function o(t){return null===t||nU(t)?l(t):(e.enter("mathFlowFenceMeta"),e.enter("chunkString",{contentType:"string"}),function t(r){return null===r||nU(r)?(e.exit("chunkString"),e.exit("mathFlowFenceMeta"),l(r)):36===r?n(r):(e.consume(r),t)}(t))}function l(n){return(e.exit("mathFlowFence"),r.interrupt)?t(n):e.attempt(iM,u,h)(n)}function u(t){return e.attempt({tokenize:p,partial:!0},h,c)(t)}function c(t){return(s?ig(e,d,"linePrefix",s+1):d)(t)}function d(t){return null===t?h(t):nU(t)?e.attempt(iM,u,h)(t):(e.enter("mathFlowValue"),function t(n){return null===n||nU(n)?(e.exit("mathFlowValue"),d(n)):(e.consume(n),t)}(t))}function h(n){return e.exit("mathFlow"),t(n)}function p(e,t,n){let i=0;return ig(e,function(t){return e.enter("mathFlowFence"),e.enter("mathFlowFenceSequence"),function t(r){return 36===r?(i++,e.consume(r),t):i<a?n(r):(e.exit("mathFlowFenceSequence"),ig(e,s,"whitespace")(r))}(t)},"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4);function s(r){return null===r||nU(r)?(e.exit("mathFlowFence"),t(r)):n(r)}}},concrete:!0,name:"mathFlow"},iM={tokenize:function(e,t,n){let r=this;return function(n){return null===n?t(n):(e.enter("lineEnding"),e.consume(n),e.exit("lineEnding"),i)};function i(e){return r.parser.lazy[r.now().line]?n(e):t(e)}},partial:!0};function iL(e){let t,n,r=e.length-4,i=3;if(("lineEnding"===e[3][1].type||"space"===e[i][1].type)&&("lineEnding"===e[r][1].type||"space"===e[r][1].type)){for(t=i;++t<r;)if("mathTextData"===e[t][1].type){e[r][1].type="mathTextPadding",e[i][1].type="mathTextPadding",i+=2,r-=2;break}}for(t=i-1,r++;++t<=r;)void 0===n?t!==r&&"lineEnding"!==e[t][1].type&&(n=t):(t===r||"lineEnding"===e[t][1].type)&&(e[n][1].type="mathTextData",t!==n+2&&(e[n][1].end=e[t-1][1].end,e.splice(n+2,t-n-2),r-=t-n-2,t=n+2),n=void 0);return e}function ij(e){return 36!==e||"characterEscape"===this.events[this.events.length-1][1].type}let iz={};function iF(e){let t,n=e||iz,r=this.data(),i=r.micromarkExtensions||(r.micromarkExtensions=[]),s=r.fromMarkdownExtensions||(r.fromMarkdownExtensions=[]),a=r.toMarkdownExtensions||(r.toMarkdownExtensions=[]);i.push({flow:{36:iD},text:{36:(null==(t=(n||{}).singleDollarTextMath)&&(t=!0),{tokenize:function(e,n,r){let i,s,a=0;return function(n){return e.enter("mathText"),e.enter("mathTextSequence"),function n(i){return 36===i?(e.consume(i),a++,n):a<2&&!t?r(i):(e.exit("mathTextSequence"),o(i))}(n)};function o(t){return null===t?r(t):36===t?(s=e.enter("mathTextSequence"),i=0,function t(r){return 36===r?(e.consume(r),i++,t):i===a?(e.exit("mathTextSequence"),e.exit("mathText"),n(r)):(s.type="mathTextData",l(r))}(t)):32===t?(e.enter("space"),e.consume(t),e.exit("space"),o):nU(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),o):(e.enter("mathTextData"),l(t))}function l(t){return null===t||32===t||36===t||nU(t)?(e.exit("mathTextData"),o(t)):(e.consume(t),l)}},resolve:iL,previous:ij,name:"mathText"})}}),s.push(function(){return{enter:{mathFlow:function(e){this.enter({type:"math",meta:null,value:"",data:{hName:"pre",hChildren:[{type:"element",tagName:"code",properties:{className:["language-math","math-display"]},children:[]}]}},e)},mathFlowFenceMeta:function(){this.buffer()},mathText:function(e){this.enter({type:"inlineMath",value:"",data:{hName:"
106code",hProperties:{className:["language-math","math-inline"]},hChildren:[]}},e),this.buffer()}},exit:{mathFlow:function(e){let t=this.resume().replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),n=this.stack[this.stack.length-1];n.type,this.exit(e),n.value=t;let r=n.data.hChildren[0];r.type,r.tagName,r.children.push({type:"text",value:t}),this.data.mathFlowInside=void 0},mathFlowFence:function(){this.data.mathFlowInside||(this.buffer(),this.data.mathFlowInside=!0)},mathFlowFenceMeta:function(){let e=this.resume(),t=this.stack[this.stack.length-1];t.type,t.meta=e},mathFlowValue:e,mathText:function(e){let t=this.resume(),n=this.stack[this.stack.length-1];n.type,this.exit(e),n.value=t,n.data.hChildren.push({type:"text",value:t})},mathTextData:e}};function e(e){this.config.enter.data.call(this,e),this.config.exit.data.call(this,e)}}()),a.push(function(e){let t=(e||{}).singleDollarTextMath;return null==t&&(t=!0),n.peek=function(){return"$"},{unsafe:[{character:"\r",inConstruct:"mathFlowMeta"},{character:"\n",inConstruct:"mathFlowMeta"},{character:"$",after:t?void 0:"\\$",inConstruct:"phrasing"},{character:"$",inConstruct:"mathFlowMeta"},{atBreak:!0,character:"$",after:"\\$"}],handlers:{math:function(e,t,n,r){let i=e.value||"",s=n.createTracker(r),a="$".repeat(Math.max(function(e,t){let n=String(e),r=n.indexOf("$"),i=r,s=0,a=0;if("string"!=typeof t)throw TypeError("Expected substring");for(;-1!==r;)r===i?++s>a&&(a=s):s=1,i=r+t.length,r=n.indexOf(t,i);return a}(i,"$")+1,2)),o=n.enter("mathFlow"),l=s.move(a);if(e.meta){let t=n.enter("mathFlowMeta");l+=s.move(n.safe(e.meta,{after:"\n",before:l,encode:["$"],...s.current()})),t()}return l+=s.move("\n"),i&&(l+=s.move(i+"\n")),l+=s.move(a),o(),l},inlineMath:n}};function n(e,n,r){let i=e.value||"",s=1;for(!t&&s++;RegExp("(^|[^$])"+"\\$".repeat(s)+"([^$]|$)").test(i);)s++;let a="$".repeat(s);/[^ \r\n]/.test(i)&&(/^[ \r\n]/.test(i)&&/[ \r\n]$/.test(i)||/^\$|\$$/.test(i))&&(i=" "+i+" ");let o=-1;for(;++o<r.unsafe.length;){let e,t=r.unsafe[o];if(!t.atBreak)continue;let n=r.compilePattern(t);for(;e=n.exec(i);){let t=e.index;10===i.codePointAt(t)&&13===i.codePointAt(t-1)&&t--,i=i.slice(0,t)+" "+i.slice(e.index+1)}}return a+i+a}}(n))}var iB=/(\*\*)([^*]*?)$/,i$=/(__)([^_]*?)$/,iU=/(\*\*\*)([^*]*?)$/,iH=/(\*)([^*]*?)$/,iG=/(_)([^_]*?)$/,iY=/(`)([^`]*?)$/,iZ=/(~~)([^~]*?)$/,iV=/^[\s_~*`]*$/,iW=/^[\s]*[-*+][\s]+$/,iq=/[\p{L}\p{N}_]/u,iK=/^```[^`\n]*```?$/,iX=/^\*{4,}$/,iQ=e=>{if(!e)return!1;let t=e.charCodeAt(0);return t>=48&&t<=57||t>=65&&t<=90||t>=97&&t<=122||95===t||iq.test(e)},iJ=e=>{let t=(e.match(/```/g)||[]).length;return t>0&&t%2==0&&e.includes(` 107`)},i0=(e,t)=>{let n=!1,r=!1;for(let i=0;i<e.length&&i<t;i+=1){if("\\"===e[i]&&"$"===e[i+1]){i+=1;continue}"$"===e[i]&&("$"===e[i+1]?(r=!r,i+=1,n=!1):r||(n=!n))}return n||r},i1=(e,t,n,r)=>!!("\\"===n||"*"===n||"*"===r||n&&r&&iQ(n)&&iQ(r)||((e,t,n)=>{if(" "!==n&&" "!==n)return!1;let r=0;for(let n=t-1;n>=0;n-=1)if(e[n]===` 108`){r=n+1;break}for(let n=r;n<t;n+=1)if(" "!==e[n]&&" "!==e[n])return!1;return!0})(e,t,r)),i2=(e,t,n,r)=>!!("\\"===n||e.includes("$")&&i0(e,t)||"_"===n||"_"===r||n&&r&&iQ(n)&&iQ(r)),i3=(e,t)=>{let n=!1,r=!1;for(let i=0;i<t;i+=1){if("```"===e.substring(i,i+3)){r=!r,i+=2;continue}r||"`"!==e[i]||(n=!n)}return n||r},i4=(e,t)=>{let n="```"===e.substring(t,t+3),r=t>0&&"```"===e.substring(t-1,t+2),i=t>1&&"```"===e.substring(t-2,t+1);return n||r||i},i9=(e,t)=>{let n=t>0&&"!"===e[t-1];if(!e.substring(t+1).includes("]")||-1===((e,t)=>{let n=1;for(let r=t+1;r<e.length;r+=1)if("["===e[r])n+=1;else if("]"===e[r]&&0==(n-=1))return r;return -1})(e,t)){let r=e.substring(0,n?t-1:t);return n?r:`${e}](streamdown:incomplete-link)`}return null};let i5=e=>{let t=e.replace(/^([A-Z])|[\s-_]+(\w)/g,(e,t,n)=>n?n.toUpperCase():t.toLowerCase());return t.charAt(0).toUpperCase()+t.slice(1)},i6=(...e)=>e.filter((e,t,n)=>!!e&&""!==e.trim()&&n.indexOf(e)===t).join(" ").trim();var i8={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};let i7=(0,E.forwardRef)(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:i="",children:s,iconNode:a,...o},l)=>(0,E.createElement)("svg",{ref:l,...i8,width:t,height:t,stroke:e,strokeWidth:r?24*Number(n)/Number(t):n,className:i6("lucide",i),...!s&&!(e=>{for(let t in e)if(t.startsWith("aria-")||"role"===t||"title"===t)return!0})(o)&&{"aria-hidden":"true"},...o},[...a.map(([e,t])=>(0,E.createElement)(e,t)),...Array.isArray(s)?s:[s]])),se=(e,t)=>{let n=(0,E.forwardRef)(({className:n,...r},i)=>(0,E.createElement)(i7,{ref:i,iconNode:t,className:i6(`lucide-${i5(e).replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()}`,`lucide-${e}`,n),...r}));return n.displayName=i5(e),n},st=se("check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}
108]]),sn=se("copy",[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]]),sr=se("download",[["path",{d:"M12 15V3",key:"m9g1x1"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["path",{d:"m7 10 5 5 5-5",key:"brsn70"}]]),si=se("loader-circle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]]),ss=se("maximize-2",[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"m21 3-7 7",key:"1l2asr"}],["path",{d:"m3 21 7-7",key:"tjx5ai"}],["path",{d:"M9 21H3v-6",key:"wtvkvv"}]]),sa=se("x",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]),so=se("zoom-in",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["line",{x1:"21",x2:"16.65",y1:"21",y2:"16.65",key:"13gj7c"}],["line",{x1:"11",x2:"11",y1:"8",y2:"14",key:"1vmskp"}],["line",{x1:"8",x2:"14",y1:"11",y2:"11",key:"durymu"}]]),sl=se("zoom-out",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["line",{x1:"21",x2:"16.65",y1:"21",y2:"16.65",key:"13gj7c"}],["line",{x1:"8",x2:"14",y1:"11",y2:"11",key:"durymu"}]]),su=se("rotate-ccw",[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}]]);var sc=n(83107);let sd=(e=new Map,t=null,n)=>({nextPart:e,validators:t,classGroupId:n}),sh=[],sp=(e,t,n)=>{if(0==e.length-t)return n.classGroupId;let r=e[t],i=n.nextPart.get(r);if(i){let n=sp(e,t+1,i);if(n)return n}let s=n.validators;if(null===s)return;let a=0===t?e.join("-"):e.slice(t).join("-"),o=s.length;for(let e=0;e<o;e++){let t=s[e];if(t.validator(a))return t.classGroupId}},sf=(e,t)=>{let n=sd();for(let r in e)sm(e[r],n,r,t);return n},sm=(e,t,n,r)=>{let i=e.length;for(let s=0;s<i;s++)sg(e[s],t,n,r)},sg=(e,t,n,r)=>"string"==typeof e?void sy(e,t,n):"function"==typeof e?void sv(e,t,n,r):void sb(e,t,n,r),sy=(e,t,n)=>{(""===e?t:sE(t,e)).classGroupId=n},sv=(e,t,n,r)=>{if(sT(e))return void sm(e(r),t,n,r);null===t.validators&&(t.validators=[]),t.validators.push({classGroupId:n,validator:e})},sb=(e,t,n,r)=>{let i=Object.entries(e),s=i.length;for(let e=0;e<s;e++){let[s,a]=i[e];sm(a,sE(t,s),n,r)}},sE=(e,t)=>{let n=e,r=t.split("-"),i=r.length;for(let e=0;e<i;e++){let t=r[e],i=n.nextPart.get(t);i||(i=sd(),n.nextPart.set(t,i)),n=i}return n},sT=e=>"isThemeGetter"in e&&!0===e.isThemeGetter,s_=[],sA=(e,t,n,r,i)=>({modifiers:e,hasImportantModifier:t,baseClassName:n,maybePostfixModifierPosition:r,isExternal:i}),sx=/\s+/,sk=e=>{let t;if("string"==typeof e)return e;let n="";for(let r=0;r<e.length;r++)e[r]&&(t=sk(e[r]))&&(n&&(n+=" "),n+=t);return n},sS=[],sw=e=>{let t=t=>t[e]||sS;return t.isThemeGetter=!0,t},sI=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,sC=/^\((?:(\w[\w-]*):)?(.+)\)$/i,sN=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,sR=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,sO=/\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$/,sP=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,sD=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,sM=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,sL=e=>sN.test(e),sj=e=>!!e&&!Number.isNaN(Number(e)),sz=e=>!!e&&Number.isInteger(Number(e)),sF=e=>e.endsWith("%")&&sj(e.slice(0,-1)),sB=e=>sR.test(e),s$=()=>!0,sU=e=>sO.test(e)&&!sP.test(e),sH=()=>!1,sG=e=>sD.test(e),sY=e=>sM.test(e),sZ=e=>!sW(e)&&!s2(e),sV=e=>ae(e,ai,sH),sW=e=>sI.test(e),sq=e=>ae(e,as,sU),sK=e=>ae(e,aa,sj),sX=e=>ae(e,al,s$),sQ=e=>ae(e,ao,sH),sJ=e=>ae(e,an,sH),s0=e=>ae(e,ar,sY),s1=e=>ae(e,au,sG),s2=e=>sC.test(e),s3=e=>at(e,as),s4=e=>at(e,ao),s9=e=>at(e,an),s5=e=>at(e,ai),s6=e=>at(e,ar),s8=e=>at(e,au,!0),s7=e=>at(e,al,!0),ae=(e,t,n)=>{let r=sI.exec(e);return!!r&&(r[1]?t(r[1]):n(r[2]))},at=(e,t,n=!1)=>{let r=sC.exec(e);return!!r&&(r[1]?t(r[1]):n)},an=e=>"position"===e||"percentage"===e,ar=e=>"image"===e||"url"===e,ai=e=>"length"===e||"size"===e||"bg-size"===e,as=e=>"length"===e,aa=e=>"number"===e,ao=e=>"family-name"===e,al=e=>"number"===e||"weight"===e,au=e=>"shadow"===e;Symbol.toStringTag;let ac=((e,...t)=>{let n,r,i,s,a=e=>{let t=r(e);if(t)return t;let s=((e,t)=>{let{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:i,sortModifiers:s}=t,a=[],o=e.trim().split(sx),l="";for(let e=o.length-1;e>=0;
108e-=1){let t=o[e],{isExternal:u,modifiers:c,hasImportantModifier:d,baseClassName:h,maybePostfixModifierPosition:p}=n(t);if(u){l=t+(l.length>0?" "+l:l);continue}let f=!!p,m=r(f?h.substring(0,p):h);if(!m){if(!f||!(m=r(h))){l=t+(l.length>0?" "+l:l);continue}f=!1}let g=0===c.length?"":1===c.length?c[0]:s(c).join(":"),y=d?g+"!":g,v=y+m;if(a.indexOf(v)>-1)continue;a.push(v);let b=i(m,f);for(let e=0;e<b.length;++e){let t=b[e];a.push(y+t)}l=t+(l.length>0?" "+l:l)}return l})(e,n);return i(e,s),s};return s=o=>(r=(n=(e=>({cache:(e=>{if(e<1)return{get:()=>void 0,set:()=>{}};let t=0,n=Object.create(null),r=Object.create(null),i=(i,s)=>{n[i]=s,++t>e&&(t=0,r=n,n=Object.create(null))};return{get(e){let t=n[e];return void 0!==t?t:void 0!==(t=r[e])?(i(e,t),t):void 0},set(e,t){e in n?n[e]=t:i(e,t)}}})(e.cacheSize),parseClassName:(e=>{let{prefix:t,experimentalParseClassName:n}=e,r=e=>{let t,n=[],r=0,i=0,s=0,a=e.length;for(let o=0;o<a;o++){let a=e[o];if(0===r&&0===i){if(":"===a){n.push(e.slice(s,o)),s=o+1;continue}if("/"===a){t=o;continue}}"["===a?r++:"]"===a?r--:"("===a?i++:")"===a&&i--}let o=0===n.length?e:e.slice(s),l=o,u=!1;return o.endsWith("!")?(l=o.slice(0,-1),u=!0):o.startsWith("!")&&(l=o.slice(1),u=!0),sA(n,u,l,t&&t>s?t-s:void 0)};if(t){let e=t+":",n=r;r=t=>t.startsWith(e)?n(t.slice(e.length)):sA(s_,!1,t,void 0,!0)}if(n){let e=r;r=t=>n({className:t,parseClassName:e})}return r})(e),sortModifiers:(e=>{let t=new Map;return e.orderSensitiveModifiers.forEach((e,n)=>{t.set(e,1e6+n)}),e=>{let n=[],r=[];for(let i=0;i<e.length;i++){let s=e[i],a="["===s[0],o=t.has(s);a||o?(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}})(e),...(e=>{let t=(e=>{let{theme:t,classGroups:n}=e;return sf(n,t)})(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:e=>{if(e.startsWith("[")&&e.endsWith("]"))return(e=>-1===e.slice(1,-1).indexOf(":")?void 0:(()=>{let t=e.slice(1,-1),n=t.indexOf(":"),r=t.slice(0,n);return r?"arbitrary.."+r:void 0})())(e);let n=e.split("-"),r=+(""===n[0]&&n.length>1);return sp(n,r,t)},getConflictingClassGroupIds:(e,t)=>{if(t){let t=r[e],i=n[e];return t?i?((e,t)=>{let n=Array(e.length+t.length);for(let t=0;t<e.length;t++)n[t]=e[t];for(let r=0;r<t.length;r++)n[e.length+r]=t[r];return n})(i,t):t:i||sh}return n[e]||sh}}})(e)}))(t.reduce((e,t)=>t(e),e()))).cache.get,i=n.cache.set,s=a,a(o)),(...e)=>s(((...e)=>{let t,n,r=0,i="";for(;r<e.length;)(t=e[r++])&&(n=sk(t))&&(i&&(i+=" "),i+=n);return i})(...e))})(()=>{let e=sw("color"),t=sw("font"),n=sw("text"),r=sw("font-weight"),i=sw("tracking"),s=sw("leading"),a=sw("breakpoint"),o=sw("container"),l=sw("spacing"),u=sw("radius"),c=sw("shadow"),d=sw("inset-shadow"),h=sw("text-shadow"),p=sw("drop-shadow"),f=sw("blur"),m=sw("perspective"),g=sw("aspect"),y=sw("ease"),v=sw("animate"),b=()=>["auto","avoid","all","avoid-page","page","left","right","column"],E=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],T=()=>[...E(),s2,sW],_=()=>["auto","hidden","clip","visible","scroll"],A=()=>["auto","contain","none"],x=()=>[s2,sW,l],k=()=>[sL,"full","auto",...x()],S=()=>[sz,"none","subgrid",s2,sW],w=()=>["auto",{span:["full",sz,s2,sW]},sz,s2,sW],I=()=>[sz,"auto",s2,sW],C=()=>["auto","min","max","fr",s2,sW],N=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],R=()=>["start","end","center","stretch","center-safe","end-safe"],O=()=>["auto",...x()],P=()=>[sL,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...x()],D=()=>[sL,"screen","full","dvw","lvw","svw","min","max","fit",...x()],M=()=>[sL,"screen","full","lh","dvh","lvh","svh","min","max","fit",...x()],L=()=>[e,s2,sW],j=()=>[...E(),s9,sJ,{position:[s2,sW]}],z=()=>["no-repeat",{repeat:["","x","y","space","round"]}],F=()=>["auto","cover","contain",s5,sV,{size:[s2,sW]}],B=()=>[sF,s3,sq],$=()=>["","none","full",u,s2,sW],U=()=>["",sj,s3,sq],H=()=>["solid","dashed","dotted","double"],G=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],Y=()=>[sj,sF,s9,sJ],Z=()=>["","none",f,s2,sW],V=()=>["none",sj,s2,sW],W=()=>["none",sj,s2,sW],q=()=>[sj,s2,sW],K=()=>[sL,"full",...x()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[sB],breakpoint:[sB],color:[s$],container:[sB],"drop-shadow":[sB],ease:["in","out","in-out"],font:[sZ],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[sB],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[sB],shadow:[sB],spacing:["px",sj],text:[sB],"text-shadow":[sB],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",sL,sW,s2,g]}
vendor: 6,090 bytes, line 108
108],container:["container"],columns:[{columns:[sj,sW,s2,o]}],"break-after":[{"break-after":b()}],"break-before":[{"break-before":b()}],"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:T()}],overflow:[{overflow:_()}],"overflow-x":[{"overflow-x":_()}],"overflow-y":[{"overflow-y":_()}],overscroll:[{overscroll:A()}],"overscroll-x":[{"overscroll-x":A()}],"overscroll-y":[{"overscroll-y":A()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:k()}],"inset-x":[{"inset-x":k()}],"inset-y":[{"inset-y":k()}],start:[{"inset-s":k(),start:k()}],end:[{"inset-e":k(),end:k()}],"inset-bs":[{"inset-bs":k()}],"inset-be":[{"inset-be":k()}],top:[{top:k()}],right:[{right:k()}],bottom:[{bottom:k()}],left:[{left:k()}],visibility:["visible","invisible","collapse"],z:[{z:[sz,"auto",s2,sW]}],basis:[{basis:[sL,"full","auto",o,...x()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[sj,sL,"auto","initial","none",sW]}],grow:[{grow:["",sj,s2,sW]}],shrink:[{shrink:["",sj,s2,sW]}],order:[{order:[sz,"first","last","none",s2,sW]}],"grid-cols":[{"grid-cols":S()}],"col-start-end":[{col:w()}],"col-start":[{"col-start":I()}],"col-end":[{"col-end":I()}],"grid-rows":[{"grid-rows":S()}],"row-start-end":[{row:w()}],"row-start":[{"row-start":I()}],"row-end":[{"row-end":I()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":C()}],"auto-rows":[{"auto-rows":C()}],gap:[{gap:x()}],"gap-x":[{"gap-x":x()}],"gap-y":[{"gap-y":x()}],"justify-content":[{justify:[...N(),"normal"]}],"justify-items":[{"justify-items":[...R(),"normal"]}],"justify-self":[{"justify-self":["auto",...R()]}],"align-content":[{content:["normal",...N()]}],"align-items":[{items:[...R(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...R(),{baseline:["","last"]}]}],"place-content":[{"place-content":N()}],"place-items":[{"place-items":[...R(),"baseline"]}],"place-self":[{"place-self":["auto",...R()]}],p:[{p:x()}],px:[{px:x()}],py:[{py:x()}],ps:[{ps:x()}],pe:[{pe:x()}],pbs:[{pbs:x()}],pbe:[{pbe:x()}],pt:[{pt:x()}],pr:[{pr:x()}],pb:[{pb:x()}],pl:[{pl:x()}],m:[{m:O()}],mx:[{mx:O()}],my:[{my:O()}],ms:[{ms:O()}],me:[{me:O()}],mbs:[{mbs:O()}],mbe:[{mbe:O()}],mt:[{mt:O()}],mr:[{mr:O()}],mb:[{mb:O()}],ml:[{ml:O()}],"space-x":[{"space-x":x()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":x()}],"space-y-reverse":["space-y-reverse"],size:[{size:P()}],"inline-size":[{inline:["auto",...D()]}],"min-inline-size":[{"min-inline":["auto",...D()]}],"max-inline-size":[{"max-inline":["none",...D()]}],"block-size":[{block:["auto",...M()]}],"min-block-size":[{"min-block":["auto",...M()]}],"max-block-size":[{"max-block":["none",...M()]}],w:[{w:[o,"screen",...P()]}],"min-w":[{"min-w":[o,"screen","none",...P()]}],"max-w":[{"max-w":[o,"screen","none","prose",{screen:[a]},...P()]}],h:[{h:["screen","lh",...P()]}],"min-h":[{"min-h":["screen","lh","none",...P()]}],"max-h":[{"max-h":["screen","lh",...P()]}],"font-size":[{text:["base",n,s3,sq]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[r,s7,sX]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",sF,sW]}],"font-family":[{font:[s4,sQ,t]}],"font-features":[{"font-features":[sW]}],"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:[i,s2,sW]}],"line-clamp":[{"line-clamp":[sj,"none",s2,sK]}],leading:[{leading:[s,...x()]}],"list-image":[{"list-image":["none",s2,sW]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",s2,sW]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:L()}],"text-color":[{text:L()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...H(),"wavy"]}],"text-decoration-thickness":[{decoration:[sj,"from-font","auto",s2,sq]}],"text-decoration-color":[{decoration:L()}],"underline-offset":[{"underline-offset":[sj,"auto",s2,sW]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:x()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",s2,sW]}],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",s2,sW]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:j()}],"bg-repeat":[{bg:z()}],"bg-size":[{bg:F()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},sz,s2,sW],radial:["",s2,sW],conic:[sz,s2,sW]},s6,s0]}],"bg-color":[{bg:L()}],"gradient-from-pos":[{from:B()}
vendor: 7,330 bytes, line 108
108],"gradient-via-pos":[{via:B()}],"gradient-to-pos":[{to:B()}],"gradient-from":[{from:L()}],"gradient-via":[{via:L()}],"gradient-to":[{to:L()}],rounded:[{rounded:$()}],"rounded-s":[{"rounded-s":$()}],"rounded-e":[{"rounded-e":$()}],"rounded-t":[{"rounded-t":$()}],"rounded-r":[{"rounded-r":$()}],"rounded-b":[{"rounded-b":$()}],"rounded-l":[{"rounded-l":$()}],"rounded-ss":[{"rounded-ss":$()}],"rounded-se":[{"rounded-se":$()}],"rounded-ee":[{"rounded-ee":$()}],"rounded-es":[{"rounded-es":$()}],"rounded-tl":[{"rounded-tl":$()}],"rounded-tr":[{"rounded-tr":$()}],"rounded-br":[{"rounded-br":$()}],"rounded-bl":[{"rounded-bl":$()}],"border-w":[{border:U()}],"border-w-x":[{"border-x":U()}],"border-w-y":[{"border-y":U()}],"border-w-s":[{"border-s":U()}],"border-w-e":[{"border-e":U()}],"border-w-bs":[{"border-bs":U()}],"border-w-be":[{"border-be":U()}],"border-w-t":[{"border-t":U()}],"border-w-r":[{"border-r":U()}],"border-w-b":[{"border-b":U()}],"border-w-l":[{"border-l":U()}],"divide-x":[{"divide-x":U()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":U()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...H(),"hidden","none"]}],"divide-style":[{divide:[...H(),"hidden","none"]}],"border-color":[{border:L()}],"border-color-x":[{"border-x":L()}],"border-color-y":[{"border-y":L()}],"border-color-s":[{"border-s":L()}],"border-color-e":[{"border-e":L()}],"border-color-bs":[{"border-bs":L()}],"border-color-be":[{"border-be":L()}],"border-color-t":[{"border-t":L()}],"border-color-r":[{"border-r":L()}],"border-color-b":[{"border-b":L()}],"border-color-l":[{"border-l":L()}],"divide-color":[{divide:L()}],"outline-style":[{outline:[...H(),"none","hidden"]}],"outline-offset":[{"outline-offset":[sj,s2,sW]}],"outline-w":[{outline:["",sj,s3,sq]}],"outline-color":[{outline:L()}],shadow:[{shadow:["","none",c,s8,s1]}],"shadow-color":[{shadow:L()}],"inset-shadow":[{"inset-shadow":["none",d,s8,s1]}],"inset-shadow-color":[{"inset-shadow":L()}],"ring-w":[{ring:U()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:L()}],"ring-offset-w":[{"ring-offset":[sj,sq]}],"ring-offset-color":[{"ring-offset":L()}],"inset-ring-w":[{"inset-ring":U()}],"inset-ring-color":[{"inset-ring":L()}],"text-shadow":[{"text-shadow":["none",h,s8,s1]}],"text-shadow-color":[{"text-shadow":L()}],opacity:[{opacity:[sj,s2,sW]}],"mix-blend":[{"mix-blend":[...G(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":G()}],"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":[sj]}],"mask-image-linear-from-pos":[{"mask-linear-from":Y()}],"mask-image-linear-to-pos":[{"mask-linear-to":Y()}],"mask-image-linear-from-color":[{"mask-linear-from":L()}],"mask-image-linear-to-color":[{"mask-linear-to":L()}],"mask-image-t-from-pos":[{"mask-t-from":Y()}],"mask-image-t-to-pos":[{"mask-t-to":Y()}],"mask-image-t-from-color":[{"mask-t-from":L()}],"mask-image-t-to-color":[{"mask-t-to":L()}],"mask-image-r-from-pos":[{"mask-r-from":Y()}],"mask-image-r-to-pos":[{"mask-r-to":Y()}],"mask-image-r-from-color":[{"mask-r-from":L()}],"mask-image-r-to-color":[{"mask-r-to":L()}],"mask-image-b-from-pos":[{"mask-b-from":Y()}],"mask-image-b-to-pos":[{"mask-b-to":Y()}],"mask-image-b-from-color":[{"mask-b-from":L()}],"mask-image-b-to-color":[{"mask-b-to":L()}],"mask-image-l-from-pos":[{"mask-l-from":Y()}],"mask-image-l-to-pos":[{"mask-l-to":Y()}],"mask-image-l-from-color":[{"mask-l-from":L()}],"mask-image-l-to-color":[{"mask-l-to":L()}],"mask-image-x-from-pos":[{"mask-x-from":Y()}],"mask-image-x-to-pos":[{"mask-x-to":Y()}],"mask-image-x-from-color":[{"mask-x-from":L()}],"mask-image-x-to-color":[{"mask-x-to":L()}],"mask-image-y-from-pos":[{"mask-y-from":Y()}],"mask-image-y-to-pos":[{"mask-y-to":Y()}],"mask-image-y-from-color":[{"mask-y-from":L()}],"mask-image-y-to-color":[{"mask-y-to":L()}],"mask-image-radial":[{"mask-radial":[s2,sW]}],"mask-image-radial-from-pos":[{"mask-radial-from":Y()}],"mask-image-radial-to-pos":[{"mask-radial-to":Y()}],"mask-image-radial-from-color":[{"mask-radial-from":L()}],"mask-image-radial-to-color":[{"mask-radial-to":L()}],"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":E()}],"mask-image-conic-pos":[{"mask-conic":[sj]}],"mask-image-conic-from-pos":[{"mask-conic-from":Y()}],"mask-image-conic-to-pos":[{"mask-conic-to":Y()}],"mask-image-conic-from-color":[{"mask-conic-from":L()}],"mask-image-conic-to-color":[{"mask-conic-to":L()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:j()}],"mask-repeat":[{mask:z()}],"mask-size":[{mask:F()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",s2,sW]}],filter:[{filter:["","none",s2,sW]}],blur:[{blur:Z()}],brightness:[{brightness:[sj,s2,sW]}],contrast:[{contrast:[sj,s2,sW]}],"drop-shadow":[{"drop-shadow":["","none",p,s8,s1]}],"drop-shadow-color":[{"drop-shadow":L()}],grayscale:[{grayscale:["",sj,s2,sW]}],"hue-rotate":[{"hue-rotate":[sj,s2,sW]}],invert:[{invert:["",sj,s2,sW]}],saturate:[{saturate:[sj,s2,sW]}],sepia:[{sepia:["",sj,s2,sW]}],"backdrop-filter":[{"backdrop-filter":["","none",s2,sW]}],"backdrop-blur":[{"backdrop-blur":Z()}],"backdrop-brightness":[{"backdrop-brightness":[sj,s2,sW]}],"backdrop-contrast":[{"backdrop-contrast":[sj,s2,sW]}],"backdrop-grayscale":[{"backdrop-grayscale":["",sj,s2,sW]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[sj,s2,sW]}],"backdrop-invert":[{"backdrop-invert":["",sj,s2,sW]}],"backdrop-opacity":[{"backdrop-opacity":[sj,s2,sW]}],"backdrop-saturate":[{"backdrop-saturate":[sj,s2,sW]}],"backdrop-sepia":[{"backdrop-sepia":["",sj,s2,sW]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":x()}],"border-spacing-x":[{"border-spacing-x":x()}],"border-spacing-y":[{"border-spacing-y":x()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",s2,sW]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[sj,"initial",s2,sW]}],ease:[{ease:["linear","initial",y,s2,sW]}],delay:[{delay:[sj,s2,sW]}],animate:[{animate:["none",v,s2,sW]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[m,s2,sW]}],"perspective-origin":[{"perspective-origin":T()}],rotate:[{rotate:V()}],"rotate-x":[{"rotate-x":V()}],"rotate-y":[{"rotate-y":V()}],"rotate-z":[{"rotate-z":V()}],scale:[{scale:W()}],"scale-x":[{"scale-x":W()}],"scale-y":[{"scale-y":W()}],"scale-z":[{"scale-z":W()}],"scale-3d":["scale-3d"],skew:[{skew:q()}],"skew-x":[{"skew-x":q()}],"skew-y":[{"skew-y":q()}],transform:[{transform:[s2,sW,"","none","gpu","cpu"]}],"transform-origin":[{origin:T()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:K()}],"translate-x":[{"translate-x":K()}],"translate-y":[{"translate-y":K()}],"translate-z":[{"translate-z":K()}],"translate-none":["translate-none"],accent:[{accent:L()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:L()}
vendor: 5,703 bytes, line 108
108],"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",s2,sW]}],"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":x()}],"scroll-mx":[{"scroll-mx":x()}],"scroll-my":[{"scroll-my":x()}],"scroll-ms":[{"scroll-ms":x()}],"scroll-me":[{"scroll-me":x()}],"scroll-mbs":[{"scroll-mbs":x()}],"scroll-mbe":[{"scroll-mbe":x()}],"scroll-mt":[{"scroll-mt":x()}],"scroll-mr":[{"scroll-mr":x()}],"scroll-mb":[{"scroll-mb":x()}],"scroll-ml":[{"scroll-ml":x()}],"scroll-p":[{"scroll-p":x()}],"scroll-px":[{"scroll-px":x()}],"scroll-py":[{"scroll-py":x()}],"scroll-ps":[{"scroll-ps":x()}],"scroll-pe":[{"scroll-pe":x()}],"scroll-pbs":[{"scroll-pbs":x()}],"scroll-pbe":[{"scroll-pbe":x()}],"scroll-pt":[{"scroll-pt":x()}],"scroll-pr":[{"scroll-pr":x()}],"scroll-pb":[{"scroll-pb":x()}],"scroll-pl":[{"scroll-pl":x()}],"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",s2,sW]}],fill:[{fill:["none",...L()]}],"stroke-w":[{stroke:[sj,s3,sq,sK]}],stroke:[{stroke:["none",...L()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","inset-bs","inset-be","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","pbs","pbe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mbs","mbe","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-bs","border-w-be","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-bs","border-color-be","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-mbs","scroll-mbe","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-pbs","scroll-pbe","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"]}});var ad=n(805);let ah=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,ap=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,af={};function am(e,t){return((t||af).jsx?ap:ah).test(e)}var ag=n(33876);let ay={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"};var av=n(83249);function ab(e){return e&&"object"==typeof e?"position"in e||"type"in e?aT(e.position):"start"in e||"end"in e?aT(e):"line"in e||"column"in e?aE(e):"":""}function aE(e){return a_(e&&e.line)+":"+a_(e&&e.column)}function aT(e){return aE(e&&e.start)+"-"+aE(e&&e.end)}function a_(e){return e&&"number"==typeof e?e:1}
108class aA extends Error{constructor(e,t,n){super(),"string"==typeof t&&(n=t,t=void 0);let r="",i={},s=!1;if(t&&(i="line"in t&&"column"in t||"start"in t&&"end"in t?{place:t}:"type"in t?{ancestors:[t],place:t.position}:{...t}),"string"==typeof e?r=e:!i.cause&&e&&(s=!0,r=e.message,i.cause=e),!i.ruleId&&!i.source&&"string"==typeof n){let e=n.indexOf(":");-1===e?i.ruleId=n:(i.source=n.slice(0,e),i.ruleId=n.slice(e+1))}if(!i.place&&i.ancestors&&i.ancestors){let e=i.ancestors[i.ancestors.length-1];e&&(i.place=e.position)}let a=i.place&&"start"in i.place?i.place.start:i.place;this.ancestors=i.ancestors||void 0,this.cause=i.cause||void 0,this.column=a?a.column:void 0,this.fatal=void 0,this.file="",this.message=r,this.line=a?a.line:void 0,this.name=ab(i.place)||"1:1",this.place=i.place||void 0,this.reason=this.message,this.ruleId=i.ruleId||void 0,this.source=i.source||void 0,this.stack=s&&i.cause&&"string"==typeof i.cause.stack?i.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}}aA.prototype.file="",aA.prototype.name="",aA.prototype.reason="",aA.prototype.message="",aA.prototype.stack="",aA.prototype.column=void 0,aA.prototype.line=void 0,aA.prototype.ancestors=void 0,aA.prototype.cause=void 0,aA.prototype.fatal=void 0,aA.prototype.place=void 0,aA.prototype.ruleId=void 0,aA.prototype.source=void 0;let ax={}.hasOwnProperty,ak=new Map,aS=/[A-Z]/g,aw=new Set(["table","tbody","thead","tfoot","tr"]),aI=new Set(["td","th"]),aC="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function aN(e,t,n){return"element"===t.type?function(e,t,n){let r=e.schema;"svg"===t.tagName.toLowerCase()&&"html"===r.space&&(e.schema=P.JW),e.ancestors.push(t);let i=aD(e,t.tagName,!1),s=function(e,t){let n,r,i={};for(r in t.properties)if("children"!==r&&ax.call(t.properties,r)){let s=function(e,t,n){let r=(0,L.I)(e.schema,t);if(!(null==n||"number"==typeof n&&Number.isNaN(n))){if(Array.isArray(n)&&(n=r.commaSeparated?(0,D.A)(n):(0,z.A)(n)),"style"===r.property){let t="object"==typeof n?n:function(e,t){try{return av(t,{reactCompat:!0})}catch(n){if(e.ignoreInvalidStyle)return{};let t=new aA("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:n,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw t.file=e.filePath||void 0,t.url=aC+"#cannot-parse-style-attribute",t}}(e,String(n));return"css"===e.stylePropertyNameCase&&(t=function(e){let t,n={};for(t in e)ax.call(e,t)&&(n[function(e){let t=e.replace(aS,aL);return"ms-"===t.slice(0,3)&&(t="-"+t),t}(t)]=e[t]);return n}(t)),["style",t]}return["react"===e.elementAttributeNameCase&&r.space?ay[r.property]||r.property:r.attribute,n]}}(e,r,t.properties[r]);if(s){let[r,a]=s;e.tableCellAlignToStyle&&"align"===r&&"string"==typeof a&&aI.has(t.tagName)?n=a:i[r]=a}}return n&&((i.style||(i.style={}))["css"===e.stylePropertyNameCase?"text-align":"textAlign"]=n),i}(e,t),a=aP(e,t);return aw.has(t.tagName)&&(a=a.filter(function(e){return"string"!=typeof e||!(0,ag.m)(e)})),aR(e,s,i,t),aO(s,a),e.ancestors.pop(),e.schema=r,e.create(t,i,s,n)}(e,t,n):"mdxFlowExpression"===t.type||"mdxTextExpression"===t.type?function(e,t){if(t.data&&t.data.estree&&e.evaluater){let n=t.data.estree.body[0];return n.type,e.evaluater.evaluateExpression(n.expression)}aM(e,t.position)}(e,t):"mdxJsxFlowElement"===t.type||"mdxJsxTextElement"===t.type?function(e,t,n){let r=e.schema;"svg"===t.name&&"html"===r.space&&(e.schema=P.JW),e.ancestors.push(t);let i=null===t.name?e.Fragment:aD(e,t.name,!0),s=function(e,t){let n={};for(let r of t.attributes)if("mdxJsxExpressionAttribute"===r.type)if(r.data&&r.data.estree&&e.evaluater){let t=r.data.estree.body[0];t.type;let i=t.expression;i.type;let s=i.properties[0];s.type,Object.assign(n,e.evaluater.evaluateExpression(s.argument))}else aM(e,t.position);else{let i,s=r.name;if(r.value&&"object"==typeof r.value)if(r.value.data&&r.value.data.estree&&e.evaluater){let t=r.value.data.estree.body[0];t.type,i=e.evaluater.evaluateExpression(t.expression)}else aM(e,t.position);else i=null===r.value||r.value;n[s]=i}return n}(e,t),a=aP(e,t);return aR(e,s,i,t),aO(s,a),e.ancestors.pop(),e.schema=r,e.create(t,i,s,n)}
108(e,t,n):"mdxjsEsm"===t.type?function(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);aM(e,t.position)}(e,t):"root"===t.type?function(e,t,n){let r={};return aO(r,aP(e,t)),e.create(t,e.Fragment,r,n)}(e,t,n):"text"===t.type?t.value:void 0}function aR(e,t,n,r){"string"!=typeof n&&n!==e.Fragment&&e.passNode&&(t.node=r)}function aO(e,t){if(t.length>0){let n=t.length>1?t:t[0];n&&(e.children=n)}}function aP(e,t){let n=[],r=-1,i=e.passKeys?new Map:ak;for(;++r<t.children.length;){let s,a=t.children[r];if(e.passKeys){let e="element"===a.type?a.tagName:"mdxJsxFlowElement"===a.type||"mdxJsxTextElement"===a.type?a.name:void 0;if(e){let t=i.get(e)||0;s=e+"-"+t,i.set(e,t+1)}}let o=aN(e,a,s);void 0!==o&&n.push(o)}return n}function aD(e,t,n){let r;if(n)if(t.includes(".")){let e,n=t.split("."),i=-1;for(;++i<n.length;){let t=am(n[i])?{type:"Identifier",name:n[i]}:{type:"Literal",value:n[i]};e=e?{type:"MemberExpression",object:e,property:t,computed:!!(i&&"Literal"===t.type),optional:!1}:t}r=e}else r=am(t)&&!/^[a-z]/.test(t)?{type:"Identifier",name:t}:{type:"Literal",value:t};else r={type:"Literal",value:t};if("Literal"===r.type){let t=r.value;return ax.call(e.components,t)?e.components[t]:t}if(e.evaluater)return e.evaluater.evaluateExpression(r);aM(e)}function aM(e,t){let n=new aA("Cannot handle MDX estrees without `createEvaluater`",{ancestors:e.ancestors,place:t,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw n.file=e.filePath||void 0,n.url=aC+"#cannot-handle-mdx-estrees-without-createevaluater",n}function aL(e){return"-"+e.toLowerCase()}class aj{constructor(e){this.left=e?[...e]:[],this.right=[]}get(e){if(e<0||e>=this.left.length+this.right.length)throw RangeError("Cannot access index `"+e+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return e<this.left.length?this.left[e]:this.right[this.right.length-e+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(e,t){let n=null==t?1/0:t;return n<this.left.length?this.left.slice(e,n):e>this.left.length?this.right.slice(this.right.length-n+this.left.length,this.right.length-e+this.left.length).reverse():this.left.slice(e).concat(this.right.slice(this.right.length-n+this.left.length).reverse())}splice(e,t,n){this.setCursor(Math.trunc(e));let r=this.right.splice(this.right.length-(t||0),1/0);return n&&az(this.left,n),r.reverse()}pop(){return this.setCursor(1/0),this.left.pop()}push(e){this.setCursor(1/0),this.left.push(e)}pushMany(e){this.setCursor(1/0),az(this.left,e)}unshift(e){this.setCursor(0),this.right.push(e)}unshiftMany(e){this.setCursor(0),az(this.right,e.reverse())}setCursor(e){if(e!==this.left.length&&(!(e>this.left.length)||0!==this.right.length)&&(!(e<0)||0!==this.left.length))if(e<this.left.length){let t=this.left.splice(e,1/0);az(this.right,t.reverse())}else{let t=this.right.splice(this.left.length+this.right.length-e,1/0);az(this.left,t.reverse())}}}function az(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 aF(e){let t,n,r,i,s,a,o,l={},u=-1,c=new aj(e);for(;++u<c.length;){for(;u in l;)u=l[u];if(t=c.get(u),u&&"chunkFlow"===t[1].type&&"listItemPrefix"===c.get(u-1)[1].type&&((r=0)<(a=t[1]._tokenizer.events).length&&"lineEndingBlank"===a[r][1].type&&(r+=2),r<a.length&&"content"===a[r][1].type))for(;++r<a.length&&"content"!==a[r][1].type;)"chunkText"===a[r][1].type&&(a[r][1]._isInFirstContentOfListItem=!0,r++);if("enter"===t[0])t[1].contentType&&(Object.assign(l,function(e,t){let n,r,i=e.get(t)[1],s=e.get(t)[2],a=t-1,o=[],l=i._tokenizer;!l&&(l=s.parser[i.contentType](i.start),i._contentTypeTextTrailing&&(l._contentTypeTextTrailing=!0));let u=l.events,c=[],d={},h=-1,p=i,f=0,m=0,g=[0];for(;p;){for(;e.get(++a)[1]!==p;);o.push(a),!p._tokenizer&&(n=s.sliceStream(p),p.next||n.push(null),r&&l.defineSkip(p.start),p._isInFirstContentOfListItem&&(l._gfmTasklistFirstContentOfListItem=!0),l.write(n),p._isInFirstContentOfListItem&&(l._gfmTasklistFirstContentOfListItem=void 0)),r=p,p=p.next}for(p=i;++h<u.length;
108)"exit"===u[h][0]&&"enter"===u[h-1][0]&&u[h][1].type===u[h-1][1].type&&u[h][1].start.line!==u[h][1].end.line&&(m=h+1,g.push(m),p._tokenizer=void 0,p.previous=void 0,p=p.next);for(l.events=[],p?(p._tokenizer=void 0,p.previous=void 0):g.pop(),h=g.length;h--;){let t=u.slice(g[h],g[h+1]),n=o.pop();c.push([n,n+t.length-1]),e.splice(n,2,t)}for(c.reverse(),h=-1;++h<c.length;)d[f+c[h][0]]=f+c[h][1],f+=c[h][1]-c[h][0]-1;return d}(c,u)),u=l[u],o=!0);else if(t[1]._container){for(r=u,n=void 0;r--;)if("lineEnding"===(i=c.get(r))[1].type||"lineEndingBlank"===i[1].type)"enter"===i[0]&&(n&&(c.get(n)[1].type="lineEndingBlank"),i[1].type="lineEnding",n=r);else if("linePrefix"===i[1].type||"listItemIndent"===i[1].type);else break;n&&(t[1].end={...c.get(n)[1].start},(s=c.slice(n,u)).unshift(t),c.splice(n,u-n+1,s))}}return ro(e,0,1/0,c.slice(0)),!o}let aB={tokenize:function(e){let t,n=e.attempt(this.parser.constructs.contentInitial,function(t){return null===t?void e.consume(t):(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),ig(e,n,"linePrefix"))},function(n){return e.enter("paragraph"),function n(r){let i=e.enter("chunkText",{contentType:"text",previous:t});return t&&(t.next=i),t=i,function t(r){if(null===r){e.exit("chunkText"),e.exit("paragraph"),e.consume(r);return}return nU(r)?(e.consume(r),e.exit("chunkText"),n):(e.consume(r),t)}(r)}(n)});return n}},a$={tokenize:function(e){let t,n,r,i=this,s=[],a=0;return o;function o(t){if(a<s.length){let n=s[a];return i.containerState=n[1],e.attempt(n[0].continuation,l,u)(t)}return u(t)}function l(e){if(a++,i.containerState._closeFlow){let n;i.containerState._closeFlow=void 0,t&&y();let r=i.events.length,s=r;for(;s--;)if("exit"===i.events[s][0]&&"chunkFlow"===i.events[s][1].type){n=i.events[s][1].end;break}g(a);let o=r;for(;o<i.events.length;)i.events[o][1].end={...n},o++;return ro(i.events,s+1,0,i.events.slice(r)),i.events.length=o,u(e)}return o(e)}function u(n){if(a===s.length){if(!t)return h(n);if(t.currentConstruct&&t.currentConstruct.concrete)return f(n);i.interrupt=!!(t.currentConstruct&&!t._gfmTableDynamicInterruptHack)}return i.containerState={},e.check(aU,c,d)(n)}function c(e){return t&&y(),g(a),h(e)}function d(e){return i.parser.lazy[i.now().line]=a!==s.length,r=i.now().offset,f(e)}function h(t){return i.containerState={},e.attempt(aU,p,f)(t)}function p(e){return a++,s.push([i.currentConstruct,i.containerState]),h(e)}function f(r){if(null===r){t&&y(),g(0),e.consume(r);return}return t=t||i.parser.flow(i.now()),e.enter("chunkFlow",{_tokenizer:t,contentType:"flow",previous:n}),function t(n){if(null===n){m(e.exit("chunkFlow"),!0),g(0),e.consume(n);return}return nU(n)?(e.consume(n),m(e.exit("chunkFlow")),a=0,i.interrupt=void 0,o):(e.consume(n),t)}(r)}function m(e,s){let o=i.sliceStream(e);if(s&&o.push(null),e.previous=n,n&&(n.next=e),n=e,t.defineSkip(e.start),t.write(o),i.parser.lazy[e.start.line]){let e,n,s=t.events.length;for(;s--;)if(t.events[s][1].start.offset<r&&(!t.events[s][1].end||t.events[s][1].end.offset>r))return;let o=i.events.length,l=o;for(;l--;)if("exit"===i.events[l][0]&&"chunkFlow"===i.events[l][1].type){if(e){n=i.events[l][1].end;break}e=!0}for(g(a),s=o;s<i.events.length;)i.events[s][1].end={...n},s++;ro(i.events,l+1,0,i.events.slice(o)),i.events.length=s}}function g(t){let n=s.length;for(;n-- >t;){let t=s[n];i.containerState=t[1],t[0].exit.call(i,e)}s.length=t}function y(){t.write([null]),n=void 0,t=void 0,i.containerState._closeFlow=void 0}}},aU={tokenize:function(e,t,n){return ig(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}},aH={resolve:function(e){return aF(e),e},tokenize:function(e,t){let n;return function(t){return e.enter("content"),n=e.enter("chunkContent",{contentType:"content"}),r(t)};function r(t){return null===t?i(t):nU(t)?e.check(aG,s,i)(t):(e.consume(t),r)}function i(n){return e.exit("chunkContent"),e.exit("content"),t(n)}function s(t){return e.consume(t),e.exit("chunkContent"),n.next=e.enter("chunkContent",{contentType:"content",previous:n}),n=n.next,r}}},aG={partial:!0,tokenize:function(e,t,n){let r=this;return function(t){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),ig(e,i,"linePrefix")};function i(i){if(null===i||nU(i))return n(i);let s=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes("codeIndented")&&s&&"linePrefix"===s[1].type&&s[2].sliceSerialize(s[1],!0).length>=4?t(i):e.interrupt(r.parser.constructs.flow,n,t)(i)}}},aY={tokenize:function(e){let t=this,n=e.attempt(iy,function(r){return null===r?void e.consume(r):(e.enter("lineEndingBlank"),e.consume(r),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n)},e.attempt(this.parser.constructs.flowInitial,r,ig(e,e.attempt(this.parser.constructs.flow,r,e.attempt(aH,r)),"linePrefix")));return n;function r(r){return null===r?void e.consume(r):(e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),t.currentConstruct=void 0,n)}}},aZ={resolveAll:aK()},aV=aq("string"),aW=aq("text");function aq(e){return{resolveAll:aK("text"===e?aX:void 0),tokenize:function(t){let n=this,r=this.parser.constructs[e],i=t.attempt(r,s,a);return s;function s(e){return l(e)?i(e):a(e)}function a(e){return null===e?void t.consume(e):(t.enter("data"),t.consume(e),o)}function o(e){return l(e)?(t.exit("data"),i(e)):(t.consume(e),o)}function l(e){if(null===e)return!0;let t=r[e],i=-1;if(t)for(;++i<t.length;){let e=t[i];if(!e.previous||e.previous.call(n,n.previous))return!0}return!1}}}}function aK(e){return function(t,n){let r,i=-1;for(;++i<=t.length;)void 0===r?t[i]&&"data"===t[i][1].type&&(r=i,i++):t[i]&&"data"===t[i][1].type||(i!==r+2&&(t[r][1].end=t[i-1][1].end,t.splice(r+2,i-r-2),i=r+2),r=void 0);return e?e(t,n):t}}function aX(e,t){let n=0;for(;++n<=e.length;)if((n===e.length||"lineEnding"===e[n][1].type)&&"data"===e[n-1][1].type){let r,i=e[n-1][1],s=t.sliceStream(i),a=s.length,o=-1,l=0;for(;a--;){let e=s[a];if("string"==typeof e){for(o=e.length;32===e.charCodeAt(o-1);)l++,o--;if(o)break;o=-1}else if(-2===e)r=!0,l++;else if(-1===e);else{a++;break}}if(t._contentTypeTextTrailing&&n===e.length&&(l=0),l){let s={type:n===e.length||r||l<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:a?o:i.start._bufferIndex+o,_index:i.start._index+a,line:i.end.line,column:i.end.column-l,offset:i.end.offset-l},end:{...i.end}};i.end={...s.start},i.start.offset===i.end.offset?Object.assign(i,s):(e.splice(n,0,["enter",s,t],["exit",s,t]),n+=2)}n++}return e}let aQ={name:"thematicBreak",tokenize:function(e,t,n){let r,i=0;return function(s){var a;return e.enter("thematicBreak"),r=a=s,function s(a){return a===r?(e.enter("thematicBreakSequence"),function t(n){return n===r?(e.consume(n),i++,t):(e.exit("thematicBreakSequence"),nG(n)?ig(e,s,"whitespace")(n):s(n))}
108(a)):i>=3&&(null===a||nU(a))?(e.exit("thematicBreak"),t(a)):n(a)}(a)}}},aJ={continuation:{tokenize:function(e,t,n){let r=this;return r.containerState._closeFlow=void 0,e.check(iy,function(n){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,ig(e,t,"listItemIndent",r.containerState.size+1)(n)},function(n){return r.containerState.furtherBlankLines||!nG(n)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,i(n)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(a1,t,i)(n))});function i(i){return r.containerState._closeFlow=!0,r.interrupt=void 0,ig(e,e.attempt(aJ,t,n),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(i)}}},exit:function(e){e.exit(this.containerState.type)},name:"list",tokenize:function(e,t,n){let r=this,i=r.events[r.events.length-1],s=i&&"linePrefix"===i[1].type?i[2].sliceSerialize(i[1],!0).length:0,a=0;return function(t){let i=r.containerState.type||(42===t||43===t||45===t?"listUnordered":"listOrdered");if("listUnordered"===i?!r.containerState.marker||t===r.containerState.marker:nF(t)){if(r.containerState.type||(r.containerState.type=i,e.enter(i,{_container:!0})),"listUnordered"===i)return e.enter("listItemPrefix"),42===t||45===t?e.check(aQ,n,o)(t):o(t);if(!r.interrupt||49===t)return e.enter("listItemPrefix"),e.enter("listItemValue"),function t(i){return nF(i)&&++a<10?(e.consume(i),t):(!r.interrupt||a<2)&&(r.containerState.marker?i===r.containerState.marker:41===i||46===i)?(e.exit("listItemValue"),o(i)):n(i)}(t)}return n(t)};function o(t){return e.enter("listItemMarker"),e.consume(t),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||t,e.check(iy,r.interrupt?n:l,e.attempt(a0,c,u))}
108function l(e){return r.containerState.initialBlankLine=!0,s++,c(e)}function u(t){return nG(t)?(e.enter("listItemPrefixWhitespace"),e.consume(t),e.exit("listItemPrefixWhitespace"),c):n(t)}function c(n){return r.containerState.size=s+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(n)}}},a0={partial:!0,tokenize:function(e,t,n){let r=this;return ig(e,function(e){let i=r.events[r.events.length-1];return!nG(e)&&i&&"listItemPrefixWhitespace"===i[1].type?t(e):n(e)},"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5)}},a1={partial:!0,tokenize:function(e,t,n){let r=this;return ig(e,function(e){let i=r.events[r.events.length-1];return i&&"listItemIndent"===i[1].type&&i[2].sliceSerialize(i[1],!0).length===r.containerState.size?t(e):n(e)},"listItemIndent",r.containerState.size+1)}},a2={continuation:{tokenize:function(e,t,n){let r=this;return function(t){return nG(t)?ig(e,i,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):i(t)};function i(r){return e.attempt(a2,t,n)(r)}}},exit:function(e){e.exit("blockQuote")},name:"blockQuote",tokenize:function(e,t,n){let r=this;return function(t){if(62===t){let n=r.containerState;return n.open||(e.enter("blockQuote",{_container:!0}),n.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(t),e.exit("blockQuoteMarker"),i}return n(t)};function i(n){return nG(n)?(e.enter("blockQuotePrefixWhitespace"),e.consume(n),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(n))}}};function a3(e,t,n,r,i,s,a,o,l){let u=l||1/0,c=0;return function(t){return 60===t?(e.enter(r),e.enter(i),e.enter(s),e.consume(t),e.exit(s),d):null===t||32===t||41===t||nz(t)?n(t):(e.enter(r),e.enter(a),e.enter(o),e.enter("chunkString",{contentType:"string"}),f(t))};function d(n){return 62===n?(e.enter(s),e.consume(n),e.exit(s),e.exit(i),e.exit(r),t):(e.enter(o),e.enter("chunkString",{contentType:"string"}),h(n))}function h(t){return 62===t?(e.exit("chunkString"),e.exit(o),d(t)):null===t||60===t||nU(t)?n(t):(e.consume(t),92===t?p:h)}function p(t){return 60===t||62===t||92===t?(e.consume(t),h):h(t)}function f(i){return!c&&(null===i||41===i||nH(i))?(e.exit("chunkString"),e.exit(o),e.exit(a),e.exit(r),t(i)):c<u&&40===i?(e.consume(i),c++,f):41===i?(e.consume(i),c--,f):null===i||32===i||40===i||nz(i)?n(i):(e.consume(i),92===i?m:f)}function m(t){return 40===t||41===t||92===t?(e.consume(t),f):f(t)}}function a4(e,t,n,r,i,s){let a,o=this,l=0;return function(t){return e.enter(r),e.enter(i),e.consume(t),e.exit(i),e.enter(s),u};function u(d){return l>999||null===d||91===d||93===d&&!a||94===d&&!l&&"_hiddenFootnoteSupport"in o.parser.constructs?n(d):93===d?(e.exit(s),e.enter(i),e.consume(d),e.exit(i),e.exit(r),t):nU(d)?(e.enter("lineEnding"),e.consume(d),e.exit("lineEnding"),u):(e.enter("chunkString",{contentType:"string"}),c(d))}function c(t){return null===t||91===t||93===t||nU(t)||l++>999?(e.exit("chunkString"),u(t)):(e.consume(t),a||(a=!nG(t)),92===t?d:c)}function d(t){return 91===t||92===t||93===t?(e.consume(t),l++,c):c(t)}}function a9(e,t,n,r,i,s){let a;return function(t){return 34===t||39===t||40===t?(e.enter(r),e.enter(i),e.consume(t),e.exit(i),a=40===t?41:t,o):n(t)};function o(n){return n===a?(e.enter(i),e.consume(n),e.exit(i),e.exit(r),t):(e.enter(s),l(n))}function l(t){return t===a?(e.exit(s),o(a)):null===t?n(t):nU(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),ig(e,l,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),u(t))}function u(t){return t===a||null===t||nU(t)?(e.exit("chunkString"),l(t)):(e.consume(t),92===t?c:u)}function c(t){return t===a||92===t?(e.consume(t),u):u(t)}}function a5(e,t){let n;return function r(i){return nU(i)?(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),n=!0,r):nG(i)?ig(e,r,n?"linePrefix":"lineSuffix")(i):t(i)}}let a6={partial:!0,tokenize:function(e,t,n){return function(t){return nH(t)?a5(e,r)(t):n(t)};function r(t){return a9(e,i,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(t)}function i(t){return nG(t)?ig(e,s,"whitespace")(t):s(t)}function s(e){return null===e||nU(e)?t(e):n(e)}}},a8={name:"codeIndented",tokenize:function(e,t,n){let r=this;
108return function(t){return e.enter("codeIndented"),ig(e,i,"linePrefix",5)(t)};function i(t){let i=r.events[r.events.length-1];return i&&"linePrefix"===i[1].type&&i[2].sliceSerialize(i[1],!0).length>=4?function t(n){return null===n?s(n):nU(n)?e.attempt(a7,t,s)(n):(e.enter("codeFlowValue"),function n(r){return null===r||nU(r)?(e.exit("codeFlowValue"),t(r)):(e.consume(r),n)}(n))}(t):n(t)}function s(n){return e.exit("codeIndented"),t(n)}}},a7={partial:!0,tokenize:function(e,t,n){let r=this;return i;function i(t){return r.parser.lazy[r.now().line]?n(t):nU(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),i):ig(e,s,"linePrefix",5)(t)}function s(e){let s=r.events[r.events.length-1];return s&&"linePrefix"===s[1].type&&s[2].sliceSerialize(s[1],!0).length>=4?t(e):nU(e)?i(e):n(e)}}},oe={name:"setextUnderline",resolveTo:function(e,t){let n,r,i,s=e.length;for(;s--;)if("enter"===e[s][0]){if("content"===e[s][1].type){n=s;break}"paragraph"===e[s][1].type&&(r=s)}else"content"===e[s][1].type&&e.splice(s,1),i||"definition"!==e[s][1].type||(i=s);let a={type:"setextHeading",start:{...e[n][1].start},end:{...e[e.length-1][1].end}};return e[r][1].type="setextHeadingText",i?(e.splice(r,0,["enter",a,t]),e.splice(i+1,0,["exit",e[n][1],t]),e[n][1].end={...e[i][1].end}):e[n][1]=a,e.push(["exit",a,t]),e},tokenize:function(e,t,n){let r,i=this;return function(t){var a;let o,l=i.events.length;for(;l--;)if("lineEnding"!==i.events[l][1].type&&"linePrefix"!==i.events[l][1].type&&"content"!==i.events[l][1].type){o="paragraph"===i.events[l][1].type;break}return!i.parser.lazy[i.now().line]&&(i.interrupt||o)?(e.enter("setextHeadingLine"),r=t,a=t,e.enter("setextHeadingLineSequence"),function t(n){return n===r?(e.consume(n),t):(e.exit("setextHeadingLineSequence"),nG(n)?ig(e,s,"lineSuffix")(n):s(n))}(a)):n(t)};function s(r){return null===r||nU(r)?(e.exit("setextHeadingLine"),t(r)):n(r)}}},ot=["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"],on=["pre","script","style","textarea"],or={partial:!0,tokenize:function(e,t,n){return function(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),e.attempt(iy,t,n)}}},oi={partial:!0,tokenize:function(e,t,n){let r=this;return function(t){return nU(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),i):n(t)};function i(e){return r.parser.lazy[r.now().line]?n(e):t(e)}}},os={partial:!0,tokenize:function(e,t,n){let r=this;return function(t){return null===t?n(t):(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),i)};function i(e){return r.parser.lazy[r.now().line]?n(e):t(e)}}},oa={concrete:!0,name:"codeFenced",tokenize:function(e,t,n){let r,i=this,s={partial:!0,tokenize:function(e,t,n){let s=0;return function(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),a};function a(t){return e.enter("codeFencedFence"),nG(t)?ig(e,l,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):l(t)}function l(t){return t===r?(e.enter("codeFencedFenceSequence"),function t(i){return i===r?(s++,e.consume(i),t):s>=o?(e.exit("codeFencedFenceSequence"),nG(i)?ig(e,u,"whitespace")(i):u(i)):n(i)}(t)):n(t)}function u(r){return null===r||nU(r)?(e.exit("codeFencedFence"),t(r)):n(r)}}},a=0,o=0;return function(t){var s=t;let u=i.events[i.events.length-1];return a=u&&"linePrefix"===u[1].type?u[2].sliceSerialize(u[1],!0).length:0,r=s,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),function t(i){return i===r?(o++,e.consume(i),t):o<3?n(i):(e.exit("codeFencedFenceSequence"),nG(i)?ig(e,l,"whitespace")(i):l(i))}(s)};function l(s){return null===s||nU(s)?(e.exit("codeFencedFence"),i.interrupt?t(s):e.check(os,c,f)(s)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),function t(i){return null===i||nU(i)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),l(i)):nG(i)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),ig(e,u,"whitespace")(i)):96===i&&i===r?n(i):(e.consume(i),t)}(s))}
108function u(t){return null===t||nU(t)?l(t):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),function t(i){return null===i||nU(i)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),l(i)):96===i&&i===r?n(i):(e.consume(i),t)}(t))}function c(t){return e.attempt(s,f,d)(t)}function d(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),h}function h(t){return a>0&&nG(t)?ig(e,p,"linePrefix",a+1)(t):p(t)}function p(t){return null===t||nU(t)?e.check(os,c,f)(t):(e.enter("codeFlowValue"),function t(n){return null===n||nU(n)?(e.exit("codeFlowValue"),p(n)):(e.consume(n),t)}(t))}function f(n){return e.exit("codeFenced"),t(n)}}},oo=document.createElement("i");function ol(e){let t="&"+e+";";oo.innerHTML=t;let n=oo.textContent;return(59!==n.charCodeAt(n.length-1)||"semi"===e)&&n!==t&&n}let ou={name:"characterReference",tokenize:function(e,t,n){let r,i,s=this,a=0;return function(t){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(t),e.exit("characterReferenceMarker"),o};function o(t){return 35===t?(e.enter("characterReferenceMarkerNumeric"),e.consume(t),e.exit("characterReferenceMarkerNumeric"),l):(e.enter("characterReferenceValue"),r=31,i=nL,u(t))}function l(t){return 88===t||120===t?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(t),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),r=6,i=nB,u):(e.enter("characterReferenceValue"),r=7,i=nF,u(t))}function u(o){if(59===o&&a){let r=e.exit("characterReferenceValue");return i!==nL||ol(s.sliceSerialize(r))?(e.enter("characterReferenceMarker"),e.consume(o),e.exit("characterReferenceMarker"),e.exit("characterReference"),t):n(o)}return i(o)&&a++<r?(e.consume(o),u):n(o)}}},oc={name:"characterEscape",tokenize:function(e,t,n){return function(t){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(t),e.exit("escapeMarker"),r};function r(r){return n$(r)?(e.enter("characterEscapeValue"),e.consume(r),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):n(r)}}},od={name:"lineEnding",tokenize:function(e,t){return function(n){return e.enter("lineEnding"),e.consume(n),e.exit("lineEnding"),ig(e,t,"linePrefix")}}},oh={name:"labelEnd",resolveAll:function(e){let t=-1,n=[];for(;++t<e.length;){let r=e[t][1];if(n.push(e[t]),"labelImage"===r.type||"labelLink"===r.type||"labelEnd"===r.type){let e="labelImage"===r.type?4:2;r.type="data",t+=e}}return e.length!==n.length&&ro(e,0,e.length,n),e},resolveTo:function(e,t){let n,r,i,s,a=e.length,o=0;for(;a--;)if(n=e[a][1],r){if("link"===n.type||"labelLink"===n.type&&n._inactive)break;"enter"===e[a][0]&&"labelLink"===n.type&&(n._inactive=!0)}else if(i){if("enter"===e[a][0]&&("labelImage"===n.type||"labelLink"===n.type)&&!n._balanced&&(r=a,"labelLink"!==n.type)){o=2;break}}else"labelEnd"===n.type&&(i=a);let l={type:"labelLink"===e[r][1].type?"link":"image",start:{...e[r][1].start},end:{...e[e.length-1][1].end}},u={type:"label",start:{...e[r][1].start},end:{...e[i][1].end}},c={type:"labelText",start:{...e[r+o+2][1].end},end:{...e[i-2][1].start}};return s=rl(s=[["enter",l,t],["enter",u,t]],e.slice(r+1,r+o+3)),s=rl(s,[["enter",c,t]]),s=rl(s,ru(t.parser.constructs.insideSpan.null,e.slice(r+o+4,i-3),t)),s=rl(s,[["exit",c,t],e[i-2],e[i-1],["exit",u,t]]),s=rl(s,e.slice(i+1)),s=rl(s,[["exit",l,t]]),ro(e,r,e.length,s),e},tokenize:function(e,t,n){let r,i,s=this,a=s.events.length;for(;a--;)if(("labelImage"===s.events[a][1].type||"labelLink"===s.events[a][1].type)&&!s.events[a][1]._balanced){r=s.events[a][1];break}return function(t){return r?r._inactive?c(t):(i=s.parser.defined.includes(rS(s.sliceSerialize({start:r.end,end:s.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(t),e.exit("labelMarker"),e.exit("labelEnd"),o):n(t)};function o(t){return 40===t?e.attempt(op,u,i?u:c)(t):91===t?e.attempt(of,u,i?l:c)(t):i?u(t):c(t)}function l(t){return e.attempt(om,u,c)(t)}function u(e){return t(e)}function c(e){return r._balanced=!0,n(e)}}},op={tokenize:function(e,t,n){return function(t){return e.enter("resource"),e.enter("resourceMarker"),e.consume(t),e.exit("resourceMarker"),r};function r(t){return nH(t)?a5(e,i)(t):i(t)}function i(t){return 41===t?u(t):a3(e,s,a,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(t)}function s(t){return nH(t)?a5(e,o)(t):u(t)}function a(e){return n(e)}function o(t){return 34===t||39===t||40===t?a9(e,l,n,"resourceTitle","resourceTitleMarker","resourceTitleString")(t):u(t)}function l(t){return nH(t)?a5(e,u)(t):u(t)}function u(r){return 41===r?(e.enter("resourceMarker"),e.consume(r),e.exit("resourceMarker"),e.exit("resource"),t):n(r)}}},of={tokenize:function(e,t,n){let r=this;return function(t){return a4.call(r,e,i,s,"reference","referenceMarker","referenceString")(t)};function i(e){return r.parser.defined.includes(rS(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?t(e):n(e)}function s(e){return n(e)}}},om={tokenize:function(e,t,n){return function(t){return e.enter("reference"),e.enter("referenceMarker"),e.consume(t),e.exit("referenceMarker"),r};function r(r){return 93===r?(e.enter("referenceMarker"),e.consume(r),e.exit("referenceMarker"),e.exit("reference"),t):n(r)}}},og={name:"labelStartImage",resolveAll:oh.resolveAll,tokenize:function(e,t,n){let r=this;return function(t){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(t),e.exit("labelImageMarker"),i};function i(t){return 91===t?(e.enter("labelMarker"),e.consume(t),e.exit("labelMarker"),e.exit("labelImage"),s):n(t)}function s(e){return 94===e&&"_hiddenFootnoteSupport"in r.parser.constructs?n(e):t(e)}}},oy={name:"attention",resolveAll:function(e,t){let n,r,i,s,a,o,l,u,c=-1;for(;++c<e.length;)if("enter"===e[c][0]&&"attentionSequence"===e[c][1].type&&e[c][1]._close){for(n=c;n--;)if("exit"===e[n][0]&&"attentionSequence"===e[n][1].type&&e[n][1]._open&&t.sliceSerialize(e[
108n][1]).charCodeAt(0)===t.sliceSerialize(e[c][1]).charCodeAt(0)){if((e[n][1]._close||e[c][1]._open)&&(e[c][1].end.offset-e[c][1].start.offset)%3&&!((e[n][1].end.offset-e[n][1].start.offset+e[c][1].end.offset-e[c][1].start.offset)%3))continue;o=e[n][1].end.offset-e[n][1].start.offset>1&&e[c][1].end.offset-e[c][1].start.offset>1?2:1;let d={...e[n][1].end},h={...e[c][1].start};ov(d,-o),ov(h,o),s={type:o>1?"strongSequence":"emphasisSequence",start:d,end:{...e[n][1].end}},a={type:o>1?"strongSequence":"emphasisSequence",start:{...e[c][1].start},end:h},i={type:o>1?"strongText":"emphasisText",start:{...e[n][1].end},end:{...e[c][1].start}},r={type:o>1?"strong":"emphasis",start:{...s.start},end:{...a.end}},e[n][1].end={...s.start},e[c][1].start={...a.end},l=[],e[n][1].end.offset-e[n][1].start.offset&&(l=rl(l,[["enter",e[n][1],t],["exit",e[n][1],t]])),l=rl(l,[["enter",r,t],["enter",s,t],["exit",s,t],["enter",i,t]]),l=rl(l,ru(t.parser.constructs.insideSpan.null,e.slice(n+1,c),t)),l=rl(l,[["exit",i,t],["enter",a,t],["exit",a,t],["exit",r,t]]),e[c][1].end.offset-e[c][1].start.offset?(u=2,l=rl(l,[["enter",e[c][1],t],["exit",e[c][1],t]])):u=0,ro(e,n-1,c-n+3,l),c=n+l.length-u-2;break}}for(c=-1;++c<e.length;)"attentionSequence"===e[c][1].type&&(e[c][1].type="data");return e},tokenize:function(e,t){let n,r=this.parser.constructs.attentionMarkers.null,i=this.previous,s=rG(i);return function(a){return n=a,e.enter("attentionSequence"),function a(o){if(o===n)return e.consume(o),a;let l=e.exit("attentionSequence"),u=rG(o),c=!u||2===u&&s||r.includes(o),d=!s||2===s&&u||r.includes(i);return l._open=!!(42===n?c:c&&(s||!d)),l._close=!!(42===n?d:d&&(u||!c)),t(o)}(a)}}};function ov(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}let ob={name:"labelStartLink",resolveAll:oh.resolveAll,tokenize:function(e,t,n){let r=this;return function(t){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(t),e.exit("labelMarker"),e.exit("labelLink"),i};function i(e){return 94===e&&"_hiddenFootnoteSupport"in r.parser.constructs?n(e):t(e)}}},oE={42:aJ,43:aJ,45:aJ,48:aJ,49:aJ,50:aJ,51:aJ,52:aJ,53:aJ,54:aJ,55:aJ,56:aJ,57:aJ,62:a2},oT={91:{name:"definition",tokenize:function(e,t,n){let r,i=this;return function(t){var r;return e.enter("definition"),r=t,a4.call(i,e,s,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(r)};function s(t){return(r=rS(i.sliceSerialize(i.events[i.events.length-1][1]).slice(1,-1)),58===t)?(e.enter("definitionMarker"),e.consume(t),e.exit("definitionMarker"),a):n(t)}function a(t){return nH(t)?a5(e,o)(t):o(t)}function o(t){return a3(e,l,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(t)}function l(t){return e.attempt(a6,u,u)(t)}function u(t){return nG(t)?ig(e,c,"whitespace")(t):c(t)}function c(s){return null===s||nU(s)?(e.exit("definition"),i.parser.defined.push(r),t(s)):n(s)}}}},o_={[-2]:a8,[-1]:a8,32:a8},oA={35:{name:"headingAtx",resolve:function(e,t){let n,r,i=e.length-2,s=3;return"whitespace"===e[3][1].type&&(s+=2),i-2>s&&"whitespace"===e[i][1].type&&(i-=2),"atxHeadingSequence"===e[i][1].type&&(s===i-1||i-4>s&&"whitespace"===e[i-2][1].type)&&(i-=s+1===i?2:4),i>s&&(n={type:"atxHeadingText",start:e[s][1].start,end:e[i][1].end},r={type:"chunkText",start:e[s][1].start,end:e[i][1].end,contentType:"text"},ro(e,s,i-s+1,[["enter",n,t],["enter",r,t],["exit",r,t],["exit",n,t]])),e},tokenize:function(e,t,n){let r=0;return function(i){var s;return e.enter("atxHeading"),s=i,e.enter("atxHeadingSequence"),function i(s){return 35===s&&r++<6?(e.consume(s),i):null===s||nH(s)?(e.exit("atxHeadingSequence"),function n(r){return 35===r?(e.enter("atxHeadingSequence"),function t(r){return 35===r?(e.consume(r),t):(e.exit("atxHeadingSequence"),n(r))}(r)):null===r||nU(r)?(e.exit("atxHeading"),t(r)):nG(r)?ig(e,n,"whitespace")(r):(e.enter("atxHeadingText"),function t(r){return null===r||35===r||nH(r)?(e.exit("atxHeadingText"),n(r)):(e.consume(r),t)}(r))}(s)):n(s)}(s)}}},42:aQ,45:[oe,aQ],60:{concrete:!0,name:"htmlFlow",resolveTo:function(e){let t=e.length;for(;t--&&("enter"!==e[t][0]||"htmlFlow"!==e[t][1].type););return t>1&&"linePrefix"===e[t-2][1].type&&(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},tokenize:function(e,t,n){let r,i,s,a,o,l=this;return function(t){var n;return n=t,e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(n),u};function u(a){return 33===a?(e.consume(a),c):47===a?(e.consume(a),i=!0,p):63===a?(e.consume(a),r=3,l.interrupt?t:O):nM(a)?(e.consume(a),s=String.fromCharCode(a),f):n(a)}function c(i){return 45===i?(e.consume(i),r=2,d):91===i?(e.consume(i),r=5,a=0,h):nM(i)?(e.consume(i),r=4,l.interrupt?t:O):n(i)}function d(r){return 45===r?(e.consume(r),l.interrupt?t:O):n(r)}function h(r){let i="CDATA[";return r===i.charCodeAt(a++)?(e.consume(r),a===i.length)?l.interrupt?t:x:h:n(r)}function p(t){return nM(t)?(e.consume(t),s=String.fromCharCode(t),f):n(t)}function f(a){if(null===a||47===a||62===a||nH(a)){let o=47===a,u=s.toLowerCase();
108return!o&&!i&&on.includes(u)?(r=1,l.interrupt?t(a):x(a)):ot.includes(s.toLowerCase())?(r=6,o)?(e.consume(a),m):l.interrupt?t(a):x(a):(r=7,l.interrupt&&!l.parser.lazy[l.now().line]?n(a):i?function t(n){return nG(n)?(e.consume(n),t):_(n)}(a):g(a))}return 45===a||nL(a)?(e.consume(a),s+=String.fromCharCode(a),f):n(a)}function m(r){return 62===r?(e.consume(r),l.interrupt?t:x):n(r)}function g(t){return 47===t?(e.consume(t),_):58===t||95===t||nM(t)?(e.consume(t),y):nG(t)?(e.consume(t),g):_(t)}function y(t){return 45===t||46===t||58===t||95===t||nL(t)?(e.consume(t),y):v(t)}function v(t){return 61===t?(e.consume(t),b):nG(t)?(e.consume(t),v):g(t)}function b(t){return null===t||60===t||61===t||62===t||96===t?n(t):34===t||39===t?(e.consume(t),o=t,E):nG(t)?(e.consume(t),b):function t(n){return null===n||34===n||39===n||47===n||60===n||61===n||62===n||96===n||nH(n)?v(n):(e.consume(n),t)}(t)}function E(t){return t===o?(e.consume(t),o=null,T):null===t||nU(t)?n(t):(e.consume(t),E)}function T(e){return 47===e||62===e||nG(e)?g(e):n(e)}function _(t){return 62===t?(e.consume(t),A):n(t)}function A(t){return null===t||nU(t)?x(t):nG(t)?(e.consume(t),A):n(t)}function x(t){return 45===t&&2===r?(e.consume(t),I):60===t&&1===r?(e.consume(t),C):62===t&&4===r?(e.consume(t),P):63===t&&3===r?(e.consume(t),O):93===t&&5===r?(e.consume(t),R):nU(t)&&(6===r||7===r)?(e.exit("htmlFlowData"),e.check(or,D,k)(t)):null===t||nU(t)?(e.exit("htmlFlowData"),k(t)):(e.consume(t),x)}function k(t){return e.check(oi,S,D)(t)}function S(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),w}function w(t){return null===t||nU(t)?k(t):(e.enter("htmlFlowData"),x(t))}function I(t){return 45===t?(e.consume(t),O):x(t)}function C(t){return 47===t?(e.consume(t),s="",N):x(t)}function N(t){if(62===t){let n=s.toLowerCase();return on.includes(n)?(e.consume(t),P):x(t)}return nM(t)&&s.length<8?(e.consume(t),s+=String.fromCharCode(t),N):x(t)}function R(t){return 93===t?(e.consume(t),O):x(t)}function O(t){return 62===t?(e.consume(t),P):45===t&&2===r?(e.consume(t),O):x(t)}function P(t){return null===t||nU(t)?(e.exit("htmlFlowData"),D(t)):(e.consume(t),P)}function D(n){return e.exit("htmlFlow"),t(n)}}},61:oe,95:aQ,96:oa,126:oa},ox={38:ou,92:oc},ok={[-5]:od,[-4]:od,[-3]:od,33:og,38:ou,42:oy,60:[{name:"autolink",tokenize:function(e,t,n){let r=0;return function(t){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(t),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),i};function i(t){return nM(t)?(e.consume(t),s):64===t?n(t):o(t)}function s(t){return 43===t||45===t||46===t||nL(t)?(r=1,function t(n){return 58===n?(e.consume(n),r=0,a):(43===n||45===n||46===n||nL(n))&&r++<32?(e.consume(n),t):(r=0,o(n))}(t)):o(t)}function a(r){return 62===r?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(r),e.exit("autolinkMarker"),e.exit("autolink"),t):null===r||32===r||60===r||nz(r)?n(r):(e.consume(r),a)}function o(t){return 64===t?(e.consume(t),l):nj(t)?(e.consume(t),o):n(t)}function l(i){return nL(i)?function i(s){return 46===s?(e.consume(s),r=0,l):62===s?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(s),e.exit("autolinkMarker"),e.exit("autolink"),t):function t(s){if((45===s||nL(s))&&r++<63){let n=45===s?t:i;return e.consume(s),n}return n(s)}(s)}(i):n(i)}}},{name:"htmlText",tokenize:function(e,t,n){let r,i,s,a=this;return function(t){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(t),o};function o(t){return 33===t?(e.consume(t),l):47===t?(e.consume(t),E):63===t?(e.consume(t),v):nM(t)?(e.consume(t),_):n(t)}function l(t){return 45===t?(e.consume(t),u):91===t?(e.consume(t),i=0,p):nM(t)?(e.consume(t),y):n(t)}function u(t){return 45===t?(e.consume(t),h):n(t)}function c(t){return null===t?n(t):45===t?(e.consume(t),d):nU(t)?(s=c,N(t)):(e.consume(t),c)}function d(t){return 45===t?(e.consume(t),h):c(t)}function h(e){return 62===e?C(e):45===e?d(e):c(e)}function p(t){let r="CDATA[";return t===r.charCodeAt(i++)?(e.consume(t),i===r.length?f:p):n(t)}function f(t){return null===t?n(t):93===t?(e.consume(t),m):nU(t)?(s=f,N(t)):(e.consume(t),f)}function m(t){return 93===t?(e.consume(t),g):f(t)}function g(t){return 62===t?C(t):93===t?(e.consume(t),g):f(t)}function y(t){return null===t||62===t?C(t):nU(t)?(s=y,N(t)):(e.consume(t),y)}function v(t){return null===t?n(t):63===t?(e.consume(t),b):nU(t)?(s=v,N(t)):(e.consume(t),v)}function b(e){return 62===e?C(e):v(e)}function E(t){return nM(t)?(e.consume(t),T):n(t)}function T(t){return 45===t||nL(t)?(e.consume(t),T):function t(n){return nU(n)?(s=t,N(n)):nG(n)?(e.consume(n),t):C(n)}(t)}function _(t){return 45===t||nL(t)?(e.consume(t),_):47===t||62===t||nH(t)?A(t):n(t)}function A(t){return 47===t?(e.consume(t),C):58===t||95===t||nM(t)?(e.consume(t),x):nU(t)?(s=A,N(t)):nG(t)?(e.consume(t),A):C(t)}function x(t){return 45===t||46===t||58===t||95===t||nL(t)?(e.consume(t),x):function t(n){return 61===n?(e.consume(n),k):nU(n)?(s=t,N(n)):nG(n)?(e.consume(n),t):A(n)}(t)}function k(t){return null===t||60===t||61===t||62===t||96===t?n(t):34===t||39===t?(e.consume(t),r=t,S):nU(t)?(s=k,N(t)):nG(t)?(e.consume(t),k):(e.consume(t),w)}function S(t){return t===r?(e.consume(t),r=void 0,I):null===t?n(t):nU(t)?(s=S,N(t)):(e.consume(t),S)}function w(t){return null===t||34===t||39===t||60===t||61===t||96===t?n(t):47===t||62===t||nH(t)?A(t):(e.consume(t),w)}function I(e){return 47===e||62===e||nH(e)?A(e):n(e)}function C(r){return 62===r?(e.consume(r),e.exit("htmlTextData"),e.exit("htmlText"),t):n(r)}function N(t){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),R}function R(t){return nG(t)?ig(e,O,"linePrefix",a.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):O(t)}function O(t){return e.enter("htmlTextData"),s(t)}}}],91:ob,92:[{name:"hardBreakEscape",tokenize:function(e,t,n){return function(t){return e.enter("hardBreakEscape"),e.consume(t),r};function r(r){return nU(r)?(e.exit("hardBreakEscape"),t(r)):n(r)}}},oc],93:oh,95:oy,96:{name:"codeText",previous:function(e){return 96!==e||"characterEscape"===this.events[this.events.length-1][1].type},resolve:function(e){let t,n,r=e.length-4,i=3;if(("lineEnding"===e[3][1].type||"space"===e[i][1].type)&&("lineEnding"===e[r][1].type||"space"===e[r][1].type)){for(t=i;++t<r;)if("codeTextData"===e[t][1].type){e[i][1].type="codeTextPadding",e[r][1].type="codeTextPadding",i+=2,r-=2;break}}for(t=i-1,r++;++t<=r;)void 0===n?t!==r&&"lineEnding"!==e[t][1].type&&(n=t):(t===r||"lineEnding"===e[t][1].type)&&(e[n][1].type="codeTextData",t!==n+2&&(e[n][1].end=e[t-1][1].end,e.splice(n+2,t-n-2),r-=t-n-2,t=n+2),n=void 0);return e},tokenize:function(e,t,n){let r,i,s=0;
108return function(t){return e.enter("codeText"),e.enter("codeTextSequence"),function t(n){return 96===n?(e.consume(n),s++,t):(e.exit("codeTextSequence"),a(n))}(t)};function a(l){return null===l?n(l):32===l?(e.enter("space"),e.consume(l),e.exit("space"),a):96===l?(i=e.enter("codeTextSequence"),r=0,function n(a){return 96===a?(e.consume(a),r++,n):r===s?(e.exit("codeTextSequence"),e.exit("codeText"),t(a)):(i.type="codeTextData",o(a))}(l)):nU(l)?(e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),a):(e.enter("codeTextData"),o(l))}function o(t){return null===t||32===t||96===t||nU(t)?(e.exit("codeTextData"),a(t)):(e.consume(t),o)}}}},oS={null:[oy,aZ]},ow={null:[42,95]},oI={null:[]},oC=/[\0\t\n\r]/g;function oN(e,t){let n=Number.parseInt(e,t);return n<9||11===n||n>13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||(65535&n)==65535||(65535&n)==65534||n>1114111?"�":String.fromCodePoint(n)}let oR=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function oO(e,t,n){if(t)return t;if(35===n.charCodeAt(0)){let e=n.charCodeAt(1),t=120===e||88===e;return oN(n.slice(t?2:1),t?16:10)}return ol(n)||e}let oP={}.hasOwnProperty;function oD(e){return{line:e.line,column:e.column,offset:e.offset}}function oM(e,t){if(e)throw Error("Cannot close `"+e.type+"` ("+ab({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+ab({start:t.start,end:t.end})+") is open");throw Error("Cannot close document, a token (`"+t.type+"`, "+ab({start:t.start,end:t.end})+") is still open")}function oL(e){let t=this;t.parser=function(n){var r,i;let s,a,o,l;return"string"!=typeof(r={...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})&&(i=r,r=void 0),(function(e){let t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:r(y),autolinkProtocol:u,autolinkEmail:u,atxHeading:r(f),blockQuote:r(function(){return{type:"blockquote",children:[]}}),characterEscape:u,characterReference:u,codeFenced:r(p),codeFencedFenceInfo:i,codeFencedFenceMeta:i,codeIndented:r(p,i),codeText:r(function(){return{type:"inlineCode",value:""}},i),codeTextData:u,data:u,codeFlowValue:u,definition:r(function(){return{type:"definition",identifier:"",label:null,title:null,url:""}}),definitionDestinationString:i,definitionLabelString:i,definitionTitleString:i,emphasis:r(function(){return{type:"emphasis",children:[]}}),hardBreakEscape:r(m),hardBreakTrailing:r(m),htmlFlow:r(g,i),htmlFlowData:u,htmlText:r(g,i),htmlTextData:u,image:r(function(){return{type:"image",title:null,url:"",alt:null}}),label:i,link:r(y),listItem:r(function(e){return{type:"listItem",spread:e._spread,checked:null,children:[]}}),listItemValue:function(e){this.data.expectingFirstListItemValue&&(this.stack[this.stack.length-2].start=Number.parseInt(this.sliceSerialize(e),10),this.data.expectingFirstListItemValue=void 0)},listOrdered:r(v,function(){this.data.expectingFirstListItemValue=!0}),listUnordered:r(v),paragraph:r(function(){return{type:"paragraph",children:[]}}),reference:function(){this.data.referenceType="collapsed"},referenceString:i,resourceDestinationString:i,resourceTitleString:i,setextHeading:r(f),strong:r(function(){return{type:"strong",children:[]}}),thematicBreak:r(function(){return{type:"thematicBreak"}})},exit:{atxHeading:a(),atxHeadingSequence:function(e){let t=this.stack[this.stack.length-1];t.depth||(t.depth=this.sliceSerialize(e).length)},autolink:a(),autolinkEmail:function(e){c.call(this,e),this.stack[this.stack.length-1].url="mailto:"+this.sliceSerialize(e)},autolinkProtocol:function(e){c.call(this,e),this.stack[this.stack.length-1].url=this.sliceSerialize(e)},blockQuote:a(),characterEscapeValue:c,characterReferenceMarkerHexadecimal:h,characterReferenceMarkerNumeric:h,characterReferenceValue:function(e){let t,n=this.sliceSerialize(e),r=this.data.characterReferenceType;r?(t=oN(n,"characterReferenceMarkerNumeric"===r?10:16),this.data.characterReferenceType=void 0):t=ol(n);let i=this.stack[this.stack.length-1];i.value+=t},characterReference:function(e){this.stack.pop().position.end=oD(e.end)},codeFenced:a(function(){let e=this.resume();this.stack[this.stack.length-1].value=e.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}),codeFencedFence:function(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)},codeFencedFenceInfo:function(){let e=this.resume();this.stack[this.stack.length-1].lang=e},codeFencedFenceMeta:function(){let e=this.resume();this.stack[this.stack.length-1].meta=e},codeFlowValue:c,codeIndented:a(function(){let e=this.resume();this.stack[this.stack.length-1].value=e.replace(/(\r?\n|\r)$/g,"")}),codeText:a(function(){let e=this.resume();this.stack[this.stack.length-1].value=e}),codeTextData:c,data:c,definition:a(),definitionDestinationString:function(){let e=this.resume();this.stack[this.stack.length-1].url=e},definitionLabelString:function(e){let t=this.resume(),n=this.stack[this.stack.length-1];n.label=t,n.identifier=rS(this.sliceSerialize(e)).toLowerCase()},definitionTitleString:function(){let e=this.resume();this.stack[this.stack.length-1].title=e},emphasis:a(),hardBreakEscape:a(d),hardBreakTrailing:a(d),htmlFlow:a(function(){let e=this.resume();this.stack[this.stack.length-1].value=e}),htmlFlowData:c,htmlText:a(function(){let e=this.resume();this.stack[this.stack.length-1].value=e}),htmlTextData:c,image:a(function(){let e=this.stack[this.stack.length-1];if(this.data.inReference){let t=this.data.referenceType||"shortcut";e.type+="Reference",e.referenceType=t,delete e.url,delete e.title}else delete e.identifier,delete e.label;this.data.referenceType=void 0}),label:function(){let e=this.stack[this.stack.length-1],t=this.resume(),n=this.stack[this.stack.length-1];this.data.inReference=!0,"link"===n.type?n.children=e.children:n.alt=t},labelText:function(e){let t=this.sliceSerialize(e),n=this.stack[this.stack.length-2];n.label=t.replace(oR,oO),n.identifier=rS(t).toLowerCase()},lineEnding:function(e){let n=this.stack[this.stack.length-1];if(this.data.atHardBreak){n.children[n.children.length-1].position.end=oD(e.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(n.t
108ype)&&(u.call(this,e),c.call(this,e))},link:a(function(){let e=this.stack[this.stack.length-1];if(this.data.inReference){let t=this.data.referenceType||"shortcut";e.type+="Reference",e.referenceType=t,delete e.url,delete e.title}else delete e.identifier,delete e.label;this.data.referenceType=void 0}),listItem:a(),listOrdered:a(),listUnordered:a(),paragraph:a(),referenceString:function(e){let t=this.resume(),n=this.stack[this.stack.length-1];n.label=t,n.identifier=rS(this.sliceSerialize(e)).toLowerCase(),this.data.referenceType="full"},resourceDestinationString:function(){let e=this.resume();this.stack[this.stack.length-1].url=e},resourceTitleString:function(){let e=this.resume();this.stack[this.stack.length-1].title=e},resource:function(){this.data.inReference=void 0},setextHeading:a(function(){this.data.setextHeadingSlurpLineEnding=void 0}),setextHeadingLineSequence:function(e){this.stack[this.stack.length-1].depth=61===this.sliceSerialize(e).codePointAt(0)?1:2},setextHeadingText:function(){this.data.setextHeadingSlurpLineEnding=!0},strong:a(),thematicBreak:a()}};!function e(t,n){let r=-1;for(;++r<n.length;){let i=n[r];Array.isArray(i)?e(t,i):function(e,t){let n;for(n in t)if(oP.call(t,n))switch(n){case"canContainEols":{let r=t[n];r&&e[n].push(...r);break}case"transforms":{let r=t[n];r&&e[n].push(...r);break}case"enter":case"exit":{let r=t[n];r&&Object.assign(e[n],r)}}}(t,i)}}(t,(e||{}).mdastExtensions||[]);let n={};return function(e){let r={type:"root",children:[]},a={stack:[r],tokenStack:[],config:t,enter:s,exit:o,buffer:i,resume:l,data:n},u=[],c=-1;for(;++c<e.length;)("listOrdered"===e[c][1].type||"listUnordered"===e[c][1].type)&&("enter"===e[c][0]?u.push(c):c=function(e,t,n){let r,i,s,a,o=t-1,l=-1,u=!1;for(;++o<=n;){let t=e[o];switch(t[1].type){case"listUnordered":case"listOrdered":case"blockQuote":"enter"===t[0]?l++:l--,a=void 0;break;case"lineEndingBlank":"enter"===t[0]&&(!r||a||l||s||(s=o),a=void 0);break;case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:a=void 0}if(!l&&"enter"===t[0]&&"listItemPrefix"===t[1].type||-1===l&&"exit"===t[0]&&("listUnordered"===t[1].type||"listOrdered"===t[1].type)){if(r){let a=o;for(i=void 0;a--;){let t=e[a];if("lineEnding"===t[1].type||"lineEndingBlank"===t[1].type){if("exit"===t[0])continue;i&&(e[i][1].type="lineEndingBlank",u=!0),t[1].type="lineEnding",i=a}else if("linePrefix"===t[1].type||"blockQuotePrefix"===t[1].type||"blockQuotePrefixWhitespace"===t[1].type||"blockQuoteMarker"===t[1].type||"listItemIndent"===t[1].type);else break}s&&(!i||s<i)&&(r._spread=!0),r.end=Object.assign({},i?e[i][1].start:t[1].end),e.splice(i||o,0,["exit",r,t[2]]),o++,n++}if("listItemPrefix"===t[1].type){let i={type:"listItem",_spread:!1,start:Object.assign({},t[1].start),end:void 0};r=i,e.splice(o,0,["enter",i,t[2]]),o++,n++,s=void 0,a=!0}}}return e[t][1]._spread=u,n}(e,u.pop(),c));for(c=-1;++c<e.length;){let n=t[e[c][0]];oP.call(n,e[c][1].type)&&n[e[c][1].type].call(Object.assign({sliceSerialize:e[c][2].sliceSerialize},a),e[c][1])}if(a.tokenStack.length>0){let e=a.tokenStack[a.tokenStack.length-1];(e[1]||oM).call(a,void 0,e[0])}for(r.position={start:oD(e.length>0?e[0][1].start:{line:1,column:1,offset:0}),end:oD(e.length>0?e[e.length-2][1].end:{line:1,column:1,offset:0})},c=-1;++c<t.transforms.length;)r=t.transforms[c](r)||r;return r};function r(e,t){return function(n){s.call(this,e(n),n),t&&t.call(this,n)}}function i(){this.stack.push({type:"fragment",children:[]})}function s(e,t,n){this.stack[this.stack.length-1].children.push(e),this.stack.push(e),this.tokenStack.push([t,n||void 0]),e.position={start:oD(t.start),end:void 0}}function a(e){return function(t){e&&e.call(this,t),o.call(this,t)}}function o(e,t){let n=this.stack.pop(),r=this.tokenStack.pop();if(r)r[0].type!==e.type&&(t?t.call(this,e,r[0]):(r[1]||oM).call(this,e,r[0]));else throw Error("Cannot close `"+e.type+"` ("+ab({start:e.start,end:e.end})+"): itâs not open");n.position.end=oD(e.end)}function l(){return rZ(this.stack.pop())}function u(e){let t=this.stack[this.stack.length-1].children,n=t[t.length-1];n&&"text"===n.type||((n={type:"text",value:""}).position={start:oD(e.start),end:void 0},t.push(n)),this.stack.push(n)}function c(e){let t=this.stack.pop();t.value+=this.sliceSerialize(e),t.position.end=oD(e.end)}function d(){this.data.atHardBreak=!0}function h(e){this.data.characterReferenceType=e.type}function p(){return{type:"code",lang:null,meta:null,value:""}}function f(){return{type:"heading",depth:0,children:[]}}function m(){return{type:"break"}}function g(){return{type:"html",value:""}}function y(){return{type:"link",title:null,url:"",children:[]}}function v(e){return{type:"list",ordered:"listOrdered"===e.type,start:null,spread:e._spread,children:[]}}})(i)(function(e){for(;!aF(e););return e}((function(e){let t={constructs:r8([b,...(e||{}).extensions||[]]),content:n(aB),defined:[],document:n(a$),flow:n(aY),lazy:{},string:n(aV),text:n(aW)};return t;function n(e){return function(n){return function(e,t,n){let r={_bufferIndex:-1,_index:0,line:n&&n.line||1,c
108olumn:n&&n.column||1,offset:n&&n.offset||0},i={},s=[],a=[],o=[],l={attempt:f(function(e,t){m(e,t.from)}),check:f(p),consume:function(e){nU(e)?(r.line++,r.column=1,r.offset+=-3===e?2:1,g()):-1!==e&&(r.column++,r.offset++),r._bufferIndex<0?r._index++:(r._bufferIndex++,r._bufferIndex===a[r._index].length&&(r._bufferIndex=-1,r._index++)),u.previous=e},enter:function(e,t){let n=t||{};return n.type=e,n.start=h(),u.events.push(["enter",n,u]),o.push(n),n},exit:function(e){let t=o.pop();return t.end=h(),u.events.push(["exit",t,u]),t},interrupt:f(p,{interrupt:!0})},u={code:null,containerState:{},defineSkip:function(e){i[e.line]=e.column,g()},events:[],now:h,parser:e,previous:null,sliceSerialize:function(e,t){return function(e,t){let n,r=-1,i=[];for(;++r<e.length;){let s,a=e[r];if("string"==typeof a)s=a;else switch(a){case -5:s="\r";break;case -4:s="\n";break;case -3:s="\r\n";break;case -2:s=t?" ":" ";break;case -1:if(!t&&n)continue;s=" ";break;default:s=String.fromCharCode(a)}n=-2===a,i.push(s)}return i.join("")}(d(e),t)},sliceStream:d,write:function(e){return(a=rl(a,e),function(){let e;for(;r._index<a.length;){let n=a[r._index];if("string"==typeof n)for(e=r._index,r._bufferIndex<0&&(r._bufferIndex=0);r._index===e&&r._bufferIndex<n.length;){var t;t=n.charCodeAt(r._bufferIndex),c=c(t)}else c=c(n)}}(),null!==a[a.length-1])?[]:(m(t,0),u.events=ru(s,u.events,u),u.events)}},c=t.tokenize.call(u,l);return t.resolveAll&&s.push(t),u;function d(e){return function(e,t){let n,r=t.start._index,i=t.start._bufferIndex,s=t.end._index,a=t.end._bufferIndex;if(r===s)n=[e[r].slice(i,a)];else{if(n=e.slice(r,s),i>-1){let e=n[0];"string"==typeof e?n[0]=e.slice(i):n.shift()}a>0&&n.push(e[s].slice(0,a))}return n}(a,e)}function h(){let{_bufferIndex:e,_index:t,line:n,column:i,offset:s}=r;return{_bufferIndex:e,_index:t,line:n,column:i,offset:s}}function p(e,t){t.restore()}function f(e,t){return function(n,i,s){var a;let c,d,p,f;return Array.isArray(n)?m(n):"tokenize"in n?m([n]):(a=n,function(e){let t=null!==e&&a[e],n=null!==e&&a.null;return m([...Array.isArray(t)?t:t?[t]:[],...Array.isArray(n)?n:n?[n]:[]])(e)});function m(e){return(c=e,d=0,0===e.length)?s:y(e[d])}function y(e){return function(n){return(f=function(){let e=h(),t=u.previous,n=u.currentConstruct,i=u.events.length,s=Array.from(o);return{from:i,restore:function(){r=e,u.previous=t,u.currentConstruct=n,u.events.length=i,o=s,g()}}}(),p=e,e.partial||(u.currentConstruct=e),e.name&&u.parser.constructs.disable.null.includes(e.name))?b(n):e.tokenize.call(t?Object.assign(Object.create(u),t):u,l,v,b)(n)}}function v(t){return e(p,f),i}function b(e){return(f.restore(),++d<c.length)?y(c[d]):s}}}function m(e,t){e.resolveAll&&!s.includes(e)&&s.push(e),e.resolve&&ro(u.events,t,u.events.length-t,e.resolve(u.events.slice(t),u)),e.resolveTo&&(u.events=e.resolveTo(u.events,u))}function g(){r.line in i&&r.column<2&&(r.column=i[r.line],r.offset+=i[r.line]-1)}}(t,e,n)}}})(i).document().write((a=1,o="",l=!0,function(e,t,n){let r,i,u,c,d,h=[];for(e=o+("string"==typeof e?e.toString():new TextDecoder(t||void 0).decode(e)),u=0,o="",l&&(65279===e.charCodeAt(0)&&u++,l=void 0);u<e.length;){if(oC.lastIndex=u,c=(r=oC.exec(e))&&void 0!==r.index?r.index:e.length,d=e.charCodeAt(c),!r){o=e.slice(u);break}if(10===d&&u===c&&s)h.push(-3),s=void 0;else switch(s&&(h.push(-5),s=void 0),u<c&&(h.push(e.slice(u,c)),a+=c-u),d){case 0:h.push(65533),a++;break;case 9:for(i=4*Math.ceil(a/4),h.push(-2);a++<i;)h.push(-1);break;case 10:h.push(-4),a=1;break;default:s=!0,a=1}u=c+1}return n&&(s&&h.push(-5),o&&h.push(o),h.push(null)),h})(n,r,!0))))}}function oj(e){let t=[],n=-1,r=0,i=0;for(;++n<e.length;){let s=e.charCodeAt(n),a="";if(37===s&&nL(e.charCodeAt(n+1))&&nL(e.charCodeAt(n+2)))i=2;else if(s<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(s))||(a=String.fromCharCode(s));else if(s>55295&&s<57344){let t=e.charCodeAt(n+1);s<56320&&t>56319&&t<57344?(a=String.fromCharCode(s,t),i=1):a="�"}else a=String.fromCharCode(s);a&&(t.push(e.slice(r,n),encodeURIComponent(a)),r=n+i+1,a=""),i&&(n+=i,i=0)}return t.join("")+e.slice(r)}function oz(e,t){let n=[{type:"text",value:"â©"}];return t>1&&n.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(t)}]}),n}function oF(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}function oB(e,t){let n=t.referenceType,r="]";if("collapsed"===n?r+="[]":"full"===n&&(r+="["+(t.label||t.identifier)+"]"),"imageReference"===t.type)return[{type:"text",value:"!["+t.alt+r}];let i=e.all(t),s=i[0];s&&"text"===s.type?s.value="["+s.value:i.unshift({type:"text",value:"["});let a=i[i.length-1];return a&&"text"===a.type?a.value+=r:i.push({type:"text",value:r}),i}function o$(e){let t=e.spread;return null==t?e.children.length>1:t}function oU(e,t,n){let r=0,i=e.length;if(t){let t=e.codePointAt(r);for(;9===t||32===t;)r++,t=e.codePointAt(r)}if(n){let t=e.codePointAt(i-1);for(;9===t||32===t;)i--,t=e.codePointAt(i-1)}return i>r?e.slice(r,i):""}let oH={blockquote:function(e,t){let n={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(t),!0)};return e.patch(t,n),e.applyData(t,n)},break:function(e,t){let n={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,n),[e.applyData(t,n),{type:"text",value:"\n"}]},code:function(e,t){let n=t.value?t.value+"\n":"",r={},i=t.lang?t.lang.split(/\s+/):[];i.length>0&&(r.className=["language-"+i[0]]);let s={type:"element",tagName:"code",properties:r,children:[{type:"text",value:n}]};return t.meta&&(s.data={meta:t.meta}),e.patch(t,s),s={type:"element",tagName:"pre",properties:{},children:[s=e.applyData(t,s)]},e.patch(t,s),s},delete:function(e,t){let n={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},emphasis:function(e,t){let n={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}
108,footnoteReference:function(e,t){let n,r="string"==typeof e.options.clobberPrefix?e.options.clobberPrefix:"user-content-",i=String(t.identifier).toUpperCase(),s=oj(i.toLowerCase()),a=e.footnoteOrder.indexOf(i),o=e.footnoteCounts.get(i);void 0===o?(o=0,e.footnoteOrder.push(i),n=e.footnoteOrder.length):n=a+1,o+=1,e.footnoteCounts.set(i,o);let l={type:"element",tagName:"a",properties:{href:"#"+r+"fn-"+s,id:r+"fnref-"+s+(o>1?"-"+o:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(n)}]};e.patch(t,l);let u={type:"element",tagName:"sup",properties:{},children:[l]};return e.patch(t,u),e.applyData(t,u)},heading:function(e,t){let n={type:"element",tagName:"h"+t.depth,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},html:function(e,t){if(e.options.allowDangerousHtml){let n={type:"raw",value:t.value};return e.patch(t,n),e.applyData(t,n)}},imageReference:function(e,t){let n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return oB(e,t);let i={src:oj(r.url||""),alt:t.alt};null!==r.title&&void 0!==r.title&&(i.title=r.title);let s={type:"element",tagName:"img",properties:i,children:[]};return e.patch(t,s),e.applyData(t,s)},image:function(e,t){let n={src:oj(t.url)};null!==t.alt&&void 0!==t.alt&&(n.alt=t.alt),null!==t.title&&void 0!==t.title&&(n.title=t.title);let r={type:"element",tagName:"img",properties:n,children:[]};return e.patch(t,r),e.applyData(t,r)},inlineCode:function(e,t){let n={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,n);let r={type:"element",tagName:"code",properties:{},children:[n]};return e.patch(t,r),e.applyData(t,r)},linkReference:function(e,t){let n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return oB(e,t);let i={href:oj(r.url||"")};null!==r.title&&void 0!==r.title&&(i.title=r.title);let s={type:"element",tagName:"a",properties:i,children:e.all(t)};return e.patch(t,s),e.applyData(t,s)},link:function(e,t){let n={href:oj(t.url)};null!==t.title&&void 0!==t.title&&(n.title=t.title);let r={type:"element",tagName:"a",properties:n,children:e.all(t)};return e.patch(t,r),e.applyData(t,r)},listItem:function(e,t,n){let r=e.all(t),i=n?function(e){let t=!1;if("list"===e.type){t=e.spread||!1;let n=e.children,r=-1;for(;!t&&++r<n.length;)t=o$(n[r])}return t}(n):o$(t),s={},a=[];if("boolean"==typeof t.checked){let e,n=r[0];n&&"element"===n.type&&"p"===n.tagName?e=n:(e={type:"element",tagName:"p",properties:{},children:[]},r.unshift(e)),e.children.length>0&&e.children.unshift({type:"text",value:" "}),e.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),s.className=["task-list-item"]}let o=-1;for(;++o<r.length;){let e=r[o];(i||0!==o||"element"!==e.type||"p"!==e.tagName)&&a.push({type:"text",value:"\n"}),"element"!==e.type||"p"!==e.tagName||i?a.push(e):a.push(...e.children)}let l=r[r.length-1];l&&(i||"element"!==l.type||"p"!==l.tagName)&&a.push({type:"text",value:"\n"});let u={type:"element",tagName:"li",properties:s,children:a};return e.patch(t,u),e.applyData(t,u)},list:function(e,t){let n={},r=e.all(t),i=-1;for("number"==typeof t.start&&1!==t.start&&(n.start=t.start);++i<r.length;){let e=r[i];if("element"===e.type&&"li"===e.tagName&&e.properties&&Array.isArray(e.properties.className)&&e.properties.className.includes("task-list-item")){n.className=["contains-task-list"];break}}let s={type:"element",tagName:t.ordered?"ol":"ul",properties:n,children:e.wrap(r,!0)};return e.patch(t,s),e.applyData(t,s)},paragraph:function(e,t){let n={type:"element",tagName:"p",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},root:function(e,t){let n={type:"root",children:e.wrap(e.all(t))};return e.patch(t,n),e.applyData(t,n)},strong:function(e,t){let n={type:"element",tagName:"strong",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},table:function(e,t){let n=e.all(t),r=n.shift(),i=[];if(r){let n={type:"element",tagName:"thead",properties:{},children:e.wrap([r],!0)};e.patch(t.children[0],n),i.push(n)}if(n.length>0){let r={type:"element",tagName:"tbody",properties:{},children:e.wrap(n,!0)},s=na(t.children[1]),a=ns(t.children[t.children.length-1]);s&&a&&(r.position={start:s,end:a}),i.push(r)}let s={type:"element",tagName:"table",properties:{}
108,children:e.wrap(i,!0)};return e.patch(t,s),e.applyData(t,s)},tableCell:function(e,t){let n={type:"element",tagName:"td",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},tableRow:function(e,t,n){let r=n?n.children:void 0,i=0===(r?r.indexOf(t):1)?"th":"td",s=n&&"table"===n.type?n.align:void 0,a=s?s.length:t.children.length,o=-1,l=[];for(;++o<a;){let n=t.children[o],r={},a=s?s[o]:void 0;a&&(r.align=a);let u={type:"element",tagName:i,properties:r,children:[]};n&&(u.children=e.all(n),e.patch(n,u),u=e.applyData(n,u)),l.push(u)}let u={type:"element",tagName:"tr",properties:{},children:e.wrap(l,!0)};return e.patch(t,u),e.applyData(t,u)},text:function(e,t){let n={type:"text",value:function(e){let t=String(e),n=/\r?\n|\r/g,r=n.exec(t),i=0,s=[];for(;r;)s.push(oU(t.slice(i,r.index),i>0,!0),r[0]),i=r.index+r[0].length,r=n.exec(t);return s.push(oU(t.slice(i),i>0,!1)),s.join("")}(String(t.value))};return e.patch(t,n),e.applyData(t,n)},thematicBreak:function(e,t){let n={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,n),e.applyData(t,n)},toml:oG,yaml:oG,definition:oG,footnoteDefinition:oG};function oG(){}let oY={}.hasOwnProperty,oZ={};function oV(e,t){e.position&&(t.position=nl(e))}function oW(e,t){let n=t;if(e&&e.data){let t=e.data.hName,r=e.data.hChildren,i=e.data.hProperties;"string"==typeof t&&("element"===n.type?n.tagName=t:n={type:"element",tagName:t,properties:{},children:"children"in n?n.children:[n]}),"element"===n.type&&i&&Object.assign(n.properties,ev(i)),"children"in n&&n.children&&null!=r&&(n.children=r)}return n}function oq(e,t){let n=[],r=-1;for(t&&n.push({type:"text",value:"\n"});++r<e.length;)r&&n.push({type:"text",value:"\n"}),n.push(e[r]);return t&&e.length>0&&n.push({type:"text",value:"\n"}),n}function oK(e){let t=0,n=e.charCodeAt(t);for(;9===n||32===n;)t++,n=e.charCodeAt(t);return e.slice(t)}function oX(e,t){let n=function(e,t){let n=t||oZ,r=new Map,i=new Map,s={all:function(e){let t=[];if("children"in e){let n=e.children,r=-1;for(;++r<n.length;){let i=s.one(n[r],e);if(i){if(r&&"break"===n[r-1].type&&(Array.isArray(i)||"text"!==i.type||(i.value=oK(i.value)),!Array.isArray(i)&&"element"===i.type)){let e=i.children[0];e&&"text"===e.type&&(e.value=oK(e.value))}Array.isArray(i)?t.push(...i):t.push(i)}}}return t},applyData:oW,definitionById:r,footnoteById:i,footnoteCounts:new Map,footnoteOrder:[],handlers:{...oH,...n.handlers},one:function(e,t){let n=e.type,r=s.handlers[n];if(oY.call(s.handlers,n)&&r)return r(s,e,t);if(s.options.passThrough&&s.options.passThrough.includes(n)){if("children"in e){let{children:t,...n}=e,r=ev(n);return r.children=s.all(e),r}return ev(e)}return(s.options.unknownHandler||function(e,t){let n=t.data||{},r="value"in t&&!(oY.call(n,"hProperties")||oY.call(n,"hChildren"))?{type:"text",value:t.value}:{type:"element",tagName:"div",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)})(s,e,t)},options:n,patch:oV,wrap:oq};return w(e,function(e){if("definition"===e.type||"footnoteDefinition"===e.type){let t="definition"===e.type?r:i,n=String(e.identifier).toUpperCase();t.has(n)||t.set(n,e)}}),s}(e,t),r=n.one(e,void 0),i=function(e){let t="string"==typeof e.options.clobberPrefix?e.options.clobberPrefix:"user-content-",n=e.options.footnoteBackContent||oz,r=e.options.footnoteBackLabel||oF,i=e.options.footnoteLabel||"Footnotes",s=e.options.footnoteLabelTagName||"h2",a=e.options.footnoteLabelProperties||{className:["sr-only"]},o=[],l=-1;for(;++l<e.footnoteOrder.length;){let i=e.footnoteById.get(e.footnoteOrder[l]);if(!i)continue;let s=e.all(i),a=String(i.identifier).toUpperCase(),u=oj(a.toLowerCase()),c=0,d=[],h=e.footnoteCounts.get(a);for(;void 0!==h&&++c<=h;){d.length>0&&d.push({type:"text",value:" "});let e="string"==typeof n?n:n(l,c);"string"==typeof e&&(e={type:"text",value:e}),d.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+u+(c>1?"-"+c:""),dataFootnoteBackref:"",ariaLabel:"string"==typeof r?r:r(l,c),className:["data-footnote-backref"]},children:Array.isArray(e)?e:[e]})}let p=s[s.length-1];if(p&&"element"===p.type&&"p"===p.tagName){let e=p.children[p.children.length-1];e&&"text"===e.type?e.value+=" ":p.children.push({type:"text",value:" "}),p.children.push(...d)}else s.push(...d);let f={type:"element",tagName:"li",properties:{id:t+"fn-"+u},children:e.wrap(s,!0)};e.patch(i,f),o.push(f)}if(0!==o.length)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:s,properties:{...ev(a),id:"footnote-label"},children:[{type:"text",value:i}]},{type:"text",value:"\n"},{type:"element",tagName:"ol",properties:{},children:e.wrap(o,!0)}
108,{type:"text",value:"\n"}]}}(n),s=Array.isArray(r)?{type:"root",children:r}:r||{type:"root",children:[]};return i&&s.children.push({type:"text",value:"\n"},i),s}function oQ(e,t){return e&&"run"in e?async function(n,r){let i=oX(n,{file:r,...t});await e.run(i,r)}:function(n,r){return oX(n,{file:r,...e||t})}}function oJ(e){if(e)throw e}var o0=n(10892);function o1(e){if("object"!=typeof e||null===e)return!1;let t=Object.getPrototypeOf(e);return(null===t||t===Object.prototype||null===Object.getPrototypeOf(t))&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}let o2={basename:function(e,t){let n;if(void 0!==t&&"string"!=typeof t)throw TypeError('"ext" argument must be a string');o3(e);let r=0,i=-1,s=e.length;if(void 0===t||0===t.length||t.length>e.length){for(;s--;)if(47===e.codePointAt(s)){if(n){r=s+1;break}}else i<0&&(n=!0,i=s+1);return i<0?"":e.slice(r,i)}if(t===e)return"";let a=-1,o=t.length-1;for(;s--;)if(47===e.codePointAt(s)){if(n){r=s+1;break}}else a<0&&(n=!0,a=s+1),o>-1&&(e.codePointAt(s)===t.codePointAt(o--)?o<0&&(i=s):(o=-1,i=a));return r===i?i=a:i<0&&(i=e.length),e.slice(r,i)},dirname:function(e){let t;if(o3(e),0===e.length)return".";let n=-1,r=e.length;for(;--r;)if(47===e.codePointAt(r)){if(t){n=r;break}}else t||(t=!0);return n<0?47===e.codePointAt(0)?"/":".":1===n&&47===e.codePointAt(0)?"//":e.slice(0,n)},extname:function(e){let t;o3(e);let n=e.length,r=-1,i=0,s=-1,a=0;for(;n--;){let o=e.codePointAt(n);if(47===o){if(t){i=n+1;break}continue}r<0&&(t=!0,r=n+1),46===o?s<0?s=n:1!==a&&(a=1):s>-1&&(a=-1)}return s<0||r<0||0===a||1===a&&s===r-1&&s===i+1?"":e.slice(s,r)},join:function(...e){let t,n=-1;for(;++n<e.length;)o3(e[n]),e[n]&&(t=void 0===t?e[n]:t+"/"+e[n]);return void 0===t?".":function(e){o3(e);let t=47===e.codePointAt(0),n=function(e,t){let n,r,i="",s=0,a=-1,o=0,l=-1;for(;++l<=e.length;){if(l<e.length)n=e.codePointAt(l);else if(47===n)break;else n=47;if(47===n){if(a===l-1||1===o);else if(a!==l-1&&2===o){if(i.length<2||2!==s||46!==i.codePointAt(i.length-1)||46!==i.codePointAt(i.length-2)){if(i.length>2){if((r=i.lastIndexOf("/"))!==i.length-1){r<0?(i="",s=0):s=(i=i.slice(0,r)).length-1-i.lastIndexOf("/"),a=l,o=0;continue}}else if(i.length>0){i="",s=0,a=l,o=0;continue}}t&&(i=i.length>0?i+"/..":"..",s=2)}else i.length>0?i+="/"+e.slice(a+1,l):i=e.slice(a+1,l),s=l-a-1;a=l,o=0}else 46===n&&o>-1?o++:o=-1}return i}(e,!t);return 0!==n.length||t||(n="."),n.length>0&&47===e.codePointAt(e.length-1)&&(n+="/"),t?"/"+n:n}(t)},sep:"/"};function o3(e){if("string"!=typeof e)throw TypeError("Path must be a string. Received "+JSON.stringify(e))}let o4={cwd:function(){return"/"}};function o9(e){return!!(null!==e&&"object"==typeof e&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&void 0===e.auth)}let o5=["history","path","basename","stem","extname","dirname"];class o6{constructor(e){let t,n;t=e?o9(e)?{path:e}:"string"==typeof e||function(e){return!!(e&&"object"==typeof e&&"byteLength"in e&&"byteOffset"in e)}(e)?{value:e}:e:{},this.cwd="cwd"in t?"":o4.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let r=-1;for(;++r<o5.length;){let e=o5[r];e in t&&void 0!==t[e]&&null!==t[e]&&(this[e]="history"===e?[...t[e]]:t[e])}for(n in t)o5.includes(n)||(this[n]=t[n])}get basename(){return"string"==typeof this.path?o2.basename(this.path):void 0}set basename(e){o7(e,"basename"),o8(e,"basename"),this.path=o2.join(this.dirname||"",e)}get dirname(){return"string"==typeof this.path?o2.dirname(this.path):void 0}set dirname(e){le(this.basename,"dirname"),this.path=o2.join(e||"",this.basename)}get extname(){return"string"==typeof this.path?o2.extname(this.path):void 0}set extname(e){if(o8(e,"extname"),le(this.dirname,"extname"),e){if(46!==e.codePointAt(0))throw Error("`extname` must start with `.`");if(e.includes(".",1))throw Error("`extname` cannot contain multiple dots")}this.path=o2.join(this.dirname,this.stem+(e||""))}get path(){return this.history[this.history.length-1]}set path(e){o9(e)&&(e=function(e){if("string"==typeof e)e=new URL(e);else if(!o9(e)){let t=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("file:"!==e.protocol){let e=TypeError("The URL must be of scheme file");throw e.code="ERR_INVALID_URL_SCHEME",e}return function(e){if(""!==e.hostname){let e=TypeError('File URL host must be "localhost" or empty on darwin');throw e.code="ERR_INVALID_FILE_URL_HOST",e}let t=e.pathname,n=-1;for(;++n<t.length;)if(37===t.codePointAt(n)&&50===t.codePointAt(n+1)){let e=t.codePointAt(n+2);if(70===e||102===e){let e=TypeError("File URL path must not include encoded / characters");throw e.code="ERR_INVALID_FILE_URL_PATH",e}}return decodeURIComponent(t)}(e)}(e)),o7(e,"path"),this.path!==e&&this.history.push(e)}get stem(){return"string"==typeof this.path?o2.basename(this.path,this.extname):void 0}set stem(e){o7(e,"stem"),o8(e,"stem"),this.path=o2.join(this.dirname||"",e+(this.extname||""))}fail(e,t,n){let r=this.message(e,t,n);throw r.fatal=!0,r}info(e,t,n){let r=this.message(e,t,n);return r.fatal=void 0,r}message(e,t,n){let r=new aA(e,t,n);return this.path&&(r.name=this.path+":"+r.name,r.file=this.path),r.fatal=!1,this.messages.push(r),r}toString(e){return void 0===this.value?"":"string"==typeof this.value?this.value:new TextDecoder(e||void 0).decode(this.value)}}function o8(e,t){if(e&&e.includes(o2.sep))throw Error("`"+t+"` cannot be a path: did not expect `"+o2.sep+"`")}function o7(e,t){if(!e)throw Error("`"+t+"` cannot be empty")}function le(e,t){if(!e)throw Error("Setting `"+t+"` requires `path` to be set too")}let lt=function(e){let t=this.constructor.prototype,n=t[e],r=function(){return n.apply(r,arguments)};return Object.setPrototypeOf(r,t),r},ln={}.hasOwnProperty;class lr extends lt{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=function(){let e=[],t={run:function(...t){let n=-1,r=t.pop();if("function"!=typeof r)throw TypeError("Expected function as last argument, not "+r);!function i(s,...a){let o=e[++n],l=-1;if(s)return void r(s);for(;++l<t.length;)(null===a[l]||void 0===a[l])&&(a[l]=t[l]);t=a,o?(function(e,t){let n;return function(...t){let s,a=e.length>t.length;a&&t.push(r);
108try{s=e.apply(this,t)}catch(e){if(a&&n)throw e;return r(e)}a||(s&&s.then&&"function"==typeof s.then?s.then(i,r):s instanceof Error?r(s):i(s))};function r(e,...i){n||(n=!0,t(e,...i))}function i(e){r(null,e)}})(o,i)(...a):r(null,...a)}(null,...t)},use:function(n){if("function"!=typeof n)throw TypeError("Expected `middelware` to be a function, not "+n);return e.push(n),t}};return t}()}copy(){let e=new lr,t=-1;for(;++t<this.attachers.length;){let n=this.attachers[t];e.use(...n)}return e.data(o0(!0,{},this.namespace)),e}data(e,t){return"string"==typeof e?2==arguments.length?(lo("data",this.frozen),this.namespace[e]=t,this):ln.call(this.namespace,e)&&this.namespace[e]||void 0:e?(lo("data",this.frozen),this.namespace=e,this):this.namespace}freeze(){if(this.frozen)return this;for(;++this.freezeIndex<this.attachers.length;){let[e,...t]=this.attachers[this.freezeIndex];if(!1===t[0])continue;!0===t[0]&&(t[0]=void 0);let n=e.call(this,...t);"function"==typeof n&&this.transformers.use(n)}return this.frozen=!0,this.freezeIndex=1/0,this}parse(e){this.freeze();let t=lc(e),n=this.parser||this.Parser;return ls("parse",n),n(String(t),t)}process(e,t){let n=this;return this.freeze(),ls("process",this.parser||this.Parser),la("process",this.compiler||this.Compiler),t?r(void 0,t):new Promise(r);function r(r,i){let s=lc(e),a=n.parse(s);function o(e,n){e||!n?i(e):r?r(n):t(void 0,n)}n.run(a,s,function(e,t,r){var i,s;if(e||!t||!r)return o(e);let a=n.stringify(t,r);"string"==typeof(i=a)||(s=i)&&"object"==typeof s&&"byteLength"in s&&"byteOffset"in s?r.value=a:r.result=a,o(e,r)})}}processSync(e){let t,n=!1;return this.freeze(),ls("processSync",this.parser||this.Parser),la("processSync",this.compiler||this.Compiler),this.process(e,function(e,r){n=!0,oJ(e),t=r}),lu("processSync","process",n),t}run(e,t,n){ll(e),this.freeze();let r=this.transformers;return n||"function"!=typeof t||(n=t,t=void 0),n?i(void 0,n):new Promise(i);function i(i,s){let a=lc(t);r.run(e,a,function(t,r,a){let o=r||e;t?s(t):i?i(o):n(void 0,o,a)})}}runSync(e,t){let n,r=!1;return this.run(e,t,function(e,t){oJ(e),n=t,r=!0}),lu("runSync","run",r),n}stringify(e,t){this.freeze();let n=lc(t),r=this.compiler||this.Compiler;return la("stringify",r),ll(e),r(e,n)}use(e,...t){let n=this.attachers,r=this.namespace;if(lo("use",this.frozen),null==e);else if("function"==typeof e)a(e,t);else if("object"==typeof e)Array.isArray(e)?s(e):i(e);else throw TypeError("Expected usable value, not `"+e+"`");return this;function i(e){if(!("plugins"in e)&&!("settings"in e))throw 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");s(e.plugins),e.settings&&(r.settings=o0(!0,r.settings,e.settings))}function s(e){let t=-1;if(null==e);else if(Array.isArray(e))for(;++t<e.length;){var n=e[t];if("function"==typeof n)a(n,[]);else if("object"==typeof n)if(Array.isArray(n)){let[e,...t]=n;a(e,t)}else i(n);else throw TypeError("Expected usable value, not `"+n+"`")}else throw TypeError("Expected a list of plugins, not `"+e+"`")}function a(e,t){let r=-1,i=-1;for(;++r<n.length;)if(n[r][0]===e){i=r;break}if(-1===i)n.push([e,...t]);else if(t.length>0){let[r,...s]=t,a=n[i][1];o1(a)&&o1(r)&&(r=o0(!0,a,r)),n[i]=[e,r,...s]}}}}let li=new lr().freeze();function ls(e,t){if("function"!=typeof t)throw TypeError("Cannot `"+e+"` without `parser`")}function la(e,t){if("function"!=typeof t)throw TypeError("Cannot `"+e+"` without `compiler`")}function lo(e,t){if(t)throw Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function ll(e){if(!o1(e)||"string"!=typeof e.type)throw TypeError("Expected node, got `"+e+"`")}function lu(e,t,n){if(!n)throw Error("`"+e+"` finished async. Use `"+t+"` instead")}function lc(e){var t;return(t=e)&&"object"==typeof t&&"message"in t&&"messages"in t?e:new o6(e)}var ld=n(69293),lh=(...e)=>ac((0,sc.$)(e)),lp=(e,t,n)=>{let r="string"==typeof t?new Blob([t],{type:n}):t,i=URL.createObjectURL(r),s=document.createElement("a");s.href=i,s.download=e,document.body.appendChild(s),s.click(),document.body.removeChild(s),URL.revokeObjectURL(i)},lf=(0,E.createContext)({code:""}),lm=()=>(0,E.useContext)(lf),lg=({onCopy:e,onError:t,timeout:n=2e3,children:r,className:i,code:s,...a})=>{let[o,l]=(0,E.useState)(!1),u=(0,E.useRef)(0),{code:c}=lm(),{isAnimating:d}=(0,E.useContext)(uv),h=null!=s?s:c,p=async()=>{var r;if("undefined"==typeof window||!(null!=(r=null==navigator?void 0:navigator.clipboard)&&r.writeText)){null==t||t(Error("Clipboard API not available"));return}try{o||(await navigator.clipboard.writeText(h),l(!0),null==e||e(),u.current=window.setTimeout(()=>l(!1),n))}catch(e){null==t||t(e)}};return(0,E.useEffect)(()=>()=>{window.clearTimeout(u.current)},[]),(0,ad.jsx)("button",{className:lh("cursor-pointer p-1 text-muted-foreground transition-all hover:text-foreground disabled:cursor-not-allowed disabled:opacity-50",i),"data-streamdown":"code-block-copy-button",disabled:d,onClick:p,title:"Copy Code",type:"button",...a,children:null!=r?r:(0,ad.jsx)(o?st:sn,{size:14})})},ly={"1c":"1c","1c-query":"1cq",abap:"abap","actionscript-3":"as",ada:"ada",adoc:"adoc","angular-html":"html","angular-ts":"ts",apache:"conf",apex:"cls",apl:"apl",applescript:"applescript",ara:"ara",asciidoc:"adoc",asm:"asm",astro:"astro",awk:"awk",ballerina:"bal",bash:"sh",bat:"bat",batch:"bat",be:"be",beancount:"beancount",berry:"berry",bibtex:"bib",bicep:"bicep",blade:"blade.php",bsl:"bsl",c:"c","c#":"cs","c++":"cpp",cadence:"cdc",cairo:"cairo",cdc:"cdc",clarity:"clar",clj:"clj",clojure:"clj","closure-templates":"soy",cmake:"cmake",cmd:"cmd",cobol:"cob",codeowners:"CODEOWNERS",codeql:"ql",coffee:"coffee",coffeescript:"coffee","common-lisp":"lisp",console:"sh",coq:"v",cpp:"cpp",cql:"cql",crystal:"cr",cs:"cs",csharp:"cs",css:"css",csv:"csv",cue:"cue",cypher:"cql",d:"d",dart:"dart",da
108x:"dax",desktop:"desktop",diff:"diff",docker:"dockerfile",dockerfile:"dockerfile",dotenv:"env","dream-maker":"dm",edge:"edge",elisp:"el",elixir:"ex",elm:"elm","emacs-lisp":"el",erb:"erb",erl:"erl",erlang:"erl",f:"f","f#":"fs",f03:"f03",f08:"f08",f18:"f18",f77:"f77",f90:"f90",f95:"f95",fennel:"fnl",fish:"fish",fluent:"ftl",for:"for","fortran-fixed-form":"f","fortran-free-form":"f90",fs:"fs",fsharp:"fs",fsl:"fsl",ftl:"ftl",gdresource:"tres",gdscript:"gd",gdshader:"gdshader",genie:"gs",gherkin:"feature","git-commit":"gitcommit","git-rebase":"gitrebase",gjs:"js",gleam:"gleam","glimmer-js":"js","glimmer-ts":"ts",glsl:"glsl",gnuplot:"plt",go:"go",gql:"gql",graphql:"graphql",groovy:"groovy",gts:"gts",hack:"hack",haml:"haml",handlebars:"hbs",haskell:"hs",haxe:"hx",hbs:"hbs",hcl:"hcl",hjson:"hjson",hlsl:"hlsl",hs:"hs",html:"html","html-derivative":"html",http:"http",hxml:"hxml",hy:"hy",imba:"imba",ini:"ini",jade:"jade",java:"java",javascript:"js",jinja:"jinja",jison:"jison",jl:"jl",js:"js",json:"json",json5:"json5",jsonc:"jsonc",jsonl:"jsonl",jsonnet:"jsonnet",jssm:"jssm",jsx:"jsx",julia:"jl",kotlin:"kt",kql:"kql",kt:"kt",kts:"kts",kusto:"kql",latex:"tex",lean:"lean",lean4:"lean",less:"less",liquid:"liquid",lisp:"lisp",lit:"lit",llvm:"ll",log:"log",logo:"logo",lua:"lua",luau:"luau",make:"mak",makefile:"mak",markdown:"md",marko:"marko",matlab:"m",md:"md",mdc:"mdc",mdx:"mdx",mediawiki:"wiki",mermaid:"mmd",mips:"s",mipsasm:"s",mmd:"mmd",mojo:"mojo",move:"move",nar:"nar",narrat:"narrat",nextflow:"nf",nf:"nf",nginx:"conf",nim:"nim",nix:"nix",nu:"nu",nushell:"nu",objc:"m","objective-c":"m","objective-cpp":"mm",ocaml:"ml",pascal:"pas",perl:"pl",perl6:"p6",php:"php",plsql:"pls",po:"po",polar:"polar",postcss:"pcss",pot:"pot",potx:"potx",powerquery:"pq",powershell:"ps1",prisma:"prisma",prolog:"pl",properties:"properties",proto:"proto",protobuf:"proto",ps:"ps",ps1:"ps1",pug:"pug",puppet:"pp",purescript:"purs",py:"py",python:"py",ql:"ql",qml:"qml",qmldir:"qmldir",qss:"qss",r:"r",racket:"rkt",raku:"raku",razor:"cshtml",rb:"rb",reg:"reg",regex:"regex",regexp:"regexp",rel:"rel",riscv:"s",rs:"rs",rst:"rst",ruby:"rb",rust:"rs",sas:"sas",sass:"sass",scala:"scala",scheme:"scm",scss:"scss",sdbl:"sdbl",sh:"sh",shader:"shader",shaderlab:"shader",shell:"sh",shellscript:"sh",shellsession:"sh",smalltalk:"st",solidity:"sol",soy:"soy",sparql:"rq",spl:"spl",splunk:"spl",sql:"sql","ssh-config":"config",stata:"do",styl:"styl",stylus:"styl",svelte:"svelte",swift:"swift","system-verilog":"sv",systemd:"service",talon:"talon",talonscript:"talon",tasl:"tasl",tcl:"tcl",templ:"templ",terraform:"tf",tex:"tex",tf:"tf",tfvars:"tfvars",toml:"toml",ts:"ts","ts-tags":"ts",tsp:"tsp",tsv:"tsv",tsx:"tsx",turtle:"ttl",twig:"twig",typ:"typ",typescript:"ts",typespec:"tsp",typst:"typ",v:"v",vala:"vala",vb:"vb",verilog:"v",vhdl:"vhdl",vim:"vim",viml:"vim",vimscript:"vim",vue:"vue","vue-html":"html","vue-vine":"vine",vy:"vy",vyper:"vy",wasm:"wasm",wenyan:"wy",wgsl:"wgsl",wiki:"wiki",wikitext:"wiki",wit:"wit",wl:"wl",wolfram:"wl",xml:"xml",xsl:"xsl",yaml:"yaml",yml:"yml",zenscript:"zs",zig:"zig",zsh:"zsh",æè¨:"wy"},lv=({onDownload:e,onError:t,language:n,children:r,className:i,code:s,...a})=>{let{code:o}=lm(),{isAnimating:l}=(0,E.useContext)(uv),u=null!=s?s:o,c=`file.${n&&n in ly?ly[n]:"txt"}`;return(0,ad.jsx)("button",{className:lh("cursor-pointer p-1 text-muted-foreground transition-all hover:text-foreground disabled:cursor-not-allowed disabled:opacity-50",i),"data-streamdown":"code-block-download-button",disabled:l,onClick:()=>{try{lp(c,u,"text/plain"),null==e||e()}catch(e){null==t||t(e)}},title:"Download file",type:"button",...a,children:null!=r?r:(0,ad.jsx)(sr,{size:14})})},lb=()=>(0,ad.jsxs)("div",{className:"w-full divide-y divide-border overflow-hidden rounded-xl border border-border",children:[(0,ad.jsx)("div",{className:"h-[46px] w-full bg-muted/80"}),(0,ad.jsx)("div",{className:"flex w-full items-center justify-center p-4",children:(0,ad.jsx)(si,{className:"size-4 animate-spin"})})]}),lE=/\.[^/.]+$/,lT=async e=>{let t={startOnLoad:!1,theme:"default",securityLevel:"strict",fontFamily:"monospace",suppressErrorRendering:!0,...e},r=(await Promise.all([n.e(4786),n.e(3874),n.e(8827)]).then(n.bind(n,18827))).default;return r.initialize(t),r},l_=({chart:e,children:t,className:n,onDownload:r,config:i,onError:s})=>{let[a,o]=(0,E.useState)(!1),l=(0,E.useRef)(null),{isAnimating:u}=(0,E.useContext)(uv),c=async t=>{try{if("mmd"===t){lp("diagram.mmd",e,"text/plain"),o(!1),null==r||r(t);return}let a=await lT(i),l=e.split("").reduce((e,t)=>
108(e<<5)-e+t.charCodeAt(0)|0,0),u=`mermaid-${Math.abs(l)}-${Date.now()}-${Math.random().toString(36).substring(2,9)}`,{svg:c}=await a.render(u,e);if(!c){null==s||s(Error("SVG not found. Please wait for the diagram to render."));return}if("svg"===t){lp("diagram.svg",c,"image/svg+xml"),o(!1),null==r||r(t);return}if("png"===t){var n;let e=await (n=c,new Promise((e,t)=>{let r="data:image/svg+xml;base64,"+btoa(unescape(encodeURIComponent(n))),i=new Image;i.crossOrigin="anonymous",i.onload=()=>{let n=document.createElement("canvas"),r=5*i.width,s=5*i.height;n.width=r,n.height=s;let a=n.getContext("2d");if(!a)return void t(Error("Failed to create 2D canvas context for PNG export"));a.drawImage(i,0,0,r,s),n.toBlob(n=>{if(!n)return void t(Error("Failed to create PNG blob"));e(n)},"image/png")},i.onerror=()=>t(Error("Failed to load SVG image")),i.src=r}));lp("diagram.png",e,"image/png"),null==r||r(t),o(!1);return}}catch(e){null==s||s(e)}};return(0,E.useEffect)(()=>{let e=e=>{l.current&&!l.current.contains(e.target)&&o(!1)};return document.addEventListener("mousedown",e),()=>{document.removeEventListener("mousedown",e)}},[]),(0,ad.jsxs)("div",{className:"relative",ref:l,children:[(0,ad.jsx)("button",{className:lh("cursor-pointer p-1 text-muted-foreground transition-all hover:text-foreground disabled:cursor-not-allowed disabled:opacity-50",n),disabled:u,onClick:()=>o(!a),title:"Download diagram",type:"button",children:null!=t?t:(0,ad.jsx)(sr,{size:14})}),a&&(0,ad.jsxs)("div",{className:"absolute top-full right-0 z-10 mt-1 min-w-[120px] overflow-hidden rounded-md border border-border bg-background shadow-lg",children:[(0,ad.jsx)("button",{className:"w-full px-3 py-2 text-left text-sm transition-colors hover:bg-muted/40",onClick:()=>c("svg"),title:"Download diagram as SVG",type:"button",children:"SVG"}),(0,ad.jsx)("button",{className:"w-full px-3 py-2 text-left text-sm transition-colors hover:bg-muted/40",onClick:()=>c("png"),title:"Download diagram as PNG",type:"button",children:"PNG"}),(0,ad.jsx)("button",{className:"w-full px-3 py-2 text-left text-sm transition-colors hover:bg-muted/40",onClick:()=>c("mmd"),title:"Download diagram as MMD",type:"button",children:"MMD"})]})]})},lA=0,lx=({chart:e,config:t,onFullscreen:n,onExit:r,className:i,...s})=>{let[a,o]=(0,E.useState)(!1),{isAnimating:l,controls:u}=(0,E.useContext)(uv),c=(()=>{if("boolean"==typeof u)return u;let e=u.mermaid;return!1!==e&&(!0===e||void 0===e||!1!==e.panZoom)})(),d=()=>{o(!a)};return(0,E.useEffect)(()=>{if(a){1===(lA+=1)&&(document.body.style.overflow="hidden");let e=e=>{"Escape"===e.key&&o(!1)};return document.addEventListener("keydown",e),()=>{document.removeEventListener("keydown",e),0===(lA=Math.max(0,lA-1))&&(document.body.style.overflow="")}}},[a]),(0,E.useEffect)(()=>{a?null==n||n():r&&r()},[a,n,r]),(0,ad.jsxs)(ad.Fragment,{children:[(0,ad.jsx)("button",{className:lh("cursor-pointer p-1 text-muted-foreground transition-all hover:text-foreground disabled:cursor-not-allowed disabled:opacity-50",i),disabled:l,onClick:d,title:"View fullscreen",type:"button",...s,children:(0,ad.jsx)(ss,{size:14})}),a&&(0,ad.jsxs)("div",{className:"fixed inset-0 z-50 flex items-center justify-center bg-background/95 backdrop-blur-sm",onClick:d,onKeyDown:e=>{"Escape"===e.key&&d()},role:"button",tabIndex:0,children:[(0,ad.jsx)("button",{className:"absolute top-4 right-4 z-10 rounded-md p-2 text-muted-foreground transition-all hover:bg-muted hover:text-foreground",onClick:d,title:"Exit fullscreen",type:"button",children:(0,ad.jsx)(sa,{size:20})}),(0,ad.jsx)("div",{className:"flex h-full w-full items-center justify-center p-4",onClick:e=>e.stopPropagation(),onKeyDown:e=>e.stopPropagation(),role:"presentation",children:(0,ad.jsx)(uA,{chart:e,className:"h-full w-full [&>div]:h-full [&>div]:overflow-hidden [&_svg]:h-auto [&_svg]:w-auto",config:t,fullscreen:!0,showControls:c})})]})]})},lk=e=>{var t,n;let r=[],i=[];for(let n of e.querySelectorAll("thead th"))r.push((null==(t=n.textContent)?void 0:t.trim())||"");for(let t of e.querySelectorAll("tbody tr")){let e=[];
108for(let r of t.querySelectorAll("td"))e.push((null==(n=r.textContent)?void 0:n.trim())||"");i.push(e)}return{headers:r,rows:i}},lS=e=>{let{headers:t,rows:n}=e,r=e=>{let t=!1,n=!1;for(let r=0;r<e.length;r+=1){let i=e[r];if('"'===i){t=!0,n=!0;break}(","===i||i===` 109`)&&(t=!0)}return t?n?`"${e.replace(/"/g,'""')}"`:`"${e}"`:e},i=Array(t.length>0?n.length+1:n.length),s=0;for(let e of(t.length>0&&(i[s]=t.map(r).join(","),s+=1),n))i[s]=e.map(r).join(","),s+=1;return i.join(` 110`)},lw=e=>{let t=!1;for(let n=0;n<e.length;n+=1){let r=e[n];if("\\"===r||"|"===r){t=!0;break}}if(!t)return e;let n=[];for(let t=0;t<e.length;t+=1){let r=e[t];"\\"===r?n.push("\\\\"):"|"===r?n.push("\\|"):n.push(r)}return n.join("")},lI=({children:e,className:t,onCopy:n,onError:r,timeout:i=2e3})=>{let[s,a]=(0,E.useState)(!1),[o,l]=(0,E.useState)(!1),u=(0,E.useRef)(null),c=(0,E.useRef)(0),{isAnimating:d}=(0,E.useContext)(uv),h=async e=>{var t,s;if("undefined"==typeof window||!(null!=(t=null==navigator?void 0:navigator.clipboard)&&t.write)){null==r||r(Error("Clipboard API not available"));return}try{let t=null==(s=u.current)?void 0:s.closest('[data-streamdown="table-wrapper"]'),o=null==t?void 0:t.querySelector("table");if(!o){null==r||r(Error("Table not found"));return}let d=lk(o),h="csv"===e?lS(d):(e=>{let{headers:t,rows:n}=e,r=e=>{let t=!1;for(let n=0;n<e.length;n+=1){let r=e[n];if(" "===r||r===` 111`||"\r"===r){t=!0;break}}if(!t)return e;let n=[];for(let t=0;t<e.length;t+=1){let r=e[t];" "===r?n.push("\\t"):r===` 112`?n.push("\\n"):"\r"===r?n.push("\\r"):n.push(r)}return n.join("")},i=Array(t.length>0?n.length+1:n.length),s=0;for(let e of(t.length>0&&(i[s]=t.map(r).join(" "),s+=1),n))i[s]=e.map(r).join(" "),s+=1;return i.join(` 113`)})(d),p=new ClipboardItem({"text/plain":new Blob([h],{type:"text/plain"}),"text/html":new Blob([o.outerHTML],{type:"text/html"})});await navigator.clipboard.write([p]),l(!0),a(!1),null==n||n(e),c.current=window.setTimeout(()=>l(!1),i)}catch(e){null==r||r(e)}};return(0,E.useEffect)(()=>{let e=e=>{u.current&&!u.current.contains(e.target)&&a(!1)};return document.addEventListener("mousedown",e),()=>{document.removeEventListener("mousedown",e),window.clearTimeout(c.current)}},[]),(0,ad.jsxs)("div",{className:"relative",ref:u,children:[(0,ad.jsx)("button",{className:lh("cursor-pointer p-1 text-muted-foreground transition-all hover:text-foreground disabled:cursor-not-allowed disabled:opacity-50",t),disabled:d,onClick:()=>a(!s),title:"Copy table",type:"button",children:null!=e?e:(0,ad.jsx)(o?st:sn,{size:14})}),s&&(0,ad.jsxs)("div",{className:"absolute top-full right-0 z-10 mt-1 min-w-[120px] overflow-hidden rounded-md border border-border bg-background shadow-lg",children:[(0,ad.jsx)("button",{className:"w-full px-3 py-2 text-left text-sm transition-colors hover:bg-muted/40",onClick:()=>h("csv"),title:"Copy table as CSV",type:"button",children:"CSV"}),(0,ad.jsx)("button",{className:"w-full px-3 py-2 text-left text-sm transition-colors hover:bg-muted/40",onClick:()=>h("tsv"),title:"Copy table as TSV",type:"button",children:"TSV"})]})]})},lC=({children:e,className:t,onDownload:n,onError:r})=>{let[i,s]=(0,E.useState)(!1),a=(0,E.useRef)(null),{isAnimating:o}=(0,E.useContext)(uv),l=e=>{var t;try{let i=null==(t=a.current)?void 0:t.closest('[data-streamdown="table-wrapper"]'),o=null==i?void 0:i.querySelector("table");if(!o){null==r||r(Error("Table not found"));return}let l=lk(o),u="csv"===e?lS(l):(e=>{let{headers:t,rows:n}=e;if(0===t.length)return"";let r=Array(n.length+2),i=0,s=t.map(e=>lw(e));r[i]=`| ${s.join(" | ")} |`,i+=1;let a=Array(t.length);for(let e=0;e<t.length;e+=1)a[e]="---";for(let e of(r[i]=`| ${a.join(" | ")} |`,i+=1,n))if(e.length<t.length){let n=Array(t.length);for(let r=0;r<t.length;r+=1)n[r]=r<e.length?lw(e[r]):"";r[i]=`| ${n.join(" | ")} |`,i+=1}else{let t=e.map(e=>lw(e));r[i]=`| ${t.join(" | ")} |`,i+=1}return r.join(` 114`)})(l);lp(`table.${"csv"===e?"csv":"md"}`,u,"csv"===e?"text/csv":"text/markdown"),s(!1),null==n||n(e)}catch(e){null==r||r(e)}};return(0,E.useEffect)(()=>{let e=e=>{a.current&&!a.current.contains(e.target)&&s(!1)};return document.addEventListener("mousedown",e),()=>{document.removeEventListener("mousedown",e)}},[]),(0,ad.jsxs)("div",{className:"relative",ref:a,children:[(0,ad.jsx)("button",{className:lh("cursor-pointer p-1 text-muted-foreground transition-all hover:text-foreground disabled:cursor-not-allowed disabled:opacity-50",t),disabled:o,onClick:()=>s(!i),title:"Download table",type:"button",children:null!=e?e:(0,ad.jsx)(sr,{size:14})}),i&&(0,ad.jsxs)("div",{className:"absolute top-full right-0 z-10 mt-1 min-w-[120px] overflow-hidden rounded-md border border-border bg-background shadow-lg",children:[(0,ad.jsx)("button",{className:"w-full px-3 py-2 text-left text-sm transition-colors hover:bg-muted/40",onClick:()=>l("csv"),title:"Download table as CSV",type:"button",children:"CSV"}),(0,ad.jsx)("button",{className:"w-full px-3 py-2 text-left text-sm transition-colors hover:bg-muted/40",onClick:()=>l("markdown"),title:"Download table as Markdown",type:"button",children:"Markdown"})]})]})},lN=({children:e,className:t,showControls:n,...r})=>(0,ad.jsxs)("div",{className:"my-4 flex flex-col space-y-2","data-streamdown":"table-wrapper",children:[n&&(0,ad.jsxs)("div",{className:"flex items-center justify-end gap-1",children:[(0,ad.jsx)(lI,{}),(0,ad.jsx)(lC,{})]}),(0,ad.jsx)("div",{className:"overflow-x-auto",children:(0,ad.jsx)("table",{className:lh("w-full border-collapse border border-border",t),"data-streamdown":"table",...r,children:e})})]}),lR=(0,E.lazy)(()=>n.e(468).then(n.bind(n,10468)).then(e=>({default:e.CodeBlock}))),lO=(0,E.lazy)(()=>n.e(1372).then(n.bind(n,51372)).then(e=>({default:e.Mermaid}))),lP=/language-([^\s]+)/;function lD(e,t){if(!(null!=e&&e.position||null!=t&&t.position))return!0;
114if(!(null!=e&&e.position&&null!=t&&t.position))return!1;let n=e.position.start,r=t.position.start,i=e.position.end,s=t.position.end;return(null==n?void 0:n.line)===(null==r?void 0:r.line)&&(null==n?void 0:n.column)===(null==r?void 0:r.column)&&(null==i?void 0:i.line)===(null==s?void 0:s.line)&&(null==i?void 0:i.column)===(null==s?void 0:s.column)}function lM(e,t){return e.className===t.className&&lD(e.node,t.node)}var lL=(e,t)=>"boolean"==typeof e?e:!1!==e[t],lj=(e,t)=>{if("boolean"==typeof e)return e;let n=e.mermaid;return!1!==n&&(!0===n||void 0===n||!1!==n[t])},lz=(0,E.memo)(({children:e,className:t,node:n,...r})=>(0,ad.jsx)("ol",{className:lh("list-inside list-decimal whitespace-normal",t),"data-streamdown":"ordered-list",...r,children:e}),(e,t)=>lM(e,t));lz.displayName="MarkdownOl";var lF=(0,E.memo)(({children:e,className:t,node:n,...r})=>(0,ad.jsx)("li",{className:lh("py-1 [&>p]:inline",t),"data-streamdown":"list-item",...r,children:e}),(e,t)=>e.className===t.className&&lD(e.node,t.node));lF.displayName="MarkdownLi";var lB=(0,E.memo)(({children:e,className:t,node:n,...r})=>(0,ad.jsx)("ul",{className:lh("list-inside list-disc whitespace-normal",t),"data-streamdown":"unordered-list",...r,children:e}),(e,t)=>lM(e,t));lB.displayName="MarkdownUl";var l$=(0,E.memo)(({className:e,node:t,...n})=>(0,ad.jsx)("hr",{className:lh("my-6 border-border",e),"data-streamdown":"horizontal-rule",...n}),(e,t)=>lM(e,t));l$.displayName="MarkdownHr";var lU=(0,E.memo)(({children:e,className:t,node:n,...r})=>(0,ad.jsx)("span",{className:lh("font-semibold",t),"data-streamdown":"strong",...r,children:e}),(e,t)=>lM(e,t));lU.displayName="MarkdownStrong";var lH=(0,E.memo)(({children:e,className:t,href:n,node:r,...i})=>(0,ad.jsx)("a",{className:lh("wrap-anywhere font-medium text-primary underline",t),"data-incomplete":"streamdown:incomplete-link"===n,"data-streamdown":"link",href:n,rel:"noreferrer",target:"_blank",...i,children:e}),(e,t)=>lM(e,t)&&e.href===t.href);lH.displayName="MarkdownA";var lG=(0,E.memo)(({children:e,className:t,node:n,...r})=>(0,ad.jsx)("h1",{className:lh("mt-6 mb-2 font-semibold text-3xl",t),"data-streamdown":"heading-1",...r,children:e}),(e,t)=>lM(e,t));lG.displayName="MarkdownH1";var lY=(0,E.memo)(({children:e,className:t,node:n,...r})=>(0,ad.jsx)("h2",{className:lh("mt-6 mb-2 font-semibold text-2xl",t),"data-streamdown":"heading-2",...r,children:e}),(e,t)=>lM(e,t));lY.displayName="MarkdownH2";var lZ=(0,E.memo)(({children:e,className:t,node:n,...r})=>(0,ad.jsx)("h3",{className:lh("mt-6 mb-2 font-semibold text-xl",t),"data-streamdown":"heading-3",...r,children:e}),(e,t)=>lM(e,t));lZ.displayName="MarkdownH3";var lV=(0,E.memo)(({children:e,className:t,node:n,...r})=>(0,ad.jsx)("h4",{className:lh("mt-6 mb-2 font-semibold text-lg",t),"data-streamdown":"heading-4",...r,children:e}),(e,t)=>lM(e,t));lV.displayName="MarkdownH4";var lW=(0,E.memo)(({children:e,className:t,node:n,...r})=>(0,ad.jsx)("h5",{className:lh("mt-6 mb-2 font-semibold text-base",t),"data-streamdown":"heading-5",...r,children:e}),(e,t)=>lM(e,t));lW.displayName="MarkdownH5";var lq=(0,E.memo)(({children:e,className:t,node:n,...r})=>(0,ad.jsx)("h6",{className:lh("mt-6 mb-2 font-semibold text-sm",t),"data-streamdown":"heading-6",...r,children:e}),(e,t)=>lM(e,t));lq.displayName="MarkdownH6";var lK=(0,E.memo)(({children:e,className:t,node:n,...r})=>{let{controls:i}=(0,E.useContext)(uv),s=lL(i,"table");return(0,ad.jsx)(lN,{className:t,"data-streamdown":"table-wrapper",showControls:s,...r,children:e})},(e,t)=>lM(e,t));lK.displayName="MarkdownTable";var lX=(0,E.memo)(({children:e,className:t,node:n,...r})=>(0,ad.jsx)("thead",{className:lh("bg-muted/80",t),"data-streamdown":"table-header",...r,children:e}),(e,t)=>lM(e,t));lX.displayName="MarkdownThead";var lQ=(0,E.memo)(({children:e,className:t,node:n,...r})=>(0,ad.jsx)("tbody",{className:lh("divide-y divide-border bg-muted/40",t),"data-streamdown":"table-body",...r,children:e}),(e,t)=>lM(e,t));lQ.displayName="MarkdownTbody";var lJ=(0,E.memo)(({children:e,className:t,node:n,...r})=>(0,ad.jsx)("tr",{className:lh("border-border border-b",t),"data-streamdown":"table-row",...r,children:e}),(e,t)=>lM(e,t));lJ.displayName="MarkdownTr";var l0=(0,E.memo)(({children:e,className:t,node:n,...r})=>(0,ad.jsx)("th",{className:lh("whitespace-nowrap px-4 py-2 text-left font-semibold text-sm",t),"data-streamdown":"table-header-cell",...r,children:e}),(e,t)=>lM(e,t));l0.displayName="MarkdownTh";var l1=(0,E.memo)(({children:e,className:t,node:n,...r})=>(0,ad.jsx)("td",{className:lh("px-4 py-2 text-sm",t),"data-streamdown":"table-cell",...r,children:e}),(e,t)=>lM(e,t));l1.displayName="MarkdownTd";var l2=(0,E.memo)(({children:e,className:t,node:n,...r})=>(0,ad.jsx)("blockquote",{className:lh("my-4 border-muted-foreground
114/30 border-l-4 pl-4 text-muted-foreground italic",t),"data-streamdown":"blockquote",...r,children:e}),(e,t)=>lM(e,t));l2.displayName="MarkdownBlockquote";var l3=(0,E.memo)(({children:e,className:t,node:n,...r})=>(0,ad.jsx)("sup",{className:lh("text-sm",t),"data-streamdown":"superscript",...r,children:e}),(e,t)=>lM(e,t));l3.displayName="MarkdownSup";var l4=(0,E.memo)(({children:e,className:t,node:n,...r})=>(0,ad.jsx)("sub",{className:lh("text-sm",t),"data-streamdown":"subscript",...r,children:e}),(e,t)=>lM(e,t));l4.displayName="MarkdownSub";var l9=(0,E.memo)(({children:e,className:t,node:n,...r})=>{if("data-footnotes"in r){let n=Array.isArray(e)?e.map(e=>{if(!(0,E.isValidElement)(e))return e;if(e.type===lz){let t=(Array.isArray(e.props.children)?e.props.children:[e.props.children]).filter(e=>!(e=>{var t,n;if(!(0,E.isValidElement)(e))return!1;let r=Array.isArray(e.props.children)?e.props.children:[e.props.children],i=!1,s=!1;for(let e of r)if(e){if("string"==typeof e)""!==e.trim()&&(i=!0);else if((0,E.isValidElement)(e)){if((null==(t=e.props)?void 0:t["data-footnote-backref"])!==void 0)s=!0;else for(let t of Array.isArray(e.props.children)?e.props.children:[e.props.children])if("string"==typeof t&&""!==t.trim()||(0,E.isValidElement)(t)&&(null==(n=t.props)?void 0:n["data-footnote-backref"])===void 0){i=!0;break}}}return s&&!i})(e));return 0===t.length?null:{...e,props:{...e.props,children:t}}}return e}):e;return(Array.isArray(n)?n.some(e=>null!==e):null!==n)?(0,ad.jsx)("section",{className:t,...r,children:n}):null}return(0,ad.jsx)("section",{className:t,...r,children:e})},(e,t)=>lM(e,t));l9.displayName="MarkdownSection";var l5=(0,E.memo)(({node:e,className:t,children:n,...r})=>{var i,s,a;let o=(null==(i=null==e?void 0:e.position)?void 0:i.start.line)===(null==(s=null==e?void 0:e.position)?void 0:s.end.line),{mermaid:l,controls:u}=(0,E.useContext)(uv);if(o)return(0,ad.jsx)("code",{className:lh("rounded bg-muted px-1.5 py-0.5 font-mono text-sm",t),"data-streamdown":"inline-code",...r,children:n});let c=null==t?void 0:t.match(lP),d=null!=(a=null==c?void 0:c.at(1))?a:"",h="";if((0,E.isValidElement)(n)&&n.props&&"object"==typeof n.props&&"children"in n.props&&"string"==typeof n.props.children?h=n.props.children:"string"==typeof n&&(h=n),"mermaid"===d){let e=lL(u,"mermaid"),n=lj(u,"download"),r=lj(u,"copy"),i=lj(u,"fullscreen"),s=lj(u,"panZoom");return(0,ad.jsx)(E.Suspense,{fallback:(0,ad.jsx)(lb,{}),children:(0,ad.jsxs)("div",{className:lh("group relative my-4 h-auto rounded-xl border p-4",t),"data-streamdown":"mermaid-block",children:[e&&(n||r||i)&&(0,ad.jsxs)("div",{className:"flex items-center justify-end gap-2",children:[n&&(0,ad.jsx)(l_,{chart:h,config:null==l?void 0:l.config}),r&&(0,ad.jsx)(lg,{code:h}),i&&(0,ad.jsx)(lx,{chart:h,config:null==l?void 0:l.config})]}),(0,ad.jsx)(lO,{chart:h,config:null==l?void 0:l.config,showControls:s})]})})}let p=lL(u,"code");return(0,ad.jsx)(E.Suspense,{fallback:(0,ad.jsx)(lb,{}),children:(0,ad.jsx)(lR,{className:lh("overflow-x-auto border-border border-t",t),code:h,language:d,children:p&&(0,ad.jsxs)(ad.Fragment,{children:[(0,ad.jsx)(lv,{code:h,language:d}),(0,ad.jsx)(lg,{})]})})})},(e,t)=>e.className===t.className&&lD(e.node,t.node));l5.displayName="MarkdownCode";var l6=(0,E.memo)(({node:e,className:t,src:n,alt:r,...i})=>{let s=async()=>{if(n)try{let e=await (await fetch(n)).blob(),t=new URL(n,window.location.origin).pathname.split("/").pop()||"",i=t.split(".").pop(),s=t.includes(".")&&void 0!==i&&i.length<=4,a="";if(s)a=t;else{let n=e.type,i="png";n.includes("jpeg")||n.includes("jpg")?i="jpg":n.includes("png")?i="png":n.includes("svg")?i="svg":n.includes("gif")?i="gif":n.includes("webp")&&(i="webp"),a=`${(r||t||"image").replace(lE,"")}.${i}`}lp(a,e,e.type)}catch(e){console.error("Failed to download image:",e)}};return n?(0,ad.jsxs)("div",{className:"group relative my-4 inline-block","data-streamdown":"image-wrapper",children:[(0,ad.jsx)("img",{alt:r,className:lh("max-w-full rounded-lg",t),"data-streamdown":"image",src:n,...i}),(0,ad.jsx)("div",{className:"pointer-events-none absolute inset-0 hidden rounded-lg bg-black/10 group-hover:block"}),(0,ad.jsx)("button",{className:lh("absolute right-2 bottom-2 flex h-8 w-8 cursor-pointer items-center justify-center rounded-md border border-border bg-background/90 shadow-sm backdrop-blur-sm transition-all duration-200 hover:bg-background","opacity-0 group-hover:opacity-100"),onClick:s,title:"Download image",type:"button",children:(0,ad.jsx)(sr,{size:14})})]}):null},(e,t)=>e.className===t.className&&lD(e.node,t.node));l6.displayName="MarkdownImg";var l8=(0,E.memo)(({children:e,className:t,node:n,...r})=>{var i;let s=(Array.isArray(e)?e:[e]).filter(e=>null!=e&&""!==e);return 1===s.length&&(0,E.isValidElement)(s[0])&&(null==(i=s[0].props.node)?void 0:i.tagName)==="img"?(0,ad.jsx)(ad.Fragment,{children:e}):(0,ad.jsx)("p",{className:t,...r,children:e})},(e,t)=>lM(e,t));l8.displayName="MarkdownParagraph";var l7={ol:lz,li:lF,ul:lB,hr:l$,strong:lU,a:lH,h1:lG,h2:lY,h3:lZ,h4:lV,h5:lW,h6:lq,table:lK,thead:lX,tbody:lQ,tr:lJ,th:l0,td:l1,blockquote:l2,code:l5,img:l6,pre:({children:e})=>e,sup:l3,sub:l4,p:l8,section:l9},ue=[],ut={allowDangerousHtml:!0},un=new WeakMap,ur=new class{constructor(){this.cache=new Map,this.keyCache=new WeakMap,this.maxSize=100}generateCacheKey(e){let t=this.keyCache.get(e);if(t)return t;let n=e.rehypePlugins,r=e.remarkPlugins,i=e.remarkRehypeOptions;if(!(n||r||i)){let t="default";return this.keyCache.set(e,t),t}let s=e=>{if(!e||0===e.length)return"";let t="";for(let n=0;n<e.length;n+=1){let r=e[n];if(n>0&&(t+=","),Array.isArray(r)){let[e,n]=r;if("function"==typeof e){let n=un.get(e);n||(n=e.name,un.set(e,n)),t+=n}else t+=String(e);t+=":",t+=JSON.stringify(n)}else if("function"==typeof r){let e=un.get(r);e||(e=r.name,un.set(r,e)),t+=e}else t+=String(r)}return t},a=s(n),o=s(r),l=i?JSON.stringify(i):"",u=`${o}::${a}::${l}`;return this.keyCache.set(e,u),u}get(e){let t=this.generateCacheKey(e),n=this.cache.get(t);return n&&(this.cache.delete(t),this.cache.set(t,n)),n}set(e,t){let n=this.generateCacheKey(e);if(this.cache.size>=this.maxSize){let e=this.cache.keys().next().value;e&&this.cache.delete(e)}this.cache.set(n,t)}clear(){this.cache.clear()}},ui=e=>{let t=us(e),n=e.children||"";return uo(t.runSync(t.parse(n),n),e)},us=e=>{let t=ur.get(e);if(t)return t;let n=ua(e);return ur.set(e,n),n},ua=e=>{let t=e.rehypePlugins||ue,n=e.remarkPlugins||ue,r=e.remarkRehypeOptions?{...ut,...e.remarkRehypeOptions}:ut;return li().use(oL).use(n).use(oQ,r).use(t)},uo=(e,t)=>(function(e,t){var n,r,i,s,a;let o;if(!t||void 0===t.Fragment)throw TypeError("Expected `Fragment` in options");let l=t.filePath||void 0;if(t.development){if("function"!=typeof t.jsxDEV)throw TypeError("Expected `jsxDEV` in options when `development: true`");n=l,r=t.jsxDEV,o=function(e,t,i,s){let a=Array.isArray(i.children),o=na(e);return r(t,i,s,a,{columnNumber:o?o.column-1:void 0,fileName:n,lineNumber:o?o.line:void 0},void 0)}}else{if("function"!=typeof t.jsx)throw TypeError("Expected `jsx` in production options");
114if("function"!=typeof t.jsxs)throw TypeError("Expected `jsxs` in production options");i=0,s=t.jsx,a=t.jsxs,o=function(e,t,n,r){let i=Array.isArray(n.children)?a:s;return r?i(t,n,r):i(t,n)}}let u={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:o,elementAttributeNameCase:t.elementAttributeNameCase||"react",evaluater:t.createEvaluater?t.createEvaluater():void 0,filePath:l,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:!1!==t.passKeys,passNode:t.passNode||!1,schema:"svg"===t.space?P.JW:P.qy,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:!1!==t.tableCellAlignToStyle},c=aN(u,e,void 0);return c&&"string"!=typeof c?c:u.create(e,u.Fragment,{children:c||void 0},void 0)})(e,{Fragment:ad.Fragment,components:t.components,ignoreInvalidStyle:!0,jsx:ad.jsx,jsxs:ad.jsxs,passKeys:!0,passNode:!0}),ul=/\[\^[^\]\s]{1,200}\](?!:)/,uu=/\[\^[^\]\s]{1,200}\]:/,uc=/<\/(\w+)>/,ud=/<(\w+)[\s>]/,uh=e=>{let t=0;for(;t<e.length&&(" "===e[t]||" "===e[t]||e[t]===` 115`||"\r"===e[t]);)t+=1;return t+1<e.length&&"$"===e[t]&&"$"===e[t+1]},up=e=>{let t=e.length-1;for(;t>=0&&(" "===e[t]||" "===e[t]||e[t]===` 116`||"\r"===e[t]);)t-=1;return t>=1&&"$"===e[t]&&"$"===e[t-1]},uf=e=>{let t=0;for(let n=0;n<e.length-1;n+=1)"$"===e[n]&&"$"===e[n+1]&&(t+=1,n+=1);return t},um=e=>{let t=ul.test(e),n=uu.test(e);
116if(t||n)return[e];let r=ld.JG.lex(e,{gfm:!0}),i=[],s=[];for(let e of r){let t=e.raw,n=i.length;if(s.length>0){if(i[n-1]+=t,"html"===e.type){let e=t.match(uc);if(e){let t=e[1];s.at(-1)===t&&s.pop()}}continue}if("html"===e.type&&e.block){let e=t.match(ud);if(e){let n=e[1];t.includes(`</${n}>`)||s.push(n)}}if("$$"===t.trim()&&n>0){let e=i[n-1],r=uh(e),s=uf(e);if(r&&s%2==1){i[n-1]=e+t;continue}}if(n>0&&up(t)){let e=i[n-1],r=uh(e),s=uf(e),a=uf(t);if(r&&s%2==1&&!uh(t)&&1===a){i[n-1]=e+t;continue}}i.push(t)}return i},ug=Object.values({raw:function(e){return function(t,n){return nh(t,{...e,file:n})}},katex:[ec,{errorColor:"var(--color-muted-foreground)"}],sanitize:[function(e){return function(t){var n=t,r=e;let i={type:"root",children:[]},s=nw({schema:r?{...nk,...r}:nk,stack:[]},n);return s&&(Array.isArray(s)?1===s.length?i=s[0]:i.children=s:i=s),i}},{}],harden:[function({defaultOrigin:e="",allowedLinkPrefixes:t=[],allowedImagePrefixes:n=[],allowDataImages:r=!1,allowedProtocols:i=[],blockedImageClass:s="inline-block bg-gray-200 dark:bg-gray-700 text-gray-600 dark:text-gray-400 px-3 py-1 rounded text-sm",blockedLinkClass:a="text-gray-500"}){let o=t.length&&!t.every(e=>"*"===e),l=n.length&&!n.every(e=>"*"===e);if(!e&&(o||l))throw Error("defaultOrigin is required when allowedLinkPrefixes or allowedImagePrefixes are provided");return o=>{w(o,((e,t,n,r,i,s,a)=>{let o=(l,u,c)=>{if("element"!==l.type||l[O])return!0;if("a"===l.tagName){let n=R(l.properties.href,t,e,!1,!1,i);return null===n?(l[O]=!0,w(l,o),c&&"number"==typeof u&&(c.children[u]={type:"element",tagName:"span",properties:{title:"Blocked URL: "+String(l.properties.href),class:a},children:[...l.children,{type:"text",value:" [blocked]"}]}),k):(l.properties.href=n,l.properties.target="_blank",l.properties.rel="noopener noreferrer",!0)}if("img"===l.tagName){let t=R(l.properties.src,n,e,r,!0,i);if(null===t)return l[O]=!0,w(l,o),c&&"number"==typeof u&&(c.children[u]={type:"element",tagName:"span",properties:{class:s},children:[{type:"text",value:"[Image blocked: "+String(l.properties.alt||"No description")+"]"}]}),k;l.properties.src=t}return!0};return o})(e,t,n,r,i,s,a))}},{allowedImagePrefixes:["*"],allowedLinkPrefixes:["*"],allowedProtocols:["*"],defaultOrigin:void 0,allowDataImages:!0}]}),uy=Object.values({gfm:[function(e){let t,n=e||iP,r=this.data(),i=r.micromarkExtensions||(r.micromarkExtensions=[]),s=r.fromMarkdownExtensions||(r.fromMarkdownExtensions=[]),a=r.toMarkdownExtensions||(r.toMarkdownExtensions=[]);i.push(r8([{text:il},{document:{91:{name:"gfmFootnoteDefinition",tokenize:i_,continuation:{tokenize:iA},exit:ix}},text:{91:{name:"gfmFootnoteCall",tokenize:iT},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:ib,resolveTo:iE}}},function(e){let t=(e||{}).singleTilde,n={name:"strikethrough",tokenize:function(e,n,r){let i=this.previous,s=this.events,a=0;return function(o){return 126===i&&"characterEscape"!==s[s.length-1][1].type?r(o):(e.enter("strikethroughSequenceTemporary"),function s(o){let l=rG(i);if(126===o)return a>1?r(o):(e.consume(o),a++,s);if(a<2&&!t)return r(o);let u=e.exit("strikethroughSequenceTemporary"),c=rG(o);return u._open=!c||2===c&&!!l,u._close=!l||2===l&&!!c,n(o)}(o))}},resolveAll:function(e,t){let n=-1;for(;++n<e.length;)if("enter"===e[n][0]&&"strikethroughSequenceTemporary"===e[n][1].type&&e[n][1]._close){let r=n;for(;r--;)if("exit"===e[r][0]&&"strikethroughSequenceTemporary"===e[r][1].type&&e[r][1]._open&&e[n][1].end.offset-e[n][1].start.offset==e[r][1].end.offset-e[r][1].start.offset){e[n][1].type="strikethroughSequence",e[r][1].type="strikethroughSequence";let i={type:"strikethrough",start:Object.assign({},e[r][1].start),end:Object.assign({},e[n][1].end)},s={type:"strikethroughText",start:Object.assign({},e[r][1].end),end:Object.assign({},e[n][1].start)},a=[["enter",i,t],["enter",e[r][1],t],["exit",e[r][1],t],["enter",s,t]],o=t.parser.constructs.insideSpan.null;o&&ro(a,a.length,0,ru(o,e.slice(r+1,n),t)),ro(a,a.length,0,[["exit",s,t],["enter",e[n][1],t],["exit",e[n][1],t],["exit",i,t]]),ro(e,r-1,n-r+3,a),n=r+a.length-2;break}}for(n=-1;++n<e.length;)"strikethroughSequenceTemporary"===e[n][1].type&&(e[n][1].type="data");return e}};return null==t&&(t=!0),{text:{126:n},insideSpan:{null:[n]},attentionMarkers:{null:[126]}}}(n),{flow:{null:{name:"table",tokenize:iS,resolveAll:iw}}},{text:{91:iR}}])),s.push([{transforms:[r_],enter:{literalAutolink:rg,literalAutolinkEmail:ry,literalAutolinkHttp:ry,literalAutolinkWww:ry},exit:{literalAutolink:rT,literalAutolinkEmail:rE,literalAutolinkHttp:rv,literalAutolinkWww:rb}}
116,{enter:{gfmFootnoteCallString:rw,gfmFootnoteCall:rI,gfmFootnoteDefinitionLabelString:rC,gfmFootnoteDefinition:rN},exit:{gfmFootnoteCallString:rR,gfmFootnoteCall:rO,gfmFootnoteDefinitionLabelString:rP,gfmFootnoteDefinition:rD}},{canContainEols:["delete"],enter:{strikethrough:rF},exit:{strikethrough:rB}},{enter:{table:rX,tableData:r1,tableHeader:r1,tableRow:rJ},exit:{codeText:r2,table:rQ,tableData:r0,tableHeader:r0,tableRow:r0}},{exit:{taskListCheckValueChecked:r4,taskListCheckValueUnchecked:r4,paragraph:r9}}]),a.push({extensions:[{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:rf,notInConstruct:rm},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:rf,notInConstruct:rm},{character:":",before:"[ps]",after:"\\/",inConstruct:rf,notInConstruct:rm}]},(t=!1,n&&n.firstLineBlank&&(t=!0),{handlers:{footnoteDefinition:function(e,n,r,i){let s=r.createTracker(i),a=s.move("[^"),o=r.enter("footnoteDefinition"),l=r.enter("label");return a+=s.move(r.safe(r.associationId(e),{before:a,after:"]"})),l(),a+=s.move("]:"),e.children&&e.children.length>0&&(s.shift(4),a+=s.move((t?"\n":" ")+r.indentLines(r.containerFlow(e,s.current()),t?rj:rL))),o(),a},footnoteReference:rM},unsafe:[{character:"[",inConstruct:["label","phrasing","reference"]}]}),{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:rz}],handlers:{delete:r$}},function(e){let t=e||{},n=t.tableCellPadding,r=t.tablePipeAlign,i=t.stringLength,s=n?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:"\n",inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[ :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{inlineCode:function(e,t,n){let r=rK.inlineCode(e,t,n);return n.stack.includes("tableCell")&&(r=r.replace(/\|/g,"\\$&")),r},table:function(e,t,n,r){return o(function(e,t,n){let r=e.children,i=-1,s=[],a=t.enter("table");for(;++i<r.length;)s[i]=l(r[i],t,n);return a(),s}(e,n,r),e.align)},tableCell:a,tableRow:function(e,t,n,r){let i=o([l(e,n,r)]);return i.slice(0,i.indexOf("\n"))}}};function a(e,t,n,r){let i=n.enter("tableCell"),a=n.enter("phrasing"),o=n.containerPhrasing(e,{...r,before:s,after:s});return a(),i(),o}function o(e,t){return function(e,t){let n=t||{},r=(n.align||[]).concat(),i=n.stringLength||rU,s=[],a=[],o=[],l=[],u=0,c=-1;for(;++c<e.length;){let t=[],r=[],s=-1;for(e[c].length>u&&(u=e[c].length);++s<e[c].length;){var d;let a=null==(d=e[c][s])?"":String(d);if(!1!==n.alignDelimiters){let e=i(a);r[s]=e,(void 0===l[s]||e>l[s])&&(l[s]=e)}t.push(a)}a[c]=t,o[c]=r}let h=-1;if("object"==typeof r&&"length"in r)for(;++h<u;)s[h]=rH(r[h]);else{let e=rH(r);for(;++h<u;)s[h]=e}h=-1;let p=[],f=[];for(;++h<u;){let e=s[h],t="",r="";99===e?(t=":",r=":"):108===e?t=":":114===e&&(r=":");let i=!1===n.alignDelimiters?1:Math.max(1,l[h]-t.length-r.length),a=t+"-".repeat(i)+r;!1!==n.alignDelimiters&&((i=t.length+i+r.length)>l[h]&&(l[h]=i),f[h]=i),p[h]=a}a.splice(1,0,p),o.splice(1,0,f),c=-1;let m=[];for(;++c<a.length;){let e=a[c],t=o[c];h=-1;let r=[];for(;++h<u;){let i=e[h]||"",a="",o="";if(!1!==n.alignDelimiters){let e=l[h]-(t[h]||0),n=s[h];114===n?a=" ".repeat(e):99===n?e%2?(a=" ".repeat(e/2+.5),o=" ".repeat(e/2-.5)):o=a=" ".repeat(e/2):o=" ".repeat(e)}!1===n.delimiterStart||h||r.push("|"),!1!==n.padding&&(!1!==n.alignDelimiters||""!==i)&&(!1!==n.delimiterStart||h)&&r.push(" "),!1!==n.alignDelimiters&&r.push(a),r.push(i),!1!==n.alignDelimiters&&r.push(o),!1!==n.padding&&r.push(" "),(!1!==n.delimiterEnd||h!==u-1)&&r.push("|")}m.push(!1===n.delimiterEnd?r.join("").replace(/ +$/,""):r.join(""))}return m.join("\n")}(e,{align:t,alignDelimiters:r,padding:n,stringLength:i})}function l(e,t,n){let r=e.children,i=-1,s=[],o=t.enter("tableRow");for(;++i<r.length;)s[i]=a(r[i],e,t,n);return o(),s}}(n),{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:r5}}]})},{}],math:[iF,{singleDollarTextMath:!1}],cjkFriendly:[function(){let e=this.data();(e.micromarkExtensions||(e.micromarkExtensions=[])).push({text:{[nP.asterisk]:rd,[nP.underscore]:rd},insideSpan:{null:[rd]}})},{}],cjkFriendlyGfmStrikethrough:[function(e){let t=this.data();(t.micromarkExtensions||(t.micromarkExtensions=[])).push(function(e){let t=(e||{}).singleTilde,n={name:"strikethrough",tokenize:function(e,n,r){let{now:i,sliceSerialize:s,previous:a}=this,o=rr(a)?ri(a,i(),s):a,l=n5(o),u=new rs(o,i(),s),c=n6(l,u.value.bind(u),o),d=this.events,h=0;return function(a){return(nP.tilde,o===nP.tilde&&d[d.length-1][1].type!==rc.characterEscape)?r(a):(e.enter("strikethroughSequenceTemporary"),function a(l){let u=n5(o);if(l===nP.tilde)return h>1?r(l):(e.consume(l),h++,a);if(h<2&&!t)return r(l);let d=e.exit("strikethroughSequenceTemporary"),p=n5(rn(l)?ra(l,i(),s):l),f=n7(c)||n8(c),m=n7(p)||n8(p),g=re(c)||u===v.ivs;return d._open=!m||p===nD.attentionSideAfter&&(f||g),d._close=!f||u===nD.attentionSideAfter&&(m||re(p)),n(l)}(a))}},resolveAll:function(e,t){let n=-1;for(;++n<e.length;)if("enter"===e[n][0]&&"strikethroughSequenceTemporary"===e[n][1].type&&e[n][1]._close){let r=n;for(;r--;)if("exit"===e[r][0]&&"strikethroughSequenceTemporary"===e[r][1].type&&e[r][1]._open&&e[n][1].end.offset-e[n][1].start.offset==e[r][1].end.offset-e[r][1].start.offset){e[n][1].type="strikethroughSequence",e[r][1].type="strikethroughSequence";let i={type:"strikethrough",start:Object.assign({},e[r][1].start),end:Object.assign({},e[n][1].end)},s={type:"strikethroughText",start:Object.assign({},e[r][1].end),end:Object.assign({},e[n][1].start)},a=[["enter",i,t],["enter",e[r][1],t],["exit",e[r][1],t],["enter",s,t]],o=t.parser.constructs.insideSpan.null;o&&ro(a,a.length,0,ru(o,e.slice(r+1,n),t)),ro(a,a.length,0,[["exit",s,t],["enter",e[n][1],t],["exit",e[n][1],t],["exit",i,t]]),ro(e,r-1,n-r+3,a),n=r+a.length-2;break}}for(n=-1;++n<e.length;)"strikethroughSequenceTemporary"===e[n][1].type&&(e[n][1].type=rc.data);return e}};return null==t&&(t=!0),{text:{[nP.tilde]:n},insideSpan:{null:[n]},attentionMarkers:{null:[nP.tilde]}}}(e))},{}]}),uv=(0,E.createContext)({shikiTheme:["github-light","github-dark"],controls:!0,isAnimating:!1,mode:"streaming",mermaid:void 0}),ub=(0,E.memo)(({content:e,shouldParseIncompleteMarkdown:t,...n})=>{let r=(0,E.useMemo)(()=>"string"==typeof e&&t?(e=>{if(!e||"string"!=typeof e)return e;let t=e,n=(e=>{let t=e.lastIndexOf("](");if(-1!==t&&!i3(e,t)){let n=((e,t)=>{if(e.substring(t+2).includes(")"))return null;let n=((e,t)=>{let n=1;for(let r=t-1;r>=0;r-=1)if("]"===e[r])n+=1;else if("["===e[r]&&0==(n-=1))return r;return -1})(e,t);if(-1===n||i3(e,n))return null;let r=n>0&&"!"===e[n-1],i=e.substring(0,r?n-1:n);if(r)return i;let s=e.substring(n+1,t);return`${i}[${s}](streamdown:incomplete-link)`})(e,t);if(null!==n)return n}for(let t=e.length-1;t>=0;t-=1)if("["===e[t]&&!i3(e,t)){let n=i9(e,t);if(null!==n)return n}return e})(t);return n.endsWith("](streamdown:incomplete-link)")?n:t=(e=>{if((e.match(/\$\$/g)||[]).length%2==0)return e;let t=e.indexOf("$$");return -1===t||-1===e.indexOf(` 117`,t)||e.endsWith(` 118`)?`${e}$$`:`${e} 119$$`})(t=(e=>{let t=e.match(iZ);if(t){let n=t[2];if(!n||iV.test(n))return e;if((e.match(/~~/g)||[]).length%2==1)return`${e}~~`}return e})(t=(e=>{let t=(e=>!e.match(iK)||e.includes(` 120`)?null:e.endsWith("``")&&!e.endsWith("```")?`${e}\``:e)(e);if(null!==t)return t;if((e=>{let t=(e.match(/```/g)||[]).length;return!!(t>0&&t%2==0&&e.includes(` 121`)||(e.endsWith("```\n")||e.endsWith("```"))&&t%2==0)})(e))return e;let n=e.match(iY);if(n&&(e.match(/```/g)||[]).length%2!=1){let t=n[2];if(!t||iV.test(t))return e;if((e=>{let t=0;for(let n=0;n<e.length;n+=1)"`"!==e[n]||i4(e,n)||(t+=1);return t})(e)%2==1)return`${e}\``}return e})(t=(e=>{if(iJ(e)||!e.match(iG))return e;let t=(e=>{for(let t=0;t<e.length;t+=1)if("_"===e[t]&&"_"!==e[t-1]&&"_"!==e[t+1]&&"\\"!==e[t-1]&&!i0(e,t)){let n=t>0?e[t-1]:"",r=t<e.length-1?e[t+1]:"";if(n&&r&&iQ(n)&&iQ(r))continue;return t}return -1})(e);if(-1===t)return e;let n=e.substring(t+1);return!n||iV.test(n)?e:(e=>{let t=0,n=e.length;for(let r=0;r<n;r+=1){if("_"!==e[r])continue;let i=r>0?e[r-1]:"",s=r<n-1?e[r+1]:"";i2(e,r,i,s)||(t+=1)}return t})(e)%2==1?(e=>{let t=e.length;for(;t>0&&e[t-1]===` 122`;)t-=1;if(t<e.length){let n=e.slice(0,t),r=e.slice(t);return`${n}_${r}`}return`${e}_`})(e):e})(t=(e=>{if(iJ(e)||!e.match(iH))return e;let t=(e=>{for(let t=0;t<e.length;t+=1)if("*"===e[t]&&"*"!==e[t-1]&&"*"!==e[t+1]&&"\\"!==e[t-1]){let n=t>0?e[t-1]:"",r=t<e.length-1?e[t+1]:"";if(n&&r&&iQ(n)&&iQ(r))continue;return t}return -1})(e);if(-1===t)return e;let n=e.substring(t+1);return!n||iV.test(n)?e:(e=>{let t=0,n=e.length;for(let r=0;r<n;r+=1){if("*"!==e[r])continue;let i=r>0?e[r-1]:"",s=r<n-1?e[r+1]:"";i1(e,r,i,s)||(t+=1)}return t})(e)%2==1?`${e}*`:e})(t=(e=>{let t=e.match(i$);if(t){let n=t[2];if(!n||iV.test(n))return e;let r=e.lastIndexOf(t[1]),i=e.substring(0,r).lastIndexOf(` 123`),s=e.substring(-1===i?0:i+1,r);if(iW.test(s)&&n.includes(` 124`))return e;if((e.match(/__/g)||[]).length%2==1)return`${e}__`}return e})(t=(e=>{if(iJ(e))return e;let t=e.match(iB);if(t){let n=t[2];if(!n||iV.test(n))return e;let r=e.lastIndexOf(t[1]),i=e.substring(0,r).lastIndexOf(` 125`),s=e.substring(-1===i?0:i+1,r);if(iW.test(s)&&n.includes(` 126`))return e;if((e.match(/\*\*/g)||[]).length%2==1)return`${e}**`}return e})(t=(e=>{if(iJ(e)||iX.test(e))return e;let t=e.match(iU);if(t){let n=t[2];if(!n||iV.test(n))return e;if((e=>{let t=0,n=0;for(let r=0;r<e.length;r+=1)"*"===e[r]?n+=1:(n>=3&&(t+=Math.floor(n/3)),n=0);return n>=3&&(t+=Math.floor(n/3)),t})(e)%2==1)return`${e}***`}return e})(t=n))))))))})(e.trim()):e,[e,t]);return(0,ad.jsx)(ui,{...n,children:r})},(e,t)=>{if(e.content!==t.content||e.shouldParseIncompleteMarkdown!==t.shouldParseIncompleteMarkdown||e.index!==t.index)return!1;if(e.components!==t.components){let n=Object.keys(e.components||{}),r=Object.keys(t.components||{});if(n.length!==r.length||n.some(n=>{var r,i;return(null==(r=e.components)?void 0:r[n])!==(null==(i=t.components)?void 0:i[n])}))return!1}return e.rehypePlugins===t.rehypePlugins&&e.remarkPlugins===t.remarkPlugins});ub.displayName="Block";var uE=["github-light","github-dark"],uT=(0,E.memo)(({children:e,mode:t="streaming",parseIncompleteMarkdown:r=!0,
126components:i,rehypePlugins:s=ug,remarkPlugins:a=uy,className:o,shikiTheme:l=uE,mermaid:u,controls:c=!0,isAnimating:d=!1,BlockComponent:h=ub,parseMarkdownIntoBlocksFn:p=um,...f})=>{let m=(0,E.useId)(),[g,y]=(0,E.useTransition)(),[v,b]=(0,E.useState)([]),T=(0,E.useMemo)(()=>p("string"==typeof e?e:""),[e,p]);(0,E.useEffect)(()=>{"streaming"===t?y(()=>{b(T)}):b(T)},[T,t]);let _="streaming"===t?v:T,A=(0,E.useMemo)(()=>_.map((e,t)=>`${m}-${t}`),[_.length,m]),x=(0,E.useMemo)(()=>({shikiTheme:l,controls:c,isAnimating:d,mode:t,mermaid:u}),[l,c,d,t,u]),k=(0,E.useMemo)(()=>({...l7,...i}),[i]);return(0,E.useEffect)(()=>{if(!(Array.isArray(s)&&s.some(e=>Array.isArray(e)?e[0]===ec:e===ec)))return;let t=!1;if(Array.isArray(a)){let e=a.find(e=>Array.isArray(e)?e[0]===iF:e===iF);e&&Array.isArray(e)&&e[1]&&(t=!0===e[1].singleDollarTextMath)}let r="string"==typeof e?e:"",i=r.includes("$$"),o=t&&(/[^$]\$[^$]/.test(r)||/^\$[^$]/.test(r)||/[^$]\$$/.test(r));(i||o)&&Promise.all([n.e(495),n.e(8222)]).then(n.t.bind(n,8222,19))},[s,a,e]),"static"===t?(0,ad.jsx)(uv.Provider,{value:x,children:(0,ad.jsx)("div",{className:lh("space-y-4 whitespace-normal",o),children:(0,ad.jsx)(ui,{components:k,rehypePlugins:s,remarkPlugins:a,...f,children:e})})}):(0,ad.jsx)(uv.Provider,{value:x,children:(0,ad.jsx)("div",{className:lh("space-y-4 whitespace-normal",o),children:_.map((e,t)=>(0,ad.jsx)(h,{components:k,content:e,index:t,rehypePlugins:s,remarkPlugins:a,shouldParseIncompleteMarkdown:r,...f},A[t]))})})},(e,t)=>e.children===t.children&&e.shikiTheme===t.shikiTheme&&e.isAnimating===t.isAnimating&&e.mode===t.mode);uT.displayName="Streamdown";var u_=({children:e,className:t,minZoom:n=.5,maxZoom:r=3,zoomStep:i=.1,showControls:s=!0,initialZoom:a=1,fullscreen:o=!1})=>{let l=(0,E.useRef)(null),u=(0,E.useRef)(null),[c,d]=(0,E.useState)(a),[h,p]=(0,E.useState)({x:0,y:0}),[f,m]=(0,E.useState)(!1),[g,y]=(0,E.useState)({x:0,y:0}),[v,b]=(0,E.useState)({x:0,y:0}),T=(0,E.useCallback)(e=>{d(t=>Math.max(n,Math.min(r,t+e)))},[n,r]),_=(0,E.useCallback)(()=>{T(i)},[T,i]),A=(0,E.useCallback)(()=>{T(-i)},[T,i]),x=(0,E.useCallback)(()=>{d(a),p({x:0,y:0})},[a]),k=(0,E.useCallback)(e=>{e.preventDefault(),T(e.deltaY>0?-i:i)},[T,i]),S=(0,E.useCallback)(e=>{if(0!==e.button||!1===e.isPrimary)return;m(!0),y({x:e.clientX,y:e.clientY}),b(h);let t=e.currentTarget;t instanceof HTMLElement&&t.setPointerCapture(e.pointerId)},[h]),w=(0,E.useCallback)(e=>{if(!f)return;e.preventDefault();let t=e.clientX-g.x,n=e.clientY-g.y;p({x:v.x+t,y:v.y+n})},[f,g,v]),I=(0,E.useCallback)(e=>{m(!1);let t=e.currentTarget;t instanceof HTMLElement&&t.releasePointerCapture(e.pointerId)},[]);return(0,E.useEffect)(()=>{let e=l.current;if(e)return e.addEventListener("wheel",k,{passive:!1}),()=>{e.removeEventListener("wheel",k)}},[k]),(0,E.useEffect)(()=>{let e=u.current;if(e&&f)return document.body.style.userSelect="none",e.addEventListener("pointermove",w,{passive:!1}),e.addEventListener("pointerup",I),e.addEventListener("pointercancel",I),()=>{document.body.style.userSelect="",e.removeEventListener("pointermove",w),e.removeEventListener("pointerup",I),e.removeEventListener("pointercancel",I)}},[f,w,I]),(0,ad.jsxs)("div",{className:lh("relative",o?"h-full w-full":"w-full",t),ref:l,style:{cursor:f?"grabbing":"grab"},children:[s&&(0,ad.jsxs)("div",{className:lh("absolute z-10 flex flex-col gap-1 rounded-md border border-border bg-background/90 p-1 shadow-sm backdrop-blur-sm",o?"bottom-4 left-4":"bottom-2 left-2"),children:[(0,ad.jsx)("button",{className:"flex items-center justify-center rounded p-1.5 text-muted-foreground transition-colors hover:bg-muted hover:text-foreground disabled:cursor-not-allowed disabled:opacity-50",disabled:c>=r,onClick:_,title:"Zoom in",type:"button",children:(0,ad.jsx)(so,{size:16})}),(0,ad.jsx)("button",{className:"flex items-center justify-center rounded p-1.5 text-muted-foreground transition-colors hover:bg-muted hover:text-foreground disabled:cursor-not-allowed disabled:opacity-50",disabled:c<=n,onClick:A,title:"Zoom out",type:"button",children:(0,ad.jsx)(sl,{size:16})}),(0,ad.jsx)("button",{className:"flex items-center justify-center rounded p-1.5 text-muted-foreground transition-colors hover:bg-muted hover:text-foreground",onClick:x,title:"Reset zoom and pan",type:"button",children:(0,ad.jsx)(su,{size:16})})]}),(0,ad.jsx)("div",{className:lh("origin-center transition-transform duration-150 ease-out",o&&"flex w-full items-center justify-center"),onPointerDown:S,ref:u,role:"application",style:{transform:`translate(${h.x}px, ${h.y}px) scale(${c})`,transformOrigin:"center center",touchAction:"none",willChange:"transform"},children:e})]})},uA=({chart:e,className:t,config:n,fullscreen:r=!1,showControls:i=!0})=>{let[s,a]=(0,E.useState)(null),[o,l]=(0,E.useState)(!0),[u,c]=(0,E.useState)(""),[d,h]=(0,E.useState)(""),[p,f]=(0,E.useState)(0),{mermaid:m}=(0,E.useContext)(uv),g=null==m?void 0:m.errorComponent;return((0,E.useEffect)(()=>{(async()=>{try{a(null),l(!0);let t=await lT(n),r=e.split("").reduce((e,t)=>
126(e<<5)-e+t.charCodeAt(0)|0,0),i=`mermaid-${Math.abs(r)}-${Date.now()}-${Math.random().toString(36).substring(2,9)}`,{svg:s}=await t.render(i,e);c(s),h(s)}catch(e){d||u||a(e instanceof Error?e.message:"Failed to render Mermaid chart")}finally{l(!1)}})()},[e,n,p]),!o||u||d)?!s||u||d?(0,ad.jsx)(u_,{className:lh(r?"h-full w-full overflow-hidden":"my-4 overflow-hidden",t),fullscreen:r,maxZoom:3,minZoom:.5,showControls:i,zoomStep:.1,children:(0,ad.jsx)("div",{"aria-label":"Mermaid chart",className:lh("flex justify-center",r&&"h-full w-full items-center"),dangerouslySetInnerHTML:{__html:u||d},role:"img"})}):g?(0,ad.jsx)(g,{chart:e,error:s,retry:()=>f(e=>e+1)}):(0,ad.jsxs)("div",{className:lh("rounded-lg border border-red-200 bg-red-50 p-4",t),children:[(0,ad.jsxs)("p",{className:"font-mono text-red-700 text-sm",children:["Mermaid Error: ",s]}),(0,ad.jsxs)("details",{className:"mt-2",children:[(0,ad.jsx)("summary",{className:"cursor-pointer text-red-600 text-xs",children:"Show Code"}),(0,ad.jsx)("pre",{className:"mt-2 overflow-x-auto rounded bg-red-100 p-2 text-red-800 text-xs",children:e})]})]}):(0,ad.jsx)("div",{className:lh("my-4 flex justify-center p-4",t),children:(0,ad.jsxs)("div",{className:"flex items-center space-x-2 text-muted-foreground",children:[(0,ad.jsx)("div",{className:"h-4 w-4 animate-spin rounded-full border-current border-b-2"}),(0,ad.jsx)("span",{className:"text-sm",children:"Loading diagram..."})]})})}},72447:(e,t,n)=>{n.d(t,{EJ:()=>a,bp:()=>l,qg:()=>s,xL:()=>o});var r=n(26950),i=n(88463);let s=r.Tj(i.g),a=r.Rb(i.g),o=r.Od(i.g),l=r.wG(i.g)},73352:(e,t,n)=>{n.d(t,{D:()=>r});function r(e,t){let n=String(e);if("string"!=typeof t)throw TypeError("Expected character");let r=0,i=n.indexOf(t);for(;-1!==i;)r++,i=n.indexOf(t,i+t.length);return r}},74265:(e,t,n)=>{n.r(t),n.d(t,{ZodISODate:()=>u,ZodISODateTime:()=>o,ZodISODuration:()=>p,ZodISOTime:()=>d,date:()=>c,datetime:()=>l,duration:()=>f,time:()=>h});var r=n(13452),i=n(31817),s=n(48417),a=n(26452);let o=r.xI("ZodISODateTime",(e,t)=>{i.Ko.init(e,t),a.EB.init(e,t)});function l(e){return s.G1(o,e)}let u=r.xI("ZodISODate",(e,t)=>{i.v1.init(e,t),a.EB.init(e,t)});function c(e){return s.db(u,e)}let d=r.xI("ZodISOTime",(e,t)=>{i.Ax.init(e,t),a.EB.init(e,t)});function h(e){return s.Kn(d,e)}let p=r.xI("ZodISODuration",(e,t)=>{i.$N.init(e,t),a.EB.init(e,t)});function f(e){return s.f2(p,e)}},74322:(e,t,n)=>{n.d(t,{E:()=>c});var r=n(82967),i=n(34401),s=n(28963),a=n(59761),o=n(50742),l=n(60184),u=n(33097);function c(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=(0,u.ms)(e);return(0,i.N)(function(t,i){for(var u=e.length,c=Array(u),d=e.map(function(){return!1}),h=!1,p=function(t){(0,a.Tg)(e[t]).subscribe((0,s._)(i,function(e){c[t]=e,!h&&!d[t]&&(d[t]=!0,(h=d.every(o.D))&&(d=null))},l.l))},f=0;f<u;f++)p(f);t.subscribe((0,s._)(i,function(e){if(h){var t=(0,r.fX)([e],(0,r.zs)(c));i.next(n?n.apply(void 0,(0,r.fX)([],(0,r.zs)(t))):t)}}))})}},74414:(e,t,n)=>{n.d(t,{M:()=>i});var r=n(23073);function i(e){let t=(0,r.useRef)(null);return null===t.current&&(t.current=e()),t.current}},76509:(e,t,n)=>{n.d(t,{T:()=>s});var r=n(34401),i=n(28963);function s(e,t){return(0,r.N)(function(n,r){var s=0;n.subscribe((0,i._)(r,function(n){r.next(e.call(t,n,s++))}))})}},76520:(e,t,n)=>{n.d(t,{Ds:()=>eE,g$:()=>eN,hY:()=>h,oQ:()=>ei,xr:()=>g});var r=n(36009),i=n(26452);let s=i.k5(r.n),a=i.Ie(e=>"object"==typeof e&&null!==e&&!Array.isArray(e)),o=i.Yj(),l=i.k5(["developer","system","assistant","user"]),u=i._H({type:i.eu(r.n.TEXT_MESSAGE_START),timestamp:i.Wh().min(-0x1fffffffffffff).max(0x1fffffffffffff).optional(),rawEvent:i.bz().refine(e=>null!==e).optional(),metadata:a.optional(),subagentRunId:o.optional(),messageId:i.Yj(),role:l.optional(),name:i.Yj().optional()}),c=i._H({type:i.eu(r.n.TEXT_MESSAGE_CONTENT),timestamp:i.Wh().min(-0x1fffffffffffff).max(0x1fffffffffffff).optional(),rawEvent:i.bz().refine(e=>null!==e).optional(),metadata:a.optional(),subagentRunId:o.optional(),messageId:i.Yj(),delta:i.Yj()}),d=i._H({type:i.eu(r.n.TEXT_MESSAGE_END),timestamp:i.Wh().min(-0x1fffffffffffff).max(0x1fffffffffffff).optional(),rawEvent:i.bz().refine(e=>null!==e).optional(),metadata:a.optional(),subagentRunId:o.optional(),messageId:i.Yj()}),h=i._H({type:i.eu(r.n.TEXT_MESSAGE_CHUNK),timestamp:i.Wh().min(-0x1fffffffffffff).max(0x1fffffffffffff).optional(),rawEvent:i.bz().refine(e=>null!==e).optional(),metadata:a.optional(),subagentRunId:o.optional(),messageId:i.Yj().optional(),role:l.optional(),delta:i.Yj().optional(),name:i.Yj().optional()}),p=i._H({type:i.eu(r.n.TOOL_CALL_START),timestamp:i.Wh().min(-0x1fffffffffffff).max(0x1fffffffffffff).optional(),rawEvent:i.bz().refine(e=>null!==e).optional(),metadata:a.optional(),subagentRunId:o.optional(),toolCallId:i.Yj(),toolCallName:i.Yj(),parentMessageId:i.Yj().optional()}),f=i._H({type:i.eu(r.n.TOOL_CALL_ARGS),timestamp:i.Wh().min(-0x1fffffffffffff).max(0x1fffffffffffff).optional(),rawEvent:i.bz().refine(e=>null!==e).optional(),metadata:a.optional(),subagentRunId:o.optional(),toolCallId:i.Yj(),delta:i.Yj()}),m=i._H({type:i.eu(r.n.TOOL_CALL_END),timestamp:i.Wh().min(-0x1fffffffffffff).max(0x1fffffffffffff).optional(),rawEvent:i.bz().refine(e=>null!==e).optional(),metadata:a.optional(),subagentRunId:o.optional(),toolCallId:i.Yj()}),g=i._H({type:i.eu(r.n.TOOL_CALL_CHUNK),timestamp:i.Wh().min(-0x1fffffffffffff).max(0x1fffffffffffff).optional(),rawEvent:i.bz().refine(e=>null!==e).optional(),metadata:a.optional(),subagentRunId:o.optional(),toolCallId:i.Yj().optional(),toolCallName:i.Yj().optional(),parentMessageId:i.Yj().optional(),delta:i.Yj().optional()}),y=i._H({type:i.eu("text"),id:i.Yj().optional(),text:i.Yj(),metadata:i.bz().refine(e=>null!==e).optional()}),v=i._H({type:i.eu("data"),value:i.Yj(),mimeType:i.Yj()}),b=i._H({type:i.eu("url"),value:i.Yj(),mimeType:i.Yj().optional()}),E=i._H({type:i.eu("file"),value:i.Yj(),provider:i.Yj().optional(),mimeType:i.Yj().optional()}),T=i.gM("type",[v,b,E]),_=i._H({type:i.eu("image"),id:i.Yj().optional(),source:T,metadata:i.bz().refine(e=>null!==e).optional()}),A=i._H({type:i.eu("audio"),id:i.Yj().optional(),source:T,metadata:i.bz().refine(e=>null!==e).optional()}),x=i._H({type:i.eu("video"),id:i.Yj().optional(),source:T,metadata:i.bz().refine(e=>null!==e).optional()}),k=i._H({type:i.eu("document"),id:i.Yj().optional(),source:T,metadata:i.bz().refine(e=>null!==e).optional()}),S=i.gM("type",[y,_,A,x,k]),w=i._H({type:i.eu(r.n.TOOL_CALL_RESULT),timestamp:i.Wh().min(-0x1fffffffffffff).max(0x1fffffffffffff).optional(),rawEvent:i.bz().refine(e=>null!==e).optional(),metadata:a.optional(),subagentRunId:o.optional(),messageId:i.Yj(),toolCallId:i.Yj(),content:i.KC([i.Yj(),i.YO(S)]),role:i.eu("tool").optional()}),I=i.bz(),C=i._H({type:i.eu(r.n.STATE_SNAPSHOT),timestamp:i.Wh().min(-0x1fffffffffffff).max(0x1fffffffffffff).optional(),rawEvent:i.bz().refine(e=>null!==e).optional(),metadata:a.optional(),subagentRunId:o.optional(),snapshot:I.refine(e=>void 0!==e)}),N=i.Yj().regex(RegExp("^(/([^/~]|~[01])*)*$")),R=i._H({op:i.eu("add"),path:N,value:i.bz().refine(e=>void 0!==e)}).meta({specOpen:!0}),O=i._H({op:i.eu("remove"),path:N}).meta({specOpen:!0}),P=i._H({op:i.eu("replace"),path:N,value:i.bz().refine(e=>void 0!==e)}).meta({specOpen:!0}),D=i._H({op:i.eu("move"),from:N,path:N}).meta({specOpen:!0}),M=i._H({op:i.eu("copy"),from:N,path:N}).meta({specOpen:!0}),L=i._H({op:i.eu("test"),path:N,value:i.bz().refine(e=>void 0!==e)}).meta({specOpen:!0}),j=i.gM("op",[R,O,P,D,M,L]),z=i.YO(j),F=i._H({type:i.eu(r.n.STATE_DELTA),timestamp:i.Wh().min(-0x1fffffffffffff).max(0x1fffffffffffff).optional(),rawEvent:i.bz().refine(e=>null!==e).optional(),metadata:a.optional(),subagentRunId:o.optional(),delta:z}),B=i._H({subagentRunId:o.optional(),id:i.Yj(),role:i.eu("developer"),name:i.Yj().optional(),encryptedValue:i.Yj().optional(),metadata:a.optional(),content:i.Yj()}),$=i._H({subagentRunId:o.optional(),id:i.Yj(),role:i.eu("system"),name:i.Yj().optional(),encryptedValue:i.Yj().optional(),metadata:a.optional(),content:i.Yj()}),U=i._H({name:i.Yj(),arguments:i.Yj()}),H=i._H({id:i.Yj(),type:i.eu("function"),function:U,encryptedValue:i.Yj().optional(),metadata:a.optional()}),G=i._H({subagentRunId:o.optional(),id:i.Yj(),role:i.eu("assistant"),name:i.Yj().optional(),encryptedValue:i.Yj().optional(),metadata:a.optional(),content:i.Yj().optional(),toolCalls:i.YO(H).optional()}),Y=i._H({subagentRunId:o.optional(),id:i.Yj(),role:i.eu("user"),name:i.Yj().optional(),encryptedValue:i.Yj().optional(),metadata:a.optional(),content:i.KC([i.Yj(),i.YO(S)])}),Z=i._H({subagentRunId:o.optional(),id:i.Yj(),role:i.eu("tool"),content:i.KC([i.Yj(),i.YO(S)]),toolCallId:i.Yj(),error:i.Yj().optional(),encryptedValue:i.Yj().optional(),metadata:a.optional()}),V=i._H({subagentRunId:o.optional(),id:i.Yj(),role:i.eu("activity"),activityType:i.Yj(),content:i.Ie(e=>"object"==typeof e&&null!==e&&!Array.isArray(e)),metadata:a.optional()}),W=i._H({subagentRunId:o.optional(),id:i.Yj(),role:i.eu("reasoning"),content:i.Yj(),encryptedValue:i.Yj().optional(),metadata:a.optional()}),q=i.gM("role",[B,$,G,Y,Z,V,W]),K=i._H({type:i.eu(r.n.MESSAGES_SNAPSHOT),timestamp:i.Wh().min(-0x1fffffffffffff).max(0x1fffffffffffff).optional(),rawEvent:i.bz().refine(e=>null!==e).optional(),metadata:a.optional(),messages:i.YO(q)}),X=i._H({type:i.eu(r.n.ACTIVITY_SNAPSHOT),timestamp:i.Wh().min(-0x1fffffffffffff).max(0x1fffffffffffff).optional(),rawEvent:i.bz().refine(e=>null!==e).optional(),metadata:a.optional(),subagentRunId:o.optional(),messageId:i.Yj(),activityType:i.Yj(),content:i.Ie(e=>"object"==typeof e&&null!==e&&!Array.isArray(e)),replace:i.zM().optional()}),Q=i._H({type:i.eu(r.n.ACTIVITY_DELTA),timestamp:i.Wh().min(-0x1fffffffffffff).max(0x1fffffffffffff).optional(),rawEvent:i.bz().refine(e=>null!==e).optional(),metadata:a.optional(),subagentRunId:o.optional(),messageId:i.Yj(),activityType:i.Yj(),patch:z}),J=i._H({type:i.eu(r.n.RAW),timestamp:i.Wh().min(-0x1fffffffffffff).max(0x1fffffffffffff).optional(),rawEvent:i.bz().refine(e=>null!==e).optional(),metadata:a.optional(),subagentRunId:o.optional(),event:i.bz().refine(e=>void 0!==e),source:i.Yj().optional()}),ee=i._H({type:i.eu(r.n.CUSTOM),timestamp:i.Wh().min(-0x1fffffffffffff).max(0x1fffffffffffff).optional(),rawEvent:i.bz().refine(e=>null!==e).optional(),metadata:a.optional(),subagentRunId:o.optional(),name:i.Yj(),value:i.bz().refine(e=>void 0!==e)}),et=i._H({name:i.Yj(),description:i.Yj(),parameters:i.bz().refine(e=>null!==e).optional(),metadata:a.optional()}),en=i._H({description:i.Yj(),value:i.Yj()}),er=i._H({interruptId:i.Yj(),status:i.k5(["resolved","cancelled"]),payload:i.bz().refine(e=>null!==e).optional(),metadata:a.optional()}),ei=i._H({threadId:i.Yj(),runId:i.Yj(),protocolVersion:i.Yj().optional(),parentRunId:i.Yj().optional(),state:I.refine(e=>null!==e).nullable().transform(e=>e??void 0).optional(),messages:i.YO(q),tools:i.YO(et).default(()=>[]),context:i.YO(en).default(()=>[]),forwardedProps:i.bz().refine(e=>null!==e).optional(),resume:i.YO(er).optional()}),es=i._H({type:i.eu(r.n.RUN_STARTED),timestamp:i.Wh().min(-0x1fffffffffffff).max(0x1fffffffffffff).optional(),rawEvent:i.bz().refine(e=>null!==e).optional(),metadata:a.optional(),threadId:i.Yj(),runId:i.Yj(),protocolVersion:i.Yj().optional(),parentRunId:i.Yj().optional(),input
126:ei.optional()}),ea=i._H({type:i.eu("success"),pendingToolCallIds:i.YO(i.Yj()).optional()}),eo=i._H({subagentRunId:o.optional(),id:i.Yj(),reason:i.Yj(),message:i.Yj().optional(),toolCallId:i.Yj().optional(),responseSchema:i.Ie(e=>"object"==typeof e&&null!==e&&!Array.isArray(e)).optional(),expiresAt:i.Yj().optional(),metadata:a.optional()}),el=i._H({type:i.eu("interrupt"),interrupts:i.YO(eo).min(1)}),eu=i._H({type:i.eu("cancelled")}),ec=i.gM("type",[ea,el,eu]),ed=i._H({provider:i.Yj().optional(),model:i.Yj().optional(),inputTokens:i.Wh().min(0).max(0x1fffffffffffff).optional(),outputTokens:i.Wh().min(0).max(0x1fffffffffffff).optional(),totalTokens:i.Wh().min(0).max(0x1fffffffffffff).optional(),reasoningTokens:i.Wh().min(0).max(0x1fffffffffffff).optional(),cachedInputTokens:i.Wh().min(0).max(0x1fffffffffffff).optional(),cacheWriteInputTokens:i.Wh().min(0).max(0x1fffffffffffff).optional()}),eh=i._H({type:i.eu(r.n.RUN_FINISHED),timestamp:i.Wh().min(-0x1fffffffffffff).max(0x1fffffffffffff).optional(),rawEvent:i.bz().refine(e=>null!==e).optional(),metadata:a.optional(),threadId:i.Yj(),runId:i.Yj(),result:i.bz().refine(e=>null!==e).optional(),outcome:ec.optional(),usage:i.YO(ed).optional()}),ep=i._H({type:i.eu(r.n.RUN_ERROR),timestamp:i.Wh().min(-0x1fffffffffffff).max(0x1fffffffffffff).optional(),rawEvent:i.bz().refine(e=>null!==e).optional(),metadata:a.optional(),message:i.Yj(),code:i.Yj().optional(),usage:i.YO(ed).optional()}),ef=i._H({type:i.eu(r.n.STEP_STARTED),timestamp:i.Wh().min(-0x1fffffffffffff).max(0x1fffffffffffff).optional(),rawEvent:i.bz().refine(e=>null!==e).optional(),metadata:a.optional(),subagentRunId:o.optional(),stepName:i.Yj()}),em=i._H({type:i.eu(r.n.STEP_FINISHED),timestamp:i.Wh().min(-0x1fffffffffffff).max(0x1fffffffffffff).optional(),rawEvent:i.bz().refine(e=>null!==e).optional(),metadata:a.optional(),subagentRunId:o.optional(),stepName:i.Yj()}),eg=i._H({type:i.eu(r.n.REASONING_START),timestamp:i.Wh().min(-0x1fffffffffffff).max(0x1fffffffffffff).optional(),rawEvent:i.bz().refine(e=>null!==e).optional(),metadata:a.optional(),subagentRunId:o.optional(),messageId:i.Yj()}),ey=i._H({type:i.eu(r.n.REASONING_MESSAGE_START),timestamp:i.Wh().min(-0x1fffffffffffff).max(0x1fffffffffffff).optional(),rawEvent:i.bz().refine(e=>null!==e).optional(),metadata:a.optional(),subagentRunId:o.optional(),messageId:i.Yj(),role:i.eu("reasoning")}),ev=i._H({type:i.eu(r.n.REASONING_MESSAGE_CONTENT),timestamp:i.Wh().min(-0x1fffffffffffff).max(0x1fffffffffffff).optional(),rawEvent:i.bz().refine(e=>null!==e).optional(),metadata:a.optional(),subagentRunId:o.optional(),messageId:i.Yj(),delta:i.Yj()}),eb=i._H({type:i.eu(r.n.REASONING_MESSAGE_END),timestamp:i.Wh().min(-0x1fffffffffffff).max(0x1fffffffffffff).optional(),rawEvent:i.bz().refine(e=>null!==e).optional(),metadata:a.optional(),subagentRunId:o.optional(),messageId:i.Yj()}),eE=i._H({type:i.eu(r.n.REASONING_MESSAGE_CHUNK),timestamp:i.Wh().min(-0x1fffffffffffff).max(0x1fffffffffffff).optional(),rawEvent:i.bz().refine(e=>null!==e).optional(),metadata:a.optional(),subagentRunId:o.optional(),messageId:i.Yj().optional(),delta:i.Yj().optional()}),eT=i._H({type:i.eu(r.n.REASONING_END),timestamp:i.Wh().min(-0x1fffffffffffff).max(0x1fffffffffffff).optional(),rawEvent:i.bz().refine(e=>null!==e).optional(),metadata:a.optional(),subagentRunId:o.optional(),messageId:i.Yj()}),e_=i.k5(["tool-call","message"]),eA=i._H({type:i.eu(r.n.REASONING_ENCRYPTED_VALUE),timestamp:i.Wh().min(-0x1fffffffffffff).max(0x1fffffffffffff).optional(),rawEvent:i.bz().refine(e=>null!==e).optional(),metadata:a.optional(),subagentRunId:o.optional(),subtype:e_,entityId:i.Yj(),encryptedValue:i.Yj()}),ex=i._H({type:i.eu(r.n.SUBAGENT_STARTED),timestamp:i.Wh().min(-0x1fffffffffffff).max(0x1fffffffffffff).optional(),rawEvent:i.bz().refine(e=>null!==e).optional(),metadata:a.optional(),subagentRunId:o,name:i.Yj(),description:i.Yj().optional(),parentSubagentRunId:o.optional(),parentToolCallId:i.Yj().optional(),parentMessageId:i.Yj().optional()}),ek=i._H({type:i.eu("success")}),eS=i._H({type:i.eu("suspended"),interruptIds:i.YO(i.Yj()).optional()}),ew=i.gM("type",[ek,eS]),eI=i._H({type:i.eu(r.n.SUBAGENT_FINISHED),timestamp:i.Wh().min(-0x1fffffffffffff).max(0x1fffffffffffff).optional(),rawEvent:i.bz().refine(e=>null!==e).optional(),metadata:a.optional(),subagentRunId:o,result:i.bz().refine(e=>null!==e).optional(),outcome:ew.optional()}),eC=i._H({type:i.eu(r.n.SUBAGENT_ERROR),timestamp:i.Wh().min(-0x1fffffffffffff).max(0x1fffffffffffff).optional(),rawEvent:i.bz().refine(e=>null!==e).optional(),metadata:a.optional(),subagentRunId:o,message:i.Yj(),code:i.Yj().optional()}),eN=i.gM("type",[u,c,d,h,p,f,m,g,w,C,F,K,X,Q,J,ee,es,eh,ep,ef,em,eg,ey,ev,eb,eE,eT,eA,ex,eI,eC]);i.k5(["developer","system","assistant","user","tool","activity","reasoning"]);let eR=i._H({name:i.Yj(),description:i.Yj().optional()}),eO=i._H({name:i.Yj().optional(),type:i.Yj().optional(),description:i.Yj().optional(),version:i.Yj().optional(),provider:i.Yj().optional(),documentationUrl:i.Yj().optional(),metadata:a.optional()}),eP=i._H({streaming:i.zM().optional(),websocket:i.zM().optional(),httpBinary:i.zM().optional(),pushNotifications:i.zM().optional(),resumable:i.zM().optional()}),eD=i._H({supported:i.zM().optional(),items:i.YO(et).optional(),parallelCalls:i.zM().optional(),clientProvided:i.zM().optional()}),eM=i._H({structuredOutput:i.zM().optional(),supportedMimeTypes:i.YO(i.Yj()).optional()}),eL=i._H({snapshots:i.zM().optional(),deltas:i.zM().optional(),memory:i.zM().optional(),persistentState:i.zM().optional()}),ej=i._H({supported:i.zM().optional(),delegation:i.zM().optional(),handoffs:i.zM().optional(),subagents:i.YO(eR).optional()}),ez=i._H({supported:i.zM().optional(),streaming:i.zM().optional(),encrypted:i.zM().optional()}),eF=i._H({image:i.zM().optional(),audio:i.zM().optional(),video:i.zM().optional(),pdf:i.zM().optional(),file:i.zM().optional()}),eB=i._H({image:i.zM().optional(),audio:i.zM().optional()}),e$=i._H({input:eF.optional(),output:eB.optional()}),eU=i._H({codeExecution:i.zM().optional(),sandboxed:i.zM().optional(),maxIterations:i.Wh().min(0).max(0x1fffffffffffff).optional(),maxExecutionTime:i.Wh().min(0).max(0x1fffffffffffff).optional()}),eH=i._H({supported:i.zM().optional(),approvals:i.zM().optional(),interventions:i.zM().optional(),feedback:i.zM().optional(),interrupts:i.zM().optional(),approveWithEdits:i.zM().optional()});i._H({identity:eO.optional(),transport:eP.optional(),tools:eD.optional(),output:eM.optional(),state:eL.optional(),multiAgent:ej.optional(),reasoning:ez.optional(),multimodal:e$.optional(),execution:eU.optional(),humanInTheLoop:eH.optional(),custom:i.Ie(e=>"object"==typeof e&&null!==e&&!Array.isArray(e)).optional()}),i._H({subagentRunId:o.optional()}),i._H({type:s,timestamp:i.Wh().min(-0x1fffffffffffff).max(0x1fffffffffffff).optional(),rawEvent:i.bz().refine(e=>null!==e).optional(),metadata:a.optional()}),i._H({subagentRunId:o.optional(),id:i.Yj(),role:i.Yj(),name:i.Yj().optional(),encryptedValue:i.Yj().optional(),metadata:a.optional()}),a.optional()},76946:function(e,t,n){var r=this&&this.__importDefault||function(e){return e&&e.__esMo
126dule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){let n=null;if(!e||"string"!=typeof e)return n;let r=(0,i.default)(e),s="function"==typeof t;return r.forEach(e=>{if("declaration"!==e.type)return;let{property:r,value:i}=e;s?t(r,i,e):i&&((n=n||{})[r]=i)}),n};let i=r(n(64321))},77079:(e,t,n)=>{n.d(t,{O:()=>u,OS:()=>p,Pf:()=>g,Qt:()=>v,Sg:()=>o,U9:()=>m,_P:()=>d,cl:()=>l,ib:()=>h,vL:()=>a});var r=n(59193);let i=r.Ik({path:r.Yj().describe("A JSON Pointer path to a value in the data model.")}).describe("REF:common_types.json#/$defs/DataBinding|A JSON Pointer path to a value in the data model."),s=r.Ik({call:r.Yj().describe("The name of the function to call."),args:r.g1(r.bz()).describe("Arguments passed to the function."),returnType:r.k5(["string","number","boolean","array","object","any","void"]).default("boolean")}).describe("REF:common_types.json#/$defs/FunctionCall|Invokes a named function on the client."),a=r.KC([r.zM(),i,s]).describe("REF:common_types.json#/$defs/DynamicBoolean|A boolean value that can be a literal, a path, or a function call returning a boolean."),o=r.KC([r.Yj(),i,s]).describe("REF:common_types.json#/$defs/DynamicString|Represents a string"),l=r.KC([r.ai(),i,s]).describe("REF:common_types.json#/$defs/DynamicNumber|Represents a value that can be either a literal number, a path to a number in the data model, or a function call returning a number."),u=r.KC([r.YO(r.Yj()),i,s]).describe("REF:common_types.json#/$defs/DynamicStringList|Represents a value that can be either a literal array of strings, a path to a string array in the data model, or a function call returning a string array."),c=r.KC([r.Yj(),r.ai(),r.zM(),r.YO(r.bz()),i,s]).describe("REF:common_types.json#/$defs/DynamicValue|A value that can be a literal, a path, or a function call returning any type."),d=r.Yj().describe("REF:common_types.json#/$defs/ComponentId|The unique identifier for a component."),h=r.KC([r.YO(d).describe("A static list of child component IDs."),r.Ik({componentId:d,path:r.Yj().describe("The path to the list of component property objects in the data model.")}).describe("A template for generating a dynamic list of children.")]).describe("REF:common_types.json#/$defs/ChildList"),p=r.KC([r.Ik({event:r.Ik({name:r.Yj(),context:r.g1(c).optional()})}).describe("Triggers a server-side event."),r.Ik({functionCall:s}).describe("Executes a local client-side function.")]).describe("REF:common_types.json#/$defs/Action"),f=r.Ik({condition:a,message:r.Yj().describe("The error message to display if the check fails.")}).describe("REF:common_types.json#/$defs/CheckRule|A check rule consisting of a condition and an error message."),m=r.Ik({checks:r.YO(f).optional().describe("A list of checks to perform.")}).describe("REF:common_types.json#/$defs/Checkable|Properties for components that support client-side checks."),g=r.Ik({label:o.optional().describe("REF:common_types.json#/$defs/DynamicString|A short string used by assistive technologies to convey the purpose of an element."),description:o.optional().describe("REF:common_types.json#/$defs/DynamicString|Additional information provided by assistive technologies about an element.")}).describe("REF:common_types.json#/$defs/AccessibilityAttributes|Attributes to enhance accessibility."),y=r.Ik({component:r.Yj().describe("The type name of the component."),id:d.optional(),weight:r.ai().optional()}).passthrough().describe("A generic A2UI component definition."),v={ComponentId:d,ChildList:h,DataBinding:i,DynamicValue:c,DynamicString:o,DynamicNumber:l,DynamicBoolean:a,DynamicStringList:u,FunctionCall:s,CheckRule:f,Checkable:m,Action:p,AccessibilityAttributes:g,AnyComponent:y}},78179:(e,t,n)=>{n.d(t,{B:()=>r});let r="undefined"!=typeof window},78303:(e,t,n)=>{n.d(t,{A:()=>r});let r=(0,n(45751).A)("eye-off",[["path",{d:"M10.733 5.076a10.744 10.744 0 0 1 11.205 6.575 1 1 0 0 1 0 .696 10.747 10.747 0 0 1-1.444 2.49",key:"ct8e1f"}],["path",{d:"M14.084 14.158a3 3 0 0 1-4.242-4.242",key:"151rxh"}],["path",{d:"M17.479 17.499a10.75 10.75 0 0 1-15.417-5.151 1 1 0 0 1 0-.696 10.75 10.75 0 0 1 4.446-5.143",key:"13bj9a"}],["path",{d:"m2 2 20 20",key:"1ooewy"}]])},79217:(e,t,n)=>{function r(e){let t=String(e||"").trim();return t?t.split(/[ \t\n\r\f]+/g):[]}function i(e){return e.join(" ").trim()}n.d(t,{A:()=>i,q:()=>r})},80150:(e,t,n)=>{n.d(t,{R:()=>r});
126class r{constructor(e,t){this.attribute=t,this.property=e}}r.prototype.attribute="",r.prototype.booleanish=!1,r.prototype.boolean=!1,r.prototype.commaOrSpaceSeparated=!1,r.prototype.commaSeparated=!1,r.prototype.defined=!1,r.prototype.mustUseProperty=!1,r.prototype.number=!1,r.prototype.overloadedBoolean=!1,r.prototype.property="",r.prototype.spaceSeparated=!1,r.prototype.space=void 0},80527:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{VALID_LOADERS:function(){return n},imageConfigDefault:function(){return r}});let n=["default","imgix","cloudinary","akamai","custom"],r={deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[16,32,48,64,96,128,256,384],path:"/_next/image",loader:"default",loaderFile:"",domains:[],disableStaticImages:!1,minimumCacheTTL:60,formats:["image/webp"],maximumDiskCacheSize:void 0,maximumResponseBody:5e7,dangerouslyAllowSVG:!1,contentSecurityPolicy:"script-src 'none'; frame-src 'none'; sandbox;",contentDispositionType:"attachment",localPatterns:void 0,remotePatterns:[],qualities:void 0,unoptimized:!1}},81729:(e,t,n)=>{n.d(t,{F:()=>a});var r=n(50742),i=n(34401),s=n(28963);function a(e,t){return void 0===t&&(t=r.D),e=null!=e?e:o,(0,i.N)(function(n,r){var i,a=!0;n.subscribe((0,s._)(r,function(n){var s=t(n);(a||!e(i,s))&&(a=!1,i=s,r.next(n))}))})}function o(e,t){return e===t}},82219:(e,t,n)=>{n.d(t,{A:()=>r});let r=(0,n(45751).A)("thumbs-up",[["path",{d:"M7 10v12",key:"1qc93n"}],["path",{d:"M15 5.88 14 10h5.83a2 2 0 0 1 1.92 2.56l-2.33 8A2 2 0 0 1 17.5 22H4a2 2 0 0 1-2-2v-8a2 2 0 0 1 2-2h2.76a2 2 0 0 0 1.79-1.11L12 2a3.13 3.13 0 0 1 3 3.88Z",key:"emmmcr"}]])},82967:(e,t,n)=>{n.d(t,{AQ:()=>p,C6:()=>i,Cl:()=>s,Ju:()=>u,N3:()=>h,Tt:()=>a,YH:()=>l,fX:()=>d,sH:()=>o,xN:()=>f,zs:()=>c});var r=function(e,t){return(r=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)};function i(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var s=function(){return(s=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};function a(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)0>t.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n}function o(e,t,n,r){return new(n||(n=Promise))(function(i,s){function a(e){try{l(r.next(e))}catch(e){s(e)}}function o(e){try{l(r.throw(e))}catch(e){s(e)}}function l(e){var t;e.done?i(e.value):((t=e.value)instanceof n?t:new n(function(e){e(t)})).then(a,o)}l((r=r.apply(e,t||[])).next())})}function l(e,t){var n,r,i,s={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]},a=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return a.next=o(0),a.throw=o(1),a.return=o(2),"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function o(o){return function(l){var u=[o,l];if(n)throw TypeError("Generator is already executing.");for(;a&&(a=0,u[0]&&(s=0)),s;)try{if(n=1,r&&(i=2&u[0]?r.return:u[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,u[1])).done)return i;switch(r=0,i&&(u=[2&u[0],i.value]),u[0]){case 0:case 1:i=u;break;case 4:return s.label++,{value:u[1],done:!1};case 5:s.label++,r=u[1],u=[0];continue;case 7:u=s.ops.pop(),s.trys.pop();continue;default:if(!(i=(i=s.trys).length>0&&i[i.length-1])&&(6===u[0]||2===u[0])){s=0;continue}if(3===u[0]&&(!i||u[1]>i[0]&&u[1]<i[3])){s.label=u[1];break}if(6===u[0]&&s.label<i[1]){s.label=i[1],i=u;break}if(i&&s.label<i[2]){s.label=i[2],s.ops.push(u);break}i[2]&&s.ops.pop(),s.trys.pop();continue}u=t.call(e,s)}catch(e){u=[6,e],r=0}finally{n=i=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}}}function u(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);
126if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function c(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,s=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=s.next()).done;)a.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=s.return)&&n.call(s)}finally{if(i)throw i.error}}return a}function d(e,t,n){if(n||2==arguments.length)for(var r,i=0,s=t.length;i<s;i++)!r&&i in t||(r||(r=Array.prototype.slice.call(t,0,i)),r[i]=t[i]);return e.concat(r||Array.prototype.slice.call(t))}function h(e){return this instanceof h?(this.v=e,this):new h(e)}function p(e,t,n){if(!Symbol.asyncIterator)throw TypeError("Symbol.asyncIterator is not defined.");var r,i=n.apply(e,t||[]),s=[];return r=Object.create(("function"==typeof AsyncIterator?AsyncIterator:Object).prototype),a("next"),a("throw"),a("return",function(e){return function(t){return Promise.resolve(t).then(e,u)}}),r[Symbol.asyncIterator]=function(){return this},r;function a(e,t){i[e]&&(r[e]=function(t){return new Promise(function(n,r){s.push([e,t,n,r])>1||o(e,t)})},t&&(r[e]=t(r[e])))}function o(e,t){try{var n;(n=i[e](t)).value instanceof h?Promise.resolve(n.value.v).then(l,u):c(s[0][2],n)}catch(e){c(s[0][3],e)}}function l(e){o("next",e)}function u(e){o("throw",e)}function c(e,t){e(t),s.shift(),s.length&&o(s[0][0],s[0][1])}}function f(e){if(!Symbol.asyncIterator)throw TypeError("Symbol.asyncIterator is not defined.");var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e=u(e),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(n){t[n]=e[n]&&function(t){return new Promise(function(r,i){var s,a,o;s=r,a=i,o=(t=e[n](t)).done,Promise.resolve(t.value).then(function(e){s({value:e,done:o})},a)})}}}Object.create,Object.create,"function"==typeof SuppressedError&&SuppressedError},83107:(e,t,n)=>{n.d(t,{$:()=>r});function r(){for(var e,t,n=0,r="",i=arguments.length;n<i;n++)(e=arguments[n])&&(t=function e(t){var n,r,i="";if("string"==typeof t||"number"==typeof t)i+=t;else if("object"==typeof t)if(Array.isArray(t)){var s=t.length;for(n=0;n<s;n++)t[n]&&(r=e(t[n]))&&(i&&(i+=" "),i+=r)}else for(r in t)t[r]&&(i&&(i+=" "),i+=r);return i}(e))&&(r&&(r+=" "),r+=t);return r}},83109:(e,t,n)=>{n.d(t,{$:()=>r});var r={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1}},83230:(e,t,n)=>{n.d(t,{U:()=>r});var r={now:function(){return(r.delegate||Date).now()},delegate:void 0}},83249:function(e,t,n){var r=(this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}})(n(76946)),i=n(85573);function s(e,t){var n={};return e&&"string"==typeof e&&(0,r.default)(e,function(e,r){e&&r&&(n[(0,i.camelCase)(e,t)]=r)}),n}s.default=s,e.exports=s},83632:(e,t,n)=>{n.d(t,{b:()=>r});let r=["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","keygen","link","meta","param","source","track","wbr"]},84741:(e,t,n)=>{n.d(t,{A:()=>s});var r=n(23073),i=n(805);function s(e,t=[]){let n=[],a=()=>{let t=n.map(e=>r.createContext(e));return function(n){let i=n?.[e]||t;return r.useMemo(()=>({[`__scope${e}`]:{...n,[e]:i}}),[n,i])}};return a.scopeName=e,[function(t,s){let a=r.createContext(s),o=n.length;n=[...n,s];let l=t=>{let{scope:n,children:s,...l}=t,u=n?.[e]?.[o]||a,c=r.useMemo(()=>l,Object.values(l));return(0,i.jsx)(u.Provider,{value:c,children:s})};return l.displayName=t+"Provider",[l,function(n,i){let l=i?.[e]?.[o]||a,u=r.useContext(l);if(u)return u;if(void 0!==s)return s;throw Error(`\`${n}\` must be used within \`${t}\``)}]},function(...e){let t=e[0];if(1===e.length)return t;let n=()=>{let n=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){let i=n.reduce((t,{useScope:n,scopeName:r})=>{let i=n(e)[`__scope${r}`];return{...t,...i}},{});return r.useMemo(()=>({[`__scope${t.scopeName}`]:i}),[i])}};return n.scopeName=t.scopeName,n}(a,...t)]}},85159:(e,t,n)=>{n.d(t,{u:()=>p});var r=n(46492),i=n(14998);let{I:s}=r.ge,a=e=>e,o=()=>
126document.createComment(""),l=(e,t,n)=>{let r=e._$AA.parentNode,i=void 0===t?e._$AB:t._$AA;if(void 0===n)n=new s(r.insertBefore(o(),i),r.insertBefore(o(),i),e,e.options);else{let t=n._$AB.nextSibling,s=n._$AM,o=s!==e;if(o){let t;n._$AQ?.(e),n._$AM=e,void 0!==n._$AP&&(t=e._$AU)!==s._$AU&&n._$AP(t)}if(t!==i||o){let e=n._$AA;for(;e!==t;){let t=a(e).nextSibling;a(r).insertBefore(e,i),e=t}}}return n},u=(e,t,n=e)=>(e._$AI(t,n),e),c={},d=e=>{e._$AR(),e._$AA.remove()},h=(e,t,n)=>{let r=new Map;for(let i=t;i<=n;i++)r.set(e[i],i);return r},p=(0,i.u$)(class extends i.WL{constructor(e){if(super(e),e.type!==i.OA.CHILD)throw Error("repeat() can only be used in text expressions")}dt(e,t,n){let r;void 0===n?n=t:void 0!==t&&(r=t);let i=[],s=[],a=0;for(let t of e)i[a]=r?r(t,a):a,s[a]=n(t,a),a++;return{values:s,keys:i}}render(e,t,n){return this.dt(e,t,n).values}update(e,[t,n,i]){let s=e._$AH,{values:a,keys:o}=this.dt(t,n,i);if(!Array.isArray(s))return this.ut=o,a;let p=this.ut??=[],f=[],m,g,y=0,v=s.length-1,b=0,E=a.length-1;for(;y<=v&&b<=E;)if(null===s[y])y++;else if(null===s[v])v--;else if(p[y]===o[b])f[b]=u(s[y],a[b]),y++,b++;else if(p[v]===o[E])f[E]=u(s[v],a[E]),v--,E--;else if(p[y]===o[E])f[E]=u(s[y],a[E]),l(e,f[E+1],s[y]),y++,E--;else if(p[v]===o[b])f[b]=u(s[v],a[b]),l(e,s[y],s[v]),v--,b++;else if(void 0===m&&(m=h(o,b,E),g=h(p,y,v)),m.has(p[y]))if(m.has(p[v])){let t=g.get(o[b]),n=void 0!==t?s[t]:null;if(null===n){let t=l(e,s[y]);u(t,a[b]),f[b]=t}else f[b]=u(n,a[b]),l(e,s[y],n),s[t]=null;b++}else d(s[v]),v--;else d(s[y]),y++;for(;b<=E;){let t=l(e,f[E+1]);u(t,a[b]),f[b++]=t}for(;y<=v;){let e=s[y++];null!==e&&d(e)}return this.ut=o,((e,t=c)=>e._$AH=t)(e,f),r.c0}})},85197:(e,t,n)=>{n.d(t,{qy:()=>y,JW:()=>v});class r{constructor(e,t,n){this.normal=t,this.property=e,n&&(this.space=n)}}function i(e,t){let n={},i={};for(let t of e)Object.assign(n,t.property),Object.assign(i,t.normal);return new r(n,i,t)}r.prototype.normal={},r.prototype.property={},r.prototype.space=void 0;var s=n(2804),a=n(28366);function o(e){let t={},n={};for(let[r,i]of Object.entries(e.properties)){let o=new a.E(r,e.transform(e.attributes||{},r),i,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(o.mustUseProperty=!0),t[r]=o,n[(0,s.S)(r)]=r,n[(0,s.S)(o.attribute)]=r}return new r(t,n,e.space)}var l=n(38207);let u=o({properties:{ariaActiveDescendant:null,ariaAtomic:l.booleanish,ariaAutoComplete:null,ariaBusy:l.booleanish,ariaChecked:l.booleanish,ariaColCount:l.number,ariaColIndex:l.number,ariaColSpan:l.number,ariaControls:l.spaceSeparated,ariaCurrent:null,ariaDescribedBy:l.spaceSeparated,ariaDetails:null,ariaDisabled:l.booleanish,ariaDropEffect:l.spaceSeparated,ariaErrorMessage:null,ariaExpanded:l.booleanish,ariaFlowTo:l.spaceSeparated,ariaGrabbed:l.booleanish,ariaHasPopup:null,ariaHidden:l.booleanish,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:l.spaceSeparated,ariaLevel:l.number,ariaLive:null,ariaModal:l.booleanish,ariaMultiLine:l.booleanish,ariaMultiSelectable:l.booleanish,ariaOrientation:null,ariaOwns:l.spaceSeparated,ariaPlaceholder:null,ariaPosInSet:l.number,ariaPressed:l.booleanish,ariaReadOnly:l.booleanish,ariaRelevant:null,ariaRequired:l.booleanish,ariaRoleDescription:l.spaceSeparated,ariaRowCount:l.number,ariaRowIndex:l.number,ariaRowSpan:l.number,ariaSelected:l.booleanish,ariaSetSize:l.number,ariaSort:null,ariaValueMax:l.number,ariaValueMin:l.number,ariaValueNow:l.number,ariaValueText:null,role:null},transform:(e,t)=>"role"===t?t:"aria-"+t.slice(4).toLowerCase()});function c(e,t){return t in e?e[t]:t}function d(e,t){return c(e,t.toLowerCase())}let h=o({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:l.commaSeparated,acceptCharset:l.spaceSeparated,accessKey:l.spaceSeparated,action:null,allow:null,allowFullScreen:l.boolean,allowPaymentRequest:l.boolean,allowUserMedia:l.boolean,alt:null,as:null,async:l.boolean,autoCapitalize:null,autoComplete:l.spaceSeparated,autoFocus:l.boolean,autoPlay:l.boolean,blocking:l.spaceSeparated,capture:null,charSet:null,checked:l.boolean,cite:null,className:l.spaceSeparated,cols:l.number,colSpan:null,content:null,contentEditable:l.booleanish,controls:l.boolean,controlsList:l.spaceSeparated,coords:l.number|l.commaSeparated,crossOrigin:null,data:null,dateTime:null,decoding:null,default:l.boolean,defer:l.boolean,dir:null,dirName:null,disabled:l.boolean,download:l.overloadedBoolean,draggable:l.booleanish,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:l.boolean,formTarget:null,headers:l.spaceSeparated,height:l.number,hidden:l.overloadedBoolean,high:l.number,href:null,hrefLang:null,htmlFor:l.spaceSeparated,httpEquiv:l.spaceSeparated,id:null,imageSizes:null,imageSrcSet:null,inert:l.boolean,inputMode:null,integrity:null,is:null,isMap:l.boolean,itemId:null,itemProp:l.spaceSeparated,itemRef:l.spaceSeparated,itemScope:l.boolean,itemType:l.spaceSeparated,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:l.boolean,low:l.number,manifest:null,max:null,maxLength:l.number,media:null,method:null,min:null,minLength:l.number,multiple:l.boolean,muted:l.boolean,name:null,nonce:null,noModule:l.boolean,noValidate:l.boolean,onAbort:null,onAfterPrint:null,onAuxCl
126ick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:l.boolean,optimum:l.number,pattern:null,ping:l.spaceSeparated,placeholder:null,playsInline:l.boolean,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:l.boolean,referrerPolicy:null,rel:l.spaceSeparated,required:l.boolean,reversed:l.boolean,rows:l.number,rowSpan:l.number,sandbox:l.spaceSeparated,scope:null,scoped:l.boolean,seamless:l.boolean,selected:l.boolean,shadowRootClonable:l.boolean,shadowRootDelegatesFocus:l.boolean,shadowRootMode:null,shape:null,size:l.number,sizes:null,slot:null,span:l.number,spellCheck:l.booleanish,src:null,srcDoc:null,srcLang:null,srcSet:null,start:l.number,step:null,style:null,tabIndex:l.number,target:null,title:null,translate:null,type:null,typeMustMatch:l.boolean,useMap:null,value:l.booleanish,width:l.number,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:l.spaceSeparated,axis:null,background:null,bgColor:null,border:l.number,borderColor:null,bottomMargin:l.number,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:l.boolean,declare:l.boolean,event:null,face:null,frame:null,frameBorder:null,hSpace:l.number,leftMargin:l.number,link:null,longDesc:null,lowSrc:null,marginHeight:l.number,marginWidth:l.number,noResize:l.boolean,noHref:l.boolean,noShade:l.boolean,noWrap:l.boolean,object:null,profile:null,prompt:null,rev:null,rightMargin:l.number,rules:null,scheme:null,scrolling:l.booleanish,standby:null,summary:null,text:null,topMargin:l.number,valueType:null,version:null,vAlign:null,vLink:null,vSpace:l.number,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:l.boolean,disableRemotePlayback:l.boolean,prefix:null,property:null,results:l.number,security:null,unselectable:null},space:"html",transform:d}),p=o({attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav
126-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},properties:{about:l.commaOrSpaceSeparated,accentHeight:l.number,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:l.number,amplitude:l.number,arabicForm:null,ascent:l.number,attributeName:null,attributeType:null,azimuth:l.number,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:l.number,by:null,calcMode:null,capHeight:l.number,className:l.spaceSeparated,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:l.number,diffuseConstant:l.number,direction:null,display:null,dur:null,divisor:l.number,dominantBaseline:null,download:l.boolean,dx:null,dy:null,edgeMode:null,editable:null,elevation:l.number,enableBackgroun
126d:null,end:null,event:null,exponent:l.number,externalResourcesRequired:null,fill:null,fillOpacity:l.number,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:l.commaSeparated,g2:l.commaSeparated,glyphName:l.commaSeparated,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:l.number,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:l.number,horizOriginX:l.number,horizOriginY:l.number,id:null,ideographic:l.number,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:l.number,k:l.number,k1:l.number,k2:l.number,k3:l.number,k4:l.number,kernelMatrix:l.commaOrSpaceSeparated,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:l.number,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:l.number,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:l.number,overlineThickness:l.number,paintOrder:null,panose1:null,path:null,pathLength:l.number,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:l.spaceSeparated,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:l.number,pointsAtY:l.number,pointsAtZ:l.number,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:l.commaOrSpaceSeparated,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:l.commaOrSpaceSeparated,rev:l.commaOrSpaceSeparated,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:l.commaOrSpaceSeparated,requiredFeatures:l.commaOrSpaceSeparated,requiredFonts:l.commaOrSpaceSeparated,requiredFormats:l.commaOrSpaceSeparated,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:l.number,specularExponent:l.number,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:l.number,strikethroughThickness:l.number,string:null,stroke:null,strokeDashArray:l.commaOrSpaceSeparated,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:l.number,strokeOpacity:l.number,strokeWidth:null,style:null,surfaceScale:l.number,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:l.commaOrSpaceSeparated,tabIndex:l.number,tableValues:null,target:null,targetX:l.number,targetY:l.number,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:l.commaOrSpaceSeparated,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:l.number,underlineThickness:l.number,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:l.number,values:null,vAlphabetic:l.number,vMathematical:l.number,vectorEffect:null,vHanging:l.number,vIdeographic:l.number,version:null,vertAdvY:l.number,vertOriginX:l.number,vertOriginY:l.number,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:l.number,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:c}),f=o({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform:(e,t)=>
126"xlink:"+t.slice(5).toLowerCase()}),m=o({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:d}),g=o({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform:(e,t)=>"xml:"+t.slice(3).toLowerCase()}),y=i([u,h,f,m,g],"html"),v=i([u,p,f,m,g],"svg")},85573:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.camelCase=void 0;var n=/^--[a-zA-Z0-9_-]+$/,r=/-([a-z])/g,i=/^[^-]+$/,s=/^-(webkit|moz|ms|o|khtml)-/,a=/^-(ms)-/,o=function(e,t){return t.toUpperCase()},l=function(e,t){return"".concat(t,"-")};t.camelCase=function(e,t){var u;return(void 0===t&&(t={}),!(u=e)||i.test(u)||n.test(u))?e:(e=e.toLowerCase(),(e=t.reactCompat?e.replace(a,l):e.replace(s,l)).replace(r,o))}},87611:(e,t,n)=>{n.d(t,{E:()=>i,b:()=>s});var r=n(1645),i=new(n(32860)).q(r.R),s=i},88196:(e,t,n)=>{let r;n.d(t,{Ik:()=>k});let i=Symbol("Let zodToJsonSchema decide on which parser to use"),s={name:void 0,$refStrategy:"root",basePath:["#"],effectStrategy:"input",pipeStrategy:"all",dateStrategy:"format:date-time",mapStrategy:"entries",removeAdditionalStrategy:"passthrough",allowedAdditionalProperties:!0,rejectedAdditionalProperties:!1,definitionPath:"definitions",target:"jsonSchema7",strictUnions:!1,definitions:{},errorMessages:!1,markdownDescription:!1,patternStrategy:"escape",applyRegexFlags:!1,emailStrategy:"format:email",base64Strategy:"contentEncoding:base64",nameStrategy:"ref",openAiAnyTypeName:"OpenAiAnyType"};var a=n(59193);let o=(e,t)=>{let n=0;for(;n<e.length&&n<t.length&&e[n]===t[n];n++);return[(e.length-n).toString(),...t.slice(n)].join("/")};function l(e){if("openAi"!==e.target)return{};let t=[...e.basePath,e.definitionPath,e.openAiAnyTypeName];return e.flags.hasReferencedOpenAiAnyType=!0,{$ref:"relative"===e.$refStrategy?o(t,e.currentPath):t.join("/")}}function u(e,t,n,r){r?.errorMessages&&n&&(e.errorMessage={...e.errorMessage,[t]:n})}function c(e,t,n,r,i){e[t]=n,u(e,t,r,i)}function d(e,t){return _(e.type._def,t)}let h={cuid:/^[cC][^\s-]{8,}$/,cuid2:/^[0-9a-z]+$/,ulid:/^[0-9A-HJKMNP-TV-Z]{26}$/,email:/^(?!\.)(?!.*\.\.)([a-zA-Z0-9_'+\-\.]*)[a-zA-Z0-9_+-]@([a-zA-Z0-9][a-zA-Z0-9\-]*\.)+[a-zA-Z]{2,}$/,emoji:()=>(void 0===r&&(r=RegExp("^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$","u")),r),ipv4Cidr:/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/(3[0-2]|[12]?[0-9])$/,ipv6Cidr:/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,base64:/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,base64url:/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,nanoid:/^[a-zA-Z0-9_-]{21}$/,jwt:/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/};function p(e,t){let n={type:"string"};if(e.checks)for(let r of e.checks)switch(r.kind){case"min":c(n,"minLength","number"==typeof n.minLength?Math.max(n.minLength,r.value):r.value,r.message,t);break;case"max":c(n,"maxLength","number"==typeof n.maxLength?Math.min(n.maxLength,r.value):r.value,r.message,t);break;case"email":switch(t.emailStrategy){case"format:email":g(n,"email",r.message,t);break;case"format:idn-email":g(n,"idn-email",r.message,t);break;case"pattern:zod":y(n,h.email,r.message,t)}break;case"url":g(n,"uri",r.message,t);break;case"uuid":g(n,"uuid",r.message,t);break;case"regex":y(n,r.regex,r.message,t);break;case"cuid":y(n,h.cuid,r.message,t);break;case"cuid2":y(n,h.cuid2,r.message,t);break;case"startsWith":y(n,RegExp(`^${f(r.value,t)}`),r.message,t);break;case"endsWith":y(n,RegExp(`${f(r.value,t)}$`),r.message,t);break;case"datetime":g(n,"date-time",r.message,t);break;case"date":g(n,"date",r.message,t);break;case"time":g(n,"time",r.message,t);break;case"duration":g(n,"duration",r.message,t);break;case"length":c(n,"minLength","number"==typeof n.minLength?Math.max(n.minLength,r.value):r.value,r.message,t),c(n,"maxLength","number"==typeof n.maxLength?Math.min(n.maxLength,r.value):r.value,r.message,t);break;case"includes":y(n,RegExp(f(r.value,t)),r.message,t);break;case"ip":"v6"!==r.version&&g(n,"ipv4",r.message,t),"v4"!==r.version&&g(n,"ipv6",r.message,t);break;case"base64url":y(n,h.base64url,r.message,t);break;case"jwt":y(n,h.jwt,r.message,t);break;case"cidr":"v6"!==r.version&&y(n,h.ipv4Cidr,r.message,t),"v4"!==r.version&&y(n,h.ipv6Cidr,r.message,t);break;case"emoji":y(n,h.emoji(),r.message,t);break;case"ulid":y(n,h.ulid,r.message,t);break;case"base64":switch(t.base64Strategy){case"format:binary":g(n,"binary",r.message,t);break;case"contentEncoding:base64":c(n,"contentEncoding","base64",r.message,t);break;case"pattern:zod":y(n,h.base64,r.message,t)}break;case"nanoid":y(n,h.nanoid,r.message,t)}return n}function f(e,t){return"escape"===t.patternStrategy?function(e){let t="";for(let n=0;n<e.length;
126n++)m.has(e[n])||(t+="\\"),t+=e[n];return t}(e):e}let m=new Set("ABCDEFGHIJKLMNOPQRSTUVXYZabcdefghijklmnopqrstuvxyz0123456789");function g(e,t,n,r){e.format||e.anyOf?.some(e=>e.format)?(e.anyOf||(e.anyOf=[]),e.format&&(e.anyOf.push({format:e.format,...e.errorMessage&&r.errorMessages&&{errorMessage:{format:e.errorMessage.format}}}),delete e.format,e.errorMessage&&(delete e.errorMessage.format,0===Object.keys(e.errorMessage).length&&delete e.errorMessage)),e.anyOf.push({format:t,...n&&r.errorMessages&&{errorMessage:{format:n}}})):c(e,"format",t,n,r)}function y(e,t,n,r){e.pattern||e.allOf?.some(e=>e.pattern)?(e.allOf||(e.allOf=[]),e.pattern&&(e.allOf.push({pattern:e.pattern,...e.errorMessage&&r.errorMessages&&{errorMessage:{pattern:e.errorMessage.pattern}}}),delete e.pattern,e.errorMessage&&(delete e.errorMessage.pattern,0===Object.keys(e.errorMessage).length&&delete e.errorMessage)),e.allOf.push({pattern:v(t,r),...n&&r.errorMessages&&{errorMessage:{pattern:n}}})):c(e,"pattern",v(t,r),n,r)}function v(e,t){if(!t.applyRegexFlags||!e.flags)return e.source;let n={i:e.flags.includes("i"),m:e.flags.includes("m"),s:e.flags.includes("s")},r=n.i?e.source.toLowerCase():e.source,i="",s=!1,a=!1,o=!1;for(let e=0;e<r.length;e++){if(s){i+=r[e],s=!1;continue}if(n.i){if(a){if(r[e].match(/[a-z]/)){o?(i+=r[e],i+=`${r[e-2]}-${r[e]}`.toUpperCase(),o=!1):"-"===r[e+1]&&r[e+2]?.match(/[a-z]/)?(i+=r[e],o=!0):i+=`${r[e]}${r[e].toUpperCase()}`;continue}}else if(r[e].match(/[a-z]/)){i+=`[${r[e]}${r[e].toUpperCase()}]`;continue}}if(n.m){if("^"===r[e]){i+=`(^|(?<=[\r 127]))`;continue}else if("$"===r[e]){i+=`($|(?=[\r 128]))`;continue}}if(n.s&&"."===r[e]){i+=a?`${r[e]}\r 129`:`[${r[e]}\r 130]`;continue}i+=r[e],"\\"===r[e]?s=!0:a&&"]"===r[e]?a=!1:a||"["!==r[e]||(a=!0)}try{new RegExp(i)}catch{return console.warn(`Could not convert regex pattern at ${t.currentPath.join("/")} to a flag-independent form! Falling back to the flag-ignorant source`),e.source}return i}function b(e,t){if("openAi"===t.target&&console.warn("Warning: OpenAI may not support records in schemas! Try an array of key-value pairs instead."),"openApi3"===t.target&&e.keyType?._def.typeName===a.kY.ZodEnum)return{type:"object",required:e.keyType._def.values,properties:e.keyType._def.values.reduce((n,r)=>({...n,[r]:_(e.valueType._def,{...t,currentPath:[...t.currentPath,"properties",r]})??l(t)}),{}),additionalProperties:t.rejectedAdditionalProperties};let n={type:"object",additionalProperties:_(e.valueType._def,{...t,currentPath:[...t.currentPath,"additionalProperties"]})??t.allowedAdditionalProperties};if("openApi3"===t.target)return n;if(e.keyType?._def.typeName===a.kY.ZodString&&e.keyType._def.checks?.length){let{type:r,...i}=p(e.keyType._def,t);return{...n,propertyNames:i}}if(e.keyType?._def.typeName===a.kY.ZodEnum)return{...n,propertyNames:{enum:e.keyType._def.values}};if(e.keyType?._def.typeName===a.kY.ZodBranded&&e.keyType._def.type._def.typeName===a.kY.ZodString&&e.keyType._def.type._def.checks?.length){let{type:r,...i}=d(e.keyType._def,t);return{...n,propertyNames:i}}return n}let E={ZodString:"string",ZodNumber:"number",ZodBigInt:"integer",ZodBoolean:"boolean",ZodNull:"null"},T=(e,t)=>{let n=(e.options instanceof Map?Array.from(e.options.values()):e.options).map((e,n)=>_(e._def,{...t,currentPath:[...t.currentPath,"anyOf",`${n}`]})).filter(e=>!!e&&(!t.strictUnions||"object"==typeof e&&Object.keys(e).length>0));return n.length?{anyOf:n}:void 0};function _(e,t,n=!1){let r=t.seen.get(e);if(t.override){let s=t.override?.(e,t,r,n);if(s!==i)return s}if(r&&!n){let e=A(r,t);if(void 0!==e)return e}let s={def:e,path:t.currentPath,jsonSchema:void 0};t.seen.set(e,s);let o=((e,t,n)=>{switch(t){case a.kY.ZodString:return p(e,n);case a.kY.ZodNumber:var r,i,s,o,h,f,m,g,y,v=e,A=n;let x={type:"number"};if(!v.checks)return x;for(let e of v.checks)switch(e.kind){case"int":x.type="integer",u(x,"type",e.message,A);break;case"min":"jsonSchema7"===A.target?e.inclusive?c(x,"minimum",e.value,e.message,A):c(x,"exclusiveMinimum",e.value,e.message,A):(e.inclusive||(x.exclusiveMinimum=!0),c(x,"minimum",e.value,e.message,A));break;case"max":"jsonSchema7"===A.target?e.inclusive?c(x,"maximum",e.value,e.message,A):c(x,"exclusiveMaximum",e.value,e.message,A):(e.inclusive||(x.exclusiveMaximum=!0),c(x,"maximum",e.value,e.message,A));break;case"multipleOf":c(x,"multipleOf",e.value,e.message,A)}return x;case a.kY.ZodObject:return function(e,t){let n="openAi"===t.target,r={type:"object",properties:{}},i=[],s=e.shape();for(let e in s){let a=s[e];if(void 0===a||void 0===a._def)continue;let o=function(e){try{return e.isOptional()}catch{return!0}}(a);o&&n&&("ZodOptional"===a._def.typeName&&(a=a._def.innerType),a.isNullable()||(a=a.nullable()),o=!1);let l=_(a._def,{...t,currentPath:[...t.currentPath,"properties",e],propertyPath:[...t.currentPath,"properties",e]});void 0!==l&&(r.properties[e]=l,o||i.push(e))}i.length&&(r.required=i);let a=function(e,t){if("ZodNever"!==e.catchall._def.typeName)return _(e.catchall._def,{...t,currentPath:[...t.currentPath,"additionalProperties"]});switch(e.unknownKeys){case"passthrough":return t.allowedAdditionalProperties;case"strict":return t.rejectedAdditionalProperties;case"strip":return"strict"===t.removeAdditionalStrategy?t.allowedAdditionalProperties:t.rejectedAdditionalProperties}}(e,t);return void 0!==a&&(r.additionalProperties=a),r}(e,n);case a.kY.ZodBigInt:var k=e,S=n;let w={type:"integer",format:"int64"};if(!k.checks)return w;for(let e of k.checks)switch(e.kind){case"min":"jsonSchema7"===S.target?e.inclusive?c(w,"minimum",e.value,e.message,S):c(w,"exclusiveMinimum",e.value,e.message,S):(e.inclusive||(w.exclusiveMinimum=!0),c(w,"minimum",e.value,e.message,S));break;case"max":"jsonSchema7"===S.target?e.inclusive?c(w,"maximum",e.value,e.message,S):c(w,"exclusiveMaximum",e.value,e.message,S):(e.inclusive||(w.exclusiveMaximum=!0),c(w,"maximum",e.value,e.message,S));break;case"multipleOf":c(w,"multipleOf",e.value,e.message,S)}return w;case a.kY.ZodBoolean:return{type:"boolean"};
130case a.kY.ZodDate:return function e(t,n,r){let i=r??n.dateStrategy;if(Array.isArray(i))return{anyOf:i.map((r,i)=>e(t,n,r))};switch(i){case"string":case"format:date-time":return{type:"string",format:"date-time"};case"format:date":return{type:"string",format:"date"};case"integer":var s=t,a=n;let o={type:"integer",format:"unix-time"};if("openApi3"===a.target)return o;for(let e of s.checks)switch(e.kind){case"min":c(o,"minimum",e.value,e.message,a);break;case"max":c(o,"maximum",e.value,e.message,a)}return o}}(e,n);case a.kY.ZodUndefined:return{not:l(n)};case a.kY.ZodNull:return"openApi3"===n.target?{enum:["null"],nullable:!0}:{type:"null"};case a.kY.ZodArray:var I=e,C=n;let N={type:"array"};return I.type?._def&&I.type?._def?.typeName!==a.kY.ZodAny&&(N.items=_(I.type._def,{...C,currentPath:[...C.currentPath,"items"]})),I.minLength&&c(N,"minItems",I.minLength.value,I.minLength.message,C),I.maxLength&&c(N,"maxItems",I.maxLength.value,I.maxLength.message,C),I.exactLength&&(c(N,"minItems",I.exactLength.value,I.exactLength.message,C),c(N,"maxItems",I.exactLength.value,I.exactLength.message,C)),N;case a.kY.ZodUnion:case a.kY.ZodDiscriminatedUnion:var R=e,O=n;if("openApi3"===O.target)return T(R,O);let P=R.options instanceof Map?Array.from(R.options.values()):R.options;if(P.every(e=>e._def.typeName in E&&(!e._def.checks||!e._def.checks.length))){let e=P.reduce((e,t)=>{let n=E[t._def.typeName];return n&&!e.includes(n)?[...e,n]:e},[]);return{type:e.length>1?e:e[0]}}if(P.every(e=>"ZodLiteral"===e._def.typeName&&!e.description)){let e=P.reduce((e,t)=>{let n=typeof t._def.value;switch(n){case"string":case"number":case"boolean":return[...e,n];case"bigint":return[...e,"integer"];case"object":if(null===t._def.value)return[...e,"null"];default:return e}},[]);if(e.length===P.length){let t=e.filter((e,t,n)=>n.indexOf(e)===t);return{type:t.length>1?t:t[0],enum:P.reduce((e,t)=>e.includes(t._def.value)?e:[...e,t._def.value],[])}}}else if(P.every(e=>"ZodEnum"===e._def.typeName))return{type:"string",enum:P.reduce((e,t)=>[...e,...t._def.values.filter(t=>!e.includes(t))],[])};return T(R,O);case a.kY.ZodIntersection:var D=e,M=n;let L=[_(D.left._def,{...M,currentPath:[...M.currentPath,"allOf","0"]}),_(D.right._def,{...M,currentPath:[...M.currentPath,"allOf","1"]})].filter(e=>!!e),j="jsonSchema2019-09"===M.target?{unevaluatedProperties:!1}:void 0,z=[];return L.forEach(e=>{if((!("type"in e)||"string"!==e.type)&&"allOf"in e)z.push(...e.allOf),void 0===e.unevaluatedProperties&&(j=void 0);else{let t=e;if("additionalProperties"in e&&!1===e.additionalProperties){let{additionalProperties:n,...r}=e;t=r}else j=void 0;z.push(t)}}),z.length?{allOf:z,...j}:void 0;case a.kY.ZodTuple:return r=e,i=n,r.rest?{type:"array",minItems:r.items.length,items:r.items.map((e,t)=>_(e._def,{...i,currentPath:[...i.currentPath,"items",`${t}`]})).reduce((e,t)=>void 0===t?e:[...e,t],[]),additionalItems:_(r.rest._def,{...i,currentPath:[...i.currentPath,"additionalItems"]})}:{type:"array",minItems:r.items.length,maxItems:r.items.length,items:r.items.map((e,t)=>_(e._def,{...i,currentPath:[...i.currentPath,"items",`${t}`]})).reduce((e,t)=>void 0===t?e:[...e,t],[])};case a.kY.ZodRecord:return b(e,n);case a.kY.ZodLiteral:var F=e,B=n;let $=typeof F.value;return"bigint"!==$&&"number"!==$&&"boolean"!==$&&"string"!==$?{type:Array.isArray(F.value)?"array":"object"}:"openApi3"===B.target?{type:"bigint"===$?"integer":$,enum:[F.value]}:{type:"bigint"===$?"integer":$,const:F.value};case a.kY.ZodEnum:return{type:"string",enum:Array.from(e.values)};case a.kY.ZodNativeEnum:var U=e;let H=U.values,G=Object.keys(U.values).filter(e=>"number"!=typeof H[H[e]]).map(e=>H[e]),Y=Array.from(new Set(G.map(e=>typeof e)));return{type:1===Y.length?"string"===Y[0]?"string":"number":["string","number"],enum:G};case a.kY.ZodNullable:var Z=e,V=n;if(["ZodString","ZodNumber","ZodBigInt","ZodBoolean","ZodNull"].includes(Z.innerType._def.typeName)&&(!Z.innerType._def.checks||!Z.innerType._def.checks.length))return"openApi3"===V.target?{type:E[Z.innerType._def.typeName],nullable:!0}:{type:[E[Z.innerType._def.typeName],"null"]};if("openApi3"===V.target){let e=_(Z.innerType._def,{...V,currentPath:[...V.currentPath]});return e&&"$ref"in e?{allOf:[e],nullable:!0}:e&&{...e,nullable:!0}}let W=_(Z.innerType._def,{...V,currentPath:[...V.currentPath,"anyOf","0"]});return W&&{anyOf:[W,{type:"null"}]};case a.kY.ZodOptional:var q=e,K=n;if(K.currentPath.toString()===K.propertyPath?.toString())return _(q.innerType._def,K);
130let X=_(q.innerType._def,{...K,currentPath:[...K.currentPath,"anyOf","1"]});return X?{anyOf:[{not:l(K)},X]}:l(K);case a.kY.ZodMap:return s=e,"record"===(o=n).mapStrategy?b(s,o):{type:"array",maxItems:125,items:{type:"array",items:[_(s.keyType._def,{...o,currentPath:[...o.currentPath,"items","items","0"]})||l(o),_(s.valueType._def,{...o,currentPath:[...o.currentPath,"items","items","1"]})||l(o)],minItems:2,maxItems:2}};case a.kY.ZodSet:var Q=e,J=n;let ee={type:"array",uniqueItems:!0,items:_(Q.valueType._def,{...J,currentPath:[...J.currentPath,"items"]})};return Q.minSize&&c(ee,"minItems",Q.minSize.value,Q.minSize.message,J),Q.maxSize&&c(ee,"maxItems",Q.maxSize.value,Q.maxSize.message,J),ee;case a.kY.ZodLazy:return()=>e.getter()._def;case a.kY.ZodPromise:return _(e.type._def,n);case a.kY.ZodNaN:case a.kY.ZodNever:return"openAi"===(h=n).target?void 0:{not:l({...h,currentPath:[...h.currentPath,"not"]})};case a.kY.ZodEffects:return f=e,"input"===(m=n).effectStrategy?_(f.schema._def,m):l(m);case a.kY.ZodAny:case a.kY.ZodUnknown:return l(n);case a.kY.ZodDefault:return g=e,y=n,{..._(g.innerType._def,y),default:g.defaultValue()};case a.kY.ZodBranded:return d(e,n);case a.kY.ZodReadonly:case a.kY.ZodCatch:return _(e.innerType._def,n);case a.kY.ZodPipeline:var et=e,en=n;if("input"===en.pipeStrategy)return _(et.in._def,en);if("output"===en.pipeStrategy)return _(et.out._def,en);let er=_(et.in._def,{...en,currentPath:[...en.currentPath,"allOf","0"]}),ei=_(et.out._def,{...en,currentPath:[...en.currentPath,"allOf",er?"1":"0"]});return{allOf:[er,ei].filter(e=>void 0!==e)};case a.kY.ZodFunction:case a.kY.ZodVoid:case a.kY.ZodSymbol:default:return}})(e,e.typeName,t),h="function"==typeof o?_(o(),t):o;if(h&&x(e,t,h),t.postProcess){let n=t.postProcess(h,e,t);return s.jsonSchema=h,n}return s.jsonSchema=h,h}let A=(e,t)=>{switch(t.$refStrategy){case"root":return{$ref:e.path.join("/")};case"relative":return{$ref:o(t.currentPath,e.path)};case"none":case"seen":if(e.path.length<t.currentPath.length&&e.path.every((e,n)=>t.currentPath[n]===e))return console.warn(`Recursive reference detected at ${t.currentPath.join("/")}! Defaulting to any`),l(t);return"seen"===t.$refStrategy?l(t):void 0}},x=(e,t,n)=>(e.description&&(n.description=e.description,t.markdownDescription&&(n.markdownDescription=e.description)),n),k=(e,t)=>{let n=(e=>{let t=(e=>"string"==typeof e?{...s,name:e}:{...s,...e})(e),n=void 0!==t.name?[...t.basePath,t.definitionPath,t.name]:t.basePath;return{...t,flags:{hasReferencedOpenAiAnyType:!1},currentPath:n,propertyPath:void 0,seen:new Map(Object.entries(t.definitions).map(([e,n])=>[n._def,{def:n._def,path:[...t.basePath,t.definitionPath,e],jsonSchema:void 0}]))}})(t),r="object"==typeof t&&t.definitions?Object.entries(t.definitions).reduce((e,[t,r])=>({...e,[t]:_(r._def,{...n,currentPath:[...n.basePath,n.definitionPath,t]},!0)??l(n)}),{}):void 0,i="string"==typeof t?t:t?.nameStrategy==="title"?void 0:t?.name,a=_(e._def,void 0===i?n:{...n,currentPath:[...n.basePath,n.definitionPath,i]},!1)??l(n),o="object"==typeof t&&void 0!==t.name&&"title"===t.nameStrategy?t.name:void 0;void 0!==o&&(a.title=o),n.flags.hasReferencedOpenAiAnyType&&(r||(r={}),r[n.openAiAnyTypeName]||(r[n.openAiAnyTypeName]={type:["string","number","integer","boolean","array","null"],items:{$ref:"relative"===n.$refStrategy?"1":[...n.basePath,n.definitionPath,n.openAiAnyTypeName].join("/")}}));let u=void 0===i?r?{...a,[n.definitionPath]:r}:a:{$ref:[..."relative"===n.$refStrategy?[]:n.basePath,n.definitionPath,i].join("/"),[n.definitionPath]:{...r,[i]:a}};return"jsonSchema7"===n.target?u.$schema="http://json-schema.org/draft-07/schema#":("jsonSchema2019-09"===n.target||"openAi"===n.target)&&(u.$schema="https://json-schema.org/draft/2019-09/schema#"),"openAi"===n.target&&("anyOf"in u||"oneOf"in u||"allOf"in u||"type"in u&&Array.isArray(u.type))&&console.warn("Warning: OpenAI may not support schemas with unions as roots! Try wrapping it in an object property."),u}},88463:(e,t,n)=>{n.d(t,{G:()=>a,g:()=>o});var r=n(69684),i=n(13452);let s=(e,t)=>{r.a$.init(e,t),e.name="ZodError",Object.defineProperties(e,{format:{value:t=>r.Wk(e,t)},flatten:{value:t=>r.JM(e,t)},addIssue:{value:t=>e.issues.push(t)},addIssues:{value:t=>e.issues.push(...t)},isEmpty:{get:()=>0===e.issues.length}})},a=i.xI("ZodError",s),o=i.xI("ZodError",s,{Parent:Error})}
130,89264:(e,t,n)=>{n.d(t,{m:()=>a});var r=n(82967),i=n(3870),s=n(83230),a=function(e){function t(t,n,r){void 0===t&&(t=1/0),void 0===n&&(n=1/0),void 0===r&&(r=s.U);var i=e.call(this)||this;return i._bufferSize=t,i._windowTime=n,i._timestampProvider=r,i._buffer=[],i._infiniteTimeWindow=!0,i._infiniteTimeWindow=n===1/0,i._bufferSize=Math.max(1,t),i._windowTime=Math.max(1,n),i}return(0,r.C6)(t,e),t.prototype.next=function(t){var n=this.isStopped,r=this._buffer,i=this._infiniteTimeWindow,s=this._timestampProvider,a=this._windowTime;!n&&(r.push(t),i||r.push(s.now()+a)),this._trimBuffer(),e.prototype.next.call(this,t)},t.prototype._subscribe=function(e){this._throwIfClosed(),this._trimBuffer();for(var t=this._innerSubscribe(e),n=this._infiniteTimeWindow,r=this._buffer.slice(),i=0;i<r.length&&!e.closed;i+=n?1:2)e.next(r[i]);return this._checkFinalizedStatuses(e),t},t.prototype._trimBuffer=function(){var e=this._bufferSize,t=this._timestampProvider,n=this._buffer,r=this._infiniteTimeWindow,i=(r?1:2)*e;if(e<1/0&&i<n.length&&n.splice(0,n.length-i),!r){for(var s=t.now(),a=0,o=1;o<n.length&&n[o]<=s;o+=2)a=o;a&&n.splice(0,a+1)}},t}(i.B)},89425:(e,t,n)=>{n.d(t,{v:()=>s});var r=n(65174),i=n(59761);function s(e){return new r.c(function(t){(0,i.Tg)(e()).subscribe(t)})}},89432:(e,t,n)=>{n.d(t,{l:()=>s});var r=n(72361),i=n(99244);function s(e){return(0,i.T)(e[r.s])}},89823:(e,t,n)=>{n.d(t,{x:()=>a});var r=n(49564),i=n(33097),s=n(22338);function a(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return(0,r.K)()((0,s.H)(e,(0,i.lI)(e)))}},90250:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"Image",{enumerable:!0,get:function(){return E}});let r=n(59224),i=n(77725),s=n(805),a=i._(n(23073)),o=r._(n(52452)),l=r._(n(48355)),u=n(50146),c=n(80527),d=n(41245);n(47299);let h=n(27008),p=r._(n(70754)),f=n(91633),m={deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[16,32,48,64,96,128,256,384],path:"/_next/image",loader:"default",dangerouslyAllowSVG:!1,unoptimized:!1};function g(e,t,n,r,i,s,a){let o=null==e?void 0:e.src;e&&e["data-loaded-src"]!==o&&(e["data-loaded-src"]=o,("decode"in e?e.decode():Promise.resolve()).catch(()=>{}).then(()=>{if(e.parentElement&&e.isConnected){if("empty"!==t&&i(!0),null==n?void 0:n.current){let t=new Event("load");Object.defineProperty(t,"target",{writable:!1,value:e});let r=!1,i=!1;n.current({...t,nativeEvent:t,currentTarget:e,target:e,isDefaultPrevented:()=>r,isPropagationStopped:()=>i,persist:()=>{},preventDefault:()=>{r=!0,t.preventDefault()},stopPropagation:()=>{i=!0,t.stopPropagation()}})}(null==r?void 0:r.current)&&r.current(e)}}))}function y(e){return a.use?{fetchPriority:e}:{fetchpriority:e}}let v=(0,a.forwardRef)((e,t)=>{let{src:n,srcSet:r,sizes:i,height:o,width:l,decoding:u,className:c,style:d,fetchPriority:h,placeholder:p,loading:m,unoptimized:v,fill:b,onLoadRef:E,onLoadingCompleteRef:T,setBlurComplete:_,setShowAltText:A,sizesInput:x,onLoad:k,onError:S,...w}=e,I=(0,a.useCallback)(e=>{e&&(S&&(e.src=e.src),e.complete&&g(e,p,E,T,_,v,x))},[n,p,E,T,_,S,v,x]),C=(0,f.useMergedRef)(t,I);return(0,s.jsx)("img",{...w,...y(h),loading:m,width:l,height:o,decoding:u,"data-nimg":b?"fill":"1",className:c,style:d,sizes:i,srcSet:r,src:n,ref:C,onLoad:e=>{g(e.currentTarget,p,E,T,_,v,x)},onError:e=>{A(!0),"empty"!==p&&_(!0),S&&S(e)}})});function b(e){let{isAppRouter:t,imgAttributes:n}=e,r={as:"image",imageSrcSet:n.srcSet,imageSizes:n.sizes,crossOrigin:n.crossOrigin,referrerPolicy:n.referrerPolicy,...y(n.fetchPriority)};return t&&o.default.preload?(o.default.preload(n.src,r),null):(0,s.jsx)(l.default,{children:(0,s.jsx)("link",{rel:"preload",href:n.srcSet?void 0:n.src,...r},"__nimg-"+n.src+n.srcSet+n.sizes)})}let E=(0,a.forwardRef)((e,t)=>{let n=(0,a.useContext)(h.RouterContext),r=(0,a.useContext)(d.ImageConfigContext),i=(0,a.useMemo)(()=>{var e;let t=m||r||c.imageConfigDefault,n=[...t.deviceSizes,...t.imageSizes].sort((e,t)=>e-t),i=t.deviceSizes.sort((e,t)=>e-t),s=null==(e=t.qualities)?void 0:e.sort((e,t)=>e-t);return{...t,allSizes:n,deviceSizes:i,qualities:s}},[r]),{onLoad:o,onLoadingComplete:l}=e,f=(0,a.useRef)(o);(0,a.useEffect)(()=>{f.current=o},[o]);let g=(0,a.useRef)(l);(0,a.useEffect)(()=>{g.current=l},[l]);let[y,E]=(0,a.useState)(!1),[T,_]=(0,a.useState)(!1),{props:A,meta:x}=(0,u.getImgProps)(e,{defaultLoader:p.default,imgConf:i,blurComplete:y,showAltText:T});return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(v,{...A,unoptimized:x.unoptimized,placeholder:x.placeholder,fill:x.fill,onLoadRef:f,onLoadingCompleteRef:g,setBlurComplete:E,setShowAltText:_,sizesInput:e.sizes,ref:t}),x.priority?(0,s.jsx)(b,{isAppRouter:!n,imgAttributes:A}):null]})});("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esMo
130dule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},90910:(e,t,n)=>{n.r(t),n.d(t,{_emoji:()=>T,base64:()=>w,base64url:()=>I,bigint:()=>z,boolean:()=>$,browserEmail:()=>E,cidrv4:()=>k,cidrv6:()=>S,cuid:()=>r,cuid2:()=>i,date:()=>P,datetime:()=>L,domain:()=>N,duration:()=>u,e164:()=>R,email:()=>g,emoji:()=>_,extendedDuration:()=>c,guid:()=>d,hostname:()=>C,html5Email:()=>y,integer:()=>F,ipv4:()=>A,ipv6:()=>x,ksuid:()=>o,lowercase:()=>G,nanoid:()=>l,null:()=>U,number:()=>B,rfc5322Email:()=>v,string:()=>j,time:()=>M,ulid:()=>s,undefined:()=>H,unicodeEmail:()=>b,uppercase:()=>Y,uuid:()=>h,uuid4:()=>p,uuid6:()=>f,uuid7:()=>m,xid:()=>a});let r=/^[cC][^\s-]{8,}$/,i=/^[0-9a-z]+$/,s=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,a=/^[0-9a-vA-V]{20}$/,o=/^[A-Za-z0-9]{27}$/,l=/^[a-zA-Z0-9_-]{21}$/,u=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,c=/^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/,d=/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$/,h=e=>e?RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${e}[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$`):/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000)$/,p=h(4),f=h(6),m=h(7),g=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,y=/^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,v=/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,b=/^[^\s@"]{1,64}@[^\s@]{1,255}$/u,E=/^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,T="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";function _(){return RegExp(T,"u")}let A=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,x=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|::|([0-9a-fA-F]{1,4})?::([0-9a-fA-F]{1,4}:?){0,6})$/,k=/^((25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/([0-9]|[1-2][0-9]|3[0-2])$/,S=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|::|([0-9a-fA-F]{1,4})?::([0-9a-fA-F]{1,4}:?){0,6})\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,w=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,I=/^[A-Za-z0-9_-]*$/,C=/^([a-zA-Z0-9-]+\.)*[a-zA-Z0-9-]+$/,N=/^([a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?\.)+[a-zA-Z]{2,}$/,R=/^\+(?:[0-9]){6,14}[0-9]$/,O="(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))",P=RegExp(`^${O}$`);function D(e){let t="(?:[01]\\d|2[0-3]):[0-5]\\d";return"number"==typeof e.precision?-1===e.precision?`${t}`:0===e.precision?`${t}:[0-5]\\d`:`${t}:[0-5]\\d\\.\\d{${e.precision}}`:`${t}(?::[0-5]\\d(?:\\.\\d+)?)?`}function M(e){return RegExp(`^${D(e)}$`)}function L(e){let t=D({precision:e.precision}),n=["Z"];e.local&&n.push(""),e.offset&&n.push("([+-]\\d{2}:\\d{2})");let r=`${t}(?:${n.join("|")})`;return RegExp(`^${O}T(?:${r})$`)}let j=e=>{let t=e?`[\\s\\S]{${e?.minimum??0},${e?.maximum??""}}`:"[\\s\\S]*";return RegExp(`^${t}$`)},z=/^\d+n?$/,F=/^\d+$/,B=/^-?\d+(?:\.\d+)?/i,$=/true|false/i,U=/null/i,H=/undefined/i,G=/^[^A-Z]*$/,Y=/^[^a-z]*$/},91167:(e,t,n)=>{n.d(t,{xV:()=>eH});var r=n(61641);class i{static{this.MAX_DEPTH=10}parse(e,t=0){if(t>i.MAX_DEPTH)throw new r.Oi("Max recursion depth reached in parse");if(!e||!e.includes("${"))return[e];let n=[],a=new s(e);for(;!a.isAtEnd();)if(a.matches("${")){a.advance(2);let e=this.extractInterpolationContent(a),r=this.parseExpression(e,t+1);null!==r&&n.push(r)}else if("\\"===a.peek()&&"$"===a.peek(1)&&"{"===a.peek(2))a.advance(),n.push("${"),a.advance(2);else{let e=a.pos;for(;!a.isAtEnd()&&!a.matches("${")&&("\\"!==a.peek()||"$"!==a.peek(1)||"{"!==a.peek(2));)a.advance();n.push(a.input.substring(e,a.pos))}return n.filter(e=>null!==e&&""!==e)}extractInterpolationContent(e){let t=e.pos,n=1;for(;!e.isAtEnd()&&n>0;){let t=e.advance();if("{"===t)n++;else if("}"===t)n--;else if("'"===t||'"'===t)for(;!e.isAtEnd();){let n=e.advance();if("\\"===n)e.advance();else if(n===t)break}}if(n>0)throw new r.Oi("Unclosed interpolation: missing '}'");return e.input.substring(t,e.pos-1)}parseExpression(e,t=0){if(!(e=e.trim()))return"";let n=new s(e),i=this.parseExpressionInternal(n,t);if(!n.isAtEnd())throw new r.Oi(`Unexpected characters at end of expression: '${n.input.substring(n.pos)}'`);return i}
130parseExpressionInternal(e,t){if(e.skipWhitespace(),e.isAtEnd())return"";if(e.matches("${")){e.advance(2);let n=this.extractInterpolationContent(e);return this.parseExpression(n,t+1)}if(e.matchesString("'")||e.matchesString('"'))return this.parseStringLiteral(e);if(this.isDigit(e.peek()))return this.parseNumberLiteral(e);if(e.matchesKeyword("true"))return!0;if(e.matchesKeyword("false"))return!1;if(e.matchesKeyword("null"))return"";let n=this.scanPathOrIdentifier(e);return(e.skipWhitespace(),"("===e.peek())?this.parseFunctionCall(n,e,t):n?{path:n}:""}scanPathOrIdentifier(e){let t=e.pos;for(;!e.isAtEnd();){let t=e.peek();if(this.isAlnum(t)||"/"===t||"."===t||"_"===t||"-"===t)e.advance();else break}return e.input.substring(t,e.pos)}parseFunctionCall(e,t,n){t.match("("),t.skipWhitespace();let i={};for(;!t.isAtEnd()&&")"!==t.peek();){let s=this.scanIdentifier(t);if(t.skipWhitespace(),!t.match(":"))throw new r.Oi(`Expected ':' after argument name '${s}' in function '${e}'`);t.skipWhitespace(),i[s]=this.parseExpressionInternal(t,n),t.skipWhitespace(),","===t.peek()&&(t.advance(),t.skipWhitespace())}if(!t.match(")"))throw new r.Oi(`Expected ')' after function arguments for '${e}'`);return{call:e,args:i,returnType:"any"}}scanIdentifier(e){let t=e.pos;for(;!e.isAtEnd()&&(this.isAlnum(e.peek())||"_"===e.peek());)e.advance();return e.input.substring(t,e.pos)}parseStringLiteral(e){let t=e.advance(),n="";for(;!e.isAtEnd();){let r=e.advance();if("\\"===r){let t=e.advance();"n"===t?n+="\n":"t"===t?n+=" ":"r"===t?n+="\r":n+=t}else if(r===t)break;else n+=r}return n}parseNumberLiteral(e){let t=e.pos;for(;!e.isAtEnd()&&(this.isDigit(e.peek())||"."===e.peek());)e.advance();return Number(e.input.substring(t,e.pos))}isAlnum(e){return e>="a"&&e<="z"||e>="A"&&e<="Z"||e>="0"&&e<="9"}isDigit(e){return e>="0"&&e<="9"}}class s{constructor(e){this.input=e,this.pos=0}isAtEnd(){return this.pos>=this.input.length}peek(e=0){return this.pos+e>=this.input.length?"\0":this.input[this.pos+e]}advance(e=1){let t=this.input.substring(this.pos,this.pos+e);return this.pos+=e,t}match(e){return this.peek()===e&&(this.advance(),!0)}matches(e){return!!this.input.startsWith(e,this.pos)}matchesString(e){return this.peek()===e}matchesKeyword(e){if(this.input.startsWith(e,this.pos)){let t=this.peek(e.length);if(!/[a-zA-Z0-9_]/.test(t))return this.advance(e.length),!0}return!1}skipWhitespace(){for(;!this.isAtEnd()&&/\s/.test(this.peek());)this.advance()}}var a=n(64910),o=n(26119);let l={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}};function u(e){return (t={})=>{let n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}let c={date:u({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:u({formats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},defaultWidth:"full"}),dateTime:u({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},d={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"};function h(e){return(t,n)=>{let r;if("formatting"===(n?.context?String(n.context):"standalone")&&e.formattingValues){let t=e.defaultFormattingWidth||e.defaultWidth,i=n?.width?String(n.width):t;r=e.formattingValues[i]||e.formattingValues[t]}else{let t=e.defaultWidth,i=n?.width?String(n.width):e.defaultWidth;r=e.values[i]||e.values[t]}return r[e.argumentCallback?e.argumentCallback(t):t]}}function p(e){return(t,n={})=>{let r,i=n.width,s=i&&e.matchPatterns[i]||e.matchPatterns[e.defaultMatchWidth],a=t.match(s);if(!a)return null;let o=a[0],l=i&&e.parsePatterns[i]||e.parsePatterns[e.defaultParseWidth],u=Array.isArray(l)?function(e,t){for(let n=0;n<e.length;n++)if(t(e[n]))return n}(l,e=>e.test(o)):function(e,t){for(let n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n}(l,e=>e.test(o));return r=e.valueCallback?e.valueCallback(u):u,{value:r=n.valueCallback?n.valueCallback(r):r,rest:t.slice(o.length)}}}let f={code:"en-US",formatDistance:(e,t,n)=>{let r,i=l[e];
130if(r="string"==typeof i?i:1===t?i.one:i.other.replace("{{count}}",t.toString()),n?.addSuffix)if(n.comparison&&n.comparison>0)return"in "+r;else return r+" ago";return r},formatLong:c,formatRelative:(e,t,n,r)=>d[e],localize:{ordinalNumber:(e,t)=>{let n=Number(e),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},era:h({values:{narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},defaultWidth:"wide"}),quarter:h({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},defaultWidth:"wide",argumentCallback:e=>e-1}),month:h({values:{narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},defaultWidth:"wide"}),day:h({values:{narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},defaultWidth:"wide"}),dayPeriod:h({values:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},defaultWidth:"wide",formattingValues:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},defaultFormattingWidth:"wide"})},match:{ordinalNumber:function(e){return(t,n={})=>{let r=t.match(e.matchPattern);if(!r)return null;let i=r[0],s=t.match(e.parsePattern);if(!s)return null;let a=e.valueCallback?e.valueCallback(s[0]):s[0];return{value:a=n.valueCallback?n.valueCallback(a):a,rest:t.slice(i.length)}}}({matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:e=>parseInt(e,10)}),era:p({matchPatterns:{narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^b/i,/^(a|c)/i]},defaultParseWidth:"any"}),quarter:p({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:e=>e+1}),month:p({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:p({matchPatterns:{narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},defaultParseWidth:"any"}),dayPeriod:p({matchPatterns:{narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},defaultParseWidth:"any"})},options:{weekStartsOn:0,firstWeekContainsDate:1}},m={},g=Symbol.for("constructDateFrom");function y(e,t){return"function"==typeof e?e(t):e&&"object"==typeof e&&g in e?e[g](t):e instanceof Date?new e.constructor(t):new Date(t)}function v(e,t){return y(t||e,e)}function b(e){let t=v(e),n=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return n.setUTCFullYear(t.getFullYear()),e-n}function E(e,t){let n=v(e,t?.in);return n.setHours(0,0,0,0),n}function T(e,t){let n=t?.weekStartsOn??t?.locale?.options?.weekStartsOn??m.weekStartsOn??m.locale?.options?.weekStartsOn??0,r=v(e,t?.in),i=r.getDay();return r.setDate(r.getDate()-(7*(i<n)+i-n)),r.setHours(0,0,0,0),r}function _(e,t){return T(e,{...t,weekStartsOn:1}
130)}function A(e,t){let n=v(e,t?.in),r=n.getFullYear(),i=y(n,0);i.setFullYear(r+1,0,4),i.setHours(0,0,0,0);let s=_(i),a=y(n,0);a.setFullYear(r,0,4),a.setHours(0,0,0,0);let o=_(a);return n.getTime()>=s.getTime()?r+1:n.getTime()>=o.getTime()?r:r-1}function x(e,t){let n=v(e,t?.in),r=n.getFullYear(),i=t?.firstWeekContainsDate??t?.locale?.options?.firstWeekContainsDate??m.firstWeekContainsDate??m.locale?.options?.firstWeekContainsDate??1,s=y(t?.in||e,0);s.setFullYear(r+1,0,i),s.setHours(0,0,0,0);let a=T(s,t),o=y(t?.in||e,0);o.setFullYear(r,0,i),o.setHours(0,0,0,0);let l=T(o,t);return+n>=+a?r+1:+n>=+l?r:r-1}function k(e,t){let n=Math.abs(e).toString().padStart(t,"0");return(e<0?"-":"")+n}let S={y(e,t){let n=e.getFullYear(),r=n>0?n:1-n;return k("yy"===t?r%100:r,t.length)},M(e,t){let n=e.getMonth();return"M"===t?String(n+1):k(n+1,2)},d:(e,t)=>k(e.getDate(),t.length),a(e,t){let n=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];default:return"am"===n?"a.m.":"p.m."}},h:(e,t)=>k(e.getHours()%12||12,t.length),H:(e,t)=>k(e.getHours(),t.length),m:(e,t)=>k(e.getMinutes(),t.length),s:(e,t)=>k(e.getSeconds(),t.length),S(e,t){let n=t.length;return k(Math.trunc(e.getMilliseconds()*Math.pow(10,n-3)),t.length)}},w={midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},I={G:function(e,t,n){let r=+(e.getFullYear()>0);switch(t){case"G":case"GG":case"GGG":return n.era(r,{width:"abbreviated"});case"GGGGG":return n.era(r,{width:"narrow"});default:return n.era(r,{width:"wide"})}},y:function(e,t,n){if("yo"===t){let t=e.getFullYear();return n.ordinalNumber(t>0?t:1-t,{unit:"year"})}return S.y(e,t)},Y:function(e,t,n,r){let i=x(e,r),s=i>0?i:1-i;return"YY"===t?k(s%100,2):"Yo"===t?n.ordinalNumber(s,{unit:"year"}):k(s,t.length)},R:function(e,t){return k(A(e),t.length)},u:function(e,t){return k(e.getFullYear(),t.length)},Q:function(e,t,n){let r=Math.ceil((e.getMonth()+1)/3);switch(t){case"Q":return String(r);case"QQ":return k(r,2);case"Qo":return n.ordinalNumber(r,{unit:"quarter"});case"QQQ":return n.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(r,{width:"narrow",context:"formatting"});default:return n.quarter(r,{width:"wide",context:"formatting"})}},q:function(e,t,n){let r=Math.ceil((e.getMonth()+1)/3);switch(t){case"q":return String(r);case"qq":return k(r,2);case"qo":return n.ordinalNumber(r,{unit:"quarter"});case"qqq":return n.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(r,{width:"narrow",context:"standalone"});default:return n.quarter(r,{width:"wide",context:"standalone"})}},M:function(e,t,n){let r=e.getMonth();switch(t){case"M":case"MM":return S.M(e,t);case"Mo":return n.ordinalNumber(r+1,{unit:"month"});case"MMM":return n.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(r,{width:"narrow",context:"formatting"});default:return n.month(r,{width:"wide",context:"formatting"})}},L:function(e,t,n){let r=e.getMonth();switch(t){case"L":return String(r+1);case"LL":return k(r+1,2);case"Lo":return n.ordinalNumber(r+1,{unit:"month"});case"LLL":return n.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(r,{width:"narrow",context:"standalone"});default:return n.month(r,{width:"wide",context:"standalone"})}},w:function(e,t,n,r){let i=function(e,t){let n=v(e,t?.in);return Math.round((T(n,t)-function(e,t){let n=t?.firstWeekContainsDate??t?.locale?.options?.firstWeekContainsDate??m.firstWeekContainsDate??m.locale?.options?.firstWeekContainsDate??1,r=x(e,t),i=y(t?.in||e,0);return i.setFullYear(r,0,n),i.setHours(0,0,0,0),T(i,t)}(n,t))/6048e5)+1}(e,r);return"wo"===t?n.ordinalNumber(i,{unit:"week"}):k(i,t.length)},I:function(e,t,n){let r=function(e,t){let n=v(e,void 0);return Math.round((_(n)-function(e,t){let n=A(e,void 0),r=y(e,0);return r.setFullYear(n,0,4),r.setHours(0,0,0,0),_(r)}(n))/6048e5)+1}(e);return"Io"===t?n.ordinalNumber(r,{unit:"week"}):k(r,t.length)},d:function(e,t,n){return"do"===t?n.ordinalNumber(e.getDate(),{unit:"date"}):S.d(e,t)},D:function(e,t,n){let r=function(e,t){let n=v(e,void 0);return function(e,t,n){let[r,i]=function(e,...t){let n=y.bind(null,e||t.find(e=>"object"==typeof e));return t.map(n)}(void 0,e,t),s=E(r),a=E(i);return Math.round((s-b(s)-(a-b(a)))/864e5)}(n,function(e,t){let n=v(e,void 0);return n.setFullYear(n.getFullYear(),0,1),n.setHours(0,0,0,0),n}(n))+1}(e);return"Do"===t?n.ordinalNumber(r,{unit:"dayOfYear"}):k(r,t.length)},E:function(e,t,n){let r=e.getDay();switch(t){case"E":case"EE":case"EEE":return n.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(r,{width:"short",context:"formatting"});default:return n.day(r,{width:"wide",context:"formatting"})}},e:function(e,t,n,r){let i=e.getDay(),s=(i-r.weekStartsOn+8)%7||7;switch(t){case"e":return String(s);case"ee":return k(s,2);case"eo":return n.ordinalNumber(s,{unit:"day"});case"eee":return n.day(i,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(i,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(i,{width:"short",context:"formatting"});default:return n.day(i,{width:"wide",context:"formatting"})}},c:function(e,t,n,r){let i=e.getDay(),s=(i-r.weekStartsOn+8)%7||7;switch(t){case"c":return String(s);case"cc":return k(s,t.length);case"co":return n.ordinalNumber(s,{unit:"day"});case"ccc":return n.day(i,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(i,{width:"narrow",context:"standalone"});case"cccccc":return n.day(i,{width:"short",context:"standalone"});default:return n.day(i,{width:"wide",context:"standalone"})}},i:function(e,t,n){let r=e.getDay(),i=0===r?7:r;switch(t){case"i":return String(i);case"ii":return k(i,t.length);case"io":return n.ordinalNumber(i,{unit:"day"});case"iii":return n.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(r,{width:"short",context:"formatting"});default:return n.day(r,{width:"wide",context:"formatting"})}},a:function(e,t,n){let r=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(r,{width:"narrow",context:"formatting"});default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},b:function(e,t,n){let r,i=e.getHours();switch(r=12===i?w.noon:0===i?w.midnight:i/12>
130=1?"pm":"am",t){case"b":case"bb":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(r,{width:"narrow",context:"formatting"});default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},B:function(e,t,n){let r,i=e.getHours();switch(r=i>=17?w.evening:i>=12?w.afternoon:i>=4?w.morning:w.night,t){case"B":case"BB":case"BBB":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(r,{width:"narrow",context:"formatting"});default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},h:function(e,t,n){if("ho"===t){let t=e.getHours()%12;return 0===t&&(t=12),n.ordinalNumber(t,{unit:"hour"})}return S.h(e,t)},H:function(e,t,n){return"Ho"===t?n.ordinalNumber(e.getHours(),{unit:"hour"}):S.H(e,t)},K:function(e,t,n){let r=e.getHours()%12;return"Ko"===t?n.ordinalNumber(r,{unit:"hour"}):k(r,t.length)},k:function(e,t,n){let r=e.getHours();return(0===r&&(r=24),"ko"===t)?n.ordinalNumber(r,{unit:"hour"}):k(r,t.length)},m:function(e,t,n){return"mo"===t?n.ordinalNumber(e.getMinutes(),{unit:"minute"}):S.m(e,t)},s:function(e,t,n){return"so"===t?n.ordinalNumber(e.getSeconds(),{unit:"second"}):S.s(e,t)},S:function(e,t){return S.S(e,t)},X:function(e,t,n){let r=e.getTimezoneOffset();if(0===r)return"Z";switch(t){case"X":return N(r);case"XXXX":case"XX":return R(r);default:return R(r,":")}},x:function(e,t,n){let r=e.getTimezoneOffset();switch(t){case"x":return N(r);case"xxxx":case"xx":return R(r);default:return R(r,":")}},O:function(e,t,n){let r=e.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+C(r,":");default:return"GMT"+R(r,":")}},z:function(e,t,n){let r=e.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+C(r,":");default:return"GMT"+R(r,":")}},t:function(e,t,n){return k(Math.trunc(e/1e3),t.length)},T:function(e,t,n){return k(+e,t.length)}};function C(e,t=""){let n=e>0?"-":"+",r=Math.abs(e),i=Math.trunc(r/60),s=r%60;return 0===s?n+String(i):n+String(i)+t+k(s,2)}function N(e,t){return e%60==0?(e>0?"-":"+")+k(Math.abs(e)/60,2):R(e,t)}function R(e,t=""){let n=Math.abs(e);return(e>0?"-":"+")+k(Math.trunc(n/60),2)+t+k(n%60,2)}let O=(e,t)=>{switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});default:return t.date({width:"full"})}},P=(e,t)=>{switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});default:return t.time({width:"full"})}},D={p:P,P:(e,t)=>{let n,r=e.match(/(P+)(p+)?/)||[],i=r[1],s=r[2];if(!s)return O(e,t);switch(i){case"P":n=t.dateTime({width:"short"});break;case"PP":n=t.dateTime({width:"medium"});break;case"PPP":n=t.dateTime({width:"long"});break;default:n=t.dateTime({width:"full"})}return n.replace("{{date}}",O(i,t)).replace("{{time}}",P(s,t))}},M=/^D+$/,L=/^Y+$/,j=["D","DD","YY","YYYY"],z=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,F=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,B=/^'([^]*?)'?$/,$=/''/g,U=/[a-zA-Z]/;var H=n(59193);let G={name:"add",returnType:"number",schema:H.Ik({a:H.vk(e=>null===e?void 0:e,H.au.number()),b:H.vk(e=>null===e?void 0:e,H.au.number())})},Y={name:"subtract",returnType:"number",schema:H.Ik({a:H.vk(e=>null===e?void 0:e,H.au.number()),b:H.vk(e=>null===e?void 0:e,H.au.number())})},Z={name:"multiply",returnType:"number",schema:H.Ik({a:H.vk(e=>null===e?void 0:e,H.au.number()),b:H.vk(e=>null===e?void 0:e,H.au.number())})},V={name:"divide",returnType:"number",schema:H.Ik({a:H.vk(e=>null===e?void 0:e,H.au.number()),b:H.vk(e=>null===e?void 0:e,H.au.number())})},W={name:"equals",returnType:"boolean",schema:H.Ik({a:H.bz().refine(e=>void 0!==e,"Required"),b:H.bz().refine(e=>void 0!==e,"Required")})},q={name:"not_equals",returnType:"boolean",schema:H.Ik({a:H.bz().refine(e=>void 0!==e,"Required"),b:H.bz().refine(e=>void 0!==e,"Required")})},K={name:"greater_than",returnType:"boolean",schema:H.Ik({a:H.vk(e=>null===e?void 0:e,H.au.number()),b:H.vk(e=>null===e?void 0:e,H.au.number())})}
130,X={name:"less_than",returnType:"boolean",schema:H.Ik({a:H.vk(e=>null===e?void 0:e,H.au.number()),b:H.vk(e=>null===e?void 0:e,H.au.number())})},Q={name:"and",returnType:"boolean",schema:H.Ik({values:H.YO(H.bz()).min(2)})},J={name:"or",returnType:"boolean",schema:H.Ik({values:H.YO(H.bz()).min(2)})},ee={name:"not",returnType:"boolean",schema:H.Ik({value:H.bz().refine(e=>void 0!==e,"Required")})},et={name:"contains",returnType:"boolean",schema:H.Ik({string:H.vk(e=>void 0===e?void 0:String(e),H.Yj()),substring:H.vk(e=>void 0===e?void 0:String(e),H.Yj())})},en={name:"starts_with",returnType:"boolean",schema:H.Ik({string:H.vk(e=>void 0===e?void 0:String(e),H.Yj()),prefix:H.vk(e=>void 0===e?void 0:String(e),H.Yj())})},er={name:"ends_with",returnType:"boolean",schema:H.Ik({string:H.vk(e=>void 0===e?void 0:String(e),H.Yj()),suffix:H.vk(e=>void 0===e?void 0:String(e),H.Yj())})},ei={name:"required",returnType:"boolean",schema:H.Ik({value:H.bz().refine(e=>void 0!==e,"Required")})},es={name:"regex",returnType:"boolean",schema:H.Ik({value:H.vk(e=>void 0===e?void 0:String(e),H.Yj()),pattern:H.vk(e=>void 0===e?void 0:String(e),H.Yj())})},ea={name:"length",returnType:"boolean",schema:H.Ik({value:H.bz().refine(e=>void 0!==e,"Required"),min:H.au.number().optional(),max:H.au.number().optional()}).refine(e=>void 0!==e.min||void 0!==e.max,{message:"Must provide either 'min' or 'max'"})},eo={name:"numeric",returnType:"boolean",schema:H.Ik({value:H.au.number(),min:H.au.number().optional(),max:H.au.number().optional()}).refine(e=>void 0!==e.min||void 0!==e.max,{message:"Must provide either 'min' or 'max'"})},el={name:"email",returnType:"boolean",schema:H.Ik({value:H.vk(e=>void 0===e?void 0:String(e),H.Yj())})},eu={name:"formatString",returnType:"any",schema:H.Ik({value:H.au.string()})},ec={name:"formatNumber",returnType:"string",schema:H.Ik({value:H.au.number(),decimals:H.au.number().optional(),grouping:H.zM().default(!0)})},ed={name:"formatCurrency",returnType:"string",schema:H.Ik({value:H.au.number(),currency:H.au.string(),decimals:H.au.number().optional(),grouping:H.zM().default(!0)})},eh={name:"formatDate",returnType:"string",schema:H.Ik({value:H.bz().refine(e=>void 0!==e,"Required"),format:H.au.string()})},ep={name:"pluralize",returnType:"string",schema:H.Ik({value:H.au.number(),zero:H.au.string().optional(),one:H.au.string().optional(),two:H.au.string().optional(),few:H.au.string().optional(),many:H.au.string().optional(),other:H.au.string()})},ef={name:"openUrl",returnType:"void",schema:H.Ik({url:H.vk(e=>void 0===e?void 0:String(e),H.Yj())})},em=(0,o.d)(G,e=>e.a+e.b),eg=(0,o.d)(Y,e=>e.a-e.b),ey=(0,o.d)(Z,e=>e.a*e.b),ev=(0,o.d)(V,e=>{let t=e.a,n=e.b;if(null==t||null==n)return NaN;let r=Number(t),i=Number(n);return Number.isNaN(r)||Number.isNaN(i)?NaN:0===i?1/0:r/i}),eb=(0,o.d)(W,e=>e.a===e.b),eE=(0,o.d)(q,e=>e.a!==e.b),eT=(0,o.d)(K,e=>e.a>e.b),e_=(0,o.d)(X,e=>e.a<e.b),eA=(0,o.d)(Q,e=>e.values.every(e=>!!e)),ex=(0,o.d)(J,e=>e.values.some(e=>!!e)),ek=(0,o.d)(ee,e=>!e.value),eS=(0,o.d)(et,e=>e.string.includes(e.substring)),ew=(0,o.d)(en,e=>e.string.startsWith(e.prefix)),eI=(0,o.d)(er,e=>e.string.endsWith(e.suffix)),eC=(0,o.d)(ei,e=>{let t=e.value;return!(null==t||"string"==typeof t&&""===t||Array.isArray(t)&&0===t.length)}),eN=(0,o.d)(es,e=>{try{return new RegExp(e.pattern).test(e.value)}catch(t){throw new r.Oi(`Invalid regex pattern: ${e.pattern}`,"regex",t)}}),eR=(0,o.d)(ea,e=>{let t=e.value,n=0;return("string"==typeof t||Array.isArray(t))&&(n=t.length),(void 0===e.min||!!isNaN(e.min)||!(n<e.min))&&(void 0===e.max||!!isNaN(e.max)||!(n>e.max))}),eO=(0,o.d)(eo,e=>!isNaN(e.value)&&(void 0===e.min||!!isNaN(e.min)||!(e.value<e.min))&&(void 0===e.max||!!isNaN(e.max)||!(e.value>e.max))),eP=(0,o.d)(el,e=>/^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$/.test(e.value)),eD=(0,o.d)(eu,(e,t)=>{let n=e.value,r=new i().parse(n);if(0===r.length)return"";let s=r.map(e=>"object"!=typeof e||null===e||Array.isArray(e)?e:t.resolveSignal(e));return(0,a.EW)(()=>s.map(e=>(function(e){if(null==e)return"";if("object"==typeof e)try{return JSON.stringify(e)??String(e)}catch{}return String(e)})((0,a.Hp)(e)?(0,a._W)(e):e)).join(""))}),eM=new Map;function eL(e){return(0,o.d)(ec,t=>{if(isNaN(t.value))return"";try{return(function(e,t,n){let r=`${e??"default"}:${t??"undef"}:${n??"true"}`,i=eM.get(r);
130return i||(i=new Intl.NumberFormat(e,{minimumFractionDigits:t,maximumFractionDigits:t,useGrouping:n}),eM.set(r,i)),i})(e,t.decimals,t.grouping).format(t.value)}catch(e){return console.warn("Error formatting number:",e),void 0!==t.decimals?t.value.toFixed(t.decimals):String(t.value)}})}eL();let ej=new Map;function ez(e){return(0,o.d)(ed,t=>{if(isNaN(t.value))return"";try{return(function(e,t,n,r){let i=`${e??"default"}:${t}:${n??"undef"}:${r??"true"}`,s=ej.get(i);return s||(s=new Intl.NumberFormat(e,{style:"currency",currency:t,minimumFractionDigits:n,maximumFractionDigits:n,useGrouping:r}),ej.set(i,s)),s})(e,t.currency,t.decimals,t.grouping).format(t.value)}catch(e){return console.warn("Error formatting currency:",e),t.value.toFixed(t.decimals??2)}})}ez();let eF=(0,o.d)(eh,e=>{if(!e.value)return"";let t=new Date(e.value);if(isNaN(t.getTime()))return"";try{if("ISO"===e.format)return t.toISOString();return function(e,t,n){let r=(void 0)??m.locale??f,i=(void 0)??n?.locale?.options?.firstWeekContainsDate??m.firstWeekContainsDate??m.locale?.options?.firstWeekContainsDate??1,s=n?.weekStartsOn??n?.locale?.options?.weekStartsOn??m.weekStartsOn??m.locale?.options?.weekStartsOn??0,a=v(e,n?.in);if(!(a instanceof Date||"object"==typeof a&&"[object Date]"===Object.prototype.toString.call(a))&&"number"!=typeof a||isNaN(+v(a)))throw RangeError("Invalid time value");let o=t.match(F).map(e=>{let t=e[0];return"p"===t||"P"===t?(0,D[t])(e,r.formatLong):e}).join("").match(z).map(e=>{if("''"===e)return{isToken:!1,value:"'"};let t=e[0];if("'"===t)return{isToken:!1,value:function(e){let t=e.match(B);return t?t[1].replace($,"'"):e}(e)};if(I[t])return{isToken:!0,value:e};if(t.match(U))throw RangeError("Format string contains an unescaped latin alphabet character `"+t+"`");return{isToken:!1,value:e}});r.localize.preprocessor&&(o=r.localize.preprocessor(a,o));let l={firstWeekContainsDate:i,weekStartsOn:s,locale:r};return o.map(i=>{if(!i.isToken)return i.value;let s=i.value;return(!n?.useAdditionalWeekYearTokens&&L.test(s)||!n?.useAdditionalDayOfYearTokens&&M.test(s))&&function(e,t,n){let r=function(e,t,n){let r="Y"===e[0]?"years":"days of the month";return`Use \`${e.toLowerCase()}\` instead of \`${e}\` (in \`${t}\`) for formatting ${r} to the input \`${n}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}(e,t,n);if(console.warn(r),j.includes(e))throw RangeError(r)}(s,t,String(e)),(0,I[s[0]])(a,s,r.localize,l)}).join("")}(t,e.format)}catch(e){return console.warn("Error formatting date:",e),t.toISOString()}}),eB=new Map;function e$(e){return(0,o.d)(ep,t=>{try{let n=(function(e){let t=e??"default",n=eB.get(t);return n||(n=new Intl.PluralRules(e),eB.set(t,n)),n})(e).select(t.value);return String(t[n]??t.other??"")}catch(e){return console.warn("Error in pluralize:",e),String(t.other??"")}})}e$();let eU=(0,o.d)(ef,e=>{if(e.url&&"undefined"!=typeof window&&window.open){let t,n=void 0!==window.location&&window.location.href?window.location.href:void 0;try{t=n?new URL(e.url,n):new URL(e.url)}catch(t){throw new r.Oi(`Invalid URL specified: ${e.url}`,"openUrl",t)}if("https:"!==t.protocol&&"http:"!==t.protocol)throw new r.Oi(`Unsupported URL scheme: ${t.protocol}`,"openUrl");window.open(t.href,"_blank","noopener,noreferrer")}}),eH=function(e){let t=void 0;return[em,eg,ey,ev,eb,eE,eT,e_,eA,ex,ek,eS,ew,eI,eC,eN,eR,eO,eP,eD,eL(t),ez(t),eF,e$(t),eU]}()},91633:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"useMergedRef",{enumerable:!0,get:function(){return i}});let r=n(23073);function i(e,t){let n=(0,r.useRef)(null),i=(0,r.useRef)(null);return(0,r.useCallback)(r=>{if(null===r){let e=n.current;e&&(n.current=null,e());let t=i.current;t&&(i.current=null,t())}else e&&(n.current=s(e,r)),t&&(i.current=s(t,r))},[e,t])}function s(e,t){if("function"!=typeof e)return e.current=t,()=>{e.current=null};{let n=e(t);return"function"==typeof n?n:()=>e(null)}}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)}
130,91998:(e,t,n)=>{n.d(t,{A:()=>r});let r=(0,n(45751).A)("plus",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]])},92978:(e,t,n)=>{n.d(t,{I:()=>u});var r=n(28366),i=n(80150),s=n(2804);let a=/[A-Z]/g,o=/-[a-z]/g,l=/^data[-\w.:]+$/i;function u(e,t){let n=(0,s.S)(t),u=t,h=i.R;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&"data"===n.slice(0,4)&&l.test(t)){if("-"===t.charAt(4)){let e=t.slice(5).replace(o,d);u="data"+e.charAt(0).toUpperCase()+e.slice(1)}else{let e=t.slice(4);if(!o.test(e)){let n=e.replace(a,c);"-"!==n.charAt(0)&&(n="-"+n),t="data"+n}}h=r.E}return new h(u,t)}function c(e){return"-"+e.toLowerCase()}function d(e){return e.charAt(1).toUpperCase()}},94951:(e,t,n)=>{n.d(t,{t:()=>i});var r=n(82967),i=function(e){function t(t){var n=e.call(this)||this;return n._value=t,n}return(0,r.C6)(t,e),Object.defineProperty(t.prototype,"value",{get:function(){return this.getValue()},enumerable:!1,configurable:!0}),t.prototype._subscribe=function(t){var n=e.prototype._subscribe.call(this,t);return n.closed||t.next(this._value),n},t.prototype.getValue=function(){var e=this.hasError,t=this.thrownError,n=this._value;if(e)throw t;return this._throwIfClosed(),n},t.prototype.next=function(t){e.prototype.next.call(this,this._value=t)},t}(n(3870).B)},95854:(e,t,n)=>{n.d(t,{DG:()=>E,E6:()=>k,J:()=>x,J_:()=>u,Jk:()=>c,KH:()=>d,Kk:()=>y,NI:()=>T,PH:()=>f,QP:()=>a,RM:()=>v,Tt:()=>A,XF:()=>w,Yk:()=>g,e2:()=>m,j2:()=>p,kH:()=>_,ql:()=>b,sj:()=>I,sm:()=>l,uE:()=>h,v$:()=>C});var r=n(13452),i=n(90910),s=n(61807);let a=r.xI("$ZodCheck",(e,t)=>{var n;e._zod??(e._zod={}),e._zod.def=t,(n=e._zod).onattach??(n.onattach=[])}),o={number:"number",bigint:"bigint",object:"date"},l=r.xI("$ZodCheckLessThan",(e,t)=>{a.init(e,t);let n=o[typeof t.value];e._zod.onattach.push(e=>{let n=e._zod.bag,r=(t.inclusive?n.maximum:n.exclusiveMaximum)??1/0;t.value<r&&(t.inclusive?n.maximum=t.value:n.exclusiveMaximum=t.value)}),e._zod.check=r=>{(t.inclusive?r.value<=t.value:r.value<t.value)||r.issues.push({origin:n,code:"too_big",maximum:t.value,input:r.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),u=r.xI("$ZodCheckGreaterThan",(e,t)=>{a.init(e,t);let n=o[typeof t.value];e._zod.onattach.push(e=>{let n=e._zod.bag,r=(t.inclusive?n.minimum:n.exclusiveMinimum)??-1/0;t.value>r&&(t.inclusive?n.minimum=t.value:n.exclusiveMinimum=t.value)}),e._zod.check=r=>{(t.inclusive?r.value>=t.value:r.value>t.value)||r.issues.push({origin:n,code:"too_small",minimum:t.value,input:r.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),c=r.xI("$ZodCheckMultipleOf",(e,t)=>{a.init(e,t),e._zod.onattach.push(e=>{var n;(n=e._zod.bag).multipleOf??(n.multipleOf=t.value)}),e._zod.check=n=>{if(typeof n.value!=typeof t.value)throw Error("Cannot mix number and bigint in multiple_of check.");("bigint"==typeof n.value?n.value%t.value===BigInt(0):0===s.floatSafeRemainder(n.value,t.value))||n.issues.push({origin:typeof n.value,code:"not_multiple_of",divisor:t.value,input:n.value,inst:e,continue:!t.abort})}}),d=r.xI("$ZodCheckNumberFormat",(e,t)=>{a.init(e,t),t.format=t.format||"float64";let n=t.format?.includes("int"),r=n?"int":"number",[o,l]=s.NUMBER_FORMAT_RANGES[t.format];e._zod.onattach.push(e=>{let r=e._zod.bag;r.format=t.format,r.minimum=o,r.maximum=l,n&&(r.pattern=i.integer)}),e._zod.check=i=>{let s=i.value;if(n){if(!Number.isInteger(s))return void i.issues.push({expected:r,format:t.format,code:"invalid_type",input:s,inst:e});if(!Number.isSafeInteger(s))return void(s>0?i.issues.push({input:s,code:"too_big",maximum:Number.MAX_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:r,continue:!t.abort}):i.issues.push({input:s,code:"too_small",minimum:Number.MIN_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:r,continue:!t.abort}))}s<o&&i.issues.push({origin:"number",input:s,code:"too_small",minimum:o,inclusive:!0,inst:e,continue:!t.abort}),s>l&&i.issues.push({origin:"number",input:s,code:"too_big",maximum:l,inst:e})}}),h=r.xI("$ZodCheckBigIntFormat",(e,t)=>{a.init(e,t);let[n,r]=s.BIGINT_FORMAT_RANGES[t.format];e._zod.onattach.push(e=>{let i=e._zod.bag;i.format=t.format,i.minimum=n,i.maximum=r}),e._zod.check=i=>{let s=i.value;
130s<n&&i.issues.push({origin:"bigint",input:s,code:"too_small",minimum:n,inclusive:!0,inst:e,continue:!t.abort}),s>r&&i.issues.push({origin:"bigint",input:s,code:"too_big",maximum:r,inst:e})}}),p=r.xI("$ZodCheckMaxSize",(e,t)=>{var n;a.init(e,t),(n=e._zod.def).when??(n.when=e=>{let t=e.value;return!s.nullish(t)&&void 0!==t.size}),e._zod.onattach.push(e=>{let n=e._zod.bag.maximum??1/0;t.maximum<n&&(e._zod.bag.maximum=t.maximum)}),e._zod.check=n=>{let r=n.value;r.size<=t.maximum||n.issues.push({origin:s.getSizableOrigin(r),code:"too_big",maximum:t.maximum,input:r,inst:e,continue:!t.abort})}}),f=r.xI("$ZodCheckMinSize",(e,t)=>{var n;a.init(e,t),(n=e._zod.def).when??(n.when=e=>{let t=e.value;return!s.nullish(t)&&void 0!==t.size}),e._zod.onattach.push(e=>{let n=e._zod.bag.minimum??-1/0;t.minimum>n&&(e._zod.bag.minimum=t.minimum)}),e._zod.check=n=>{let r=n.value;r.size>=t.minimum||n.issues.push({origin:s.getSizableOrigin(r),code:"too_small",minimum:t.minimum,input:r,inst:e,continue:!t.abort})}}),m=r.xI("$ZodCheckSizeEquals",(e,t)=>{var n;a.init(e,t),(n=e._zod.def).when??(n.when=e=>{let t=e.value;return!s.nullish(t)&&void 0!==t.size}),e._zod.onattach.push(e=>{let n=e._zod.bag;n.minimum=t.size,n.maximum=t.size,n.size=t.size}),e._zod.check=n=>{let r=n.value,i=r.size;if(i===t.size)return;let a=i>t.size;n.issues.push({origin:s.getSizableOrigin(r),...a?{code:"too_big",maximum:t.size}:{code:"too_small",minimum:t.size},inclusive:!0,exact:!0,input:n.value,inst:e,continue:!t.abort})}}),g=r.xI("$ZodCheckMaxLength",(e,t)=>{var n;a.init(e,t),(n=e._zod.def).when??(n.when=e=>{let t=e.value;return!s.nullish(t)&&void 0!==t.length}),e._zod.onattach.push(e=>{let n=e._zod.bag.maximum??1/0;t.maximum<n&&(e._zod.bag.maximum=t.maximum)}),e._zod.check=n=>{let r=n.value;if(r.length<=t.maximum)return;let i=s.getLengthableOrigin(r);n.issues.push({origin:i,code:"too_big",maximum:t.maximum,inclusive:!0,input:r,inst:e,continue:!t.abort})}}),y=r.xI("$ZodCheckMinLength",(e,t)=>{var n;a.init(e,t),(n=e._zod.def).when??(n.when=e=>{let t=e.value;return!s.nullish(t)&&void 0!==t.length}),e._zod.onattach.push(e=>{let n=e._zod.bag.minimum??-1/0;t.minimum>n&&(e._zod.bag.minimum=t.minimum)}),e._zod.check=n=>{let r=n.value;if(r.length>=t.minimum)return;let i=s.getLengthableOrigin(r);n.issues.push({origin:i,code:"too_small",minimum:t.minimum,inclusive:!0,input:r,inst:e,continue:!t.abort})}}),v=r.xI("$ZodCheckLengthEquals",(e,t)=>{var n;a.init(e,t),(n=e._zod.def).when??(n.when=e=>{let t=e.value;return!s.nullish(t)&&void 0!==t.length}),e._zod.onattach.push(e=>{let n=e._zod.bag;n.minimum=t.length,n.maximum=t.length,n.length=t.length}),e._zod.check=n=>{let r=n.value,i=r.length;if(i===t.length)return;let a=s.getLengthableOrigin(r),o=i>t.length;n.issues.push({origin:a,...o?{code:"too_big",maximum:t.length}:{code:"too_small",minimum:t.length},inclusive:!0,exact:!0,input:n.value,inst:e,continue:!t.abort})}}),b=r.xI("$ZodCheckStringFormat",(e,t)=>{var n,r;a.init(e,t),e._zod.onattach.push(e=>{let n=e._zod.bag;n.format=t.format,t.pattern&&(n.patterns??(n.patterns=new Set),n.patterns.add(t.pattern))}),t.pattern?(n=e._zod).check??(n.check=n=>{t.pattern.lastIndex=0,t.pattern.test(n.value)||n.issues.push({origin:"string",code:"invalid_format",format:t.format,input:n.value,...t.pattern?{pattern:t.pattern.toString()}:{},inst:e,continue:!t.abort})}):(r=e._zod).check??(r.check=()=>{})}),E=r.xI("$ZodCheckRegex",(e,t)=>{b.init(e,t),e._zod.check=n=>{t.pattern.lastIndex=0,t.pattern.test(n.value)||n.issues.push({origin:"string",code:"invalid_format",format:"regex",input:n.value,pattern:t.pattern.toString(),inst:e,continue:!t.abort})}}),T=r.xI("$ZodCheckLowerCase",(e,t)=>{t.pattern??(t.pattern=i.lowercase),b.init(e,t)}),_=r.xI("$ZodCheckUpperCase",(e,t)=>{t.pattern??(t.pattern=i.uppercase),b.init(e,t)}),A=r.xI("$ZodCheckIncludes",(e,t)=>{a.init(e,t);let n=s.escapeRegex(t.includes),r=new RegExp("number"==typeof t.position?`^.{${t.position}}${n}`:n);t.pattern=r,e._zod.onattach.push(e=>{let t=e._zod.bag;t.patterns??(t.patterns=new Set),t.patterns.add(r)}),e._zod.check=n=>{n.value.includes(t.includes,t.position)||n.issues.push({origin:"string",code:"invalid_format",format:"includes",includes:t.includes,input
130:n.value,inst:e,continue:!t.abort})}}),x=r.xI("$ZodCheckStartsWith",(e,t)=>{a.init(e,t);let n=RegExp(`^${s.escapeRegex(t.prefix)}.*`);t.pattern??(t.pattern=n),e._zod.onattach.push(e=>{let t=e._zod.bag;t.patterns??(t.patterns=new Set),t.patterns.add(n)}),e._zod.check=n=>{n.value.startsWith(t.prefix)||n.issues.push({origin:"string",code:"invalid_format",format:"starts_with",prefix:t.prefix,input:n.value,inst:e,continue:!t.abort})}}),k=r.xI("$ZodCheckEndsWith",(e,t)=>{a.init(e,t);let n=RegExp(`.*${s.escapeRegex(t.suffix)}$`);t.pattern??(t.pattern=n),e._zod.onattach.push(e=>{let t=e._zod.bag;t.patterns??(t.patterns=new Set),t.patterns.add(n)}),e._zod.check=n=>{n.value.endsWith(t.suffix)||n.issues.push({origin:"string",code:"invalid_format",format:"ends_with",suffix:t.suffix,input:n.value,inst:e,continue:!t.abort})}});function S(e,t,n){e.issues.length&&t.issues.push(...s.prefixIssues(n,e.issues))}let w=r.xI("$ZodCheckProperty",(e,t)=>{a.init(e,t),e._zod.check=e=>{let n=t.schema._zod.run({value:e.value[t.property],issues:[]},{});if(n instanceof Promise)return n.then(n=>S(n,e,t.property));S(n,e,t.property)}}),I=r.xI("$ZodCheckMimeType",(e,t)=>{a.init(e,t);let n=new Set(t.mime);e._zod.onattach.push(e=>{e._zod.bag.mime=t.mime}),e._zod.check=r=>{n.has(r.value.type)||r.issues.push({code:"invalid_value",values:t.mime,input:r.value.type,inst:e})}}),C=r.xI("$ZodCheckOverwrite",(e,t)=>{a.init(e,t),e._zod.check=e=>{e.value=t.tx(e.value)}})},95996:(e,t,n)=>{n.d(t,{hO:()=>l,sG:()=>o});var r=n(23073),i=n(52452),s=n(44567),a=n(805),o=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((e,t)=>{let n=(0,s.TL)(`Primitive.${t}`),i=r.forwardRef((e,r)=>{let{asChild:i,...s}=e;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,a.jsx)(i?n:t,{...s,ref:r})});return i.displayName=`Primitive.${t}`,{...e,[t]:i}},{});function l(e,t){e&&i.flushSync(()=>e.dispatchEvent(t))}},96238:(e,t,n)=>{n.d(t,{N:()=>r});function r(e,t,n,r,i){void 0===r&&(r=0),void 0===i&&(i=!1);var s=t.schedule(function(){n(),i?e.add(this.schedule(null,r)):this.unsubscribe()},r);if(e.add(s),!i)return s}},96574:(e,t,n)=>{n.d(t,{Ms:()=>y,vU:()=>p});var r=n(82967),i=n(99244),s=n(4956),a=n(83109),o=n(43801),l=n(60184),u=c("C",void 0,void 0);function c(e,t,n){return{kind:e,value:t,error:n}}var d=n(59197),h=n(3125),p=function(e){function t(t){var n=e.call(this)||this;return n.isStopped=!1,t?(n.destination=t,(0,s.Uv)(t)&&t.add(n)):n.destination=E,n}return(0,r.C6)(t,e),t.create=function(e,t,n){return new y(e,t,n)},t.prototype.next=function(e){this.isStopped?b(c("N",e,void 0),this):this._next(e)},t.prototype.error=function(e){this.isStopped?b(c("E",void 0,e),this):(this.isStopped=!0,this._error(e))},t.prototype.complete=function(){this.isStopped?b(u,this):(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(e){this.destination.next(e)},t.prototype._error=function(e){try{this.destination.error(e)}finally{this.unsubscribe()}},t.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},t}(s.yU),f=Function.prototype.bind;function m(e,t){return f.call(e,t)}var g=function(){function e(e){this.partialObserver=e}return e.prototype.next=function(e){var t=this.partialObserver;if(t.next)try{t.next(e)}catch(e){v(e)}},e.prototype.error=function(e){var t=this.partialObserver;if(t.error)try{t.error(e)}catch(e){v(e)}else v(e)},e.prototype.complete=function(){var e=this.partialObserver;if(e.complete)try{e.complete()}catch(e){v(e)}},e}(),y=function(e){function t(t,n,r){var s,o,l=e.call(this)||this;return(0,i.T)(t)||!t?s={next:null!=t?t:void 0,error:null!=n?n:void 0,complete:null!=r?r:void 0}:l&&a.$.useDeprecatedNextContext?((o=Object.create(t)).unsubscribe=function(){return l.unsubscribe()},s={next:t.next&&m(t.next,o),error:t.error&&m(t.error,o),complete:t.complete&&m(t.complete,o)}):s=t,l.destination=new g(s),l}return(0,r.C6)(t,e),t}(p);function v(e){a.$.useDeprecatedSynchronousErrorHandling?(0,h.l)(e):(0,o.m)(e)}function b(e,t){var n=a.$.onStoppedNotification;n&&d.f.setTimeout(function(){return n(e,t)})}var E={closed:!0,next:l.l,error:function(e){throw e},complete:l.l}}
130,96899:(e,t,n)=>{n.d(t,{t:()=>s});var r=n(65174),i=n(60184),s=new r.c(i.l)},96990:(e,t,n)=>{n.d(t,{x:()=>s});var r=n(41614),i=n(99244);function s(e){return(0,i.T)(null==e?void 0:e[r.l])}},98370:(e,t,n)=>{n.d(t,{A:()=>r});let r=(0,n(45751).A)("refresh-cw",[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]])},98751:(e,t,n)=>{n.d(t,{A:()=>r});let r=(0,n(45751).A)("volume-2",[["path",{d:"M11 4.702a.705.705 0 0 0-1.203-.498L6.413 7.587A1.4 1.4 0 0 1 5.416 8H3a1 1 0 0 0-1 1v6a1 1 0 0 0 1 1h2.416a1.4 1.4 0 0 1 .997.413l3.383 3.384A.705.705 0 0 0 11 19.298z",key:"uqj9uw"}],["path",{d:"M16 9a5 5 0 0 1 0 6",key:"1q6k2b"}],["path",{d:"M19.364 18.364a9 9 0 0 0 0-12.728",key:"ijwkga"}]])},98818:(e,t,n)=>{n.d(t,{W:()=>function e(t){return(0,s.N)(function(n,s){var a,o=null,l=!1;o=n.subscribe((0,i._)(s,void 0,void 0,function(i){a=(0,r.Tg)(t(i,e(t)(n))),o?(o.unsubscribe(),o=null,a.subscribe(s)):l=!0})),l&&(o.unsubscribe(),o=null,a.subscribe(s))})}});var r=n(59761),i=n(28963),s=n(34401)},99244:(e,t,n)=>{n.d(t,{T:()=>r});function r(e){return"function"==typeof e}},99438:(e,t,n)=>{n.d(t,{M:()=>o});var r=n(99244),i=n(34401),s=n(28963),a=n(50742);function o(e,t,n){var o=(0,r.T)(e)||t||n?{next:e,error:t,complete:n}:e;return o?(0,i.N)(function(e,t){null==(n=o.subscribe)||n.call(o);var n,r=!0;e.subscribe((0,s._)(t,function(e){var n;null==(n=o.next)||n.call(o,e),t.next(e)},function(){var e;r=!1,null==(e=o.complete)||e.call(o),t.complete()},function(e){var n;r=!1,null==(n=o.error)||n.call(o,e),t.error(e)},function(){var e,t;r&&(null==(e=o.unsubscribe)||e.call(o)),null==(t=o.finalize)||t.call(o)}))}):a.D}},99674:(e,t,n)=>{n.d(t,{q:()=>a});var r=n(82967),i=n(89823),s=n(71766);function a(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return function(t){return(0,i.x)(t,s.of.apply(void 0,(0,r.fX)([],(0,r.zs)(e))))}}}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.