maidr 3.17.4 → 3.17.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/maidr.js +20 -20
- package/dist/maidr.js.map +1 -1
- package/package.json +1 -1
package/dist/maidr.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
(function(Mr){typeof define=="function"&&define.amd?define(Mr):Mr()})(function(){"use strict";var Jae=Object.defineProperty;var eoe=(Mr,E4,E1)=>E4 in Mr?Jae(Mr,E4,{enumerable:!0,configurable:!0,writable:!0,value:E1}):Mr[E4]=E1;var oe=(Mr,E4,E1)=>eoe(Mr,typeof E4!="symbol"?E4+"":E4,E1);function Mr(e,t){for(var n=0;n<t.length;n++){const l=t[n];if(typeof l!="string"&&!Array.isArray(l)){for(const o in l)if(o!=="default"&&!(o in e)){const a=Object.getOwnPropertyDescriptor(l,o);a&&Object.defineProperty(e,o,a.get?a:{enumerable:!0,get:()=>l[o]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}var E4=(e=>(e.CLICK="click",e.DOM_LOADED="DOMContentLoaded",e.FOCUS_IN="focusin",e.FOCUS_OUT="focusout",e.SELECTION_CHANGE="selectionchange",e))(E4||{}),E1=(e=>(e.BRAILLE="BRAILLE",e.CHAT="CHAT",e.HELP="HELP",e.FIGURE_LABEL="FIGURE_LABEL",e.SUBPLOT="SUBPLOT",e.TRACE="TRACE",e.TRACE_LABEL="TRACE_LABEL",e.REVIEW="REVIEW",e.SETTINGS="SETTINGS",e))(E1||{});class bs{constructor(){oe(this,"listeners");oe(this,"event",t=>(this.listeners.add(t),{dispose:()=>this.listeners.delete(t)}));this.listeners=new Set}dispose(){this.listeners.clear()}fire(t){for(const n of this.listeners)n(t)}}class
|
|
2
|
-
`),oe(Le,"OPEN_BRACKET","["),oe(Le,"POLYLINE","polyline"),oe(Le,"SPACE"," "),oe(Le,"THROUGH"," through "),oe(Le,"TRANSPARENT","transparent"),oe(Le,"VISIBLE","visible"),oe(Le,"X","x"),oe(Le,"Y","y"),oe(Le,"HIGHLIGHT_BASE_COLOR",{r:255,g:255,b:255}),oe(Le,"HIGHLIGHT_CONTRAST_RATIO",3),oe(Le,"HIGHLIGHT_COLOR_RATIO",.6),oe(Le,"HIGHLIGHT_MAX_COLOR",255);let fv=class{constructor(){oe(this,"items");this.items=new Array}push(t){this.items.push(t)}pop(){return this.items.pop()}peek(){return this.items[this.items.length-1]}removeLast(t,n=1){const l=this.items.lastIndexOf(t);return l!==-1?(this.items.splice(l,n),!0):!1}isEmpty(){return this.items.length===0}size(){return this.items.length}clear(){this.items.length=0}};const dv=typeof navigator<"u"?navigator.userAgent.toLowerCase().indexOf("firefox")>0:!1;function hv(e,t,n,l){e.addEventListener?e.addEventListener(t,n,l):e.attachEvent&&e.attachEvent("on".concat(t),n)}function Ec(e,t,n,l){e.removeEventListener?e.removeEventListener(t,n,l):e.detachEvent&&e.detachEvent("on".concat(t),n)}function qH(e,t){const n=t.slice(0,t.length-1);for(let l=0;l<n.length;l++)n[l]=e[n[l].toLowerCase()];return n}function $H(e){typeof e!="string"&&(e=""),e=e.replace(/\s/g,"");const t=e.split(",");let n=t.lastIndexOf("");for(;n>=0;)t[n-1]+=",",t.splice(n,1),n=t.lastIndexOf("");return t}function pj(e,t){const n=e.length>=t.length?e:t,l=e.length>=t.length?t:e;let o=!0;for(let a=0;a<n.length;a++)l.indexOf(n[a])===-1&&(o=!1);return o}const Sc={backspace:8,"⌫":8,tab:9,clear:12,enter:13,"↩":13,return:13,esc:27,escape:27,space:32,left:37,up:38,right:39,down:40,del:46,delete:46,ins:45,insert:45,home:36,end:35,pageup:33,pagedown:34,capslock:20,num_0:96,num_1:97,num_2:98,num_3:99,num_4:100,num_5:101,num_6:102,num_7:103,num_8:104,num_9:105,num_multiply:106,num_add:107,num_enter:108,num_subtract:109,num_decimal:110,num_divide:111,"⇪":20,",":188,".":190,"/":191,"`":192,"-":dv?173:189,"=":dv?61:187,";":dv?59:186,"'":222,"[":219,"]":221,"\\":220},u5={"⇧":16,shift:16,"⌥":18,alt:18,option:18,"⌃":17,ctrl:17,control:17,"⌘":91,cmd:91,command:91},Mc={16:"shiftKey",18:"altKey",17:"ctrlKey",91:"metaKey",shiftKey:16,ctrlKey:17,altKey:18,metaKey:91},_3={16:!1,18:!1,17:!1,91:!1},b2={};for(let e=1;e<20;e++)Sc["f".concat(e)]=111+e;let p2=[],Ac=null,UH="all";const O0=new Map,_c=e=>Sc[e.toLowerCase()]||u5[e.toLowerCase()]||e.toUpperCase().charCodeAt(0),mj=e=>Object.keys(Sc).find(t=>Sc[t]===e),yj=e=>Object.keys(u5).find(t=>u5[t]===e);function GH(e){UH=e||"all"}function Oc(){return UH||"all"}function gj(){return p2.slice(0)}function vj(){return p2.map(e=>mj(e)||yj(e)||String.fromCharCode(e))}function Lj(){const e=[];return Object.keys(b2).forEach(t=>{b2[t].forEach(n=>{let{key:l,scope:o,mods:a,shortcut:i}=n;e.push({scope:o,shortcut:i,mods:a,keys:l.split("+").map(s=>_c(s))})})}),e}function xj(e){const t=e.target||e.srcElement,{tagName:n}=t;let l=!0;const o=n==="INPUT"&&!["checkbox","radio","range","button","file","reset","submit","color"].includes(t.type);return(t.isContentEditable||(o||n==="TEXTAREA"||n==="SELECT")&&!t.readOnly)&&(l=!1),l}function bj(e){return typeof e=="string"&&(e=_c(e)),p2.indexOf(e)!==-1}function Hj(e,t){let n,l;e||(e=Oc());for(const o in b2)if(Object.prototype.hasOwnProperty.call(b2,o))for(n=b2[o],l=0;l<n.length;)n[l].scope===e?n.splice(l,1).forEach(i=>{let{element:s}=i;return pv(s)}):l++;Oc()===e&&GH(t||"all")}function Ej(e){let t=e.keyCode||e.which||e.charCode;const n=p2.indexOf(t);if(n>=0&&p2.splice(n,1),e.key&&e.key.toLowerCase()==="meta"&&p2.splice(0,p2.length),(t===93||t===224)&&(t=91),t in _3){_3[t]=!1;for(const l in u5)u5[l]===t&&(q3[l]=!1)}}function ZH(e){if(typeof e>"u")Object.keys(b2).forEach(o=>{Array.isArray(b2[o])&&b2[o].forEach(a=>bp(a)),delete b2[o]}),pv(null);else if(Array.isArray(e))e.forEach(o=>{o.key&&bp(o)});else if(typeof e=="object")e.key&&bp(e);else if(typeof e=="string"){for(var t=arguments.length,n=new Array(t>1?t-1:0),l=1;l<t;l++)n[l-1]=arguments[l];let[o,a]=n;typeof o=="function"&&(a=o,o=""),bp({key:e,scope:o,method:a,splitKey:"+"})}}const bp=e=>{let{key:t,scope:n,method:l,splitKey:o="+"}=e;$H(t).forEach(i=>{const s=i.split(o),T=s.length,u=s[T-1],Q=u==="*"?"*":_c(u);if(!b2[Q])return;n||(n=Oc());const f=T>1?qH(u5,s):[],h=[];b2[Q]=b2[Q].filter(p=>{const v=(l?p.method===l:!0)&&p.scope===n&&pj(p.mods,f);return v&&h.push(p.element),!v}),h.forEach(p=>pv(p))})};function XH(e,t,n,l){if(t.element!==l)return;let o;if(t.scope===n||t.scope==="all"){o=t.mods.length>0;for(const a in _3)Object.prototype.hasOwnProperty.call(_3,a)&&(!_3[a]&&t.mods.indexOf(+a)>-1||_3[a]&&t.mods.indexOf(+a)===-1)&&(o=!1);(t.mods.length===0&&!_3[16]&&!_3[18]&&!_3[17]&&!_3[91]||o||t.shortcut==="*")&&(t.keys=[],t.keys=t.keys.concat(p2),t.method(e,t)===!1&&(e.preventDefault?e.preventDefault():e.returnValue=!1,e.stopPropagation&&e.stopPropagation(),e.cancelBubble&&(e.cancelBubble=!0)))}}function WH(e,t){const n=b2["*"];let l=e.keyCode||e.which||e.charCode;if(!q3.filter.call(this,e))return;if((l===93||l===224)&&(l=91),p2.indexOf(l)===-1&&l!==229&&p2.push(l),["metaKey","ctrlKey","altKey","shiftKey"].forEach(s=>{const T=Mc[s];e[s]&&p2.indexOf(T)===-1?p2.push(T):!e[s]&&p2.indexOf(T)>-1?p2.splice(p2.indexOf(T),1):s==="metaKey"&&e[s]&&(p2=p2.filter(u=>u in Mc||u===l))}),l in _3){_3[l]=!0;for(const s in u5)if(Object.prototype.hasOwnProperty.call(u5,s)){const T=Mc[u5[s]];q3[s]=e[T]}if(!n)return}for(const s in _3)Object.prototype.hasOwnProperty.call(_3,s)&&(_3[s]=e[Mc[s]]);e.getModifierState&&!(e.altKey&&!e.ctrlKey)&&e.getModifierState("AltGraph")&&(p2.indexOf(17)===-1&&p2.push(17),p2.indexOf(18)===-1&&p2.push(18),_3[17]=!0,_3[18]=!0);const o=Oc();if(n)for(let s=0;s<n.length;s++)n[s].scope===o&&(e.type==="keydown"&&n[s].keydown||e.type==="keyup"&&n[s].keyup)&&XH(e,n[s],o,t);if(!(l in b2))return;const a=b2[l],i=a.length;for(let s=0;s<i;s++)if((e.type==="keydown"&&a[s].keydown||e.type==="keyup"&&a[s].keyup)&&a[s].key){const T=a[s],{splitKey:u}=T,Q=T.key.split(u),f=[];for(let h=0;h<Q.length;h++)f.push(_c(Q[h]));f.sort().join("")===p2.sort().join("")&&XH(e,T,o,t)}}function q3(e,t,n){p2=[];const l=$H(e);let o=[],a="all",i=document,s=0,T=!1,u=!0,Q="+",f=!1,h=!1;for(n===void 0&&typeof t=="function"&&(n=t),Object.prototype.toString.call(t)==="[object Object]"&&(t.scope&&(a=t.scope),t.element&&(i=t.element),t.keyup&&(T=t.keyup),t.keydown!==void 0&&(u=t.keydown),t.capture!==void 0&&(f=t.capture),typeof t.splitKey=="string"&&(Q=t.splitKey),t.single===!0&&(h=!0)),typeof t=="string"&&(a=t),h&&ZH(e,a);s<l.length;s++)e=l[s].split(Q),o=[],e.length>1&&(o=qH(u5,e)),e=e[e.length-1],e=e==="*"?"*":_c(e),e in b2||(b2[e]=[]),b2[e].push({keyup:T,keydown:u,scope:a,mods:o,shortcut:l[s],method:n,key:l[s],splitKey:Q,element:i});if(typeof i<"u"&&window){if(!O0.has(i)){const p=function(){let v=arguments.length>0&&arguments[0]!==void 0?arguments[0]:window.event;return WH(v,i)},g=function(){let v=arguments.length>0&&arguments[0]!==void 0?arguments[0]:window.event;WH(v,i),Ej(v)};O0.set(i,{keydownListener:p,keyupListenr:g,capture:f}),hv(i,"keydown",p,f),hv(i,"keyup",g,f)}if(!Ac){const p=()=>{p2=[]};Ac={listener:p,capture:f},hv(window,"focus",p,f)}}}function Sj(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"all";Object.keys(b2).forEach(n=>{b2[n].filter(o=>o.scope===t&&o.shortcut===e).forEach(o=>{o&&o.method&&o.method()})})}function pv(e){const t=Object.values(b2).flat();if(t.findIndex(l=>{let{element:o}=l;return o===e})<0){const{keydownListener:l,keyupListenr:o,capture:a}=O0.get(e)||{};l&&o&&(Ec(e,"keyup",o,a),Ec(e,"keydown",l,a),O0.delete(e))}if((t.length<=0||O0.size<=0)&&(Object.keys(O0).forEach(o=>{const{keydownListener:a,keyupListenr:i,capture:s}=O0.get(o)||{};a&&i&&(Ec(o,"keyup",i,s),Ec(o,"keydown",a,s),O0.delete(o))}),O0.clear(),Object.keys(b2).forEach(o=>delete b2[o]),Ac)){const{listener:o,capture:a}=Ac;Ec(window,"focus",o,a),Ac=null}}const mv={getPressedKeyString:vj,setScope:GH,getScope:Oc,deleteScope:Hj,getPressedKeyCodes:gj,getAllKeyCodes:Lj,isPressed:bj,filter:xj,trigger:Sj,unbind:ZH,keyMap:Sc,modifier:u5,modifierMap:Mc};for(const e in mv)Object.prototype.hasOwnProperty.call(mv,e)&&(q3[e]=mv[e]);if(typeof window<"u"){const e=window.hotkeys;q3.noConflict=t=>(t&&window.hotkeys===q3&&(window.hotkeys=e),q3),window.hotkeys=q3}class Mj{constructor(t){oe(this,"id");oe(this,"instructionContext");oe(this,"plotContext");oe(this,"scopeContext");this.id=t.id,this.plotContext=new fv,this.scopeContext=new fv;const n=t.state;if(n.empty||n.size!==1){this.instructionContext=t,this.plotContext.push(t),this.scopeContext.push(E1.SUBPLOT);return}this.scopeContext.push(E1.TRACE);const l=t.activeSubplot.state;if(l.empty||l.size!==1){this.instructionContext=t.activeSubplot,this.plotContext.push(t.activeSubplot),this.plotContext.push(t.activeSubplot.activeTrace);return}this.instructionContext=t.activeSubplot.activeTrace,this.plotContext.push(t.activeSubplot.activeTrace)}dispose(){this.plotContext.clear(),this.scopeContext.clear()}get active(){return this.plotContext.peek()}get state(){return this.active.state}toggleScope(t){this.scopeContext.removeLast(t)||this.scopeContext.push(t),q3.setScope(this.scope)}get scope(){return this.scopeContext.peek()}isMovable(t){return this.active.isMovable(t)}moveOnce(t){this.active.moveOnce(t)}moveToExtreme(t){this.active.moveToExtreme(t)}moveToIndex(t,n){this.active.moveToIndex(t,n)}stepTrace(t){if(this.plotContext.size()>1){this.plotContext.pop();const n=this.active;n.moveOnce(t),this.active.notifyStateUpdate(),this.plotContext.push(n.activeTrace)}}enterSubplot(){if(this.active.state.type==="figure"){const n=this.active;this.plotContext.push(n.activeSubplot),this.active.notifyStateUpdate(),this.plotContext.push(n.activeSubplot.activeTrace),this.toggleScope(E1.TRACE)}}exitSubplot(){this.plotContext.size()>2&&(this.plotContext.pop(),this.plotContext.pop(),this.active.notifyStateUpdate(),this.toggleScope(E1.TRACE))}getInstruction(t){const n=this.instructionContext.state;if(n.empty)return`No ${n.type} info available`;const l=t?"Click to activate.":Le.EMPTY;switch(n.type){case"figure":return`This is a MAIDR figure containing ${n.size} subplots. ${l} Use arrow keys to navigate subplots and press 'ENTER'.`;case"subplot":return`This is a MAIDR subplot containing ${n.size} layers, and this is layer 1 of ${n.size}: ${n.trace.traceType} plot. ${l} Use Arrows to navigate data points. Toggle B for Braille, T for Text, S for Sonification, and R for Review mode.`;case"trace":return`This is a maidr plot of type: ${n.traceType}. ${l} Use Arrows to navigate data points. Toggle B for Braille, T for Text, S for Sonification, and R for Review mode.`}}}const Aj="unavailable",_j="X",Oj="Y",Cj="unavailable";class yv{constructor(){oe(this,"observers");oe(this,"isInitialEntry");oe(this,"isOutOfBounds");oe(this,"row");oe(this,"col");this.observers=new Array,this.isInitialEntry=!0,this.isOutOfBounds=!1,this.row=0,this.col=0}dispose(){for(const t of this.observers)this.removeObserver(t);this.observers.length=0}moveOnce(t){if(this.isInitialEntry){this.handleInitialEntry(),this.notifyStateUpdate();return}if(!this.isMovable(t)){this.notifyOutOfBounds();return}switch(t){case"UPWARD":this.row+=1;break;case"DOWNWARD":this.row-=1;break;case"FORWARD":this.col+=1;break;case"BACKWARD":this.col-=1;break}this.notifyStateUpdate()}getSafeIndices(){var o;const t=this.values,n=this.row>=0&&this.row<t.length?this.row:0,l=this.col>=0&&this.col<(((o=t[n])==null?void 0:o.length)||0)?this.col:0;return{row:n,col:l}}moveToExtreme(t){var n;switch(this.isInitialEntry&&this.handleInitialEntry(),t){case"UPWARD":this.row=this.values.length-1;break;case"DOWNWARD":this.row=0;break;case"FORWARD":{const{row:l}=this.getSafeIndices();this.col=(n=this.values[l])!=null&&n.length?this.values[l].length-1:0;break}case"BACKWARD":this.col=0;break}this.notifyStateUpdate()}moveToIndex(t,n){this.isMovable([t,n])&&(this.row=t,this.col=n,this.isInitialEntry=!1,this.notifyStateUpdate())}isMovable(t){var n,l;if(Array.isArray(t)){const[o,a]=t,{row:i}=this.getSafeIndices();return o>=0&&o<this.values.length&&a>=0&&a<(((n=this.values[i])==null?void 0:n.length)||0)}switch(t){case"UPWARD":return this.row<this.values.length-1;case"DOWNWARD":return this.row>0;case"FORWARD":{const{row:o}=this.getSafeIndices();return this.col<(((l=this.values[o])==null?void 0:l.length)||0)-1}case"BACKWARD":return this.col>0}}handleInitialEntry(){var n;this.isInitialEntry=!1,this.row=Math.max(0,Math.min(this.row,this.values.length-1));const{row:t}=this.getSafeIndices();this.col=Math.max(0,Math.min(this.col,(((n=this.values[t])==null?void 0:n.length)||0)-1))}addObserver(t){this.observers.push(t)}removeObserver(t){this.observers=this.observers.filter(n=>n!==t)}notifyStateUpdate(){const t=this.state;for(const n of this.observers)n.update(t)}notifyOutOfBounds(){this.isOutOfBounds=!0,this.notifyStateUpdate(),this.isOutOfBounds=!1}}class Hs extends yv{constructor(n){var l,o,a;super();oe(this,"id");oe(this,"type");oe(this,"title");oe(this,"xAxis");oe(this,"yAxis");oe(this,"fill");this.id=n.id,this.type=n.type,this.title=n.title??Aj,this.xAxis=((l=n.axes)==null?void 0:l.x)??_j,this.yAxis=((o=n.axes)==null?void 0:o.y)??Oj,this.fill=((a=n.axes)==null?void 0:a.fill)??Cj}dispose(){this.values.length=0,this.highlightValues&&(this.highlightValues.forEach(n=>n.forEach(l=>{(Array.isArray(l)?l:[l]).forEach(a=>a.remove())})),this.highlightValues.length=0),super.dispose()}get state(){var n;if(this.isOutOfBounds){const{row:l,col:o}=this.getSafeIndices(),a=this.values;return{empty:!0,type:"trace",traceType:this.type,audio:{size:((n=a[l])==null?void 0:n.length)||0,index:o}}}return{empty:!1,type:"trace",traceType:this.type,title:this.title,xAxis:this.xAxis,yAxis:this.yAxis,fill:this.fill,hasMultiPoints:this.hasMultiPoints(),audio:this.audio(),braille:this.braille(),text:this.text(),autoplay:this.autoplay,highlight:this.highlight()}}highlight(){var n;if(this.highlightValues===null||this.isInitialEntry){const{row:l,col:o}=this.getSafeIndices(),a=this.values;return{empty:!0,type:"trace",traceType:this.type,audio:{size:((n=a[l])==null?void 0:n.length)||0,index:o}}}return{empty:!1,elements:this.highlightValues[this.row][this.col]}}getAudioGroupIndex(){return this.values&&this.values.length>1?{groupIndex:this.row}:{}}get autoplay(){var o;const{row:n}=this.getSafeIndices(),l=((o=this.values[n])==null?void 0:o.length)||0;return{UPWARD:this.values.length,DOWNWARD:this.values.length,FORWARD:l,BACKWARD:l}}hasMultiPoints(){return!1}}var B2=(e=>(e.VERTICAL="vert",e.HORIZONTAL="horz",e))(B2||{}),P2=(e=>(e.BAR="bar",e.BOX="box",e.CANDLESTICK="candlestick",e.DODGED="dodged_bar",e.HEATMAP="heat",e.HISTOGRAM="hist",e.LINE="line",e.NORMALIZED="stacked_normalized_bar",e.SCATTER="point",e.SMOOTH="smooth",e.STACKED="stacked_bar",e))(P2||{});class $3{constructor(){}static safeMin(t){return t.length===0?1/0:Math.min(...t)}static safeMax(t){return t.length===0?-1/0:Math.max(...t)}static minFrom2D(t){const n=t.flat();return this.safeMin(n)}static maxFrom2D(t){const n=t.flat();return this.safeMax(n)}static minMax(t){if(t.length===0)return{min:1/0,max:-1/0};let n=t[0],l=t[0];for(let o=1;o<t.length;o++){const a=t[o];a<n&&(n=a),a>l&&(l=a)}return{min:n,max:l}}static minMaxFrom2D(t){const n=t.flat();return this.minMax(n)}}class Hp{constructor(){}static parse(t){const n=t.replace(/\s/g,"").toLowerCase();if(/^#(?:[a-f0-9]{3}){1,2}$/.test(n)){let o=n.substring(1).split("");return o.length===3&&(o=[o[0],o[0],o[1],o[1],o[2],o[2]]),{r:Number.parseInt(o[0]+o[1],16),g:Number.parseInt(o[2]+o[3],16),b:Number.parseInt(o[4]+o[5],16)}}const l=n.match(/^rgba?\((\d+),(\d+),(\d+)(?:,\d*(?:\.\d*)?)?\)$/);return l?{r:Number.parseInt(l[1],10),g:Number.parseInt(l[2],10),b:Number.parseInt(l[3],10)}:null}static invert(t){return{r:255-t.r,g:255-t.g,b:255-t.b}}static getContrastRatio(t,n){const l=this.calculateLuminance(t),o=this.calculateLuminance(n);return(Math.max(l,o)+.05)/(Math.min(l,o)+.05)}static calculateLuminance(t){const[n,l,o]=[t.r,t.g,t.b].map(a=>{const i=a/255;return i<=.03928?i/12.92:((i+.055)/1.055)**2.4});return .2126*n+.7152*l+.0722*o}static rgbToString(t){return`rgb(${t.r}, ${t.g}, ${t.b})`}}class w1{constructor(){}static async toBase64(t){try{const n=new XMLSerializer().serializeToString(t).replace(/>\s+</g,"> <").replace(/\s{2,}/g," ").trim(),o=`data:image/svg+xml;charset=utf-8,${encodeURIComponent(n).replace(/'/g,"%27").replace(/"/g,"%22")}`,a=await new Promise((T,u)=>{const Q=new Image;Q.onload=()=>T(Q),Q.onerror=()=>u(new Error("Failed to load SVG image")),Q.src=o}),i=document.createElement("canvas");[i.width,i.height]=[a.naturalWidth,a.naturalHeight];const s=i.getContext("2d");return s?(s.drawImage(a,0,0),i.toDataURL("image/jpeg",.92)):(console.error("Error converting SVG to Base 64: Canvas context unavailable"),"")}catch(n){return console.error("Error converting SVG to Base 64:",n instanceof Error?n.message:n),""}}static selectAllElements(t,n=!0){return Array.from(document.querySelectorAll(t)).map(l=>{if(!n)return l;const o=l.cloneNode(!0);return o.setAttribute(Le.VISIBILITY,Le.HIDDEN),l.insertAdjacentElement(Le.AFTER_END,o),o})}static selectElement(t,n=!0){const l=document.querySelector(t);if(!n)return l;const o=l==null?void 0:l.cloneNode(!0);return o==null||o.setAttribute(Le.VISIBILITY,Le.HIDDEN),l==null||l.insertAdjacentElement(Le.AFTER_END,o),o}static createEmptyElement(t="rect"){const n=document.createElementNS(this.SVG_NAMESPACE,t);return n.setAttribute(Le.FILL,Le.TRANSPARENT),n.setAttribute(Le.STROKE,Le.TRANSPARENT),n.setAttribute(Le.VISIBILITY,Le.HIDDEN),n}static createCircleElement(t,n,l){var u;const o=window.getComputedStyle(l),a=o.stroke||o.fill,i=o.strokeWidth||"2",s=Number.parseFloat(i)*2,T=document.createElementNS(this.SVG_NAMESPACE,Le.CIRCLE);return T.setAttribute(Le.CIRCLE_X,String(t)),T.setAttribute(Le.CIRCLE_Y,String(n)),T.setAttribute(Le.RADIUS,String(s)),T.setAttribute(Le.FILL,a),T.setAttribute(Le.STROKE,a),T.setAttribute(Le.STROKE_WIDTH,i),T.setAttribute(Le.VISIBILITY,Le.HIDDEN),(u=l.parentElement)==null||u.insertAdjacentElement(Le.AFTER_END,T),T}static createLineElement(t,n){const o=t.getBBox();let a,i,s,T;switch(n){case"top":[a,i,s,T]=[o.x,o.y,o.x+o.width,o.y];break;case"bottom":[a,i,s,T]=[o.x,o.y+o.height,o.x+o.width,o.y+o.height];break;case"left":[a,i,s,T]=[o.x,o.y,o.x,o.y+o.height];break;case"right":[a,i,s,T]=[o.x+o.width,o.y,o.x+o.width,o.y+o.height];break}const u=window.getComputedStyle(t),Q=document.createElementNS(this.SVG_NAMESPACE,Le.LINE);return Q.setAttribute(Le.X1,String(a)),Q.setAttribute(Le.Y1,String(i)),Q.setAttribute(Le.X2,String(s)),Q.setAttribute(Le.Y2,String(T)),Q.setAttribute(Le.STROKE,u.stroke),Q.setAttribute(Le.STROKE_WIDTH,u.strokeWidth||"2"),Q.setAttribute(Le.VISIBILITY,Le.HIDDEN),t.insertAdjacentElement(Le.AFTER_END,Q),Q}static createHighlightElement(t,n){const l=t.cloneNode(!0),o=t.tagName.toLowerCase(),a=o===Le.POLYLINE||o===Le.LINE,i=a?window.getComputedStyle(t).getPropertyValue(Le.STROKE):window.getComputedStyle(t).getPropertyValue(Le.FILL),s=this.getHighlightColor(i,n);if(l.setAttribute(Le.VISIBILITY,Le.VISIBLE),l.setAttribute(Le.STROKE,s),l.setAttribute(Le.FILL,s),l.style.fill=s,l.style.stroke=s,a){const T=window.getComputedStyle(l).getPropertyValue(Le.STROKE_WIDTH);l.setAttribute(Le.STROKE_WIDTH,`${T+2}`)}return t.insertAdjacentElement(Le.AFTER_END,l),l}static getHighlightColor(t,n){const l=Hp.parse(t);if(!l||!(Hp.getContrastRatio(l,Le.HIGHLIGHT_BASE_COLOR)<Le.HIGHLIGHT_CONTRAST_RATIO))return n;const i={...l};return l.r===l.g&&l.g===l.b?(i.r=Math.min(Le.HIGHLIGHT_MAX_COLOR,Math.floor(l.r*Le.HIGHLIGHT_COLOR_RATIO)),i.g=Math.min(Le.HIGHLIGHT_MAX_COLOR,Math.floor(l.g*Le.HIGHLIGHT_COLOR_RATIO)),i.b=Math.min(Le.HIGHLIGHT_MAX_COLOR,Math.floor(l.b*Le.HIGHLIGHT_COLOR_RATIO))):l.r>=l.g&&l.r>=l.b?i.r=Math.min(Le.HIGHLIGHT_MAX_COLOR,Math.floor(l.r*Le.HIGHLIGHT_COLOR_RATIO)):l.g>=l.r&&l.g>=l.b?i.g=Math.min(Le.HIGHLIGHT_MAX_COLOR,Math.floor(l.g*Le.HIGHLIGHT_COLOR_RATIO)):i.b=Math.min(Le.HIGHLIGHT_MAX_COLOR,Math.floor(l.b*Le.HIGHLIGHT_COLOR_RATIO)),Hp.rgbToString(i)}static getContrastingColorForElement(t){const n=window.getComputedStyle(t).fill||"rgb(255,255,255)",l=Hp.parse(n);return l?(.2126*l.r+.7152*l.g+.0722*l.b)/255>.5?"#000":"#fff":"#000"}static setSubplotHighlightCss(t,n){t.style.outline=`4px solid ${n}`,t.style.outlineOffset="3px",t.style.borderRadius="3px",t.style.overflow="visible"}static removeSubplotHighlightCss(t){t.style.removeProperty("outline"),t.style.removeProperty("outline-offset"),t.style.removeProperty("border-radius"),t.style.removeProperty("overflow")}static setSubplotHighlightSvgWithAdaptiveColor(t,n,l){const o=t.querySelector("rect, path");let a="";if(o){a=window.getComputedStyle(o).getPropertyValue("fill"),(!a||a==="none"||a==="transparent"||a==="rgba(0, 0, 0, 0)")&&(l?a=window.getComputedStyle(l).getPropertyValue("fill"):a=n);const i=this.getHighlightColor(a,n);o.setAttribute("stroke",i),o.setAttribute("stroke-width","4")}}static removeSubplotHighlightSvg(t){const n=t.querySelector("rect, path");n&&(n.removeAttribute("stroke"),n.removeAttribute("stroke-width"))}}oe(w1,"SVG_NAMESPACE","http://www.w3.org/2000/svg");class gv extends Hs{constructor(n,l){super(n);oe(this,"points");oe(this,"barValues");oe(this,"highlightValues");oe(this,"orientation");oe(this,"min");oe(this,"max");this.points=l,this.orientation=n.orientation??B2.VERTICAL,this.barValues=l.map(o=>o.map(a=>this.orientation===B2.VERTICAL?Number(a.y):Number(a.x))),this.min=this.barValues.map(o=>$3.safeMin(o)),this.max=this.barValues.map(o=>$3.safeMax(o)),this.highlightValues=this.mapToSvgElements(n.selectors)}dispose(){this.points.length=0,this.min.length=0,this.max.length=0,super.dispose()}get values(){return this.barValues}audio(){const n=this.orientation===B2.VERTICAL,l=n?this.barValues[this.row].length:this.barValues.length,o=n?this.col:this.row,a=n?this.barValues[this.row][this.col]:this.barValues[this.col][this.row];return{min:$3.safeMin(this.min),max:$3.safeMax(this.max),size:l,index:o,value:a,...this.getAudioGroupIndex()}}braille(){return{empty:!1,id:this.id,values:this.barValues,min:this.min,max:this.max,row:this.row,col:this.col}}text(){const n=this.orientation===B2.VERTICAL,l=this.points[this.row][this.col],o=n?this.xAxis:this.yAxis,a=n?l.x:l.y,i=n?this.yAxis:this.xAxis,s=n?l.y:l.x;return{main:{label:o,value:a},cross:{label:i,value:s}}}mapToSvgElements(n){if(!n)return null;const l=[w1.selectAllElements(n)];if(l.length!==this.points.length)return null;for(let o=0;o<this.points.length;o++)if(l[o].length!==this.points[o].length)return null;return l}}class wj extends gv{constructor(t){super(t,[t.data])}}const Vj="Lower outlier(s)",Dj="Upper outlier(s)",Rj="Minimum",kj="Maximum",Nj="25%",Bj="50%",Pj="75%";class jj extends Hs{constructor(n){super(n);oe(this,"points");oe(this,"boxValues");oe(this,"highlightValues");oe(this,"orientation");oe(this,"sections");oe(this,"min");oe(this,"max");this.points=n.data,this.orientation=n.orientation??B2.VERTICAL,this.sections=[Vj,Rj,Nj,Bj,Pj,kj,Dj];const l=[a=>a.lowerOutliers,a=>a.min,a=>a.q1,a=>a.q2,a=>a.q3,a=>a.max,a=>a.upperOutliers];this.orientation===B2.HORIZONTAL?this.boxValues=this.points.map(a=>l.map(i=>i(a))):this.boxValues=l.map(a=>this.points.map(i=>a(i)));const o=this.boxValues.map(a=>a.flatMap(i=>Array.isArray(i)?i:[i]));this.min=$3.minFrom2D(o),this.max=$3.maxFrom2D(o),this.row=this.boxValues.length-1,this.highlightValues=this.mapToSvgElements(n.selectors)}dispose(){this.points.length=0,this.sections.length=0,super.dispose()}moveToIndex(n,l){const o=this.orientation===B2.HORIZONTAL;n=o?n:l,l=o?l:n,super.moveToIndex(n,l)}get values(){return this.boxValues}audio(){const n=this.boxValues[this.row][this.col],l=Array.isArray(n)?n.map(o=>o-this.min):n-this.min;return{min:this.min,max:this.max,value:n,size:this.max-this.min,index:l}}braille(){const n=this.orientation===B2.HORIZONTAL,l=n?this.row:this.col,o=n?this.col:this.row;return{empty:!1,id:this.id,values:this.points,min:this.min,max:this.max,row:l,col:o}}text(){const n=this.orientation===B2.HORIZONTAL,l=n?this.points[this.row]:this.points[this.col],o=n?this.yAxis:this.xAxis,a=n?this.sections[this.col]:this.sections[this.row],i=n?this.xAxis:this.yAxis,s=this.boxValues[this.row][this.col];return{main:{label:o,value:l.fill},cross:{label:i,value:s},section:a}}mapToSvgElements(n){if(!n||n.length!==this.points.length)return null;const l=this.orientation===B2.VERTICAL,o=new Array;if(l)for(let a=0;a<this.sections.length;a++)o.push(Array.from({length:n.length}));return n.forEach((a,i)=>{const s=a.lowerOutliers.flatMap(b=>w1.selectAllElements(b)),T=a.upperOutliers.flatMap(b=>w1.selectAllElements(b)),u=w1.selectElement(a.min)??w1.createEmptyElement(),Q=w1.selectElement(a.max)??w1.createEmptyElement(),f=w1.selectElement(a.iq)??w1.createEmptyElement(),h=w1.selectElement(a.q2)??w1.createEmptyElement(),[p,g]=l?[w1.createLineElement(f,"top"),w1.createLineElement(f,"bottom")]:[w1.createLineElement(f,"left"),w1.createLineElement(f,"right")],v=[s,u,p,h,g,Q,T];l?v.forEach((b,L)=>{o[L][i]=b}):o.push(v)}),o}}class Ij{computeIndexAndSegment(t,n,l,o){return l===B2.HORIZONTAL?{pointIndex:t,segmentType:o[n]}:{pointIndex:n,segmentType:o[t]}}computeVisualCoordinates(t,n,l){return l===B2.HORIZONTAL?{row:t,col:n}:{row:n,col:t}}dispose(){}}const Fj="Trend";class zj extends Hs{constructor(n){super(n);oe(this,"candles");oe(this,"candleValues");oe(this,"orientation");oe(this,"sections",["open","high","low","close"]);oe(this,"currentSegmentType","open");oe(this,"currentPointIndex",0);oe(this,"sortedSegmentsByPoint");oe(this,"segmentPositionMaps");oe(this,"min");oe(this,"max");oe(this,"highlightValues");oe(this,"navigationService");this.navigationService=new Ij;const l=n.data;this.candles=l.map(a=>({...a,trend:a.close>a.open?"Bull":a.close<a.open?"Bear":"Neutral"})),this.orientation=n.orientation??B2.VERTICAL,this.candleValues=this.sections.map(a=>this.candles.map(i=>i[a])),this.min=$3.minFrom2D(this.candleValues),this.max=$3.maxFrom2D(this.candleValues),this.sortedSegmentsByPoint=this.precomputeSortedSegments(),this.segmentPositionMaps=this.precomputePositionMaps(),this.currentPointIndex=0,this.currentSegmentType="open",this.orientation===B2.HORIZONTAL?this.col=0:this.row=0;const o=typeof n.selectors=="string"?n.selectors:"";this.highlightValues=this.mapToSvgElements(o)}precomputeSortedSegments(){return this.candles.map(n=>this.sections.map(o=>[o,n[o]]).sort((o,a)=>o[1]-a[1]).map(o=>o[0]))}precomputePositionMaps(){return this.sortedSegmentsByPoint.map(n=>{const l=new Map;return n.forEach((o,a)=>{l.set(o,a)}),l})}getSegmentPositionInSortedOrder(n,l){return this.segmentPositionMaps[n].get(l)??0}getSegmentTypeAtSortedPosition(n,l){return this.sortedSegmentsByPoint[n][l]??"open"}updateVisualSegmentPosition(){const n=this.getSegmentPositionInSortedOrder(this.currentPointIndex,this.currentSegmentType);this.orientation===B2.HORIZONTAL?this.col=n:this.row=n}updateVisualPointPosition(){this.orientation===B2.HORIZONTAL?this.row=this.currentPointIndex:this.col=this.currentPointIndex}moveOnce(n){if(this.isInitialEntry){this.handleInitialEntry(),this.notifyStateUpdate();return}if(!this.isMovable(n)){this.notifyOutOfBounds();return}switch(n){case"UPWARD":case"DOWNWARD":{const l=this.getSegmentPositionInSortedOrder(this.currentPointIndex,this.currentSegmentType),o=n==="UPWARD"?l+1:l-1;if(o>=0&&o<this.sections.length)this.currentSegmentType=this.getSegmentTypeAtSortedPosition(this.currentPointIndex,o),this.updateVisualSegmentPosition();else{this.notifyOutOfBounds();return}break}case"FORWARD":case"BACKWARD":{const l=n==="FORWARD"?this.currentPointIndex+1:this.currentPointIndex-1;if(l>=0&&l<this.candles.length)this.currentPointIndex=l,this.updateVisualPointPosition(),this.updateVisualSegmentPosition();else{this.notifyOutOfBounds();return}break}}this.notifyStateUpdate()}moveToExtreme(n){switch(this.isInitialEntry&&this.handleInitialEntry(),n){case"UPWARD":{const l=this.sortedSegmentsByPoint[this.currentPointIndex];this.currentSegmentType=l[l.length-1],this.updateVisualSegmentPosition();break}case"DOWNWARD":{const l=this.sortedSegmentsByPoint[this.currentPointIndex];this.currentSegmentType=l[0],this.updateVisualSegmentPosition();break}case"FORWARD":{this.currentPointIndex=this.candles.length-1,this.updateVisualPointPosition(),this.updateVisualSegmentPosition();break}case"BACKWARD":{this.currentPointIndex=0,this.updateVisualPointPosition(),this.updateVisualSegmentPosition();break}}this.notifyStateUpdate()}moveToIndex(n,l){this.isInitialEntry&&this.handleInitialEntry();const{pointIndex:o,segmentType:a}=this.navigationService.computeIndexAndSegment(n,l,this.orientation,this.sections);this.currentPointIndex=o,this.currentSegmentType=a,this.row=n,this.col=l,this.updateVisualSegmentPosition(),this.updateVisualPointPosition(),this.notifyStateUpdate()}isMovable(n){if(Array.isArray(n))return super.isMovable(n);if(this.isInitialEntry)return!0;switch(n){case"UPWARD":case"DOWNWARD":{const l=this.getSegmentPositionInSortedOrder(this.currentPointIndex,this.currentSegmentType),o=n==="UPWARD"?l+1:l-1;return o>=0&&o<this.sections.length}case"FORWARD":case"BACKWARD":{const l=n==="FORWARD"?this.currentPointIndex+1:this.currentPointIndex-1;return l>=0&&l<this.candles.length}}}dispose(){this.navigationService.dispose(),this.candles.length=0,super.dispose()}get values(){return this.candleValues}audio(){const n=this.candles[this.currentPointIndex][this.currentSegmentType];return{min:this.min,max:this.max,size:this.candles.length,index:this.currentPointIndex,value:n,trend:this.candles[this.currentPointIndex].trend}}braille(){const n=this.candles.map(l=>l.trend);return{empty:!1,id:this.id,values:this.candleValues,min:this.min,max:this.max,row:this.row,col:this.col,custom:n}}mapToSvgElements(n){if(!n)return null;const l=w1.selectAllElements(n),o=[];for(let a=0;a<this.sections.length;a++){o[a]=[];for(let i=0;i<this.candles.length;i++){const s=i<l.length?i:0;o[a][i]=l[s]}}return o}text(){const n=this.candles[this.currentPointIndex],l=n[this.currentSegmentType];return{main:{label:this.orientation===B2.HORIZONTAL?this.yAxis:this.xAxis,value:n.value},cross:{label:this.orientation===B2.HORIZONTAL?this.xAxis:this.yAxis,value:l},section:this.currentSegmentType,fill:{label:Fj,value:n.trend}}}getCurrentTrend(){return this.candles[this.currentPointIndex].trend}get state(){const n=super.state;return n.empty?n:{...n,xAxis:this.xAxis,yAxis:this.currentSegmentType}}}class qj extends Hs{constructor(n){super(n);oe(this,"heatmapValues");oe(this,"highlightValues");oe(this,"x");oe(this,"y");oe(this,"min");oe(this,"max");const l=n.data;this.x=l.x,this.y=l.y,this.heatmapValues=l.points;const{min:o,max:a}=$3.minMaxFrom2D(this.heatmapValues);this.min=o,this.max=a,this.highlightValues=this.mapToSvgElements(n.selectors)}dispose(){this.heatmapValues.length=0,this.x.length=0,this.y.length=0,super.dispose()}get values(){return this.heatmapValues}audio(){return{min:this.min,max:this.max,size:this.heatmapValues.length,index:this.col,value:this.heatmapValues[this.row][this.col]}}braille(){return{empty:!1,id:this.id,values:this.heatmapValues,min:this.min,max:this.max,row:this.row,col:this.col}}text(){return{main:{label:this.xAxis,value:this.x[this.col]},cross:{label:this.yAxis,value:this.y[this.row]},fill:{label:this.fill,value:String(this.heatmapValues[this.row][this.col])}}}mapToSvgElements(n){if(!n)return null;const l=this.heatmapValues.length,o=this.heatmapValues[0].length,a=w1.selectAllElements(n);if(a.length===0||a.length!==l*o)return null;const i=new Array;if(a[0]instanceof SVGPathElement)for(let s=0;s<l;s++){const T=l-1-s,u=new Array;for(let Q=0;Q<o;Q++){const f=T*o+Q;u.push(a[f])}i.push(u)}else if(a[0]instanceof SVGRectElement)for(let s=0;s<l;s++){const T=new Array;for(let u=0;u<o;u++){const Q=u*l+s;T.push(a[Q])}i.push(T)}return i}}class $j extends gv{constructor(t){super(t,[t.data])}text(){const t=this.orientation===B2.VERTICAL,n=this.points[this.row][this.col],l=t?n.xMin:n.yMin,o=t?n.xMax:n.yMax;return{...super.text(),range:{min:l,max:o}}}}const Uj="Type",vv=/[ML]\s*(-?\d+(?:\.\d+)?)\s+(-?\d+(?:\.\d+)?)/g;class YH extends Hs{constructor(n){super(n);oe(this,"points");oe(this,"lineValues");oe(this,"highlightValues");oe(this,"min");oe(this,"max");oe(this,"lineDataItems");oe(this,"isEnhancedFormat");const l=n.data;Array.isArray(l)&&l.length>0&&"points"in l[0]?(this.isEnhancedFormat=!0,this.lineDataItems=l,this.points=this.lineDataItems.map(o=>o.points.map(a=>({...a})))):(this.isEnhancedFormat=!1,this.lineDataItems=void 0,this.points=l),this.lineValues=this.points.map(o=>o.map(a=>Number(a.y))),this.min=this.lineValues.map(o=>$3.safeMin(o)),this.max=this.lineValues.map(o=>$3.safeMax(o)),this.highlightValues=this.mapToSvgElements(n.selectors)}dispose(){this.points.length=0,this.min.length=0,this.max.length=0,super.dispose()}get values(){return this.lineValues}get state(){const n=super.state;if(n.empty)return n;const l=this.getDynamicTitle(),o=this.getDynamicXAxisLabel(),a=this.getDynamicYAxisLabel();return{...n,title:l||n.title,xAxis:o,yAxis:a}}audio(){return{min:this.min[this.row],max:this.max[this.row],size:this.points[this.row].length,index:this.col,value:this.points[this.row][this.col].y,...this.getAudioGroupIndex()}}braille(){return{empty:!1,id:this.id,values:this.lineValues,min:this.min,max:this.max,row:this.row,col:this.col}}text(){const n=this.points[this.row][this.col],l=n.fill?{fill:{label:Uj,value:n.fill}}:{};return{main:{label:this.getDynamicXAxisLabel(),value:this.points[this.row][this.col].x},cross:{label:this.getDynamicYAxisLabel(),value:this.points[this.row][this.col].y},...l}}moveOnce(n){if(this.isInitialEntry){this.handleInitialEntry(),this.notifyStateUpdate();return}if(!this.isMovable(n)){this.notifyOutOfBounds();return}if(n==="UPWARD"||n==="DOWNWARD"){const l=this.findLineByXAndYDirection(n);if(l!==null&&l!==this.row){const o=this.points[this.row][this.col].x,a=this.findColumnByXValue(l,o);if(a!==-1){this.row=l,this.col=a,this.notifyStateUpdate();return}else{this.notifyOutOfBounds();return}}else{this.notifyOutOfBounds();return}}switch(n){case"FORWARD":this.col+=1;break;case"BACKWARD":this.col-=1;break}this.notifyStateUpdate()}isMovable(n){if(Array.isArray(n)){const[l,o]=n;return l>=0&&l<this.values.length&&o>=0&&o<this.values[this.row].length}switch(n){case"UPWARD":case"DOWNWARD":{const l=this.findLineByXAndYDirection(n);if(l===null)return!1;const o=this.points[this.row][this.col].x;return this.findColumnByXValue(l,o)!==-1}case"FORWARD":return this.col<this.values[this.row].length-1;case"BACKWARD":return this.col>0}}findLineByXAndYDirection(n){const l=this.points[this.row][this.col].x,o=this.points[this.row][this.col].y;let a=null,i=Number.POSITIVE_INFINITY;for(let s=0;s<this.points.length;s++){if(s===this.row)continue;const T=this.points[s].findIndex(h=>h.x===l);if(T===-1)continue;const u=this.points[s][T].y;if(!(n==="UPWARD"?u>o:u<o))continue;const f=Math.abs(u-o);f<i&&(i=f,a=s)}return a}findColumnByXValue(n,l){return this.points[n].findIndex(o=>o.x===l)}mapToSvgElements(n){if(!n||n.length!==this.lineValues.length)return null;const l=[];let o=!0;for(let a=0;a<n.length;a++){const i=w1.selectElement(n[a],!1);if(!i){l.push([]);continue}const s=[];if(i instanceof SVGPathElement){const Q=i.getAttribute(Le.D)||Le.EMPTY;vv.lastIndex=0;let f=vv.exec(Q);for(;f!==null;)s.push({x:Number.parseFloat(f[1]),y:Number.parseFloat(f[2])}),f=vv.exec(Q)}else if(i instanceof SVGPolylineElement){const f=(i.getAttribute(Le.POINTS)||Le.EMPTY).split(/\s+/).filter(Boolean);for(const h of f){const[p,g]=h.split(Le.COMMA);s.push({x:Number.parseFloat(p),y:Number.parseFloat(g)})}}if(s.length!==this.lineValues[a].length)if(s.length<this.lineValues[a].length)for(;s.length<this.lineValues[a].length;)s.push({x:Number.NaN,y:Number.NaN});else s.length>this.lineValues[a].length&&(s.length=this.lineValues[a].length);const T=[];let u=!1;for(const Q of s){if(Number.isNaN(Q.x)||Number.isNaN(Q.y)){u=!0;break}T.push(w1.createCircleElement(Q.x,Q.y,i))}if(u){l.push([]);continue}T.length>0&&(o=!1),l.push(T)}return o?null:l}getDynamicXAxisLabel(){var n;return this.isEnhancedFormat&&this.lineDataItems&&this.row<this.lineDataItems.length?((n=this.lineDataItems[this.row].axes)==null?void 0:n.x)||this.xAxis:this.xAxis}getDynamicYAxisLabel(){var n;return this.isEnhancedFormat&&this.lineDataItems&&this.row<this.lineDataItems.length?((n=this.lineDataItems[this.row].axes)==null?void 0:n.y)||this.yAxis:this.yAxis}getDynamicTitle(){return this.isEnhancedFormat&&this.lineDataItems&&this.row<this.lineDataItems.length?this.lineDataItems[this.row].title||this.title:this.title}getCurrentLineIndex(){return this.row}getTotalLines(){return this.points.length}}class Gj extends Hs{constructor(n){super(n);oe(this,"mode");oe(this,"xPoints");oe(this,"yPoints");oe(this,"xValues");oe(this,"yValues");oe(this,"highlightXValues");oe(this,"highlightYValues");oe(this,"minX");oe(this,"maxX");oe(this,"minY");oe(this,"maxY");this.mode="column";const l=n.data,o=[...l].sort((T,u)=>T.x-u.x||T.y-u.y);this.xPoints=new Array;let a=null;for(const T of o)(!a||a.x!==T.x)&&(a={x:T.x,y:[]},this.xPoints.push(a)),a.y.push(T.y);const i=[...l].sort((T,u)=>T.y-u.y||T.x-u.x);this.yPoints=new Array;let s=null;for(const T of i)(!s||s.y!==T.y)&&(s={y:T.y,x:[]},this.yPoints.push(s)),s.x.push(T.x);this.xValues=this.xPoints.map(T=>T.x),this.yValues=this.yPoints.map(T=>T.y),this.minX=$3.safeMin(this.xValues),this.maxX=$3.safeMax(this.xValues),this.minY=$3.safeMin(this.yValues),this.maxY=$3.safeMax(this.yValues),[this.highlightXValues,this.highlightYValues]=this.mapToSvgElements(n.selectors)}dispose(){this.xPoints.length=0,this.yPoints.length=0,this.xValues.length=0,this.yValues.length=0,this.highlightXValues&&(this.highlightXValues.forEach(n=>n.forEach(l=>l.remove())),this.highlightXValues.length=0),this.highlightYValues&&(this.highlightYValues.forEach(n=>n.forEach(l=>l.remove())),this.highlightYValues.length=0),super.dispose()}get values(){const n=[this.xValues,this.yValues];return this.mode==="column"?this.row!==0&&(this.row=0):(this.row<0||this.row>=this.yPoints.length)&&(this.row=0),n}get highlightValues(){return this.mode==="column"?this.highlightXValues:this.highlightYValues}getAudioGroupIndex(){return{}}audio(){if(this.mode==="column"){const n=this.xPoints[this.col];return{min:this.minY,max:this.maxY,size:n.y.length,index:this.col,value:n.y,...this.getAudioGroupIndex()}}else{const n=this.yPoints[this.row];return{min:this.minX,max:this.maxX,size:n.x.length,index:this.row,value:n.x,...this.getAudioGroupIndex()}}}braille(){return{empty:!0,type:"trace",traceType:this.type,audio:{index:0,size:0,groupIndex:0}}}text(){if(this.mode==="column"){const n=this.xPoints[this.col];return{main:{label:this.xAxis,value:n.x},cross:{label:this.yAxis,value:n.y}}}else{const n=this.yPoints[this.row];return{main:{label:this.yAxis,value:n.y},cross:{label:this.xAxis,value:n.x}}}}get autoplay(){return{UPWARD:this.yValues.length,DOWNWARD:this.yValues.length,FORWARD:this.xValues.length,BACKWARD:this.xValues.length}}highlight(){if(this.highlightValues===null)return{empty:!0,type:"trace",traceType:this.type,audio:{index:0,size:0,groupIndex:0}};const n=this.mode==="column"?this.col<this.highlightValues.length?this.highlightValues[this.col]:null:this.row<this.highlightValues.length?this.highlightValues[this.row]:null;return n?{empty:!1,elements:n}:{empty:!0,type:"trace",traceType:this.type,audio:{index:0,size:0,groupIndex:0}}}hasMultiPoints(){return!0}handleInitialEntry(){this.isInitialEntry=!1,this.row=0,this.col=0,this.mode="column"}toggleNavigation(){if(this.mode==="column"){const n=this.xPoints[this.col],l=n.y[Math.floor(n.y.length/2)],o=this.yValues.indexOf(l);o===-1||o>=this.yPoints.length?this.row=0:this.row=o,this.mode="row"}else{const n=this.yPoints[this.row],l=n.x[Math.floor(n.x.length/2)],o=this.xValues.indexOf(l);o===-1||o>=this.xPoints.length?this.col=0:this.col=o,this.mode="column",this.row=0}}moveOnce(n){if(this.isInitialEntry){this.handleInitialEntry(),this.notifyStateUpdate();return}if(!this.isMovable(n)){this.notifyOutOfBounds();return}if(this.mode==="column")switch(n){case"FORWARD":this.col++;break;case"BACKWARD":this.col--;break;case"UPWARD":case"DOWNWARD":{this.toggleNavigation();break}}else switch(n){case"UPWARD":this.row++;break;case"DOWNWARD":this.row--;break;case"FORWARD":case"BACKWARD":{this.toggleNavigation();break}}this.notifyStateUpdate()}moveToExtreme(n){if(this.isInitialEntry&&this.handleInitialEntry(),this.mode==="column")switch(n){case"UPWARD":this.toggleNavigation(),this.row=this.yPoints.length-1;break;case"DOWNWARD":this.toggleNavigation(),this.row=0;break;case"FORWARD":this.col=this.xPoints.length-1;break;case"BACKWARD":this.col=0;break}else switch(n){case"UPWARD":this.row=this.yPoints.length-1;break;case"DOWNWARD":this.row=0;break;case"FORWARD":this.toggleNavigation(),this.col=this.xPoints.length-1;break;case"BACKWARD":this.toggleNavigation(),this.col=0;break}this.notifyStateUpdate()}isMovable(n){if(Array.isArray(n))return!1;if(this.mode==="column")switch(n){case"FORWARD":return this.col<this.xPoints.length-1;case"BACKWARD":return this.col>0;case"UPWARD":case"DOWNWARD":return!0}else switch(n){case"UPWARD":return this.row<this.yPoints.length-1;case"DOWNWARD":return this.row>0;case"FORWARD":case"BACKWARD":return!0}}mapToSvgElements(n){if(!n)return[null,null];const l=w1.selectAllElements(n);if(l.length===0)return[null,null];const o=new Map,a=new Map;l.forEach(T=>{const u=Number.parseFloat(T.getAttribute("x")||""),Q=Number.parseFloat(T.getAttribute("y")||"");Number.isNaN(u)||(o.has(u)||o.set(u,[]),o.get(u).push(T)),Number.isNaN(Q)||(a.has(Q)||a.set(Q,[]),a.get(Q).push(T))});const i=Array.from(o.entries()).sort(([T],[u])=>T-u).map(([T,u])=>u),s=Array.from(a.entries()).sort(([T],[u])=>u-T).map(([T,u])=>u);return[i,s]}}const KH="Sum",Zj="Level",Xj="undefined";class Wj extends gv{constructor(t){super(t,t.data),this.createSummaryLevel()}createSummaryLevel(){const t=new Array,n=new Array;for(let a=0;a<this.barValues[0].length;a++){const i=this.barValues.reduce((T,u)=>T+u[a],0);t.push(i);const s=this.orientation===B2.VERTICAL?{x:this.points[0][a].x,y:i,fill:KH}:{x:i,y:this.points[0][a].y,fill:KH};n.push(s)}this.points.push(n),this.barValues.push(t);const{min:l,max:o}=$3.minMax(t);this.min.push(l),this.max.push(o)}text(){return{...super.text(),fill:{label:Zj,value:this.points[this.row][this.col].fill??Xj}}}highlight(){return this.highlightValues===null||this.row===this.barValues.length-1?{empty:!0,type:"trace",traceType:this.type,audio:{index:0,size:0,groupIndex:0}}:{empty:!1,elements:this.highlightValues[this.row][this.col]}}hasMultiPoints(){return!0}mapToSvgElements(t){if(!t)return new Array;const n=w1.selectAllElements(t);if(n.length===0)return new Array;const l=new Array;if(n[0]instanceof SVGPathElement)for(let o=0,a=0;o<this.barValues.length;o++){const i=new Array;for(let s=0;s<this.barValues[o].length;s++){if(a>=n.length)return new Array;this.barValues[o][s]===0?i.push(w1.createEmptyElement()):i.push(n[a++])}l.push(i)}else if(n[0]instanceof SVGRectElement){for(let o=0;o<this.barValues.length;o++)l.push(new Array);for(let o=0,a=0;o<this.barValues[0].length;o++)for(let i=this.barValues.length-1;i>=0;i--){if(a>=n.length)return new Array;this.barValues[i][o]===0?l[i].push(w1.createEmptyElement()):l[i].push(n[a++])}}return l}}class JH extends YH{constructor(t){super(t)}audio(){const t=this.lineValues[this.row],n=this.col,l=s=>t[Math.max(0,Math.min(s,t.length-1))],o=n>0?l(n-1):l(n),a=l(n),i=n<t.length-1?l(n+1):l(n);return{min:this.min[this.row],max:this.max[this.row],size:t.length,index:n,value:[o,a,i],isContinuous:!0,...this.getAudioGroupIndex()}}}class Yj extends JH{constructor(t){super(t)}mapToSvgElements(t){var o;if(!t||t.length!==this.lineValues.length)return null;const n=[];let l=!0;for(let a=0;a<t.length;a++){const i=w1.selectElement(t[a],!1);if(!i){n.push([]);continue}const s=(o=this.points)==null?void 0:o[a],T=[];for(const u of s)typeof u.svg_x=="number"&&typeof u.svg_y=="number"&&T.push(w1.createCircleElement(u.svg_x,u.svg_y,i));T.length>0&&(l=!1),n.push(T)}return l?null:n}}function Kj(e){return typeof(e==null?void 0:e.svg_x)=="number"&&typeof(e==null?void 0:e.svg_y)=="number"}function Jj(e){return Array.isArray(e.data)&&e.data.length>0&&Array.isArray(e.data[0])&&Kj(e.data[0][0])?new Yj(e):new JH(e)}class eI{static create(t){switch(t.type){case P2.BAR:return new wj(t);case P2.BOX:return new jj(t);case P2.CANDLESTICK:return new zj(t);case P2.HEATMAP:return new qj(t);case P2.HISTOGRAM:return new $j(t);case P2.LINE:return new YH(t);case P2.SCATTER:return new Gj(t);case P2.SMOOTH:return Jj(t);case P2.DODGED:case P2.NORMALIZED:case P2.STACKED:return new Wj(t);default:throw new Error(`Invalid trace type: ${t.type}`)}}}const tI="MAIDR Plot",nI="unavailable",rI="unavailable";class iI extends yv{constructor(n){super();oe(this,"id");oe(this,"title");oe(this,"subtitle");oe(this,"caption");oe(this,"subplots");oe(this,"size");this.id=n.id,this.title=n.title??tI,this.subtitle=n.subtitle??nI,this.caption=n.caption??rI;const l=n.subplots;this.subplots=l.map(o=>o.map(a=>new aI(a))),this.size=this.subplots.reduce((o,a)=>o+a.length,0)}dispose(){this.subplots.forEach(n=>n.forEach(l=>l.dispose())),this.subplots.length=0,super.dispose()}get values(){return this.subplots}get activeSubplot(){return this.subplots[this.row][this.col]}get state(){if(this.isOutOfBounds)return{empty:!0,type:"figure"};const n=this.col+1+this.subplots.slice(0,this.row).reduce((o,a)=>o+a.length,0),l=this.activeSubplot;return{empty:!1,type:"figure",title:this.title,subtitle:this.subtitle,caption:this.caption,size:this.size,index:n,subplot:l.getStateWithFigurePosition(this.row,this.col),traceTypes:l.traceTypes,highlight:this.highlight()}}highlight(){var l;if(document.querySelectorAll('g[id^="axes_"]').length<=1)return{empty:!0,type:"trace",audio:{size:this.values[this.row].length,index:this.col}};try{const o=((l=this.subplots[0])==null?void 0:l.length)||1,a=this.row*o+this.col+1,i=`g[id="axes_${a}"]`,s=document.querySelector(i);if(s)return{empty:!1,elements:s};const T=document.querySelectorAll('g[id^="axes_"]');if(T.length>0&&a-1<T.length)return{empty:!1,elements:T[a-1]}}catch{return{empty:!0,type:"trace",audio:{size:this.values[this.row].length,index:this.col}}}return{empty:!0,type:"trace",audio:{size:this.values[this.row].length,index:this.col}}}}class aI extends yv{constructor(n){super();oe(this,"traces");oe(this,"traceTypes");oe(this,"size");this.isInitialEntry=!1;const l=n.layers;this.size=l.length,this.traces=l.map(o=>[eI.create(o)]),this.traceTypes=this.traces.flat().map(o=>{const a=o.state;return a.empty?Le.EMPTY:a.traceType})}dispose(){this.traces.forEach(n=>n.forEach(l=>l.dispose())),this.traces.length=0,super.dispose()}get values(){return this.traces}get activeTrace(){return this.traces[this.row][this.col]}highlight(){return{empty:!0,type:"trace",audio:{size:this.values[this.row].length,index:this.col}}}get state(){return this.isOutOfBounds?{empty:!0,type:"subplot"}:{empty:!1,type:"subplot",size:this.size,index:this.row+1,trace:this.activeTrace.state,highlight:this.highlight()}}getStateWithFigurePosition(n,l){return this.state}}const U3={SINE_BASIC:0,SQUARE_BASIC:1,SAWTOOTH_BASIC:2,TRIANGLE_BASIC:3,SAWTOOTH_DARK:4,SINE_HARMONIC:5,TRIANGLE_HARMONIC:6,SQUARE_HARMONIC:7,TRIANGLE_MELLOW:8,SINE_SUBTLE:9,SAWTOOTH_SOFT:10},s9=class s9{constructor(){oe(this,"basePalette");oe(this,"extendedPalette");this.basePalette=[{index:U3.SINE_BASIC,waveType:"sine",timbreModulation:{attack:.01,decay:.1,sustain:.8,release:.2}},{index:U3.SQUARE_BASIC,waveType:"square",timbreModulation:{attack:.005,decay:.05,sustain:.7,release:.15}},{index:U3.SAWTOOTH_BASIC,waveType:"sawtooth",timbreModulation:{attack:.02,decay:.08,sustain:.6,release:.25}},{index:U3.TRIANGLE_BASIC,waveType:"triangle",timbreModulation:{attack:.015,decay:.12,sustain:.9,release:.18}},{index:U3.SAWTOOTH_DARK,waveType:"sawtooth",harmonicMix:{fundamental:1,harmonics:[{frequency:2,amplitude:.2},{frequency:3,amplitude:.1},{frequency:5,amplitude:.05}]},timbreModulation:{attack:.005,decay:.3,sustain:.4,release:.5}},{index:U3.SINE_HARMONIC,waveType:"sine",harmonicMix:{fundamental:1,harmonics:[{frequency:2,amplitude:.15},{frequency:4,amplitude:.05}]},timbreModulation:{attack:.02,decay:.2,sustain:.6,release:.3}},{index:U3.TRIANGLE_HARMONIC,waveType:"triangle",harmonicMix:{fundamental:1,harmonics:[{frequency:3,amplitude:.2},{frequency:6,amplitude:.1}]},timbreModulation:{attack:.01,decay:.1,sustain:.8,release:.2}},{index:U3.SQUARE_HARMONIC,waveType:"square",harmonicMix:{fundamental:1,harmonics:[{frequency:3,amplitude:.1},{frequency:7,amplitude:.05}]},timbreModulation:{attack:.005,decay:.05,sustain:.5,release:.1}},{index:U3.TRIANGLE_MELLOW,waveType:"triangle",harmonicMix:{fundamental:1,harmonics:[{frequency:2.5,amplitude:.15},{frequency:4.5,amplitude:.08}]},timbreModulation:{attack:.01,decay:.4,sustain:.3,release:.5}},{index:U3.SINE_SUBTLE,waveType:"sine",harmonicMix:{fundamental:1,harmonics:[{frequency:2,amplitude:.1},{frequency:3,amplitude:.05}]},timbreModulation:{attack:.02,decay:.1,sustain:.9,release:.15}},{index:U3.SAWTOOTH_SOFT,waveType:"sawtooth",harmonicMix:{fundamental:1,harmonics:[{frequency:2,amplitude:.05},{frequency:6,amplitude:.02}]},timbreModulation:{attack:.005,decay:.4,sustain:.2,release:.6}}],this.validateBasePalette(),this.extendedPalette=new Map,this.generateExtendedPalette()}dispose(){this.extendedPalette.clear()}getPaletteEntry(t){if(t<this.basePalette.length)return this.basePalette[t];const n=this.extendedPalette.get(t);if(n)return n;const l=this.generateExtendedEntry(t);return this.extendedPalette.set(t,l),l}get basePaletteSize(){return this.basePalette.length}getCandlestickGroupIndex(t){switch(t){case"Bull":return U3.SINE_BASIC;case"Bear":return U3.SAWTOOTH_SOFT;case"Neutral":return U3.TRIANGLE_BASIC;default:return U3.SINE_BASIC}}generateExtendedPalette(){[{index:this.basePalette.length,waveType:"sine",harmonicMix:{fundamental:1,harmonics:[{frequency:2,amplitude:.3},{frequency:3,amplitude:.15}]},timbreModulation:{attack:.02,decay:.15,sustain:.7,release:.3}},{index:this.basePalette.length+1,waveType:"square",harmonicMix:{fundamental:1,harmonics:[{frequency:1.5,amplitude:.4},{frequency:2.5,amplitude:.2}]},timbreModulation:{attack:.01,decay:.08,sustain:.6,release:.4}},{index:this.basePalette.length+2,waveType:"sawtooth",harmonicMix:{fundamental:1,harmonics:[{frequency:1.25,amplitude:.35},{frequency:2,amplitude:.25},{frequency:3,amplitude:.1}]},timbreModulation:{attack:.03,decay:.2,sustain:.5,release:.35}},{index:this.basePalette.length+3,waveType:"triangle",harmonicMix:{fundamental:1,harmonics:[{frequency:.5,amplitude:.2},{frequency:4,amplitude:.15}]},timbreModulation:{attack:.025,decay:.18,sustain:.8,release:.25}}].forEach((n,l)=>{this.extendedPalette.set(this.basePalette.length+l,n)})}generateExtendedEntry(t){const n=t%this.basePalette.length,l=this.basePalette[n],o=Math.floor((t-this.basePalette.length)/this.basePalette.length),a=this.generateHarmonics(o),i=this.generateTimbreModulation(o,l.timbreModulation);return{index:t,waveType:l.waveType,harmonicMix:{fundamental:1,harmonics:a},timbreModulation:i}}generateHarmonics(t){const n=[],l=s9.MIN_HARMONICS+t%s9.HARMONIC_VARIATION;for(let o=0;o<l;o++){const a=1+(o+1)*(.5+t*.3%1),i=.4/(o+1)*(1-t*.1%.3);n.push({frequency:a,amplitude:i})}return n}generateTimbreModulation(t,n){const l=1+t*.2%.5;return{attack:Math.max(.005,Math.min(.05,n.attack*l)),decay:Math.max(.05,Math.min(.3,n.decay*l)),sustain:Math.max(.4,Math.min(.9,n.sustain+t*.1%.2)),release:Math.max(.1,Math.min(.5,n.release*l))}}validateBasePalette(){this.basePalette.forEach((t,n)=>{if(t.index!==n)throw new Error(`AudioPalette validation error: Entry at array position ${n} has index ${t.index}. Array position must match the index property to prevent audio palette mismatches.`)})}};oe(s9,"MIN_HARMONICS",2),oe(s9,"HARMONIC_VARIATION",3);let Lv=s9;const oI=100,lI=440,sI=880,eE=.3,xv=U3.SINE_BASIC;class uI{constructor(t,n,l){oe(this,"notification");oe(this,"audioPalette");oe(this,"settings");oe(this,"isCombinedAudio");oe(this,"mode");oe(this,"activeAudioIds");oe(this,"audioContext");oe(this,"compressor");oe(this,"currentVolume");oe(this,"currentMinFrequency");oe(this,"currentMaxFrequency");this.notification=t,this.audioPalette=new Lv,this.settings=l,this.isCombinedAudio=!1,this.mode="on",this.updateMode(n),this.activeAudioIds=new Map,this.audioContext=new AudioContext,this.compressor=this.initCompressor();const o=this.settings.loadSettings();this.currentVolume=o.general.volume/100,this.currentMinFrequency=o.general.minFrequency,this.currentMaxFrequency=o.general.maxFrequency,this.settings.addObserver(this)}dispose(){this.stopAll(),this.audioPalette.dispose(),this.audioContext.state!=="closed"&&(this.compressor.disconnect(),this.audioContext.close()),this.settings.removeObserver(this)}update(t){"general"in t?this.onSettingsChange(t):this.onStateChange(t)}onSettingsChange(t){this.currentVolume=t.general.volume/100,this.currentMinFrequency=t.general.minFrequency,this.currentMaxFrequency=t.general.maxFrequency}onStateChange(t){if(this.updateMode(t),this.mode==="off"||t.type!=="trace")return;if(t.empty){this.playEmptyTone(t.audio.size,t.audio.index);return}const n=t.audio;let l=n.groupIndex;n.trend&&l===void 0&&(l=this.audioPalette.getCandlestickGroupIndex(n.trend));const a=l!==void 0?this.audioPalette.getPaletteEntry(l):void 0;if(n.isContinuous)this.playSmooth(n.value,n.min,n.max,n.size,Array.isArray(n.index)?n.index[0]:n.index,a);else if(Array.isArray(n.value)){const i=n.value;if(i.length===0){this.playZeroTone();return}let s=0;const T=this.mode==="on"?50:0,u=new Array,Q=()=>{if(s<i.length){const f=Array.isArray(n.index)?n.index[s]:n.index;this.playTone(n.min,n.max,i[s++],n.size,f,a),u.push(setTimeout(Q,T))}else this.stop(u)};Q()}else{const i=n.value;if(i===0)this.playZeroTone();else{const s=Array.isArray(n.index)?n.index[0]:n.index;this.playTone(n.min,n.max,i,n.size,s,a)}}}getVolume(){return Math.min(Math.max(this.currentVolume,0),1)}getFrequencyRange(){return{min:this.currentMinFrequency,max:this.currentMaxFrequency}}initCompressor(){const t=this.audioContext.createDynamicsCompressor();t.threshold.value=-50,t.knee.value=40,t.ratio.value=12,t.attack.value=0,t.release.value=.25;const n=this.audioContext.createGain();return n.gain.value=.5,t.connect(n),n.connect(this.audioContext.destination),t}updateMode(t){if(t.empty||t.type==="figure")return;const n=t.type==="subplot"?t.trace:t;n.empty||n.hasMultiPoints===this.isCombinedAudio||(this.isCombinedAudio=n.hasMultiPoints,this.mode!=="off"&&(this.isCombinedAudio?this.mode="combined":this.mode="on"))}playTone(t,n,l,o,a,i){const s={min:t,max:n},T=this.getFrequencyRange(),u=this.interpolate(l,s,T),Q={min:0,max:o},f={min:-1,max:1},h=this.clamp(this.interpolate(a,Q,f),-1,1);return this.playOscillator(u,h,i)}createOscillators(t,n){const l=[],o=this.audioContext.createOscillator();if(o.type=t.waveType,o.frequency.value=n,l.push(o),t.harmonicMix)for(const a of t.harmonicMix.harmonics){const i=this.audioContext.createOscillator();i.type=t.waveType,i.frequency.value=a.frequency*n,l.push(i)}return l}createGainNodes(t,n,l,o){const a=[],i=this.audioContext.currentTime,s=this.getVolume();for(let T=0;T<t.length;T++){const u=this.audioContext.createGain();let Q=s;if(T===0)n.harmonicMix&&(Q*=n.harmonicMix.fundamental);else{const h=n.harmonicMix.harmonics[T-1];Q*=h.amplitude}const f=this.createAdsrEnvelope(u,n,Q,i,o);f!==null&&u.gain.setValueCurveAtTime(f,i,o),a.push(u)}return a}playOscillator(t,n=0,l){const o=eE,a=this.getVolume();l||(l=this.audioPalette.getPaletteEntry(0));const i=this.createOscillators(l,t),s=this.createGainNodes(i,l,a,o),T=this.audioContext.createStereoPanner();T.pan.value=n;const u=new PannerNode(this.audioContext,{distanceModel:"linear",positionX:0,positionY:0,positionZ:0,orientationX:0,orientationY:0,orientationZ:-1,refDistance:1,maxDistance:1e4,rolloffFactor:10,coneInnerAngle:40,coneOuterAngle:50,coneOuterGain:.4});for(let h=0;h<i.length;h++)i[h].connect(s[h]),s[h].connect(T);T.connect(u),u.connect(this.compressor),i.forEach(h=>h.start());const Q=h=>{u.disconnect(this.compressor),T.disconnect(u);for(let p=0;p<i.length;p++)s[p].disconnect(T),i[p].stop(),i[p].disconnect(s[p]);this.activeAudioIds.delete(h)},f=setTimeout(()=>Q(f),o*1e3*2);return this.activeAudioIds.set(f,i),f}createAdsrEnvelope(t,n,l,o,a){if(n!=null&&n.timbreModulation){const{attack:i,decay:s,sustain:T,release:u}=n.timbreModulation,Q=a*i,f=a*s,h=a*u,p=a-Q-f-h;return t.gain.setValueAtTime(1e-4*l,o),t.gain.linearRampToValueAtTime(l,o+Q),t.gain.linearRampToValueAtTime(T*l,o+Q+f),p>0&&t.gain.setValueAtTime(T*l,o+Q+f+p),t.gain.linearRampToValueAtTime(1e-4*l,o+a),null}else return[.5*l,l,.5*l,.5*l,.5*l,.1*l,1e-4*l]}playSmooth(t,n,l,o,a,i){const s=this.audioContext,T=s.currentTime,u=eE,Q=this.getFrequencyRange(),f=this.getVolume(),h=(i==null?void 0:i.waveType)||"sine",p=t.map(O=>this.interpolate(O,{min:n,max:l},Q));p.length<2&&p.push(p[0]);const g=this.clamp(this.interpolate(a,{min:0,max:o-1},{min:-1,max:1}),-1,1),v=s.createOscillator();v.type=h,v.frequency.setValueCurveAtTime(p,T,u);const b=s.createGain(),L=this.createAdsrEnvelope(b,i,f,T,u);L!==null&&b.gain.setValueCurveAtTime(L,T,u);const S=s.createStereoPanner();S.pan.value=g,v.connect(b),b.connect(S),S.connect(this.compressor),v.start(T),v.stop(T+u);const _=setTimeout(()=>{v.disconnect(),b.disconnect(),S.disconnect(),this.activeAudioIds.delete(_)},u*1e3*2);this.activeAudioIds.set(_,[v])}playEmptyTone(t,n){const l=this.audioContext,o=l.currentTime,a=.2,i=this.getVolume(),s=[500,1e3,1500,2100,2700],T=[1,.6,.4,.2,.1],u=l.createGain();u.gain.setValueAtTime(.3*i,o),u.gain.exponentialRampToValueAtTime(.01*i,o+a),u.connect(this.compressor);const Q={min:0,max:t},f={min:-1,max:1},h=this.clamp(this.interpolate(n,Q,f),-1,1),p=[];for(let b=0;b<s.length;b++){const L=l.createOscillator(),S=l.createGain(),_=this.audioContext.createStereoPanner(),O=new PannerNode(this.audioContext,{distanceModel:"linear",positionX:0,positionY:0,positionZ:0,orientationX:0,orientationY:0,orientationZ:-1,refDistance:1,maxDistance:1e4,rolloffFactor:10,coneInnerAngle:40,coneOuterAngle:50,coneOuterGain:.4});L.frequency.value=s[b],L.type="sine",S.gain.setValueAtTime(T[b]*i,o),S.gain.exponentialRampToValueAtTime(.001*i,o+a),_.pan.value=h,L.connect(S),S.connect(_),_.connect(O),O.connect(u),L.start(o),L.stop(o+a),p.push(L)}const g=b=>{u.disconnect(),p.forEach(L=>{L.disconnect()}),this.activeAudioIds.delete(b)},v=setTimeout(()=>g(v),a*1e3*2);return this.activeAudioIds.set(v,p),v}playZeroTone(){return this.playOscillator(oI,0,{index:xv,waveType:"triangle"})}playWaitingTone(){return setInterval(()=>this.playOscillator(lI,0,{index:xv,waveType:"sine"}),1e3)}playCompleteTone(){return this.playOscillator(sI,0,{index:xv,waveType:"sine"})}interpolate(t,n,l){return n.min===0&&n.max===0?0:(t-n.min)/(n.max-n.min)*(l.max-l.min)+l.min}clamp(t,n,l){return Math.max(n,Math.min(t,l))}toggle(){switch(this.mode){case"off":this.mode=this.isCombinedAudio?"combined":"on";break;case"on":this.mode="off";break;case"combined":this.mode="on";break}const n=`Sound is ${this.isCombinedAudio&&this.mode==="on"?"separate":this.mode}`;this.notification.notify(n)}stop(t){(Array.isArray(t)?t:[t]).forEach(l=>{const o=this.activeAudioIds.get(l);if(!o){clearInterval(l);return}o.forEach(a=>{a==null||a.disconnect(),a==null||a.stop()}),clearTimeout(l),this.activeAudioIds.delete(l)})}stopAll(){this.activeAudioIds.entries().forEach(([t,n])=>{clearTimeout(t),n.forEach(l=>{l.disconnect(),l.stop()})}),this.activeAudioIds.clear()}}const cI=250,TI=50,QI=500,fI=20;class dI{constructor(t,n,l){oe(this,"context");oe(this,"notification");oe(this,"settings");oe(this,"autoplayId");oe(this,"currentDirection");oe(this,"userSpeed");oe(this,"defaultSpeed");oe(this,"minSpeed");oe(this,"maxSpeed");oe(this,"autoplayRate");oe(this,"interval");oe(this,"currentDuration");oe(this,"onChangeEmitter");oe(this,"onChange");this.notification=n,this.context=t,this.settings=l,this.autoplayId=null,this.currentDirection=null,this.userSpeed=null,this.defaultSpeed=cI,this.minSpeed=TI,this.maxSpeed=QI,this.autoplayRate=this.defaultSpeed,this.interval=fI,this.currentDuration=this.settings.loadSettings().general.autoplayDuration,this.onChangeEmitter=new bs,this.onChange=this.onChangeEmitter.event,this.settings.addObserver(this)}dispose(){this.stop(),this.onChangeEmitter.dispose(),this.settings.removeObserver(this)}update(t){this.updateSettings(t)}updateSettings(t){this.currentDuration=t.general.autoplayDuration,this.currentDirection&&this.restart()}start(t,n){this.stop(),this.onChangeEmitter.fire({type:"start"}),this.autoplayRate=this.getAutoplayRate(t,n),this.currentDirection=t,this.autoplayId=setInterval(()=>{this.context.isMovable(t)?this.context.moveOnce(t):this.stop()},this.autoplayRate)}stop(){this.autoplayId&&clearInterval(this.autoplayId),this.autoplayId=null,this.currentDirection=null,this.onChangeEmitter.fire({type:"stop"})}restart(){this.autoplayId&&clearInterval(this.autoplayId),this.currentDirection&&this.start(this.currentDirection)}speedUp(){const t=this.userSpeed??this.autoplayRate;t-this.interval>this.minSpeed?(this.userSpeed=t-this.interval,this.autoplayRate=this.userSpeed,this.restart(),this.notification.notify("Speed up")):this.notification.notify("Max speed")}speedDown(){const t=this.userSpeed??this.autoplayRate;t+this.interval<=this.maxSpeed?(this.userSpeed=t+this.interval,this.autoplayRate=this.userSpeed,this.restart(),this.notification.notify("Speed down")):this.notification.notify("Min speed")}resetSpeed(){this.userSpeed=null,this.autoplayRate=this.defaultSpeed,this.restart(),this.notification.notify("Reset speed")}getAutoplayRate(t,n){if(this.userSpeed!==null)return this.userSpeed;if(n&&!n.empty){const l=Math.ceil(this.currentDuration/n.autoplay[t]);return this.defaultSpeed=l,this.minSpeed=Math.min(this.minSpeed,l),l}return this.defaultSpeed}}const tE=32;class Cc{encode(t){const n=new Array,l=new Array,o=new Array;for(let a=0;a<t.values.length;a++){l.push(new Array);const i=(t.max[a]-t.min[a])/4,s=t.min[a]+i,T=s+i,u=T+i;for(let Q=0;Q<t.values[a].length;Q++)t.values[a][Q]===0?n.push(" "):t.values[a][Q]<=s||t.values[a][Q]<=T?n.push("⠤"):t.values[a][Q]<=u?n.push("⠒"):n.push("⠉"),l[a].push(o.length),o.push({row:a,col:Q});n.push(Le.NEW_LINE),l[a].push(o.length),o.push({row:a,col:t.values[a].length})}return{value:n.join(Le.EMPTY),cellToIndex:l,indexToCell:o}}}class hI{constructor(){oe(this,"GLOBAL_MIN","globalMin");oe(this,"GLOBAL_MAX","globalMax");oe(this,"BLANK","blank");oe(this,"LOWER_OUTLIER","lowerOutlier");oe(this,"UPPER_OUTLIER","upperOutlier");oe(this,"MIN","min");oe(this,"MAX","max");oe(this,"Q1","q1");oe(this,"Q2","q2");oe(this,"Q3","q3")}encode(t,n=tE){const l=new Array,o=new Array,a=new Array;for(let i=0;i<t.values.length;i++){const s=t.values[i],T=[{type:this.GLOBAL_MIN,value:t.min},...s.lowerOutliers.map(V=>({type:this.LOWER_OUTLIER,value:V})),{type:this.MIN,value:s.min},{type:this.Q1,value:s.q1},{type:this.Q2,value:s.q2},{type:this.Q3,value:s.q3},{type:this.MAX,value:s.max},...s.upperOutliers.map(V=>({type:this.UPPER_OUTLIER,value:V})),{type:this.GLOBAL_MAX,value:t.max}],u=new Array;let Q=!0;for(let V=0;V<T.length-1;V++){const k=T[V],B=T[V+1],R=Math.abs(Q?B.value-k.value:k.value-T[V-1].value);k.type===this.LOWER_OUTLIER||k.type===this.UPPER_OUTLIER?(u.push({type:k.type,length:0,numChars:1}),u.push({type:this.BLANK,length:R,numChars:0})):k.type===this.Q2?(Q=!1,u.push({type:this.Q2,length:0,numChars:2})):k.type===this.GLOBAL_MIN||k.type===this.GLOBAL_MAX?u.push({type:this.BLANK,length:R,numChars:0}):u.push({type:k.type,length:R,numChars:1})}let f=u.reduce((V,k)=>V+(k.numChars>0?k.numChars:0),0),[h,p,g,v]=[-1,-1,-1,-1];for(let V=0;V<u.length;V++)u[V].type===this.MIN&&u[V].length>0&&(h=V),u[V].type===this.MAX&&u[V].length>0&&(p=V),u[V].type===this.Q1&&(g=V),u[V].type===this.Q3&&(v=V);h!==-1&&p!==-1&&u[h].length!==u[p].length&&(u[h].length>u[p].length?(u[h].numChars++,f++):(u[p].numChars++,f++)),g!==-1&&v!==-1&&u[g].length!==u[v].length&&(u[g].length>u[v].length?(u[g].numChars++,f++):(u[v].numChars++,f++));const b=Math.max(0,n-f),L=u.reduce((V,k)=>V+(k.type!==this.Q2&&k.length>0?k.length:0),0);for(const V of u)if(V.type!==this.Q2&&V.length>0){const k=Math.round(V.length/L*b);V.numChars+=k}const S=u.reduce((V,k)=>V+k.numChars,0);let _=n-S,O=0;for(;_!==0;){const V=u[O%u.length];V.type!==this.BLANK&&V.type!==this.Q2&&V.length>0&&(V.numChars+=_>0?1:-1,_+=_>0?-1:1),O++}let E=-1;const A=[this.LOWER_OUTLIER,this.MIN,this.Q1,this.Q2,this.Q3,this.MAX,this.UPPER_OUTLIER];a.push(Array.from({length:A.length}).fill(-1));for(const V of u){V.type!==this.BLANK&&V.type!==this.GLOBAL_MIN&&V.type!==this.GLOBAL_MAX&&(E=A.indexOf(V.type),a[i][E]=l.length);for(let k=0;k<V.numChars;k++){let B="⠀";V.type===this.MIN||V.type===this.MAX?B="⠒":V.type===this.Q1||V.type===this.Q3?B="⠿":V.type===this.Q2?B=k===0?"⠸":"⠇":V.type===this.LOWER_OUTLIER||V.type===this.UPPER_OUTLIER?B="⠂":V.type===this.BLANK&&(B="⠀"),l.push(B),o.push({row:i,col:E})}}for(let V=0;V<3;V++)if(a[i][V]===-1){for(let k=V+1;k<=3;k++)if(a[i][k]!==-1){a[i][V]=a[i][k];break}}for(let V=6;V>3;V--)if(a[i][V]===-1){for(let k=V-1;k>=3;k--)if(a[i][k]!==-1){a[i][V]=a[i][k];break}}l.push(Le.NEW_LINE),o.push({row:i,col:E})}return{value:l.join(Le.EMPTY),cellToIndex:a,indexToCell:o}}}class pI{encode(t){const n=new Array,l=new Array,o=new Array,a=(t.max-t.min)/3,i=t.min+a,s=i+a;for(let T=0;T<t.values.length;T++){l.push(new Array);for(let u=0;u<t.values[T].length;u++)t.values[T][u]===0?n.push(" "):t.values[T][u]<=i?n.push("⠤"):t.values[T][u]<=s?n.push("⠒"):n.push("⠉"),l[T].push(o.length),o.push({row:T,col:u});n.push(Le.NEW_LINE),l[T].push(o.length),o.push({row:T,col:t.values[T].length})}return{value:n.join(Le.EMPTY),cellToIndex:l,indexToCell:o}}}class nE{encode(t){const n=new Array,l=new Array,o=new Array;for(let a=0;a<t.values.length;a++){l.push(new Array);const{low:i,medium:s,mediumHigh:T,high:u}=this.getThresholds(a,t);for(let Q=0;Q<t.values[a].length;Q++){const f=t.values[a][Q],h=Q>0?t.values[a][Q-1]:null,p=this.getBrailleChar(f,h,i,s,u,T);n.push(p),l[a].push(o.length),o.push({row:a,col:Q})}n.push(Le.NEW_LINE),l[a].push(o.length),o.push({row:a,col:t.values[a].length})}return{value:n.join(Le.EMPTY),cellToIndex:l,indexToCell:o}}getBrailleChar(t,n,l,o,a,i){return i===void 0&&(i=a),t<=l&&n!==null&&n>l?n<=o?"⢄":n<=i?"⢆":"⢇":t<=l?"⣀":n!==null&&n<=l?t<=o?"⡠":t<=i?"⡰":"⡸":t<=o&&n!==null&&n>o?n<=i?"⠢":"⠣":t<=o?"⠤":n!==null&&n<=o?t<=i?"⠔":"⠜":t<=i&&n!==null&&n>i?"⠑":t<=i?"⠒":n!==null&&n<=i?"⠊":t<=a?"⠉":""}getBraille6Char(t,n,l,o,a){const i=f=>f<=l?"low":f<=o?"medium":(f<=a,"high"),s=i(t),T=n!==null?i(n):null,u={"low,medium":"⠢","low,high":"⠣","low,null":"⠤","low,low":"⠤","medium,low":"⠔","medium,high":"⠑","medium,null":"⠒","medium,medium":"⠒","high,low":"⠜","high,medium":"⠊","high,null":"⠉","high,high":"⠉"},Q=`${s},${T}`;return u[Q]||""}addDot8(t){if(!t||t.length===0)return"⢀";const o=t.charCodeAt(0)-10240|128;return String.fromCharCode(10240+o)}}class mI extends nE{getThresholds(t,n){const l=(n.max-n.min)/3,o=n.min+l,a=o+l,i=n.max;return{low:o,medium:a,high:i}}encode(t){var a;const n=new Array,l=new Array,o=new Array;for(let i=0;i<t.values.length;i++){l.push(new Array);const{low:s,medium:T,high:u}=this.getThresholds(i,t);for(let Q=0;Q<t.values[i].length;Q++){const f=t.values[i][Q],h=Q>0?t.values[i][Q-1]:null;let p=this.getBraille6Char(f,h,s,T,u);((a=t.custom)==null?void 0:a[Q])==="Bear"&&(p=this.addDot8(p)),n.push(p),l[i].push(o.length),o.push({row:i,col:Q})}n.push(Le.NEW_LINE),l[i].push(o.length),o.push({row:i,col:t.values[i].length})}return{value:n.join(Le.EMPTY),cellToIndex:l,indexToCell:o}}}class yI extends nE{getThresholds(t,n){const l=(n.max[t]-n.min[t])/4,o=n.min[t]+l,a=o+l,i=a+l,s=n.max[t];return{low:o,medium:a,mediumHigh:i,high:s}}}class gI{constructor(t,n,l){oe(this,"context");oe(this,"notification");oe(this,"display");oe(this,"enabled");oe(this,"cacheId");oe(this,"cache");oe(this,"encoders");oe(this,"onChangeEmitter");oe(this,"onChange");this.context=t,this.notification=n,this.display=l,this.enabled=!1,this.cacheId=Le.EMPTY,this.cache=null,this.encoders=new Map([[P2.BAR,new Cc],[P2.BOX,new hI],[P2.CANDLESTICK,new mI],[P2.DODGED,new Cc],[P2.HEATMAP,new pI],[P2.HISTOGRAM,new Cc],[P2.LINE,new yI],[P2.NORMALIZED,new Cc],[P2.STACKED,new Cc]]),this.onChangeEmitter=new bs,this.onChange=this.onChangeEmitter.event}dispose(){this.onChangeEmitter.dispose(),this.cache=null,this.encoders.clear()}update(t){if(!this.enabled||t.empty)return;const n=t.type==="subplot"?t.trace:t;if(n.empty||n.braille.empty||!this.encoders.has(n.traceType))return;const l=n.braille;if(this.cacheId!==l.id||this.cache===null){const o=this.encoders.get(n.traceType);this.cache=o.encode(l,tE),this.cacheId=l.id}this.onChangeEmitter.fire({value:this.cache.value.trim(),index:this.cache.cellToIndex[l.row][l.col]})}moveToIndex(t){if(!this.enabled||this.cache===null||t<0||t>=this.cache.indexToCell.length)return;const{row:n,col:l}=this.cache.indexToCell[t];this.context.moveToIndex(n,l)}toggle(t){if(t.empty){this.notification.notify("No info for braille");return}if(t.braille.empty){const l=`Braille is not supported for plot type: ${t.braille.traceType}`;this.notification.notify(l);return}this.enabled=!this.enabled,this.update(t),this.display.toggleFocus(E1.BRAILLE);const n=`Braille is ${this.enabled?"on":"off"}`;this.notification.notify(n)}}var rE=(e=>(e[e.OK=200]="OK",e[e.BAD_REQUEST=400]="BAD_REQUEST",e[e.NOT_FOUND=404]="NOT_FOUND",e[e.SERVER_ERROR=500]="SERVER_ERROR",e))(rE||{});class iE{constructor(){}static async post(t,n,l){const o={...this.DEFAULT_HEADERS,...l};return this.request(t,"POST",o,n)}static async request(t,n,l,o){try{const a=await fetch(t,{method:n,headers:l,body:o});return a.ok?{success:!0,data:await a.json()}:{success:!1,error:{statusCode:a.status,message:`API Error: ${a.status} - ${a.statusText}`}}}catch(a){return console.error(`Error in API ${n} request to ${t}:`,a),{success:!1,error:{statusCode:rE.SERVER_ERROR,message:a instanceof Error?a.message:"Unknown error occurred"}}}}}oe(iE,"DEFAULT_HEADERS",{"Content-Type":"application/json"});const vI=`You are an accessibility assistant specializing in describing statistical visualizations to blind users. Your role is to:
|
|
1
|
+
(function(Mr){typeof define=="function"&&define.amd?define(Mr):Mr()})(function(){"use strict";var Jae=Object.defineProperty;var eoe=(Mr,E4,E1)=>E4 in Mr?Jae(Mr,E4,{enumerable:!0,configurable:!0,writable:!0,value:E1}):Mr[E4]=E1;var oe=(Mr,E4,E1)=>eoe(Mr,typeof E4!="symbol"?E4+"":E4,E1);function Mr(e,t){for(var n=0;n<t.length;n++){const l=t[n];if(typeof l!="string"&&!Array.isArray(l)){for(const o in l)if(o!=="default"&&!(o in e)){const a=Object.getOwnPropertyDescriptor(l,o);a&&Object.defineProperty(e,o,a.get?a:{enumerable:!0,get:()=>l[o]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}var E4=(e=>(e.CLICK="click",e.DOM_LOADED="DOMContentLoaded",e.FOCUS_IN="focusin",e.FOCUS_OUT="focusout",e.SELECTION_CHANGE="selectionchange",e))(E4||{}),E1=(e=>(e.BRAILLE="BRAILLE",e.CHAT="CHAT",e.HELP="HELP",e.FIGURE_LABEL="FIGURE_LABEL",e.SUBPLOT="SUBPLOT",e.TRACE="TRACE",e.TRACE_LABEL="TRACE_LABEL",e.REVIEW="REVIEW",e.SETTINGS="SETTINGS",e))(E1||{});class bs{constructor(){oe(this,"listeners");oe(this,"event",t=>(this.listeners.add(t),{dispose:()=>this.listeners.delete(t)}));this.listeners=new Set}dispose(){this.listeners.clear()}fire(t){for(const n of this.listeners)n(t)}}class ve{constructor(){}}oe(ve,"ARTICLE","article"),oe(ve,"DIV","div"),oe(ve,"FIGURE","figure"),oe(ve,"IMAGE","img"),oe(ve,"INPUT","input"),oe(ve,"TEXT_AREA","textarea"),oe(ve,"BRAILLE_TEXT_AREA","maidr-braille-textarea"),oe(ve,"MAIDR_ARTICLE","maidr-article"),oe(ve,"MAIDR_FIGURE","maidr-figure"),oe(ve,"MAIDR_HIGHLIGHT","maidr-highlight"),oe(ve,"REACT_CONTAINER","maidr-react-container"),oe(ve,"REVIEW_INPUT","maidr-review-input"),oe(ve,"TEXT_CONTAINER","maidr-text-container"),oe(ve,"ARIA_LABEL","aria-label"),oe(ve,"CIRCLE_X","cx"),oe(ve,"CIRCLE_Y","cy"),oe(ve,"D","d"),oe(ve,"FILL","fill"),oe(ve,"POINTS","points"),oe(ve,"RADIUS","r"),oe(ve,"ROLE","role"),oe(ve,"STROKE","stroke"),oe(ve,"STROKE_WIDTH","stroke-width"),oe(ve,"TITLE","title"),oe(ve,"VISIBILITY","visibility"),oe(ve,"X1","x1"),oe(ve,"X2","x2"),oe(ve,"Y1","y1"),oe(ve,"Y2","y2"),oe(ve,"MAIDR_SUBPLOT","subplot"),oe(ve,"AFTER_END","afterend"),oe(ve,"APPLICATION","application"),oe(ve,"ARE"," are "),oe(ve,"CIRCLE","circle"),oe(ve,"CLOSE_BRACKET","]"),oe(ve,"COMMA",","),oe(ve,"COMMA_SPACE",", "),oe(ve,"EMPTY",""),oe(ve,"HIDDEN","hidden"),oe(ve,"IS"," is "),oe(ve,"LINE","line"),oe(ve,"MAIDR_DATA","maidr-data"),oe(ve,"MAIDR_HIGHLIGHT_COLOR","#BADA55"),oe(ve,"NEW_LINE",`
|
|
2
|
+
`),oe(ve,"OPEN_BRACKET","["),oe(ve,"POLYLINE","polyline"),oe(ve,"SPACE"," "),oe(ve,"THROUGH"," through "),oe(ve,"TRANSPARENT","transparent"),oe(ve,"VISIBLE","visible"),oe(ve,"X","x"),oe(ve,"Y","y"),oe(ve,"HIGHLIGHT_BASE_COLOR",{r:255,g:255,b:255}),oe(ve,"HIGHLIGHT_CONTRAST_RATIO",3),oe(ve,"HIGHLIGHT_COLOR_RATIO",.6),oe(ve,"HIGHLIGHT_MAX_COLOR",255);let fv=class{constructor(){oe(this,"items");this.items=new Array}push(t){this.items.push(t)}pop(){return this.items.pop()}peek(){return this.items[this.items.length-1]}removeLast(t,n=1){const l=this.items.lastIndexOf(t);return l!==-1?(this.items.splice(l,n),!0):!1}isEmpty(){return this.items.length===0}size(){return this.items.length}clear(){this.items.length=0}};const dv=typeof navigator<"u"?navigator.userAgent.toLowerCase().indexOf("firefox")>0:!1;function hv(e,t,n,l){e.addEventListener?e.addEventListener(t,n,l):e.attachEvent&&e.attachEvent("on".concat(t),n)}function Ec(e,t,n,l){e.removeEventListener?e.removeEventListener(t,n,l):e.detachEvent&&e.detachEvent("on".concat(t),n)}function qH(e,t){const n=t.slice(0,t.length-1);for(let l=0;l<n.length;l++)n[l]=e[n[l].toLowerCase()];return n}function $H(e){typeof e!="string"&&(e=""),e=e.replace(/\s/g,"");const t=e.split(",");let n=t.lastIndexOf("");for(;n>=0;)t[n-1]+=",",t.splice(n,1),n=t.lastIndexOf("");return t}function pj(e,t){const n=e.length>=t.length?e:t,l=e.length>=t.length?t:e;let o=!0;for(let a=0;a<n.length;a++)l.indexOf(n[a])===-1&&(o=!1);return o}const Sc={backspace:8,"⌫":8,tab:9,clear:12,enter:13,"↩":13,return:13,esc:27,escape:27,space:32,left:37,up:38,right:39,down:40,del:46,delete:46,ins:45,insert:45,home:36,end:35,pageup:33,pagedown:34,capslock:20,num_0:96,num_1:97,num_2:98,num_3:99,num_4:100,num_5:101,num_6:102,num_7:103,num_8:104,num_9:105,num_multiply:106,num_add:107,num_enter:108,num_subtract:109,num_decimal:110,num_divide:111,"⇪":20,",":188,".":190,"/":191,"`":192,"-":dv?173:189,"=":dv?61:187,";":dv?59:186,"'":222,"[":219,"]":221,"\\":220},u5={"⇧":16,shift:16,"⌥":18,alt:18,option:18,"⌃":17,ctrl:17,control:17,"⌘":91,cmd:91,command:91},Mc={16:"shiftKey",18:"altKey",17:"ctrlKey",91:"metaKey",shiftKey:16,ctrlKey:17,altKey:18,metaKey:91},_3={16:!1,18:!1,17:!1,91:!1},b2={};for(let e=1;e<20;e++)Sc["f".concat(e)]=111+e;let p2=[],Ac=null,UH="all";const O0=new Map,_c=e=>Sc[e.toLowerCase()]||u5[e.toLowerCase()]||e.toUpperCase().charCodeAt(0),mj=e=>Object.keys(Sc).find(t=>Sc[t]===e),yj=e=>Object.keys(u5).find(t=>u5[t]===e);function GH(e){UH=e||"all"}function Oc(){return UH||"all"}function gj(){return p2.slice(0)}function vj(){return p2.map(e=>mj(e)||yj(e)||String.fromCharCode(e))}function Lj(){const e=[];return Object.keys(b2).forEach(t=>{b2[t].forEach(n=>{let{key:l,scope:o,mods:a,shortcut:i}=n;e.push({scope:o,shortcut:i,mods:a,keys:l.split("+").map(s=>_c(s))})})}),e}function xj(e){const t=e.target||e.srcElement,{tagName:n}=t;let l=!0;const o=n==="INPUT"&&!["checkbox","radio","range","button","file","reset","submit","color"].includes(t.type);return(t.isContentEditable||(o||n==="TEXTAREA"||n==="SELECT")&&!t.readOnly)&&(l=!1),l}function bj(e){return typeof e=="string"&&(e=_c(e)),p2.indexOf(e)!==-1}function Hj(e,t){let n,l;e||(e=Oc());for(const o in b2)if(Object.prototype.hasOwnProperty.call(b2,o))for(n=b2[o],l=0;l<n.length;)n[l].scope===e?n.splice(l,1).forEach(i=>{let{element:s}=i;return pv(s)}):l++;Oc()===e&&GH(t||"all")}function Ej(e){let t=e.keyCode||e.which||e.charCode;const n=p2.indexOf(t);if(n>=0&&p2.splice(n,1),e.key&&e.key.toLowerCase()==="meta"&&p2.splice(0,p2.length),(t===93||t===224)&&(t=91),t in _3){_3[t]=!1;for(const l in u5)u5[l]===t&&(q3[l]=!1)}}function ZH(e){if(typeof e>"u")Object.keys(b2).forEach(o=>{Array.isArray(b2[o])&&b2[o].forEach(a=>bp(a)),delete b2[o]}),pv(null);else if(Array.isArray(e))e.forEach(o=>{o.key&&bp(o)});else if(typeof e=="object")e.key&&bp(e);else if(typeof e=="string"){for(var t=arguments.length,n=new Array(t>1?t-1:0),l=1;l<t;l++)n[l-1]=arguments[l];let[o,a]=n;typeof o=="function"&&(a=o,o=""),bp({key:e,scope:o,method:a,splitKey:"+"})}}const bp=e=>{let{key:t,scope:n,method:l,splitKey:o="+"}=e;$H(t).forEach(i=>{const s=i.split(o),T=s.length,u=s[T-1],Q=u==="*"?"*":_c(u);if(!b2[Q])return;n||(n=Oc());const f=T>1?qH(u5,s):[],h=[];b2[Q]=b2[Q].filter(p=>{const v=(l?p.method===l:!0)&&p.scope===n&&pj(p.mods,f);return v&&h.push(p.element),!v}),h.forEach(p=>pv(p))})};function XH(e,t,n,l){if(t.element!==l)return;let o;if(t.scope===n||t.scope==="all"){o=t.mods.length>0;for(const a in _3)Object.prototype.hasOwnProperty.call(_3,a)&&(!_3[a]&&t.mods.indexOf(+a)>-1||_3[a]&&t.mods.indexOf(+a)===-1)&&(o=!1);(t.mods.length===0&&!_3[16]&&!_3[18]&&!_3[17]&&!_3[91]||o||t.shortcut==="*")&&(t.keys=[],t.keys=t.keys.concat(p2),t.method(e,t)===!1&&(e.preventDefault?e.preventDefault():e.returnValue=!1,e.stopPropagation&&e.stopPropagation(),e.cancelBubble&&(e.cancelBubble=!0)))}}function WH(e,t){const n=b2["*"];let l=e.keyCode||e.which||e.charCode;if(!q3.filter.call(this,e))return;if((l===93||l===224)&&(l=91),p2.indexOf(l)===-1&&l!==229&&p2.push(l),["metaKey","ctrlKey","altKey","shiftKey"].forEach(s=>{const T=Mc[s];e[s]&&p2.indexOf(T)===-1?p2.push(T):!e[s]&&p2.indexOf(T)>-1?p2.splice(p2.indexOf(T),1):s==="metaKey"&&e[s]&&(p2=p2.filter(u=>u in Mc||u===l))}),l in _3){_3[l]=!0;for(const s in u5)if(Object.prototype.hasOwnProperty.call(u5,s)){const T=Mc[u5[s]];q3[s]=e[T]}if(!n)return}for(const s in _3)Object.prototype.hasOwnProperty.call(_3,s)&&(_3[s]=e[Mc[s]]);e.getModifierState&&!(e.altKey&&!e.ctrlKey)&&e.getModifierState("AltGraph")&&(p2.indexOf(17)===-1&&p2.push(17),p2.indexOf(18)===-1&&p2.push(18),_3[17]=!0,_3[18]=!0);const o=Oc();if(n)for(let s=0;s<n.length;s++)n[s].scope===o&&(e.type==="keydown"&&n[s].keydown||e.type==="keyup"&&n[s].keyup)&&XH(e,n[s],o,t);if(!(l in b2))return;const a=b2[l],i=a.length;for(let s=0;s<i;s++)if((e.type==="keydown"&&a[s].keydown||e.type==="keyup"&&a[s].keyup)&&a[s].key){const T=a[s],{splitKey:u}=T,Q=T.key.split(u),f=[];for(let h=0;h<Q.length;h++)f.push(_c(Q[h]));f.sort().join("")===p2.sort().join("")&&XH(e,T,o,t)}}function q3(e,t,n){p2=[];const l=$H(e);let o=[],a="all",i=document,s=0,T=!1,u=!0,Q="+",f=!1,h=!1;for(n===void 0&&typeof t=="function"&&(n=t),Object.prototype.toString.call(t)==="[object Object]"&&(t.scope&&(a=t.scope),t.element&&(i=t.element),t.keyup&&(T=t.keyup),t.keydown!==void 0&&(u=t.keydown),t.capture!==void 0&&(f=t.capture),typeof t.splitKey=="string"&&(Q=t.splitKey),t.single===!0&&(h=!0)),typeof t=="string"&&(a=t),h&&ZH(e,a);s<l.length;s++)e=l[s].split(Q),o=[],e.length>1&&(o=qH(u5,e)),e=e[e.length-1],e=e==="*"?"*":_c(e),e in b2||(b2[e]=[]),b2[e].push({keyup:T,keydown:u,scope:a,mods:o,shortcut:l[s],method:n,key:l[s],splitKey:Q,element:i});if(typeof i<"u"&&window){if(!O0.has(i)){const p=function(){let v=arguments.length>0&&arguments[0]!==void 0?arguments[0]:window.event;return WH(v,i)},g=function(){let v=arguments.length>0&&arguments[0]!==void 0?arguments[0]:window.event;WH(v,i),Ej(v)};O0.set(i,{keydownListener:p,keyupListenr:g,capture:f}),hv(i,"keydown",p,f),hv(i,"keyup",g,f)}if(!Ac){const p=()=>{p2=[]};Ac={listener:p,capture:f},hv(window,"focus",p,f)}}}function Sj(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"all";Object.keys(b2).forEach(n=>{b2[n].filter(o=>o.scope===t&&o.shortcut===e).forEach(o=>{o&&o.method&&o.method()})})}function pv(e){const t=Object.values(b2).flat();if(t.findIndex(l=>{let{element:o}=l;return o===e})<0){const{keydownListener:l,keyupListenr:o,capture:a}=O0.get(e)||{};l&&o&&(Ec(e,"keyup",o,a),Ec(e,"keydown",l,a),O0.delete(e))}if((t.length<=0||O0.size<=0)&&(Object.keys(O0).forEach(o=>{const{keydownListener:a,keyupListenr:i,capture:s}=O0.get(o)||{};a&&i&&(Ec(o,"keyup",i,s),Ec(o,"keydown",a,s),O0.delete(o))}),O0.clear(),Object.keys(b2).forEach(o=>delete b2[o]),Ac)){const{listener:o,capture:a}=Ac;Ec(window,"focus",o,a),Ac=null}}const mv={getPressedKeyString:vj,setScope:GH,getScope:Oc,deleteScope:Hj,getPressedKeyCodes:gj,getAllKeyCodes:Lj,isPressed:bj,filter:xj,trigger:Sj,unbind:ZH,keyMap:Sc,modifier:u5,modifierMap:Mc};for(const e in mv)Object.prototype.hasOwnProperty.call(mv,e)&&(q3[e]=mv[e]);if(typeof window<"u"){const e=window.hotkeys;q3.noConflict=t=>(t&&window.hotkeys===q3&&(window.hotkeys=e),q3),window.hotkeys=q3}class Mj{constructor(t){oe(this,"id");oe(this,"instructionContext");oe(this,"plotContext");oe(this,"scopeContext");this.id=t.id,this.plotContext=new fv,this.scopeContext=new fv;const n=t.state;if(n.empty||n.size!==1){this.instructionContext=t,this.plotContext.push(t),this.scopeContext.push(E1.SUBPLOT);return}this.scopeContext.push(E1.TRACE);const l=t.activeSubplot.state;if(l.empty||l.size!==1){this.instructionContext=t.activeSubplot,this.plotContext.push(t.activeSubplot),this.plotContext.push(t.activeSubplot.activeTrace);return}this.instructionContext=t.activeSubplot.activeTrace,this.plotContext.push(t.activeSubplot.activeTrace)}dispose(){this.plotContext.clear(),this.scopeContext.clear()}get active(){return this.plotContext.peek()}get state(){return this.active.state}toggleScope(t){this.scopeContext.removeLast(t)||this.scopeContext.push(t),q3.setScope(this.scope)}get scope(){return this.scopeContext.peek()}isMovable(t){return this.active.isMovable(t)}moveOnce(t){this.active.moveOnce(t)}moveToExtreme(t){this.active.moveToExtreme(t)}moveToIndex(t,n){this.active.moveToIndex(t,n)}stepTrace(t){if(this.plotContext.size()>1){this.plotContext.pop();const n=this.active;n.moveOnce(t),this.active.notifyStateUpdate(),this.plotContext.push(n.activeTrace)}}enterSubplot(){if(this.active.state.type==="figure"){const n=this.active;this.plotContext.push(n.activeSubplot),this.active.notifyStateUpdate(),this.plotContext.push(n.activeSubplot.activeTrace),this.toggleScope(E1.TRACE)}}exitSubplot(){this.plotContext.size()>2&&(this.plotContext.pop(),this.plotContext.pop(),this.active.notifyStateUpdate(),this.toggleScope(E1.TRACE))}getInstruction(t){const n=this.instructionContext.state;if(n.empty)return`No ${n.type} info available`;const l=t?"Click to activate.":ve.EMPTY;switch(n.type){case"figure":return`This is a MAIDR figure containing ${n.size} subplots. ${l} Use arrow keys to navigate subplots and press 'ENTER'.`;case"subplot":return`This is a MAIDR subplot containing ${n.size} layers, and this is layer 1 of ${n.size}: ${n.trace.traceType} plot. ${l} Use Arrows to navigate data points. Toggle B for Braille, T for Text, S for Sonification, and R for Review mode.`;case"trace":return`This is a maidr plot of type: ${n.traceType}. ${l} Use Arrows to navigate data points. Toggle B for Braille, T for Text, S for Sonification, and R for Review mode.`}}}const Aj="unavailable",_j="X",Oj="Y",Cj="unavailable";class yv{constructor(){oe(this,"observers");oe(this,"isInitialEntry");oe(this,"isOutOfBounds");oe(this,"row");oe(this,"col");this.observers=new Array,this.isInitialEntry=!0,this.isOutOfBounds=!1,this.row=0,this.col=0}dispose(){for(const t of this.observers)this.removeObserver(t);this.observers.length=0}moveOnce(t){if(this.isInitialEntry){this.handleInitialEntry(),this.notifyStateUpdate();return}if(!this.isMovable(t)){this.notifyOutOfBounds();return}switch(t){case"UPWARD":this.row+=1;break;case"DOWNWARD":this.row-=1;break;case"FORWARD":this.col+=1;break;case"BACKWARD":this.col-=1;break}this.notifyStateUpdate()}getSafeIndices(){var o;const t=this.values,n=this.row>=0&&this.row<t.length?this.row:0,l=this.col>=0&&this.col<(((o=t[n])==null?void 0:o.length)||0)?this.col:0;return{row:n,col:l}}moveToExtreme(t){var n;switch(this.isInitialEntry&&this.handleInitialEntry(),t){case"UPWARD":this.row=this.values.length-1;break;case"DOWNWARD":this.row=0;break;case"FORWARD":{const{row:l}=this.getSafeIndices();this.col=(n=this.values[l])!=null&&n.length?this.values[l].length-1:0;break}case"BACKWARD":this.col=0;break}this.notifyStateUpdate()}moveToIndex(t,n){this.isMovable([t,n])&&(this.row=t,this.col=n,this.isInitialEntry=!1,this.notifyStateUpdate())}isMovable(t){var n,l;if(Array.isArray(t)){const[o,a]=t,{row:i}=this.getSafeIndices();return o>=0&&o<this.values.length&&a>=0&&a<(((n=this.values[i])==null?void 0:n.length)||0)}switch(t){case"UPWARD":return this.row<this.values.length-1;case"DOWNWARD":return this.row>0;case"FORWARD":{const{row:o}=this.getSafeIndices();return this.col<(((l=this.values[o])==null?void 0:l.length)||0)-1}case"BACKWARD":return this.col>0}}handleInitialEntry(){var n;this.isInitialEntry=!1,this.row=Math.max(0,Math.min(this.row,this.values.length-1));const{row:t}=this.getSafeIndices();this.col=Math.max(0,Math.min(this.col,(((n=this.values[t])==null?void 0:n.length)||0)-1))}addObserver(t){this.observers.push(t)}removeObserver(t){this.observers=this.observers.filter(n=>n!==t)}notifyStateUpdate(){const t=this.state;for(const n of this.observers)n.update(t)}notifyOutOfBounds(){this.isOutOfBounds=!0,this.notifyStateUpdate(),this.isOutOfBounds=!1}}class Hs extends yv{constructor(n){var l,o,a;super();oe(this,"id");oe(this,"type");oe(this,"title");oe(this,"xAxis");oe(this,"yAxis");oe(this,"fill");this.id=n.id,this.type=n.type,this.title=n.title??Aj,this.xAxis=((l=n.axes)==null?void 0:l.x)??_j,this.yAxis=((o=n.axes)==null?void 0:o.y)??Oj,this.fill=((a=n.axes)==null?void 0:a.fill)??Cj}dispose(){this.values.length=0,this.highlightValues&&(this.highlightValues.forEach(n=>n.forEach(l=>{(Array.isArray(l)?l:[l]).forEach(a=>a.remove())})),this.highlightValues.length=0),super.dispose()}get state(){var n;if(this.isOutOfBounds){const{row:l,col:o}=this.getSafeIndices(),a=this.values;return{empty:!0,type:"trace",traceType:this.type,audio:{size:((n=a[l])==null?void 0:n.length)||0,index:o}}}return{empty:!1,type:"trace",traceType:this.type,title:this.title,xAxis:this.xAxis,yAxis:this.yAxis,fill:this.fill,hasMultiPoints:this.hasMultiPoints(),audio:this.audio(),braille:this.braille(),text:this.text(),autoplay:this.autoplay,highlight:this.highlight()}}highlight(){var n;if(this.highlightValues===null||this.isInitialEntry){const{row:l,col:o}=this.getSafeIndices(),a=this.values;return{empty:!0,type:"trace",traceType:this.type,audio:{size:((n=a[l])==null?void 0:n.length)||0,index:o}}}return{empty:!1,elements:this.highlightValues[this.row][this.col]}}getAudioGroupIndex(){return this.values&&this.values.length>1?{groupIndex:this.row}:{}}get autoplay(){var o;const{row:n}=this.getSafeIndices(),l=((o=this.values[n])==null?void 0:o.length)||0;return{UPWARD:this.values.length,DOWNWARD:this.values.length,FORWARD:l,BACKWARD:l}}hasMultiPoints(){return!1}}var B2=(e=>(e.VERTICAL="vert",e.HORIZONTAL="horz",e))(B2||{}),P2=(e=>(e.BAR="bar",e.BOX="box",e.CANDLESTICK="candlestick",e.DODGED="dodged_bar",e.HEATMAP="heat",e.HISTOGRAM="hist",e.LINE="line",e.NORMALIZED="stacked_normalized_bar",e.SCATTER="point",e.SMOOTH="smooth",e.STACKED="stacked_bar",e))(P2||{});class $3{constructor(){}static safeMin(t){return t.length===0?1/0:Math.min(...t)}static safeMax(t){return t.length===0?-1/0:Math.max(...t)}static minFrom2D(t){const n=t.flat();return this.safeMin(n)}static maxFrom2D(t){const n=t.flat();return this.safeMax(n)}static minMax(t){if(t.length===0)return{min:1/0,max:-1/0};let n=t[0],l=t[0];for(let o=1;o<t.length;o++){const a=t[o];a<n&&(n=a),a>l&&(l=a)}return{min:n,max:l}}static minMaxFrom2D(t){const n=t.flat();return this.minMax(n)}}class Hp{constructor(){}static parse(t){const n=t.replace(/\s/g,"").toLowerCase();if(/^#(?:[a-f0-9]{3}){1,2}$/.test(n)){let o=n.substring(1).split("");return o.length===3&&(o=[o[0],o[0],o[1],o[1],o[2],o[2]]),{r:Number.parseInt(o[0]+o[1],16),g:Number.parseInt(o[2]+o[3],16),b:Number.parseInt(o[4]+o[5],16)}}const l=n.match(/^rgba?\((\d+),(\d+),(\d+)(?:,\d*(?:\.\d*)?)?\)$/);return l?{r:Number.parseInt(l[1],10),g:Number.parseInt(l[2],10),b:Number.parseInt(l[3],10)}:null}static invert(t){return{r:255-t.r,g:255-t.g,b:255-t.b}}static getContrastRatio(t,n){const l=this.calculateLuminance(t),o=this.calculateLuminance(n);return(Math.max(l,o)+.05)/(Math.min(l,o)+.05)}static calculateLuminance(t){const[n,l,o]=[t.r,t.g,t.b].map(a=>{const i=a/255;return i<=.03928?i/12.92:((i+.055)/1.055)**2.4});return .2126*n+.7152*l+.0722*o}static rgbToString(t){return`rgb(${t.r}, ${t.g}, ${t.b})`}}class w1{constructor(){}static async toBase64(t){try{const n=new XMLSerializer().serializeToString(t).replace(/>\s+</g,"> <").replace(/\s{2,}/g," ").trim(),o=`data:image/svg+xml;charset=utf-8,${encodeURIComponent(n).replace(/'/g,"%27").replace(/"/g,"%22")}`,a=await new Promise((T,u)=>{const Q=new Image;Q.onload=()=>T(Q),Q.onerror=()=>u(new Error("Failed to load SVG image")),Q.src=o}),i=document.createElement("canvas");[i.width,i.height]=[a.naturalWidth,a.naturalHeight];const s=i.getContext("2d");return s?(s.drawImage(a,0,0),i.toDataURL("image/jpeg",.92)):(console.error("Error converting SVG to Base 64: Canvas context unavailable"),"")}catch(n){return console.error("Error converting SVG to Base 64:",n instanceof Error?n.message:n),""}}static selectAllElements(t,n=!0){return Array.from(document.querySelectorAll(t)).map(l=>{if(!n)return l;const o=l.cloneNode(!0);return o.setAttribute(ve.VISIBILITY,ve.HIDDEN),l.insertAdjacentElement(ve.AFTER_END,o),o})}static selectElement(t,n=!0){const l=document.querySelector(t);if(!n)return l;const o=l==null?void 0:l.cloneNode(!0);return o==null||o.setAttribute(ve.VISIBILITY,ve.HIDDEN),l==null||l.insertAdjacentElement(ve.AFTER_END,o),o}static createEmptyElement(t="rect"){const n=document.createElementNS(this.SVG_NAMESPACE,t);return n.setAttribute(ve.FILL,ve.TRANSPARENT),n.setAttribute(ve.STROKE,ve.TRANSPARENT),n.setAttribute(ve.VISIBILITY,ve.HIDDEN),n}static createCircleElement(t,n,l){var u;const o=window.getComputedStyle(l),a=o.stroke||o.fill,i=o.strokeWidth||"2",s=Number.parseFloat(i)*2,T=document.createElementNS(this.SVG_NAMESPACE,ve.CIRCLE);return T.setAttribute(ve.CIRCLE_X,String(t)),T.setAttribute(ve.CIRCLE_Y,String(n)),T.setAttribute(ve.RADIUS,String(s)),T.setAttribute(ve.FILL,a),T.setAttribute(ve.STROKE,a),T.setAttribute(ve.STROKE_WIDTH,i),T.setAttribute(ve.VISIBILITY,ve.HIDDEN),(u=l.parentElement)==null||u.insertAdjacentElement(ve.AFTER_END,T),T}static createLineElement(t,n){const o=t.getBBox();let a,i,s,T;switch(n){case"top":[a,i,s,T]=[o.x,o.y,o.x+o.width,o.y];break;case"bottom":[a,i,s,T]=[o.x,o.y+o.height,o.x+o.width,o.y+o.height];break;case"left":[a,i,s,T]=[o.x,o.y,o.x,o.y+o.height];break;case"right":[a,i,s,T]=[o.x+o.width,o.y,o.x+o.width,o.y+o.height];break}const u=window.getComputedStyle(t),Q=document.createElementNS(this.SVG_NAMESPACE,ve.LINE);return Q.setAttribute(ve.X1,String(a)),Q.setAttribute(ve.Y1,String(i)),Q.setAttribute(ve.X2,String(s)),Q.setAttribute(ve.Y2,String(T)),Q.setAttribute(ve.STROKE,u.stroke),Q.setAttribute(ve.STROKE_WIDTH,u.strokeWidth||"2"),Q.setAttribute(ve.VISIBILITY,ve.HIDDEN),t.insertAdjacentElement(ve.AFTER_END,Q),Q}static createHighlightElement(t,n){const l=t.cloneNode(!0),o=t.tagName.toLowerCase(),a=o===ve.POLYLINE||o===ve.LINE,i=a?window.getComputedStyle(t).getPropertyValue(ve.STROKE):window.getComputedStyle(t).getPropertyValue(ve.FILL),s=this.getHighlightColor(i,n);if(l.setAttribute(ve.VISIBILITY,ve.VISIBLE),l.setAttribute(ve.STROKE,s),l.setAttribute(ve.FILL,s),l.style.fill=s,l.style.stroke=s,a){const T=window.getComputedStyle(l).getPropertyValue(ve.STROKE_WIDTH);l.setAttribute(ve.STROKE_WIDTH,`${T+2}`)}return t.insertAdjacentElement(ve.AFTER_END,l),l}static getHighlightColor(t,n){const l=Hp.parse(t);if(!l||!(Hp.getContrastRatio(l,ve.HIGHLIGHT_BASE_COLOR)<ve.HIGHLIGHT_CONTRAST_RATIO))return n;const i={...l};return l.r===l.g&&l.g===l.b?(i.r=Math.min(ve.HIGHLIGHT_MAX_COLOR,Math.floor(l.r*ve.HIGHLIGHT_COLOR_RATIO)),i.g=Math.min(ve.HIGHLIGHT_MAX_COLOR,Math.floor(l.g*ve.HIGHLIGHT_COLOR_RATIO)),i.b=Math.min(ve.HIGHLIGHT_MAX_COLOR,Math.floor(l.b*ve.HIGHLIGHT_COLOR_RATIO))):l.r>=l.g&&l.r>=l.b?i.r=Math.min(ve.HIGHLIGHT_MAX_COLOR,Math.floor(l.r*ve.HIGHLIGHT_COLOR_RATIO)):l.g>=l.r&&l.g>=l.b?i.g=Math.min(ve.HIGHLIGHT_MAX_COLOR,Math.floor(l.g*ve.HIGHLIGHT_COLOR_RATIO)):i.b=Math.min(ve.HIGHLIGHT_MAX_COLOR,Math.floor(l.b*ve.HIGHLIGHT_COLOR_RATIO)),Hp.rgbToString(i)}static getContrastingColorForElement(t){const n=window.getComputedStyle(t).fill||"rgb(255,255,255)",l=Hp.parse(n);return l?(.2126*l.r+.7152*l.g+.0722*l.b)/255>.5?"#000":"#fff":"#000"}static setSubplotHighlightCss(t,n){t.style.outline=`4px solid ${n}`,t.style.outlineOffset="3px",t.style.borderRadius="3px",t.style.overflow="visible"}static removeSubplotHighlightCss(t){t.style.removeProperty("outline"),t.style.removeProperty("outline-offset"),t.style.removeProperty("border-radius"),t.style.removeProperty("overflow")}static setSubplotHighlightSvgWithAdaptiveColor(t,n,l){const o=t.querySelector("rect, path");let a="";if(o){a=window.getComputedStyle(o).getPropertyValue("fill"),(!a||a==="none"||a==="transparent"||a==="rgba(0, 0, 0, 0)")&&(l?a=window.getComputedStyle(l).getPropertyValue("fill"):a=n);const i=this.getHighlightColor(a,n);o.setAttribute("stroke",i),o.setAttribute("stroke-width","4")}}static removeSubplotHighlightSvg(t){const n=t.querySelector("rect, path");n&&(n.removeAttribute("stroke"),n.removeAttribute("stroke-width"))}}oe(w1,"SVG_NAMESPACE","http://www.w3.org/2000/svg");class gv extends Hs{constructor(n,l){super(n);oe(this,"points");oe(this,"barValues");oe(this,"highlightValues");oe(this,"orientation");oe(this,"min");oe(this,"max");this.points=l,this.orientation=n.orientation??B2.VERTICAL,this.barValues=l.map(o=>o.map(a=>this.orientation===B2.VERTICAL?Number(a.y):Number(a.x))),this.min=this.barValues.map(o=>$3.safeMin(o)),this.max=this.barValues.map(o=>$3.safeMax(o)),this.highlightValues=this.mapToSvgElements(n.selectors)}dispose(){this.points.length=0,this.min.length=0,this.max.length=0,super.dispose()}get values(){return this.barValues}audio(){const n=this.orientation===B2.VERTICAL,l=n?this.barValues[this.row].length:this.barValues.length,o=n?this.col:this.row,a=n?this.barValues[this.row][this.col]:this.barValues[this.col][this.row];return{min:$3.safeMin(this.min),max:$3.safeMax(this.max),size:l,index:o,value:a,...this.getAudioGroupIndex()}}braille(){return{empty:!1,id:this.id,values:this.barValues,min:this.min,max:this.max,row:this.row,col:this.col}}text(){const n=this.orientation===B2.VERTICAL,l=this.points[this.row][this.col],o=n?this.xAxis:this.yAxis,a=n?l.x:l.y,i=n?this.yAxis:this.xAxis,s=n?l.y:l.x;return{main:{label:o,value:a},cross:{label:i,value:s}}}mapToSvgElements(n){if(!n)return null;const l=[w1.selectAllElements(n)];if(l.length!==this.points.length)return null;for(let o=0;o<this.points.length;o++)if(l[o].length!==this.points[o].length)return null;return l}}class wj extends gv{constructor(t){super(t,[t.data])}}const Vj="Lower outlier(s)",Dj="Upper outlier(s)",Rj="Minimum",kj="Maximum",Nj="25%",Bj="50%",Pj="75%";class jj extends Hs{constructor(n){super(n);oe(this,"points");oe(this,"boxValues");oe(this,"highlightValues");oe(this,"orientation");oe(this,"sections");oe(this,"min");oe(this,"max");this.points=n.data,this.orientation=n.orientation??B2.VERTICAL,this.sections=[Vj,Rj,Nj,Bj,Pj,kj,Dj];const l=[a=>a.lowerOutliers,a=>a.min,a=>a.q1,a=>a.q2,a=>a.q3,a=>a.max,a=>a.upperOutliers];this.orientation===B2.HORIZONTAL?this.boxValues=this.points.map(a=>l.map(i=>i(a))):this.boxValues=l.map(a=>this.points.map(i=>a(i)));const o=this.boxValues.map(a=>a.flatMap(i=>Array.isArray(i)?i:[i]));this.min=$3.minFrom2D(o),this.max=$3.maxFrom2D(o),this.row=this.boxValues.length-1,this.highlightValues=this.mapToSvgElements(n.selectors)}dispose(){this.points.length=0,this.sections.length=0,super.dispose()}moveToIndex(n,l){const o=this.orientation===B2.HORIZONTAL;n=o?n:l,l=o?l:n,super.moveToIndex(n,l)}get values(){return this.boxValues}audio(){const n=this.boxValues[this.row][this.col],l=Array.isArray(n)?n.map(o=>o-this.min):n-this.min;return{min:this.min,max:this.max,value:n,size:this.max-this.min,index:l}}braille(){const n=this.orientation===B2.HORIZONTAL,l=n?this.row:this.col,o=n?this.col:this.row;return{empty:!1,id:this.id,values:this.points,min:this.min,max:this.max,row:l,col:o}}text(){const n=this.orientation===B2.HORIZONTAL,l=n?this.points[this.row]:this.points[this.col],o=n?this.yAxis:this.xAxis,a=n?this.sections[this.col]:this.sections[this.row],i=n?this.xAxis:this.yAxis,s=this.boxValues[this.row][this.col];return{main:{label:o,value:l.fill},cross:{label:i,value:s},section:a}}mapToSvgElements(n){if(!n||n.length!==this.points.length)return null;const l=this.orientation===B2.VERTICAL,o=new Array;if(l)for(let a=0;a<this.sections.length;a++)o.push(Array.from({length:n.length}));return n.forEach((a,i)=>{const s=a.lowerOutliers.flatMap(b=>w1.selectAllElements(b)),T=a.upperOutliers.flatMap(b=>w1.selectAllElements(b)),u=w1.selectElement(a.min)??w1.createEmptyElement(),Q=w1.selectElement(a.max)??w1.createEmptyElement(),f=w1.selectElement(a.iq)??w1.createEmptyElement(),h=w1.selectElement(a.q2)??w1.createEmptyElement(),[p,g]=l?[w1.createLineElement(f,"top"),w1.createLineElement(f,"bottom")]:[w1.createLineElement(f,"left"),w1.createLineElement(f,"right")],v=[s,u,p,h,g,Q,T];l?v.forEach((b,L)=>{o[L][i]=b}):o.push(v)}),o}}class Ij{computeIndexAndSegment(t,n,l,o){return l===B2.HORIZONTAL?{pointIndex:t,segmentType:o[n]}:{pointIndex:n,segmentType:o[t]}}computeVisualCoordinates(t,n,l){return l===B2.HORIZONTAL?{row:t,col:n}:{row:n,col:t}}dispose(){}}const Fj="Trend";class zj extends Hs{constructor(n){super(n);oe(this,"candles");oe(this,"candleValues");oe(this,"orientation");oe(this,"sections",["open","high","low","close"]);oe(this,"currentSegmentType","open");oe(this,"currentPointIndex",0);oe(this,"sortedSegmentsByPoint");oe(this,"segmentPositionMaps");oe(this,"min");oe(this,"max");oe(this,"highlightValues");oe(this,"navigationService");this.navigationService=new Ij;const l=n.data;this.candles=l.map(a=>({...a,trend:a.close>a.open?"Bull":a.close<a.open?"Bear":"Neutral"})),this.orientation=n.orientation??B2.VERTICAL,this.candleValues=this.sections.map(a=>this.candles.map(i=>i[a])),this.min=$3.minFrom2D(this.candleValues),this.max=$3.maxFrom2D(this.candleValues),this.sortedSegmentsByPoint=this.precomputeSortedSegments(),this.segmentPositionMaps=this.precomputePositionMaps(),this.currentPointIndex=0,this.currentSegmentType="open",this.orientation===B2.HORIZONTAL?this.col=0:this.row=0;const o=typeof n.selectors=="string"?n.selectors:"";this.highlightValues=this.mapToSvgElements(o)}precomputeSortedSegments(){return this.candles.map(n=>this.sections.map(o=>[o,n[o]]).sort((o,a)=>o[1]-a[1]).map(o=>o[0]))}precomputePositionMaps(){return this.sortedSegmentsByPoint.map(n=>{const l=new Map;return n.forEach((o,a)=>{l.set(o,a)}),l})}getSegmentPositionInSortedOrder(n,l){return this.segmentPositionMaps[n].get(l)??0}getSegmentTypeAtSortedPosition(n,l){return this.sortedSegmentsByPoint[n][l]??"open"}updateVisualSegmentPosition(){const n=this.getSegmentPositionInSortedOrder(this.currentPointIndex,this.currentSegmentType);this.orientation===B2.HORIZONTAL?this.col=n:this.row=n}updateVisualPointPosition(){this.orientation===B2.HORIZONTAL?this.row=this.currentPointIndex:this.col=this.currentPointIndex}moveOnce(n){if(this.isInitialEntry){this.handleInitialEntry(),this.notifyStateUpdate();return}if(!this.isMovable(n)){this.notifyOutOfBounds();return}switch(n){case"UPWARD":case"DOWNWARD":{const l=this.getSegmentPositionInSortedOrder(this.currentPointIndex,this.currentSegmentType),o=n==="UPWARD"?l+1:l-1;if(o>=0&&o<this.sections.length)this.currentSegmentType=this.getSegmentTypeAtSortedPosition(this.currentPointIndex,o),this.updateVisualSegmentPosition();else{this.notifyOutOfBounds();return}break}case"FORWARD":case"BACKWARD":{const l=n==="FORWARD"?this.currentPointIndex+1:this.currentPointIndex-1;if(l>=0&&l<this.candles.length)this.currentPointIndex=l,this.updateVisualPointPosition(),this.updateVisualSegmentPosition();else{this.notifyOutOfBounds();return}break}}this.notifyStateUpdate()}moveToExtreme(n){switch(this.isInitialEntry&&this.handleInitialEntry(),n){case"UPWARD":{const l=this.sortedSegmentsByPoint[this.currentPointIndex];this.currentSegmentType=l[l.length-1],this.updateVisualSegmentPosition();break}case"DOWNWARD":{const l=this.sortedSegmentsByPoint[this.currentPointIndex];this.currentSegmentType=l[0],this.updateVisualSegmentPosition();break}case"FORWARD":{this.currentPointIndex=this.candles.length-1,this.updateVisualPointPosition(),this.updateVisualSegmentPosition();break}case"BACKWARD":{this.currentPointIndex=0,this.updateVisualPointPosition(),this.updateVisualSegmentPosition();break}}this.notifyStateUpdate()}moveToIndex(n,l){this.isInitialEntry&&this.handleInitialEntry();const{pointIndex:o,segmentType:a}=this.navigationService.computeIndexAndSegment(n,l,this.orientation,this.sections);this.currentPointIndex=o,this.currentSegmentType=a,this.row=n,this.col=l,this.updateVisualSegmentPosition(),this.updateVisualPointPosition(),this.notifyStateUpdate()}isMovable(n){if(Array.isArray(n))return super.isMovable(n);if(this.isInitialEntry)return!0;switch(n){case"UPWARD":case"DOWNWARD":{const l=this.getSegmentPositionInSortedOrder(this.currentPointIndex,this.currentSegmentType),o=n==="UPWARD"?l+1:l-1;return o>=0&&o<this.sections.length}case"FORWARD":case"BACKWARD":{const l=n==="FORWARD"?this.currentPointIndex+1:this.currentPointIndex-1;return l>=0&&l<this.candles.length}}}dispose(){this.navigationService.dispose(),this.candles.length=0,super.dispose()}get values(){return this.candleValues}audio(){const n=this.candles[this.currentPointIndex][this.currentSegmentType];return{min:this.min,max:this.max,size:this.candles.length,index:this.currentPointIndex,value:n,trend:this.candles[this.currentPointIndex].trend}}braille(){const n=this.candles.map(l=>l.trend);return{empty:!1,id:this.id,values:this.candleValues,min:this.min,max:this.max,row:this.row,col:this.col,custom:n}}mapToSvgElements(n){if(!n)return null;const l=w1.selectAllElements(n),o=[];for(let a=0;a<this.sections.length;a++){o[a]=[];for(let i=0;i<this.candles.length;i++){const s=i<l.length?i:0;o[a][i]=l[s]}}return o}text(){const n=this.candles[this.currentPointIndex],l=n[this.currentSegmentType];return{main:{label:this.orientation===B2.HORIZONTAL?this.yAxis:this.xAxis,value:n.value},cross:{label:this.orientation===B2.HORIZONTAL?this.xAxis:this.yAxis,value:l},section:this.currentSegmentType,fill:{label:Fj,value:n.trend}}}getCurrentTrend(){return this.candles[this.currentPointIndex].trend}}class qj extends Hs{constructor(n){super(n);oe(this,"heatmapValues");oe(this,"highlightValues");oe(this,"x");oe(this,"y");oe(this,"min");oe(this,"max");const l=n.data;this.x=l.x,this.y=[...l.y].reverse(),this.heatmapValues=[...l.points].reverse();const{min:o,max:a}=$3.minMaxFrom2D(this.heatmapValues);this.min=o,this.max=a,this.highlightValues=this.mapToSvgElements(n.selectors)}dispose(){this.heatmapValues.length=0,this.x.length=0,this.y.length=0,super.dispose()}get values(){return this.heatmapValues}audio(){return{min:this.min,max:this.max,size:this.heatmapValues.length,index:this.col,value:this.heatmapValues[this.row][this.col]}}braille(){return{empty:!1,id:this.id,values:this.heatmapValues,min:this.min,max:this.max,row:this.row,col:this.col}}text(){return{main:{label:this.xAxis,value:this.x[this.col]},cross:{label:this.yAxis,value:this.y[this.row]},fill:{label:this.fill,value:String(this.heatmapValues[this.row][this.col])}}}mapToSvgElements(n){if(!n)return null;const l=this.heatmapValues.length,o=this.heatmapValues[0].length,a=w1.selectAllElements(n);if(a.length===0||a.length!==l*o)return null;const i=new Array;if(a[0]instanceof SVGPathElement)for(let s=0;s<l;s++){const T=l-1-s,u=new Array;for(let Q=0;Q<o;Q++){const f=T*o+Q;u.push(a[f])}i.push(u)}else if(a[0]instanceof SVGRectElement)for(let s=0;s<l;s++){const T=new Array;for(let u=0;u<o;u++){const Q=u*l+s;T.push(a[Q])}i.push(T)}return i}}class $j extends gv{constructor(t){super(t,[t.data])}text(){const t=this.orientation===B2.VERTICAL,n=this.points[this.row][this.col],l=t?n.xMin:n.yMin,o=t?n.xMax:n.yMax;return{...super.text(),range:{min:l,max:o}}}}const Uj="Type",vv=/[ML]\s*(-?\d+(?:\.\d+)?)\s+(-?\d+(?:\.\d+)?)/g;class YH extends Hs{constructor(n){super(n);oe(this,"points");oe(this,"lineValues");oe(this,"highlightValues");oe(this,"min");oe(this,"max");this.points=n.data,this.lineValues=this.points.map(l=>l.map(o=>Number(o.y))),this.min=this.lineValues.map(l=>$3.safeMin(l)),this.max=this.lineValues.map(l=>$3.safeMax(l)),this.highlightValues=this.mapToSvgElements(n.selectors)}dispose(){this.points.length=0,this.min.length=0,this.max.length=0,super.dispose()}get values(){return this.lineValues}audio(){return{min:this.min[this.row],max:this.max[this.row],size:this.points[this.row].length,index:this.col,value:this.points[this.row][this.col].y,...this.getAudioGroupIndex()}}braille(){return{empty:!1,id:this.id,values:this.lineValues,min:this.min,max:this.max,row:this.row,col:this.col}}text(){const n=this.points[this.row][this.col],l=n.fill?{fill:{label:Uj,value:n.fill}}:{};return{main:{label:this.xAxis,value:this.points[this.row][this.col].x},cross:{label:this.yAxis,value:this.points[this.row][this.col].y},...l}}moveOnce(n){if(this.isInitialEntry){this.handleInitialEntry(),this.notifyStateUpdate();return}if(!this.isMovable(n)){this.notifyOutOfBounds();return}if(n==="UPWARD"||n==="DOWNWARD"){const l=this.findLineByXAndYDirection(n);if(l!==null&&l!==this.row){const o=this.points[this.row][this.col].x,a=this.findColumnByXValue(l,o);if(a!==-1){this.row=l,this.col=a,this.notifyStateUpdate();return}else{this.notifyOutOfBounds();return}}else{this.notifyOutOfBounds();return}}switch(n){case"FORWARD":this.col+=1;break;case"BACKWARD":this.col-=1;break}this.notifyStateUpdate()}isMovable(n){if(Array.isArray(n)){const[l,o]=n;return l>=0&&l<this.values.length&&o>=0&&o<this.values[this.row].length}switch(n){case"UPWARD":case"DOWNWARD":{const l=this.findLineByXAndYDirection(n);if(l===null)return!1;const o=this.points[this.row][this.col].x;return this.findColumnByXValue(l,o)!==-1}case"FORWARD":return this.col<this.values[this.row].length-1;case"BACKWARD":return this.col>0}}findLineByXAndYDirection(n){const l=this.points[this.row][this.col].x,o=this.points[this.row][this.col].y;let a=null,i=Number.POSITIVE_INFINITY;for(let s=0;s<this.points.length;s++){if(s===this.row)continue;const T=this.points[s].findIndex(h=>h.x===l);if(T===-1)continue;const u=this.points[s][T].y;if(!(n==="UPWARD"?u>o:u<o))continue;const f=Math.abs(u-o);f<i&&(i=f,a=s)}return a}findColumnByXValue(n,l){return this.points[n].findIndex(o=>o.x===l)}mapToSvgElements(n){if(!n||n.length!==this.lineValues.length)return null;const l=[];let o=!0;for(let a=0;a<n.length;a++){const i=w1.selectElement(n[a],!1);if(!i){l.push([]);continue}const s=[];if(i instanceof SVGPathElement){const Q=i.getAttribute(ve.D)||ve.EMPTY;vv.lastIndex=0;let f=vv.exec(Q);for(;f!==null;)s.push({x:Number.parseFloat(f[1]),y:Number.parseFloat(f[2])}),f=vv.exec(Q)}else if(i instanceof SVGPolylineElement){const f=(i.getAttribute(ve.POINTS)||ve.EMPTY).split(/\s+/).filter(Boolean);for(const h of f){const[p,g]=h.split(ve.COMMA);s.push({x:Number.parseFloat(p),y:Number.parseFloat(g)})}}if(s.length!==this.lineValues[a].length)if(s.length<this.lineValues[a].length)for(;s.length<this.lineValues[a].length;)s.push({x:Number.NaN,y:Number.NaN});else s.length>this.lineValues[a].length&&(s.length=this.lineValues[a].length);const T=[];let u=!1;for(const Q of s){if(Number.isNaN(Q.x)||Number.isNaN(Q.y)){u=!0;break}T.push(w1.createCircleElement(Q.x,Q.y,i))}if(u){l.push([]);continue}T.length>0&&(o=!1),l.push(T)}return o?null:l}}class Gj extends Hs{constructor(n){super(n);oe(this,"mode");oe(this,"xPoints");oe(this,"yPoints");oe(this,"xValues");oe(this,"yValues");oe(this,"highlightXValues");oe(this,"highlightYValues");oe(this,"minX");oe(this,"maxX");oe(this,"minY");oe(this,"maxY");this.mode="column";const l=n.data,o=[...l].sort((T,u)=>T.x-u.x||T.y-u.y);this.xPoints=new Array;let a=null;for(const T of o)(!a||a.x!==T.x)&&(a={x:T.x,y:[]},this.xPoints.push(a)),a.y.push(T.y);const i=[...l].sort((T,u)=>T.y-u.y||T.x-u.x);this.yPoints=new Array;let s=null;for(const T of i)(!s||s.y!==T.y)&&(s={y:T.y,x:[]},this.yPoints.push(s)),s.x.push(T.x);this.xValues=this.xPoints.map(T=>T.x),this.yValues=this.yPoints.map(T=>T.y),this.minX=$3.safeMin(this.xValues),this.maxX=$3.safeMax(this.xValues),this.minY=$3.safeMin(this.yValues),this.maxY=$3.safeMax(this.yValues),[this.highlightXValues,this.highlightYValues]=this.mapToSvgElements(n.selectors)}dispose(){this.xPoints.length=0,this.yPoints.length=0,this.xValues.length=0,this.yValues.length=0,this.highlightXValues&&(this.highlightXValues.forEach(n=>n.forEach(l=>l.remove())),this.highlightXValues.length=0),this.highlightYValues&&(this.highlightYValues.forEach(n=>n.forEach(l=>l.remove())),this.highlightYValues.length=0),super.dispose()}get values(){const n=[this.xValues,this.yValues];return this.mode==="column"?this.row!==0&&(this.row=0):(this.row<0||this.row>=this.yPoints.length)&&(this.row=0),n}get highlightValues(){return this.mode==="column"?this.highlightXValues:this.highlightYValues}getAudioGroupIndex(){return{}}audio(){if(this.mode==="column"){const n=this.xPoints[this.col];return{min:this.minY,max:this.maxY,size:n.y.length,index:this.col,value:n.y,...this.getAudioGroupIndex()}}else{const n=this.yPoints[this.row];return{min:this.minX,max:this.maxX,size:n.x.length,index:this.row,value:n.x,...this.getAudioGroupIndex()}}}braille(){return{empty:!0,type:"trace",traceType:this.type,audio:{index:0,size:0,groupIndex:0}}}text(){if(this.mode==="column"){const n=this.xPoints[this.col];return{main:{label:this.xAxis,value:n.x},cross:{label:this.yAxis,value:n.y}}}else{const n=this.yPoints[this.row];return{main:{label:this.yAxis,value:n.y},cross:{label:this.xAxis,value:n.x}}}}get autoplay(){return{UPWARD:this.yValues.length,DOWNWARD:this.yValues.length,FORWARD:this.xValues.length,BACKWARD:this.xValues.length}}highlight(){if(this.highlightValues===null)return{empty:!0,type:"trace",traceType:this.type,audio:{index:0,size:0,groupIndex:0}};const n=this.mode==="column"?this.col<this.highlightValues.length?this.highlightValues[this.col]:null:this.row<this.highlightValues.length?this.highlightValues[this.row]:null;return n?{empty:!1,elements:n}:{empty:!0,type:"trace",traceType:this.type,audio:{index:0,size:0,groupIndex:0}}}hasMultiPoints(){return!0}handleInitialEntry(){this.isInitialEntry=!1,this.row=0,this.col=0,this.mode="column"}toggleNavigation(){if(this.mode==="column"){const n=this.xPoints[this.col],l=n.y[Math.floor(n.y.length/2)],o=this.yValues.indexOf(l);o===-1||o>=this.yPoints.length?this.row=0:this.row=o,this.mode="row"}else{const n=this.yPoints[this.row],l=n.x[Math.floor(n.x.length/2)],o=this.xValues.indexOf(l);o===-1||o>=this.xPoints.length?this.col=0:this.col=o,this.mode="column",this.row=0}}moveOnce(n){if(this.isInitialEntry){this.handleInitialEntry(),this.notifyStateUpdate();return}if(!this.isMovable(n)){this.notifyOutOfBounds();return}if(this.mode==="column")switch(n){case"FORWARD":this.col++;break;case"BACKWARD":this.col--;break;case"UPWARD":case"DOWNWARD":{this.toggleNavigation();break}}else switch(n){case"UPWARD":this.row++;break;case"DOWNWARD":this.row--;break;case"FORWARD":case"BACKWARD":{this.toggleNavigation();break}}this.notifyStateUpdate()}moveToExtreme(n){if(this.isInitialEntry&&this.handleInitialEntry(),this.mode==="column")switch(n){case"UPWARD":this.toggleNavigation(),this.row=this.yPoints.length-1;break;case"DOWNWARD":this.toggleNavigation(),this.row=0;break;case"FORWARD":this.col=this.xPoints.length-1;break;case"BACKWARD":this.col=0;break}else switch(n){case"UPWARD":this.row=this.yPoints.length-1;break;case"DOWNWARD":this.row=0;break;case"FORWARD":this.toggleNavigation(),this.col=this.xPoints.length-1;break;case"BACKWARD":this.toggleNavigation(),this.col=0;break}this.notifyStateUpdate()}isMovable(n){if(Array.isArray(n))return!1;if(this.mode==="column")switch(n){case"FORWARD":return this.col<this.xPoints.length-1;case"BACKWARD":return this.col>0;case"UPWARD":case"DOWNWARD":return!0}else switch(n){case"UPWARD":return this.row<this.yPoints.length-1;case"DOWNWARD":return this.row>0;case"FORWARD":case"BACKWARD":return!0}}mapToSvgElements(n){if(!n)return[null,null];const l=w1.selectAllElements(n);if(l.length===0)return[null,null];const o=new Map,a=new Map;l.forEach(T=>{const u=Number.parseFloat(T.getAttribute("x")||""),Q=Number.parseFloat(T.getAttribute("y")||"");Number.isNaN(u)||(o.has(u)||o.set(u,[]),o.get(u).push(T)),Number.isNaN(Q)||(a.has(Q)||a.set(Q,[]),a.get(Q).push(T))});const i=Array.from(o.entries()).sort(([T],[u])=>T-u).map(([T,u])=>u),s=Array.from(a.entries()).sort(([T],[u])=>u-T).map(([T,u])=>u);return[i,s]}}const KH="Sum",Zj="Level",Xj="undefined";class Wj extends gv{constructor(t){super(t,t.data),this.createSummaryLevel()}createSummaryLevel(){const t=new Array,n=new Array;for(let a=0;a<this.barValues[0].length;a++){const i=this.barValues.reduce((T,u)=>T+u[a],0);t.push(i);const s=this.orientation===B2.VERTICAL?{x:this.points[0][a].x,y:i,fill:KH}:{x:i,y:this.points[0][a].y,fill:KH};n.push(s)}this.points.push(n),this.barValues.push(t);const{min:l,max:o}=$3.minMax(t);this.min.push(l),this.max.push(o)}text(){return{...super.text(),fill:{label:Zj,value:this.points[this.row][this.col].fill??Xj}}}highlight(){return this.highlightValues===null||this.row===this.barValues.length-1?{empty:!0,type:"trace",traceType:this.type,audio:{index:0,size:0,groupIndex:0}}:{empty:!1,elements:this.highlightValues[this.row][this.col]}}hasMultiPoints(){return!0}mapToSvgElements(t){if(!t)return new Array;const n=w1.selectAllElements(t);if(n.length===0)return new Array;const l=new Array;if(n[0]instanceof SVGPathElement)for(let o=0,a=0;o<this.barValues.length;o++){const i=new Array;for(let s=0;s<this.barValues[o].length;s++){if(a>=n.length)return new Array;this.barValues[o][s]===0?i.push(w1.createEmptyElement()):i.push(n[a++])}l.push(i)}else if(n[0]instanceof SVGRectElement){for(let o=0;o<this.barValues.length;o++)l.push(new Array);for(let o=0,a=0;o<this.barValues[0].length;o++)for(let i=this.barValues.length-1;i>=0;i--){if(a>=n.length)return new Array;this.barValues[i][o]===0?l[i].push(w1.createEmptyElement()):l[i].push(n[a++])}}return l}}class JH extends YH{constructor(t){super(t)}audio(){const t=this.lineValues[this.row],n=this.col,l=s=>t[Math.max(0,Math.min(s,t.length-1))],o=n>0?l(n-1):l(n),a=l(n),i=n<t.length-1?l(n+1):l(n);return{min:this.min[this.row],max:this.max[this.row],size:t.length,index:n,value:[o,a,i],isContinuous:!0,...this.getAudioGroupIndex()}}}class Yj extends JH{constructor(t){super(t)}mapToSvgElements(t){var o;if(!t||t.length!==this.lineValues.length)return null;const n=[];let l=!0;for(let a=0;a<t.length;a++){const i=w1.selectElement(t[a],!1);if(!i){n.push([]);continue}const s=(o=this.points)==null?void 0:o[a],T=[];for(const u of s)typeof u.svg_x=="number"&&typeof u.svg_y=="number"&&T.push(w1.createCircleElement(u.svg_x,u.svg_y,i));T.length>0&&(l=!1),n.push(T)}return l?null:n}}function Kj(e){return typeof(e==null?void 0:e.svg_x)=="number"&&typeof(e==null?void 0:e.svg_y)=="number"}function Jj(e){return Array.isArray(e.data)&&e.data.length>0&&Array.isArray(e.data[0])&&Kj(e.data[0][0])?new Yj(e):new JH(e)}class eI{static create(t){switch(t.type){case P2.BAR:return new wj(t);case P2.BOX:return new jj(t);case P2.CANDLESTICK:return new zj(t);case P2.HEATMAP:return new qj(t);case P2.HISTOGRAM:return new $j(t);case P2.LINE:return new YH(t);case P2.SCATTER:return new Gj(t);case P2.SMOOTH:return Jj(t);case P2.DODGED:case P2.NORMALIZED:case P2.STACKED:return new Wj(t);default:throw new Error(`Invalid trace type: ${t.type}`)}}}const tI="MAIDR Plot",nI="unavailable",rI="unavailable";class iI extends yv{constructor(n){super();oe(this,"id");oe(this,"title");oe(this,"subtitle");oe(this,"caption");oe(this,"subplots");oe(this,"size");this.id=n.id,this.title=n.title??tI,this.subtitle=n.subtitle??nI,this.caption=n.caption??rI;const l=n.subplots;this.subplots=l.map(o=>o.map(a=>new aI(a))),this.size=this.subplots.reduce((o,a)=>o+a.length,0)}dispose(){this.subplots.forEach(n=>n.forEach(l=>l.dispose())),this.subplots.length=0,super.dispose()}get values(){return this.subplots}get activeSubplot(){return this.subplots[this.row][this.col]}get state(){if(this.isOutOfBounds)return{empty:!0,type:"figure"};const n=this.col+1+this.subplots.slice(0,this.row).reduce((o,a)=>o+a.length,0),l=this.activeSubplot;return{empty:!1,type:"figure",title:this.title,subtitle:this.subtitle,caption:this.caption,size:this.size,index:n,subplot:l.getStateWithFigurePosition(this.row,this.col),traceTypes:l.traceTypes,highlight:this.highlight()}}highlight(){var l;if(document.querySelectorAll('g[id^="axes_"]').length<=1)return{empty:!0,type:"trace",audio:{size:this.values[this.row].length,index:this.col}};try{const o=((l=this.subplots[0])==null?void 0:l.length)||1,a=this.row*o+this.col+1,i=`g[id="axes_${a}"]`,s=document.querySelector(i);if(s)return{empty:!1,elements:s};const T=document.querySelectorAll('g[id^="axes_"]');if(T.length>0&&a-1<T.length)return{empty:!1,elements:T[a-1]}}catch{return{empty:!0,type:"trace",audio:{size:this.values[this.row].length,index:this.col}}}return{empty:!0,type:"trace",audio:{size:this.values[this.row].length,index:this.col}}}}class aI extends yv{constructor(n){super();oe(this,"traces");oe(this,"traceTypes");oe(this,"size");this.isInitialEntry=!1;const l=n.layers;this.size=l.length,this.traces=l.map(o=>[eI.create(o)]),this.traceTypes=this.traces.flat().map(o=>{const a=o.state;return a.empty?ve.EMPTY:a.traceType})}dispose(){this.traces.forEach(n=>n.forEach(l=>l.dispose())),this.traces.length=0,super.dispose()}get values(){return this.traces}get activeTrace(){return this.traces[this.row][this.col]}highlight(){return{empty:!0,type:"trace",audio:{size:this.values[this.row].length,index:this.col}}}get state(){return this.isOutOfBounds?{empty:!0,type:"subplot"}:{empty:!1,type:"subplot",size:this.size,index:this.row+1,trace:this.activeTrace.state,highlight:this.highlight()}}getStateWithFigurePosition(n,l){return this.state}}const U3={SINE_BASIC:0,SQUARE_BASIC:1,SAWTOOTH_BASIC:2,TRIANGLE_BASIC:3,SAWTOOTH_DARK:4,SINE_HARMONIC:5,TRIANGLE_HARMONIC:6,SQUARE_HARMONIC:7,TRIANGLE_MELLOW:8,SINE_SUBTLE:9,SAWTOOTH_SOFT:10},s9=class s9{constructor(){oe(this,"basePalette");oe(this,"extendedPalette");this.basePalette=[{index:U3.SINE_BASIC,waveType:"sine",timbreModulation:{attack:.01,decay:.1,sustain:.8,release:.2}},{index:U3.SQUARE_BASIC,waveType:"square",timbreModulation:{attack:.005,decay:.05,sustain:.7,release:.15}},{index:U3.SAWTOOTH_BASIC,waveType:"sawtooth",timbreModulation:{attack:.02,decay:.08,sustain:.6,release:.25}},{index:U3.TRIANGLE_BASIC,waveType:"triangle",timbreModulation:{attack:.015,decay:.12,sustain:.9,release:.18}},{index:U3.SAWTOOTH_DARK,waveType:"sawtooth",harmonicMix:{fundamental:1,harmonics:[{frequency:2,amplitude:.2},{frequency:3,amplitude:.1},{frequency:5,amplitude:.05}]},timbreModulation:{attack:.005,decay:.3,sustain:.4,release:.5}},{index:U3.SINE_HARMONIC,waveType:"sine",harmonicMix:{fundamental:1,harmonics:[{frequency:2,amplitude:.15},{frequency:4,amplitude:.05}]},timbreModulation:{attack:.02,decay:.2,sustain:.6,release:.3}},{index:U3.TRIANGLE_HARMONIC,waveType:"triangle",harmonicMix:{fundamental:1,harmonics:[{frequency:3,amplitude:.2},{frequency:6,amplitude:.1}]},timbreModulation:{attack:.01,decay:.1,sustain:.8,release:.2}},{index:U3.SQUARE_HARMONIC,waveType:"square",harmonicMix:{fundamental:1,harmonics:[{frequency:3,amplitude:.1},{frequency:7,amplitude:.05}]},timbreModulation:{attack:.005,decay:.05,sustain:.5,release:.1}},{index:U3.TRIANGLE_MELLOW,waveType:"triangle",harmonicMix:{fundamental:1,harmonics:[{frequency:2.5,amplitude:.15},{frequency:4.5,amplitude:.08}]},timbreModulation:{attack:.01,decay:.4,sustain:.3,release:.5}},{index:U3.SINE_SUBTLE,waveType:"sine",harmonicMix:{fundamental:1,harmonics:[{frequency:2,amplitude:.1},{frequency:3,amplitude:.05}]},timbreModulation:{attack:.02,decay:.1,sustain:.9,release:.15}},{index:U3.SAWTOOTH_SOFT,waveType:"sawtooth",harmonicMix:{fundamental:1,harmonics:[{frequency:2,amplitude:.05},{frequency:6,amplitude:.02}]},timbreModulation:{attack:.005,decay:.4,sustain:.2,release:.6}}],this.validateBasePalette(),this.extendedPalette=new Map,this.generateExtendedPalette()}dispose(){this.extendedPalette.clear()}getPaletteEntry(t){if(t<this.basePalette.length)return this.basePalette[t];const n=this.extendedPalette.get(t);if(n)return n;const l=this.generateExtendedEntry(t);return this.extendedPalette.set(t,l),l}get basePaletteSize(){return this.basePalette.length}getCandlestickGroupIndex(t){switch(t){case"Bull":return U3.SINE_BASIC;case"Bear":return U3.SAWTOOTH_SOFT;case"Neutral":return U3.TRIANGLE_BASIC;default:return U3.SINE_BASIC}}generateExtendedPalette(){[{index:this.basePalette.length,waveType:"sine",harmonicMix:{fundamental:1,harmonics:[{frequency:2,amplitude:.3},{frequency:3,amplitude:.15}]},timbreModulation:{attack:.02,decay:.15,sustain:.7,release:.3}},{index:this.basePalette.length+1,waveType:"square",harmonicMix:{fundamental:1,harmonics:[{frequency:1.5,amplitude:.4},{frequency:2.5,amplitude:.2}]},timbreModulation:{attack:.01,decay:.08,sustain:.6,release:.4}},{index:this.basePalette.length+2,waveType:"sawtooth",harmonicMix:{fundamental:1,harmonics:[{frequency:1.25,amplitude:.35},{frequency:2,amplitude:.25},{frequency:3,amplitude:.1}]},timbreModulation:{attack:.03,decay:.2,sustain:.5,release:.35}},{index:this.basePalette.length+3,waveType:"triangle",harmonicMix:{fundamental:1,harmonics:[{frequency:.5,amplitude:.2},{frequency:4,amplitude:.15}]},timbreModulation:{attack:.025,decay:.18,sustain:.8,release:.25}}].forEach((n,l)=>{this.extendedPalette.set(this.basePalette.length+l,n)})}generateExtendedEntry(t){const n=t%this.basePalette.length,l=this.basePalette[n],o=Math.floor((t-this.basePalette.length)/this.basePalette.length),a=this.generateHarmonics(o),i=this.generateTimbreModulation(o,l.timbreModulation);return{index:t,waveType:l.waveType,harmonicMix:{fundamental:1,harmonics:a},timbreModulation:i}}generateHarmonics(t){const n=[],l=s9.MIN_HARMONICS+t%s9.HARMONIC_VARIATION;for(let o=0;o<l;o++){const a=1+(o+1)*(.5+t*.3%1),i=.4/(o+1)*(1-t*.1%.3);n.push({frequency:a,amplitude:i})}return n}generateTimbreModulation(t,n){const l=1+t*.2%.5;return{attack:Math.max(.005,Math.min(.05,n.attack*l)),decay:Math.max(.05,Math.min(.3,n.decay*l)),sustain:Math.max(.4,Math.min(.9,n.sustain+t*.1%.2)),release:Math.max(.1,Math.min(.5,n.release*l))}}validateBasePalette(){this.basePalette.forEach((t,n)=>{if(t.index!==n)throw new Error(`AudioPalette validation error: Entry at array position ${n} has index ${t.index}. Array position must match the index property to prevent audio palette mismatches.`)})}};oe(s9,"MIN_HARMONICS",2),oe(s9,"HARMONIC_VARIATION",3);let Lv=s9;const oI=100,lI=440,sI=880,eE=.3,xv=U3.SINE_BASIC;class uI{constructor(t,n,l){oe(this,"notification");oe(this,"audioPalette");oe(this,"settings");oe(this,"isCombinedAudio");oe(this,"mode");oe(this,"activeAudioIds");oe(this,"audioContext");oe(this,"compressor");oe(this,"currentVolume");oe(this,"currentMinFrequency");oe(this,"currentMaxFrequency");this.notification=t,this.audioPalette=new Lv,this.settings=l,this.isCombinedAudio=!1,this.mode="on",this.updateMode(n),this.activeAudioIds=new Map,this.audioContext=new AudioContext,this.compressor=this.initCompressor();const o=this.settings.loadSettings();this.currentVolume=o.general.volume/100,this.currentMinFrequency=o.general.minFrequency,this.currentMaxFrequency=o.general.maxFrequency,this.settings.addObserver(this)}dispose(){this.stopAll(),this.audioPalette.dispose(),this.audioContext.state!=="closed"&&(this.compressor.disconnect(),this.audioContext.close()),this.settings.removeObserver(this)}update(t){"general"in t?this.onSettingsChange(t):this.onStateChange(t)}onSettingsChange(t){this.currentVolume=t.general.volume/100,this.currentMinFrequency=t.general.minFrequency,this.currentMaxFrequency=t.general.maxFrequency}onStateChange(t){if(this.updateMode(t),this.mode==="off"||t.type!=="trace")return;if(t.empty){this.playEmptyTone(t.audio.size,t.audio.index);return}const n=t.audio;let l=n.groupIndex;n.trend&&l===void 0&&(l=this.audioPalette.getCandlestickGroupIndex(n.trend));const a=l!==void 0?this.audioPalette.getPaletteEntry(l):void 0;if(n.isContinuous)this.playSmooth(n.value,n.min,n.max,n.size,Array.isArray(n.index)?n.index[0]:n.index,a);else if(Array.isArray(n.value)){const i=n.value;if(i.length===0){this.playZeroTone();return}let s=0;const T=this.mode==="on"?50:0,u=new Array,Q=()=>{if(s<i.length){const f=Array.isArray(n.index)?n.index[s]:n.index;this.playTone(n.min,n.max,i[s++],n.size,f,a),u.push(setTimeout(Q,T))}else this.stop(u)};Q()}else{const i=n.value;if(i===0)this.playZeroTone();else{const s=Array.isArray(n.index)?n.index[0]:n.index;this.playTone(n.min,n.max,i,n.size,s,a)}}}getVolume(){return Math.min(Math.max(this.currentVolume,0),1)}getFrequencyRange(){return{min:this.currentMinFrequency,max:this.currentMaxFrequency}}initCompressor(){const t=this.audioContext.createDynamicsCompressor();t.threshold.value=-50,t.knee.value=40,t.ratio.value=12,t.attack.value=0,t.release.value=.25;const n=this.audioContext.createGain();return n.gain.value=.5,t.connect(n),n.connect(this.audioContext.destination),t}updateMode(t){if(t.empty||t.type==="figure")return;const n=t.type==="subplot"?t.trace:t;n.empty||n.hasMultiPoints===this.isCombinedAudio||(this.isCombinedAudio=n.hasMultiPoints,this.mode!=="off"&&(this.isCombinedAudio?this.mode="combined":this.mode="on"))}playTone(t,n,l,o,a,i){const s={min:t,max:n},T=this.getFrequencyRange(),u=this.interpolate(l,s,T),Q={min:0,max:o},f={min:-1,max:1},h=this.clamp(this.interpolate(a,Q,f),-1,1);return this.playOscillator(u,h,i)}createOscillators(t,n){const l=[],o=this.audioContext.createOscillator();if(o.type=t.waveType,o.frequency.value=n,l.push(o),t.harmonicMix)for(const a of t.harmonicMix.harmonics){const i=this.audioContext.createOscillator();i.type=t.waveType,i.frequency.value=a.frequency*n,l.push(i)}return l}createGainNodes(t,n,l,o){const a=[],i=this.audioContext.currentTime,s=this.getVolume();for(let T=0;T<t.length;T++){const u=this.audioContext.createGain();let Q=s;if(T===0)n.harmonicMix&&(Q*=n.harmonicMix.fundamental);else{const h=n.harmonicMix.harmonics[T-1];Q*=h.amplitude}const f=this.createAdsrEnvelope(u,n,Q,i,o);f!==null&&u.gain.setValueCurveAtTime(f,i,o),a.push(u)}return a}playOscillator(t,n=0,l){const o=eE,a=this.getVolume();l||(l=this.audioPalette.getPaletteEntry(0));const i=this.createOscillators(l,t),s=this.createGainNodes(i,l,a,o),T=this.audioContext.createStereoPanner();T.pan.value=n;const u=new PannerNode(this.audioContext,{distanceModel:"linear",positionX:0,positionY:0,positionZ:0,orientationX:0,orientationY:0,orientationZ:-1,refDistance:1,maxDistance:1e4,rolloffFactor:10,coneInnerAngle:40,coneOuterAngle:50,coneOuterGain:.4});for(let h=0;h<i.length;h++)i[h].connect(s[h]),s[h].connect(T);T.connect(u),u.connect(this.compressor),i.forEach(h=>h.start());const Q=h=>{u.disconnect(this.compressor),T.disconnect(u);for(let p=0;p<i.length;p++)s[p].disconnect(T),i[p].stop(),i[p].disconnect(s[p]);this.activeAudioIds.delete(h)},f=setTimeout(()=>Q(f),o*1e3*2);return this.activeAudioIds.set(f,i),f}createAdsrEnvelope(t,n,l,o,a){if(n!=null&&n.timbreModulation){const{attack:i,decay:s,sustain:T,release:u}=n.timbreModulation,Q=a*i,f=a*s,h=a*u,p=a-Q-f-h;return t.gain.setValueAtTime(1e-4*l,o),t.gain.linearRampToValueAtTime(l,o+Q),t.gain.linearRampToValueAtTime(T*l,o+Q+f),p>0&&t.gain.setValueAtTime(T*l,o+Q+f+p),t.gain.linearRampToValueAtTime(1e-4*l,o+a),null}else return[.5*l,l,.5*l,.5*l,.5*l,.1*l,1e-4*l]}playSmooth(t,n,l,o,a,i){const s=this.audioContext,T=s.currentTime,u=eE,Q=this.getFrequencyRange(),f=this.getVolume(),h=(i==null?void 0:i.waveType)||"sine",p=t.map(O=>this.interpolate(O,{min:n,max:l},Q));p.length<2&&p.push(p[0]);const g=this.clamp(this.interpolate(a,{min:0,max:o-1},{min:-1,max:1}),-1,1),v=s.createOscillator();v.type=h,v.frequency.setValueCurveAtTime(p,T,u);const b=s.createGain(),L=this.createAdsrEnvelope(b,i,f,T,u);L!==null&&b.gain.setValueCurveAtTime(L,T,u);const S=s.createStereoPanner();S.pan.value=g,v.connect(b),b.connect(S),S.connect(this.compressor),v.start(T),v.stop(T+u);const _=setTimeout(()=>{v.disconnect(),b.disconnect(),S.disconnect(),this.activeAudioIds.delete(_)},u*1e3*2);this.activeAudioIds.set(_,[v])}playEmptyTone(t,n){const l=this.audioContext,o=l.currentTime,a=.2,i=this.getVolume(),s=[500,1e3,1500,2100,2700],T=[1,.6,.4,.2,.1],u=l.createGain();u.gain.setValueAtTime(.3*i,o),u.gain.exponentialRampToValueAtTime(.01*i,o+a),u.connect(this.compressor);const Q={min:0,max:t},f={min:-1,max:1},h=this.clamp(this.interpolate(n,Q,f),-1,1),p=[];for(let b=0;b<s.length;b++){const L=l.createOscillator(),S=l.createGain(),_=this.audioContext.createStereoPanner(),O=new PannerNode(this.audioContext,{distanceModel:"linear",positionX:0,positionY:0,positionZ:0,orientationX:0,orientationY:0,orientationZ:-1,refDistance:1,maxDistance:1e4,rolloffFactor:10,coneInnerAngle:40,coneOuterAngle:50,coneOuterGain:.4});L.frequency.value=s[b],L.type="sine",S.gain.setValueAtTime(T[b]*i,o),S.gain.exponentialRampToValueAtTime(.001*i,o+a),_.pan.value=h,L.connect(S),S.connect(_),_.connect(O),O.connect(u),L.start(o),L.stop(o+a),p.push(L)}const g=b=>{u.disconnect(),p.forEach(L=>{L.disconnect()}),this.activeAudioIds.delete(b)},v=setTimeout(()=>g(v),a*1e3*2);return this.activeAudioIds.set(v,p),v}playZeroTone(){return this.playOscillator(oI,0,{index:xv,waveType:"triangle"})}playWaitingTone(){return setInterval(()=>this.playOscillator(lI,0,{index:xv,waveType:"sine"}),1e3)}playCompleteTone(){return this.playOscillator(sI,0,{index:xv,waveType:"sine"})}interpolate(t,n,l){return n.min===0&&n.max===0?0:(t-n.min)/(n.max-n.min)*(l.max-l.min)+l.min}clamp(t,n,l){return Math.max(n,Math.min(t,l))}toggle(){switch(this.mode){case"off":this.mode=this.isCombinedAudio?"combined":"on";break;case"on":this.mode="off";break;case"combined":this.mode="on";break}const n=`Sound is ${this.isCombinedAudio&&this.mode==="on"?"separate":this.mode}`;this.notification.notify(n)}stop(t){(Array.isArray(t)?t:[t]).forEach(l=>{const o=this.activeAudioIds.get(l);if(!o){clearInterval(l);return}o.forEach(a=>{a==null||a.disconnect(),a==null||a.stop()}),clearTimeout(l),this.activeAudioIds.delete(l)})}stopAll(){this.activeAudioIds.entries().forEach(([t,n])=>{clearTimeout(t),n.forEach(l=>{l.disconnect(),l.stop()})}),this.activeAudioIds.clear()}}const cI=250,TI=50,QI=500,fI=20;class dI{constructor(t,n,l){oe(this,"context");oe(this,"notification");oe(this,"settings");oe(this,"autoplayId");oe(this,"currentDirection");oe(this,"userSpeed");oe(this,"defaultSpeed");oe(this,"minSpeed");oe(this,"maxSpeed");oe(this,"autoplayRate");oe(this,"interval");oe(this,"currentDuration");oe(this,"onChangeEmitter");oe(this,"onChange");this.notification=n,this.context=t,this.settings=l,this.autoplayId=null,this.currentDirection=null,this.userSpeed=null,this.defaultSpeed=cI,this.minSpeed=TI,this.maxSpeed=QI,this.autoplayRate=this.defaultSpeed,this.interval=fI,this.currentDuration=this.settings.loadSettings().general.autoplayDuration,this.onChangeEmitter=new bs,this.onChange=this.onChangeEmitter.event,this.settings.addObserver(this)}dispose(){this.stop(),this.onChangeEmitter.dispose(),this.settings.removeObserver(this)}update(t){this.updateSettings(t)}updateSettings(t){this.currentDuration=t.general.autoplayDuration,this.currentDirection&&this.restart()}start(t,n){this.stop(),this.onChangeEmitter.fire({type:"start"}),this.autoplayRate=this.getAutoplayRate(t,n),this.currentDirection=t,this.autoplayId=setInterval(()=>{this.context.isMovable(t)?this.context.moveOnce(t):this.stop()},this.autoplayRate)}stop(){this.autoplayId&&clearInterval(this.autoplayId),this.autoplayId=null,this.currentDirection=null,this.onChangeEmitter.fire({type:"stop"})}restart(){this.autoplayId&&clearInterval(this.autoplayId),this.currentDirection&&this.start(this.currentDirection)}speedUp(){const t=this.userSpeed??this.autoplayRate;t-this.interval>this.minSpeed?(this.userSpeed=t-this.interval,this.autoplayRate=this.userSpeed,this.restart(),this.notification.notify("Speed up")):this.notification.notify("Max speed")}speedDown(){const t=this.userSpeed??this.autoplayRate;t+this.interval<=this.maxSpeed?(this.userSpeed=t+this.interval,this.autoplayRate=this.userSpeed,this.restart(),this.notification.notify("Speed down")):this.notification.notify("Min speed")}resetSpeed(){this.userSpeed=null,this.autoplayRate=this.defaultSpeed,this.restart(),this.notification.notify("Reset speed")}getAutoplayRate(t,n){if(this.userSpeed!==null)return this.userSpeed;if(n&&!n.empty){const l=Math.ceil(this.currentDuration/n.autoplay[t]);return this.defaultSpeed=l,this.minSpeed=Math.min(this.minSpeed,l),l}return this.defaultSpeed}}const tE=32;class Cc{encode(t){const n=new Array,l=new Array,o=new Array;for(let a=0;a<t.values.length;a++){l.push(new Array);const i=(t.max[a]-t.min[a])/4,s=t.min[a]+i,T=s+i,u=T+i;for(let Q=0;Q<t.values[a].length;Q++)t.values[a][Q]===0?n.push(" "):t.values[a][Q]<=s||t.values[a][Q]<=T?n.push("⠤"):t.values[a][Q]<=u?n.push("⠒"):n.push("⠉"),l[a].push(o.length),o.push({row:a,col:Q});n.push(ve.NEW_LINE),l[a].push(o.length),o.push({row:a,col:t.values[a].length})}return{value:n.join(ve.EMPTY),cellToIndex:l,indexToCell:o}}}class hI{constructor(){oe(this,"GLOBAL_MIN","globalMin");oe(this,"GLOBAL_MAX","globalMax");oe(this,"BLANK","blank");oe(this,"LOWER_OUTLIER","lowerOutlier");oe(this,"UPPER_OUTLIER","upperOutlier");oe(this,"MIN","min");oe(this,"MAX","max");oe(this,"Q1","q1");oe(this,"Q2","q2");oe(this,"Q3","q3")}encode(t,n=tE){const l=new Array,o=new Array,a=new Array;for(let i=0;i<t.values.length;i++){const s=t.values[i],T=[{type:this.GLOBAL_MIN,value:t.min},...s.lowerOutliers.map(V=>({type:this.LOWER_OUTLIER,value:V})),{type:this.MIN,value:s.min},{type:this.Q1,value:s.q1},{type:this.Q2,value:s.q2},{type:this.Q3,value:s.q3},{type:this.MAX,value:s.max},...s.upperOutliers.map(V=>({type:this.UPPER_OUTLIER,value:V})),{type:this.GLOBAL_MAX,value:t.max}],u=new Array;let Q=!0;for(let V=0;V<T.length-1;V++){const k=T[V],B=T[V+1],R=Math.abs(Q?B.value-k.value:k.value-T[V-1].value);k.type===this.LOWER_OUTLIER||k.type===this.UPPER_OUTLIER?(u.push({type:k.type,length:0,numChars:1}),u.push({type:this.BLANK,length:R,numChars:0})):k.type===this.Q2?(Q=!1,u.push({type:this.Q2,length:0,numChars:2})):k.type===this.GLOBAL_MIN||k.type===this.GLOBAL_MAX?u.push({type:this.BLANK,length:R,numChars:0}):u.push({type:k.type,length:R,numChars:1})}let f=u.reduce((V,k)=>V+(k.numChars>0?k.numChars:0),0),[h,p,g,v]=[-1,-1,-1,-1];for(let V=0;V<u.length;V++)u[V].type===this.MIN&&u[V].length>0&&(h=V),u[V].type===this.MAX&&u[V].length>0&&(p=V),u[V].type===this.Q1&&(g=V),u[V].type===this.Q3&&(v=V);h!==-1&&p!==-1&&u[h].length!==u[p].length&&(u[h].length>u[p].length?(u[h].numChars++,f++):(u[p].numChars++,f++)),g!==-1&&v!==-1&&u[g].length!==u[v].length&&(u[g].length>u[v].length?(u[g].numChars++,f++):(u[v].numChars++,f++));const b=Math.max(0,n-f),L=u.reduce((V,k)=>V+(k.type!==this.Q2&&k.length>0?k.length:0),0);for(const V of u)if(V.type!==this.Q2&&V.length>0){const k=Math.round(V.length/L*b);V.numChars+=k}const S=u.reduce((V,k)=>V+k.numChars,0);let _=n-S,O=0;for(;_!==0;){const V=u[O%u.length];V.type!==this.BLANK&&V.type!==this.Q2&&V.length>0&&(V.numChars+=_>0?1:-1,_+=_>0?-1:1),O++}let E=-1;const A=[this.LOWER_OUTLIER,this.MIN,this.Q1,this.Q2,this.Q3,this.MAX,this.UPPER_OUTLIER];a.push(Array.from({length:A.length}).fill(-1));for(const V of u){V.type!==this.BLANK&&V.type!==this.GLOBAL_MIN&&V.type!==this.GLOBAL_MAX&&(E=A.indexOf(V.type),a[i][E]=l.length);for(let k=0;k<V.numChars;k++){let B="⠀";V.type===this.MIN||V.type===this.MAX?B="⠒":V.type===this.Q1||V.type===this.Q3?B="⠿":V.type===this.Q2?B=k===0?"⠸":"⠇":V.type===this.LOWER_OUTLIER||V.type===this.UPPER_OUTLIER?B="⠂":V.type===this.BLANK&&(B="⠀"),l.push(B),o.push({row:i,col:E})}}for(let V=0;V<3;V++)if(a[i][V]===-1){for(let k=V+1;k<=3;k++)if(a[i][k]!==-1){a[i][V]=a[i][k];break}}for(let V=6;V>3;V--)if(a[i][V]===-1){for(let k=V-1;k>=3;k--)if(a[i][k]!==-1){a[i][V]=a[i][k];break}}l.push(ve.NEW_LINE),o.push({row:i,col:E})}return{value:l.join(ve.EMPTY),cellToIndex:a,indexToCell:o}}}class pI{encode(t){const n=new Array,l=new Array,o=new Array,a=(t.max-t.min)/3,i=t.min+a,s=i+a;for(let T=0;T<t.values.length;T++){l.push(new Array);for(let u=0;u<t.values[T].length;u++)t.values[T][u]===0?n.push(" "):t.values[T][u]<=i?n.push("⠤"):t.values[T][u]<=s?n.push("⠒"):n.push("⠉"),l[T].push(o.length),o.push({row:T,col:u});n.push(ve.NEW_LINE),l[T].push(o.length),o.push({row:T,col:t.values[T].length})}return{value:n.join(ve.EMPTY),cellToIndex:l,indexToCell:o}}}class nE{encode(t){const n=new Array,l=new Array,o=new Array;for(let a=0;a<t.values.length;a++){l.push(new Array);const{low:i,medium:s,mediumHigh:T,high:u}=this.getThresholds(a,t);for(let Q=0;Q<t.values[a].length;Q++){const f=t.values[a][Q],h=Q>0?t.values[a][Q-1]:null,p=this.getBrailleChar(f,h,i,s,u,T);n.push(p),l[a].push(o.length),o.push({row:a,col:Q})}n.push(ve.NEW_LINE),l[a].push(o.length),o.push({row:a,col:t.values[a].length})}return{value:n.join(ve.EMPTY),cellToIndex:l,indexToCell:o}}getBrailleChar(t,n,l,o,a,i){return i===void 0&&(i=a),t<=l&&n!==null&&n>l?n<=o?"⢄":n<=i?"⢆":"⢇":t<=l?"⣀":n!==null&&n<=l?t<=o?"⡠":t<=i?"⡰":"⡸":t<=o&&n!==null&&n>o?n<=i?"⠢":"⠣":t<=o?"⠤":n!==null&&n<=o?t<=i?"⠔":"⠜":t<=i&&n!==null&&n>i?"⠑":t<=i?"⠒":n!==null&&n<=i?"⠊":t<=a?"⠉":""}getBraille6Char(t,n,l,o,a){const i=f=>f<=l?"low":f<=o?"medium":(f<=a,"high"),s=i(t),T=n!==null?i(n):null,u={"low,medium":"⠢","low,high":"⠣","low,null":"⠤","low,low":"⠤","medium,low":"⠔","medium,high":"⠑","medium,null":"⠒","medium,medium":"⠒","high,low":"⠜","high,medium":"⠊","high,null":"⠉","high,high":"⠉"},Q=`${s},${T}`;return u[Q]||""}addDot8(t){if(!t||t.length===0)return"⢀";const o=t.charCodeAt(0)-10240|128;return String.fromCharCode(10240+o)}}class mI extends nE{getThresholds(t,n){const l=(n.max-n.min)/3,o=n.min+l,a=o+l,i=n.max;return{low:o,medium:a,high:i}}encode(t){var a;const n=new Array,l=new Array,o=new Array;for(let i=0;i<t.values.length;i++){l.push(new Array);const{low:s,medium:T,high:u}=this.getThresholds(i,t);for(let Q=0;Q<t.values[i].length;Q++){const f=t.values[i][Q],h=Q>0?t.values[i][Q-1]:null;let p=this.getBraille6Char(f,h,s,T,u);((a=t.custom)==null?void 0:a[Q])==="Bear"&&(p=this.addDot8(p)),n.push(p),l[i].push(o.length),o.push({row:i,col:Q})}n.push(ve.NEW_LINE),l[i].push(o.length),o.push({row:i,col:t.values[i].length})}return{value:n.join(ve.EMPTY),cellToIndex:l,indexToCell:o}}}class yI extends nE{getThresholds(t,n){const l=(n.max[t]-n.min[t])/4,o=n.min[t]+l,a=o+l,i=a+l,s=n.max[t];return{low:o,medium:a,mediumHigh:i,high:s}}}class gI{constructor(t,n,l){oe(this,"context");oe(this,"notification");oe(this,"display");oe(this,"enabled");oe(this,"cacheId");oe(this,"cache");oe(this,"encoders");oe(this,"onChangeEmitter");oe(this,"onChange");this.context=t,this.notification=n,this.display=l,this.enabled=!1,this.cacheId=ve.EMPTY,this.cache=null,this.encoders=new Map([[P2.BAR,new Cc],[P2.BOX,new hI],[P2.CANDLESTICK,new mI],[P2.DODGED,new Cc],[P2.HEATMAP,new pI],[P2.HISTOGRAM,new Cc],[P2.LINE,new yI],[P2.NORMALIZED,new Cc],[P2.STACKED,new Cc]]),this.onChangeEmitter=new bs,this.onChange=this.onChangeEmitter.event}dispose(){this.onChangeEmitter.dispose(),this.cache=null,this.encoders.clear()}update(t){if(!this.enabled||t.empty)return;const n=t.type==="subplot"?t.trace:t;if(n.empty||n.braille.empty||!this.encoders.has(n.traceType))return;const l=n.braille;if(this.cacheId!==l.id||this.cache===null){const o=this.encoders.get(n.traceType);this.cache=o.encode(l,tE),this.cacheId=l.id}this.onChangeEmitter.fire({value:this.cache.value.trim(),index:this.cache.cellToIndex[l.row][l.col]})}moveToIndex(t){if(!this.enabled||this.cache===null||t<0||t>=this.cache.indexToCell.length)return;const{row:n,col:l}=this.cache.indexToCell[t];this.context.moveToIndex(n,l)}toggle(t){if(t.empty){this.notification.notify("No info for braille");return}if(t.braille.empty){const l=`Braille is not supported for plot type: ${t.braille.traceType}`;this.notification.notify(l);return}this.enabled=!this.enabled,this.update(t),this.display.toggleFocus(E1.BRAILLE);const n=`Braille is ${this.enabled?"on":"off"}`;this.notification.notify(n)}}var rE=(e=>(e[e.OK=200]="OK",e[e.BAD_REQUEST=400]="BAD_REQUEST",e[e.NOT_FOUND=404]="NOT_FOUND",e[e.SERVER_ERROR=500]="SERVER_ERROR",e))(rE||{});class iE{constructor(){}static async post(t,n,l){const o={...this.DEFAULT_HEADERS,...l};return this.request(t,"POST",o,n)}static async request(t,n,l,o){try{const a=await fetch(t,{method:n,headers:l,body:o});return a.ok?{success:!0,data:await a.json()}:{success:!1,error:{statusCode:a.status,message:`API Error: ${a.status} - ${a.statusText}`}}}catch(a){return console.error(`Error in API ${n} request to ${t}:`,a),{success:!1,error:{statusCode:rE.SERVER_ERROR,message:a instanceof Error?a.message:"Unknown error occurred"}}}}}oe(iE,"DEFAULT_HEADERS",{"Content-Type":"application/json"});const vI=`You are an accessibility assistant specializing in describing statistical visualizations to blind users. Your role is to:
|
|
3
3
|
1. Provide simple, straightforward descriptions of charts and graphs
|
|
4
4
|
2. Focus on basic patterns and key points
|
|
5
5
|
3. Use simple, everyday language with minimal statistical terms
|
|
@@ -46,19 +46,19 @@ ${Hv(T)}`}]}]})}formatResponse(n){return n.content.length===0?{success:!1,error:
|
|
|
46
46
|
*
|
|
47
47
|
* This source code is licensed under the MIT license found in the
|
|
48
48
|
* LICENSE file in the root directory of this source tree.
|
|
49
|
-
*/n.NODE_ENV!=="production"&&function(){function l(te,
|
|
49
|
+
*/n.NODE_ENV!=="production"&&function(){function l(te,Le){Object.defineProperty(i.prototype,te,{get:function(){console.warn("%s(...) is deprecated in plain JavaScript React classes. %s",Le[0],Le[1])}})}function o(te){return te===null||typeof te!="object"?null:(te=ze&&te[ze]||te["@@iterator"],typeof te=="function"?te:null)}function a(te,Le){te=(te=te.constructor)&&(te.displayName||te.name)||"ReactClass";var We=te+"."+Le;ue[We]||(console.error("Can't call %s on a component that is not yet mounted. This is a no-op, but it might indicate a bug in your application. Instead, assign to `this.state` directly or define a `state = {};` class property with the desired state in the %s component.",Le,te),ue[We]=!0)}function i(te,Le,We){this.props=te,this.context=Le,this.refs=ht,this.updater=We||Pe}function s(){}function T(te,Le,We){this.props=te,this.context=Le,this.refs=ht,this.updater=We||Pe}function u(te){return""+te}function Q(te){try{u(te);var Le=!1}catch{Le=!0}if(Le){Le=console;var We=Le.error,rt=typeof Symbol=="function"&&Symbol.toStringTag&&te[Symbol.toStringTag]||te.constructor.name||"Object";return We.call(Le,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",rt),u(te)}}function f(te){if(te==null)return null;if(typeof te=="function")return te.$$typeof===p1?null:te.displayName||te.name||null;if(typeof te=="string")return te;switch(te){case z:return"Fragment";case U:return"Profiler";case ee:return"StrictMode";case se:return"Suspense";case fe:return"SuspenseList";case _e:return"Activity"}if(typeof te=="object")switch(typeof te.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),te.$$typeof){case j:return"Portal";case pe:return(te.displayName||"Context")+".Provider";case de:return(te._context.displayName||"Context")+".Consumer";case he:var Le=te.render;return te=te.displayName,te||(te=Le.displayName||Le.name||"",te=te!==""?"ForwardRef("+te+")":"ForwardRef"),te;case Se:return Le=te.displayName||null,Le!==null?Le:f(te.type)||"Memo";case Ee:Le=te._payload,te=te._init;try{return f(te(Le))}catch{}}return null}function h(te){if(te===z)return"<>";if(typeof te=="object"&&te!==null&&te.$$typeof===Ee)return"<...>";try{var Le=f(te);return Le?"<"+Le+">":"<...>"}catch{return"<...>"}}function p(){var te=st.A;return te===null?null:te.getOwner()}function g(){return Error("react-stack-top-frame")}function v(te){if(ct.call(te,"key")){var Le=Object.getOwnPropertyDescriptor(te,"key").get;if(Le&&Le.isReactWarning)return!1}return te.key!==void 0}function b(te,Le){function We(){f1||(f1=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",Le))}We.isReactWarning=!0,Object.defineProperty(te,"key",{get:We,configurable:!0})}function L(){var te=f(this.type);return me[te]||(me[te]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),te=this.props.ref,te!==void 0?te:null}function S(te,Le,We,rt,nt,yt,_t,Xt){return We=yt.ref,te={$$typeof:Y,type:te,key:Le,props:yt,_owner:nt},(We!==void 0?We:null)!==null?Object.defineProperty(te,"ref",{enumerable:!1,get:L}):Object.defineProperty(te,"ref",{enumerable:!1,value:null}),te._store={},Object.defineProperty(te._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(te,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(te,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:_t}),Object.defineProperty(te,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:Xt}),Object.freeze&&(Object.freeze(te.props),Object.freeze(te)),te}function _(te,Le){return Le=S(te.type,Le,void 0,void 0,te._owner,te.props,te._debugStack,te._debugTask),te._store&&(Le._store.validated=te._store.validated),Le}function O(te){return typeof te=="object"&&te!==null&&te.$$typeof===Y}function E(te){var Le={"=":"=0",":":"=2"};return"$"+te.replace(/[=:]/g,function(We){return Le[We]})}function A(te,Le){return typeof te=="object"&&te!==null&&te.key!=null?(Q(te.key),E(""+te.key)):Le.toString(36)}function V(){}function k(te){switch(te.status){case"fulfilled":return te.value;case"rejected":throw te.reason;default:switch(typeof te.status=="string"?te.then(V,V):(te.status="pending",te.then(function(Le){te.status==="pending"&&(te.status="fulfilled",te.value=Le)},function(Le){te.status==="pending"&&(te.status="rejected",te.reason=Le)})),te.status){case"fulfilled":return te.value;case"rejected":throw te.reason}}throw te}function B(te,Le,We,rt,nt){var yt=typeof te;(yt==="undefined"||yt==="boolean")&&(te=null);var _t=!1;if(te===null)_t=!0;else switch(yt){case"bigint":case"string":case"number":_t=!0;break;case"object":switch(te.$$typeof){case Y:case j:_t=!0;break;case Ee:return _t=te._init,B(_t(te._payload),Le,We,rt,nt)}}if(_t){_t=te,nt=nt(_t);var Xt=rt===""?"."+A(_t,0):rt;return zt(nt)?(We="",Xt!=null&&(We=Xt.replace(tt,"$&/")+"/"),B(nt,Le,We,"",function(C2){return C2})):nt!=null&&(O(nt)&&(nt.key!=null&&(_t&&_t.key===nt.key||Q(nt.key)),We=_(nt,We+(nt.key==null||_t&&_t.key===nt.key?"":(""+nt.key).replace(tt,"$&/")+"/")+Xt),rt!==""&&_t!=null&&O(_t)&&_t.key==null&&_t._store&&!_t._store.validated&&(We._store.validated=2),nt=We),Le.push(nt)),1}if(_t=0,Xt=rt===""?".":rt+":",zt(te))for(var Ht=0;Ht<te.length;Ht++)rt=te[Ht],yt=Xt+A(rt,Ht),_t+=B(rt,Le,We,yt,nt);else if(Ht=o(te),typeof Ht=="function")for(Ht===te.entries&&(et||console.warn("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),et=!0),te=Ht.call(te),Ht=0;!(rt=te.next()).done;)rt=rt.value,yt=Xt+A(rt,Ht++),_t+=B(rt,Le,We,yt,nt);else if(yt==="object"){if(typeof te.then=="function")return B(k(te),Le,We,rt,nt);throw Le=String(te),Error("Objects are not valid as a React child (found: "+(Le==="[object Object]"?"object with keys {"+Object.keys(te).join(", ")+"}":Le)+"). If you meant to render a collection of children, use an array instead.")}return _t}function R(te,Le,We){if(te==null)return te;var rt=[],nt=0;return B(te,rt,"","",function(yt){return Le.call(We,yt,nt++)}),rt}function F(te){if(te._status===-1){var Le=te._result;Le=Le(),Le.then(function(We){(te._status===0||te._status===-1)&&(te._status=1,te._result=We)},function(We){(te._status===0||te._status===-1)&&(te._status=2,te._result=We)}),te._status===-1&&(te._status=0,te._result=Le)}if(te._status===1)return Le=te._result,Le===void 0&&console.error(`lazy: Expected the result of a dynamic import() call. Instead received: %s
|
|
50
50
|
|
|
51
51
|
Your code should look like:
|
|
52
52
|
const MyComponent = lazy(() => import('./MyComponent'))
|
|
53
53
|
|
|
54
|
-
Did you accidentally put curly braces around the import?`,
|
|
54
|
+
Did you accidentally put curly braces around the import?`,Le),"default"in Le||console.error(`lazy: Expected the result of a dynamic import() call. Instead received: %s
|
|
55
55
|
|
|
56
56
|
Your code should look like:
|
|
57
|
-
const MyComponent = lazy(() => import('./MyComponent'))`,
|
|
57
|
+
const MyComponent = lazy(() => import('./MyComponent'))`,Le),Le.default;throw te._result}function q(){var te=st.H;return te===null&&console.error(`Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
|
|
58
58
|
1. You might have mismatching versions of React and the renderer (such as React DOM)
|
|
59
59
|
2. You might be breaking the Rules of Hooks
|
|
60
60
|
3. You might have more than one copy of React in the same app
|
|
61
|
-
See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`),te}function $(){}function Z(te){if(Ct===null)try{var ve=("require"+Math.random()).slice(0,7);Ct=(e&&e[ve]).call(e,"timers").setImmediate}catch{Ct=function(rt){o1===!1&&(o1=!0,typeof MessageChannel>"u"&&console.error("This browser does not have a MessageChannel implementation, so enqueuing tasks via await act(async () => ...) will fail. Please file an issue at https://github.com/facebook/react/issues if you encounter this warning."));var nt=new MessageChannel;nt.port1.onmessage=rt,nt.port2.postMessage(void 0)}}return Ct(te)}function J(te){return 1<te.length&&typeof AggregateError=="function"?new AggregateError(te):te[0]}function W(te,ve){ve!==d1-1&&console.error("You seem to have overlapping act() calls, this is not supported. Be sure to await previous act() calls before making a new one. "),d1=ve}function ne(te,ve,We){var rt=st.actQueue;if(rt!==null)if(rt.length!==0)try{K(rt),Z(function(){return ne(te,ve,We)});return}catch(nt){st.thrownErrors.push(nt)}else st.actQueue=null;0<st.thrownErrors.length?(rt=J(st.thrownErrors),st.thrownErrors.length=0,We(rt)):ve(te)}function K(te){if(!it){it=!0;var ve=0;try{for(;ve<te.length;ve++){var We=te[ve];do{st.didUsePromise=!1;var rt=We(!1);if(rt!==null){if(st.didUsePromise){te[ve]=We,te.splice(0,ve);return}We=rt}else break}while(!0)}te.length=0}catch(nt){te.splice(0,ve+1),st.thrownErrors.push(nt)}finally{it=!1}}}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var Y=Symbol.for("react.transitional.element"),j=Symbol.for("react.portal"),z=Symbol.for("react.fragment"),ee=Symbol.for("react.strict_mode"),U=Symbol.for("react.profiler"),de=Symbol.for("react.consumer"),pe=Symbol.for("react.context"),he=Symbol.for("react.forward_ref"),se=Symbol.for("react.suspense"),fe=Symbol.for("react.suspense_list"),Se=Symbol.for("react.memo"),Ee=Symbol.for("react.lazy"),_e=Symbol.for("react.activity"),ze=Symbol.iterator,ue={},Pe={isMounted:function(){return!1},enqueueForceUpdate:function(te){a(te,"forceUpdate")},enqueueReplaceState:function(te){a(te,"replaceState")},enqueueSetState:function(te){a(te,"setState")}},Xe=Object.assign,ht={};Object.freeze(ht),i.prototype.isReactComponent={},i.prototype.setState=function(te,ve){if(typeof te!="object"&&typeof te!="function"&&te!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,te,ve,"setState")},i.prototype.forceUpdate=function(te){this.updater.enqueueForceUpdate(this,te,"forceUpdate")};var ot={isMounted:["isMounted","Instead, make sure to clean up subscriptions and pending requests in componentWillUnmount to prevent memory leaks."],replaceState:["replaceState","Refactor your code to use setState instead (see https://github.com/facebook/react/issues/3236)."]},mt;for(mt in ot)ot.hasOwnProperty(mt)&&l(mt,ot[mt]);s.prototype=i.prototype,ot=T.prototype=new s,ot.constructor=T,Xe(ot,i.prototype),ot.isPureReactComponent=!0;var zt=Array.isArray,p1=Symbol.for("react.client.reference"),st={H:null,A:null,T:null,S:null,V:null,actQueue:null,isBatchingLegacy:!1,didScheduleLegacyUpdate:!1,didUsePromise:!1,thrownErrors:[],getCurrentStack:null,recentlyCreatedOwnerStacks:0},ct=Object.prototype.hasOwnProperty,e2=console.createTask?console.createTask:function(){return null};ot={"react-stack-bottom-frame":function(te){return te()}};var f1,Ge,me={},De=ot["react-stack-bottom-frame"].bind(ot,g)(),Ye=e2(h(g)),et=!1,tt=/\/+/g,Tt=typeof reportError=="function"?reportError:function(te){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var ve=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof te=="object"&&te!==null&&typeof te.message=="string"?String(te.message):String(te),error:te});if(!window.dispatchEvent(ve))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",te);return}console.error(te)},o1=!1,Ct=null,d1=0,m1=!1,it=!1,xt=typeof queueMicrotask=="function"?function(te){queueMicrotask(function(){return queueMicrotask(te)})}:Z;ot=Object.freeze({__proto__:null,c:function(te){return q().useMemoCache(te)}}),t.Children={map:R,forEach:function(te,ve,We){R(te,function(){ve.apply(this,arguments)},We)},count:function(te){var ve=0;return R(te,function(){ve++}),ve},toArray:function(te){return R(te,function(ve){return ve})||[]},only:function(te){if(!O(te))throw Error("React.Children.only expected to receive a single React element child.");return te}},t.Component=i,t.Fragment=z,t.Profiler=U,t.PureComponent=T,t.StrictMode=ee,t.Suspense=se,t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=st,t.__COMPILER_RUNTIME=ot,t.act=function(te){var ve=st.actQueue,We=d1;d1++;var rt=st.actQueue=ve!==null?ve:[],nt=!1;try{var yt=te()}catch(Ht){st.thrownErrors.push(Ht)}if(0<st.thrownErrors.length)throw W(ve,We),te=J(st.thrownErrors),st.thrownErrors.length=0,te;if(yt!==null&&typeof yt=="object"&&typeof yt.then=="function"){var _t=yt;return xt(function(){nt||m1||(m1=!0,console.error("You called act(async () => ...) without await. This could lead to unexpected testing behaviour, interleaving multiple act calls and mixing their scopes. You should - await act(async () => ...);"))}),{then:function(Ht,C2){nt=!0,_t.then(function(D6){if(W(ve,We),We===0){try{K(rt),Z(function(){return ne(D6,Ht,C2)})}catch(R6){st.thrownErrors.push(R6)}if(0<st.thrownErrors.length){var _f=J(st.thrownErrors);st.thrownErrors.length=0,C2(_f)}}else Ht(D6)},function(D6){W(ve,We),0<st.thrownErrors.length&&(D6=J(st.thrownErrors),st.thrownErrors.length=0),C2(D6)})}}}var Xt=yt;if(W(ve,We),We===0&&(K(rt),rt.length!==0&&xt(function(){nt||m1||(m1=!0,console.error("A component suspended inside an `act` scope, but the `act` call was not awaited. When testing React components that depend on asynchronous data, you must await the result:\n\nawait act(() => ...)"))}),st.actQueue=null),0<st.thrownErrors.length)throw te=J(st.thrownErrors),st.thrownErrors.length=0,te;return{then:function(Ht,C2){nt=!0,We===0?(st.actQueue=rt,Z(function(){return ne(Xt,Ht,C2)})):Ht(Xt)}}},t.cache=function(te){return function(){return te.apply(null,arguments)}},t.captureOwnerStack=function(){var te=st.getCurrentStack;return te===null?null:te()},t.cloneElement=function(te,ve,We){if(te==null)throw Error("The argument must be a React element, but you passed "+te+".");var rt=Xe({},te.props),nt=te.key,yt=te._owner;if(ve!=null){var _t;e:{if(ct.call(ve,"ref")&&(_t=Object.getOwnPropertyDescriptor(ve,"ref").get)&&_t.isReactWarning){_t=!1;break e}_t=ve.ref!==void 0}_t&&(yt=p()),v(ve)&&(Q(ve.key),nt=""+ve.key);for(Xt in ve)!ct.call(ve,Xt)||Xt==="key"||Xt==="__self"||Xt==="__source"||Xt==="ref"&&ve.ref===void 0||(rt[Xt]=ve[Xt])}var Xt=arguments.length-2;if(Xt===1)rt.children=We;else if(1<Xt){_t=Array(Xt);for(var Ht=0;Ht<Xt;Ht++)_t[Ht]=arguments[Ht+2];rt.children=_t}for(rt=S(te.type,nt,void 0,void 0,yt,rt,te._debugStack,te._debugTask),nt=2;nt<arguments.length;nt++)yt=arguments[nt],O(yt)&&yt._store&&(yt._store.validated=1);return rt},t.createContext=function(te){return te={$$typeof:pe,_currentValue:te,_currentValue2:te,_threadCount:0,Provider:null,Consumer:null},te.Provider=te,te.Consumer={$$typeof:de,_context:te},te._currentRenderer=null,te._currentRenderer2=null,te},t.createElement=function(te,ve,We){for(var rt=2;rt<arguments.length;rt++){var nt=arguments[rt];O(nt)&&nt._store&&(nt._store.validated=1)}if(rt={},nt=null,ve!=null)for(Ht in Ge||!("__self"in ve)||"key"in ve||(Ge=!0,console.warn("Your app (or one of its dependencies) is using an outdated JSX transform. Update to the modern JSX transform for faster performance: https://react.dev/link/new-jsx-transform")),v(ve)&&(Q(ve.key),nt=""+ve.key),ve)ct.call(ve,Ht)&&Ht!=="key"&&Ht!=="__self"&&Ht!=="__source"&&(rt[Ht]=ve[Ht]);var yt=arguments.length-2;if(yt===1)rt.children=We;else if(1<yt){for(var _t=Array(yt),Xt=0;Xt<yt;Xt++)_t[Xt]=arguments[Xt+2];Object.freeze&&Object.freeze(_t),rt.children=_t}if(te&&te.defaultProps)for(Ht in yt=te.defaultProps,yt)rt[Ht]===void 0&&(rt[Ht]=yt[Ht]);nt&&b(rt,typeof te=="function"?te.displayName||te.name||"Unknown":te);var Ht=1e4>st.recentlyCreatedOwnerStacks++;return S(te,nt,void 0,void 0,p(),rt,Ht?Error("react-stack-top-frame"):De,Ht?e2(h(te)):Ye)},t.createRef=function(){var te={current:null};return Object.seal(te),te},t.forwardRef=function(te){te!=null&&te.$$typeof===Se?console.error("forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...))."):typeof te!="function"?console.error("forwardRef requires a render function but was given %s.",te===null?"null":typeof te):te.length!==0&&te.length!==2&&console.error("forwardRef render functions accept exactly two parameters: props and ref. %s",te.length===1?"Did you forget to use the ref parameter?":"Any additional parameter will be undefined."),te!=null&&te.defaultProps!=null&&console.error("forwardRef render functions do not support defaultProps. Did you accidentally pass a React component?");var ve={$$typeof:he,render:te},We;return Object.defineProperty(ve,"displayName",{enumerable:!1,configurable:!0,get:function(){return We},set:function(rt){We=rt,te.name||te.displayName||(Object.defineProperty(te,"name",{value:rt}),te.displayName=rt)}}),ve},t.isValidElement=O,t.lazy=function(te){return{$$typeof:Ee,_payload:{_status:-1,_result:te},_init:F}},t.memo=function(te,ve){te==null&&console.error("memo: The first argument must be a component. Instead received: %s",te===null?"null":typeof te),ve={$$typeof:Se,type:te,compare:ve===void 0?null:ve};var We;return Object.defineProperty(ve,"displayName",{enumerable:!1,configurable:!0,get:function(){return We},set:function(rt){We=rt,te.name||te.displayName||(Object.defineProperty(te,"name",{value:rt}),te.displayName=rt)}}),ve},t.startTransition=function(te){var ve=st.T,We={};st.T=We,We._updatedFibers=new Set;try{var rt=te(),nt=st.S;nt!==null&&nt(We,rt),typeof rt=="object"&&rt!==null&&typeof rt.then=="function"&&rt.then($,Tt)}catch(yt){Tt(yt)}finally{ve===null&&We._updatedFibers&&(te=We._updatedFibers.size,We._updatedFibers.clear(),10<te&&console.warn("Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table.")),st.T=ve}},t.unstable_useCacheRefresh=function(){return q().useCacheRefresh()},t.use=function(te){return q().use(te)},t.useActionState=function(te,ve,We){return q().useActionState(te,ve,We)},t.useCallback=function(te,ve){return q().useCallback(te,ve)},t.useContext=function(te){var ve=q();return te.$$typeof===de&&console.error("Calling useContext(Context.Consumer) is not supported and will cause bugs. Did you mean to call useContext(Context) instead?"),ve.useContext(te)},t.useDebugValue=function(te,ve){return q().useDebugValue(te,ve)},t.useDeferredValue=function(te,ve){return q().useDeferredValue(te,ve)},t.useEffect=function(te,ve,We){te==null&&console.warn("React Hook useEffect requires an effect callback. Did you forget to pass a callback to the hook?");var rt=q();if(typeof We=="function")throw Error("useEffect CRUD overload is not enabled in this build of React.");return rt.useEffect(te,ve)},t.useId=function(){return q().useId()},t.useImperativeHandle=function(te,ve,We){return q().useImperativeHandle(te,ve,We)},t.useInsertionEffect=function(te,ve){return te==null&&console.warn("React Hook useInsertionEffect requires an effect callback. Did you forget to pass a callback to the hook?"),q().useInsertionEffect(te,ve)},t.useLayoutEffect=function(te,ve){return te==null&&console.warn("React Hook useLayoutEffect requires an effect callback. Did you forget to pass a callback to the hook?"),q().useLayoutEffect(te,ve)},t.useMemo=function(te,ve){return q().useMemo(te,ve)},t.useOptimistic=function(te,ve){return q().useOptimistic(te,ve)},t.useReducer=function(te,ve,We){return q().useReducer(te,ve,We)},t.useRef=function(te){return q().useRef(te)},t.useState=function(te){return q().useState(te)},t.useSyncExternalStore=function(te,ve,We){return q().useSyncExternalStore(te,ve,We)},t.useTransition=function(){return q().useTransition()},t.version="19.1.0",typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())}()}(Vc,Vc.exports)),Vc.exports}var lE;function ka(){if(lE)return Ep.exports;lE=1;var e={};return e.NODE_ENV==="production"?Ep.exports=OI():Ep.exports=CI(),Ep.exports}var ae=ka();const xe=wc(ae),Sv=Mr({__proto__:null,default:xe},[ae]);var Sp={exports:{}},Mv={};/**
|
|
61
|
+
See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`),te}function $(){}function Z(te){if(Ct===null)try{var Le=("require"+Math.random()).slice(0,7);Ct=(e&&e[Le]).call(e,"timers").setImmediate}catch{Ct=function(rt){o1===!1&&(o1=!0,typeof MessageChannel>"u"&&console.error("This browser does not have a MessageChannel implementation, so enqueuing tasks via await act(async () => ...) will fail. Please file an issue at https://github.com/facebook/react/issues if you encounter this warning."));var nt=new MessageChannel;nt.port1.onmessage=rt,nt.port2.postMessage(void 0)}}return Ct(te)}function J(te){return 1<te.length&&typeof AggregateError=="function"?new AggregateError(te):te[0]}function W(te,Le){Le!==d1-1&&console.error("You seem to have overlapping act() calls, this is not supported. Be sure to await previous act() calls before making a new one. "),d1=Le}function ne(te,Le,We){var rt=st.actQueue;if(rt!==null)if(rt.length!==0)try{K(rt),Z(function(){return ne(te,Le,We)});return}catch(nt){st.thrownErrors.push(nt)}else st.actQueue=null;0<st.thrownErrors.length?(rt=J(st.thrownErrors),st.thrownErrors.length=0,We(rt)):Le(te)}function K(te){if(!it){it=!0;var Le=0;try{for(;Le<te.length;Le++){var We=te[Le];do{st.didUsePromise=!1;var rt=We(!1);if(rt!==null){if(st.didUsePromise){te[Le]=We,te.splice(0,Le);return}We=rt}else break}while(!0)}te.length=0}catch(nt){te.splice(0,Le+1),st.thrownErrors.push(nt)}finally{it=!1}}}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var Y=Symbol.for("react.transitional.element"),j=Symbol.for("react.portal"),z=Symbol.for("react.fragment"),ee=Symbol.for("react.strict_mode"),U=Symbol.for("react.profiler"),de=Symbol.for("react.consumer"),pe=Symbol.for("react.context"),he=Symbol.for("react.forward_ref"),se=Symbol.for("react.suspense"),fe=Symbol.for("react.suspense_list"),Se=Symbol.for("react.memo"),Ee=Symbol.for("react.lazy"),_e=Symbol.for("react.activity"),ze=Symbol.iterator,ue={},Pe={isMounted:function(){return!1},enqueueForceUpdate:function(te){a(te,"forceUpdate")},enqueueReplaceState:function(te){a(te,"replaceState")},enqueueSetState:function(te){a(te,"setState")}},Xe=Object.assign,ht={};Object.freeze(ht),i.prototype.isReactComponent={},i.prototype.setState=function(te,Le){if(typeof te!="object"&&typeof te!="function"&&te!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,te,Le,"setState")},i.prototype.forceUpdate=function(te){this.updater.enqueueForceUpdate(this,te,"forceUpdate")};var ot={isMounted:["isMounted","Instead, make sure to clean up subscriptions and pending requests in componentWillUnmount to prevent memory leaks."],replaceState:["replaceState","Refactor your code to use setState instead (see https://github.com/facebook/react/issues/3236)."]},mt;for(mt in ot)ot.hasOwnProperty(mt)&&l(mt,ot[mt]);s.prototype=i.prototype,ot=T.prototype=new s,ot.constructor=T,Xe(ot,i.prototype),ot.isPureReactComponent=!0;var zt=Array.isArray,p1=Symbol.for("react.client.reference"),st={H:null,A:null,T:null,S:null,V:null,actQueue:null,isBatchingLegacy:!1,didScheduleLegacyUpdate:!1,didUsePromise:!1,thrownErrors:[],getCurrentStack:null,recentlyCreatedOwnerStacks:0},ct=Object.prototype.hasOwnProperty,e2=console.createTask?console.createTask:function(){return null};ot={"react-stack-bottom-frame":function(te){return te()}};var f1,Ge,me={},De=ot["react-stack-bottom-frame"].bind(ot,g)(),Ye=e2(h(g)),et=!1,tt=/\/+/g,Tt=typeof reportError=="function"?reportError:function(te){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var Le=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof te=="object"&&te!==null&&typeof te.message=="string"?String(te.message):String(te),error:te});if(!window.dispatchEvent(Le))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",te);return}console.error(te)},o1=!1,Ct=null,d1=0,m1=!1,it=!1,xt=typeof queueMicrotask=="function"?function(te){queueMicrotask(function(){return queueMicrotask(te)})}:Z;ot=Object.freeze({__proto__:null,c:function(te){return q().useMemoCache(te)}}),t.Children={map:R,forEach:function(te,Le,We){R(te,function(){Le.apply(this,arguments)},We)},count:function(te){var Le=0;return R(te,function(){Le++}),Le},toArray:function(te){return R(te,function(Le){return Le})||[]},only:function(te){if(!O(te))throw Error("React.Children.only expected to receive a single React element child.");return te}},t.Component=i,t.Fragment=z,t.Profiler=U,t.PureComponent=T,t.StrictMode=ee,t.Suspense=se,t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=st,t.__COMPILER_RUNTIME=ot,t.act=function(te){var Le=st.actQueue,We=d1;d1++;var rt=st.actQueue=Le!==null?Le:[],nt=!1;try{var yt=te()}catch(Ht){st.thrownErrors.push(Ht)}if(0<st.thrownErrors.length)throw W(Le,We),te=J(st.thrownErrors),st.thrownErrors.length=0,te;if(yt!==null&&typeof yt=="object"&&typeof yt.then=="function"){var _t=yt;return xt(function(){nt||m1||(m1=!0,console.error("You called act(async () => ...) without await. This could lead to unexpected testing behaviour, interleaving multiple act calls and mixing their scopes. You should - await act(async () => ...);"))}),{then:function(Ht,C2){nt=!0,_t.then(function(D6){if(W(Le,We),We===0){try{K(rt),Z(function(){return ne(D6,Ht,C2)})}catch(R6){st.thrownErrors.push(R6)}if(0<st.thrownErrors.length){var _f=J(st.thrownErrors);st.thrownErrors.length=0,C2(_f)}}else Ht(D6)},function(D6){W(Le,We),0<st.thrownErrors.length&&(D6=J(st.thrownErrors),st.thrownErrors.length=0),C2(D6)})}}}var Xt=yt;if(W(Le,We),We===0&&(K(rt),rt.length!==0&&xt(function(){nt||m1||(m1=!0,console.error("A component suspended inside an `act` scope, but the `act` call was not awaited. When testing React components that depend on asynchronous data, you must await the result:\n\nawait act(() => ...)"))}),st.actQueue=null),0<st.thrownErrors.length)throw te=J(st.thrownErrors),st.thrownErrors.length=0,te;return{then:function(Ht,C2){nt=!0,We===0?(st.actQueue=rt,Z(function(){return ne(Xt,Ht,C2)})):Ht(Xt)}}},t.cache=function(te){return function(){return te.apply(null,arguments)}},t.captureOwnerStack=function(){var te=st.getCurrentStack;return te===null?null:te()},t.cloneElement=function(te,Le,We){if(te==null)throw Error("The argument must be a React element, but you passed "+te+".");var rt=Xe({},te.props),nt=te.key,yt=te._owner;if(Le!=null){var _t;e:{if(ct.call(Le,"ref")&&(_t=Object.getOwnPropertyDescriptor(Le,"ref").get)&&_t.isReactWarning){_t=!1;break e}_t=Le.ref!==void 0}_t&&(yt=p()),v(Le)&&(Q(Le.key),nt=""+Le.key);for(Xt in Le)!ct.call(Le,Xt)||Xt==="key"||Xt==="__self"||Xt==="__source"||Xt==="ref"&&Le.ref===void 0||(rt[Xt]=Le[Xt])}var Xt=arguments.length-2;if(Xt===1)rt.children=We;else if(1<Xt){_t=Array(Xt);for(var Ht=0;Ht<Xt;Ht++)_t[Ht]=arguments[Ht+2];rt.children=_t}for(rt=S(te.type,nt,void 0,void 0,yt,rt,te._debugStack,te._debugTask),nt=2;nt<arguments.length;nt++)yt=arguments[nt],O(yt)&&yt._store&&(yt._store.validated=1);return rt},t.createContext=function(te){return te={$$typeof:pe,_currentValue:te,_currentValue2:te,_threadCount:0,Provider:null,Consumer:null},te.Provider=te,te.Consumer={$$typeof:de,_context:te},te._currentRenderer=null,te._currentRenderer2=null,te},t.createElement=function(te,Le,We){for(var rt=2;rt<arguments.length;rt++){var nt=arguments[rt];O(nt)&&nt._store&&(nt._store.validated=1)}if(rt={},nt=null,Le!=null)for(Ht in Ge||!("__self"in Le)||"key"in Le||(Ge=!0,console.warn("Your app (or one of its dependencies) is using an outdated JSX transform. Update to the modern JSX transform for faster performance: https://react.dev/link/new-jsx-transform")),v(Le)&&(Q(Le.key),nt=""+Le.key),Le)ct.call(Le,Ht)&&Ht!=="key"&&Ht!=="__self"&&Ht!=="__source"&&(rt[Ht]=Le[Ht]);var yt=arguments.length-2;if(yt===1)rt.children=We;else if(1<yt){for(var _t=Array(yt),Xt=0;Xt<yt;Xt++)_t[Xt]=arguments[Xt+2];Object.freeze&&Object.freeze(_t),rt.children=_t}if(te&&te.defaultProps)for(Ht in yt=te.defaultProps,yt)rt[Ht]===void 0&&(rt[Ht]=yt[Ht]);nt&&b(rt,typeof te=="function"?te.displayName||te.name||"Unknown":te);var Ht=1e4>st.recentlyCreatedOwnerStacks++;return S(te,nt,void 0,void 0,p(),rt,Ht?Error("react-stack-top-frame"):De,Ht?e2(h(te)):Ye)},t.createRef=function(){var te={current:null};return Object.seal(te),te},t.forwardRef=function(te){te!=null&&te.$$typeof===Se?console.error("forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...))."):typeof te!="function"?console.error("forwardRef requires a render function but was given %s.",te===null?"null":typeof te):te.length!==0&&te.length!==2&&console.error("forwardRef render functions accept exactly two parameters: props and ref. %s",te.length===1?"Did you forget to use the ref parameter?":"Any additional parameter will be undefined."),te!=null&&te.defaultProps!=null&&console.error("forwardRef render functions do not support defaultProps. Did you accidentally pass a React component?");var Le={$$typeof:he,render:te},We;return Object.defineProperty(Le,"displayName",{enumerable:!1,configurable:!0,get:function(){return We},set:function(rt){We=rt,te.name||te.displayName||(Object.defineProperty(te,"name",{value:rt}),te.displayName=rt)}}),Le},t.isValidElement=O,t.lazy=function(te){return{$$typeof:Ee,_payload:{_status:-1,_result:te},_init:F}},t.memo=function(te,Le){te==null&&console.error("memo: The first argument must be a component. Instead received: %s",te===null?"null":typeof te),Le={$$typeof:Se,type:te,compare:Le===void 0?null:Le};var We;return Object.defineProperty(Le,"displayName",{enumerable:!1,configurable:!0,get:function(){return We},set:function(rt){We=rt,te.name||te.displayName||(Object.defineProperty(te,"name",{value:rt}),te.displayName=rt)}}),Le},t.startTransition=function(te){var Le=st.T,We={};st.T=We,We._updatedFibers=new Set;try{var rt=te(),nt=st.S;nt!==null&&nt(We,rt),typeof rt=="object"&&rt!==null&&typeof rt.then=="function"&&rt.then($,Tt)}catch(yt){Tt(yt)}finally{Le===null&&We._updatedFibers&&(te=We._updatedFibers.size,We._updatedFibers.clear(),10<te&&console.warn("Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table.")),st.T=Le}},t.unstable_useCacheRefresh=function(){return q().useCacheRefresh()},t.use=function(te){return q().use(te)},t.useActionState=function(te,Le,We){return q().useActionState(te,Le,We)},t.useCallback=function(te,Le){return q().useCallback(te,Le)},t.useContext=function(te){var Le=q();return te.$$typeof===de&&console.error("Calling useContext(Context.Consumer) is not supported and will cause bugs. Did you mean to call useContext(Context) instead?"),Le.useContext(te)},t.useDebugValue=function(te,Le){return q().useDebugValue(te,Le)},t.useDeferredValue=function(te,Le){return q().useDeferredValue(te,Le)},t.useEffect=function(te,Le,We){te==null&&console.warn("React Hook useEffect requires an effect callback. Did you forget to pass a callback to the hook?");var rt=q();if(typeof We=="function")throw Error("useEffect CRUD overload is not enabled in this build of React.");return rt.useEffect(te,Le)},t.useId=function(){return q().useId()},t.useImperativeHandle=function(te,Le,We){return q().useImperativeHandle(te,Le,We)},t.useInsertionEffect=function(te,Le){return te==null&&console.warn("React Hook useInsertionEffect requires an effect callback. Did you forget to pass a callback to the hook?"),q().useInsertionEffect(te,Le)},t.useLayoutEffect=function(te,Le){return te==null&&console.warn("React Hook useLayoutEffect requires an effect callback. Did you forget to pass a callback to the hook?"),q().useLayoutEffect(te,Le)},t.useMemo=function(te,Le){return q().useMemo(te,Le)},t.useOptimistic=function(te,Le){return q().useOptimistic(te,Le)},t.useReducer=function(te,Le,We){return q().useReducer(te,Le,We)},t.useRef=function(te){return q().useRef(te)},t.useState=function(te){return q().useState(te)},t.useSyncExternalStore=function(te,Le,We){return q().useSyncExternalStore(te,Le,We)},t.useTransition=function(){return q().useTransition()},t.version="19.1.0",typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())}()}(Vc,Vc.exports)),Vc.exports}var lE;function ka(){if(lE)return Ep.exports;lE=1;var e={};return e.NODE_ENV==="production"?Ep.exports=OI():Ep.exports=CI(),Ep.exports}var ae=ka();const xe=wc(ae),Sv=Mr({__proto__:null,default:xe},[ae]);var Sp={exports:{}},Mv={};/**
|
|
62
62
|
* @license React
|
|
63
63
|
* use-sync-external-store-with-selector.production.js
|
|
64
64
|
*
|
|
@@ -90,7 +90,7 @@ Take a look at the logic that dispatched this action: `,p,`
|
|
|
90
90
|
(See https://redux.js.org/faq/actions#why-should-type-be-a-string-or-at-least-serializable-why-should-my-action-types-be-constants)`,`
|
|
91
91
|
(To allow non-serializable values see: https://redux-toolkit.js.org/usage/usage-guide#working-with-non-serializable-data)`)}}),s||(v.measureTime(()=>{const b=f.getState(),L=Fv(b,"",t,n,a,Q);if(L){const{keyPath:S,value:_}=L;console.error(`A non-serializable value was detected in the state, in the path: \`${S}\`. Value:`,_,`
|
|
92
92
|
Take a look at the reducer(s) handling this action type: ${p.type}.
|
|
93
|
-
(See https://redux.js.org/faq/organizing-state#can-i-put-functions-promises-or-other-non-serializable-items-in-my-store-state)`)}}),v.warnIfExceeded()),g}}}function Bp(e){return typeof e=="boolean"}var UF=()=>function(t){const{thunk:n=!0,immutableCheck:l=!0,serializableCheck:o=!0,actionCreatorCheck:a=!0}=t??{};let i=new kE;if(n&&(Bp(n)?i.push(RF):i.push(kF(n.extraArgument))),wt.NODE_ENV!=="production"){if(l){let s={};Bp(l)||(s=l),i.unshift(qF(s))}if(o){let s={};Bp(o)||(s=o),i.push($F(s))}if(a){let s={};Bp(a)||(s=a),i.unshift(IF(s))}}return i},GF="RTK_autoBatch",FE=e=>t=>{setTimeout(t,e)},ZF=(e={type:"raf"})=>t=>(...n)=>{const l=t(...n);let o=!0,a=!1,i=!1;const s=new Set,T=e.type==="tick"?queueMicrotask:e.type==="raf"?typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:FE(10):e.type==="callback"?e.queueNotification:FE(e.timeout),u=()=>{i=!1,a&&(a=!1,s.forEach(Q=>Q()))};return Object.assign({},l,{subscribe(Q){const f=()=>o&&Q(),h=l.subscribe(f);return s.add(Q),()=>{h(),s.delete(Q)}},dispatch(Q){var f;try{return o=!((f=Q==null?void 0:Q.meta)!=null&&f[GF]),a=!o,a&&(i||(i=!0,T(u))),l.dispatch(Q)}finally{o=!0}}})},XF=e=>function(n){const{autoBatch:l=!0}=n??{};let o=new kE(e);return l&&o.push(ZF(typeof l=="object"?l:void 0)),o};function WF(e){const t=UF(),{reducer:n=void 0,middleware:l,devTools:o=!0,duplicateMiddlewareCheck:a=!0,preloadedState:i=void 0,enhancers:s=void 0}=e||{};let T;if(typeof n=="function")T=n;else if(Rc(n))T=lF(n);else throw new Error(wt.NODE_ENV==="production"?l2(1):"`reducer` is a required argument, and must be a function or an object of functions that can be passed to combineReducers");if(wt.NODE_ENV!=="production"&&l&&typeof l!="function")throw new Error(wt.NODE_ENV==="production"?l2(2):"`middleware` field must be a callback");let u;if(typeof l=="function"){if(u=l(t),wt.NODE_ENV!=="production"&&!Array.isArray(u))throw new Error(wt.NODE_ENV==="production"?l2(3):"when using a middleware builder function, an array of middleware must be returned")}else u=t();if(wt.NODE_ENV!=="production"&&u.some(v=>typeof v!="function"))throw new Error(wt.NODE_ENV==="production"?l2(4):"each middleware provided to configureStore must be a function");if(wt.NODE_ENV!=="production"&&a){let v=new Set;u.forEach(b=>{if(v.has(b))throw new Error(wt.NODE_ENV==="production"?l2(42):"Duplicate middleware references found when creating the store. Ensure that each middleware is only included once.");v.add(b)})}let Q=Ap;o&&(Q=NF({trace:wt.NODE_ENV!=="production",...typeof o=="object"&&o}));const f=sF(...u),h=XF(f);if(wt.NODE_ENV!=="production"&&s&&typeof s!="function")throw new Error(wt.NODE_ENV==="production"?l2(5):"`enhancers` field must be a callback");let p=typeof s=="function"?s(h):h();if(wt.NODE_ENV!=="production"&&!Array.isArray(p))throw new Error(wt.NODE_ENV==="production"?l2(6):"`enhancers` callback must return an array");if(wt.NODE_ENV!=="production"&&p.some(v=>typeof v!="function"))throw new Error(wt.NODE_ENV==="production"?l2(7):"each enhancer provided to configureStore must be a function");wt.NODE_ENV!=="production"&&u.length&&!p.includes(f)&&console.error("middlewares were provided, but middleware enhancer was not included in final enhancers - make sure to call `getDefaultEnhancers`");const g=Q(...p);return dE(T,i,g)}function zE(e){const t={},n=[];let l;const o={addCase(a,i){if(wt.NODE_ENV!=="production"){if(n.length>0)throw new Error(wt.NODE_ENV==="production"?l2(26):"`builder.addCase` should only be called before calling `builder.addMatcher`");if(l)throw new Error(wt.NODE_ENV==="production"?l2(27):"`builder.addCase` should only be called before calling `builder.addDefaultCase`")}const s=typeof a=="string"?a:a.type;if(!s)throw new Error(wt.NODE_ENV==="production"?l2(28):"`builder.addCase` cannot be called with an empty action type");if(s in t)throw new Error(wt.NODE_ENV==="production"?l2(29):`\`builder.addCase\` cannot be called with two reducers for the same action type '${s}'`);return t[s]=i,o},addMatcher(a,i){if(wt.NODE_ENV!=="production"&&l)throw new Error(wt.NODE_ENV==="production"?l2(30):"`builder.addMatcher` should only be called before calling `builder.addDefaultCase`");return n.push({matcher:a,reducer:i}),o},addDefaultCase(a){if(wt.NODE_ENV!=="production"&&l)throw new Error(wt.NODE_ENV==="production"?l2(31):"`builder.addDefaultCase` can only be called once");return l=a,o}};return e(o),[t,n,l]}function YF(e){return typeof e=="function"}function KF(e,t){if(wt.NODE_ENV!=="production"&&typeof t=="object")throw new Error(wt.NODE_ENV==="production"?l2(8):"The object notation for `createReducer` has been removed. Please use the 'builder callback' notation instead: https://redux-toolkit.js.org/api/createReducer");let[n,l,o]=zE(t),a;if(YF(e))a=()=>NE(e());else{const s=NE(e);a=()=>s}function i(s=a(),T){let u=[n[T.type],...l.filter(({matcher:Q})=>Q(T)).map(({reducer:Q})=>Q)];return u.filter(Q=>!!Q).length===0&&(u=[o]),u.reduce((Q,f)=>{if(f)if(M7(Q)){const p=f(Q,T);return p===void 0?Q:p}else{if(C0(Q))return AE(Q,h=>f(h,T));{const h=f(Q,T);if(h===void 0){if(Q===null)return Q;throw Error("A case reducer on a non-draftable value must not return undefined")}return h}}return Q},s)}return i.getInitialState=a,i}var JF=Symbol.for("rtk-slice-createasyncthunk");function ez(e,t){return`${e}/${t}`}function tz({creators:e}={}){var n;const t=(n=e==null?void 0:e.asyncThunk)==null?void 0:n[JF];return function(o){const{name:a,reducerPath:i=a}=o;if(!a)throw new Error(wt.NODE_ENV==="production"?l2(11):"`name` is a required option for createSlice");typeof process<"u"&&wt.NODE_ENV==="development"&&o.initialState===void 0&&console.error("You must provide an `initialState` value that is not `undefined`. You may have misspelled `initialState`");const s=(typeof o.reducers=="function"?o.reducers(rz()):o.reducers)||{},T=Object.keys(s),u={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},Q={addCase(O,E){const A=typeof O=="string"?O:O.type;if(!A)throw new Error(wt.NODE_ENV==="production"?l2(12):"`context.addCase` cannot be called with an empty action type");if(A in u.sliceCaseReducersByType)throw new Error(wt.NODE_ENV==="production"?l2(13):"`context.addCase` cannot be called with two reducers for the same action type: "+A);return u.sliceCaseReducersByType[A]=E,Q},addMatcher(O,E){return u.sliceMatchers.push({matcher:O,reducer:E}),Q},exposeAction(O,E){return u.actionCreators[O]=E,Q},exposeCaseReducer(O,E){return u.sliceCaseReducersByName[O]=E,Q}};T.forEach(O=>{const E=s[O],A={reducerName:O,type:ez(a,O),createNotation:typeof o.reducers=="function"};az(E)?lz(A,E,Q,t):iz(A,E,Q)});function f(){if(wt.NODE_ENV!=="production"&&typeof o.extraReducers=="object")throw new Error(wt.NODE_ENV==="production"?l2(14):"The object notation for `createSlice.extraReducers` has been removed. Please use the 'builder callback' notation instead: https://redux-toolkit.js.org/api/createSlice");const[O={},E=[],A=void 0]=typeof o.extraReducers=="function"?zE(o.extraReducers):[o.extraReducers],V={...O,...u.sliceCaseReducersByType};return KF(o.initialState,k=>{for(let B in V)k.addCase(B,V[B]);for(let B of u.sliceMatchers)k.addMatcher(B.matcher,B.reducer);for(let B of E)k.addMatcher(B.matcher,B.reducer);A&&k.addDefaultCase(A)})}const h=O=>O,p=new Map,g=new WeakMap;let v;function b(O,E){return v||(v=f()),v(O,E)}function L(){return v||(v=f()),v.getInitialState()}function S(O,E=!1){function A(k){let B=k[O];if(typeof B>"u"){if(E)B=Np(g,A,L);else if(wt.NODE_ENV!=="production")throw new Error(wt.NODE_ENV==="production"?l2(15):"selectSlice returned undefined for an uninjected slice reducer")}return B}function V(k=h){const B=Np(p,E,()=>new WeakMap);return Np(B,k,()=>{const R={};for(const[F,q]of Object.entries(o.selectors??{}))R[F]=nz(q,k,()=>Np(g,k,L),E);return R})}return{reducerPath:O,getSelectors:V,get selectors(){return V(A)},selectSlice:A}}const _={name:a,reducer:b,actions:u.actionCreators,caseReducers:u.sliceCaseReducersByName,getInitialState:L,...S(i),injectInto(O,{reducerPath:E,...A}={}){const V=E??i;return O.inject({reducerPath:V,reducer:b},A),{..._,...S(V,!0)}}};return _}}function nz(e,t,n,l){function o(a,...i){let s=t(a);if(typeof s>"u"){if(l)s=n();else if(wt.NODE_ENV!=="production")throw new Error(wt.NODE_ENV==="production"?l2(16):"selectState returned undefined for an uninjected slice reducer")}return e(s,...i)}return o.unwrapped=e,o}var O7=tz();function rz(){function e(t,n){return{_reducerDefinitionType:"asyncThunk",payloadCreator:t,...n}}return e.withTypes=()=>e,{reducer(t){return Object.assign({[t.name](...n){return t(...n)}}[t.name],{_reducerDefinitionType:"reducer"})},preparedReducer(t,n){return{_reducerDefinitionType:"reducerWithPrepare",prepare:t,reducer:n}},asyncThunk:e}}function iz({type:e,reducerName:t,createNotation:n},l,o){let a,i;if("reducer"in l){if(n&&!oz(l))throw new Error(wt.NODE_ENV==="production"?l2(17):"Please use the `create.preparedReducer` notation for prepared action creators with the `create` notation.");a=l.reducer,i=l.prepare}else a=l;o.addCase(e,a).exposeCaseReducer(t,a).exposeAction(t,i?DE(e,i):DE(e))}function az(e){return e._reducerDefinitionType==="asyncThunk"}function oz(e){return e._reducerDefinitionType==="reducerWithPrepare"}function lz({type:e,reducerName:t},n,l,o){if(!o)throw new Error(wt.NODE_ENV==="production"?l2(18):"Cannot use `create.asyncThunk` in the built-in `createSlice`. Use `buildCreateSlice({ creators: { asyncThunk: asyncThunkCreator } })` to create a customised version of `createSlice`.");const{payloadCreator:a,fulfilled:i,pending:s,rejected:T,settled:u,options:Q}=n,f=o(e,a,Q);l.exposeAction(t,f),i&&l.addCase(f.fulfilled,i),s&&l.addCase(f.pending,s),T&&l.addCase(f.rejected,T),u&&l.addMatcher(f.settled,u),l.exposeCaseReducer(t,{fulfilled:i||Pp,pending:s||Pp,rejected:T||Pp,settled:u||Pp})}function Pp(){}function l2(e){return`Minified Redux Toolkit error #${e}; visit https://redux-toolkit.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}class C7{constructor(t){oe(this,"store");oe(this,"disposables");this.store=t,this.disposables=new Array}dispose(){this.disposables.forEach(t=>t.dispose()),this.disposables.length=0}}const qE={value:"",index:-1},$E=O7({name:"braille",initialState:qE,reducers:{update(e,t){return t.payload},reset(){return qE}}}),{update:sz,reset:uz}=$E.actions;class cz extends C7{constructor(n,l){super(n);oe(this,"brailleService");this.brailleService=l,this.registerListener()}dispose(){super.dispose(),this.store.dispatch(uz())}registerListener(){this.disposables.push(this.brailleService.onChange(n=>{this.store.dispatch(sz(n))}))}get state(){return this.store.getState().braille}moveToIndex(n){this.brailleService.moveToIndex(n)}update(n){this.brailleService.update(n)}toggle(n){this.brailleService.toggle(n)}}const Tz=$E.reducer,Pc={OPENAI:{default:"gpt-4o",options:["gpt-4o","gpt-4o-mini","gpt-4.1","o1-mini","o3","o4-mini"],labels:{"gpt-4o":"GPT-4o","gpt-4o-mini":"GPT-4o Mini","gpt-4.1":"GPT-4.1","o1-mini":"o1-mini",o3:"o3","o4-mini":"o4-mini"}},ANTHROPIC_CLAUDE:{default:"claude-3-7-sonnet-latest",options:["claude-3-5-haiku-latest","claude-3-5-sonnet-latest","claude-3-7-sonnet-latest"],labels:{"claude-3-5-haiku-latest":"Claude 3.5 Haiku","claude-3-5-sonnet-latest":"Claude 3.5 Sonnet","claude-3-7-sonnet-latest":"Claude 3.7 Sonnet"}},GOOGLE_GEMINI:{default:"gemini-2.0-flash",options:["gemini-2.0-flash","gemini-2.0-flash-lite","gemini-2.5-flash-preview-04-17","gemini-2.5-pro-preview-05-06"],labels:{"gemini-2.0-flash":"Gemini 2.0 Flash","gemini-2.0-flash-lite":"Gemini 2.0 Flash Lite","gemini-2.5-flash-preview-04-17":"Gemini 2.5 Flash Preview","gemini-2.5-pro-preview-05-06":"Gemini 2.5 Pro Preview"}}},UE={messages:[],suggestions:[]};function GE(e){switch(e){case"OPENAI":return"OpenAI";case"ANTHROPIC_CLAUDE":return"Anthropic Claude";case"GOOGLE_GEMINI":return"Google Gemini";default:return"AI Assistant"}}const ZE=O7({name:"chat",initialState:UE,reducers:{addUserMessage:(e,t)=>{e.messages.push({id:`msg-${Date.now()}`,text:t.payload.text,isUser:!0,timestamp:t.payload.timestamp,status:"SUCCESS"})},addSystemMessage:(e,t)=>{e.messages.push({id:`system-${Date.now()}`,text:t.payload.text,isUser:!1,timestamp:t.payload.timestamp,status:"SUCCESS",modelSelections:t.payload.modelSelections,isWelcomeMessage:t.payload.isWelcomeMessage})},addPendingResponse:(e,t)=>{e.messages.push({id:`resp-${Date.now()}-${t.payload.model}`,text:"Processing request...",isUser:!1,model:t.payload.model,timestamp:t.payload.timestamp,status:"PENDING"})},updateResponse:(e,t)=>{const n=e.messages.find(l=>l.model===t.payload.model&&l.timestamp===t.payload.timestamp);n&&(n.text=t.payload.data,n.status="SUCCESS")},updateError:(e,t)=>{const n=e.messages.find(l=>l.model===t.payload.model&&l.timestamp===t.payload.timestamp);n&&(n.text=`Error: ${t.payload.error}`,n.status="FAILED")},updateSuggestions:(e,t)=>{e.suggestions=t.payload},reset(){return UE}}}),{addUserMessage:Qz,addSystemMessage:fz,addPendingResponse:dz,updateResponse:hz,updateError:XE,updateSuggestions:pz,reset:mz}=ZE.actions;class yz extends C7{constructor(n,l,o){super(n);oe(this,"chatService");oe(this,"audioService");this.chatService=l,this.audioService=o,this.loadInitialMessage()}dispose(){super.dispose(),this.store.dispatch(mz())}get state(){return this.snapshot.chat}get snapshot(){return this.store.getState()}get canSend(){const{llm:n}=this.snapshot.settings;return Object.values(n.models).some(l=>l.enabled)}toggle(){this.chatService.toggle()}loadInitialMessage(){const n=new Date().toISOString(),l=this.snapshot.settings.llm.models,o=Object.entries(l).filter(([s,T])=>T.enabled).map(([s,T])=>{var h;const u=(h=Pc[s])==null?void 0:h.labels,Q=(u==null?void 0:u[T.version])||T.version;return`${GE(s)} (${Q})`}),a=Object.entries(l).filter(([s,T])=>T.enabled).map(([s,T])=>({modelKey:s,name:GE(s),version:T.version})),i=o.length>0?`Welcome to the Chart Assistant. You can select and switch between different AI models using the dropdowns below. Currently enabled: ${o.join(", ")}.`:"No agents are enabled. Please enable at least one agent in the settings page.";this.store.dispatch(fz({text:i,timestamp:n,modelSelections:a,isWelcomeMessage:!0}))}generateSuggestions(){try{const n=this.state.messages[this.state.messages.length-1];if(!n||n.isUser)return[];const{llm:l}=this.snapshot.settings,o=l.expertiseLevel,a=Date.now(),i=[{id:`suggestion-${a}-1`,text:"Can you explain that in more detail?",type:"clarification"},{id:`suggestion-${a}-2`,text:"What can you say about the current datapoint?",type:"analysis"},{id:`suggestion-${a}-3`,text:"How does this compare to other data points?",type:"analysis"}];return o==="advanced"&&i.push({id:`suggestion-${a}-4`,text:"Can you perform a statistical analysis of this data?",type:"analysis"},{id:`suggestion-${a}-5`,text:"What are the potential outliers in this dataset?",type:"analysis"}),i}catch(n){return console.error("Error generating suggestions:",n),[]}}updateSuggestions(){const n=this.generateSuggestions();this.store.dispatch(pz(n))}isValidExpertiseLevel(n){return["basic","intermediate","advanced"].includes(n)}async sendMessage(n){const{llm:l}=this.snapshot.settings,o=new Date().toISOString();this.store.dispatch(Qz({text:n,timestamp:o}));const a=Object.keys(l.models).filter(i=>l.models[i].enabled);await Promise.all(a.map(async i=>{const s=this.audioService.playWaitingTone();try{this.store.dispatch(dz({model:i,timestamp:o}));const T=l.models[i],u=l.customExpertise&&["basic","intermediate","advanced"].includes(l.customExpertise)?l.customExpertise:l.expertiseLevel,Q=await this.chatService.sendMessage(i,{message:n,customInstruction:l.customInstruction,expertise:u,apiKey:T.apiKey});this.audioService.stop(s),Q.error?this.store.dispatch(XE({model:i,error:Q.error,timestamp:o})):(this.store.dispatch(hz({model:i,data:Q.data,timestamp:o})),this.audioService.playCompleteTone(),this.updateSuggestions())}catch(T){this.audioService.stop(s),this.store.dispatch(XE({model:i,error:T instanceof Error?T.message:"Error processing request",timestamp:o}))}}))}}const gz=ZE.reducer,WE={focus:null},YE=O7({name:"display",initialState:WE,reducers:{update(e,t){e.focus=t.payload},reset(){return WE}}}),{update:vz,reset:Lz}=YE.actions;class xz extends C7{constructor(n,l){super(n);oe(this,"displayService");this.displayService=l,this.registerListeners()}dispose(){super.dispose(),this.store.dispatch(Lz())}registerListeners(){this.disposables.push(this.displayService.onChange(n=>{this.store.dispatch(vz(n.value))}))}get state(){return this.store.getState().display}}const bz=YE.reducer,KE={items:[]},JE=O7({name:"help",initialState:KE,reducers:{setHelpItems(e,t){e.items=t.payload},reset(){return KE}}}),{setHelpItems:Hz,reset:Ez}=JE.actions;class Sz extends C7{constructor(n,l){super(n);oe(this,"helpService");this.helpService=l}toggle(){const n=this.helpService.getMenuItems();this.store.dispatch(Hz(n)),this.helpService.toggle()}dispose(){super.dispose(),this.store.dispatch(Ez())}get state(){return this.store.getState().help}}const Mz=JE.reducer,eS={value:""},tS=O7({name:"review",initialState:eS,reducers:{update(e,t){e.value=t.payload},reset(){return eS}}}),{update:Az,reset:_z}=tS.actions;class Oz extends C7{constructor(n,l){super(n);oe(this,"reviewService");this.reviewService=l,this.registerListener()}dispose(){super.dispose(),this.store.dispatch(_z())}registerListener(){this.disposables.push(this.reviewService.onChange(n=>{this.store.dispatch(Az(n.value))}))}get state(){return this.store.getState().review}toggle(n){this.reviewService.toggle(n)}}const Cz=tS.reducer,nS={general:{volume:50,highlightColor:"#03c809",brailleDisplaySize:32,minFrequency:200,maxFrequency:1e3,autoplayDuration:4e3,ariaMode:"assertive"},llm:{expertiseLevel:"basic",customInstruction:"",models:{OPENAI:{enabled:!1,apiKey:"",name:"OPENAI",version:"gpt-4o"},ANTHROPIC_CLAUDE:{enabled:!1,apiKey:"",name:"ANTHROPIC_CLAUDE",version:"claude-3-7-sonnet-latest"},GOOGLE_GEMINI:{enabled:!1,apiKey:"",name:"Gemini",version:"gemini-2.0-flash"}}}},rS=O7({name:"settings",initialState:nS,reducers:{update:(e,t)=>({...e,...t.payload}),reset:()=>nS}}),{update:jp,reset:wz}=rS.actions;class Vz extends C7{constructor(n,l){super(n);oe(this,"settingsService");this.settingsService=l,this.load()}dispose(){super.dispose(),this.store.dispatch(wz())}get state(){return this.store.getState().settings}load(){const n=this.settingsService.loadSettings();this.store.dispatch(jp(n))}saveAndClose(n){this.settingsService.saveSettings(n),this.store.dispatch(jp(n)),this.toggle()}saveSettings(n){this.settingsService.saveSettings(n),this.store.dispatch(jp(n))}reset(){const n=this.settingsService.resetSettings();this.store.dispatch(jp(n))}toggle(){this.settingsService.toggle()}}const Dz=rS.reducer,iS={enabled:!0,announce:!0,value:"",message:null},aS=O7({name:"text",initialState:iS,reducers:{update(e,t){e.message=null,e.value=t.payload},announceText(e,t){e.announce=t.payload},toggle(e,t){e.enabled=t.payload},notify(e,t){e.message=t.payload},reset(){return iS}}}),{update:Rz,announceText:kz,toggle:Nz,notify:Bz,reset:Pz}=aS.actions;class jz extends C7{constructor(n,l,o,a){super(n);oe(this,"textService");this.textService=l,this.registerListeners(o,a)}dispose(){super.dispose(),this.store.dispatch(Pz())}registerListeners(n,l){this.disposables.push(this.textService.onChange(o=>{this.update(o.value)})),this.disposables.push(n.onChange(o=>{this.notify(o.value)})),this.disposables.push(l.onChange(o=>{switch(o.type){case"start":this.setAriaAnnouncement(!1);break;case"stop":this.setAriaAnnouncement(!0);break}}))}get state(){return this.store.getState().text}toggle(){const n=this.textService.toggle();this.store.dispatch(Nz(n))}update(n){const l=this.textService.format(n);this.store.dispatch(Rz(l))}notify(n){this.store.dispatch(Bz(n))}setAriaAnnouncement(n){this.store.dispatch(kz(n))}}const Iz=aS.reducer,Pa=WF({reducer:{braille:Tz,chat:gz,display:bz,help:Mz,review:Cz,settings:Dz,text:Iz}}),Fz=()=>{const e=ae.useId(),t=Na("braille"),{value:n,index:l}=E7("braille"),o=ae.useRef(null),a=ae.useRef(l),i=s=>{const T=s.target,u=T.selectionStart;if(u>=n.length){T.setSelectionRange(a.current,a.current);return}u!==a.current&&(a.current=u,t.moveToIndex(u))};return ae.useEffect(()=>{const s=o.current;if(s)return s.addEventListener(E4.SELECTION_CHANGE,i),()=>{s.removeEventListener(E4.SELECTION_CHANGE,i)}},[]),ae.useEffect(()=>{const s=o.current;s&&(s.value=n,s.selectionStart=l,s.selectionEnd=l,s.focus(),a.current=l)},[n,l]),xe.createElement("div",{id:e},xe.createElement("textarea",{id:`${Le.BRAILLE_TEXT_AREA}-${e}`,ref:o,defaultValue:n,autoCapitalize:"off",rows:5,cols:50}))},oS=e=>e,lS=(()=>{let e=oS;return{configure(t){e=t},generate(t){return e(t)},reset(){e=oS}}})();function Ar(e,...t){const n=new URL(`https://mui.com/production-error/?code=${e}`);return t.forEach(l=>n.searchParams.append("args[]",l)),`Minified MUI error #${e}; visit ${n} for the full message.`}var zz={};function Ue(e){if(typeof e!="string")throw new Error(zz.NODE_ENV!=="production"?"MUI: `capitalize(string)` expects a string argument.":Ar(7));return e.charAt(0).toUpperCase()+e.slice(1)}function zv(...e){return e.reduce((t,n)=>n==null?t:function(...o){t.apply(this,o),n.apply(this,o)},()=>{})}var Ip={exports:{}},Fp={exports:{}},V1={};/** @license React v16.13.1
|
|
93
|
+
(See https://redux.js.org/faq/organizing-state#can-i-put-functions-promises-or-other-non-serializable-items-in-my-store-state)`)}}),v.warnIfExceeded()),g}}}function Bp(e){return typeof e=="boolean"}var UF=()=>function(t){const{thunk:n=!0,immutableCheck:l=!0,serializableCheck:o=!0,actionCreatorCheck:a=!0}=t??{};let i=new kE;if(n&&(Bp(n)?i.push(RF):i.push(kF(n.extraArgument))),wt.NODE_ENV!=="production"){if(l){let s={};Bp(l)||(s=l),i.unshift(qF(s))}if(o){let s={};Bp(o)||(s=o),i.push($F(s))}if(a){let s={};Bp(a)||(s=a),i.unshift(IF(s))}}return i},GF="RTK_autoBatch",FE=e=>t=>{setTimeout(t,e)},ZF=(e={type:"raf"})=>t=>(...n)=>{const l=t(...n);let o=!0,a=!1,i=!1;const s=new Set,T=e.type==="tick"?queueMicrotask:e.type==="raf"?typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:FE(10):e.type==="callback"?e.queueNotification:FE(e.timeout),u=()=>{i=!1,a&&(a=!1,s.forEach(Q=>Q()))};return Object.assign({},l,{subscribe(Q){const f=()=>o&&Q(),h=l.subscribe(f);return s.add(Q),()=>{h(),s.delete(Q)}},dispatch(Q){var f;try{return o=!((f=Q==null?void 0:Q.meta)!=null&&f[GF]),a=!o,a&&(i||(i=!0,T(u))),l.dispatch(Q)}finally{o=!0}}})},XF=e=>function(n){const{autoBatch:l=!0}=n??{};let o=new kE(e);return l&&o.push(ZF(typeof l=="object"?l:void 0)),o};function WF(e){const t=UF(),{reducer:n=void 0,middleware:l,devTools:o=!0,duplicateMiddlewareCheck:a=!0,preloadedState:i=void 0,enhancers:s=void 0}=e||{};let T;if(typeof n=="function")T=n;else if(Rc(n))T=lF(n);else throw new Error(wt.NODE_ENV==="production"?l2(1):"`reducer` is a required argument, and must be a function or an object of functions that can be passed to combineReducers");if(wt.NODE_ENV!=="production"&&l&&typeof l!="function")throw new Error(wt.NODE_ENV==="production"?l2(2):"`middleware` field must be a callback");let u;if(typeof l=="function"){if(u=l(t),wt.NODE_ENV!=="production"&&!Array.isArray(u))throw new Error(wt.NODE_ENV==="production"?l2(3):"when using a middleware builder function, an array of middleware must be returned")}else u=t();if(wt.NODE_ENV!=="production"&&u.some(v=>typeof v!="function"))throw new Error(wt.NODE_ENV==="production"?l2(4):"each middleware provided to configureStore must be a function");if(wt.NODE_ENV!=="production"&&a){let v=new Set;u.forEach(b=>{if(v.has(b))throw new Error(wt.NODE_ENV==="production"?l2(42):"Duplicate middleware references found when creating the store. Ensure that each middleware is only included once.");v.add(b)})}let Q=Ap;o&&(Q=NF({trace:wt.NODE_ENV!=="production",...typeof o=="object"&&o}));const f=sF(...u),h=XF(f);if(wt.NODE_ENV!=="production"&&s&&typeof s!="function")throw new Error(wt.NODE_ENV==="production"?l2(5):"`enhancers` field must be a callback");let p=typeof s=="function"?s(h):h();if(wt.NODE_ENV!=="production"&&!Array.isArray(p))throw new Error(wt.NODE_ENV==="production"?l2(6):"`enhancers` callback must return an array");if(wt.NODE_ENV!=="production"&&p.some(v=>typeof v!="function"))throw new Error(wt.NODE_ENV==="production"?l2(7):"each enhancer provided to configureStore must be a function");wt.NODE_ENV!=="production"&&u.length&&!p.includes(f)&&console.error("middlewares were provided, but middleware enhancer was not included in final enhancers - make sure to call `getDefaultEnhancers`");const g=Q(...p);return dE(T,i,g)}function zE(e){const t={},n=[];let l;const o={addCase(a,i){if(wt.NODE_ENV!=="production"){if(n.length>0)throw new Error(wt.NODE_ENV==="production"?l2(26):"`builder.addCase` should only be called before calling `builder.addMatcher`");if(l)throw new Error(wt.NODE_ENV==="production"?l2(27):"`builder.addCase` should only be called before calling `builder.addDefaultCase`")}const s=typeof a=="string"?a:a.type;if(!s)throw new Error(wt.NODE_ENV==="production"?l2(28):"`builder.addCase` cannot be called with an empty action type");if(s in t)throw new Error(wt.NODE_ENV==="production"?l2(29):`\`builder.addCase\` cannot be called with two reducers for the same action type '${s}'`);return t[s]=i,o},addMatcher(a,i){if(wt.NODE_ENV!=="production"&&l)throw new Error(wt.NODE_ENV==="production"?l2(30):"`builder.addMatcher` should only be called before calling `builder.addDefaultCase`");return n.push({matcher:a,reducer:i}),o},addDefaultCase(a){if(wt.NODE_ENV!=="production"&&l)throw new Error(wt.NODE_ENV==="production"?l2(31):"`builder.addDefaultCase` can only be called once");return l=a,o}};return e(o),[t,n,l]}function YF(e){return typeof e=="function"}function KF(e,t){if(wt.NODE_ENV!=="production"&&typeof t=="object")throw new Error(wt.NODE_ENV==="production"?l2(8):"The object notation for `createReducer` has been removed. Please use the 'builder callback' notation instead: https://redux-toolkit.js.org/api/createReducer");let[n,l,o]=zE(t),a;if(YF(e))a=()=>NE(e());else{const s=NE(e);a=()=>s}function i(s=a(),T){let u=[n[T.type],...l.filter(({matcher:Q})=>Q(T)).map(({reducer:Q})=>Q)];return u.filter(Q=>!!Q).length===0&&(u=[o]),u.reduce((Q,f)=>{if(f)if(M7(Q)){const p=f(Q,T);return p===void 0?Q:p}else{if(C0(Q))return AE(Q,h=>f(h,T));{const h=f(Q,T);if(h===void 0){if(Q===null)return Q;throw Error("A case reducer on a non-draftable value must not return undefined")}return h}}return Q},s)}return i.getInitialState=a,i}var JF=Symbol.for("rtk-slice-createasyncthunk");function ez(e,t){return`${e}/${t}`}function tz({creators:e}={}){var n;const t=(n=e==null?void 0:e.asyncThunk)==null?void 0:n[JF];return function(o){const{name:a,reducerPath:i=a}=o;if(!a)throw new Error(wt.NODE_ENV==="production"?l2(11):"`name` is a required option for createSlice");typeof process<"u"&&wt.NODE_ENV==="development"&&o.initialState===void 0&&console.error("You must provide an `initialState` value that is not `undefined`. You may have misspelled `initialState`");const s=(typeof o.reducers=="function"?o.reducers(rz()):o.reducers)||{},T=Object.keys(s),u={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},Q={addCase(O,E){const A=typeof O=="string"?O:O.type;if(!A)throw new Error(wt.NODE_ENV==="production"?l2(12):"`context.addCase` cannot be called with an empty action type");if(A in u.sliceCaseReducersByType)throw new Error(wt.NODE_ENV==="production"?l2(13):"`context.addCase` cannot be called with two reducers for the same action type: "+A);return u.sliceCaseReducersByType[A]=E,Q},addMatcher(O,E){return u.sliceMatchers.push({matcher:O,reducer:E}),Q},exposeAction(O,E){return u.actionCreators[O]=E,Q},exposeCaseReducer(O,E){return u.sliceCaseReducersByName[O]=E,Q}};T.forEach(O=>{const E=s[O],A={reducerName:O,type:ez(a,O),createNotation:typeof o.reducers=="function"};az(E)?lz(A,E,Q,t):iz(A,E,Q)});function f(){if(wt.NODE_ENV!=="production"&&typeof o.extraReducers=="object")throw new Error(wt.NODE_ENV==="production"?l2(14):"The object notation for `createSlice.extraReducers` has been removed. Please use the 'builder callback' notation instead: https://redux-toolkit.js.org/api/createSlice");const[O={},E=[],A=void 0]=typeof o.extraReducers=="function"?zE(o.extraReducers):[o.extraReducers],V={...O,...u.sliceCaseReducersByType};return KF(o.initialState,k=>{for(let B in V)k.addCase(B,V[B]);for(let B of u.sliceMatchers)k.addMatcher(B.matcher,B.reducer);for(let B of E)k.addMatcher(B.matcher,B.reducer);A&&k.addDefaultCase(A)})}const h=O=>O,p=new Map,g=new WeakMap;let v;function b(O,E){return v||(v=f()),v(O,E)}function L(){return v||(v=f()),v.getInitialState()}function S(O,E=!1){function A(k){let B=k[O];if(typeof B>"u"){if(E)B=Np(g,A,L);else if(wt.NODE_ENV!=="production")throw new Error(wt.NODE_ENV==="production"?l2(15):"selectSlice returned undefined for an uninjected slice reducer")}return B}function V(k=h){const B=Np(p,E,()=>new WeakMap);return Np(B,k,()=>{const R={};for(const[F,q]of Object.entries(o.selectors??{}))R[F]=nz(q,k,()=>Np(g,k,L),E);return R})}return{reducerPath:O,getSelectors:V,get selectors(){return V(A)},selectSlice:A}}const _={name:a,reducer:b,actions:u.actionCreators,caseReducers:u.sliceCaseReducersByName,getInitialState:L,...S(i),injectInto(O,{reducerPath:E,...A}={}){const V=E??i;return O.inject({reducerPath:V,reducer:b},A),{..._,...S(V,!0)}}};return _}}function nz(e,t,n,l){function o(a,...i){let s=t(a);if(typeof s>"u"){if(l)s=n();else if(wt.NODE_ENV!=="production")throw new Error(wt.NODE_ENV==="production"?l2(16):"selectState returned undefined for an uninjected slice reducer")}return e(s,...i)}return o.unwrapped=e,o}var O7=tz();function rz(){function e(t,n){return{_reducerDefinitionType:"asyncThunk",payloadCreator:t,...n}}return e.withTypes=()=>e,{reducer(t){return Object.assign({[t.name](...n){return t(...n)}}[t.name],{_reducerDefinitionType:"reducer"})},preparedReducer(t,n){return{_reducerDefinitionType:"reducerWithPrepare",prepare:t,reducer:n}},asyncThunk:e}}function iz({type:e,reducerName:t,createNotation:n},l,o){let a,i;if("reducer"in l){if(n&&!oz(l))throw new Error(wt.NODE_ENV==="production"?l2(17):"Please use the `create.preparedReducer` notation for prepared action creators with the `create` notation.");a=l.reducer,i=l.prepare}else a=l;o.addCase(e,a).exposeCaseReducer(t,a).exposeAction(t,i?DE(e,i):DE(e))}function az(e){return e._reducerDefinitionType==="asyncThunk"}function oz(e){return e._reducerDefinitionType==="reducerWithPrepare"}function lz({type:e,reducerName:t},n,l,o){if(!o)throw new Error(wt.NODE_ENV==="production"?l2(18):"Cannot use `create.asyncThunk` in the built-in `createSlice`. Use `buildCreateSlice({ creators: { asyncThunk: asyncThunkCreator } })` to create a customised version of `createSlice`.");const{payloadCreator:a,fulfilled:i,pending:s,rejected:T,settled:u,options:Q}=n,f=o(e,a,Q);l.exposeAction(t,f),i&&l.addCase(f.fulfilled,i),s&&l.addCase(f.pending,s),T&&l.addCase(f.rejected,T),u&&l.addMatcher(f.settled,u),l.exposeCaseReducer(t,{fulfilled:i||Pp,pending:s||Pp,rejected:T||Pp,settled:u||Pp})}function Pp(){}function l2(e){return`Minified Redux Toolkit error #${e}; visit https://redux-toolkit.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}class C7{constructor(t){oe(this,"store");oe(this,"disposables");this.store=t,this.disposables=new Array}dispose(){this.disposables.forEach(t=>t.dispose()),this.disposables.length=0}}const qE={value:"",index:-1},$E=O7({name:"braille",initialState:qE,reducers:{update(e,t){return t.payload},reset(){return qE}}}),{update:sz,reset:uz}=$E.actions;class cz extends C7{constructor(n,l){super(n);oe(this,"brailleService");this.brailleService=l,this.registerListener()}dispose(){super.dispose(),this.store.dispatch(uz())}registerListener(){this.disposables.push(this.brailleService.onChange(n=>{this.store.dispatch(sz(n))}))}get state(){return this.store.getState().braille}moveToIndex(n){this.brailleService.moveToIndex(n)}update(n){this.brailleService.update(n)}toggle(n){this.brailleService.toggle(n)}}const Tz=$E.reducer,Pc={OPENAI:{default:"gpt-4o",options:["gpt-4o","gpt-4o-mini","gpt-4.1","o1-mini","o3","o4-mini"],labels:{"gpt-4o":"GPT-4o","gpt-4o-mini":"GPT-4o Mini","gpt-4.1":"GPT-4.1","o1-mini":"o1-mini",o3:"o3","o4-mini":"o4-mini"}},ANTHROPIC_CLAUDE:{default:"claude-3-7-sonnet-latest",options:["claude-3-5-haiku-latest","claude-3-5-sonnet-latest","claude-3-7-sonnet-latest"],labels:{"claude-3-5-haiku-latest":"Claude 3.5 Haiku","claude-3-5-sonnet-latest":"Claude 3.5 Sonnet","claude-3-7-sonnet-latest":"Claude 3.7 Sonnet"}},GOOGLE_GEMINI:{default:"gemini-2.0-flash",options:["gemini-2.0-flash","gemini-2.0-flash-lite","gemini-2.5-flash-preview-04-17","gemini-2.5-pro-preview-05-06"],labels:{"gemini-2.0-flash":"Gemini 2.0 Flash","gemini-2.0-flash-lite":"Gemini 2.0 Flash Lite","gemini-2.5-flash-preview-04-17":"Gemini 2.5 Flash Preview","gemini-2.5-pro-preview-05-06":"Gemini 2.5 Pro Preview"}}},UE={messages:[],suggestions:[]};function GE(e){switch(e){case"OPENAI":return"OpenAI";case"ANTHROPIC_CLAUDE":return"Anthropic Claude";case"GOOGLE_GEMINI":return"Google Gemini";default:return"AI Assistant"}}const ZE=O7({name:"chat",initialState:UE,reducers:{addUserMessage:(e,t)=>{e.messages.push({id:`msg-${Date.now()}`,text:t.payload.text,isUser:!0,timestamp:t.payload.timestamp,status:"SUCCESS"})},addSystemMessage:(e,t)=>{e.messages.push({id:`system-${Date.now()}`,text:t.payload.text,isUser:!1,timestamp:t.payload.timestamp,status:"SUCCESS",modelSelections:t.payload.modelSelections,isWelcomeMessage:t.payload.isWelcomeMessage})},addPendingResponse:(e,t)=>{e.messages.push({id:`resp-${Date.now()}-${t.payload.model}`,text:"Processing request...",isUser:!1,model:t.payload.model,timestamp:t.payload.timestamp,status:"PENDING"})},updateResponse:(e,t)=>{const n=e.messages.find(l=>l.model===t.payload.model&&l.timestamp===t.payload.timestamp);n&&(n.text=t.payload.data,n.status="SUCCESS")},updateError:(e,t)=>{const n=e.messages.find(l=>l.model===t.payload.model&&l.timestamp===t.payload.timestamp);n&&(n.text=`Error: ${t.payload.error}`,n.status="FAILED")},updateSuggestions:(e,t)=>{e.suggestions=t.payload},reset(){return UE}}}),{addUserMessage:Qz,addSystemMessage:fz,addPendingResponse:dz,updateResponse:hz,updateError:XE,updateSuggestions:pz,reset:mz}=ZE.actions;class yz extends C7{constructor(n,l,o){super(n);oe(this,"chatService");oe(this,"audioService");this.chatService=l,this.audioService=o,this.loadInitialMessage()}dispose(){super.dispose(),this.store.dispatch(mz())}get state(){return this.snapshot.chat}get snapshot(){return this.store.getState()}get canSend(){const{llm:n}=this.snapshot.settings;return Object.values(n.models).some(l=>l.enabled)}toggle(){this.chatService.toggle()}loadInitialMessage(){const n=new Date().toISOString(),l=this.snapshot.settings.llm.models,o=Object.entries(l).filter(([s,T])=>T.enabled).map(([s,T])=>{var h;const u=(h=Pc[s])==null?void 0:h.labels,Q=(u==null?void 0:u[T.version])||T.version;return`${GE(s)} (${Q})`}),a=Object.entries(l).filter(([s,T])=>T.enabled).map(([s,T])=>({modelKey:s,name:GE(s),version:T.version})),i=o.length>0?`Welcome to the Chart Assistant. You can select and switch between different AI models using the dropdowns below. Currently enabled: ${o.join(", ")}.`:"No agents are enabled. Please enable at least one agent in the settings page.";this.store.dispatch(fz({text:i,timestamp:n,modelSelections:a,isWelcomeMessage:!0}))}generateSuggestions(){try{const n=this.state.messages[this.state.messages.length-1];if(!n||n.isUser)return[];const{llm:l}=this.snapshot.settings,o=l.expertiseLevel,a=Date.now(),i=[{id:`suggestion-${a}-1`,text:"Can you explain that in more detail?",type:"clarification"},{id:`suggestion-${a}-2`,text:"What can you say about the current datapoint?",type:"analysis"},{id:`suggestion-${a}-3`,text:"How does this compare to other data points?",type:"analysis"}];return o==="advanced"&&i.push({id:`suggestion-${a}-4`,text:"Can you perform a statistical analysis of this data?",type:"analysis"},{id:`suggestion-${a}-5`,text:"What are the potential outliers in this dataset?",type:"analysis"}),i}catch(n){return console.error("Error generating suggestions:",n),[]}}updateSuggestions(){const n=this.generateSuggestions();this.store.dispatch(pz(n))}isValidExpertiseLevel(n){return["basic","intermediate","advanced"].includes(n)}async sendMessage(n){const{llm:l}=this.snapshot.settings,o=new Date().toISOString();this.store.dispatch(Qz({text:n,timestamp:o}));const a=Object.keys(l.models).filter(i=>l.models[i].enabled);await Promise.all(a.map(async i=>{const s=this.audioService.playWaitingTone();try{this.store.dispatch(dz({model:i,timestamp:o}));const T=l.models[i],u=l.customExpertise&&["basic","intermediate","advanced"].includes(l.customExpertise)?l.customExpertise:l.expertiseLevel,Q=await this.chatService.sendMessage(i,{message:n,customInstruction:l.customInstruction,expertise:u,apiKey:T.apiKey});this.audioService.stop(s),Q.error?this.store.dispatch(XE({model:i,error:Q.error,timestamp:o})):(this.store.dispatch(hz({model:i,data:Q.data,timestamp:o})),this.audioService.playCompleteTone(),this.updateSuggestions())}catch(T){this.audioService.stop(s),this.store.dispatch(XE({model:i,error:T instanceof Error?T.message:"Error processing request",timestamp:o}))}}))}}const gz=ZE.reducer,WE={focus:null},YE=O7({name:"display",initialState:WE,reducers:{update(e,t){e.focus=t.payload},reset(){return WE}}}),{update:vz,reset:Lz}=YE.actions;class xz extends C7{constructor(n,l){super(n);oe(this,"displayService");this.displayService=l,this.registerListeners()}dispose(){super.dispose(),this.store.dispatch(Lz())}registerListeners(){this.disposables.push(this.displayService.onChange(n=>{this.store.dispatch(vz(n.value))}))}get state(){return this.store.getState().display}}const bz=YE.reducer,KE={items:[]},JE=O7({name:"help",initialState:KE,reducers:{setHelpItems(e,t){e.items=t.payload},reset(){return KE}}}),{setHelpItems:Hz,reset:Ez}=JE.actions;class Sz extends C7{constructor(n,l){super(n);oe(this,"helpService");this.helpService=l}toggle(){const n=this.helpService.getMenuItems();this.store.dispatch(Hz(n)),this.helpService.toggle()}dispose(){super.dispose(),this.store.dispatch(Ez())}get state(){return this.store.getState().help}}const Mz=JE.reducer,eS={value:""},tS=O7({name:"review",initialState:eS,reducers:{update(e,t){e.value=t.payload},reset(){return eS}}}),{update:Az,reset:_z}=tS.actions;class Oz extends C7{constructor(n,l){super(n);oe(this,"reviewService");this.reviewService=l,this.registerListener()}dispose(){super.dispose(),this.store.dispatch(_z())}registerListener(){this.disposables.push(this.reviewService.onChange(n=>{this.store.dispatch(Az(n.value))}))}get state(){return this.store.getState().review}toggle(n){this.reviewService.toggle(n)}}const Cz=tS.reducer,nS={general:{volume:50,highlightColor:"#03c809",brailleDisplaySize:32,minFrequency:200,maxFrequency:1e3,autoplayDuration:4e3,ariaMode:"assertive"},llm:{expertiseLevel:"basic",customInstruction:"",models:{OPENAI:{enabled:!1,apiKey:"",name:"OPENAI",version:"gpt-4o"},ANTHROPIC_CLAUDE:{enabled:!1,apiKey:"",name:"ANTHROPIC_CLAUDE",version:"claude-3-7-sonnet-latest"},GOOGLE_GEMINI:{enabled:!1,apiKey:"",name:"Gemini",version:"gemini-2.0-flash"}}}},rS=O7({name:"settings",initialState:nS,reducers:{update:(e,t)=>({...e,...t.payload}),reset:()=>nS}}),{update:jp,reset:wz}=rS.actions;class Vz extends C7{constructor(n,l){super(n);oe(this,"settingsService");this.settingsService=l,this.load()}dispose(){super.dispose(),this.store.dispatch(wz())}get state(){return this.store.getState().settings}load(){const n=this.settingsService.loadSettings();this.store.dispatch(jp(n))}saveAndClose(n){this.settingsService.saveSettings(n),this.store.dispatch(jp(n)),this.toggle()}saveSettings(n){this.settingsService.saveSettings(n),this.store.dispatch(jp(n))}reset(){const n=this.settingsService.resetSettings();this.store.dispatch(jp(n))}toggle(){this.settingsService.toggle()}}const Dz=rS.reducer,iS={enabled:!0,announce:!0,value:"",message:null},aS=O7({name:"text",initialState:iS,reducers:{update(e,t){e.message=null,e.value=t.payload},announceText(e,t){e.announce=t.payload},toggle(e,t){e.enabled=t.payload},notify(e,t){e.message=t.payload},reset(){return iS}}}),{update:Rz,announceText:kz,toggle:Nz,notify:Bz,reset:Pz}=aS.actions;class jz extends C7{constructor(n,l,o,a){super(n);oe(this,"textService");this.textService=l,this.registerListeners(o,a)}dispose(){super.dispose(),this.store.dispatch(Pz())}registerListeners(n,l){this.disposables.push(this.textService.onChange(o=>{this.update(o.value)})),this.disposables.push(n.onChange(o=>{this.notify(o.value)})),this.disposables.push(l.onChange(o=>{switch(o.type){case"start":this.setAriaAnnouncement(!1);break;case"stop":this.setAriaAnnouncement(!0);break}}))}get state(){return this.store.getState().text}toggle(){const n=this.textService.toggle();this.store.dispatch(Nz(n))}update(n){const l=this.textService.format(n);this.store.dispatch(Rz(l))}notify(n){this.store.dispatch(Bz(n))}setAriaAnnouncement(n){this.store.dispatch(kz(n))}}const Iz=aS.reducer,Pa=WF({reducer:{braille:Tz,chat:gz,display:bz,help:Mz,review:Cz,settings:Dz,text:Iz}}),Fz=()=>{const e=ae.useId(),t=Na("braille"),{value:n,index:l}=E7("braille"),o=ae.useRef(null),a=ae.useRef(l),i=s=>{const T=s.target,u=T.selectionStart;if(u>=n.length){T.setSelectionRange(a.current,a.current);return}u!==a.current&&(a.current=u,t.moveToIndex(u))};return ae.useEffect(()=>{const s=o.current;if(s)return s.addEventListener(E4.SELECTION_CHANGE,i),()=>{s.removeEventListener(E4.SELECTION_CHANGE,i)}},[]),ae.useEffect(()=>{const s=o.current;s&&(s.value=n,s.selectionStart=l,s.selectionEnd=l,s.focus(),a.current=l)},[n,l]),xe.createElement("div",{id:e},xe.createElement("textarea",{id:`${ve.BRAILLE_TEXT_AREA}-${e}`,ref:o,defaultValue:n,autoCapitalize:"off",rows:5,cols:50}))},oS=e=>e,lS=(()=>{let e=oS;return{configure(t){e=t},generate(t){return e(t)},reset(){e=oS}}})();function Ar(e,...t){const n=new URL(`https://mui.com/production-error/?code=${e}`);return t.forEach(l=>n.searchParams.append("args[]",l)),`Minified MUI error #${e}; visit ${n} for the full message.`}var zz={};function Ue(e){if(typeof e!="string")throw new Error(zz.NODE_ENV!=="production"?"MUI: `capitalize(string)` expects a string argument.":Ar(7));return e.charAt(0).toUpperCase()+e.slice(1)}function zv(...e){return e.reduce((t,n)=>n==null?t:function(...o){t.apply(this,o),n.apply(this,o)},()=>{})}var Ip={exports:{}},Fp={exports:{}},V1={};/** @license React v16.13.1
|
|
94
94
|
* react-is.production.min.js
|
|
95
95
|
*
|
|
96
96
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
@@ -329,9 +329,9 @@ See https://react.dev/link/invalid-hook-call for tips about how to debug and fix
|
|
|
329
329
|
`)),p!==null&&Xe<p){const st=Xe-p;Xe-=st,ze.horizontal+=st}else if(ot>p1){const st=ot-p1;Xe-=st,ze.horizontal+=st}return{top:`${Math.round(Pe)}px`,left:`${Math.round(Xe)}px`,transformOrigin:a_(ze)}},[a,T,F,q,p]),[Z,J]=ae.useState(g),W=ae.useCallback(()=>{const Ee=k.current;if(!Ee)return;const _e=$(Ee);_e.top!==null&&Ee.style.setProperty("top",_e.top),_e.left!==null&&(Ee.style.left=_e.left),Ee.style.transformOrigin=_e.transformOrigin,J(!0)},[$]);ae.useEffect(()=>(A&&window.addEventListener("scroll",W),()=>window.removeEventListener("scroll",W)),[a,A,W]);const ne=()=>{W()},K=()=>{J(!1)};ae.useEffect(()=>{g&&W()}),ae.useImperativeHandle(o,()=>g?{updatePosition:()=>{W()}}:null,[g,W]),ae.useEffect(()=>{if(!g)return;const Ee=jM(()=>{W()}),_e=R0(xT(a));return _e.addEventListener("resize",Ee),()=>{Ee.clear(),_e.removeEventListener("resize",Ee)}},[a,g,W]);let Y=O;const j={slots:{transition:_,...b},slotProps:{transition:E,paper:v,...L}},[z,ee]=r1("transition",{elementType:qm,externalForwardedProps:j,ownerState:B,getSlotProps:Ee=>({...Ee,onEntering:(_e,ze)=>{var ue;(ue=Ee.onEntering)==null||ue.call(Ee,_e,ze),ne()},onExited:_e=>{var ze;(ze=Ee.onExited)==null||ze.call(Ee,_e),K()}}),additionalProps:{appear:!0,in:g}});O==="auto"&&!z.muiSupportAuto&&(Y=void 0);const U=f||(a?M4(xT(a)).body:void 0),[de,{slots:pe,slotProps:he,...se}]=r1("root",{ref:n,elementType:lK,externalForwardedProps:{...j,...V},shouldForwardComponentProp:!0,additionalProps:{slots:{backdrop:b.backdrop},slotProps:{backdrop:aZ(typeof L.backdrop=="function"?L.backdrop(B):L.backdrop,{invisible:!0})},container:U,open:g},ownerState:B,className:dt(R.root,Q)}),[fe,Se]=r1("paper",{ref:k,className:R.paper,elementType:o_,externalForwardedProps:j,shouldForwardComponentProp:!0,additionalProps:{elevation:h,style:Z?void 0:{opacity:0}},ownerState:B});return He.jsx(de,{...se,...!P7(de)&&{slots:pe,slotProps:he,disableScrollLock:A},children:He.jsx(z,{...ee,timeout:Y,children:He.jsx(fe,{...Se,children:u})})})});$s.NODE_ENV!=="production"&&(l_.propTypes={action:xn,anchorEl:k0(M.oneOfType([TT,M.func]),e=>{if(e.open&&(!e.anchorReference||e.anchorReference==="anchorEl")){const t=xT(e.anchorEl);if(t&&t.nodeType===1){const n=t.getBoundingClientRect();if($s.NODE_ENV!=="test"&&n.top===0&&n.left===0&&n.right===0&&n.bottom===0)return new Error(["MUI: The `anchorEl` prop provided to the component is invalid.","The anchor element should be part of the document layout.","Make sure the element is present in the document or that it's not display none."].join(`
|
|
330
330
|
`))}else return new Error(["MUI: The `anchorEl` prop provided to the component is invalid.",`It should be an Element or PopoverVirtualElement instance but it's \`${t}\` instead.`].join(`
|
|
331
331
|
`))}return null}),anchorOrigin:M.shape({horizontal:M.oneOfType([M.oneOf(["center","left","right"]),M.number]).isRequired,vertical:M.oneOfType([M.oneOf(["bottom","center","top"]),M.number]).isRequired}),anchorPosition:M.shape({left:M.number.isRequired,top:M.number.isRequired}),anchorReference:M.oneOf(["anchorEl","anchorPosition","none"]),BackdropComponent:M.elementType,BackdropProps:M.object,children:M.node,classes:M.object,className:M.string,container:M.oneOfType([TT,M.func]),disableScrollLock:M.bool,elevation:oA,marginThreshold:M.number,onClose:M.func,open:M.bool.isRequired,PaperProps:M.shape({component:CL}),slotProps:M.shape({backdrop:M.oneOfType([M.func,M.object]),paper:M.oneOfType([M.func,M.object]),root:M.oneOfType([M.func,M.object]),transition:M.oneOfType([M.func,M.object])}),slots:M.shape({backdrop:M.elementType,paper:M.elementType,root:M.elementType,transition:M.elementType}),sx:M.oneOfType([M.arrayOf(M.oneOfType([M.func,M.object,M.bool])),M.func,M.object]),transformOrigin:M.shape({horizontal:M.oneOfType([M.oneOf(["center","left","right"]),M.number]).isRequired,vertical:M.oneOfType([M.oneOf(["bottom","center","top"]),M.number]).isRequired}),TransitionComponent:M.elementType,transitionDuration:M.oneOfType([M.oneOf(["auto"]),M.number,M.shape({appear:M.number,enter:M.number,exit:M.number})]),TransitionProps:M.object});function sK(e){return Ft("MuiMenu",e)}Bt("MuiMenu",["root","paper","list"]);var s_={};const uK={vertical:"top",horizontal:"right"},cK={vertical:"top",horizontal:"left"},TK=e=>{const{classes:t}=e;return Zt({root:["root"],paper:["paper"],list:["list"]},sK,t)},QK=Ke(l_,{shouldForwardProp:e=>S4(e)||e==="classes",name:"MuiMenu",slot:"Root"})({}),fK=Ke(o_,{name:"MuiMenu",slot:"Paper"})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),dK=Ke(n_,{name:"MuiMenu",slot:"List"})({outline:0}),u_=ae.forwardRef(function(t,n){const l=n1({props:t,name:"MuiMenu"}),{autoFocus:o=!0,children:a,className:i,disableAutoFocusItem:s=!1,MenuListProps:T={},onClose:u,open:Q,PaperProps:f={},PopoverClasses:h,transitionDuration:p="auto",TransitionProps:{onEntering:g,...v}={},variant:b="selectedMenu",slots:L={},slotProps:S={},..._}=l,O=LM(),E={...l,autoFocus:o,disableAutoFocusItem:s,MenuListProps:T,onEntering:g,PaperProps:f,transitionDuration:p,TransitionProps:v,variant:b},A=TK(E),V=o&&!s&&Q,k=ae.useRef(null),B=(Y,j)=>{k.current&&k.current.adjustStyleForScrollbar(Y,{direction:O?"rtl":"ltr"}),g&&g(Y,j)},R=Y=>{Y.key==="Tab"&&(Y.preventDefault(),u&&u(Y,"tabKeyDown"))};let F=-1;ae.Children.map(a,(Y,j)=>{ae.isValidElement(Y)&&(s_.NODE_ENV!=="production"&&w7.isFragment(Y)&&console.error(["MUI: The Menu component doesn't accept a Fragment as a child.","Consider providing an array instead."].join(`
|
|
332
|
-
`)),Y.props.disabled||(b==="selectedMenu"&&Y.props.selected||F===-1)&&(F=j))});const q={slots:L,slotProps:{list:T,transition:v,paper:f,...S}},$=B0({elementType:L.root,externalSlotProps:S.root,ownerState:E,className:[A.root,i]}),[Z,J]=r1("paper",{className:A.paper,elementType:fK,externalForwardedProps:q,shouldForwardComponentProp:!0,ownerState:E}),[W,ne]=r1("list",{className:dt(A.list,T.className),elementType:dK,shouldForwardComponentProp:!0,externalForwardedProps:q,getSlotProps:Y=>({...Y,onKeyDown:j=>{var z;R(j),(z=Y.onKeyDown)==null||z.call(Y,j)}}),ownerState:E}),K=typeof q.slotProps.transition=="function"?q.slotProps.transition(E):q.slotProps.transition;return He.jsx(QK,{onClose:u,anchorOrigin:{vertical:"bottom",horizontal:O?"right":"left"},transformOrigin:O?uK:cK,slots:{root:L.root,paper:Z,backdrop:L.backdrop,...L.transition&&{transition:L.transition}},slotProps:{root:$,paper:J,backdrop:typeof S.backdrop=="function"?S.backdrop(E):S.backdrop,transition:{...K,onEntering:(...Y)=>{var j;B(...Y),(j=K==null?void 0:K.onEntering)==null||j.call(K,...Y)}}},open:Q,ref:n,transitionDuration:p,ownerState:E,..._,classes:h,children:He.jsx(W,{actions:k,autoFocus:o&&(F===-1||s),autoFocusItem:V,variant:b,...ne,children:a})})});s_.NODE_ENV!=="production"&&(u_.propTypes={anchorEl:M.oneOfType([TT,M.func]),autoFocus:M.bool,children:M.node,classes:M.object,className:M.string,disableAutoFocusItem:M.bool,MenuListProps:M.object,onClose:M.func,open:M.bool.isRequired,PaperProps:M.object,PopoverClasses:M.object,slotProps:M.shape({backdrop:M.oneOfType([M.func,M.object]),list:M.oneOfType([M.func,M.object]),paper:M.oneOfType([M.func,M.object]),root:M.oneOfType([M.func,M.object]),transition:M.oneOfType([M.func,M.object])}),slots:M.shape({backdrop:M.elementType,list:M.elementType,paper:M.elementType,root:M.elementType,transition:M.elementType}),sx:M.oneOfType([M.arrayOf(M.oneOfType([M.func,M.object,M.bool])),M.func,M.object]),transitionDuration:M.oneOfType([M.oneOf(["auto"]),M.number,M.shape({appear:M.number,enter:M.number,exit:M.number})]),TransitionProps:M.object,variant:M.oneOf(["menu","selectedMenu"])});function hK(e){return Ft("MuiMenuItem",e)}const bT=Bt("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]);var c_={};const pK=(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.divider&&t.divider,!n.disableGutters&&t.gutters]},mK=e=>{const{disabled:t,dense:n,divider:l,disableGutters:o,selected:a,classes:i}=e,T=Zt({root:["root",n&&"dense",t&&"disabled",!o&&"gutters",l&&"divider",a&&"selected"]},hK,i);return{...i,...T}},yK=Ke(B7,{shouldForwardProp:e=>S4(e)||e==="classes",name:"MuiMenuItem",slot:"Root",overridesResolver:pK})(Rt(({theme:e})=>({...e.typography.body1,display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minHeight:48,paddingTop:6,paddingBottom:6,boxSizing:"border-box",whiteSpace:"nowrap","&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${bT.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:O1(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${bT.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:O1(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${bT.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:O1(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:O1(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${bT.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${bT.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${NA.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${NA.inset}`]:{marginLeft:52},[`& .${KA.root}`]:{marginTop:0,marginBottom:0},[`& .${KA.inset}`]:{paddingLeft:36},[`& .${YA.root}`]:{minWidth:36},variants:[{props:({ownerState:t})=>!t.disableGutters,style:{paddingLeft:16,paddingRight:16}},{props:({ownerState:t})=>t.divider,style:{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"}},{props:({ownerState:t})=>!t.dense,style:{[e.breakpoints.up("sm")]:{minHeight:"auto"}}},{props:({ownerState:t})=>t.dense,style:{minHeight:32,paddingTop:4,paddingBottom:4,...e.typography.body2,[`& .${YA.root} svg`]:{fontSize:"1.25rem"}}}]}))),F7=ae.forwardRef(function(t,n){const l=n1({props:t,name:"MuiMenuItem"}),{autoFocus:o=!1,component:a="li",dense:i=!1,divider:s=!1,disableGutters:T=!1,focusVisibleClassName:u,role:Q="menuitem",tabIndex:f,className:h,...p}=l,g=ae.useContext(Um),v=ae.useMemo(()=>({dense:i||g.dense||!1,disableGutters:T}),[g.dense,i,T]),b=ae.useRef(null);V0(()=>{o&&(b.current?b.current.focus():c_.NODE_ENV!=="production"&&console.error("MUI: Unable to set focus to a MenuItem whose component has not been rendered."))},[o]);const L={...l,dense:v.dense,divider:s,disableGutters:T},S=mK(l),_=v3(b,n);let O;return l.disabled||(O=f!==void 0?f:-1),He.jsx(Um.Provider,{value:v,children:He.jsx(yK,{ref:_,role:Q,tabIndex:O,component:a,focusVisibleClassName:dt(S.focusVisible,u),className:dt(S.root,h),...p,ownerState:L,classes:S})})});c_.NODE_ENV!=="production"&&(F7.propTypes={autoFocus:M.bool,children:M.node,classes:M.object,className:M.string,component:M.elementType,dense:M.bool,disabled:M.bool,disableGutters:M.bool,divider:M.bool,focusVisibleClassName:M.string,role:M.string,selected:M.bool,sx:M.oneOfType([M.arrayOf(M.oneOfType([M.func,M.object,M.bool])),M.func,M.object]),tabIndex:M.number});function gK(e){return Ft("MuiNativeSelect",e)}const WL=Bt("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);var vK={};const LK=e=>{const{classes:t,variant:n,disabled:l,multiple:o,open:a,error:i}=e,s={select:["select",n,l&&"disabled",o&&"multiple",i&&"error"],icon:["icon",`icon${Ue(n)}`,a&&"iconOpen",l&&"disabled"]};return Zt(s,gK,t)},T_=Ke("select")(({theme:e})=>({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":{borderRadius:0},[`&.${WL.disabled}`]:{cursor:"default"},"&[multiple]":{height:"auto"},"&:not([multiple]) option, &:not([multiple]) optgroup":{backgroundColor:(e.vars||e).palette.background.paper},variants:[{props:({ownerState:t})=>t.variant!=="filled"&&t.variant!=="outlined",style:{"&&&":{paddingRight:24,minWidth:16}}},{props:{variant:"filled"},style:{"&&&":{paddingRight:32}}},{props:{variant:"outlined"},style:{borderRadius:(e.vars||e).shape.borderRadius,"&:focus":{borderRadius:(e.vars||e).shape.borderRadius},"&&&":{paddingRight:32}}}]})),xK=Ke(T_,{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:S4,overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.select,t[n.variant],n.error&&t.error,{[`&.${WL.multiple}`]:t.multiple}]}})({}),Q_=Ke("svg")(({theme:e})=>({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(e.vars||e).palette.action.active,[`&.${WL.disabled}`]:{color:(e.vars||e).palette.action.disabled},variants:[{props:({ownerState:t})=>t.open,style:{transform:"rotate(180deg)"}},{props:{variant:"filled"},style:{right:7}},{props:{variant:"outlined"},style:{right:7}}]})),bK=Ke(Q_,{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${Ue(n.variant)}`],n.open&&t.iconOpen]}})({}),f_=ae.forwardRef(function(t,n){const{className:l,disabled:o,error:a,IconComponent:i,inputRef:s,variant:T="standard",...u}=t,Q={...t,disabled:o,variant:T,error:a},f=LK(Q);return He.jsxs(ae.Fragment,{children:[He.jsx(xK,{ownerState:Q,className:dt(f.select,l),disabled:o,ref:s||n,...u}),t.multiple?null:He.jsx(bK,{as:i,ownerState:Q,className:f.icon})]})});vK.NODE_ENV!=="production"&&(f_.propTypes={children:M.node,classes:M.object,className:M.string,disabled:M.bool,error:M.bool,IconComponent:M.elementType.isRequired,inputRef:xn,multiple:M.bool,name:M.string,onChange:M.func,value:M.any,variant:M.oneOf(["standard","outlined","filled"])});var HK={},d_;const EK=Ke("fieldset",{shouldForwardProp:S4})({textAlign:"left",position:"absolute",bottom:0,right:0,top:-5,left:0,margin:0,padding:"0 8px",pointerEvents:"none",borderRadius:"inherit",borderStyle:"solid",borderWidth:1,overflow:"hidden",minWidth:"0%"}),SK=Ke("legend",{shouldForwardProp:S4})(Rt(({theme:e})=>({float:"unset",width:"auto",overflow:"hidden",variants:[{props:({ownerState:t})=>!t.withLabel,style:{padding:0,lineHeight:"11px",transition:e.transitions.create("width",{duration:150,easing:e.transitions.easing.easeOut})}},{props:({ownerState:t})=>t.withLabel,style:{display:"block",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:e.transitions.create("max-width",{duration:50,easing:e.transitions.easing.easeOut}),whiteSpace:"nowrap","& > span":{paddingLeft:5,paddingRight:5,display:"inline-block",opacity:0,visibility:"visible"}}},{props:({ownerState:t})=>t.withLabel&&t.notched,style:{maxWidth:"100%",transition:e.transitions.create("max-width",{duration:100,easing:e.transitions.easing.easeOut,delay:50})}}]})));function h_(e){const{children:t,classes:n,className:l,label:o,notched:a,...i}=e,s=o!=null&&o!=="",T={...e,notched:a,withLabel:s};return He.jsx(EK,{"aria-hidden":!0,className:l,ownerState:T,...i,children:He.jsx(SK,{ownerState:T,children:s?He.jsx("span",{children:o}):d_||(d_=He.jsx("span",{className:"notranslate","aria-hidden":!0,children:""}))})})}HK.NODE_ENV!=="production"&&(h_.propTypes={children:M.node,classes:M.object,className:M.string,label:M.node,notched:M.bool.isRequired,style:M.object});var MK={};const AK=e=>{const{classes:t}=e,l=Zt({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},zX,t);return{...t,...l}},_K=Ke(Rm,{shouldForwardProp:e=>S4(e)||e==="classes",name:"MuiOutlinedInput",slot:"Root",overridesResolver:Vm})(Rt(({theme:e})=>{const t=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{position:"relative",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${kr.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${kr.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:t}},[`&.${kr.focused} .${kr.notchedOutline}`]:{borderWidth:2},variants:[...Object.entries(e.palette).filter(_2()).map(([n])=>({props:{color:n},style:{[`&.${kr.focused} .${kr.notchedOutline}`]:{borderColor:(e.vars||e).palette[n].main}}})),{props:{},style:{[`&.${kr.error} .${kr.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${kr.disabled} .${kr.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}}},{props:({ownerState:n})=>n.startAdornment,style:{paddingLeft:14}},{props:({ownerState:n})=>n.endAdornment,style:{paddingRight:14}},{props:({ownerState:n})=>n.multiline,style:{padding:"16.5px 14px"}},{props:({ownerState:n,size:l})=>n.multiline&&l==="small",style:{padding:"8.5px 14px"}}]}})),OK=Ke(h_,{name:"MuiOutlinedInput",slot:"NotchedOutline"})(Rt(({theme:e})=>{const t=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:t}})),CK=Ke(km,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:Dm})(Rt(({theme:e})=>({padding:"16.5px 14px",...!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:e.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:e.palette.mode==="light"?null:"#fff",caretColor:e.palette.mode==="light"?null:"#fff",borderRadius:"inherit"}},...e.vars&&{"&:-webkit-autofill":{borderRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},variants:[{props:{size:"small"},style:{padding:"8.5px 14px"}},{props:({ownerState:t})=>t.multiline,style:{padding:0}},{props:({ownerState:t})=>t.startAdornment,style:{paddingLeft:0}},{props:({ownerState:t})=>t.endAdornment,style:{paddingRight:0}}]}))),Gm=ae.forwardRef(function(t,n){const l=n1({props:t,name:"MuiOutlinedInput"}),{components:o={},fullWidth:a=!1,inputComponent:i="input",label:s,multiline:T=!1,notched:u,slots:Q={},slotProps:f={},type:h="text",...p}=l,g=AK(l),v=T5(),b=Ua({props:l,muiFormControl:v,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),L={...l,color:b.color||"primary",disabled:b.disabled,error:b.error,focused:b.focused,formControl:v,fullWidth:a,hiddenLabel:b.hiddenLabel,multiline:T,size:b.size,type:h},S=Q.root??o.Root??_K,_=Q.input??o.Input??CK,[O,E]=r1("notchedOutline",{elementType:OK,className:g.notchedOutline,shouldForwardComponentProp:!0,ownerState:L,externalForwardedProps:{slots:Q,slotProps:f},additionalProps:{label:s!=null&&s!==""&&b.required?He.jsxs(ae.Fragment,{children:[s," ","*"]}):s}});return He.jsx(Nm,{slots:{root:S,input:_},slotProps:f,renderSuffix:A=>He.jsx(O,{...E,notched:typeof u<"u"?u:!!(A.startAdornment||A.filled||A.focused)}),fullWidth:a,inputComponent:i,multiline:T,ref:n,type:h,...p,classes:{...g,notchedOutline:null}})});MK.NODE_ENV!=="production"&&(Gm.propTypes={autoComplete:M.string,autoFocus:M.bool,classes:M.object,color:M.oneOfType([M.oneOf(["primary","secondary"]),M.string]),components:M.shape({Input:M.elementType,Root:M.elementType}),defaultValue:M.any,disabled:M.bool,endAdornment:M.node,error:M.bool,fullWidth:M.bool,id:M.string,inputComponent:M.elementType,inputProps:M.object,inputRef:xn,label:M.node,margin:M.oneOf(["dense","none"]),maxRows:M.oneOfType([M.number,M.string]),minRows:M.oneOfType([M.number,M.string]),multiline:M.bool,name:M.string,notched:M.bool,onChange:M.func,placeholder:M.string,readOnly:M.bool,required:M.bool,rows:M.oneOfType([M.number,M.string]),slotProps:M.shape({input:M.object,notchedOutline:M.oneOfType([M.func,M.object]),root:M.object}),slots:M.shape({input:M.elementType,notchedOutline:M.elementType,root:M.elementType}),startAdornment:M.node,sx:M.oneOfType([M.arrayOf(M.oneOfType([M.func,M.object,M.bool])),M.func,M.object]),type:M.string,value:M.any}),Gm.muiName="Input";const wK=X3(He.jsx("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),"RadioButtonUnchecked"),VK=X3(He.jsx("path",{d:"M8.465 8.465C9.37 7.56 10.62 7 12 7C14.76 7 17 9.24 17 12C17 13.38 16.44 14.63 15.535 15.535C14.63 16.44 13.38 17 12 17C9.24 17 7 14.76 7 12C7 10.62 7.56 9.37 8.465 8.465Z"}),"RadioButtonChecked");var DK={};const RK=Ke("span",{shouldForwardProp:S4})({position:"relative",display:"flex"}),kK=Ke(wK)({transform:"scale(1)"}),NK=Ke(VK)(Rt(({theme:e})=>({left:0,position:"absolute",transform:"scale(0)",transition:e.transitions.create("transform",{easing:e.transitions.easing.easeIn,duration:e.transitions.duration.shortest}),variants:[{props:{checked:!0},style:{transform:"scale(1)",transition:e.transitions.create("transform",{easing:e.transitions.easing.easeOut,duration:e.transitions.duration.shortest})}}]})));function YL(e){const{checked:t=!1,classes:n={},fontSize:l}=e,o={...e,checked:t};return He.jsxs(RK,{className:n.root,ownerState:o,children:[He.jsx(kK,{fontSize:l,className:n.background,ownerState:o}),He.jsx(NK,{fontSize:l,className:n.dot,ownerState:o})]})}DK.NODE_ENV!=="production"&&(YL.propTypes={checked:M.bool,classes:M.object,fontSize:M.oneOf(["small","medium"])});var BK={};const KL=ae.createContext(void 0);BK.NODE_ENV!=="production"&&(KL.displayName="RadioGroupContext");function PK(){return ae.useContext(KL)}function jK(e){return Ft("MuiRadio",e)}const p_=Bt("MuiRadio",["root","checked","disabled","colorPrimary","colorSecondary","sizeSmall"]);var IK={};const FK=e=>{const{classes:t,color:n,size:l}=e,o={root:["root",`color${Ue(n)}`,l!=="medium"&&`size${Ue(l)}`]};return{...t,...Zt(o,jK,t)}},zK=Ke(BL,{shouldForwardProp:e=>S4(e)||e==="classes",name:"MuiRadio",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.size!=="medium"&&t[`size${Ue(n.size)}`],t[`color${Ue(n.color)}`]]}})(Rt(({theme:e})=>({color:(e.vars||e).palette.text.secondary,[`&.${p_.disabled}`]:{color:(e.vars||e).palette.action.disabled},variants:[{props:{color:"default",disabled:!1,disableRipple:!1},style:{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:O1(e.palette.action.active,e.palette.action.hoverOpacity)}}},...Object.entries(e.palette).filter(_2()).map(([t])=>({props:{color:t,disabled:!1,disableRipple:!1},style:{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette[t].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:O1(e.palette[t].main,e.palette.action.hoverOpacity)}}})),...Object.entries(e.palette).filter(_2()).map(([t])=>({props:{color:t,disabled:!1},style:{[`&.${p_.checked}`]:{color:(e.vars||e).palette[t].main}}})),{props:{disableRipple:!1},style:{"&:hover":{"@media (hover: none)":{backgroundColor:"transparent"}}}}]})));function qK(e,t){return typeof t=="object"&&t!==null?e===t:String(e)===String(t)}const $K=He.jsx(YL,{checked:!0}),UK=He.jsx(YL,{}),JL=ae.forwardRef(function(t,n){const l=n1({props:t,name:"MuiRadio"}),{checked:o,checkedIcon:a=$K,color:i="primary",icon:s=UK,name:T,onChange:u,size:Q="medium",className:f,disabled:h,disableRipple:p=!1,slots:g={},slotProps:v={},inputProps:b,...L}=l,S=T5();let _=h;S&&typeof _>"u"&&(_=S.disabled),_??(_=!1);const O={...l,disabled:_,disableRipple:p,color:i,size:Q},E=FK(O),A=PK();let V=o;const k=zv(u,A&&A.onChange);let B=T;A&&(typeof V>"u"&&(V=qK(A.value,l.value)),typeof B>"u"&&(B=A.name));const R=v.input??b,[F,q]=r1("root",{ref:n,elementType:zK,className:dt(E.root,f),shouldForwardComponentProp:!0,externalForwardedProps:{slots:g,slotProps:v,...L},getSlotProps:$=>({...$,onChange:(Z,...J)=>{var W;(W=$.onChange)==null||W.call($,Z,...J),k(Z,...J)}}),ownerState:O,additionalProps:{type:"radio",icon:ae.cloneElement(s,{fontSize:s.props.fontSize??Q}),checkedIcon:ae.cloneElement(a,{fontSize:a.props.fontSize??Q}),disabled:_,name:B,checked:V,slots:g,slotProps:{input:typeof R=="function"?R(O):R}}});return He.jsx(F,{...q,classes:E})});IK.NODE_ENV!=="production"&&(JL.propTypes={checked:M.bool,checkedIcon:M.node,classes:M.object,className:M.string,color:M.oneOfType([M.oneOf(["default","primary","secondary","error","info","success","warning"]),M.string]),disabled:M.bool,disableRipple:M.bool,icon:M.node,id:M.string,inputProps:M.object,inputRef:xn,name:M.string,onChange:M.func,required:M.bool,size:M.oneOfType([M.oneOf(["medium","small"]),M.string]),slotProps:M.shape({input:M.oneOfType([M.func,M.object]),root:M.oneOfType([M.func,M.object])}),slots:M.shape({input:M.elementType,root:M.elementType}),sx:M.oneOfType([M.arrayOf(M.oneOfType([M.func,M.object,M.bool])),M.func,M.object]),value:M.any});function GK(e){return Ft("MuiRadioGroup",e)}Bt("MuiRadioGroup",["root","row","error"]);var ZK={};const XK=e=>{const{classes:t,row:n,error:l}=e;return Zt({root:["root",n&&"row",l&&"error"]},GK,t)},m_=ae.forwardRef(function(t,n){const{actions:l,children:o,className:a,defaultValue:i,name:s,onChange:T,value:u,...Q}=t,f=ae.useRef(null),h=XK(t),[p,g]=oT({controlled:u,default:i,name:"RadioGroup"});ae.useImperativeHandle(l,()=>({focus:()=>{let S=f.current.querySelector("input:not(:disabled):checked");S||(S=f.current.querySelector("input:not(:disabled)")),S&&S.focus()}}),[]);const v=v3(n,f),b=Ps(s),L=ae.useMemo(()=>({name:b,onChange(S){g(S.target.value),T&&T(S,S.target.value)},value:p}),[b,T,g,p]);return He.jsx(KL.Provider,{value:L,children:He.jsx(PA,{role:"radiogroup",ref:v,className:dt(h.root,a),...Q,children:o})})});ZK.NODE_ENV!=="production"&&(m_.propTypes={children:M.node,className:M.string,defaultValue:M.any,name:M.string,onChange:M.func,value:M.any});const WK={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",whiteSpace:"nowrap",width:"1px"};function y_(e){return Ft("MuiSelect",e)}const HT=Bt("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);var Zm={},g_;const YK=Ke(T_,{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`&.${HT.select}`]:t.select},{[`&.${HT.select}`]:t[n.variant]},{[`&.${HT.error}`]:t.error},{[`&.${HT.multiple}`]:t.multiple}]}})({[`&.${HT.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),KK=Ke(Q_,{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${Ue(n.variant)}`],n.open&&t.iconOpen]}})({}),JK=Ke("input",{shouldForwardProp:e=>xm(e)&&e!=="classes",name:"MuiSelect",slot:"NativeInput"})({bottom:0,left:0,position:"absolute",opacity:0,pointerEvents:"none",width:"100%",boxSizing:"border-box"});function v_(e,t){return typeof t=="object"&&t!==null?e===t:String(e)===String(t)}function eJ(e){return e==null||typeof e=="string"&&!e.trim()}const tJ=e=>{const{classes:t,variant:n,disabled:l,multiple:o,open:a,error:i}=e,s={select:["select",n,l&&"disabled",o&&"multiple",i&&"error"],icon:["icon",`icon${Ue(n)}`,a&&"iconOpen",l&&"disabled"],nativeInput:["nativeInput"]};return Zt(s,y_,t)},L_=ae.forwardRef(function(t,n){var m1;const{"aria-describedby":l,"aria-label":o,autoFocus:a,autoWidth:i,children:s,className:T,defaultOpen:u,defaultValue:Q,disabled:f,displayEmpty:h,error:p=!1,IconComponent:g,inputRef:v,labelId:b,MenuProps:L={},multiple:S,name:_,onBlur:O,onChange:E,onClose:A,onFocus:V,onOpen:k,open:B,readOnly:R,renderValue:F,required:q,SelectDisplayProps:$={},tabIndex:Z,type:J,value:W,variant:ne="standard",...K}=t,[Y,j]=oT({controlled:W,default:Q,name:"Select"}),[z,ee]=oT({controlled:B,default:u,name:"Select"}),U=ae.useRef(null),de=ae.useRef(null),[pe,he]=ae.useState(null),{current:se}=ae.useRef(B!=null),[fe,Se]=ae.useState(),Ee=v3(n,v),_e=ae.useCallback(it=>{de.current=it,it&&he(it)},[]),ze=pe==null?void 0:pe.parentNode;ae.useImperativeHandle(Ee,()=>({focus:()=>{de.current.focus()},node:U.current,value:Y}),[Y]),ae.useEffect(()=>{u&&z&&pe&&!se&&(Se(i?null:ze.clientWidth),de.current.focus())},[pe,i]),ae.useEffect(()=>{a&&de.current.focus()},[a]),ae.useEffect(()=>{if(!b)return;const it=M4(de.current).getElementById(b);if(it){const xt=()=>{getSelection().isCollapsed&&de.current.focus()};return it.addEventListener("click",xt),()=>{it.removeEventListener("click",xt)}}},[b]);const ue=(it,xt)=>{it?k&&k(xt):A&&A(xt),se||(Se(i?null:ze.clientWidth),ee(it))},Pe=it=>{it.button===0&&(it.preventDefault(),de.current.focus(),ue(!0,it))},Xe=it=>{ue(!1,it)},ht=ae.Children.toArray(s),ot=it=>{const xt=ht.find(te=>te.props.value===it.target.value);xt!==void 0&&(j(xt.props.value),E&&E(it,xt))},mt=it=>xt=>{let te;if(xt.currentTarget.hasAttribute("tabindex")){if(S){te=Array.isArray(Y)?Y.slice():[];const ve=Y.indexOf(it.props.value);ve===-1?te.push(it.props.value):te.splice(ve,1)}else te=it.props.value;if(it.props.onClick&&it.props.onClick(xt),Y!==te&&(j(te),E)){const ve=xt.nativeEvent||xt,We=new ve.constructor(ve.type,ve);Object.defineProperty(We,"target",{writable:!0,value:{value:te,name:_}}),E(We,it)}S||ue(!1,xt)}},zt=it=>{R||[" ","ArrowUp","ArrowDown","Enter"].includes(it.key)&&(it.preventDefault(),ue(!0,it))},p1=pe!==null&&z,st=it=>{!p1&&O&&(Object.defineProperty(it,"target",{writable:!0,value:{value:Y,name:_}}),O(it))};delete K["aria-invalid"];let ct,e2;const f1=[];let Ge=!1,me=!1;(wm({value:Y})||h)&&(F?ct=F(Y):Ge=!0);const De=ht.map(it=>{if(!ae.isValidElement(it))return null;Zm.NODE_ENV!=="production"&&w7.isFragment(it)&&console.error(["MUI: The Select component doesn't accept a Fragment as a child.","Consider providing an array instead."].join(`
|
|
332
|
+
`)),Y.props.disabled||(b==="selectedMenu"&&Y.props.selected||F===-1)&&(F=j))});const q={slots:L,slotProps:{list:T,transition:v,paper:f,...S}},$=B0({elementType:L.root,externalSlotProps:S.root,ownerState:E,className:[A.root,i]}),[Z,J]=r1("paper",{className:A.paper,elementType:fK,externalForwardedProps:q,shouldForwardComponentProp:!0,ownerState:E}),[W,ne]=r1("list",{className:dt(A.list,T.className),elementType:dK,shouldForwardComponentProp:!0,externalForwardedProps:q,getSlotProps:Y=>({...Y,onKeyDown:j=>{var z;R(j),(z=Y.onKeyDown)==null||z.call(Y,j)}}),ownerState:E}),K=typeof q.slotProps.transition=="function"?q.slotProps.transition(E):q.slotProps.transition;return He.jsx(QK,{onClose:u,anchorOrigin:{vertical:"bottom",horizontal:O?"right":"left"},transformOrigin:O?uK:cK,slots:{root:L.root,paper:Z,backdrop:L.backdrop,...L.transition&&{transition:L.transition}},slotProps:{root:$,paper:J,backdrop:typeof S.backdrop=="function"?S.backdrop(E):S.backdrop,transition:{...K,onEntering:(...Y)=>{var j;B(...Y),(j=K==null?void 0:K.onEntering)==null||j.call(K,...Y)}}},open:Q,ref:n,transitionDuration:p,ownerState:E,..._,classes:h,children:He.jsx(W,{actions:k,autoFocus:o&&(F===-1||s),autoFocusItem:V,variant:b,...ne,children:a})})});s_.NODE_ENV!=="production"&&(u_.propTypes={anchorEl:M.oneOfType([TT,M.func]),autoFocus:M.bool,children:M.node,classes:M.object,className:M.string,disableAutoFocusItem:M.bool,MenuListProps:M.object,onClose:M.func,open:M.bool.isRequired,PaperProps:M.object,PopoverClasses:M.object,slotProps:M.shape({backdrop:M.oneOfType([M.func,M.object]),list:M.oneOfType([M.func,M.object]),paper:M.oneOfType([M.func,M.object]),root:M.oneOfType([M.func,M.object]),transition:M.oneOfType([M.func,M.object])}),slots:M.shape({backdrop:M.elementType,list:M.elementType,paper:M.elementType,root:M.elementType,transition:M.elementType}),sx:M.oneOfType([M.arrayOf(M.oneOfType([M.func,M.object,M.bool])),M.func,M.object]),transitionDuration:M.oneOfType([M.oneOf(["auto"]),M.number,M.shape({appear:M.number,enter:M.number,exit:M.number})]),TransitionProps:M.object,variant:M.oneOf(["menu","selectedMenu"])});function hK(e){return Ft("MuiMenuItem",e)}const bT=Bt("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]);var c_={};const pK=(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.divider&&t.divider,!n.disableGutters&&t.gutters]},mK=e=>{const{disabled:t,dense:n,divider:l,disableGutters:o,selected:a,classes:i}=e,T=Zt({root:["root",n&&"dense",t&&"disabled",!o&&"gutters",l&&"divider",a&&"selected"]},hK,i);return{...i,...T}},yK=Ke(B7,{shouldForwardProp:e=>S4(e)||e==="classes",name:"MuiMenuItem",slot:"Root",overridesResolver:pK})(Rt(({theme:e})=>({...e.typography.body1,display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minHeight:48,paddingTop:6,paddingBottom:6,boxSizing:"border-box",whiteSpace:"nowrap","&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${bT.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:O1(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${bT.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:O1(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${bT.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:O1(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:O1(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${bT.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${bT.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${NA.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${NA.inset}`]:{marginLeft:52},[`& .${KA.root}`]:{marginTop:0,marginBottom:0},[`& .${KA.inset}`]:{paddingLeft:36},[`& .${YA.root}`]:{minWidth:36},variants:[{props:({ownerState:t})=>!t.disableGutters,style:{paddingLeft:16,paddingRight:16}},{props:({ownerState:t})=>t.divider,style:{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"}},{props:({ownerState:t})=>!t.dense,style:{[e.breakpoints.up("sm")]:{minHeight:"auto"}}},{props:({ownerState:t})=>t.dense,style:{minHeight:32,paddingTop:4,paddingBottom:4,...e.typography.body2,[`& .${YA.root} svg`]:{fontSize:"1.25rem"}}}]}))),F7=ae.forwardRef(function(t,n){const l=n1({props:t,name:"MuiMenuItem"}),{autoFocus:o=!1,component:a="li",dense:i=!1,divider:s=!1,disableGutters:T=!1,focusVisibleClassName:u,role:Q="menuitem",tabIndex:f,className:h,...p}=l,g=ae.useContext(Um),v=ae.useMemo(()=>({dense:i||g.dense||!1,disableGutters:T}),[g.dense,i,T]),b=ae.useRef(null);V0(()=>{o&&(b.current?b.current.focus():c_.NODE_ENV!=="production"&&console.error("MUI: Unable to set focus to a MenuItem whose component has not been rendered."))},[o]);const L={...l,dense:v.dense,divider:s,disableGutters:T},S=mK(l),_=v3(b,n);let O;return l.disabled||(O=f!==void 0?f:-1),He.jsx(Um.Provider,{value:v,children:He.jsx(yK,{ref:_,role:Q,tabIndex:O,component:a,focusVisibleClassName:dt(S.focusVisible,u),className:dt(S.root,h),...p,ownerState:L,classes:S})})});c_.NODE_ENV!=="production"&&(F7.propTypes={autoFocus:M.bool,children:M.node,classes:M.object,className:M.string,component:M.elementType,dense:M.bool,disabled:M.bool,disableGutters:M.bool,divider:M.bool,focusVisibleClassName:M.string,role:M.string,selected:M.bool,sx:M.oneOfType([M.arrayOf(M.oneOfType([M.func,M.object,M.bool])),M.func,M.object]),tabIndex:M.number});function gK(e){return Ft("MuiNativeSelect",e)}const WL=Bt("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);var vK={};const LK=e=>{const{classes:t,variant:n,disabled:l,multiple:o,open:a,error:i}=e,s={select:["select",n,l&&"disabled",o&&"multiple",i&&"error"],icon:["icon",`icon${Ue(n)}`,a&&"iconOpen",l&&"disabled"]};return Zt(s,gK,t)},T_=Ke("select")(({theme:e})=>({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":{borderRadius:0},[`&.${WL.disabled}`]:{cursor:"default"},"&[multiple]":{height:"auto"},"&:not([multiple]) option, &:not([multiple]) optgroup":{backgroundColor:(e.vars||e).palette.background.paper},variants:[{props:({ownerState:t})=>t.variant!=="filled"&&t.variant!=="outlined",style:{"&&&":{paddingRight:24,minWidth:16}}},{props:{variant:"filled"},style:{"&&&":{paddingRight:32}}},{props:{variant:"outlined"},style:{borderRadius:(e.vars||e).shape.borderRadius,"&:focus":{borderRadius:(e.vars||e).shape.borderRadius},"&&&":{paddingRight:32}}}]})),xK=Ke(T_,{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:S4,overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.select,t[n.variant],n.error&&t.error,{[`&.${WL.multiple}`]:t.multiple}]}})({}),Q_=Ke("svg")(({theme:e})=>({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(e.vars||e).palette.action.active,[`&.${WL.disabled}`]:{color:(e.vars||e).palette.action.disabled},variants:[{props:({ownerState:t})=>t.open,style:{transform:"rotate(180deg)"}},{props:{variant:"filled"},style:{right:7}},{props:{variant:"outlined"},style:{right:7}}]})),bK=Ke(Q_,{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${Ue(n.variant)}`],n.open&&t.iconOpen]}})({}),f_=ae.forwardRef(function(t,n){const{className:l,disabled:o,error:a,IconComponent:i,inputRef:s,variant:T="standard",...u}=t,Q={...t,disabled:o,variant:T,error:a},f=LK(Q);return He.jsxs(ae.Fragment,{children:[He.jsx(xK,{ownerState:Q,className:dt(f.select,l),disabled:o,ref:s||n,...u}),t.multiple?null:He.jsx(bK,{as:i,ownerState:Q,className:f.icon})]})});vK.NODE_ENV!=="production"&&(f_.propTypes={children:M.node,classes:M.object,className:M.string,disabled:M.bool,error:M.bool,IconComponent:M.elementType.isRequired,inputRef:xn,multiple:M.bool,name:M.string,onChange:M.func,value:M.any,variant:M.oneOf(["standard","outlined","filled"])});var HK={},d_;const EK=Ke("fieldset",{shouldForwardProp:S4})({textAlign:"left",position:"absolute",bottom:0,right:0,top:-5,left:0,margin:0,padding:"0 8px",pointerEvents:"none",borderRadius:"inherit",borderStyle:"solid",borderWidth:1,overflow:"hidden",minWidth:"0%"}),SK=Ke("legend",{shouldForwardProp:S4})(Rt(({theme:e})=>({float:"unset",width:"auto",overflow:"hidden",variants:[{props:({ownerState:t})=>!t.withLabel,style:{padding:0,lineHeight:"11px",transition:e.transitions.create("width",{duration:150,easing:e.transitions.easing.easeOut})}},{props:({ownerState:t})=>t.withLabel,style:{display:"block",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:e.transitions.create("max-width",{duration:50,easing:e.transitions.easing.easeOut}),whiteSpace:"nowrap","& > span":{paddingLeft:5,paddingRight:5,display:"inline-block",opacity:0,visibility:"visible"}}},{props:({ownerState:t})=>t.withLabel&&t.notched,style:{maxWidth:"100%",transition:e.transitions.create("max-width",{duration:100,easing:e.transitions.easing.easeOut,delay:50})}}]})));function h_(e){const{children:t,classes:n,className:l,label:o,notched:a,...i}=e,s=o!=null&&o!=="",T={...e,notched:a,withLabel:s};return He.jsx(EK,{"aria-hidden":!0,className:l,ownerState:T,...i,children:He.jsx(SK,{ownerState:T,children:s?He.jsx("span",{children:o}):d_||(d_=He.jsx("span",{className:"notranslate","aria-hidden":!0,children:""}))})})}HK.NODE_ENV!=="production"&&(h_.propTypes={children:M.node,classes:M.object,className:M.string,label:M.node,notched:M.bool.isRequired,style:M.object});var MK={};const AK=e=>{const{classes:t}=e,l=Zt({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},zX,t);return{...t,...l}},_K=Ke(Rm,{shouldForwardProp:e=>S4(e)||e==="classes",name:"MuiOutlinedInput",slot:"Root",overridesResolver:Vm})(Rt(({theme:e})=>{const t=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{position:"relative",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${kr.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${kr.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:t}},[`&.${kr.focused} .${kr.notchedOutline}`]:{borderWidth:2},variants:[...Object.entries(e.palette).filter(_2()).map(([n])=>({props:{color:n},style:{[`&.${kr.focused} .${kr.notchedOutline}`]:{borderColor:(e.vars||e).palette[n].main}}})),{props:{},style:{[`&.${kr.error} .${kr.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${kr.disabled} .${kr.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}}},{props:({ownerState:n})=>n.startAdornment,style:{paddingLeft:14}},{props:({ownerState:n})=>n.endAdornment,style:{paddingRight:14}},{props:({ownerState:n})=>n.multiline,style:{padding:"16.5px 14px"}},{props:({ownerState:n,size:l})=>n.multiline&&l==="small",style:{padding:"8.5px 14px"}}]}})),OK=Ke(h_,{name:"MuiOutlinedInput",slot:"NotchedOutline"})(Rt(({theme:e})=>{const t=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:t}})),CK=Ke(km,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:Dm})(Rt(({theme:e})=>({padding:"16.5px 14px",...!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:e.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:e.palette.mode==="light"?null:"#fff",caretColor:e.palette.mode==="light"?null:"#fff",borderRadius:"inherit"}},...e.vars&&{"&:-webkit-autofill":{borderRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},variants:[{props:{size:"small"},style:{padding:"8.5px 14px"}},{props:({ownerState:t})=>t.multiline,style:{padding:0}},{props:({ownerState:t})=>t.startAdornment,style:{paddingLeft:0}},{props:({ownerState:t})=>t.endAdornment,style:{paddingRight:0}}]}))),Gm=ae.forwardRef(function(t,n){const l=n1({props:t,name:"MuiOutlinedInput"}),{components:o={},fullWidth:a=!1,inputComponent:i="input",label:s,multiline:T=!1,notched:u,slots:Q={},slotProps:f={},type:h="text",...p}=l,g=AK(l),v=T5(),b=Ua({props:l,muiFormControl:v,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),L={...l,color:b.color||"primary",disabled:b.disabled,error:b.error,focused:b.focused,formControl:v,fullWidth:a,hiddenLabel:b.hiddenLabel,multiline:T,size:b.size,type:h},S=Q.root??o.Root??_K,_=Q.input??o.Input??CK,[O,E]=r1("notchedOutline",{elementType:OK,className:g.notchedOutline,shouldForwardComponentProp:!0,ownerState:L,externalForwardedProps:{slots:Q,slotProps:f},additionalProps:{label:s!=null&&s!==""&&b.required?He.jsxs(ae.Fragment,{children:[s," ","*"]}):s}});return He.jsx(Nm,{slots:{root:S,input:_},slotProps:f,renderSuffix:A=>He.jsx(O,{...E,notched:typeof u<"u"?u:!!(A.startAdornment||A.filled||A.focused)}),fullWidth:a,inputComponent:i,multiline:T,ref:n,type:h,...p,classes:{...g,notchedOutline:null}})});MK.NODE_ENV!=="production"&&(Gm.propTypes={autoComplete:M.string,autoFocus:M.bool,classes:M.object,color:M.oneOfType([M.oneOf(["primary","secondary"]),M.string]),components:M.shape({Input:M.elementType,Root:M.elementType}),defaultValue:M.any,disabled:M.bool,endAdornment:M.node,error:M.bool,fullWidth:M.bool,id:M.string,inputComponent:M.elementType,inputProps:M.object,inputRef:xn,label:M.node,margin:M.oneOf(["dense","none"]),maxRows:M.oneOfType([M.number,M.string]),minRows:M.oneOfType([M.number,M.string]),multiline:M.bool,name:M.string,notched:M.bool,onChange:M.func,placeholder:M.string,readOnly:M.bool,required:M.bool,rows:M.oneOfType([M.number,M.string]),slotProps:M.shape({input:M.object,notchedOutline:M.oneOfType([M.func,M.object]),root:M.object}),slots:M.shape({input:M.elementType,notchedOutline:M.elementType,root:M.elementType}),startAdornment:M.node,sx:M.oneOfType([M.arrayOf(M.oneOfType([M.func,M.object,M.bool])),M.func,M.object]),type:M.string,value:M.any}),Gm.muiName="Input";const wK=X3(He.jsx("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),"RadioButtonUnchecked"),VK=X3(He.jsx("path",{d:"M8.465 8.465C9.37 7.56 10.62 7 12 7C14.76 7 17 9.24 17 12C17 13.38 16.44 14.63 15.535 15.535C14.63 16.44 13.38 17 12 17C9.24 17 7 14.76 7 12C7 10.62 7.56 9.37 8.465 8.465Z"}),"RadioButtonChecked");var DK={};const RK=Ke("span",{shouldForwardProp:S4})({position:"relative",display:"flex"}),kK=Ke(wK)({transform:"scale(1)"}),NK=Ke(VK)(Rt(({theme:e})=>({left:0,position:"absolute",transform:"scale(0)",transition:e.transitions.create("transform",{easing:e.transitions.easing.easeIn,duration:e.transitions.duration.shortest}),variants:[{props:{checked:!0},style:{transform:"scale(1)",transition:e.transitions.create("transform",{easing:e.transitions.easing.easeOut,duration:e.transitions.duration.shortest})}}]})));function YL(e){const{checked:t=!1,classes:n={},fontSize:l}=e,o={...e,checked:t};return He.jsxs(RK,{className:n.root,ownerState:o,children:[He.jsx(kK,{fontSize:l,className:n.background,ownerState:o}),He.jsx(NK,{fontSize:l,className:n.dot,ownerState:o})]})}DK.NODE_ENV!=="production"&&(YL.propTypes={checked:M.bool,classes:M.object,fontSize:M.oneOf(["small","medium"])});var BK={};const KL=ae.createContext(void 0);BK.NODE_ENV!=="production"&&(KL.displayName="RadioGroupContext");function PK(){return ae.useContext(KL)}function jK(e){return Ft("MuiRadio",e)}const p_=Bt("MuiRadio",["root","checked","disabled","colorPrimary","colorSecondary","sizeSmall"]);var IK={};const FK=e=>{const{classes:t,color:n,size:l}=e,o={root:["root",`color${Ue(n)}`,l!=="medium"&&`size${Ue(l)}`]};return{...t,...Zt(o,jK,t)}},zK=Ke(BL,{shouldForwardProp:e=>S4(e)||e==="classes",name:"MuiRadio",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.size!=="medium"&&t[`size${Ue(n.size)}`],t[`color${Ue(n.color)}`]]}})(Rt(({theme:e})=>({color:(e.vars||e).palette.text.secondary,[`&.${p_.disabled}`]:{color:(e.vars||e).palette.action.disabled},variants:[{props:{color:"default",disabled:!1,disableRipple:!1},style:{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:O1(e.palette.action.active,e.palette.action.hoverOpacity)}}},...Object.entries(e.palette).filter(_2()).map(([t])=>({props:{color:t,disabled:!1,disableRipple:!1},style:{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette[t].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:O1(e.palette[t].main,e.palette.action.hoverOpacity)}}})),...Object.entries(e.palette).filter(_2()).map(([t])=>({props:{color:t,disabled:!1},style:{[`&.${p_.checked}`]:{color:(e.vars||e).palette[t].main}}})),{props:{disableRipple:!1},style:{"&:hover":{"@media (hover: none)":{backgroundColor:"transparent"}}}}]})));function qK(e,t){return typeof t=="object"&&t!==null?e===t:String(e)===String(t)}const $K=He.jsx(YL,{checked:!0}),UK=He.jsx(YL,{}),JL=ae.forwardRef(function(t,n){const l=n1({props:t,name:"MuiRadio"}),{checked:o,checkedIcon:a=$K,color:i="primary",icon:s=UK,name:T,onChange:u,size:Q="medium",className:f,disabled:h,disableRipple:p=!1,slots:g={},slotProps:v={},inputProps:b,...L}=l,S=T5();let _=h;S&&typeof _>"u"&&(_=S.disabled),_??(_=!1);const O={...l,disabled:_,disableRipple:p,color:i,size:Q},E=FK(O),A=PK();let V=o;const k=zv(u,A&&A.onChange);let B=T;A&&(typeof V>"u"&&(V=qK(A.value,l.value)),typeof B>"u"&&(B=A.name));const R=v.input??b,[F,q]=r1("root",{ref:n,elementType:zK,className:dt(E.root,f),shouldForwardComponentProp:!0,externalForwardedProps:{slots:g,slotProps:v,...L},getSlotProps:$=>({...$,onChange:(Z,...J)=>{var W;(W=$.onChange)==null||W.call($,Z,...J),k(Z,...J)}}),ownerState:O,additionalProps:{type:"radio",icon:ae.cloneElement(s,{fontSize:s.props.fontSize??Q}),checkedIcon:ae.cloneElement(a,{fontSize:a.props.fontSize??Q}),disabled:_,name:B,checked:V,slots:g,slotProps:{input:typeof R=="function"?R(O):R}}});return He.jsx(F,{...q,classes:E})});IK.NODE_ENV!=="production"&&(JL.propTypes={checked:M.bool,checkedIcon:M.node,classes:M.object,className:M.string,color:M.oneOfType([M.oneOf(["default","primary","secondary","error","info","success","warning"]),M.string]),disabled:M.bool,disableRipple:M.bool,icon:M.node,id:M.string,inputProps:M.object,inputRef:xn,name:M.string,onChange:M.func,required:M.bool,size:M.oneOfType([M.oneOf(["medium","small"]),M.string]),slotProps:M.shape({input:M.oneOfType([M.func,M.object]),root:M.oneOfType([M.func,M.object])}),slots:M.shape({input:M.elementType,root:M.elementType}),sx:M.oneOfType([M.arrayOf(M.oneOfType([M.func,M.object,M.bool])),M.func,M.object]),value:M.any});function GK(e){return Ft("MuiRadioGroup",e)}Bt("MuiRadioGroup",["root","row","error"]);var ZK={};const XK=e=>{const{classes:t,row:n,error:l}=e;return Zt({root:["root",n&&"row",l&&"error"]},GK,t)},m_=ae.forwardRef(function(t,n){const{actions:l,children:o,className:a,defaultValue:i,name:s,onChange:T,value:u,...Q}=t,f=ae.useRef(null),h=XK(t),[p,g]=oT({controlled:u,default:i,name:"RadioGroup"});ae.useImperativeHandle(l,()=>({focus:()=>{let S=f.current.querySelector("input:not(:disabled):checked");S||(S=f.current.querySelector("input:not(:disabled)")),S&&S.focus()}}),[]);const v=v3(n,f),b=Ps(s),L=ae.useMemo(()=>({name:b,onChange(S){g(S.target.value),T&&T(S,S.target.value)},value:p}),[b,T,g,p]);return He.jsx(KL.Provider,{value:L,children:He.jsx(PA,{role:"radiogroup",ref:v,className:dt(h.root,a),...Q,children:o})})});ZK.NODE_ENV!=="production"&&(m_.propTypes={children:M.node,className:M.string,defaultValue:M.any,name:M.string,onChange:M.func,value:M.any});const WK={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",whiteSpace:"nowrap",width:"1px"};function y_(e){return Ft("MuiSelect",e)}const HT=Bt("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);var Zm={},g_;const YK=Ke(T_,{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`&.${HT.select}`]:t.select},{[`&.${HT.select}`]:t[n.variant]},{[`&.${HT.error}`]:t.error},{[`&.${HT.multiple}`]:t.multiple}]}})({[`&.${HT.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),KK=Ke(Q_,{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${Ue(n.variant)}`],n.open&&t.iconOpen]}})({}),JK=Ke("input",{shouldForwardProp:e=>xm(e)&&e!=="classes",name:"MuiSelect",slot:"NativeInput"})({bottom:0,left:0,position:"absolute",opacity:0,pointerEvents:"none",width:"100%",boxSizing:"border-box"});function v_(e,t){return typeof t=="object"&&t!==null?e===t:String(e)===String(t)}function eJ(e){return e==null||typeof e=="string"&&!e.trim()}const tJ=e=>{const{classes:t,variant:n,disabled:l,multiple:o,open:a,error:i}=e,s={select:["select",n,l&&"disabled",o&&"multiple",i&&"error"],icon:["icon",`icon${Ue(n)}`,a&&"iconOpen",l&&"disabled"],nativeInput:["nativeInput"]};return Zt(s,y_,t)},L_=ae.forwardRef(function(t,n){var m1;const{"aria-describedby":l,"aria-label":o,autoFocus:a,autoWidth:i,children:s,className:T,defaultOpen:u,defaultValue:Q,disabled:f,displayEmpty:h,error:p=!1,IconComponent:g,inputRef:v,labelId:b,MenuProps:L={},multiple:S,name:_,onBlur:O,onChange:E,onClose:A,onFocus:V,onOpen:k,open:B,readOnly:R,renderValue:F,required:q,SelectDisplayProps:$={},tabIndex:Z,type:J,value:W,variant:ne="standard",...K}=t,[Y,j]=oT({controlled:W,default:Q,name:"Select"}),[z,ee]=oT({controlled:B,default:u,name:"Select"}),U=ae.useRef(null),de=ae.useRef(null),[pe,he]=ae.useState(null),{current:se}=ae.useRef(B!=null),[fe,Se]=ae.useState(),Ee=v3(n,v),_e=ae.useCallback(it=>{de.current=it,it&&he(it)},[]),ze=pe==null?void 0:pe.parentNode;ae.useImperativeHandle(Ee,()=>({focus:()=>{de.current.focus()},node:U.current,value:Y}),[Y]),ae.useEffect(()=>{u&&z&&pe&&!se&&(Se(i?null:ze.clientWidth),de.current.focus())},[pe,i]),ae.useEffect(()=>{a&&de.current.focus()},[a]),ae.useEffect(()=>{if(!b)return;const it=M4(de.current).getElementById(b);if(it){const xt=()=>{getSelection().isCollapsed&&de.current.focus()};return it.addEventListener("click",xt),()=>{it.removeEventListener("click",xt)}}},[b]);const ue=(it,xt)=>{it?k&&k(xt):A&&A(xt),se||(Se(i?null:ze.clientWidth),ee(it))},Pe=it=>{it.button===0&&(it.preventDefault(),de.current.focus(),ue(!0,it))},Xe=it=>{ue(!1,it)},ht=ae.Children.toArray(s),ot=it=>{const xt=ht.find(te=>te.props.value===it.target.value);xt!==void 0&&(j(xt.props.value),E&&E(it,xt))},mt=it=>xt=>{let te;if(xt.currentTarget.hasAttribute("tabindex")){if(S){te=Array.isArray(Y)?Y.slice():[];const Le=Y.indexOf(it.props.value);Le===-1?te.push(it.props.value):te.splice(Le,1)}else te=it.props.value;if(it.props.onClick&&it.props.onClick(xt),Y!==te&&(j(te),E)){const Le=xt.nativeEvent||xt,We=new Le.constructor(Le.type,Le);Object.defineProperty(We,"target",{writable:!0,value:{value:te,name:_}}),E(We,it)}S||ue(!1,xt)}},zt=it=>{R||[" ","ArrowUp","ArrowDown","Enter"].includes(it.key)&&(it.preventDefault(),ue(!0,it))},p1=pe!==null&&z,st=it=>{!p1&&O&&(Object.defineProperty(it,"target",{writable:!0,value:{value:Y,name:_}}),O(it))};delete K["aria-invalid"];let ct,e2;const f1=[];let Ge=!1,me=!1;(wm({value:Y})||h)&&(F?ct=F(Y):Ge=!0);const De=ht.map(it=>{if(!ae.isValidElement(it))return null;Zm.NODE_ENV!=="production"&&w7.isFragment(it)&&console.error(["MUI: The Select component doesn't accept a Fragment as a child.","Consider providing an array instead."].join(`
|
|
333
333
|
`));let xt;if(S){if(!Array.isArray(Y))throw new Error(Zm.NODE_ENV!=="production"?"MUI: The `value` prop must be an array when using the `Select` component with `multiple`.":Ar(2));xt=Y.some(te=>v_(te,it.props.value)),xt&&Ge&&f1.push(it.props.children)}else xt=v_(Y,it.props.value),xt&&Ge&&(e2=it.props.children);return xt&&(me=!0),ae.cloneElement(it,{"aria-selected":xt?"true":"false",onClick:mt(it),onKeyUp:te=>{te.key===" "&&te.preventDefault(),it.props.onKeyUp&&it.props.onKeyUp(te)},role:"option",selected:xt,value:void 0,"data-value":it.props.value})});Zm.NODE_ENV!=="production"&&ae.useEffect(()=>{if(!me&&!S&&Y!==""){const it=ht.map(xt=>xt.props.value);console.warn([`MUI: You have provided an out-of-range value \`${Y}\` for the select ${_?`(name="${_}") `:""}component.`,"Consider providing a value that matches one of the available options or ''.",`The available values are ${it.filter(xt=>xt!=null).map(xt=>`\`${xt}\``).join(", ")||'""'}.`].join(`
|
|
334
|
-
`))}},[me,ht,S,_,Y]),Ge&&(S?f1.length===0?ct=null:ct=f1.reduce((it,xt,te)=>(it.push(xt),te<f1.length-1&&it.push(", "),it),[]):ct=e2);let Ye=fe;!i&&se&&pe&&(Ye=ze.clientWidth);let et;typeof Z<"u"?et=Z:et=f?null:0;const tt=$.id||(_?`mui-component-select-${_}`:void 0),Tt={...t,variant:ne,value:Y,open:p1,error:p},o1=tJ(Tt),Ct={...L.PaperProps,...(m1=L.slotProps)==null?void 0:m1.paper},d1=Ps();return He.jsxs(ae.Fragment,{children:[He.jsx(YK,{as:"div",ref:_e,tabIndex:et,role:"combobox","aria-controls":p1?d1:void 0,"aria-disabled":f?"true":void 0,"aria-expanded":p1?"true":"false","aria-haspopup":"listbox","aria-label":o,"aria-labelledby":[b,tt].filter(Boolean).join(" ")||void 0,"aria-describedby":l,"aria-required":q?"true":void 0,"aria-invalid":p?"true":void 0,onKeyDown:zt,onMouseDown:f||R?null:Pe,onBlur:st,onFocus:V,...$,ownerState:Tt,className:dt($.className,o1.select,T),id:tt,children:eJ(ct)?g_||(g_=He.jsx("span",{className:"notranslate","aria-hidden":!0,children:""})):ct}),He.jsx(JK,{"aria-invalid":p,value:Array.isArray(Y)?Y.join(","):Y,name:_,ref:U,"aria-hidden":!0,onChange:ot,tabIndex:-1,disabled:f,className:o1.nativeInput,autoFocus:a,required:q,...K,ownerState:Tt}),He.jsx(KK,{as:g,className:o1.icon,ownerState:Tt}),He.jsx(u_,{id:`menu-${_||""}`,anchorEl:ze,open:p1,onClose:Xe,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"},...L,slotProps:{...L.slotProps,list:{"aria-labelledby":b,role:"listbox","aria-multiselectable":S?"true":void 0,disableListWrap:!0,id:d1,...L.MenuListProps},paper:{...Ct,style:{minWidth:Ye,...Ct!=null?Ct.style:null}}},children:De})]})});Zm.NODE_ENV!=="production"&&(L_.propTypes={"aria-describedby":M.string,"aria-label":M.string,autoFocus:M.bool,autoWidth:M.bool,children:M.node,classes:M.object,className:M.string,defaultOpen:M.bool,defaultValue:M.any,disabled:M.bool,displayEmpty:M.bool,error:M.bool,IconComponent:M.elementType.isRequired,inputRef:xn,labelId:M.string,MenuProps:M.object,multiple:M.bool,name:M.string,onBlur:M.func,onChange:M.func,onClose:M.func,onFocus:M.func,onOpen:M.func,open:M.bool,readOnly:M.bool,renderValue:M.func,required:M.bool,SelectDisplayProps:M.object,tabIndex:M.oneOfType([M.number,M.string]),type:M.any,value:M.any,variant:M.oneOf(["standard","outlined","filled"])});var nJ={};const rJ=e=>{const{classes:t}=e,l=Zt({root:["root"]},y_,t);return{...t,...l}},ex={name:"MuiSelect",slot:"Root",shouldForwardProp:e=>S4(e)&&e!=="variant"},iJ=Ke($m,ex)(""),aJ=Ke(Gm,ex)(""),oJ=Ke(zm,ex)(""),Us=ae.forwardRef(function(t,n){const l=n1({name:"MuiSelect",props:t}),{autoWidth:o=!1,children:a,classes:i={},className:s,defaultOpen:T=!1,displayEmpty:u=!1,IconComponent:Q=$X,id:f,input:h,inputProps:p,label:g,labelId:v,MenuProps:b,multiple:L=!1,native:S=!1,onClose:_,onOpen:O,open:E,renderValue:A,SelectDisplayProps:V,variant:k="outlined",...B}=l,R=S?f_:L_,F=T5(),q=Ua({props:l,muiFormControl:F,states:["variant","error"]}),$=q.variant||k,Z={...l,variant:$,classes:i},J=rJ(Z),{root:W,...ne}=J,K=h||{standard:He.jsx(iJ,{ownerState:Z}),outlined:He.jsx(aJ,{label:g,ownerState:Z}),filled:He.jsx(oJ,{ownerState:Z})}[$],Y=v3(n,QT(K));return He.jsx(ae.Fragment,{children:ae.cloneElement(K,{inputComponent:R,inputProps:{children:a,error:q.error,IconComponent:Q,variant:$,type:void 0,multiple:L,...S?{id:f}:{autoWidth:o,defaultOpen:T,displayEmpty:u,labelId:v,MenuProps:b,onClose:_,onOpen:O,open:E,renderValue:A,SelectDisplayProps:{id:f,...V}},...p,classes:p?G3(ne,p.classes):ne,...h?h.props.inputProps:{}},...(L&&S||u)&&$==="outlined"?{notched:!0}:{},ref:Y,className:dt(K.props.className,s,J.root),...!h&&{variant:$},...B})})});nJ.NODE_ENV!=="production"&&(Us.propTypes={autoWidth:M.bool,children:M.node,classes:M.object,className:M.string,defaultOpen:M.bool,defaultValue:M.any,displayEmpty:M.bool,IconComponent:M.elementType,id:M.string,input:M.element,inputProps:M.object,label:M.node,labelId:M.string,MenuProps:M.object,multiple:M.bool,native:M.bool,onChange:M.func,onClose:M.func,onOpen:M.func,open:M.bool,renderValue:M.func,SelectDisplayProps:M.object,sx:M.oneOfType([M.arrayOf(M.oneOfType([M.func,M.object,M.bool])),M.func,M.object]),value:M.oneOfType([M.oneOf([""]),M.any]),variant:M.oneOf(["filled","outlined","standard"])}),Us.muiName="Select";function lJ(e,t,n=(l,o)=>l===o){return e.length===t.length&&e.every((l,o)=>n(l,t[o]))}const sJ=2;function Gs(e,t,n,l,o){return n===1?Math.min(e+t,o):Math.max(e-t,l)}function x_(e,t){return e-t}function b_(e,t){const{index:n}=e.reduce((l,o,a)=>{const i=Math.abs(t-o);return l===null||i<l.distance||i===l.distance?{distance:i,index:a}:l},null)??{};return n}function Xm(e,t){if(t.current!==void 0&&e.changedTouches){const n=e;for(let l=0;l<n.changedTouches.length;l+=1){const o=n.changedTouches[l];if(o.identifier===t.current)return{x:o.clientX,y:o.clientY}}return!1}return{x:e.clientX,y:e.clientY}}function Wm(e,t,n){return(e-t)*100/(n-t)}function uJ(e,t,n){return(n-t)*e+t}function cJ(e){if(Math.abs(e)<1){const n=e.toExponential().split("e-"),l=n[0].split(".")[1];return(l?l.length:0)+parseInt(n[1],10)}const t=e.toString().split(".")[1];return t?t.length:0}function TJ(e,t,n){const l=Math.round((e-n)/t)*t+n;return Number(l.toFixed(cJ(t)))}function H_({values:e,newValue:t,index:n}){const l=e.slice();return l[n]=t,l.sort(x_)}function Ym({sliderRef:e,activeIndex:t,setActive:n}){var o,a,i;const l=M4(e.current);(!((o=e.current)!=null&&o.contains(l.activeElement))||Number((a=l==null?void 0:l.activeElement)==null?void 0:a.getAttribute("data-index"))!==t)&&((i=e.current)==null||i.querySelector(`[type="range"][data-index="${t}"]`).focus()),n&&n(t)}function Km(e,t){return typeof e=="number"&&typeof t=="number"?e===t:typeof e=="object"&&typeof t=="object"?lJ(e,t):!1}const QJ={horizontal:{offset:e=>({left:`${e}%`}),leap:e=>({width:`${e}%`})},"horizontal-reverse":{offset:e=>({right:`${e}%`}),leap:e=>({width:`${e}%`})},vertical:{offset:e=>({bottom:`${e}%`}),leap:e=>({height:`${e}%`})}},fJ=e=>e;let Jm;function E_(){return Jm===void 0&&(typeof CSS<"u"&&typeof CSS.supports=="function"?Jm=CSS.supports("touch-action","none"):Jm=!0),Jm}function dJ(e){const{"aria-labelledby":t,defaultValue:n,disabled:l=!1,disableSwap:o=!1,isRtl:a=!1,marks:i=!1,max:s=100,min:T=0,name:u,onChange:Q,onChangeCommitted:f,orientation:h="horizontal",rootRef:p,scale:g=fJ,step:v=1,shiftStep:b=10,tabIndex:L,value:S}=e,_=ae.useRef(void 0),[O,E]=ae.useState(-1),[A,V]=ae.useState(-1),[k,B]=ae.useState(!1),R=ae.useRef(0),F=ae.useRef(null),[q,$]=oT({controlled:S,default:n??T,name:"Slider"}),Z=Q&&((Ge,me,De)=>{const Ye=Ge.nativeEvent||Ge,et=new Ye.constructor(Ye.type,Ye);Object.defineProperty(et,"target",{writable:!0,value:{value:me,name:u}}),F.current=me,Q(et,me,De)}),J=Array.isArray(q);let W=J?q.slice().sort(x_):[q];W=W.map(Ge=>Ge==null?T:Cs(Ge,T,s));const ne=i===!0&&v!==null?[...Array(Math.floor((s-T)/v)+1)].map((Ge,me)=>({value:T+v*me})):i||[],K=ne.map(Ge=>Ge.value),[Y,j]=ae.useState(-1),z=ae.useRef(null),ee=v3(p,z),U=Ge=>me=>{var Ye;const De=Number(me.currentTarget.getAttribute("data-index"));Mm(me.target)&&j(De),V(De),(Ye=Ge==null?void 0:Ge.onFocus)==null||Ye.call(Ge,me)},de=Ge=>me=>{var De;Mm(me.target)||j(-1),V(-1),(De=Ge==null?void 0:Ge.onBlur)==null||De.call(Ge,me)},pe=(Ge,me)=>{const De=Number(Ge.currentTarget.getAttribute("data-index")),Ye=W[De],et=K.indexOf(Ye);let tt=me;if(ne&&v==null){const Tt=K[K.length-1];tt>=Tt?tt=Tt:tt<=K[0]?tt=K[0]:tt=tt<Ye?K[et-1]:K[et+1]}if(tt=Cs(tt,T,s),J){o&&(tt=Cs(tt,W[De-1]||-1/0,W[De+1]||1/0));const Tt=tt;tt=H_({values:W,newValue:tt,index:De});let o1=De;o||(o1=tt.indexOf(Tt)),Ym({sliderRef:z,activeIndex:o1})}$(tt),j(De),Z&&!Km(tt,q)&&Z(Ge,tt,De),f&&f(Ge,F.current??tt)},he=Ge=>me=>{var De;if(["ArrowUp","ArrowDown","ArrowLeft","ArrowRight","PageUp","PageDown","Home","End"].includes(me.key)){me.preventDefault();const Ye=Number(me.currentTarget.getAttribute("data-index")),et=W[Ye];let tt=null;if(v!=null){const Tt=me.shiftKey?b:v;switch(me.key){case"ArrowUp":tt=Gs(et,Tt,1,T,s);break;case"ArrowRight":tt=Gs(et,Tt,a?-1:1,T,s);break;case"ArrowDown":tt=Gs(et,Tt,-1,T,s);break;case"ArrowLeft":tt=Gs(et,Tt,a?1:-1,T,s);break;case"PageUp":tt=Gs(et,b,1,T,s);break;case"PageDown":tt=Gs(et,b,-1,T,s);break;case"Home":tt=T;break;case"End":tt=s;break}}else if(ne){const Tt=K[K.length-1],o1=K.indexOf(et),Ct=[a?"ArrowRight":"ArrowLeft","ArrowDown","PageDown","Home"],d1=[a?"ArrowLeft":"ArrowRight","ArrowUp","PageUp","End"];Ct.includes(me.key)?o1===0?tt=K[0]:tt=K[o1-1]:d1.includes(me.key)&&(o1===K.length-1?tt=Tt:tt=K[o1+1])}tt!=null&&pe(me,tt)}(De=Ge==null?void 0:Ge.onKeyDown)==null||De.call(Ge,me)};V0(()=>{var Ge;l&&z.current.contains(document.activeElement)&&((Ge=document.activeElement)==null||Ge.blur())},[l]),l&&O!==-1&&E(-1),l&&Y!==-1&&j(-1);const se=Ge=>me=>{var De;(De=Ge.onChange)==null||De.call(Ge,me),pe(me,me.target.valueAsNumber)},fe=ae.useRef(void 0);let Se=h;a&&h==="horizontal"&&(Se+="-reverse");const Ee=({finger:Ge,move:me=!1})=>{const{current:De}=z,{width:Ye,height:et,bottom:tt,left:Tt}=De.getBoundingClientRect();let o1;Se.startsWith("vertical")?o1=(tt-Ge.y)/et:o1=(Ge.x-Tt)/Ye,Se.includes("-reverse")&&(o1=1-o1);let Ct;if(Ct=uJ(o1,T,s),v)Ct=TJ(Ct,v,T);else{const m1=b_(K,Ct);Ct=K[m1]}Ct=Cs(Ct,T,s);let d1=0;if(J){me?d1=fe.current:d1=b_(W,Ct),o&&(Ct=Cs(Ct,W[d1-1]||-1/0,W[d1+1]||1/0));const m1=Ct;Ct=H_({values:W,newValue:Ct,index:d1}),o&&me||(d1=Ct.indexOf(m1),fe.current=d1)}return{newValue:Ct,activeIndex:d1}},_e=Dr(Ge=>{const me=Xm(Ge,_);if(!me)return;if(R.current+=1,Ge.type==="mousemove"&&Ge.buttons===0){ze(Ge);return}const{newValue:De,activeIndex:Ye}=Ee({finger:me,move:!0});Ym({sliderRef:z,activeIndex:Ye,setActive:E}),$(De),!k&&R.current>sJ&&B(!0),Z&&!Km(De,q)&&Z(Ge,De,Ye)}),ze=Dr(Ge=>{const me=Xm(Ge,_);if(B(!1),!me)return;const{newValue:De}=Ee({finger:me,move:!0});E(-1),Ge.type==="touchend"&&V(-1),f&&f(Ge,F.current??De),_.current=void 0,Pe()}),ue=Dr(Ge=>{if(l)return;E_()||Ge.preventDefault();const me=Ge.changedTouches[0];me!=null&&(_.current=me.identifier);const De=Xm(Ge,_);if(De!==!1){const{newValue:et,activeIndex:tt}=Ee({finger:De});Ym({sliderRef:z,activeIndex:tt,setActive:E}),$(et),Z&&!Km(et,q)&&Z(Ge,et,tt)}R.current=0;const Ye=M4(z.current);Ye.addEventListener("touchmove",_e,{passive:!0}),Ye.addEventListener("touchend",ze,{passive:!0})}),Pe=ae.useCallback(()=>{const Ge=M4(z.current);Ge.removeEventListener("mousemove",_e),Ge.removeEventListener("mouseup",ze),Ge.removeEventListener("touchmove",_e),Ge.removeEventListener("touchend",ze)},[ze,_e]);ae.useEffect(()=>{const{current:Ge}=z;return Ge.addEventListener("touchstart",ue,{passive:E_()}),()=>{Ge.removeEventListener("touchstart",ue),Pe()}},[Pe,ue]),ae.useEffect(()=>{l&&Pe()},[l,Pe]);const Xe=Ge=>me=>{var et;if((et=Ge.onMouseDown)==null||et.call(Ge,me),l||me.defaultPrevented||me.button!==0)return;me.preventDefault();const De=Xm(me,_);if(De!==!1){const{newValue:tt,activeIndex:Tt}=Ee({finger:De});Ym({sliderRef:z,activeIndex:Tt,setActive:E}),$(tt),Z&&!Km(tt,q)&&Z(me,tt,Tt)}R.current=0;const Ye=M4(z.current);Ye.addEventListener("mousemove",_e,{passive:!0}),Ye.addEventListener("mouseup",ze)},ht=Wm(J?W[0]:T,T,s),ot=Wm(W[W.length-1],T,s)-ht,mt=(Ge={})=>{const me=uT(Ge),De={onMouseDown:Xe(me||{})},Ye={...me,...De};return{...Ge,ref:ee,...Ye}},zt=Ge=>me=>{var Ye;(Ye=Ge.onMouseOver)==null||Ye.call(Ge,me);const De=Number(me.currentTarget.getAttribute("data-index"));V(De)},p1=Ge=>me=>{var De;(De=Ge.onMouseLeave)==null||De.call(Ge,me),V(-1)},st=(Ge={})=>{const me=uT(Ge),De={onMouseOver:zt(me||{}),onMouseLeave:p1(me||{})};return{...Ge,...me,...De}},ct=Ge=>({pointerEvents:O!==-1&&O!==Ge?"none":void 0});let e2;return h==="vertical"&&(e2=a?"vertical-rl":"vertical-lr"),{active:O,axis:Se,axisProps:QJ,dragging:k,focusedThumbIndex:Y,getHiddenInputProps:(Ge={})=>{const me=uT(Ge),De={onChange:se(me||{}),onFocus:U(me||{}),onBlur:de(me||{}),onKeyDown:he(me||{})},Ye={...me,...De};return{tabIndex:L,"aria-labelledby":t,"aria-orientation":h,"aria-valuemax":g(s),"aria-valuemin":g(T),name:u,type:"range",min:e.min,max:e.max,step:e.step===null&&e.marks?"any":e.step??void 0,disabled:l,...Ge,...Ye,style:{...WK,direction:a?"rtl":"ltr",width:"100%",height:"100%",writingMode:e2}}},getRootProps:mt,getThumbProps:st,marks:ne,open:A,range:J,rootRef:ee,trackLeap:ot,trackOffset:ht,values:W,getThumbStyle:ct}}const hJ=e=>!e||!P7(e);function pJ(e){return Ft("MuiSlider",e)}const M6=Bt("MuiSlider",["root","active","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","disabled","dragging","focusVisible","mark","markActive","marked","markLabel","markLabelActive","rail","sizeSmall","thumb","thumbColorPrimary","thumbColorSecondary","thumbColorError","thumbColorSuccess","thumbColorInfo","thumbColorWarning","track","trackInverted","trackFalse","thumbSizeSmall","valueLabel","valueLabelOpen","valueLabelCircle","valueLabelLabel","vertical"]);var mJ={};const yJ=e=>{const{open:t}=e;return{offset:dt(t&&M6.valueLabelOpen),circle:M6.valueLabelCircle,label:M6.valueLabelLabel}};function S_(e){const{children:t,className:n,value:l}=e,o=yJ(e);return t?ae.cloneElement(t,{className:t.props.className},He.jsxs(ae.Fragment,{children:[t.props.children,He.jsx("span",{className:dt(o.offset,n),"aria-hidden":!0,children:He.jsx("span",{className:o.circle,children:He.jsx("span",{className:o.label,children:l})})})]})):null}mJ.NODE_ENV!=="production"&&(S_.propTypes={children:M.element.isRequired,className:M.string,value:M.node});var M_={};function A_(e){return e}const gJ=Ke("span",{name:"MuiSlider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`color${Ue(n.color)}`],n.size!=="medium"&&t[`size${Ue(n.size)}`],n.marked&&t.marked,n.orientation==="vertical"&&t.vertical,n.track==="inverted"&&t.trackInverted,n.track===!1&&t.trackFalse]}})(Rt(({theme:e})=>({borderRadius:12,boxSizing:"content-box",display:"inline-block",position:"relative",cursor:"pointer",touchAction:"none",WebkitTapHighlightColor:"transparent","@media print":{colorAdjust:"exact"},[`&.${M6.disabled}`]:{pointerEvents:"none",cursor:"default",color:(e.vars||e).palette.grey[400]},[`&.${M6.dragging}`]:{[`& .${M6.thumb}, & .${M6.track}`]:{transition:"none"}},variants:[...Object.entries(e.palette).filter(_2()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}})),{props:{orientation:"horizontal"},style:{height:4,width:"100%",padding:"13px 0","@media (pointer: coarse)":{padding:"20px 0"}}},{props:{orientation:"horizontal",size:"small"},style:{height:2}},{props:{orientation:"horizontal",marked:!0},style:{marginBottom:20}},{props:{orientation:"vertical"},style:{height:"100%",width:4,padding:"0 13px","@media (pointer: coarse)":{padding:"0 20px"}}},{props:{orientation:"vertical",size:"small"},style:{width:2}},{props:{orientation:"vertical",marked:!0},style:{marginRight:44}}]}))),vJ=Ke("span",{name:"MuiSlider",slot:"Rail"})({display:"block",position:"absolute",borderRadius:"inherit",backgroundColor:"currentColor",opacity:.38,variants:[{props:{orientation:"horizontal"},style:{width:"100%",height:"inherit",top:"50%",transform:"translateY(-50%)"}},{props:{orientation:"vertical"},style:{height:"100%",width:"inherit",left:"50%",transform:"translateX(-50%)"}},{props:{track:"inverted"},style:{opacity:1}}]}),LJ=Ke("span",{name:"MuiSlider",slot:"Track"})(Rt(({theme:e})=>({display:"block",position:"absolute",borderRadius:"inherit",border:"1px solid currentColor",backgroundColor:"currentColor",transition:e.transitions.create(["left","width","bottom","height"],{duration:e.transitions.duration.shortest}),variants:[{props:{size:"small"},style:{border:"none"}},{props:{orientation:"horizontal"},style:{height:"inherit",top:"50%",transform:"translateY(-50%)"}},{props:{orientation:"vertical"},style:{width:"inherit",left:"50%",transform:"translateX(-50%)"}},{props:{track:!1},style:{display:"none"}},...Object.entries(e.palette).filter(_2()).map(([t])=>({props:{color:t,track:"inverted"},style:{...e.vars?{backgroundColor:e.vars.palette.Slider[`${t}Track`],borderColor:e.vars.palette.Slider[`${t}Track`]}:{backgroundColor:za(e.palette[t].main,.62),borderColor:za(e.palette[t].main,.62),...e.applyStyles("dark",{backgroundColor:Fa(e.palette[t].main,.5)}),...e.applyStyles("dark",{borderColor:Fa(e.palette[t].main,.5)})}}}))]}))),xJ=Ke("span",{name:"MuiSlider",slot:"Thumb",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.thumb,t[`thumbColor${Ue(n.color)}`],n.size!=="medium"&&t[`thumbSize${Ue(n.size)}`]]}})(Rt(({theme:e})=>({position:"absolute",width:20,height:20,boxSizing:"border-box",borderRadius:"50%",outline:0,backgroundColor:"currentColor",display:"flex",alignItems:"center",justifyContent:"center",transition:e.transitions.create(["box-shadow","left","bottom"],{duration:e.transitions.duration.shortest}),"&::before":{position:"absolute",content:'""',borderRadius:"inherit",width:"100%",height:"100%",boxShadow:(e.vars||e).shadows[2]},"&::after":{position:"absolute",content:'""',borderRadius:"50%",width:42,height:42,top:"50%",left:"50%",transform:"translate(-50%, -50%)"},[`&.${M6.disabled}`]:{"&:hover":{boxShadow:"none"}},variants:[{props:{size:"small"},style:{width:12,height:12,"&::before":{boxShadow:"none"}}},{props:{orientation:"horizontal"},style:{top:"50%",transform:"translate(-50%, -50%)"}},{props:{orientation:"vertical"},style:{left:"50%",transform:"translate(-50%, 50%)"}},...Object.entries(e.palette).filter(_2()).map(([t])=>({props:{color:t},style:{[`&:hover, &.${M6.focusVisible}`]:{...e.vars?{boxShadow:`0px 0px 0px 8px rgba(${e.vars.palette[t].mainChannel} / 0.16)`}:{boxShadow:`0px 0px 0px 8px ${O1(e.palette[t].main,.16)}`},"@media (hover: none)":{boxShadow:"none"}},[`&.${M6.active}`]:{...e.vars?{boxShadow:`0px 0px 0px 14px rgba(${e.vars.palette[t].mainChannel} / 0.16)`}:{boxShadow:`0px 0px 0px 14px ${O1(e.palette[t].main,.16)}`}}}}))]}))),__=Ke(S_,{name:"MuiSlider",slot:"ValueLabel"})(Rt(({theme:e})=>({zIndex:1,whiteSpace:"nowrap",...e.typography.body2,fontWeight:500,transition:e.transitions.create(["transform"],{duration:e.transitions.duration.shortest}),position:"absolute",backgroundColor:(e.vars||e).palette.grey[600],borderRadius:2,color:(e.vars||e).palette.common.white,display:"flex",alignItems:"center",justifyContent:"center",padding:"0.25rem 0.75rem",variants:[{props:{orientation:"horizontal"},style:{transform:"translateY(-100%) scale(0)",top:"-10px",transformOrigin:"bottom center","&::before":{position:"absolute",content:'""',width:8,height:8,transform:"translate(-50%, 50%) rotate(45deg)",backgroundColor:"inherit",bottom:0,left:"50%"},[`&.${M6.valueLabelOpen}`]:{transform:"translateY(-100%) scale(1)"}}},{props:{orientation:"vertical"},style:{transform:"translateY(-50%) scale(0)",right:"30px",top:"50%",transformOrigin:"right center","&::before":{position:"absolute",content:'""',width:8,height:8,transform:"translate(-50%, -50%) rotate(45deg)",backgroundColor:"inherit",right:-8,top:"50%"},[`&.${M6.valueLabelOpen}`]:{transform:"translateY(-50%) scale(1)"}}},{props:{size:"small"},style:{fontSize:e.typography.pxToRem(12),padding:"0.25rem 0.5rem"}},{props:{orientation:"vertical",size:"small"},style:{right:"20px"}}]})));M_.NODE_ENV!=="production"&&(__.propTypes={children:M.element.isRequired,index:M.number.isRequired,open:M.bool.isRequired,value:M.node});const bJ=Ke("span",{name:"MuiSlider",slot:"Mark",shouldForwardProp:e=>xm(e)&&e!=="markActive",overridesResolver:(e,t)=>{const{markActive:n}=e;return[t.mark,n&&t.markActive]}})(Rt(({theme:e})=>({position:"absolute",width:2,height:2,borderRadius:1,backgroundColor:"currentColor",variants:[{props:{orientation:"horizontal"},style:{top:"50%",transform:"translate(-1px, -50%)"}},{props:{orientation:"vertical"},style:{left:"50%",transform:"translate(-50%, 1px)"}},{props:{markActive:!0},style:{backgroundColor:(e.vars||e).palette.background.paper,opacity:.8}}]}))),HJ=Ke("span",{name:"MuiSlider",slot:"MarkLabel",shouldForwardProp:e=>xm(e)&&e!=="markLabelActive"})(Rt(({theme:e})=>({...e.typography.body2,color:(e.vars||e).palette.text.secondary,position:"absolute",whiteSpace:"nowrap",variants:[{props:{orientation:"horizontal"},style:{top:30,transform:"translateX(-50%)","@media (pointer: coarse)":{top:40}}},{props:{orientation:"vertical"},style:{left:36,transform:"translateY(50%)","@media (pointer: coarse)":{left:44}}},{props:{markLabelActive:!0},style:{color:(e.vars||e).palette.text.primary}}]}))),EJ=e=>{const{disabled:t,dragging:n,marked:l,orientation:o,track:a,classes:i,color:s,size:T}=e,u={root:["root",t&&"disabled",n&&"dragging",l&&"marked",o==="vertical"&&"vertical",a==="inverted"&&"trackInverted",a===!1&&"trackFalse",s&&`color${Ue(s)}`,T&&`size${Ue(T)}`],rail:["rail"],track:["track"],mark:["mark"],markActive:["markActive"],markLabel:["markLabel"],markLabelActive:["markLabelActive"],valueLabel:["valueLabel"],thumb:["thumb",t&&"disabled",T&&`thumbSize${Ue(T)}`,s&&`thumbColor${Ue(s)}`],active:["active"],disabled:["disabled"],focusVisible:["focusVisible"]};return Zt(u,pJ,i)},SJ=({children:e})=>e,O_=ae.forwardRef(function(t,n){const l=n1({props:t,name:"MuiSlider"}),o=LM(),{"aria-label":a,"aria-valuetext":i,"aria-labelledby":s,component:T="span",components:u={},componentsProps:Q={},color:f="primary",classes:h,className:p,disableSwap:g=!1,disabled:v=!1,getAriaLabel:b,getAriaValueText:L,marks:S=!1,max:_=100,min:O=0,name:E,onChange:A,onChangeCommitted:V,orientation:k="horizontal",shiftStep:B=10,size:R="medium",step:F=1,scale:q=A_,slotProps:$,slots:Z,tabIndex:J,track:W="normal",value:ne,valueLabelDisplay:K="off",valueLabelFormat:Y=A_,...j}=l,z={...l,isRtl:o,max:_,min:O,classes:h,disabled:v,disableSwap:g,orientation:k,marks:S,color:f,size:R,step:F,shiftStep:B,scale:q,track:W,valueLabelDisplay:K,valueLabelFormat:Y},{axisProps:ee,getRootProps:U,getHiddenInputProps:de,getThumbProps:pe,open:he,active:se,axis:fe,focusedThumbIndex:Se,range:Ee,dragging:_e,marks:ze,values:ue,trackOffset:Pe,trackLeap:Xe,getThumbStyle:ht}=dJ({...z,rootRef:n});z.marked=ze.length>0&&ze.some(nt=>nt.label),z.dragging=_e,z.focusedThumbIndex=Se;const ot=EJ(z),mt=(Z==null?void 0:Z.root)??u.Root??gJ,zt=(Z==null?void 0:Z.rail)??u.Rail??vJ,p1=(Z==null?void 0:Z.track)??u.Track??LJ,st=(Z==null?void 0:Z.thumb)??u.Thumb??xJ,ct=(Z==null?void 0:Z.valueLabel)??u.ValueLabel??__,e2=(Z==null?void 0:Z.mark)??u.Mark??bJ,f1=(Z==null?void 0:Z.markLabel)??u.MarkLabel??HJ,Ge=(Z==null?void 0:Z.input)??u.Input??"input",me=($==null?void 0:$.root)??Q.root,De=($==null?void 0:$.rail)??Q.rail,Ye=($==null?void 0:$.track)??Q.track,et=($==null?void 0:$.thumb)??Q.thumb,tt=($==null?void 0:$.valueLabel)??Q.valueLabel,Tt=($==null?void 0:$.mark)??Q.mark,o1=($==null?void 0:$.markLabel)??Q.markLabel,Ct=($==null?void 0:$.input)??Q.input,d1=B0({elementType:mt,getSlotProps:U,externalSlotProps:me,externalForwardedProps:j,additionalProps:{...hJ(mt)&&{as:T}},ownerState:{...z,...me==null?void 0:me.ownerState},className:[ot.root,p]}),m1=B0({elementType:zt,externalSlotProps:De,ownerState:z,className:ot.rail}),it=B0({elementType:p1,externalSlotProps:Ye,additionalProps:{style:{...ee[fe].offset(Pe),...ee[fe].leap(Xe)}},ownerState:{...z,...Ye==null?void 0:Ye.ownerState},className:ot.track}),xt=B0({elementType:st,getSlotProps:pe,externalSlotProps:et,ownerState:{...z,...et==null?void 0:et.ownerState},className:ot.thumb}),te=B0({elementType:ct,externalSlotProps:tt,ownerState:{...z,...tt==null?void 0:tt.ownerState},className:ot.valueLabel}),ve=B0({elementType:e2,externalSlotProps:Tt,ownerState:z,className:ot.mark}),We=B0({elementType:f1,externalSlotProps:o1,ownerState:z,className:ot.markLabel}),rt=B0({elementType:Ge,getSlotProps:de,externalSlotProps:Ct,ownerState:z});return He.jsxs(mt,{...d1,children:[He.jsx(zt,{...m1}),He.jsx(p1,{...it}),ze.filter(nt=>nt.value>=O&&nt.value<=_).map((nt,yt)=>{const _t=Wm(nt.value,O,_),Xt=ee[fe].offset(_t);let Ht;return W===!1?Ht=ue.includes(nt.value):Ht=W==="normal"&&(Ee?nt.value>=ue[0]&&nt.value<=ue[ue.length-1]:nt.value<=ue[0])||W==="inverted"&&(Ee?nt.value<=ue[0]||nt.value>=ue[ue.length-1]:nt.value>=ue[0]),He.jsxs(ae.Fragment,{children:[He.jsx(e2,{"data-index":yt,...ve,...!P7(e2)&&{markActive:Ht},style:{...Xt,...ve.style},className:dt(ve.className,Ht&&ot.markActive)}),nt.label!=null?He.jsx(f1,{"aria-hidden":!0,"data-index":yt,...We,...!P7(f1)&&{markLabelActive:Ht},style:{...Xt,...We.style},className:dt(ot.markLabel,We.className,Ht&&ot.markLabelActive),children:nt.label}):null]},yt)}),ue.map((nt,yt)=>{const _t=Wm(nt,O,_),Xt=ee[fe].offset(_t),Ht=K==="off"?SJ:ct;return He.jsx(Ht,{...!P7(Ht)&&{valueLabelFormat:Y,valueLabelDisplay:K,value:typeof Y=="function"?Y(q(nt),yt):Y,index:yt,open:he===yt||se===yt||K==="on",disabled:v},...te,children:He.jsx(st,{"data-index":yt,...xt,className:dt(ot.thumb,xt.className,se===yt&&ot.active,Se===yt&&ot.focusVisible),style:{...Xt,...ht(yt),...xt.style},children:He.jsx(Ge,{"data-index":yt,"aria-label":b?b(yt):a,"aria-valuenow":q(nt),"aria-labelledby":s,"aria-valuetext":L?L(q(nt),yt):i,value:ue[yt],...rt})})},yt)})]})});M_.NODE_ENV!=="production"&&(O_.propTypes={"aria-label":k0(M.string,e=>Array.isArray(e.value||e.defaultValue)&&e["aria-label"]!=null?new Error("MUI: You need to use the `getAriaLabel` prop instead of `aria-label` when using a range slider."):null),"aria-labelledby":M.string,"aria-valuetext":k0(M.string,e=>Array.isArray(e.value||e.defaultValue)&&e["aria-valuetext"]!=null?new Error("MUI: You need to use the `getAriaValueText` prop instead of `aria-valuetext` when using a range slider."):null),children:M.node,classes:M.object,className:M.string,color:M.oneOfType([M.oneOf(["primary","secondary","error","info","success","warning"]),M.string]),components:M.shape({Input:M.elementType,Mark:M.elementType,MarkLabel:M.elementType,Rail:M.elementType,Root:M.elementType,Thumb:M.elementType,Track:M.elementType,ValueLabel:M.elementType}),componentsProps:M.shape({input:M.oneOfType([M.func,M.object]),mark:M.oneOfType([M.func,M.object]),markLabel:M.oneOfType([M.func,M.object]),rail:M.oneOfType([M.func,M.object]),root:M.oneOfType([M.func,M.object]),thumb:M.oneOfType([M.func,M.object]),track:M.oneOfType([M.func,M.object]),valueLabel:M.oneOfType([M.func,M.shape({children:M.element,className:M.string,open:M.bool,style:M.object,value:M.node,valueLabelDisplay:M.oneOf(["auto","off","on"])})])}),defaultValue:M.oneOfType([M.arrayOf(M.number),M.number]),disabled:M.bool,disableSwap:M.bool,getAriaLabel:M.func,getAriaValueText:M.func,marks:M.oneOfType([M.arrayOf(M.shape({label:M.node,value:M.number.isRequired})),M.bool]),max:M.number,min:M.number,name:M.string,onChange:M.func,onChangeCommitted:M.func,orientation:M.oneOf(["horizontal","vertical"]),scale:M.func,shiftStep:M.number,size:M.oneOfType([M.oneOf(["small","medium"]),M.string]),slotProps:M.shape({input:M.oneOfType([M.func,M.object]),mark:M.oneOfType([M.func,M.object]),markLabel:M.oneOfType([M.func,M.object]),rail:M.oneOfType([M.func,M.object]),root:M.oneOfType([M.func,M.object]),thumb:M.oneOfType([M.func,M.object]),track:M.oneOfType([M.func,M.object]),valueLabel:M.oneOfType([M.func,M.shape({children:M.element,className:M.string,open:M.bool,style:M.object,value:M.node,valueLabelDisplay:M.oneOf(["auto","off","on"])})])}),slots:M.shape({input:M.elementType,mark:M.elementType,markLabel:M.elementType,rail:M.elementType,root:M.elementType,thumb:M.elementType,track:M.elementType,valueLabel:M.elementType}),step:M.number,sx:M.oneOfType([M.arrayOf(M.oneOfType([M.func,M.object,M.bool])),M.func,M.object]),tabIndex:M.number,track:M.oneOf(["inverted","normal",!1]),value:M.oneOfType([M.arrayOf(M.number),M.number]),valueLabelDisplay:M.oneOf(["auto","off","on"]),valueLabelFormat:M.oneOfType([M.func,M.string])});function MJ(e){return Ft("MuiSwitch",e)}const A4=Bt("MuiSwitch",["root","edgeStart","edgeEnd","switchBase","colorPrimary","colorSecondary","sizeSmall","sizeMedium","checked","disabled","input","thumb","track"]);var AJ={};const _J=e=>{const{classes:t,edge:n,size:l,color:o,checked:a,disabled:i}=e,s={root:["root",n&&`edge${Ue(n)}`,`size${Ue(l)}`],switchBase:["switchBase",`color${Ue(o)}`,a&&"checked",i&&"disabled"],thumb:["thumb"],track:["track"],input:["input"]},T=Zt(s,MJ,t);return{...t,...T}},OJ=Ke("span",{name:"MuiSwitch",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.edge&&t[`edge${Ue(n.edge)}`],t[`size${Ue(n.size)}`]]}})({display:"inline-flex",width:34+12*2,height:14+12*2,overflow:"hidden",padding:12,boxSizing:"border-box",position:"relative",flexShrink:0,zIndex:0,verticalAlign:"middle","@media print":{colorAdjust:"exact"},variants:[{props:{edge:"start"},style:{marginLeft:-8}},{props:{edge:"end"},style:{marginRight:-8}},{props:{size:"small"},style:{width:40,height:24,padding:7,[`& .${A4.thumb}`]:{width:16,height:16},[`& .${A4.switchBase}`]:{padding:4,[`&.${A4.checked}`]:{transform:"translateX(16px)"}}}}]}),CJ=Ke(BL,{name:"MuiSwitch",slot:"SwitchBase",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.switchBase,{[`& .${A4.input}`]:t.input},n.color!=="default"&&t[`color${Ue(n.color)}`]]}})(Rt(({theme:e})=>({position:"absolute",top:0,left:0,zIndex:1,color:e.vars?e.vars.palette.Switch.defaultColor:`${e.palette.mode==="light"?e.palette.common.white:e.palette.grey[300]}`,transition:e.transitions.create(["left","transform"],{duration:e.transitions.duration.shortest}),[`&.${A4.checked}`]:{transform:"translateX(20px)"},[`&.${A4.disabled}`]:{color:e.vars?e.vars.palette.Switch.defaultDisabledColor:`${e.palette.mode==="light"?e.palette.grey[100]:e.palette.grey[600]}`},[`&.${A4.checked} + .${A4.track}`]:{opacity:.5},[`&.${A4.disabled} + .${A4.track}`]:{opacity:e.vars?e.vars.opacity.switchTrackDisabled:`${e.palette.mode==="light"?.12:.2}`},[`& .${A4.input}`]:{left:"-100%",width:"300%"}})),Rt(({theme:e})=>({"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:O1(e.palette.action.active,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},variants:[...Object.entries(e.palette).filter(_2(["light"])).map(([t])=>({props:{color:t},style:{[`&.${A4.checked}`]:{color:(e.vars||e).palette[t].main,"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette[t].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:O1(e.palette[t].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${A4.disabled}`]:{color:e.vars?e.vars.palette.Switch[`${t}DisabledColor`]:`${e.palette.mode==="light"?za(e.palette[t].main,.62):Fa(e.palette[t].main,.55)}`}},[`&.${A4.checked} + .${A4.track}`]:{backgroundColor:(e.vars||e).palette[t].main}}}))]}))),wJ=Ke("span",{name:"MuiSwitch",slot:"Track"})(Rt(({theme:e})=>({height:"100%",width:"100%",borderRadius:14/2,zIndex:-1,transition:e.transitions.create(["opacity","background-color"],{duration:e.transitions.duration.shortest}),backgroundColor:e.vars?e.vars.palette.common.onBackground:`${e.palette.mode==="light"?e.palette.common.black:e.palette.common.white}`,opacity:e.vars?e.vars.opacity.switchTrack:`${e.palette.mode==="light"?.38:.3}`}))),VJ=Ke("span",{name:"MuiSwitch",slot:"Thumb"})(Rt(({theme:e})=>({boxShadow:(e.vars||e).shadows[1],backgroundColor:"currentColor",width:20,height:20,borderRadius:"50%"}))),C_=ae.forwardRef(function(t,n){const l=n1({props:t,name:"MuiSwitch"}),{className:o,color:a="primary",edge:i=!1,size:s="medium",sx:T,slots:u={},slotProps:Q={},...f}=l,h={...l,color:a,edge:i,size:s},p=_J(h),g={slots:u,slotProps:Q},[v,b]=r1("root",{className:dt(p.root,o),elementType:OJ,externalForwardedProps:g,ownerState:h,additionalProps:{sx:T}}),[L,S]=r1("thumb",{className:p.thumb,elementType:VJ,externalForwardedProps:g,ownerState:h}),_=He.jsx(L,{...S}),[O,E]=r1("track",{className:p.track,elementType:wJ,externalForwardedProps:g,ownerState:h});return He.jsxs(v,{...b,children:[He.jsx(CJ,{type:"checkbox",icon:_,checkedIcon:_,ref:n,ownerState:h,...f,classes:{...p,root:p.switchBase},slots:{...u.switchBase&&{root:u.switchBase},...u.input&&{input:u.input}},slotProps:{...Q.switchBase&&{root:typeof Q.switchBase=="function"?Q.switchBase(h):Q.switchBase},...Q.input&&{input:typeof Q.input=="function"?Q.input(h):Q.input}}}),He.jsx(O,{...E})]})});AJ.NODE_ENV!=="production"&&(C_.propTypes={checked:M.bool,checkedIcon:M.node,classes:M.object,className:M.string,color:M.oneOfType([M.oneOf(["default","primary","secondary","error","info","success","warning"]),M.string]),defaultChecked:M.bool,disabled:M.bool,disableRipple:M.bool,edge:M.oneOf(["end","start",!1]),icon:M.node,id:M.string,inputProps:M.object,inputRef:xn,onChange:M.func,required:M.bool,size:M.oneOfType([M.oneOf(["medium","small"]),M.string]),slotProps:M.shape({input:M.oneOfType([M.func,M.object]),root:M.oneOfType([M.func,M.object]),switchBase:M.oneOfType([M.func,M.object]),thumb:M.oneOfType([M.func,M.object]),track:M.oneOfType([M.func,M.object])}),slots:M.shape({input:M.elementType,root:M.elementType,switchBase:M.elementType,thumb:M.elementType,track:M.elementType}),sx:M.oneOfType([M.arrayOf(M.oneOfType([M.func,M.object,M.bool])),M.func,M.object]),value:M.any});function DJ(e){return Ft("MuiTextField",e)}Bt("MuiTextField",["root"]);var w_={};const RJ={standard:$m,filled:zm,outlined:Gm},kJ=e=>{const{classes:t}=e;return Zt({root:["root"]},DJ,t)},NJ=Ke(yT,{name:"MuiTextField",slot:"Root"})({}),Ga=ae.forwardRef(function(t,n){const l=n1({props:t,name:"MuiTextField"}),{autoComplete:o,autoFocus:a=!1,children:i,className:s,color:T="primary",defaultValue:u,disabled:Q=!1,error:f=!1,FormHelperTextProps:h,fullWidth:p=!1,helperText:g,id:v,InputLabelProps:b,inputProps:L,InputProps:S,inputRef:_,label:O,maxRows:E,minRows:A,multiline:V=!1,name:k,onBlur:B,onChange:R,onFocus:F,placeholder:q,required:$=!1,rows:Z,select:J=!1,SelectProps:W,slots:ne={},slotProps:K={},type:Y,value:j,variant:z="outlined",...ee}=l,U={...l,autoFocus:a,color:T,disabled:Q,error:f,fullWidth:p,multiline:V,required:$,select:J,variant:z},de=kJ(U);w_.NODE_ENV!=="production"&&J&&!i&&console.error("MUI: `children` must be passed when using the `TextField` component with `select`.");const pe=Ps(v),he=g&&pe?`${pe}-helper-text`:void 0,se=O&&pe?`${pe}-label`:void 0,fe=RJ[z],Se={slots:ne,slotProps:{input:S,inputLabel:b,htmlInput:L,formHelperText:h,select:W,...K}},Ee={},_e=Se.slotProps.inputLabel;z==="outlined"&&(_e&&typeof _e.shrink<"u"&&(Ee.notched=_e.shrink),Ee.label=O),J&&((!W||!W.native)&&(Ee.id=void 0),Ee["aria-describedby"]=void 0);const[ze,ue]=r1("root",{elementType:NJ,shouldForwardComponentProp:!0,externalForwardedProps:{...Se,...ee},ownerState:U,className:dt(de.root,s),ref:n,additionalProps:{disabled:Q,error:f,fullWidth:p,required:$,color:T,variant:z}}),[Pe,Xe]=r1("input",{elementType:fe,externalForwardedProps:Se,additionalProps:Ee,ownerState:U}),[ht,ot]=r1("inputLabel",{elementType:XA,externalForwardedProps:Se,ownerState:U}),[mt,zt]=r1("htmlInput",{elementType:"input",externalForwardedProps:Se,ownerState:U}),[p1,st]=r1("formHelperText",{elementType:FA,externalForwardedProps:Se,ownerState:U}),[ct,e2]=r1("select",{elementType:Us,externalForwardedProps:Se,ownerState:U}),f1=He.jsx(Pe,{"aria-describedby":he,autoComplete:o,autoFocus:a,defaultValue:u,fullWidth:p,multiline:V,name:k,rows:Z,maxRows:E,minRows:A,type:Y,value:j,id:pe,inputRef:_,onBlur:B,onChange:R,onFocus:F,placeholder:q,inputProps:zt,slots:{input:ne.htmlInput?mt:void 0},...Xe});return He.jsxs(ze,{...ue,children:[O!=null&&O!==""&&He.jsx(ht,{htmlFor:pe,id:se,...ot,children:O}),J?He.jsx(ct,{"aria-describedby":he,id:pe,labelId:se,value:j,input:f1,...e2,children:i}):f1,g&&He.jsx(p1,{id:he,...st,children:g})]})});w_.NODE_ENV!=="production"&&(Ga.propTypes={autoComplete:M.string,autoFocus:M.bool,children:M.node,classes:M.object,className:M.string,color:M.oneOfType([M.oneOf(["primary","secondary","error","info","success","warning"]),M.string]),defaultValue:M.any,disabled:M.bool,error:M.bool,FormHelperTextProps:M.object,fullWidth:M.bool,helperText:M.node,id:M.string,InputLabelProps:M.object,inputProps:M.object,InputProps:M.object,inputRef:xn,label:M.node,margin:M.oneOf(["dense","none","normal"]),maxRows:M.oneOfType([M.number,M.string]),minRows:M.oneOfType([M.number,M.string]),multiline:M.bool,name:M.string,onBlur:M.func,onChange:M.func,onFocus:M.func,placeholder:M.string,required:M.bool,rows:M.oneOfType([M.number,M.string]),select:M.bool,SelectProps:M.object,size:M.oneOfType([M.oneOf(["medium","small"]),M.string]),slotProps:M.shape({formHelperText:M.oneOfType([M.func,M.object]),htmlInput:M.oneOfType([M.func,M.object]),input:M.oneOfType([M.func,M.object]),inputLabel:M.oneOfType([M.func,M.object]),select:M.oneOfType([M.func,M.object])}),slots:M.shape({formHelperText:M.elementType,htmlInput:M.elementType,input:M.elementType,inputLabel:M.elementType,root:M.elementType,select:M.elementType}),sx:M.oneOfType([M.arrayOf(M.oneOfType([M.func,M.object,M.bool])),M.func,M.object]),type:M.string,value:M.any,variant:M.oneOf(["filled","outlined","standard"])});const BJ=({model:e,fontSize:t="small"})=>{if(!e)return xe.createElement($M,{fontSize:t});switch(e){case"OPENAI":return xe.createElement(D7,{fontSize:t,viewBox:"0 0 24 24"},xe.createElement("path",{d:"M22.282 9.821a5.985 5.985 0 0 0-.516-4.91 6.046 6.046 0 0 0-6.51-2.9A6.065 6.065 0 0 0 4.981 4.18a5.985 5.985 0 0 0-3.998 2.9 6.046 6.046 0 0 0 .743 7.097 5.98 5.98 0 0 0 .51 4.911 6.051 6.051 0 0 0 6.515 2.9A5.985 5.985 0 0 0 13.26 24a6.056 6.056 0 0 0 5.772-4.206 5.99 5.99 0 0 0 3.997-2.9 6.056 6.056 0 0 0-.747-7.073zM13.26 22.43a4.476 4.476 0 0 1-2.876-1.04l.141-.081 4.779-2.758a.795.795 0 0 0 .392-.681v-6.737l2.02 1.168a.071.071 0 0 1 .038.052v5.583a4.504 4.504 0 0 1-4.494 4.494zM3.6 18.304a4.47 4.47 0 0 1-.535-3.014l.142.085 4.783 2.759a.78.78 0 0 0 .78 0l5.843-3.369v2.332a.074.074 0 0 1-.028.057l-4.832 2.795a4.504 4.504 0 0 1-6.153-1.645zm-.856-8.246a4.476 4.476 0 0 1 2.346-1.973l-.004.162v5.517a.787.787 0 0 0 .392.681l5.843 3.369-2.02 1.168a.069.069 0 0 1-.066 0l-4.827-2.79a4.504 4.504 0 0 1-1.664-6.134zm16.008 3.73-5.843-3.369 2.02-1.168a.07.07 0 0 1 .066 0l4.827 2.79a4.494 4.494 0 0 1-1.12 8.107v-5.517a.795.795 0 0 0-.397-.681zm2.253-3.395a4.47 4.47 0 0 1-.535.983l-.142-.085-4.779-2.759a.78.78 0 0 0-.78 0L8.927 11.9V9.569a.07.07 0 0 1 .028-.057l4.827-2.79a4.504 4.504 0 0 1 6.682 2.771zm-12.35 3.369-2.02-1.168a.067.067 0 0 1-.037-.052V7.967a4.504 4.504 0 0 1 7.37-3.454l-.142.081-4.779 2.759a.795.795 0 0 0-.392.681zm1.069-2.332 2.606-1.507 2.606 1.507v3.014l-2.606 1.507-2.606-1.507z"}));case"ANTHROPIC_CLAUDE":return xe.createElement(D7,{fontSize:t,viewBox:"0 0 24 24"},xe.createElement("path",{d:"M15.5 2.25a4.25 4.25 0 0 0-4.25 4.25h-2.5A6.75 6.75 0 0 1 15.5 0h2.5v2.25zM2.25 8.5A4.25 4.25 0 0 0 6.5 12.75v2.5A6.75 6.75 0 0 1 0 8.5v-2.5h2.25zM8.5 21.75a4.25 4.25 0 0 0 4.25-4.25h2.5A6.75 6.75 0 0 1 8.5 24H6v-2.25zM21.75 15.5a4.25 4.25 0 0 0-4.25-4.25v-2.5A6.75 6.75 0 0 1 24 15.5V18h-2.25z"}),xe.createElement("path",{d:"M12 7a5 5 0 1 0 0 10 5 5 0 0 0 0-10zm0 8a3 3 0 1 1 0-6 3 3 0 0 1 0 6z"}));case"GOOGLE_GEMINI":return xe.createElement(D7,{fontSize:t,viewBox:"0 0 24 24"},xe.createElement("path",{d:"M4 12c0-4.41 3.59-8 8-8s8 3.59 8 8-3.59 8-8 8-8-3.59-8-8m8-10c-5.51 0-10 4.49-10 10s4.49 10 10 10 10-4.49 10-10S17.51 2 12 2m2.5 10c0 1.38-1.12 2.5-2.5 2.5S9.5 13.38 9.5 12 10.62 9.5 12 9.5s2.5 1.12 2.5 2.5M12 6c-3.31 0-6 2.69-6 6s2.69 6 6 6 6-2.69 6-6-2.69-6-6-6m0 10c-2.21 0-4-1.79-4-4s1.79-4 4-4 4 1.79 4 4-1.79 4-4 4"}));default:return xe.createElement($M,{fontSize:t})}},PJ=({enabledModels:e})=>{const t=Na("settings"),n=Na("chat"),l=t.state,o=(s,T)=>{const u=t.state,Q={...u,llm:{...u.llm,models:{...u.llm.models,[s]:{...u.llm.models[s],version:T,enabled:!0}}}};t.saveSettings(Q),n.loadInitialMessage()},a=s=>{const T=Pc[s],u=T.labels;return T.options.map(Q=>{const f=Q;return{label:u[f],value:f}})},i=s=>{const T=Pc[s],u=l.llm.models[s].version,Q=T.options;return!u||!Q.includes(u)?T.default:u};return xe.createElement(Nr,{sx:{mt:2,display:"flex",flexDirection:"column",gap:1}},e.map(s=>xe.createElement(Nr,{key:s.modelKey,sx:{display:"flex",alignItems:"center",gap:1}},xe.createElement(K3,{variant:"body2",sx:{minWidth:100}},s.name,":"),xe.createElement(yT,{size:"small",sx:{minWidth:200}},xe.createElement(Us,{value:i(s.modelKey),onChange:T=>o(s.modelKey,T.target.value),"aria-label":`Select ${s.name} version`,MenuProps:{disablePortal:!0,PaperProps:{sx:{maxHeight:200}}}},a(s.modelKey).map(T=>xe.createElement(F7,{key:T.value,value:T.value},T.label)))))))};function roe(){}function ioe(){}function V_(e){const t=[],n=String(e||"");let l=n.indexOf(","),o=0,a=!1;for(;!a;){l===-1&&(l=n.length,a=!0);const i=n.slice(o,l).trim();(i||!a)&&t.push(i),o=l+1,l=n.indexOf(",",o)}return t}function jJ(e,t){const n={};return(e[e.length-1]===""?[...e,""]:e).join((n.padRight?" ":"")+","+(n.padLeft===!1?"":" ")).trim()}const IJ=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,FJ=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,zJ={};function D_(e,t){return(zJ.jsx?FJ:IJ).test(e)}const qJ=/[ \t\n\f\r]/g;function $J(e){return typeof e=="object"?e.type==="text"?R_(e.value):!1:R_(e)}function R_(e){return e.replace(qJ,"")===""}class ET{constructor(t,n,l){this.normal=n,this.property=t,l&&(this.space=l)}}ET.prototype.normal={},ET.prototype.property={},ET.prototype.space=void 0;function k_(e,t){const n={},l={};for(const o of e)Object.assign(n,o.property),Object.assign(l,o.normal);return new ET(n,l,t)}function ST(e){return e.toLowerCase()}class J4{constructor(t,n){this.attribute=n,this.property=t}}J4.prototype.attribute="",J4.prototype.booleanish=!1,J4.prototype.boolean=!1,J4.prototype.commaOrSpaceSeparated=!1,J4.prototype.commaSeparated=!1,J4.prototype.defined=!1,J4.prototype.mustUseProperty=!1,J4.prototype.number=!1,J4.prototype.overloadedBoolean=!1,J4.prototype.property="",J4.prototype.spaceSeparated=!1,J4.prototype.space=void 0;let UJ=0;const Yt=z7(),W2=z7(),tx=z7(),Je=z7(),s2=z7(),Zs=z7(),bn=z7();function z7(){return 2**++UJ}const nx=Object.freeze(Object.defineProperty({__proto__:null,boolean:Yt,booleanish:W2,commaOrSpaceSeparated:bn,commaSeparated:Zs,number:Je,overloadedBoolean:tx,spaceSeparated:s2},Symbol.toStringTag,{value:"Module"})),rx=Object.keys(nx);class ix extends J4{constructor(t,n,l,o){let a=-1;if(super(t,n),N_(this,"space",o),typeof l=="number")for(;++a<rx.length;){const i=rx[a];N_(this,rx[a],(l&nx[i])===nx[i])}}}ix.prototype.defined=!0;function N_(e,t,n){n&&(e[t]=n)}function Xs(e){const t={},n={};for(const[l,o]of Object.entries(e.properties)){const a=new ix(l,e.transform(e.attributes||{},l),o,e.space);e.mustUseProperty&&e.mustUseProperty.includes(l)&&(a.mustUseProperty=!0),t[l]=a,n[ST(l)]=l,n[ST(a.attribute)]=l}return new ET(t,n,e.space)}const B_=Xs({properties:{ariaActiveDescendant:null,ariaAtomic:W2,ariaAutoComplete:null,ariaBusy:W2,ariaChecked:W2,ariaColCount:Je,ariaColIndex:Je,ariaColSpan:Je,ariaControls:s2,ariaCurrent:null,ariaDescribedBy:s2,ariaDetails:null,ariaDisabled:W2,ariaDropEffect:s2,ariaErrorMessage:null,ariaExpanded:W2,ariaFlowTo:s2,ariaGrabbed:W2,ariaHasPopup:null,ariaHidden:W2,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:s2,ariaLevel:Je,ariaLive:null,ariaModal:W2,ariaMultiLine:W2,ariaMultiSelectable:W2,ariaOrientation:null,ariaOwns:s2,ariaPlaceholder:null,ariaPosInSet:Je,ariaPressed:W2,ariaReadOnly:W2,ariaRelevant:null,ariaRequired:W2,ariaRoleDescription:s2,ariaRowCount:Je,ariaRowIndex:Je,ariaRowSpan:Je,ariaSelected:W2,ariaSetSize:Je,ariaSort:null,ariaValueMax:Je,ariaValueMin:Je,ariaValueNow:Je,ariaValueText:null,role:null},transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()}});function P_(e,t){return t in e?e[t]:t}function j_(e,t){return P_(e,t.toLowerCase())}const GJ=Xs({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Zs,acceptCharset:s2,accessKey:s2,action:null,allow:null,allowFullScreen:Yt,allowPaymentRequest:Yt,allowUserMedia:Yt,alt:null,as:null,async:Yt,autoCapitalize:null,autoComplete:s2,autoFocus:Yt,autoPlay:Yt,blocking:s2,capture:null,charSet:null,checked:Yt,cite:null,className:s2,cols:Je,colSpan:null,content:null,contentEditable:W2,controls:Yt,controlsList:s2,coords:Je|Zs,crossOrigin:null,data:null,dateTime:null,decoding:null,default:Yt,defer:Yt,dir:null,dirName:null,disabled:Yt,download:tx,draggable:W2,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:Yt,formTarget:null,headers:s2,height:Je,hidden:tx,high:Je,href:null,hrefLang:null,htmlFor:s2,httpEquiv:s2,id:null,imageSizes:null,imageSrcSet:null,inert:Yt,inputMode:null,integrity:null,is:null,isMap:Yt,itemId:null,itemProp:s2,itemRef:s2,itemScope:Yt,itemType:s2,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:Yt,low:Je,manifest:null,max:null,maxLength:Je,media:null,method:null,min:null,minLength:Je,multiple:Yt,muted:Yt,name:null,nonce:null,noModule:Yt,noValidate:Yt,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:Yt,optimum:Je,pattern:null,ping:s2,placeholder:null,playsInline:Yt,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:Yt,referrerPolicy:null,rel:s2,required:Yt,reversed:Yt,rows:Je,rowSpan:Je,sandbox:s2,scope:null,scoped:Yt,seamless:Yt,selected:Yt,shadowRootClonable:Yt,shadowRootDelegatesFocus:Yt,shadowRootMode:null,shape:null,size:Je,sizes:null,slot:null,span:Je,spellCheck:W2,src:null,srcDoc:null,srcLang:null,srcSet:null,start:Je,step:null,style:null,tabIndex:Je,target:null,title:null,translate:null,type:null,typeMustMatch:Yt,useMap:null,value:W2,width:Je,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:s2,axis:null,background:null,bgColor:null,border:Je,borderColor:null,bottomMargin:Je,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:Yt,declare:Yt,event:null,face:null,frame:null,frameBorder:null,hSpace:Je,leftMargin:Je,link:null,longDesc:null,lowSrc:null,marginHeight:Je,marginWidth:Je,noResize:Yt,noHref:Yt,noShade:Yt,noWrap:Yt,object:null,profile:null,prompt:null,rev:null,rightMargin:Je,rules:null,scheme:null,scrolling:W2,standby:null,summary:null,text:null,topMargin:Je,valueType:null,version:null,vAlign:null,vLink:null,vSpace:Je,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:Yt,disableRemotePlayback:Yt,prefix:null,property:null,results:Je,security:null,unselectable:null},space:"html",transform:j_}),ZJ=Xs({attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},properties:{about:bn,accentHeight:Je,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:Je,amplitude:Je,arabicForm:null,ascent:Je,attributeName:null,attributeType:null,azimuth:Je,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:Je,by:null,calcMode:null,capHeight:Je,className:s2,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:Je,diffuseConstant:Je,direction:null,display:null,dur:null,divisor:Je,dominantBaseline:null,download:Yt,dx:null,dy:null,edgeMode:null,editable:null,elevation:Je,enableBackground:null,end:null,event:null,exponent:Je,externalResourcesRequired:null,fill:null,fillOpacity:Je,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:Zs,g2:Zs,glyphName:Zs,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:Je,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:Je,horizOriginX:Je,horizOriginY:Je,id:null,ideographic:Je,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:Je,k:Je,k1:Je,k2:Je,k3:Je,k4:Je,kernelMatrix:bn,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:Je,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:Je,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:Je,overlineThickness:Je,paintOrder:null,panose1:null,path:null,pathLength:Je,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:s2,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:Je,pointsAtY:Je,pointsAtZ:Je,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:bn,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:bn,rev:bn,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:bn,requiredFeatures:bn,requiredFonts:bn,requiredFormats:bn,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:Je,specularExponent:Je,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:Je,strikethroughThickness:Je,string:null,stroke:null,strokeDashArray:bn,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:Je,strokeOpacity:Je,strokeWidth:null,style:null,surfaceScale:Je,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:bn,tabIndex:Je,tableValues:null,target:null,targetX:Je,targetY:Je,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:bn,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:Je,underlineThickness:Je,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:Je,values:null,vAlphabetic:Je,vMathematical:Je,vectorEffect:null,vHanging:Je,vIdeographic:Je,version:null,vertAdvY:Je,vertOriginX:Je,vertOriginY:Je,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:Je,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:P_}),I_=Xs({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(e,t){return"xlink:"+t.slice(5).toLowerCase()}}),F_=Xs({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:j_}),z_=Xs({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()}}),XJ={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"},WJ=/[A-Z]/g,q_=/-[a-z]/g,YJ=/^data[-\w.:]+$/i;function $_(e,t){const n=ST(t);let l=t,o=J4;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)==="data"&&YJ.test(t)){if(t.charAt(4)==="-"){const a=t.slice(5).replace(q_,JJ);l="data"+a.charAt(0).toUpperCase()+a.slice(1)}else{const a=t.slice(4);if(!q_.test(a)){let i=a.replace(WJ,KJ);i.charAt(0)!=="-"&&(i="-"+i),t="data"+i}}o=ix}return new o(l,t)}function KJ(e){return"-"+e.toLowerCase()}function JJ(e){return e.charAt(1).toUpperCase()}const U_=k_([B_,GJ,I_,F_,z_],"html"),ey=k_([B_,ZJ,I_,F_,z_],"svg");function G_(e){const t=String(e||"").trim();return t?t.split(/[ \t\n\r\f]+/g):[]}function eee(e){return e.join(" ").trim()}var Ws={},ax,Z_;function tee(){if(Z_)return ax;Z_=1;var e=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,t=/\n/g,n=/^\s*/,l=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,o=/^:\s*/,a=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,i=/^[;\s]*/,s=/^\s+|\s+$/g,T=`
|
|
334
|
+
`))}},[me,ht,S,_,Y]),Ge&&(S?f1.length===0?ct=null:ct=f1.reduce((it,xt,te)=>(it.push(xt),te<f1.length-1&&it.push(", "),it),[]):ct=e2);let Ye=fe;!i&&se&&pe&&(Ye=ze.clientWidth);let et;typeof Z<"u"?et=Z:et=f?null:0;const tt=$.id||(_?`mui-component-select-${_}`:void 0),Tt={...t,variant:ne,value:Y,open:p1,error:p},o1=tJ(Tt),Ct={...L.PaperProps,...(m1=L.slotProps)==null?void 0:m1.paper},d1=Ps();return He.jsxs(ae.Fragment,{children:[He.jsx(YK,{as:"div",ref:_e,tabIndex:et,role:"combobox","aria-controls":p1?d1:void 0,"aria-disabled":f?"true":void 0,"aria-expanded":p1?"true":"false","aria-haspopup":"listbox","aria-label":o,"aria-labelledby":[b,tt].filter(Boolean).join(" ")||void 0,"aria-describedby":l,"aria-required":q?"true":void 0,"aria-invalid":p?"true":void 0,onKeyDown:zt,onMouseDown:f||R?null:Pe,onBlur:st,onFocus:V,...$,ownerState:Tt,className:dt($.className,o1.select,T),id:tt,children:eJ(ct)?g_||(g_=He.jsx("span",{className:"notranslate","aria-hidden":!0,children:""})):ct}),He.jsx(JK,{"aria-invalid":p,value:Array.isArray(Y)?Y.join(","):Y,name:_,ref:U,"aria-hidden":!0,onChange:ot,tabIndex:-1,disabled:f,className:o1.nativeInput,autoFocus:a,required:q,...K,ownerState:Tt}),He.jsx(KK,{as:g,className:o1.icon,ownerState:Tt}),He.jsx(u_,{id:`menu-${_||""}`,anchorEl:ze,open:p1,onClose:Xe,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"},...L,slotProps:{...L.slotProps,list:{"aria-labelledby":b,role:"listbox","aria-multiselectable":S?"true":void 0,disableListWrap:!0,id:d1,...L.MenuListProps},paper:{...Ct,style:{minWidth:Ye,...Ct!=null?Ct.style:null}}},children:De})]})});Zm.NODE_ENV!=="production"&&(L_.propTypes={"aria-describedby":M.string,"aria-label":M.string,autoFocus:M.bool,autoWidth:M.bool,children:M.node,classes:M.object,className:M.string,defaultOpen:M.bool,defaultValue:M.any,disabled:M.bool,displayEmpty:M.bool,error:M.bool,IconComponent:M.elementType.isRequired,inputRef:xn,labelId:M.string,MenuProps:M.object,multiple:M.bool,name:M.string,onBlur:M.func,onChange:M.func,onClose:M.func,onFocus:M.func,onOpen:M.func,open:M.bool,readOnly:M.bool,renderValue:M.func,required:M.bool,SelectDisplayProps:M.object,tabIndex:M.oneOfType([M.number,M.string]),type:M.any,value:M.any,variant:M.oneOf(["standard","outlined","filled"])});var nJ={};const rJ=e=>{const{classes:t}=e,l=Zt({root:["root"]},y_,t);return{...t,...l}},ex={name:"MuiSelect",slot:"Root",shouldForwardProp:e=>S4(e)&&e!=="variant"},iJ=Ke($m,ex)(""),aJ=Ke(Gm,ex)(""),oJ=Ke(zm,ex)(""),Us=ae.forwardRef(function(t,n){const l=n1({name:"MuiSelect",props:t}),{autoWidth:o=!1,children:a,classes:i={},className:s,defaultOpen:T=!1,displayEmpty:u=!1,IconComponent:Q=$X,id:f,input:h,inputProps:p,label:g,labelId:v,MenuProps:b,multiple:L=!1,native:S=!1,onClose:_,onOpen:O,open:E,renderValue:A,SelectDisplayProps:V,variant:k="outlined",...B}=l,R=S?f_:L_,F=T5(),q=Ua({props:l,muiFormControl:F,states:["variant","error"]}),$=q.variant||k,Z={...l,variant:$,classes:i},J=rJ(Z),{root:W,...ne}=J,K=h||{standard:He.jsx(iJ,{ownerState:Z}),outlined:He.jsx(aJ,{label:g,ownerState:Z}),filled:He.jsx(oJ,{ownerState:Z})}[$],Y=v3(n,QT(K));return He.jsx(ae.Fragment,{children:ae.cloneElement(K,{inputComponent:R,inputProps:{children:a,error:q.error,IconComponent:Q,variant:$,type:void 0,multiple:L,...S?{id:f}:{autoWidth:o,defaultOpen:T,displayEmpty:u,labelId:v,MenuProps:b,onClose:_,onOpen:O,open:E,renderValue:A,SelectDisplayProps:{id:f,...V}},...p,classes:p?G3(ne,p.classes):ne,...h?h.props.inputProps:{}},...(L&&S||u)&&$==="outlined"?{notched:!0}:{},ref:Y,className:dt(K.props.className,s,J.root),...!h&&{variant:$},...B})})});nJ.NODE_ENV!=="production"&&(Us.propTypes={autoWidth:M.bool,children:M.node,classes:M.object,className:M.string,defaultOpen:M.bool,defaultValue:M.any,displayEmpty:M.bool,IconComponent:M.elementType,id:M.string,input:M.element,inputProps:M.object,label:M.node,labelId:M.string,MenuProps:M.object,multiple:M.bool,native:M.bool,onChange:M.func,onClose:M.func,onOpen:M.func,open:M.bool,renderValue:M.func,SelectDisplayProps:M.object,sx:M.oneOfType([M.arrayOf(M.oneOfType([M.func,M.object,M.bool])),M.func,M.object]),value:M.oneOfType([M.oneOf([""]),M.any]),variant:M.oneOf(["filled","outlined","standard"])}),Us.muiName="Select";function lJ(e,t,n=(l,o)=>l===o){return e.length===t.length&&e.every((l,o)=>n(l,t[o]))}const sJ=2;function Gs(e,t,n,l,o){return n===1?Math.min(e+t,o):Math.max(e-t,l)}function x_(e,t){return e-t}function b_(e,t){const{index:n}=e.reduce((l,o,a)=>{const i=Math.abs(t-o);return l===null||i<l.distance||i===l.distance?{distance:i,index:a}:l},null)??{};return n}function Xm(e,t){if(t.current!==void 0&&e.changedTouches){const n=e;for(let l=0;l<n.changedTouches.length;l+=1){const o=n.changedTouches[l];if(o.identifier===t.current)return{x:o.clientX,y:o.clientY}}return!1}return{x:e.clientX,y:e.clientY}}function Wm(e,t,n){return(e-t)*100/(n-t)}function uJ(e,t,n){return(n-t)*e+t}function cJ(e){if(Math.abs(e)<1){const n=e.toExponential().split("e-"),l=n[0].split(".")[1];return(l?l.length:0)+parseInt(n[1],10)}const t=e.toString().split(".")[1];return t?t.length:0}function TJ(e,t,n){const l=Math.round((e-n)/t)*t+n;return Number(l.toFixed(cJ(t)))}function H_({values:e,newValue:t,index:n}){const l=e.slice();return l[n]=t,l.sort(x_)}function Ym({sliderRef:e,activeIndex:t,setActive:n}){var o,a,i;const l=M4(e.current);(!((o=e.current)!=null&&o.contains(l.activeElement))||Number((a=l==null?void 0:l.activeElement)==null?void 0:a.getAttribute("data-index"))!==t)&&((i=e.current)==null||i.querySelector(`[type="range"][data-index="${t}"]`).focus()),n&&n(t)}function Km(e,t){return typeof e=="number"&&typeof t=="number"?e===t:typeof e=="object"&&typeof t=="object"?lJ(e,t):!1}const QJ={horizontal:{offset:e=>({left:`${e}%`}),leap:e=>({width:`${e}%`})},"horizontal-reverse":{offset:e=>({right:`${e}%`}),leap:e=>({width:`${e}%`})},vertical:{offset:e=>({bottom:`${e}%`}),leap:e=>({height:`${e}%`})}},fJ=e=>e;let Jm;function E_(){return Jm===void 0&&(typeof CSS<"u"&&typeof CSS.supports=="function"?Jm=CSS.supports("touch-action","none"):Jm=!0),Jm}function dJ(e){const{"aria-labelledby":t,defaultValue:n,disabled:l=!1,disableSwap:o=!1,isRtl:a=!1,marks:i=!1,max:s=100,min:T=0,name:u,onChange:Q,onChangeCommitted:f,orientation:h="horizontal",rootRef:p,scale:g=fJ,step:v=1,shiftStep:b=10,tabIndex:L,value:S}=e,_=ae.useRef(void 0),[O,E]=ae.useState(-1),[A,V]=ae.useState(-1),[k,B]=ae.useState(!1),R=ae.useRef(0),F=ae.useRef(null),[q,$]=oT({controlled:S,default:n??T,name:"Slider"}),Z=Q&&((Ge,me,De)=>{const Ye=Ge.nativeEvent||Ge,et=new Ye.constructor(Ye.type,Ye);Object.defineProperty(et,"target",{writable:!0,value:{value:me,name:u}}),F.current=me,Q(et,me,De)}),J=Array.isArray(q);let W=J?q.slice().sort(x_):[q];W=W.map(Ge=>Ge==null?T:Cs(Ge,T,s));const ne=i===!0&&v!==null?[...Array(Math.floor((s-T)/v)+1)].map((Ge,me)=>({value:T+v*me})):i||[],K=ne.map(Ge=>Ge.value),[Y,j]=ae.useState(-1),z=ae.useRef(null),ee=v3(p,z),U=Ge=>me=>{var Ye;const De=Number(me.currentTarget.getAttribute("data-index"));Mm(me.target)&&j(De),V(De),(Ye=Ge==null?void 0:Ge.onFocus)==null||Ye.call(Ge,me)},de=Ge=>me=>{var De;Mm(me.target)||j(-1),V(-1),(De=Ge==null?void 0:Ge.onBlur)==null||De.call(Ge,me)},pe=(Ge,me)=>{const De=Number(Ge.currentTarget.getAttribute("data-index")),Ye=W[De],et=K.indexOf(Ye);let tt=me;if(ne&&v==null){const Tt=K[K.length-1];tt>=Tt?tt=Tt:tt<=K[0]?tt=K[0]:tt=tt<Ye?K[et-1]:K[et+1]}if(tt=Cs(tt,T,s),J){o&&(tt=Cs(tt,W[De-1]||-1/0,W[De+1]||1/0));const Tt=tt;tt=H_({values:W,newValue:tt,index:De});let o1=De;o||(o1=tt.indexOf(Tt)),Ym({sliderRef:z,activeIndex:o1})}$(tt),j(De),Z&&!Km(tt,q)&&Z(Ge,tt,De),f&&f(Ge,F.current??tt)},he=Ge=>me=>{var De;if(["ArrowUp","ArrowDown","ArrowLeft","ArrowRight","PageUp","PageDown","Home","End"].includes(me.key)){me.preventDefault();const Ye=Number(me.currentTarget.getAttribute("data-index")),et=W[Ye];let tt=null;if(v!=null){const Tt=me.shiftKey?b:v;switch(me.key){case"ArrowUp":tt=Gs(et,Tt,1,T,s);break;case"ArrowRight":tt=Gs(et,Tt,a?-1:1,T,s);break;case"ArrowDown":tt=Gs(et,Tt,-1,T,s);break;case"ArrowLeft":tt=Gs(et,Tt,a?1:-1,T,s);break;case"PageUp":tt=Gs(et,b,1,T,s);break;case"PageDown":tt=Gs(et,b,-1,T,s);break;case"Home":tt=T;break;case"End":tt=s;break}}else if(ne){const Tt=K[K.length-1],o1=K.indexOf(et),Ct=[a?"ArrowRight":"ArrowLeft","ArrowDown","PageDown","Home"],d1=[a?"ArrowLeft":"ArrowRight","ArrowUp","PageUp","End"];Ct.includes(me.key)?o1===0?tt=K[0]:tt=K[o1-1]:d1.includes(me.key)&&(o1===K.length-1?tt=Tt:tt=K[o1+1])}tt!=null&&pe(me,tt)}(De=Ge==null?void 0:Ge.onKeyDown)==null||De.call(Ge,me)};V0(()=>{var Ge;l&&z.current.contains(document.activeElement)&&((Ge=document.activeElement)==null||Ge.blur())},[l]),l&&O!==-1&&E(-1),l&&Y!==-1&&j(-1);const se=Ge=>me=>{var De;(De=Ge.onChange)==null||De.call(Ge,me),pe(me,me.target.valueAsNumber)},fe=ae.useRef(void 0);let Se=h;a&&h==="horizontal"&&(Se+="-reverse");const Ee=({finger:Ge,move:me=!1})=>{const{current:De}=z,{width:Ye,height:et,bottom:tt,left:Tt}=De.getBoundingClientRect();let o1;Se.startsWith("vertical")?o1=(tt-Ge.y)/et:o1=(Ge.x-Tt)/Ye,Se.includes("-reverse")&&(o1=1-o1);let Ct;if(Ct=uJ(o1,T,s),v)Ct=TJ(Ct,v,T);else{const m1=b_(K,Ct);Ct=K[m1]}Ct=Cs(Ct,T,s);let d1=0;if(J){me?d1=fe.current:d1=b_(W,Ct),o&&(Ct=Cs(Ct,W[d1-1]||-1/0,W[d1+1]||1/0));const m1=Ct;Ct=H_({values:W,newValue:Ct,index:d1}),o&&me||(d1=Ct.indexOf(m1),fe.current=d1)}return{newValue:Ct,activeIndex:d1}},_e=Dr(Ge=>{const me=Xm(Ge,_);if(!me)return;if(R.current+=1,Ge.type==="mousemove"&&Ge.buttons===0){ze(Ge);return}const{newValue:De,activeIndex:Ye}=Ee({finger:me,move:!0});Ym({sliderRef:z,activeIndex:Ye,setActive:E}),$(De),!k&&R.current>sJ&&B(!0),Z&&!Km(De,q)&&Z(Ge,De,Ye)}),ze=Dr(Ge=>{const me=Xm(Ge,_);if(B(!1),!me)return;const{newValue:De}=Ee({finger:me,move:!0});E(-1),Ge.type==="touchend"&&V(-1),f&&f(Ge,F.current??De),_.current=void 0,Pe()}),ue=Dr(Ge=>{if(l)return;E_()||Ge.preventDefault();const me=Ge.changedTouches[0];me!=null&&(_.current=me.identifier);const De=Xm(Ge,_);if(De!==!1){const{newValue:et,activeIndex:tt}=Ee({finger:De});Ym({sliderRef:z,activeIndex:tt,setActive:E}),$(et),Z&&!Km(et,q)&&Z(Ge,et,tt)}R.current=0;const Ye=M4(z.current);Ye.addEventListener("touchmove",_e,{passive:!0}),Ye.addEventListener("touchend",ze,{passive:!0})}),Pe=ae.useCallback(()=>{const Ge=M4(z.current);Ge.removeEventListener("mousemove",_e),Ge.removeEventListener("mouseup",ze),Ge.removeEventListener("touchmove",_e),Ge.removeEventListener("touchend",ze)},[ze,_e]);ae.useEffect(()=>{const{current:Ge}=z;return Ge.addEventListener("touchstart",ue,{passive:E_()}),()=>{Ge.removeEventListener("touchstart",ue),Pe()}},[Pe,ue]),ae.useEffect(()=>{l&&Pe()},[l,Pe]);const Xe=Ge=>me=>{var et;if((et=Ge.onMouseDown)==null||et.call(Ge,me),l||me.defaultPrevented||me.button!==0)return;me.preventDefault();const De=Xm(me,_);if(De!==!1){const{newValue:tt,activeIndex:Tt}=Ee({finger:De});Ym({sliderRef:z,activeIndex:Tt,setActive:E}),$(tt),Z&&!Km(tt,q)&&Z(me,tt,Tt)}R.current=0;const Ye=M4(z.current);Ye.addEventListener("mousemove",_e,{passive:!0}),Ye.addEventListener("mouseup",ze)},ht=Wm(J?W[0]:T,T,s),ot=Wm(W[W.length-1],T,s)-ht,mt=(Ge={})=>{const me=uT(Ge),De={onMouseDown:Xe(me||{})},Ye={...me,...De};return{...Ge,ref:ee,...Ye}},zt=Ge=>me=>{var Ye;(Ye=Ge.onMouseOver)==null||Ye.call(Ge,me);const De=Number(me.currentTarget.getAttribute("data-index"));V(De)},p1=Ge=>me=>{var De;(De=Ge.onMouseLeave)==null||De.call(Ge,me),V(-1)},st=(Ge={})=>{const me=uT(Ge),De={onMouseOver:zt(me||{}),onMouseLeave:p1(me||{})};return{...Ge,...me,...De}},ct=Ge=>({pointerEvents:O!==-1&&O!==Ge?"none":void 0});let e2;return h==="vertical"&&(e2=a?"vertical-rl":"vertical-lr"),{active:O,axis:Se,axisProps:QJ,dragging:k,focusedThumbIndex:Y,getHiddenInputProps:(Ge={})=>{const me=uT(Ge),De={onChange:se(me||{}),onFocus:U(me||{}),onBlur:de(me||{}),onKeyDown:he(me||{})},Ye={...me,...De};return{tabIndex:L,"aria-labelledby":t,"aria-orientation":h,"aria-valuemax":g(s),"aria-valuemin":g(T),name:u,type:"range",min:e.min,max:e.max,step:e.step===null&&e.marks?"any":e.step??void 0,disabled:l,...Ge,...Ye,style:{...WK,direction:a?"rtl":"ltr",width:"100%",height:"100%",writingMode:e2}}},getRootProps:mt,getThumbProps:st,marks:ne,open:A,range:J,rootRef:ee,trackLeap:ot,trackOffset:ht,values:W,getThumbStyle:ct}}const hJ=e=>!e||!P7(e);function pJ(e){return Ft("MuiSlider",e)}const M6=Bt("MuiSlider",["root","active","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","disabled","dragging","focusVisible","mark","markActive","marked","markLabel","markLabelActive","rail","sizeSmall","thumb","thumbColorPrimary","thumbColorSecondary","thumbColorError","thumbColorSuccess","thumbColorInfo","thumbColorWarning","track","trackInverted","trackFalse","thumbSizeSmall","valueLabel","valueLabelOpen","valueLabelCircle","valueLabelLabel","vertical"]);var mJ={};const yJ=e=>{const{open:t}=e;return{offset:dt(t&&M6.valueLabelOpen),circle:M6.valueLabelCircle,label:M6.valueLabelLabel}};function S_(e){const{children:t,className:n,value:l}=e,o=yJ(e);return t?ae.cloneElement(t,{className:t.props.className},He.jsxs(ae.Fragment,{children:[t.props.children,He.jsx("span",{className:dt(o.offset,n),"aria-hidden":!0,children:He.jsx("span",{className:o.circle,children:He.jsx("span",{className:o.label,children:l})})})]})):null}mJ.NODE_ENV!=="production"&&(S_.propTypes={children:M.element.isRequired,className:M.string,value:M.node});var M_={};function A_(e){return e}const gJ=Ke("span",{name:"MuiSlider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`color${Ue(n.color)}`],n.size!=="medium"&&t[`size${Ue(n.size)}`],n.marked&&t.marked,n.orientation==="vertical"&&t.vertical,n.track==="inverted"&&t.trackInverted,n.track===!1&&t.trackFalse]}})(Rt(({theme:e})=>({borderRadius:12,boxSizing:"content-box",display:"inline-block",position:"relative",cursor:"pointer",touchAction:"none",WebkitTapHighlightColor:"transparent","@media print":{colorAdjust:"exact"},[`&.${M6.disabled}`]:{pointerEvents:"none",cursor:"default",color:(e.vars||e).palette.grey[400]},[`&.${M6.dragging}`]:{[`& .${M6.thumb}, & .${M6.track}`]:{transition:"none"}},variants:[...Object.entries(e.palette).filter(_2()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}})),{props:{orientation:"horizontal"},style:{height:4,width:"100%",padding:"13px 0","@media (pointer: coarse)":{padding:"20px 0"}}},{props:{orientation:"horizontal",size:"small"},style:{height:2}},{props:{orientation:"horizontal",marked:!0},style:{marginBottom:20}},{props:{orientation:"vertical"},style:{height:"100%",width:4,padding:"0 13px","@media (pointer: coarse)":{padding:"0 20px"}}},{props:{orientation:"vertical",size:"small"},style:{width:2}},{props:{orientation:"vertical",marked:!0},style:{marginRight:44}}]}))),vJ=Ke("span",{name:"MuiSlider",slot:"Rail"})({display:"block",position:"absolute",borderRadius:"inherit",backgroundColor:"currentColor",opacity:.38,variants:[{props:{orientation:"horizontal"},style:{width:"100%",height:"inherit",top:"50%",transform:"translateY(-50%)"}},{props:{orientation:"vertical"},style:{height:"100%",width:"inherit",left:"50%",transform:"translateX(-50%)"}},{props:{track:"inverted"},style:{opacity:1}}]}),LJ=Ke("span",{name:"MuiSlider",slot:"Track"})(Rt(({theme:e})=>({display:"block",position:"absolute",borderRadius:"inherit",border:"1px solid currentColor",backgroundColor:"currentColor",transition:e.transitions.create(["left","width","bottom","height"],{duration:e.transitions.duration.shortest}),variants:[{props:{size:"small"},style:{border:"none"}},{props:{orientation:"horizontal"},style:{height:"inherit",top:"50%",transform:"translateY(-50%)"}},{props:{orientation:"vertical"},style:{width:"inherit",left:"50%",transform:"translateX(-50%)"}},{props:{track:!1},style:{display:"none"}},...Object.entries(e.palette).filter(_2()).map(([t])=>({props:{color:t,track:"inverted"},style:{...e.vars?{backgroundColor:e.vars.palette.Slider[`${t}Track`],borderColor:e.vars.palette.Slider[`${t}Track`]}:{backgroundColor:za(e.palette[t].main,.62),borderColor:za(e.palette[t].main,.62),...e.applyStyles("dark",{backgroundColor:Fa(e.palette[t].main,.5)}),...e.applyStyles("dark",{borderColor:Fa(e.palette[t].main,.5)})}}}))]}))),xJ=Ke("span",{name:"MuiSlider",slot:"Thumb",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.thumb,t[`thumbColor${Ue(n.color)}`],n.size!=="medium"&&t[`thumbSize${Ue(n.size)}`]]}})(Rt(({theme:e})=>({position:"absolute",width:20,height:20,boxSizing:"border-box",borderRadius:"50%",outline:0,backgroundColor:"currentColor",display:"flex",alignItems:"center",justifyContent:"center",transition:e.transitions.create(["box-shadow","left","bottom"],{duration:e.transitions.duration.shortest}),"&::before":{position:"absolute",content:'""',borderRadius:"inherit",width:"100%",height:"100%",boxShadow:(e.vars||e).shadows[2]},"&::after":{position:"absolute",content:'""',borderRadius:"50%",width:42,height:42,top:"50%",left:"50%",transform:"translate(-50%, -50%)"},[`&.${M6.disabled}`]:{"&:hover":{boxShadow:"none"}},variants:[{props:{size:"small"},style:{width:12,height:12,"&::before":{boxShadow:"none"}}},{props:{orientation:"horizontal"},style:{top:"50%",transform:"translate(-50%, -50%)"}},{props:{orientation:"vertical"},style:{left:"50%",transform:"translate(-50%, 50%)"}},...Object.entries(e.palette).filter(_2()).map(([t])=>({props:{color:t},style:{[`&:hover, &.${M6.focusVisible}`]:{...e.vars?{boxShadow:`0px 0px 0px 8px rgba(${e.vars.palette[t].mainChannel} / 0.16)`}:{boxShadow:`0px 0px 0px 8px ${O1(e.palette[t].main,.16)}`},"@media (hover: none)":{boxShadow:"none"}},[`&.${M6.active}`]:{...e.vars?{boxShadow:`0px 0px 0px 14px rgba(${e.vars.palette[t].mainChannel} / 0.16)`}:{boxShadow:`0px 0px 0px 14px ${O1(e.palette[t].main,.16)}`}}}}))]}))),__=Ke(S_,{name:"MuiSlider",slot:"ValueLabel"})(Rt(({theme:e})=>({zIndex:1,whiteSpace:"nowrap",...e.typography.body2,fontWeight:500,transition:e.transitions.create(["transform"],{duration:e.transitions.duration.shortest}),position:"absolute",backgroundColor:(e.vars||e).palette.grey[600],borderRadius:2,color:(e.vars||e).palette.common.white,display:"flex",alignItems:"center",justifyContent:"center",padding:"0.25rem 0.75rem",variants:[{props:{orientation:"horizontal"},style:{transform:"translateY(-100%) scale(0)",top:"-10px",transformOrigin:"bottom center","&::before":{position:"absolute",content:'""',width:8,height:8,transform:"translate(-50%, 50%) rotate(45deg)",backgroundColor:"inherit",bottom:0,left:"50%"},[`&.${M6.valueLabelOpen}`]:{transform:"translateY(-100%) scale(1)"}}},{props:{orientation:"vertical"},style:{transform:"translateY(-50%) scale(0)",right:"30px",top:"50%",transformOrigin:"right center","&::before":{position:"absolute",content:'""',width:8,height:8,transform:"translate(-50%, -50%) rotate(45deg)",backgroundColor:"inherit",right:-8,top:"50%"},[`&.${M6.valueLabelOpen}`]:{transform:"translateY(-50%) scale(1)"}}},{props:{size:"small"},style:{fontSize:e.typography.pxToRem(12),padding:"0.25rem 0.5rem"}},{props:{orientation:"vertical",size:"small"},style:{right:"20px"}}]})));M_.NODE_ENV!=="production"&&(__.propTypes={children:M.element.isRequired,index:M.number.isRequired,open:M.bool.isRequired,value:M.node});const bJ=Ke("span",{name:"MuiSlider",slot:"Mark",shouldForwardProp:e=>xm(e)&&e!=="markActive",overridesResolver:(e,t)=>{const{markActive:n}=e;return[t.mark,n&&t.markActive]}})(Rt(({theme:e})=>({position:"absolute",width:2,height:2,borderRadius:1,backgroundColor:"currentColor",variants:[{props:{orientation:"horizontal"},style:{top:"50%",transform:"translate(-1px, -50%)"}},{props:{orientation:"vertical"},style:{left:"50%",transform:"translate(-50%, 1px)"}},{props:{markActive:!0},style:{backgroundColor:(e.vars||e).palette.background.paper,opacity:.8}}]}))),HJ=Ke("span",{name:"MuiSlider",slot:"MarkLabel",shouldForwardProp:e=>xm(e)&&e!=="markLabelActive"})(Rt(({theme:e})=>({...e.typography.body2,color:(e.vars||e).palette.text.secondary,position:"absolute",whiteSpace:"nowrap",variants:[{props:{orientation:"horizontal"},style:{top:30,transform:"translateX(-50%)","@media (pointer: coarse)":{top:40}}},{props:{orientation:"vertical"},style:{left:36,transform:"translateY(50%)","@media (pointer: coarse)":{left:44}}},{props:{markLabelActive:!0},style:{color:(e.vars||e).palette.text.primary}}]}))),EJ=e=>{const{disabled:t,dragging:n,marked:l,orientation:o,track:a,classes:i,color:s,size:T}=e,u={root:["root",t&&"disabled",n&&"dragging",l&&"marked",o==="vertical"&&"vertical",a==="inverted"&&"trackInverted",a===!1&&"trackFalse",s&&`color${Ue(s)}`,T&&`size${Ue(T)}`],rail:["rail"],track:["track"],mark:["mark"],markActive:["markActive"],markLabel:["markLabel"],markLabelActive:["markLabelActive"],valueLabel:["valueLabel"],thumb:["thumb",t&&"disabled",T&&`thumbSize${Ue(T)}`,s&&`thumbColor${Ue(s)}`],active:["active"],disabled:["disabled"],focusVisible:["focusVisible"]};return Zt(u,pJ,i)},SJ=({children:e})=>e,O_=ae.forwardRef(function(t,n){const l=n1({props:t,name:"MuiSlider"}),o=LM(),{"aria-label":a,"aria-valuetext":i,"aria-labelledby":s,component:T="span",components:u={},componentsProps:Q={},color:f="primary",classes:h,className:p,disableSwap:g=!1,disabled:v=!1,getAriaLabel:b,getAriaValueText:L,marks:S=!1,max:_=100,min:O=0,name:E,onChange:A,onChangeCommitted:V,orientation:k="horizontal",shiftStep:B=10,size:R="medium",step:F=1,scale:q=A_,slotProps:$,slots:Z,tabIndex:J,track:W="normal",value:ne,valueLabelDisplay:K="off",valueLabelFormat:Y=A_,...j}=l,z={...l,isRtl:o,max:_,min:O,classes:h,disabled:v,disableSwap:g,orientation:k,marks:S,color:f,size:R,step:F,shiftStep:B,scale:q,track:W,valueLabelDisplay:K,valueLabelFormat:Y},{axisProps:ee,getRootProps:U,getHiddenInputProps:de,getThumbProps:pe,open:he,active:se,axis:fe,focusedThumbIndex:Se,range:Ee,dragging:_e,marks:ze,values:ue,trackOffset:Pe,trackLeap:Xe,getThumbStyle:ht}=dJ({...z,rootRef:n});z.marked=ze.length>0&&ze.some(nt=>nt.label),z.dragging=_e,z.focusedThumbIndex=Se;const ot=EJ(z),mt=(Z==null?void 0:Z.root)??u.Root??gJ,zt=(Z==null?void 0:Z.rail)??u.Rail??vJ,p1=(Z==null?void 0:Z.track)??u.Track??LJ,st=(Z==null?void 0:Z.thumb)??u.Thumb??xJ,ct=(Z==null?void 0:Z.valueLabel)??u.ValueLabel??__,e2=(Z==null?void 0:Z.mark)??u.Mark??bJ,f1=(Z==null?void 0:Z.markLabel)??u.MarkLabel??HJ,Ge=(Z==null?void 0:Z.input)??u.Input??"input",me=($==null?void 0:$.root)??Q.root,De=($==null?void 0:$.rail)??Q.rail,Ye=($==null?void 0:$.track)??Q.track,et=($==null?void 0:$.thumb)??Q.thumb,tt=($==null?void 0:$.valueLabel)??Q.valueLabel,Tt=($==null?void 0:$.mark)??Q.mark,o1=($==null?void 0:$.markLabel)??Q.markLabel,Ct=($==null?void 0:$.input)??Q.input,d1=B0({elementType:mt,getSlotProps:U,externalSlotProps:me,externalForwardedProps:j,additionalProps:{...hJ(mt)&&{as:T}},ownerState:{...z,...me==null?void 0:me.ownerState},className:[ot.root,p]}),m1=B0({elementType:zt,externalSlotProps:De,ownerState:z,className:ot.rail}),it=B0({elementType:p1,externalSlotProps:Ye,additionalProps:{style:{...ee[fe].offset(Pe),...ee[fe].leap(Xe)}},ownerState:{...z,...Ye==null?void 0:Ye.ownerState},className:ot.track}),xt=B0({elementType:st,getSlotProps:pe,externalSlotProps:et,ownerState:{...z,...et==null?void 0:et.ownerState},className:ot.thumb}),te=B0({elementType:ct,externalSlotProps:tt,ownerState:{...z,...tt==null?void 0:tt.ownerState},className:ot.valueLabel}),Le=B0({elementType:e2,externalSlotProps:Tt,ownerState:z,className:ot.mark}),We=B0({elementType:f1,externalSlotProps:o1,ownerState:z,className:ot.markLabel}),rt=B0({elementType:Ge,getSlotProps:de,externalSlotProps:Ct,ownerState:z});return He.jsxs(mt,{...d1,children:[He.jsx(zt,{...m1}),He.jsx(p1,{...it}),ze.filter(nt=>nt.value>=O&&nt.value<=_).map((nt,yt)=>{const _t=Wm(nt.value,O,_),Xt=ee[fe].offset(_t);let Ht;return W===!1?Ht=ue.includes(nt.value):Ht=W==="normal"&&(Ee?nt.value>=ue[0]&&nt.value<=ue[ue.length-1]:nt.value<=ue[0])||W==="inverted"&&(Ee?nt.value<=ue[0]||nt.value>=ue[ue.length-1]:nt.value>=ue[0]),He.jsxs(ae.Fragment,{children:[He.jsx(e2,{"data-index":yt,...Le,...!P7(e2)&&{markActive:Ht},style:{...Xt,...Le.style},className:dt(Le.className,Ht&&ot.markActive)}),nt.label!=null?He.jsx(f1,{"aria-hidden":!0,"data-index":yt,...We,...!P7(f1)&&{markLabelActive:Ht},style:{...Xt,...We.style},className:dt(ot.markLabel,We.className,Ht&&ot.markLabelActive),children:nt.label}):null]},yt)}),ue.map((nt,yt)=>{const _t=Wm(nt,O,_),Xt=ee[fe].offset(_t),Ht=K==="off"?SJ:ct;return He.jsx(Ht,{...!P7(Ht)&&{valueLabelFormat:Y,valueLabelDisplay:K,value:typeof Y=="function"?Y(q(nt),yt):Y,index:yt,open:he===yt||se===yt||K==="on",disabled:v},...te,children:He.jsx(st,{"data-index":yt,...xt,className:dt(ot.thumb,xt.className,se===yt&&ot.active,Se===yt&&ot.focusVisible),style:{...Xt,...ht(yt),...xt.style},children:He.jsx(Ge,{"data-index":yt,"aria-label":b?b(yt):a,"aria-valuenow":q(nt),"aria-labelledby":s,"aria-valuetext":L?L(q(nt),yt):i,value:ue[yt],...rt})})},yt)})]})});M_.NODE_ENV!=="production"&&(O_.propTypes={"aria-label":k0(M.string,e=>Array.isArray(e.value||e.defaultValue)&&e["aria-label"]!=null?new Error("MUI: You need to use the `getAriaLabel` prop instead of `aria-label` when using a range slider."):null),"aria-labelledby":M.string,"aria-valuetext":k0(M.string,e=>Array.isArray(e.value||e.defaultValue)&&e["aria-valuetext"]!=null?new Error("MUI: You need to use the `getAriaValueText` prop instead of `aria-valuetext` when using a range slider."):null),children:M.node,classes:M.object,className:M.string,color:M.oneOfType([M.oneOf(["primary","secondary","error","info","success","warning"]),M.string]),components:M.shape({Input:M.elementType,Mark:M.elementType,MarkLabel:M.elementType,Rail:M.elementType,Root:M.elementType,Thumb:M.elementType,Track:M.elementType,ValueLabel:M.elementType}),componentsProps:M.shape({input:M.oneOfType([M.func,M.object]),mark:M.oneOfType([M.func,M.object]),markLabel:M.oneOfType([M.func,M.object]),rail:M.oneOfType([M.func,M.object]),root:M.oneOfType([M.func,M.object]),thumb:M.oneOfType([M.func,M.object]),track:M.oneOfType([M.func,M.object]),valueLabel:M.oneOfType([M.func,M.shape({children:M.element,className:M.string,open:M.bool,style:M.object,value:M.node,valueLabelDisplay:M.oneOf(["auto","off","on"])})])}),defaultValue:M.oneOfType([M.arrayOf(M.number),M.number]),disabled:M.bool,disableSwap:M.bool,getAriaLabel:M.func,getAriaValueText:M.func,marks:M.oneOfType([M.arrayOf(M.shape({label:M.node,value:M.number.isRequired})),M.bool]),max:M.number,min:M.number,name:M.string,onChange:M.func,onChangeCommitted:M.func,orientation:M.oneOf(["horizontal","vertical"]),scale:M.func,shiftStep:M.number,size:M.oneOfType([M.oneOf(["small","medium"]),M.string]),slotProps:M.shape({input:M.oneOfType([M.func,M.object]),mark:M.oneOfType([M.func,M.object]),markLabel:M.oneOfType([M.func,M.object]),rail:M.oneOfType([M.func,M.object]),root:M.oneOfType([M.func,M.object]),thumb:M.oneOfType([M.func,M.object]),track:M.oneOfType([M.func,M.object]),valueLabel:M.oneOfType([M.func,M.shape({children:M.element,className:M.string,open:M.bool,style:M.object,value:M.node,valueLabelDisplay:M.oneOf(["auto","off","on"])})])}),slots:M.shape({input:M.elementType,mark:M.elementType,markLabel:M.elementType,rail:M.elementType,root:M.elementType,thumb:M.elementType,track:M.elementType,valueLabel:M.elementType}),step:M.number,sx:M.oneOfType([M.arrayOf(M.oneOfType([M.func,M.object,M.bool])),M.func,M.object]),tabIndex:M.number,track:M.oneOf(["inverted","normal",!1]),value:M.oneOfType([M.arrayOf(M.number),M.number]),valueLabelDisplay:M.oneOf(["auto","off","on"]),valueLabelFormat:M.oneOfType([M.func,M.string])});function MJ(e){return Ft("MuiSwitch",e)}const A4=Bt("MuiSwitch",["root","edgeStart","edgeEnd","switchBase","colorPrimary","colorSecondary","sizeSmall","sizeMedium","checked","disabled","input","thumb","track"]);var AJ={};const _J=e=>{const{classes:t,edge:n,size:l,color:o,checked:a,disabled:i}=e,s={root:["root",n&&`edge${Ue(n)}`,`size${Ue(l)}`],switchBase:["switchBase",`color${Ue(o)}`,a&&"checked",i&&"disabled"],thumb:["thumb"],track:["track"],input:["input"]},T=Zt(s,MJ,t);return{...t,...T}},OJ=Ke("span",{name:"MuiSwitch",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.edge&&t[`edge${Ue(n.edge)}`],t[`size${Ue(n.size)}`]]}})({display:"inline-flex",width:34+12*2,height:14+12*2,overflow:"hidden",padding:12,boxSizing:"border-box",position:"relative",flexShrink:0,zIndex:0,verticalAlign:"middle","@media print":{colorAdjust:"exact"},variants:[{props:{edge:"start"},style:{marginLeft:-8}},{props:{edge:"end"},style:{marginRight:-8}},{props:{size:"small"},style:{width:40,height:24,padding:7,[`& .${A4.thumb}`]:{width:16,height:16},[`& .${A4.switchBase}`]:{padding:4,[`&.${A4.checked}`]:{transform:"translateX(16px)"}}}}]}),CJ=Ke(BL,{name:"MuiSwitch",slot:"SwitchBase",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.switchBase,{[`& .${A4.input}`]:t.input},n.color!=="default"&&t[`color${Ue(n.color)}`]]}})(Rt(({theme:e})=>({position:"absolute",top:0,left:0,zIndex:1,color:e.vars?e.vars.palette.Switch.defaultColor:`${e.palette.mode==="light"?e.palette.common.white:e.palette.grey[300]}`,transition:e.transitions.create(["left","transform"],{duration:e.transitions.duration.shortest}),[`&.${A4.checked}`]:{transform:"translateX(20px)"},[`&.${A4.disabled}`]:{color:e.vars?e.vars.palette.Switch.defaultDisabledColor:`${e.palette.mode==="light"?e.palette.grey[100]:e.palette.grey[600]}`},[`&.${A4.checked} + .${A4.track}`]:{opacity:.5},[`&.${A4.disabled} + .${A4.track}`]:{opacity:e.vars?e.vars.opacity.switchTrackDisabled:`${e.palette.mode==="light"?.12:.2}`},[`& .${A4.input}`]:{left:"-100%",width:"300%"}})),Rt(({theme:e})=>({"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:O1(e.palette.action.active,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},variants:[...Object.entries(e.palette).filter(_2(["light"])).map(([t])=>({props:{color:t},style:{[`&.${A4.checked}`]:{color:(e.vars||e).palette[t].main,"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette[t].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:O1(e.palette[t].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${A4.disabled}`]:{color:e.vars?e.vars.palette.Switch[`${t}DisabledColor`]:`${e.palette.mode==="light"?za(e.palette[t].main,.62):Fa(e.palette[t].main,.55)}`}},[`&.${A4.checked} + .${A4.track}`]:{backgroundColor:(e.vars||e).palette[t].main}}}))]}))),wJ=Ke("span",{name:"MuiSwitch",slot:"Track"})(Rt(({theme:e})=>({height:"100%",width:"100%",borderRadius:14/2,zIndex:-1,transition:e.transitions.create(["opacity","background-color"],{duration:e.transitions.duration.shortest}),backgroundColor:e.vars?e.vars.palette.common.onBackground:`${e.palette.mode==="light"?e.palette.common.black:e.palette.common.white}`,opacity:e.vars?e.vars.opacity.switchTrack:`${e.palette.mode==="light"?.38:.3}`}))),VJ=Ke("span",{name:"MuiSwitch",slot:"Thumb"})(Rt(({theme:e})=>({boxShadow:(e.vars||e).shadows[1],backgroundColor:"currentColor",width:20,height:20,borderRadius:"50%"}))),C_=ae.forwardRef(function(t,n){const l=n1({props:t,name:"MuiSwitch"}),{className:o,color:a="primary",edge:i=!1,size:s="medium",sx:T,slots:u={},slotProps:Q={},...f}=l,h={...l,color:a,edge:i,size:s},p=_J(h),g={slots:u,slotProps:Q},[v,b]=r1("root",{className:dt(p.root,o),elementType:OJ,externalForwardedProps:g,ownerState:h,additionalProps:{sx:T}}),[L,S]=r1("thumb",{className:p.thumb,elementType:VJ,externalForwardedProps:g,ownerState:h}),_=He.jsx(L,{...S}),[O,E]=r1("track",{className:p.track,elementType:wJ,externalForwardedProps:g,ownerState:h});return He.jsxs(v,{...b,children:[He.jsx(CJ,{type:"checkbox",icon:_,checkedIcon:_,ref:n,ownerState:h,...f,classes:{...p,root:p.switchBase},slots:{...u.switchBase&&{root:u.switchBase},...u.input&&{input:u.input}},slotProps:{...Q.switchBase&&{root:typeof Q.switchBase=="function"?Q.switchBase(h):Q.switchBase},...Q.input&&{input:typeof Q.input=="function"?Q.input(h):Q.input}}}),He.jsx(O,{...E})]})});AJ.NODE_ENV!=="production"&&(C_.propTypes={checked:M.bool,checkedIcon:M.node,classes:M.object,className:M.string,color:M.oneOfType([M.oneOf(["default","primary","secondary","error","info","success","warning"]),M.string]),defaultChecked:M.bool,disabled:M.bool,disableRipple:M.bool,edge:M.oneOf(["end","start",!1]),icon:M.node,id:M.string,inputProps:M.object,inputRef:xn,onChange:M.func,required:M.bool,size:M.oneOfType([M.oneOf(["medium","small"]),M.string]),slotProps:M.shape({input:M.oneOfType([M.func,M.object]),root:M.oneOfType([M.func,M.object]),switchBase:M.oneOfType([M.func,M.object]),thumb:M.oneOfType([M.func,M.object]),track:M.oneOfType([M.func,M.object])}),slots:M.shape({input:M.elementType,root:M.elementType,switchBase:M.elementType,thumb:M.elementType,track:M.elementType}),sx:M.oneOfType([M.arrayOf(M.oneOfType([M.func,M.object,M.bool])),M.func,M.object]),value:M.any});function DJ(e){return Ft("MuiTextField",e)}Bt("MuiTextField",["root"]);var w_={};const RJ={standard:$m,filled:zm,outlined:Gm},kJ=e=>{const{classes:t}=e;return Zt({root:["root"]},DJ,t)},NJ=Ke(yT,{name:"MuiTextField",slot:"Root"})({}),Ga=ae.forwardRef(function(t,n){const l=n1({props:t,name:"MuiTextField"}),{autoComplete:o,autoFocus:a=!1,children:i,className:s,color:T="primary",defaultValue:u,disabled:Q=!1,error:f=!1,FormHelperTextProps:h,fullWidth:p=!1,helperText:g,id:v,InputLabelProps:b,inputProps:L,InputProps:S,inputRef:_,label:O,maxRows:E,minRows:A,multiline:V=!1,name:k,onBlur:B,onChange:R,onFocus:F,placeholder:q,required:$=!1,rows:Z,select:J=!1,SelectProps:W,slots:ne={},slotProps:K={},type:Y,value:j,variant:z="outlined",...ee}=l,U={...l,autoFocus:a,color:T,disabled:Q,error:f,fullWidth:p,multiline:V,required:$,select:J,variant:z},de=kJ(U);w_.NODE_ENV!=="production"&&J&&!i&&console.error("MUI: `children` must be passed when using the `TextField` component with `select`.");const pe=Ps(v),he=g&&pe?`${pe}-helper-text`:void 0,se=O&&pe?`${pe}-label`:void 0,fe=RJ[z],Se={slots:ne,slotProps:{input:S,inputLabel:b,htmlInput:L,formHelperText:h,select:W,...K}},Ee={},_e=Se.slotProps.inputLabel;z==="outlined"&&(_e&&typeof _e.shrink<"u"&&(Ee.notched=_e.shrink),Ee.label=O),J&&((!W||!W.native)&&(Ee.id=void 0),Ee["aria-describedby"]=void 0);const[ze,ue]=r1("root",{elementType:NJ,shouldForwardComponentProp:!0,externalForwardedProps:{...Se,...ee},ownerState:U,className:dt(de.root,s),ref:n,additionalProps:{disabled:Q,error:f,fullWidth:p,required:$,color:T,variant:z}}),[Pe,Xe]=r1("input",{elementType:fe,externalForwardedProps:Se,additionalProps:Ee,ownerState:U}),[ht,ot]=r1("inputLabel",{elementType:XA,externalForwardedProps:Se,ownerState:U}),[mt,zt]=r1("htmlInput",{elementType:"input",externalForwardedProps:Se,ownerState:U}),[p1,st]=r1("formHelperText",{elementType:FA,externalForwardedProps:Se,ownerState:U}),[ct,e2]=r1("select",{elementType:Us,externalForwardedProps:Se,ownerState:U}),f1=He.jsx(Pe,{"aria-describedby":he,autoComplete:o,autoFocus:a,defaultValue:u,fullWidth:p,multiline:V,name:k,rows:Z,maxRows:E,minRows:A,type:Y,value:j,id:pe,inputRef:_,onBlur:B,onChange:R,onFocus:F,placeholder:q,inputProps:zt,slots:{input:ne.htmlInput?mt:void 0},...Xe});return He.jsxs(ze,{...ue,children:[O!=null&&O!==""&&He.jsx(ht,{htmlFor:pe,id:se,...ot,children:O}),J?He.jsx(ct,{"aria-describedby":he,id:pe,labelId:se,value:j,input:f1,...e2,children:i}):f1,g&&He.jsx(p1,{id:he,...st,children:g})]})});w_.NODE_ENV!=="production"&&(Ga.propTypes={autoComplete:M.string,autoFocus:M.bool,children:M.node,classes:M.object,className:M.string,color:M.oneOfType([M.oneOf(["primary","secondary","error","info","success","warning"]),M.string]),defaultValue:M.any,disabled:M.bool,error:M.bool,FormHelperTextProps:M.object,fullWidth:M.bool,helperText:M.node,id:M.string,InputLabelProps:M.object,inputProps:M.object,InputProps:M.object,inputRef:xn,label:M.node,margin:M.oneOf(["dense","none","normal"]),maxRows:M.oneOfType([M.number,M.string]),minRows:M.oneOfType([M.number,M.string]),multiline:M.bool,name:M.string,onBlur:M.func,onChange:M.func,onFocus:M.func,placeholder:M.string,required:M.bool,rows:M.oneOfType([M.number,M.string]),select:M.bool,SelectProps:M.object,size:M.oneOfType([M.oneOf(["medium","small"]),M.string]),slotProps:M.shape({formHelperText:M.oneOfType([M.func,M.object]),htmlInput:M.oneOfType([M.func,M.object]),input:M.oneOfType([M.func,M.object]),inputLabel:M.oneOfType([M.func,M.object]),select:M.oneOfType([M.func,M.object])}),slots:M.shape({formHelperText:M.elementType,htmlInput:M.elementType,input:M.elementType,inputLabel:M.elementType,root:M.elementType,select:M.elementType}),sx:M.oneOfType([M.arrayOf(M.oneOfType([M.func,M.object,M.bool])),M.func,M.object]),type:M.string,value:M.any,variant:M.oneOf(["filled","outlined","standard"])});const BJ=({model:e,fontSize:t="small"})=>{if(!e)return xe.createElement($M,{fontSize:t});switch(e){case"OPENAI":return xe.createElement(D7,{fontSize:t,viewBox:"0 0 24 24"},xe.createElement("path",{d:"M22.282 9.821a5.985 5.985 0 0 0-.516-4.91 6.046 6.046 0 0 0-6.51-2.9A6.065 6.065 0 0 0 4.981 4.18a5.985 5.985 0 0 0-3.998 2.9 6.046 6.046 0 0 0 .743 7.097 5.98 5.98 0 0 0 .51 4.911 6.051 6.051 0 0 0 6.515 2.9A5.985 5.985 0 0 0 13.26 24a6.056 6.056 0 0 0 5.772-4.206 5.99 5.99 0 0 0 3.997-2.9 6.056 6.056 0 0 0-.747-7.073zM13.26 22.43a4.476 4.476 0 0 1-2.876-1.04l.141-.081 4.779-2.758a.795.795 0 0 0 .392-.681v-6.737l2.02 1.168a.071.071 0 0 1 .038.052v5.583a4.504 4.504 0 0 1-4.494 4.494zM3.6 18.304a4.47 4.47 0 0 1-.535-3.014l.142.085 4.783 2.759a.78.78 0 0 0 .78 0l5.843-3.369v2.332a.074.074 0 0 1-.028.057l-4.832 2.795a4.504 4.504 0 0 1-6.153-1.645zm-.856-8.246a4.476 4.476 0 0 1 2.346-1.973l-.004.162v5.517a.787.787 0 0 0 .392.681l5.843 3.369-2.02 1.168a.069.069 0 0 1-.066 0l-4.827-2.79a4.504 4.504 0 0 1-1.664-6.134zm16.008 3.73-5.843-3.369 2.02-1.168a.07.07 0 0 1 .066 0l4.827 2.79a4.494 4.494 0 0 1-1.12 8.107v-5.517a.795.795 0 0 0-.397-.681zm2.253-3.395a4.47 4.47 0 0 1-.535.983l-.142-.085-4.779-2.759a.78.78 0 0 0-.78 0L8.927 11.9V9.569a.07.07 0 0 1 .028-.057l4.827-2.79a4.504 4.504 0 0 1 6.682 2.771zm-12.35 3.369-2.02-1.168a.067.067 0 0 1-.037-.052V7.967a4.504 4.504 0 0 1 7.37-3.454l-.142.081-4.779 2.759a.795.795 0 0 0-.392.681zm1.069-2.332 2.606-1.507 2.606 1.507v3.014l-2.606 1.507-2.606-1.507z"}));case"ANTHROPIC_CLAUDE":return xe.createElement(D7,{fontSize:t,viewBox:"0 0 24 24"},xe.createElement("path",{d:"M15.5 2.25a4.25 4.25 0 0 0-4.25 4.25h-2.5A6.75 6.75 0 0 1 15.5 0h2.5v2.25zM2.25 8.5A4.25 4.25 0 0 0 6.5 12.75v2.5A6.75 6.75 0 0 1 0 8.5v-2.5h2.25zM8.5 21.75a4.25 4.25 0 0 0 4.25-4.25h2.5A6.75 6.75 0 0 1 8.5 24H6v-2.25zM21.75 15.5a4.25 4.25 0 0 0-4.25-4.25v-2.5A6.75 6.75 0 0 1 24 15.5V18h-2.25z"}),xe.createElement("path",{d:"M12 7a5 5 0 1 0 0 10 5 5 0 0 0 0-10zm0 8a3 3 0 1 1 0-6 3 3 0 0 1 0 6z"}));case"GOOGLE_GEMINI":return xe.createElement(D7,{fontSize:t,viewBox:"0 0 24 24"},xe.createElement("path",{d:"M4 12c0-4.41 3.59-8 8-8s8 3.59 8 8-3.59 8-8 8-8-3.59-8-8m8-10c-5.51 0-10 4.49-10 10s4.49 10 10 10 10-4.49 10-10S17.51 2 12 2m2.5 10c0 1.38-1.12 2.5-2.5 2.5S9.5 13.38 9.5 12 10.62 9.5 12 9.5s2.5 1.12 2.5 2.5M12 6c-3.31 0-6 2.69-6 6s2.69 6 6 6 6-2.69 6-6-2.69-6-6-6m0 10c-2.21 0-4-1.79-4-4s1.79-4 4-4 4 1.79 4 4-1.79 4-4 4"}));default:return xe.createElement($M,{fontSize:t})}},PJ=({enabledModels:e})=>{const t=Na("settings"),n=Na("chat"),l=t.state,o=(s,T)=>{const u=t.state,Q={...u,llm:{...u.llm,models:{...u.llm.models,[s]:{...u.llm.models[s],version:T,enabled:!0}}}};t.saveSettings(Q),n.loadInitialMessage()},a=s=>{const T=Pc[s],u=T.labels;return T.options.map(Q=>{const f=Q;return{label:u[f],value:f}})},i=s=>{const T=Pc[s],u=l.llm.models[s].version,Q=T.options;return!u||!Q.includes(u)?T.default:u};return xe.createElement(Nr,{sx:{mt:2,display:"flex",flexDirection:"column",gap:1}},e.map(s=>xe.createElement(Nr,{key:s.modelKey,sx:{display:"flex",alignItems:"center",gap:1}},xe.createElement(K3,{variant:"body2",sx:{minWidth:100}},s.name,":"),xe.createElement(yT,{size:"small",sx:{minWidth:200}},xe.createElement(Us,{value:i(s.modelKey),onChange:T=>o(s.modelKey,T.target.value),"aria-label":`Select ${s.name} version`,MenuProps:{disablePortal:!0,PaperProps:{sx:{maxHeight:200}}}},a(s.modelKey).map(T=>xe.createElement(F7,{key:T.value,value:T.value},T.label)))))))};function roe(){}function ioe(){}function V_(e){const t=[],n=String(e||"");let l=n.indexOf(","),o=0,a=!1;for(;!a;){l===-1&&(l=n.length,a=!0);const i=n.slice(o,l).trim();(i||!a)&&t.push(i),o=l+1,l=n.indexOf(",",o)}return t}function jJ(e,t){const n={};return(e[e.length-1]===""?[...e,""]:e).join((n.padRight?" ":"")+","+(n.padLeft===!1?"":" ")).trim()}const IJ=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,FJ=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,zJ={};function D_(e,t){return(zJ.jsx?FJ:IJ).test(e)}const qJ=/[ \t\n\f\r]/g;function $J(e){return typeof e=="object"?e.type==="text"?R_(e.value):!1:R_(e)}function R_(e){return e.replace(qJ,"")===""}class ET{constructor(t,n,l){this.normal=n,this.property=t,l&&(this.space=l)}}ET.prototype.normal={},ET.prototype.property={},ET.prototype.space=void 0;function k_(e,t){const n={},l={};for(const o of e)Object.assign(n,o.property),Object.assign(l,o.normal);return new ET(n,l,t)}function ST(e){return e.toLowerCase()}class J4{constructor(t,n){this.attribute=n,this.property=t}}J4.prototype.attribute="",J4.prototype.booleanish=!1,J4.prototype.boolean=!1,J4.prototype.commaOrSpaceSeparated=!1,J4.prototype.commaSeparated=!1,J4.prototype.defined=!1,J4.prototype.mustUseProperty=!1,J4.prototype.number=!1,J4.prototype.overloadedBoolean=!1,J4.prototype.property="",J4.prototype.spaceSeparated=!1,J4.prototype.space=void 0;let UJ=0;const Yt=z7(),W2=z7(),tx=z7(),Je=z7(),s2=z7(),Zs=z7(),bn=z7();function z7(){return 2**++UJ}const nx=Object.freeze(Object.defineProperty({__proto__:null,boolean:Yt,booleanish:W2,commaOrSpaceSeparated:bn,commaSeparated:Zs,number:Je,overloadedBoolean:tx,spaceSeparated:s2},Symbol.toStringTag,{value:"Module"})),rx=Object.keys(nx);class ix extends J4{constructor(t,n,l,o){let a=-1;if(super(t,n),N_(this,"space",o),typeof l=="number")for(;++a<rx.length;){const i=rx[a];N_(this,rx[a],(l&nx[i])===nx[i])}}}ix.prototype.defined=!0;function N_(e,t,n){n&&(e[t]=n)}function Xs(e){const t={},n={};for(const[l,o]of Object.entries(e.properties)){const a=new ix(l,e.transform(e.attributes||{},l),o,e.space);e.mustUseProperty&&e.mustUseProperty.includes(l)&&(a.mustUseProperty=!0),t[l]=a,n[ST(l)]=l,n[ST(a.attribute)]=l}return new ET(t,n,e.space)}const B_=Xs({properties:{ariaActiveDescendant:null,ariaAtomic:W2,ariaAutoComplete:null,ariaBusy:W2,ariaChecked:W2,ariaColCount:Je,ariaColIndex:Je,ariaColSpan:Je,ariaControls:s2,ariaCurrent:null,ariaDescribedBy:s2,ariaDetails:null,ariaDisabled:W2,ariaDropEffect:s2,ariaErrorMessage:null,ariaExpanded:W2,ariaFlowTo:s2,ariaGrabbed:W2,ariaHasPopup:null,ariaHidden:W2,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:s2,ariaLevel:Je,ariaLive:null,ariaModal:W2,ariaMultiLine:W2,ariaMultiSelectable:W2,ariaOrientation:null,ariaOwns:s2,ariaPlaceholder:null,ariaPosInSet:Je,ariaPressed:W2,ariaReadOnly:W2,ariaRelevant:null,ariaRequired:W2,ariaRoleDescription:s2,ariaRowCount:Je,ariaRowIndex:Je,ariaRowSpan:Je,ariaSelected:W2,ariaSetSize:Je,ariaSort:null,ariaValueMax:Je,ariaValueMin:Je,ariaValueNow:Je,ariaValueText:null,role:null},transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()}});function P_(e,t){return t in e?e[t]:t}function j_(e,t){return P_(e,t.toLowerCase())}const GJ=Xs({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Zs,acceptCharset:s2,accessKey:s2,action:null,allow:null,allowFullScreen:Yt,allowPaymentRequest:Yt,allowUserMedia:Yt,alt:null,as:null,async:Yt,autoCapitalize:null,autoComplete:s2,autoFocus:Yt,autoPlay:Yt,blocking:s2,capture:null,charSet:null,checked:Yt,cite:null,className:s2,cols:Je,colSpan:null,content:null,contentEditable:W2,controls:Yt,controlsList:s2,coords:Je|Zs,crossOrigin:null,data:null,dateTime:null,decoding:null,default:Yt,defer:Yt,dir:null,dirName:null,disabled:Yt,download:tx,draggable:W2,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:Yt,formTarget:null,headers:s2,height:Je,hidden:tx,high:Je,href:null,hrefLang:null,htmlFor:s2,httpEquiv:s2,id:null,imageSizes:null,imageSrcSet:null,inert:Yt,inputMode:null,integrity:null,is:null,isMap:Yt,itemId:null,itemProp:s2,itemRef:s2,itemScope:Yt,itemType:s2,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:Yt,low:Je,manifest:null,max:null,maxLength:Je,media:null,method:null,min:null,minLength:Je,multiple:Yt,muted:Yt,name:null,nonce:null,noModule:Yt,noValidate:Yt,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:Yt,optimum:Je,pattern:null,ping:s2,placeholder:null,playsInline:Yt,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:Yt,referrerPolicy:null,rel:s2,required:Yt,reversed:Yt,rows:Je,rowSpan:Je,sandbox:s2,scope:null,scoped:Yt,seamless:Yt,selected:Yt,shadowRootClonable:Yt,shadowRootDelegatesFocus:Yt,shadowRootMode:null,shape:null,size:Je,sizes:null,slot:null,span:Je,spellCheck:W2,src:null,srcDoc:null,srcLang:null,srcSet:null,start:Je,step:null,style:null,tabIndex:Je,target:null,title:null,translate:null,type:null,typeMustMatch:Yt,useMap:null,value:W2,width:Je,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:s2,axis:null,background:null,bgColor:null,border:Je,borderColor:null,bottomMargin:Je,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:Yt,declare:Yt,event:null,face:null,frame:null,frameBorder:null,hSpace:Je,leftMargin:Je,link:null,longDesc:null,lowSrc:null,marginHeight:Je,marginWidth:Je,noResize:Yt,noHref:Yt,noShade:Yt,noWrap:Yt,object:null,profile:null,prompt:null,rev:null,rightMargin:Je,rules:null,scheme:null,scrolling:W2,standby:null,summary:null,text:null,topMargin:Je,valueType:null,version:null,vAlign:null,vLink:null,vSpace:Je,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:Yt,disableRemotePlayback:Yt,prefix:null,property:null,results:Je,security:null,unselectable:null},space:"html",transform:j_}),ZJ=Xs({attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},properties:{about:bn,accentHeight:Je,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:Je,amplitude:Je,arabicForm:null,ascent:Je,attributeName:null,attributeType:null,azimuth:Je,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:Je,by:null,calcMode:null,capHeight:Je,className:s2,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:Je,diffuseConstant:Je,direction:null,display:null,dur:null,divisor:Je,dominantBaseline:null,download:Yt,dx:null,dy:null,edgeMode:null,editable:null,elevation:Je,enableBackground:null,end:null,event:null,exponent:Je,externalResourcesRequired:null,fill:null,fillOpacity:Je,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:Zs,g2:Zs,glyphName:Zs,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:Je,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:Je,horizOriginX:Je,horizOriginY:Je,id:null,ideographic:Je,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:Je,k:Je,k1:Je,k2:Je,k3:Je,k4:Je,kernelMatrix:bn,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:Je,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:Je,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:Je,overlineThickness:Je,paintOrder:null,panose1:null,path:null,pathLength:Je,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:s2,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:Je,pointsAtY:Je,pointsAtZ:Je,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:bn,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:bn,rev:bn,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:bn,requiredFeatures:bn,requiredFonts:bn,requiredFormats:bn,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:Je,specularExponent:Je,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:Je,strikethroughThickness:Je,string:null,stroke:null,strokeDashArray:bn,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:Je,strokeOpacity:Je,strokeWidth:null,style:null,surfaceScale:Je,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:bn,tabIndex:Je,tableValues:null,target:null,targetX:Je,targetY:Je,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:bn,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:Je,underlineThickness:Je,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:Je,values:null,vAlphabetic:Je,vMathematical:Je,vectorEffect:null,vHanging:Je,vIdeographic:Je,version:null,vertAdvY:Je,vertOriginX:Je,vertOriginY:Je,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:Je,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:P_}),I_=Xs({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(e,t){return"xlink:"+t.slice(5).toLowerCase()}}),F_=Xs({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:j_}),z_=Xs({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()}}),XJ={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"},WJ=/[A-Z]/g,q_=/-[a-z]/g,YJ=/^data[-\w.:]+$/i;function $_(e,t){const n=ST(t);let l=t,o=J4;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)==="data"&&YJ.test(t)){if(t.charAt(4)==="-"){const a=t.slice(5).replace(q_,JJ);l="data"+a.charAt(0).toUpperCase()+a.slice(1)}else{const a=t.slice(4);if(!q_.test(a)){let i=a.replace(WJ,KJ);i.charAt(0)!=="-"&&(i="-"+i),t="data"+i}}o=ix}return new o(l,t)}function KJ(e){return"-"+e.toLowerCase()}function JJ(e){return e.charAt(1).toUpperCase()}const U_=k_([B_,GJ,I_,F_,z_],"html"),ey=k_([B_,ZJ,I_,F_,z_],"svg");function G_(e){const t=String(e||"").trim();return t?t.split(/[ \t\n\r\f]+/g):[]}function eee(e){return e.join(" ").trim()}var Ws={},ax,Z_;function tee(){if(Z_)return ax;Z_=1;var e=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,t=/\n/g,n=/^\s*/,l=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,o=/^:\s*/,a=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,i=/^[;\s]*/,s=/^\s+|\s+$/g,T=`
|
|
335
335
|
`,u="/",Q="*",f="",h="comment",p="declaration";ax=function(v,b){if(typeof v!="string")throw new TypeError("First argument must be a string");if(!v)return[];b=b||{};var L=1,S=1;function _($){var Z=$.match(t);Z&&(L+=Z.length);var J=$.lastIndexOf(T);S=~J?$.length-J:S+$.length}function O(){var $={line:L,column:S};return function(Z){return Z.position=new E($),k(),Z}}function E($){this.start=$,this.end={line:L,column:S},this.source=b.source}E.prototype.content=v;function A($){var Z=new Error(b.source+":"+L+":"+S+": "+$);if(Z.reason=$,Z.filename=b.source,Z.line=L,Z.column=S,Z.source=v,!b.silent)throw Z}function V($){var Z=$.exec(v);if(Z){var J=Z[0];return _(J),v=v.slice(J.length),Z}}function k(){V(n)}function B($){var Z;for($=$||[];Z=R();)Z!==!1&&$.push(Z);return $}function R(){var $=O();if(!(u!=v.charAt(0)||Q!=v.charAt(1))){for(var Z=2;f!=v.charAt(Z)&&(Q!=v.charAt(Z)||u!=v.charAt(Z+1));)++Z;if(Z+=2,f===v.charAt(Z-1))return A("End of comment missing");var J=v.slice(2,Z-2);return S+=2,_(J),v=v.slice(Z),S+=2,$({type:h,comment:J})}}function F(){var $=O(),Z=V(l);if(Z){if(R(),!V(o))return A("property missing ':'");var J=V(a),W=$({type:p,property:g(Z[0].replace(e,f)),value:J?g(J[0].replace(e,f)):f});return V(i),W}}function q(){var $=[];B($);for(var Z;Z=F();)Z!==!1&&($.push(Z),B($));return $}return k(),q()};function g(v){return v?v.replace(s,f):f}return ax}var X_;function nee(){if(X_)return Ws;X_=1;var e=Ws&&Ws.__importDefault||function(l){return l&&l.__esModule?l:{default:l}};Object.defineProperty(Ws,"__esModule",{value:!0}),Ws.default=n;var t=e(tee());function n(l,o){var a=null;if(!l||typeof l!="string")return a;var i=(0,t.default)(l),s=typeof o=="function";return i.forEach(function(T){if(T.type==="declaration"){var u=T.property,Q=T.value;s?o(u,Q,T):Q&&(a=a||{},a[u]=Q)}}),a}return Ws}var MT={},W_;function ree(){if(W_)return MT;W_=1,Object.defineProperty(MT,"__esModule",{value:!0}),MT.camelCase=void 0;var e=/^--[a-zA-Z0-9_-]+$/,t=/-([a-z])/g,n=/^[^-]+$/,l=/^-(webkit|moz|ms|o|khtml)-/,o=/^-(ms)-/,a=function(u){return!u||n.test(u)||e.test(u)},i=function(u,Q){return Q.toUpperCase()},s=function(u,Q){return"".concat(Q,"-")},T=function(u,Q){return Q===void 0&&(Q={}),a(u)?u:(u=u.toLowerCase(),Q.reactCompat?u=u.replace(o,s):u=u.replace(l,s),u.replace(t,i))};return MT.camelCase=T,MT}var AT,Y_;function iee(){if(Y_)return AT;Y_=1;var e=AT&&AT.__importDefault||function(o){return o&&o.__esModule?o:{default:o}},t=e(nee()),n=ree();function l(o,a){var i={};return!o||typeof o!="string"||(0,t.default)(o,function(s,T){s&&T&&(i[(0,n.camelCase)(s,a)]=T)}),i}return l.default=l,AT=l,AT}var aee=iee();const oee=wc(aee),K_=J_("end"),ox=J_("start");function J_(e){return t;function t(n){const l=n&&n.position&&n.position[e]||{};if(typeof l.line=="number"&&l.line>0&&typeof l.column=="number"&&l.column>0)return{line:l.line,column:l.column,offset:typeof l.offset=="number"&&l.offset>-1?l.offset:void 0}}}function eO(e){const t=ox(e),n=K_(e);if(t&&n)return{start:t,end:n}}function _T(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?tO(e.position):"start"in e||"end"in e?tO(e):"line"in e||"column"in e?lx(e):""}function lx(e){return nO(e&&e.line)+":"+nO(e&&e.column)}function tO(e){return lx(e&&e.start)+"-"+lx(e&&e.end)}function nO(e){return e&&typeof e=="number"?e:1}class J3 extends Error{constructor(t,n,l){super(),typeof n=="string"&&(l=n,n=void 0);let o="",a={},i=!1;if(n&&("line"in n&&"column"in n?a={place:n}:"start"in n&&"end"in n?a={place:n}:"type"in n?a={ancestors:[n],place:n.position}:a={...n}),typeof t=="string"?o=t:!a.cause&&t&&(i=!0,o=t.message,a.cause=t),!a.ruleId&&!a.source&&typeof l=="string"){const T=l.indexOf(":");T===-1?a.ruleId=l:(a.source=l.slice(0,T),a.ruleId=l.slice(T+1))}if(!a.place&&a.ancestors&&a.ancestors){const T=a.ancestors[a.ancestors.length-1];T&&(a.place=T.position)}const s=a.place&&"start"in a.place?a.place.start:a.place;this.ancestors=a.ancestors||void 0,this.cause=a.cause||void 0,this.column=s?s.column:void 0,this.fatal=void 0,this.file,this.message=o,this.line=s?s.line:void 0,this.name=_T(a.place)||"1:1",this.place=a.place||void 0,this.reason=this.message,this.ruleId=a.ruleId||void 0,this.source=a.source||void 0,this.stack=i&&a.cause&&typeof a.cause.stack=="string"?a.cause.stack:"",this.actual,this.expected,this.note,this.url}}J3.prototype.file="",J3.prototype.name="",J3.prototype.reason="",J3.prototype.message="",J3.prototype.stack="",J3.prototype.column=void 0,J3.prototype.line=void 0,J3.prototype.ancestors=void 0,J3.prototype.cause=void 0,J3.prototype.fatal=void 0,J3.prototype.place=void 0,J3.prototype.ruleId=void 0,J3.prototype.source=void 0;const sx={}.hasOwnProperty,lee=new Map,see=/[A-Z]/g,uee=new Set(["table","tbody","thead","tfoot","tr"]),cee=new Set(["td","th"]),rO="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function Tee(e,t){if(!t||t.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const n=t.filePath||void 0;let l;if(t.development){if(typeof t.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");l=gee(n,t.jsxDEV)}else{if(typeof t.jsx!="function")throw new TypeError("Expected `jsx` in production options");if(typeof t.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");l=yee(n,t.jsx,t.jsxs)}const o={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:l,elementAttributeNameCase:t.elementAttributeNameCase||"react",evaluater:t.createEvaluater?t.createEvaluater():void 0,filePath:n,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:t.passKeys!==!1,passNode:t.passNode||!1,schema:t.space==="svg"?ey:U_,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},a=iO(o,e,void 0);return a&&typeof a!="string"?a:o.create(e,o.Fragment,{children:a||void 0},void 0)}function iO(e,t,n){if(t.type==="element")return Qee(e,t,n);if(t.type==="mdxFlowExpression"||t.type==="mdxTextExpression")return fee(e,t);if(t.type==="mdxJsxFlowElement"||t.type==="mdxJsxTextElement")return hee(e,t,n);if(t.type==="mdxjsEsm")return dee(e,t);if(t.type==="root")return pee(e,t,n);if(t.type==="text")return mee(e,t)}function Qee(e,t,n){const l=e.schema;let o=l;t.tagName.toLowerCase()==="svg"&&l.space==="html"&&(o=ey,e.schema=o),e.ancestors.push(t);const a=oO(e,t.tagName,!1),i=vee(e,t);let s=cx(e,t);return uee.has(t.tagName)&&(s=s.filter(function(T){return typeof T=="string"?!$J(T):!0})),aO(e,i,a,t),ux(i,s),e.ancestors.pop(),e.schema=l,e.create(t,a,i,n)}function fee(e,t){if(t.data&&t.data.estree&&e.evaluater){const l=t.data.estree.body[0];return l.type,e.evaluater.evaluateExpression(l.expression)}OT(e,t.position)}function dee(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);OT(e,t.position)}function hee(e,t,n){const l=e.schema;let o=l;t.name==="svg"&&l.space==="html"&&(o=ey,e.schema=o),e.ancestors.push(t);const a=t.name===null?e.Fragment:oO(e,t.name,!0),i=Lee(e,t),s=cx(e,t);return aO(e,i,a,t),ux(i,s),e.ancestors.pop(),e.schema=l,e.create(t,a,i,n)}function pee(e,t,n){const l={};return ux(l,cx(e,t)),e.create(t,e.Fragment,l,n)}function mee(e,t){return t.value}function aO(e,t,n,l){typeof n!="string"&&n!==e.Fragment&&e.passNode&&(t.node=l)}function ux(e,t){if(t.length>0){const n=t.length>1?t:t[0];n&&(e.children=n)}}function yee(e,t,n){return l;function l(o,a,i,s){const u=Array.isArray(i.children)?n:t;return s?u(a,i,s):u(a,i)}}function gee(e,t){return n;function n(l,o,a,i){const s=Array.isArray(a.children),T=ox(l);return t(o,a,i,s,{columnNumber:T?T.column-1:void 0,fileName:e,lineNumber:T?T.line:void 0},void 0)}}function vee(e,t){const n={};let l,o;for(o in t.properties)if(o!=="children"&&sx.call(t.properties,o)){const a=xee(e,o,t.properties[o]);if(a){const[i,s]=a;e.tableCellAlignToStyle&&i==="align"&&typeof s=="string"&&cee.has(t.tagName)?l=s:n[i]=s}}if(l){const a=n.style||(n.style={});a[e.stylePropertyNameCase==="css"?"text-align":"textAlign"]=l}return n}function Lee(e,t){const n={};for(const l of t.attributes)if(l.type==="mdxJsxExpressionAttribute")if(l.data&&l.data.estree&&e.evaluater){const a=l.data.estree.body[0];a.type;const i=a.expression;i.type;const s=i.properties[0];s.type,Object.assign(n,e.evaluater.evaluateExpression(s.argument))}else OT(e,t.position);else{const o=l.name;let a;if(l.value&&typeof l.value=="object")if(l.value.data&&l.value.data.estree&&e.evaluater){const s=l.value.data.estree.body[0];s.type,a=e.evaluater.evaluateExpression(s.expression)}else OT(e,t.position);else a=l.value===null?!0:l.value;n[o]=a}return n}function cx(e,t){const n=[];let l=-1;const o=e.passKeys?new Map:lee;for(;++l<t.children.length;){const a=t.children[l];let i;if(e.passKeys){const T=a.type==="element"?a.tagName:a.type==="mdxJsxFlowElement"||a.type==="mdxJsxTextElement"?a.name:void 0;if(T){const u=o.get(T)||0;i=T+"-"+u,o.set(T,u+1)}}const s=iO(e,a,i);s!==void 0&&n.push(s)}return n}function xee(e,t,n){const l=$_(e.schema,t);if(!(n==null||typeof n=="number"&&Number.isNaN(n))){if(Array.isArray(n)&&(n=l.commaSeparated?jJ(n):eee(n)),l.property==="style"){let o=typeof n=="object"?n:bee(e,String(n));return e.stylePropertyNameCase==="css"&&(o=Hee(o)),["style",o]}return[e.elementAttributeNameCase==="react"&&l.space?XJ[l.property]||l.property:l.attribute,n]}}function bee(e,t){try{return oee(t,{reactCompat:!0})}catch(n){if(e.ignoreInvalidStyle)return{};const l=n,o=new J3("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:l,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw o.file=e.filePath||void 0,o.url=rO+"#cannot-parse-style-attribute",o}}function oO(e,t,n){let l;if(!n)l={type:"Literal",value:t};else if(t.includes(".")){const o=t.split(".");let a=-1,i;for(;++a<o.length;){const s=D_(o[a])?{type:"Identifier",name:o[a]}:{type:"Literal",value:o[a]};i=i?{type:"MemberExpression",object:i,property:s,computed:!!(a&&s.type==="Literal"),optional:!1}:s}l=i}else l=D_(t)&&!/^[a-z]/.test(t)?{type:"Identifier",name:t}:{type:"Literal",value:t};if(l.type==="Literal"){const o=l.value;return sx.call(e.components,o)?e.components[o]:o}if(e.evaluater)return e.evaluater.evaluateExpression(l);OT(e)}function OT(e,t){const n=new J3("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=rO+"#cannot-handle-mdx-estrees-without-createevaluater",n}function Hee(e){const t={};let n;for(n in e)sx.call(e,n)&&(t[Eee(n)]=e[n]);return t}function Eee(e){let t=e.replace(see,See);return t.slice(0,3)==="ms-"&&(t="-"+t),t}function See(e){return"-"+e.toLowerCase()}const Tx={action:["form"],cite:["blockquote","del","ins","q"],data:["object"],formAction:["button","input"],href:["a","area","base","link"],icon:["menuitem"],itemId:null,manifest:["html"],ping:["a","area"],poster:["video"],src:["audio","embed","iframe","img","input","script","source","track","video"]},Mee={};function Qx(e,t){const n=Mee,l=typeof n.includeImageAlt=="boolean"?n.includeImageAlt:!0,o=typeof n.includeHtml=="boolean"?n.includeHtml:!0;return lO(e,l,o)}function lO(e,t,n){if(Aee(e)){if("value"in e)return e.type==="html"&&!n?"":e.value;if(t&&"alt"in e&&e.alt)return e.alt;if("children"in e)return sO(e.children,t,n)}return Array.isArray(e)?sO(e,t,n):""}function sO(e,t,n){const l=[];let o=-1;for(;++o<e.length;)l[o]=lO(e[o],t,n);return l.join("")}function Aee(e){return!!(e&&typeof e=="object")}const uO=document.createElement("i");function fx(e){const t="&"+e+";";uO.innerHTML=t;const n=uO.textContent;return n.charCodeAt(n.length-1)===59&&e!=="semi"||n===t?!1:n}function Hn(e,t,n,l){const o=e.length;let a=0,i;if(t<0?t=-t>o?0:o+t:t=t>o?o:t,n=n>0?n:0,l.length<1e4)i=Array.from(l),i.unshift(t,n),e.splice(...i);else for(n&&e.splice(t,n);a<l.length;)i=l.slice(a,a+1e4),i.unshift(t,0),e.splice(...i),a+=1e4,t+=1e4}function A6(e,t){return e.length>0?(Hn(e,e.length,0,t),e):t}const cO={}.hasOwnProperty;function TO(e){const t={};let n=-1;for(;++n<e.length;)_ee(t,e[n]);return t}function _ee(e,t){let n;for(n in t){const o=(cO.call(e,n)?e[n]:void 0)||(e[n]={}),a=t[n];let i;if(a)for(i in a){cO.call(o,i)||(o[i]=[]);const s=a[i];Oee(o[i],Array.isArray(s)?s:s?[s]:[])}}}function Oee(e,t){let n=-1;const l=[];for(;++n<t.length;)(t[n].add==="after"?e:l).push(t[n]);Hn(e,0,0,l)}function QO(e,t){const n=Number.parseInt(e,t);return n<9||n===11||n>13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||(n&65535)===65535||(n&65535)===65534||n>1114111?"�":String.fromCodePoint(n)}function Q5(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const _4=Za(/[A-Za-z]/),e4=Za(/[\dA-Za-z]/),Cee=Za(/[#-'*+\--9=?A-Z^-~]/);function ty(e){return e!==null&&(e<32||e===127)}const dx=Za(/\d/),wee=Za(/[\dA-Fa-f]/),Vee=Za(/[!-/:-@[-`{-~]/);function vt(e){return e!==null&&e<-2}function K1(e){return e!==null&&(e<0||e===32)}function u1(e){return e===-2||e===-1||e===32}const ny=Za(new RegExp("\\p{P}|\\p{S}","u")),q7=Za(/\s/);function Za(e){return t;function t(n){return n!==null&&n>-1&&e.test(String.fromCharCode(n))}}function Ys(e){const t=[];let n=-1,l=0,o=0;for(;++n<e.length;){const a=e.charCodeAt(n);let i="";if(a===37&&e4(e.charCodeAt(n+1))&&e4(e.charCodeAt(n+2)))o=2;else if(a<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(a))||(i=String.fromCharCode(a));else if(a>55295&&a<57344){const s=e.charCodeAt(n+1);a<56320&&s>56319&&s<57344?(i=String.fromCharCode(a,s),o=1):i="�"}else i=String.fromCharCode(a);i&&(t.push(e.slice(l,n),encodeURIComponent(i)),l=n+o+1,i=""),o&&(n+=o,o=0)}return t.join("")+e.slice(l)}function a1(e,t,n,l){const o=l?l-1:Number.POSITIVE_INFINITY;let a=0;return i;function i(T){return u1(T)?(e.enter(n),s(T)):t(T)}function s(T){return u1(T)&&a++<o?(e.consume(T),s):(e.exit(n),t(T))}}const Dee={tokenize:Ree};function Ree(e){const t=e.attempt(this.parser.constructs.contentInitial,l,o);let n;return t;function l(s){if(s===null){e.consume(s);return}return e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),a1(e,t,"linePrefix")}function o(s){return e.enter("paragraph"),a(s)}function a(s){const T=e.enter("chunkText",{contentType:"text",previous:n});return n&&(n.next=T),n=T,i(s)}function i(s){if(s===null){e.exit("chunkText"),e.exit("paragraph"),e.consume(s);return}return vt(s)?(e.consume(s),e.exit("chunkText"),a):(e.consume(s),i)}}const kee={tokenize:Nee},fO={tokenize:Bee};function Nee(e){const t=this,n=[];let l=0,o,a,i;return s;function s(_){if(l<n.length){const O=n[l];return t.containerState=O[1],e.attempt(O[0].continuation,T,u)(_)}return u(_)}function T(_){if(l++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,o&&S();const O=t.events.length;let E=O,A;for(;E--;)if(t.events[E][0]==="exit"&&t.events[E][1].type==="chunkFlow"){A=t.events[E][1].end;break}L(l);let V=O;for(;V<t.events.length;)t.events[V][1].end={...A},V++;return Hn(t.events,E+1,0,t.events.slice(O)),t.events.length=V,u(_)}return s(_)}function u(_){if(l===n.length){if(!o)return h(_);if(o.currentConstruct&&o.currentConstruct.concrete)return g(_);t.interrupt=!!(o.currentConstruct&&!o._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(fO,Q,f)(_)}function Q(_){return o&&S(),L(l),h(_)}function f(_){return t.parser.lazy[t.now().line]=l!==n.length,i=t.now().offset,g(_)}function h(_){return t.containerState={},e.attempt(fO,p,g)(_)}function p(_){return l++,n.push([t.currentConstruct,t.containerState]),h(_)}function g(_){if(_===null){o&&S(),L(0),e.consume(_);return}return o=o||t.parser.flow(t.now()),e.enter("chunkFlow",{_tokenizer:o,contentType:"flow",previous:a}),v(_)}function v(_){if(_===null){b(e.exit("chunkFlow"),!0),L(0),e.consume(_);return}return vt(_)?(e.consume(_),b(e.exit("chunkFlow")),l=0,t.interrupt=void 0,s):(e.consume(_),v)}function b(_,O){const E=t.sliceStream(_);if(O&&E.push(null),_.previous=a,a&&(a.next=_),a=_,o.defineSkip(_.start),o.write(E),t.parser.lazy[_.start.line]){let A=o.events.length;for(;A--;)if(o.events[A][1].start.offset<i&&(!o.events[A][1].end||o.events[A][1].end.offset>i))return;const V=t.events.length;let k=V,B,R;for(;k--;)if(t.events[k][0]==="exit"&&t.events[k][1].type==="chunkFlow"){if(B){R=t.events[k][1].end;break}B=!0}for(L(l),A=V;A<t.events.length;)t.events[A][1].end={...R},A++;Hn(t.events,k+1,0,t.events.slice(V)),t.events.length=A}}function L(_){let O=n.length;for(;O-- >_;){const E=n[O];t.containerState=E[1],E[0].exit.call(t,e)}n.length=_}function S(){o.write([null]),a=void 0,o=void 0,t.containerState._closeFlow=void 0}}function Bee(e,t,n){return a1(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function Ks(e){if(e===null||K1(e)||q7(e))return 1;if(ny(e))return 2}function ry(e,t,n){const l=[];let o=-1;for(;++o<e.length;){const a=e[o].resolveAll;a&&!l.includes(a)&&(t=a(t,n),l.push(a))}return t}const hx={name:"attention",resolveAll:Pee,tokenize:jee};function Pee(e,t){let n=-1,l,o,a,i,s,T,u,Q;for(;++n<e.length;)if(e[n][0]==="enter"&&e[n][1].type==="attentionSequence"&&e[n][1]._close){for(l=n;l--;)if(e[l][0]==="exit"&&e[l][1].type==="attentionSequence"&&e[l][1]._open&&t.sliceSerialize(e[l][1]).charCodeAt(0)===t.sliceSerialize(e[n][1]).charCodeAt(0)){if((e[l][1]._close||e[n][1]._open)&&(e[n][1].end.offset-e[n][1].start.offset)%3&&!((e[l][1].end.offset-e[l][1].start.offset+e[n][1].end.offset-e[n][1].start.offset)%3))continue;T=e[l][1].end.offset-e[l][1].start.offset>1&&e[n][1].end.offset-e[n][1].start.offset>1?2:1;const f={...e[l][1].end},h={...e[n][1].start};dO(f,-T),dO(h,T),i={type:T>1?"strongSequence":"emphasisSequence",start:f,end:{...e[l][1].end}},s={type:T>1?"strongSequence":"emphasisSequence",start:{...e[n][1].start},end:h},a={type:T>1?"strongText":"emphasisText",start:{...e[l][1].end},end:{...e[n][1].start}},o={type:T>1?"strong":"emphasis",start:{...i.start},end:{...s.end}},e[l][1].end={...i.start},e[n][1].start={...s.end},u=[],e[l][1].end.offset-e[l][1].start.offset&&(u=A6(u,[["enter",e[l][1],t],["exit",e[l][1],t]])),u=A6(u,[["enter",o,t],["enter",i,t],["exit",i,t],["enter",a,t]]),u=A6(u,ry(t.parser.constructs.insideSpan.null,e.slice(l+1,n),t)),u=A6(u,[["exit",a,t],["enter",s,t],["exit",s,t],["exit",o,t]]),e[n][1].end.offset-e[n][1].start.offset?(Q=2,u=A6(u,[["enter",e[n][1],t],["exit",e[n][1],t]])):Q=0,Hn(e,l-1,n-l+3,u),n=l+u.length-Q-2;break}}for(n=-1;++n<e.length;)e[n][1].type==="attentionSequence"&&(e[n][1].type="data");return e}function jee(e,t){const n=this.parser.constructs.attentionMarkers.null,l=this.previous,o=Ks(l);let a;return i;function i(T){return a=T,e.enter("attentionSequence"),s(T)}function s(T){if(T===a)return e.consume(T),s;const u=e.exit("attentionSequence"),Q=Ks(T),f=!Q||Q===2&&o||n.includes(T),h=!o||o===2&&Q||n.includes(l);return u._open=!!(a===42?f:f&&(o||!h)),u._close=!!(a===42?h:h&&(Q||!f)),t(T)}}function dO(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}const Iee={name:"autolink",tokenize:Fee};function Fee(e,t,n){let l=0;return o;function o(p){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(p),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),a}function a(p){return _4(p)?(e.consume(p),i):p===64?n(p):u(p)}function i(p){return p===43||p===45||p===46||e4(p)?(l=1,s(p)):u(p)}function s(p){return p===58?(e.consume(p),l=0,T):(p===43||p===45||p===46||e4(p))&&l++<32?(e.consume(p),s):(l=0,u(p))}function T(p){return p===62?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(p),e.exit("autolinkMarker"),e.exit("autolink"),t):p===null||p===32||p===60||ty(p)?n(p):(e.consume(p),T)}function u(p){return p===64?(e.consume(p),Q):Cee(p)?(e.consume(p),u):n(p)}function Q(p){return e4(p)?f(p):n(p)}function f(p){return p===46?(e.consume(p),l=0,Q):p===62?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(p),e.exit("autolinkMarker"),e.exit("autolink"),t):h(p)}function h(p){if((p===45||e4(p))&&l++<63){const g=p===45?h:f;return e.consume(p),g}return n(p)}}const CT={partial:!0,tokenize:zee};function zee(e,t,n){return l;function l(a){return u1(a)?a1(e,o,"linePrefix")(a):o(a)}function o(a){return a===null||vt(a)?t(a):n(a)}}const hO={continuation:{tokenize:$ee},exit:Uee,name:"blockQuote",tokenize:qee};function qee(e,t,n){const l=this;return o;function o(i){if(i===62){const s=l.containerState;return s.open||(e.enter("blockQuote",{_container:!0}),s.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(i),e.exit("blockQuoteMarker"),a}return n(i)}function a(i){return u1(i)?(e.enter("blockQuotePrefixWhitespace"),e.consume(i),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(i))}}function $ee(e,t,n){const l=this;return o;function o(i){return u1(i)?a1(e,a,"linePrefix",l.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(i):a(i)}function a(i){return e.attempt(hO,t,n)(i)}}function Uee(e){e.exit("blockQuote")}const pO={name:"characterEscape",tokenize:Gee};function Gee(e,t,n){return l;function l(a){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(a),e.exit("escapeMarker"),o}function o(a){return Vee(a)?(e.enter("characterEscapeValue"),e.consume(a),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):n(a)}}const mO={name:"characterReference",tokenize:Zee};function Zee(e,t,n){const l=this;let o=0,a,i;return s;function s(f){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(f),e.exit("characterReferenceMarker"),T}function T(f){return f===35?(e.enter("characterReferenceMarkerNumeric"),e.consume(f),e.exit("characterReferenceMarkerNumeric"),u):(e.enter("characterReferenceValue"),a=31,i=e4,Q(f))}function u(f){return f===88||f===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(f),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),a=6,i=wee,Q):(e.enter("characterReferenceValue"),a=7,i=dx,Q(f))}function Q(f){if(f===59&&o){const h=e.exit("characterReferenceValue");return i===e4&&!fx(l.sliceSerialize(h))?n(f):(e.enter("characterReferenceMarker"),e.consume(f),e.exit("characterReferenceMarker"),e.exit("characterReference"),t)}return i(f)&&o++<a?(e.consume(f),Q):n(f)}}const yO={partial:!0,tokenize:Wee},gO={concrete:!0,name:"codeFenced",tokenize:Xee};function Xee(e,t,n){const l=this,o={partial:!0,tokenize:E};let a=0,i=0,s;return T;function T(A){return u(A)}function u(A){const V=l.events[l.events.length-1];return a=V&&V[1].type==="linePrefix"?V[2].sliceSerialize(V[1],!0).length:0,s=A,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),Q(A)}function Q(A){return A===s?(i++,e.consume(A),Q):i<3?n(A):(e.exit("codeFencedFenceSequence"),u1(A)?a1(e,f,"whitespace")(A):f(A))}function f(A){return A===null||vt(A)?(e.exit("codeFencedFence"),l.interrupt?t(A):e.check(yO,v,O)(A)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),h(A))}function h(A){return A===null||vt(A)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),f(A)):u1(A)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),a1(e,p,"whitespace")(A)):A===96&&A===s?n(A):(e.consume(A),h)}function p(A){return A===null||vt(A)?f(A):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),g(A))}function g(A){return A===null||vt(A)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),f(A)):A===96&&A===s?n(A):(e.consume(A),g)}function v(A){return e.attempt(o,O,b)(A)}function b(A){return e.enter("lineEnding"),e.consume(A),e.exit("lineEnding"),L}function L(A){return a>0&&u1(A)?a1(e,S,"linePrefix",a+1)(A):S(A)}function S(A){return A===null||vt(A)?e.check(yO,v,O)(A):(e.enter("codeFlowValue"),_(A))}function _(A){return A===null||vt(A)?(e.exit("codeFlowValue"),S(A)):(e.consume(A),_)}function O(A){return e.exit("codeFenced"),t(A)}function E(A,V,k){let B=0;return R;function R(J){return A.enter("lineEnding"),A.consume(J),A.exit("lineEnding"),F}function F(J){return A.enter("codeFencedFence"),u1(J)?a1(A,q,"linePrefix",l.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(J):q(J)}function q(J){return J===s?(A.enter("codeFencedFenceSequence"),$(J)):k(J)}function $(J){return J===s?(B++,A.consume(J),$):B>=i?(A.exit("codeFencedFenceSequence"),u1(J)?a1(A,Z,"whitespace")(J):Z(J)):k(J)}function Z(J){return J===null||vt(J)?(A.exit("codeFencedFence"),V(J)):k(J)}}}function Wee(e,t,n){const l=this;return o;function o(i){return i===null?n(i):(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),a)}function a(i){return l.parser.lazy[l.now().line]?n(i):t(i)}}const px={name:"codeIndented",tokenize:Kee},Yee={partial:!0,tokenize:Jee};function Kee(e,t,n){const l=this;return o;function o(u){return e.enter("codeIndented"),a1(e,a,"linePrefix",5)(u)}function a(u){const Q=l.events[l.events.length-1];return Q&&Q[1].type==="linePrefix"&&Q[2].sliceSerialize(Q[1],!0).length>=4?i(u):n(u)}function i(u){return u===null?T(u):vt(u)?e.attempt(Yee,i,T)(u):(e.enter("codeFlowValue"),s(u))}function s(u){return u===null||vt(u)?(e.exit("codeFlowValue"),i(u)):(e.consume(u),s)}function T(u){return e.exit("codeIndented"),t(u)}}function Jee(e,t,n){const l=this;return o;function o(i){return l.parser.lazy[l.now().line]?n(i):vt(i)?(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),o):a1(e,a,"linePrefix",5)(i)}function a(i){const s=l.events[l.events.length-1];return s&&s[1].type==="linePrefix"&&s[2].sliceSerialize(s[1],!0).length>=4?t(i):vt(i)?o(i):n(i)}}const ete={name:"codeText",previous:nte,resolve:tte,tokenize:rte};function tte(e){let t=e.length-4,n=3,l,o;if((e[n][1].type==="lineEnding"||e[n][1].type==="space")&&(e[t][1].type==="lineEnding"||e[t][1].type==="space")){for(l=n;++l<t;)if(e[l][1].type==="codeTextData"){e[n][1].type="codeTextPadding",e[t][1].type="codeTextPadding",n+=2,t-=2;break}}for(l=n-1,t++;++l<=t;)o===void 0?l!==t&&e[l][1].type!=="lineEnding"&&(o=l):(l===t||e[l][1].type==="lineEnding")&&(e[o][1].type="codeTextData",l!==o+2&&(e[o][1].end=e[l-1][1].end,e.splice(o+2,l-o-2),t-=l-o-2,l=o+2),o=void 0);return e}function nte(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function rte(e,t,n){let l=0,o,a;return i;function i(f){return e.enter("codeText"),e.enter("codeTextSequence"),s(f)}function s(f){return f===96?(e.consume(f),l++,s):(e.exit("codeTextSequence"),T(f))}function T(f){return f===null?n(f):f===32?(e.enter("space"),e.consume(f),e.exit("space"),T):f===96?(a=e.enter("codeTextSequence"),o=0,Q(f)):vt(f)?(e.enter("lineEnding"),e.consume(f),e.exit("lineEnding"),T):(e.enter("codeTextData"),u(f))}function u(f){return f===null||f===32||f===96||vt(f)?(e.exit("codeTextData"),T(f)):(e.consume(f),u)}function Q(f){return f===96?(e.consume(f),o++,Q):o===l?(e.exit("codeTextSequence"),e.exit("codeText"),t(f)):(a.type="codeTextData",u(f))}}class ite{constructor(t){this.left=t?[...t]:[],this.right=[]}get(t){if(t<0||t>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+t+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return t<this.left.length?this.left[t]:this.right[this.right.length-t+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(t,n){const l=n??Number.POSITIVE_INFINITY;return l<this.left.length?this.left.slice(t,l):t>this.left.length?this.right.slice(this.right.length-l+this.left.length,this.right.length-t+this.left.length).reverse():this.left.slice(t).concat(this.right.slice(this.right.length-l+this.left.length).reverse())}splice(t,n,l){const o=n||0;this.setCursor(Math.trunc(t));const a=this.right.splice(this.right.length-o,Number.POSITIVE_INFINITY);return l&&wT(this.left,l),a.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(t){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(t)}pushMany(t){this.setCursor(Number.POSITIVE_INFINITY),wT(this.left,t)}unshift(t){this.setCursor(0),this.right.push(t)}unshiftMany(t){this.setCursor(0),wT(this.right,t.reverse())}setCursor(t){if(!(t===this.left.length||t>this.left.length&&this.right.length===0||t<0&&this.left.length===0))if(t<this.left.length){const n=this.left.splice(t,Number.POSITIVE_INFINITY);wT(this.right,n.reverse())}else{const n=this.right.splice(this.left.length+this.right.length-t,Number.POSITIVE_INFINITY);wT(this.left,n.reverse())}}}function wT(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 vO(e){const t={};let n=-1,l,o,a,i,s,T,u;const Q=new ite(e);for(;++n<Q.length;){for(;n in t;)n=t[n];if(l=Q.get(n),n&&l[1].type==="chunkFlow"&&Q.get(n-1)[1].type==="listItemPrefix"&&(T=l[1]._tokenizer.events,a=0,a<T.length&&T[a][1].type==="lineEndingBlank"&&(a+=2),a<T.length&&T[a][1].type==="content"))for(;++a<T.length&&T[a][1].type!=="content";)T[a][1].type==="chunkText"&&(T[a][1]._isInFirstContentOfListItem=!0,a++);if(l[0]==="enter")l[1].contentType&&(Object.assign(t,ate(Q,n)),n=t[n],u=!0);else if(l[1]._container){for(a=n,o=void 0;a--;)if(i=Q.get(a),i[1].type==="lineEnding"||i[1].type==="lineEndingBlank")i[0]==="enter"&&(o&&(Q.get(o)[1].type="lineEndingBlank"),i[1].type="lineEnding",o=a);else if(!(i[1].type==="linePrefix"||i[1].type==="listItemIndent"))break;o&&(l[1].end={...Q.get(o)[1].start},s=Q.slice(o,n),s.unshift(l),Q.splice(o,n-o+1,s))}}return Hn(e,0,Number.POSITIVE_INFINITY,Q.slice(0)),!u}function ate(e,t){const n=e.get(t)[1],l=e.get(t)[2];let o=t-1;const a=[];let i=n._tokenizer;i||(i=l.parser[n.contentType](n.start),n._contentTypeTextTrailing&&(i._contentTypeTextTrailing=!0));const s=i.events,T=[],u={};let Q,f,h=-1,p=n,g=0,v=0;const b=[v];for(;p;){for(;e.get(++o)[1]!==p;);a.push(o),p._tokenizer||(Q=l.sliceStream(p),p.next||Q.push(null),f&&i.defineSkip(p.start),p._isInFirstContentOfListItem&&(i._gfmTasklistFirstContentOfListItem=!0),i.write(Q),p._isInFirstContentOfListItem&&(i._gfmTasklistFirstContentOfListItem=void 0)),f=p,p=p.next}for(p=n;++h<s.length;)s[h][0]==="exit"&&s[h-1][0]==="enter"&&s[h][1].type===s[h-1][1].type&&s[h][1].start.line!==s[h][1].end.line&&(v=h+1,b.push(v),p._tokenizer=void 0,p.previous=void 0,p=p.next);for(i.events=[],p?(p._tokenizer=void 0,p.previous=void 0):b.pop(),h=b.length;h--;){const L=s.slice(b[h],b[h+1]),S=a.pop();T.push([S,S+L.length-1]),e.splice(S,2,L)}for(T.reverse(),h=-1;++h<T.length;)u[g+T[h][0]]=g+T[h][1],g+=T[h][1]-T[h][0]-1;return u}const ote={resolve:ste,tokenize:ute},lte={partial:!0,tokenize:cte};function ste(e){return vO(e),e}function ute(e,t){let n;return l;function l(s){return e.enter("content"),n=e.enter("chunkContent",{contentType:"content"}),o(s)}function o(s){return s===null?a(s):vt(s)?e.check(lte,i,a)(s):(e.consume(s),o)}function a(s){return e.exit("chunkContent"),e.exit("content"),t(s)}function i(s){return e.consume(s),e.exit("chunkContent"),n.next=e.enter("chunkContent",{contentType:"content",previous:n}),n=n.next,o}}function cte(e,t,n){const l=this;return o;function o(i){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),a1(e,a,"linePrefix")}function a(i){if(i===null||vt(i))return n(i);const s=l.events[l.events.length-1];return!l.parser.constructs.disable.null.includes("codeIndented")&&s&&s[1].type==="linePrefix"&&s[2].sliceSerialize(s[1],!0).length>=4?t(i):e.interrupt(l.parser.constructs.flow,n,t)(i)}}function LO(e,t,n,l,o,a,i,s,T){const u=T||Number.POSITIVE_INFINITY;let Q=0;return f;function f(L){return L===60?(e.enter(l),e.enter(o),e.enter(a),e.consume(L),e.exit(a),h):L===null||L===32||L===41||ty(L)?n(L):(e.enter(l),e.enter(i),e.enter(s),e.enter("chunkString",{contentType:"string"}),v(L))}function h(L){return L===62?(e.enter(a),e.consume(L),e.exit(a),e.exit(o),e.exit(l),t):(e.enter(s),e.enter("chunkString",{contentType:"string"}),p(L))}function p(L){return L===62?(e.exit("chunkString"),e.exit(s),h(L)):L===null||L===60||vt(L)?n(L):(e.consume(L),L===92?g:p)}function g(L){return L===60||L===62||L===92?(e.consume(L),p):p(L)}function v(L){return!Q&&(L===null||L===41||K1(L))?(e.exit("chunkString"),e.exit(s),e.exit(i),e.exit(l),t(L)):Q<u&&L===40?(e.consume(L),Q++,v):L===41?(e.consume(L),Q--,v):L===null||L===32||L===40||ty(L)?n(L):(e.consume(L),L===92?b:v)}function b(L){return L===40||L===41||L===92?(e.consume(L),v):v(L)}}function xO(e,t,n,l,o,a){const i=this;let s=0,T;return u;function u(p){return e.enter(l),e.enter(o),e.consume(p),e.exit(o),e.enter(a),Q}function Q(p){return s>999||p===null||p===91||p===93&&!T||p===94&&!s&&"_hiddenFootnoteSupport"in i.parser.constructs?n(p):p===93?(e.exit(a),e.enter(o),e.consume(p),e.exit(o),e.exit(l),t):vt(p)?(e.enter("lineEnding"),e.consume(p),e.exit("lineEnding"),Q):(e.enter("chunkString",{contentType:"string"}),f(p))}function f(p){return p===null||p===91||p===93||vt(p)||s++>999?(e.exit("chunkString"),Q(p)):(e.consume(p),T||(T=!u1(p)),p===92?h:f)}function h(p){return p===91||p===92||p===93?(e.consume(p),s++,f):f(p)}}function bO(e,t,n,l,o,a){let i;return s;function s(h){return h===34||h===39||h===40?(e.enter(l),e.enter(o),e.consume(h),e.exit(o),i=h===40?41:h,T):n(h)}function T(h){return h===i?(e.enter(o),e.consume(h),e.exit(o),e.exit(l),t):(e.enter(a),u(h))}function u(h){return h===i?(e.exit(a),T(i)):h===null?n(h):vt(h)?(e.enter("lineEnding"),e.consume(h),e.exit("lineEnding"),a1(e,u,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),Q(h))}function Q(h){return h===i||h===null||vt(h)?(e.exit("chunkString"),u(h)):(e.consume(h),h===92?f:Q)}function f(h){return h===i||h===92?(e.consume(h),Q):Q(h)}}function VT(e,t){let n;return l;function l(o){return vt(o)?(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),n=!0,l):u1(o)?a1(e,l,n?"linePrefix":"lineSuffix")(o):t(o)}}const Tte={name:"definition",tokenize:fte},Qte={partial:!0,tokenize:dte};function fte(e,t,n){const l=this;let o;return a;function a(p){return e.enter("definition"),i(p)}function i(p){return xO.call(l,e,s,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(p)}function s(p){return o=Q5(l.sliceSerialize(l.events[l.events.length-1][1]).slice(1,-1)),p===58?(e.enter("definitionMarker"),e.consume(p),e.exit("definitionMarker"),T):n(p)}function T(p){return K1(p)?VT(e,u)(p):u(p)}function u(p){return LO(e,Q,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(p)}function Q(p){return e.attempt(Qte,f,f)(p)}function f(p){return u1(p)?a1(e,h,"whitespace")(p):h(p)}function h(p){return p===null||vt(p)?(e.exit("definition"),l.parser.defined.push(o),t(p)):n(p)}}function dte(e,t,n){return l;function l(s){return K1(s)?VT(e,o)(s):n(s)}function o(s){return bO(e,a,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(s)}function a(s){return u1(s)?a1(e,i,"whitespace")(s):i(s)}function i(s){return s===null||vt(s)?t(s):n(s)}}const hte={name:"hardBreakEscape",tokenize:pte};function pte(e,t,n){return l;function l(a){return e.enter("hardBreakEscape"),e.consume(a),o}function o(a){return vt(a)?(e.exit("hardBreakEscape"),t(a)):n(a)}}const mte={name:"headingAtx",resolve:yte,tokenize:gte};function yte(e,t){let n=e.length-2,l=3,o,a;return e[l][1].type==="whitespace"&&(l+=2),n-2>l&&e[n][1].type==="whitespace"&&(n-=2),e[n][1].type==="atxHeadingSequence"&&(l===n-1||n-4>l&&e[n-2][1].type==="whitespace")&&(n-=l+1===n?2:4),n>l&&(o={type:"atxHeadingText",start:e[l][1].start,end:e[n][1].end},a={type:"chunkText",start:e[l][1].start,end:e[n][1].end,contentType:"text"},Hn(e,l,n-l+1,[["enter",o,t],["enter",a,t],["exit",a,t],["exit",o,t]])),e}function gte(e,t,n){let l=0;return o;function o(Q){return e.enter("atxHeading"),a(Q)}function a(Q){return e.enter("atxHeadingSequence"),i(Q)}function i(Q){return Q===35&&l++<6?(e.consume(Q),i):Q===null||K1(Q)?(e.exit("atxHeadingSequence"),s(Q)):n(Q)}function s(Q){return Q===35?(e.enter("atxHeadingSequence"),T(Q)):Q===null||vt(Q)?(e.exit("atxHeading"),t(Q)):u1(Q)?a1(e,s,"whitespace")(Q):(e.enter("atxHeadingText"),u(Q))}function T(Q){return Q===35?(e.consume(Q),T):(e.exit("atxHeadingSequence"),s(Q))}function u(Q){return Q===null||Q===35||K1(Q)?(e.exit("atxHeadingText"),s(Q)):(e.consume(Q),u)}}const vte=["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"],HO=["pre","script","style","textarea"],Lte={concrete:!0,name:"htmlFlow",resolveTo:Hte,tokenize:Ete},xte={partial:!0,tokenize:Mte},bte={partial:!0,tokenize:Ste};function Hte(e){let t=e.length;for(;t--&&!(e[t][0]==="enter"&&e[t][1].type==="htmlFlow"););return t>1&&e[t-2][1].type==="linePrefix"&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2)),e}function Ete(e,t,n){const l=this;let o,a,i,s,T;return u;function u(U){return Q(U)}function Q(U){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(U),f}function f(U){return U===33?(e.consume(U),h):U===47?(e.consume(U),a=!0,v):U===63?(e.consume(U),o=3,l.interrupt?t:j):_4(U)?(e.consume(U),i=String.fromCharCode(U),b):n(U)}function h(U){return U===45?(e.consume(U),o=2,p):U===91?(e.consume(U),o=5,s=0,g):_4(U)?(e.consume(U),o=4,l.interrupt?t:j):n(U)}function p(U){return U===45?(e.consume(U),l.interrupt?t:j):n(U)}function g(U){const de="CDATA[";return U===de.charCodeAt(s++)?(e.consume(U),s===de.length?l.interrupt?t:q:g):n(U)}function v(U){return _4(U)?(e.consume(U),i=String.fromCharCode(U),b):n(U)}function b(U){if(U===null||U===47||U===62||K1(U)){const de=U===47,pe=i.toLowerCase();return!de&&!a&&HO.includes(pe)?(o=1,l.interrupt?t(U):q(U)):vte.includes(i.toLowerCase())?(o=6,de?(e.consume(U),L):l.interrupt?t(U):q(U)):(o=7,l.interrupt&&!l.parser.lazy[l.now().line]?n(U):a?S(U):_(U))}return U===45||e4(U)?(e.consume(U),i+=String.fromCharCode(U),b):n(U)}function L(U){return U===62?(e.consume(U),l.interrupt?t:q):n(U)}function S(U){return u1(U)?(e.consume(U),S):R(U)}function _(U){return U===47?(e.consume(U),R):U===58||U===95||_4(U)?(e.consume(U),O):u1(U)?(e.consume(U),_):R(U)}function O(U){return U===45||U===46||U===58||U===95||e4(U)?(e.consume(U),O):E(U)}function E(U){return U===61?(e.consume(U),A):u1(U)?(e.consume(U),E):_(U)}function A(U){return U===null||U===60||U===61||U===62||U===96?n(U):U===34||U===39?(e.consume(U),T=U,V):u1(U)?(e.consume(U),A):k(U)}function V(U){return U===T?(e.consume(U),T=null,B):U===null||vt(U)?n(U):(e.consume(U),V)}function k(U){return U===null||U===34||U===39||U===47||U===60||U===61||U===62||U===96||K1(U)?E(U):(e.consume(U),k)}function B(U){return U===47||U===62||u1(U)?_(U):n(U)}function R(U){return U===62?(e.consume(U),F):n(U)}function F(U){return U===null||vt(U)?q(U):u1(U)?(e.consume(U),F):n(U)}function q(U){return U===45&&o===2?(e.consume(U),W):U===60&&o===1?(e.consume(U),ne):U===62&&o===4?(e.consume(U),z):U===63&&o===3?(e.consume(U),j):U===93&&o===5?(e.consume(U),Y):vt(U)&&(o===6||o===7)?(e.exit("htmlFlowData"),e.check(xte,ee,$)(U)):U===null||vt(U)?(e.exit("htmlFlowData"),$(U)):(e.consume(U),q)}function $(U){return e.check(bte,Z,ee)(U)}function Z(U){return e.enter("lineEnding"),e.consume(U),e.exit("lineEnding"),J}function J(U){return U===null||vt(U)?$(U):(e.enter("htmlFlowData"),q(U))}function W(U){return U===45?(e.consume(U),j):q(U)}function ne(U){return U===47?(e.consume(U),i="",K):q(U)}function K(U){if(U===62){const de=i.toLowerCase();return HO.includes(de)?(e.consume(U),z):q(U)}return _4(U)&&i.length<8?(e.consume(U),i+=String.fromCharCode(U),K):q(U)}function Y(U){return U===93?(e.consume(U),j):q(U)}function j(U){return U===62?(e.consume(U),z):U===45&&o===2?(e.consume(U),j):q(U)}function z(U){return U===null||vt(U)?(e.exit("htmlFlowData"),ee(U)):(e.consume(U),z)}function ee(U){return e.exit("htmlFlow"),t(U)}}function Ste(e,t,n){const l=this;return o;function o(i){return vt(i)?(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),a):n(i)}function a(i){return l.parser.lazy[l.now().line]?n(i):t(i)}}function Mte(e,t,n){return l;function l(o){return e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),e.attempt(CT,t,n)}}const Ate={name:"htmlText",tokenize:_te};function _te(e,t,n){const l=this;let o,a,i;return s;function s(j){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(j),T}function T(j){return j===33?(e.consume(j),u):j===47?(e.consume(j),E):j===63?(e.consume(j),_):_4(j)?(e.consume(j),k):n(j)}function u(j){return j===45?(e.consume(j),Q):j===91?(e.consume(j),a=0,g):_4(j)?(e.consume(j),S):n(j)}function Q(j){return j===45?(e.consume(j),p):n(j)}function f(j){return j===null?n(j):j===45?(e.consume(j),h):vt(j)?(i=f,ne(j)):(e.consume(j),f)}function h(j){return j===45?(e.consume(j),p):f(j)}function p(j){return j===62?W(j):j===45?h(j):f(j)}function g(j){const z="CDATA[";return j===z.charCodeAt(a++)?(e.consume(j),a===z.length?v:g):n(j)}function v(j){return j===null?n(j):j===93?(e.consume(j),b):vt(j)?(i=v,ne(j)):(e.consume(j),v)}function b(j){return j===93?(e.consume(j),L):v(j)}function L(j){return j===62?W(j):j===93?(e.consume(j),L):v(j)}function S(j){return j===null||j===62?W(j):vt(j)?(i=S,ne(j)):(e.consume(j),S)}function _(j){return j===null?n(j):j===63?(e.consume(j),O):vt(j)?(i=_,ne(j)):(e.consume(j),_)}function O(j){return j===62?W(j):_(j)}function E(j){return _4(j)?(e.consume(j),A):n(j)}function A(j){return j===45||e4(j)?(e.consume(j),A):V(j)}function V(j){return vt(j)?(i=V,ne(j)):u1(j)?(e.consume(j),V):W(j)}function k(j){return j===45||e4(j)?(e.consume(j),k):j===47||j===62||K1(j)?B(j):n(j)}function B(j){return j===47?(e.consume(j),W):j===58||j===95||_4(j)?(e.consume(j),R):vt(j)?(i=B,ne(j)):u1(j)?(e.consume(j),B):W(j)}function R(j){return j===45||j===46||j===58||j===95||e4(j)?(e.consume(j),R):F(j)}function F(j){return j===61?(e.consume(j),q):vt(j)?(i=F,ne(j)):u1(j)?(e.consume(j),F):B(j)}function q(j){return j===null||j===60||j===61||j===62||j===96?n(j):j===34||j===39?(e.consume(j),o=j,$):vt(j)?(i=q,ne(j)):u1(j)?(e.consume(j),q):(e.consume(j),Z)}function $(j){return j===o?(e.consume(j),o=void 0,J):j===null?n(j):vt(j)?(i=$,ne(j)):(e.consume(j),$)}function Z(j){return j===null||j===34||j===39||j===60||j===61||j===96?n(j):j===47||j===62||K1(j)?B(j):(e.consume(j),Z)}function J(j){return j===47||j===62||K1(j)?B(j):n(j)}function W(j){return j===62?(e.consume(j),e.exit("htmlTextData"),e.exit("htmlText"),t):n(j)}function ne(j){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(j),e.exit("lineEnding"),K}function K(j){return u1(j)?a1(e,Y,"linePrefix",l.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(j):Y(j)}function Y(j){return e.enter("htmlTextData"),i(j)}}const mx={name:"labelEnd",resolveAll:Vte,resolveTo:Dte,tokenize:Rte},Ote={tokenize:kte},Cte={tokenize:Nte},wte={tokenize:Bte};function Vte(e){let t=-1;const n=[];for(;++t<e.length;){const l=e[t][1];if(n.push(e[t]),l.type==="labelImage"||l.type==="labelLink"||l.type==="labelEnd"){const o=l.type==="labelImage"?4:2;l.type="data",t+=o}}return e.length!==n.length&&Hn(e,0,e.length,n),e}function Dte(e,t){let n=e.length,l=0,o,a,i,s;for(;n--;)if(o=e[n][1],a){if(o.type==="link"||o.type==="labelLink"&&o._inactive)break;e[n][0]==="enter"&&o.type==="labelLink"&&(o._inactive=!0)}else if(i){if(e[n][0]==="enter"&&(o.type==="labelImage"||o.type==="labelLink")&&!o._balanced&&(a=n,o.type!=="labelLink")){l=2;break}}else o.type==="labelEnd"&&(i=n);const T={type:e[a][1].type==="labelLink"?"link":"image",start:{...e[a][1].start},end:{...e[e.length-1][1].end}},u={type:"label",start:{...e[a][1].start},end:{...e[i][1].end}},Q={type:"labelText",start:{...e[a+l+2][1].end},end:{...e[i-2][1].start}};return s=[["enter",T,t],["enter",u,t]],s=A6(s,e.slice(a+1,a+l+3)),s=A6(s,[["enter",Q,t]]),s=A6(s,ry(t.parser.constructs.insideSpan.null,e.slice(a+l+4,i-3),t)),s=A6(s,[["exit",Q,t],e[i-2],e[i-1],["exit",u,t]]),s=A6(s,e.slice(i+1)),s=A6(s,[["exit",T,t]]),Hn(e,a,e.length,s),e}function Rte(e,t,n){const l=this;let o=l.events.length,a,i;for(;o--;)if((l.events[o][1].type==="labelImage"||l.events[o][1].type==="labelLink")&&!l.events[o][1]._balanced){a=l.events[o][1];break}return s;function s(h){return a?a._inactive?f(h):(i=l.parser.defined.includes(Q5(l.sliceSerialize({start:a.end,end:l.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(h),e.exit("labelMarker"),e.exit("labelEnd"),T):n(h)}function T(h){return h===40?e.attempt(Ote,Q,i?Q:f)(h):h===91?e.attempt(Cte,Q,i?u:f)(h):i?Q(h):f(h)}function u(h){return e.attempt(wte,Q,f)(h)}function Q(h){return t(h)}function f(h){return a._balanced=!0,n(h)}}function kte(e,t,n){return l;function l(f){return e.enter("resource"),e.enter("resourceMarker"),e.consume(f),e.exit("resourceMarker"),o}function o(f){return K1(f)?VT(e,a)(f):a(f)}function a(f){return f===41?Q(f):LO(e,i,s,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(f)}function i(f){return K1(f)?VT(e,T)(f):Q(f)}function s(f){return n(f)}function T(f){return f===34||f===39||f===40?bO(e,u,n,"resourceTitle","resourceTitleMarker","resourceTitleString")(f):Q(f)}function u(f){return K1(f)?VT(e,Q)(f):Q(f)}function Q(f){return f===41?(e.enter("resourceMarker"),e.consume(f),e.exit("resourceMarker"),e.exit("resource"),t):n(f)}}function Nte(e,t,n){const l=this;return o;function o(s){return xO.call(l,e,a,i,"reference","referenceMarker","referenceString")(s)}function a(s){return l.parser.defined.includes(Q5(l.sliceSerialize(l.events[l.events.length-1][1]).slice(1,-1)))?t(s):n(s)}function i(s){return n(s)}}function Bte(e,t,n){return l;function l(a){return e.enter("reference"),e.enter("referenceMarker"),e.consume(a),e.exit("referenceMarker"),o}function o(a){return a===93?(e.enter("referenceMarker"),e.consume(a),e.exit("referenceMarker"),e.exit("reference"),t):n(a)}}const Pte={name:"labelStartImage",resolveAll:mx.resolveAll,tokenize:jte};function jte(e,t,n){const l=this;return o;function o(s){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(s),e.exit("labelImageMarker"),a}function a(s){return s===91?(e.enter("labelMarker"),e.consume(s),e.exit("labelMarker"),e.exit("labelImage"),i):n(s)}function i(s){return s===94&&"_hiddenFootnoteSupport"in l.parser.constructs?n(s):t(s)}}const Ite={name:"labelStartLink",resolveAll:mx.resolveAll,tokenize:Fte};function Fte(e,t,n){const l=this;return o;function o(i){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(i),e.exit("labelMarker"),e.exit("labelLink"),a}function a(i){return i===94&&"_hiddenFootnoteSupport"in l.parser.constructs?n(i):t(i)}}const yx={name:"lineEnding",tokenize:zte};function zte(e,t){return n;function n(l){return e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),a1(e,t,"linePrefix")}}const iy={name:"thematicBreak",tokenize:qte};function qte(e,t,n){let l=0,o;return a;function a(u){return e.enter("thematicBreak"),i(u)}function i(u){return o=u,s(u)}function s(u){return u===o?(e.enter("thematicBreakSequence"),T(u)):l>=3&&(u===null||vt(u))?(e.exit("thematicBreak"),t(u)):n(u)}function T(u){return u===o?(e.consume(u),l++,T):(e.exit("thematicBreakSequence"),u1(u)?a1(e,s,"whitespace")(u):s(u))}}const en={continuation:{tokenize:Zte},exit:Wte,name:"list",tokenize:Gte},$te={partial:!0,tokenize:Yte},Ute={partial:!0,tokenize:Xte};function Gte(e,t,n){const l=this,o=l.events[l.events.length-1];let a=o&&o[1].type==="linePrefix"?o[2].sliceSerialize(o[1],!0).length:0,i=0;return s;function s(p){const g=l.containerState.type||(p===42||p===43||p===45?"listUnordered":"listOrdered");if(g==="listUnordered"?!l.containerState.marker||p===l.containerState.marker:dx(p)){if(l.containerState.type||(l.containerState.type=g,e.enter(g,{_container:!0})),g==="listUnordered")return e.enter("listItemPrefix"),p===42||p===45?e.check(iy,n,u)(p):u(p);if(!l.interrupt||p===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),T(p)}return n(p)}function T(p){return dx(p)&&++i<10?(e.consume(p),T):(!l.interrupt||i<2)&&(l.containerState.marker?p===l.containerState.marker:p===41||p===46)?(e.exit("listItemValue"),u(p)):n(p)}function u(p){return e.enter("listItemMarker"),e.consume(p),e.exit("listItemMarker"),l.containerState.marker=l.containerState.marker||p,e.check(CT,l.interrupt?n:Q,e.attempt($te,h,f))}function Q(p){return l.containerState.initialBlankLine=!0,a++,h(p)}function f(p){return u1(p)?(e.enter("listItemPrefixWhitespace"),e.consume(p),e.exit("listItemPrefixWhitespace"),h):n(p)}function h(p){return l.containerState.size=a+l.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(p)}}function Zte(e,t,n){const l=this;return l.containerState._closeFlow=void 0,e.check(CT,o,a);function o(s){return l.containerState.furtherBlankLines=l.containerState.furtherBlankLines||l.containerState.initialBlankLine,a1(e,t,"listItemIndent",l.containerState.size+1)(s)}function a(s){return l.containerState.furtherBlankLines||!u1(s)?(l.containerState.furtherBlankLines=void 0,l.containerState.initialBlankLine=void 0,i(s)):(l.containerState.furtherBlankLines=void 0,l.containerState.initialBlankLine=void 0,e.attempt(Ute,t,i)(s))}function i(s){return l.containerState._closeFlow=!0,l.interrupt=void 0,a1(e,e.attempt(en,t,n),"linePrefix",l.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(s)}}function Xte(e,t,n){const l=this;return a1(e,o,"listItemIndent",l.containerState.size+1);function o(a){const i=l.events[l.events.length-1];return i&&i[1].type==="listItemIndent"&&i[2].sliceSerialize(i[1],!0).length===l.containerState.size?t(a):n(a)}}function Wte(e){e.exit(this.containerState.type)}function Yte(e,t,n){const l=this;return a1(e,o,"listItemPrefixWhitespace",l.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function o(a){const i=l.events[l.events.length-1];return!u1(a)&&i&&i[1].type==="listItemPrefixWhitespace"?t(a):n(a)}}const EO={name:"setextUnderline",resolveTo:Kte,tokenize:Jte};function Kte(e,t){let n=e.length,l,o,a;for(;n--;)if(e[n][0]==="enter"){if(e[n][1].type==="content"){l=n;break}e[n][1].type==="paragraph"&&(o=n)}else e[n][1].type==="content"&&e.splice(n,1),!a&&e[n][1].type==="definition"&&(a=n);const i={type:"setextHeading",start:{...e[l][1].start},end:{...e[e.length-1][1].end}};return e[o][1].type="setextHeadingText",a?(e.splice(o,0,["enter",i,t]),e.splice(a+1,0,["exit",e[l][1],t]),e[l][1].end={...e[a][1].end}):e[l][1]=i,e.push(["exit",i,t]),e}function Jte(e,t,n){const l=this;let o;return a;function a(u){let Q=l.events.length,f;for(;Q--;)if(l.events[Q][1].type!=="lineEnding"&&l.events[Q][1].type!=="linePrefix"&&l.events[Q][1].type!=="content"){f=l.events[Q][1].type==="paragraph";break}return!l.parser.lazy[l.now().line]&&(l.interrupt||f)?(e.enter("setextHeadingLine"),o=u,i(u)):n(u)}function i(u){return e.enter("setextHeadingLineSequence"),s(u)}function s(u){return u===o?(e.consume(u),s):(e.exit("setextHeadingLineSequence"),u1(u)?a1(e,T,"lineSuffix")(u):T(u))}function T(u){return u===null||vt(u)?(e.exit("setextHeadingLine"),t(u)):n(u)}}const e1e={tokenize:t1e};function t1e(e){const t=this,n=e.attempt(CT,l,e.attempt(this.parser.constructs.flowInitial,o,a1(e,e.attempt(this.parser.constructs.flow,o,e.attempt(ote,o)),"linePrefix")));return n;function l(a){if(a===null){e.consume(a);return}return e.enter("lineEndingBlank"),e.consume(a),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n}function o(a){if(a===null){e.consume(a);return}return e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),t.currentConstruct=void 0,n}}const n1e={resolveAll:MO()},r1e=SO("string"),i1e=SO("text");function SO(e){return{resolveAll:MO(e==="text"?a1e:void 0),tokenize:t};function t(n){const l=this,o=this.parser.constructs[e],a=n.attempt(o,i,s);return i;function i(Q){return u(Q)?a(Q):s(Q)}function s(Q){if(Q===null){n.consume(Q);return}return n.enter("data"),n.consume(Q),T}function T(Q){return u(Q)?(n.exit("data"),a(Q)):(n.consume(Q),T)}function u(Q){if(Q===null)return!0;const f=o[Q];let h=-1;if(f)for(;++h<f.length;){const p=f[h];if(!p.previous||p.previous.call(l,l.previous))return!0}return!1}}}function MO(e){return t;function t(n,l){let o=-1,a;for(;++o<=n.length;)a===void 0?n[o]&&n[o][1].type==="data"&&(a=o,o++):(!n[o]||n[o][1].type!=="data")&&(o!==a+2&&(n[a][1].end=n[o-1][1].end,n.splice(a+2,o-a-2),o=a+2),a=void 0);return e?e(n,l):n}}function a1e(e,t){let n=0;for(;++n<=e.length;)if((n===e.length||e[n][1].type==="lineEnding")&&e[n-1][1].type==="data"){const l=e[n-1][1],o=t.sliceStream(l);let a=o.length,i=-1,s=0,T;for(;a--;){const u=o[a];if(typeof u=="string"){for(i=u.length;u.charCodeAt(i-1)===32;)s++,i--;if(i)break;i=-1}else if(u===-2)T=!0,s++;else if(u!==-1){a++;break}}if(t._contentTypeTextTrailing&&n===e.length&&(s=0),s){const u={type:n===e.length||T||s<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:a?i:l.start._bufferIndex+i,_index:l.start._index+a,line:l.end.line,column:l.end.column-s,offset:l.end.offset-s},end:{...l.end}};l.end={...u.start},l.start.offset===l.end.offset?Object.assign(l,u):(e.splice(n,0,["enter",u,t],["exit",u,t]),n+=2)}n++}return e}const o1e=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:{null:[42,95]},contentInitial:{91:Tte},disable:{null:[]},document:{42:en,43:en,45:en,48:en,49:en,50:en,51:en,52:en,53:en,54:en,55:en,56:en,57:en,62:hO},flow:{35:mte,42:iy,45:[EO,iy],60:Lte,61:EO,95:iy,96:gO,126:gO},flowInitial:{[-2]:px,[-1]:px,32:px},insideSpan:{null:[hx,n1e]},string:{38:mO,92:pO},text:{[-5]:yx,[-4]:yx,[-3]:yx,33:Pte,38:mO,42:hx,60:[Iee,Ate],91:Ite,92:[hte,pO],93:mx,95:hx,96:ete}},Symbol.toStringTag,{value:"Module"}));function l1e(e,t,n){let l={_bufferIndex:-1,_index:0,line:n&&n.line||1,column:n&&n.column||1,offset:n&&n.offset||0};const o={},a=[];let i=[],s=[];const T={attempt:V(E),check:V(A),consume:S,enter:_,exit:O,interrupt:V(A,{interrupt:!0})},u={code:null,containerState:{},defineSkip:v,events:[],now:g,parser:e,previous:null,sliceSerialize:h,sliceStream:p,write:f};let Q=t.tokenize.call(u,T);return t.resolveAll&&a.push(t),u;function f(F){return i=A6(i,F),b(),i[i.length-1]!==null?[]:(k(t,0),u.events=ry(a,u.events,u),u.events)}function h(F,q){return u1e(p(F),q)}function p(F){return s1e(i,F)}function g(){const{_bufferIndex:F,_index:q,line:$,column:Z,offset:J}=l;return{_bufferIndex:F,_index:q,line:$,column:Z,offset:J}}function v(F){o[F.line]=F.column,R()}function b(){let F;for(;l._index<i.length;){const q=i[l._index];if(typeof q=="string")for(F=l._index,l._bufferIndex<0&&(l._bufferIndex=0);l._index===F&&l._bufferIndex<q.length;)L(q.charCodeAt(l._bufferIndex));else L(q)}}function L(F){Q=Q(F)}function S(F){vt(F)?(l.line++,l.column=1,l.offset+=F===-3?2:1,R()):F!==-1&&(l.column++,l.offset++),l._bufferIndex<0?l._index++:(l._bufferIndex++,l._bufferIndex===i[l._index].length&&(l._bufferIndex=-1,l._index++)),u.previous=F}function _(F,q){const $=q||{};return $.type=F,$.start=g(),u.events.push(["enter",$,u]),s.push($),$}function O(F){const q=s.pop();return q.end=g(),u.events.push(["exit",q,u]),q}function E(F,q){k(F,q.from)}function A(F,q){q.restore()}function V(F,q){return $;function $(Z,J,W){let ne,K,Y,j;return Array.isArray(Z)?ee(Z):"tokenize"in Z?ee([Z]):z(Z);function z(he){return se;function se(fe){const Se=fe!==null&&he[fe],Ee=fe!==null&&he.null,_e=[...Array.isArray(Se)?Se:Se?[Se]:[],...Array.isArray(Ee)?Ee:Ee?[Ee]:[]];return ee(_e)(fe)}}function ee(he){return ne=he,K=0,he.length===0?W:U(he[K])}function U(he){return se;function se(fe){return j=B(),Y=he,he.partial||(u.currentConstruct=he),he.name&&u.parser.constructs.disable.null.includes(he.name)?pe():he.tokenize.call(q?Object.assign(Object.create(u),q):u,T,de,pe)(fe)}}function de(he){return F(Y,j),J}function pe(he){return j.restore(),++K<ne.length?U(ne[K]):W}}}function k(F,q){F.resolveAll&&!a.includes(F)&&a.push(F),F.resolve&&Hn(u.events,q,u.events.length-q,F.resolve(u.events.slice(q),u)),F.resolveTo&&(u.events=F.resolveTo(u.events,u))}function B(){const F=g(),q=u.previous,$=u.currentConstruct,Z=u.events.length,J=Array.from(s);return{from:Z,restore:W};function W(){l=F,u.previous=q,u.currentConstruct=$,u.events.length=Z,s=J,R()}}function R(){l.line in o&&l.column<2&&(l.column=o[l.line],l.offset+=o[l.line]-1)}}function s1e(e,t){const n=t.start._index,l=t.start._bufferIndex,o=t.end._index,a=t.end._bufferIndex;let i;if(n===o)i=[e[n].slice(l,a)];else{if(i=e.slice(n,o),l>-1){const s=i[0];typeof s=="string"?i[0]=s.slice(l):i.shift()}a>0&&i.push(e[o].slice(0,a))}return i}function u1e(e,t){let n=-1;const l=[];let o;for(;++n<e.length;){const a=e[n];let i;if(typeof a=="string")i=a;else switch(a){case-5:{i="\r";break}case-4:{i=`
|
|
336
336
|
`;break}case-3:{i=`\r
|
|
337
337
|
`;break}case-2:{i=t?" ":" ";break}case-1:{if(!t&&o)continue;i=" ";break}default:i=String.fromCharCode(a)}o=a===-2,l.push(i)}return l.join("")}function c1e(e){const l={constructs:TO([o1e,...(e||{}).extensions||[]]),content:o(Dee),defined:[],document:o(kee),flow:o(e1e),lazy:{},string:o(r1e),text:o(i1e)};return l;function o(a){return i;function i(s){return l1e(l,a,s)}}}function T1e(e){for(;!vO(e););return e}const AO=/[\0\t\n\r]/g;function Q1e(){let e=1,t="",n=!0,l;return o;function o(a,i,s){const T=[];let u,Q,f,h,p;for(a=t+(typeof a=="string"?a.toString():new TextDecoder(i||void 0).decode(a)),f=0,t="",n&&(a.charCodeAt(0)===65279&&f++,n=void 0);f<a.length;){if(AO.lastIndex=f,u=AO.exec(a),h=u&&u.index!==void 0?u.index:a.length,p=a.charCodeAt(h),!u){t=a.slice(f);break}if(p===10&&f===h&&l)T.push(-3),l=void 0;else switch(l&&(T.push(-5),l=void 0),f<h&&(T.push(a.slice(f,h)),e+=h-f),p){case 0:{T.push(65533),e++;break}case 9:{for(Q=Math.ceil(e/4)*4,T.push(-2);e++<Q;)T.push(-1);break}case 10:{T.push(-4),e=1;break}default:l=!0,e=1}f=h+1}return s&&(l&&T.push(-5),t&&T.push(t),T.push(null)),T}}const f1e=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function d1e(e){return e.replace(f1e,h1e)}function h1e(e,t,n){if(t)return t;if(n.charCodeAt(0)===35){const o=n.charCodeAt(1),a=o===120||o===88;return QO(n.slice(a?2:1),a?16:10)}return fx(n)||e}const _O={}.hasOwnProperty;function p1e(e,t,n){return typeof t!="string"&&(n=t,t=void 0),m1e(n)(T1e(c1e(n).document().write(Q1e()(e,t,!0))))}function m1e(e){const t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:a(zt),autolinkProtocol:B,autolinkEmail:B,atxHeading:a(Xe),blockQuote:a(Ee),characterEscape:B,characterReference:B,codeFenced:a(_e),codeFencedFenceInfo:i,codeFencedFenceMeta:i,codeIndented:a(_e,i),codeText:a(ze,i),codeTextData:B,data:B,codeFlowValue:B,definition:a(ue),definitionDestinationString:i,definitionLabelString:i,definitionTitleString:i,emphasis:a(Pe),hardBreakEscape:a(ht),hardBreakTrailing:a(ht),htmlFlow:a(ot,i),htmlFlowData:B,htmlText:a(ot,i),htmlTextData:B,image:a(mt),label:i,link:a(zt),listItem:a(st),listItemValue:h,listOrdered:a(p1,f),listUnordered:a(p1),paragraph:a(ct),reference:U,referenceString:i,resourceDestinationString:i,resourceTitleString:i,setextHeading:a(Xe),strong:a(e2),thematicBreak:a(Ge)},exit:{atxHeading:T(),atxHeadingSequence:E,autolink:T(),autolinkEmail:Se,autolinkProtocol:fe,blockQuote:T(),characterEscapeValue:R,characterReferenceMarkerHexadecimal:pe,characterReferenceMarkerNumeric:pe,characterReferenceValue:he,characterReference:se,codeFenced:T(b),codeFencedFence:v,codeFencedFenceInfo:p,codeFencedFenceMeta:g,codeFlowValue:R,codeIndented:T(L),codeText:T(J),codeTextData:R,data:R,definition:T(),definitionDestinationString:O,definitionLabelString:S,definitionTitleString:_,emphasis:T(),hardBreakEscape:T(q),hardBreakTrailing:T(q),htmlFlow:T($),htmlFlowData:R,htmlText:T(Z),htmlTextData:R,image:T(ne),label:Y,labelText:K,lineEnding:F,link:T(W),listItem:T(),listOrdered:T(),listUnordered:T(),paragraph:T(),referenceString:de,resourceDestinationString:j,resourceTitleString:z,resource:ee,setextHeading:T(k),setextHeadingLineSequence:V,setextHeadingText:A,strong:T(),thematicBreak:T()}};OO(t,(e||{}).mdastExtensions||[]);const n={};return l;function l(me){let De={type:"root",children:[]};const Ye={stack:[De],tokenStack:[],config:t,enter:s,exit:u,buffer:i,resume:Q,data:n},et=[];let tt=-1;for(;++tt<me.length;)if(me[tt][1].type==="listOrdered"||me[tt][1].type==="listUnordered")if(me[tt][0]==="enter")et.push(tt);else{const Tt=et.pop();tt=o(me,Tt,tt)}for(tt=-1;++tt<me.length;){const Tt=t[me[tt][0]];_O.call(Tt,me[tt][1].type)&&Tt[me[tt][1].type].call(Object.assign({sliceSerialize:me[tt][2].sliceSerialize},Ye),me[tt][1])}if(Ye.tokenStack.length>0){const Tt=Ye.tokenStack[Ye.tokenStack.length-1];(Tt[1]||CO).call(Ye,void 0,Tt[0])}for(De.position={start:Xa(me.length>0?me[0][1].start:{line:1,column:1,offset:0}),end:Xa(me.length>0?me[me.length-2][1].end:{line:1,column:1,offset:0})},tt=-1;++tt<t.transforms.length;)De=t.transforms[tt](De)||De;return De}function o(me,De,Ye){let et=De-1,tt=-1,Tt=!1,o1,Ct,d1,m1;for(;++et<=Ye;){const it=me[et];switch(it[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{it[0]==="enter"?tt++:tt--,m1=void 0;break}case"lineEndingBlank":{it[0]==="enter"&&(o1&&!m1&&!tt&&!d1&&(d1=et),m1=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:m1=void 0}if(!tt&&it[0]==="enter"&&it[1].type==="listItemPrefix"||tt===-1&&it[0]==="exit"&&(it[1].type==="listUnordered"||it[1].type==="listOrdered")){if(o1){let xt=et;for(Ct=void 0;xt--;){const te=me[xt];if(te[1].type==="lineEnding"||te[1].type==="lineEndingBlank"){if(te[0]==="exit")continue;Ct&&(me[Ct][1].type="lineEndingBlank",Tt=!0),te[1].type="lineEnding",Ct=xt}else if(!(te[1].type==="linePrefix"||te[1].type==="blockQuotePrefix"||te[1].type==="blockQuotePrefixWhitespace"||te[1].type==="blockQuoteMarker"||te[1].type==="listItemIndent"))break}d1&&(!Ct||d1<Ct)&&(o1._spread=!0),o1.end=Object.assign({},Ct?me[Ct][1].start:it[1].end),me.splice(Ct||et,0,["exit",o1,it[2]]),et++,Ye++}if(it[1].type==="listItemPrefix"){const xt={type:"listItem",_spread:!1,start:Object.assign({},it[1].start),end:void 0};o1=xt,me.splice(et,0,["enter",xt,it[2]]),et++,Ye++,d1=void 0,m1=!0}}}return me[De][1]._spread=Tt,Ye}function a(me,De){return Ye;function Ye(et){s.call(this,me(et),et),De&&De.call(this,et)}}function i(){this.stack.push({type:"fragment",children:[]})}function s(me,De,Ye){this.stack[this.stack.length-1].children.push(me),this.stack.push(me),this.tokenStack.push([De,Ye||void 0]),me.position={start:Xa(De.start),end:void 0}}function T(me){return De;function De(Ye){me&&me.call(this,Ye),u.call(this,Ye)}}function u(me,De){const Ye=this.stack.pop(),et=this.tokenStack.pop();if(et)et[0].type!==me.type&&(De?De.call(this,me,et[0]):(et[1]||CO).call(this,me,et[0]));else throw new Error("Cannot close `"+me.type+"` ("+_T({start:me.start,end:me.end})+"): it’s not open");Ye.position.end=Xa(me.end)}function Q(){return Qx(this.stack.pop())}function f(){this.data.expectingFirstListItemValue=!0}function h(me){if(this.data.expectingFirstListItemValue){const De=this.stack[this.stack.length-2];De.start=Number.parseInt(this.sliceSerialize(me),10),this.data.expectingFirstListItemValue=void 0}}function p(){const me=this.resume(),De=this.stack[this.stack.length-1];De.lang=me}function g(){const me=this.resume(),De=this.stack[this.stack.length-1];De.meta=me}function v(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function b(){const me=this.resume(),De=this.stack[this.stack.length-1];De.value=me.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function L(){const me=this.resume(),De=this.stack[this.stack.length-1];De.value=me.replace(/(\r?\n|\r)$/g,"")}function S(me){const De=this.resume(),Ye=this.stack[this.stack.length-1];Ye.label=De,Ye.identifier=Q5(this.sliceSerialize(me)).toLowerCase()}function _(){const me=this.resume(),De=this.stack[this.stack.length-1];De.title=me}function O(){const me=this.resume(),De=this.stack[this.stack.length-1];De.url=me}function E(me){const De=this.stack[this.stack.length-1];if(!De.depth){const Ye=this.sliceSerialize(me).length;De.depth=Ye}}function A(){this.data.setextHeadingSlurpLineEnding=!0}function V(me){const De=this.stack[this.stack.length-1];De.depth=this.sliceSerialize(me).codePointAt(0)===61?1:2}function k(){this.data.setextHeadingSlurpLineEnding=void 0}function B(me){const Ye=this.stack[this.stack.length-1].children;let et=Ye[Ye.length-1];(!et||et.type!=="text")&&(et=f1(),et.position={start:Xa(me.start),end:void 0},Ye.push(et)),this.stack.push(et)}function R(me){const De=this.stack.pop();De.value+=this.sliceSerialize(me),De.position.end=Xa(me.end)}function F(me){const De=this.stack[this.stack.length-1];if(this.data.atHardBreak){const Ye=De.children[De.children.length-1];Ye.position.end=Xa(me.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(De.type)&&(B.call(this,me),R.call(this,me))}function q(){this.data.atHardBreak=!0}function $(){const me=this.resume(),De=this.stack[this.stack.length-1];De.value=me}function Z(){const me=this.resume(),De=this.stack[this.stack.length-1];De.value=me}function J(){const me=this.resume(),De=this.stack[this.stack.length-1];De.value=me}function W(){const me=this.stack[this.stack.length-1];if(this.data.inReference){const De=this.data.referenceType||"shortcut";me.type+="Reference",me.referenceType=De,delete me.url,delete me.title}else delete me.identifier,delete me.label;this.data.referenceType=void 0}function ne(){const me=this.stack[this.stack.length-1];if(this.data.inReference){const De=this.data.referenceType||"shortcut";me.type+="Reference",me.referenceType=De,delete me.url,delete me.title}else delete me.identifier,delete me.label;this.data.referenceType=void 0}function K(me){const De=this.sliceSerialize(me),Ye=this.stack[this.stack.length-2];Ye.label=d1e(De),Ye.identifier=Q5(De).toLowerCase()}function Y(){const me=this.stack[this.stack.length-1],De=this.resume(),Ye=this.stack[this.stack.length-1];if(this.data.inReference=!0,Ye.type==="link"){const et=me.children;Ye.children=et}else Ye.alt=De}function j(){const me=this.resume(),De=this.stack[this.stack.length-1];De.url=me}function z(){const me=this.resume(),De=this.stack[this.stack.length-1];De.title=me}function ee(){this.data.inReference=void 0}function U(){this.data.referenceType="collapsed"}function de(me){const De=this.resume(),Ye=this.stack[this.stack.length-1];Ye.label=De,Ye.identifier=Q5(this.sliceSerialize(me)).toLowerCase(),this.data.referenceType="full"}function pe(me){this.data.characterReferenceType=me.type}function he(me){const De=this.sliceSerialize(me),Ye=this.data.characterReferenceType;let et;Ye?(et=QO(De,Ye==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):et=fx(De);const tt=this.stack[this.stack.length-1];tt.value+=et}function se(me){const De=this.stack.pop();De.position.end=Xa(me.end)}function fe(me){R.call(this,me);const De=this.stack[this.stack.length-1];De.url=this.sliceSerialize(me)}function Se(me){R.call(this,me);const De=this.stack[this.stack.length-1];De.url="mailto:"+this.sliceSerialize(me)}function Ee(){return{type:"blockquote",children:[]}}function _e(){return{type:"code",lang:null,meta:null,value:""}}function ze(){return{type:"inlineCode",value:""}}function ue(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function Pe(){return{type:"emphasis",children:[]}}function Xe(){return{type:"heading",depth:0,children:[]}}function ht(){return{type:"break"}}function ot(){return{type:"html",value:""}}function mt(){return{type:"image",title:null,url:"",alt:null}}function zt(){return{type:"link",title:null,url:"",children:[]}}function p1(me){return{type:"list",ordered:me.type==="listOrdered",start:null,spread:me._spread,children:[]}}function st(me){return{type:"listItem",spread:me._spread,checked:null,children:[]}}function ct(){return{type:"paragraph",children:[]}}function e2(){return{type:"strong",children:[]}}function f1(){return{type:"text",value:""}}function Ge(){return{type:"thematicBreak"}}}function Xa(e){return{line:e.line,column:e.column,offset:e.offset}}function OO(e,t){let n=-1;for(;++n<t.length;){const l=t[n];Array.isArray(l)?OO(e,l):y1e(e,l)}}function y1e(e,t){let n;for(n in t)if(_O.call(t,n))switch(n){case"canContainEols":{const l=t[n];l&&e[n].push(...l);break}case"transforms":{const l=t[n];l&&e[n].push(...l);break}case"enter":case"exit":{const l=t[n];l&&Object.assign(e[n],l);break}}}function CO(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+_T({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+_T({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+_T({start:t.start,end:t.end})+") is still open")}function g1e(e){const t=this;t.parser=n;function n(l){return p1e(l,{...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})}}function v1e(e,t){const n={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(t),!0)};return e.patch(t,n),e.applyData(t,n)}function L1e(e,t){const n={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,n),[e.applyData(t,n),{type:"text",value:`
|
|
@@ -410,7 +410,7 @@ See https://react.dev/link/invalid-hook-call for tips about how to debug and fix
|
|
|
410
410
|
`,inConstruct:"mathFlowMeta"},{character:"$",after:t?void 0:"\\$",inConstruct:"phrasing"},{character:"$",inConstruct:"mathFlowMeta"},{atBreak:!0,character:"$",after:"\\$"}],handlers:{math:n,inlineMath:l}};function n(a,i,s,T){const u=a.value||"",Q=s.createTracker(T),f="$".repeat(Math.max(DN(u,"$")+1,2)),h=s.enter("mathFlow");let p=Q.move(f);if(a.meta){const g=s.enter("mathFlowMeta");p+=Q.move(s.safe(a.meta,{after:`
|
|
411
411
|
`,before:p,encode:["$"],...Q.current()})),g()}return p+=Q.move(`
|
|
412
412
|
`),u&&(p+=Q.move(u+`
|
|
413
|
-
`)),p+=Q.move(f),h(),p}function l(a,i,s){let T=a.value||"",u=1;for(t||u++;new RegExp("(^|[^$])"+"\\$".repeat(u)+"([^$]|$)").test(T);)u++;const Q="$".repeat(u);/[^ \r\n]/.test(T)&&(/^[ \r\n]/.test(T)&&/[ \r\n]$/.test(T)||/^\$|\$$/.test(T))&&(T=" "+T+" ");let f=-1;for(;++f<s.unsafe.length;){const h=s.unsafe[f];if(!h.atBreak)continue;const p=s.compilePattern(h);let g;for(;g=p.exec(T);){let v=g.index;T.codePointAt(v)===10&&T.codePointAt(v-1)===13&&v--,T=T.slice(0,v)+" "+T.slice(g.index+1)}}return Q+T+Q}function o(){return"$"}}const v0e={tokenize:L0e,concrete:!0,name:"mathFlow"},rB={tokenize:x0e,partial:!0};function L0e(e,t,n){const l=this,o=l.events[l.events.length-1],a=o&&o[1].type==="linePrefix"?o[2].sliceSerialize(o[1],!0).length:0;let i=0;return s;function s(S){return e.enter("mathFlow"),e.enter("mathFlowFence"),e.enter("mathFlowFenceSequence"),T(S)}function T(S){return S===36?(e.consume(S),i++,T):i<2?n(S):(e.exit("mathFlowFenceSequence"),a1(e,u,"whitespace")(S))}function u(S){return S===null||vt(S)?f(S):(e.enter("mathFlowFenceMeta"),e.enter("chunkString",{contentType:"string"}),Q(S))}function Q(S){return S===null||vt(S)?(e.exit("chunkString"),e.exit("mathFlowFenceMeta"),f(S)):S===36?n(S):(e.consume(S),Q)}function f(S){return e.exit("mathFlowFence"),l.interrupt?t(S):e.attempt(rB,h,b)(S)}function h(S){return e.attempt({tokenize:L,partial:!0},b,p)(S)}function p(S){return(a?a1(e,g,"linePrefix",a+1):g)(S)}function g(S){return S===null?b(S):vt(S)?e.attempt(rB,h,b)(S):(e.enter("mathFlowValue"),v(S))}function v(S){return S===null||vt(S)?(e.exit("mathFlowValue"),g(S)):(e.consume(S),v)}function b(S){return e.exit("mathFlow"),t(S)}function L(S,_,O){let E=0;return a1(S,A,"linePrefix",l.parser.constructs.disable.null.includes("codeIndented")?void 0:4);function A(B){return S.enter("mathFlowFence"),S.enter("mathFlowFenceSequence"),V(B)}function V(B){return B===36?(E++,S.consume(B),V):E<i?O(B):(S.exit("mathFlowFenceSequence"),a1(S,k,"whitespace")(B))}function k(B){return B===null||vt(B)?(S.exit("mathFlowFence"),_(B)):O(B)}}}function x0e(e,t,n){const l=this;return o;function o(i){return i===null?t(i):(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),a)}function a(i){return l.parser.lazy[l.now().line]?n(i):t(i)}}function b0e(e){let n=(e||{}).singleDollarTextMath;return n==null&&(n=!0),{tokenize:l,resolve:H0e,previous:E0e,name:"mathText"};function l(o,a,i){let s=0,T,u;return Q;function Q(v){return o.enter("mathText"),o.enter("mathTextSequence"),f(v)}function f(v){return v===36?(o.consume(v),s++,f):s<2&&!n?i(v):(o.exit("mathTextSequence"),h(v))}function h(v){return v===null?i(v):v===36?(u=o.enter("mathTextSequence"),T=0,g(v)):v===32?(o.enter("space"),o.consume(v),o.exit("space"),h):vt(v)?(o.enter("lineEnding"),o.consume(v),o.exit("lineEnding"),h):(o.enter("mathTextData"),p(v))}function p(v){return v===null||v===32||v===36||vt(v)?(o.exit("mathTextData"),h(v)):(o.consume(v),p)}function g(v){return v===36?(o.consume(v),T++,g):T===s?(o.exit("mathTextSequence"),o.exit("mathText"),a(v)):(u.type="mathTextData",p(v))}}}function H0e(e){let t=e.length-4,n=3,l,o;if((e[n][1].type==="lineEnding"||e[n][1].type==="space")&&(e[t][1].type==="lineEnding"||e[t][1].type==="space")){for(l=n;++l<t;)if(e[l][1].type==="mathTextData"){e[t][1].type="mathTextPadding",e[n][1].type="mathTextPadding",n+=2,t-=2;break}}for(l=n-1,t++;++l<=t;)o===void 0?l!==t&&e[l][1].type!=="lineEnding"&&(o=l):(l===t||e[l][1].type==="lineEnding")&&(e[o][1].type="mathTextData",l!==o+2&&(e[o][1].end=e[l-1][1].end,e.splice(o+2,l-o-2),t-=l-o-2,l=o+2),o=void 0);return e}function E0e(e){return e!==36||this.events[this.events.length-1][1].type==="characterEscape"}function S0e(e){return{flow:{36:v0e},text:{36:b0e(e)}}}const M0e={};function A0e(e){const t=this,n=e||M0e,l=t.data(),o=l.micromarkExtensions||(l.micromarkExtensions=[]),a=l.fromMarkdownExtensions||(l.fromMarkdownExtensions=[]),i=l.toMarkdownExtensions||(l.toMarkdownExtensions=[]);o.push(S0e(n)),a.push(y0e()),i.push(g0e(n))}const _0e=({text:e,isUser:t})=>{const[n,l]=ae.useState(""),[o,a]=ae.useState(!0),i=ae.useRef(null),s=E7("settings");return ae.useEffect(()=>{if(t){l(e),a(!1);return}let T=0;const Q=setInterval(()=>{T<=e.length?(l(e.slice(0,T)),T++):(a(!1),clearInterval(Q))},5);return()=>clearInterval(Q)},[e,t]),ae.useEffect(()=>{if(!o&&i.current){const T=i.current.textContent||"";i.current.setAttribute("aria-label",`AI message: ${T}`)}},[o]),xe.createElement(Nr,null,xe.createElement("div",{className:`chat-message-content ${t?"user":""}`},xe.createElement(N2e,{rehypePlugins:[J6e,[u5e,{attributes:{"*":["className","aria-label","aria-hidden","role","aria-busy","aria-live","aria-atomic"],a:["href","target"],img:["src","alt"],math:["display"],span:["style"],svg:["aria-hidden","role","xmlns","width","height","viewBox"],path:["d"]},tagNames:["p","br","b","i","em","strong","a","pre","code","ul","ol","li","blockquote","img","math","span","svg","path"]}]],remarkPlugins:[m0e,A0e],components:{pre:({node:T,...u})=>xe.createElement("pre",{...u,role:"text","aria-label":"Code block"}),a:({node:T,...u})=>xe.createElement("a",{...u,"aria-label":`Link: ${u.children}`}),img:({node:T,...u})=>xe.createElement("img",{...u,alt:u.alt||"Image in message"})}},n)),xe.createElement("div",{className:"sr-only","aria-live":s.general.ariaMode,"aria-atomic":"true"},o?"":e),o&&xe.createElement("span",{className:"typing-cursor","aria-hidden":"true",role:"presentation"},"|"))};function vb(e){switch(e){case"OPENAI":return"OpenAI";case"ANTHROPIC_CLAUDE":return"Anthropic Claude";case"GOOGLE_GEMINI":return"Google Gemini";default:return"AI Assistant"}}const O0e=({message:e,disabled:t,_onOpenSettings:n})=>{const l=()=>e.isUser?xe.createElement(oZ,null):xe.createElement(BJ,{model:e.model}),o=()=>{const a=e.isUser?"Your message":"AI Assistant message",i=e.isUser?"":` from ${vb(e.model)}`,s=!e.isUser&&e.status==="PENDING"?" (typing)":"";return`${a}${i}${s}`};return xe.createElement(Nr,{sx:{display:"flex",justifyContent:e.isUser?"flex-end":"flex-start",mb:2},role:"listitem"},xe.createElement(Nr,{sx:{display:"flex",alignItems:"flex-start",gap:1.5,maxWidth:"80%",flexDirection:e.isUser?"row-reverse":"row"}},xe.createElement(MA,{className:`chat-avatar ${e.isUser?"user":""}`,"aria-hidden":"true"},l()),xe.createElement(Nr,{className:`chat-bubble ${e.isUser?"user":"ai"}`,role:"article","aria-label":o()},!e.isUser&&xe.createElement(K3,{className:"model-name",variant:"caption",fontWeight:"medium",color:"text.secondary",component:"h3",sx:{fontSize:"0.8rem",margin:0,marginBottom:.5},"aria-label":`Model: ${vb(e.model)}`},vb(e.model)),xe.createElement(_0e,{text:e.text,isUser:e.isUser}),e.isWelcomeMessage&&e.modelSelections&&xe.createElement(PJ,{enabledModels:e.modelSelections}),xe.createElement(Nr,{sx:{display:"flex",justifyContent:"space-between",alignItems:"center",mt:.5}},t&&e.id.startsWith("system-")&&xe.createElement(zs,{variant:"text",onClick:n,"aria-label":"Open settings",style:{padding:0}},"Open Settings"),xe.createElement(K3,{className:"timestamp",variant:"caption",color:"text.secondary",component:"time",dateTime:new Date(e.timestamp).toISOString(),"aria-label":`Sent at ${new Date(e.timestamp).toLocaleTimeString()}`},new Date(e.timestamp).toLocaleTimeString())),!e.isUser&&e.status==="PENDING"&&xe.createElement(Nr,{role:"status","aria-label":"AI is typing"},xe.createElement(cT,{size:16})))))},iB=ae.memo(({suggestion:e,onClick:t})=>{const n=qa();return xe.createElement(xA,{label:e.text,onClick:t,role:"button","aria-label":`Suggestion: ${e.text}`,sx:{bgcolor:n.palette.primary.main,color:n.palette.primary.contrastText,"&:hover":{bgcolor:n.palette.primary.dark}}})});iB.displayName="SuggestionChip";const aB=ae.memo(({suggestions:e,onSuggestionClick:t})=>{const n=qa();return!e||!e.length?null:xe.createElement(Nr,{role:"region","aria-label":"Suggested responses",sx:{p:2,display:"flex",flexWrap:"wrap",gap:1,borderTop:`1px solid ${n.palette.divider}`,bgcolor:n.palette.background.paper}},e.map(l=>xe.createElement(iB,{key:l.id,suggestion:l,onClick:()=>t(l)})))});aB.displayName="Suggestions";const C0e=()=>{const e=ae.useId(),t=qa(),n=Na("chat"),l=Na("settings"),{messages:o,suggestions:a}=E7("chat"),i=!n.canSend,[s,T]=ae.useState(""),u=ae.useRef(null),Q=()=>{l.toggle()},f=()=>{var b;(b=u.current)==null||b.scrollIntoView({behavior:"smooth"})};ae.useEffect(()=>{f()},[o]);const h=()=>{n.toggle()},p=()=>{s.trim()&&(n.sendMessage(s),T(""))},g=b=>{T(b.text)},v=b=>{b.key==="Enter"&&!b.shiftKey&&(b.preventDefault(),p())};return xe.createElement(Im,{id:e,role:"dialog",open:!0,onClose:h,maxWidth:"md",fullWidth:!0,disablePortal:!0,sx:{"& .MuiDialog-paper":{height:"70vh",maxHeight:"90vh"}}},xe.createElement($L,{component:"h2",sx:{p:2}},xe.createElement(Et,{container:!0,justifyContent:"space-between",alignItems:"center"},xe.createElement(Et,{size:"auto"},xe.createElement(K3,{variant:"h6",fontWeight:"bold",component:"h2",sx:{margin:0},"aria-label":"Chart Assistant - AI Chat Interface"},"Chart Assistant")),xe.createElement(Et,{size:"auto"},xe.createElement(_m,{onClick:h,"aria-label":"Close chat dialog"},xe.createElement(lZ,null))))),xe.createElement(Fm,{dividers:!0,sx:{p:0,overflow:"hidden"}},xe.createElement(Et,{container:!0,direction:"column",sx:{height:"100%"}},xe.createElement(Et,{size:12,component:"section","aria-label":"Chat messages",sx:{flex:1,overflowY:"auto",p:2,bgcolor:t.palette.background.default,"&::-webkit-scrollbar":{width:"6px"},"&::-webkit-scrollbar-track":{background:t.palette.grey[100]},"&::-webkit-scrollbar-thumb":{background:t.palette.grey[400],borderRadius:"3px"}}},o.map(b=>xe.createElement(O0e,{key:b.id,message:b,disabled:i,_onOpenSettings:Q})),xe.createElement("div",{ref:u})),xe.createElement(aB,{suggestions:a,onSuggestionClick:g}),xe.createElement(Et,{size:12,component:"section","aria-label":"Message input",sx:{p:2,borderTop:`1px solid ${t.palette.divider}`}},xe.createElement(Et,{container:!0,spacing:1,alignItems:"center"},xe.createElement(Et,{size:{xs:10}},xe.createElement(Ga,{value:s,disabled:i,onChange:b=>T(b.target.value),onKeyDown:v,maxRows:4,placeholder:"What can I help you with?",variant:"outlined",size:"small",autoFocus:!0,fullWidth:!0,multiline:!0,"aria-label":"Type your message to the AI assistant"})),xe.createElement(Et,{size:{xs:2},container:!0,justifyContent:"flex-end"},xe.createElement(_m,{onClick:p,disabled:i,color:"primary","aria-label":"Send message to AI assistant",sx:{bgcolor:t.palette.primary.main,color:t.palette.primary.contrastText,"&:hover":{bgcolor:t.palette.primary.dark}}},xe.createElement(uZ,null))))))))},w0e=({label:e,shortcut:t})=>xe.createElement(Et,{container:!0,spacing:1,alignItems:"center",sx:{py:1}},xe.createElement(Et,{size:{xs:12,sm:6,md:7}},xe.createElement(K3,{variant:"body2"},e)),xe.createElement(Et,{size:{xs:12,sm:6,md:5}},xe.createElement(K3,{variant:"body2",fontWeight:300},t))),V0e=()=>{const e=ae.useId(),t=Na("help"),{items:n}=t.state,l=()=>{t.toggle()};return xe.createElement(Im,{id:e,role:"dialog",open:!0,onClose:l,maxWidth:"sm",fullWidth:!0,disablePortal:!0},xe.createElement(Et,{container:!0,component:$L},xe.createElement(Et,{size:"grow"},xe.createElement(K3,{variant:"h6",fontWeight:"bold"},"Keyboard Shortcuts"))),xe.createElement(Fm,null,xe.createElement(Et,{container:!0,spacing:1},n.map((o,a)=>xe.createElement(xe.Fragment,{key:a},xe.createElement(Et,{size:12,key:a},xe.createElement(w0e,{label:o.description,shortcut:o.key})),a!==n.length-1&&xe.createElement(Et,{size:12},xe.createElement(qs,null)))))),xe.createElement(Et,{container:!0,component:qL},xe.createElement(Et,{size:"grow",container:!0,spacing:1,justifyContent:"flex-end",sx:{px:2,py:1}},xe.createElement(Et,{size:"auto"},xe.createElement(zs,{variant:"contained",color:"primary",onClick:l},"Close")))))},D0e=()=>{const e=ae.useId(),{value:t}=E7("review");return xe.createElement("div",{id:e},xe.createElement("input",{id:`${Le.REVIEW_INPUT}-${e}`,defaultValue:t,onFocus:n=>n.target.setSelectionRange(0,0),size:50,type:"text",autoComplete:"off",autoFocus:!0}))};class gy{static async validateApiKey(t,n){try{switch(t){case"OPENAI":return await this.validateOpenAiKey(n);case"ANTHROPIC_CLAUDE":return await this.validateAnthropicKey(n);case"GOOGLE_GEMINI":return await this.validateGeminiKey(n);default:return{isValid:!1,error:"Invalid model key"}}}catch(l){return{isValid:!1,error:l instanceof Error?l.message:"Unknown error occurred"}}}static async validateOpenAiKey(t){try{return(await fetch(this.OPENAI_API_URL,{method:"GET",headers:{Authorization:`Bearer ${t}`,"Content-Type":"application/json"}})).ok?{isValid:!0}:{isValid:!1,error:"Invalid API key"}}catch{return{isValid:!1,error:"Invalid API key"}}}static async validateAnthropicKey(t){try{return(await fetch(this.ANTHROPIC_API_URL,{method:"POST",headers:{"x-api-key":t,"anthropic-version":"2023-06-01","content-type":"application/json"},body:JSON.stringify({model:"claude-3-sonnet-20240229",max_tokens:1,messages:[{role:"user",content:"test"}]})}).catch(()=>({ok:!1}))).ok?{isValid:!0}:{isValid:!1,error:"Invalid API key"}}catch{return{isValid:!1,error:"Invalid API key"}}}static async validateGeminiKey(t){try{return(await fetch(`${this.GEMINI_API_URL}?key=${t}`,{method:"GET"}).catch(()=>({ok:!1}))).ok?{isValid:!0}:{isValid:!1,error:"Invalid API key"}}catch{return{isValid:!1,error:"Invalid API key"}}}}oe(gy,"OPENAI_API_URL","https://api.openai.com/v1/models"),oe(gy,"ANTHROPIC_API_URL","https://api.anthropic.com/v1/messages"),oe(gy,"GEMINI_API_URL","https://generativelanguage.googleapis.com/v1beta/models");const vy=10;function R0e(e,t){const n=Pc[e],l=n.options;return!t||!l.includes(t)?n.default:t}const Bi=({label:e,input:t})=>xe.createElement(Et,{container:!0,spacing:1,alignItems:"center",sx:{py:1}},xe.createElement(Et,{size:{xs:12,sm:6,md:4}},xe.createElement(K3,{variant:"body2",fontWeight:"normal"},e)),xe.createElement(Et,{size:{xs:12,sm:6,md:8}},t)),k0e=({modelKey:e,modelSettings:t,onToggle:n,onChangeKey:l,onChangeVersion:o})=>{const a=R0e(e,t.version),[i,s]=ae.useState(!1),[T,u]=ae.useState(null),Q=()=>t.enabled?i?"Validating API key...":T===!1?`${t.name} API key is invalid`:T===!0?`${t.name} API key is valid`:"":"",f=async p=>{if(!t.enabled||!p.trim()){u(null);return}s(!0);try{const g=await gy.validateApiKey(e,p);u(g.isValid)}catch{u(!1)}finally{s(!1)}};ae.useEffect(()=>{const p=setTimeout(()=>{f(t.apiKey)},500);return()=>clearTimeout(p)},[t.apiKey,t.enabled,e]);const h=()=>{const p=Pc[e];return p.options.map(g=>{const v=p.labels[g];return xe.createElement(F7,{key:g,value:g,sx:{fontWeight:t.version===g?"bold":"normal"}},t.version===g&&xe.createElement(qM,{sx:{mr:1}}),v)})};return xe.createElement(Bi,{label:t.name,input:xe.createElement(Et,{container:!0,spacing:1,alignItems:"center"},xe.createElement(Et,{size:"auto"},xe.createElement(C_,{checked:t.enabled,onChange:p=>n(e,p.target.checked),slotProps:{input:{"aria-label":`Enable ${t.name}`}}})),xe.createElement(Et,{size:6},xe.createElement(Ga,{disabled:!t.enabled,fullWidth:!0,size:"small",value:t.apiKey,onChange:p=>l(e,p.target.value),placeholder:`Enter ${t.name} API Key`,type:"password",error:T===!1,helperText:Q(),slotProps:{input:{"aria-label":`${t.name} API key input`,"aria-describedby":`${e}-status`,endAdornment:xe.createElement(ZA,{position:"end"},xe.createElement("div",{id:`${e}-status`,role:"status","aria-live":"polite","aria-label":i?"Validating API key":T===!0?"API key is valid":T===!1?"API key is invalid":""},i?xe.createElement(cT,{size:20}):T===!0?xe.createElement(qM,{color:"success"}):T===!1?xe.createElement(sZ,{color:"error"}):null))}}})),xe.createElement(Et,{size:6},xe.createElement(Us,{value:a,onChange:p=>{const g=p.target.value;o(e,g)},disabled:!t.enabled||!t.apiKey.trim()||!T,fullWidth:!0,size:"small",MenuProps:{disablePortal:!0,PaperProps:{sx:{maxHeight:200}}}},h())))})},N0e=()=>{const e=ae.useId(),t=Na("settings"),n=Na("chat"),{general:l,llm:o}=t.state,[a,i]=ae.useState(l),[s,T]=ae.useState(o);ae.useEffect(()=>{t.load()},[t]),ae.useEffect(()=>{i(l),T(o)},[l,o]);const u=(S,_)=>{i(O=>({...O,[S]:_}))},Q=(S,_)=>{T(O=>({...O,[S]:_}))},f=(S,_,O)=>{T(E=>({...E,models:{...E.models,[S]:{...E.models[S],[_]:_==="apiKey"&&typeof O=="string"?O.trim():O}}}))},h=()=>{t.reset();const{general:S,llm:_}=t.state;i(S),T(_)},p=()=>{t.toggle()},g=()=>{t.saveAndClose({general:a,llm:s}),n.loadInitialMessage()},v=ae.useCallback(S=>{S.stopPropagation()},[]),b=ae.useCallback(S=>{S.stopPropagation(),Q("expertiseLevel",S.target.value)},[Q]),L=s.expertiseLevel!=="custom"||s.customInstruction.length>=vy;return xe.createElement(Im,{id:e,role:"dialog",open:!0,maxWidth:"sm",fullWidth:!0,disablePortal:!0,disableEnforceFocus:!0,onClick:S=>S.stopPropagation(),sx:{"& .MuiDialog-paper":{zIndex:9998,maxHeight:"90vh"},"& .MuiDialogContent-root":{overflow:"auto"}}},xe.createElement(Fm,null,xe.createElement(Et,{size:"grow"},xe.createElement(K3,{variant:"h6",fontWeight:"bold",gutterBottom:!0},"Settings")),xe.createElement(Et,{container:!0,spacing:.5},xe.createElement(Et,{size:12},xe.createElement(Bi,{label:"Volume",input:xe.createElement(O_,{value:a.volume,onChange:(S,_)=>u("volume",Number(_)),min:0,max:100,step:1,valueLabelDisplay:"auto",sx:{"& .MuiSlider-valueLabel":{backgroundColor:"primary.main",borderRadius:1}}})})),xe.createElement(Et,{size:12},xe.createElement(Bi,{label:"Outline Color",input:xe.createElement(Ga,{fullWidth:!0,type:"color",size:"small",value:a.highlightColor,onChange:S=>u("highlightColor",S.target.value)})})),xe.createElement(Et,{size:12},xe.createElement(Bi,{label:"Braille Display Size",input:xe.createElement(Ga,{fullWidth:!0,type:"number",size:"small",value:a.brailleDisplaySize,onChange:S=>u("brailleDisplaySize",Number(S.target.value))})})),xe.createElement(Et,{size:12},xe.createElement(Bi,{label:"Min Frequency (Hz)",input:xe.createElement(Ga,{fullWidth:!0,type:"number",size:"small",value:a.minFrequency,onChange:S=>u("minFrequency",Number(S.target.value))})})),xe.createElement(Et,{size:12},xe.createElement(Bi,{label:"Max Frequency (Hz)",input:xe.createElement(Ga,{fullWidth:!0,type:"number",size:"small",value:a.maxFrequency,onChange:S=>u("maxFrequency",Number(S.target.value))})})),xe.createElement(Et,{size:12},xe.createElement(Bi,{label:"Autoplay Duration (ms)",input:xe.createElement(Ga,{fullWidth:!0,type:"number",size:"small",value:a.autoplayDuration,onChange:S=>u("autoplayDuration",Number(S.target.value))})})),xe.createElement(Et,{size:12},xe.createElement(Bi,{label:"ARIA Mode",input:xe.createElement(yT,null,xe.createElement(m_,{row:!0,value:a.ariaMode,onChange:S=>u("ariaMode",S.target.value)},xe.createElement(UL,{value:"assertive",control:xe.createElement(JL,{size:"small"}),label:"Assertive"}),xe.createElement(UL,{value:"polite",control:xe.createElement(JL,{size:"small"}),label:"Polite"})))}))),xe.createElement(Et,{size:12},xe.createElement(qs,{sx:{py:.5}})),xe.createElement(Et,{container:!0,spacing:.5,sx:{mt:2}},xe.createElement(Et,{size:12},xe.createElement(K3,{variant:"h6",fontWeight:"bold",gutterBottom:!0},"LLM Settings")),Object.keys(s.models).map(S=>{const _=s.models[S];return xe.createElement(Et,{size:12,key:S},xe.createElement(k0e,{modelKey:S,modelSettings:_,onToggle:(O,E)=>f(O,"enabled",E),onChangeKey:(O,E)=>f(O,"apiKey",E),onChangeVersion:(O,E)=>f(O,"version",E)}))}),xe.createElement(Et,{size:12},xe.createElement(Bi,{label:"Expertise Level",input:xe.createElement(yT,{fullWidth:!0,size:"small"},xe.createElement(Us,{value:s.expertiseLevel,onChange:b,onClick:v,MenuProps:{disablePortal:!0,PaperProps:{sx:{maxHeight:200}}}},xe.createElement(F7,{value:"basic"},"Basic"),xe.createElement(F7,{value:"intermediate"},"Intermediate"),xe.createElement(F7,{value:"advanced"},"Advanced"),xe.createElement(F7,{value:"custom"},"Custom")))})),s.expertiseLevel==="custom"&&xe.createElement(Et,{size:12},xe.createElement(Et,{container:!0,spacing:1,alignItems:"flex-start",sx:{py:1}},xe.createElement(Et,{size:12,sx:{py:1}},xe.createElement(K3,{variant:"body2",fontWeight:"normal"},"Custom Instructions")),xe.createElement(Et,{size:12},xe.createElement(kL,{minRows:3,maxRows:6,value:s.customInstruction,onChange:S=>Q("customInstruction",S.target.value),style:{width:"100%",padding:"8px",border:"1px solid #ccc",borderRadius:"4px"},placeholder:"Enter custom instruction..."})),s.customInstruction.length<vy&&xe.createElement(Et,{size:12,sx:{mt:1}},xe.createElement(mA,{severity:"warning"},"Custom instructions must be at least"," ",vy," ","characters long"))))),xe.createElement(Et,{size:12},xe.createElement(qs,{sx:{py:.5}}))),xe.createElement(Et,{container:!0,component:qL,alignItems:"center"},xe.createElement(Et,{size:"auto",sx:{px:1}},xe.createElement(zs,{variant:"text",color:"inherit",onClick:h},"Reset")),xe.createElement(Et,{size:"grow",container:!0,spacing:1,justifyContent:"flex-end",sx:{px:2,py:1}},xe.createElement(Et,{size:"auto"},xe.createElement(zs,{variant:"outlined",color:"inherit",onClick:p},"Close")),xe.createElement(Et,{size:"auto"},xe.createElement(zs,{variant:"contained",color:"primary",onClick:g,disabled:!L,title:L?"":`Custom instructions must be at least ${vy} characters long`},"Save & Close")))))},B0e=()=>{const{enabled:e,announce:t,value:n,message:l}=E7("text"),o=t||l;return xe.createElement("div",{id:Le.TEXT_CONTAINER,...o&&{role:"alert"}},xe.createElement("p",null,l||e&&n))},P0e=()=>{const{enabled:e,message:t}=E7("text"),{focus:n}=E7("display"),l=o=>{switch(o){case"BRAILLE":return xe.createElement(Fz,null);case"CHAT":return xe.createElement(C0e,null);case"HELP":return xe.createElement(V0e,null);case"REVIEW":return xe.createElement(D0e,null);case"SETTINGS":return xe.createElement(N0e,null);default:return null}};return xe.createElement(xe.Fragment,null,(e||t)&&xe.createElement(B0e,null),l(n))},j0e=xe.createElement(GI,{store:Pa},xe.createElement(P0e,null));var Ly={exports:{}},Sf={},xy={exports:{}},Lb={};/**
|
|
413
|
+
`)),p+=Q.move(f),h(),p}function l(a,i,s){let T=a.value||"",u=1;for(t||u++;new RegExp("(^|[^$])"+"\\$".repeat(u)+"([^$]|$)").test(T);)u++;const Q="$".repeat(u);/[^ \r\n]/.test(T)&&(/^[ \r\n]/.test(T)&&/[ \r\n]$/.test(T)||/^\$|\$$/.test(T))&&(T=" "+T+" ");let f=-1;for(;++f<s.unsafe.length;){const h=s.unsafe[f];if(!h.atBreak)continue;const p=s.compilePattern(h);let g;for(;g=p.exec(T);){let v=g.index;T.codePointAt(v)===10&&T.codePointAt(v-1)===13&&v--,T=T.slice(0,v)+" "+T.slice(g.index+1)}}return Q+T+Q}function o(){return"$"}}const v0e={tokenize:L0e,concrete:!0,name:"mathFlow"},rB={tokenize:x0e,partial:!0};function L0e(e,t,n){const l=this,o=l.events[l.events.length-1],a=o&&o[1].type==="linePrefix"?o[2].sliceSerialize(o[1],!0).length:0;let i=0;return s;function s(S){return e.enter("mathFlow"),e.enter("mathFlowFence"),e.enter("mathFlowFenceSequence"),T(S)}function T(S){return S===36?(e.consume(S),i++,T):i<2?n(S):(e.exit("mathFlowFenceSequence"),a1(e,u,"whitespace")(S))}function u(S){return S===null||vt(S)?f(S):(e.enter("mathFlowFenceMeta"),e.enter("chunkString",{contentType:"string"}),Q(S))}function Q(S){return S===null||vt(S)?(e.exit("chunkString"),e.exit("mathFlowFenceMeta"),f(S)):S===36?n(S):(e.consume(S),Q)}function f(S){return e.exit("mathFlowFence"),l.interrupt?t(S):e.attempt(rB,h,b)(S)}function h(S){return e.attempt({tokenize:L,partial:!0},b,p)(S)}function p(S){return(a?a1(e,g,"linePrefix",a+1):g)(S)}function g(S){return S===null?b(S):vt(S)?e.attempt(rB,h,b)(S):(e.enter("mathFlowValue"),v(S))}function v(S){return S===null||vt(S)?(e.exit("mathFlowValue"),g(S)):(e.consume(S),v)}function b(S){return e.exit("mathFlow"),t(S)}function L(S,_,O){let E=0;return a1(S,A,"linePrefix",l.parser.constructs.disable.null.includes("codeIndented")?void 0:4);function A(B){return S.enter("mathFlowFence"),S.enter("mathFlowFenceSequence"),V(B)}function V(B){return B===36?(E++,S.consume(B),V):E<i?O(B):(S.exit("mathFlowFenceSequence"),a1(S,k,"whitespace")(B))}function k(B){return B===null||vt(B)?(S.exit("mathFlowFence"),_(B)):O(B)}}}function x0e(e,t,n){const l=this;return o;function o(i){return i===null?t(i):(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),a)}function a(i){return l.parser.lazy[l.now().line]?n(i):t(i)}}function b0e(e){let n=(e||{}).singleDollarTextMath;return n==null&&(n=!0),{tokenize:l,resolve:H0e,previous:E0e,name:"mathText"};function l(o,a,i){let s=0,T,u;return Q;function Q(v){return o.enter("mathText"),o.enter("mathTextSequence"),f(v)}function f(v){return v===36?(o.consume(v),s++,f):s<2&&!n?i(v):(o.exit("mathTextSequence"),h(v))}function h(v){return v===null?i(v):v===36?(u=o.enter("mathTextSequence"),T=0,g(v)):v===32?(o.enter("space"),o.consume(v),o.exit("space"),h):vt(v)?(o.enter("lineEnding"),o.consume(v),o.exit("lineEnding"),h):(o.enter("mathTextData"),p(v))}function p(v){return v===null||v===32||v===36||vt(v)?(o.exit("mathTextData"),h(v)):(o.consume(v),p)}function g(v){return v===36?(o.consume(v),T++,g):T===s?(o.exit("mathTextSequence"),o.exit("mathText"),a(v)):(u.type="mathTextData",p(v))}}}function H0e(e){let t=e.length-4,n=3,l,o;if((e[n][1].type==="lineEnding"||e[n][1].type==="space")&&(e[t][1].type==="lineEnding"||e[t][1].type==="space")){for(l=n;++l<t;)if(e[l][1].type==="mathTextData"){e[t][1].type="mathTextPadding",e[n][1].type="mathTextPadding",n+=2,t-=2;break}}for(l=n-1,t++;++l<=t;)o===void 0?l!==t&&e[l][1].type!=="lineEnding"&&(o=l):(l===t||e[l][1].type==="lineEnding")&&(e[o][1].type="mathTextData",l!==o+2&&(e[o][1].end=e[l-1][1].end,e.splice(o+2,l-o-2),t-=l-o-2,l=o+2),o=void 0);return e}function E0e(e){return e!==36||this.events[this.events.length-1][1].type==="characterEscape"}function S0e(e){return{flow:{36:v0e},text:{36:b0e(e)}}}const M0e={};function A0e(e){const t=this,n=e||M0e,l=t.data(),o=l.micromarkExtensions||(l.micromarkExtensions=[]),a=l.fromMarkdownExtensions||(l.fromMarkdownExtensions=[]),i=l.toMarkdownExtensions||(l.toMarkdownExtensions=[]);o.push(S0e(n)),a.push(y0e()),i.push(g0e(n))}const _0e=({text:e,isUser:t})=>{const[n,l]=ae.useState(""),[o,a]=ae.useState(!0),i=ae.useRef(null),s=E7("settings");return ae.useEffect(()=>{if(t){l(e),a(!1);return}let T=0;const Q=setInterval(()=>{T<=e.length?(l(e.slice(0,T)),T++):(a(!1),clearInterval(Q))},5);return()=>clearInterval(Q)},[e,t]),ae.useEffect(()=>{if(!o&&i.current){const T=i.current.textContent||"";i.current.setAttribute("aria-label",`AI message: ${T}`)}},[o]),xe.createElement(Nr,null,xe.createElement("div",{className:`chat-message-content ${t?"user":""}`},xe.createElement(N2e,{rehypePlugins:[J6e,[u5e,{attributes:{"*":["className","aria-label","aria-hidden","role","aria-busy","aria-live","aria-atomic"],a:["href","target"],img:["src","alt"],math:["display"],span:["style"],svg:["aria-hidden","role","xmlns","width","height","viewBox"],path:["d"]},tagNames:["p","br","b","i","em","strong","a","pre","code","ul","ol","li","blockquote","img","math","span","svg","path"]}]],remarkPlugins:[m0e,A0e],components:{pre:({node:T,...u})=>xe.createElement("pre",{...u,role:"text","aria-label":"Code block"}),a:({node:T,...u})=>xe.createElement("a",{...u,"aria-label":`Link: ${u.children}`}),img:({node:T,...u})=>xe.createElement("img",{...u,alt:u.alt||"Image in message"})}},n)),xe.createElement("div",{className:"sr-only","aria-live":s.general.ariaMode,"aria-atomic":"true"},o?"":e),o&&xe.createElement("span",{className:"typing-cursor","aria-hidden":"true",role:"presentation"},"|"))};function vb(e){switch(e){case"OPENAI":return"OpenAI";case"ANTHROPIC_CLAUDE":return"Anthropic Claude";case"GOOGLE_GEMINI":return"Google Gemini";default:return"AI Assistant"}}const O0e=({message:e,disabled:t,_onOpenSettings:n})=>{const l=()=>e.isUser?xe.createElement(oZ,null):xe.createElement(BJ,{model:e.model}),o=()=>{const a=e.isUser?"Your message":"AI Assistant message",i=e.isUser?"":` from ${vb(e.model)}`,s=!e.isUser&&e.status==="PENDING"?" (typing)":"";return`${a}${i}${s}`};return xe.createElement(Nr,{sx:{display:"flex",justifyContent:e.isUser?"flex-end":"flex-start",mb:2},role:"listitem"},xe.createElement(Nr,{sx:{display:"flex",alignItems:"flex-start",gap:1.5,maxWidth:"80%",flexDirection:e.isUser?"row-reverse":"row"}},xe.createElement(MA,{className:`chat-avatar ${e.isUser?"user":""}`,"aria-hidden":"true"},l()),xe.createElement(Nr,{className:`chat-bubble ${e.isUser?"user":"ai"}`,role:"article","aria-label":o()},!e.isUser&&xe.createElement(K3,{className:"model-name",variant:"caption",fontWeight:"medium",color:"text.secondary",component:"h3",sx:{fontSize:"0.8rem",margin:0,marginBottom:.5},"aria-label":`Model: ${vb(e.model)}`},vb(e.model)),xe.createElement(_0e,{text:e.text,isUser:e.isUser}),e.isWelcomeMessage&&e.modelSelections&&xe.createElement(PJ,{enabledModels:e.modelSelections}),xe.createElement(Nr,{sx:{display:"flex",justifyContent:"space-between",alignItems:"center",mt:.5}},t&&e.id.startsWith("system-")&&xe.createElement(zs,{variant:"text",onClick:n,"aria-label":"Open settings",style:{padding:0}},"Open Settings"),xe.createElement(K3,{className:"timestamp",variant:"caption",color:"text.secondary",component:"time",dateTime:new Date(e.timestamp).toISOString(),"aria-label":`Sent at ${new Date(e.timestamp).toLocaleTimeString()}`},new Date(e.timestamp).toLocaleTimeString())),!e.isUser&&e.status==="PENDING"&&xe.createElement(Nr,{role:"status","aria-label":"AI is typing"},xe.createElement(cT,{size:16})))))},iB=ae.memo(({suggestion:e,onClick:t})=>{const n=qa();return xe.createElement(xA,{label:e.text,onClick:t,role:"button","aria-label":`Suggestion: ${e.text}`,sx:{bgcolor:n.palette.primary.main,color:n.palette.primary.contrastText,"&:hover":{bgcolor:n.palette.primary.dark}}})});iB.displayName="SuggestionChip";const aB=ae.memo(({suggestions:e,onSuggestionClick:t})=>{const n=qa();return!e||!e.length?null:xe.createElement(Nr,{role:"region","aria-label":"Suggested responses",sx:{p:2,display:"flex",flexWrap:"wrap",gap:1,borderTop:`1px solid ${n.palette.divider}`,bgcolor:n.palette.background.paper}},e.map(l=>xe.createElement(iB,{key:l.id,suggestion:l,onClick:()=>t(l)})))});aB.displayName="Suggestions";const C0e=()=>{const e=ae.useId(),t=qa(),n=Na("chat"),l=Na("settings"),{messages:o,suggestions:a}=E7("chat"),i=!n.canSend,[s,T]=ae.useState(""),u=ae.useRef(null),Q=()=>{l.toggle()},f=()=>{var b;(b=u.current)==null||b.scrollIntoView({behavior:"smooth"})};ae.useEffect(()=>{f()},[o]);const h=()=>{n.toggle()},p=()=>{s.trim()&&(n.sendMessage(s),T(""))},g=b=>{T(b.text)},v=b=>{b.key==="Enter"&&!b.shiftKey&&(b.preventDefault(),p())};return xe.createElement(Im,{id:e,role:"dialog",open:!0,onClose:h,maxWidth:"md",fullWidth:!0,disablePortal:!0,sx:{"& .MuiDialog-paper":{height:"70vh",maxHeight:"90vh"}}},xe.createElement($L,{component:"h2",sx:{p:2}},xe.createElement(Et,{container:!0,justifyContent:"space-between",alignItems:"center"},xe.createElement(Et,{size:"auto"},xe.createElement(K3,{variant:"h6",fontWeight:"bold",component:"h2",sx:{margin:0},"aria-label":"Chart Assistant - AI Chat Interface"},"Chart Assistant")),xe.createElement(Et,{size:"auto"},xe.createElement(_m,{onClick:h,"aria-label":"Close chat dialog"},xe.createElement(lZ,null))))),xe.createElement(Fm,{dividers:!0,sx:{p:0,overflow:"hidden"}},xe.createElement(Et,{container:!0,direction:"column",sx:{height:"100%"}},xe.createElement(Et,{size:12,component:"section","aria-label":"Chat messages",sx:{flex:1,overflowY:"auto",p:2,bgcolor:t.palette.background.default,"&::-webkit-scrollbar":{width:"6px"},"&::-webkit-scrollbar-track":{background:t.palette.grey[100]},"&::-webkit-scrollbar-thumb":{background:t.palette.grey[400],borderRadius:"3px"}}},o.map(b=>xe.createElement(O0e,{key:b.id,message:b,disabled:i,_onOpenSettings:Q})),xe.createElement("div",{ref:u})),xe.createElement(aB,{suggestions:a,onSuggestionClick:g}),xe.createElement(Et,{size:12,component:"section","aria-label":"Message input",sx:{p:2,borderTop:`1px solid ${t.palette.divider}`}},xe.createElement(Et,{container:!0,spacing:1,alignItems:"center"},xe.createElement(Et,{size:{xs:10}},xe.createElement(Ga,{value:s,disabled:i,onChange:b=>T(b.target.value),onKeyDown:v,maxRows:4,placeholder:"What can I help you with?",variant:"outlined",size:"small",autoFocus:!0,fullWidth:!0,multiline:!0,"aria-label":"Type your message to the AI assistant"})),xe.createElement(Et,{size:{xs:2},container:!0,justifyContent:"flex-end"},xe.createElement(_m,{onClick:p,disabled:i,color:"primary","aria-label":"Send message to AI assistant",sx:{bgcolor:t.palette.primary.main,color:t.palette.primary.contrastText,"&:hover":{bgcolor:t.palette.primary.dark}}},xe.createElement(uZ,null))))))))},w0e=({label:e,shortcut:t})=>xe.createElement(Et,{container:!0,spacing:1,alignItems:"center",sx:{py:1}},xe.createElement(Et,{size:{xs:12,sm:6,md:7}},xe.createElement(K3,{variant:"body2"},e)),xe.createElement(Et,{size:{xs:12,sm:6,md:5}},xe.createElement(K3,{variant:"body2",fontWeight:300},t))),V0e=()=>{const e=ae.useId(),t=Na("help"),{items:n}=t.state,l=()=>{t.toggle()};return xe.createElement(Im,{id:e,role:"dialog",open:!0,onClose:l,maxWidth:"sm",fullWidth:!0,disablePortal:!0},xe.createElement(Et,{container:!0,component:$L},xe.createElement(Et,{size:"grow"},xe.createElement(K3,{variant:"h6",fontWeight:"bold"},"Keyboard Shortcuts"))),xe.createElement(Fm,null,xe.createElement(Et,{container:!0,spacing:1},n.map((o,a)=>xe.createElement(xe.Fragment,{key:a},xe.createElement(Et,{size:12,key:a},xe.createElement(w0e,{label:o.description,shortcut:o.key})),a!==n.length-1&&xe.createElement(Et,{size:12},xe.createElement(qs,null)))))),xe.createElement(Et,{container:!0,component:qL},xe.createElement(Et,{size:"grow",container:!0,spacing:1,justifyContent:"flex-end",sx:{px:2,py:1}},xe.createElement(Et,{size:"auto"},xe.createElement(zs,{variant:"contained",color:"primary",onClick:l},"Close")))))},D0e=()=>{const e=ae.useId(),{value:t}=E7("review");return xe.createElement("div",{id:e},xe.createElement("input",{id:`${ve.REVIEW_INPUT}-${e}`,defaultValue:t,onFocus:n=>n.target.setSelectionRange(0,0),size:50,type:"text",autoComplete:"off",autoFocus:!0}))};class gy{static async validateApiKey(t,n){try{switch(t){case"OPENAI":return await this.validateOpenAiKey(n);case"ANTHROPIC_CLAUDE":return await this.validateAnthropicKey(n);case"GOOGLE_GEMINI":return await this.validateGeminiKey(n);default:return{isValid:!1,error:"Invalid model key"}}}catch(l){return{isValid:!1,error:l instanceof Error?l.message:"Unknown error occurred"}}}static async validateOpenAiKey(t){try{return(await fetch(this.OPENAI_API_URL,{method:"GET",headers:{Authorization:`Bearer ${t}`,"Content-Type":"application/json"}})).ok?{isValid:!0}:{isValid:!1,error:"Invalid API key"}}catch{return{isValid:!1,error:"Invalid API key"}}}static async validateAnthropicKey(t){try{return(await fetch(this.ANTHROPIC_API_URL,{method:"POST",headers:{"x-api-key":t,"anthropic-version":"2023-06-01","content-type":"application/json"},body:JSON.stringify({model:"claude-3-sonnet-20240229",max_tokens:1,messages:[{role:"user",content:"test"}]})}).catch(()=>({ok:!1}))).ok?{isValid:!0}:{isValid:!1,error:"Invalid API key"}}catch{return{isValid:!1,error:"Invalid API key"}}}static async validateGeminiKey(t){try{return(await fetch(`${this.GEMINI_API_URL}?key=${t}`,{method:"GET"}).catch(()=>({ok:!1}))).ok?{isValid:!0}:{isValid:!1,error:"Invalid API key"}}catch{return{isValid:!1,error:"Invalid API key"}}}}oe(gy,"OPENAI_API_URL","https://api.openai.com/v1/models"),oe(gy,"ANTHROPIC_API_URL","https://api.anthropic.com/v1/messages"),oe(gy,"GEMINI_API_URL","https://generativelanguage.googleapis.com/v1beta/models");const vy=10;function R0e(e,t){const n=Pc[e],l=n.options;return!t||!l.includes(t)?n.default:t}const Bi=({label:e,input:t})=>xe.createElement(Et,{container:!0,spacing:1,alignItems:"center",sx:{py:1}},xe.createElement(Et,{size:{xs:12,sm:6,md:4}},xe.createElement(K3,{variant:"body2",fontWeight:"normal"},e)),xe.createElement(Et,{size:{xs:12,sm:6,md:8}},t)),k0e=({modelKey:e,modelSettings:t,onToggle:n,onChangeKey:l,onChangeVersion:o})=>{const a=R0e(e,t.version),[i,s]=ae.useState(!1),[T,u]=ae.useState(null),Q=()=>t.enabled?i?"Validating API key...":T===!1?`${t.name} API key is invalid`:T===!0?`${t.name} API key is valid`:"":"",f=async p=>{if(!t.enabled||!p.trim()){u(null);return}s(!0);try{const g=await gy.validateApiKey(e,p);u(g.isValid)}catch{u(!1)}finally{s(!1)}};ae.useEffect(()=>{const p=setTimeout(()=>{f(t.apiKey)},500);return()=>clearTimeout(p)},[t.apiKey,t.enabled,e]);const h=()=>{const p=Pc[e];return p.options.map(g=>{const v=p.labels[g];return xe.createElement(F7,{key:g,value:g,sx:{fontWeight:t.version===g?"bold":"normal"}},t.version===g&&xe.createElement(qM,{sx:{mr:1}}),v)})};return xe.createElement(Bi,{label:t.name,input:xe.createElement(Et,{container:!0,spacing:1,alignItems:"center"},xe.createElement(Et,{size:"auto"},xe.createElement(C_,{checked:t.enabled,onChange:p=>n(e,p.target.checked),slotProps:{input:{"aria-label":`Enable ${t.name}`}}})),xe.createElement(Et,{size:6},xe.createElement(Ga,{disabled:!t.enabled,fullWidth:!0,size:"small",value:t.apiKey,onChange:p=>l(e,p.target.value),placeholder:`Enter ${t.name} API Key`,type:"password",error:T===!1,helperText:Q(),slotProps:{input:{"aria-label":`${t.name} API key input`,"aria-describedby":`${e}-status`,endAdornment:xe.createElement(ZA,{position:"end"},xe.createElement("div",{id:`${e}-status`,role:"status","aria-live":"polite","aria-label":i?"Validating API key":T===!0?"API key is valid":T===!1?"API key is invalid":""},i?xe.createElement(cT,{size:20}):T===!0?xe.createElement(qM,{color:"success"}):T===!1?xe.createElement(sZ,{color:"error"}):null))}}})),xe.createElement(Et,{size:6},xe.createElement(Us,{value:a,onChange:p=>{const g=p.target.value;o(e,g)},disabled:!t.enabled||!t.apiKey.trim()||!T,fullWidth:!0,size:"small",MenuProps:{disablePortal:!0,PaperProps:{sx:{maxHeight:200}}}},h())))})},N0e=()=>{const e=ae.useId(),t=Na("settings"),n=Na("chat"),{general:l,llm:o}=t.state,[a,i]=ae.useState(l),[s,T]=ae.useState(o);ae.useEffect(()=>{t.load()},[t]),ae.useEffect(()=>{i(l),T(o)},[l,o]);const u=(S,_)=>{i(O=>({...O,[S]:_}))},Q=(S,_)=>{T(O=>({...O,[S]:_}))},f=(S,_,O)=>{T(E=>({...E,models:{...E.models,[S]:{...E.models[S],[_]:_==="apiKey"&&typeof O=="string"?O.trim():O}}}))},h=()=>{t.reset();const{general:S,llm:_}=t.state;i(S),T(_)},p=()=>{t.toggle()},g=()=>{t.saveAndClose({general:a,llm:s}),n.loadInitialMessage()},v=ae.useCallback(S=>{S.stopPropagation()},[]),b=ae.useCallback(S=>{S.stopPropagation(),Q("expertiseLevel",S.target.value)},[Q]),L=s.expertiseLevel!=="custom"||s.customInstruction.length>=vy;return xe.createElement(Im,{id:e,role:"dialog",open:!0,maxWidth:"sm",fullWidth:!0,disablePortal:!0,disableEnforceFocus:!0,onClick:S=>S.stopPropagation(),sx:{"& .MuiDialog-paper":{zIndex:9998,maxHeight:"90vh"},"& .MuiDialogContent-root":{overflow:"auto"}}},xe.createElement(Fm,null,xe.createElement(Et,{size:"grow"},xe.createElement(K3,{variant:"h6",fontWeight:"bold",gutterBottom:!0},"Settings")),xe.createElement(Et,{container:!0,spacing:.5},xe.createElement(Et,{size:12},xe.createElement(Bi,{label:"Volume",input:xe.createElement(O_,{value:a.volume,onChange:(S,_)=>u("volume",Number(_)),min:0,max:100,step:1,valueLabelDisplay:"auto",sx:{"& .MuiSlider-valueLabel":{backgroundColor:"primary.main",borderRadius:1}}})})),xe.createElement(Et,{size:12},xe.createElement(Bi,{label:"Outline Color",input:xe.createElement(Ga,{fullWidth:!0,type:"color",size:"small",value:a.highlightColor,onChange:S=>u("highlightColor",S.target.value)})})),xe.createElement(Et,{size:12},xe.createElement(Bi,{label:"Braille Display Size",input:xe.createElement(Ga,{fullWidth:!0,type:"number",size:"small",value:a.brailleDisplaySize,onChange:S=>u("brailleDisplaySize",Number(S.target.value))})})),xe.createElement(Et,{size:12},xe.createElement(Bi,{label:"Min Frequency (Hz)",input:xe.createElement(Ga,{fullWidth:!0,type:"number",size:"small",value:a.minFrequency,onChange:S=>u("minFrequency",Number(S.target.value))})})),xe.createElement(Et,{size:12},xe.createElement(Bi,{label:"Max Frequency (Hz)",input:xe.createElement(Ga,{fullWidth:!0,type:"number",size:"small",value:a.maxFrequency,onChange:S=>u("maxFrequency",Number(S.target.value))})})),xe.createElement(Et,{size:12},xe.createElement(Bi,{label:"Autoplay Duration (ms)",input:xe.createElement(Ga,{fullWidth:!0,type:"number",size:"small",value:a.autoplayDuration,onChange:S=>u("autoplayDuration",Number(S.target.value))})})),xe.createElement(Et,{size:12},xe.createElement(Bi,{label:"ARIA Mode",input:xe.createElement(yT,null,xe.createElement(m_,{row:!0,value:a.ariaMode,onChange:S=>u("ariaMode",S.target.value)},xe.createElement(UL,{value:"assertive",control:xe.createElement(JL,{size:"small"}),label:"Assertive"}),xe.createElement(UL,{value:"polite",control:xe.createElement(JL,{size:"small"}),label:"Polite"})))}))),xe.createElement(Et,{size:12},xe.createElement(qs,{sx:{py:.5}})),xe.createElement(Et,{container:!0,spacing:.5,sx:{mt:2}},xe.createElement(Et,{size:12},xe.createElement(K3,{variant:"h6",fontWeight:"bold",gutterBottom:!0},"LLM Settings")),Object.keys(s.models).map(S=>{const _=s.models[S];return xe.createElement(Et,{size:12,key:S},xe.createElement(k0e,{modelKey:S,modelSettings:_,onToggle:(O,E)=>f(O,"enabled",E),onChangeKey:(O,E)=>f(O,"apiKey",E),onChangeVersion:(O,E)=>f(O,"version",E)}))}),xe.createElement(Et,{size:12},xe.createElement(Bi,{label:"Expertise Level",input:xe.createElement(yT,{fullWidth:!0,size:"small"},xe.createElement(Us,{value:s.expertiseLevel,onChange:b,onClick:v,MenuProps:{disablePortal:!0,PaperProps:{sx:{maxHeight:200}}}},xe.createElement(F7,{value:"basic"},"Basic"),xe.createElement(F7,{value:"intermediate"},"Intermediate"),xe.createElement(F7,{value:"advanced"},"Advanced"),xe.createElement(F7,{value:"custom"},"Custom")))})),s.expertiseLevel==="custom"&&xe.createElement(Et,{size:12},xe.createElement(Et,{container:!0,spacing:1,alignItems:"flex-start",sx:{py:1}},xe.createElement(Et,{size:12,sx:{py:1}},xe.createElement(K3,{variant:"body2",fontWeight:"normal"},"Custom Instructions")),xe.createElement(Et,{size:12},xe.createElement(kL,{minRows:3,maxRows:6,value:s.customInstruction,onChange:S=>Q("customInstruction",S.target.value),style:{width:"100%",padding:"8px",border:"1px solid #ccc",borderRadius:"4px"},placeholder:"Enter custom instruction..."})),s.customInstruction.length<vy&&xe.createElement(Et,{size:12,sx:{mt:1}},xe.createElement(mA,{severity:"warning"},"Custom instructions must be at least"," ",vy," ","characters long"))))),xe.createElement(Et,{size:12},xe.createElement(qs,{sx:{py:.5}}))),xe.createElement(Et,{container:!0,component:qL,alignItems:"center"},xe.createElement(Et,{size:"auto",sx:{px:1}},xe.createElement(zs,{variant:"text",color:"inherit",onClick:h},"Reset")),xe.createElement(Et,{size:"grow",container:!0,spacing:1,justifyContent:"flex-end",sx:{px:2,py:1}},xe.createElement(Et,{size:"auto"},xe.createElement(zs,{variant:"outlined",color:"inherit",onClick:p},"Close")),xe.createElement(Et,{size:"auto"},xe.createElement(zs,{variant:"contained",color:"primary",onClick:g,disabled:!L,title:L?"":`Custom instructions must be at least ${vy} characters long`},"Save & Close")))))},B0e=()=>{const{enabled:e,announce:t,value:n,message:l}=E7("text"),o=t||l;return xe.createElement("div",{id:ve.TEXT_CONTAINER,...o&&{role:"alert"}},xe.createElement("p",null,l||e&&n))},P0e=()=>{const{enabled:e,message:t}=E7("text"),{focus:n}=E7("display"),l=o=>{switch(o){case"BRAILLE":return xe.createElement(Fz,null);case"CHAT":return xe.createElement(C0e,null);case"HELP":return xe.createElement(V0e,null);case"REVIEW":return xe.createElement(D0e,null);case"SETTINGS":return xe.createElement(N0e,null);default:return null}};return xe.createElement(xe.Fragment,null,(e||t)&&xe.createElement(B0e,null),l(n))},j0e=xe.createElement(GI,{store:Pa},xe.createElement(P0e,null));var Ly={exports:{}},Sf={},xy={exports:{}},Lb={};/**
|
|
414
414
|
* @license React
|
|
415
415
|
* scheduler.production.js
|
|
416
416
|
*
|
|
@@ -434,14 +434,14 @@ See https://react.dev/link/invalid-hook-call for tips about how to debug and fix
|
|
|
434
434
|
*
|
|
435
435
|
* This source code is licensed under the MIT license found in the
|
|
436
436
|
* LICENSE file in the root directory of this source tree.
|
|
437
|
-
*/var cB;function z0e(){if(cB)return Sf;cB=1;var e=uB(),t=ka(),n=SL();function l(d){var y="https://react.dev/errors/"+d;if(1<arguments.length){y+="?args[]="+encodeURIComponent(arguments[1]);for(var x=2;x<arguments.length;x++)y+="&args[]="+encodeURIComponent(arguments[x])}return"Minified React error #"+d+"; visit "+y+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function o(d){return!(!d||d.nodeType!==1&&d.nodeType!==9&&d.nodeType!==11)}function a(d){var y=d,x=d;if(d.alternate)for(;y.return;)y=y.return;else{d=y;do y=d,(y.flags&4098)!==0&&(x=y.return),d=y.return;while(d)}return y.tag===3?x:null}function i(d){if(d.tag===13){var y=d.memoizedState;if(y===null&&(d=d.alternate,d!==null&&(y=d.memoizedState)),y!==null)return y.dehydrated}return null}function s(d){if(a(d)!==d)throw Error(l(188))}function T(d){var y=d.alternate;if(!y){if(y=a(d),y===null)throw Error(l(188));return y!==d?null:d}for(var x=d,C=y;;){var N=x.return;if(N===null)break;var P=N.alternate;if(P===null){if(C=N.return,C!==null){x=C;continue}break}if(N.child===P.child){for(P=N.child;P;){if(P===x)return s(N),d;if(P===C)return s(N),y;P=P.sibling}throw Error(l(188))}if(x.return!==C.return)x=N,C=P;else{for(var X=!1,re=N.child;re;){if(re===x){X=!0,x=N,C=P;break}if(re===C){X=!0,C=N,x=P;break}re=re.sibling}if(!X){for(re=P.child;re;){if(re===x){X=!0,x=P,C=N;break}if(re===C){X=!0,C=P,x=N;break}re=re.sibling}if(!X)throw Error(l(189))}}if(x.alternate!==C)throw Error(l(190))}if(x.tag!==3)throw Error(l(188));return x.stateNode.current===x?d:y}function u(d){var y=d.tag;if(y===5||y===26||y===27||y===6)return d;for(d=d.child;d!==null;){if(y=u(d),y!==null)return y;d=d.sibling}return null}var Q=Object.assign,f=Symbol.for("react.element"),h=Symbol.for("react.transitional.element"),p=Symbol.for("react.portal"),g=Symbol.for("react.fragment"),v=Symbol.for("react.strict_mode"),b=Symbol.for("react.profiler"),L=Symbol.for("react.provider"),S=Symbol.for("react.consumer"),_=Symbol.for("react.context"),O=Symbol.for("react.forward_ref"),E=Symbol.for("react.suspense"),A=Symbol.for("react.suspense_list"),V=Symbol.for("react.memo"),k=Symbol.for("react.lazy"),B=Symbol.for("react.activity"),R=Symbol.for("react.memo_cache_sentinel"),F=Symbol.iterator;function q(d){return d===null||typeof d!="object"?null:(d=F&&d[F]||d["@@iterator"],typeof d=="function"?d:null)}var $=Symbol.for("react.client.reference");function Z(d){if(d==null)return null;if(typeof d=="function")return d.$$typeof===$?null:d.displayName||d.name||null;if(typeof d=="string")return d;switch(d){case g:return"Fragment";case b:return"Profiler";case v:return"StrictMode";case E:return"Suspense";case A:return"SuspenseList";case B:return"Activity"}if(typeof d=="object")switch(d.$$typeof){case p:return"Portal";case _:return(d.displayName||"Context")+".Provider";case S:return(d._context.displayName||"Context")+".Consumer";case O:var y=d.render;return d=d.displayName,d||(d=y.displayName||y.name||"",d=d!==""?"ForwardRef("+d+")":"ForwardRef"),d;case V:return y=d.displayName||null,y!==null?y:Z(d.type)||"Memo";case k:y=d._payload,d=d._init;try{return Z(d(y))}catch{}}return null}var J=Array.isArray,W=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ne=n.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,K={pending:!1,data:null,method:null,action:null},Y=[],j=-1;function z(d){return{current:d}}function ee(d){0>j||(d.current=Y[j],Y[j]=null,j--)}function U(d,y){j++,Y[j]=d.current,d.current=y}var de=z(null),pe=z(null),he=z(null),se=z(null);function fe(d,y){switch(U(he,y),U(pe,d),U(de,null),y.nodeType){case 9:case 11:d=(d=y.documentElement)&&(d=d.namespaceURI)?q6(d):0;break;default:if(d=y.tagName,y=y.namespaceURI)y=q6(y),d=pr(y,d);else switch(d){case"svg":d=1;break;case"math":d=2;break;default:d=0}}ee(de),U(de,d)}function Se(){ee(de),ee(pe),ee(he)}function Ee(d){d.memoizedState!==null&&U(se,d);var y=de.current,x=pr(y,d.type);y!==x&&(U(pe,d),U(de,x))}function _e(d){pe.current===d&&(ee(de),ee(pe)),se.current===d&&(ee(se),p3._currentValue=K)}var ze=Object.prototype.hasOwnProperty,ue=e.unstable_scheduleCallback,Pe=e.unstable_cancelCallback,Xe=e.unstable_shouldYield,ht=e.unstable_requestPaint,ot=e.unstable_now,mt=e.unstable_getCurrentPriorityLevel,zt=e.unstable_ImmediatePriority,p1=e.unstable_UserBlockingPriority,st=e.unstable_NormalPriority,ct=e.unstable_LowPriority,e2=e.unstable_IdlePriority,f1=e.log,Ge=e.unstable_setDisableYieldValue,me=null,De=null;function Ye(d){if(typeof f1=="function"&&Ge(d),De&&typeof De.setStrictMode=="function")try{De.setStrictMode(me,d)}catch{}}var et=Math.clz32?Math.clz32:o1,tt=Math.log,Tt=Math.LN2;function o1(d){return d>>>=0,d===0?32:31-(tt(d)/Tt|0)|0}var Ct=256,d1=4194304;function m1(d){var y=d&42;if(y!==0)return y;switch(d&-d){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return d&4194048;case 4194304:case 8388608:case 16777216:case 33554432:return d&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return d}}function it(d,y,x){var C=d.pendingLanes;if(C===0)return 0;var N=0,P=d.suspendedLanes,X=d.pingedLanes;d=d.warmLanes;var re=C&134217727;return re!==0?(C=re&~P,C!==0?N=m1(C):(X&=re,X!==0?N=m1(X):x||(x=re&~d,x!==0&&(N=m1(x))))):(re=C&~P,re!==0?N=m1(re):X!==0?N=m1(X):x||(x=C&~d,x!==0&&(N=m1(x)))),N===0?0:y!==0&&y!==N&&(y&P)===0&&(P=N&-N,x=y&-y,P>=x||P===32&&(x&4194048)!==0)?y:N}function xt(d,y){return(d.pendingLanes&~(d.suspendedLanes&~d.pingedLanes)&y)===0}function te(d,y){switch(d){case 1:case 2:case 4:case 8:case 64:return y+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return y+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function ve(){var d=Ct;return Ct<<=1,(Ct&4194048)===0&&(Ct=256),d}function We(){var d=d1;return d1<<=1,(d1&62914560)===0&&(d1=4194304),d}function rt(d){for(var y=[],x=0;31>x;x++)y.push(d);return y}function nt(d,y){d.pendingLanes|=y,y!==268435456&&(d.suspendedLanes=0,d.pingedLanes=0,d.warmLanes=0)}function yt(d,y,x,C,N,P){var X=d.pendingLanes;d.pendingLanes=x,d.suspendedLanes=0,d.pingedLanes=0,d.warmLanes=0,d.expiredLanes&=x,d.entangledLanes&=x,d.errorRecoveryDisabledLanes&=x,d.shellSuspendCounter=0;var re=d.entanglements,ce=d.expirationTimes,Me=d.hiddenUpdates;for(x=X&~x;0<x;){var Fe=31-et(x),$e=1<<Fe;re[Fe]=0,ce[Fe]=-1;var Oe=Me[Fe];if(Oe!==null)for(Me[Fe]=null,Fe=0;Fe<Oe.length;Fe++){var Re=Oe[Fe];Re!==null&&(Re.lane&=-536870913)}x&=~$e}C!==0&&_t(d,C,0),P!==0&&N===0&&d.tag!==0&&(d.suspendedLanes|=P&~(X&~y))}function _t(d,y,x){d.pendingLanes|=y,d.suspendedLanes&=~y;var C=31-et(y);d.entangledLanes|=y,d.entanglements[C]=d.entanglements[C]|1073741824|x&4194090}function Xt(d,y){var x=d.entangledLanes|=y;for(d=d.entanglements;x;){var C=31-et(x),N=1<<C;N&y|d[C]&y&&(d[C]|=y),x&=~N}}function Ht(d){switch(d){case 2:d=1;break;case 8:d=4;break;case 32:d=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:d=128;break;case 268435456:d=134217728;break;default:d=0}return d}function C2(d){return d&=-d,2<d?8<d?(d&134217727)!==0?32:268435456:8:2}function D6(){var d=ne.p;return d!==0?d:(d=window.event,d===void 0?32:Ag(d.type))}function _f(d,y){var x=ne.p;try{return ne.p=d,y()}finally{ne.p=x}}var R6=Math.random().toString(36).slice(2),$1="__reactFiber$"+R6,L3="__reactProps$"+R6,Pi="__reactContainer$"+R6,Of="__reactEvents$"+R6,by="__reactListeners$"+R6,Hy="__reactHandles$"+R6,I8="__reactResources$"+R6,F8="__reactMarker$"+R6;function pt(d){delete d[$1],delete d[L3],delete d[Of],delete d[by],delete d[Hy]}function zr(d){var y=d[$1];if(y)return y;for(var x=d.parentNode;x;){if(y=x[Pi]||x[$1]){if(x=y.alternate,y.child!==null||x!==null&&x.child!==null)for(d=xa(d);d!==null;){if(x=d[$1])return x;d=xa(d)}return y}d=x,x=d.parentNode}return null}function c3(d){if(d=d[$1]||d[Pi]){var y=d.tag;if(y===5||y===6||y===13||y===26||y===27||y===3)return d}return null}function to(d){var y=d.tag;if(y===5||y===26||y===27||y===6)return d.stateNode;throw Error(l(33))}function no(d){var y=d[I8];return y||(y=d[I8]={hoistableStyles:new Map,hoistableScripts:new Map}),y}function H2(d){d[F8]=!0}var Cf=new Set,z8={};function Y2(d,y){ji(d,y),ji(d+"Capture",y)}function ji(d,y){for(z8[d]=y,d=0;d<y.length;d++)Cf.add(y[d])}var wf=RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),Vf={},c9={};function Ey(d){return ze.call(c9,d)?!0:ze.call(Vf,d)?!1:wf.test(d)?c9[d]=!0:(Vf[d]=!0,!1)}function q8(d,y,x){if(Ey(y))if(x===null)d.removeAttribute(y);else{switch(typeof x){case"undefined":case"function":case"symbol":d.removeAttribute(y);return;case"boolean":var C=y.toLowerCase().slice(0,5);if(C!=="data-"&&C!=="aria-"){d.removeAttribute(y);return}}d.setAttribute(y,""+x)}}function q5(d,y,x){if(x===null)d.removeAttribute(y);else{switch(typeof x){case"undefined":case"function":case"symbol":case"boolean":d.removeAttribute(y);return}d.setAttribute(y,""+x)}}function k6(d,y,x,C){if(C===null)d.removeAttribute(x);else{switch(typeof C){case"undefined":case"function":case"symbol":case"boolean":d.removeAttribute(x);return}d.setAttributeNS(y,x,""+C)}}var T9,Df;function Ii(d){if(T9===void 0)try{throw Error()}catch(x){var y=x.stack.trim().match(/\n( *(at )?)/);T9=y&&y[1]||"",Df=-1<x.stack.indexOf(`
|
|
437
|
+
*/var cB;function z0e(){if(cB)return Sf;cB=1;var e=uB(),t=ka(),n=SL();function l(d){var y="https://react.dev/errors/"+d;if(1<arguments.length){y+="?args[]="+encodeURIComponent(arguments[1]);for(var x=2;x<arguments.length;x++)y+="&args[]="+encodeURIComponent(arguments[x])}return"Minified React error #"+d+"; visit "+y+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function o(d){return!(!d||d.nodeType!==1&&d.nodeType!==9&&d.nodeType!==11)}function a(d){var y=d,x=d;if(d.alternate)for(;y.return;)y=y.return;else{d=y;do y=d,(y.flags&4098)!==0&&(x=y.return),d=y.return;while(d)}return y.tag===3?x:null}function i(d){if(d.tag===13){var y=d.memoizedState;if(y===null&&(d=d.alternate,d!==null&&(y=d.memoizedState)),y!==null)return y.dehydrated}return null}function s(d){if(a(d)!==d)throw Error(l(188))}function T(d){var y=d.alternate;if(!y){if(y=a(d),y===null)throw Error(l(188));return y!==d?null:d}for(var x=d,C=y;;){var N=x.return;if(N===null)break;var P=N.alternate;if(P===null){if(C=N.return,C!==null){x=C;continue}break}if(N.child===P.child){for(P=N.child;P;){if(P===x)return s(N),d;if(P===C)return s(N),y;P=P.sibling}throw Error(l(188))}if(x.return!==C.return)x=N,C=P;else{for(var X=!1,re=N.child;re;){if(re===x){X=!0,x=N,C=P;break}if(re===C){X=!0,C=N,x=P;break}re=re.sibling}if(!X){for(re=P.child;re;){if(re===x){X=!0,x=P,C=N;break}if(re===C){X=!0,C=P,x=N;break}re=re.sibling}if(!X)throw Error(l(189))}}if(x.alternate!==C)throw Error(l(190))}if(x.tag!==3)throw Error(l(188));return x.stateNode.current===x?d:y}function u(d){var y=d.tag;if(y===5||y===26||y===27||y===6)return d;for(d=d.child;d!==null;){if(y=u(d),y!==null)return y;d=d.sibling}return null}var Q=Object.assign,f=Symbol.for("react.element"),h=Symbol.for("react.transitional.element"),p=Symbol.for("react.portal"),g=Symbol.for("react.fragment"),v=Symbol.for("react.strict_mode"),b=Symbol.for("react.profiler"),L=Symbol.for("react.provider"),S=Symbol.for("react.consumer"),_=Symbol.for("react.context"),O=Symbol.for("react.forward_ref"),E=Symbol.for("react.suspense"),A=Symbol.for("react.suspense_list"),V=Symbol.for("react.memo"),k=Symbol.for("react.lazy"),B=Symbol.for("react.activity"),R=Symbol.for("react.memo_cache_sentinel"),F=Symbol.iterator;function q(d){return d===null||typeof d!="object"?null:(d=F&&d[F]||d["@@iterator"],typeof d=="function"?d:null)}var $=Symbol.for("react.client.reference");function Z(d){if(d==null)return null;if(typeof d=="function")return d.$$typeof===$?null:d.displayName||d.name||null;if(typeof d=="string")return d;switch(d){case g:return"Fragment";case b:return"Profiler";case v:return"StrictMode";case E:return"Suspense";case A:return"SuspenseList";case B:return"Activity"}if(typeof d=="object")switch(d.$$typeof){case p:return"Portal";case _:return(d.displayName||"Context")+".Provider";case S:return(d._context.displayName||"Context")+".Consumer";case O:var y=d.render;return d=d.displayName,d||(d=y.displayName||y.name||"",d=d!==""?"ForwardRef("+d+")":"ForwardRef"),d;case V:return y=d.displayName||null,y!==null?y:Z(d.type)||"Memo";case k:y=d._payload,d=d._init;try{return Z(d(y))}catch{}}return null}var J=Array.isArray,W=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ne=n.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,K={pending:!1,data:null,method:null,action:null},Y=[],j=-1;function z(d){return{current:d}}function ee(d){0>j||(d.current=Y[j],Y[j]=null,j--)}function U(d,y){j++,Y[j]=d.current,d.current=y}var de=z(null),pe=z(null),he=z(null),se=z(null);function fe(d,y){switch(U(he,y),U(pe,d),U(de,null),y.nodeType){case 9:case 11:d=(d=y.documentElement)&&(d=d.namespaceURI)?q6(d):0;break;default:if(d=y.tagName,y=y.namespaceURI)y=q6(y),d=pr(y,d);else switch(d){case"svg":d=1;break;case"math":d=2;break;default:d=0}}ee(de),U(de,d)}function Se(){ee(de),ee(pe),ee(he)}function Ee(d){d.memoizedState!==null&&U(se,d);var y=de.current,x=pr(y,d.type);y!==x&&(U(pe,d),U(de,x))}function _e(d){pe.current===d&&(ee(de),ee(pe)),se.current===d&&(ee(se),p3._currentValue=K)}var ze=Object.prototype.hasOwnProperty,ue=e.unstable_scheduleCallback,Pe=e.unstable_cancelCallback,Xe=e.unstable_shouldYield,ht=e.unstable_requestPaint,ot=e.unstable_now,mt=e.unstable_getCurrentPriorityLevel,zt=e.unstable_ImmediatePriority,p1=e.unstable_UserBlockingPriority,st=e.unstable_NormalPriority,ct=e.unstable_LowPriority,e2=e.unstable_IdlePriority,f1=e.log,Ge=e.unstable_setDisableYieldValue,me=null,De=null;function Ye(d){if(typeof f1=="function"&&Ge(d),De&&typeof De.setStrictMode=="function")try{De.setStrictMode(me,d)}catch{}}var et=Math.clz32?Math.clz32:o1,tt=Math.log,Tt=Math.LN2;function o1(d){return d>>>=0,d===0?32:31-(tt(d)/Tt|0)|0}var Ct=256,d1=4194304;function m1(d){var y=d&42;if(y!==0)return y;switch(d&-d){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return d&4194048;case 4194304:case 8388608:case 16777216:case 33554432:return d&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return d}}function it(d,y,x){var C=d.pendingLanes;if(C===0)return 0;var N=0,P=d.suspendedLanes,X=d.pingedLanes;d=d.warmLanes;var re=C&134217727;return re!==0?(C=re&~P,C!==0?N=m1(C):(X&=re,X!==0?N=m1(X):x||(x=re&~d,x!==0&&(N=m1(x))))):(re=C&~P,re!==0?N=m1(re):X!==0?N=m1(X):x||(x=C&~d,x!==0&&(N=m1(x)))),N===0?0:y!==0&&y!==N&&(y&P)===0&&(P=N&-N,x=y&-y,P>=x||P===32&&(x&4194048)!==0)?y:N}function xt(d,y){return(d.pendingLanes&~(d.suspendedLanes&~d.pingedLanes)&y)===0}function te(d,y){switch(d){case 1:case 2:case 4:case 8:case 64:return y+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return y+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function Le(){var d=Ct;return Ct<<=1,(Ct&4194048)===0&&(Ct=256),d}function We(){var d=d1;return d1<<=1,(d1&62914560)===0&&(d1=4194304),d}function rt(d){for(var y=[],x=0;31>x;x++)y.push(d);return y}function nt(d,y){d.pendingLanes|=y,y!==268435456&&(d.suspendedLanes=0,d.pingedLanes=0,d.warmLanes=0)}function yt(d,y,x,C,N,P){var X=d.pendingLanes;d.pendingLanes=x,d.suspendedLanes=0,d.pingedLanes=0,d.warmLanes=0,d.expiredLanes&=x,d.entangledLanes&=x,d.errorRecoveryDisabledLanes&=x,d.shellSuspendCounter=0;var re=d.entanglements,ce=d.expirationTimes,Me=d.hiddenUpdates;for(x=X&~x;0<x;){var Fe=31-et(x),$e=1<<Fe;re[Fe]=0,ce[Fe]=-1;var Oe=Me[Fe];if(Oe!==null)for(Me[Fe]=null,Fe=0;Fe<Oe.length;Fe++){var Re=Oe[Fe];Re!==null&&(Re.lane&=-536870913)}x&=~$e}C!==0&&_t(d,C,0),P!==0&&N===0&&d.tag!==0&&(d.suspendedLanes|=P&~(X&~y))}function _t(d,y,x){d.pendingLanes|=y,d.suspendedLanes&=~y;var C=31-et(y);d.entangledLanes|=y,d.entanglements[C]=d.entanglements[C]|1073741824|x&4194090}function Xt(d,y){var x=d.entangledLanes|=y;for(d=d.entanglements;x;){var C=31-et(x),N=1<<C;N&y|d[C]&y&&(d[C]|=y),x&=~N}}function Ht(d){switch(d){case 2:d=1;break;case 8:d=4;break;case 32:d=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:d=128;break;case 268435456:d=134217728;break;default:d=0}return d}function C2(d){return d&=-d,2<d?8<d?(d&134217727)!==0?32:268435456:8:2}function D6(){var d=ne.p;return d!==0?d:(d=window.event,d===void 0?32:Ag(d.type))}function _f(d,y){var x=ne.p;try{return ne.p=d,y()}finally{ne.p=x}}var R6=Math.random().toString(36).slice(2),$1="__reactFiber$"+R6,L3="__reactProps$"+R6,Pi="__reactContainer$"+R6,Of="__reactEvents$"+R6,by="__reactListeners$"+R6,Hy="__reactHandles$"+R6,I8="__reactResources$"+R6,F8="__reactMarker$"+R6;function pt(d){delete d[$1],delete d[L3],delete d[Of],delete d[by],delete d[Hy]}function zr(d){var y=d[$1];if(y)return y;for(var x=d.parentNode;x;){if(y=x[Pi]||x[$1]){if(x=y.alternate,y.child!==null||x!==null&&x.child!==null)for(d=xa(d);d!==null;){if(x=d[$1])return x;d=xa(d)}return y}d=x,x=d.parentNode}return null}function c3(d){if(d=d[$1]||d[Pi]){var y=d.tag;if(y===5||y===6||y===13||y===26||y===27||y===3)return d}return null}function to(d){var y=d.tag;if(y===5||y===26||y===27||y===6)return d.stateNode;throw Error(l(33))}function no(d){var y=d[I8];return y||(y=d[I8]={hoistableStyles:new Map,hoistableScripts:new Map}),y}function H2(d){d[F8]=!0}var Cf=new Set,z8={};function Y2(d,y){ji(d,y),ji(d+"Capture",y)}function ji(d,y){for(z8[d]=y,d=0;d<y.length;d++)Cf.add(y[d])}var wf=RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),Vf={},c9={};function Ey(d){return ze.call(c9,d)?!0:ze.call(Vf,d)?!1:wf.test(d)?c9[d]=!0:(Vf[d]=!0,!1)}function q8(d,y,x){if(Ey(y))if(x===null)d.removeAttribute(y);else{switch(typeof x){case"undefined":case"function":case"symbol":d.removeAttribute(y);return;case"boolean":var C=y.toLowerCase().slice(0,5);if(C!=="data-"&&C!=="aria-"){d.removeAttribute(y);return}}d.setAttribute(y,""+x)}}function q5(d,y,x){if(x===null)d.removeAttribute(y);else{switch(typeof x){case"undefined":case"function":case"symbol":case"boolean":d.removeAttribute(y);return}d.setAttribute(y,""+x)}}function k6(d,y,x,C){if(C===null)d.removeAttribute(x);else{switch(typeof C){case"undefined":case"function":case"symbol":case"boolean":d.removeAttribute(x);return}d.setAttributeNS(y,x,""+C)}}var T9,Df;function Ii(d){if(T9===void 0)try{throw Error()}catch(x){var y=x.stack.trim().match(/\n( *(at )?)/);T9=y&&y[1]||"",Df=-1<x.stack.indexOf(`
|
|
438
438
|
at`)?" (<anonymous>)":-1<x.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
439
439
|
`+T9+d+Df}var Q9=!1;function k3(d,y){if(!d||Q9)return"";Q9=!0;var x=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var C={DetermineComponentFrameRoot:function(){try{if(y){var $e=function(){throw Error()};if(Object.defineProperty($e.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct($e,[])}catch(Re){var Oe=Re}Reflect.construct(d,[],$e)}else{try{$e.call()}catch(Re){Oe=Re}d.call($e.prototype)}}else{try{throw Error()}catch(Re){Oe=Re}($e=d())&&typeof $e.catch=="function"&&$e.catch(function(){})}}catch(Re){if(Re&&Oe&&typeof Re.stack=="string")return[Re.stack,Oe.stack]}return[null,null]}};C.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var N=Object.getOwnPropertyDescriptor(C.DetermineComponentFrameRoot,"name");N&&N.configurable&&Object.defineProperty(C.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var P=C.DetermineComponentFrameRoot(),X=P[0],re=P[1];if(X&&re){var ce=X.split(`
|
|
440
440
|
`),Me=re.split(`
|
|
441
441
|
`);for(N=C=0;C<ce.length&&!ce[C].includes("DetermineComponentFrameRoot");)C++;for(;N<Me.length&&!Me[N].includes("DetermineComponentFrameRoot");)N++;if(C===ce.length||N===Me.length)for(C=ce.length-1,N=Me.length-1;1<=C&&0<=N&&ce[C]!==Me[N];)N--;for(;1<=C&&0<=N;C--,N--)if(ce[C]!==Me[N]){if(C!==1||N!==1)do if(C--,N--,0>N||ce[C]!==Me[N]){var Fe=`
|
|
442
442
|
`+ce[C].replace(" at new "," at ");return d.displayName&&Fe.includes("<anonymous>")&&(Fe=Fe.replace("<anonymous>",d.displayName)),Fe}while(1<=C&&0<=N);break}}}finally{Q9=!1,Error.prepareStackTrace=x}return(x=d?d.displayName||d.name:"")?Ii(x):""}function ro(d){switch(d.tag){case 26:case 27:case 5:return Ii(d.type);case 16:return Ii("Lazy");case 13:return Ii("Suspense");case 19:return Ii("SuspenseList");case 0:case 15:return k3(d.type,!1);case 11:return k3(d.type.render,!1);case 1:return k3(d.type,!0);case 31:return Ii("Activity");default:return""}}function qr(d){try{var y="";do y+=ro(d),d=d.return;while(d);return y}catch(x){return`
|
|
443
443
|
Error generating stack: `+x.message+`
|
|
444
|
-
`+x.stack}}function R4(d){switch(typeof d){case"bigint":case"boolean":case"number":case"string":case"undefined":return d;case"object":return d;default:return""}}function io(d){var y=d.type;return(d=d.nodeName)&&d.toLowerCase()==="input"&&(y==="checkbox"||y==="radio")}function f9(d){var y=io(d)?"checked":"value",x=Object.getOwnPropertyDescriptor(d.constructor.prototype,y),C=""+d[y];if(!d.hasOwnProperty(y)&&typeof x<"u"&&typeof x.get=="function"&&typeof x.set=="function"){var N=x.get,P=x.set;return Object.defineProperty(d,y,{configurable:!0,get:function(){return N.call(this)},set:function(X){C=""+X,P.call(this,X)}}),Object.defineProperty(d,y,{enumerable:x.enumerable}),{getValue:function(){return C},setValue:function(X){C=""+X},stopTracking:function(){d._valueTracker=null,delete d[y]}}}}function ao(d){d._valueTracker||(d._valueTracker=f9(d))}function oo(d){if(!d)return!1;var y=d._valueTracker;if(!y)return!0;var x=y.getValue(),C="";return d&&(C=io(d)?d.checked?"true":"false":d.value),d=C,d!==x?(y.setValue(d),!0):!1}function $5(d){if(d=d||(typeof document<"u"?document:void 0),typeof d>"u")return null;try{return d.activeElement||d.body}catch{return d.body}}var Rf=/[\n"\\]/g;function tn(d){return d.replace(Rf,function(y){return"\\"+y.charCodeAt(0).toString(16)+" "})}function kf(d,y,x,C,N,P,X,re){d.name="",X!=null&&typeof X!="function"&&typeof X!="symbol"&&typeof X!="boolean"?d.type=X:d.removeAttribute("type"),y!=null?X==="number"?(y===0&&d.value===""||d.value!=y)&&(d.value=""+R4(y)):d.value!==""+R4(y)&&(d.value=""+R4(y)):X!=="submit"&&X!=="reset"||d.removeAttribute("value"),y!=null?$8(d,X,R4(y)):x!=null?$8(d,X,R4(x)):C!=null&&d.removeAttribute("value"),N==null&&P!=null&&(d.defaultChecked=!!P),N!=null&&(d.checked=N&&typeof N!="function"&&typeof N!="symbol"),re!=null&&typeof re!="function"&&typeof re!="symbol"&&typeof re!="boolean"?d.name=""+R4(re):d.removeAttribute("name")}function Nf(d,y,x,C,N,P,X,re){if(P!=null&&typeof P!="function"&&typeof P!="symbol"&&typeof P!="boolean"&&(d.type=P),y!=null||x!=null){if(!(P!=="submit"&&P!=="reset"||y!=null))return;x=x!=null?""+R4(x):"",y=y!=null?""+R4(y):x,re||y===d.value||(d.value=y),d.defaultValue=y}C=C??N,C=typeof C!="function"&&typeof C!="symbol"&&!!C,d.checked=re?d.checked:!!C,d.defaultChecked=!!C,X!=null&&typeof X!="function"&&typeof X!="symbol"&&typeof X!="boolean"&&(d.name=X)}function $8(d,y,x){y==="number"&&$5(d.ownerDocument)===d||d.defaultValue===""+x||(d.defaultValue=""+x)}function $r(d,y,x,C){if(d=d.options,y){y={};for(var N=0;N<x.length;N++)y["$"+x[N]]=!0;for(x=0;x<d.length;x++)N=y.hasOwnProperty("$"+d[x].value),d[x].selected!==N&&(d[x].selected=N),N&&C&&(d[x].defaultSelected=!0)}else{for(x=""+R4(x),y=null,N=0;N<d.length;N++){if(d[N].value===x){d[N].selected=!0,C&&(d[N].defaultSelected=!0);return}y!==null||d[N].disabled||(y=d[N])}y!==null&&(y.selected=!0)}}function Bf(d,y,x){if(y!=null&&(y=""+R4(y),y!==d.value&&(d.value=y),x==null)){d.defaultValue!==y&&(d.defaultValue=y);return}d.defaultValue=x!=null?""+R4(x):""}function Pf(d,y,x,C){if(y==null){if(C!=null){if(x!=null)throw Error(l(92));if(J(C)){if(1<C.length)throw Error(l(93));C=C[0]}x=C}x==null&&(x=""),y=x}x=R4(y),d.defaultValue=x,C=d.textContent,C===x&&C!==""&&C!==null&&(d.value=C)}function Fi(d,y){if(y){var x=d.firstChild;if(x&&x===d.lastChild&&x.nodeType===3){x.nodeValue=y;return}}d.textContent=y}var Eb=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function jf(d,y,x){var C=y.indexOf("--")===0;x==null||typeof x=="boolean"||x===""?C?d.setProperty(y,""):y==="float"?d.cssFloat="":d[y]="":C?d.setProperty(y,x):typeof x!="number"||x===0||Eb.has(y)?y==="float"?d.cssFloat=x:d[y]=(""+x).trim():d[y]=x+"px"}function d9(d,y,x){if(y!=null&&typeof y!="object")throw Error(l(62));if(d=d.style,x!=null){for(var C in x)!x.hasOwnProperty(C)||y!=null&&y.hasOwnProperty(C)||(C.indexOf("--")===0?d.setProperty(C,""):C==="float"?d.cssFloat="":d[C]="");for(var N in y)C=y[N],y.hasOwnProperty(N)&&x[N]!==C&&jf(d,N,C)}else for(var P in y)y.hasOwnProperty(P)&&jf(d,P,y[P])}function lo(d){if(d.indexOf("-")===-1)return!1;switch(d){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var U8=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["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"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["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"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["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"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),Sb=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function G8(d){return Sb.test(""+d)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":d}var h9=null;function zi(d){return d=d.target||d.srcElement||window,d.correspondingUseElement&&(d=d.correspondingUseElement),d.nodeType===3?d.parentNode:d}var qi=null,so=null;function Sy(d){var y=c3(d);if(y&&(d=y.stateNode)){var x=d[L3]||null;e:switch(d=y.stateNode,y.type){case"input":if(kf(d,x.value,x.defaultValue,x.defaultValue,x.checked,x.defaultChecked,x.type,x.name),y=x.name,x.type==="radio"&&y!=null){for(x=d;x.parentNode;)x=x.parentNode;for(x=x.querySelectorAll('input[name="'+tn(""+y)+'"][type="radio"]'),y=0;y<x.length;y++){var C=x[y];if(C!==d&&C.form===d.form){var N=C[L3]||null;if(!N)throw Error(l(90));kf(C,N.value,N.defaultValue,N.defaultValue,N.checked,N.defaultChecked,N.type,N.name)}}for(y=0;y<x.length;y++)C=x[y],C.form===d.form&&oo(C)}break e;case"textarea":Bf(d,x.value,x.defaultValue);break e;case"select":y=x.value,y!=null&&$r(d,!!x.multiple,y,!1)}}}var If=!1;function My(d,y,x){if(If)return d(y,x);If=!0;try{var C=d(y);return C}finally{if(If=!1,(qi!==null||so!==null)&&(Bl(),qi&&(y=qi,d=so,so=qi=null,Sy(y),d)))for(y=0;y<d.length;y++)Sy(d[y])}}function U5(d,y){var x=d.stateNode;if(x===null)return null;var C=x[L3]||null;if(C===null)return null;x=C[y];e:switch(y){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(C=!C.disabled)||(d=d.type,C=!(d==="button"||d==="input"||d==="select"||d==="textarea")),d=!C;break e;default:d=!1}if(d)return null;if(x&&typeof x!="function")throw Error(l(231,y,typeof x));return x}var Wn=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),p9=!1;if(Wn)try{var uo={};Object.defineProperty(uo,"passive",{get:function(){p9=!0}}),window.addEventListener("test",uo,uo),window.removeEventListener("test",uo,uo)}catch{p9=!1}var nn=null,m9=null,$i=null;function Z8(){if($i)return $i;var d,y=m9,x=y.length,C,N="value"in nn?nn.value:nn.textContent,P=N.length;for(d=0;d<x&&y[d]===N[d];d++);var X=x-d;for(C=1;C<=X&&y[x-C]===N[P-C];C++);return $i=N.slice(d,1<C?1-C:void 0)}function X8(d){var y=d.keyCode;return"charCode"in d?(d=d.charCode,d===0&&y===13&&(d=13)):d=y,d===10&&(d=13),32<=d||d===13?d:0}function T3(){return!0}function Ay(){return!1}function x3(d){function y(x,C,N,P,X){this._reactName=x,this._targetInst=N,this.type=C,this.nativeEvent=P,this.target=X,this.currentTarget=null;for(var re in d)d.hasOwnProperty(re)&&(x=d[re],this[re]=x?x(P):P[re]);return this.isDefaultPrevented=(P.defaultPrevented!=null?P.defaultPrevented:P.returnValue===!1)?T3:Ay,this.isPropagationStopped=Ay,this}return Q(y.prototype,{preventDefault:function(){this.defaultPrevented=!0;var x=this.nativeEvent;x&&(x.preventDefault?x.preventDefault():typeof x.returnValue!="unknown"&&(x.returnValue=!1),this.isDefaultPrevented=T3)},stopPropagation:function(){var x=this.nativeEvent;x&&(x.stopPropagation?x.stopPropagation():typeof x.cancelBubble!="unknown"&&(x.cancelBubble=!0),this.isPropagationStopped=T3)},persist:function(){},isPersistent:T3}),y}var Ur={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(d){return d.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},W8=x3(Ur),Y8=Q({},Ur,{view:0,detail:0}),Mb=x3(Y8),y9,Ff,co,g9=Q({},Y8,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:v9,button:0,buttons:0,relatedTarget:function(d){return d.relatedTarget===void 0?d.fromElement===d.srcElement?d.toElement:d.fromElement:d.relatedTarget},movementX:function(d){return"movementX"in d?d.movementX:(d!==co&&(co&&d.type==="mousemove"?(y9=d.screenX-co.screenX,Ff=d.screenY-co.screenY):Ff=y9=0,co=d),y9)},movementY:function(d){return"movementY"in d?d.movementY:Ff}}),K8=x3(g9),_y=Q({},g9,{dataTransfer:0}),Oy=x3(_y),Cy=Q({},Y8,{relatedTarget:0}),zf=x3(Cy),Ab=Q({},Ur,{animationName:0,elapsedTime:0,pseudoElement:0}),_b=x3(Ab),Ob=Q({},Ur,{clipboardData:function(d){return"clipboardData"in d?d.clipboardData:window.clipboardData}}),Cb=x3(Ob),J8=Q({},Ur,{data:0}),qf=x3(J8),wy={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Vy={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},Dy={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function $f(d){var y=this.nativeEvent;return y.getModifierState?y.getModifierState(d):(d=Dy[d])?!!y[d]:!1}function v9(){return $f}var Ui=Q({},Y8,{key:function(d){if(d.key){var y=wy[d.key]||d.key;if(y!=="Unidentified")return y}return d.type==="keypress"?(d=X8(d),d===13?"Enter":String.fromCharCode(d)):d.type==="keydown"||d.type==="keyup"?Vy[d.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:v9,charCode:function(d){return d.type==="keypress"?X8(d):0},keyCode:function(d){return d.type==="keydown"||d.type==="keyup"?d.keyCode:0},which:function(d){return d.type==="keypress"?X8(d):d.type==="keydown"||d.type==="keyup"?d.keyCode:0}}),Gi=x3(Ui),Yn=Q({},g9,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),a4=x3(Yn),L9=Q({},Y8,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:v9}),x9=x3(L9),Uf=Q({},Ur,{propertyName:0,elapsedTime:0,pseudoElement:0}),o4=x3(Uf),Ry=Q({},g9,{deltaX:function(d){return"deltaX"in d?d.deltaX:"wheelDeltaX"in d?-d.wheelDeltaX:0},deltaY:function(d){return"deltaY"in d?d.deltaY:"wheelDeltaY"in d?-d.wheelDeltaY:"wheelDelta"in d?-d.wheelDelta:0},deltaZ:0,deltaMode:0}),b9=x3(Ry),Zi=Q({},Ur,{newState:0,oldState:0}),Gf=x3(Zi),ky=[9,13,27,32],H9=Wn&&"CompositionEvent"in window,Xi=null;Wn&&"documentMode"in document&&(Xi=document.documentMode);var wb=Wn&&"TextEvent"in window&&!Xi,E9=Wn&&(!H9||Xi&&8<Xi&&11>=Xi),N6=" ",Zf=!1;function S9(d,y){switch(d){case"keyup":return ky.indexOf(y.keyCode)!==-1;case"keydown":return y.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function el(d){return d=d.detail,typeof d=="object"&&"data"in d?d.data:null}var rn=!1;function Xf(d,y){switch(d){case"compositionend":return el(y);case"keypress":return y.which!==32?null:(Zf=!0,N6);case"textInput":return d=y.data,d===N6&&Zf?null:d;default:return null}}function Wf(d,y){if(rn)return d==="compositionend"||!H9&&S9(d,y)?(d=Z8(),$i=m9=nn=null,rn=!1,d):null;switch(d){case"paste":return null;case"keypress":if(!(y.ctrlKey||y.altKey||y.metaKey)||y.ctrlKey&&y.altKey){if(y.char&&1<y.char.length)return y.char;if(y.which)return String.fromCharCode(y.which)}return null;case"compositionend":return E9&&y.locale!=="ko"?null:y.data;default:return null}}var Wi={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Yf(d){var y=d&&d.nodeName&&d.nodeName.toLowerCase();return y==="input"?!!Wi[d.type]:y==="textarea"}function M9(d,y,x,C){qi?so?so.push(C):so=[C]:qi=C,y=v0(y,"onChange"),0<y.length&&(x=new W8("onChange","change",null,x,C),d.push({event:x,listeners:y}))}var Yi=null,Kn=null;function Ki(d){hr(d,0)}function To(d){var y=to(d);if(oo(y))return d}function Gr(d,y){if(d==="change")return y}var Kf=!1;if(Wn){var A9;if(Wn){var Ji="oninput"in document;if(!Ji){var Qo=document.createElement("div");Qo.setAttribute("oninput","return;"),Ji=typeof Qo.oninput=="function"}A9=Ji}else A9=!1;Kf=A9&&(!document.documentMode||9<document.documentMode)}function Jf(){Yi&&(Yi.detachEvent("onpropertychange",fo),Kn=Yi=null)}function fo(d){if(d.propertyName==="value"&&To(Kn)){var y=[];M9(y,Kn,d,zi(d)),My(Ki,y)}}function Ny(d,y,x){d==="focusin"?(Jf(),Yi=y,Kn=x,Yi.attachEvent("onpropertychange",fo)):d==="focusout"&&Jf()}function _9(d){if(d==="selectionchange"||d==="keyup"||d==="keydown")return To(Kn)}function Zr(d,y){if(d==="click")return To(y)}function G5(d,y){if(d==="input"||d==="change")return To(y)}function ed(d,y){return d===y&&(d!==0||1/d===1/y)||d!==d&&y!==y}var N3=typeof Object.is=="function"?Object.is:ed;function Z5(d,y){if(N3(d,y))return!0;if(typeof d!="object"||d===null||typeof y!="object"||y===null)return!1;var x=Object.keys(d),C=Object.keys(y);if(x.length!==C.length)return!1;for(C=0;C<x.length;C++){var N=x[C];if(!ze.call(y,N)||!N3(d[N],y[N]))return!1}return!0}function tl(d){for(;d&&d.firstChild;)d=d.firstChild;return d}function Xr(d,y){var x=tl(d);d=0;for(var C;x;){if(x.nodeType===3){if(C=d+x.textContent.length,d<=y&&C>=y)return{node:x,offset:y-d};d=C}e:{for(;x;){if(x.nextSibling){x=x.nextSibling;break e}x=x.parentNode}x=void 0}x=tl(x)}}function t2(d,y){return d&&y?d===y?!0:d&&d.nodeType===3?!1:y&&y.nodeType===3?t2(d,y.parentNode):"contains"in d?d.contains(y):d.compareDocumentPosition?!!(d.compareDocumentPosition(y)&16):!1:!1}function nl(d){d=d!=null&&d.ownerDocument!=null&&d.ownerDocument.defaultView!=null?d.ownerDocument.defaultView:window;for(var y=$5(d.document);y instanceof d.HTMLIFrameElement;){try{var x=typeof y.contentWindow.location.href=="string"}catch{x=!1}if(x)d=y.contentWindow;else break;y=$5(d.document)}return y}function O9(d){var y=d&&d.nodeName&&d.nodeName.toLowerCase();return y&&(y==="input"&&(d.type==="text"||d.type==="search"||d.type==="tel"||d.type==="url"||d.type==="password")||y==="textarea"||d.contentEditable==="true")}var td=Wn&&"documentMode"in document&&11>=document.documentMode,an=null,ea=null,k4=null,ho=!1;function po(d,y,x){var C=x.window===x?x.document:x.nodeType===9?x:x.ownerDocument;ho||an==null||an!==$5(C)||(C=an,"selectionStart"in C&&O9(C)?C={start:C.selectionStart,end:C.selectionEnd}:(C=(C.ownerDocument&&C.ownerDocument.defaultView||window).getSelection(),C={anchorNode:C.anchorNode,anchorOffset:C.anchorOffset,focusNode:C.focusNode,focusOffset:C.focusOffset}),k4&&Z5(k4,C)||(k4=C,C=v0(ea,"onSelect"),0<C.length&&(y=new W8("onSelect","select",null,y,x),d.push({event:y,listeners:C}),y.target=an)))}function X5(d,y){var x={};return x[d.toLowerCase()]=y.toLowerCase(),x["Webkit"+d]="webkit"+y,x["Moz"+d]="moz"+y,x}var Wr={animationend:X5("Animation","AnimationEnd"),animationiteration:X5("Animation","AnimationIteration"),animationstart:X5("Animation","AnimationStart"),transitionrun:X5("Transition","TransitionRun"),transitionstart:X5("Transition","TransitionStart"),transitioncancel:X5("Transition","TransitionCancel"),transitionend:X5("Transition","TransitionEnd")},C9={},Jn={};Wn&&(Jn=document.createElement("div").style,"AnimationEvent"in window||(delete Wr.animationend.animation,delete Wr.animationiteration.animation,delete Wr.animationstart.animation),"TransitionEvent"in window||delete Wr.transitionend.transition);function b3(d){if(C9[d])return C9[d];if(!Wr[d])return d;var y=Wr[d],x;for(x in y)if(y.hasOwnProperty(x)&&x in Jn)return C9[d]=y[x];return d}var rl=b3("animationend"),By=b3("animationiteration"),nd=b3("animationstart"),Vb=b3("transitionrun"),rd=b3("transitionstart"),w9=b3("transitioncancel"),id=b3("transitionend"),ad=new Map,V9="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");V9.push("scrollEnd");function l4(d,y){ad.set(d,y),Y2(y,[d])}var od=new WeakMap;function N4(d,y){if(typeof d=="object"&&d!==null){var x=od.get(d);return x!==void 0?x:(y={value:d,source:y,stack:qr(y)},od.set(d,y),y)}return{value:d,source:y,stack:qr(y)}}var B4=[],Yr=0,il=0;function e6(){for(var d=Yr,y=il=Yr=0;y<d;){var x=B4[y];B4[y++]=null;var C=B4[y];B4[y++]=null;var N=B4[y];B4[y++]=null;var P=B4[y];if(B4[y++]=null,C!==null&&N!==null){var X=C.pending;X===null?N.next=N:(N.next=X.next,X.next=N),C.pending=N}P!==0&&mo(x,N,P)}}function t6(d,y,x,C){B4[Yr++]=d,B4[Yr++]=y,B4[Yr++]=x,B4[Yr++]=C,il|=C,d.lanes|=C,d=d.alternate,d!==null&&(d.lanes|=C)}function ta(d,y,x,C){return t6(d,y,x,C),Kr(d)}function W5(d,y){return t6(d,null,null,y),Kr(d)}function mo(d,y,x){d.lanes|=x;var C=d.alternate;C!==null&&(C.lanes|=x);for(var N=!1,P=d.return;P!==null;)P.childLanes|=x,C=P.alternate,C!==null&&(C.childLanes|=x),P.tag===22&&(d=P.stateNode,d===null||d._visibility&1||(N=!0)),d=P,P=P.return;return d.tag===3?(P=d.stateNode,N&&y!==null&&(N=31-et(x),d=P.hiddenUpdates,C=d[N],C===null?d[N]=[y]:C.push(y),y.lane=x|536870912),P):null}function Kr(d){if(50<Wo)throw Wo=0,vu=null,Error(l(185));for(var y=d.return;y!==null;)d=y,y=d.return;return d.tag===3?d.stateNode:null}var na={};function Db(d,y,x,C){this.tag=d,this.key=x,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=y,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=C,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function s4(d,y,x,C){return new Db(d,y,x,C)}function D9(d){return d=d.prototype,!(!d||!d.isReactComponent)}function n6(d,y){var x=d.alternate;return x===null?(x=s4(d.tag,y,d.key,d.mode),x.elementType=d.elementType,x.type=d.type,x.stateNode=d.stateNode,x.alternate=d,d.alternate=x):(x.pendingProps=y,x.type=d.type,x.flags=0,x.subtreeFlags=0,x.deletions=null),x.flags=d.flags&65011712,x.childLanes=d.childLanes,x.lanes=d.lanes,x.child=d.child,x.memoizedProps=d.memoizedProps,x.memoizedState=d.memoizedState,x.updateQueue=d.updateQueue,y=d.dependencies,x.dependencies=y===null?null:{lanes:y.lanes,firstContext:y.firstContext},x.sibling=d.sibling,x.index=d.index,x.ref=d.ref,x.refCleanup=d.refCleanup,x}function R9(d,y){d.flags&=65011714;var x=d.alternate;return x===null?(d.childLanes=0,d.lanes=y,d.child=null,d.subtreeFlags=0,d.memoizedProps=null,d.memoizedState=null,d.updateQueue=null,d.dependencies=null,d.stateNode=null):(d.childLanes=x.childLanes,d.lanes=x.lanes,d.child=x.child,d.subtreeFlags=0,d.deletions=null,d.memoizedProps=x.memoizedProps,d.memoizedState=x.memoizedState,d.updateQueue=x.updateQueue,d.type=x.type,y=x.dependencies,d.dependencies=y===null?null:{lanes:y.lanes,firstContext:y.firstContext}),d}function qt(d,y,x,C,N,P){var X=0;if(C=d,typeof d=="function")D9(d)&&(X=1);else if(typeof d=="string")X=Lg(d,x,de.current)?26:d==="html"||d==="head"||d==="body"?27:5;else e:switch(d){case B:return d=s4(31,x,y,N),d.elementType=B,d.lanes=P,d;case g:return Ze(x.children,N,P,y);case v:X=8,N|=24;break;case b:return d=s4(12,x,y,N|2),d.elementType=b,d.lanes=P,d;case E:return d=s4(13,x,y,N),d.elementType=E,d.lanes=P,d;case A:return d=s4(19,x,y,N),d.elementType=A,d.lanes=P,d;default:if(typeof d=="object"&&d!==null)switch(d.$$typeof){case L:case _:X=10;break e;case S:X=9;break e;case O:X=11;break e;case V:X=14;break e;case k:X=16,C=null;break e}X=29,x=Error(l(130,d===null?"null":typeof d,"")),C=null}return y=s4(X,x,y,N),y.elementType=d,y.type=C,y.lanes=P,y}function Ze(d,y,x,C){return d=s4(7,d,C,y),d.lanes=x,d}function Jr(d,y,x){return d=s4(6,d,null,y),d.lanes=x,d}function yo(d,y,x){return y=s4(4,d.children!==null?d.children:[],d.key,y),y.lanes=x,y.stateNode={containerInfo:d.containerInfo,pendingChildren:null,implementation:d.implementation},y}var Z1=[],e0=0,go=null,al=0,u4=[],on=0,Y5=null,r6=1,i6="";function w2(d,y){Z1[e0++]=al,Z1[e0++]=go,go=d,al=y}function S1(d,y,x){u4[on++]=r6,u4[on++]=i6,u4[on++]=Y5,Y5=d;var C=r6;d=i6;var N=32-et(C)-1;C&=~(1<<N),x+=1;var P=32-et(y)+N;if(30<P){var X=N-N%5;P=(C&(1<<X)-1).toString(32),C>>=X,N-=X,r6=1<<32-et(y)+N|x<<N|C,i6=P+d}else r6=1<<P|x<<N|C,i6=d}function ol(d){d.return!==null&&(w2(d,1),S1(d,1,0))}function ra(d){for(;d===go;)go=Z1[--e0],Z1[e0]=null,al=Z1[--e0],Z1[e0]=null;for(;d===Y5;)Y5=u4[--on],u4[on]=null,i6=u4[--on],u4[on]=null,r6=u4[--on],u4[on]=null}var y2=null,B1=null,$t=!1,K5=null,B3=!1,ll=Error(l(519));function a6(d){var y=Error(l(418,""));throw xo(N4(y,d)),ll}function k9(d){var y=d.stateNode,x=d.type,C=d.memoizedProps;switch(y[$1]=d,y[L3]=C,x){case"dialog":Pt("cancel",y),Pt("close",y);break;case"iframe":case"object":case"embed":Pt("load",y);break;case"video":case"audio":for(x=0;x<Vt.length;x++)Pt(Vt[x],y);break;case"source":Pt("error",y);break;case"img":case"image":case"link":Pt("error",y),Pt("load",y);break;case"details":Pt("toggle",y);break;case"input":Pt("invalid",y),Nf(y,C.value,C.defaultValue,C.checked,C.defaultChecked,C.type,C.name,!0),ao(y);break;case"select":Pt("invalid",y);break;case"textarea":Pt("invalid",y),Pf(y,C.value,C.defaultValue,C.children),ao(y)}x=C.children,typeof x!="string"&&typeof x!="number"&&typeof x!="bigint"||y.textContent===""+x||C.suppressHydrationWarning===!0||yg(y.textContent,x)?(C.popover!=null&&(Pt("beforetoggle",y),Pt("toggle",y)),C.onScroll!=null&&Pt("scroll",y),C.onScrollEnd!=null&&Pt("scrollend",y),C.onClick!=null&&(y.onclick=Ul),y=!0):y=!1,y||a6(d)}function sl(d){for(y2=d.return;y2;)switch(y2.tag){case 5:case 13:B3=!1;return;case 27:case 3:B3=!0;return;default:y2=y2.return}}function vo(d){if(d!==y2)return!1;if(!$t)return sl(d),$t=!0,!1;var y=d.tag,x;if((x=y!==3&&y!==27)&&((x=y===5)&&(x=d.type,x=!(x!=="form"&&x!=="button")||La(d.type,d.memoizedProps)),x=!x),x&&B1&&a6(d),sl(d),y===13){if(d=d.memoizedState,d=d!==null?d.dehydrated:null,!d)throw Error(l(317));e:{for(d=d.nextSibling,y=0;d;){if(d.nodeType===8)if(x=d.data,x==="/$"){if(y===0){B1=y6(d.nextSibling);break e}y--}else x!=="$"&&x!=="$!"&&x!=="$?"||y++;d=d.nextSibling}B1=null}}else y===27?(y=B1,d3(d.type)?(d=Sh,Sh=null,B1=d):B1=y):B1=y2?y6(d.stateNode.nextSibling):null;return!0}function Lo(){B1=y2=null,$t=!1}function ld(){var d=K5;return d!==null&&(j3===null?j3=d:j3.push.apply(j3,d),K5=null),d}function xo(d){K5===null?K5=[d]:K5.push(d)}var N9=z(null),J5=null,o6=null;function B6(d,y,x){U(N9,y._currentValue),y._currentValue=x}function P6(d){d._currentValue=N9.current,ee(N9)}function B9(d,y,x){for(;d!==null;){var C=d.alternate;if((d.childLanes&y)!==y?(d.childLanes|=y,C!==null&&(C.childLanes|=y)):C!==null&&(C.childLanes&y)!==y&&(C.childLanes|=y),d===x)break;d=d.return}}function P9(d,y,x,C){var N=d.child;for(N!==null&&(N.return=d);N!==null;){var P=N.dependencies;if(P!==null){var X=N.child;P=P.firstContext;e:for(;P!==null;){var re=P;P=N;for(var ce=0;ce<y.length;ce++)if(re.context===y[ce]){P.lanes|=x,re=P.alternate,re!==null&&(re.lanes|=x),B9(P.return,x,d),C||(X=null);break e}P=re.next}}else if(N.tag===18){if(X=N.return,X===null)throw Error(l(341));X.lanes|=x,P=X.alternate,P!==null&&(P.lanes|=x),B9(X,x,d),X=null}else X=N.child;if(X!==null)X.return=N;else for(X=N;X!==null;){if(X===d){X=null;break}if(N=X.sibling,N!==null){N.return=X.return,X=N;break}X=X.return}N=X}}function ul(d,y,x,C){d=null;for(var N=y,P=!1;N!==null;){if(!P){if((N.flags&524288)!==0)P=!0;else if((N.flags&262144)!==0)break}if(N.tag===10){var X=N.alternate;if(X===null)throw Error(l(387));if(X=X.memoizedProps,X!==null){var re=N.type;N3(N.pendingProps.value,X.value)||(d!==null?d.push(re):d=[re])}}else if(N===se.current){if(X=N.alternate,X===null)throw Error(l(387));X.memoizedState.memoizedState!==N.memoizedState.memoizedState&&(d!==null?d.push(p3):d=[p3])}N=N.return}d!==null&&P9(y,d,x,C),y.flags|=262144}function cl(d){for(d=d.firstContext;d!==null;){if(!N3(d.context._currentValue,d.memoizedValue))return!0;d=d.next}return!1}function t0(d){J5=d,o6=null,d=d.dependencies,d!==null&&(d.firstContext=null)}function Q3(d){return sd(J5,d)}function bo(d,y){return J5===null&&t0(d),sd(d,y)}function sd(d,y){var x=y._currentValue;if(y={context:y,memoizedValue:x,next:null},o6===null){if(d===null)throw Error(l(308));o6=y,d.dependencies={lanes:0,firstContext:y},d.flags|=524288}else o6=o6.next=y;return x}var Py=typeof AbortController<"u"?AbortController:function(){var d=[],y=this.signal={aborted:!1,addEventListener:function(x,C){d.push(C)}};this.abort=function(){y.aborted=!0,d.forEach(function(x){return x()})}},Ho=e.unstable_scheduleCallback,j9=e.unstable_NormalPriority,V2={$$typeof:_,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function ud(){return{controller:new Py,data:new Map,refCount:0}}function n0(d){d.refCount--,d.refCount===0&&Ho(j9,function(){d.controller.abort()})}var j6=null,Eo=0,r0=0,ln=null;function c4(d,y){if(j6===null){var x=j6=[];Eo=0,r0=Ou(),ln={status:"pending",value:void 0,then:function(C){x.push(C)}}}return Eo++,y.then(Tl,Tl),y}function Tl(){if(--Eo===0&&j6!==null){ln!==null&&(ln.status="fulfilled");var d=j6;j6=null,r0=0,ln=null;for(var y=0;y<d.length;y++)(0,d[y])()}}function cd(d,y){var x=[],C={status:"pending",value:null,reason:null,then:function(N){x.push(N)}};return d.then(function(){C.status="fulfilled",C.value=y;for(var N=0;N<x.length;N++)(0,x[N])(y)},function(N){for(C.status="rejected",C.reason=N,N=0;N<x.length;N++)(0,x[N])(void 0)}),C}var Td=W.S;W.S=function(d,y){typeof y=="object"&&y!==null&&typeof y.then=="function"&&c4(d,y),Td!==null&&Td(d,y)};var er=z(null);function So(){var d=er.current;return d!==null?d:j1.pooledCache}function Mo(d,y){y===null?U(er,er.current):U(er,y.pool)}function Ql(){var d=So();return d===null?null:{parent:V2._currentValue,pool:d}}var ia=Error(l(460)),fl=Error(l(474)),Ao=Error(l(542)),I9={then:function(){}};function Qd(d){return d=d.status,d==="fulfilled"||d==="rejected"}function _o(){}function fd(d,y,x){switch(x=d[x],x===void 0?d.push(y):x!==y&&(y.then(_o,_o),y=x),y.status){case"fulfilled":return y.value;case"rejected":throw d=y.reason,dd(d),d;default:if(typeof y.status=="string")y.then(_o,_o);else{if(d=j1,d!==null&&100<d.shellSuspendCounter)throw Error(l(482));d=y,d.status="pending",d.then(function(C){if(y.status==="pending"){var N=y;N.status="fulfilled",N.value=C}},function(C){if(y.status==="pending"){var N=y;N.status="rejected",N.reason=C}})}switch(y.status){case"fulfilled":return y.value;case"rejected":throw d=y.reason,dd(d),d}throw Oo=y,ia}}var Oo=null;function F9(){if(Oo===null)throw Error(l(459));var d=Oo;return Oo=null,d}function dd(d){if(d===ia||d===Ao)throw Error(l(483))}var tr=!1;function dl(d){d.updateQueue={baseState:d.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function z9(d,y){d=d.updateQueue,y.updateQueue===d&&(y.updateQueue={baseState:d.baseState,firstBaseUpdate:d.firstBaseUpdate,lastBaseUpdate:d.lastBaseUpdate,shared:d.shared,callbacks:null})}function nr(d){return{lane:d,tag:0,payload:null,callback:null,next:null}}function T4(d,y,x){var C=d.updateQueue;if(C===null)return null;if(C=C.shared,(M1&2)!==0){var N=C.pending;return N===null?y.next=y:(y.next=N.next,N.next=y),C.pending=y,y=Kr(d),mo(d,null,x),y}return t6(d,C,y,x),Kr(d)}function aa(d,y,x){if(y=y.updateQueue,y!==null&&(y=y.shared,(x&4194048)!==0)){var C=y.lanes;C&=d.pendingLanes,x|=C,y.lanes=x,Xt(d,x)}}function hl(d,y){var x=d.updateQueue,C=d.alternate;if(C!==null&&(C=C.updateQueue,x===C)){var N=null,P=null;if(x=x.firstBaseUpdate,x!==null){do{var X={lane:x.lane,tag:x.tag,payload:x.payload,callback:null,next:null};P===null?N=P=X:P=P.next=X,x=x.next}while(x!==null);P===null?N=P=y:P=P.next=y}else N=P=y;x={baseState:C.baseState,firstBaseUpdate:N,lastBaseUpdate:P,shared:C.shared,callbacks:C.callbacks},d.updateQueue=x;return}d=x.lastBaseUpdate,d===null?x.firstBaseUpdate=y:d.next=y,x.lastBaseUpdate=y}var hd=!1;function pl(){if(hd){var d=ln;if(d!==null)throw d}}function Co(d,y,x,C){hd=!1;var N=d.updateQueue;tr=!1;var P=N.firstBaseUpdate,X=N.lastBaseUpdate,re=N.shared.pending;if(re!==null){N.shared.pending=null;var ce=re,Me=ce.next;ce.next=null,X===null?P=Me:X.next=Me,X=ce;var Fe=d.alternate;Fe!==null&&(Fe=Fe.updateQueue,re=Fe.lastBaseUpdate,re!==X&&(re===null?Fe.firstBaseUpdate=Me:re.next=Me,Fe.lastBaseUpdate=ce))}if(P!==null){var $e=N.baseState;X=0,Fe=Me=ce=null,re=P;do{var Oe=re.lane&-536870913,Re=Oe!==re.lane;if(Re?(T1&Oe)===Oe:(C&Oe)===Oe){Oe!==0&&Oe===r0&&(hd=!0),Fe!==null&&(Fe=Fe.next={lane:0,tag:re.tag,payload:re.payload,callback:null,next:null});e:{var Mt=d,Lt=re;Oe=y;var H1=x;switch(Lt.tag){case 1:if(Mt=Lt.payload,typeof Mt=="function"){$e=Mt.call(H1,$e,Oe);break e}$e=Mt;break e;case 3:Mt.flags=Mt.flags&-65537|128;case 0:if(Mt=Lt.payload,Oe=typeof Mt=="function"?Mt.call(H1,$e,Oe):Mt,Oe==null)break e;$e=Q({},$e,Oe);break e;case 2:tr=!0}}Oe=re.callback,Oe!==null&&(d.flags|=64,Re&&(d.flags|=8192),Re=N.callbacks,Re===null?N.callbacks=[Oe]:Re.push(Oe))}else Re={lane:Oe,tag:re.tag,payload:re.payload,callback:re.callback,next:null},Fe===null?(Me=Fe=Re,ce=$e):Fe=Fe.next=Re,X|=Oe;if(re=re.next,re===null){if(re=N.shared.pending,re===null)break;Re=re,re=Re.next,Re.next=null,N.lastBaseUpdate=Re,N.shared.pending=null}}while(!0);Fe===null&&(ce=$e),N.baseState=ce,N.firstBaseUpdate=Me,N.lastBaseUpdate=Fe,P===null&&(N.shared.lanes=0),f0|=X,d.lanes=X,d.memoizedState=$e}}function wo(d,y){if(typeof d!="function")throw Error(l(191,d));d.call(y)}function q9(d,y){var x=d.callbacks;if(x!==null)for(d.callbacks=null,d=0;d<x.length;d++)wo(x[d],y)}var rr=z(null),ml=z(0);function pd(d,y){d=Qr,U(ml,d),U(rr,y),Qr=d|y.baseLanes}function z2(){U(ml,Qr),U(rr,rr.current)}function Vo(){Qr=ml.current,ee(rr),ee(ml)}var l6=0,Nt=null,x1=null,d2=null,oa=!1,la=!1,Q4=!1,yl=0,sn=0,f4=null,$9=0;function h2(){throw Error(l(321))}function gl(d,y){if(y===null)return!1;for(var x=0;x<y.length&&x<d.length;x++)if(!N3(d[x],y[x]))return!1;return!0}function U9(d,y,x,C,N,P){return l6=P,Nt=y,y.memoizedState=null,y.updateQueue=null,y.lanes=0,W.H=d===null||d.memoizedState===null?Gy:Rd,Q4=!1,P=x(C,N),Q4=!1,la&&(P=i0(y,x,C,N)),md(d),P}function md(d){W.H=_l;var y=x1!==null&&x1.next!==null;if(l6=0,d2=x1=Nt=null,oa=!1,sn=0,f4=null,y)throw Error(l(300));d===null||Jt||(d=d.dependencies,d!==null&&cl(d)&&(Jt=!0))}function i0(d,y,x,C){Nt=d;var N=0;do{if(la&&(f4=null),sn=0,la=!1,25<=N)throw Error(l(301));if(N+=1,d2=x1=null,d.updateQueue!=null){var P=d.updateQueue;P.lastEffect=null,P.events=null,P.stores=null,P.memoCache!=null&&(P.memoCache.index=0)}W.H=Zy,P=y(x,C)}while(la);return P}function jy(){var d=W.H,y=d.useState()[0];return y=typeof y.then=="function"?sa(y):y,d=d.useState()[0],(x1!==null?x1.memoizedState:null)!==d&&(Nt.flags|=1024),y}function G9(){var d=yl!==0;return yl=0,d}function Z9(d,y,x){y.updateQueue=d.updateQueue,y.flags&=-2053,d.lanes&=~x}function Do(d){if(oa){for(d=d.memoizedState;d!==null;){var y=d.queue;y!==null&&(y.pending=null),d=d.next}oa=!1}l6=0,d2=x1=Nt=null,la=!1,sn=yl=0,f4=null}function P3(){var d={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return d2===null?Nt.memoizedState=d2=d:d2=d2.next=d,d2}function g2(){if(x1===null){var d=Nt.alternate;d=d!==null?d.memoizedState:null}else d=x1.next;var y=d2===null?Nt.memoizedState:d2.next;if(y!==null)d2=y,x1=d;else{if(d===null)throw Nt.alternate===null?Error(l(467)):Error(l(310));x1=d,d={memoizedState:x1.memoizedState,baseState:x1.baseState,baseQueue:x1.baseQueue,queue:x1.queue,next:null},d2===null?Nt.memoizedState=d2=d:d2=d2.next=d}return d2}function vl(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function sa(d){var y=sn;return sn+=1,f4===null&&(f4=[]),d=fd(f4,d,y),y=Nt,(d2===null?y.memoizedState:d2.next)===null&&(y=y.alternate,W.H=y===null||y.memoizedState===null?Gy:Rd),d}function X9(d){if(d!==null&&typeof d=="object"){if(typeof d.then=="function")return sa(d);if(d.$$typeof===_)return Q3(d)}throw Error(l(438,String(d)))}function q2(d){var y=null,x=Nt.updateQueue;if(x!==null&&(y=x.memoCache),y==null){var C=Nt.alternate;C!==null&&(C=C.updateQueue,C!==null&&(C=C.memoCache,C!=null&&(y={data:C.data.map(function(N){return N.slice()}),index:0})))}if(y==null&&(y={data:[],index:0}),x===null&&(x=vl(),Nt.updateQueue=x),x.memoCache=y,x=y.data[y.index],x===void 0)for(x=y.data[y.index]=Array(d),C=0;C<d;C++)x[C]=R;return y.index++,x}function I6(d,y){return typeof y=="function"?y(d):y}function Ll(d){var y=g2();return W9(y,x1,d)}function W9(d,y,x){var C=d.queue;if(C===null)throw Error(l(311));C.lastRenderedReducer=x;var N=d.baseQueue,P=C.pending;if(P!==null){if(N!==null){var X=N.next;N.next=P.next,P.next=X}y.baseQueue=N=P,C.pending=null}if(P=d.baseState,N===null)d.memoizedState=P;else{y=N.next;var re=X=null,ce=null,Me=y,Fe=!1;do{var $e=Me.lane&-536870913;if($e!==Me.lane?(T1&$e)===$e:(l6&$e)===$e){var Oe=Me.revertLane;if(Oe===0)ce!==null&&(ce=ce.next={lane:0,revertLane:0,action:Me.action,hasEagerState:Me.hasEagerState,eagerState:Me.eagerState,next:null}),$e===r0&&(Fe=!0);else if((l6&Oe)===Oe){Me=Me.next,Oe===r0&&(Fe=!0);continue}else $e={lane:0,revertLane:Me.revertLane,action:Me.action,hasEagerState:Me.hasEagerState,eagerState:Me.eagerState,next:null},ce===null?(re=ce=$e,X=P):ce=ce.next=$e,Nt.lanes|=Oe,f0|=Oe;$e=Me.action,Q4&&x(P,$e),P=Me.hasEagerState?Me.eagerState:x(P,$e)}else Oe={lane:$e,revertLane:Me.revertLane,action:Me.action,hasEagerState:Me.hasEagerState,eagerState:Me.eagerState,next:null},ce===null?(re=ce=Oe,X=P):ce=ce.next=Oe,Nt.lanes|=$e,f0|=$e;Me=Me.next}while(Me!==null&&Me!==y);if(ce===null?X=P:ce.next=re,!N3(P,d.memoizedState)&&(Jt=!0,Fe&&(x=ln,x!==null)))throw x;d.memoizedState=P,d.baseState=X,d.baseQueue=ce,C.lastRenderedState=P}return N===null&&(C.lanes=0),[d.memoizedState,C.dispatch]}function Y9(d){var y=g2(),x=y.queue;if(x===null)throw Error(l(311));x.lastRenderedReducer=d;var C=x.dispatch,N=x.pending,P=y.memoizedState;if(N!==null){x.pending=null;var X=N=N.next;do P=d(P,X.action),X=X.next;while(X!==N);N3(P,y.memoizedState)||(Jt=!0),y.memoizedState=P,y.baseQueue===null&&(y.baseState=P),x.lastRenderedState=P}return[P,C]}function yd(d,y,x){var C=Nt,N=g2(),P=$t;if(P){if(x===void 0)throw Error(l(407));x=x()}else x=y();var X=!N3((x1||N).memoizedState,x);X&&(N.memoizedState=x,Jt=!0),N=N.queue;var re=gd.bind(null,C,N,d);if(ir(2048,8,re,[d]),N.getSnapshot!==y||X||d2!==null&&d2.memoizedState.tag&1){if(C.flags|=2048,a0(9,un(),K9.bind(null,C,N,x,y),null),j1===null)throw Error(l(349));P||(l6&124)!==0||xl(C,y,x)}return x}function xl(d,y,x){d.flags|=16384,d={getSnapshot:y,value:x},y=Nt.updateQueue,y===null?(y=vl(),Nt.updateQueue=y,y.stores=[d]):(x=y.stores,x===null?y.stores=[d]:x.push(d))}function K9(d,y,x,C){y.value=x,y.getSnapshot=C,vd(y)&&Ld(d)}function gd(d,y,x){return x(function(){vd(y)&&Ld(d)})}function vd(d){var y=d.getSnapshot;d=d.value;try{var x=y();return!N3(d,x)}catch{return!0}}function Ld(d){var y=W5(d,2);y!==null&&L4(y,d,2)}function bl(d){var y=P3();if(typeof d=="function"){var x=d;if(d=x(),Q4){Ye(!0);try{x()}finally{Ye(!1)}}}return y.memoizedState=y.baseState=d,y.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:I6,lastRenderedState:d},y}function J9(d,y,x,C){return d.baseState=x,W9(d,x1,typeof C=="function"?C:I6)}function xd(d,y,x,C,N){if(No(d))throw Error(l(485));if(d=y.action,d!==null){var P={payload:N,action:d,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(X){P.listeners.push(X)}};W.T!==null?x(!0):P.isTransition=!1,C(P),x=y.pending,x===null?(P.next=y.pending=P,bd(y,P)):(P.next=x.next,y.pending=x.next=P)}}function bd(d,y){var x=y.action,C=y.payload,N=d.state;if(y.isTransition){var P=W.T,X={};W.T=X;try{var re=x(N,C),ce=W.S;ce!==null&&ce(X,re),eu(d,y,re)}catch(Me){El(d,y,Me)}finally{W.T=P}}else try{P=x(N,C),eu(d,y,P)}catch(Me){El(d,y,Me)}}function eu(d,y,x){x!==null&&typeof x=="object"&&typeof x.then=="function"?x.then(function(C){Hl(d,y,C)},function(C){return El(d,y,C)}):Hl(d,y,x)}function Hl(d,y,x){y.status="fulfilled",y.value=x,Hd(y),d.state=x,y=d.pending,y!==null&&(x=y.next,x===y?d.pending=null:(x=x.next,y.next=x,bd(d,x)))}function El(d,y,x){var C=d.pending;if(d.pending=null,C!==null){C=C.next;do y.status="rejected",y.reason=x,Hd(y),y=y.next;while(y!==C)}d.action=null}function Hd(d){d=d.listeners;for(var y=0;y<d.length;y++)(0,d[y])()}function Ed(d,y){return y}function tu(d,y){if($t){var x=j1.formState;if(x!==null){e:{var C=Nt;if($t){if(B1){t:{for(var N=B1,P=B3;N.nodeType!==8;){if(!P){N=null;break t}if(N=y6(N.nextSibling),N===null){N=null;break t}}P=N.data,N=P==="F!"||P==="F"?N:null}if(N){B1=y6(N.nextSibling),C=N.data==="F!";break e}}a6(C)}C=!1}C&&(y=x[0])}}return x=P3(),x.memoizedState=x.baseState=y,C={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ed,lastRenderedState:y},x.queue=C,x=iu.bind(null,Nt,C),C.dispatch=x,C=bl(!1),P=Ml.bind(null,Nt,!1,C.queue),C=P3(),N={state:y,dispatch:null,action:d,pending:null},C.queue=N,x=xd.bind(null,Nt,N,P,x),N.dispatch=x,C.memoizedState=d,[y,x,!1]}function Sd(d){var y=g2();return F6(y,x1,d)}function F6(d,y,x){if(y=W9(d,y,Ed)[0],d=Ll(I6)[0],typeof y=="object"&&y!==null&&typeof y.then=="function")try{var C=sa(y)}catch(X){throw X===ia?Ao:X}else C=y;y=g2();var N=y.queue,P=N.dispatch;return x!==y.memoizedState&&(Nt.flags|=2048,a0(9,un(),Md.bind(null,N,x),null)),[C,P,d]}function Md(d,y){d.action=y}function Iy(d){var y=g2(),x=x1;if(x!==null)return F6(y,x,d);g2(),y=y.memoizedState,x=g2();var C=x.queue.dispatch;return x.memoizedState=d,[y,C,!1]}function a0(d,y,x,C){return d={tag:d,create:x,deps:C,inst:y,next:null},y=Nt.updateQueue,y===null&&(y=vl(),Nt.updateQueue=y),x=y.lastEffect,x===null?y.lastEffect=d.next=d:(C=x.next,x.next=d,d.next=C,y.lastEffect=d),d}function un(){return{destroy:void 0,resource:void 0}}function Ad(){return g2().memoizedState}function ua(d,y,x,C){var N=P3();C=C===void 0?null:C,Nt.flags|=d,N.memoizedState=a0(1|y,un(),x,C)}function ir(d,y,x,C){var N=g2();C=C===void 0?null:C;var P=N.memoizedState.inst;x1!==null&&C!==null&&gl(C,x1.memoizedState.deps)?N.memoizedState=a0(y,P,x,C):(Nt.flags|=d,N.memoizedState=a0(1|y,P,x,C))}function n2(d,y){ua(8390656,8,d,y)}function Fy(d,y){ir(2048,8,d,y)}function zy(d,y){return ir(4,2,d,y)}function _d(d,y){return ir(4,4,d,y)}function s6(d,y){if(typeof y=="function"){d=d();var x=y(d);return function(){typeof x=="function"?x():y(null)}}if(y!=null)return d=d(),y.current=d,function(){y.current=null}}function Od(d,y,x){x=x!=null?x.concat([d]):null,ir(4,4,s6.bind(null,y,d),x)}function Sl(){}function Ro(d,y){var x=g2();y=y===void 0?null:y;var C=x.memoizedState;return y!==null&&gl(y,C[1])?C[0]:(x.memoizedState=[d,y],d)}function ca(d,y){var x=g2();y=y===void 0?null:y;var C=x.memoizedState;if(y!==null&&gl(y,C[1]))return C[0];if(C=d(),Q4){Ye(!0);try{d()}finally{Ye(!1)}}return x.memoizedState=[C,y],C}function nu(d,y,x){return x===void 0||(l6&1073741824)!==0?d.memoizedState=y:(d.memoizedState=x,d=og(),Nt.lanes|=d,f0|=d,x)}function ru(d,y,x,C){return N3(x,y)?x:rr.current!==null?(d=nu(d,x,C),N3(d,y)||(Jt=!0),d):(l6&42)===0?(Jt=!0,d.memoizedState=x):(d=og(),Nt.lanes|=d,f0|=d,y)}function Cd(d,y,x,C,N){var P=ne.p;ne.p=P!==0&&8>P?P:8;var X=W.T,re={};W.T=re,Ml(d,!1,y,x);try{var ce=N(),Me=W.S;if(Me!==null&&Me(re,ce),ce!==null&&typeof ce=="object"&&typeof ce.then=="function"){var Fe=cd(ce,C);ko(d,y,Fe,z4(d))}else ko(d,y,C,z4(d))}catch($e){ko(d,y,{then:function(){},status:"rejected",reason:$e},z4())}finally{ne.p=P,W.T=X}}function Rb(){}function wd(d,y,x,C){if(d.tag!==5)throw Error(l(476));var N=Vd(d).queue;Cd(d,N,y,K,x===null?Rb:function(){return qy(d),x(C)})}function Vd(d){var y=d.memoizedState;if(y!==null)return y;y={memoizedState:K,baseState:K,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:I6,lastRenderedState:K},next:null};var x={};return y.next={memoizedState:x,baseState:x,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:I6,lastRenderedState:x},next:null},d.memoizedState=y,d=d.alternate,d!==null&&(d.memoizedState=y),y}function qy(d){var y=Vd(d).next.queue;ko(d,y,{},z4())}function Ta(){return Q3(p3)}function u6(){return g2().memoizedState}function Dd(){return g2().memoizedState}function kb(d){for(var y=d.return;y!==null;){switch(y.tag){case 24:case 3:var x=z4();d=nr(x);var C=T4(y,d,x);C!==null&&(L4(C,y,x),aa(C,y,x)),y={cache:ud()},d.payload=y;return}y=y.return}}function $y(d,y,x){var C=z4();x={lane:C,revertLane:0,action:x,hasEagerState:!1,eagerState:null,next:null},No(d)?Al(y,x):(x=ta(d,y,x,C),x!==null&&(L4(x,d,C),Uy(x,y,C)))}function iu(d,y,x){var C=z4();ko(d,y,x,C)}function ko(d,y,x,C){var N={lane:C,revertLane:0,action:x,hasEagerState:!1,eagerState:null,next:null};if(No(d))Al(y,N);else{var P=d.alternate;if(d.lanes===0&&(P===null||P.lanes===0)&&(P=y.lastRenderedReducer,P!==null))try{var X=y.lastRenderedState,re=P(X,x);if(N.hasEagerState=!0,N.eagerState=re,N3(re,X))return t6(d,y,N,0),j1===null&&e6(),!1}catch{}finally{}if(x=ta(d,y,N,C),x!==null)return L4(x,d,C),Uy(x,y,C),!0}return!1}function Ml(d,y,x,C){if(C={lane:2,revertLane:Ou(),action:C,hasEagerState:!1,eagerState:null,next:null},No(d)){if(y)throw Error(l(479))}else y=ta(d,x,C,2),y!==null&&L4(y,d,2)}function No(d){var y=d.alternate;return d===Nt||y!==null&&y===Nt}function Al(d,y){la=oa=!0;var x=d.pending;x===null?y.next=y:(y.next=x.next,x.next=y),d.pending=y}function Uy(d,y,x){if((x&4194048)!==0){var C=y.lanes;C&=d.pendingLanes,x|=C,y.lanes=x,Xt(d,x)}}var _l={readContext:Q3,use:X9,useCallback:h2,useContext:h2,useEffect:h2,useImperativeHandle:h2,useLayoutEffect:h2,useInsertionEffect:h2,useMemo:h2,useReducer:h2,useRef:h2,useState:h2,useDebugValue:h2,useDeferredValue:h2,useTransition:h2,useSyncExternalStore:h2,useId:h2,useHostTransitionStatus:h2,useFormState:h2,useActionState:h2,useOptimistic:h2,useMemoCache:h2,useCacheRefresh:h2},Gy={readContext:Q3,use:X9,useCallback:function(d,y){return P3().memoizedState=[d,y===void 0?null:y],d},useContext:Q3,useEffect:n2,useImperativeHandle:function(d,y,x){x=x!=null?x.concat([d]):null,ua(4194308,4,s6.bind(null,y,d),x)},useLayoutEffect:function(d,y){return ua(4194308,4,d,y)},useInsertionEffect:function(d,y){ua(4,2,d,y)},useMemo:function(d,y){var x=P3();y=y===void 0?null:y;var C=d();if(Q4){Ye(!0);try{d()}finally{Ye(!1)}}return x.memoizedState=[C,y],C},useReducer:function(d,y,x){var C=P3();if(x!==void 0){var N=x(y);if(Q4){Ye(!0);try{x(y)}finally{Ye(!1)}}}else N=y;return C.memoizedState=C.baseState=N,d={pending:null,lanes:0,dispatch:null,lastRenderedReducer:d,lastRenderedState:N},C.queue=d,d=d.dispatch=$y.bind(null,Nt,d),[C.memoizedState,d]},useRef:function(d){var y=P3();return d={current:d},y.memoizedState=d},useState:function(d){d=bl(d);var y=d.queue,x=iu.bind(null,Nt,y);return y.dispatch=x,[d.memoizedState,x]},useDebugValue:Sl,useDeferredValue:function(d,y){var x=P3();return nu(x,d,y)},useTransition:function(){var d=bl(!1);return d=Cd.bind(null,Nt,d.queue,!0,!1),P3().memoizedState=d,[!1,d]},useSyncExternalStore:function(d,y,x){var C=Nt,N=P3();if($t){if(x===void 0)throw Error(l(407));x=x()}else{if(x=y(),j1===null)throw Error(l(349));(T1&124)!==0||xl(C,y,x)}N.memoizedState=x;var P={value:x,getSnapshot:y};return N.queue=P,n2(gd.bind(null,C,P,d),[d]),C.flags|=2048,a0(9,un(),K9.bind(null,C,P,x,y),null),x},useId:function(){var d=P3(),y=j1.identifierPrefix;if($t){var x=i6,C=r6;x=(C&~(1<<32-et(C)-1)).toString(32)+x,y="«"+y+"R"+x,x=yl++,0<x&&(y+="H"+x.toString(32)),y+="»"}else x=$9++,y="«"+y+"r"+x.toString(32)+"»";return d.memoizedState=y},useHostTransitionStatus:Ta,useFormState:tu,useActionState:tu,useOptimistic:function(d){var y=P3();y.memoizedState=y.baseState=d;var x={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return y.queue=x,y=Ml.bind(null,Nt,!0,x),x.dispatch=y,[d,y]},useMemoCache:q2,useCacheRefresh:function(){return P3().memoizedState=kb.bind(null,Nt)}},Rd={readContext:Q3,use:X9,useCallback:Ro,useContext:Q3,useEffect:Fy,useImperativeHandle:Od,useInsertionEffect:zy,useLayoutEffect:_d,useMemo:ca,useReducer:Ll,useRef:Ad,useState:function(){return Ll(I6)},useDebugValue:Sl,useDeferredValue:function(d,y){var x=g2();return ru(x,x1.memoizedState,d,y)},useTransition:function(){var d=Ll(I6)[0],y=g2().memoizedState;return[typeof d=="boolean"?d:sa(d),y]},useSyncExternalStore:yd,useId:u6,useHostTransitionStatus:Ta,useFormState:Sd,useActionState:Sd,useOptimistic:function(d,y){var x=g2();return J9(x,x1,d,y)},useMemoCache:q2,useCacheRefresh:Dd},Zy={readContext:Q3,use:X9,useCallback:Ro,useContext:Q3,useEffect:Fy,useImperativeHandle:Od,useInsertionEffect:zy,useLayoutEffect:_d,useMemo:ca,useReducer:Y9,useRef:Ad,useState:function(){return Y9(I6)},useDebugValue:Sl,useDeferredValue:function(d,y){var x=g2();return x1===null?nu(x,d,y):ru(x,x1.memoizedState,d,y)},useTransition:function(){var d=Y9(I6)[0],y=g2().memoizedState;return[typeof d=="boolean"?d:sa(d),y]},useSyncExternalStore:yd,useId:u6,useHostTransitionStatus:Ta,useFormState:Iy,useActionState:Iy,useOptimistic:function(d,y){var x=g2();return x1!==null?J9(x,x1,d,y):(x.baseState=d,[d,x.queue.dispatch])},useMemoCache:q2,useCacheRefresh:Dd},d4=null,Bo=0;function Ol(d){var y=Bo;return Bo+=1,d4===null&&(d4=[]),fd(d4,d,y)}function Cl(d,y){y=y.props.ref,d.ref=y!==void 0?y:null}function Po(d,y){throw y.$$typeof===f?Error(l(525)):(d=Object.prototype.toString.call(y),Error(l(31,d==="[object Object]"?"object with keys {"+Object.keys(y).join(", ")+"}":d)))}function h4(d){var y=d._init;return y(d._payload)}function kd(d){function y(be,ge){if(d){var Ae=be.deletions;Ae===null?(be.deletions=[ge],be.flags|=16):Ae.push(ge)}}function x(be,ge){if(!d)return null;for(;ge!==null;)y(be,ge),ge=ge.sibling;return null}function C(be){for(var ge=new Map;be!==null;)be.key!==null?ge.set(be.key,be):ge.set(be.index,be),be=be.sibling;return ge}function N(be,ge){return be=n6(be,ge),be.index=0,be.sibling=null,be}function P(be,ge,Ae){return be.index=Ae,d?(Ae=be.alternate,Ae!==null?(Ae=Ae.index,Ae<ge?(be.flags|=67108866,ge):Ae):(be.flags|=67108866,ge)):(be.flags|=1048576,ge)}function X(be){return d&&be.alternate===null&&(be.flags|=67108866),be}function re(be,ge,Ae,qe){return ge===null||ge.tag!==6?(ge=Jr(Ae,be.mode,qe),ge.return=be,ge):(ge=N(ge,Ae),ge.return=be,ge)}function ce(be,ge,Ae,qe){var ut=Ae.type;return ut===g?Fe(be,ge,Ae.props.children,qe,Ae.key):ge!==null&&(ge.elementType===ut||typeof ut=="object"&&ut!==null&&ut.$$typeof===k&&h4(ut)===ge.type)?(ge=N(ge,Ae.props),Cl(ge,Ae),ge.return=be,ge):(ge=qt(Ae.type,Ae.key,Ae.props,null,be.mode,qe),Cl(ge,Ae),ge.return=be,ge)}function Me(be,ge,Ae,qe){return ge===null||ge.tag!==4||ge.stateNode.containerInfo!==Ae.containerInfo||ge.stateNode.implementation!==Ae.implementation?(ge=yo(Ae,be.mode,qe),ge.return=be,ge):(ge=N(ge,Ae.children||[]),ge.return=be,ge)}function Fe(be,ge,Ae,qe,ut){return ge===null||ge.tag!==7?(ge=Ze(Ae,be.mode,qe,ut),ge.return=be,ge):(ge=N(ge,Ae),ge.return=be,ge)}function $e(be,ge,Ae){if(typeof ge=="string"&&ge!==""||typeof ge=="number"||typeof ge=="bigint")return ge=Jr(""+ge,be.mode,Ae),ge.return=be,ge;if(typeof ge=="object"&&ge!==null){switch(ge.$$typeof){case h:return Ae=qt(ge.type,ge.key,ge.props,null,be.mode,Ae),Cl(Ae,ge),Ae.return=be,Ae;case p:return ge=yo(ge,be.mode,Ae),ge.return=be,ge;case k:var qe=ge._init;return ge=qe(ge._payload),$e(be,ge,Ae)}if(J(ge)||q(ge))return ge=Ze(ge,be.mode,Ae,null),ge.return=be,ge;if(typeof ge.then=="function")return $e(be,Ol(ge),Ae);if(ge.$$typeof===_)return $e(be,bo(be,ge),Ae);Po(be,ge)}return null}function Oe(be,ge,Ae,qe){var ut=ge!==null?ge.key:null;if(typeof Ae=="string"&&Ae!==""||typeof Ae=="number"||typeof Ae=="bigint")return ut!==null?null:re(be,ge,""+Ae,qe);if(typeof Ae=="object"&&Ae!==null){switch(Ae.$$typeof){case h:return Ae.key===ut?ce(be,ge,Ae,qe):null;case p:return Ae.key===ut?Me(be,ge,Ae,qe):null;case k:return ut=Ae._init,Ae=ut(Ae._payload),Oe(be,ge,Ae,qe)}if(J(Ae)||q(Ae))return ut!==null?null:Fe(be,ge,Ae,qe,null);if(typeof Ae.then=="function")return Oe(be,ge,Ol(Ae),qe);if(Ae.$$typeof===_)return Oe(be,ge,bo(be,Ae),qe);Po(be,Ae)}return null}function Re(be,ge,Ae,qe,ut){if(typeof qe=="string"&&qe!==""||typeof qe=="number"||typeof qe=="bigint")return be=be.get(Ae)||null,re(ge,be,""+qe,ut);if(typeof qe=="object"&&qe!==null){switch(qe.$$typeof){case h:return be=be.get(qe.key===null?Ae:qe.key)||null,ce(ge,be,qe,ut);case p:return be=be.get(qe.key===null?Ae:qe.key)||null,Me(ge,be,qe,ut);case k:var Ut=qe._init;return qe=Ut(qe._payload),Re(be,ge,Ae,qe,ut)}if(J(qe)||q(qe))return be=be.get(Ae)||null,Fe(ge,be,qe,ut,null);if(typeof qe.then=="function")return Re(be,ge,Ae,Ol(qe),ut);if(qe.$$typeof===_)return Re(be,ge,Ae,bo(ge,qe),ut);Po(ge,qe)}return null}function Mt(be,ge,Ae,qe){for(var ut=null,Ut=null,gt=ge,At=ge=0,r3=null;gt!==null&&At<Ae.length;At++){gt.index>At?(r3=gt,gt=null):r3=gt.sibling;var v1=Oe(be,gt,Ae[At],qe);if(v1===null){gt===null&&(gt=r3);break}d&>&&v1.alternate===null&&y(be,gt),ge=P(v1,ge,At),Ut===null?ut=v1:Ut.sibling=v1,Ut=v1,gt=r3}if(At===Ae.length)return x(be,gt),$t&&w2(be,At),ut;if(gt===null){for(;At<Ae.length;At++)gt=$e(be,Ae[At],qe),gt!==null&&(ge=P(gt,ge,At),Ut===null?ut=gt:Ut.sibling=gt,Ut=gt);return $t&&w2(be,At),ut}for(gt=C(gt);At<Ae.length;At++)r3=Re(gt,be,At,Ae[At],qe),r3!==null&&(d&&r3.alternate!==null&>.delete(r3.key===null?At:r3.key),ge=P(r3,ge,At),Ut===null?ut=r3:Ut.sibling=r3,Ut=r3);return d&>.forEach(function(Y6){return y(be,Y6)}),$t&&w2(be,At),ut}function Lt(be,ge,Ae,qe){if(Ae==null)throw Error(l(151));for(var ut=null,Ut=null,gt=ge,At=ge=0,r3=null,v1=Ae.next();gt!==null&&!v1.done;At++,v1=Ae.next()){gt.index>At?(r3=gt,gt=null):r3=gt.sibling;var Y6=Oe(be,gt,v1.value,qe);if(Y6===null){gt===null&&(gt=r3);break}d&>&&Y6.alternate===null&&y(be,gt),ge=P(Y6,ge,At),Ut===null?ut=Y6:Ut.sibling=Y6,Ut=Y6,gt=r3}if(v1.done)return x(be,gt),$t&&w2(be,At),ut;if(gt===null){for(;!v1.done;At++,v1=Ae.next())v1=$e(be,v1.value,qe),v1!==null&&(ge=P(v1,ge,At),Ut===null?ut=v1:Ut.sibling=v1,Ut=v1);return $t&&w2(be,At),ut}for(gt=C(gt);!v1.done;At++,v1=Ae.next())v1=Re(gt,be,At,v1.value,qe),v1!==null&&(d&&v1.alternate!==null&>.delete(v1.key===null?At:v1.key),ge=P(v1,ge,At),Ut===null?ut=v1:Ut.sibling=v1,Ut=v1);return d&>.forEach(function(Ub){return y(be,Ub)}),$t&&w2(be,At),ut}function H1(be,ge,Ae,qe){if(typeof Ae=="object"&&Ae!==null&&Ae.type===g&&Ae.key===null&&(Ae=Ae.props.children),typeof Ae=="object"&&Ae!==null){switch(Ae.$$typeof){case h:e:{for(var ut=Ae.key;ge!==null;){if(ge.key===ut){if(ut=Ae.type,ut===g){if(ge.tag===7){x(be,ge.sibling),qe=N(ge,Ae.props.children),qe.return=be,be=qe;break e}}else if(ge.elementType===ut||typeof ut=="object"&&ut!==null&&ut.$$typeof===k&&h4(ut)===ge.type){x(be,ge.sibling),qe=N(ge,Ae.props),Cl(qe,Ae),qe.return=be,be=qe;break e}x(be,ge);break}else y(be,ge);ge=ge.sibling}Ae.type===g?(qe=Ze(Ae.props.children,be.mode,qe,Ae.key),qe.return=be,be=qe):(qe=qt(Ae.type,Ae.key,Ae.props,null,be.mode,qe),Cl(qe,Ae),qe.return=be,be=qe)}return X(be);case p:e:{for(ut=Ae.key;ge!==null;){if(ge.key===ut)if(ge.tag===4&&ge.stateNode.containerInfo===Ae.containerInfo&&ge.stateNode.implementation===Ae.implementation){x(be,ge.sibling),qe=N(ge,Ae.children||[]),qe.return=be,be=qe;break e}else{x(be,ge);break}else y(be,ge);ge=ge.sibling}qe=yo(Ae,be.mode,qe),qe.return=be,be=qe}return X(be);case k:return ut=Ae._init,Ae=ut(Ae._payload),H1(be,ge,Ae,qe)}if(J(Ae))return Mt(be,ge,Ae,qe);if(q(Ae)){if(ut=q(Ae),typeof ut!="function")throw Error(l(150));return Ae=ut.call(Ae),Lt(be,ge,Ae,qe)}if(typeof Ae.then=="function")return H1(be,ge,Ol(Ae),qe);if(Ae.$$typeof===_)return H1(be,ge,bo(be,Ae),qe);Po(be,Ae)}return typeof Ae=="string"&&Ae!==""||typeof Ae=="number"||typeof Ae=="bigint"?(Ae=""+Ae,ge!==null&&ge.tag===6?(x(be,ge.sibling),qe=N(ge,Ae),qe.return=be,be=qe):(x(be,ge),qe=Jr(Ae,be.mode,qe),qe.return=be,be=qe),X(be)):x(be,ge)}return function(be,ge,Ae,qe){try{Bo=0;var ut=H1(be,ge,Ae,qe);return d4=null,ut}catch(gt){if(gt===ia||gt===Ao)throw gt;var Ut=s4(29,gt,null,be.mode);return Ut.lanes=qe,Ut.return=be,Ut}finally{}}}var K2=kd(!0),Nd=kd(!1),D2=z(null),c6=null;function p4(d){var y=d.alternate;U(E2,E2.current&1),U(D2,d),c6===null&&(y===null||rr.current!==null||y.memoizedState!==null)&&(c6=d)}function Bd(d){if(d.tag===22){if(U(E2,E2.current),U(D2,d),c6===null){var y=d.alternate;y!==null&&y.memoizedState!==null&&(c6=d)}}else H3()}function H3(){U(E2,E2.current),U(D2,D2.current)}function T6(d){ee(D2),c6===d&&(c6=null),ee(E2)}var E2=z(0);function P4(d){for(var y=d;y!==null;){if(y.tag===13){var x=y.memoizedState;if(x!==null&&(x=x.dehydrated,x===null||x.data==="$?"||Hh(x)))return y}else if(y.tag===19&&y.memoizedProps.revealOrder!==void 0){if((y.flags&128)!==0)return y}else if(y.child!==null){y.child.return=y,y=y.child;continue}if(y===d)break;for(;y.sibling===null;){if(y.return===null||y.return===d)return null;y=y.return}y.sibling.return=y.return,y=y.sibling}return null}function au(d,y,x,C){y=d.memoizedState,x=x(C,y),x=x==null?y:Q({},y,x),d.memoizedState=x,d.lanes===0&&(d.updateQueue.baseState=x)}var o0={enqueueSetState:function(d,y,x){d=d._reactInternals;var C=z4(),N=nr(C);N.payload=y,x!=null&&(N.callback=x),y=T4(d,N,C),y!==null&&(L4(y,d,C),aa(y,d,C))},enqueueReplaceState:function(d,y,x){d=d._reactInternals;var C=z4(),N=nr(C);N.tag=1,N.payload=y,x!=null&&(N.callback=x),y=T4(d,N,C),y!==null&&(L4(y,d,C),aa(y,d,C))},enqueueForceUpdate:function(d,y){d=d._reactInternals;var x=z4(),C=nr(x);C.tag=2,y!=null&&(C.callback=y),y=T4(d,C,x),y!==null&&(L4(y,d,x),aa(y,d,x))}};function Pd(d,y,x,C,N,P,X){return d=d.stateNode,typeof d.shouldComponentUpdate=="function"?d.shouldComponentUpdate(C,P,X):y.prototype&&y.prototype.isPureReactComponent?!Z5(x,C)||!Z5(N,P):!0}function jo(d,y,x,C){d=y.state,typeof y.componentWillReceiveProps=="function"&&y.componentWillReceiveProps(x,C),typeof y.UNSAFE_componentWillReceiveProps=="function"&&y.UNSAFE_componentWillReceiveProps(x,C),y.state!==d&&o0.enqueueReplaceState(y,y.state,null)}function cn(d,y){var x=y;if("ref"in y){x={};for(var C in y)C!=="ref"&&(x[C]=y[C])}if(d=d.defaultProps){x===y&&(x=Q({},x));for(var N in d)x[N]===void 0&&(x[N]=d[N])}return x}var wl=typeof reportError=="function"?reportError:function(d){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var y=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof d=="object"&&d!==null&&typeof d.message=="string"?String(d.message):String(d),error:d});if(!window.dispatchEvent(y))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",d);return}console.error(d)};function jd(d){wl(d)}function Io(d){console.error(d)}function Id(d){wl(d)}function Qa(d,y){try{var x=d.onUncaughtError;x(y.value,{componentStack:y.stack})}catch(C){setTimeout(function(){throw C})}}function Fd(d,y,x){try{var C=d.onCaughtError;C(x.value,{componentStack:x.stack,errorBoundary:y.tag===1?y.stateNode:null})}catch(N){setTimeout(function(){throw N})}}function ou(d,y,x){return x=nr(x),x.tag=3,x.payload={element:null},x.callback=function(){Qa(d,y)},x}function Xy(d){return d=nr(d),d.tag=3,d}function zd(d,y,x,C){var N=x.type.getDerivedStateFromError;if(typeof N=="function"){var P=C.value;d.payload=function(){return N(P)},d.callback=function(){Fd(y,x,C)}}var X=x.stateNode;X!==null&&typeof X.componentDidCatch=="function"&&(d.callback=function(){Fd(y,x,C),typeof N!="function"&&(z6===null?z6=new Set([this]):z6.add(this));var re=C.stack;this.componentDidCatch(C.value,{componentStack:re!==null?re:""})})}function j4(d,y,x,C,N){if(x.flags|=32768,C!==null&&typeof C=="object"&&typeof C.then=="function"){if(y=x.alternate,y!==null&&ul(y,x,N,!0),x=D2.current,x!==null){switch(x.tag){case 13:return c6===null?m0():x.alternate===null&&L2===0&&(L2=3),x.flags&=-257,x.flags|=65536,x.lanes=N,C===I9?x.flags|=16384:(y=x.updateQueue,y===null?x.updateQueue=new Set([C]):y.add(C),jl(d,C,N)),!1;case 22:return x.flags|=65536,C===I9?x.flags|=16384:(y=x.updateQueue,y===null?(y={transitions:null,markerInstances:null,retryQueue:new Set([C])},x.updateQueue=y):(x=y.retryQueue,x===null?y.retryQueue=new Set([C]):x.add(C)),jl(d,C,N)),!1}throw Error(l(435,x.tag))}return jl(d,C,N),m0(),!1}if($t)return y=D2.current,y!==null?((y.flags&65536)===0&&(y.flags|=256),y.flags|=65536,y.lanes=N,C!==ll&&(d=Error(l(422),{cause:C}),xo(N4(d,x)))):(C!==ll&&(y=Error(l(423),{cause:C}),xo(N4(y,x))),d=d.current.alternate,d.flags|=65536,N&=-N,d.lanes|=N,C=N4(C,x),N=ou(d.stateNode,C,N),hl(d,N),L2!==4&&(L2=2)),!1;var P=Error(l(520),{cause:C});if(P=N4(P,x),Nl===null?Nl=[P]:Nl.push(P),L2!==4&&(L2=2),y===null)return!0;C=N4(C,x),x=y;do{switch(x.tag){case 3:return x.flags|=65536,d=N&-N,x.lanes|=d,d=ou(x.stateNode,C,d),hl(x,d),!1;case 1:if(y=x.type,P=x.stateNode,(x.flags&128)===0&&(typeof y.getDerivedStateFromError=="function"||P!==null&&typeof P.componentDidCatch=="function"&&(z6===null||!z6.has(P))))return x.flags|=65536,N&=-N,x.lanes|=N,N=Xy(N),zd(N,d,x,C),hl(x,N),!1}x=x.return}while(x!==null);return!1}var qd=Error(l(461)),Jt=!1;function J2(d,y,x,C){y.child=d===null?Nd(y,null,x,C):K2(y,d.child,x,C)}function $d(d,y,x,C,N){x=x.render;var P=y.ref;if("ref"in C){var X={};for(var re in C)re!=="ref"&&(X[re]=C[re])}else X=C;return t0(y),C=U9(d,y,x,X,P,N),re=G9(),d!==null&&!Jt?(Z9(d,y,N),Q6(d,y,N)):($t&&re&&ol(y),y.flags|=1,J2(d,y,C,N),y.child)}function Wy(d,y,x,C,N){if(d===null){var P=x.type;return typeof P=="function"&&!D9(P)&&P.defaultProps===void 0&&x.compare===null?(y.tag=15,y.type=P,ar(d,y,P,C,N)):(d=qt(x.type,null,C,y,y.mode,N),d.ref=y.ref,d.return=y,y.child=d)}if(P=d.child,!Qu(d,N)){var X=P.memoizedProps;if(x=x.compare,x=x!==null?x:Z5,x(X,C)&&d.ref===y.ref)return Q6(d,y,N)}return y.flags|=1,d=n6(P,C),d.ref=y.ref,d.return=y,y.child=d}function ar(d,y,x,C,N){if(d!==null){var P=d.memoizedProps;if(Z5(P,C)&&d.ref===y.ref)if(Jt=!1,y.pendingProps=C=P,Qu(d,N))(d.flags&131072)!==0&&(Jt=!0);else return y.lanes=d.lanes,Q6(d,y,N)}return su(d,y,x,C,N)}function fa(d,y,x){var C=y.pendingProps,N=C.children,P=d!==null?d.memoizedState:null;if(C.mode==="hidden"){if((y.flags&128)!==0){if(C=P!==null?P.baseLanes|x:x,d!==null){for(N=y.child=d.child,P=0;N!==null;)P=P|N.lanes|N.childLanes,N=N.sibling;y.childLanes=P&~C}else y.childLanes=0,y.child=null;return lu(d,y,C,x)}if((x&536870912)!==0)y.memoizedState={baseLanes:0,cachePool:null},d!==null&&Mo(y,P!==null?P.cachePool:null),P!==null?pd(y,P):z2(),Bd(y);else return y.lanes=y.childLanes=536870912,lu(d,y,P!==null?P.baseLanes|x:x,x)}else P!==null?(Mo(y,P.cachePool),pd(y,P),H3(),y.memoizedState=null):(d!==null&&Mo(y,null),z2(),H3());return J2(d,y,N,x),y.child}function lu(d,y,x,C){var N=So();return N=N===null?null:{parent:V2._currentValue,pool:N},y.memoizedState={baseLanes:x,cachePool:N},d!==null&&Mo(y,null),z2(),Bd(y),d!==null&&ul(d,y,C,!0),null}function or(d,y){var x=y.ref;if(x===null)d!==null&&d.ref!==null&&(y.flags|=4194816);else{if(typeof x!="function"&&typeof x!="object")throw Error(l(284));(d===null||d.ref!==x)&&(y.flags|=4194816)}}function su(d,y,x,C,N){return t0(y),x=U9(d,y,x,C,void 0,N),C=G9(),d!==null&&!Jt?(Z9(d,y,N),Q6(d,y,N)):($t&&C&&ol(y),y.flags|=1,J2(d,y,x,N),y.child)}function Ud(d,y,x,C,N,P){return t0(y),y.updateQueue=null,x=i0(y,C,x,N),md(d),C=G9(),d!==null&&!Jt?(Z9(d,y,P),Q6(d,y,P)):($t&&C&&ol(y),y.flags|=1,J2(d,y,x,P),y.child)}function Gd(d,y,x,C,N){if(t0(y),y.stateNode===null){var P=na,X=x.contextType;typeof X=="object"&&X!==null&&(P=Q3(X)),P=new x(C,P),y.memoizedState=P.state!==null&&P.state!==void 0?P.state:null,P.updater=o0,y.stateNode=P,P._reactInternals=y,P=y.stateNode,P.props=C,P.state=y.memoizedState,P.refs={},dl(y),X=x.contextType,P.context=typeof X=="object"&&X!==null?Q3(X):na,P.state=y.memoizedState,X=x.getDerivedStateFromProps,typeof X=="function"&&(au(y,x,X,C),P.state=y.memoizedState),typeof x.getDerivedStateFromProps=="function"||typeof P.getSnapshotBeforeUpdate=="function"||typeof P.UNSAFE_componentWillMount!="function"&&typeof P.componentWillMount!="function"||(X=P.state,typeof P.componentWillMount=="function"&&P.componentWillMount(),typeof P.UNSAFE_componentWillMount=="function"&&P.UNSAFE_componentWillMount(),X!==P.state&&o0.enqueueReplaceState(P,P.state,null),Co(y,C,P,N),pl(),P.state=y.memoizedState),typeof P.componentDidMount=="function"&&(y.flags|=4194308),C=!0}else if(d===null){P=y.stateNode;var re=y.memoizedProps,ce=cn(x,re);P.props=ce;var Me=P.context,Fe=x.contextType;X=na,typeof Fe=="object"&&Fe!==null&&(X=Q3(Fe));var $e=x.getDerivedStateFromProps;Fe=typeof $e=="function"||typeof P.getSnapshotBeforeUpdate=="function",re=y.pendingProps!==re,Fe||typeof P.UNSAFE_componentWillReceiveProps!="function"&&typeof P.componentWillReceiveProps!="function"||(re||Me!==X)&&jo(y,P,C,X),tr=!1;var Oe=y.memoizedState;P.state=Oe,Co(y,C,P,N),pl(),Me=y.memoizedState,re||Oe!==Me||tr?(typeof $e=="function"&&(au(y,x,$e,C),Me=y.memoizedState),(ce=tr||Pd(y,x,ce,C,Oe,Me,X))?(Fe||typeof P.UNSAFE_componentWillMount!="function"&&typeof P.componentWillMount!="function"||(typeof P.componentWillMount=="function"&&P.componentWillMount(),typeof P.UNSAFE_componentWillMount=="function"&&P.UNSAFE_componentWillMount()),typeof P.componentDidMount=="function"&&(y.flags|=4194308)):(typeof P.componentDidMount=="function"&&(y.flags|=4194308),y.memoizedProps=C,y.memoizedState=Me),P.props=C,P.state=Me,P.context=X,C=ce):(typeof P.componentDidMount=="function"&&(y.flags|=4194308),C=!1)}else{P=y.stateNode,z9(d,y),X=y.memoizedProps,Fe=cn(x,X),P.props=Fe,$e=y.pendingProps,Oe=P.context,Me=x.contextType,ce=na,typeof Me=="object"&&Me!==null&&(ce=Q3(Me)),re=x.getDerivedStateFromProps,(Me=typeof re=="function"||typeof P.getSnapshotBeforeUpdate=="function")||typeof P.UNSAFE_componentWillReceiveProps!="function"&&typeof P.componentWillReceiveProps!="function"||(X!==$e||Oe!==ce)&&jo(y,P,C,ce),tr=!1,Oe=y.memoizedState,P.state=Oe,Co(y,C,P,N),pl();var Re=y.memoizedState;X!==$e||Oe!==Re||tr||d!==null&&d.dependencies!==null&&cl(d.dependencies)?(typeof re=="function"&&(au(y,x,re,C),Re=y.memoizedState),(Fe=tr||Pd(y,x,Fe,C,Oe,Re,ce)||d!==null&&d.dependencies!==null&&cl(d.dependencies))?(Me||typeof P.UNSAFE_componentWillUpdate!="function"&&typeof P.componentWillUpdate!="function"||(typeof P.componentWillUpdate=="function"&&P.componentWillUpdate(C,Re,ce),typeof P.UNSAFE_componentWillUpdate=="function"&&P.UNSAFE_componentWillUpdate(C,Re,ce)),typeof P.componentDidUpdate=="function"&&(y.flags|=4),typeof P.getSnapshotBeforeUpdate=="function"&&(y.flags|=1024)):(typeof P.componentDidUpdate!="function"||X===d.memoizedProps&&Oe===d.memoizedState||(y.flags|=4),typeof P.getSnapshotBeforeUpdate!="function"||X===d.memoizedProps&&Oe===d.memoizedState||(y.flags|=1024),y.memoizedProps=C,y.memoizedState=Re),P.props=C,P.state=Re,P.context=ce,C=Fe):(typeof P.componentDidUpdate!="function"||X===d.memoizedProps&&Oe===d.memoizedState||(y.flags|=4),typeof P.getSnapshotBeforeUpdate!="function"||X===d.memoizedProps&&Oe===d.memoizedState||(y.flags|=1024),C=!1)}return P=C,or(d,y),C=(y.flags&128)!==0,P||C?(P=y.stateNode,x=C&&typeof x.getDerivedStateFromError!="function"?null:P.render(),y.flags|=1,d!==null&&C?(y.child=K2(y,d.child,null,N),y.child=K2(y,null,x,N)):J2(d,y,x,N),y.memoizedState=P.state,d=y.child):d=Q6(d,y,N),d}function uu(d,y,x,C){return Lo(),y.flags|=256,J2(d,y,x,C),y.child}var Vl={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function cu(d){return{baseLanes:d,cachePool:Ql()}}function Zd(d,y,x){return d=d!==null?d.childLanes&~x:0,y&&(d|=$2),d}function Yy(d,y,x){var C=y.pendingProps,N=!1,P=(y.flags&128)!==0,X;if((X=P)||(X=d!==null&&d.memoizedState===null?!1:(E2.current&2)!==0),X&&(N=!0,y.flags&=-129),X=(y.flags&32)!==0,y.flags&=-33,d===null){if($t){if(N?p4(y):H3(),$t){var re=B1,ce;if(ce=re){e:{for(ce=re,re=B3;ce.nodeType!==8;){if(!re){re=null;break e}if(ce=y6(ce.nextSibling),ce===null){re=null;break e}}re=ce}re!==null?(y.memoizedState={dehydrated:re,treeContext:Y5!==null?{id:r6,overflow:i6}:null,retryLane:536870912,hydrationErrors:null},ce=s4(18,null,null,0),ce.stateNode=re,ce.return=y,y.child=ce,y2=y,B1=null,ce=!0):ce=!1}ce||a6(y)}if(re=y.memoizedState,re!==null&&(re=re.dehydrated,re!==null))return Hh(re)?y.lanes=32:y.lanes=536870912,null;T6(y)}return re=C.children,C=C.fallback,N?(H3(),N=y.mode,re=Dl({mode:"hidden",children:re},N),C=Ze(C,N,x,null),re.return=y,C.return=y,re.sibling=C,y.child=re,N=y.child,N.memoizedState=cu(x),N.childLanes=Zd(d,X,x),y.memoizedState=Vl,C):(p4(y),Tu(y,re))}if(ce=d.memoizedState,ce!==null&&(re=ce.dehydrated,re!==null)){if(P)y.flags&256?(p4(y),y.flags&=-257,y=Xd(d,y,x)):y.memoizedState!==null?(H3(),y.child=d.child,y.flags|=128,y=null):(H3(),N=C.fallback,re=y.mode,C=Dl({mode:"visible",children:C.children},re),N=Ze(N,re,x,null),N.flags|=2,C.return=y,N.return=y,C.sibling=N,y.child=C,K2(y,d.child,null,x),C=y.child,C.memoizedState=cu(x),C.childLanes=Zd(d,X,x),y.memoizedState=Vl,y=N);else if(p4(y),Hh(re)){if(X=re.nextSibling&&re.nextSibling.dataset,X)var Me=X.dgst;X=Me,C=Error(l(419)),C.stack="",C.digest=X,xo({value:C,source:null,stack:null}),y=Xd(d,y,x)}else if(Jt||ul(d,y,x,!1),X=(x&d.childLanes)!==0,Jt||X){if(X=j1,X!==null&&(C=x&-x,C=(C&42)!==0?1:Ht(C),C=(C&(X.suspendedLanes|x))!==0?0:C,C!==0&&C!==ce.retryLane))throw ce.retryLane=C,W5(d,C),L4(X,d,C),qd;re.data==="$?"||m0(),y=Xd(d,y,x)}else re.data==="$?"?(y.flags|=192,y.child=d.child,y=null):(d=ce.treeContext,B1=y6(re.nextSibling),y2=y,$t=!0,K5=null,B3=!1,d!==null&&(u4[on++]=r6,u4[on++]=i6,u4[on++]=Y5,r6=d.id,i6=d.overflow,Y5=y),y=Tu(y,C.children),y.flags|=4096);return y}return N?(H3(),N=C.fallback,re=y.mode,ce=d.child,Me=ce.sibling,C=n6(ce,{mode:"hidden",children:C.children}),C.subtreeFlags=ce.subtreeFlags&65011712,Me!==null?N=n6(Me,N):(N=Ze(N,re,x,null),N.flags|=2),N.return=y,C.return=y,C.sibling=N,y.child=C,C=N,N=y.child,re=d.child.memoizedState,re===null?re=cu(x):(ce=re.cachePool,ce!==null?(Me=V2._currentValue,ce=ce.parent!==Me?{parent:Me,pool:Me}:ce):ce=Ql(),re={baseLanes:re.baseLanes|x,cachePool:ce}),N.memoizedState=re,N.childLanes=Zd(d,X,x),y.memoizedState=Vl,C):(p4(y),x=d.child,d=x.sibling,x=n6(x,{mode:"visible",children:C.children}),x.return=y,x.sibling=null,d!==null&&(X=y.deletions,X===null?(y.deletions=[d],y.flags|=16):X.push(d)),y.child=x,y.memoizedState=null,x)}function Tu(d,y){return y=Dl({mode:"visible",children:y},d.mode),y.return=d,d.child=y}function Dl(d,y){return d=s4(22,d,null,y),d.lanes=0,d.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null},d}function Xd(d,y,x){return K2(y,d.child,null,x),d=Tu(y,y.pendingProps.children),d.flags|=2,y.memoizedState=null,d}function da(d,y,x){d.lanes|=y;var C=d.alternate;C!==null&&(C.lanes|=y),B9(d.return,y,x)}function Fo(d,y,x,C,N){var P=d.memoizedState;P===null?d.memoizedState={isBackwards:y,rendering:null,renderingStartTime:0,last:C,tail:x,tailMode:N}:(P.isBackwards=y,P.rendering=null,P.renderingStartTime=0,P.last=C,P.tail=x,P.tailMode=N)}function Wd(d,y,x){var C=y.pendingProps,N=C.revealOrder,P=C.tail;if(J2(d,y,C.children,x),C=E2.current,(C&2)!==0)C=C&1|2,y.flags|=128;else{if(d!==null&&(d.flags&128)!==0)e:for(d=y.child;d!==null;){if(d.tag===13)d.memoizedState!==null&&da(d,x,y);else if(d.tag===19)da(d,x,y);else if(d.child!==null){d.child.return=d,d=d.child;continue}if(d===y)break e;for(;d.sibling===null;){if(d.return===null||d.return===y)break e;d=d.return}d.sibling.return=d.return,d=d.sibling}C&=1}switch(U(E2,C),N){case"forwards":for(x=y.child,N=null;x!==null;)d=x.alternate,d!==null&&P4(d)===null&&(N=x),x=x.sibling;x=N,x===null?(N=y.child,y.child=null):(N=x.sibling,x.sibling=null),Fo(y,!1,N,x,P);break;case"backwards":for(x=null,N=y.child,y.child=null;N!==null;){if(d=N.alternate,d!==null&&P4(d)===null){y.child=N;break}d=N.sibling,N.sibling=x,x=N,N=d}Fo(y,!0,x,null,P);break;case"together":Fo(y,!1,null,null,void 0);break;default:y.memoizedState=null}return y.child}function Q6(d,y,x){if(d!==null&&(y.dependencies=d.dependencies),f0|=y.lanes,(x&y.childLanes)===0)if(d!==null){if(ul(d,y,x,!1),(x&y.childLanes)===0)return null}else return null;if(d!==null&&y.child!==d.child)throw Error(l(153));if(y.child!==null){for(d=y.child,x=n6(d,d.pendingProps),y.child=x,x.return=y;d.sibling!==null;)d=d.sibling,x=x.sibling=n6(d,d.pendingProps),x.return=y;x.sibling=null}return y.child}function Qu(d,y){return(d.lanes&y)!==0?!0:(d=d.dependencies,!!(d!==null&&cl(d)))}function Ky(d,y,x){switch(y.tag){case 3:fe(y,y.stateNode.containerInfo),B6(y,V2,d.memoizedState.cache),Lo();break;case 27:case 5:Ee(y);break;case 4:fe(y,y.stateNode.containerInfo);break;case 10:B6(y,y.type,y.memoizedProps.value);break;case 13:var C=y.memoizedState;if(C!==null)return C.dehydrated!==null?(p4(y),y.flags|=128,null):(x&y.child.childLanes)!==0?Yy(d,y,x):(p4(y),d=Q6(d,y,x),d!==null?d.sibling:null);p4(y);break;case 19:var N=(d.flags&128)!==0;if(C=(x&y.childLanes)!==0,C||(ul(d,y,x,!1),C=(x&y.childLanes)!==0),N){if(C)return Wd(d,y,x);y.flags|=128}if(N=y.memoizedState,N!==null&&(N.rendering=null,N.tail=null,N.lastEffect=null),U(E2,E2.current),C)break;return null;case 22:case 23:return y.lanes=0,fa(d,y,x);case 24:B6(y,V2,d.memoizedState.cache)}return Q6(d,y,x)}function Yd(d,y,x){if(d!==null)if(d.memoizedProps!==y.pendingProps)Jt=!0;else{if(!Qu(d,x)&&(y.flags&128)===0)return Jt=!1,Ky(d,y,x);Jt=(d.flags&131072)!==0}else Jt=!1,$t&&(y.flags&1048576)!==0&&S1(y,al,y.index);switch(y.lanes=0,y.tag){case 16:e:{d=y.pendingProps;var C=y.elementType,N=C._init;if(C=N(C._payload),y.type=C,typeof C=="function")D9(C)?(d=cn(C,d),y.tag=1,y=Gd(null,y,C,d,x)):(y.tag=0,y=su(null,y,C,d,x));else{if(C!=null){if(N=C.$$typeof,N===O){y.tag=11,y=$d(null,y,C,d,x);break e}else if(N===V){y.tag=14,y=Wy(null,y,C,d,x);break e}}throw y=Z(C)||C,Error(l(306,y,""))}}return y;case 0:return su(d,y,y.type,y.pendingProps,x);case 1:return C=y.type,N=cn(C,y.pendingProps),Gd(d,y,C,N,x);case 3:e:{if(fe(y,y.stateNode.containerInfo),d===null)throw Error(l(387));C=y.pendingProps;var P=y.memoizedState;N=P.element,z9(d,y),Co(y,C,null,x);var X=y.memoizedState;if(C=X.cache,B6(y,V2,C),C!==P.cache&&P9(y,[V2],x,!0),pl(),C=X.element,P.isDehydrated)if(P={element:C,isDehydrated:!1,cache:X.cache},y.updateQueue.baseState=P,y.memoizedState=P,y.flags&256){y=uu(d,y,C,x);break e}else if(C!==N){N=N4(Error(l(424)),y),xo(N),y=uu(d,y,C,x);break e}else{switch(d=y.stateNode.containerInfo,d.nodeType){case 9:d=d.body;break;default:d=d.nodeName==="HTML"?d.ownerDocument.body:d}for(B1=y6(d.firstChild),y2=y,$t=!0,K5=null,B3=!0,x=Nd(y,null,C,x),y.child=x;x;)x.flags=x.flags&-3|4096,x=x.sibling}else{if(Lo(),C===N){y=Q6(d,y,x);break e}J2(d,y,C,x)}y=y.child}return y;case 26:return or(d,y),d===null?(x=ju(y.type,null,y.pendingProps,null))?y.memoizedState=x:$t||(x=y.type,d=y.pendingProps,C=r7(he.current).createElement(x),C[$1]=y,C[L3]=d,we(C,x,d),H2(C),y.stateNode=C):y.memoizedState=ju(y.type,d.memoizedProps,y.pendingProps,d.memoizedState),null;case 27:return Ee(y),d===null&&$t&&(C=y.stateNode=h3(y.type,y.pendingProps,he.current),y2=y,B3=!0,N=B1,d3(y.type)?(Sh=N,B1=y6(C.firstChild)):B1=N),J2(d,y,y.pendingProps.children,x),or(d,y),d===null&&(y.flags|=4194304),y.child;case 5:return d===null&&$t&&((N=C=B1)&&(C=bh(C,y.type,y.pendingProps,B3),C!==null?(y.stateNode=C,y2=y,B1=y6(C.firstChild),B3=!1,N=!0):N=!1),N||a6(y)),Ee(y),N=y.type,P=y.pendingProps,X=d!==null?d.memoizedProps:null,C=P.children,La(N,P)?C=null:X!==null&&La(N,X)&&(y.flags|=32),y.memoizedState!==null&&(N=U9(d,y,jy,null,null,x),p3._currentValue=N),or(d,y),J2(d,y,C,x),y.child;case 6:return d===null&&$t&&((d=x=B1)&&(x=i7(x,y.pendingProps,B3),x!==null?(y.stateNode=x,y2=y,B1=null,d=!0):d=!1),d||a6(y)),null;case 13:return Yy(d,y,x);case 4:return fe(y,y.stateNode.containerInfo),C=y.pendingProps,d===null?y.child=K2(y,null,C,x):J2(d,y,C,x),y.child;case 11:return $d(d,y,y.type,y.pendingProps,x);case 7:return J2(d,y,y.pendingProps,x),y.child;case 8:return J2(d,y,y.pendingProps.children,x),y.child;case 12:return J2(d,y,y.pendingProps.children,x),y.child;case 10:return C=y.pendingProps,B6(y,y.type,C.value),J2(d,y,C.children,x),y.child;case 9:return N=y.type._context,C=y.pendingProps.children,t0(y),N=Q3(N),C=C(N),y.flags|=1,J2(d,y,C,x),y.child;case 14:return Wy(d,y,y.type,y.pendingProps,x);case 15:return ar(d,y,y.type,y.pendingProps,x);case 19:return Wd(d,y,x);case 31:return C=y.pendingProps,x=y.mode,C={mode:C.mode,children:C.children},d===null?(x=Dl(C,x),x.ref=y.ref,y.child=x,x.return=y,y=x):(x=n6(d.child,C),x.ref=y.ref,y.child=x,x.return=y,y=x),y;case 22:return fa(d,y,x);case 24:return t0(y),C=Q3(V2),d===null?(N=So(),N===null&&(N=j1,P=ud(),N.pooledCache=P,P.refCount++,P!==null&&(N.pooledCacheLanes|=x),N=P),y.memoizedState={parent:C,cache:N},dl(y),B6(y,V2,N)):((d.lanes&x)!==0&&(z9(d,y),Co(y,null,null,x),pl()),N=d.memoizedState,P=y.memoizedState,N.parent!==C?(N={parent:C,cache:C},y.memoizedState=N,y.lanes===0&&(y.memoizedState=y.updateQueue.baseState=N),B6(y,V2,C)):(C=P.cache,B6(y,V2,C),C!==N.cache&&P9(y,[V2],x,!0))),J2(d,y,y.pendingProps.children,x),y.child;case 29:throw y.pendingProps}throw Error(l(156,y.tag))}function lr(d){d.flags|=4}function Kd(d,y){if(y.type!=="stylesheet"||(y.state.loading&4)!==0)d.flags&=-16777217;else if(d.flags|=16777216,!Oh(y)){if(y=D2.current,y!==null&&((T1&4194048)===T1?c6!==null:(T1&62914560)!==T1&&(T1&536870912)===0||y!==c6))throw Oo=I9,fl;d.flags|=8192}}function l0(d,y){y!==null&&(d.flags|=4),d.flags&16384&&(y=d.tag!==22?We():536870912,d.lanes|=y,Zo|=y)}function zo(d,y){if(!$t)switch(d.tailMode){case"hidden":y=d.tail;for(var x=null;y!==null;)y.alternate!==null&&(x=y),y=y.sibling;x===null?d.tail=null:x.sibling=null;break;case"collapsed":x=d.tail;for(var C=null;x!==null;)x.alternate!==null&&(C=x),x=x.sibling;C===null?y||d.tail===null?d.tail=null:d.tail.sibling=null:C.sibling=null}}function u2(d){var y=d.alternate!==null&&d.alternate.child===d.child,x=0,C=0;if(y)for(var N=d.child;N!==null;)x|=N.lanes|N.childLanes,C|=N.subtreeFlags&65011712,C|=N.flags&65011712,N.return=d,N=N.sibling;else for(N=d.child;N!==null;)x|=N.lanes|N.childLanes,C|=N.subtreeFlags,C|=N.flags,N.return=d,N=N.sibling;return d.subtreeFlags|=C,d.childLanes=x,y}function P1(d,y,x){var C=y.pendingProps;switch(ra(y),y.tag){case 31:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return u2(y),null;case 1:return u2(y),null;case 3:return x=y.stateNode,C=null,d!==null&&(C=d.memoizedState.cache),y.memoizedState.cache!==C&&(y.flags|=2048),P6(V2),Se(),x.pendingContext&&(x.context=x.pendingContext,x.pendingContext=null),(d===null||d.child===null)&&(vo(y)?lr(y):d===null||d.memoizedState.isDehydrated&&(y.flags&256)===0||(y.flags|=1024,ld())),u2(y),null;case 26:return x=y.memoizedState,d===null?(lr(y),x!==null?(u2(y),Kd(y,x)):(u2(y),y.flags&=-16777217)):x?x!==d.memoizedState?(lr(y),u2(y),Kd(y,x)):(u2(y),y.flags&=-16777217):(d.memoizedProps!==C&&lr(y),u2(y),y.flags&=-16777217),null;case 27:_e(y),x=he.current;var N=y.type;if(d!==null&&y.stateNode!=null)d.memoizedProps!==C&&lr(y);else{if(!C){if(y.stateNode===null)throw Error(l(166));return u2(y),null}d=de.current,vo(y)?k9(y):(d=h3(N,C,x),y.stateNode=d,lr(y))}return u2(y),null;case 5:if(_e(y),x=y.type,d!==null&&y.stateNode!=null)d.memoizedProps!==C&&lr(y);else{if(!C){if(y.stateNode===null)throw Error(l(166));return u2(y),null}if(d=de.current,vo(y))k9(y);else{switch(N=r7(he.current),d){case 1:d=N.createElementNS("http://www.w3.org/2000/svg",x);break;case 2:d=N.createElementNS("http://www.w3.org/1998/Math/MathML",x);break;default:switch(x){case"svg":d=N.createElementNS("http://www.w3.org/2000/svg",x);break;case"math":d=N.createElementNS("http://www.w3.org/1998/Math/MathML",x);break;case"script":d=N.createElement("div"),d.innerHTML="<script><\/script>",d=d.removeChild(d.firstChild);break;case"select":d=typeof C.is=="string"?N.createElement("select",{is:C.is}):N.createElement("select"),C.multiple?d.multiple=!0:C.size&&(d.size=C.size);break;default:d=typeof C.is=="string"?N.createElement(x,{is:C.is}):N.createElement(x)}}d[$1]=y,d[L3]=C;e:for(N=y.child;N!==null;){if(N.tag===5||N.tag===6)d.appendChild(N.stateNode);else if(N.tag!==4&&N.tag!==27&&N.child!==null){N.child.return=N,N=N.child;continue}if(N===y)break e;for(;N.sibling===null;){if(N.return===null||N.return===y)break e;N=N.return}N.sibling.return=N.return,N=N.sibling}y.stateNode=d;e:switch(we(d,x,C),x){case"button":case"input":case"select":case"textarea":d=!!C.autoFocus;break e;case"img":d=!0;break e;default:d=!1}d&&lr(y)}}return u2(y),y.flags&=-16777217,null;case 6:if(d&&y.stateNode!=null)d.memoizedProps!==C&&lr(y);else{if(typeof C!="string"&&y.stateNode===null)throw Error(l(166));if(d=he.current,vo(y)){if(d=y.stateNode,x=y.memoizedProps,C=null,N=y2,N!==null)switch(N.tag){case 27:case 5:C=N.memoizedProps}d[$1]=y,d=!!(d.nodeValue===x||C!==null&&C.suppressHydrationWarning===!0||yg(d.nodeValue,x)),d||a6(y)}else d=r7(d).createTextNode(C),d[$1]=y,y.stateNode=d}return u2(y),null;case 13:if(C=y.memoizedState,d===null||d.memoizedState!==null&&d.memoizedState.dehydrated!==null){if(N=vo(y),C!==null&&C.dehydrated!==null){if(d===null){if(!N)throw Error(l(318));if(N=y.memoizedState,N=N!==null?N.dehydrated:null,!N)throw Error(l(317));N[$1]=y}else Lo(),(y.flags&128)===0&&(y.memoizedState=null),y.flags|=4;u2(y),N=!1}else N=ld(),d!==null&&d.memoizedState!==null&&(d.memoizedState.hydrationErrors=N),N=!0;if(!N)return y.flags&256?(T6(y),y):(T6(y),null)}if(T6(y),(y.flags&128)!==0)return y.lanes=x,y;if(x=C!==null,d=d!==null&&d.memoizedState!==null,x){C=y.child,N=null,C.alternate!==null&&C.alternate.memoizedState!==null&&C.alternate.memoizedState.cachePool!==null&&(N=C.alternate.memoizedState.cachePool.pool);var P=null;C.memoizedState!==null&&C.memoizedState.cachePool!==null&&(P=C.memoizedState.cachePool.pool),P!==N&&(C.flags|=2048)}return x!==d&&x&&(y.child.flags|=8192),l0(y,y.updateQueue),u2(y),null;case 4:return Se(),d===null&&ql(y.stateNode.containerInfo),u2(y),null;case 10:return P6(y.type),u2(y),null;case 19:if(ee(E2),N=y.memoizedState,N===null)return u2(y),null;if(C=(y.flags&128)!==0,P=N.rendering,P===null)if(C)zo(N,!1);else{if(L2!==0||d!==null&&(d.flags&128)!==0)for(d=y.child;d!==null;){if(P=P4(d),P!==null){for(y.flags|=128,zo(N,!1),d=P.updateQueue,y.updateQueue=d,l0(y,d),y.subtreeFlags=0,d=x,x=y.child;x!==null;)R9(x,d),x=x.sibling;return U(E2,E2.current&1|2),y.child}d=d.sibling}N.tail!==null&&ot()>mu&&(y.flags|=128,C=!0,zo(N,!1),y.lanes=4194304)}else{if(!C)if(d=P4(P),d!==null){if(y.flags|=128,C=!0,d=d.updateQueue,y.updateQueue=d,l0(y,d),zo(N,!0),N.tail===null&&N.tailMode==="hidden"&&!P.alternate&&!$t)return u2(y),null}else 2*ot()-N.renderingStartTime>mu&&x!==536870912&&(y.flags|=128,C=!0,zo(N,!1),y.lanes=4194304);N.isBackwards?(P.sibling=y.child,y.child=P):(d=N.last,d!==null?d.sibling=P:y.child=P,N.last=P)}return N.tail!==null?(y=N.tail,N.rendering=y,N.tail=y.sibling,N.renderingStartTime=ot(),y.sibling=null,d=E2.current,U(E2,C?d&1|2:d&1),y):(u2(y),null);case 22:case 23:return T6(y),Vo(),C=y.memoizedState!==null,d!==null?d.memoizedState!==null!==C&&(y.flags|=8192):C&&(y.flags|=8192),C?(x&536870912)!==0&&(y.flags&128)===0&&(u2(y),y.subtreeFlags&6&&(y.flags|=8192)):u2(y),x=y.updateQueue,x!==null&&l0(y,x.retryQueue),x=null,d!==null&&d.memoizedState!==null&&d.memoizedState.cachePool!==null&&(x=d.memoizedState.cachePool.pool),C=null,y.memoizedState!==null&&y.memoizedState.cachePool!==null&&(C=y.memoizedState.cachePool.pool),C!==x&&(y.flags|=2048),d!==null&&ee(er),null;case 24:return x=null,d!==null&&(x=d.memoizedState.cache),y.memoizedState.cache!==x&&(y.flags|=2048),P6(V2),u2(y),null;case 25:return null;case 30:return null}throw Error(l(156,y.tag))}function Jd(d,y){switch(ra(y),y.tag){case 1:return d=y.flags,d&65536?(y.flags=d&-65537|128,y):null;case 3:return P6(V2),Se(),d=y.flags,(d&65536)!==0&&(d&128)===0?(y.flags=d&-65537|128,y):null;case 26:case 27:case 5:return _e(y),null;case 13:if(T6(y),d=y.memoizedState,d!==null&&d.dehydrated!==null){if(y.alternate===null)throw Error(l(340));Lo()}return d=y.flags,d&65536?(y.flags=d&-65537|128,y):null;case 19:return ee(E2),null;case 4:return Se(),null;case 10:return P6(y.type),null;case 22:case 23:return T6(y),Vo(),d!==null&&ee(er),d=y.flags,d&65536?(y.flags=d&-65537|128,y):null;case 24:return P6(V2),null;case 25:return null;default:return null}}function Jy(d,y){switch(ra(y),y.tag){case 3:P6(V2),Se();break;case 26:case 27:case 5:_e(y);break;case 4:Se();break;case 13:T6(y);break;case 19:ee(E2);break;case 10:P6(y.type);break;case 22:case 23:T6(y),Vo(),d!==null&&ee(er);break;case 24:P6(V2)}}function qo(d,y){try{var x=y.updateQueue,C=x!==null?x.lastEffect:null;if(C!==null){var N=C.next;x=N;do{if((x.tag&d)===d){C=void 0;var P=x.create,X=x.inst;C=P(),X.destroy=C}x=x.next}while(x!==N)}}catch(re){I1(y,y.return,re)}}function s0(d,y,x){try{var C=y.updateQueue,N=C!==null?C.lastEffect:null;if(N!==null){var P=N.next;C=P;do{if((C.tag&d)===d){var X=C.inst,re=X.destroy;if(re!==void 0){X.destroy=void 0,N=y;var ce=x,Me=re;try{Me()}catch(Fe){I1(N,ce,Fe)}}}C=C.next}while(C!==P)}}catch(Fe){I1(y,y.return,Fe)}}function eg(d){var y=d.updateQueue;if(y!==null){var x=d.stateNode;try{q9(y,x)}catch(C){I1(d,d.return,C)}}}function fu(d,y,x){x.props=cn(d.type,d.memoizedProps),x.state=d.memoizedState;try{x.componentWillUnmount()}catch(C){I1(d,y,C)}}function $o(d,y){try{var x=d.ref;if(x!==null){switch(d.tag){case 26:case 27:case 5:var C=d.stateNode;break;case 30:C=d.stateNode;break;default:C=d.stateNode}typeof x=="function"?d.refCleanup=x(C):x.current=C}}catch(N){I1(d,y,N)}}function f6(d,y){var x=d.ref,C=d.refCleanup;if(x!==null)if(typeof C=="function")try{C()}catch(N){I1(d,y,N)}finally{d.refCleanup=null,d=d.alternate,d!=null&&(d.refCleanup=null)}else if(typeof x=="function")try{x(null)}catch(N){I1(d,y,N)}else x.current=null}function eh(d){var y=d.type,x=d.memoizedProps,C=d.stateNode;try{e:switch(y){case"button":case"input":case"select":case"textarea":x.autoFocus&&C.focus();break e;case"img":x.src?C.src=x.src:x.srcSet&&(C.srcset=x.srcSet)}}catch(N){I1(d,d.return,N)}}function ha(d,y,x){try{var C=d.stateNode;b1(C,d.type,x,y),C[L3]=y}catch(N){I1(d,d.return,N)}}function tg(d){return d.tag===5||d.tag===3||d.tag===26||d.tag===27&&d3(d.type)||d.tag===4}function th(d){e:for(;;){for(;d.sibling===null;){if(d.return===null||tg(d.return))return null;d=d.return}for(d.sibling.return=d.return,d=d.sibling;d.tag!==5&&d.tag!==6&&d.tag!==18;){if(d.tag===27&&d3(d.type)||d.flags&2||d.child===null||d.tag===4)continue e;d.child.return=d,d=d.child}if(!(d.flags&2))return d.stateNode}}function Tn(d,y,x){var C=d.tag;if(C===5||C===6)d=d.stateNode,y?(x.nodeType===9?x.body:x.nodeName==="HTML"?x.ownerDocument.body:x).insertBefore(d,y):(y=x.nodeType===9?x.body:x.nodeName==="HTML"?x.ownerDocument.body:x,y.appendChild(d),x=x._reactRootContainer,x!=null||y.onclick!==null||(y.onclick=Ul));else if(C!==4&&(C===27&&d3(d.type)&&(x=d.stateNode,y=null),d=d.child,d!==null))for(Tn(d,y,x),d=d.sibling;d!==null;)Tn(d,y,x),d=d.sibling}function u0(d,y,x){var C=d.tag;if(C===5||C===6)d=d.stateNode,y?x.insertBefore(d,y):x.appendChild(d);else if(C!==4&&(C===27&&d3(d.type)&&(x=d.stateNode),d=d.child,d!==null))for(u0(d,y,x),d=d.sibling;d!==null;)u0(d,y,x),d=d.sibling}function ng(d){var y=d.stateNode,x=d.memoizedProps;try{for(var C=d.type,N=y.attributes;N.length;)y.removeAttributeNode(N[0]);we(y,C,x),y[$1]=d,y[L3]=x}catch(P){I1(d,d.return,P)}}var d6=!1,v2=!1,du=!1,nh=typeof WeakSet=="function"?WeakSet:Set,R2=null;function rg(d,y){if(d=d.containerInfo,Lh=es,d=nl(d),O9(d)){if("selectionStart"in d)var x={start:d.selectionStart,end:d.selectionEnd};else e:{x=(x=d.ownerDocument)&&x.defaultView||window;var C=x.getSelection&&x.getSelection();if(C&&C.rangeCount!==0){x=C.anchorNode;var N=C.anchorOffset,P=C.focusNode;C=C.focusOffset;try{x.nodeType,P.nodeType}catch{x=null;break e}var X=0,re=-1,ce=-1,Me=0,Fe=0,$e=d,Oe=null;t:for(;;){for(var Re;$e!==x||N!==0&&$e.nodeType!==3||(re=X+N),$e!==P||C!==0&&$e.nodeType!==3||(ce=X+C),$e.nodeType===3&&(X+=$e.nodeValue.length),(Re=$e.firstChild)!==null;)Oe=$e,$e=Re;for(;;){if($e===d)break t;if(Oe===x&&++Me===N&&(re=X),Oe===P&&++Fe===C&&(ce=X),(Re=$e.nextSibling)!==null)break;$e=Oe,Oe=$e.parentNode}$e=Re}x=re===-1||ce===-1?null:{start:re,end:ce}}else x=null}x=x||{start:0,end:0}}else x=null;for(Gl={focusedElem:d,selectionRange:x},es=!1,R2=y;R2!==null;)if(y=R2,d=y.child,(y.subtreeFlags&1024)!==0&&d!==null)d.return=y,R2=d;else for(;R2!==null;){switch(y=R2,P=y.alternate,d=y.flags,y.tag){case 0:break;case 11:case 15:break;case 1:if((d&1024)!==0&&P!==null){d=void 0,x=y,N=P.memoizedProps,P=P.memoizedState,C=x.stateNode;try{var Mt=cn(x.type,N,x.elementType===x.type);d=C.getSnapshotBeforeUpdate(Mt,P),C.__reactInternalSnapshotBeforeUpdate=d}catch(Lt){I1(x,x.return,Lt)}}break;case 3:if((d&1024)!==0){if(d=y.stateNode.containerInfo,x=d.nodeType,x===9)Zl(d);else if(x===1)switch(d.nodeName){case"HEAD":case"HTML":case"BODY":Zl(d);break;default:d.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((d&1024)!==0)throw Error(l(163))}if(d=y.sibling,d!==null){d.return=y.return,R2=d;break}R2=y.return}}function hu(d,y,x){var C=x.flags;switch(x.tag){case 0:case 11:case 15:sr(d,x),C&4&&qo(5,x);break;case 1:if(sr(d,x),C&4)if(d=x.stateNode,y===null)try{d.componentDidMount()}catch(X){I1(x,x.return,X)}else{var N=cn(x.type,y.memoizedProps);y=y.memoizedState;try{d.componentDidUpdate(N,y,d.__reactInternalSnapshotBeforeUpdate)}catch(X){I1(x,x.return,X)}}C&64&&eg(x),C&512&&$o(x,x.return);break;case 3:if(sr(d,x),C&64&&(d=x.updateQueue,d!==null)){if(y=null,x.child!==null)switch(x.child.tag){case 27:case 5:y=x.child.stateNode;break;case 1:y=x.child.stateNode}try{q9(d,y)}catch(X){I1(x,x.return,X)}}break;case 27:y===null&&C&4&&ng(x);case 26:case 5:sr(d,x),y===null&&C&4&&eh(x),C&512&&$o(x,x.return);break;case 12:sr(d,x);break;case 13:sr(d,x),C&4&&e1(d,x),C&64&&(d=x.memoizedState,d!==null&&(d=d.dehydrated,d!==null&&(x=hg.bind(null,x),Eh(d,x))));break;case 22:if(C=x.memoizedState!==null||d6,!C){y=y!==null&&y.memoizedState!==null||v2,N=d6;var P=v2;d6=C,(v2=y)&&!P?i2(d,x,(x.subtreeFlags&8772)!==0):sr(d,x),d6=N,v2=P}break;case 30:break;default:sr(d,x)}}function rh(d){var y=d.alternate;y!==null&&(d.alternate=null,rh(y)),d.child=null,d.deletions=null,d.sibling=null,d.tag===5&&(y=d.stateNode,y!==null&&pt(y)),d.stateNode=null,d.return=null,d.dependencies=null,d.memoizedProps=null,d.memoizedState=null,d.pendingProps=null,d.stateNode=null,d.updateQueue=null}var r2=null,m4=!1;function Qn(d,y,x){for(x=x.child;x!==null;)ih(d,y,x),x=x.sibling}function ih(d,y,x){if(De&&typeof De.onCommitFiberUnmount=="function")try{De.onCommitFiberUnmount(me,x)}catch{}switch(x.tag){case 26:v2||f6(x,y),Qn(d,y,x),x.memoizedState?x.memoizedState.count--:x.stateNode&&(x=x.stateNode,x.parentNode.removeChild(x));break;case 27:v2||f6(x,y);var C=r2,N=m4;d3(x.type)&&(r2=x.stateNode,m4=!1),Qn(d,y,x),lt(x.stateNode),r2=C,m4=N;break;case 5:v2||f6(x,y);case 6:if(C=r2,N=m4,r2=null,Qn(d,y,x),r2=C,m4=N,r2!==null)if(m4)try{(r2.nodeType===9?r2.body:r2.nodeName==="HTML"?r2.ownerDocument.body:r2).removeChild(x.stateNode)}catch(P){I1(x,y,P)}else try{r2.removeChild(x.stateNode)}catch(P){I1(x,y,P)}break;case 18:r2!==null&&(m4?(d=r2,vg(d.nodeType===9?d.body:d.nodeName==="HTML"?d.ownerDocument.body:d,x.stateNode),c7(d)):vg(r2,x.stateNode));break;case 4:C=r2,N=m4,r2=x.stateNode.containerInfo,m4=!0,Qn(d,y,x),r2=C,m4=N;break;case 0:case 11:case 14:case 15:v2||s0(2,x,y),v2||s0(4,x,y),Qn(d,y,x);break;case 1:v2||(f6(x,y),C=x.stateNode,typeof C.componentWillUnmount=="function"&&fu(x,y,C)),Qn(d,y,x);break;case 21:Qn(d,y,x);break;case 22:v2=(C=v2)||x.memoizedState!==null,Qn(d,y,x),v2=C;break;default:Qn(d,y,x)}}function e1(d,y){if(y.memoizedState===null&&(d=y.alternate,d!==null&&(d=d.memoizedState,d!==null&&(d=d.dehydrated,d!==null))))try{c7(d)}catch(x){I1(y,y.return,x)}}function ah(d){switch(d.tag){case 13:case 19:var y=d.stateNode;return y===null&&(y=d.stateNode=new nh),y;case 22:return d=d.stateNode,y=d._retryCache,y===null&&(y=d._retryCache=new nh),y;default:throw Error(l(435,d.tag))}}function Rl(d,y){var x=ah(d);y.forEach(function(C){var N=Nb.bind(null,d,C);x.has(C)||(x.add(C),C.then(N,N))})}function y4(d,y){var x=y.deletions;if(x!==null)for(var C=0;C<x.length;C++){var N=x[C],P=d,X=y,re=X;e:for(;re!==null;){switch(re.tag){case 27:if(d3(re.type)){r2=re.stateNode,m4=!1;break e}break;case 5:r2=re.stateNode,m4=!1;break e;case 3:case 4:r2=re.stateNode.containerInfo,m4=!0;break e}re=re.return}if(r2===null)throw Error(l(160));ih(P,X,N),r2=null,m4=!1,P=N.alternate,P!==null&&(P.return=null),N.return=null}if(y.subtreeFlags&13878)for(y=y.child;y!==null;)Uo(y,d),y=y.sibling}var I4=null;function Uo(d,y){var x=d.alternate,C=d.flags;switch(d.tag){case 0:case 11:case 14:case 15:y4(y,d),E3(d),C&4&&(s0(3,d,d.return),qo(3,d),s0(5,d,d.return));break;case 1:y4(y,d),E3(d),C&512&&(v2||x===null||f6(x,x.return)),C&64&&d6&&(d=d.updateQueue,d!==null&&(C=d.callbacks,C!==null&&(x=d.shared.hiddenCallbacks,d.shared.hiddenCallbacks=x===null?C:x.concat(C))));break;case 26:var N=I4;if(y4(y,d),E3(d),C&512&&(v2||x===null||f6(x,x.return)),C&4){var P=x!==null?x.memoizedState:null;if(C=d.memoizedState,x===null)if(C===null)if(d.stateNode===null){e:{C=d.type,x=d.memoizedProps,N=N.ownerDocument||N;t:switch(C){case"title":P=N.getElementsByTagName("title")[0],(!P||P[F8]||P[$1]||P.namespaceURI==="http://www.w3.org/2000/svg"||P.hasAttribute("itemprop"))&&(P=N.createElement(C),N.head.insertBefore(P,N.querySelector("head > title"))),we(P,C,x),P[$1]=d,H2(P),C=P;break e;case"link":var X=o7("link","href",N).get(C+(x.href||""));if(X){for(var re=0;re<X.length;re++)if(P=X[re],P.getAttribute("href")===(x.href==null||x.href===""?null:x.href)&&P.getAttribute("rel")===(x.rel==null?null:x.rel)&&P.getAttribute("title")===(x.title==null?null:x.title)&&P.getAttribute("crossorigin")===(x.crossOrigin==null?null:x.crossOrigin)){X.splice(re,1);break t}}P=N.createElement(C),we(P,C,x),N.head.appendChild(P);break;case"meta":if(X=o7("meta","content",N).get(C+(x.content||""))){for(re=0;re<X.length;re++)if(P=X[re],P.getAttribute("content")===(x.content==null?null:""+x.content)&&P.getAttribute("name")===(x.name==null?null:x.name)&&P.getAttribute("property")===(x.property==null?null:x.property)&&P.getAttribute("http-equiv")===(x.httpEquiv==null?null:x.httpEquiv)&&P.getAttribute("charset")===(x.charSet==null?null:x.charSet)){X.splice(re,1);break t}}P=N.createElement(C),we(P,C,x),N.head.appendChild(P);break;default:throw Error(l(468,C))}P[$1]=d,H2(P),C=P}d.stateNode=C}else _h(N,d.type,d.stateNode);else d.stateNode=Iu(N,C,d.memoizedProps);else P!==C?(P===null?x.stateNode!==null&&(x=x.stateNode,x.parentNode.removeChild(x)):P.count--,C===null?_h(N,d.type,d.stateNode):Iu(N,C,d.memoizedProps)):C===null&&d.stateNode!==null&&ha(d,d.memoizedProps,x.memoizedProps)}break;case 27:y4(y,d),E3(d),C&512&&(v2||x===null||f6(x,x.return)),x!==null&&C&4&&ha(d,d.memoizedProps,x.memoizedProps);break;case 5:if(y4(y,d),E3(d),C&512&&(v2||x===null||f6(x,x.return)),d.flags&32){N=d.stateNode;try{Fi(N,"")}catch(Re){I1(d,d.return,Re)}}C&4&&d.stateNode!=null&&(N=d.memoizedProps,ha(d,N,x!==null?x.memoizedProps:N)),C&1024&&(du=!0);break;case 6:if(y4(y,d),E3(d),C&4){if(d.stateNode===null)throw Error(l(162));C=d.memoizedProps,x=d.stateNode;try{x.nodeValue=C}catch(Re){I1(d,d.return,Re)}}break;case 3:if(Yl=null,N=I4,I4=t3(y.containerInfo),y4(y,d),I4=N,E3(d),C&4&&x!==null&&x.memoizedState.isDehydrated)try{c7(y.containerInfo)}catch(Re){I1(d,d.return,Re)}du&&(du=!1,pa(d));break;case 4:C=I4,I4=t3(d.stateNode.containerInfo),y4(y,d),E3(d),I4=C;break;case 12:y4(y,d),E3(d);break;case 13:y4(y,d),E3(d),d.child.flags&8192&&d.memoizedState!==null!=(x!==null&&x.memoizedState!==null)&&(Th=ot()),C&4&&(C=d.updateQueue,C!==null&&(d.updateQueue=null,Rl(d,C)));break;case 22:N=d.memoizedState!==null;var ce=x!==null&&x.memoizedState!==null,Me=d6,Fe=v2;if(d6=Me||N,v2=Fe||ce,y4(y,d),v2=Fe,d6=Me,E3(d),C&8192)e:for(y=d.stateNode,y._visibility=N?y._visibility&-2:y._visibility|1,N&&(x===null||ce||d6||v2||ur(d)),x=null,y=d;;){if(y.tag===5||y.tag===26){if(x===null){ce=x=y;try{if(P=ce.stateNode,N)X=P.style,typeof X.setProperty=="function"?X.setProperty("display","none","important"):X.display="none";else{re=ce.stateNode;var $e=ce.memoizedProps.style,Oe=$e!=null&&$e.hasOwnProperty("display")?$e.display:null;re.style.display=Oe==null||typeof Oe=="boolean"?"":(""+Oe).trim()}}catch(Re){I1(ce,ce.return,Re)}}}else if(y.tag===6){if(x===null){ce=y;try{ce.stateNode.nodeValue=N?"":ce.memoizedProps}catch(Re){I1(ce,ce.return,Re)}}}else if((y.tag!==22&&y.tag!==23||y.memoizedState===null||y===d)&&y.child!==null){y.child.return=y,y=y.child;continue}if(y===d)break e;for(;y.sibling===null;){if(y.return===null||y.return===d)break e;x===y&&(x=null),y=y.return}x===y&&(x=null),y.sibling.return=y.return,y=y.sibling}C&4&&(C=d.updateQueue,C!==null&&(x=C.retryQueue,x!==null&&(C.retryQueue=null,Rl(d,x))));break;case 19:y4(y,d),E3(d),C&4&&(C=d.updateQueue,C!==null&&(d.updateQueue=null,Rl(d,C)));break;case 30:break;case 21:break;default:y4(y,d),E3(d)}}function E3(d){var y=d.flags;if(y&2){try{for(var x,C=d.return;C!==null;){if(tg(C)){x=C;break}C=C.return}if(x==null)throw Error(l(160));switch(x.tag){case 27:var N=x.stateNode,P=th(d);u0(d,P,N);break;case 5:var X=x.stateNode;x.flags&32&&(Fi(X,""),x.flags&=-33);var re=th(d);u0(d,re,X);break;case 3:case 4:var ce=x.stateNode.containerInfo,Me=th(d);Tn(d,Me,ce);break;default:throw Error(l(161))}}catch(Fe){I1(d,d.return,Fe)}d.flags&=-3}y&4096&&(d.flags&=-4097)}function pa(d){if(d.subtreeFlags&1024)for(d=d.child;d!==null;){var y=d;pa(y),y.tag===5&&y.flags&1024&&y.stateNode.reset(),d=d.sibling}}function sr(d,y){if(y.subtreeFlags&8772)for(y=y.child;y!==null;)hu(d,y.alternate,y),y=y.sibling}function ur(d){for(d=d.child;d!==null;){var y=d;switch(y.tag){case 0:case 11:case 14:case 15:s0(4,y,y.return),ur(y);break;case 1:f6(y,y.return);var x=y.stateNode;typeof x.componentWillUnmount=="function"&&fu(y,y.return,x),ur(y);break;case 27:lt(y.stateNode);case 26:case 5:f6(y,y.return),ur(y);break;case 22:y.memoizedState===null&&ur(y);break;case 30:ur(y);break;default:ur(y)}d=d.sibling}}function i2(d,y,x){for(x=x&&(y.subtreeFlags&8772)!==0,y=y.child;y!==null;){var C=y.alternate,N=d,P=y,X=P.flags;switch(P.tag){case 0:case 11:case 15:i2(N,P,x),qo(4,P);break;case 1:if(i2(N,P,x),C=P,N=C.stateNode,typeof N.componentDidMount=="function")try{N.componentDidMount()}catch(Me){I1(C,C.return,Me)}if(C=P,N=C.updateQueue,N!==null){var re=C.stateNode;try{var ce=N.shared.hiddenCallbacks;if(ce!==null)for(N.shared.hiddenCallbacks=null,N=0;N<ce.length;N++)wo(ce[N],re)}catch(Me){I1(C,C.return,Me)}}x&&X&64&&eg(P),$o(P,P.return);break;case 27:ng(P);case 26:case 5:i2(N,P,x),x&&C===null&&X&4&&eh(P),$o(P,P.return);break;case 12:i2(N,P,x);break;case 13:i2(N,P,x),x&&X&4&&e1(N,P);break;case 22:P.memoizedState===null&&i2(N,P,x),$o(P,P.return);break;case 30:break;default:i2(N,P,x)}y=y.sibling}}function oh(d,y){var x=null;d!==null&&d.memoizedState!==null&&d.memoizedState.cachePool!==null&&(x=d.memoizedState.cachePool.pool),d=null,y.memoizedState!==null&&y.memoizedState.cachePool!==null&&(d=y.memoizedState.cachePool.pool),d!==x&&(d!=null&&d.refCount++,x!=null&&n0(x))}function fn(d,y){d=null,y.alternate!==null&&(d=y.alternate.memoizedState.cache),y=y.memoizedState.cache,y!==d&&(y.refCount++,d!=null&&n0(d))}function h6(d,y,x,C){if(y.subtreeFlags&10256)for(y=y.child;y!==null;)cr(d,y,x,C),y=y.sibling}function cr(d,y,x,C){var N=y.flags;switch(y.tag){case 0:case 11:case 15:h6(d,y,x,C),N&2048&&qo(9,y);break;case 1:h6(d,y,x,C);break;case 3:h6(d,y,x,C),N&2048&&(d=null,y.alternate!==null&&(d=y.alternate.memoizedState.cache),y=y.memoizedState.cache,y!==d&&(y.refCount++,d!=null&&n0(d)));break;case 12:if(N&2048){h6(d,y,x,C),d=y.stateNode;try{var P=y.memoizedProps,X=P.id,re=P.onPostCommit;typeof re=="function"&&re(X,y.alternate===null?"mount":"update",d.passiveEffectDuration,-0)}catch(ce){I1(y,y.return,ce)}}else h6(d,y,x,C);break;case 13:h6(d,y,x,C);break;case 23:break;case 22:P=y.stateNode,X=y.alternate,y.memoizedState!==null?P._visibility&2?h6(d,y,x,C):c0(d,y):P._visibility&2?h6(d,y,x,C):(P._visibility|=2,ma(d,y,x,C,(y.subtreeFlags&10256)!==0)),N&2048&&oh(X,y);break;case 24:h6(d,y,x,C),N&2048&&fn(y.alternate,y);break;default:h6(d,y,x,C)}}function ma(d,y,x,C,N){for(N=N&&(y.subtreeFlags&10256)!==0,y=y.child;y!==null;){var P=d,X=y,re=x,ce=C,Me=X.flags;switch(X.tag){case 0:case 11:case 15:ma(P,X,re,ce,N),qo(8,X);break;case 23:break;case 22:var Fe=X.stateNode;X.memoizedState!==null?Fe._visibility&2?ma(P,X,re,ce,N):c0(P,X):(Fe._visibility|=2,ma(P,X,re,ce,N)),N&&Me&2048&&oh(X.alternate,X);break;case 24:ma(P,X,re,ce,N),N&&Me&2048&&fn(X.alternate,X);break;default:ma(P,X,re,ce,N)}y=y.sibling}}function c0(d,y){if(y.subtreeFlags&10256)for(y=y.child;y!==null;){var x=d,C=y,N=C.flags;switch(C.tag){case 22:c0(x,C),N&2048&&oh(C.alternate,C);break;case 24:c0(x,C),N&2048&&fn(C.alternate,C);break;default:c0(x,C)}y=y.sibling}}var y1=8192;function T0(d){if(d.subtreeFlags&y1)for(d=d.child;d!==null;)e3(d),d=d.sibling}function e3(d){switch(d.tag){case 26:T0(d),d.flags&y1&&d.memoizedState!==null&&bg(I4,d.memoizedState,d.memoizedProps);break;case 5:T0(d);break;case 3:case 4:var y=I4;I4=t3(d.stateNode.containerInfo),T0(d),I4=y;break;case 22:d.memoizedState===null&&(y=d.alternate,y!==null&&y.memoizedState!==null?(y=y1,y1=16777216,T0(d),y1=y):T0(d));break;default:T0(d)}}function ig(d){var y=d.alternate;if(y!==null&&(d=y.child,d!==null)){y.child=null;do y=d.sibling,d.sibling=null,d=y;while(d!==null)}}function Go(d){var y=d.deletions;if((d.flags&16)!==0){if(y!==null)for(var x=0;x<y.length;x++){var C=y[x];R2=C,F4(C,d)}ig(d)}if(d.subtreeFlags&10256)for(d=d.child;d!==null;)pu(d),d=d.sibling}function pu(d){switch(d.tag){case 0:case 11:case 15:Go(d),d.flags&2048&&s0(9,d,d.return);break;case 3:Go(d);break;case 12:Go(d);break;case 22:var y=d.stateNode;d.memoizedState!==null&&y._visibility&2&&(d.return===null||d.return.tag!==13)?(y._visibility&=-3,kl(d)):Go(d);break;default:Go(d)}}function kl(d){var y=d.deletions;if((d.flags&16)!==0){if(y!==null)for(var x=0;x<y.length;x++){var C=y[x];R2=C,F4(C,d)}ig(d)}for(d=d.child;d!==null;){switch(y=d,y.tag){case 0:case 11:case 15:s0(8,y,y.return),kl(y);break;case 22:x=y.stateNode,x._visibility&2&&(x._visibility&=-3,kl(y));break;default:kl(y)}d=d.sibling}}function F4(d,y){for(;R2!==null;){var x=R2;switch(x.tag){case 0:case 11:case 15:s0(8,x,y);break;case 23:case 22:if(x.memoizedState!==null&&x.memoizedState.cachePool!==null){var C=x.memoizedState.cachePool.pool;C!=null&&C.refCount++}break;case 24:n0(x.memoizedState.cache)}if(C=x.child,C!==null)C.return=x,R2=C;else e:for(x=d;R2!==null;){C=R2;var N=C.sibling,P=C.return;if(rh(C),C===x){R2=null;break e}if(N!==null){N.return=P,R2=N;break e}R2=P}}}var ag={getCacheForType:function(d){var y=Q3(V2),x=y.data.get(d);return x===void 0&&(x=d(),y.data.set(d,x)),x}},lh=typeof WeakMap=="function"?WeakMap:Map,M1=0,j1=null,t1=null,T1=0,g1=0,g4=null,Tr=!1,Q0=!1,sh=!1,Qr=0,L2=0,f0=0,d0=0,uh=0,$2=0,Zo=0,Nl=null,j3=null,ch=!1,Th=0,mu=1/0,yu=null,z6=null,f3=0,h0=null,p0=null,Xo=0,v4=0,gu=null,Qh=null,Wo=0,vu=null;function z4(){if((M1&2)!==0&&T1!==0)return T1&-T1;if(W.T!==null){var d=r0;return d!==0?d:Ou()}return D6()}function og(){$2===0&&($2=(T1&536870912)===0||$t?ve():536870912);var d=D2.current;return d!==null&&(d.flags|=32),$2}function L4(d,y,x){(d===j1&&(g1===2||g1===9)||d.cancelPendingCommit!==null)&&(p6(d,0),fr(d,T1,$2,!1)),nt(d,x),((M1&2)===0||d!==j1)&&(d===j1&&((M1&2)===0&&(d0|=x),L2===4&&fr(d,T1,$2,!1)),m6(d))}function lg(d,y,x){if((M1&6)!==0)throw Error(l(327));var C=!x&&(y&124)===0&&(y&d.expiredLanes)===0||xt(d,y),N=C?xu(d,y):ya(d,y,!0),P=C;do{if(N===0){Q0&&!C&&fr(d,y,0,!1);break}else{if(x=d.current.alternate,P&&!Lu(x)){N=ya(d,y,!1),P=!1;continue}if(N===2){if(P=y,d.errorRecoveryDisabledLanes&P)var X=0;else X=d.pendingLanes&-536870913,X=X!==0?X:X&536870912?536870912:0;if(X!==0){y=X;e:{var re=d;N=Nl;var ce=re.current.memoizedState.isDehydrated;if(ce&&(p6(re,X).flags|=256),X=ya(re,X,!1),X!==2){if(sh&&!ce){re.errorRecoveryDisabledLanes|=P,d0|=P,N=4;break e}P=j3,j3=N,P!==null&&(j3===null?j3=P:j3.push.apply(j3,P))}N=X}if(P=!1,N!==2)continue}}if(N===1){p6(d,0),fr(d,y,0,!0);break}e:{switch(C=d,P=N,P){case 0:case 1:throw Error(l(345));case 4:if((y&4194048)!==y)break;case 6:fr(C,y,$2,!Tr);break e;case 2:j3=null;break;case 3:case 5:break;default:throw Error(l(329))}if((y&62914560)===y&&(N=Th+300-ot(),10<N)){if(fr(C,y,$2,!Tr),it(C,0,!0)!==0)break e;C.timeoutHandle=U6(Yo.bind(null,C,x,j3,yu,ch,y,$2,d0,Zo,Tr,P,2,-0,0),N);break e}Yo(C,x,j3,yu,ch,y,$2,d0,Zo,Tr,P,0,-0,0)}}break}while(!0);m6(d)}function Yo(d,y,x,C,N,P,X,re,ce,Me,Fe,$e,Oe,Re){if(d.timeoutHandle=-1,$e=y.subtreeFlags,($e&8192||($e&16785408)===16785408)&&(l7={stylesheets:null,count:0,unsuspend:xg},e3(y),$e=Hg(),$e!==null)){d.cancelPendingCommit=$e(cg.bind(null,d,y,P,x,C,N,X,re,ce,Fe,1,Oe,Re)),fr(d,P,X,!Me);return}cg(d,y,P,x,C,N,X,re,ce)}function Lu(d){for(var y=d;;){var x=y.tag;if((x===0||x===11||x===15)&&y.flags&16384&&(x=y.updateQueue,x!==null&&(x=x.stores,x!==null)))for(var C=0;C<x.length;C++){var N=x[C],P=N.getSnapshot;N=N.value;try{if(!N3(P(),N))return!1}catch{return!1}}if(x=y.child,y.subtreeFlags&16384&&x!==null)x.return=y,y=x;else{if(y===d)break;for(;y.sibling===null;){if(y.return===null||y.return===d)return!0;y=y.return}y.sibling.return=y.return,y=y.sibling}}return!0}function fr(d,y,x,C){y&=~uh,y&=~d0,d.suspendedLanes|=y,d.pingedLanes&=~y,C&&(d.warmLanes|=y),C=d.expirationTimes;for(var N=y;0<N;){var P=31-et(N),X=1<<P;C[P]=-1,N&=~X}x!==0&&_t(d,x,y)}function Bl(){return(M1&6)===0?(dr(0),!1):!0}function Ko(){if(t1!==null){if(g1===0)var d=t1.return;else d=t1,o6=J5=null,Do(d),d4=null,Bo=0,d=t1;for(;d!==null;)Jy(d.alternate,d),d=d.return;t1=null}}function p6(d,y){var x=d.timeoutHandle;x!==-1&&(d.timeoutHandle=-1,xh(x)),x=d.cancelPendingCommit,x!==null&&(d.cancelPendingCommit=null,x()),Ko(),j1=d,t1=x=n6(d.current,null),T1=y,g1=0,g4=null,Tr=!1,Q0=xt(d,y),sh=!1,Zo=$2=uh=d0=f0=L2=0,j3=Nl=null,ch=!1,(y&8)!==0&&(y|=y&32);var C=d.entangledLanes;if(C!==0)for(d=d.entanglements,C&=y;0<C;){var N=31-et(C),P=1<<N;y|=d[N],C&=~P}return Qr=y,e6(),x}function Jo(d,y){Nt=null,W.H=_l,y===ia||y===Ao?(y=F9(),g1=3):y===fl?(y=F9(),g1=4):g1=y===qd?8:y!==null&&typeof y=="object"&&typeof y.then=="function"?6:1,g4=y,t1===null&&(L2=1,Qa(d,N4(y,d.current)))}function fh(){var d=W.H;return W.H=_l,d===null?_l:d}function sg(){var d=W.A;return W.A=ag,d}function m0(){L2=4,Tr||(T1&4194048)!==T1&&D2.current!==null||(Q0=!0),(f0&134217727)===0&&(d0&134217727)===0||j1===null||fr(j1,T1,$2,!1)}function ya(d,y,x){var C=M1;M1|=2;var N=fh(),P=sg();(j1!==d||T1!==y)&&(yu=null,p6(d,y)),y=!1;var X=L2;e:do try{if(g1!==0&&t1!==null){var re=t1,ce=g4;switch(g1){case 8:Ko(),X=6;break e;case 3:case 2:case 9:case 6:D2.current===null&&(y=!0);var Me=g1;if(g1=0,g4=null,ga(d,re,ce,Me),x&&Q0){X=0;break e}break;default:Me=g1,g1=0,g4=null,ga(d,re,ce,Me)}}ug(),X=L2;break}catch(Fe){Jo(d,Fe)}while(!0);return y&&d.shellSuspendCounter++,o6=J5=null,M1=C,W.H=N,W.A=P,t1===null&&(j1=null,T1=0,e6()),X}function ug(){for(;t1!==null;)bu(t1)}function xu(d,y){var x=M1;M1|=2;var C=fh(),N=sg();j1!==d||T1!==y?(yu=null,mu=ot()+500,p6(d,y)):Q0=xt(d,y);e:do try{if(g1!==0&&t1!==null){y=t1;var P=g4;t:switch(g1){case 1:g1=0,g4=null,ga(d,y,P,1);break;case 2:case 9:if(Qd(P)){g1=0,g4=null,hh(y);break}y=function(){g1!==2&&g1!==9||j1!==d||(g1=7),m6(d)},P.then(y,y);break e;case 3:g1=7;break e;case 4:g1=5;break e;case 7:Qd(P)?(g1=0,g4=null,hh(y)):(g1=0,g4=null,ga(d,y,P,7));break;case 5:var X=null;switch(t1.tag){case 26:X=t1.memoizedState;case 5:case 27:var re=t1;if(!X||Oh(X)){g1=0,g4=null;var ce=re.sibling;if(ce!==null)t1=ce;else{var Me=re.return;Me!==null?(t1=Me,Hu(Me)):t1=null}break t}}g1=0,g4=null,ga(d,y,P,5);break;case 6:g1=0,g4=null,ga(d,y,P,6);break;case 8:Ko(),L2=6;break e;default:throw Error(l(462))}}dh();break}catch(Fe){Jo(d,Fe)}while(!0);return o6=J5=null,W.H=C,W.A=N,M1=x,t1!==null?0:(j1=null,T1=0,e6(),L2)}function dh(){for(;t1!==null&&!Xe();)bu(t1)}function bu(d){var y=Yd(d.alternate,d,Qr);d.memoizedProps=d.pendingProps,y===null?Hu(d):t1=y}function hh(d){var y=d,x=y.alternate;switch(y.tag){case 15:case 0:y=Ud(x,y,y.pendingProps,y.type,void 0,T1);break;case 11:y=Ud(x,y,y.pendingProps,y.type.render,y.ref,T1);break;case 5:Do(y);default:Jy(x,y),y=t1=R9(y,Qr),y=Yd(x,y,Qr)}d.memoizedProps=d.pendingProps,y===null?Hu(d):t1=y}function ga(d,y,x,C){o6=J5=null,Do(y),d4=null,Bo=0;var N=y.return;try{if(j4(d,N,y,x,T1)){L2=1,Qa(d,N4(x,d.current)),t1=null;return}}catch(P){if(N!==null)throw t1=N,P;L2=1,Qa(d,N4(x,d.current)),t1=null;return}y.flags&32768?($t||C===1?d=!0:Q0||(T1&536870912)!==0?d=!1:(Tr=d=!0,(C===2||C===9||C===3||C===6)&&(C=D2.current,C!==null&&C.tag===13&&(C.flags|=16384))),ph(y,d)):Hu(y)}function Hu(d){var y=d;do{if((y.flags&32768)!==0){ph(y,Tr);return}d=y.return;var x=P1(y.alternate,y,Qr);if(x!==null){t1=x;return}if(y=y.sibling,y!==null){t1=y;return}t1=y=d}while(y!==null);L2===0&&(L2=5)}function ph(d,y){do{var x=Jd(d.alternate,d);if(x!==null){x.flags&=32767,t1=x;return}if(x=d.return,x!==null&&(x.flags|=32768,x.subtreeFlags=0,x.deletions=null),!y&&(d=d.sibling,d!==null)){t1=d;return}t1=d=x}while(d!==null);L2=6,t1=null}function cg(d,y,x,C,N,P,X,re,ce){d.cancelPendingCommit=null;do Su();while(f3!==0);if((M1&6)!==0)throw Error(l(327));if(y!==null){if(y===d.current)throw Error(l(177));if(P=y.lanes|y.childLanes,P|=il,yt(d,x,P,X,re,ce),d===j1&&(t1=j1=null,T1=0),p0=y,h0=d,Xo=x,v4=P,gu=N,Qh=C,(y.subtreeFlags&10256)!==0||(y.flags&10256)!==0?(d.callbackNode=null,d.callbackPriority=0,Bb(st,function(){return fg(),null})):(d.callbackNode=null,d.callbackPriority=0),C=(y.flags&13878)!==0,(y.subtreeFlags&13878)!==0||C){C=W.T,W.T=null,N=ne.p,ne.p=2,X=M1,M1|=4;try{rg(d,y,x)}finally{M1=X,ne.p=N,W.T=C}}f3=1,Tg(),Qg(),Pl()}}function Tg(){if(f3===1){f3=0;var d=h0,y=p0,x=(y.flags&13878)!==0;if((y.subtreeFlags&13878)!==0||x){x=W.T,W.T=null;var C=ne.p;ne.p=2;var N=M1;M1|=4;try{Uo(y,d);var P=Gl,X=nl(d.containerInfo),re=P.focusedElem,ce=P.selectionRange;if(X!==re&&re&&re.ownerDocument&&t2(re.ownerDocument.documentElement,re)){if(ce!==null&&O9(re)){var Me=ce.start,Fe=ce.end;if(Fe===void 0&&(Fe=Me),"selectionStart"in re)re.selectionStart=Me,re.selectionEnd=Math.min(Fe,re.value.length);else{var $e=re.ownerDocument||document,Oe=$e&&$e.defaultView||window;if(Oe.getSelection){var Re=Oe.getSelection(),Mt=re.textContent.length,Lt=Math.min(ce.start,Mt),H1=ce.end===void 0?Lt:Math.min(ce.end,Mt);!Re.extend&&Lt>H1&&(X=H1,H1=Lt,Lt=X);var be=Xr(re,Lt),ge=Xr(re,H1);if(be&&ge&&(Re.rangeCount!==1||Re.anchorNode!==be.node||Re.anchorOffset!==be.offset||Re.focusNode!==ge.node||Re.focusOffset!==ge.offset)){var Ae=$e.createRange();Ae.setStart(be.node,be.offset),Re.removeAllRanges(),Lt>H1?(Re.addRange(Ae),Re.extend(ge.node,ge.offset)):(Ae.setEnd(ge.node,ge.offset),Re.addRange(Ae))}}}}for($e=[],Re=re;Re=Re.parentNode;)Re.nodeType===1&&$e.push({element:Re,left:Re.scrollLeft,top:Re.scrollTop});for(typeof re.focus=="function"&&re.focus(),re=0;re<$e.length;re++){var qe=$e[re];qe.element.scrollLeft=qe.left,qe.element.scrollTop=qe.top}}es=!!Lh,Gl=Lh=null}finally{M1=N,ne.p=C,W.T=x}}d.current=y,f3=2}}function Qg(){if(f3===2){f3=0;var d=h0,y=p0,x=(y.flags&8772)!==0;if((y.subtreeFlags&8772)!==0||x){x=W.T,W.T=null;var C=ne.p;ne.p=2;var N=M1;M1|=4;try{hu(d,y.alternate,y)}finally{M1=N,ne.p=C,W.T=x}}f3=3}}function Pl(){if(f3===4||f3===3){f3=0,ht();var d=h0,y=p0,x=Xo,C=Qh;(y.subtreeFlags&10256)!==0||(y.flags&10256)!==0?f3=5:(f3=0,p0=h0=null,Eu(d,d.pendingLanes));var N=d.pendingLanes;if(N===0&&(z6=null),C2(x),y=y.stateNode,De&&typeof De.onCommitFiberRoot=="function")try{De.onCommitFiberRoot(me,y,void 0,(y.current.flags&128)===128)}catch{}if(C!==null){y=W.T,N=ne.p,ne.p=2,W.T=null;try{for(var P=d.onRecoverableError,X=0;X<C.length;X++){var re=C[X];P(re.value,{componentStack:re.stack})}}finally{W.T=y,ne.p=N}}(Xo&3)!==0&&Su(),m6(d),N=d.pendingLanes,(x&4194090)!==0&&(N&42)!==0?d===vu?Wo++:(Wo=0,vu=d):Wo=0,dr(0)}}function Eu(d,y){(d.pooledCacheLanes&=y)===0&&(y=d.pooledCache,y!=null&&(d.pooledCache=null,n0(y)))}function Su(d){return Tg(),Qg(),Pl(),fg()}function fg(){if(f3!==5)return!1;var d=h0,y=v4;v4=0;var x=C2(Xo),C=W.T,N=ne.p;try{ne.p=32>x?32:x,W.T=null,x=gu,gu=null;var P=h0,X=Xo;if(f3=0,p0=h0=null,Xo=0,(M1&6)!==0)throw Error(l(331));var re=M1;if(M1|=4,pu(P.current),cr(P,P.current,X,x),M1=re,dr(0,!1),De&&typeof De.onPostCommitFiberRoot=="function")try{De.onPostCommitFiberRoot(me,P)}catch{}return!0}finally{ne.p=N,W.T=C,Eu(d,y)}}function mh(d,y,x){y=N4(x,y),y=ou(d.stateNode,y,2),d=T4(d,y,2),d!==null&&(nt(d,2),m6(d))}function I1(d,y,x){if(d.tag===3)mh(d,d,x);else for(;y!==null;){if(y.tag===3){mh(y,d,x);break}else if(y.tag===1){var C=y.stateNode;if(typeof y.type.getDerivedStateFromError=="function"||typeof C.componentDidCatch=="function"&&(z6===null||!z6.has(C))){d=N4(x,d),x=Xy(2),C=T4(y,x,2),C!==null&&(zd(x,C,y,d),nt(C,2),m6(C));break}}y=y.return}}function jl(d,y,x){var C=d.pingCache;if(C===null){C=d.pingCache=new lh;var N=new Set;C.set(y,N)}else N=C.get(y),N===void 0&&(N=new Set,C.set(y,N));N.has(x)||(sh=!0,N.add(x),d=dg.bind(null,d,y,x),y.then(d,d))}function dg(d,y,x){var C=d.pingCache;C!==null&&C.delete(y),d.pingedLanes|=d.suspendedLanes&x,d.warmLanes&=~x,j1===d&&(T1&x)===x&&(L2===4||L2===3&&(T1&62914560)===T1&&300>ot()-Th?(M1&2)===0&&p6(d,0):uh|=x,Zo===T1&&(Zo=0)),m6(d)}function Mu(d,y){y===0&&(y=We()),d=W5(d,y),d!==null&&(nt(d,y),m6(d))}function hg(d){var y=d.memoizedState,x=0;y!==null&&(x=y.retryLane),Mu(d,x)}function Nb(d,y){var x=0;switch(d.tag){case 13:var C=d.stateNode,N=d.memoizedState;N!==null&&(x=N.retryLane);break;case 19:C=d.stateNode;break;case 22:C=d.stateNode._retryCache;break;default:throw Error(l(314))}C!==null&&C.delete(y),Mu(d,x)}function Bb(d,y){return ue(d,y)}var Au=null,e7=null,Il=!1,t7=!1,Fl=!1,y0=0;function m6(d){d!==e7&&d.next===null&&(e7===null?Au=e7=d:e7=e7.next=d),t7=!0,Il||(Il=!0,_u())}function dr(d,y){if(!Fl&&t7){Fl=!0;do for(var x=!1,C=Au;C!==null;){if(d!==0){var N=C.pendingLanes;if(N===0)var P=0;else{var X=C.suspendedLanes,re=C.pingedLanes;P=(1<<31-et(42|d)+1)-1,P&=N&~(X&~re),P=P&201326741?P&201326741|1:P?P|2:0}P!==0&&(x=!0,pg(C,P))}else P=T1,P=it(C,C===j1?P:0,C.cancelPendingCommit!==null||C.timeoutHandle!==-1),(P&3)===0||xt(C,P)||(x=!0,pg(C,P));C=C.next}while(x);Fl=!1}}function Pb(){yh()}function yh(){t7=Il=!1;var d=0;y0!==0&&(Nu()&&(d=y0),y0=0);for(var y=ot(),x=null,C=Au;C!==null;){var N=C.next,P=zl(C,y);P===0?(C.next=null,x===null?Au=N:x.next=N,N===null&&(e7=x)):(x=C,(d!==0||(P&3)!==0)&&(t7=!0)),C=N}dr(d)}function zl(d,y){for(var x=d.suspendedLanes,C=d.pingedLanes,N=d.expirationTimes,P=d.pendingLanes&-62914561;0<P;){var X=31-et(P),re=1<<X,ce=N[X];ce===-1?((re&x)===0||(re&C)!==0)&&(N[X]=te(re,y)):ce<=y&&(d.expiredLanes|=re),P&=~re}if(y=j1,x=T1,x=it(d,d===y?x:0,d.cancelPendingCommit!==null||d.timeoutHandle!==-1),C=d.callbackNode,x===0||d===y&&(g1===2||g1===9)||d.cancelPendingCommit!==null)return C!==null&&C!==null&&Pe(C),d.callbackNode=null,d.callbackPriority=0;if((x&3)===0||xt(d,x)){if(y=x&-x,y===d.callbackPriority)return y;switch(C!==null&&Pe(C),C2(x)){case 2:case 8:x=p1;break;case 32:x=st;break;case 268435456:x=e2;break;default:x=st}return C=gh.bind(null,d),x=ue(x,C),d.callbackPriority=y,d.callbackNode=x,y}return C!==null&&C!==null&&Pe(C),d.callbackPriority=2,d.callbackNode=null,2}function gh(d,y){if(f3!==0&&f3!==5)return d.callbackNode=null,d.callbackPriority=0,null;var x=d.callbackNode;if(Su()&&d.callbackNode!==x)return null;var C=T1;return C=it(d,d===j1?C:0,d.cancelPendingCommit!==null||d.timeoutHandle!==-1),C===0?null:(lg(d,C,y),zl(d,ot()),d.callbackNode!=null&&d.callbackNode===x?gh.bind(null,d):null)}function pg(d,y){if(Su())return null;lg(d,y,!0)}function _u(){Fb(function(){(M1&6)!==0?ue(zt,Pb):yh()})}function Ou(){return y0===0&&(y0=ve()),y0}function n7(d){return d==null||typeof d=="symbol"||typeof d=="boolean"?null:typeof d=="function"?d:G8(""+d)}function Cu(d,y){var x=y.ownerDocument.createElement("input");return x.name=y.name,x.value=y.value,d.id&&x.setAttribute("form",d.id),y.parentNode.insertBefore(x,y),d=new FormData(d),x.parentNode.removeChild(x),d}function wu(d,y,x,C,N){if(y==="submit"&&x&&x.stateNode===N){var P=n7((N[L3]||null).action),X=C.submitter;X&&(y=(y=X[L3]||null)?n7(y.formAction):X.getAttribute("formAction"),y!==null&&(P=y,X=null));var re=new W8("action","action",null,C,N);d.push({event:re,listeners:[{instance:null,listener:function(){if(C.defaultPrevented){if(y0!==0){var ce=X?Cu(N,X):new FormData(N);wd(x,{pending:!0,data:ce,method:N.method,action:P},null,ce)}}else typeof P=="function"&&(re.preventDefault(),ce=X?Cu(N,X):new FormData(N),wd(x,{pending:!0,data:ce,method:N.method,action:P},P,ce))},currentTarget:N}]})}}for(var Vu=0;Vu<V9.length;Vu++){var x2=V9[Vu],vh=x2.toLowerCase(),jb=x2[0].toUpperCase()+x2.slice(1);l4(vh,"on"+jb)}l4(rl,"onAnimationEnd"),l4(By,"onAnimationIteration"),l4(nd,"onAnimationStart"),l4("dblclick","onDoubleClick"),l4("focusin","onFocus"),l4("focusout","onBlur"),l4(Vb,"onTransitionRun"),l4(rd,"onTransitionStart"),l4(w9,"onTransitionCancel"),l4(id,"onTransitionEnd"),ji("onMouseEnter",["mouseout","mouseover"]),ji("onMouseLeave",["mouseout","mouseover"]),ji("onPointerEnter",["pointerout","pointerover"]),ji("onPointerLeave",["pointerout","pointerover"]),Y2("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Y2("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Y2("onBeforeInput",["compositionend","keypress","textInput","paste"]),Y2("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Y2("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Y2("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Vt="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),Ib=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Vt));function hr(d,y){y=(y&4)!==0;for(var x=0;x<d.length;x++){var C=d[x],N=C.event;C=C.listeners;e:{var P=void 0;if(y)for(var X=C.length-1;0<=X;X--){var re=C[X],ce=re.instance,Me=re.currentTarget;if(re=re.listener,ce!==P&&N.isPropagationStopped())break e;P=re,N.currentTarget=Me;try{P(N)}catch(Fe){wl(Fe)}N.currentTarget=null,P=ce}else for(X=0;X<C.length;X++){if(re=C[X],ce=re.instance,Me=re.currentTarget,re=re.listener,ce!==P&&N.isPropagationStopped())break e;P=re,N.currentTarget=Me;try{P(N)}catch(Fe){wl(Fe)}N.currentTarget=null,P=ce}}}}function Pt(d,y){var x=y[Of];x===void 0&&(x=y[Of]=new Set);var C=d+"__bubble";x.has(C)||(mg(y,d,2,!1),x.add(C))}function g0(d,y,x){var C=0;y&&(C|=4),mg(x,d,C,y)}var va="_reactListening"+Math.random().toString(36).slice(2);function ql(d){if(!d[va]){d[va]=!0,Cf.forEach(function(x){x!=="selectionchange"&&(Ib.has(x)||g0(x,!1,d),g0(x,!0,d))});var y=d.nodeType===9?d:d.ownerDocument;y===null||y[va]||(y[va]=!0,g0("selectionchange",!1,y))}}function mg(d,y,x,C){switch(Ag(y)){case 2:var N=Sg;break;case 8:N=Mg;break;default:N=$u}x=N.bind(null,y,x,d),N=void 0,!p9||y!=="touchstart"&&y!=="touchmove"&&y!=="wheel"||(N=!0),C?N!==void 0?d.addEventListener(y,x,{capture:!0,passive:N}):d.addEventListener(y,x,!0):N!==void 0?d.addEventListener(y,x,{passive:N}):d.addEventListener(y,x,!1)}function $l(d,y,x,C,N){var P=C;if((y&1)===0&&(y&2)===0&&C!==null)e:for(;;){if(C===null)return;var X=C.tag;if(X===3||X===4){var re=C.stateNode.containerInfo;if(re===N)break;if(X===4)for(X=C.return;X!==null;){var ce=X.tag;if((ce===3||ce===4)&&X.stateNode.containerInfo===N)return;X=X.return}for(;re!==null;){if(X=zr(re),X===null)return;if(ce=X.tag,ce===5||ce===6||ce===26||ce===27){C=P=X;continue e}re=re.parentNode}}C=C.return}My(function(){var Me=P,Fe=zi(x),$e=[];e:{var Oe=ad.get(d);if(Oe!==void 0){var Re=W8,Mt=d;switch(d){case"keypress":if(X8(x)===0)break e;case"keydown":case"keyup":Re=Gi;break;case"focusin":Mt="focus",Re=zf;break;case"focusout":Mt="blur",Re=zf;break;case"beforeblur":case"afterblur":Re=zf;break;case"click":if(x.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":Re=K8;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":Re=Oy;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":Re=x9;break;case rl:case By:case nd:Re=_b;break;case id:Re=o4;break;case"scroll":case"scrollend":Re=Mb;break;case"wheel":Re=b9;break;case"copy":case"cut":case"paste":Re=Cb;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":Re=a4;break;case"toggle":case"beforetoggle":Re=Gf}var Lt=(y&4)!==0,H1=!Lt&&(d==="scroll"||d==="scrollend"),be=Lt?Oe!==null?Oe+"Capture":null:Oe;Lt=[];for(var ge=Me,Ae;ge!==null;){var qe=ge;if(Ae=qe.stateNode,qe=qe.tag,qe!==5&&qe!==26&&qe!==27||Ae===null||be===null||(qe=U5(ge,be),qe!=null&&Lt.push(x4(ge,qe,Ae))),H1)break;ge=ge.return}0<Lt.length&&(Oe=new Re(Oe,Mt,null,x,Fe),$e.push({event:Oe,listeners:Lt}))}}if((y&7)===0){e:{if(Oe=d==="mouseover"||d==="pointerover",Re=d==="mouseout"||d==="pointerout",Oe&&x!==h9&&(Mt=x.relatedTarget||x.fromElement)&&(zr(Mt)||Mt[Pi]))break e;if((Re||Oe)&&(Oe=Fe.window===Fe?Fe:(Oe=Fe.ownerDocument)?Oe.defaultView||Oe.parentWindow:window,Re?(Mt=x.relatedTarget||x.toElement,Re=Me,Mt=Mt?zr(Mt):null,Mt!==null&&(H1=a(Mt),Lt=Mt.tag,Mt!==H1||Lt!==5&&Lt!==27&&Lt!==6)&&(Mt=null)):(Re=null,Mt=Me),Re!==Mt)){if(Lt=K8,qe="onMouseLeave",be="onMouseEnter",ge="mouse",(d==="pointerout"||d==="pointerover")&&(Lt=a4,qe="onPointerLeave",be="onPointerEnter",ge="pointer"),H1=Re==null?Oe:to(Re),Ae=Mt==null?Oe:to(Mt),Oe=new Lt(qe,ge+"leave",Re,x,Fe),Oe.target=H1,Oe.relatedTarget=Ae,qe=null,zr(Fe)===Me&&(Lt=new Lt(be,ge+"enter",Mt,x,Fe),Lt.target=Ae,Lt.relatedTarget=H1,qe=Lt),H1=qe,Re&&Mt)t:{for(Lt=Re,be=Mt,ge=0,Ae=Lt;Ae;Ae=L0(Ae))ge++;for(Ae=0,qe=be;qe;qe=L0(qe))Ae++;for(;0<ge-Ae;)Lt=L0(Lt),ge--;for(;0<Ae-ge;)be=L0(be),Ae--;for(;ge--;){if(Lt===be||be!==null&&Lt===be.alternate)break t;Lt=L0(Lt),be=L0(be)}Lt=null}else Lt=null;Re!==null&&Du($e,Oe,Re,Lt,!1),Mt!==null&&H1!==null&&Du($e,H1,Mt,Lt,!0)}}e:{if(Oe=Me?to(Me):window,Re=Oe.nodeName&&Oe.nodeName.toLowerCase(),Re==="select"||Re==="input"&&Oe.type==="file")var ut=Gr;else if(Yf(Oe))if(Kf)ut=G5;else{ut=_9;var Ut=Ny}else Re=Oe.nodeName,!Re||Re.toLowerCase()!=="input"||Oe.type!=="checkbox"&&Oe.type!=="radio"?Me&&lo(Me.elementType)&&(ut=Gr):ut=Zr;if(ut&&(ut=ut(d,Me))){M9($e,ut,x,Fe);break e}Ut&&Ut(d,Oe,Me),d==="focusout"&&Me&&Oe.type==="number"&&Me.memoizedProps.value!=null&&$8(Oe,"number",Oe.value)}switch(Ut=Me?to(Me):window,d){case"focusin":(Yf(Ut)||Ut.contentEditable==="true")&&(an=Ut,ea=Me,k4=null);break;case"focusout":k4=ea=an=null;break;case"mousedown":ho=!0;break;case"contextmenu":case"mouseup":case"dragend":ho=!1,po($e,x,Fe);break;case"selectionchange":if(td)break;case"keydown":case"keyup":po($e,x,Fe)}var gt;if(H9)e:{switch(d){case"compositionstart":var At="onCompositionStart";break e;case"compositionend":At="onCompositionEnd";break e;case"compositionupdate":At="onCompositionUpdate";break e}At=void 0}else rn?S9(d,x)&&(At="onCompositionEnd"):d==="keydown"&&x.keyCode===229&&(At="onCompositionStart");At&&(E9&&x.locale!=="ko"&&(rn||At!=="onCompositionStart"?At==="onCompositionEnd"&&rn&&(gt=Z8()):(nn=Fe,m9="value"in nn?nn.value:nn.textContent,rn=!0)),Ut=v0(Me,At),0<Ut.length&&(At=new qf(At,d,null,x,Fe),$e.push({event:At,listeners:Ut}),gt?At.data=gt:(gt=el(x),gt!==null&&(At.data=gt)))),(gt=wb?Xf(d,x):Wf(d,x))&&(At=v0(Me,"onBeforeInput"),0<At.length&&(Ut=new qf("onBeforeInput","beforeinput",null,x,Fe),$e.push({event:Ut,listeners:At}),Ut.data=gt)),wu($e,d,Me,x,Fe)}hr($e,y)})}function x4(d,y,x){return{instance:d,listener:y,currentTarget:x}}function v0(d,y){for(var x=y+"Capture",C=[];d!==null;){var N=d,P=N.stateNode;if(N=N.tag,N!==5&&N!==26&&N!==27||P===null||(N=U5(d,x),N!=null&&C.unshift(x4(d,N,P)),N=U5(d,y),N!=null&&C.push(x4(d,N,P))),d.tag===3)return C;d=d.return}return[]}function L0(d){if(d===null)return null;do d=d.return;while(d&&d.tag!==5&&d.tag!==27);return d||null}function Du(d,y,x,C,N){for(var P=y._reactName,X=[];x!==null&&x!==C;){var re=x,ce=re.alternate,Me=re.stateNode;if(re=re.tag,ce!==null&&ce===C)break;re!==5&&re!==26&&re!==27||Me===null||(ce=Me,N?(Me=U5(x,P),Me!=null&&X.unshift(x4(x,Me,ce))):N||(Me=U5(x,P),Me!=null&&X.push(x4(x,Me,ce)))),x=x.return}X.length!==0&&d.push({event:y,listeners:X})}var Ru=/\r\n?/g,q4=/\u0000|\uFFFD/g;function ku(d){return(typeof d=="string"?d:""+d).replace(Ru,`
|
|
444
|
+
`+x.stack}}function R4(d){switch(typeof d){case"bigint":case"boolean":case"number":case"string":case"undefined":return d;case"object":return d;default:return""}}function io(d){var y=d.type;return(d=d.nodeName)&&d.toLowerCase()==="input"&&(y==="checkbox"||y==="radio")}function f9(d){var y=io(d)?"checked":"value",x=Object.getOwnPropertyDescriptor(d.constructor.prototype,y),C=""+d[y];if(!d.hasOwnProperty(y)&&typeof x<"u"&&typeof x.get=="function"&&typeof x.set=="function"){var N=x.get,P=x.set;return Object.defineProperty(d,y,{configurable:!0,get:function(){return N.call(this)},set:function(X){C=""+X,P.call(this,X)}}),Object.defineProperty(d,y,{enumerable:x.enumerable}),{getValue:function(){return C},setValue:function(X){C=""+X},stopTracking:function(){d._valueTracker=null,delete d[y]}}}}function ao(d){d._valueTracker||(d._valueTracker=f9(d))}function oo(d){if(!d)return!1;var y=d._valueTracker;if(!y)return!0;var x=y.getValue(),C="";return d&&(C=io(d)?d.checked?"true":"false":d.value),d=C,d!==x?(y.setValue(d),!0):!1}function $5(d){if(d=d||(typeof document<"u"?document:void 0),typeof d>"u")return null;try{return d.activeElement||d.body}catch{return d.body}}var Rf=/[\n"\\]/g;function tn(d){return d.replace(Rf,function(y){return"\\"+y.charCodeAt(0).toString(16)+" "})}function kf(d,y,x,C,N,P,X,re){d.name="",X!=null&&typeof X!="function"&&typeof X!="symbol"&&typeof X!="boolean"?d.type=X:d.removeAttribute("type"),y!=null?X==="number"?(y===0&&d.value===""||d.value!=y)&&(d.value=""+R4(y)):d.value!==""+R4(y)&&(d.value=""+R4(y)):X!=="submit"&&X!=="reset"||d.removeAttribute("value"),y!=null?$8(d,X,R4(y)):x!=null?$8(d,X,R4(x)):C!=null&&d.removeAttribute("value"),N==null&&P!=null&&(d.defaultChecked=!!P),N!=null&&(d.checked=N&&typeof N!="function"&&typeof N!="symbol"),re!=null&&typeof re!="function"&&typeof re!="symbol"&&typeof re!="boolean"?d.name=""+R4(re):d.removeAttribute("name")}function Nf(d,y,x,C,N,P,X,re){if(P!=null&&typeof P!="function"&&typeof P!="symbol"&&typeof P!="boolean"&&(d.type=P),y!=null||x!=null){if(!(P!=="submit"&&P!=="reset"||y!=null))return;x=x!=null?""+R4(x):"",y=y!=null?""+R4(y):x,re||y===d.value||(d.value=y),d.defaultValue=y}C=C??N,C=typeof C!="function"&&typeof C!="symbol"&&!!C,d.checked=re?d.checked:!!C,d.defaultChecked=!!C,X!=null&&typeof X!="function"&&typeof X!="symbol"&&typeof X!="boolean"&&(d.name=X)}function $8(d,y,x){y==="number"&&$5(d.ownerDocument)===d||d.defaultValue===""+x||(d.defaultValue=""+x)}function $r(d,y,x,C){if(d=d.options,y){y={};for(var N=0;N<x.length;N++)y["$"+x[N]]=!0;for(x=0;x<d.length;x++)N=y.hasOwnProperty("$"+d[x].value),d[x].selected!==N&&(d[x].selected=N),N&&C&&(d[x].defaultSelected=!0)}else{for(x=""+R4(x),y=null,N=0;N<d.length;N++){if(d[N].value===x){d[N].selected=!0,C&&(d[N].defaultSelected=!0);return}y!==null||d[N].disabled||(y=d[N])}y!==null&&(y.selected=!0)}}function Bf(d,y,x){if(y!=null&&(y=""+R4(y),y!==d.value&&(d.value=y),x==null)){d.defaultValue!==y&&(d.defaultValue=y);return}d.defaultValue=x!=null?""+R4(x):""}function Pf(d,y,x,C){if(y==null){if(C!=null){if(x!=null)throw Error(l(92));if(J(C)){if(1<C.length)throw Error(l(93));C=C[0]}x=C}x==null&&(x=""),y=x}x=R4(y),d.defaultValue=x,C=d.textContent,C===x&&C!==""&&C!==null&&(d.value=C)}function Fi(d,y){if(y){var x=d.firstChild;if(x&&x===d.lastChild&&x.nodeType===3){x.nodeValue=y;return}}d.textContent=y}var Eb=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function jf(d,y,x){var C=y.indexOf("--")===0;x==null||typeof x=="boolean"||x===""?C?d.setProperty(y,""):y==="float"?d.cssFloat="":d[y]="":C?d.setProperty(y,x):typeof x!="number"||x===0||Eb.has(y)?y==="float"?d.cssFloat=x:d[y]=(""+x).trim():d[y]=x+"px"}function d9(d,y,x){if(y!=null&&typeof y!="object")throw Error(l(62));if(d=d.style,x!=null){for(var C in x)!x.hasOwnProperty(C)||y!=null&&y.hasOwnProperty(C)||(C.indexOf("--")===0?d.setProperty(C,""):C==="float"?d.cssFloat="":d[C]="");for(var N in y)C=y[N],y.hasOwnProperty(N)&&x[N]!==C&&jf(d,N,C)}else for(var P in y)y.hasOwnProperty(P)&&jf(d,P,y[P])}function lo(d){if(d.indexOf("-")===-1)return!1;switch(d){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var U8=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["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"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["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"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["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"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),Sb=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function G8(d){return Sb.test(""+d)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":d}var h9=null;function zi(d){return d=d.target||d.srcElement||window,d.correspondingUseElement&&(d=d.correspondingUseElement),d.nodeType===3?d.parentNode:d}var qi=null,so=null;function Sy(d){var y=c3(d);if(y&&(d=y.stateNode)){var x=d[L3]||null;e:switch(d=y.stateNode,y.type){case"input":if(kf(d,x.value,x.defaultValue,x.defaultValue,x.checked,x.defaultChecked,x.type,x.name),y=x.name,x.type==="radio"&&y!=null){for(x=d;x.parentNode;)x=x.parentNode;for(x=x.querySelectorAll('input[name="'+tn(""+y)+'"][type="radio"]'),y=0;y<x.length;y++){var C=x[y];if(C!==d&&C.form===d.form){var N=C[L3]||null;if(!N)throw Error(l(90));kf(C,N.value,N.defaultValue,N.defaultValue,N.checked,N.defaultChecked,N.type,N.name)}}for(y=0;y<x.length;y++)C=x[y],C.form===d.form&&oo(C)}break e;case"textarea":Bf(d,x.value,x.defaultValue);break e;case"select":y=x.value,y!=null&&$r(d,!!x.multiple,y,!1)}}}var If=!1;function My(d,y,x){if(If)return d(y,x);If=!0;try{var C=d(y);return C}finally{if(If=!1,(qi!==null||so!==null)&&(Bl(),qi&&(y=qi,d=so,so=qi=null,Sy(y),d)))for(y=0;y<d.length;y++)Sy(d[y])}}function U5(d,y){var x=d.stateNode;if(x===null)return null;var C=x[L3]||null;if(C===null)return null;x=C[y];e:switch(y){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(C=!C.disabled)||(d=d.type,C=!(d==="button"||d==="input"||d==="select"||d==="textarea")),d=!C;break e;default:d=!1}if(d)return null;if(x&&typeof x!="function")throw Error(l(231,y,typeof x));return x}var Wn=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),p9=!1;if(Wn)try{var uo={};Object.defineProperty(uo,"passive",{get:function(){p9=!0}}),window.addEventListener("test",uo,uo),window.removeEventListener("test",uo,uo)}catch{p9=!1}var nn=null,m9=null,$i=null;function Z8(){if($i)return $i;var d,y=m9,x=y.length,C,N="value"in nn?nn.value:nn.textContent,P=N.length;for(d=0;d<x&&y[d]===N[d];d++);var X=x-d;for(C=1;C<=X&&y[x-C]===N[P-C];C++);return $i=N.slice(d,1<C?1-C:void 0)}function X8(d){var y=d.keyCode;return"charCode"in d?(d=d.charCode,d===0&&y===13&&(d=13)):d=y,d===10&&(d=13),32<=d||d===13?d:0}function T3(){return!0}function Ay(){return!1}function x3(d){function y(x,C,N,P,X){this._reactName=x,this._targetInst=N,this.type=C,this.nativeEvent=P,this.target=X,this.currentTarget=null;for(var re in d)d.hasOwnProperty(re)&&(x=d[re],this[re]=x?x(P):P[re]);return this.isDefaultPrevented=(P.defaultPrevented!=null?P.defaultPrevented:P.returnValue===!1)?T3:Ay,this.isPropagationStopped=Ay,this}return Q(y.prototype,{preventDefault:function(){this.defaultPrevented=!0;var x=this.nativeEvent;x&&(x.preventDefault?x.preventDefault():typeof x.returnValue!="unknown"&&(x.returnValue=!1),this.isDefaultPrevented=T3)},stopPropagation:function(){var x=this.nativeEvent;x&&(x.stopPropagation?x.stopPropagation():typeof x.cancelBubble!="unknown"&&(x.cancelBubble=!0),this.isPropagationStopped=T3)},persist:function(){},isPersistent:T3}),y}var Ur={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(d){return d.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},W8=x3(Ur),Y8=Q({},Ur,{view:0,detail:0}),Mb=x3(Y8),y9,Ff,co,g9=Q({},Y8,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:v9,button:0,buttons:0,relatedTarget:function(d){return d.relatedTarget===void 0?d.fromElement===d.srcElement?d.toElement:d.fromElement:d.relatedTarget},movementX:function(d){return"movementX"in d?d.movementX:(d!==co&&(co&&d.type==="mousemove"?(y9=d.screenX-co.screenX,Ff=d.screenY-co.screenY):Ff=y9=0,co=d),y9)},movementY:function(d){return"movementY"in d?d.movementY:Ff}}),K8=x3(g9),_y=Q({},g9,{dataTransfer:0}),Oy=x3(_y),Cy=Q({},Y8,{relatedTarget:0}),zf=x3(Cy),Ab=Q({},Ur,{animationName:0,elapsedTime:0,pseudoElement:0}),_b=x3(Ab),Ob=Q({},Ur,{clipboardData:function(d){return"clipboardData"in d?d.clipboardData:window.clipboardData}}),Cb=x3(Ob),J8=Q({},Ur,{data:0}),qf=x3(J8),wy={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Vy={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},Dy={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function $f(d){var y=this.nativeEvent;return y.getModifierState?y.getModifierState(d):(d=Dy[d])?!!y[d]:!1}function v9(){return $f}var Ui=Q({},Y8,{key:function(d){if(d.key){var y=wy[d.key]||d.key;if(y!=="Unidentified")return y}return d.type==="keypress"?(d=X8(d),d===13?"Enter":String.fromCharCode(d)):d.type==="keydown"||d.type==="keyup"?Vy[d.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:v9,charCode:function(d){return d.type==="keypress"?X8(d):0},keyCode:function(d){return d.type==="keydown"||d.type==="keyup"?d.keyCode:0},which:function(d){return d.type==="keypress"?X8(d):d.type==="keydown"||d.type==="keyup"?d.keyCode:0}}),Gi=x3(Ui),Yn=Q({},g9,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),a4=x3(Yn),L9=Q({},Y8,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:v9}),x9=x3(L9),Uf=Q({},Ur,{propertyName:0,elapsedTime:0,pseudoElement:0}),o4=x3(Uf),Ry=Q({},g9,{deltaX:function(d){return"deltaX"in d?d.deltaX:"wheelDeltaX"in d?-d.wheelDeltaX:0},deltaY:function(d){return"deltaY"in d?d.deltaY:"wheelDeltaY"in d?-d.wheelDeltaY:"wheelDelta"in d?-d.wheelDelta:0},deltaZ:0,deltaMode:0}),b9=x3(Ry),Zi=Q({},Ur,{newState:0,oldState:0}),Gf=x3(Zi),ky=[9,13,27,32],H9=Wn&&"CompositionEvent"in window,Xi=null;Wn&&"documentMode"in document&&(Xi=document.documentMode);var wb=Wn&&"TextEvent"in window&&!Xi,E9=Wn&&(!H9||Xi&&8<Xi&&11>=Xi),N6=" ",Zf=!1;function S9(d,y){switch(d){case"keyup":return ky.indexOf(y.keyCode)!==-1;case"keydown":return y.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function el(d){return d=d.detail,typeof d=="object"&&"data"in d?d.data:null}var rn=!1;function Xf(d,y){switch(d){case"compositionend":return el(y);case"keypress":return y.which!==32?null:(Zf=!0,N6);case"textInput":return d=y.data,d===N6&&Zf?null:d;default:return null}}function Wf(d,y){if(rn)return d==="compositionend"||!H9&&S9(d,y)?(d=Z8(),$i=m9=nn=null,rn=!1,d):null;switch(d){case"paste":return null;case"keypress":if(!(y.ctrlKey||y.altKey||y.metaKey)||y.ctrlKey&&y.altKey){if(y.char&&1<y.char.length)return y.char;if(y.which)return String.fromCharCode(y.which)}return null;case"compositionend":return E9&&y.locale!=="ko"?null:y.data;default:return null}}var Wi={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Yf(d){var y=d&&d.nodeName&&d.nodeName.toLowerCase();return y==="input"?!!Wi[d.type]:y==="textarea"}function M9(d,y,x,C){qi?so?so.push(C):so=[C]:qi=C,y=v0(y,"onChange"),0<y.length&&(x=new W8("onChange","change",null,x,C),d.push({event:x,listeners:y}))}var Yi=null,Kn=null;function Ki(d){hr(d,0)}function To(d){var y=to(d);if(oo(y))return d}function Gr(d,y){if(d==="change")return y}var Kf=!1;if(Wn){var A9;if(Wn){var Ji="oninput"in document;if(!Ji){var Qo=document.createElement("div");Qo.setAttribute("oninput","return;"),Ji=typeof Qo.oninput=="function"}A9=Ji}else A9=!1;Kf=A9&&(!document.documentMode||9<document.documentMode)}function Jf(){Yi&&(Yi.detachEvent("onpropertychange",fo),Kn=Yi=null)}function fo(d){if(d.propertyName==="value"&&To(Kn)){var y=[];M9(y,Kn,d,zi(d)),My(Ki,y)}}function Ny(d,y,x){d==="focusin"?(Jf(),Yi=y,Kn=x,Yi.attachEvent("onpropertychange",fo)):d==="focusout"&&Jf()}function _9(d){if(d==="selectionchange"||d==="keyup"||d==="keydown")return To(Kn)}function Zr(d,y){if(d==="click")return To(y)}function G5(d,y){if(d==="input"||d==="change")return To(y)}function ed(d,y){return d===y&&(d!==0||1/d===1/y)||d!==d&&y!==y}var N3=typeof Object.is=="function"?Object.is:ed;function Z5(d,y){if(N3(d,y))return!0;if(typeof d!="object"||d===null||typeof y!="object"||y===null)return!1;var x=Object.keys(d),C=Object.keys(y);if(x.length!==C.length)return!1;for(C=0;C<x.length;C++){var N=x[C];if(!ze.call(y,N)||!N3(d[N],y[N]))return!1}return!0}function tl(d){for(;d&&d.firstChild;)d=d.firstChild;return d}function Xr(d,y){var x=tl(d);d=0;for(var C;x;){if(x.nodeType===3){if(C=d+x.textContent.length,d<=y&&C>=y)return{node:x,offset:y-d};d=C}e:{for(;x;){if(x.nextSibling){x=x.nextSibling;break e}x=x.parentNode}x=void 0}x=tl(x)}}function t2(d,y){return d&&y?d===y?!0:d&&d.nodeType===3?!1:y&&y.nodeType===3?t2(d,y.parentNode):"contains"in d?d.contains(y):d.compareDocumentPosition?!!(d.compareDocumentPosition(y)&16):!1:!1}function nl(d){d=d!=null&&d.ownerDocument!=null&&d.ownerDocument.defaultView!=null?d.ownerDocument.defaultView:window;for(var y=$5(d.document);y instanceof d.HTMLIFrameElement;){try{var x=typeof y.contentWindow.location.href=="string"}catch{x=!1}if(x)d=y.contentWindow;else break;y=$5(d.document)}return y}function O9(d){var y=d&&d.nodeName&&d.nodeName.toLowerCase();return y&&(y==="input"&&(d.type==="text"||d.type==="search"||d.type==="tel"||d.type==="url"||d.type==="password")||y==="textarea"||d.contentEditable==="true")}var td=Wn&&"documentMode"in document&&11>=document.documentMode,an=null,ea=null,k4=null,ho=!1;function po(d,y,x){var C=x.window===x?x.document:x.nodeType===9?x:x.ownerDocument;ho||an==null||an!==$5(C)||(C=an,"selectionStart"in C&&O9(C)?C={start:C.selectionStart,end:C.selectionEnd}:(C=(C.ownerDocument&&C.ownerDocument.defaultView||window).getSelection(),C={anchorNode:C.anchorNode,anchorOffset:C.anchorOffset,focusNode:C.focusNode,focusOffset:C.focusOffset}),k4&&Z5(k4,C)||(k4=C,C=v0(ea,"onSelect"),0<C.length&&(y=new W8("onSelect","select",null,y,x),d.push({event:y,listeners:C}),y.target=an)))}function X5(d,y){var x={};return x[d.toLowerCase()]=y.toLowerCase(),x["Webkit"+d]="webkit"+y,x["Moz"+d]="moz"+y,x}var Wr={animationend:X5("Animation","AnimationEnd"),animationiteration:X5("Animation","AnimationIteration"),animationstart:X5("Animation","AnimationStart"),transitionrun:X5("Transition","TransitionRun"),transitionstart:X5("Transition","TransitionStart"),transitioncancel:X5("Transition","TransitionCancel"),transitionend:X5("Transition","TransitionEnd")},C9={},Jn={};Wn&&(Jn=document.createElement("div").style,"AnimationEvent"in window||(delete Wr.animationend.animation,delete Wr.animationiteration.animation,delete Wr.animationstart.animation),"TransitionEvent"in window||delete Wr.transitionend.transition);function b3(d){if(C9[d])return C9[d];if(!Wr[d])return d;var y=Wr[d],x;for(x in y)if(y.hasOwnProperty(x)&&x in Jn)return C9[d]=y[x];return d}var rl=b3("animationend"),By=b3("animationiteration"),nd=b3("animationstart"),Vb=b3("transitionrun"),rd=b3("transitionstart"),w9=b3("transitioncancel"),id=b3("transitionend"),ad=new Map,V9="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");V9.push("scrollEnd");function l4(d,y){ad.set(d,y),Y2(y,[d])}var od=new WeakMap;function N4(d,y){if(typeof d=="object"&&d!==null){var x=od.get(d);return x!==void 0?x:(y={value:d,source:y,stack:qr(y)},od.set(d,y),y)}return{value:d,source:y,stack:qr(y)}}var B4=[],Yr=0,il=0;function e6(){for(var d=Yr,y=il=Yr=0;y<d;){var x=B4[y];B4[y++]=null;var C=B4[y];B4[y++]=null;var N=B4[y];B4[y++]=null;var P=B4[y];if(B4[y++]=null,C!==null&&N!==null){var X=C.pending;X===null?N.next=N:(N.next=X.next,X.next=N),C.pending=N}P!==0&&mo(x,N,P)}}function t6(d,y,x,C){B4[Yr++]=d,B4[Yr++]=y,B4[Yr++]=x,B4[Yr++]=C,il|=C,d.lanes|=C,d=d.alternate,d!==null&&(d.lanes|=C)}function ta(d,y,x,C){return t6(d,y,x,C),Kr(d)}function W5(d,y){return t6(d,null,null,y),Kr(d)}function mo(d,y,x){d.lanes|=x;var C=d.alternate;C!==null&&(C.lanes|=x);for(var N=!1,P=d.return;P!==null;)P.childLanes|=x,C=P.alternate,C!==null&&(C.childLanes|=x),P.tag===22&&(d=P.stateNode,d===null||d._visibility&1||(N=!0)),d=P,P=P.return;return d.tag===3?(P=d.stateNode,N&&y!==null&&(N=31-et(x),d=P.hiddenUpdates,C=d[N],C===null?d[N]=[y]:C.push(y),y.lane=x|536870912),P):null}function Kr(d){if(50<Wo)throw Wo=0,vu=null,Error(l(185));for(var y=d.return;y!==null;)d=y,y=d.return;return d.tag===3?d.stateNode:null}var na={};function Db(d,y,x,C){this.tag=d,this.key=x,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=y,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=C,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function s4(d,y,x,C){return new Db(d,y,x,C)}function D9(d){return d=d.prototype,!(!d||!d.isReactComponent)}function n6(d,y){var x=d.alternate;return x===null?(x=s4(d.tag,y,d.key,d.mode),x.elementType=d.elementType,x.type=d.type,x.stateNode=d.stateNode,x.alternate=d,d.alternate=x):(x.pendingProps=y,x.type=d.type,x.flags=0,x.subtreeFlags=0,x.deletions=null),x.flags=d.flags&65011712,x.childLanes=d.childLanes,x.lanes=d.lanes,x.child=d.child,x.memoizedProps=d.memoizedProps,x.memoizedState=d.memoizedState,x.updateQueue=d.updateQueue,y=d.dependencies,x.dependencies=y===null?null:{lanes:y.lanes,firstContext:y.firstContext},x.sibling=d.sibling,x.index=d.index,x.ref=d.ref,x.refCleanup=d.refCleanup,x}function R9(d,y){d.flags&=65011714;var x=d.alternate;return x===null?(d.childLanes=0,d.lanes=y,d.child=null,d.subtreeFlags=0,d.memoizedProps=null,d.memoizedState=null,d.updateQueue=null,d.dependencies=null,d.stateNode=null):(d.childLanes=x.childLanes,d.lanes=x.lanes,d.child=x.child,d.subtreeFlags=0,d.deletions=null,d.memoizedProps=x.memoizedProps,d.memoizedState=x.memoizedState,d.updateQueue=x.updateQueue,d.type=x.type,y=x.dependencies,d.dependencies=y===null?null:{lanes:y.lanes,firstContext:y.firstContext}),d}function qt(d,y,x,C,N,P){var X=0;if(C=d,typeof d=="function")D9(d)&&(X=1);else if(typeof d=="string")X=Lg(d,x,de.current)?26:d==="html"||d==="head"||d==="body"?27:5;else e:switch(d){case B:return d=s4(31,x,y,N),d.elementType=B,d.lanes=P,d;case g:return Ze(x.children,N,P,y);case v:X=8,N|=24;break;case b:return d=s4(12,x,y,N|2),d.elementType=b,d.lanes=P,d;case E:return d=s4(13,x,y,N),d.elementType=E,d.lanes=P,d;case A:return d=s4(19,x,y,N),d.elementType=A,d.lanes=P,d;default:if(typeof d=="object"&&d!==null)switch(d.$$typeof){case L:case _:X=10;break e;case S:X=9;break e;case O:X=11;break e;case V:X=14;break e;case k:X=16,C=null;break e}X=29,x=Error(l(130,d===null?"null":typeof d,"")),C=null}return y=s4(X,x,y,N),y.elementType=d,y.type=C,y.lanes=P,y}function Ze(d,y,x,C){return d=s4(7,d,C,y),d.lanes=x,d}function Jr(d,y,x){return d=s4(6,d,null,y),d.lanes=x,d}function yo(d,y,x){return y=s4(4,d.children!==null?d.children:[],d.key,y),y.lanes=x,y.stateNode={containerInfo:d.containerInfo,pendingChildren:null,implementation:d.implementation},y}var Z1=[],e0=0,go=null,al=0,u4=[],on=0,Y5=null,r6=1,i6="";function w2(d,y){Z1[e0++]=al,Z1[e0++]=go,go=d,al=y}function S1(d,y,x){u4[on++]=r6,u4[on++]=i6,u4[on++]=Y5,Y5=d;var C=r6;d=i6;var N=32-et(C)-1;C&=~(1<<N),x+=1;var P=32-et(y)+N;if(30<P){var X=N-N%5;P=(C&(1<<X)-1).toString(32),C>>=X,N-=X,r6=1<<32-et(y)+N|x<<N|C,i6=P+d}else r6=1<<P|x<<N|C,i6=d}function ol(d){d.return!==null&&(w2(d,1),S1(d,1,0))}function ra(d){for(;d===go;)go=Z1[--e0],Z1[e0]=null,al=Z1[--e0],Z1[e0]=null;for(;d===Y5;)Y5=u4[--on],u4[on]=null,i6=u4[--on],u4[on]=null,r6=u4[--on],u4[on]=null}var y2=null,B1=null,$t=!1,K5=null,B3=!1,ll=Error(l(519));function a6(d){var y=Error(l(418,""));throw xo(N4(y,d)),ll}function k9(d){var y=d.stateNode,x=d.type,C=d.memoizedProps;switch(y[$1]=d,y[L3]=C,x){case"dialog":Pt("cancel",y),Pt("close",y);break;case"iframe":case"object":case"embed":Pt("load",y);break;case"video":case"audio":for(x=0;x<Vt.length;x++)Pt(Vt[x],y);break;case"source":Pt("error",y);break;case"img":case"image":case"link":Pt("error",y),Pt("load",y);break;case"details":Pt("toggle",y);break;case"input":Pt("invalid",y),Nf(y,C.value,C.defaultValue,C.checked,C.defaultChecked,C.type,C.name,!0),ao(y);break;case"select":Pt("invalid",y);break;case"textarea":Pt("invalid",y),Pf(y,C.value,C.defaultValue,C.children),ao(y)}x=C.children,typeof x!="string"&&typeof x!="number"&&typeof x!="bigint"||y.textContent===""+x||C.suppressHydrationWarning===!0||yg(y.textContent,x)?(C.popover!=null&&(Pt("beforetoggle",y),Pt("toggle",y)),C.onScroll!=null&&Pt("scroll",y),C.onScrollEnd!=null&&Pt("scrollend",y),C.onClick!=null&&(y.onclick=Ul),y=!0):y=!1,y||a6(d)}function sl(d){for(y2=d.return;y2;)switch(y2.tag){case 5:case 13:B3=!1;return;case 27:case 3:B3=!0;return;default:y2=y2.return}}function vo(d){if(d!==y2)return!1;if(!$t)return sl(d),$t=!0,!1;var y=d.tag,x;if((x=y!==3&&y!==27)&&((x=y===5)&&(x=d.type,x=!(x!=="form"&&x!=="button")||La(d.type,d.memoizedProps)),x=!x),x&&B1&&a6(d),sl(d),y===13){if(d=d.memoizedState,d=d!==null?d.dehydrated:null,!d)throw Error(l(317));e:{for(d=d.nextSibling,y=0;d;){if(d.nodeType===8)if(x=d.data,x==="/$"){if(y===0){B1=y6(d.nextSibling);break e}y--}else x!=="$"&&x!=="$!"&&x!=="$?"||y++;d=d.nextSibling}B1=null}}else y===27?(y=B1,d3(d.type)?(d=Sh,Sh=null,B1=d):B1=y):B1=y2?y6(d.stateNode.nextSibling):null;return!0}function Lo(){B1=y2=null,$t=!1}function ld(){var d=K5;return d!==null&&(j3===null?j3=d:j3.push.apply(j3,d),K5=null),d}function xo(d){K5===null?K5=[d]:K5.push(d)}var N9=z(null),J5=null,o6=null;function B6(d,y,x){U(N9,y._currentValue),y._currentValue=x}function P6(d){d._currentValue=N9.current,ee(N9)}function B9(d,y,x){for(;d!==null;){var C=d.alternate;if((d.childLanes&y)!==y?(d.childLanes|=y,C!==null&&(C.childLanes|=y)):C!==null&&(C.childLanes&y)!==y&&(C.childLanes|=y),d===x)break;d=d.return}}function P9(d,y,x,C){var N=d.child;for(N!==null&&(N.return=d);N!==null;){var P=N.dependencies;if(P!==null){var X=N.child;P=P.firstContext;e:for(;P!==null;){var re=P;P=N;for(var ce=0;ce<y.length;ce++)if(re.context===y[ce]){P.lanes|=x,re=P.alternate,re!==null&&(re.lanes|=x),B9(P.return,x,d),C||(X=null);break e}P=re.next}}else if(N.tag===18){if(X=N.return,X===null)throw Error(l(341));X.lanes|=x,P=X.alternate,P!==null&&(P.lanes|=x),B9(X,x,d),X=null}else X=N.child;if(X!==null)X.return=N;else for(X=N;X!==null;){if(X===d){X=null;break}if(N=X.sibling,N!==null){N.return=X.return,X=N;break}X=X.return}N=X}}function ul(d,y,x,C){d=null;for(var N=y,P=!1;N!==null;){if(!P){if((N.flags&524288)!==0)P=!0;else if((N.flags&262144)!==0)break}if(N.tag===10){var X=N.alternate;if(X===null)throw Error(l(387));if(X=X.memoizedProps,X!==null){var re=N.type;N3(N.pendingProps.value,X.value)||(d!==null?d.push(re):d=[re])}}else if(N===se.current){if(X=N.alternate,X===null)throw Error(l(387));X.memoizedState.memoizedState!==N.memoizedState.memoizedState&&(d!==null?d.push(p3):d=[p3])}N=N.return}d!==null&&P9(y,d,x,C),y.flags|=262144}function cl(d){for(d=d.firstContext;d!==null;){if(!N3(d.context._currentValue,d.memoizedValue))return!0;d=d.next}return!1}function t0(d){J5=d,o6=null,d=d.dependencies,d!==null&&(d.firstContext=null)}function Q3(d){return sd(J5,d)}function bo(d,y){return J5===null&&t0(d),sd(d,y)}function sd(d,y){var x=y._currentValue;if(y={context:y,memoizedValue:x,next:null},o6===null){if(d===null)throw Error(l(308));o6=y,d.dependencies={lanes:0,firstContext:y},d.flags|=524288}else o6=o6.next=y;return x}var Py=typeof AbortController<"u"?AbortController:function(){var d=[],y=this.signal={aborted:!1,addEventListener:function(x,C){d.push(C)}};this.abort=function(){y.aborted=!0,d.forEach(function(x){return x()})}},Ho=e.unstable_scheduleCallback,j9=e.unstable_NormalPriority,V2={$$typeof:_,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function ud(){return{controller:new Py,data:new Map,refCount:0}}function n0(d){d.refCount--,d.refCount===0&&Ho(j9,function(){d.controller.abort()})}var j6=null,Eo=0,r0=0,ln=null;function c4(d,y){if(j6===null){var x=j6=[];Eo=0,r0=Ou(),ln={status:"pending",value:void 0,then:function(C){x.push(C)}}}return Eo++,y.then(Tl,Tl),y}function Tl(){if(--Eo===0&&j6!==null){ln!==null&&(ln.status="fulfilled");var d=j6;j6=null,r0=0,ln=null;for(var y=0;y<d.length;y++)(0,d[y])()}}function cd(d,y){var x=[],C={status:"pending",value:null,reason:null,then:function(N){x.push(N)}};return d.then(function(){C.status="fulfilled",C.value=y;for(var N=0;N<x.length;N++)(0,x[N])(y)},function(N){for(C.status="rejected",C.reason=N,N=0;N<x.length;N++)(0,x[N])(void 0)}),C}var Td=W.S;W.S=function(d,y){typeof y=="object"&&y!==null&&typeof y.then=="function"&&c4(d,y),Td!==null&&Td(d,y)};var er=z(null);function So(){var d=er.current;return d!==null?d:j1.pooledCache}function Mo(d,y){y===null?U(er,er.current):U(er,y.pool)}function Ql(){var d=So();return d===null?null:{parent:V2._currentValue,pool:d}}var ia=Error(l(460)),fl=Error(l(474)),Ao=Error(l(542)),I9={then:function(){}};function Qd(d){return d=d.status,d==="fulfilled"||d==="rejected"}function _o(){}function fd(d,y,x){switch(x=d[x],x===void 0?d.push(y):x!==y&&(y.then(_o,_o),y=x),y.status){case"fulfilled":return y.value;case"rejected":throw d=y.reason,dd(d),d;default:if(typeof y.status=="string")y.then(_o,_o);else{if(d=j1,d!==null&&100<d.shellSuspendCounter)throw Error(l(482));d=y,d.status="pending",d.then(function(C){if(y.status==="pending"){var N=y;N.status="fulfilled",N.value=C}},function(C){if(y.status==="pending"){var N=y;N.status="rejected",N.reason=C}})}switch(y.status){case"fulfilled":return y.value;case"rejected":throw d=y.reason,dd(d),d}throw Oo=y,ia}}var Oo=null;function F9(){if(Oo===null)throw Error(l(459));var d=Oo;return Oo=null,d}function dd(d){if(d===ia||d===Ao)throw Error(l(483))}var tr=!1;function dl(d){d.updateQueue={baseState:d.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function z9(d,y){d=d.updateQueue,y.updateQueue===d&&(y.updateQueue={baseState:d.baseState,firstBaseUpdate:d.firstBaseUpdate,lastBaseUpdate:d.lastBaseUpdate,shared:d.shared,callbacks:null})}function nr(d){return{lane:d,tag:0,payload:null,callback:null,next:null}}function T4(d,y,x){var C=d.updateQueue;if(C===null)return null;if(C=C.shared,(M1&2)!==0){var N=C.pending;return N===null?y.next=y:(y.next=N.next,N.next=y),C.pending=y,y=Kr(d),mo(d,null,x),y}return t6(d,C,y,x),Kr(d)}function aa(d,y,x){if(y=y.updateQueue,y!==null&&(y=y.shared,(x&4194048)!==0)){var C=y.lanes;C&=d.pendingLanes,x|=C,y.lanes=x,Xt(d,x)}}function hl(d,y){var x=d.updateQueue,C=d.alternate;if(C!==null&&(C=C.updateQueue,x===C)){var N=null,P=null;if(x=x.firstBaseUpdate,x!==null){do{var X={lane:x.lane,tag:x.tag,payload:x.payload,callback:null,next:null};P===null?N=P=X:P=P.next=X,x=x.next}while(x!==null);P===null?N=P=y:P=P.next=y}else N=P=y;x={baseState:C.baseState,firstBaseUpdate:N,lastBaseUpdate:P,shared:C.shared,callbacks:C.callbacks},d.updateQueue=x;return}d=x.lastBaseUpdate,d===null?x.firstBaseUpdate=y:d.next=y,x.lastBaseUpdate=y}var hd=!1;function pl(){if(hd){var d=ln;if(d!==null)throw d}}function Co(d,y,x,C){hd=!1;var N=d.updateQueue;tr=!1;var P=N.firstBaseUpdate,X=N.lastBaseUpdate,re=N.shared.pending;if(re!==null){N.shared.pending=null;var ce=re,Me=ce.next;ce.next=null,X===null?P=Me:X.next=Me,X=ce;var Fe=d.alternate;Fe!==null&&(Fe=Fe.updateQueue,re=Fe.lastBaseUpdate,re!==X&&(re===null?Fe.firstBaseUpdate=Me:re.next=Me,Fe.lastBaseUpdate=ce))}if(P!==null){var $e=N.baseState;X=0,Fe=Me=ce=null,re=P;do{var Oe=re.lane&-536870913,Re=Oe!==re.lane;if(Re?(T1&Oe)===Oe:(C&Oe)===Oe){Oe!==0&&Oe===r0&&(hd=!0),Fe!==null&&(Fe=Fe.next={lane:0,tag:re.tag,payload:re.payload,callback:null,next:null});e:{var Mt=d,Lt=re;Oe=y;var H1=x;switch(Lt.tag){case 1:if(Mt=Lt.payload,typeof Mt=="function"){$e=Mt.call(H1,$e,Oe);break e}$e=Mt;break e;case 3:Mt.flags=Mt.flags&-65537|128;case 0:if(Mt=Lt.payload,Oe=typeof Mt=="function"?Mt.call(H1,$e,Oe):Mt,Oe==null)break e;$e=Q({},$e,Oe);break e;case 2:tr=!0}}Oe=re.callback,Oe!==null&&(d.flags|=64,Re&&(d.flags|=8192),Re=N.callbacks,Re===null?N.callbacks=[Oe]:Re.push(Oe))}else Re={lane:Oe,tag:re.tag,payload:re.payload,callback:re.callback,next:null},Fe===null?(Me=Fe=Re,ce=$e):Fe=Fe.next=Re,X|=Oe;if(re=re.next,re===null){if(re=N.shared.pending,re===null)break;Re=re,re=Re.next,Re.next=null,N.lastBaseUpdate=Re,N.shared.pending=null}}while(!0);Fe===null&&(ce=$e),N.baseState=ce,N.firstBaseUpdate=Me,N.lastBaseUpdate=Fe,P===null&&(N.shared.lanes=0),f0|=X,d.lanes=X,d.memoizedState=$e}}function wo(d,y){if(typeof d!="function")throw Error(l(191,d));d.call(y)}function q9(d,y){var x=d.callbacks;if(x!==null)for(d.callbacks=null,d=0;d<x.length;d++)wo(x[d],y)}var rr=z(null),ml=z(0);function pd(d,y){d=Qr,U(ml,d),U(rr,y),Qr=d|y.baseLanes}function z2(){U(ml,Qr),U(rr,rr.current)}function Vo(){Qr=ml.current,ee(rr),ee(ml)}var l6=0,Nt=null,x1=null,d2=null,oa=!1,la=!1,Q4=!1,yl=0,sn=0,f4=null,$9=0;function h2(){throw Error(l(321))}function gl(d,y){if(y===null)return!1;for(var x=0;x<y.length&&x<d.length;x++)if(!N3(d[x],y[x]))return!1;return!0}function U9(d,y,x,C,N,P){return l6=P,Nt=y,y.memoizedState=null,y.updateQueue=null,y.lanes=0,W.H=d===null||d.memoizedState===null?Gy:Rd,Q4=!1,P=x(C,N),Q4=!1,la&&(P=i0(y,x,C,N)),md(d),P}function md(d){W.H=_l;var y=x1!==null&&x1.next!==null;if(l6=0,d2=x1=Nt=null,oa=!1,sn=0,f4=null,y)throw Error(l(300));d===null||Jt||(d=d.dependencies,d!==null&&cl(d)&&(Jt=!0))}function i0(d,y,x,C){Nt=d;var N=0;do{if(la&&(f4=null),sn=0,la=!1,25<=N)throw Error(l(301));if(N+=1,d2=x1=null,d.updateQueue!=null){var P=d.updateQueue;P.lastEffect=null,P.events=null,P.stores=null,P.memoCache!=null&&(P.memoCache.index=0)}W.H=Zy,P=y(x,C)}while(la);return P}function jy(){var d=W.H,y=d.useState()[0];return y=typeof y.then=="function"?sa(y):y,d=d.useState()[0],(x1!==null?x1.memoizedState:null)!==d&&(Nt.flags|=1024),y}function G9(){var d=yl!==0;return yl=0,d}function Z9(d,y,x){y.updateQueue=d.updateQueue,y.flags&=-2053,d.lanes&=~x}function Do(d){if(oa){for(d=d.memoizedState;d!==null;){var y=d.queue;y!==null&&(y.pending=null),d=d.next}oa=!1}l6=0,d2=x1=Nt=null,la=!1,sn=yl=0,f4=null}function P3(){var d={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return d2===null?Nt.memoizedState=d2=d:d2=d2.next=d,d2}function g2(){if(x1===null){var d=Nt.alternate;d=d!==null?d.memoizedState:null}else d=x1.next;var y=d2===null?Nt.memoizedState:d2.next;if(y!==null)d2=y,x1=d;else{if(d===null)throw Nt.alternate===null?Error(l(467)):Error(l(310));x1=d,d={memoizedState:x1.memoizedState,baseState:x1.baseState,baseQueue:x1.baseQueue,queue:x1.queue,next:null},d2===null?Nt.memoizedState=d2=d:d2=d2.next=d}return d2}function vl(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function sa(d){var y=sn;return sn+=1,f4===null&&(f4=[]),d=fd(f4,d,y),y=Nt,(d2===null?y.memoizedState:d2.next)===null&&(y=y.alternate,W.H=y===null||y.memoizedState===null?Gy:Rd),d}function X9(d){if(d!==null&&typeof d=="object"){if(typeof d.then=="function")return sa(d);if(d.$$typeof===_)return Q3(d)}throw Error(l(438,String(d)))}function q2(d){var y=null,x=Nt.updateQueue;if(x!==null&&(y=x.memoCache),y==null){var C=Nt.alternate;C!==null&&(C=C.updateQueue,C!==null&&(C=C.memoCache,C!=null&&(y={data:C.data.map(function(N){return N.slice()}),index:0})))}if(y==null&&(y={data:[],index:0}),x===null&&(x=vl(),Nt.updateQueue=x),x.memoCache=y,x=y.data[y.index],x===void 0)for(x=y.data[y.index]=Array(d),C=0;C<d;C++)x[C]=R;return y.index++,x}function I6(d,y){return typeof y=="function"?y(d):y}function Ll(d){var y=g2();return W9(y,x1,d)}function W9(d,y,x){var C=d.queue;if(C===null)throw Error(l(311));C.lastRenderedReducer=x;var N=d.baseQueue,P=C.pending;if(P!==null){if(N!==null){var X=N.next;N.next=P.next,P.next=X}y.baseQueue=N=P,C.pending=null}if(P=d.baseState,N===null)d.memoizedState=P;else{y=N.next;var re=X=null,ce=null,Me=y,Fe=!1;do{var $e=Me.lane&-536870913;if($e!==Me.lane?(T1&$e)===$e:(l6&$e)===$e){var Oe=Me.revertLane;if(Oe===0)ce!==null&&(ce=ce.next={lane:0,revertLane:0,action:Me.action,hasEagerState:Me.hasEagerState,eagerState:Me.eagerState,next:null}),$e===r0&&(Fe=!0);else if((l6&Oe)===Oe){Me=Me.next,Oe===r0&&(Fe=!0);continue}else $e={lane:0,revertLane:Me.revertLane,action:Me.action,hasEagerState:Me.hasEagerState,eagerState:Me.eagerState,next:null},ce===null?(re=ce=$e,X=P):ce=ce.next=$e,Nt.lanes|=Oe,f0|=Oe;$e=Me.action,Q4&&x(P,$e),P=Me.hasEagerState?Me.eagerState:x(P,$e)}else Oe={lane:$e,revertLane:Me.revertLane,action:Me.action,hasEagerState:Me.hasEagerState,eagerState:Me.eagerState,next:null},ce===null?(re=ce=Oe,X=P):ce=ce.next=Oe,Nt.lanes|=$e,f0|=$e;Me=Me.next}while(Me!==null&&Me!==y);if(ce===null?X=P:ce.next=re,!N3(P,d.memoizedState)&&(Jt=!0,Fe&&(x=ln,x!==null)))throw x;d.memoizedState=P,d.baseState=X,d.baseQueue=ce,C.lastRenderedState=P}return N===null&&(C.lanes=0),[d.memoizedState,C.dispatch]}function Y9(d){var y=g2(),x=y.queue;if(x===null)throw Error(l(311));x.lastRenderedReducer=d;var C=x.dispatch,N=x.pending,P=y.memoizedState;if(N!==null){x.pending=null;var X=N=N.next;do P=d(P,X.action),X=X.next;while(X!==N);N3(P,y.memoizedState)||(Jt=!0),y.memoizedState=P,y.baseQueue===null&&(y.baseState=P),x.lastRenderedState=P}return[P,C]}function yd(d,y,x){var C=Nt,N=g2(),P=$t;if(P){if(x===void 0)throw Error(l(407));x=x()}else x=y();var X=!N3((x1||N).memoizedState,x);X&&(N.memoizedState=x,Jt=!0),N=N.queue;var re=gd.bind(null,C,N,d);if(ir(2048,8,re,[d]),N.getSnapshot!==y||X||d2!==null&&d2.memoizedState.tag&1){if(C.flags|=2048,a0(9,un(),K9.bind(null,C,N,x,y),null),j1===null)throw Error(l(349));P||(l6&124)!==0||xl(C,y,x)}return x}function xl(d,y,x){d.flags|=16384,d={getSnapshot:y,value:x},y=Nt.updateQueue,y===null?(y=vl(),Nt.updateQueue=y,y.stores=[d]):(x=y.stores,x===null?y.stores=[d]:x.push(d))}function K9(d,y,x,C){y.value=x,y.getSnapshot=C,vd(y)&&Ld(d)}function gd(d,y,x){return x(function(){vd(y)&&Ld(d)})}function vd(d){var y=d.getSnapshot;d=d.value;try{var x=y();return!N3(d,x)}catch{return!0}}function Ld(d){var y=W5(d,2);y!==null&&L4(y,d,2)}function bl(d){var y=P3();if(typeof d=="function"){var x=d;if(d=x(),Q4){Ye(!0);try{x()}finally{Ye(!1)}}}return y.memoizedState=y.baseState=d,y.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:I6,lastRenderedState:d},y}function J9(d,y,x,C){return d.baseState=x,W9(d,x1,typeof C=="function"?C:I6)}function xd(d,y,x,C,N){if(No(d))throw Error(l(485));if(d=y.action,d!==null){var P={payload:N,action:d,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(X){P.listeners.push(X)}};W.T!==null?x(!0):P.isTransition=!1,C(P),x=y.pending,x===null?(P.next=y.pending=P,bd(y,P)):(P.next=x.next,y.pending=x.next=P)}}function bd(d,y){var x=y.action,C=y.payload,N=d.state;if(y.isTransition){var P=W.T,X={};W.T=X;try{var re=x(N,C),ce=W.S;ce!==null&&ce(X,re),eu(d,y,re)}catch(Me){El(d,y,Me)}finally{W.T=P}}else try{P=x(N,C),eu(d,y,P)}catch(Me){El(d,y,Me)}}function eu(d,y,x){x!==null&&typeof x=="object"&&typeof x.then=="function"?x.then(function(C){Hl(d,y,C)},function(C){return El(d,y,C)}):Hl(d,y,x)}function Hl(d,y,x){y.status="fulfilled",y.value=x,Hd(y),d.state=x,y=d.pending,y!==null&&(x=y.next,x===y?d.pending=null:(x=x.next,y.next=x,bd(d,x)))}function El(d,y,x){var C=d.pending;if(d.pending=null,C!==null){C=C.next;do y.status="rejected",y.reason=x,Hd(y),y=y.next;while(y!==C)}d.action=null}function Hd(d){d=d.listeners;for(var y=0;y<d.length;y++)(0,d[y])()}function Ed(d,y){return y}function tu(d,y){if($t){var x=j1.formState;if(x!==null){e:{var C=Nt;if($t){if(B1){t:{for(var N=B1,P=B3;N.nodeType!==8;){if(!P){N=null;break t}if(N=y6(N.nextSibling),N===null){N=null;break t}}P=N.data,N=P==="F!"||P==="F"?N:null}if(N){B1=y6(N.nextSibling),C=N.data==="F!";break e}}a6(C)}C=!1}C&&(y=x[0])}}return x=P3(),x.memoizedState=x.baseState=y,C={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ed,lastRenderedState:y},x.queue=C,x=iu.bind(null,Nt,C),C.dispatch=x,C=bl(!1),P=Ml.bind(null,Nt,!1,C.queue),C=P3(),N={state:y,dispatch:null,action:d,pending:null},C.queue=N,x=xd.bind(null,Nt,N,P,x),N.dispatch=x,C.memoizedState=d,[y,x,!1]}function Sd(d){var y=g2();return F6(y,x1,d)}function F6(d,y,x){if(y=W9(d,y,Ed)[0],d=Ll(I6)[0],typeof y=="object"&&y!==null&&typeof y.then=="function")try{var C=sa(y)}catch(X){throw X===ia?Ao:X}else C=y;y=g2();var N=y.queue,P=N.dispatch;return x!==y.memoizedState&&(Nt.flags|=2048,a0(9,un(),Md.bind(null,N,x),null)),[C,P,d]}function Md(d,y){d.action=y}function Iy(d){var y=g2(),x=x1;if(x!==null)return F6(y,x,d);g2(),y=y.memoizedState,x=g2();var C=x.queue.dispatch;return x.memoizedState=d,[y,C,!1]}function a0(d,y,x,C){return d={tag:d,create:x,deps:C,inst:y,next:null},y=Nt.updateQueue,y===null&&(y=vl(),Nt.updateQueue=y),x=y.lastEffect,x===null?y.lastEffect=d.next=d:(C=x.next,x.next=d,d.next=C,y.lastEffect=d),d}function un(){return{destroy:void 0,resource:void 0}}function Ad(){return g2().memoizedState}function ua(d,y,x,C){var N=P3();C=C===void 0?null:C,Nt.flags|=d,N.memoizedState=a0(1|y,un(),x,C)}function ir(d,y,x,C){var N=g2();C=C===void 0?null:C;var P=N.memoizedState.inst;x1!==null&&C!==null&&gl(C,x1.memoizedState.deps)?N.memoizedState=a0(y,P,x,C):(Nt.flags|=d,N.memoizedState=a0(1|y,P,x,C))}function n2(d,y){ua(8390656,8,d,y)}function Fy(d,y){ir(2048,8,d,y)}function zy(d,y){return ir(4,2,d,y)}function _d(d,y){return ir(4,4,d,y)}function s6(d,y){if(typeof y=="function"){d=d();var x=y(d);return function(){typeof x=="function"?x():y(null)}}if(y!=null)return d=d(),y.current=d,function(){y.current=null}}function Od(d,y,x){x=x!=null?x.concat([d]):null,ir(4,4,s6.bind(null,y,d),x)}function Sl(){}function Ro(d,y){var x=g2();y=y===void 0?null:y;var C=x.memoizedState;return y!==null&&gl(y,C[1])?C[0]:(x.memoizedState=[d,y],d)}function ca(d,y){var x=g2();y=y===void 0?null:y;var C=x.memoizedState;if(y!==null&&gl(y,C[1]))return C[0];if(C=d(),Q4){Ye(!0);try{d()}finally{Ye(!1)}}return x.memoizedState=[C,y],C}function nu(d,y,x){return x===void 0||(l6&1073741824)!==0?d.memoizedState=y:(d.memoizedState=x,d=og(),Nt.lanes|=d,f0|=d,x)}function ru(d,y,x,C){return N3(x,y)?x:rr.current!==null?(d=nu(d,x,C),N3(d,y)||(Jt=!0),d):(l6&42)===0?(Jt=!0,d.memoizedState=x):(d=og(),Nt.lanes|=d,f0|=d,y)}function Cd(d,y,x,C,N){var P=ne.p;ne.p=P!==0&&8>P?P:8;var X=W.T,re={};W.T=re,Ml(d,!1,y,x);try{var ce=N(),Me=W.S;if(Me!==null&&Me(re,ce),ce!==null&&typeof ce=="object"&&typeof ce.then=="function"){var Fe=cd(ce,C);ko(d,y,Fe,z4(d))}else ko(d,y,C,z4(d))}catch($e){ko(d,y,{then:function(){},status:"rejected",reason:$e},z4())}finally{ne.p=P,W.T=X}}function Rb(){}function wd(d,y,x,C){if(d.tag!==5)throw Error(l(476));var N=Vd(d).queue;Cd(d,N,y,K,x===null?Rb:function(){return qy(d),x(C)})}function Vd(d){var y=d.memoizedState;if(y!==null)return y;y={memoizedState:K,baseState:K,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:I6,lastRenderedState:K},next:null};var x={};return y.next={memoizedState:x,baseState:x,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:I6,lastRenderedState:x},next:null},d.memoizedState=y,d=d.alternate,d!==null&&(d.memoizedState=y),y}function qy(d){var y=Vd(d).next.queue;ko(d,y,{},z4())}function Ta(){return Q3(p3)}function u6(){return g2().memoizedState}function Dd(){return g2().memoizedState}function kb(d){for(var y=d.return;y!==null;){switch(y.tag){case 24:case 3:var x=z4();d=nr(x);var C=T4(y,d,x);C!==null&&(L4(C,y,x),aa(C,y,x)),y={cache:ud()},d.payload=y;return}y=y.return}}function $y(d,y,x){var C=z4();x={lane:C,revertLane:0,action:x,hasEagerState:!1,eagerState:null,next:null},No(d)?Al(y,x):(x=ta(d,y,x,C),x!==null&&(L4(x,d,C),Uy(x,y,C)))}function iu(d,y,x){var C=z4();ko(d,y,x,C)}function ko(d,y,x,C){var N={lane:C,revertLane:0,action:x,hasEagerState:!1,eagerState:null,next:null};if(No(d))Al(y,N);else{var P=d.alternate;if(d.lanes===0&&(P===null||P.lanes===0)&&(P=y.lastRenderedReducer,P!==null))try{var X=y.lastRenderedState,re=P(X,x);if(N.hasEagerState=!0,N.eagerState=re,N3(re,X))return t6(d,y,N,0),j1===null&&e6(),!1}catch{}finally{}if(x=ta(d,y,N,C),x!==null)return L4(x,d,C),Uy(x,y,C),!0}return!1}function Ml(d,y,x,C){if(C={lane:2,revertLane:Ou(),action:C,hasEagerState:!1,eagerState:null,next:null},No(d)){if(y)throw Error(l(479))}else y=ta(d,x,C,2),y!==null&&L4(y,d,2)}function No(d){var y=d.alternate;return d===Nt||y!==null&&y===Nt}function Al(d,y){la=oa=!0;var x=d.pending;x===null?y.next=y:(y.next=x.next,x.next=y),d.pending=y}function Uy(d,y,x){if((x&4194048)!==0){var C=y.lanes;C&=d.pendingLanes,x|=C,y.lanes=x,Xt(d,x)}}var _l={readContext:Q3,use:X9,useCallback:h2,useContext:h2,useEffect:h2,useImperativeHandle:h2,useLayoutEffect:h2,useInsertionEffect:h2,useMemo:h2,useReducer:h2,useRef:h2,useState:h2,useDebugValue:h2,useDeferredValue:h2,useTransition:h2,useSyncExternalStore:h2,useId:h2,useHostTransitionStatus:h2,useFormState:h2,useActionState:h2,useOptimistic:h2,useMemoCache:h2,useCacheRefresh:h2},Gy={readContext:Q3,use:X9,useCallback:function(d,y){return P3().memoizedState=[d,y===void 0?null:y],d},useContext:Q3,useEffect:n2,useImperativeHandle:function(d,y,x){x=x!=null?x.concat([d]):null,ua(4194308,4,s6.bind(null,y,d),x)},useLayoutEffect:function(d,y){return ua(4194308,4,d,y)},useInsertionEffect:function(d,y){ua(4,2,d,y)},useMemo:function(d,y){var x=P3();y=y===void 0?null:y;var C=d();if(Q4){Ye(!0);try{d()}finally{Ye(!1)}}return x.memoizedState=[C,y],C},useReducer:function(d,y,x){var C=P3();if(x!==void 0){var N=x(y);if(Q4){Ye(!0);try{x(y)}finally{Ye(!1)}}}else N=y;return C.memoizedState=C.baseState=N,d={pending:null,lanes:0,dispatch:null,lastRenderedReducer:d,lastRenderedState:N},C.queue=d,d=d.dispatch=$y.bind(null,Nt,d),[C.memoizedState,d]},useRef:function(d){var y=P3();return d={current:d},y.memoizedState=d},useState:function(d){d=bl(d);var y=d.queue,x=iu.bind(null,Nt,y);return y.dispatch=x,[d.memoizedState,x]},useDebugValue:Sl,useDeferredValue:function(d,y){var x=P3();return nu(x,d,y)},useTransition:function(){var d=bl(!1);return d=Cd.bind(null,Nt,d.queue,!0,!1),P3().memoizedState=d,[!1,d]},useSyncExternalStore:function(d,y,x){var C=Nt,N=P3();if($t){if(x===void 0)throw Error(l(407));x=x()}else{if(x=y(),j1===null)throw Error(l(349));(T1&124)!==0||xl(C,y,x)}N.memoizedState=x;var P={value:x,getSnapshot:y};return N.queue=P,n2(gd.bind(null,C,P,d),[d]),C.flags|=2048,a0(9,un(),K9.bind(null,C,P,x,y),null),x},useId:function(){var d=P3(),y=j1.identifierPrefix;if($t){var x=i6,C=r6;x=(C&~(1<<32-et(C)-1)).toString(32)+x,y="«"+y+"R"+x,x=yl++,0<x&&(y+="H"+x.toString(32)),y+="»"}else x=$9++,y="«"+y+"r"+x.toString(32)+"»";return d.memoizedState=y},useHostTransitionStatus:Ta,useFormState:tu,useActionState:tu,useOptimistic:function(d){var y=P3();y.memoizedState=y.baseState=d;var x={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return y.queue=x,y=Ml.bind(null,Nt,!0,x),x.dispatch=y,[d,y]},useMemoCache:q2,useCacheRefresh:function(){return P3().memoizedState=kb.bind(null,Nt)}},Rd={readContext:Q3,use:X9,useCallback:Ro,useContext:Q3,useEffect:Fy,useImperativeHandle:Od,useInsertionEffect:zy,useLayoutEffect:_d,useMemo:ca,useReducer:Ll,useRef:Ad,useState:function(){return Ll(I6)},useDebugValue:Sl,useDeferredValue:function(d,y){var x=g2();return ru(x,x1.memoizedState,d,y)},useTransition:function(){var d=Ll(I6)[0],y=g2().memoizedState;return[typeof d=="boolean"?d:sa(d),y]},useSyncExternalStore:yd,useId:u6,useHostTransitionStatus:Ta,useFormState:Sd,useActionState:Sd,useOptimistic:function(d,y){var x=g2();return J9(x,x1,d,y)},useMemoCache:q2,useCacheRefresh:Dd},Zy={readContext:Q3,use:X9,useCallback:Ro,useContext:Q3,useEffect:Fy,useImperativeHandle:Od,useInsertionEffect:zy,useLayoutEffect:_d,useMemo:ca,useReducer:Y9,useRef:Ad,useState:function(){return Y9(I6)},useDebugValue:Sl,useDeferredValue:function(d,y){var x=g2();return x1===null?nu(x,d,y):ru(x,x1.memoizedState,d,y)},useTransition:function(){var d=Y9(I6)[0],y=g2().memoizedState;return[typeof d=="boolean"?d:sa(d),y]},useSyncExternalStore:yd,useId:u6,useHostTransitionStatus:Ta,useFormState:Iy,useActionState:Iy,useOptimistic:function(d,y){var x=g2();return x1!==null?J9(x,x1,d,y):(x.baseState=d,[d,x.queue.dispatch])},useMemoCache:q2,useCacheRefresh:Dd},d4=null,Bo=0;function Ol(d){var y=Bo;return Bo+=1,d4===null&&(d4=[]),fd(d4,d,y)}function Cl(d,y){y=y.props.ref,d.ref=y!==void 0?y:null}function Po(d,y){throw y.$$typeof===f?Error(l(525)):(d=Object.prototype.toString.call(y),Error(l(31,d==="[object Object]"?"object with keys {"+Object.keys(y).join(", ")+"}":d)))}function h4(d){var y=d._init;return y(d._payload)}function kd(d){function y(be,ge){if(d){var Ae=be.deletions;Ae===null?(be.deletions=[ge],be.flags|=16):Ae.push(ge)}}function x(be,ge){if(!d)return null;for(;ge!==null;)y(be,ge),ge=ge.sibling;return null}function C(be){for(var ge=new Map;be!==null;)be.key!==null?ge.set(be.key,be):ge.set(be.index,be),be=be.sibling;return ge}function N(be,ge){return be=n6(be,ge),be.index=0,be.sibling=null,be}function P(be,ge,Ae){return be.index=Ae,d?(Ae=be.alternate,Ae!==null?(Ae=Ae.index,Ae<ge?(be.flags|=67108866,ge):Ae):(be.flags|=67108866,ge)):(be.flags|=1048576,ge)}function X(be){return d&&be.alternate===null&&(be.flags|=67108866),be}function re(be,ge,Ae,qe){return ge===null||ge.tag!==6?(ge=Jr(Ae,be.mode,qe),ge.return=be,ge):(ge=N(ge,Ae),ge.return=be,ge)}function ce(be,ge,Ae,qe){var ut=Ae.type;return ut===g?Fe(be,ge,Ae.props.children,qe,Ae.key):ge!==null&&(ge.elementType===ut||typeof ut=="object"&&ut!==null&&ut.$$typeof===k&&h4(ut)===ge.type)?(ge=N(ge,Ae.props),Cl(ge,Ae),ge.return=be,ge):(ge=qt(Ae.type,Ae.key,Ae.props,null,be.mode,qe),Cl(ge,Ae),ge.return=be,ge)}function Me(be,ge,Ae,qe){return ge===null||ge.tag!==4||ge.stateNode.containerInfo!==Ae.containerInfo||ge.stateNode.implementation!==Ae.implementation?(ge=yo(Ae,be.mode,qe),ge.return=be,ge):(ge=N(ge,Ae.children||[]),ge.return=be,ge)}function Fe(be,ge,Ae,qe,ut){return ge===null||ge.tag!==7?(ge=Ze(Ae,be.mode,qe,ut),ge.return=be,ge):(ge=N(ge,Ae),ge.return=be,ge)}function $e(be,ge,Ae){if(typeof ge=="string"&&ge!==""||typeof ge=="number"||typeof ge=="bigint")return ge=Jr(""+ge,be.mode,Ae),ge.return=be,ge;if(typeof ge=="object"&&ge!==null){switch(ge.$$typeof){case h:return Ae=qt(ge.type,ge.key,ge.props,null,be.mode,Ae),Cl(Ae,ge),Ae.return=be,Ae;case p:return ge=yo(ge,be.mode,Ae),ge.return=be,ge;case k:var qe=ge._init;return ge=qe(ge._payload),$e(be,ge,Ae)}if(J(ge)||q(ge))return ge=Ze(ge,be.mode,Ae,null),ge.return=be,ge;if(typeof ge.then=="function")return $e(be,Ol(ge),Ae);if(ge.$$typeof===_)return $e(be,bo(be,ge),Ae);Po(be,ge)}return null}function Oe(be,ge,Ae,qe){var ut=ge!==null?ge.key:null;if(typeof Ae=="string"&&Ae!==""||typeof Ae=="number"||typeof Ae=="bigint")return ut!==null?null:re(be,ge,""+Ae,qe);if(typeof Ae=="object"&&Ae!==null){switch(Ae.$$typeof){case h:return Ae.key===ut?ce(be,ge,Ae,qe):null;case p:return Ae.key===ut?Me(be,ge,Ae,qe):null;case k:return ut=Ae._init,Ae=ut(Ae._payload),Oe(be,ge,Ae,qe)}if(J(Ae)||q(Ae))return ut!==null?null:Fe(be,ge,Ae,qe,null);if(typeof Ae.then=="function")return Oe(be,ge,Ol(Ae),qe);if(Ae.$$typeof===_)return Oe(be,ge,bo(be,Ae),qe);Po(be,Ae)}return null}function Re(be,ge,Ae,qe,ut){if(typeof qe=="string"&&qe!==""||typeof qe=="number"||typeof qe=="bigint")return be=be.get(Ae)||null,re(ge,be,""+qe,ut);if(typeof qe=="object"&&qe!==null){switch(qe.$$typeof){case h:return be=be.get(qe.key===null?Ae:qe.key)||null,ce(ge,be,qe,ut);case p:return be=be.get(qe.key===null?Ae:qe.key)||null,Me(ge,be,qe,ut);case k:var Ut=qe._init;return qe=Ut(qe._payload),Re(be,ge,Ae,qe,ut)}if(J(qe)||q(qe))return be=be.get(Ae)||null,Fe(ge,be,qe,ut,null);if(typeof qe.then=="function")return Re(be,ge,Ae,Ol(qe),ut);if(qe.$$typeof===_)return Re(be,ge,Ae,bo(ge,qe),ut);Po(ge,qe)}return null}function Mt(be,ge,Ae,qe){for(var ut=null,Ut=null,gt=ge,At=ge=0,r3=null;gt!==null&&At<Ae.length;At++){gt.index>At?(r3=gt,gt=null):r3=gt.sibling;var v1=Oe(be,gt,Ae[At],qe);if(v1===null){gt===null&&(gt=r3);break}d&>&&v1.alternate===null&&y(be,gt),ge=P(v1,ge,At),Ut===null?ut=v1:Ut.sibling=v1,Ut=v1,gt=r3}if(At===Ae.length)return x(be,gt),$t&&w2(be,At),ut;if(gt===null){for(;At<Ae.length;At++)gt=$e(be,Ae[At],qe),gt!==null&&(ge=P(gt,ge,At),Ut===null?ut=gt:Ut.sibling=gt,Ut=gt);return $t&&w2(be,At),ut}for(gt=C(gt);At<Ae.length;At++)r3=Re(gt,be,At,Ae[At],qe),r3!==null&&(d&&r3.alternate!==null&>.delete(r3.key===null?At:r3.key),ge=P(r3,ge,At),Ut===null?ut=r3:Ut.sibling=r3,Ut=r3);return d&>.forEach(function(Y6){return y(be,Y6)}),$t&&w2(be,At),ut}function Lt(be,ge,Ae,qe){if(Ae==null)throw Error(l(151));for(var ut=null,Ut=null,gt=ge,At=ge=0,r3=null,v1=Ae.next();gt!==null&&!v1.done;At++,v1=Ae.next()){gt.index>At?(r3=gt,gt=null):r3=gt.sibling;var Y6=Oe(be,gt,v1.value,qe);if(Y6===null){gt===null&&(gt=r3);break}d&>&&Y6.alternate===null&&y(be,gt),ge=P(Y6,ge,At),Ut===null?ut=Y6:Ut.sibling=Y6,Ut=Y6,gt=r3}if(v1.done)return x(be,gt),$t&&w2(be,At),ut;if(gt===null){for(;!v1.done;At++,v1=Ae.next())v1=$e(be,v1.value,qe),v1!==null&&(ge=P(v1,ge,At),Ut===null?ut=v1:Ut.sibling=v1,Ut=v1);return $t&&w2(be,At),ut}for(gt=C(gt);!v1.done;At++,v1=Ae.next())v1=Re(gt,be,At,v1.value,qe),v1!==null&&(d&&v1.alternate!==null&>.delete(v1.key===null?At:v1.key),ge=P(v1,ge,At),Ut===null?ut=v1:Ut.sibling=v1,Ut=v1);return d&>.forEach(function(Ub){return y(be,Ub)}),$t&&w2(be,At),ut}function H1(be,ge,Ae,qe){if(typeof Ae=="object"&&Ae!==null&&Ae.type===g&&Ae.key===null&&(Ae=Ae.props.children),typeof Ae=="object"&&Ae!==null){switch(Ae.$$typeof){case h:e:{for(var ut=Ae.key;ge!==null;){if(ge.key===ut){if(ut=Ae.type,ut===g){if(ge.tag===7){x(be,ge.sibling),qe=N(ge,Ae.props.children),qe.return=be,be=qe;break e}}else if(ge.elementType===ut||typeof ut=="object"&&ut!==null&&ut.$$typeof===k&&h4(ut)===ge.type){x(be,ge.sibling),qe=N(ge,Ae.props),Cl(qe,Ae),qe.return=be,be=qe;break e}x(be,ge);break}else y(be,ge);ge=ge.sibling}Ae.type===g?(qe=Ze(Ae.props.children,be.mode,qe,Ae.key),qe.return=be,be=qe):(qe=qt(Ae.type,Ae.key,Ae.props,null,be.mode,qe),Cl(qe,Ae),qe.return=be,be=qe)}return X(be);case p:e:{for(ut=Ae.key;ge!==null;){if(ge.key===ut)if(ge.tag===4&&ge.stateNode.containerInfo===Ae.containerInfo&&ge.stateNode.implementation===Ae.implementation){x(be,ge.sibling),qe=N(ge,Ae.children||[]),qe.return=be,be=qe;break e}else{x(be,ge);break}else y(be,ge);ge=ge.sibling}qe=yo(Ae,be.mode,qe),qe.return=be,be=qe}return X(be);case k:return ut=Ae._init,Ae=ut(Ae._payload),H1(be,ge,Ae,qe)}if(J(Ae))return Mt(be,ge,Ae,qe);if(q(Ae)){if(ut=q(Ae),typeof ut!="function")throw Error(l(150));return Ae=ut.call(Ae),Lt(be,ge,Ae,qe)}if(typeof Ae.then=="function")return H1(be,ge,Ol(Ae),qe);if(Ae.$$typeof===_)return H1(be,ge,bo(be,Ae),qe);Po(be,Ae)}return typeof Ae=="string"&&Ae!==""||typeof Ae=="number"||typeof Ae=="bigint"?(Ae=""+Ae,ge!==null&&ge.tag===6?(x(be,ge.sibling),qe=N(ge,Ae),qe.return=be,be=qe):(x(be,ge),qe=Jr(Ae,be.mode,qe),qe.return=be,be=qe),X(be)):x(be,ge)}return function(be,ge,Ae,qe){try{Bo=0;var ut=H1(be,ge,Ae,qe);return d4=null,ut}catch(gt){if(gt===ia||gt===Ao)throw gt;var Ut=s4(29,gt,null,be.mode);return Ut.lanes=qe,Ut.return=be,Ut}finally{}}}var K2=kd(!0),Nd=kd(!1),D2=z(null),c6=null;function p4(d){var y=d.alternate;U(E2,E2.current&1),U(D2,d),c6===null&&(y===null||rr.current!==null||y.memoizedState!==null)&&(c6=d)}function Bd(d){if(d.tag===22){if(U(E2,E2.current),U(D2,d),c6===null){var y=d.alternate;y!==null&&y.memoizedState!==null&&(c6=d)}}else H3()}function H3(){U(E2,E2.current),U(D2,D2.current)}function T6(d){ee(D2),c6===d&&(c6=null),ee(E2)}var E2=z(0);function P4(d){for(var y=d;y!==null;){if(y.tag===13){var x=y.memoizedState;if(x!==null&&(x=x.dehydrated,x===null||x.data==="$?"||Hh(x)))return y}else if(y.tag===19&&y.memoizedProps.revealOrder!==void 0){if((y.flags&128)!==0)return y}else if(y.child!==null){y.child.return=y,y=y.child;continue}if(y===d)break;for(;y.sibling===null;){if(y.return===null||y.return===d)return null;y=y.return}y.sibling.return=y.return,y=y.sibling}return null}function au(d,y,x,C){y=d.memoizedState,x=x(C,y),x=x==null?y:Q({},y,x),d.memoizedState=x,d.lanes===0&&(d.updateQueue.baseState=x)}var o0={enqueueSetState:function(d,y,x){d=d._reactInternals;var C=z4(),N=nr(C);N.payload=y,x!=null&&(N.callback=x),y=T4(d,N,C),y!==null&&(L4(y,d,C),aa(y,d,C))},enqueueReplaceState:function(d,y,x){d=d._reactInternals;var C=z4(),N=nr(C);N.tag=1,N.payload=y,x!=null&&(N.callback=x),y=T4(d,N,C),y!==null&&(L4(y,d,C),aa(y,d,C))},enqueueForceUpdate:function(d,y){d=d._reactInternals;var x=z4(),C=nr(x);C.tag=2,y!=null&&(C.callback=y),y=T4(d,C,x),y!==null&&(L4(y,d,x),aa(y,d,x))}};function Pd(d,y,x,C,N,P,X){return d=d.stateNode,typeof d.shouldComponentUpdate=="function"?d.shouldComponentUpdate(C,P,X):y.prototype&&y.prototype.isPureReactComponent?!Z5(x,C)||!Z5(N,P):!0}function jo(d,y,x,C){d=y.state,typeof y.componentWillReceiveProps=="function"&&y.componentWillReceiveProps(x,C),typeof y.UNSAFE_componentWillReceiveProps=="function"&&y.UNSAFE_componentWillReceiveProps(x,C),y.state!==d&&o0.enqueueReplaceState(y,y.state,null)}function cn(d,y){var x=y;if("ref"in y){x={};for(var C in y)C!=="ref"&&(x[C]=y[C])}if(d=d.defaultProps){x===y&&(x=Q({},x));for(var N in d)x[N]===void 0&&(x[N]=d[N])}return x}var wl=typeof reportError=="function"?reportError:function(d){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var y=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof d=="object"&&d!==null&&typeof d.message=="string"?String(d.message):String(d),error:d});if(!window.dispatchEvent(y))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",d);return}console.error(d)};function jd(d){wl(d)}function Io(d){console.error(d)}function Id(d){wl(d)}function Qa(d,y){try{var x=d.onUncaughtError;x(y.value,{componentStack:y.stack})}catch(C){setTimeout(function(){throw C})}}function Fd(d,y,x){try{var C=d.onCaughtError;C(x.value,{componentStack:x.stack,errorBoundary:y.tag===1?y.stateNode:null})}catch(N){setTimeout(function(){throw N})}}function ou(d,y,x){return x=nr(x),x.tag=3,x.payload={element:null},x.callback=function(){Qa(d,y)},x}function Xy(d){return d=nr(d),d.tag=3,d}function zd(d,y,x,C){var N=x.type.getDerivedStateFromError;if(typeof N=="function"){var P=C.value;d.payload=function(){return N(P)},d.callback=function(){Fd(y,x,C)}}var X=x.stateNode;X!==null&&typeof X.componentDidCatch=="function"&&(d.callback=function(){Fd(y,x,C),typeof N!="function"&&(z6===null?z6=new Set([this]):z6.add(this));var re=C.stack;this.componentDidCatch(C.value,{componentStack:re!==null?re:""})})}function j4(d,y,x,C,N){if(x.flags|=32768,C!==null&&typeof C=="object"&&typeof C.then=="function"){if(y=x.alternate,y!==null&&ul(y,x,N,!0),x=D2.current,x!==null){switch(x.tag){case 13:return c6===null?m0():x.alternate===null&&L2===0&&(L2=3),x.flags&=-257,x.flags|=65536,x.lanes=N,C===I9?x.flags|=16384:(y=x.updateQueue,y===null?x.updateQueue=new Set([C]):y.add(C),jl(d,C,N)),!1;case 22:return x.flags|=65536,C===I9?x.flags|=16384:(y=x.updateQueue,y===null?(y={transitions:null,markerInstances:null,retryQueue:new Set([C])},x.updateQueue=y):(x=y.retryQueue,x===null?y.retryQueue=new Set([C]):x.add(C)),jl(d,C,N)),!1}throw Error(l(435,x.tag))}return jl(d,C,N),m0(),!1}if($t)return y=D2.current,y!==null?((y.flags&65536)===0&&(y.flags|=256),y.flags|=65536,y.lanes=N,C!==ll&&(d=Error(l(422),{cause:C}),xo(N4(d,x)))):(C!==ll&&(y=Error(l(423),{cause:C}),xo(N4(y,x))),d=d.current.alternate,d.flags|=65536,N&=-N,d.lanes|=N,C=N4(C,x),N=ou(d.stateNode,C,N),hl(d,N),L2!==4&&(L2=2)),!1;var P=Error(l(520),{cause:C});if(P=N4(P,x),Nl===null?Nl=[P]:Nl.push(P),L2!==4&&(L2=2),y===null)return!0;C=N4(C,x),x=y;do{switch(x.tag){case 3:return x.flags|=65536,d=N&-N,x.lanes|=d,d=ou(x.stateNode,C,d),hl(x,d),!1;case 1:if(y=x.type,P=x.stateNode,(x.flags&128)===0&&(typeof y.getDerivedStateFromError=="function"||P!==null&&typeof P.componentDidCatch=="function"&&(z6===null||!z6.has(P))))return x.flags|=65536,N&=-N,x.lanes|=N,N=Xy(N),zd(N,d,x,C),hl(x,N),!1}x=x.return}while(x!==null);return!1}var qd=Error(l(461)),Jt=!1;function J2(d,y,x,C){y.child=d===null?Nd(y,null,x,C):K2(y,d.child,x,C)}function $d(d,y,x,C,N){x=x.render;var P=y.ref;if("ref"in C){var X={};for(var re in C)re!=="ref"&&(X[re]=C[re])}else X=C;return t0(y),C=U9(d,y,x,X,P,N),re=G9(),d!==null&&!Jt?(Z9(d,y,N),Q6(d,y,N)):($t&&re&&ol(y),y.flags|=1,J2(d,y,C,N),y.child)}function Wy(d,y,x,C,N){if(d===null){var P=x.type;return typeof P=="function"&&!D9(P)&&P.defaultProps===void 0&&x.compare===null?(y.tag=15,y.type=P,ar(d,y,P,C,N)):(d=qt(x.type,null,C,y,y.mode,N),d.ref=y.ref,d.return=y,y.child=d)}if(P=d.child,!Qu(d,N)){var X=P.memoizedProps;if(x=x.compare,x=x!==null?x:Z5,x(X,C)&&d.ref===y.ref)return Q6(d,y,N)}return y.flags|=1,d=n6(P,C),d.ref=y.ref,d.return=y,y.child=d}function ar(d,y,x,C,N){if(d!==null){var P=d.memoizedProps;if(Z5(P,C)&&d.ref===y.ref)if(Jt=!1,y.pendingProps=C=P,Qu(d,N))(d.flags&131072)!==0&&(Jt=!0);else return y.lanes=d.lanes,Q6(d,y,N)}return su(d,y,x,C,N)}function fa(d,y,x){var C=y.pendingProps,N=C.children,P=d!==null?d.memoizedState:null;if(C.mode==="hidden"){if((y.flags&128)!==0){if(C=P!==null?P.baseLanes|x:x,d!==null){for(N=y.child=d.child,P=0;N!==null;)P=P|N.lanes|N.childLanes,N=N.sibling;y.childLanes=P&~C}else y.childLanes=0,y.child=null;return lu(d,y,C,x)}if((x&536870912)!==0)y.memoizedState={baseLanes:0,cachePool:null},d!==null&&Mo(y,P!==null?P.cachePool:null),P!==null?pd(y,P):z2(),Bd(y);else return y.lanes=y.childLanes=536870912,lu(d,y,P!==null?P.baseLanes|x:x,x)}else P!==null?(Mo(y,P.cachePool),pd(y,P),H3(),y.memoizedState=null):(d!==null&&Mo(y,null),z2(),H3());return J2(d,y,N,x),y.child}function lu(d,y,x,C){var N=So();return N=N===null?null:{parent:V2._currentValue,pool:N},y.memoizedState={baseLanes:x,cachePool:N},d!==null&&Mo(y,null),z2(),Bd(y),d!==null&&ul(d,y,C,!0),null}function or(d,y){var x=y.ref;if(x===null)d!==null&&d.ref!==null&&(y.flags|=4194816);else{if(typeof x!="function"&&typeof x!="object")throw Error(l(284));(d===null||d.ref!==x)&&(y.flags|=4194816)}}function su(d,y,x,C,N){return t0(y),x=U9(d,y,x,C,void 0,N),C=G9(),d!==null&&!Jt?(Z9(d,y,N),Q6(d,y,N)):($t&&C&&ol(y),y.flags|=1,J2(d,y,x,N),y.child)}function Ud(d,y,x,C,N,P){return t0(y),y.updateQueue=null,x=i0(y,C,x,N),md(d),C=G9(),d!==null&&!Jt?(Z9(d,y,P),Q6(d,y,P)):($t&&C&&ol(y),y.flags|=1,J2(d,y,x,P),y.child)}function Gd(d,y,x,C,N){if(t0(y),y.stateNode===null){var P=na,X=x.contextType;typeof X=="object"&&X!==null&&(P=Q3(X)),P=new x(C,P),y.memoizedState=P.state!==null&&P.state!==void 0?P.state:null,P.updater=o0,y.stateNode=P,P._reactInternals=y,P=y.stateNode,P.props=C,P.state=y.memoizedState,P.refs={},dl(y),X=x.contextType,P.context=typeof X=="object"&&X!==null?Q3(X):na,P.state=y.memoizedState,X=x.getDerivedStateFromProps,typeof X=="function"&&(au(y,x,X,C),P.state=y.memoizedState),typeof x.getDerivedStateFromProps=="function"||typeof P.getSnapshotBeforeUpdate=="function"||typeof P.UNSAFE_componentWillMount!="function"&&typeof P.componentWillMount!="function"||(X=P.state,typeof P.componentWillMount=="function"&&P.componentWillMount(),typeof P.UNSAFE_componentWillMount=="function"&&P.UNSAFE_componentWillMount(),X!==P.state&&o0.enqueueReplaceState(P,P.state,null),Co(y,C,P,N),pl(),P.state=y.memoizedState),typeof P.componentDidMount=="function"&&(y.flags|=4194308),C=!0}else if(d===null){P=y.stateNode;var re=y.memoizedProps,ce=cn(x,re);P.props=ce;var Me=P.context,Fe=x.contextType;X=na,typeof Fe=="object"&&Fe!==null&&(X=Q3(Fe));var $e=x.getDerivedStateFromProps;Fe=typeof $e=="function"||typeof P.getSnapshotBeforeUpdate=="function",re=y.pendingProps!==re,Fe||typeof P.UNSAFE_componentWillReceiveProps!="function"&&typeof P.componentWillReceiveProps!="function"||(re||Me!==X)&&jo(y,P,C,X),tr=!1;var Oe=y.memoizedState;P.state=Oe,Co(y,C,P,N),pl(),Me=y.memoizedState,re||Oe!==Me||tr?(typeof $e=="function"&&(au(y,x,$e,C),Me=y.memoizedState),(ce=tr||Pd(y,x,ce,C,Oe,Me,X))?(Fe||typeof P.UNSAFE_componentWillMount!="function"&&typeof P.componentWillMount!="function"||(typeof P.componentWillMount=="function"&&P.componentWillMount(),typeof P.UNSAFE_componentWillMount=="function"&&P.UNSAFE_componentWillMount()),typeof P.componentDidMount=="function"&&(y.flags|=4194308)):(typeof P.componentDidMount=="function"&&(y.flags|=4194308),y.memoizedProps=C,y.memoizedState=Me),P.props=C,P.state=Me,P.context=X,C=ce):(typeof P.componentDidMount=="function"&&(y.flags|=4194308),C=!1)}else{P=y.stateNode,z9(d,y),X=y.memoizedProps,Fe=cn(x,X),P.props=Fe,$e=y.pendingProps,Oe=P.context,Me=x.contextType,ce=na,typeof Me=="object"&&Me!==null&&(ce=Q3(Me)),re=x.getDerivedStateFromProps,(Me=typeof re=="function"||typeof P.getSnapshotBeforeUpdate=="function")||typeof P.UNSAFE_componentWillReceiveProps!="function"&&typeof P.componentWillReceiveProps!="function"||(X!==$e||Oe!==ce)&&jo(y,P,C,ce),tr=!1,Oe=y.memoizedState,P.state=Oe,Co(y,C,P,N),pl();var Re=y.memoizedState;X!==$e||Oe!==Re||tr||d!==null&&d.dependencies!==null&&cl(d.dependencies)?(typeof re=="function"&&(au(y,x,re,C),Re=y.memoizedState),(Fe=tr||Pd(y,x,Fe,C,Oe,Re,ce)||d!==null&&d.dependencies!==null&&cl(d.dependencies))?(Me||typeof P.UNSAFE_componentWillUpdate!="function"&&typeof P.componentWillUpdate!="function"||(typeof P.componentWillUpdate=="function"&&P.componentWillUpdate(C,Re,ce),typeof P.UNSAFE_componentWillUpdate=="function"&&P.UNSAFE_componentWillUpdate(C,Re,ce)),typeof P.componentDidUpdate=="function"&&(y.flags|=4),typeof P.getSnapshotBeforeUpdate=="function"&&(y.flags|=1024)):(typeof P.componentDidUpdate!="function"||X===d.memoizedProps&&Oe===d.memoizedState||(y.flags|=4),typeof P.getSnapshotBeforeUpdate!="function"||X===d.memoizedProps&&Oe===d.memoizedState||(y.flags|=1024),y.memoizedProps=C,y.memoizedState=Re),P.props=C,P.state=Re,P.context=ce,C=Fe):(typeof P.componentDidUpdate!="function"||X===d.memoizedProps&&Oe===d.memoizedState||(y.flags|=4),typeof P.getSnapshotBeforeUpdate!="function"||X===d.memoizedProps&&Oe===d.memoizedState||(y.flags|=1024),C=!1)}return P=C,or(d,y),C=(y.flags&128)!==0,P||C?(P=y.stateNode,x=C&&typeof x.getDerivedStateFromError!="function"?null:P.render(),y.flags|=1,d!==null&&C?(y.child=K2(y,d.child,null,N),y.child=K2(y,null,x,N)):J2(d,y,x,N),y.memoizedState=P.state,d=y.child):d=Q6(d,y,N),d}function uu(d,y,x,C){return Lo(),y.flags|=256,J2(d,y,x,C),y.child}var Vl={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function cu(d){return{baseLanes:d,cachePool:Ql()}}function Zd(d,y,x){return d=d!==null?d.childLanes&~x:0,y&&(d|=$2),d}function Yy(d,y,x){var C=y.pendingProps,N=!1,P=(y.flags&128)!==0,X;if((X=P)||(X=d!==null&&d.memoizedState===null?!1:(E2.current&2)!==0),X&&(N=!0,y.flags&=-129),X=(y.flags&32)!==0,y.flags&=-33,d===null){if($t){if(N?p4(y):H3(),$t){var re=B1,ce;if(ce=re){e:{for(ce=re,re=B3;ce.nodeType!==8;){if(!re){re=null;break e}if(ce=y6(ce.nextSibling),ce===null){re=null;break e}}re=ce}re!==null?(y.memoizedState={dehydrated:re,treeContext:Y5!==null?{id:r6,overflow:i6}:null,retryLane:536870912,hydrationErrors:null},ce=s4(18,null,null,0),ce.stateNode=re,ce.return=y,y.child=ce,y2=y,B1=null,ce=!0):ce=!1}ce||a6(y)}if(re=y.memoizedState,re!==null&&(re=re.dehydrated,re!==null))return Hh(re)?y.lanes=32:y.lanes=536870912,null;T6(y)}return re=C.children,C=C.fallback,N?(H3(),N=y.mode,re=Dl({mode:"hidden",children:re},N),C=Ze(C,N,x,null),re.return=y,C.return=y,re.sibling=C,y.child=re,N=y.child,N.memoizedState=cu(x),N.childLanes=Zd(d,X,x),y.memoizedState=Vl,C):(p4(y),Tu(y,re))}if(ce=d.memoizedState,ce!==null&&(re=ce.dehydrated,re!==null)){if(P)y.flags&256?(p4(y),y.flags&=-257,y=Xd(d,y,x)):y.memoizedState!==null?(H3(),y.child=d.child,y.flags|=128,y=null):(H3(),N=C.fallback,re=y.mode,C=Dl({mode:"visible",children:C.children},re),N=Ze(N,re,x,null),N.flags|=2,C.return=y,N.return=y,C.sibling=N,y.child=C,K2(y,d.child,null,x),C=y.child,C.memoizedState=cu(x),C.childLanes=Zd(d,X,x),y.memoizedState=Vl,y=N);else if(p4(y),Hh(re)){if(X=re.nextSibling&&re.nextSibling.dataset,X)var Me=X.dgst;X=Me,C=Error(l(419)),C.stack="",C.digest=X,xo({value:C,source:null,stack:null}),y=Xd(d,y,x)}else if(Jt||ul(d,y,x,!1),X=(x&d.childLanes)!==0,Jt||X){if(X=j1,X!==null&&(C=x&-x,C=(C&42)!==0?1:Ht(C),C=(C&(X.suspendedLanes|x))!==0?0:C,C!==0&&C!==ce.retryLane))throw ce.retryLane=C,W5(d,C),L4(X,d,C),qd;re.data==="$?"||m0(),y=Xd(d,y,x)}else re.data==="$?"?(y.flags|=192,y.child=d.child,y=null):(d=ce.treeContext,B1=y6(re.nextSibling),y2=y,$t=!0,K5=null,B3=!1,d!==null&&(u4[on++]=r6,u4[on++]=i6,u4[on++]=Y5,r6=d.id,i6=d.overflow,Y5=y),y=Tu(y,C.children),y.flags|=4096);return y}return N?(H3(),N=C.fallback,re=y.mode,ce=d.child,Me=ce.sibling,C=n6(ce,{mode:"hidden",children:C.children}),C.subtreeFlags=ce.subtreeFlags&65011712,Me!==null?N=n6(Me,N):(N=Ze(N,re,x,null),N.flags|=2),N.return=y,C.return=y,C.sibling=N,y.child=C,C=N,N=y.child,re=d.child.memoizedState,re===null?re=cu(x):(ce=re.cachePool,ce!==null?(Me=V2._currentValue,ce=ce.parent!==Me?{parent:Me,pool:Me}:ce):ce=Ql(),re={baseLanes:re.baseLanes|x,cachePool:ce}),N.memoizedState=re,N.childLanes=Zd(d,X,x),y.memoizedState=Vl,C):(p4(y),x=d.child,d=x.sibling,x=n6(x,{mode:"visible",children:C.children}),x.return=y,x.sibling=null,d!==null&&(X=y.deletions,X===null?(y.deletions=[d],y.flags|=16):X.push(d)),y.child=x,y.memoizedState=null,x)}function Tu(d,y){return y=Dl({mode:"visible",children:y},d.mode),y.return=d,d.child=y}function Dl(d,y){return d=s4(22,d,null,y),d.lanes=0,d.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null},d}function Xd(d,y,x){return K2(y,d.child,null,x),d=Tu(y,y.pendingProps.children),d.flags|=2,y.memoizedState=null,d}function da(d,y,x){d.lanes|=y;var C=d.alternate;C!==null&&(C.lanes|=y),B9(d.return,y,x)}function Fo(d,y,x,C,N){var P=d.memoizedState;P===null?d.memoizedState={isBackwards:y,rendering:null,renderingStartTime:0,last:C,tail:x,tailMode:N}:(P.isBackwards=y,P.rendering=null,P.renderingStartTime=0,P.last=C,P.tail=x,P.tailMode=N)}function Wd(d,y,x){var C=y.pendingProps,N=C.revealOrder,P=C.tail;if(J2(d,y,C.children,x),C=E2.current,(C&2)!==0)C=C&1|2,y.flags|=128;else{if(d!==null&&(d.flags&128)!==0)e:for(d=y.child;d!==null;){if(d.tag===13)d.memoizedState!==null&&da(d,x,y);else if(d.tag===19)da(d,x,y);else if(d.child!==null){d.child.return=d,d=d.child;continue}if(d===y)break e;for(;d.sibling===null;){if(d.return===null||d.return===y)break e;d=d.return}d.sibling.return=d.return,d=d.sibling}C&=1}switch(U(E2,C),N){case"forwards":for(x=y.child,N=null;x!==null;)d=x.alternate,d!==null&&P4(d)===null&&(N=x),x=x.sibling;x=N,x===null?(N=y.child,y.child=null):(N=x.sibling,x.sibling=null),Fo(y,!1,N,x,P);break;case"backwards":for(x=null,N=y.child,y.child=null;N!==null;){if(d=N.alternate,d!==null&&P4(d)===null){y.child=N;break}d=N.sibling,N.sibling=x,x=N,N=d}Fo(y,!0,x,null,P);break;case"together":Fo(y,!1,null,null,void 0);break;default:y.memoizedState=null}return y.child}function Q6(d,y,x){if(d!==null&&(y.dependencies=d.dependencies),f0|=y.lanes,(x&y.childLanes)===0)if(d!==null){if(ul(d,y,x,!1),(x&y.childLanes)===0)return null}else return null;if(d!==null&&y.child!==d.child)throw Error(l(153));if(y.child!==null){for(d=y.child,x=n6(d,d.pendingProps),y.child=x,x.return=y;d.sibling!==null;)d=d.sibling,x=x.sibling=n6(d,d.pendingProps),x.return=y;x.sibling=null}return y.child}function Qu(d,y){return(d.lanes&y)!==0?!0:(d=d.dependencies,!!(d!==null&&cl(d)))}function Ky(d,y,x){switch(y.tag){case 3:fe(y,y.stateNode.containerInfo),B6(y,V2,d.memoizedState.cache),Lo();break;case 27:case 5:Ee(y);break;case 4:fe(y,y.stateNode.containerInfo);break;case 10:B6(y,y.type,y.memoizedProps.value);break;case 13:var C=y.memoizedState;if(C!==null)return C.dehydrated!==null?(p4(y),y.flags|=128,null):(x&y.child.childLanes)!==0?Yy(d,y,x):(p4(y),d=Q6(d,y,x),d!==null?d.sibling:null);p4(y);break;case 19:var N=(d.flags&128)!==0;if(C=(x&y.childLanes)!==0,C||(ul(d,y,x,!1),C=(x&y.childLanes)!==0),N){if(C)return Wd(d,y,x);y.flags|=128}if(N=y.memoizedState,N!==null&&(N.rendering=null,N.tail=null,N.lastEffect=null),U(E2,E2.current),C)break;return null;case 22:case 23:return y.lanes=0,fa(d,y,x);case 24:B6(y,V2,d.memoizedState.cache)}return Q6(d,y,x)}function Yd(d,y,x){if(d!==null)if(d.memoizedProps!==y.pendingProps)Jt=!0;else{if(!Qu(d,x)&&(y.flags&128)===0)return Jt=!1,Ky(d,y,x);Jt=(d.flags&131072)!==0}else Jt=!1,$t&&(y.flags&1048576)!==0&&S1(y,al,y.index);switch(y.lanes=0,y.tag){case 16:e:{d=y.pendingProps;var C=y.elementType,N=C._init;if(C=N(C._payload),y.type=C,typeof C=="function")D9(C)?(d=cn(C,d),y.tag=1,y=Gd(null,y,C,d,x)):(y.tag=0,y=su(null,y,C,d,x));else{if(C!=null){if(N=C.$$typeof,N===O){y.tag=11,y=$d(null,y,C,d,x);break e}else if(N===V){y.tag=14,y=Wy(null,y,C,d,x);break e}}throw y=Z(C)||C,Error(l(306,y,""))}}return y;case 0:return su(d,y,y.type,y.pendingProps,x);case 1:return C=y.type,N=cn(C,y.pendingProps),Gd(d,y,C,N,x);case 3:e:{if(fe(y,y.stateNode.containerInfo),d===null)throw Error(l(387));C=y.pendingProps;var P=y.memoizedState;N=P.element,z9(d,y),Co(y,C,null,x);var X=y.memoizedState;if(C=X.cache,B6(y,V2,C),C!==P.cache&&P9(y,[V2],x,!0),pl(),C=X.element,P.isDehydrated)if(P={element:C,isDehydrated:!1,cache:X.cache},y.updateQueue.baseState=P,y.memoizedState=P,y.flags&256){y=uu(d,y,C,x);break e}else if(C!==N){N=N4(Error(l(424)),y),xo(N),y=uu(d,y,C,x);break e}else{switch(d=y.stateNode.containerInfo,d.nodeType){case 9:d=d.body;break;default:d=d.nodeName==="HTML"?d.ownerDocument.body:d}for(B1=y6(d.firstChild),y2=y,$t=!0,K5=null,B3=!0,x=Nd(y,null,C,x),y.child=x;x;)x.flags=x.flags&-3|4096,x=x.sibling}else{if(Lo(),C===N){y=Q6(d,y,x);break e}J2(d,y,C,x)}y=y.child}return y;case 26:return or(d,y),d===null?(x=ju(y.type,null,y.pendingProps,null))?y.memoizedState=x:$t||(x=y.type,d=y.pendingProps,C=r7(he.current).createElement(x),C[$1]=y,C[L3]=d,we(C,x,d),H2(C),y.stateNode=C):y.memoizedState=ju(y.type,d.memoizedProps,y.pendingProps,d.memoizedState),null;case 27:return Ee(y),d===null&&$t&&(C=y.stateNode=h3(y.type,y.pendingProps,he.current),y2=y,B3=!0,N=B1,d3(y.type)?(Sh=N,B1=y6(C.firstChild)):B1=N),J2(d,y,y.pendingProps.children,x),or(d,y),d===null&&(y.flags|=4194304),y.child;case 5:return d===null&&$t&&((N=C=B1)&&(C=bh(C,y.type,y.pendingProps,B3),C!==null?(y.stateNode=C,y2=y,B1=y6(C.firstChild),B3=!1,N=!0):N=!1),N||a6(y)),Ee(y),N=y.type,P=y.pendingProps,X=d!==null?d.memoizedProps:null,C=P.children,La(N,P)?C=null:X!==null&&La(N,X)&&(y.flags|=32),y.memoizedState!==null&&(N=U9(d,y,jy,null,null,x),p3._currentValue=N),or(d,y),J2(d,y,C,x),y.child;case 6:return d===null&&$t&&((d=x=B1)&&(x=i7(x,y.pendingProps,B3),x!==null?(y.stateNode=x,y2=y,B1=null,d=!0):d=!1),d||a6(y)),null;case 13:return Yy(d,y,x);case 4:return fe(y,y.stateNode.containerInfo),C=y.pendingProps,d===null?y.child=K2(y,null,C,x):J2(d,y,C,x),y.child;case 11:return $d(d,y,y.type,y.pendingProps,x);case 7:return J2(d,y,y.pendingProps,x),y.child;case 8:return J2(d,y,y.pendingProps.children,x),y.child;case 12:return J2(d,y,y.pendingProps.children,x),y.child;case 10:return C=y.pendingProps,B6(y,y.type,C.value),J2(d,y,C.children,x),y.child;case 9:return N=y.type._context,C=y.pendingProps.children,t0(y),N=Q3(N),C=C(N),y.flags|=1,J2(d,y,C,x),y.child;case 14:return Wy(d,y,y.type,y.pendingProps,x);case 15:return ar(d,y,y.type,y.pendingProps,x);case 19:return Wd(d,y,x);case 31:return C=y.pendingProps,x=y.mode,C={mode:C.mode,children:C.children},d===null?(x=Dl(C,x),x.ref=y.ref,y.child=x,x.return=y,y=x):(x=n6(d.child,C),x.ref=y.ref,y.child=x,x.return=y,y=x),y;case 22:return fa(d,y,x);case 24:return t0(y),C=Q3(V2),d===null?(N=So(),N===null&&(N=j1,P=ud(),N.pooledCache=P,P.refCount++,P!==null&&(N.pooledCacheLanes|=x),N=P),y.memoizedState={parent:C,cache:N},dl(y),B6(y,V2,N)):((d.lanes&x)!==0&&(z9(d,y),Co(y,null,null,x),pl()),N=d.memoizedState,P=y.memoizedState,N.parent!==C?(N={parent:C,cache:C},y.memoizedState=N,y.lanes===0&&(y.memoizedState=y.updateQueue.baseState=N),B6(y,V2,C)):(C=P.cache,B6(y,V2,C),C!==N.cache&&P9(y,[V2],x,!0))),J2(d,y,y.pendingProps.children,x),y.child;case 29:throw y.pendingProps}throw Error(l(156,y.tag))}function lr(d){d.flags|=4}function Kd(d,y){if(y.type!=="stylesheet"||(y.state.loading&4)!==0)d.flags&=-16777217;else if(d.flags|=16777216,!Oh(y)){if(y=D2.current,y!==null&&((T1&4194048)===T1?c6!==null:(T1&62914560)!==T1&&(T1&536870912)===0||y!==c6))throw Oo=I9,fl;d.flags|=8192}}function l0(d,y){y!==null&&(d.flags|=4),d.flags&16384&&(y=d.tag!==22?We():536870912,d.lanes|=y,Zo|=y)}function zo(d,y){if(!$t)switch(d.tailMode){case"hidden":y=d.tail;for(var x=null;y!==null;)y.alternate!==null&&(x=y),y=y.sibling;x===null?d.tail=null:x.sibling=null;break;case"collapsed":x=d.tail;for(var C=null;x!==null;)x.alternate!==null&&(C=x),x=x.sibling;C===null?y||d.tail===null?d.tail=null:d.tail.sibling=null:C.sibling=null}}function u2(d){var y=d.alternate!==null&&d.alternate.child===d.child,x=0,C=0;if(y)for(var N=d.child;N!==null;)x|=N.lanes|N.childLanes,C|=N.subtreeFlags&65011712,C|=N.flags&65011712,N.return=d,N=N.sibling;else for(N=d.child;N!==null;)x|=N.lanes|N.childLanes,C|=N.subtreeFlags,C|=N.flags,N.return=d,N=N.sibling;return d.subtreeFlags|=C,d.childLanes=x,y}function P1(d,y,x){var C=y.pendingProps;switch(ra(y),y.tag){case 31:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return u2(y),null;case 1:return u2(y),null;case 3:return x=y.stateNode,C=null,d!==null&&(C=d.memoizedState.cache),y.memoizedState.cache!==C&&(y.flags|=2048),P6(V2),Se(),x.pendingContext&&(x.context=x.pendingContext,x.pendingContext=null),(d===null||d.child===null)&&(vo(y)?lr(y):d===null||d.memoizedState.isDehydrated&&(y.flags&256)===0||(y.flags|=1024,ld())),u2(y),null;case 26:return x=y.memoizedState,d===null?(lr(y),x!==null?(u2(y),Kd(y,x)):(u2(y),y.flags&=-16777217)):x?x!==d.memoizedState?(lr(y),u2(y),Kd(y,x)):(u2(y),y.flags&=-16777217):(d.memoizedProps!==C&&lr(y),u2(y),y.flags&=-16777217),null;case 27:_e(y),x=he.current;var N=y.type;if(d!==null&&y.stateNode!=null)d.memoizedProps!==C&&lr(y);else{if(!C){if(y.stateNode===null)throw Error(l(166));return u2(y),null}d=de.current,vo(y)?k9(y):(d=h3(N,C,x),y.stateNode=d,lr(y))}return u2(y),null;case 5:if(_e(y),x=y.type,d!==null&&y.stateNode!=null)d.memoizedProps!==C&&lr(y);else{if(!C){if(y.stateNode===null)throw Error(l(166));return u2(y),null}if(d=de.current,vo(y))k9(y);else{switch(N=r7(he.current),d){case 1:d=N.createElementNS("http://www.w3.org/2000/svg",x);break;case 2:d=N.createElementNS("http://www.w3.org/1998/Math/MathML",x);break;default:switch(x){case"svg":d=N.createElementNS("http://www.w3.org/2000/svg",x);break;case"math":d=N.createElementNS("http://www.w3.org/1998/Math/MathML",x);break;case"script":d=N.createElement("div"),d.innerHTML="<script><\/script>",d=d.removeChild(d.firstChild);break;case"select":d=typeof C.is=="string"?N.createElement("select",{is:C.is}):N.createElement("select"),C.multiple?d.multiple=!0:C.size&&(d.size=C.size);break;default:d=typeof C.is=="string"?N.createElement(x,{is:C.is}):N.createElement(x)}}d[$1]=y,d[L3]=C;e:for(N=y.child;N!==null;){if(N.tag===5||N.tag===6)d.appendChild(N.stateNode);else if(N.tag!==4&&N.tag!==27&&N.child!==null){N.child.return=N,N=N.child;continue}if(N===y)break e;for(;N.sibling===null;){if(N.return===null||N.return===y)break e;N=N.return}N.sibling.return=N.return,N=N.sibling}y.stateNode=d;e:switch(we(d,x,C),x){case"button":case"input":case"select":case"textarea":d=!!C.autoFocus;break e;case"img":d=!0;break e;default:d=!1}d&&lr(y)}}return u2(y),y.flags&=-16777217,null;case 6:if(d&&y.stateNode!=null)d.memoizedProps!==C&&lr(y);else{if(typeof C!="string"&&y.stateNode===null)throw Error(l(166));if(d=he.current,vo(y)){if(d=y.stateNode,x=y.memoizedProps,C=null,N=y2,N!==null)switch(N.tag){case 27:case 5:C=N.memoizedProps}d[$1]=y,d=!!(d.nodeValue===x||C!==null&&C.suppressHydrationWarning===!0||yg(d.nodeValue,x)),d||a6(y)}else d=r7(d).createTextNode(C),d[$1]=y,y.stateNode=d}return u2(y),null;case 13:if(C=y.memoizedState,d===null||d.memoizedState!==null&&d.memoizedState.dehydrated!==null){if(N=vo(y),C!==null&&C.dehydrated!==null){if(d===null){if(!N)throw Error(l(318));if(N=y.memoizedState,N=N!==null?N.dehydrated:null,!N)throw Error(l(317));N[$1]=y}else Lo(),(y.flags&128)===0&&(y.memoizedState=null),y.flags|=4;u2(y),N=!1}else N=ld(),d!==null&&d.memoizedState!==null&&(d.memoizedState.hydrationErrors=N),N=!0;if(!N)return y.flags&256?(T6(y),y):(T6(y),null)}if(T6(y),(y.flags&128)!==0)return y.lanes=x,y;if(x=C!==null,d=d!==null&&d.memoizedState!==null,x){C=y.child,N=null,C.alternate!==null&&C.alternate.memoizedState!==null&&C.alternate.memoizedState.cachePool!==null&&(N=C.alternate.memoizedState.cachePool.pool);var P=null;C.memoizedState!==null&&C.memoizedState.cachePool!==null&&(P=C.memoizedState.cachePool.pool),P!==N&&(C.flags|=2048)}return x!==d&&x&&(y.child.flags|=8192),l0(y,y.updateQueue),u2(y),null;case 4:return Se(),d===null&&ql(y.stateNode.containerInfo),u2(y),null;case 10:return P6(y.type),u2(y),null;case 19:if(ee(E2),N=y.memoizedState,N===null)return u2(y),null;if(C=(y.flags&128)!==0,P=N.rendering,P===null)if(C)zo(N,!1);else{if(L2!==0||d!==null&&(d.flags&128)!==0)for(d=y.child;d!==null;){if(P=P4(d),P!==null){for(y.flags|=128,zo(N,!1),d=P.updateQueue,y.updateQueue=d,l0(y,d),y.subtreeFlags=0,d=x,x=y.child;x!==null;)R9(x,d),x=x.sibling;return U(E2,E2.current&1|2),y.child}d=d.sibling}N.tail!==null&&ot()>mu&&(y.flags|=128,C=!0,zo(N,!1),y.lanes=4194304)}else{if(!C)if(d=P4(P),d!==null){if(y.flags|=128,C=!0,d=d.updateQueue,y.updateQueue=d,l0(y,d),zo(N,!0),N.tail===null&&N.tailMode==="hidden"&&!P.alternate&&!$t)return u2(y),null}else 2*ot()-N.renderingStartTime>mu&&x!==536870912&&(y.flags|=128,C=!0,zo(N,!1),y.lanes=4194304);N.isBackwards?(P.sibling=y.child,y.child=P):(d=N.last,d!==null?d.sibling=P:y.child=P,N.last=P)}return N.tail!==null?(y=N.tail,N.rendering=y,N.tail=y.sibling,N.renderingStartTime=ot(),y.sibling=null,d=E2.current,U(E2,C?d&1|2:d&1),y):(u2(y),null);case 22:case 23:return T6(y),Vo(),C=y.memoizedState!==null,d!==null?d.memoizedState!==null!==C&&(y.flags|=8192):C&&(y.flags|=8192),C?(x&536870912)!==0&&(y.flags&128)===0&&(u2(y),y.subtreeFlags&6&&(y.flags|=8192)):u2(y),x=y.updateQueue,x!==null&&l0(y,x.retryQueue),x=null,d!==null&&d.memoizedState!==null&&d.memoizedState.cachePool!==null&&(x=d.memoizedState.cachePool.pool),C=null,y.memoizedState!==null&&y.memoizedState.cachePool!==null&&(C=y.memoizedState.cachePool.pool),C!==x&&(y.flags|=2048),d!==null&&ee(er),null;case 24:return x=null,d!==null&&(x=d.memoizedState.cache),y.memoizedState.cache!==x&&(y.flags|=2048),P6(V2),u2(y),null;case 25:return null;case 30:return null}throw Error(l(156,y.tag))}function Jd(d,y){switch(ra(y),y.tag){case 1:return d=y.flags,d&65536?(y.flags=d&-65537|128,y):null;case 3:return P6(V2),Se(),d=y.flags,(d&65536)!==0&&(d&128)===0?(y.flags=d&-65537|128,y):null;case 26:case 27:case 5:return _e(y),null;case 13:if(T6(y),d=y.memoizedState,d!==null&&d.dehydrated!==null){if(y.alternate===null)throw Error(l(340));Lo()}return d=y.flags,d&65536?(y.flags=d&-65537|128,y):null;case 19:return ee(E2),null;case 4:return Se(),null;case 10:return P6(y.type),null;case 22:case 23:return T6(y),Vo(),d!==null&&ee(er),d=y.flags,d&65536?(y.flags=d&-65537|128,y):null;case 24:return P6(V2),null;case 25:return null;default:return null}}function Jy(d,y){switch(ra(y),y.tag){case 3:P6(V2),Se();break;case 26:case 27:case 5:_e(y);break;case 4:Se();break;case 13:T6(y);break;case 19:ee(E2);break;case 10:P6(y.type);break;case 22:case 23:T6(y),Vo(),d!==null&&ee(er);break;case 24:P6(V2)}}function qo(d,y){try{var x=y.updateQueue,C=x!==null?x.lastEffect:null;if(C!==null){var N=C.next;x=N;do{if((x.tag&d)===d){C=void 0;var P=x.create,X=x.inst;C=P(),X.destroy=C}x=x.next}while(x!==N)}}catch(re){I1(y,y.return,re)}}function s0(d,y,x){try{var C=y.updateQueue,N=C!==null?C.lastEffect:null;if(N!==null){var P=N.next;C=P;do{if((C.tag&d)===d){var X=C.inst,re=X.destroy;if(re!==void 0){X.destroy=void 0,N=y;var ce=x,Me=re;try{Me()}catch(Fe){I1(N,ce,Fe)}}}C=C.next}while(C!==P)}}catch(Fe){I1(y,y.return,Fe)}}function eg(d){var y=d.updateQueue;if(y!==null){var x=d.stateNode;try{q9(y,x)}catch(C){I1(d,d.return,C)}}}function fu(d,y,x){x.props=cn(d.type,d.memoizedProps),x.state=d.memoizedState;try{x.componentWillUnmount()}catch(C){I1(d,y,C)}}function $o(d,y){try{var x=d.ref;if(x!==null){switch(d.tag){case 26:case 27:case 5:var C=d.stateNode;break;case 30:C=d.stateNode;break;default:C=d.stateNode}typeof x=="function"?d.refCleanup=x(C):x.current=C}}catch(N){I1(d,y,N)}}function f6(d,y){var x=d.ref,C=d.refCleanup;if(x!==null)if(typeof C=="function")try{C()}catch(N){I1(d,y,N)}finally{d.refCleanup=null,d=d.alternate,d!=null&&(d.refCleanup=null)}else if(typeof x=="function")try{x(null)}catch(N){I1(d,y,N)}else x.current=null}function eh(d){var y=d.type,x=d.memoizedProps,C=d.stateNode;try{e:switch(y){case"button":case"input":case"select":case"textarea":x.autoFocus&&C.focus();break e;case"img":x.src?C.src=x.src:x.srcSet&&(C.srcset=x.srcSet)}}catch(N){I1(d,d.return,N)}}function ha(d,y,x){try{var C=d.stateNode;b1(C,d.type,x,y),C[L3]=y}catch(N){I1(d,d.return,N)}}function tg(d){return d.tag===5||d.tag===3||d.tag===26||d.tag===27&&d3(d.type)||d.tag===4}function th(d){e:for(;;){for(;d.sibling===null;){if(d.return===null||tg(d.return))return null;d=d.return}for(d.sibling.return=d.return,d=d.sibling;d.tag!==5&&d.tag!==6&&d.tag!==18;){if(d.tag===27&&d3(d.type)||d.flags&2||d.child===null||d.tag===4)continue e;d.child.return=d,d=d.child}if(!(d.flags&2))return d.stateNode}}function Tn(d,y,x){var C=d.tag;if(C===5||C===6)d=d.stateNode,y?(x.nodeType===9?x.body:x.nodeName==="HTML"?x.ownerDocument.body:x).insertBefore(d,y):(y=x.nodeType===9?x.body:x.nodeName==="HTML"?x.ownerDocument.body:x,y.appendChild(d),x=x._reactRootContainer,x!=null||y.onclick!==null||(y.onclick=Ul));else if(C!==4&&(C===27&&d3(d.type)&&(x=d.stateNode,y=null),d=d.child,d!==null))for(Tn(d,y,x),d=d.sibling;d!==null;)Tn(d,y,x),d=d.sibling}function u0(d,y,x){var C=d.tag;if(C===5||C===6)d=d.stateNode,y?x.insertBefore(d,y):x.appendChild(d);else if(C!==4&&(C===27&&d3(d.type)&&(x=d.stateNode),d=d.child,d!==null))for(u0(d,y,x),d=d.sibling;d!==null;)u0(d,y,x),d=d.sibling}function ng(d){var y=d.stateNode,x=d.memoizedProps;try{for(var C=d.type,N=y.attributes;N.length;)y.removeAttributeNode(N[0]);we(y,C,x),y[$1]=d,y[L3]=x}catch(P){I1(d,d.return,P)}}var d6=!1,v2=!1,du=!1,nh=typeof WeakSet=="function"?WeakSet:Set,R2=null;function rg(d,y){if(d=d.containerInfo,Lh=es,d=nl(d),O9(d)){if("selectionStart"in d)var x={start:d.selectionStart,end:d.selectionEnd};else e:{x=(x=d.ownerDocument)&&x.defaultView||window;var C=x.getSelection&&x.getSelection();if(C&&C.rangeCount!==0){x=C.anchorNode;var N=C.anchorOffset,P=C.focusNode;C=C.focusOffset;try{x.nodeType,P.nodeType}catch{x=null;break e}var X=0,re=-1,ce=-1,Me=0,Fe=0,$e=d,Oe=null;t:for(;;){for(var Re;$e!==x||N!==0&&$e.nodeType!==3||(re=X+N),$e!==P||C!==0&&$e.nodeType!==3||(ce=X+C),$e.nodeType===3&&(X+=$e.nodeValue.length),(Re=$e.firstChild)!==null;)Oe=$e,$e=Re;for(;;){if($e===d)break t;if(Oe===x&&++Me===N&&(re=X),Oe===P&&++Fe===C&&(ce=X),(Re=$e.nextSibling)!==null)break;$e=Oe,Oe=$e.parentNode}$e=Re}x=re===-1||ce===-1?null:{start:re,end:ce}}else x=null}x=x||{start:0,end:0}}else x=null;for(Gl={focusedElem:d,selectionRange:x},es=!1,R2=y;R2!==null;)if(y=R2,d=y.child,(y.subtreeFlags&1024)!==0&&d!==null)d.return=y,R2=d;else for(;R2!==null;){switch(y=R2,P=y.alternate,d=y.flags,y.tag){case 0:break;case 11:case 15:break;case 1:if((d&1024)!==0&&P!==null){d=void 0,x=y,N=P.memoizedProps,P=P.memoizedState,C=x.stateNode;try{var Mt=cn(x.type,N,x.elementType===x.type);d=C.getSnapshotBeforeUpdate(Mt,P),C.__reactInternalSnapshotBeforeUpdate=d}catch(Lt){I1(x,x.return,Lt)}}break;case 3:if((d&1024)!==0){if(d=y.stateNode.containerInfo,x=d.nodeType,x===9)Zl(d);else if(x===1)switch(d.nodeName){case"HEAD":case"HTML":case"BODY":Zl(d);break;default:d.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((d&1024)!==0)throw Error(l(163))}if(d=y.sibling,d!==null){d.return=y.return,R2=d;break}R2=y.return}}function hu(d,y,x){var C=x.flags;switch(x.tag){case 0:case 11:case 15:sr(d,x),C&4&&qo(5,x);break;case 1:if(sr(d,x),C&4)if(d=x.stateNode,y===null)try{d.componentDidMount()}catch(X){I1(x,x.return,X)}else{var N=cn(x.type,y.memoizedProps);y=y.memoizedState;try{d.componentDidUpdate(N,y,d.__reactInternalSnapshotBeforeUpdate)}catch(X){I1(x,x.return,X)}}C&64&&eg(x),C&512&&$o(x,x.return);break;case 3:if(sr(d,x),C&64&&(d=x.updateQueue,d!==null)){if(y=null,x.child!==null)switch(x.child.tag){case 27:case 5:y=x.child.stateNode;break;case 1:y=x.child.stateNode}try{q9(d,y)}catch(X){I1(x,x.return,X)}}break;case 27:y===null&&C&4&&ng(x);case 26:case 5:sr(d,x),y===null&&C&4&&eh(x),C&512&&$o(x,x.return);break;case 12:sr(d,x);break;case 13:sr(d,x),C&4&&e1(d,x),C&64&&(d=x.memoizedState,d!==null&&(d=d.dehydrated,d!==null&&(x=hg.bind(null,x),Eh(d,x))));break;case 22:if(C=x.memoizedState!==null||d6,!C){y=y!==null&&y.memoizedState!==null||v2,N=d6;var P=v2;d6=C,(v2=y)&&!P?i2(d,x,(x.subtreeFlags&8772)!==0):sr(d,x),d6=N,v2=P}break;case 30:break;default:sr(d,x)}}function rh(d){var y=d.alternate;y!==null&&(d.alternate=null,rh(y)),d.child=null,d.deletions=null,d.sibling=null,d.tag===5&&(y=d.stateNode,y!==null&&pt(y)),d.stateNode=null,d.return=null,d.dependencies=null,d.memoizedProps=null,d.memoizedState=null,d.pendingProps=null,d.stateNode=null,d.updateQueue=null}var r2=null,m4=!1;function Qn(d,y,x){for(x=x.child;x!==null;)ih(d,y,x),x=x.sibling}function ih(d,y,x){if(De&&typeof De.onCommitFiberUnmount=="function")try{De.onCommitFiberUnmount(me,x)}catch{}switch(x.tag){case 26:v2||f6(x,y),Qn(d,y,x),x.memoizedState?x.memoizedState.count--:x.stateNode&&(x=x.stateNode,x.parentNode.removeChild(x));break;case 27:v2||f6(x,y);var C=r2,N=m4;d3(x.type)&&(r2=x.stateNode,m4=!1),Qn(d,y,x),lt(x.stateNode),r2=C,m4=N;break;case 5:v2||f6(x,y);case 6:if(C=r2,N=m4,r2=null,Qn(d,y,x),r2=C,m4=N,r2!==null)if(m4)try{(r2.nodeType===9?r2.body:r2.nodeName==="HTML"?r2.ownerDocument.body:r2).removeChild(x.stateNode)}catch(P){I1(x,y,P)}else try{r2.removeChild(x.stateNode)}catch(P){I1(x,y,P)}break;case 18:r2!==null&&(m4?(d=r2,vg(d.nodeType===9?d.body:d.nodeName==="HTML"?d.ownerDocument.body:d,x.stateNode),c7(d)):vg(r2,x.stateNode));break;case 4:C=r2,N=m4,r2=x.stateNode.containerInfo,m4=!0,Qn(d,y,x),r2=C,m4=N;break;case 0:case 11:case 14:case 15:v2||s0(2,x,y),v2||s0(4,x,y),Qn(d,y,x);break;case 1:v2||(f6(x,y),C=x.stateNode,typeof C.componentWillUnmount=="function"&&fu(x,y,C)),Qn(d,y,x);break;case 21:Qn(d,y,x);break;case 22:v2=(C=v2)||x.memoizedState!==null,Qn(d,y,x),v2=C;break;default:Qn(d,y,x)}}function e1(d,y){if(y.memoizedState===null&&(d=y.alternate,d!==null&&(d=d.memoizedState,d!==null&&(d=d.dehydrated,d!==null))))try{c7(d)}catch(x){I1(y,y.return,x)}}function ah(d){switch(d.tag){case 13:case 19:var y=d.stateNode;return y===null&&(y=d.stateNode=new nh),y;case 22:return d=d.stateNode,y=d._retryCache,y===null&&(y=d._retryCache=new nh),y;default:throw Error(l(435,d.tag))}}function Rl(d,y){var x=ah(d);y.forEach(function(C){var N=Nb.bind(null,d,C);x.has(C)||(x.add(C),C.then(N,N))})}function y4(d,y){var x=y.deletions;if(x!==null)for(var C=0;C<x.length;C++){var N=x[C],P=d,X=y,re=X;e:for(;re!==null;){switch(re.tag){case 27:if(d3(re.type)){r2=re.stateNode,m4=!1;break e}break;case 5:r2=re.stateNode,m4=!1;break e;case 3:case 4:r2=re.stateNode.containerInfo,m4=!0;break e}re=re.return}if(r2===null)throw Error(l(160));ih(P,X,N),r2=null,m4=!1,P=N.alternate,P!==null&&(P.return=null),N.return=null}if(y.subtreeFlags&13878)for(y=y.child;y!==null;)Uo(y,d),y=y.sibling}var I4=null;function Uo(d,y){var x=d.alternate,C=d.flags;switch(d.tag){case 0:case 11:case 14:case 15:y4(y,d),E3(d),C&4&&(s0(3,d,d.return),qo(3,d),s0(5,d,d.return));break;case 1:y4(y,d),E3(d),C&512&&(v2||x===null||f6(x,x.return)),C&64&&d6&&(d=d.updateQueue,d!==null&&(C=d.callbacks,C!==null&&(x=d.shared.hiddenCallbacks,d.shared.hiddenCallbacks=x===null?C:x.concat(C))));break;case 26:var N=I4;if(y4(y,d),E3(d),C&512&&(v2||x===null||f6(x,x.return)),C&4){var P=x!==null?x.memoizedState:null;if(C=d.memoizedState,x===null)if(C===null)if(d.stateNode===null){e:{C=d.type,x=d.memoizedProps,N=N.ownerDocument||N;t:switch(C){case"title":P=N.getElementsByTagName("title")[0],(!P||P[F8]||P[$1]||P.namespaceURI==="http://www.w3.org/2000/svg"||P.hasAttribute("itemprop"))&&(P=N.createElement(C),N.head.insertBefore(P,N.querySelector("head > title"))),we(P,C,x),P[$1]=d,H2(P),C=P;break e;case"link":var X=o7("link","href",N).get(C+(x.href||""));if(X){for(var re=0;re<X.length;re++)if(P=X[re],P.getAttribute("href")===(x.href==null||x.href===""?null:x.href)&&P.getAttribute("rel")===(x.rel==null?null:x.rel)&&P.getAttribute("title")===(x.title==null?null:x.title)&&P.getAttribute("crossorigin")===(x.crossOrigin==null?null:x.crossOrigin)){X.splice(re,1);break t}}P=N.createElement(C),we(P,C,x),N.head.appendChild(P);break;case"meta":if(X=o7("meta","content",N).get(C+(x.content||""))){for(re=0;re<X.length;re++)if(P=X[re],P.getAttribute("content")===(x.content==null?null:""+x.content)&&P.getAttribute("name")===(x.name==null?null:x.name)&&P.getAttribute("property")===(x.property==null?null:x.property)&&P.getAttribute("http-equiv")===(x.httpEquiv==null?null:x.httpEquiv)&&P.getAttribute("charset")===(x.charSet==null?null:x.charSet)){X.splice(re,1);break t}}P=N.createElement(C),we(P,C,x),N.head.appendChild(P);break;default:throw Error(l(468,C))}P[$1]=d,H2(P),C=P}d.stateNode=C}else _h(N,d.type,d.stateNode);else d.stateNode=Iu(N,C,d.memoizedProps);else P!==C?(P===null?x.stateNode!==null&&(x=x.stateNode,x.parentNode.removeChild(x)):P.count--,C===null?_h(N,d.type,d.stateNode):Iu(N,C,d.memoizedProps)):C===null&&d.stateNode!==null&&ha(d,d.memoizedProps,x.memoizedProps)}break;case 27:y4(y,d),E3(d),C&512&&(v2||x===null||f6(x,x.return)),x!==null&&C&4&&ha(d,d.memoizedProps,x.memoizedProps);break;case 5:if(y4(y,d),E3(d),C&512&&(v2||x===null||f6(x,x.return)),d.flags&32){N=d.stateNode;try{Fi(N,"")}catch(Re){I1(d,d.return,Re)}}C&4&&d.stateNode!=null&&(N=d.memoizedProps,ha(d,N,x!==null?x.memoizedProps:N)),C&1024&&(du=!0);break;case 6:if(y4(y,d),E3(d),C&4){if(d.stateNode===null)throw Error(l(162));C=d.memoizedProps,x=d.stateNode;try{x.nodeValue=C}catch(Re){I1(d,d.return,Re)}}break;case 3:if(Yl=null,N=I4,I4=t3(y.containerInfo),y4(y,d),I4=N,E3(d),C&4&&x!==null&&x.memoizedState.isDehydrated)try{c7(y.containerInfo)}catch(Re){I1(d,d.return,Re)}du&&(du=!1,pa(d));break;case 4:C=I4,I4=t3(d.stateNode.containerInfo),y4(y,d),E3(d),I4=C;break;case 12:y4(y,d),E3(d);break;case 13:y4(y,d),E3(d),d.child.flags&8192&&d.memoizedState!==null!=(x!==null&&x.memoizedState!==null)&&(Th=ot()),C&4&&(C=d.updateQueue,C!==null&&(d.updateQueue=null,Rl(d,C)));break;case 22:N=d.memoizedState!==null;var ce=x!==null&&x.memoizedState!==null,Me=d6,Fe=v2;if(d6=Me||N,v2=Fe||ce,y4(y,d),v2=Fe,d6=Me,E3(d),C&8192)e:for(y=d.stateNode,y._visibility=N?y._visibility&-2:y._visibility|1,N&&(x===null||ce||d6||v2||ur(d)),x=null,y=d;;){if(y.tag===5||y.tag===26){if(x===null){ce=x=y;try{if(P=ce.stateNode,N)X=P.style,typeof X.setProperty=="function"?X.setProperty("display","none","important"):X.display="none";else{re=ce.stateNode;var $e=ce.memoizedProps.style,Oe=$e!=null&&$e.hasOwnProperty("display")?$e.display:null;re.style.display=Oe==null||typeof Oe=="boolean"?"":(""+Oe).trim()}}catch(Re){I1(ce,ce.return,Re)}}}else if(y.tag===6){if(x===null){ce=y;try{ce.stateNode.nodeValue=N?"":ce.memoizedProps}catch(Re){I1(ce,ce.return,Re)}}}else if((y.tag!==22&&y.tag!==23||y.memoizedState===null||y===d)&&y.child!==null){y.child.return=y,y=y.child;continue}if(y===d)break e;for(;y.sibling===null;){if(y.return===null||y.return===d)break e;x===y&&(x=null),y=y.return}x===y&&(x=null),y.sibling.return=y.return,y=y.sibling}C&4&&(C=d.updateQueue,C!==null&&(x=C.retryQueue,x!==null&&(C.retryQueue=null,Rl(d,x))));break;case 19:y4(y,d),E3(d),C&4&&(C=d.updateQueue,C!==null&&(d.updateQueue=null,Rl(d,C)));break;case 30:break;case 21:break;default:y4(y,d),E3(d)}}function E3(d){var y=d.flags;if(y&2){try{for(var x,C=d.return;C!==null;){if(tg(C)){x=C;break}C=C.return}if(x==null)throw Error(l(160));switch(x.tag){case 27:var N=x.stateNode,P=th(d);u0(d,P,N);break;case 5:var X=x.stateNode;x.flags&32&&(Fi(X,""),x.flags&=-33);var re=th(d);u0(d,re,X);break;case 3:case 4:var ce=x.stateNode.containerInfo,Me=th(d);Tn(d,Me,ce);break;default:throw Error(l(161))}}catch(Fe){I1(d,d.return,Fe)}d.flags&=-3}y&4096&&(d.flags&=-4097)}function pa(d){if(d.subtreeFlags&1024)for(d=d.child;d!==null;){var y=d;pa(y),y.tag===5&&y.flags&1024&&y.stateNode.reset(),d=d.sibling}}function sr(d,y){if(y.subtreeFlags&8772)for(y=y.child;y!==null;)hu(d,y.alternate,y),y=y.sibling}function ur(d){for(d=d.child;d!==null;){var y=d;switch(y.tag){case 0:case 11:case 14:case 15:s0(4,y,y.return),ur(y);break;case 1:f6(y,y.return);var x=y.stateNode;typeof x.componentWillUnmount=="function"&&fu(y,y.return,x),ur(y);break;case 27:lt(y.stateNode);case 26:case 5:f6(y,y.return),ur(y);break;case 22:y.memoizedState===null&&ur(y);break;case 30:ur(y);break;default:ur(y)}d=d.sibling}}function i2(d,y,x){for(x=x&&(y.subtreeFlags&8772)!==0,y=y.child;y!==null;){var C=y.alternate,N=d,P=y,X=P.flags;switch(P.tag){case 0:case 11:case 15:i2(N,P,x),qo(4,P);break;case 1:if(i2(N,P,x),C=P,N=C.stateNode,typeof N.componentDidMount=="function")try{N.componentDidMount()}catch(Me){I1(C,C.return,Me)}if(C=P,N=C.updateQueue,N!==null){var re=C.stateNode;try{var ce=N.shared.hiddenCallbacks;if(ce!==null)for(N.shared.hiddenCallbacks=null,N=0;N<ce.length;N++)wo(ce[N],re)}catch(Me){I1(C,C.return,Me)}}x&&X&64&&eg(P),$o(P,P.return);break;case 27:ng(P);case 26:case 5:i2(N,P,x),x&&C===null&&X&4&&eh(P),$o(P,P.return);break;case 12:i2(N,P,x);break;case 13:i2(N,P,x),x&&X&4&&e1(N,P);break;case 22:P.memoizedState===null&&i2(N,P,x),$o(P,P.return);break;case 30:break;default:i2(N,P,x)}y=y.sibling}}function oh(d,y){var x=null;d!==null&&d.memoizedState!==null&&d.memoizedState.cachePool!==null&&(x=d.memoizedState.cachePool.pool),d=null,y.memoizedState!==null&&y.memoizedState.cachePool!==null&&(d=y.memoizedState.cachePool.pool),d!==x&&(d!=null&&d.refCount++,x!=null&&n0(x))}function fn(d,y){d=null,y.alternate!==null&&(d=y.alternate.memoizedState.cache),y=y.memoizedState.cache,y!==d&&(y.refCount++,d!=null&&n0(d))}function h6(d,y,x,C){if(y.subtreeFlags&10256)for(y=y.child;y!==null;)cr(d,y,x,C),y=y.sibling}function cr(d,y,x,C){var N=y.flags;switch(y.tag){case 0:case 11:case 15:h6(d,y,x,C),N&2048&&qo(9,y);break;case 1:h6(d,y,x,C);break;case 3:h6(d,y,x,C),N&2048&&(d=null,y.alternate!==null&&(d=y.alternate.memoizedState.cache),y=y.memoizedState.cache,y!==d&&(y.refCount++,d!=null&&n0(d)));break;case 12:if(N&2048){h6(d,y,x,C),d=y.stateNode;try{var P=y.memoizedProps,X=P.id,re=P.onPostCommit;typeof re=="function"&&re(X,y.alternate===null?"mount":"update",d.passiveEffectDuration,-0)}catch(ce){I1(y,y.return,ce)}}else h6(d,y,x,C);break;case 13:h6(d,y,x,C);break;case 23:break;case 22:P=y.stateNode,X=y.alternate,y.memoizedState!==null?P._visibility&2?h6(d,y,x,C):c0(d,y):P._visibility&2?h6(d,y,x,C):(P._visibility|=2,ma(d,y,x,C,(y.subtreeFlags&10256)!==0)),N&2048&&oh(X,y);break;case 24:h6(d,y,x,C),N&2048&&fn(y.alternate,y);break;default:h6(d,y,x,C)}}function ma(d,y,x,C,N){for(N=N&&(y.subtreeFlags&10256)!==0,y=y.child;y!==null;){var P=d,X=y,re=x,ce=C,Me=X.flags;switch(X.tag){case 0:case 11:case 15:ma(P,X,re,ce,N),qo(8,X);break;case 23:break;case 22:var Fe=X.stateNode;X.memoizedState!==null?Fe._visibility&2?ma(P,X,re,ce,N):c0(P,X):(Fe._visibility|=2,ma(P,X,re,ce,N)),N&&Me&2048&&oh(X.alternate,X);break;case 24:ma(P,X,re,ce,N),N&&Me&2048&&fn(X.alternate,X);break;default:ma(P,X,re,ce,N)}y=y.sibling}}function c0(d,y){if(y.subtreeFlags&10256)for(y=y.child;y!==null;){var x=d,C=y,N=C.flags;switch(C.tag){case 22:c0(x,C),N&2048&&oh(C.alternate,C);break;case 24:c0(x,C),N&2048&&fn(C.alternate,C);break;default:c0(x,C)}y=y.sibling}}var y1=8192;function T0(d){if(d.subtreeFlags&y1)for(d=d.child;d!==null;)e3(d),d=d.sibling}function e3(d){switch(d.tag){case 26:T0(d),d.flags&y1&&d.memoizedState!==null&&bg(I4,d.memoizedState,d.memoizedProps);break;case 5:T0(d);break;case 3:case 4:var y=I4;I4=t3(d.stateNode.containerInfo),T0(d),I4=y;break;case 22:d.memoizedState===null&&(y=d.alternate,y!==null&&y.memoizedState!==null?(y=y1,y1=16777216,T0(d),y1=y):T0(d));break;default:T0(d)}}function ig(d){var y=d.alternate;if(y!==null&&(d=y.child,d!==null)){y.child=null;do y=d.sibling,d.sibling=null,d=y;while(d!==null)}}function Go(d){var y=d.deletions;if((d.flags&16)!==0){if(y!==null)for(var x=0;x<y.length;x++){var C=y[x];R2=C,F4(C,d)}ig(d)}if(d.subtreeFlags&10256)for(d=d.child;d!==null;)pu(d),d=d.sibling}function pu(d){switch(d.tag){case 0:case 11:case 15:Go(d),d.flags&2048&&s0(9,d,d.return);break;case 3:Go(d);break;case 12:Go(d);break;case 22:var y=d.stateNode;d.memoizedState!==null&&y._visibility&2&&(d.return===null||d.return.tag!==13)?(y._visibility&=-3,kl(d)):Go(d);break;default:Go(d)}}function kl(d){var y=d.deletions;if((d.flags&16)!==0){if(y!==null)for(var x=0;x<y.length;x++){var C=y[x];R2=C,F4(C,d)}ig(d)}for(d=d.child;d!==null;){switch(y=d,y.tag){case 0:case 11:case 15:s0(8,y,y.return),kl(y);break;case 22:x=y.stateNode,x._visibility&2&&(x._visibility&=-3,kl(y));break;default:kl(y)}d=d.sibling}}function F4(d,y){for(;R2!==null;){var x=R2;switch(x.tag){case 0:case 11:case 15:s0(8,x,y);break;case 23:case 22:if(x.memoizedState!==null&&x.memoizedState.cachePool!==null){var C=x.memoizedState.cachePool.pool;C!=null&&C.refCount++}break;case 24:n0(x.memoizedState.cache)}if(C=x.child,C!==null)C.return=x,R2=C;else e:for(x=d;R2!==null;){C=R2;var N=C.sibling,P=C.return;if(rh(C),C===x){R2=null;break e}if(N!==null){N.return=P,R2=N;break e}R2=P}}}var ag={getCacheForType:function(d){var y=Q3(V2),x=y.data.get(d);return x===void 0&&(x=d(),y.data.set(d,x)),x}},lh=typeof WeakMap=="function"?WeakMap:Map,M1=0,j1=null,t1=null,T1=0,g1=0,g4=null,Tr=!1,Q0=!1,sh=!1,Qr=0,L2=0,f0=0,d0=0,uh=0,$2=0,Zo=0,Nl=null,j3=null,ch=!1,Th=0,mu=1/0,yu=null,z6=null,f3=0,h0=null,p0=null,Xo=0,v4=0,gu=null,Qh=null,Wo=0,vu=null;function z4(){if((M1&2)!==0&&T1!==0)return T1&-T1;if(W.T!==null){var d=r0;return d!==0?d:Ou()}return D6()}function og(){$2===0&&($2=(T1&536870912)===0||$t?Le():536870912);var d=D2.current;return d!==null&&(d.flags|=32),$2}function L4(d,y,x){(d===j1&&(g1===2||g1===9)||d.cancelPendingCommit!==null)&&(p6(d,0),fr(d,T1,$2,!1)),nt(d,x),((M1&2)===0||d!==j1)&&(d===j1&&((M1&2)===0&&(d0|=x),L2===4&&fr(d,T1,$2,!1)),m6(d))}function lg(d,y,x){if((M1&6)!==0)throw Error(l(327));var C=!x&&(y&124)===0&&(y&d.expiredLanes)===0||xt(d,y),N=C?xu(d,y):ya(d,y,!0),P=C;do{if(N===0){Q0&&!C&&fr(d,y,0,!1);break}else{if(x=d.current.alternate,P&&!Lu(x)){N=ya(d,y,!1),P=!1;continue}if(N===2){if(P=y,d.errorRecoveryDisabledLanes&P)var X=0;else X=d.pendingLanes&-536870913,X=X!==0?X:X&536870912?536870912:0;if(X!==0){y=X;e:{var re=d;N=Nl;var ce=re.current.memoizedState.isDehydrated;if(ce&&(p6(re,X).flags|=256),X=ya(re,X,!1),X!==2){if(sh&&!ce){re.errorRecoveryDisabledLanes|=P,d0|=P,N=4;break e}P=j3,j3=N,P!==null&&(j3===null?j3=P:j3.push.apply(j3,P))}N=X}if(P=!1,N!==2)continue}}if(N===1){p6(d,0),fr(d,y,0,!0);break}e:{switch(C=d,P=N,P){case 0:case 1:throw Error(l(345));case 4:if((y&4194048)!==y)break;case 6:fr(C,y,$2,!Tr);break e;case 2:j3=null;break;case 3:case 5:break;default:throw Error(l(329))}if((y&62914560)===y&&(N=Th+300-ot(),10<N)){if(fr(C,y,$2,!Tr),it(C,0,!0)!==0)break e;C.timeoutHandle=U6(Yo.bind(null,C,x,j3,yu,ch,y,$2,d0,Zo,Tr,P,2,-0,0),N);break e}Yo(C,x,j3,yu,ch,y,$2,d0,Zo,Tr,P,0,-0,0)}}break}while(!0);m6(d)}function Yo(d,y,x,C,N,P,X,re,ce,Me,Fe,$e,Oe,Re){if(d.timeoutHandle=-1,$e=y.subtreeFlags,($e&8192||($e&16785408)===16785408)&&(l7={stylesheets:null,count:0,unsuspend:xg},e3(y),$e=Hg(),$e!==null)){d.cancelPendingCommit=$e(cg.bind(null,d,y,P,x,C,N,X,re,ce,Fe,1,Oe,Re)),fr(d,P,X,!Me);return}cg(d,y,P,x,C,N,X,re,ce)}function Lu(d){for(var y=d;;){var x=y.tag;if((x===0||x===11||x===15)&&y.flags&16384&&(x=y.updateQueue,x!==null&&(x=x.stores,x!==null)))for(var C=0;C<x.length;C++){var N=x[C],P=N.getSnapshot;N=N.value;try{if(!N3(P(),N))return!1}catch{return!1}}if(x=y.child,y.subtreeFlags&16384&&x!==null)x.return=y,y=x;else{if(y===d)break;for(;y.sibling===null;){if(y.return===null||y.return===d)return!0;y=y.return}y.sibling.return=y.return,y=y.sibling}}return!0}function fr(d,y,x,C){y&=~uh,y&=~d0,d.suspendedLanes|=y,d.pingedLanes&=~y,C&&(d.warmLanes|=y),C=d.expirationTimes;for(var N=y;0<N;){var P=31-et(N),X=1<<P;C[P]=-1,N&=~X}x!==0&&_t(d,x,y)}function Bl(){return(M1&6)===0?(dr(0),!1):!0}function Ko(){if(t1!==null){if(g1===0)var d=t1.return;else d=t1,o6=J5=null,Do(d),d4=null,Bo=0,d=t1;for(;d!==null;)Jy(d.alternate,d),d=d.return;t1=null}}function p6(d,y){var x=d.timeoutHandle;x!==-1&&(d.timeoutHandle=-1,xh(x)),x=d.cancelPendingCommit,x!==null&&(d.cancelPendingCommit=null,x()),Ko(),j1=d,t1=x=n6(d.current,null),T1=y,g1=0,g4=null,Tr=!1,Q0=xt(d,y),sh=!1,Zo=$2=uh=d0=f0=L2=0,j3=Nl=null,ch=!1,(y&8)!==0&&(y|=y&32);var C=d.entangledLanes;if(C!==0)for(d=d.entanglements,C&=y;0<C;){var N=31-et(C),P=1<<N;y|=d[N],C&=~P}return Qr=y,e6(),x}function Jo(d,y){Nt=null,W.H=_l,y===ia||y===Ao?(y=F9(),g1=3):y===fl?(y=F9(),g1=4):g1=y===qd?8:y!==null&&typeof y=="object"&&typeof y.then=="function"?6:1,g4=y,t1===null&&(L2=1,Qa(d,N4(y,d.current)))}function fh(){var d=W.H;return W.H=_l,d===null?_l:d}function sg(){var d=W.A;return W.A=ag,d}function m0(){L2=4,Tr||(T1&4194048)!==T1&&D2.current!==null||(Q0=!0),(f0&134217727)===0&&(d0&134217727)===0||j1===null||fr(j1,T1,$2,!1)}function ya(d,y,x){var C=M1;M1|=2;var N=fh(),P=sg();(j1!==d||T1!==y)&&(yu=null,p6(d,y)),y=!1;var X=L2;e:do try{if(g1!==0&&t1!==null){var re=t1,ce=g4;switch(g1){case 8:Ko(),X=6;break e;case 3:case 2:case 9:case 6:D2.current===null&&(y=!0);var Me=g1;if(g1=0,g4=null,ga(d,re,ce,Me),x&&Q0){X=0;break e}break;default:Me=g1,g1=0,g4=null,ga(d,re,ce,Me)}}ug(),X=L2;break}catch(Fe){Jo(d,Fe)}while(!0);return y&&d.shellSuspendCounter++,o6=J5=null,M1=C,W.H=N,W.A=P,t1===null&&(j1=null,T1=0,e6()),X}function ug(){for(;t1!==null;)bu(t1)}function xu(d,y){var x=M1;M1|=2;var C=fh(),N=sg();j1!==d||T1!==y?(yu=null,mu=ot()+500,p6(d,y)):Q0=xt(d,y);e:do try{if(g1!==0&&t1!==null){y=t1;var P=g4;t:switch(g1){case 1:g1=0,g4=null,ga(d,y,P,1);break;case 2:case 9:if(Qd(P)){g1=0,g4=null,hh(y);break}y=function(){g1!==2&&g1!==9||j1!==d||(g1=7),m6(d)},P.then(y,y);break e;case 3:g1=7;break e;case 4:g1=5;break e;case 7:Qd(P)?(g1=0,g4=null,hh(y)):(g1=0,g4=null,ga(d,y,P,7));break;case 5:var X=null;switch(t1.tag){case 26:X=t1.memoizedState;case 5:case 27:var re=t1;if(!X||Oh(X)){g1=0,g4=null;var ce=re.sibling;if(ce!==null)t1=ce;else{var Me=re.return;Me!==null?(t1=Me,Hu(Me)):t1=null}break t}}g1=0,g4=null,ga(d,y,P,5);break;case 6:g1=0,g4=null,ga(d,y,P,6);break;case 8:Ko(),L2=6;break e;default:throw Error(l(462))}}dh();break}catch(Fe){Jo(d,Fe)}while(!0);return o6=J5=null,W.H=C,W.A=N,M1=x,t1!==null?0:(j1=null,T1=0,e6(),L2)}function dh(){for(;t1!==null&&!Xe();)bu(t1)}function bu(d){var y=Yd(d.alternate,d,Qr);d.memoizedProps=d.pendingProps,y===null?Hu(d):t1=y}function hh(d){var y=d,x=y.alternate;switch(y.tag){case 15:case 0:y=Ud(x,y,y.pendingProps,y.type,void 0,T1);break;case 11:y=Ud(x,y,y.pendingProps,y.type.render,y.ref,T1);break;case 5:Do(y);default:Jy(x,y),y=t1=R9(y,Qr),y=Yd(x,y,Qr)}d.memoizedProps=d.pendingProps,y===null?Hu(d):t1=y}function ga(d,y,x,C){o6=J5=null,Do(y),d4=null,Bo=0;var N=y.return;try{if(j4(d,N,y,x,T1)){L2=1,Qa(d,N4(x,d.current)),t1=null;return}}catch(P){if(N!==null)throw t1=N,P;L2=1,Qa(d,N4(x,d.current)),t1=null;return}y.flags&32768?($t||C===1?d=!0:Q0||(T1&536870912)!==0?d=!1:(Tr=d=!0,(C===2||C===9||C===3||C===6)&&(C=D2.current,C!==null&&C.tag===13&&(C.flags|=16384))),ph(y,d)):Hu(y)}function Hu(d){var y=d;do{if((y.flags&32768)!==0){ph(y,Tr);return}d=y.return;var x=P1(y.alternate,y,Qr);if(x!==null){t1=x;return}if(y=y.sibling,y!==null){t1=y;return}t1=y=d}while(y!==null);L2===0&&(L2=5)}function ph(d,y){do{var x=Jd(d.alternate,d);if(x!==null){x.flags&=32767,t1=x;return}if(x=d.return,x!==null&&(x.flags|=32768,x.subtreeFlags=0,x.deletions=null),!y&&(d=d.sibling,d!==null)){t1=d;return}t1=d=x}while(d!==null);L2=6,t1=null}function cg(d,y,x,C,N,P,X,re,ce){d.cancelPendingCommit=null;do Su();while(f3!==0);if((M1&6)!==0)throw Error(l(327));if(y!==null){if(y===d.current)throw Error(l(177));if(P=y.lanes|y.childLanes,P|=il,yt(d,x,P,X,re,ce),d===j1&&(t1=j1=null,T1=0),p0=y,h0=d,Xo=x,v4=P,gu=N,Qh=C,(y.subtreeFlags&10256)!==0||(y.flags&10256)!==0?(d.callbackNode=null,d.callbackPriority=0,Bb(st,function(){return fg(),null})):(d.callbackNode=null,d.callbackPriority=0),C=(y.flags&13878)!==0,(y.subtreeFlags&13878)!==0||C){C=W.T,W.T=null,N=ne.p,ne.p=2,X=M1,M1|=4;try{rg(d,y,x)}finally{M1=X,ne.p=N,W.T=C}}f3=1,Tg(),Qg(),Pl()}}function Tg(){if(f3===1){f3=0;var d=h0,y=p0,x=(y.flags&13878)!==0;if((y.subtreeFlags&13878)!==0||x){x=W.T,W.T=null;var C=ne.p;ne.p=2;var N=M1;M1|=4;try{Uo(y,d);var P=Gl,X=nl(d.containerInfo),re=P.focusedElem,ce=P.selectionRange;if(X!==re&&re&&re.ownerDocument&&t2(re.ownerDocument.documentElement,re)){if(ce!==null&&O9(re)){var Me=ce.start,Fe=ce.end;if(Fe===void 0&&(Fe=Me),"selectionStart"in re)re.selectionStart=Me,re.selectionEnd=Math.min(Fe,re.value.length);else{var $e=re.ownerDocument||document,Oe=$e&&$e.defaultView||window;if(Oe.getSelection){var Re=Oe.getSelection(),Mt=re.textContent.length,Lt=Math.min(ce.start,Mt),H1=ce.end===void 0?Lt:Math.min(ce.end,Mt);!Re.extend&&Lt>H1&&(X=H1,H1=Lt,Lt=X);var be=Xr(re,Lt),ge=Xr(re,H1);if(be&&ge&&(Re.rangeCount!==1||Re.anchorNode!==be.node||Re.anchorOffset!==be.offset||Re.focusNode!==ge.node||Re.focusOffset!==ge.offset)){var Ae=$e.createRange();Ae.setStart(be.node,be.offset),Re.removeAllRanges(),Lt>H1?(Re.addRange(Ae),Re.extend(ge.node,ge.offset)):(Ae.setEnd(ge.node,ge.offset),Re.addRange(Ae))}}}}for($e=[],Re=re;Re=Re.parentNode;)Re.nodeType===1&&$e.push({element:Re,left:Re.scrollLeft,top:Re.scrollTop});for(typeof re.focus=="function"&&re.focus(),re=0;re<$e.length;re++){var qe=$e[re];qe.element.scrollLeft=qe.left,qe.element.scrollTop=qe.top}}es=!!Lh,Gl=Lh=null}finally{M1=N,ne.p=C,W.T=x}}d.current=y,f3=2}}function Qg(){if(f3===2){f3=0;var d=h0,y=p0,x=(y.flags&8772)!==0;if((y.subtreeFlags&8772)!==0||x){x=W.T,W.T=null;var C=ne.p;ne.p=2;var N=M1;M1|=4;try{hu(d,y.alternate,y)}finally{M1=N,ne.p=C,W.T=x}}f3=3}}function Pl(){if(f3===4||f3===3){f3=0,ht();var d=h0,y=p0,x=Xo,C=Qh;(y.subtreeFlags&10256)!==0||(y.flags&10256)!==0?f3=5:(f3=0,p0=h0=null,Eu(d,d.pendingLanes));var N=d.pendingLanes;if(N===0&&(z6=null),C2(x),y=y.stateNode,De&&typeof De.onCommitFiberRoot=="function")try{De.onCommitFiberRoot(me,y,void 0,(y.current.flags&128)===128)}catch{}if(C!==null){y=W.T,N=ne.p,ne.p=2,W.T=null;try{for(var P=d.onRecoverableError,X=0;X<C.length;X++){var re=C[X];P(re.value,{componentStack:re.stack})}}finally{W.T=y,ne.p=N}}(Xo&3)!==0&&Su(),m6(d),N=d.pendingLanes,(x&4194090)!==0&&(N&42)!==0?d===vu?Wo++:(Wo=0,vu=d):Wo=0,dr(0)}}function Eu(d,y){(d.pooledCacheLanes&=y)===0&&(y=d.pooledCache,y!=null&&(d.pooledCache=null,n0(y)))}function Su(d){return Tg(),Qg(),Pl(),fg()}function fg(){if(f3!==5)return!1;var d=h0,y=v4;v4=0;var x=C2(Xo),C=W.T,N=ne.p;try{ne.p=32>x?32:x,W.T=null,x=gu,gu=null;var P=h0,X=Xo;if(f3=0,p0=h0=null,Xo=0,(M1&6)!==0)throw Error(l(331));var re=M1;if(M1|=4,pu(P.current),cr(P,P.current,X,x),M1=re,dr(0,!1),De&&typeof De.onPostCommitFiberRoot=="function")try{De.onPostCommitFiberRoot(me,P)}catch{}return!0}finally{ne.p=N,W.T=C,Eu(d,y)}}function mh(d,y,x){y=N4(x,y),y=ou(d.stateNode,y,2),d=T4(d,y,2),d!==null&&(nt(d,2),m6(d))}function I1(d,y,x){if(d.tag===3)mh(d,d,x);else for(;y!==null;){if(y.tag===3){mh(y,d,x);break}else if(y.tag===1){var C=y.stateNode;if(typeof y.type.getDerivedStateFromError=="function"||typeof C.componentDidCatch=="function"&&(z6===null||!z6.has(C))){d=N4(x,d),x=Xy(2),C=T4(y,x,2),C!==null&&(zd(x,C,y,d),nt(C,2),m6(C));break}}y=y.return}}function jl(d,y,x){var C=d.pingCache;if(C===null){C=d.pingCache=new lh;var N=new Set;C.set(y,N)}else N=C.get(y),N===void 0&&(N=new Set,C.set(y,N));N.has(x)||(sh=!0,N.add(x),d=dg.bind(null,d,y,x),y.then(d,d))}function dg(d,y,x){var C=d.pingCache;C!==null&&C.delete(y),d.pingedLanes|=d.suspendedLanes&x,d.warmLanes&=~x,j1===d&&(T1&x)===x&&(L2===4||L2===3&&(T1&62914560)===T1&&300>ot()-Th?(M1&2)===0&&p6(d,0):uh|=x,Zo===T1&&(Zo=0)),m6(d)}function Mu(d,y){y===0&&(y=We()),d=W5(d,y),d!==null&&(nt(d,y),m6(d))}function hg(d){var y=d.memoizedState,x=0;y!==null&&(x=y.retryLane),Mu(d,x)}function Nb(d,y){var x=0;switch(d.tag){case 13:var C=d.stateNode,N=d.memoizedState;N!==null&&(x=N.retryLane);break;case 19:C=d.stateNode;break;case 22:C=d.stateNode._retryCache;break;default:throw Error(l(314))}C!==null&&C.delete(y),Mu(d,x)}function Bb(d,y){return ue(d,y)}var Au=null,e7=null,Il=!1,t7=!1,Fl=!1,y0=0;function m6(d){d!==e7&&d.next===null&&(e7===null?Au=e7=d:e7=e7.next=d),t7=!0,Il||(Il=!0,_u())}function dr(d,y){if(!Fl&&t7){Fl=!0;do for(var x=!1,C=Au;C!==null;){if(d!==0){var N=C.pendingLanes;if(N===0)var P=0;else{var X=C.suspendedLanes,re=C.pingedLanes;P=(1<<31-et(42|d)+1)-1,P&=N&~(X&~re),P=P&201326741?P&201326741|1:P?P|2:0}P!==0&&(x=!0,pg(C,P))}else P=T1,P=it(C,C===j1?P:0,C.cancelPendingCommit!==null||C.timeoutHandle!==-1),(P&3)===0||xt(C,P)||(x=!0,pg(C,P));C=C.next}while(x);Fl=!1}}function Pb(){yh()}function yh(){t7=Il=!1;var d=0;y0!==0&&(Nu()&&(d=y0),y0=0);for(var y=ot(),x=null,C=Au;C!==null;){var N=C.next,P=zl(C,y);P===0?(C.next=null,x===null?Au=N:x.next=N,N===null&&(e7=x)):(x=C,(d!==0||(P&3)!==0)&&(t7=!0)),C=N}dr(d)}function zl(d,y){for(var x=d.suspendedLanes,C=d.pingedLanes,N=d.expirationTimes,P=d.pendingLanes&-62914561;0<P;){var X=31-et(P),re=1<<X,ce=N[X];ce===-1?((re&x)===0||(re&C)!==0)&&(N[X]=te(re,y)):ce<=y&&(d.expiredLanes|=re),P&=~re}if(y=j1,x=T1,x=it(d,d===y?x:0,d.cancelPendingCommit!==null||d.timeoutHandle!==-1),C=d.callbackNode,x===0||d===y&&(g1===2||g1===9)||d.cancelPendingCommit!==null)return C!==null&&C!==null&&Pe(C),d.callbackNode=null,d.callbackPriority=0;if((x&3)===0||xt(d,x)){if(y=x&-x,y===d.callbackPriority)return y;switch(C!==null&&Pe(C),C2(x)){case 2:case 8:x=p1;break;case 32:x=st;break;case 268435456:x=e2;break;default:x=st}return C=gh.bind(null,d),x=ue(x,C),d.callbackPriority=y,d.callbackNode=x,y}return C!==null&&C!==null&&Pe(C),d.callbackPriority=2,d.callbackNode=null,2}function gh(d,y){if(f3!==0&&f3!==5)return d.callbackNode=null,d.callbackPriority=0,null;var x=d.callbackNode;if(Su()&&d.callbackNode!==x)return null;var C=T1;return C=it(d,d===j1?C:0,d.cancelPendingCommit!==null||d.timeoutHandle!==-1),C===0?null:(lg(d,C,y),zl(d,ot()),d.callbackNode!=null&&d.callbackNode===x?gh.bind(null,d):null)}function pg(d,y){if(Su())return null;lg(d,y,!0)}function _u(){Fb(function(){(M1&6)!==0?ue(zt,Pb):yh()})}function Ou(){return y0===0&&(y0=Le()),y0}function n7(d){return d==null||typeof d=="symbol"||typeof d=="boolean"?null:typeof d=="function"?d:G8(""+d)}function Cu(d,y){var x=y.ownerDocument.createElement("input");return x.name=y.name,x.value=y.value,d.id&&x.setAttribute("form",d.id),y.parentNode.insertBefore(x,y),d=new FormData(d),x.parentNode.removeChild(x),d}function wu(d,y,x,C,N){if(y==="submit"&&x&&x.stateNode===N){var P=n7((N[L3]||null).action),X=C.submitter;X&&(y=(y=X[L3]||null)?n7(y.formAction):X.getAttribute("formAction"),y!==null&&(P=y,X=null));var re=new W8("action","action",null,C,N);d.push({event:re,listeners:[{instance:null,listener:function(){if(C.defaultPrevented){if(y0!==0){var ce=X?Cu(N,X):new FormData(N);wd(x,{pending:!0,data:ce,method:N.method,action:P},null,ce)}}else typeof P=="function"&&(re.preventDefault(),ce=X?Cu(N,X):new FormData(N),wd(x,{pending:!0,data:ce,method:N.method,action:P},P,ce))},currentTarget:N}]})}}for(var Vu=0;Vu<V9.length;Vu++){var x2=V9[Vu],vh=x2.toLowerCase(),jb=x2[0].toUpperCase()+x2.slice(1);l4(vh,"on"+jb)}l4(rl,"onAnimationEnd"),l4(By,"onAnimationIteration"),l4(nd,"onAnimationStart"),l4("dblclick","onDoubleClick"),l4("focusin","onFocus"),l4("focusout","onBlur"),l4(Vb,"onTransitionRun"),l4(rd,"onTransitionStart"),l4(w9,"onTransitionCancel"),l4(id,"onTransitionEnd"),ji("onMouseEnter",["mouseout","mouseover"]),ji("onMouseLeave",["mouseout","mouseover"]),ji("onPointerEnter",["pointerout","pointerover"]),ji("onPointerLeave",["pointerout","pointerover"]),Y2("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Y2("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Y2("onBeforeInput",["compositionend","keypress","textInput","paste"]),Y2("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Y2("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Y2("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Vt="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),Ib=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Vt));function hr(d,y){y=(y&4)!==0;for(var x=0;x<d.length;x++){var C=d[x],N=C.event;C=C.listeners;e:{var P=void 0;if(y)for(var X=C.length-1;0<=X;X--){var re=C[X],ce=re.instance,Me=re.currentTarget;if(re=re.listener,ce!==P&&N.isPropagationStopped())break e;P=re,N.currentTarget=Me;try{P(N)}catch(Fe){wl(Fe)}N.currentTarget=null,P=ce}else for(X=0;X<C.length;X++){if(re=C[X],ce=re.instance,Me=re.currentTarget,re=re.listener,ce!==P&&N.isPropagationStopped())break e;P=re,N.currentTarget=Me;try{P(N)}catch(Fe){wl(Fe)}N.currentTarget=null,P=ce}}}}function Pt(d,y){var x=y[Of];x===void 0&&(x=y[Of]=new Set);var C=d+"__bubble";x.has(C)||(mg(y,d,2,!1),x.add(C))}function g0(d,y,x){var C=0;y&&(C|=4),mg(x,d,C,y)}var va="_reactListening"+Math.random().toString(36).slice(2);function ql(d){if(!d[va]){d[va]=!0,Cf.forEach(function(x){x!=="selectionchange"&&(Ib.has(x)||g0(x,!1,d),g0(x,!0,d))});var y=d.nodeType===9?d:d.ownerDocument;y===null||y[va]||(y[va]=!0,g0("selectionchange",!1,y))}}function mg(d,y,x,C){switch(Ag(y)){case 2:var N=Sg;break;case 8:N=Mg;break;default:N=$u}x=N.bind(null,y,x,d),N=void 0,!p9||y!=="touchstart"&&y!=="touchmove"&&y!=="wheel"||(N=!0),C?N!==void 0?d.addEventListener(y,x,{capture:!0,passive:N}):d.addEventListener(y,x,!0):N!==void 0?d.addEventListener(y,x,{passive:N}):d.addEventListener(y,x,!1)}function $l(d,y,x,C,N){var P=C;if((y&1)===0&&(y&2)===0&&C!==null)e:for(;;){if(C===null)return;var X=C.tag;if(X===3||X===4){var re=C.stateNode.containerInfo;if(re===N)break;if(X===4)for(X=C.return;X!==null;){var ce=X.tag;if((ce===3||ce===4)&&X.stateNode.containerInfo===N)return;X=X.return}for(;re!==null;){if(X=zr(re),X===null)return;if(ce=X.tag,ce===5||ce===6||ce===26||ce===27){C=P=X;continue e}re=re.parentNode}}C=C.return}My(function(){var Me=P,Fe=zi(x),$e=[];e:{var Oe=ad.get(d);if(Oe!==void 0){var Re=W8,Mt=d;switch(d){case"keypress":if(X8(x)===0)break e;case"keydown":case"keyup":Re=Gi;break;case"focusin":Mt="focus",Re=zf;break;case"focusout":Mt="blur",Re=zf;break;case"beforeblur":case"afterblur":Re=zf;break;case"click":if(x.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":Re=K8;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":Re=Oy;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":Re=x9;break;case rl:case By:case nd:Re=_b;break;case id:Re=o4;break;case"scroll":case"scrollend":Re=Mb;break;case"wheel":Re=b9;break;case"copy":case"cut":case"paste":Re=Cb;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":Re=a4;break;case"toggle":case"beforetoggle":Re=Gf}var Lt=(y&4)!==0,H1=!Lt&&(d==="scroll"||d==="scrollend"),be=Lt?Oe!==null?Oe+"Capture":null:Oe;Lt=[];for(var ge=Me,Ae;ge!==null;){var qe=ge;if(Ae=qe.stateNode,qe=qe.tag,qe!==5&&qe!==26&&qe!==27||Ae===null||be===null||(qe=U5(ge,be),qe!=null&&Lt.push(x4(ge,qe,Ae))),H1)break;ge=ge.return}0<Lt.length&&(Oe=new Re(Oe,Mt,null,x,Fe),$e.push({event:Oe,listeners:Lt}))}}if((y&7)===0){e:{if(Oe=d==="mouseover"||d==="pointerover",Re=d==="mouseout"||d==="pointerout",Oe&&x!==h9&&(Mt=x.relatedTarget||x.fromElement)&&(zr(Mt)||Mt[Pi]))break e;if((Re||Oe)&&(Oe=Fe.window===Fe?Fe:(Oe=Fe.ownerDocument)?Oe.defaultView||Oe.parentWindow:window,Re?(Mt=x.relatedTarget||x.toElement,Re=Me,Mt=Mt?zr(Mt):null,Mt!==null&&(H1=a(Mt),Lt=Mt.tag,Mt!==H1||Lt!==5&&Lt!==27&&Lt!==6)&&(Mt=null)):(Re=null,Mt=Me),Re!==Mt)){if(Lt=K8,qe="onMouseLeave",be="onMouseEnter",ge="mouse",(d==="pointerout"||d==="pointerover")&&(Lt=a4,qe="onPointerLeave",be="onPointerEnter",ge="pointer"),H1=Re==null?Oe:to(Re),Ae=Mt==null?Oe:to(Mt),Oe=new Lt(qe,ge+"leave",Re,x,Fe),Oe.target=H1,Oe.relatedTarget=Ae,qe=null,zr(Fe)===Me&&(Lt=new Lt(be,ge+"enter",Mt,x,Fe),Lt.target=Ae,Lt.relatedTarget=H1,qe=Lt),H1=qe,Re&&Mt)t:{for(Lt=Re,be=Mt,ge=0,Ae=Lt;Ae;Ae=L0(Ae))ge++;for(Ae=0,qe=be;qe;qe=L0(qe))Ae++;for(;0<ge-Ae;)Lt=L0(Lt),ge--;for(;0<Ae-ge;)be=L0(be),Ae--;for(;ge--;){if(Lt===be||be!==null&&Lt===be.alternate)break t;Lt=L0(Lt),be=L0(be)}Lt=null}else Lt=null;Re!==null&&Du($e,Oe,Re,Lt,!1),Mt!==null&&H1!==null&&Du($e,H1,Mt,Lt,!0)}}e:{if(Oe=Me?to(Me):window,Re=Oe.nodeName&&Oe.nodeName.toLowerCase(),Re==="select"||Re==="input"&&Oe.type==="file")var ut=Gr;else if(Yf(Oe))if(Kf)ut=G5;else{ut=_9;var Ut=Ny}else Re=Oe.nodeName,!Re||Re.toLowerCase()!=="input"||Oe.type!=="checkbox"&&Oe.type!=="radio"?Me&&lo(Me.elementType)&&(ut=Gr):ut=Zr;if(ut&&(ut=ut(d,Me))){M9($e,ut,x,Fe);break e}Ut&&Ut(d,Oe,Me),d==="focusout"&&Me&&Oe.type==="number"&&Me.memoizedProps.value!=null&&$8(Oe,"number",Oe.value)}switch(Ut=Me?to(Me):window,d){case"focusin":(Yf(Ut)||Ut.contentEditable==="true")&&(an=Ut,ea=Me,k4=null);break;case"focusout":k4=ea=an=null;break;case"mousedown":ho=!0;break;case"contextmenu":case"mouseup":case"dragend":ho=!1,po($e,x,Fe);break;case"selectionchange":if(td)break;case"keydown":case"keyup":po($e,x,Fe)}var gt;if(H9)e:{switch(d){case"compositionstart":var At="onCompositionStart";break e;case"compositionend":At="onCompositionEnd";break e;case"compositionupdate":At="onCompositionUpdate";break e}At=void 0}else rn?S9(d,x)&&(At="onCompositionEnd"):d==="keydown"&&x.keyCode===229&&(At="onCompositionStart");At&&(E9&&x.locale!=="ko"&&(rn||At!=="onCompositionStart"?At==="onCompositionEnd"&&rn&&(gt=Z8()):(nn=Fe,m9="value"in nn?nn.value:nn.textContent,rn=!0)),Ut=v0(Me,At),0<Ut.length&&(At=new qf(At,d,null,x,Fe),$e.push({event:At,listeners:Ut}),gt?At.data=gt:(gt=el(x),gt!==null&&(At.data=gt)))),(gt=wb?Xf(d,x):Wf(d,x))&&(At=v0(Me,"onBeforeInput"),0<At.length&&(Ut=new qf("onBeforeInput","beforeinput",null,x,Fe),$e.push({event:Ut,listeners:At}),Ut.data=gt)),wu($e,d,Me,x,Fe)}hr($e,y)})}function x4(d,y,x){return{instance:d,listener:y,currentTarget:x}}function v0(d,y){for(var x=y+"Capture",C=[];d!==null;){var N=d,P=N.stateNode;if(N=N.tag,N!==5&&N!==26&&N!==27||P===null||(N=U5(d,x),N!=null&&C.unshift(x4(d,N,P)),N=U5(d,y),N!=null&&C.push(x4(d,N,P))),d.tag===3)return C;d=d.return}return[]}function L0(d){if(d===null)return null;do d=d.return;while(d&&d.tag!==5&&d.tag!==27);return d||null}function Du(d,y,x,C,N){for(var P=y._reactName,X=[];x!==null&&x!==C;){var re=x,ce=re.alternate,Me=re.stateNode;if(re=re.tag,ce!==null&&ce===C)break;re!==5&&re!==26&&re!==27||Me===null||(ce=Me,N?(Me=U5(x,P),Me!=null&&X.unshift(x4(x,Me,ce))):N||(Me=U5(x,P),Me!=null&&X.push(x4(x,Me,ce)))),x=x.return}X.length!==0&&d.push({event:y,listeners:X})}var Ru=/\r\n?/g,q4=/\u0000|\uFFFD/g;function ku(d){return(typeof d=="string"?d:""+d).replace(Ru,`
|
|
445
445
|
`).replace(q4,"")}function yg(d,y){return y=ku(y),ku(d)===y}function Ul(){}function F1(d,y,x,C,N,P){switch(x){case"children":typeof C=="string"?y==="body"||y==="textarea"&&C===""||Fi(d,C):(typeof C=="number"||typeof C=="bigint")&&y!=="body"&&Fi(d,""+C);break;case"className":q5(d,"class",C);break;case"tabIndex":q5(d,"tabindex",C);break;case"dir":case"role":case"viewBox":case"width":case"height":q5(d,x,C);break;case"style":d9(d,C,P);break;case"data":if(y!=="object"){q5(d,"data",C);break}case"src":case"href":if(C===""&&(y!=="a"||x!=="href")){d.removeAttribute(x);break}if(C==null||typeof C=="function"||typeof C=="symbol"||typeof C=="boolean"){d.removeAttribute(x);break}C=G8(""+C),d.setAttribute(x,C);break;case"action":case"formAction":if(typeof C=="function"){d.setAttribute(x,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof P=="function"&&(x==="formAction"?(y!=="input"&&F1(d,y,"name",N.name,N,null),F1(d,y,"formEncType",N.formEncType,N,null),F1(d,y,"formMethod",N.formMethod,N,null),F1(d,y,"formTarget",N.formTarget,N,null)):(F1(d,y,"encType",N.encType,N,null),F1(d,y,"method",N.method,N,null),F1(d,y,"target",N.target,N,null)));if(C==null||typeof C=="symbol"||typeof C=="boolean"){d.removeAttribute(x);break}C=G8(""+C),d.setAttribute(x,C);break;case"onClick":C!=null&&(d.onclick=Ul);break;case"onScroll":C!=null&&Pt("scroll",d);break;case"onScrollEnd":C!=null&&Pt("scrollend",d);break;case"dangerouslySetInnerHTML":if(C!=null){if(typeof C!="object"||!("__html"in C))throw Error(l(61));if(x=C.__html,x!=null){if(N.children!=null)throw Error(l(60));d.innerHTML=x}}break;case"multiple":d.multiple=C&&typeof C!="function"&&typeof C!="symbol";break;case"muted":d.muted=C&&typeof C!="function"&&typeof C!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(C==null||typeof C=="function"||typeof C=="boolean"||typeof C=="symbol"){d.removeAttribute("xlink:href");break}x=G8(""+C),d.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",x);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":C!=null&&typeof C!="function"&&typeof C!="symbol"?d.setAttribute(x,""+C):d.removeAttribute(x);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":C&&typeof C!="function"&&typeof C!="symbol"?d.setAttribute(x,""):d.removeAttribute(x);break;case"capture":case"download":C===!0?d.setAttribute(x,""):C!==!1&&C!=null&&typeof C!="function"&&typeof C!="symbol"?d.setAttribute(x,C):d.removeAttribute(x);break;case"cols":case"rows":case"size":case"span":C!=null&&typeof C!="function"&&typeof C!="symbol"&&!isNaN(C)&&1<=C?d.setAttribute(x,C):d.removeAttribute(x);break;case"rowSpan":case"start":C==null||typeof C=="function"||typeof C=="symbol"||isNaN(C)?d.removeAttribute(x):d.setAttribute(x,C);break;case"popover":Pt("beforetoggle",d),Pt("toggle",d),q8(d,"popover",C);break;case"xlinkActuate":k6(d,"http://www.w3.org/1999/xlink","xlink:actuate",C);break;case"xlinkArcrole":k6(d,"http://www.w3.org/1999/xlink","xlink:arcrole",C);break;case"xlinkRole":k6(d,"http://www.w3.org/1999/xlink","xlink:role",C);break;case"xlinkShow":k6(d,"http://www.w3.org/1999/xlink","xlink:show",C);break;case"xlinkTitle":k6(d,"http://www.w3.org/1999/xlink","xlink:title",C);break;case"xlinkType":k6(d,"http://www.w3.org/1999/xlink","xlink:type",C);break;case"xmlBase":k6(d,"http://www.w3.org/XML/1998/namespace","xml:base",C);break;case"xmlLang":k6(d,"http://www.w3.org/XML/1998/namespace","xml:lang",C);break;case"xmlSpace":k6(d,"http://www.w3.org/XML/1998/namespace","xml:space",C);break;case"is":q8(d,"is",C);break;case"innerText":case"textContent":break;default:(!(2<x.length)||x[0]!=="o"&&x[0]!=="O"||x[1]!=="n"&&x[1]!=="N")&&(x=U8.get(x)||x,q8(d,x,C))}}function U2(d,y,x,C,N,P){switch(x){case"style":d9(d,C,P);break;case"dangerouslySetInnerHTML":if(C!=null){if(typeof C!="object"||!("__html"in C))throw Error(l(61));if(x=C.__html,x!=null){if(N.children!=null)throw Error(l(60));d.innerHTML=x}}break;case"children":typeof C=="string"?Fi(d,C):(typeof C=="number"||typeof C=="bigint")&&Fi(d,""+C);break;case"onScroll":C!=null&&Pt("scroll",d);break;case"onScrollEnd":C!=null&&Pt("scrollend",d);break;case"onClick":C!=null&&(d.onclick=Ul);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!z8.hasOwnProperty(x))e:{if(x[0]==="o"&&x[1]==="n"&&(N=x.endsWith("Capture"),y=x.slice(2,N?x.length-7:void 0),P=d[L3]||null,P=P!=null?P[x]:null,typeof P=="function"&&d.removeEventListener(y,P,N),typeof C=="function")){typeof P!="function"&&P!==null&&(x in d?d[x]=null:d.hasAttribute(x)&&d.removeAttribute(x)),d.addEventListener(y,C,N);break e}x in d?d[x]=C:C===!0?d.setAttribute(x,""):q8(d,x,C)}}}function we(d,y,x){switch(y){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Pt("error",d),Pt("load",d);var C=!1,N=!1,P;for(P in x)if(x.hasOwnProperty(P)){var X=x[P];if(X!=null)switch(P){case"src":C=!0;break;case"srcSet":N=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(l(137,y));default:F1(d,y,P,X,x,null)}}N&&F1(d,y,"srcSet",x.srcSet,x,null),C&&F1(d,y,"src",x.src,x,null);return;case"input":Pt("invalid",d);var re=P=X=N=null,ce=null,Me=null;for(C in x)if(x.hasOwnProperty(C)){var Fe=x[C];if(Fe!=null)switch(C){case"name":N=Fe;break;case"type":X=Fe;break;case"checked":ce=Fe;break;case"defaultChecked":Me=Fe;break;case"value":P=Fe;break;case"defaultValue":re=Fe;break;case"children":case"dangerouslySetInnerHTML":if(Fe!=null)throw Error(l(137,y));break;default:F1(d,y,C,Fe,x,null)}}Nf(d,P,re,ce,Me,X,N,!1),ao(d);return;case"select":Pt("invalid",d),C=X=P=null;for(N in x)if(x.hasOwnProperty(N)&&(re=x[N],re!=null))switch(N){case"value":P=re;break;case"defaultValue":X=re;break;case"multiple":C=re;default:F1(d,y,N,re,x,null)}y=P,x=X,d.multiple=!!C,y!=null?$r(d,!!C,y,!1):x!=null&&$r(d,!!C,x,!0);return;case"textarea":Pt("invalid",d),P=N=C=null;for(X in x)if(x.hasOwnProperty(X)&&(re=x[X],re!=null))switch(X){case"value":C=re;break;case"defaultValue":N=re;break;case"children":P=re;break;case"dangerouslySetInnerHTML":if(re!=null)throw Error(l(91));break;default:F1(d,y,X,re,x,null)}Pf(d,C,N,P),ao(d);return;case"option":for(ce in x)if(x.hasOwnProperty(ce)&&(C=x[ce],C!=null))switch(ce){case"selected":d.selected=C&&typeof C!="function"&&typeof C!="symbol";break;default:F1(d,y,ce,C,x,null)}return;case"dialog":Pt("beforetoggle",d),Pt("toggle",d),Pt("cancel",d),Pt("close",d);break;case"iframe":case"object":Pt("load",d);break;case"video":case"audio":for(C=0;C<Vt.length;C++)Pt(Vt[C],d);break;case"image":Pt("error",d),Pt("load",d);break;case"details":Pt("toggle",d);break;case"embed":case"source":case"link":Pt("error",d),Pt("load",d);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(Me in x)if(x.hasOwnProperty(Me)&&(C=x[Me],C!=null))switch(Me){case"children":case"dangerouslySetInnerHTML":throw Error(l(137,y));default:F1(d,y,Me,C,x,null)}return;default:if(lo(y)){for(Fe in x)x.hasOwnProperty(Fe)&&(C=x[Fe],C!==void 0&&U2(d,y,Fe,C,x,void 0));return}}for(re in x)x.hasOwnProperty(re)&&(C=x[re],C!=null&&F1(d,y,re,C,x,null))}function b1(d,y,x,C){switch(y){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var N=null,P=null,X=null,re=null,ce=null,Me=null,Fe=null;for(Re in x){var $e=x[Re];if(x.hasOwnProperty(Re)&&$e!=null)switch(Re){case"checked":break;case"value":break;case"defaultValue":ce=$e;default:C.hasOwnProperty(Re)||F1(d,y,Re,null,C,$e)}}for(var Oe in C){var Re=C[Oe];if($e=x[Oe],C.hasOwnProperty(Oe)&&(Re!=null||$e!=null))switch(Oe){case"type":P=Re;break;case"name":N=Re;break;case"checked":Me=Re;break;case"defaultChecked":Fe=Re;break;case"value":X=Re;break;case"defaultValue":re=Re;break;case"children":case"dangerouslySetInnerHTML":if(Re!=null)throw Error(l(137,y));break;default:Re!==$e&&F1(d,y,Oe,Re,C,$e)}}kf(d,X,re,ce,Me,Fe,P,N);return;case"select":Re=X=re=Oe=null;for(P in x)if(ce=x[P],x.hasOwnProperty(P)&&ce!=null)switch(P){case"value":break;case"multiple":Re=ce;default:C.hasOwnProperty(P)||F1(d,y,P,null,C,ce)}for(N in C)if(P=C[N],ce=x[N],C.hasOwnProperty(N)&&(P!=null||ce!=null))switch(N){case"value":Oe=P;break;case"defaultValue":re=P;break;case"multiple":X=P;default:P!==ce&&F1(d,y,N,P,C,ce)}y=re,x=X,C=Re,Oe!=null?$r(d,!!x,Oe,!1):!!C!=!!x&&(y!=null?$r(d,!!x,y,!0):$r(d,!!x,x?[]:"",!1));return;case"textarea":Re=Oe=null;for(re in x)if(N=x[re],x.hasOwnProperty(re)&&N!=null&&!C.hasOwnProperty(re))switch(re){case"value":break;case"children":break;default:F1(d,y,re,null,C,N)}for(X in C)if(N=C[X],P=x[X],C.hasOwnProperty(X)&&(N!=null||P!=null))switch(X){case"value":Oe=N;break;case"defaultValue":Re=N;break;case"children":break;case"dangerouslySetInnerHTML":if(N!=null)throw Error(l(91));break;default:N!==P&&F1(d,y,X,N,C,P)}Bf(d,Oe,Re);return;case"option":for(var Mt in x)if(Oe=x[Mt],x.hasOwnProperty(Mt)&&Oe!=null&&!C.hasOwnProperty(Mt))switch(Mt){case"selected":d.selected=!1;break;default:F1(d,y,Mt,null,C,Oe)}for(ce in C)if(Oe=C[ce],Re=x[ce],C.hasOwnProperty(ce)&&Oe!==Re&&(Oe!=null||Re!=null))switch(ce){case"selected":d.selected=Oe&&typeof Oe!="function"&&typeof Oe!="symbol";break;default:F1(d,y,ce,Oe,C,Re)}return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var Lt in x)Oe=x[Lt],x.hasOwnProperty(Lt)&&Oe!=null&&!C.hasOwnProperty(Lt)&&F1(d,y,Lt,null,C,Oe);for(Me in C)if(Oe=C[Me],Re=x[Me],C.hasOwnProperty(Me)&&Oe!==Re&&(Oe!=null||Re!=null))switch(Me){case"children":case"dangerouslySetInnerHTML":if(Oe!=null)throw Error(l(137,y));break;default:F1(d,y,Me,Oe,C,Re)}return;default:if(lo(y)){for(var H1 in x)Oe=x[H1],x.hasOwnProperty(H1)&&Oe!==void 0&&!C.hasOwnProperty(H1)&&U2(d,y,H1,void 0,C,Oe);for(Fe in C)Oe=C[Fe],Re=x[Fe],!C.hasOwnProperty(Fe)||Oe===Re||Oe===void 0&&Re===void 0||U2(d,y,Fe,Oe,C,Re);return}}for(var be in x)Oe=x[be],x.hasOwnProperty(be)&&Oe!=null&&!C.hasOwnProperty(be)&&F1(d,y,be,null,C,Oe);for($e in C)Oe=C[$e],Re=x[$e],!C.hasOwnProperty($e)||Oe===Re||Oe==null&&Re==null||F1(d,y,$e,Oe,C,Re)}var Lh=null,Gl=null;function r7(d){return d.nodeType===9?d:d.ownerDocument}function q6(d){switch(d){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function pr(d,y){if(d===0)switch(y){case"svg":return 1;case"math":return 2;default:return 0}return d===1&&y==="foreignObject"?0:d}function La(d,y){return d==="textarea"||d==="noscript"||typeof y.children=="string"||typeof y.children=="number"||typeof y.children=="bigint"||typeof y.dangerouslySetInnerHTML=="object"&&y.dangerouslySetInnerHTML!==null&&y.dangerouslySetInnerHTML.__html!=null}var $6=null;function Nu(){var d=window.event;return d&&d.type==="popstate"?d===$6?!1:($6=d,!0):($6=null,!1)}var U6=typeof setTimeout=="function"?setTimeout:void 0,xh=typeof clearTimeout=="function"?clearTimeout:void 0,gg=typeof Promise=="function"?Promise:void 0,Fb=typeof queueMicrotask=="function"?queueMicrotask:typeof gg<"u"?function(d){return gg.resolve(null).then(d).catch(zb)}:U6;function zb(d){setTimeout(function(){throw d})}function d3(d){return d==="head"}function vg(d,y){var x=y,C=0,N=0;do{var P=x.nextSibling;if(d.removeChild(x),P&&P.nodeType===8)if(x=P.data,x==="/$"){if(0<C&&8>C){x=C;var X=d.ownerDocument;if(x&1&<(X.documentElement),x&2&<(X.body),x&4)for(x=X.head,lt(x),X=x.firstChild;X;){var re=X.nextSibling,ce=X.nodeName;X[F8]||ce==="SCRIPT"||ce==="STYLE"||ce==="LINK"&&X.rel.toLowerCase()==="stylesheet"||x.removeChild(X),X=re}}if(N===0){d.removeChild(P),c7(y);return}N--}else x==="$"||x==="$?"||x==="$!"?N++:C=x.charCodeAt(0)-48;else C=0;x=P}while(x);c7(y)}function Zl(d){var y=d.firstChild;for(y&&y.nodeType===10&&(y=y.nextSibling);y;){var x=y;switch(y=y.nextSibling,x.nodeName){case"HTML":case"HEAD":case"BODY":Zl(x),pt(x);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(x.rel.toLowerCase()==="stylesheet")continue}d.removeChild(x)}}function bh(d,y,x,C){for(;d.nodeType===1;){var N=x;if(d.nodeName.toLowerCase()!==y.toLowerCase()){if(!C&&(d.nodeName!=="INPUT"||d.type!=="hidden"))break}else if(C){if(!d[F8])switch(y){case"meta":if(!d.hasAttribute("itemprop"))break;return d;case"link":if(P=d.getAttribute("rel"),P==="stylesheet"&&d.hasAttribute("data-precedence"))break;if(P!==N.rel||d.getAttribute("href")!==(N.href==null||N.href===""?null:N.href)||d.getAttribute("crossorigin")!==(N.crossOrigin==null?null:N.crossOrigin)||d.getAttribute("title")!==(N.title==null?null:N.title))break;return d;case"style":if(d.hasAttribute("data-precedence"))break;return d;case"script":if(P=d.getAttribute("src"),(P!==(N.src==null?null:N.src)||d.getAttribute("type")!==(N.type==null?null:N.type)||d.getAttribute("crossorigin")!==(N.crossOrigin==null?null:N.crossOrigin))&&P&&d.hasAttribute("async")&&!d.hasAttribute("itemprop"))break;return d;default:return d}}else if(y==="input"&&d.type==="hidden"){var P=N.name==null?null:""+N.name;if(N.type==="hidden"&&d.getAttribute("name")===P)return d}else return d;if(d=y6(d.nextSibling),d===null)break}return null}function i7(d,y,x){if(y==="")return null;for(;d.nodeType!==3;)if((d.nodeType!==1||d.nodeName!=="INPUT"||d.type!=="hidden")&&!x||(d=y6(d.nextSibling),d===null))return null;return d}function Hh(d){return d.data==="$!"||d.data==="$?"&&d.ownerDocument.readyState==="complete"}function Eh(d,y){var x=d.ownerDocument;if(d.data!=="$?"||x.readyState==="complete")y();else{var C=function(){y(),x.removeEventListener("DOMContentLoaded",C)};x.addEventListener("DOMContentLoaded",C),d._reactRetry=C}}function y6(d){for(;d!=null;d=d.nextSibling){var y=d.nodeType;if(y===1||y===3)break;if(y===8){if(y=d.data,y==="$"||y==="$!"||y==="$?"||y==="F!"||y==="F")break;if(y==="/$")return null}}return d}var Sh=null;function xa(d){d=d.previousSibling;for(var y=0;d;){if(d.nodeType===8){var x=d.data;if(x==="$"||x==="$!"||x==="$?"){if(y===0)return d;y--}else x==="/$"&&y++}d=d.previousSibling}return null}function h3(d,y,x){switch(y=r7(x),d){case"html":if(d=y.documentElement,!d)throw Error(l(452));return d;case"head":if(d=y.head,!d)throw Error(l(453));return d;case"body":if(d=y.body,!d)throw Error(l(454));return d;default:throw Error(l(451))}}function lt(d){for(var y=d.attributes;y.length;)d.removeAttributeNode(y[0]);pt(d)}var S2=new Map,dn=new Set;function t3(d){return typeof d.getRootNode=="function"?d.getRootNode():d.nodeType===9?d:d.ownerDocument}var mr=ne.d;ne.d={f:qb,r:Bu,D:G6,C:gr,L:Pu,m:x0,X:b4,S:S3,M:b0};function qb(){var d=mr.f(),y=Bl();return d||y}function Bu(d){var y=c3(d);y!==null&&y.tag===5&&y.type==="form"?qy(y):mr.r(d)}var yr=typeof document>"u"?null:document;function $4(d,y,x){var C=yr;if(C&&typeof y=="string"&&y){var N=tn(y);N='link[rel="'+d+'"][href="'+N+'"]',typeof x=="string"&&(N+='[crossorigin="'+x+'"]'),dn.has(N)||(dn.add(N),d={rel:d,crossOrigin:x,href:y},C.querySelector(N)===null&&(y=C.createElement("link"),we(y,"link",d),H2(y),C.head.appendChild(y)))}}function G6(d){mr.D(d),$4("dns-prefetch",d,null)}function gr(d,y){mr.C(d,y),$4("preconnect",d,y)}function Pu(d,y,x){mr.L(d,y,x);var C=yr;if(C&&d&&y){var N='link[rel="preload"][as="'+tn(y)+'"]';y==="image"&&x&&x.imageSrcSet?(N+='[imagesrcset="'+tn(x.imageSrcSet)+'"]',typeof x.imageSizes=="string"&&(N+='[imagesizes="'+tn(x.imageSizes)+'"]')):N+='[href="'+tn(d)+'"]';var P=N;switch(y){case"style":P=a7(d);break;case"script":P=ba(d)}S2.has(P)||(d=Q({rel:"preload",href:y==="image"&&x&&x.imageSrcSet?void 0:d,as:y},x),S2.set(P,d),C.querySelector(N)!==null||y==="style"&&C.querySelector(Xl(P))||y==="script"&&C.querySelector(g6(P))||(y=C.createElement("link"),we(y,"link",d),H2(y),C.head.appendChild(y)))}}function x0(d,y){mr.m(d,y);var x=yr;if(x&&d){var C=y&&typeof y.as=="string"?y.as:"script",N='link[rel="modulepreload"][as="'+tn(C)+'"][href="'+tn(d)+'"]',P=N;switch(C){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":P=ba(d)}if(!S2.has(P)&&(d=Q({rel:"modulepreload",href:d},y),S2.set(P,d),x.querySelector(N)===null)){switch(C){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(x.querySelector(g6(P)))return}C=x.createElement("link"),we(C,"link",d),H2(C),x.head.appendChild(C)}}}function S3(d,y,x){mr.S(d,y,x);var C=yr;if(C&&d){var N=no(C).hoistableStyles,P=a7(d);y=y||"default";var X=N.get(P);if(!X){var re={loading:0,preload:null};if(X=C.querySelector(Xl(P)))re.loading=5;else{d=Q({rel:"stylesheet",href:d,"data-precedence":y},x),(x=S2.get(P))&&Ah(d,x);var ce=X=C.createElement("link");H2(ce),we(ce,"link",d),ce._p=new Promise(function(Me,Fe){ce.onload=Me,ce.onerror=Fe}),ce.addEventListener("load",function(){re.loading|=1}),ce.addEventListener("error",function(){re.loading|=2}),re.loading|=4,Fu(X,y,C)}X={type:"stylesheet",instance:X,count:1,state:re},N.set(P,X)}}}function b4(d,y){mr.X(d,y);var x=yr;if(x&&d){var C=no(x).hoistableScripts,N=ba(d),P=C.get(N);P||(P=x.querySelector(g6(N)),P||(d=Q({src:d,async:!0},y),(y=S2.get(N))&&zu(d,y),P=x.createElement("script"),H2(P),we(P,"link",d),x.head.appendChild(P)),P={type:"script",instance:P,count:1,state:null},C.set(N,P))}}function b0(d,y){mr.M(d,y);var x=yr;if(x&&d){var C=no(x).hoistableScripts,N=ba(d),P=C.get(N);P||(P=x.querySelector(g6(N)),P||(d=Q({src:d,async:!0,type:"module"},y),(y=S2.get(N))&&zu(d,y),P=x.createElement("script"),H2(P),we(P,"link",d),x.head.appendChild(P)),P={type:"script",instance:P,count:1,state:null},C.set(N,P))}}function ju(d,y,x,C){var N=(N=he.current)?t3(N):null;if(!N)throw Error(l(446));switch(d){case"meta":case"title":return null;case"style":return typeof x.precedence=="string"&&typeof x.href=="string"?(y=a7(x.href),x=no(N).hoistableStyles,C=x.get(y),C||(C={type:"style",instance:null,count:0,state:null},x.set(y,C)),C):{type:"void",instance:null,count:0,state:null};case"link":if(x.rel==="stylesheet"&&typeof x.href=="string"&&typeof x.precedence=="string"){d=a7(x.href);var P=no(N).hoistableStyles,X=P.get(d);if(X||(N=N.ownerDocument||N,X={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},P.set(d,X),(P=N.querySelector(Xl(d)))&&!P._p&&(X.instance=P,X.state.loading=5),S2.has(d)||(x={rel:"preload",as:"style",href:x.href,crossOrigin:x.crossOrigin,integrity:x.integrity,media:x.media,hrefLang:x.hrefLang,referrerPolicy:x.referrerPolicy},S2.set(d,x),P||Wl(N,d,x,X.state))),y&&C===null)throw Error(l(528,""));return X}if(y&&C!==null)throw Error(l(529,""));return null;case"script":return y=x.async,x=x.src,typeof x=="string"&&y&&typeof y!="function"&&typeof y!="symbol"?(y=ba(x),x=no(N).hoistableScripts,C=x.get(y),C||(C={type:"script",instance:null,count:0,state:null},x.set(y,C)),C):{type:"void",instance:null,count:0,state:null};default:throw Error(l(444,d))}}function a7(d){return'href="'+tn(d)+'"'}function Xl(d){return'link[rel="stylesheet"]['+d+"]"}function Mh(d){return Q({},d,{"data-precedence":d.precedence,precedence:null})}function Wl(d,y,x,C){d.querySelector('link[rel="preload"][as="style"]['+y+"]")?C.loading=1:(y=d.createElement("link"),C.preload=y,y.addEventListener("load",function(){return C.loading|=1}),y.addEventListener("error",function(){return C.loading|=2}),we(y,"link",x),H2(y),d.head.appendChild(y))}function ba(d){return'[src="'+tn(d)+'"]'}function g6(d){return"script[async]"+d}function Iu(d,y,x){if(y.count++,y.instance===null)switch(y.type){case"style":var C=d.querySelector('style[data-href~="'+tn(x.href)+'"]');if(C)return y.instance=C,H2(C),C;var N=Q({},x,{"data-href":x.href,"data-precedence":x.precedence,href:null,precedence:null});return C=(d.ownerDocument||d).createElement("style"),H2(C),we(C,"style",N),Fu(C,x.precedence,d),y.instance=C;case"stylesheet":N=a7(x.href);var P=d.querySelector(Xl(N));if(P)return y.state.loading|=4,y.instance=P,H2(P),P;C=Mh(x),(N=S2.get(N))&&Ah(C,N),P=(d.ownerDocument||d).createElement("link"),H2(P);var X=P;return X._p=new Promise(function(re,ce){X.onload=re,X.onerror=ce}),we(P,"link",C),y.state.loading|=4,Fu(P,x.precedence,d),y.instance=P;case"script":return P=ba(x.src),(N=d.querySelector(g6(P)))?(y.instance=N,H2(N),N):(C=x,(N=S2.get(P))&&(C=Q({},x),zu(C,N)),d=d.ownerDocument||d,N=d.createElement("script"),H2(N),we(N,"link",C),d.head.appendChild(N),y.instance=N);case"void":return null;default:throw Error(l(443,y.type))}else y.type==="stylesheet"&&(y.state.loading&4)===0&&(C=y.instance,y.state.loading|=4,Fu(C,x.precedence,d));return y.instance}function Fu(d,y,x){for(var C=x.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),N=C.length?C[C.length-1]:null,P=N,X=0;X<C.length;X++){var re=C[X];if(re.dataset.precedence===y)P=re;else if(P!==N)break}P?P.parentNode.insertBefore(d,P.nextSibling):(y=x.nodeType===9?x.head:x,y.insertBefore(d,y.firstChild))}function Ah(d,y){d.crossOrigin==null&&(d.crossOrigin=y.crossOrigin),d.referrerPolicy==null&&(d.referrerPolicy=y.referrerPolicy),d.title==null&&(d.title=y.title)}function zu(d,y){d.crossOrigin==null&&(d.crossOrigin=y.crossOrigin),d.referrerPolicy==null&&(d.referrerPolicy=y.referrerPolicy),d.integrity==null&&(d.integrity=y.integrity)}var Yl=null;function o7(d,y,x){if(Yl===null){var C=new Map,N=Yl=new Map;N.set(x,C)}else N=Yl,C=N.get(x),C||(C=new Map,N.set(x,C));if(C.has(d))return C;for(C.set(d,null),x=x.getElementsByTagName(d),N=0;N<x.length;N++){var P=x[N];if(!(P[F8]||P[$1]||d==="link"&&P.getAttribute("rel")==="stylesheet")&&P.namespaceURI!=="http://www.w3.org/2000/svg"){var X=P.getAttribute(y)||"";X=d+X;var re=C.get(X);re?re.push(P):C.set(X,[P])}}return C}function _h(d,y,x){d=d.ownerDocument||d,d.head.insertBefore(x,y==="title"?d.querySelector("head > title"):null)}function Lg(d,y,x){if(x===1||y.itemProp!=null)return!1;switch(d){case"meta":case"title":return!0;case"style":if(typeof y.precedence!="string"||typeof y.href!="string"||y.href==="")break;return!0;case"link":if(typeof y.rel!="string"||typeof y.href!="string"||y.href===""||y.onLoad||y.onError)break;switch(y.rel){case"stylesheet":return d=y.disabled,typeof y.precedence=="string"&&d==null;default:return!0}case"script":if(y.async&&typeof y.async!="function"&&typeof y.async!="symbol"&&!y.onLoad&&!y.onError&&y.src&&typeof y.src=="string")return!0}return!1}function Oh(d){return!(d.type==="stylesheet"&&(d.state.loading&3)===0)}var l7=null;function xg(){}function bg(d,y,x){if(l7===null)throw Error(l(475));var C=l7;if(y.type==="stylesheet"&&(typeof x.media!="string"||matchMedia(x.media).matches!==!1)&&(y.state.loading&4)===0){if(y.instance===null){var N=a7(x.href),P=d.querySelector(Xl(N));if(P){d=P._p,d!==null&&typeof d=="object"&&typeof d.then=="function"&&(C.count++,C=s7.bind(C),d.then(C,C)),y.state.loading|=4,y.instance=P,H2(P);return}P=d.ownerDocument||d,x=Mh(x),(N=S2.get(N))&&Ah(x,N),P=P.createElement("link"),H2(P);var X=P;X._p=new Promise(function(re,ce){X.onload=re,X.onerror=ce}),we(P,"link",x),y.instance=P}C.stylesheets===null&&(C.stylesheets=new Map),C.stylesheets.set(y,d),(d=y.state.preload)&&(y.state.loading&3)===0&&(C.count++,y=s7.bind(C),d.addEventListener("load",y),d.addEventListener("error",y))}}function Hg(){if(l7===null)throw Error(l(475));var d=l7;return d.stylesheets&&d.count===0&&Jl(d,d.stylesheets),0<d.count?function(y){var x=setTimeout(function(){if(d.stylesheets&&Jl(d,d.stylesheets),d.unsuspend){var C=d.unsuspend;d.unsuspend=null,C()}},6e4);return d.unsuspend=y,function(){d.unsuspend=null,clearTimeout(x)}}:null}function s7(){if(this.count--,this.count===0){if(this.stylesheets)Jl(this,this.stylesheets);else if(this.unsuspend){var d=this.unsuspend;this.unsuspend=null,d()}}}var Kl=null;function Jl(d,y){d.stylesheets=null,d.unsuspend!==null&&(d.count++,Kl=new Map,y.forEach(Ch,d),Kl=null,s7.call(d))}function Ch(d,y){if(!(y.state.loading&4)){var x=Kl.get(d);if(x)var C=x.get(null);else{x=new Map,Kl.set(d,x);for(var N=d.querySelectorAll("link[data-precedence],style[data-precedence]"),P=0;P<N.length;P++){var X=N[P];(X.nodeName==="LINK"||X.getAttribute("media")!=="not all")&&(x.set(X.dataset.precedence,X),C=X)}C&&x.set(null,C)}N=y.instance,X=N.getAttribute("data-precedence"),P=x.get(X)||C,P===C&&x.set(null,N),x.set(X,N),this.count++,C=s7.bind(this),N.addEventListener("load",C),N.addEventListener("error",C),P?P.parentNode.insertBefore(N,P.nextSibling):(d=d.nodeType===9?d.head:d,d.insertBefore(N,d.firstChild)),y.state.loading|=4}}var p3={$$typeof:_,Provider:null,Consumer:null,_currentValue:K,_currentValue2:K,_threadCount:0};function Z6(d,y,x,C,N,P,X,re){this.tag=1,this.containerInfo=d,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=rt(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=rt(0),this.hiddenUpdates=rt(null),this.identifierPrefix=C,this.onUncaughtError=N,this.onCaughtError=P,this.onRecoverableError=X,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=re,this.incompleteTransitions=new Map}function Eg(d,y,x,C,N,P,X,re,ce,Me,Fe,$e){return d=new Z6(d,y,x,X,re,ce,Me,$e),y=1,P===!0&&(y|=24),P=s4(3,null,null,y),d.current=P,P.stateNode=d,y=ud(),y.refCount++,d.pooledCache=y,y.refCount++,P.memoizedState={element:C,isDehydrated:x,cache:y},dl(P),d}function wh(d){return d?(d=na,d):na}function Vh(d,y,x,C,N,P){N=wh(N),C.context===null?C.context=N:C.pendingContext=N,C=nr(y),C.payload={element:x},P=P===void 0?null:P,P!==null&&(C.callback=P),x=T4(d,C,y),x!==null&&(L4(x,d,y),aa(x,d,y))}function Dh(d,y){if(d=d.memoizedState,d!==null&&d.dehydrated!==null){var x=d.retryLane;d.retryLane=x!==0&&x<y?x:y}}function qu(d,y){Dh(d,y),(d=d.alternate)&&Dh(d,y)}function Rh(d){if(d.tag===13){var y=W5(d,67108864);y!==null&&L4(y,d,67108864),qu(d,67108864)}}var es=!0;function Sg(d,y,x,C){var N=W.T;W.T=null;var P=ne.p;try{ne.p=2,$u(d,y,x,C)}finally{ne.p=P,W.T=N}}function Mg(d,y,x,C){var N=W.T;W.T=null;var P=ne.p;try{ne.p=8,$u(d,y,x,C)}finally{ne.p=P,W.T=N}}function $u(d,y,x,C){if(es){var N=kh(C);if(N===null)$l(d,y,C,ts,x),Bh(d,C);else if(Ph(N,d,y,x,C))C.stopPropagation();else if(Bh(d,C),y&4&&-1<$b.indexOf(d)){for(;N!==null;){var P=c3(N);if(P!==null)switch(P.tag){case 3:if(P=P.stateNode,P.current.memoizedState.isDehydrated){var X=m1(P.pendingLanes);if(X!==0){var re=P;for(re.pendingLanes|=2,re.entangledLanes|=2;X;){var ce=1<<31-et(X);re.entanglements[1]|=ce,X&=~ce}m6(P),(M1&6)===0&&(mu=ot()+500,dr(0))}}break;case 13:re=W5(P,2),re!==null&&L4(re,P,2),Bl(),qu(P,2)}if(P=kh(C),P===null&&$l(d,y,C,ts,x),P===N)break;N=P}N!==null&&C.stopPropagation()}else $l(d,y,C,null,x)}}function kh(d){return d=zi(d),Nh(d)}var ts=null;function Nh(d){if(ts=null,d=zr(d),d!==null){var y=a(d);if(y===null)d=null;else{var x=y.tag;if(x===13){if(d=i(y),d!==null)return d;d=null}else if(x===3){if(y.stateNode.current.memoizedState.isDehydrated)return y.tag===3?y.stateNode.containerInfo:null;d=null}else y!==d&&(d=null)}}return ts=d,null}function Ag(d){switch(d){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(mt()){case zt:return 2;case p1:return 8;case st:case ct:return 32;case e2:return 268435456;default:return 32}default:return 32}}var Uu=!1,v6=null,X6=null,vr=null,u7=new Map,ns=new Map,H0=[],$b="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset".split(" ");function Bh(d,y){switch(d){case"focusin":case"focusout":v6=null;break;case"dragenter":case"dragleave":X6=null;break;case"mouseover":case"mouseout":vr=null;break;case"pointerover":case"pointerout":u7.delete(y.pointerId);break;case"gotpointercapture":case"lostpointercapture":ns.delete(y.pointerId)}}function W6(d,y,x,C,N,P){return d===null||d.nativeEvent!==P?(d={blockedOn:y,domEventName:x,eventSystemFlags:C,nativeEvent:P,targetContainers:[N]},y!==null&&(y=c3(y),y!==null&&Rh(y)),d):(d.eventSystemFlags|=C,y=d.targetContainers,N!==null&&y.indexOf(N)===-1&&y.push(N),d)}function Ph(d,y,x,C,N){switch(y){case"focusin":return v6=W6(v6,d,y,x,C,N),!0;case"dragenter":return X6=W6(X6,d,y,x,C,N),!0;case"mouseover":return vr=W6(vr,d,y,x,C,N),!0;case"pointerover":var P=N.pointerId;return u7.set(P,W6(u7.get(P)||null,d,y,x,C,N)),!0;case"gotpointercapture":return P=N.pointerId,ns.set(P,W6(ns.get(P)||null,d,y,x,C,N)),!0}return!1}function jh(d){var y=zr(d.target);if(y!==null){var x=a(y);if(x!==null){if(y=x.tag,y===13){if(y=i(x),y!==null){d.blockedOn=y,_f(d.priority,function(){if(x.tag===13){var C=z4();C=Ht(C);var N=W5(x,C);N!==null&&L4(N,x,C),qu(x,C)}});return}}else if(y===3&&x.stateNode.current.memoizedState.isDehydrated){d.blockedOn=x.tag===3?x.stateNode.containerInfo:null;return}}}d.blockedOn=null}function rs(d){if(d.blockedOn!==null)return!1;for(var y=d.targetContainers;0<y.length;){var x=kh(d.nativeEvent);if(x===null){x=d.nativeEvent;var C=new x.constructor(x.type,x);h9=C,x.target.dispatchEvent(C),h9=null}else return y=c3(x),y!==null&&Rh(y),d.blockedOn=x,!1;y.shift()}return!0}function Ih(d,y,x){rs(d)&&x.delete(y)}function Gu(){Uu=!1,v6!==null&&rs(v6)&&(v6=null),X6!==null&&rs(X6)&&(X6=null),vr!==null&&rs(vr)&&(vr=null),u7.forEach(Ih),ns.forEach(Ih)}function Lr(d,y){d.blockedOn===y&&(d.blockedOn=null,Uu||(Uu=!0,e.unstable_scheduleCallback(e.unstable_NormalPriority,Gu)))}var Zu=null;function is(d){Zu!==d&&(Zu=d,e.unstable_scheduleCallback(e.unstable_NormalPriority,function(){Zu===d&&(Zu=null);for(var y=0;y<d.length;y+=3){var x=d[y],C=d[y+1],N=d[y+2];if(typeof C!="function"){if(Nh(C||x)===null)continue;break}var P=c3(x);P!==null&&(d.splice(y,3),y-=3,wd(P,{pending:!0,data:N,method:x.method,action:C},C,N))}}))}function c7(d){function y(ce){return Lr(ce,d)}v6!==null&&Lr(v6,d),X6!==null&&Lr(X6,d),vr!==null&&Lr(vr,d),u7.forEach(y),ns.forEach(y);for(var x=0;x<H0.length;x++){var C=H0[x];C.blockedOn===d&&(C.blockedOn=null)}for(;0<H0.length&&(x=H0[0],x.blockedOn===null);)jh(x),x.blockedOn===null&&H0.shift();if(x=(d.ownerDocument||d).$$reactFormReplay,x!=null)for(C=0;C<x.length;C+=3){var N=x[C],P=x[C+1],X=N[L3]||null;if(typeof P=="function")X||is(x);else if(X){var re=null;if(P&&P.hasAttribute("formAction")){if(N=P,X=P[L3]||null)re=X.formAction;else if(Nh(N)!==null)continue}else re=X.action;typeof re=="function"?x[C+1]=re:(x.splice(C,3),C-=3),is(x)}}}function E0(d){this._internalRoot=d}Xu.prototype.render=E0.prototype.render=function(d){var y=this._internalRoot;if(y===null)throw Error(l(409));var x=y.current,C=z4();Vh(x,C,d,y,null,null)},Xu.prototype.unmount=E0.prototype.unmount=function(){var d=this._internalRoot;if(d!==null){this._internalRoot=null;var y=d.containerInfo;Vh(d.current,2,null,d,null,null),Bl(),y[Pi]=null}};function Xu(d){this._internalRoot=d}Xu.prototype.unstable_scheduleHydration=function(d){if(d){var y=D6();d={blockedOn:null,target:d,priority:y};for(var x=0;x<H0.length&&y!==0&&y<H0[x].priority;x++);H0.splice(x,0,d),x===0&&jh(d)}};var _g=t.version;if(_g!=="19.1.0")throw Error(l(527,_g,"19.1.0"));ne.findDOMNode=function(d){var y=d._reactInternals;if(y===void 0)throw typeof d.render=="function"?Error(l(188)):(d=Object.keys(d).join(","),Error(l(268,d)));return d=T(y),d=d!==null?u(d):null,d=d===null?null:d.stateNode,d};var Og={bundleType:0,version:"19.1.0",rendererPackageName:"react-dom",currentDispatcherRef:W,reconcilerVersion:"19.1.0"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var n3=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!n3.isDisabled&&n3.supportsFiber)try{me=n3.inject(Og),De=n3}catch{}}return Sf.createRoot=function(d,y){if(!o(d))throw Error(l(299));var x=!1,C="",N=jd,P=Io,X=Id,re=null;return y!=null&&(y.unstable_strictMode===!0&&(x=!0),y.identifierPrefix!==void 0&&(C=y.identifierPrefix),y.onUncaughtError!==void 0&&(N=y.onUncaughtError),y.onCaughtError!==void 0&&(P=y.onCaughtError),y.onRecoverableError!==void 0&&(X=y.onRecoverableError),y.unstable_transitionCallbacks!==void 0&&(re=y.unstable_transitionCallbacks)),y=Eg(d,1,!1,null,null,x,C,N,P,X,re,null),d[Pi]=y.current,ql(d),new E0(y)},Sf.hydrateRoot=function(d,y,x){if(!o(d))throw Error(l(299));var C=!1,N="",P=jd,X=Io,re=Id,ce=null,Me=null;return x!=null&&(x.unstable_strictMode===!0&&(C=!0),x.identifierPrefix!==void 0&&(N=x.identifierPrefix),x.onUncaughtError!==void 0&&(P=x.onUncaughtError),x.onCaughtError!==void 0&&(X=x.onCaughtError),x.onRecoverableError!==void 0&&(re=x.onRecoverableError),x.unstable_transitionCallbacks!==void 0&&(ce=x.unstable_transitionCallbacks),x.formState!==void 0&&(Me=x.formState)),y=Eg(d,1,!0,y,x??null,C,N,P,X,re,ce,Me),y.context=wh(null),x=y.current,C=z4(),C=Ht(C),N=nr(C),N.callback=null,T4(x,N,C),x=C,y.current.lanes=x,nt(y,x),m6(y),d[Pi]=y.current,ql(d),new Xu(y)},Sf.version="19.1.0",Sf}var Mf={},TB;function q0e(){if(TB)return Mf;TB=1;var e={};/**
|
|
446
446
|
* @license React
|
|
447
447
|
* react-dom-client.development.js
|
|
@@ -450,7 +450,7 @@ Error generating stack: `+x.message+`
|
|
|
450
450
|
*
|
|
451
451
|
* This source code is licensed under the MIT license found in the
|
|
452
452
|
* LICENSE file in the root directory of this source tree.
|
|
453
|
-
*/return e.NODE_ENV!=="production"&&function(){function t(r,c){for(r=r.memoizedState;r!==null&&0<c;)r=r.next,c--;return r}function n(r,c,m,H){if(m>=c.length)return H;var w=c[m],D=U2(r)?r.slice():Vt({},r);return D[w]=n(r[w],c,m+1,H),D}function l(r,c,m){if(c.length!==m.length)console.warn("copyWithRename() expects paths of the same length");else{for(var H=0;H<m.length-1;H++)if(c[H]!==m[H]){console.warn("copyWithRename() expects paths to be the same except for the deepest key");return}return o(r,c,m,0)}}function o(r,c,m,H){var w=c[H],D=U2(r)?r.slice():Vt({},r);return H+1===c.length?(D[m[H]]=D[w],U2(D)?D.splice(w,1):delete D[w]):D[w]=o(r[w],c,m,H+1),D}function a(r,c,m){var H=c[m],w=U2(r)?r.slice():Vt({},r);return m+1===c.length?(U2(w)?w.splice(H,1):delete w[H],w):(w[H]=a(r[H],c,m+1),w)}function i(){return!1}function s(){return null}function T(){}function u(){console.error("Do not call Hooks inside useEffect(...), useMemo(...), or other built-in Hooks. You can only call Hooks at the top level of your React function. For more information, see https://react.dev/link/rules-of-hooks")}function Q(){console.error("Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo().")}function f(){}function h(r){var c=[];return r.forEach(function(m){c.push(m)}),c.sort().join(", ")}function p(r,c,m,H){return new wb(r,c,m,H)}function g(r,c){r.context===T7&&(jl(r.current,2,c,r,null,null),fa())}function v(r,c){if(J6!==null){var m=c.staleFamilies;c=c.updatedFamilies,l0(),Xi(r.current,c,m),fa()}}function b(r){J6=r}function L(r){return!(!r||r.nodeType!==1&&r.nodeType!==9&&r.nodeType!==11)}function S(r){var c=r,m=r;if(r.alternate)for(;c.return;)c=c.return;else{r=c;do c=r,(c.flags&4098)!==0&&(m=c.return),r=c.return;while(r)}return c.tag===3?m:null}function _(r){if(r.tag===13){var c=r.memoizedState;if(c===null&&(r=r.alternate,r!==null&&(c=r.memoizedState)),c!==null)return c.dehydrated}return null}function O(r){if(S(r)!==r)throw Error("Unable to find node on an unmounted component.")}function E(r){var c=r.alternate;if(!c){if(c=S(r),c===null)throw Error("Unable to find node on an unmounted component.");return c!==r?null:r}for(var m=r,H=c;;){var w=m.return;if(w===null)break;var D=w.alternate;if(D===null){if(H=w.return,H!==null){m=H;continue}break}if(w.child===D.child){for(D=w.child;D;){if(D===m)return O(w),r;if(D===H)return O(w),c;D=D.sibling}throw Error("Unable to find node on an unmounted component.")}if(m.return!==H.return)m=w,H=D;else{for(var I=!1,G=w.child;G;){if(G===m){I=!0,m=w,H=D;break}if(G===H){I=!0,H=w,m=D;break}G=G.sibling}if(!I){for(G=D.child;G;){if(G===m){I=!0,m=D,H=w;break}if(G===H){I=!0,H=D,m=w;break}G=G.sibling}if(!I)throw Error("Child was not found in either parent set. This indicates a bug in React related to the return pointer. Please file an issue.")}}if(m.alternate!==H)throw Error("Return fibers should always be each others' alternates. This error is likely caused by a bug in React. Please file an issue.")}if(m.tag!==3)throw Error("Unable to find node on an unmounted component.");return m.stateNode.current===m?r:c}function A(r){var c=r.tag;if(c===5||c===26||c===27||c===6)return r;for(r=r.child;r!==null;){if(c=A(r),c!==null)return c;r=r.sibling}return null}function V(r){return r===null||typeof r!="object"?null:(r=Ul&&r[Ul]||r["@@iterator"],typeof r=="function"?r:null)}function k(r){if(r==null)return null;if(typeof r=="function")return r.$$typeof===F1?null:r.displayName||r.name||null;if(typeof r=="string")return r;switch(r){case g0:return"Fragment";case ql:return"Profiler";case va:return"StrictMode";case L0:return"Suspense";case Du:return"SuspenseList";case ku:return"Activity"}if(typeof r=="object")switch(typeof r.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),r.$$typeof){case Pt:return"Portal";case x4:return(r.displayName||"Context")+".Provider";case $l:return(r._context.displayName||"Context")+".Consumer";case v0:var c=r.render;return r=r.displayName,r||(r=c.displayName||c.name||"",r=r!==""?"ForwardRef("+r+")":"ForwardRef"),r;case Ru:return c=r.displayName||null,c!==null?c:k(r.type)||"Memo";case q4:c=r._payload,r=r._init;try{return k(r(c))}catch{}}return null}function B(r){return typeof r.tag=="number"?R(r):typeof r.name=="string"?r.name:null}function R(r){var c=r.type;switch(r.tag){case 31:return"Activity";case 24:return"Cache";case 9:return(c._context.displayName||"Context")+".Consumer";case 10:return(c.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return r=c.render,r=r.displayName||r.name||"",c.displayName||(r!==""?"ForwardRef("+r+")":"ForwardRef");case 7:return"Fragment";case 26:case 27:case 5:return c;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return k(c);case 8:return c===va?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 14:case 15:if(typeof c=="function")return c.displayName||c.name||null;if(typeof c=="string")return c;break;case 29:if(c=r._debugInfo,c!=null){for(var m=c.length-1;0<=m;m--)if(typeof c[m].name=="string")return c[m].name}if(r.return!==null)return R(r.return)}return null}function F(r){return{current:r}}function q(r,c){0>q6?console.error("Unexpected pop."):(c!==r7[q6]&&console.error("Unexpected Fiber popped."),r.current=Gl[q6],Gl[q6]=null,r7[q6]=null,q6--)}function $(r,c,m){q6++,Gl[q6]=r.current,r7[q6]=m,r.current=c}function Z(r){return r===null&&console.error("Expected host context to exist. This error is likely caused by a bug in React. Please file an issue."),r}function J(r,c){$($6,c,r),$(La,r,r),$(pr,null,r);var m=c.nodeType;switch(m){case 9:case 11:m=m===9?"#document":"#fragment",c=(c=c.documentElement)&&(c=c.namespaceURI)?g4(c):Va;break;default:if(m=c.tagName,c=c.namespaceURI)c=g4(c),c=Tr(c,m);else switch(m){case"svg":c=bc;break;case"math":c=ov;break;default:c=Va}}m=m.toLowerCase(),m=Pf(null,m),m={context:c,ancestorInfo:m},q(pr,r),$(pr,m,r)}function W(r){q(pr,r),q(La,r),q($6,r)}function ne(){return Z(pr.current)}function K(r){r.memoizedState!==null&&$(Nu,r,r);var c=Z(pr.current),m=r.type,H=Tr(c.context,m);m=Pf(c.ancestorInfo,m),H={context:H,ancestorInfo:m},c!==H&&($(La,r,r),$(pr,H,r))}function Y(r){La.current===r&&(q(pr,r),q(La,r)),Nu.current===r&&(q(Nu,r),gp._currentValue=xs)}function j(r){return typeof Symbol=="function"&&Symbol.toStringTag&&r[Symbol.toStringTag]||r.constructor.name||"Object"}function z(r){try{return ee(r),!1}catch{return!0}}function ee(r){return""+r}function U(r,c){if(z(r))return console.error("The provided `%s` attribute is an unsupported type %s. This value must be coerced to a string before using it here.",c,j(r)),ee(r)}function de(r,c){if(z(r))return console.error("The provided `%s` CSS property is an unsupported type %s. This value must be coerced to a string before using it here.",c,j(r)),ee(r)}function pe(r){if(z(r))return console.error("Form field values (value, checked, defaultValue, or defaultChecked props) must be strings, not %s. This value must be coerced to a string before using it here.",j(r)),ee(r)}function he(r){if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u")return!1;var c=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(c.isDisabled)return!0;if(!c.supportsFiber)return console.error("The installed version of React DevTools is too old and will not work with the current version of React. Please update React DevTools. https://react.dev/link/react-devtools"),!0;try{xa=c.inject(r),h3=c}catch(m){console.error("React instrumentation encountered an error: %s.",m)}return!!c.checkDCE}function se(r){if(typeof y6=="function"&&Sh(r),h3&&typeof h3.setStrictMode=="function")try{h3.setStrictMode(xa,r)}catch(c){S2||(S2=!0,console.error("React instrumentation encountered an error: %s",c))}}function fe(r){lt=r}function Se(){lt!==null&&typeof lt.markCommitStopped=="function"&<.markCommitStopped()}function Ee(r){lt!==null&&typeof lt.markComponentRenderStarted=="function"&<.markComponentRenderStarted(r)}function _e(){lt!==null&&typeof lt.markComponentRenderStopped=="function"&<.markComponentRenderStopped()}function ze(r){lt!==null&&typeof lt.markRenderStarted=="function"&<.markRenderStarted(r)}function ue(){lt!==null&&typeof lt.markRenderStopped=="function"&<.markRenderStopped()}function Pe(r,c){lt!==null&&typeof lt.markStateUpdateScheduled=="function"&<.markStateUpdateScheduled(r,c)}function Xe(r){return r>>>=0,r===0?32:31-(mr(r)/qb|0)|0}function ht(r){if(r&1)return"SyncHydrationLane";if(r&2)return"Sync";if(r&4)return"InputContinuousHydration";if(r&8)return"InputContinuous";if(r&16)return"DefaultHydration";if(r&32)return"Default";if(r&128)return"TransitionHydration";if(r&4194048)return"Transition";if(r&62914560)return"Retry";if(r&67108864)return"SelectiveHydration";if(r&134217728)return"IdleHydration";if(r&268435456)return"Idle";if(r&536870912)return"Offscreen";if(r&1073741824)return"Deferred"}function ot(r){var c=r&42;if(c!==0)return c;switch(r&-r){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return r&4194048;case 4194304:case 8388608:case 16777216:case 33554432:return r&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return console.error("Should have found matching lanes. This is a bug in React."),r}}function mt(r,c,m){var H=r.pendingLanes;if(H===0)return 0;var w=0,D=r.suspendedLanes,I=r.pingedLanes;r=r.warmLanes;var G=H&134217727;return G!==0?(H=G&~D,H!==0?w=ot(H):(I&=G,I!==0?w=ot(I):m||(m=G&~r,m!==0&&(w=ot(m))))):(G=H&~D,G!==0?w=ot(G):I!==0?w=ot(I):m||(m=H&~r,m!==0&&(w=ot(m)))),w===0?0:c!==0&&c!==w&&(c&D)===0&&(D=w&-w,m=c&-c,D>=m||D===32&&(m&4194048)!==0)?c:w}function zt(r,c){return(r.pendingLanes&~(r.suspendedLanes&~r.pingedLanes)&c)===0}function p1(r,c){switch(r){case 1:case 2:case 4:case 8:case 64:return c+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return c+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return console.error("Should have found matching lanes. This is a bug in React."),-1}}function st(){var r=Bu;return Bu<<=1,(Bu&4194048)===0&&(Bu=256),r}function ct(){var r=yr;return yr<<=1,(yr&62914560)===0&&(yr=4194304),r}function e2(r){for(var c=[],m=0;31>m;m++)c.push(r);return c}function f1(r,c){r.pendingLanes|=c,c!==268435456&&(r.suspendedLanes=0,r.pingedLanes=0,r.warmLanes=0)}function Ge(r,c,m,H,w,D){var I=r.pendingLanes;r.pendingLanes=m,r.suspendedLanes=0,r.pingedLanes=0,r.warmLanes=0,r.expiredLanes&=m,r.entangledLanes&=m,r.errorRecoveryDisabledLanes&=m,r.shellSuspendCounter=0;var G=r.entanglements,ie=r.expirationTimes,le=r.hiddenUpdates;for(m=I&~m;0<m;){var Ve=31-t3(m),Ne=1<<Ve;G[Ve]=0,ie[Ve]=-1;var Ce=le[Ve];if(Ce!==null)for(le[Ve]=null,Ve=0;Ve<Ce.length;Ve++){var Be=Ce[Ve];Be!==null&&(Be.lane&=-536870913)}m&=~Ne}H!==0&&me(r,H,0),D!==0&&w===0&&r.tag!==0&&(r.suspendedLanes|=D&~(I&~c))}function me(r,c,m){r.pendingLanes|=c,r.suspendedLanes&=~c;var H=31-t3(c);r.entangledLanes|=c,r.entanglements[H]=r.entanglements[H]|1073741824|m&4194090}function De(r,c){var m=r.entangledLanes|=c;for(r=r.entanglements;m;){var H=31-t3(m),w=1<<H;w&c|r[H]&c&&(r[H]|=c),m&=~w}}function Ye(r){switch(r){case 2:r=1;break;case 8:r=4;break;case 32:r=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:r=128;break;case 268435456:r=134217728;break;default:r=0}return r}function et(r,c,m){if(dn)for(r=r.pendingUpdatersLaneMap;0<m;){var H=31-t3(m),w=1<<H;r[H].add(c),m&=~w}}function tt(r,c){if(dn)for(var m=r.pendingUpdatersLaneMap,H=r.memoizedUpdaters;0<c;){var w=31-t3(c);r=1<<w,w=m[w],0<w.size&&(w.forEach(function(D){var I=D.alternate;I!==null&&H.has(I)||H.add(D)}),w.clear()),c&=~r}}function Tt(r){return r&=-r,$4<r?G6<r?(r&134217727)!==0?gr:Pu:G6:$4}function o1(){var r=b1.p;return r!==0?r:(r=window.event,r===void 0?gr:y0(r.type))}function Ct(r,c){var m=b1.p;try{return b1.p=r,c()}finally{b1.p=m}}function d1(r){delete r[S3],delete r[b4],delete r[ju],delete r[a7],delete r[Xl]}function m1(r){var c=r[S3];if(c)return c;for(var m=r.parentNode;m;){if(c=m[b0]||m[S3]){if(m=c.alternate,c.child!==null||m!==null&&m.child!==null)for(r=vu(r);r!==null;){if(m=r[S3])return m;r=vu(r)}return c}r=m,m=r.parentNode}return null}function it(r){if(r=r[S3]||r[b0]){var c=r.tag;if(c===5||c===6||c===13||c===26||c===27||c===3)return r}return null}function xt(r){var c=r.tag;if(c===5||c===26||c===27||c===6)return r.stateNode;throw Error("getNodeFromInstance: Invalid argument.")}function te(r){var c=r[Mh];return c||(c=r[Mh]={hoistableStyles:new Map,hoistableScripts:new Map}),c}function ve(r){r[Wl]=!0}function We(r,c){rt(r,c),rt(r+"Capture",c)}function rt(r,c){g6[r]&&console.error("EventRegistry: More than one plugin attempted to publish the same registration name, `%s`.",r),g6[r]=c;var m=r.toLowerCase();for(Iu[m]=r,r==="onDoubleClick"&&(Iu.ondblclick=r),r=0;r<c.length;r++)ba.add(c[r])}function nt(r,c){Fu[c.type]||c.onChange||c.onInput||c.readOnly||c.disabled||c.value==null||console.error(r==="select"?"You provided a `value` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultValue`. Otherwise, set `onChange`.":"You provided a `value` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultValue`. Otherwise, set either `onChange` or `readOnly`."),c.onChange||c.readOnly||c.disabled||c.checked==null||console.error("You provided a `checked` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultChecked`. Otherwise, set either `onChange` or `readOnly`.")}function yt(r){return U6.call(Yl,r)?!0:U6.call(zu,r)?!1:Ah.test(r)?Yl[r]=!0:(zu[r]=!0,console.error("Invalid attribute name: `%s`",r),!1)}function _t(r,c,m){if(yt(c)){if(!r.hasAttribute(c)){switch(typeof m){case"symbol":case"object":return m;case"function":return m;case"boolean":if(m===!1)return m}return m===void 0?void 0:null}return r=r.getAttribute(c),r===""&&m===!0?!0:(U(m,c),r===""+m?m:r)}}function Xt(r,c,m){if(yt(c))if(m===null)r.removeAttribute(c);else{switch(typeof m){case"undefined":case"function":case"symbol":r.removeAttribute(c);return;case"boolean":var H=c.toLowerCase().slice(0,5);if(H!=="data-"&&H!=="aria-"){r.removeAttribute(c);return}}U(m,c),r.setAttribute(c,""+m)}}function Ht(r,c,m){if(m===null)r.removeAttribute(c);else{switch(typeof m){case"undefined":case"function":case"symbol":case"boolean":r.removeAttribute(c);return}U(m,c),r.setAttribute(c,""+m)}}function C2(r,c,m,H){if(H===null)r.removeAttribute(m);else{switch(typeof H){case"undefined":case"function":case"symbol":case"boolean":r.removeAttribute(m);return}U(H,m),r.setAttributeNS(c,m,""+H)}}function D6(){}function _f(){if(o7===0){_h=console.log,Lg=console.info,Oh=console.warn,l7=console.error,xg=console.group,bg=console.groupCollapsed,Hg=console.groupEnd;var r={configurable:!0,enumerable:!0,value:D6,writable:!0};Object.defineProperties(console,{info:r,log:r,warn:r,error:r,group:r,groupCollapsed:r,groupEnd:r})}o7++}function R6(){if(o7--,o7===0){var r={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:Vt({},r,{value:_h}),info:Vt({},r,{value:Lg}),warn:Vt({},r,{value:Oh}),error:Vt({},r,{value:l7}),group:Vt({},r,{value:xg}),groupCollapsed:Vt({},r,{value:bg}),groupEnd:Vt({},r,{value:Hg})})}0>o7&&console.error("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}function $1(r){if(s7===void 0)try{throw Error()}catch(m){var c=m.stack.trim().match(/\n( *(at )?)/);s7=c&&c[1]||"",Kl=-1<m.stack.indexOf(`
|
|
453
|
+
*/return e.NODE_ENV!=="production"&&function(){function t(r,c){for(r=r.memoizedState;r!==null&&0<c;)r=r.next,c--;return r}function n(r,c,m,H){if(m>=c.length)return H;var w=c[m],D=U2(r)?r.slice():Vt({},r);return D[w]=n(r[w],c,m+1,H),D}function l(r,c,m){if(c.length!==m.length)console.warn("copyWithRename() expects paths of the same length");else{for(var H=0;H<m.length-1;H++)if(c[H]!==m[H]){console.warn("copyWithRename() expects paths to be the same except for the deepest key");return}return o(r,c,m,0)}}function o(r,c,m,H){var w=c[H],D=U2(r)?r.slice():Vt({},r);return H+1===c.length?(D[m[H]]=D[w],U2(D)?D.splice(w,1):delete D[w]):D[w]=o(r[w],c,m,H+1),D}function a(r,c,m){var H=c[m],w=U2(r)?r.slice():Vt({},r);return m+1===c.length?(U2(w)?w.splice(H,1):delete w[H],w):(w[H]=a(r[H],c,m+1),w)}function i(){return!1}function s(){return null}function T(){}function u(){console.error("Do not call Hooks inside useEffect(...), useMemo(...), or other built-in Hooks. You can only call Hooks at the top level of your React function. For more information, see https://react.dev/link/rules-of-hooks")}function Q(){console.error("Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo().")}function f(){}function h(r){var c=[];return r.forEach(function(m){c.push(m)}),c.sort().join(", ")}function p(r,c,m,H){return new wb(r,c,m,H)}function g(r,c){r.context===T7&&(jl(r.current,2,c,r,null,null),fa())}function v(r,c){if(J6!==null){var m=c.staleFamilies;c=c.updatedFamilies,l0(),Xi(r.current,c,m),fa()}}function b(r){J6=r}function L(r){return!(!r||r.nodeType!==1&&r.nodeType!==9&&r.nodeType!==11)}function S(r){var c=r,m=r;if(r.alternate)for(;c.return;)c=c.return;else{r=c;do c=r,(c.flags&4098)!==0&&(m=c.return),r=c.return;while(r)}return c.tag===3?m:null}function _(r){if(r.tag===13){var c=r.memoizedState;if(c===null&&(r=r.alternate,r!==null&&(c=r.memoizedState)),c!==null)return c.dehydrated}return null}function O(r){if(S(r)!==r)throw Error("Unable to find node on an unmounted component.")}function E(r){var c=r.alternate;if(!c){if(c=S(r),c===null)throw Error("Unable to find node on an unmounted component.");return c!==r?null:r}for(var m=r,H=c;;){var w=m.return;if(w===null)break;var D=w.alternate;if(D===null){if(H=w.return,H!==null){m=H;continue}break}if(w.child===D.child){for(D=w.child;D;){if(D===m)return O(w),r;if(D===H)return O(w),c;D=D.sibling}throw Error("Unable to find node on an unmounted component.")}if(m.return!==H.return)m=w,H=D;else{for(var I=!1,G=w.child;G;){if(G===m){I=!0,m=w,H=D;break}if(G===H){I=!0,H=w,m=D;break}G=G.sibling}if(!I){for(G=D.child;G;){if(G===m){I=!0,m=D,H=w;break}if(G===H){I=!0,H=D,m=w;break}G=G.sibling}if(!I)throw Error("Child was not found in either parent set. This indicates a bug in React related to the return pointer. Please file an issue.")}}if(m.alternate!==H)throw Error("Return fibers should always be each others' alternates. This error is likely caused by a bug in React. Please file an issue.")}if(m.tag!==3)throw Error("Unable to find node on an unmounted component.");return m.stateNode.current===m?r:c}function A(r){var c=r.tag;if(c===5||c===26||c===27||c===6)return r;for(r=r.child;r!==null;){if(c=A(r),c!==null)return c;r=r.sibling}return null}function V(r){return r===null||typeof r!="object"?null:(r=Ul&&r[Ul]||r["@@iterator"],typeof r=="function"?r:null)}function k(r){if(r==null)return null;if(typeof r=="function")return r.$$typeof===F1?null:r.displayName||r.name||null;if(typeof r=="string")return r;switch(r){case g0:return"Fragment";case ql:return"Profiler";case va:return"StrictMode";case L0:return"Suspense";case Du:return"SuspenseList";case ku:return"Activity"}if(typeof r=="object")switch(typeof r.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),r.$$typeof){case Pt:return"Portal";case x4:return(r.displayName||"Context")+".Provider";case $l:return(r._context.displayName||"Context")+".Consumer";case v0:var c=r.render;return r=r.displayName,r||(r=c.displayName||c.name||"",r=r!==""?"ForwardRef("+r+")":"ForwardRef"),r;case Ru:return c=r.displayName||null,c!==null?c:k(r.type)||"Memo";case q4:c=r._payload,r=r._init;try{return k(r(c))}catch{}}return null}function B(r){return typeof r.tag=="number"?R(r):typeof r.name=="string"?r.name:null}function R(r){var c=r.type;switch(r.tag){case 31:return"Activity";case 24:return"Cache";case 9:return(c._context.displayName||"Context")+".Consumer";case 10:return(c.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return r=c.render,r=r.displayName||r.name||"",c.displayName||(r!==""?"ForwardRef("+r+")":"ForwardRef");case 7:return"Fragment";case 26:case 27:case 5:return c;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return k(c);case 8:return c===va?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 14:case 15:if(typeof c=="function")return c.displayName||c.name||null;if(typeof c=="string")return c;break;case 29:if(c=r._debugInfo,c!=null){for(var m=c.length-1;0<=m;m--)if(typeof c[m].name=="string")return c[m].name}if(r.return!==null)return R(r.return)}return null}function F(r){return{current:r}}function q(r,c){0>q6?console.error("Unexpected pop."):(c!==r7[q6]&&console.error("Unexpected Fiber popped."),r.current=Gl[q6],Gl[q6]=null,r7[q6]=null,q6--)}function $(r,c,m){q6++,Gl[q6]=r.current,r7[q6]=m,r.current=c}function Z(r){return r===null&&console.error("Expected host context to exist. This error is likely caused by a bug in React. Please file an issue."),r}function J(r,c){$($6,c,r),$(La,r,r),$(pr,null,r);var m=c.nodeType;switch(m){case 9:case 11:m=m===9?"#document":"#fragment",c=(c=c.documentElement)&&(c=c.namespaceURI)?g4(c):Va;break;default:if(m=c.tagName,c=c.namespaceURI)c=g4(c),c=Tr(c,m);else switch(m){case"svg":c=bc;break;case"math":c=ov;break;default:c=Va}}m=m.toLowerCase(),m=Pf(null,m),m={context:c,ancestorInfo:m},q(pr,r),$(pr,m,r)}function W(r){q(pr,r),q(La,r),q($6,r)}function ne(){return Z(pr.current)}function K(r){r.memoizedState!==null&&$(Nu,r,r);var c=Z(pr.current),m=r.type,H=Tr(c.context,m);m=Pf(c.ancestorInfo,m),H={context:H,ancestorInfo:m},c!==H&&($(La,r,r),$(pr,H,r))}function Y(r){La.current===r&&(q(pr,r),q(La,r)),Nu.current===r&&(q(Nu,r),gp._currentValue=xs)}function j(r){return typeof Symbol=="function"&&Symbol.toStringTag&&r[Symbol.toStringTag]||r.constructor.name||"Object"}function z(r){try{return ee(r),!1}catch{return!0}}function ee(r){return""+r}function U(r,c){if(z(r))return console.error("The provided `%s` attribute is an unsupported type %s. This value must be coerced to a string before using it here.",c,j(r)),ee(r)}function de(r,c){if(z(r))return console.error("The provided `%s` CSS property is an unsupported type %s. This value must be coerced to a string before using it here.",c,j(r)),ee(r)}function pe(r){if(z(r))return console.error("Form field values (value, checked, defaultValue, or defaultChecked props) must be strings, not %s. This value must be coerced to a string before using it here.",j(r)),ee(r)}function he(r){if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u")return!1;var c=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(c.isDisabled)return!0;if(!c.supportsFiber)return console.error("The installed version of React DevTools is too old and will not work with the current version of React. Please update React DevTools. https://react.dev/link/react-devtools"),!0;try{xa=c.inject(r),h3=c}catch(m){console.error("React instrumentation encountered an error: %s.",m)}return!!c.checkDCE}function se(r){if(typeof y6=="function"&&Sh(r),h3&&typeof h3.setStrictMode=="function")try{h3.setStrictMode(xa,r)}catch(c){S2||(S2=!0,console.error("React instrumentation encountered an error: %s",c))}}function fe(r){lt=r}function Se(){lt!==null&&typeof lt.markCommitStopped=="function"&<.markCommitStopped()}function Ee(r){lt!==null&&typeof lt.markComponentRenderStarted=="function"&<.markComponentRenderStarted(r)}function _e(){lt!==null&&typeof lt.markComponentRenderStopped=="function"&<.markComponentRenderStopped()}function ze(r){lt!==null&&typeof lt.markRenderStarted=="function"&<.markRenderStarted(r)}function ue(){lt!==null&&typeof lt.markRenderStopped=="function"&<.markRenderStopped()}function Pe(r,c){lt!==null&&typeof lt.markStateUpdateScheduled=="function"&<.markStateUpdateScheduled(r,c)}function Xe(r){return r>>>=0,r===0?32:31-(mr(r)/qb|0)|0}function ht(r){if(r&1)return"SyncHydrationLane";if(r&2)return"Sync";if(r&4)return"InputContinuousHydration";if(r&8)return"InputContinuous";if(r&16)return"DefaultHydration";if(r&32)return"Default";if(r&128)return"TransitionHydration";if(r&4194048)return"Transition";if(r&62914560)return"Retry";if(r&67108864)return"SelectiveHydration";if(r&134217728)return"IdleHydration";if(r&268435456)return"Idle";if(r&536870912)return"Offscreen";if(r&1073741824)return"Deferred"}function ot(r){var c=r&42;if(c!==0)return c;switch(r&-r){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return r&4194048;case 4194304:case 8388608:case 16777216:case 33554432:return r&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return console.error("Should have found matching lanes. This is a bug in React."),r}}function mt(r,c,m){var H=r.pendingLanes;if(H===0)return 0;var w=0,D=r.suspendedLanes,I=r.pingedLanes;r=r.warmLanes;var G=H&134217727;return G!==0?(H=G&~D,H!==0?w=ot(H):(I&=G,I!==0?w=ot(I):m||(m=G&~r,m!==0&&(w=ot(m))))):(G=H&~D,G!==0?w=ot(G):I!==0?w=ot(I):m||(m=H&~r,m!==0&&(w=ot(m)))),w===0?0:c!==0&&c!==w&&(c&D)===0&&(D=w&-w,m=c&-c,D>=m||D===32&&(m&4194048)!==0)?c:w}function zt(r,c){return(r.pendingLanes&~(r.suspendedLanes&~r.pingedLanes)&c)===0}function p1(r,c){switch(r){case 1:case 2:case 4:case 8:case 64:return c+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return c+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return console.error("Should have found matching lanes. This is a bug in React."),-1}}function st(){var r=Bu;return Bu<<=1,(Bu&4194048)===0&&(Bu=256),r}function ct(){var r=yr;return yr<<=1,(yr&62914560)===0&&(yr=4194304),r}function e2(r){for(var c=[],m=0;31>m;m++)c.push(r);return c}function f1(r,c){r.pendingLanes|=c,c!==268435456&&(r.suspendedLanes=0,r.pingedLanes=0,r.warmLanes=0)}function Ge(r,c,m,H,w,D){var I=r.pendingLanes;r.pendingLanes=m,r.suspendedLanes=0,r.pingedLanes=0,r.warmLanes=0,r.expiredLanes&=m,r.entangledLanes&=m,r.errorRecoveryDisabledLanes&=m,r.shellSuspendCounter=0;var G=r.entanglements,ie=r.expirationTimes,le=r.hiddenUpdates;for(m=I&~m;0<m;){var Ve=31-t3(m),Ne=1<<Ve;G[Ve]=0,ie[Ve]=-1;var Ce=le[Ve];if(Ce!==null)for(le[Ve]=null,Ve=0;Ve<Ce.length;Ve++){var Be=Ce[Ve];Be!==null&&(Be.lane&=-536870913)}m&=~Ne}H!==0&&me(r,H,0),D!==0&&w===0&&r.tag!==0&&(r.suspendedLanes|=D&~(I&~c))}function me(r,c,m){r.pendingLanes|=c,r.suspendedLanes&=~c;var H=31-t3(c);r.entangledLanes|=c,r.entanglements[H]=r.entanglements[H]|1073741824|m&4194090}function De(r,c){var m=r.entangledLanes|=c;for(r=r.entanglements;m;){var H=31-t3(m),w=1<<H;w&c|r[H]&c&&(r[H]|=c),m&=~w}}function Ye(r){switch(r){case 2:r=1;break;case 8:r=4;break;case 32:r=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:r=128;break;case 268435456:r=134217728;break;default:r=0}return r}function et(r,c,m){if(dn)for(r=r.pendingUpdatersLaneMap;0<m;){var H=31-t3(m),w=1<<H;r[H].add(c),m&=~w}}function tt(r,c){if(dn)for(var m=r.pendingUpdatersLaneMap,H=r.memoizedUpdaters;0<c;){var w=31-t3(c);r=1<<w,w=m[w],0<w.size&&(w.forEach(function(D){var I=D.alternate;I!==null&&H.has(I)||H.add(D)}),w.clear()),c&=~r}}function Tt(r){return r&=-r,$4<r?G6<r?(r&134217727)!==0?gr:Pu:G6:$4}function o1(){var r=b1.p;return r!==0?r:(r=window.event,r===void 0?gr:y0(r.type))}function Ct(r,c){var m=b1.p;try{return b1.p=r,c()}finally{b1.p=m}}function d1(r){delete r[S3],delete r[b4],delete r[ju],delete r[a7],delete r[Xl]}function m1(r){var c=r[S3];if(c)return c;for(var m=r.parentNode;m;){if(c=m[b0]||m[S3]){if(m=c.alternate,c.child!==null||m!==null&&m.child!==null)for(r=vu(r);r!==null;){if(m=r[S3])return m;r=vu(r)}return c}r=m,m=r.parentNode}return null}function it(r){if(r=r[S3]||r[b0]){var c=r.tag;if(c===5||c===6||c===13||c===26||c===27||c===3)return r}return null}function xt(r){var c=r.tag;if(c===5||c===26||c===27||c===6)return r.stateNode;throw Error("getNodeFromInstance: Invalid argument.")}function te(r){var c=r[Mh];return c||(c=r[Mh]={hoistableStyles:new Map,hoistableScripts:new Map}),c}function Le(r){r[Wl]=!0}function We(r,c){rt(r,c),rt(r+"Capture",c)}function rt(r,c){g6[r]&&console.error("EventRegistry: More than one plugin attempted to publish the same registration name, `%s`.",r),g6[r]=c;var m=r.toLowerCase();for(Iu[m]=r,r==="onDoubleClick"&&(Iu.ondblclick=r),r=0;r<c.length;r++)ba.add(c[r])}function nt(r,c){Fu[c.type]||c.onChange||c.onInput||c.readOnly||c.disabled||c.value==null||console.error(r==="select"?"You provided a `value` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultValue`. Otherwise, set `onChange`.":"You provided a `value` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultValue`. Otherwise, set either `onChange` or `readOnly`."),c.onChange||c.readOnly||c.disabled||c.checked==null||console.error("You provided a `checked` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultChecked`. Otherwise, set either `onChange` or `readOnly`.")}function yt(r){return U6.call(Yl,r)?!0:U6.call(zu,r)?!1:Ah.test(r)?Yl[r]=!0:(zu[r]=!0,console.error("Invalid attribute name: `%s`",r),!1)}function _t(r,c,m){if(yt(c)){if(!r.hasAttribute(c)){switch(typeof m){case"symbol":case"object":return m;case"function":return m;case"boolean":if(m===!1)return m}return m===void 0?void 0:null}return r=r.getAttribute(c),r===""&&m===!0?!0:(U(m,c),r===""+m?m:r)}}function Xt(r,c,m){if(yt(c))if(m===null)r.removeAttribute(c);else{switch(typeof m){case"undefined":case"function":case"symbol":r.removeAttribute(c);return;case"boolean":var H=c.toLowerCase().slice(0,5);if(H!=="data-"&&H!=="aria-"){r.removeAttribute(c);return}}U(m,c),r.setAttribute(c,""+m)}}function Ht(r,c,m){if(m===null)r.removeAttribute(c);else{switch(typeof m){case"undefined":case"function":case"symbol":case"boolean":r.removeAttribute(c);return}U(m,c),r.setAttribute(c,""+m)}}function C2(r,c,m,H){if(H===null)r.removeAttribute(m);else{switch(typeof H){case"undefined":case"function":case"symbol":case"boolean":r.removeAttribute(m);return}U(H,m),r.setAttributeNS(c,m,""+H)}}function D6(){}function _f(){if(o7===0){_h=console.log,Lg=console.info,Oh=console.warn,l7=console.error,xg=console.group,bg=console.groupCollapsed,Hg=console.groupEnd;var r={configurable:!0,enumerable:!0,value:D6,writable:!0};Object.defineProperties(console,{info:r,log:r,warn:r,error:r,group:r,groupCollapsed:r,groupEnd:r})}o7++}function R6(){if(o7--,o7===0){var r={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:Vt({},r,{value:_h}),info:Vt({},r,{value:Lg}),warn:Vt({},r,{value:Oh}),error:Vt({},r,{value:l7}),group:Vt({},r,{value:xg}),groupCollapsed:Vt({},r,{value:bg}),groupEnd:Vt({},r,{value:Hg})})}0>o7&&console.error("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}function $1(r){if(s7===void 0)try{throw Error()}catch(m){var c=m.stack.trim().match(/\n( *(at )?)/);s7=c&&c[1]||"",Kl=-1<m.stack.indexOf(`
|
|
454
454
|
at`)?" (<anonymous>)":-1<m.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
455
455
|
`+s7+r+Kl}function L3(r,c){if(!r||Jl)return"";var m=Ch.get(r);if(m!==void 0)return m;Jl=!0,m=Error.prepareStackTrace,Error.prepareStackTrace=void 0;var H=null;H=we.H,we.H=null,_f();try{var w={DetermineComponentFrameRoot:function(){try{if(c){var Ce=function(){throw Error()};if(Object.defineProperty(Ce.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(Ce,[])}catch(Qt){var Be=Qt}Reflect.construct(r,[],Ce)}else{try{Ce.call()}catch(Qt){Be=Qt}r.call(Ce.prototype)}}else{try{throw Error()}catch(Qt){Be=Qt}(Ce=r())&&typeof Ce.catch=="function"&&Ce.catch(function(){})}}catch(Qt){if(Qt&&Be&&typeof Qt.stack=="string")return[Qt.stack,Be.stack]}return[null,null]}};w.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var D=Object.getOwnPropertyDescriptor(w.DetermineComponentFrameRoot,"name");D&&D.configurable&&Object.defineProperty(w.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var I=w.DetermineComponentFrameRoot(),G=I[0],ie=I[1];if(G&&ie){var le=G.split(`
|
|
456
456
|
`),Ve=ie.split(`
|
|
@@ -569,7 +569,7 @@ https://react.dev/link/unsafe-component-lifecycles`,D,le,I!==null?`
|
|
|
569
569
|
`+I:"",G!==null?`
|
|
570
570
|
`+G:"",ie!==null?`
|
|
571
571
|
`+ie:""))}}D=c.stateNode,I=k(m)||"Component",D.render||(m.prototype&&typeof m.prototype.render=="function"?console.error("No `render` method found on the %s instance: did you accidentally return an object from the constructor?",I):console.error("No `render` method found on the %s instance: you may have forgotten to define `render`.",I)),!D.getInitialState||D.getInitialState.isReactClassApproved||D.state||console.error("getInitialState was defined on %s, a plain JavaScript class. This is only supported for classes created using React.createClass. Did you mean to define a state property instead?",I),D.getDefaultProps&&!D.getDefaultProps.isReactClassApproved&&console.error("getDefaultProps was defined on %s, a plain JavaScript class. This is only supported for classes created using React.createClass. Use a static property to define defaultProps instead.",I),D.contextType&&console.error("contextType was defined as an instance property on %s. Use a static property to define contextType instead.",I),m.childContextTypes&&!xP.has(m)&&(xP.add(m),console.error("%s uses the legacy childContextTypes API which was removed in React 19. Use React.createContext() instead. (https://react.dev/link/legacy-context)",I)),m.contextTypes&&!LP.has(m)&&(LP.add(m),console.error("%s uses the legacy contextTypes API which was removed in React 19. Use React.createContext() with static contextType instead. (https://react.dev/link/legacy-context)",I)),typeof D.componentShouldUpdate=="function"&&console.error("%s has a method called componentShouldUpdate(). Did you mean shouldComponentUpdate()? The name is phrased as a question because the function is expected to return a value.",I),m.prototype&&m.prototype.isPureReactComponent&&typeof D.shouldComponentUpdate<"u"&&console.error("%s has a method called shouldComponentUpdate(). shouldComponentUpdate should not be used when extending React.PureComponent. Please extend React.Component if shouldComponentUpdate is used.",k(m)||"A pure component"),typeof D.componentDidUnmount=="function"&&console.error("%s has a method called componentDidUnmount(). But there is no such lifecycle method. Did you mean componentWillUnmount()?",I),typeof D.componentDidReceiveProps=="function"&&console.error("%s has a method called componentDidReceiveProps(). But there is no such lifecycle method. If you meant to update the state in response to changing props, use componentWillReceiveProps(). If you meant to fetch data or run side-effects or mutations after React has updated the UI, use componentDidUpdate().",I),typeof D.componentWillRecieveProps=="function"&&console.error("%s has a method called componentWillRecieveProps(). Did you mean componentWillReceiveProps()?",I),typeof D.UNSAFE_componentWillRecieveProps=="function"&&console.error("%s has a method called UNSAFE_componentWillRecieveProps(). Did you mean UNSAFE_componentWillReceiveProps()?",I),G=D.props!==H,D.props!==void 0&&G&&console.error("When calling super() in `%s`, make sure to pass up the same props that your component's constructor was passed.",I),D.defaultProps&&console.error("Setting defaultProps as an instance property on %s is not supported and will be ignored. Instead, define defaultProps as a static property on %s.",I,I),typeof D.getSnapshotBeforeUpdate!="function"||typeof D.componentDidUpdate=="function"||mP.has(m)||(mP.add(m),console.error("%s: getSnapshotBeforeUpdate() should be used with componentDidUpdate(). This component defines getSnapshotBeforeUpdate() only.",k(m))),typeof D.getDerivedStateFromProps=="function"&&console.error("%s: getDerivedStateFromProps() is defined as an instance method and will be ignored. Instead, declare it as a static method.",I),typeof D.getDerivedStateFromError=="function"&&console.error("%s: getDerivedStateFromError() is defined as an instance method and will be ignored. Instead, declare it as a static method.",I),typeof m.getSnapshotBeforeUpdate=="function"&&console.error("%s: getSnapshotBeforeUpdate() is defined as a static method and will be ignored. Instead, declare it as an instance method.",I),(G=D.state)&&(typeof G!="object"||U2(G))&&console.error("%s.state: must be set to an object or null",I),typeof D.getChildContext=="function"&&typeof m.childContextTypes!="object"&&console.error("%s.getChildContext(): childContextTypes must be defined in order to use getChildContext().",I),D=c.stateNode,D.props=H,D.state=c.memoizedState,D.refs={},Yr(c),I=m.contextType,D.context=typeof I=="object"&&I!==null?t2(I):T7,D.state===H&&(I=k(m)||"Component",gP.has(I)||(gP.add(I),console.error("%s: It is not recommended to assign props directly to state because updates to props won't be reflected in state. In most cases, it is better to use props directly.",I))),c.mode&H4&&br.recordLegacyContextWarning(c,D),br.recordUnsafeLifecycleWarnings(c,D),D.state=c.memoizedState,I=m.getDerivedStateFromProps,typeof I=="function"&&(gl(c,m,I,H),D.state=c.memoizedState),typeof m.getDerivedStateFromProps=="function"||typeof D.getSnapshotBeforeUpdate=="function"||typeof D.UNSAFE_componentWillMount!="function"&&typeof D.componentWillMount!="function"||(I=D.state,typeof D.componentWillMount=="function"&&D.componentWillMount(),typeof D.UNSAFE_componentWillMount=="function"&&D.UNSAFE_componentWillMount(),I!==D.state&&(console.error("%s.componentWillMount(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.",R(c)||"Component"),dH.enqueueReplaceState(D,D.state,null)),Kr(c,H,D,w),mo(),D.state=c.memoizedState),typeof D.componentDidMount=="function"&&(c.flags|=4194308),(c.mode&xr)!==c2&&(c.flags|=134217728),D=!0}else if(r===null){D=c.stateNode;var Ve=c.memoizedProps;G=i0(m,Ve),D.props=G;var Ne=D.context;ie=m.contextType,I=T7,typeof ie=="object"&&ie!==null&&(I=t2(ie)),le=m.getDerivedStateFromProps,ie=typeof le=="function"||typeof D.getSnapshotBeforeUpdate=="function",Ve=c.pendingProps!==Ve,ie||typeof D.UNSAFE_componentWillReceiveProps!="function"&&typeof D.componentWillReceiveProps!="function"||(Ve||Ne!==I)&&md(c,D,H,I),Q7=!1;var Ce=c.memoizedState;D.state=Ce,Kr(c,H,D,w),mo(),Ne=c.memoizedState,Ve||Ce!==Ne||Q7?(typeof le=="function"&&(gl(c,m,le,H),Ne=c.memoizedState),(G=Q7||U9(c,m,G,H,Ce,Ne,I))?(ie||typeof D.UNSAFE_componentWillMount!="function"&&typeof D.componentWillMount!="function"||(typeof D.componentWillMount=="function"&&D.componentWillMount(),typeof D.UNSAFE_componentWillMount=="function"&&D.UNSAFE_componentWillMount()),typeof D.componentDidMount=="function"&&(c.flags|=4194308),(c.mode&xr)!==c2&&(c.flags|=134217728)):(typeof D.componentDidMount=="function"&&(c.flags|=4194308),(c.mode&xr)!==c2&&(c.flags|=134217728),c.memoizedProps=H,c.memoizedState=Ne),D.props=H,D.state=Ne,D.context=I,D=G):(typeof D.componentDidMount=="function"&&(c.flags|=4194308),(c.mode&xr)!==c2&&(c.flags|=134217728),D=!1)}else{D=c.stateNode,il(r,c),I=c.memoizedProps,ie=i0(m,I),D.props=ie,le=c.pendingProps,Ce=D.context,Ne=m.contextType,G=T7,typeof Ne=="object"&&Ne!==null&&(G=t2(Ne)),Ve=m.getDerivedStateFromProps,(Ne=typeof Ve=="function"||typeof D.getSnapshotBeforeUpdate=="function")||typeof D.UNSAFE_componentWillReceiveProps!="function"&&typeof D.componentWillReceiveProps!="function"||(I!==le||Ce!==G)&&md(c,D,H,G),Q7=!1,Ce=c.memoizedState,D.state=Ce,Kr(c,H,D,w),mo();var Be=c.memoizedState;I!==le||Ce!==Be||Q7||r!==null&&r.dependencies!==null&&tl(r.dependencies)?(typeof Ve=="function"&&(gl(c,m,Ve,H),Be=c.memoizedState),(ie=Q7||U9(c,m,ie,H,Ce,Be,G)||r!==null&&r.dependencies!==null&&tl(r.dependencies))?(Ne||typeof D.UNSAFE_componentWillUpdate!="function"&&typeof D.componentWillUpdate!="function"||(typeof D.componentWillUpdate=="function"&&D.componentWillUpdate(H,Be,G),typeof D.UNSAFE_componentWillUpdate=="function"&&D.UNSAFE_componentWillUpdate(H,Be,G)),typeof D.componentDidUpdate=="function"&&(c.flags|=4),typeof D.getSnapshotBeforeUpdate=="function"&&(c.flags|=1024)):(typeof D.componentDidUpdate!="function"||I===r.memoizedProps&&Ce===r.memoizedState||(c.flags|=4),typeof D.getSnapshotBeforeUpdate!="function"||I===r.memoizedProps&&Ce===r.memoizedState||(c.flags|=1024),c.memoizedProps=H,c.memoizedState=Be),D.props=H,D.state=Be,D.context=G,D=ie):(typeof D.componentDidUpdate!="function"||I===r.memoizedProps&&Ce===r.memoizedState||(c.flags|=4),typeof D.getSnapshotBeforeUpdate!="function"||I===r.memoizedProps&&Ce===r.memoizedState||(c.flags|=1024),D=!1)}if(G=D,xl(r,c),I=(c.flags&128)!==0,G||I){if(G=c.stateNode,zr(c),I&&typeof m.getDerivedStateFromError!="function")m=null,hn=-1;else{if(Ee(c),m=JB(G),c.mode&H4){se(!0);try{JB(G)}finally{se(!1)}}_e()}c.flags|=1,r!==null&&I?(c.child=Tc(c,r.child,null,w),c.child=Tc(c,null,m,w)):q2(r,c,m,w),c.memoizedState=G.state,r=c.child}else r=F6(r,c,w);return w=c.stateNode,D&&w.props!==H&&(dc||console.error("It looks like %s is reassigning its own `this.props` while rendering. This is not supported and can lead to confusing bugs.",R(c)||"a component"),dc=!0),r}function Ld(r,c,m,H){return Qo(),c.flags|=256,q2(r,c,m,H),c.child}function bl(r,c){c&&c.childContextTypes&&console.error(`childContextTypes cannot be defined on a function component.
|
|
572
|
-
%s.childContextTypes = ...`,c.displayName||c.name||"Component"),typeof c.getDerivedStateFromProps=="function"&&(r=k(c)||"Unknown",_P[r]||(console.error("%s: Function components do not support getDerivedStateFromProps.",r),_P[r]=!0)),typeof c.contextType=="object"&&c.contextType!==null&&(c=k(c)||"Unknown",MP[c]||(console.error("%s: Function components do not support contextType.",c),MP[c]=!0))}function J9(r){return{baseLanes:r,cachePool:id()}}function xd(r,c,m){return r=r!==null?r.childLanes&~m:0,c&&(r|=b6),r}function bd(r,c,m){var H,w=c.pendingProps;i(c)&&(c.flags|=128);var D=!1,I=(c.flags&128)!==0;if((H=I)||(H=r!==null&&r.memoizedState===null?!1:(g3.current&ip)!==0),H&&(D=!0,c.flags&=-129),H=(c.flags&32)!==0,c.flags&=-33,r===null){if(L1){if(D?Q4(c):sn(c),L1){var G=k2,ie;if(!(ie=!G)){e:{var le=G;for(ie=S0;le.nodeType!==8;){if(!ie){ie=null;break e}if(le=v4(le.nextSibling),le===null){ie=null;break e}}ie=le}ie!==null?(Kn(),c.memoizedState={dehydrated:ie,treeContext:as!==null?{id:Ea,overflow:Sa}:null,retryLane:536870912,hydrationErrors:null},le=p(18,null,null,c2),le.stateNode=ie,le.return=c,c.child=le,G4=c,k2=null,ie=!0):ie=!1,ie=!ie}ie&&(To(c,G),Gr(c))}if(G=c.memoizedState,G!==null&&(G=G.dehydrated,G!==null))return p0(G)?c.lanes=32:c.lanes=536870912,null;f4(c)}return G=w.children,w=w.fallback,D?(sn(c),D=c.mode,G=Hl({mode:"hidden",children:G},D),w=rn(w,D,m,null),G.return=c,w.return=c,G.sibling=w,c.child=G,D=c.child,D.memoizedState=J9(m),D.childLanes=xd(r,H,m),c.memoizedState=yH,w):(Q4(c),eu(c,G))}var Ve=r.memoizedState;if(Ve!==null&&(G=Ve.dehydrated,G!==null)){if(I)c.flags&256?(Q4(c),c.flags&=-257,c=El(r,c,m)):c.memoizedState!==null?(sn(c),c.child=r.child,c.flags|=128,c=null):(sn(c),D=w.fallback,G=c.mode,w=Hl({mode:"visible",children:w.children},G),D=rn(D,G,m,null),D.flags|=2,w.return=c,D.return=c,w.sibling=D,c.child=w,Tc(c,r.child,null,m),w=c.child,w.memoizedState=J9(m),w.childLanes=xd(r,H,m),c.memoizedState=yH,c=D);else if(Q4(c),L1&&console.error("We should not be hydrating here. This is a bug in React. Please file a bug."),p0(G)){if(H=G.nextSibling&&G.nextSibling.dataset,H){ie=H.dgst;var Ne=H.msg;le=H.stck;var Ce=H.cstck}G=Ne,H=ie,w=le,ie=D=Ce,D=Error(G||"The server could not finish this Suspense boundary, likely due to an error during server rendering. Switched to client rendering."),D.stack=w||"",D.digest=H,H=ie===void 0?null:ie,w={value:D,source:null,stack:H},typeof H=="string"&&Kb.set(D,w),fo(w),c=El(r,c,m)}else if(M3||Z5(r,c,m,!1),H=(m&r.childLanes)!==0,M3||H){if(H=a2,H!==null&&(w=m&-m,w=(w&42)!==0?1:Ye(w),w=(w&(H.suspendedLanes|m))!==0?0:w,w!==0&&w!==Ve.retryLane))throw Ve.retryLane=w,o4(r,w),Jt(H,r,w),EP;G.data===wa||uu(),c=El(r,c,m)}else G.data===wa?(c.flags|=192,c.child=r.child,c=null):(r=Ve.treeContext,k2=v4(G.nextSibling),G4=c,L1=!0,os=null,Ma=!1,n5=null,S0=!1,r!==null&&(Kn(),e5[t5++]=Ea,e5[t5++]=Sa,e5[t5++]=as,Ea=r.id,Sa=r.overflow,as=c),c=eu(c,w.children),c.flags|=4096);return c}return D?(sn(c),D=w.fallback,G=c.mode,ie=r.child,le=ie.sibling,w=N6(ie,{mode:"hidden",children:w.children}),w.subtreeFlags=ie.subtreeFlags&65011712,le!==null?D=N6(le,D):(D=rn(D,G,m,null),D.flags|=2),D.return=c,w.return=c,w.sibling=D,c.child=w,w=D,D=c.child,G=r.child.memoizedState,G===null?G=J9(m):(ie=G.cachePool,ie!==null?(le=m3._currentValue,ie=ie.parent!==le?{parent:le,pool:le}:ie):ie=id(),G={baseLanes:G.baseLanes|m,cachePool:ie}),D.memoizedState=G,D.childLanes=xd(r,H,m),c.memoizedState=yH,w):(Q4(c),m=r.child,r=m.sibling,m=N6(m,{mode:"visible",children:w.children}),m.return=c,m.sibling=null,r!==null&&(H=c.deletions,H===null?(c.deletions=[r],c.flags|=16):H.push(r)),c.child=m,c.memoizedState=null,m)}function eu(r,c){return c=Hl({mode:"visible",children:c},r.mode),c.return=r,r.child=c}function Hl(r,c){return r=p(22,r,null,c),r.lanes=0,r.stateNode={_visibility:Cg,_pendingMarkers:null,_retryCache:null,_transitions:null},r}function El(r,c,m){return Tc(c,r.child,null,m),r=eu(c,c.pendingProps.children),r.flags|=2,c.memoizedState=null,r}function Hd(r,c,m){r.lanes|=c;var H=r.alternate;H!==null&&(H.lanes|=c),ed(r.return,c,m)}function Ed(r,c){var m=U2(r);return r=!m&&typeof V(r)=="function",m||r?(m=m?"array":"iterable",console.error("A nested %s was passed to row #%s in <SuspenseList />. Wrap it in an additional SuspenseList to configure its revealOrder: <SuspenseList revealOrder=...> ... <SuspenseList revealOrder=...>{%s}</SuspenseList> ... </SuspenseList>",m,c,m),!1):!0}function tu(r,c,m,H,w){var D=r.memoizedState;D===null?r.memoizedState={isBackwards:c,rendering:null,renderingStartTime:0,last:H,tail:m,tailMode:w}:(D.isBackwards=c,D.rendering=null,D.renderingStartTime=0,D.last=H,D.tail=m,D.tailMode=w)}function Sd(r,c,m){var H=c.pendingProps,w=H.revealOrder,D=H.tail;if(H=H.children,w!==void 0&&w!=="forwards"&&w!=="backwards"&&w!=="together"&&!OP[w])if(OP[w]=!0,typeof w=="string")switch(w.toLowerCase()){case"together":case"forwards":case"backwards":console.error('"%s" is not a valid value for revealOrder on <SuspenseList />. Use lowercase "%s" instead.',w,w.toLowerCase());break;case"forward":case"backward":console.error('"%s" is not a valid value for revealOrder on <SuspenseList />. React uses the -s suffix in the spelling. Use "%ss" instead.',w,w.toLowerCase());break;default:console.error('"%s" is not a supported revealOrder on <SuspenseList />. Did you mean "together", "forwards" or "backwards"?',w)}else console.error('%s is not a supported value for revealOrder on <SuspenseList />. Did you mean "together", "forwards" or "backwards"?',w);D===void 0||mH[D]||(D!=="collapsed"&&D!=="hidden"?(mH[D]=!0,console.error('"%s" is not a supported value for tail on <SuspenseList />. Did you mean "collapsed" or "hidden"?',D)):w!=="forwards"&&w!=="backwards"&&(mH[D]=!0,console.error('<SuspenseList tail="%s" /> is only valid if revealOrder is "forwards" or "backwards". Did you mean to specify revealOrder="forwards"?',D)));e:if((w==="forwards"||w==="backwards")&&H!==void 0&&H!==null&&H!==!1)if(U2(H)){for(var I=0;I<H.length;I++)if(!Ed(H[I],I))break e}else if(I=V(H),typeof I=="function"){if(I=I.call(H))for(var G=I.next(),ie=0;!G.done;G=I.next()){if(!Ed(G.value,ie))break e;ie++}}else console.error('A single row was passed to a <SuspenseList revealOrder="%s" />. This is not useful since it needs multiple rows. Did you mean to pass multiple children or an array?',w);if(q2(r,c,H,m),H=g3.current,(H&ip)!==0)H=H&Qc|ip,c.flags|=128;else{if(r!==null&&(r.flags&128)!==0)e:for(r=c.child;r!==null;){if(r.tag===13)r.memoizedState!==null&&Hd(r,m,c);else if(r.tag===19)Hd(r,m,c);else if(r.child!==null){r.child.return=r,r=r.child;continue}if(r===c)break e;for(;r.sibling===null;){if(r.return===null||r.return===c)break e;r=r.return}r.sibling.return=r.return,r=r.sibling}H&=Qc}switch($(g3,H,c),w){case"forwards":for(m=c.child,w=null;m!==null;)r=m.alternate,r!==null&&$9(r)===null&&(w=m),m=m.sibling;m=w,m===null?(w=c.child,c.child=null):(w=m.sibling,m.sibling=null),tu(c,!1,w,m,D);break;case"backwards":for(m=null,w=c.child,c.child=null;w!==null;){if(r=w.alternate,r!==null&&$9(r)===null){c.child=w;break}r=w.sibling,w.sibling=m,m=w,w=r}tu(c,!0,m,null,D);break;case"together":tu(c,!1,null,null,void 0);break;default:c.memoizedState=null}return c.child}function F6(r,c,m){if(r!==null&&(c.dependencies=r.dependencies),hn=-1,p7|=c.lanes,(m&c.childLanes)===0)if(r!==null){if(Z5(r,c,m,!1),(m&c.childLanes)===0)return null}else return null;if(r!==null&&c.child!==r.child)throw Error("Resuming work not yet implemented.");if(c.child!==null){for(r=c.child,m=N6(r,r.pendingProps),c.child=m,m.return=c;r.sibling!==null;)r=r.sibling,m=m.sibling=N6(r,r.pendingProps),m.return=c;m.sibling=null}return c.child}function Md(r,c){return(r.lanes&c)!==0?!0:(r=r.dependencies,!!(r!==null&&tl(r)))}function Iy(r,c,m){switch(c.tag){case 3:J(c,c.stateNode.containerInfo),Zr(c,m3,r.memoizedState.cache),Qo();break;case 27:case 5:K(c);break;case 4:J(c,c.stateNode.containerInfo);break;case 10:Zr(c,c.type,c.memoizedProps.value);break;case 12:(m&c.childLanes)!==0&&(c.flags|=4),c.flags|=2048;var H=c.stateNode;H.effectDuration=-0,H.passiveEffectDuration=-0;break;case 13:if(H=c.memoizedState,H!==null)return H.dehydrated!==null?(Q4(c),c.flags|=128,null):(m&c.child.childLanes)!==0?bd(r,c,m):(Q4(c),r=F6(r,c,m),r!==null?r.sibling:null);Q4(c);break;case 19:var w=(r.flags&128)!==0;if(H=(m&c.childLanes)!==0,H||(Z5(r,c,m,!1),H=(m&c.childLanes)!==0),w){if(H)return Sd(r,c,m);c.flags|=128}if(w=c.memoizedState,w!==null&&(w.rendering=null,w.tail=null,w.lastEffect=null),$(g3,g3.current,c),H)break;return null;case 22:case 23:return c.lanes=0,Y9(r,c,m);case 24:Zr(c,m3,r.memoizedState.cache)}return F6(r,c,m)}function a0(r,c,m){if(c._debugNeedsRemount&&r!==null){m=S9(c.type,c.key,c.pendingProps,c._debugOwner||null,c.mode,c.lanes),m._debugStack=c._debugStack,m._debugTask=c._debugTask;var H=c.return;if(H===null)throw Error("Cannot swap the root fiber.");if(r.alternate=null,c.alternate=null,m.index=c.index,m.sibling=c.sibling,m.return=c.return,m.ref=c.ref,m._debugInfo=c._debugInfo,c===H.child)H.child=m;else{var w=H.child;if(w===null)throw Error("Expected parent to have a child.");for(;w.sibling!==c;)if(w=w.sibling,w===null)throw Error("Expected to find the previous sibling.");w.sibling=m}return c=H.deletions,c===null?(H.deletions=[r],H.flags|=16):c.push(r),m.flags|=2,m}if(r!==null)if(r.memoizedProps!==c.pendingProps||c.type!==r.type)M3=!0;else{if(!Md(r,m)&&(c.flags&128)===0)return M3=!1,Iy(r,c,m);M3=(r.flags&131072)!==0}else M3=!1,(H=L1)&&(Kn(),H=(c.flags&1048576)!==0),H&&(H=c.index,Kn(),Yf(c,Vg,H));switch(c.lanes=0,c.tag){case 16:e:if(H=c.pendingProps,r=d7(c.elementType),c.type=r,typeof r=="function")E9(r)?(H=i0(r,H),c.tag=1,c.type=r=Zi(r),c=vd(null,c,r,H,m)):(c.tag=0,bl(c,r),c.type=r=Zi(r),c=K9(null,c,r,H,m));else{if(r!=null){if(w=r.$$typeof,w===v0){c.tag=11,c.type=r=Gf(r),c=I6(null,c,r,H,m);break e}else if(w===Ru){c.tag=14,c=Ll(null,c,r,H,m);break e}}throw c="",r!==null&&typeof r=="object"&&r.$$typeof===q4&&(c=" Did you wrap a component in React.lazy() more than once?"),r=k(r)||r,Error("Element type is invalid. Received a promise that resolves to: "+r+". Lazy element type must resolve to a class or function."+c)}return c;case 0:return K9(r,c,c.type,c.pendingProps,m);case 1:return H=c.type,w=i0(H,c.pendingProps),vd(r,c,H,w,m);case 3:e:{if(J(c,c.stateNode.containerInfo),r===null)throw Error("Should have a current fiber. This is a bug in React.");H=c.pendingProps;var D=c.memoizedState;w=D.element,il(r,c),Kr(c,H,null,m);var I=c.memoizedState;if(H=I.cache,Zr(c,m3,H),H!==D.cache&&N3(c,[m3],m,!0),mo(),H=I.element,D.isDehydrated)if(D={element:H,isDehydrated:!1,cache:I.cache},c.updateQueue.baseState=D,c.memoizedState=D,c.flags&256){c=Ld(r,c,H,m);break e}else if(H!==w){w=a4(Error("This root received an early update, before anything was able hydrate. Switched the entire root to client rendering."),c),fo(w),c=Ld(r,c,H,m);break e}else{switch(r=c.stateNode.containerInfo,r.nodeType){case 9:r=r.body;break;default:r=r.nodeName==="HTML"?r.ownerDocument.body:r}for(k2=v4(r.firstChild),G4=c,L1=!0,os=null,Ma=!1,n5=null,S0=!0,r=fP(c,null,H,m),c.child=r;r;)r.flags=r.flags&-3|4096,r=r.sibling}else{if(Qo(),H===w){c=F6(r,c,m);break e}q2(r,c,H,m)}c=c.child}return c;case 26:return xl(r,c),r===null?(r=Bl(c.type,null,c.pendingProps,null))?c.memoizedState=r:L1||(r=c.type,m=c.pendingProps,H=Z($6.current),H=g1(H).createElement(r),H[S3]=c,H[b4]=m,e3(H,r,m),ve(H),c.stateNode=H):c.memoizedState=Bl(c.type,r.memoizedProps,c.pendingProps,r.memoizedState),null;case 27:return K(c),r===null&&L1&&(H=Z($6.current),w=ne(),H=c.stateNode=L4(c.type,c.pendingProps,H,w,!1),Ma||(w=t1(H,c.type,c.pendingProps,w),w!==null&&(Ki(c,0).serverProps=w)),G4=c,S0=!0,w=k2,$2(c.type)?(IH=w,k2=v4(H.firstChild)):k2=w),q2(r,c,c.pendingProps.children,m),xl(r,c),r===null&&(c.flags|=4194304),c.child;case 5:return r===null&&L1&&(D=ne(),H=d9(c.type,D.ancestorInfo),w=k2,(I=!w)||(I=f3(w,c.type,c.pendingProps,S0),I!==null?(c.stateNode=I,Ma||(D=t1(I,c.type,c.pendingProps,D),D!==null&&(Ki(c,0).serverProps=D)),G4=c,k2=v4(I.firstChild),S0=!1,D=!0):D=!1,I=!D),I&&(H&&To(c,w),Gr(c))),K(c),w=c.type,D=c.pendingProps,I=r!==null?r.memoizedProps:null,H=D.children,Q0(w,D)?H=null:I!==null&&Q0(w,I)&&(c.flags|=32),c.memoizedState!==null&&(w=go(r,c,on,null,null,m),gp._currentValue=w),xl(r,c),q2(r,c,H,m),c.child;case 6:return r===null&&L1&&(r=c.pendingProps,m=ne(),H=m.ancestorInfo.current,r=H!=null?lo(r,H.tag,m.ancestorInfo.implicitRootScope):!0,m=k2,(H=!m)||(H=h0(m,c.pendingProps,S0),H!==null?(c.stateNode=H,G4=c,k2=null,H=!0):H=!1,H=!H),H&&(r&&To(c,m),Gr(c))),null;case 13:return bd(r,c,m);case 4:return J(c,c.stateNode.containerInfo),H=c.pendingProps,r===null?c.child=Tc(c,null,H,m):q2(r,c,H,m),c.child;case 11:return I6(r,c,c.type,c.pendingProps,m);case 7:return q2(r,c,c.pendingProps,m),c.child;case 8:return q2(r,c,c.pendingProps.children,m),c.child;case 12:return c.flags|=4,c.flags|=2048,H=c.stateNode,H.effectDuration=-0,H.passiveEffectDuration=-0,q2(r,c,c.pendingProps.children,m),c.child;case 10:return H=c.type,w=c.pendingProps,D=w.value,"value"in w||CP||(CP=!0,console.error("The `value` prop is required for the `<Context.Provider>`. Did you misspell it or forget to pass it?")),Zr(c,H,D),q2(r,c,w.children,m),c.child;case 9:return w=c.type._context,H=c.pendingProps.children,typeof H!="function"&&console.error("A context consumer was rendered with multiple children, or a child that isn't a function. A context consumer expects a single child that is a function. If you did pass a function, make sure there is no trailing or leading whitespace around it."),Xr(c),w=t2(w),Ee(c),H=TH(H,w,void 0),_e(),c.flags|=1,q2(r,c,H,m),c.child;case 14:return Ll(r,c,c.type,c.pendingProps,m);case 15:return W9(r,c,c.type,c.pendingProps,m);case 19:return Sd(r,c,m);case 31:return H=c.pendingProps,m=c.mode,H={mode:H.mode,children:H.children},r===null?(r=Hl(H,m),r.ref=c.ref,c.child=r,r.return=c,c=r):(r=N6(r.child,H),r.ref=c.ref,c.child=r,r.return=c,c=r),c;case 22:return Y9(r,c,m);case 24:return Xr(c),H=t2(m3),r===null?(w=rd(),w===null&&(w=a2,D=td(),w.pooledCache=D,an(D),D!==null&&(w.pooledCacheLanes|=m),w=D),c.memoizedState={parent:H,cache:w},Yr(c),Zr(c,m3,w)):((r.lanes&m)!==0&&(il(r,c),Kr(c,null,null,m),mo()),w=r.memoizedState,D=c.memoizedState,w.parent!==H?(w={parent:H,cache:H},c.memoizedState=w,c.lanes===0&&(c.memoizedState=c.updateQueue.baseState=w),Zr(c,m3,H)):(H=D.cache,Zr(c,m3,H),H!==w.cache&&N3(c,[m3],m,!0))),q2(r,c,c.pendingProps.children,m),c.child;case 29:throw c.pendingProps}throw Error("Unknown unit of work tag ("+c.tag+"). This error is likely caused by a bug in React. Please file an issue.")}function un(r){r.flags|=4}function Ad(r,c){if(c.type!=="stylesheet"||(c.state.loading&l5)!==Ls)r.flags&=-16777217;else if(r.flags|=16777216,!ph(c)){if(c=o5.current,c!==null&&((l1&4194048)===l1?A0!==null:(l1&62914560)!==l1&&(l1&536870912)===0||c!==A0))throw ep=iH,IB;r.flags|=8192}}function ua(r,c){c!==null&&(r.flags|=4),r.flags&16384&&(c=r.tag!==22?ct():536870912,r.lanes|=c,hs|=c)}function ir(r,c){if(!L1)switch(r.tailMode){case"hidden":c=r.tail;for(var m=null;c!==null;)c.alternate!==null&&(m=c),c=c.sibling;m===null?r.tail=null:m.sibling=null;break;case"collapsed":m=r.tail;for(var H=null;m!==null;)m.alternate!==null&&(H=m),m=m.sibling;H===null?c||r.tail===null?r.tail=null:r.tail.sibling=null:H.sibling=null}}function n2(r){var c=r.alternate!==null&&r.alternate.child===r.child,m=0,H=0;if(c)if((r.mode&I3)!==c2){for(var w=r.selfBaseDuration,D=r.child;D!==null;)m|=D.lanes|D.childLanes,H|=D.subtreeFlags&65011712,H|=D.flags&65011712,w+=D.treeBaseDuration,D=D.sibling;r.treeBaseDuration=w}else for(w=r.child;w!==null;)m|=w.lanes|w.childLanes,H|=w.subtreeFlags&65011712,H|=w.flags&65011712,w.return=r,w=w.sibling;else if((r.mode&I3)!==c2){w=r.actualDuration,D=r.selfBaseDuration;for(var I=r.child;I!==null;)m|=I.lanes|I.childLanes,H|=I.subtreeFlags,H|=I.flags,w+=I.actualDuration,D+=I.treeBaseDuration,I=I.sibling;r.actualDuration=w,r.treeBaseDuration=D}else for(w=r.child;w!==null;)m|=w.lanes|w.childLanes,H|=w.subtreeFlags,H|=w.flags,w.return=r,w=w.sibling;return r.subtreeFlags|=H,r.childLanes=m,c}function Fy(r,c,m){var H=c.pendingProps;switch(Yi(c),c.tag){case 31:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return n2(c),null;case 1:return n2(c),null;case 3:return m=c.stateNode,H=null,r!==null&&(H=r.memoizedState.cache),c.memoizedState.cache!==H&&(c.flags|=2048),G5(m3,c),W(c),m.pendingContext&&(m.context=m.pendingContext,m.pendingContext=null),(r===null||r.child===null)&&(Ji(c)?(Ny(),un(c)):r===null||r.memoizedState.isDehydrated&&(c.flags&256)===0||(c.flags|=1024,Jf())),n2(c),null;case 26:return m=c.memoizedState,r===null?(un(c),m!==null?(n2(c),Ad(c,m)):(n2(c),c.flags&=-16777217)):m?m!==r.memoizedState?(un(c),n2(c),Ad(c,m)):(n2(c),c.flags&=-16777217):(r.memoizedProps!==H&&un(c),n2(c),c.flags&=-16777217),null;case 27:Y(c),m=Z($6.current);var w=c.type;if(r!==null&&c.stateNode!=null)r.memoizedProps!==H&&un(c);else{if(!H){if(c.stateNode===null)throw Error("We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue.");return n2(c),null}r=ne(),Ji(c)?Kf(c):(r=L4(w,H,m,r,!0),c.stateNode=r,un(c))}return n2(c),null;case 5:if(Y(c),m=c.type,r!==null&&c.stateNode!=null)r.memoizedProps!==H&&un(c);else{if(!H){if(c.stateNode===null)throw Error("We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue.");return n2(c),null}if(w=ne(),Ji(c))Kf(c);else{switch(r=Z($6.current),d9(m,w.ancestorInfo),w=w.context,r=g1(r),w){case bc:r=r.createElementNS(Lr,m);break;case ov:r=r.createElementNS(Gu,m);break;default:switch(m){case"svg":r=r.createElementNS(Lr,m);break;case"math":r=r.createElementNS(Gu,m);break;case"script":r=r.createElement("div"),r.innerHTML="<script><\/script>",r=r.removeChild(r.firstChild);break;case"select":r=typeof H.is=="string"?r.createElement("select",{is:H.is}):r.createElement("select"),H.multiple?r.multiple=!0:H.size&&(r.size=H.size);break;default:r=typeof H.is=="string"?r.createElement(m,{is:H.is}):r.createElement(m),m.indexOf("-")===-1&&(m!==m.toLowerCase()&&console.error("<%s /> is using incorrect casing. Use PascalCase for React components, or lowercase for HTML elements.",m),Object.prototype.toString.call(r)!=="[object HTMLUnknownElement]"||U6.call(WP,m)||(WP[m]=!0,console.error("The tag <%s> is unrecognized in this browser. If you meant to render a React component, start its name with an uppercase letter.",m)))}}r[S3]=c,r[b4]=H;e:for(w=c.child;w!==null;){if(w.tag===5||w.tag===6)r.appendChild(w.stateNode);else if(w.tag!==4&&w.tag!==27&&w.child!==null){w.child.return=w,w=w.child;continue}if(w===c)break e;for(;w.sibling===null;){if(w.return===null||w.return===c)break e;w=w.return}w.sibling.return=w.return,w=w.sibling}c.stateNode=r;e:switch(e3(r,m,H),m){case"button":case"input":case"select":case"textarea":r=!!H.autoFocus;break e;case"img":r=!0;break e;default:r=!1}r&&un(c)}}return n2(c),c.flags&=-16777217,null;case 6:if(r&&c.stateNode!=null)r.memoizedProps!==H&&un(c);else{if(typeof H!="string"&&c.stateNode===null)throw Error("We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue.");if(r=Z($6.current),m=ne(),Ji(c)){r=c.stateNode,m=c.memoizedProps,w=!Ma,H=null;var D=G4;if(D!==null)switch(D.tag){case 3:w&&(w=Qh(r,m,H),w!==null&&(Ki(c,0).serverProps=w));break;case 27:case 5:H=D.memoizedProps,w&&(w=Qh(r,m,H),w!==null&&(Ki(c,0).serverProps=w))}r[S3]=c,r=!!(r.nodeValue===m||H!==null&&H.suppressHydrationWarning===!0||ma(r.nodeValue,m)),r||Gr(c)}else w=m.ancestorInfo.current,w!=null&&lo(H,w.tag,m.ancestorInfo.implicitRootScope),r=g1(r).createTextNode(H),r[S3]=c,c.stateNode=r}return n2(c),null;case 13:if(H=c.memoizedState,r===null||r.memoizedState!==null&&r.memoizedState.dehydrated!==null){if(w=Ji(c),H!==null&&H.dehydrated!==null){if(r===null){if(!w)throw Error("A dehydrated suspense component was completed without a hydrated node. This is probably a bug in React.");if(w=c.memoizedState,w=w!==null?w.dehydrated:null,!w)throw Error("Expected to have a hydrated suspense instance. This error is likely caused by a bug in React. Please file an issue.");w[S3]=c,n2(c),(c.mode&I3)!==c2&&H!==null&&(w=c.child,w!==null&&(c.treeBaseDuration-=w.treeBaseDuration))}else Ny(),Qo(),(c.flags&128)===0&&(c.memoizedState=null),c.flags|=4,n2(c),(c.mode&I3)!==c2&&H!==null&&(w=c.child,w!==null&&(c.treeBaseDuration-=w.treeBaseDuration));w=!1}else w=Jf(),r!==null&&r.memoizedState!==null&&(r.memoizedState.hydrationErrors=w),w=!0;if(!w)return c.flags&256?(f4(c),c):(f4(c),null)}return f4(c),(c.flags&128)!==0?(c.lanes=m,(c.mode&I3)!==c2&&rl(c),c):(m=H!==null,r=r!==null&&r.memoizedState!==null,m&&(H=c.child,w=null,H.alternate!==null&&H.alternate.memoizedState!==null&&H.alternate.memoizedState.cachePool!==null&&(w=H.alternate.memoizedState.cachePool.pool),D=null,H.memoizedState!==null&&H.memoizedState.cachePool!==null&&(D=H.memoizedState.cachePool.pool),D!==w&&(H.flags|=2048)),m!==r&&m&&(c.child.flags|=8192),ua(c,c.updateQueue),n2(c),(c.mode&I3)!==c2&&m&&(r=c.child,r!==null&&(c.treeBaseDuration-=r.treeBaseDuration)),null);case 4:return W(c),r===null&&Rl(c.stateNode.containerInfo),n2(c),null;case 10:return G5(c.type,c),n2(c),null;case 19:if(q(g3,c),w=c.memoizedState,w===null)return n2(c),null;if(H=(c.flags&128)!==0,D=w.rendering,D===null)if(H)ir(w,!1);else{if(N2!==Ca||r!==null&&(r.flags&128)!==0)for(r=c.child;r!==null;){if(D=$9(r),D!==null){for(c.flags|=128,ir(w,!1),r=D.updateQueue,c.updateQueue=r,ua(c,r),c.subtreeFlags=0,r=m,m=c.child;m!==null;)Zf(m,r),m=m.sibling;return $(g3,g3.current&Qc|ip,c),c.child}r=r.sibling}w.tail!==null&&d3()>Zg&&(c.flags|=128,H=!0,ir(w,!1),c.lanes=4194304)}else{if(!H)if(r=$9(D),r!==null){if(c.flags|=128,H=!0,r=r.updateQueue,c.updateQueue=r,ua(c,r),ir(w,!0),w.tail===null&&w.tailMode==="hidden"&&!D.alternate&&!L1)return n2(c),null}else 2*d3()-w.renderingStartTime>Zg&&m!==536870912&&(c.flags|=128,H=!0,ir(w,!1),c.lanes=4194304);w.isBackwards?(D.sibling=c.child,c.child=D):(r=w.last,r!==null?r.sibling=D:c.child=D,w.last=D)}return w.tail!==null?(r=w.tail,w.rendering=r,w.tail=r.sibling,w.renderingStartTime=d3(),r.sibling=null,m=g3.current,m=H?m&Qc|ip:m&Qc,$(g3,m,c),r):(n2(c),null);case 22:case 23:return f4(c),R9(c),H=c.memoizedState!==null,r!==null?r.memoizedState!==null!==H&&(c.flags|=8192):H&&(c.flags|=8192),H?(m&536870912)!==0&&(c.flags&128)===0&&(n2(c),c.subtreeFlags&6&&(c.flags|=8192)):n2(c),m=c.updateQueue,m!==null&&ua(c,m.retryQueue),m=null,r!==null&&r.memoizedState!==null&&r.memoizedState.cachePool!==null&&(m=r.memoizedState.cachePool.pool),H=null,c.memoizedState!==null&&c.memoizedState.cachePool!==null&&(H=c.memoizedState.cachePool.pool),H!==m&&(c.flags|=2048),r!==null&&q(us,c),null;case 24:return m=null,r!==null&&(m=r.memoizedState.cache),c.memoizedState.cache!==m&&(c.flags|=2048),G5(m3,c),n2(c),null;case 25:return null;case 30:return null}throw Error("Unknown unit of work tag ("+c.tag+"). This error is likely caused by a bug in React. Please file an issue.")}function zy(r,c){switch(Yi(c),c.tag){case 1:return r=c.flags,r&65536?(c.flags=r&-65537|128,(c.mode&I3)!==c2&&rl(c),c):null;case 3:return G5(m3,c),W(c),r=c.flags,(r&65536)!==0&&(r&128)===0?(c.flags=r&-65537|128,c):null;case 26:case 27:case 5:return Y(c),null;case 13:if(f4(c),r=c.memoizedState,r!==null&&r.dehydrated!==null){if(c.alternate===null)throw Error("Threw in newly mounted dehydrated component. This is likely a bug in React. Please file an issue.");Qo()}return r=c.flags,r&65536?(c.flags=r&-65537|128,(c.mode&I3)!==c2&&rl(c),c):null;case 19:return q(g3,c),null;case 4:return W(c),null;case 10:return G5(c.type,c),null;case 22:case 23:return f4(c),R9(c),r!==null&&q(us,c),r=c.flags,r&65536?(c.flags=r&-65537|128,(c.mode&I3)!==c2&&rl(c),c):null;case 24:return G5(m3,c),null;case 25:return null;default:return null}}function _d(r,c){switch(Yi(c),c.tag){case 3:G5(m3,c),W(c);break;case 26:case 27:case 5:Y(c);break;case 4:W(c);break;case 13:f4(c);break;case 19:q(g3,c);break;case 10:G5(c.type,c);break;case 22:case 23:f4(c),R9(c),r!==null&&q(us,c);break;case 24:G5(m3,c)}}function s6(r){return(r.mode&I3)!==c2}function Od(r,c){s6(r)?(b3(),Ro(c,r),Jn()):Ro(c,r)}function Sl(r,c,m){s6(r)?(b3(),ca(m,r,c),Jn()):ca(m,r,c)}function Ro(r,c){try{var m=c.updateQueue,H=m!==null?m.lastEffect:null;if(H!==null){var w=H.next;m=w;do{if((m.tag&r)===r&&((r&y3)!==r5?lt!==null&&typeof lt.markComponentPassiveEffectMountStarted=="function"&<.markComponentPassiveEffectMountStarted(c):(r&F3)!==r5&<!==null&&typeof lt.markComponentLayoutEffectMountStarted=="function"&<.markComponentLayoutEffectMountStarted(c),H=void 0,(r&Z4)!==r5&&(Lc=!0),H=pt(c,Aae,m),(r&Z4)!==r5&&(Lc=!1),(r&y3)!==r5?lt!==null&&typeof lt.markComponentPassiveEffectMountStopped=="function"&<.markComponentPassiveEffectMountStopped():(r&F3)!==r5&<!==null&&typeof lt.markComponentLayoutEffectMountStopped=="function"&<.markComponentLayoutEffectMountStopped(),H!==void 0&&typeof H!="function")){var D=void 0;D=(m.tag&F3)!==0?"useLayoutEffect":(m.tag&Z4)!==0?"useInsertionEffect":"useEffect";var I=void 0;I=H===null?" You returned null. If your effect does not require clean up, return undefined (or nothing).":typeof H.then=="function"?`
|
|
572
|
+
%s.childContextTypes = ...`,c.displayName||c.name||"Component"),typeof c.getDerivedStateFromProps=="function"&&(r=k(c)||"Unknown",_P[r]||(console.error("%s: Function components do not support getDerivedStateFromProps.",r),_P[r]=!0)),typeof c.contextType=="object"&&c.contextType!==null&&(c=k(c)||"Unknown",MP[c]||(console.error("%s: Function components do not support contextType.",c),MP[c]=!0))}function J9(r){return{baseLanes:r,cachePool:id()}}function xd(r,c,m){return r=r!==null?r.childLanes&~m:0,c&&(r|=b6),r}function bd(r,c,m){var H,w=c.pendingProps;i(c)&&(c.flags|=128);var D=!1,I=(c.flags&128)!==0;if((H=I)||(H=r!==null&&r.memoizedState===null?!1:(g3.current&ip)!==0),H&&(D=!0,c.flags&=-129),H=(c.flags&32)!==0,c.flags&=-33,r===null){if(L1){if(D?Q4(c):sn(c),L1){var G=k2,ie;if(!(ie=!G)){e:{var le=G;for(ie=S0;le.nodeType!==8;){if(!ie){ie=null;break e}if(le=v4(le.nextSibling),le===null){ie=null;break e}}ie=le}ie!==null?(Kn(),c.memoizedState={dehydrated:ie,treeContext:as!==null?{id:Ea,overflow:Sa}:null,retryLane:536870912,hydrationErrors:null},le=p(18,null,null,c2),le.stateNode=ie,le.return=c,c.child=le,G4=c,k2=null,ie=!0):ie=!1,ie=!ie}ie&&(To(c,G),Gr(c))}if(G=c.memoizedState,G!==null&&(G=G.dehydrated,G!==null))return p0(G)?c.lanes=32:c.lanes=536870912,null;f4(c)}return G=w.children,w=w.fallback,D?(sn(c),D=c.mode,G=Hl({mode:"hidden",children:G},D),w=rn(w,D,m,null),G.return=c,w.return=c,G.sibling=w,c.child=G,D=c.child,D.memoizedState=J9(m),D.childLanes=xd(r,H,m),c.memoizedState=yH,w):(Q4(c),eu(c,G))}var Ve=r.memoizedState;if(Ve!==null&&(G=Ve.dehydrated,G!==null)){if(I)c.flags&256?(Q4(c),c.flags&=-257,c=El(r,c,m)):c.memoizedState!==null?(sn(c),c.child=r.child,c.flags|=128,c=null):(sn(c),D=w.fallback,G=c.mode,w=Hl({mode:"visible",children:w.children},G),D=rn(D,G,m,null),D.flags|=2,w.return=c,D.return=c,w.sibling=D,c.child=w,Tc(c,r.child,null,m),w=c.child,w.memoizedState=J9(m),w.childLanes=xd(r,H,m),c.memoizedState=yH,c=D);else if(Q4(c),L1&&console.error("We should not be hydrating here. This is a bug in React. Please file a bug."),p0(G)){if(H=G.nextSibling&&G.nextSibling.dataset,H){ie=H.dgst;var Ne=H.msg;le=H.stck;var Ce=H.cstck}G=Ne,H=ie,w=le,ie=D=Ce,D=Error(G||"The server could not finish this Suspense boundary, likely due to an error during server rendering. Switched to client rendering."),D.stack=w||"",D.digest=H,H=ie===void 0?null:ie,w={value:D,source:null,stack:H},typeof H=="string"&&Kb.set(D,w),fo(w),c=El(r,c,m)}else if(M3||Z5(r,c,m,!1),H=(m&r.childLanes)!==0,M3||H){if(H=a2,H!==null&&(w=m&-m,w=(w&42)!==0?1:Ye(w),w=(w&(H.suspendedLanes|m))!==0?0:w,w!==0&&w!==Ve.retryLane))throw Ve.retryLane=w,o4(r,w),Jt(H,r,w),EP;G.data===wa||uu(),c=El(r,c,m)}else G.data===wa?(c.flags|=192,c.child=r.child,c=null):(r=Ve.treeContext,k2=v4(G.nextSibling),G4=c,L1=!0,os=null,Ma=!1,n5=null,S0=!1,r!==null&&(Kn(),e5[t5++]=Ea,e5[t5++]=Sa,e5[t5++]=as,Ea=r.id,Sa=r.overflow,as=c),c=eu(c,w.children),c.flags|=4096);return c}return D?(sn(c),D=w.fallback,G=c.mode,ie=r.child,le=ie.sibling,w=N6(ie,{mode:"hidden",children:w.children}),w.subtreeFlags=ie.subtreeFlags&65011712,le!==null?D=N6(le,D):(D=rn(D,G,m,null),D.flags|=2),D.return=c,w.return=c,w.sibling=D,c.child=w,w=D,D=c.child,G=r.child.memoizedState,G===null?G=J9(m):(ie=G.cachePool,ie!==null?(le=m3._currentValue,ie=ie.parent!==le?{parent:le,pool:le}:ie):ie=id(),G={baseLanes:G.baseLanes|m,cachePool:ie}),D.memoizedState=G,D.childLanes=xd(r,H,m),c.memoizedState=yH,w):(Q4(c),m=r.child,r=m.sibling,m=N6(m,{mode:"visible",children:w.children}),m.return=c,m.sibling=null,r!==null&&(H=c.deletions,H===null?(c.deletions=[r],c.flags|=16):H.push(r)),c.child=m,c.memoizedState=null,m)}function eu(r,c){return c=Hl({mode:"visible",children:c},r.mode),c.return=r,r.child=c}function Hl(r,c){return r=p(22,r,null,c),r.lanes=0,r.stateNode={_visibility:Cg,_pendingMarkers:null,_retryCache:null,_transitions:null},r}function El(r,c,m){return Tc(c,r.child,null,m),r=eu(c,c.pendingProps.children),r.flags|=2,c.memoizedState=null,r}function Hd(r,c,m){r.lanes|=c;var H=r.alternate;H!==null&&(H.lanes|=c),ed(r.return,c,m)}function Ed(r,c){var m=U2(r);return r=!m&&typeof V(r)=="function",m||r?(m=m?"array":"iterable",console.error("A nested %s was passed to row #%s in <SuspenseList />. Wrap it in an additional SuspenseList to configure its revealOrder: <SuspenseList revealOrder=...> ... <SuspenseList revealOrder=...>{%s}</SuspenseList> ... </SuspenseList>",m,c,m),!1):!0}function tu(r,c,m,H,w){var D=r.memoizedState;D===null?r.memoizedState={isBackwards:c,rendering:null,renderingStartTime:0,last:H,tail:m,tailMode:w}:(D.isBackwards=c,D.rendering=null,D.renderingStartTime=0,D.last=H,D.tail=m,D.tailMode=w)}function Sd(r,c,m){var H=c.pendingProps,w=H.revealOrder,D=H.tail;if(H=H.children,w!==void 0&&w!=="forwards"&&w!=="backwards"&&w!=="together"&&!OP[w])if(OP[w]=!0,typeof w=="string")switch(w.toLowerCase()){case"together":case"forwards":case"backwards":console.error('"%s" is not a valid value for revealOrder on <SuspenseList />. Use lowercase "%s" instead.',w,w.toLowerCase());break;case"forward":case"backward":console.error('"%s" is not a valid value for revealOrder on <SuspenseList />. React uses the -s suffix in the spelling. Use "%ss" instead.',w,w.toLowerCase());break;default:console.error('"%s" is not a supported revealOrder on <SuspenseList />. Did you mean "together", "forwards" or "backwards"?',w)}else console.error('%s is not a supported value for revealOrder on <SuspenseList />. Did you mean "together", "forwards" or "backwards"?',w);D===void 0||mH[D]||(D!=="collapsed"&&D!=="hidden"?(mH[D]=!0,console.error('"%s" is not a supported value for tail on <SuspenseList />. Did you mean "collapsed" or "hidden"?',D)):w!=="forwards"&&w!=="backwards"&&(mH[D]=!0,console.error('<SuspenseList tail="%s" /> is only valid if revealOrder is "forwards" or "backwards". Did you mean to specify revealOrder="forwards"?',D)));e:if((w==="forwards"||w==="backwards")&&H!==void 0&&H!==null&&H!==!1)if(U2(H)){for(var I=0;I<H.length;I++)if(!Ed(H[I],I))break e}else if(I=V(H),typeof I=="function"){if(I=I.call(H))for(var G=I.next(),ie=0;!G.done;G=I.next()){if(!Ed(G.value,ie))break e;ie++}}else console.error('A single row was passed to a <SuspenseList revealOrder="%s" />. This is not useful since it needs multiple rows. Did you mean to pass multiple children or an array?',w);if(q2(r,c,H,m),H=g3.current,(H&ip)!==0)H=H&Qc|ip,c.flags|=128;else{if(r!==null&&(r.flags&128)!==0)e:for(r=c.child;r!==null;){if(r.tag===13)r.memoizedState!==null&&Hd(r,m,c);else if(r.tag===19)Hd(r,m,c);else if(r.child!==null){r.child.return=r,r=r.child;continue}if(r===c)break e;for(;r.sibling===null;){if(r.return===null||r.return===c)break e;r=r.return}r.sibling.return=r.return,r=r.sibling}H&=Qc}switch($(g3,H,c),w){case"forwards":for(m=c.child,w=null;m!==null;)r=m.alternate,r!==null&&$9(r)===null&&(w=m),m=m.sibling;m=w,m===null?(w=c.child,c.child=null):(w=m.sibling,m.sibling=null),tu(c,!1,w,m,D);break;case"backwards":for(m=null,w=c.child,c.child=null;w!==null;){if(r=w.alternate,r!==null&&$9(r)===null){c.child=w;break}r=w.sibling,w.sibling=m,m=w,w=r}tu(c,!0,m,null,D);break;case"together":tu(c,!1,null,null,void 0);break;default:c.memoizedState=null}return c.child}function F6(r,c,m){if(r!==null&&(c.dependencies=r.dependencies),hn=-1,p7|=c.lanes,(m&c.childLanes)===0)if(r!==null){if(Z5(r,c,m,!1),(m&c.childLanes)===0)return null}else return null;if(r!==null&&c.child!==r.child)throw Error("Resuming work not yet implemented.");if(c.child!==null){for(r=c.child,m=N6(r,r.pendingProps),c.child=m,m.return=c;r.sibling!==null;)r=r.sibling,m=m.sibling=N6(r,r.pendingProps),m.return=c;m.sibling=null}return c.child}function Md(r,c){return(r.lanes&c)!==0?!0:(r=r.dependencies,!!(r!==null&&tl(r)))}function Iy(r,c,m){switch(c.tag){case 3:J(c,c.stateNode.containerInfo),Zr(c,m3,r.memoizedState.cache),Qo();break;case 27:case 5:K(c);break;case 4:J(c,c.stateNode.containerInfo);break;case 10:Zr(c,c.type,c.memoizedProps.value);break;case 12:(m&c.childLanes)!==0&&(c.flags|=4),c.flags|=2048;var H=c.stateNode;H.effectDuration=-0,H.passiveEffectDuration=-0;break;case 13:if(H=c.memoizedState,H!==null)return H.dehydrated!==null?(Q4(c),c.flags|=128,null):(m&c.child.childLanes)!==0?bd(r,c,m):(Q4(c),r=F6(r,c,m),r!==null?r.sibling:null);Q4(c);break;case 19:var w=(r.flags&128)!==0;if(H=(m&c.childLanes)!==0,H||(Z5(r,c,m,!1),H=(m&c.childLanes)!==0),w){if(H)return Sd(r,c,m);c.flags|=128}if(w=c.memoizedState,w!==null&&(w.rendering=null,w.tail=null,w.lastEffect=null),$(g3,g3.current,c),H)break;return null;case 22:case 23:return c.lanes=0,Y9(r,c,m);case 24:Zr(c,m3,r.memoizedState.cache)}return F6(r,c,m)}function a0(r,c,m){if(c._debugNeedsRemount&&r!==null){m=S9(c.type,c.key,c.pendingProps,c._debugOwner||null,c.mode,c.lanes),m._debugStack=c._debugStack,m._debugTask=c._debugTask;var H=c.return;if(H===null)throw Error("Cannot swap the root fiber.");if(r.alternate=null,c.alternate=null,m.index=c.index,m.sibling=c.sibling,m.return=c.return,m.ref=c.ref,m._debugInfo=c._debugInfo,c===H.child)H.child=m;else{var w=H.child;if(w===null)throw Error("Expected parent to have a child.");for(;w.sibling!==c;)if(w=w.sibling,w===null)throw Error("Expected to find the previous sibling.");w.sibling=m}return c=H.deletions,c===null?(H.deletions=[r],H.flags|=16):c.push(r),m.flags|=2,m}if(r!==null)if(r.memoizedProps!==c.pendingProps||c.type!==r.type)M3=!0;else{if(!Md(r,m)&&(c.flags&128)===0)return M3=!1,Iy(r,c,m);M3=(r.flags&131072)!==0}else M3=!1,(H=L1)&&(Kn(),H=(c.flags&1048576)!==0),H&&(H=c.index,Kn(),Yf(c,Vg,H));switch(c.lanes=0,c.tag){case 16:e:if(H=c.pendingProps,r=d7(c.elementType),c.type=r,typeof r=="function")E9(r)?(H=i0(r,H),c.tag=1,c.type=r=Zi(r),c=vd(null,c,r,H,m)):(c.tag=0,bl(c,r),c.type=r=Zi(r),c=K9(null,c,r,H,m));else{if(r!=null){if(w=r.$$typeof,w===v0){c.tag=11,c.type=r=Gf(r),c=I6(null,c,r,H,m);break e}else if(w===Ru){c.tag=14,c=Ll(null,c,r,H,m);break e}}throw c="",r!==null&&typeof r=="object"&&r.$$typeof===q4&&(c=" Did you wrap a component in React.lazy() more than once?"),r=k(r)||r,Error("Element type is invalid. Received a promise that resolves to: "+r+". Lazy element type must resolve to a class or function."+c)}return c;case 0:return K9(r,c,c.type,c.pendingProps,m);case 1:return H=c.type,w=i0(H,c.pendingProps),vd(r,c,H,w,m);case 3:e:{if(J(c,c.stateNode.containerInfo),r===null)throw Error("Should have a current fiber. This is a bug in React.");H=c.pendingProps;var D=c.memoizedState;w=D.element,il(r,c),Kr(c,H,null,m);var I=c.memoizedState;if(H=I.cache,Zr(c,m3,H),H!==D.cache&&N3(c,[m3],m,!0),mo(),H=I.element,D.isDehydrated)if(D={element:H,isDehydrated:!1,cache:I.cache},c.updateQueue.baseState=D,c.memoizedState=D,c.flags&256){c=Ld(r,c,H,m);break e}else if(H!==w){w=a4(Error("This root received an early update, before anything was able hydrate. Switched the entire root to client rendering."),c),fo(w),c=Ld(r,c,H,m);break e}else{switch(r=c.stateNode.containerInfo,r.nodeType){case 9:r=r.body;break;default:r=r.nodeName==="HTML"?r.ownerDocument.body:r}for(k2=v4(r.firstChild),G4=c,L1=!0,os=null,Ma=!1,n5=null,S0=!0,r=fP(c,null,H,m),c.child=r;r;)r.flags=r.flags&-3|4096,r=r.sibling}else{if(Qo(),H===w){c=F6(r,c,m);break e}q2(r,c,H,m)}c=c.child}return c;case 26:return xl(r,c),r===null?(r=Bl(c.type,null,c.pendingProps,null))?c.memoizedState=r:L1||(r=c.type,m=c.pendingProps,H=Z($6.current),H=g1(H).createElement(r),H[S3]=c,H[b4]=m,e3(H,r,m),Le(H),c.stateNode=H):c.memoizedState=Bl(c.type,r.memoizedProps,c.pendingProps,r.memoizedState),null;case 27:return K(c),r===null&&L1&&(H=Z($6.current),w=ne(),H=c.stateNode=L4(c.type,c.pendingProps,H,w,!1),Ma||(w=t1(H,c.type,c.pendingProps,w),w!==null&&(Ki(c,0).serverProps=w)),G4=c,S0=!0,w=k2,$2(c.type)?(IH=w,k2=v4(H.firstChild)):k2=w),q2(r,c,c.pendingProps.children,m),xl(r,c),r===null&&(c.flags|=4194304),c.child;case 5:return r===null&&L1&&(D=ne(),H=d9(c.type,D.ancestorInfo),w=k2,(I=!w)||(I=f3(w,c.type,c.pendingProps,S0),I!==null?(c.stateNode=I,Ma||(D=t1(I,c.type,c.pendingProps,D),D!==null&&(Ki(c,0).serverProps=D)),G4=c,k2=v4(I.firstChild),S0=!1,D=!0):D=!1,I=!D),I&&(H&&To(c,w),Gr(c))),K(c),w=c.type,D=c.pendingProps,I=r!==null?r.memoizedProps:null,H=D.children,Q0(w,D)?H=null:I!==null&&Q0(w,I)&&(c.flags|=32),c.memoizedState!==null&&(w=go(r,c,on,null,null,m),gp._currentValue=w),xl(r,c),q2(r,c,H,m),c.child;case 6:return r===null&&L1&&(r=c.pendingProps,m=ne(),H=m.ancestorInfo.current,r=H!=null?lo(r,H.tag,m.ancestorInfo.implicitRootScope):!0,m=k2,(H=!m)||(H=h0(m,c.pendingProps,S0),H!==null?(c.stateNode=H,G4=c,k2=null,H=!0):H=!1,H=!H),H&&(r&&To(c,m),Gr(c))),null;case 13:return bd(r,c,m);case 4:return J(c,c.stateNode.containerInfo),H=c.pendingProps,r===null?c.child=Tc(c,null,H,m):q2(r,c,H,m),c.child;case 11:return I6(r,c,c.type,c.pendingProps,m);case 7:return q2(r,c,c.pendingProps,m),c.child;case 8:return q2(r,c,c.pendingProps.children,m),c.child;case 12:return c.flags|=4,c.flags|=2048,H=c.stateNode,H.effectDuration=-0,H.passiveEffectDuration=-0,q2(r,c,c.pendingProps.children,m),c.child;case 10:return H=c.type,w=c.pendingProps,D=w.value,"value"in w||CP||(CP=!0,console.error("The `value` prop is required for the `<Context.Provider>`. Did you misspell it or forget to pass it?")),Zr(c,H,D),q2(r,c,w.children,m),c.child;case 9:return w=c.type._context,H=c.pendingProps.children,typeof H!="function"&&console.error("A context consumer was rendered with multiple children, or a child that isn't a function. A context consumer expects a single child that is a function. If you did pass a function, make sure there is no trailing or leading whitespace around it."),Xr(c),w=t2(w),Ee(c),H=TH(H,w,void 0),_e(),c.flags|=1,q2(r,c,H,m),c.child;case 14:return Ll(r,c,c.type,c.pendingProps,m);case 15:return W9(r,c,c.type,c.pendingProps,m);case 19:return Sd(r,c,m);case 31:return H=c.pendingProps,m=c.mode,H={mode:H.mode,children:H.children},r===null?(r=Hl(H,m),r.ref=c.ref,c.child=r,r.return=c,c=r):(r=N6(r.child,H),r.ref=c.ref,c.child=r,r.return=c,c=r),c;case 22:return Y9(r,c,m);case 24:return Xr(c),H=t2(m3),r===null?(w=rd(),w===null&&(w=a2,D=td(),w.pooledCache=D,an(D),D!==null&&(w.pooledCacheLanes|=m),w=D),c.memoizedState={parent:H,cache:w},Yr(c),Zr(c,m3,w)):((r.lanes&m)!==0&&(il(r,c),Kr(c,null,null,m),mo()),w=r.memoizedState,D=c.memoizedState,w.parent!==H?(w={parent:H,cache:H},c.memoizedState=w,c.lanes===0&&(c.memoizedState=c.updateQueue.baseState=w),Zr(c,m3,H)):(H=D.cache,Zr(c,m3,H),H!==w.cache&&N3(c,[m3],m,!0))),q2(r,c,c.pendingProps.children,m),c.child;case 29:throw c.pendingProps}throw Error("Unknown unit of work tag ("+c.tag+"). This error is likely caused by a bug in React. Please file an issue.")}function un(r){r.flags|=4}function Ad(r,c){if(c.type!=="stylesheet"||(c.state.loading&l5)!==Ls)r.flags&=-16777217;else if(r.flags|=16777216,!ph(c)){if(c=o5.current,c!==null&&((l1&4194048)===l1?A0!==null:(l1&62914560)!==l1&&(l1&536870912)===0||c!==A0))throw ep=iH,IB;r.flags|=8192}}function ua(r,c){c!==null&&(r.flags|=4),r.flags&16384&&(c=r.tag!==22?ct():536870912,r.lanes|=c,hs|=c)}function ir(r,c){if(!L1)switch(r.tailMode){case"hidden":c=r.tail;for(var m=null;c!==null;)c.alternate!==null&&(m=c),c=c.sibling;m===null?r.tail=null:m.sibling=null;break;case"collapsed":m=r.tail;for(var H=null;m!==null;)m.alternate!==null&&(H=m),m=m.sibling;H===null?c||r.tail===null?r.tail=null:r.tail.sibling=null:H.sibling=null}}function n2(r){var c=r.alternate!==null&&r.alternate.child===r.child,m=0,H=0;if(c)if((r.mode&I3)!==c2){for(var w=r.selfBaseDuration,D=r.child;D!==null;)m|=D.lanes|D.childLanes,H|=D.subtreeFlags&65011712,H|=D.flags&65011712,w+=D.treeBaseDuration,D=D.sibling;r.treeBaseDuration=w}else for(w=r.child;w!==null;)m|=w.lanes|w.childLanes,H|=w.subtreeFlags&65011712,H|=w.flags&65011712,w.return=r,w=w.sibling;else if((r.mode&I3)!==c2){w=r.actualDuration,D=r.selfBaseDuration;for(var I=r.child;I!==null;)m|=I.lanes|I.childLanes,H|=I.subtreeFlags,H|=I.flags,w+=I.actualDuration,D+=I.treeBaseDuration,I=I.sibling;r.actualDuration=w,r.treeBaseDuration=D}else for(w=r.child;w!==null;)m|=w.lanes|w.childLanes,H|=w.subtreeFlags,H|=w.flags,w.return=r,w=w.sibling;return r.subtreeFlags|=H,r.childLanes=m,c}function Fy(r,c,m){var H=c.pendingProps;switch(Yi(c),c.tag){case 31:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return n2(c),null;case 1:return n2(c),null;case 3:return m=c.stateNode,H=null,r!==null&&(H=r.memoizedState.cache),c.memoizedState.cache!==H&&(c.flags|=2048),G5(m3,c),W(c),m.pendingContext&&(m.context=m.pendingContext,m.pendingContext=null),(r===null||r.child===null)&&(Ji(c)?(Ny(),un(c)):r===null||r.memoizedState.isDehydrated&&(c.flags&256)===0||(c.flags|=1024,Jf())),n2(c),null;case 26:return m=c.memoizedState,r===null?(un(c),m!==null?(n2(c),Ad(c,m)):(n2(c),c.flags&=-16777217)):m?m!==r.memoizedState?(un(c),n2(c),Ad(c,m)):(n2(c),c.flags&=-16777217):(r.memoizedProps!==H&&un(c),n2(c),c.flags&=-16777217),null;case 27:Y(c),m=Z($6.current);var w=c.type;if(r!==null&&c.stateNode!=null)r.memoizedProps!==H&&un(c);else{if(!H){if(c.stateNode===null)throw Error("We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue.");return n2(c),null}r=ne(),Ji(c)?Kf(c):(r=L4(w,H,m,r,!0),c.stateNode=r,un(c))}return n2(c),null;case 5:if(Y(c),m=c.type,r!==null&&c.stateNode!=null)r.memoizedProps!==H&&un(c);else{if(!H){if(c.stateNode===null)throw Error("We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue.");return n2(c),null}if(w=ne(),Ji(c))Kf(c);else{switch(r=Z($6.current),d9(m,w.ancestorInfo),w=w.context,r=g1(r),w){case bc:r=r.createElementNS(Lr,m);break;case ov:r=r.createElementNS(Gu,m);break;default:switch(m){case"svg":r=r.createElementNS(Lr,m);break;case"math":r=r.createElementNS(Gu,m);break;case"script":r=r.createElement("div"),r.innerHTML="<script><\/script>",r=r.removeChild(r.firstChild);break;case"select":r=typeof H.is=="string"?r.createElement("select",{is:H.is}):r.createElement("select"),H.multiple?r.multiple=!0:H.size&&(r.size=H.size);break;default:r=typeof H.is=="string"?r.createElement(m,{is:H.is}):r.createElement(m),m.indexOf("-")===-1&&(m!==m.toLowerCase()&&console.error("<%s /> is using incorrect casing. Use PascalCase for React components, or lowercase for HTML elements.",m),Object.prototype.toString.call(r)!=="[object HTMLUnknownElement]"||U6.call(WP,m)||(WP[m]=!0,console.error("The tag <%s> is unrecognized in this browser. If you meant to render a React component, start its name with an uppercase letter.",m)))}}r[S3]=c,r[b4]=H;e:for(w=c.child;w!==null;){if(w.tag===5||w.tag===6)r.appendChild(w.stateNode);else if(w.tag!==4&&w.tag!==27&&w.child!==null){w.child.return=w,w=w.child;continue}if(w===c)break e;for(;w.sibling===null;){if(w.return===null||w.return===c)break e;w=w.return}w.sibling.return=w.return,w=w.sibling}c.stateNode=r;e:switch(e3(r,m,H),m){case"button":case"input":case"select":case"textarea":r=!!H.autoFocus;break e;case"img":r=!0;break e;default:r=!1}r&&un(c)}}return n2(c),c.flags&=-16777217,null;case 6:if(r&&c.stateNode!=null)r.memoizedProps!==H&&un(c);else{if(typeof H!="string"&&c.stateNode===null)throw Error("We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue.");if(r=Z($6.current),m=ne(),Ji(c)){r=c.stateNode,m=c.memoizedProps,w=!Ma,H=null;var D=G4;if(D!==null)switch(D.tag){case 3:w&&(w=Qh(r,m,H),w!==null&&(Ki(c,0).serverProps=w));break;case 27:case 5:H=D.memoizedProps,w&&(w=Qh(r,m,H),w!==null&&(Ki(c,0).serverProps=w))}r[S3]=c,r=!!(r.nodeValue===m||H!==null&&H.suppressHydrationWarning===!0||ma(r.nodeValue,m)),r||Gr(c)}else w=m.ancestorInfo.current,w!=null&&lo(H,w.tag,m.ancestorInfo.implicitRootScope),r=g1(r).createTextNode(H),r[S3]=c,c.stateNode=r}return n2(c),null;case 13:if(H=c.memoizedState,r===null||r.memoizedState!==null&&r.memoizedState.dehydrated!==null){if(w=Ji(c),H!==null&&H.dehydrated!==null){if(r===null){if(!w)throw Error("A dehydrated suspense component was completed without a hydrated node. This is probably a bug in React.");if(w=c.memoizedState,w=w!==null?w.dehydrated:null,!w)throw Error("Expected to have a hydrated suspense instance. This error is likely caused by a bug in React. Please file an issue.");w[S3]=c,n2(c),(c.mode&I3)!==c2&&H!==null&&(w=c.child,w!==null&&(c.treeBaseDuration-=w.treeBaseDuration))}else Ny(),Qo(),(c.flags&128)===0&&(c.memoizedState=null),c.flags|=4,n2(c),(c.mode&I3)!==c2&&H!==null&&(w=c.child,w!==null&&(c.treeBaseDuration-=w.treeBaseDuration));w=!1}else w=Jf(),r!==null&&r.memoizedState!==null&&(r.memoizedState.hydrationErrors=w),w=!0;if(!w)return c.flags&256?(f4(c),c):(f4(c),null)}return f4(c),(c.flags&128)!==0?(c.lanes=m,(c.mode&I3)!==c2&&rl(c),c):(m=H!==null,r=r!==null&&r.memoizedState!==null,m&&(H=c.child,w=null,H.alternate!==null&&H.alternate.memoizedState!==null&&H.alternate.memoizedState.cachePool!==null&&(w=H.alternate.memoizedState.cachePool.pool),D=null,H.memoizedState!==null&&H.memoizedState.cachePool!==null&&(D=H.memoizedState.cachePool.pool),D!==w&&(H.flags|=2048)),m!==r&&m&&(c.child.flags|=8192),ua(c,c.updateQueue),n2(c),(c.mode&I3)!==c2&&m&&(r=c.child,r!==null&&(c.treeBaseDuration-=r.treeBaseDuration)),null);case 4:return W(c),r===null&&Rl(c.stateNode.containerInfo),n2(c),null;case 10:return G5(c.type,c),n2(c),null;case 19:if(q(g3,c),w=c.memoizedState,w===null)return n2(c),null;if(H=(c.flags&128)!==0,D=w.rendering,D===null)if(H)ir(w,!1);else{if(N2!==Ca||r!==null&&(r.flags&128)!==0)for(r=c.child;r!==null;){if(D=$9(r),D!==null){for(c.flags|=128,ir(w,!1),r=D.updateQueue,c.updateQueue=r,ua(c,r),c.subtreeFlags=0,r=m,m=c.child;m!==null;)Zf(m,r),m=m.sibling;return $(g3,g3.current&Qc|ip,c),c.child}r=r.sibling}w.tail!==null&&d3()>Zg&&(c.flags|=128,H=!0,ir(w,!1),c.lanes=4194304)}else{if(!H)if(r=$9(D),r!==null){if(c.flags|=128,H=!0,r=r.updateQueue,c.updateQueue=r,ua(c,r),ir(w,!0),w.tail===null&&w.tailMode==="hidden"&&!D.alternate&&!L1)return n2(c),null}else 2*d3()-w.renderingStartTime>Zg&&m!==536870912&&(c.flags|=128,H=!0,ir(w,!1),c.lanes=4194304);w.isBackwards?(D.sibling=c.child,c.child=D):(r=w.last,r!==null?r.sibling=D:c.child=D,w.last=D)}return w.tail!==null?(r=w.tail,w.rendering=r,w.tail=r.sibling,w.renderingStartTime=d3(),r.sibling=null,m=g3.current,m=H?m&Qc|ip:m&Qc,$(g3,m,c),r):(n2(c),null);case 22:case 23:return f4(c),R9(c),H=c.memoizedState!==null,r!==null?r.memoizedState!==null!==H&&(c.flags|=8192):H&&(c.flags|=8192),H?(m&536870912)!==0&&(c.flags&128)===0&&(n2(c),c.subtreeFlags&6&&(c.flags|=8192)):n2(c),m=c.updateQueue,m!==null&&ua(c,m.retryQueue),m=null,r!==null&&r.memoizedState!==null&&r.memoizedState.cachePool!==null&&(m=r.memoizedState.cachePool.pool),H=null,c.memoizedState!==null&&c.memoizedState.cachePool!==null&&(H=c.memoizedState.cachePool.pool),H!==m&&(c.flags|=2048),r!==null&&q(us,c),null;case 24:return m=null,r!==null&&(m=r.memoizedState.cache),c.memoizedState.cache!==m&&(c.flags|=2048),G5(m3,c),n2(c),null;case 25:return null;case 30:return null}throw Error("Unknown unit of work tag ("+c.tag+"). This error is likely caused by a bug in React. Please file an issue.")}function zy(r,c){switch(Yi(c),c.tag){case 1:return r=c.flags,r&65536?(c.flags=r&-65537|128,(c.mode&I3)!==c2&&rl(c),c):null;case 3:return G5(m3,c),W(c),r=c.flags,(r&65536)!==0&&(r&128)===0?(c.flags=r&-65537|128,c):null;case 26:case 27:case 5:return Y(c),null;case 13:if(f4(c),r=c.memoizedState,r!==null&&r.dehydrated!==null){if(c.alternate===null)throw Error("Threw in newly mounted dehydrated component. This is likely a bug in React. Please file an issue.");Qo()}return r=c.flags,r&65536?(c.flags=r&-65537|128,(c.mode&I3)!==c2&&rl(c),c):null;case 19:return q(g3,c),null;case 4:return W(c),null;case 10:return G5(c.type,c),null;case 22:case 23:return f4(c),R9(c),r!==null&&q(us,c),r=c.flags,r&65536?(c.flags=r&-65537|128,(c.mode&I3)!==c2&&rl(c),c):null;case 24:return G5(m3,c),null;case 25:return null;default:return null}}function _d(r,c){switch(Yi(c),c.tag){case 3:G5(m3,c),W(c);break;case 26:case 27:case 5:Y(c);break;case 4:W(c);break;case 13:f4(c);break;case 19:q(g3,c);break;case 10:G5(c.type,c);break;case 22:case 23:f4(c),R9(c),r!==null&&q(us,c);break;case 24:G5(m3,c)}}function s6(r){return(r.mode&I3)!==c2}function Od(r,c){s6(r)?(b3(),Ro(c,r),Jn()):Ro(c,r)}function Sl(r,c,m){s6(r)?(b3(),ca(m,r,c),Jn()):ca(m,r,c)}function Ro(r,c){try{var m=c.updateQueue,H=m!==null?m.lastEffect:null;if(H!==null){var w=H.next;m=w;do{if((m.tag&r)===r&&((r&y3)!==r5?lt!==null&&typeof lt.markComponentPassiveEffectMountStarted=="function"&<.markComponentPassiveEffectMountStarted(c):(r&F3)!==r5&<!==null&&typeof lt.markComponentLayoutEffectMountStarted=="function"&<.markComponentLayoutEffectMountStarted(c),H=void 0,(r&Z4)!==r5&&(Lc=!0),H=pt(c,Aae,m),(r&Z4)!==r5&&(Lc=!1),(r&y3)!==r5?lt!==null&&typeof lt.markComponentPassiveEffectMountStopped=="function"&<.markComponentPassiveEffectMountStopped():(r&F3)!==r5&<!==null&&typeof lt.markComponentLayoutEffectMountStopped=="function"&<.markComponentLayoutEffectMountStopped(),H!==void 0&&typeof H!="function")){var D=void 0;D=(m.tag&F3)!==0?"useLayoutEffect":(m.tag&Z4)!==0?"useInsertionEffect":"useEffect";var I=void 0;I=H===null?" You returned null. If your effect does not require clean up, return undefined (or nothing).":typeof H.then=="function"?`
|
|
573
573
|
|
|
574
574
|
It looks like you wrote `+D+`(async () => ...) or returned a Promise. Instead, write the async function inside your effect and call it immediately:
|
|
575
575
|
|
|
@@ -582,7 +582,7 @@ It looks like you wrote `+D+`(async () => ...) or returned a Promise. Instead, w
|
|
|
582
582
|
fetchData();
|
|
583
583
|
}, [someId]); // Or [] if effect doesn't need props or state
|
|
584
584
|
|
|
585
|
-
Learn more about data fetching with Hooks: https://react.dev/link/hooks-data-fetching`:" You returned: "+H,pt(c,function(G,ie){console.error("%s must not return anything besides a function, which is used for clean-up.%s",G,ie)},D,I)}m=m.next}while(m!==w)}}catch(G){P1(c,c.return,G)}}function ca(r,c,m){try{var H=c.updateQueue,w=H!==null?H.lastEffect:null;if(w!==null){var D=w.next;H=D;do{if((H.tag&r)===r){var I=H.inst,G=I.destroy;G!==void 0&&(I.destroy=void 0,(r&y3)!==r5?lt!==null&&typeof lt.markComponentPassiveEffectUnmountStarted=="function"&<.markComponentPassiveEffectUnmountStarted(c):(r&F3)!==r5&<!==null&&typeof lt.markComponentLayoutEffectUnmountStarted=="function"&<.markComponentLayoutEffectUnmountStarted(c),(r&Z4)!==r5&&(Lc=!0),w=c,pt(w,_ae,w,m,G),(r&Z4)!==r5&&(Lc=!1),(r&y3)!==r5?lt!==null&&typeof lt.markComponentPassiveEffectUnmountStopped=="function"&<.markComponentPassiveEffectUnmountStopped():(r&F3)!==r5&<!==null&&typeof lt.markComponentLayoutEffectUnmountStopped=="function"&<.markComponentLayoutEffectUnmountStopped())}H=H.next}while(H!==D)}}catch(ie){P1(c,c.return,ie)}}function nu(r,c){s6(r)?(b3(),Ro(c,r),Jn()):Ro(c,r)}function ru(r,c,m){s6(r)?(b3(),ca(m,r,c),Jn()):ca(m,r,c)}function Cd(r){var c=r.updateQueue;if(c!==null){var m=r.stateNode;r.type.defaultProps||"ref"in r.memoizedProps||dc||(m.props!==r.memoizedProps&&console.error("Expected %s props to match memoized props before processing the update queue. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",R(r)||"instance"),m.state!==r.memoizedState&&console.error("Expected %s state to match memoized state before processing the update queue. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",R(r)||"instance"));try{pt(r,s4,c,m)}catch(H){P1(r,r.return,H)}}}function Rb(r,c,m){return r.getSnapshotBeforeUpdate(c,m)}function wd(r,c){var m=c.memoizedProps,H=c.memoizedState;c=r.stateNode,r.type.defaultProps||"ref"in r.memoizedProps||dc||(c.props!==r.memoizedProps&&console.error("Expected %s props to match memoized props before getSnapshotBeforeUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",R(r)||"instance"),c.state!==r.memoizedState&&console.error("Expected %s state to match memoized state before getSnapshotBeforeUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",R(r)||"instance"));try{var w=i0(r.type,m,r.elementType===r.type),D=pt(r,Rb,c,w,H);m=wP,D!==void 0||m.has(r.type)||(m.add(r.type),pt(r,function(){console.error("%s.getSnapshotBeforeUpdate(): A snapshot value (or null) must be returned. You have returned undefined.",R(r))})),c.__reactInternalSnapshotBeforeUpdate=D}catch(I){P1(r,r.return,I)}}function Vd(r,c,m){m.props=i0(r.type,r.memoizedProps),m.state=r.memoizedState,s6(r)?(b3(),pt(r,aP,r,c,m),Jn()):pt(r,aP,r,c,m)}function qy(r){var c=r.ref;if(c!==null){switch(r.tag){case 26:case 27:case 5:var m=r.stateNode;break;case 30:m=r.stateNode;break;default:m=r.stateNode}if(typeof c=="function")if(s6(r))try{b3(),r.refCleanup=c(m)}finally{Jn()}else r.refCleanup=c(m);else typeof c=="string"?console.error("String refs are no longer supported."):c.hasOwnProperty("current")||console.error("Unexpected ref object provided for %s. Use either a ref-setter function or React.createRef().",R(r)),c.current=m}}function Ta(r,c){try{pt(r,qy,r)}catch(m){P1(r,c,m)}}function u6(r,c){var m=r.ref,H=r.refCleanup;if(m!==null)if(typeof H=="function")try{if(s6(r))try{b3(),pt(r,H)}finally{Jn(r)}else pt(r,H)}catch(w){P1(r,c,w)}finally{r.refCleanup=null,r=r.alternate,r!=null&&(r.refCleanup=null)}else if(typeof m=="function")try{if(s6(r))try{b3(),pt(r,m,null)}finally{Jn(r)}else pt(r,m,null)}catch(w){P1(r,c,w)}else m.current=null}function Dd(r,c,m,H){var w=r.memoizedProps,D=w.id,I=w.onCommit;w=w.onRender,c=c===null?"mount":"update",kg&&(c="nested-update"),typeof w=="function"&&w(D,c,r.actualDuration,r.treeBaseDuration,r.actualStartTime,m),typeof I=="function"&&I(r.memoizedProps.id,c,H,m)}function kb(r,c,m,H){var w=r.memoizedProps;r=w.id,w=w.onPostCommit,c=c===null?"mount":"update",kg&&(c="nested-update"),typeof w=="function"&&w(r,c,H,m)}function $y(r){var c=r.type,m=r.memoizedProps,H=r.stateNode;try{pt(r,L2,H,c,m,r)}catch(w){P1(r,r.return,w)}}function iu(r,c,m){try{pt(r,f0,r.stateNode,r.type,m,c,r)}catch(H){P1(r,r.return,H)}}function ko(r){return r.tag===5||r.tag===3||r.tag===26||r.tag===27&&$2(r.type)||r.tag===4}function Ml(r){e:for(;;){for(;r.sibling===null;){if(r.return===null||ko(r.return))return null;r=r.return}for(r.sibling.return=r.return,r=r.sibling;r.tag!==5&&r.tag!==6&&r.tag!==18;){if(r.tag===27&&$2(r.type)||r.flags&2||r.child===null||r.tag===4)continue e;r.child.return=r,r=r.child}if(!(r.flags&2))return r.stateNode}}function No(r,c,m){var H=r.tag;if(H===5||H===6)r=r.stateNode,c?(m.nodeType===9?m.body:m.nodeName==="HTML"?m.ownerDocument.body:m).insertBefore(r,c):(c=m.nodeType===9?m.body:m.nodeName==="HTML"?m.ownerDocument.body:m,c.appendChild(r),m=m._reactRootContainer,m!=null||c.onclick!==null||(c.onclick=c0));else if(H!==4&&(H===27&&$2(r.type)&&(m=r.stateNode,c=null),r=r.child,r!==null))for(No(r,c,m),r=r.sibling;r!==null;)No(r,c,m),r=r.sibling}function Al(r,c,m){var H=r.tag;if(H===5||H===6)r=r.stateNode,c?m.insertBefore(r,c):m.appendChild(r);else if(H!==4&&(H===27&&$2(r.type)&&(m=r.stateNode),r=r.child,r!==null))for(Al(r,c,m),r=r.sibling;r!==null;)Al(r,c,m),r=r.sibling}function Uy(r){for(var c,m=r.return;m!==null;){if(ko(m)){c=m;break}m=m.return}if(c==null)throw Error("Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue.");switch(c.tag){case 27:c=c.stateNode,m=Ml(r),Al(r,m,c);break;case 5:m=c.stateNode,c.flags&32&&(d0(m),c.flags&=-33),c=Ml(r),Al(r,c,m);break;case 3:case 4:c=c.stateNode.containerInfo,m=Ml(r),No(r,m,c);break;default:throw Error("Invalid host parent fiber. This error is likely caused by a bug in React. Please file an issue.")}}function _l(r){var c=r.stateNode,m=r.memoizedProps;try{pt(r,lg,r.type,m,c,r)}catch(H){P1(r,r.return,H)}}function Gy(r,c){if(r=r.containerInfo,BH=cv,r=Dy(r),$f(r)){if("selectionStart"in r)var m={start:r.selectionStart,end:r.selectionEnd};else e:{m=(m=r.ownerDocument)&&m.defaultView||window;var H=m.getSelection&&m.getSelection();if(H&&H.rangeCount!==0){m=H.anchorNode;var w=H.anchorOffset,D=H.focusNode;H=H.focusOffset;try{m.nodeType,D.nodeType}catch{m=null;break e}var I=0,G=-1,ie=-1,le=0,Ve=0,Ne=r,Ce=null;t:for(;;){for(var Be;Ne!==m||w!==0&&Ne.nodeType!==3||(G=I+w),Ne!==D||H!==0&&Ne.nodeType!==3||(ie=I+H),Ne.nodeType===3&&(I+=Ne.nodeValue.length),(Be=Ne.firstChild)!==null;)Ce=Ne,Ne=Be;for(;;){if(Ne===r)break t;if(Ce===m&&++le===w&&(G=I),Ce===D&&++Ve===H&&(ie=I),(Be=Ne.nextSibling)!==null)break;Ne=Ce,Ce=Ne.parentNode}Ne=Be}m=G===-1||ie===-1?null:{start:G,end:ie}}else m=null}m=m||{start:0,end:0}}else m=null;for(PH={focusedElem:r,selectionRange:m},cv=!1,A3=c;A3!==null;)if(c=A3,r=c.child,(c.subtreeFlags&1024)!==0&&r!==null)r.return=c,A3=r;else for(;A3!==null;){switch(r=c=A3,m=r.alternate,w=r.flags,r.tag){case 0:break;case 11:case 15:break;case 1:(w&1024)!==0&&m!==null&&wd(r,m);break;case 3:if((w&1024)!==0){if(r=r.stateNode.containerInfo,m=r.nodeType,m===9)z6(r);else if(m===1)switch(r.nodeName){case"HEAD":case"HTML":case"BODY":z6(r);break;default:r.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((w&1024)!==0)throw Error("This unit of work tag should not have side-effects. This error is likely caused by a bug in React. Please file an issue.")}if(r=c.sibling,r!==null){r.return=c.return,A3=r;break}A3=c.return}}function Rd(r,c,m){var H=m.flags;switch(m.tag){case 0:case 11:case 15:D2(r,m),H&4&&Od(m,F3|i5);break;case 1:if(D2(r,m),H&4)if(r=m.stateNode,c===null)m.type.defaultProps||"ref"in m.memoizedProps||dc||(r.props!==m.memoizedProps&&console.error("Expected %s props to match memoized props before componentDidMount. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",R(m)||"instance"),r.state!==m.memoizedState&&console.error("Expected %s state to match memoized state before componentDidMount. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",R(m)||"instance")),s6(m)?(b3(),pt(m,QH,m,r),Jn()):pt(m,QH,m,r);else{var w=i0(m.type,c.memoizedProps);c=c.memoizedState,m.type.defaultProps||"ref"in m.memoizedProps||dc||(r.props!==m.memoizedProps&&console.error("Expected %s props to match memoized props before componentDidUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",R(m)||"instance"),r.state!==m.memoizedState&&console.error("Expected %s state to match memoized state before componentDidUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",R(m)||"instance")),s6(m)?(b3(),pt(m,nP,m,r,w,c,r.__reactInternalSnapshotBeforeUpdate),Jn()):pt(m,nP,m,r,w,c,r.__reactInternalSnapshotBeforeUpdate)}H&64&&Cd(m),H&512&&Ta(m,m.return);break;case 3:if(c=k4(),D2(r,m),H&64&&(H=m.updateQueue,H!==null)){if(w=null,m.child!==null)switch(m.child.tag){case 27:case 5:w=m.child.stateNode;break;case 1:w=m.child.stateNode}try{pt(m,s4,H,w)}catch(I){P1(m,m.return,I)}}r.effectDuration+=ho(c);break;case 27:c===null&&H&4&&_l(m);case 26:case 5:D2(r,m),c===null&&H&4&&$y(m),H&512&&Ta(m,m.return);break;case 12:if(H&4){H=k4(),D2(r,m),r=m.stateNode,r.effectDuration+=po(H);try{pt(m,Dd,m,c,Rg,r.effectDuration)}catch(I){P1(m,m.return,I)}}else D2(r,m);break;case 13:D2(r,m),H&4&&Ol(r,m),H&64&&(r=m.memoizedState,r!==null&&(r=r.dehydrated,r!==null&&(m=s0.bind(null,m),Xo(r,m))));break;case 22:if(H=m.memoizedState!==null||Oa,!H){c=c!==null&&c.memoizedState!==null||G2,w=Oa;var D=G2;Oa=H,(G2=c)&&!D?H3(r,m,(m.subtreeFlags&8772)!==0):D2(r,m),Oa=w,G2=D}break;case 30:break;default:D2(r,m)}}function Zy(r){var c=r.alternate;c!==null&&(r.alternate=null,Zy(c)),r.child=null,r.deletions=null,r.sibling=null,r.tag===5&&(c=r.stateNode,c!==null&&d1(c)),r.stateNode=null,r._debugOwner=null,r.return=null,r.dependencies=null,r.memoizedProps=null,r.memoizedState=null,r.pendingProps=null,r.stateNode=null,r.updateQueue=null}function d4(r,c,m){for(m=m.child;m!==null;)Bo(r,c,m),m=m.sibling}function Bo(r,c,m){if(h3&&typeof h3.onCommitFiberUnmount=="function")try{h3.onCommitFiberUnmount(xa,m)}catch(D){S2||(S2=!0,console.error("React instrumentation encountered an error: %s",D))}switch(m.tag){case 26:G2||u6(m,c),d4(r,c,m),m.memoizedState?m.memoizedState.count--:m.stateNode&&(m=m.stateNode,m.parentNode.removeChild(m));break;case 27:G2||u6(m,c);var H=a3,w=pn;$2(m.type)&&(a3=m.stateNode,pn=!1),d4(r,c,m),pt(m,Yo,m.stateNode),a3=H,pn=w;break;case 5:G2||u6(m,c);case 6:if(H=a3,w=pn,a3=null,d4(r,c,m),a3=H,pn=w,a3!==null)if(pn)try{pt(m,Nl,a3,m.stateNode)}catch(D){P1(m,c,D)}else try{pt(m,Zo,a3,m.stateNode)}catch(D){P1(m,c,D)}break;case 18:a3!==null&&(pn?(r=a3,j3(r.nodeType===9?r.body:r.nodeName==="HTML"?r.ownerDocument.body:r,m.stateNode),n7(r)):j3(a3,m.stateNode));break;case 4:H=a3,w=pn,a3=m.stateNode.containerInfo,pn=!0,d4(r,c,m),a3=H,pn=w;break;case 0:case 11:case 14:case 15:G2||ca(Z4,m,c),G2||Sl(m,c,F3),d4(r,c,m);break;case 1:G2||(u6(m,c),H=m.stateNode,typeof H.componentWillUnmount=="function"&&Vd(m,c,H)),d4(r,c,m);break;case 21:d4(r,c,m);break;case 22:G2=(H=G2)||m.memoizedState!==null,d4(r,c,m),G2=H;break;default:d4(r,c,m)}}function Ol(r,c){if(c.memoizedState===null&&(r=c.alternate,r!==null&&(r=r.memoizedState,r!==null&&(r=r.dehydrated,r!==null))))try{pt(c,og,r)}catch(m){P1(c,c.return,m)}}function Cl(r){switch(r.tag){case 13:case 19:var c=r.stateNode;return c===null&&(c=r.stateNode=new VP),c;case 22:return r=r.stateNode,c=r._retryCache,c===null&&(c=r._retryCache=new VP),c;default:throw Error("Unexpected Suspense handler tag ("+r.tag+"). This is a bug in React.")}}function Po(r,c){var m=Cl(r);c.forEach(function(H){var w=eg.bind(null,r,H);if(!m.has(H)){if(m.add(H),dn)if(hc!==null&&pc!==null)ha(pc,hc);else throw Error("Expected finished root and lanes to be set. This is a bug in React.");H.then(w,w)}})}function h4(r,c){var m=c.deletions;if(m!==null)for(var H=0;H<m.length;H++){var w=r,D=c,I=m[H],G=D;e:for(;G!==null;){switch(G.tag){case 27:if($2(G.type)){a3=G.stateNode,pn=!1;break e}break;case 5:a3=G.stateNode,pn=!1;break e;case 3:case 4:a3=G.stateNode.containerInfo,pn=!0;break e}G=G.return}if(a3===null)throw Error("Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue.");Bo(w,D,I),a3=null,pn=!1,w=I,D=w.alternate,D!==null&&(D.return=null),w.return=null}if(c.subtreeFlags&13878)for(c=c.child;c!==null;)kd(c,r),c=c.sibling}function kd(r,c){var m=r.alternate,H=r.flags;switch(r.tag){case 0:case 11:case 14:case 15:h4(c,r),K2(r),H&4&&(ca(Z4|i5,r,r.return),Ro(Z4|i5,r),Sl(r,r.return,F3|i5));break;case 1:h4(c,r),K2(r),H&512&&(G2||m===null||u6(m,m.return)),H&64&&Oa&&(r=r.updateQueue,r!==null&&(H=r.callbacks,H!==null&&(m=r.shared.hiddenCallbacks,r.shared.hiddenCallbacks=m===null?H:m.concat(H))));break;case 26:var w=Er;if(h4(c,r),K2(r),H&512&&(G2||m===null||u6(m,m.return)),H&4)if(c=m!==null?m.memoizedState:null,H=r.memoizedState,m===null)if(H===null)if(r.stateNode===null){e:{H=r.type,m=r.memoizedProps,c=w.ownerDocument||w;t:switch(H){case"title":w=c.getElementsByTagName("title")[0],(!w||w[Wl]||w[S3]||w.namespaceURI===Lr||w.hasAttribute("itemprop"))&&(w=c.createElement(H),c.head.insertBefore(w,c.querySelector("head > title"))),e3(w,H,m),w[S3]=r,ve(w),H=w;break e;case"link":var D=hh("link","href",c).get(H+(m.href||""));if(D){for(var I=0;I<D.length;I++)if(w=D[I],w.getAttribute("href")===(m.href==null||m.href===""?null:m.href)&&w.getAttribute("rel")===(m.rel==null?null:m.rel)&&w.getAttribute("title")===(m.title==null?null:m.title)&&w.getAttribute("crossorigin")===(m.crossOrigin==null?null:m.crossOrigin)){D.splice(I,1);break t}}w=c.createElement(H),e3(w,H,m),c.head.appendChild(w);break;case"meta":if(D=hh("meta","content",c).get(H+(m.content||""))){for(I=0;I<D.length;I++)if(w=D[I],U(m.content,"content"),w.getAttribute("content")===(m.content==null?null:""+m.content)&&w.getAttribute("name")===(m.name==null?null:m.name)&&w.getAttribute("property")===(m.property==null?null:m.property)&&w.getAttribute("http-equiv")===(m.httpEquiv==null?null:m.httpEquiv)&&w.getAttribute("charset")===(m.charSet==null?null:m.charSet)){D.splice(I,1);break t}}w=c.createElement(H),e3(w,H,m),c.head.appendChild(w);break;default:throw Error('getNodesForType encountered a type it did not expect: "'+H+'". This is a bug in React.')}w[S3]=r,ve(w),H=w}r.stateNode=H}else ga(w,r.type,r.stateNode);else r.stateNode=ug(w,H,r.memoizedProps);else c!==H?(c===null?m.stateNode!==null&&(m=m.stateNode,m.parentNode.removeChild(m)):c.count--,H===null?ga(w,r.type,r.stateNode):ug(w,H,r.memoizedProps)):H===null&&r.stateNode!==null&&iu(r,r.memoizedProps,m.memoizedProps);break;case 27:h4(c,r),K2(r),H&512&&(G2||m===null||u6(m,m.return)),m!==null&&H&4&&iu(r,r.memoizedProps,m.memoizedProps);break;case 5:if(h4(c,r),K2(r),H&512&&(G2||m===null||u6(m,m.return)),r.flags&32){c=r.stateNode;try{pt(r,d0,c)}catch(Ve){P1(r,r.return,Ve)}}H&4&&r.stateNode!=null&&(c=r.memoizedProps,iu(r,c,m!==null?m.memoizedProps:c)),H&1024&&(gH=!0,r.type!=="form"&&console.error("Unexpected host component type. Expected a form. This is a bug in React."));break;case 6:if(h4(c,r),K2(r),H&4){if(r.stateNode===null)throw Error("This should have a text node initialized. This error is likely caused by a bug in React. Please file an issue.");H=r.memoizedProps,m=m!==null?m.memoizedProps:H,c=r.stateNode;try{pt(r,uh,c,m,H)}catch(Ve){P1(r,r.return,Ve)}}break;case 3:if(w=k4(),lv=null,D=Er,Er=Lu(c.containerInfo),h4(c,r),Er=D,K2(r),H&4&&m!==null&&m.memoizedState.isDehydrated)try{pt(r,z4,c.containerInfo)}catch(Ve){P1(r,r.return,Ve)}gH&&(gH=!1,Nd(r)),c.effectDuration+=ho(w);break;case 4:H=Er,Er=Lu(r.stateNode.containerInfo),h4(c,r),K2(r),Er=H;break;case 12:H=k4(),h4(c,r),K2(r),r.stateNode.effectDuration+=po(H);break;case 13:h4(c,r),K2(r),r.child.flags&8192&&r.memoizedState!==null!=(m!==null&&m.memoizedState!==null)&&(EH=d3()),H&4&&(H=r.updateQueue,H!==null&&(r.updateQueue=null,Po(r,H)));break;case 22:w=r.memoizedState!==null;var G=m!==null&&m.memoizedState!==null,ie=Oa,le=G2;if(Oa=ie||w,G2=le||G,h4(c,r),G2=le,Oa=ie,K2(r),H&8192)e:for(c=r.stateNode,c._visibility=w?c._visibility&~Cg:c._visibility|Cg,w&&(m===null||G||Oa||G2||p4(r)),m=null,c=r;;){if(c.tag===5||c.tag===26){if(m===null){G=m=c;try{D=G.stateNode,w?pt(G,ch,D):pt(G,mu,G.stateNode,G.memoizedProps)}catch(Ve){P1(G,G.return,Ve)}}}else if(c.tag===6){if(m===null){G=c;try{I=G.stateNode,w?pt(G,Th,I):pt(G,yu,I,G.memoizedProps)}catch(Ve){P1(G,G.return,Ve)}}}else if((c.tag!==22&&c.tag!==23||c.memoizedState===null||c===r)&&c.child!==null){c.child.return=c,c=c.child;continue}if(c===r)break e;for(;c.sibling===null;){if(c.return===null||c.return===r)break e;m===c&&(m=null),c=c.return}m===c&&(m=null),c.sibling.return=c.return,c=c.sibling}H&4&&(H=r.updateQueue,H!==null&&(m=H.retryQueue,m!==null&&(H.retryQueue=null,Po(r,m))));break;case 19:h4(c,r),K2(r),H&4&&(H=r.updateQueue,H!==null&&(r.updateQueue=null,Po(r,H)));break;case 30:break;case 21:break;default:h4(c,r),K2(r)}}function K2(r){var c=r.flags;if(c&2){try{pt(r,Uy,r)}catch(m){P1(r,r.return,m)}r.flags&=-3}c&4096&&(r.flags&=-4097)}function Nd(r){if(r.subtreeFlags&1024)for(r=r.child;r!==null;){var c=r;Nd(c),c.tag===5&&c.flags&1024&&c.stateNode.reset(),r=r.sibling}}function D2(r,c){if(c.subtreeFlags&8772)for(c=c.child;c!==null;)Rd(r,c.alternate,c),c=c.sibling}function c6(r){switch(r.tag){case 0:case 11:case 14:case 15:Sl(r,r.return,F3),p4(r);break;case 1:u6(r,r.return);var c=r.stateNode;typeof c.componentWillUnmount=="function"&&Vd(r,r.return,c),p4(r);break;case 27:pt(r,Yo,r.stateNode);case 26:case 5:u6(r,r.return),p4(r);break;case 22:r.memoizedState===null&&p4(r);break;case 30:p4(r);break;default:p4(r)}}function p4(r){for(r=r.child;r!==null;)c6(r),r=r.sibling}function Bd(r,c,m,H){var w=m.flags;switch(m.tag){case 0:case 11:case 15:H3(r,m,H),Od(m,F3);break;case 1:if(H3(r,m,H),c=m.stateNode,typeof c.componentDidMount=="function"&&pt(m,QH,m,c),c=m.updateQueue,c!==null){r=m.stateNode;try{pt(m,Db,c,r)}catch(D){P1(m,m.return,D)}}H&&w&64&&Cd(m),Ta(m,m.return);break;case 27:_l(m);case 26:case 5:H3(r,m,H),H&&c===null&&w&4&&$y(m),Ta(m,m.return);break;case 12:if(H&&w&4){w=k4(),H3(r,m,H),H=m.stateNode,H.effectDuration+=po(w);try{pt(m,Dd,m,c,Rg,H.effectDuration)}catch(D){P1(m,m.return,D)}}else H3(r,m,H);break;case 13:H3(r,m,H),H&&w&4&&Ol(r,m);break;case 22:m.memoizedState===null&&H3(r,m,H),Ta(m,m.return);break;case 30:break;default:H3(r,m,H)}}function H3(r,c,m){for(m=m&&(c.subtreeFlags&8772)!==0,c=c.child;c!==null;)Bd(r,c.alternate,c,m),c=c.sibling}function T6(r,c){var m=null;r!==null&&r.memoizedState!==null&&r.memoizedState.cachePool!==null&&(m=r.memoizedState.cachePool.pool),r=null,c.memoizedState!==null&&c.memoizedState.cachePool!==null&&(r=c.memoizedState.cachePool.pool),r!==m&&(r!=null&&an(r),m!=null&&ea(m))}function E2(r,c){r=null,c.alternate!==null&&(r=c.alternate.memoizedState.cache),c=c.memoizedState.cache,c!==r&&(an(c),r!=null&&ea(r))}function P4(r,c,m,H){if(c.subtreeFlags&10256)for(c=c.child;c!==null;)au(r,c,m,H),c=c.sibling}function au(r,c,m,H){var w=c.flags;switch(c.tag){case 0:case 11:case 15:P4(r,c,m,H),w&2048&&nu(c,y3|i5);break;case 1:P4(r,c,m,H);break;case 3:var D=k4();P4(r,c,m,H),w&2048&&(m=null,c.alternate!==null&&(m=c.alternate.memoizedState.cache),c=c.memoizedState.cache,c!==m&&(an(c),m!=null&&ea(m))),r.passiveEffectDuration+=ho(D);break;case 12:if(w&2048){w=k4(),P4(r,c,m,H),r=c.stateNode,r.passiveEffectDuration+=po(w);try{pt(c,kb,c,c.alternate,Rg,r.passiveEffectDuration)}catch(G){P1(c,c.return,G)}}else P4(r,c,m,H);break;case 13:P4(r,c,m,H);break;case 23:break;case 22:D=c.stateNode;var I=c.alternate;c.memoizedState!==null?D._visibility&Ha?P4(r,c,m,H):jo(r,c):D._visibility&Ha?P4(r,c,m,H):(D._visibility|=Ha,o0(r,c,m,H,(c.subtreeFlags&10256)!==0)),w&2048&&T6(I,c);break;case 24:P4(r,c,m,H),w&2048&&E2(c.alternate,c);break;default:P4(r,c,m,H)}}function o0(r,c,m,H,w){for(w=w&&(c.subtreeFlags&10256)!==0,c=c.child;c!==null;)Pd(r,c,m,H,w),c=c.sibling}function Pd(r,c,m,H,w){var D=c.flags;switch(c.tag){case 0:case 11:case 15:o0(r,c,m,H,w),nu(c,y3);break;case 23:break;case 22:var I=c.stateNode;c.memoizedState!==null?I._visibility&Ha?o0(r,c,m,H,w):jo(r,c):(I._visibility|=Ha,o0(r,c,m,H,w)),w&&D&2048&&T6(c.alternate,c);break;case 24:o0(r,c,m,H,w),w&&D&2048&&E2(c.alternate,c);break;default:o0(r,c,m,H,w)}}function jo(r,c){if(c.subtreeFlags&10256)for(c=c.child;c!==null;){var m=r,H=c,w=H.flags;switch(H.tag){case 22:jo(m,H),w&2048&&T6(H.alternate,H);break;case 24:jo(m,H),w&2048&&E2(H.alternate,H);break;default:jo(m,H)}c=c.sibling}}function cn(r){if(r.subtreeFlags&ap)for(r=r.child;r!==null;)wl(r),r=r.sibling}function wl(r){switch(r.tag){case 26:cn(r),r.flags&ap&&r.memoizedState!==null&&Tg(Er,r.memoizedState,r.memoizedProps);break;case 5:cn(r);break;case 3:case 4:var c=Er;Er=Lu(r.stateNode.containerInfo),cn(r),Er=c;break;case 22:r.memoizedState===null&&(c=r.alternate,c!==null&&c.memoizedState!==null?(c=ap,ap=16777216,cn(r),ap=c):cn(r));break;default:cn(r)}}function jd(r){var c=r.alternate;if(c!==null&&(r=c.child,r!==null)){c.child=null;do c=r.sibling,r.sibling=null,r=c;while(r!==null)}}function Io(r){var c=r.deletions;if((r.flags&16)!==0){if(c!==null)for(var m=0;m<c.length;m++){var H=c[m];A3=H,ou(H,r)}jd(r)}if(r.subtreeFlags&10256)for(r=r.child;r!==null;)Id(r),r=r.sibling}function Id(r){switch(r.tag){case 0:case 11:case 15:Io(r),r.flags&2048&&ru(r,r.return,y3|i5);break;case 3:var c=k4();Io(r),r.stateNode.passiveEffectDuration+=ho(c);break;case 12:c=k4(),Io(r),r.stateNode.passiveEffectDuration+=po(c);break;case 22:c=r.stateNode,r.memoizedState!==null&&c._visibility&Ha&&(r.return===null||r.return.tag!==13)?(c._visibility&=~Ha,Qa(r)):Io(r);break;default:Io(r)}}function Qa(r){var c=r.deletions;if((r.flags&16)!==0){if(c!==null)for(var m=0;m<c.length;m++){var H=c[m];A3=H,ou(H,r)}jd(r)}for(r=r.child;r!==null;)Fd(r),r=r.sibling}function Fd(r){switch(r.tag){case 0:case 11:case 15:ru(r,r.return,y3),Qa(r);break;case 22:var c=r.stateNode;c._visibility&Ha&&(c._visibility&=~Ha,Qa(r));break;default:Qa(r)}}function ou(r,c){for(;A3!==null;){var m=A3,H=m;switch(H.tag){case 0:case 11:case 15:ru(H,c,y3);break;case 23:case 22:H.memoizedState!==null&&H.memoizedState.cachePool!==null&&(H=H.memoizedState.cachePool.pool,H!=null&&an(H));break;case 24:ea(H.memoizedState.cache)}if(H=m.child,H!==null)H.return=m,A3=H;else e:for(m=r;A3!==null;){H=A3;var w=H.sibling,D=H.return;if(Zy(H),H===m){A3=null;break e}if(w!==null){w.return=D,A3=w;break e}A3=D}}}function Xy(){Cae.forEach(function(r){return r()})}function zd(){var r=typeof IS_REACT_ACT_ENVIRONMENT<"u"?IS_REACT_ACT_ENVIRONMENT:void 0;return r||we.actQueue===null||console.error("The current testing environment is not configured to support act(...)"),r}function j4(r){if((C1&X4)!==L6&&l1!==0)return l1&-l1;var c=we.T;return c!==null?(c._updatedFibers||(c._updatedFibers=new Set),c._updatedFibers.add(r),r=ss,r!==0?r:hu()):o1()}function qd(){b6===0&&(b6=(l1&536870912)===0||L1?st():536870912);var r=o5.current;return r!==null&&(r.flags|=32),b6}function Jt(r,c,m){if(Lc&&console.error("useInsertionEffect must not schedule updates."),OH&&(Xg=!0),(r===a2&&(z1===fs||z1===ds)||r.cancelPendingCommit!==null)&&(or(r,0),ar(r,l1,b6,!1)),f1(r,m),(C1&X4)!==0&&r===a2){if(Z6)switch(c.tag){case 0:case 11:case 15:r=i1&&R(i1)||"Unknown",zP.has(r)||(zP.add(r),c=R(c)||"Unknown",console.error("Cannot update a component (`%s`) while rendering a different component (`%s`). To locate the bad setState() call inside `%s`, follow the stack trace as described in https://react.dev/link/setstate-in-render",c,r,r));break;case 1:FP||(console.error("Cannot update during an existing state transition (such as within `render`). Render methods should be a pure function of props and state."),FP=!0)}}else dn&&et(r,c,m),th(c),r===a2&&((C1&X4)===L6&&(m7|=m),N2===Qs&&ar(r,l1,b6,!1)),Tn(r)}function J2(r,c,m){if((C1&(X4|Sr))!==L6)throw Error("Should not already be working.");var H=!m&&(c&124)===0&&(c&r.expiredLanes)===0||zt(r,c),w=H?Zd(r,c):Vl(r,c,!0),D=H;do{if(w===Ca){gc&&!H&&ar(r,c,0,!1);break}else{if(m=r.current.alternate,D&&!Wy(m)){w=Vl(r,c,!1),D=!1;continue}if(w===mc){if(D=c,r.errorRecoveryDisabledLanes&D)var I=0;else I=r.pendingLanes&-536870913,I=I!==0?I:I&536870912?536870912:0;if(I!==0){c=I;e:{w=r;var G=I;I=Tp;var ie=w.current.memoizedState.isDehydrated;if(ie&&(or(w,G).flags|=256),G=Vl(w,G,!1),G!==mc){if(bH&&!ie){w.errorRecoveryDisabledLanes|=D,m7|=D,w=Qs;break e}w=W4,W4=I,w!==null&&(W4===null?W4=w:W4.push.apply(W4,w))}w=G}if(D=!1,w!==mc)continue}}if(w===lp){or(r,0),ar(r,c,0,!0);break}e:{switch(H=r,w){case Ca:case lp:throw Error("Root did not complete. This is a bug in React.");case Qs:if((c&4194048)!==c)break;case Ug:ar(H,c,b6,!h7);break e;case mc:W4=null;break;case vH:case DP:break;default:throw Error("Unknown root exit status.")}if(we.actQueue!==null)Q6(H,m,c,W4,Qp,Gg,b6,m7,hs);else{if((c&62914560)===c&&(D=EH+kP-d3(),10<D)){if(ar(H,c,b6,!h7),mt(H,0,!0)!==0)break e;H.timeoutHandle=YP($d.bind(null,H,m,W4,Qp,Gg,c,b6,m7,hs,h7,w,Rae,BB,0),D);break e}$d(H,m,W4,Qp,Gg,c,b6,m7,hs,h7,w,Vae,BB,0)}}}break}while(!0);Tn(r)}function $d(r,c,m,H,w,D,I,G,ie,le,Ve,Ne,Ce,Be){if(r.timeoutHandle=vs,Ne=c.subtreeFlags,(Ne&8192||(Ne&16785408)===16785408)&&(yp={stylesheets:null,count:0,unsuspend:cg},wl(c),Ne=Qg(),Ne!==null)){r.cancelPendingCommit=Ne(Q6.bind(null,r,c,D,m,H,w,I,G,ie,Ve,Dae,Ce,Be)),ar(r,D,I,!le);return}Q6(r,c,D,m,H,w,I,G,ie)}function Wy(r){for(var c=r;;){var m=c.tag;if((m===0||m===11||m===15)&&c.flags&16384&&(m=c.updateQueue,m!==null&&(m=m.stores,m!==null)))for(var H=0;H<m.length;H++){var w=m[H],D=w.getSnapshot;w=w.value;try{if(!U4(D(),w))return!1}catch{return!1}}if(m=c.child,c.subtreeFlags&16384&&m!==null)m.return=c,c=m;else{if(c===r)break;for(;c.sibling===null;){if(c.return===null||c.return===r)return!0;c=c.return}c.sibling.return=c.return,c=c.sibling}}return!0}function ar(r,c,m,H){c&=~HH,c&=~m7,r.suspendedLanes|=c,r.pingedLanes&=~c,H&&(r.warmLanes|=c),H=r.expirationTimes;for(var w=c;0<w;){var D=31-t3(w),I=1<<D;H[D]=-1,w&=~I}m!==0&&me(r,m,c)}function fa(){return(C1&(X4|Sr))===L6?(u0(0),!1):!0}function lu(){if(i1!==null){if(z1===mn)var r=i1.return;else r=i1,_9(),i6(r),cc=null,rp=0,r=i1;for(;r!==null;)_d(r.alternate,r),r=r.return;i1=null}}function or(r,c){var m=r.timeoutHandle;m!==vs&&(r.timeoutHandle=vs,Zae(m)),m=r.cancelPendingCommit,m!==null&&(r.cancelPendingCommit=null,m()),lu(),a2=r,i1=m=N6(r.current,null),l1=c,z1=mn,x6=null,h7=!1,gc=zt(r,c),bH=!1,N2=Ca,hs=b6=HH=m7=p7=0,W4=Tp=null,Gg=!1,(c&8)!==0&&(c|=c&32);var H=r.entangledLanes;if(H!==0)for(r=r.entanglements,H&=c;0<H;){var w=31-t3(H),D=1<<w;c|=r[w],H&=~D}return _0=c,L9(),c=kB(),1e3<c-RB&&(we.recentlyCreatedOwnerStacks=0,RB=c),br.discardPendingWarnings(),m}function su(r,c){Dt=null,we.H=qg,we.getCurrentStack=null,Z6=!1,p3=null,c===Jh||c===Pg?(c=N4(),z1=up):c===IB?(c=N4(),z1=RP):z1=c===EP?xH:c!==null&&typeof c=="object"&&typeof c.then=="function"?yc:sp,x6=c;var m=i1;if(m===null)N2=lp,Do(r,a4(c,r.current));else switch(m.mode&I3&&Wr(m),_e(),z1){case sp:lt!==null&&typeof lt.markComponentErrored=="function"&<.markComponentErrored(m,c,l1);break;case fs:case ds:case up:case yc:case cp:lt!==null&&typeof lt.markComponentSuspended=="function"&<.markComponentSuspended(m,c,l1)}}function Ud(){var r=we.H;return we.H=qg,r===null?qg:r}function Gd(){var r=we.A;return we.A=Oae,r}function uu(){N2=Qs,h7||(l1&4194048)!==l1&&o5.current!==null||(gc=!0),(p7&134217727)===0&&(m7&134217727)===0||a2===null||ar(a2,l1,b6,!1)}function Vl(r,c,m){var H=C1;C1|=X4;var w=Ud(),D=Gd();if(a2!==r||l1!==c){if(dn){var I=r.memoizedUpdaters;0<I.size&&(ha(r,l1),I.clear()),tt(r,c)}Qp=null,or(r,c)}ze(c),c=!1,I=N2;e:do try{if(z1!==mn&&i1!==null){var G=i1,ie=x6;switch(z1){case xH:lu(),I=Ug;break e;case up:case fs:case ds:case yc:o5.current===null&&(c=!0);var le=z1;if(z1=mn,x6=null,da(r,G,ie,le),m&&gc){I=Ca;break e}break;default:le=z1,z1=mn,x6=null,da(r,G,ie,le)}}cu(),I=N2;break}catch(Ve){su(r,Ve)}while(!0);return c&&r.shellSuspendCounter++,_9(),C1=H,we.H=w,we.A=D,ue(),i1===null&&(a2=null,l1=0,L9()),I}function cu(){for(;i1!==null;)Tu(i1)}function Zd(r,c){var m=C1;C1|=X4;var H=Ud(),w=Gd();if(a2!==r||l1!==c){if(dn){var D=r.memoizedUpdaters;0<D.size&&(ha(r,l1),D.clear()),tt(r,c)}Qp=null,Zg=d3()+NP,or(r,c)}else gc=zt(r,c);ze(c);e:do try{if(z1!==mn&&i1!==null)t:switch(c=i1,D=x6,z1){case sp:z1=mn,x6=null,da(r,c,D,sp);break;case fs:case ds:if(V9(D)){z1=mn,x6=null,Dl(c);break}c=function(){z1!==fs&&z1!==ds||a2!==r||(z1=cp),Tn(r)},D.then(c,c);break e;case up:z1=cp;break e;case RP:z1=LH;break e;case cp:V9(D)?(z1=mn,x6=null,Dl(c)):(z1=mn,x6=null,da(r,c,D,cp));break;case LH:var I=null;switch(i1.tag){case 26:I=i1.memoizedState;case 5:case 27:var G=i1;if(!I||ph(I)){z1=mn,x6=null;var ie=G.sibling;if(ie!==null)i1=ie;else{var le=G.return;le!==null?(i1=le,Fo(le)):i1=null}break t}break;default:console.error("Unexpected type of fiber triggered a suspensey commit. This is a bug in React.")}z1=mn,x6=null,da(r,c,D,LH);break;case yc:z1=mn,x6=null,da(r,c,D,yc);break;case xH:lu(),N2=Ug;break e;default:throw Error("Unexpected SuspendedReason. This is a bug in React.")}we.actQueue!==null?cu():Yy();break}catch(Ve){su(r,Ve)}while(!0);return _9(),we.H=H,we.A=w,C1=m,i1!==null?(lt!==null&&typeof lt.markRenderYielded=="function"&<.markRenderYielded(),Ca):(ue(),a2=null,l1=0,L9(),N2)}function Yy(){for(;i1!==null&&!Fb();)Tu(i1)}function Tu(r){var c=r.alternate;(r.mode&I3)!==c2?(X5(r),c=pt(r,a0,c,r,_0),Wr(r)):c=pt(r,a0,c,r,_0),r.memoizedProps=r.pendingProps,c===null?Fo(r):i1=c}function Dl(r){var c=pt(r,Xd,r);r.memoizedProps=r.pendingProps,c===null?Fo(r):i1=c}function Xd(r){var c=r.alternate,m=(r.mode&I3)!==c2;switch(m&&X5(r),r.tag){case 15:case 0:c=gd(c,r,r.pendingProps,r.type,void 0,l1);break;case 11:c=gd(c,r,r.pendingProps,r.type.render,r.ref,l1);break;case 5:i6(r);default:_d(c,r),r=i1=Zf(r,_0),c=a0(c,r,_0)}return m&&Wr(r),c}function da(r,c,m,H){_9(),i6(c),cc=null,rp=0;var w=c.return;try{if(X9(r,w,c,m,l1)){N2=lp,Do(r,a4(m,r.current)),i1=null;return}}catch(D){if(w!==null)throw i1=w,D;N2=lp,Do(r,a4(m,r.current)),i1=null;return}c.flags&32768?(L1||H===sp?r=!0:gc||(l1&536870912)!==0?r=!1:(h7=r=!0,(H===fs||H===ds||H===up||H===yc)&&(H=o5.current,H!==null&&H.tag===13&&(H.flags|=16384))),Wd(c,r)):Fo(c)}function Fo(r){var c=r;do{if((c.flags&32768)!==0){Wd(c,h7);return}var m=c.alternate;if(r=c.return,X5(c),m=pt(c,Fy,m,c,_0),(c.mode&I3)!==c2&&C9(c),m!==null){i1=m;return}if(c=c.sibling,c!==null){i1=c;return}i1=c=r}while(c!==null);N2===Ca&&(N2=DP)}function Wd(r,c){do{var m=zy(r.alternate,r);if(m!==null){m.flags&=32767,i1=m;return}if((r.mode&I3)!==c2){C9(r),m=r.actualDuration;for(var H=r.child;H!==null;)m+=H.actualDuration,H=H.sibling;r.actualDuration=m}if(m=r.return,m!==null&&(m.flags|=32768,m.subtreeFlags=0,m.deletions=null),!c&&(r=r.sibling,r!==null)){i1=r;return}i1=r=m}while(r!==null);N2=Ug,i1=null}function Q6(r,c,m,H,w,D,I,G,ie){r.cancelPendingCommit=null;do l0();while(z3!==ps);if(br.flushLegacyContextWarning(),br.flushPendingUnsafeLifecycleWarnings(),(C1&(X4|Sr))!==L6)throw Error("Should not already be working.");if(lt!==null&&typeof lt.markCommitStarted=="function"&<.markCommitStarted(m),c===null)Se();else{if(m===0&&console.error("finishedLanes should not be empty during a commit. This is a bug in React."),c===r.current)throw Error("Cannot commit the same tree as before. This error is likely caused by a bug in React. Please file an issue.");if(D=c.lanes|c.childLanes,D|=Jb,Ge(r,m,D,I,G,ie),r===a2&&(i1=a2=null,l1=0),vc=c,g7=r,v7=m,MH=D,AH=w,IP=H,(c.subtreeFlags&10256)!==0||(c.flags&10256)!==0?(r.callbackNode=null,r.callbackPriority=0,tg(i7,function(){return zo(),null})):(r.callbackNode=null,r.callbackPriority=0),Rg=ac(),H=(c.flags&13878)!==0,(c.subtreeFlags&13878)!==0||H){H=we.T,we.T=null,w=b1.p,b1.p=$4,I=C1,C1|=Sr;try{Gy(r,c,m)}finally{C1=I,b1.p=w,we.T=H}}z3=BP,Qu(),Ky(),Yd()}}function Qu(){if(z3===BP){z3=ps;var r=g7,c=vc,m=v7,H=(c.flags&13878)!==0;if((c.subtreeFlags&13878)!==0||H){H=we.T,we.T=null;var w=b1.p;b1.p=$4;var D=C1;C1|=Sr;try{hc=m,pc=r,kd(c,r),pc=hc=null,m=PH;var I=Dy(r.containerInfo),G=m.focusedElem,ie=m.selectionRange;if(I!==G&&G&&G.ownerDocument&&Vy(G.ownerDocument.documentElement,G)){if(ie!==null&&$f(G)){var le=ie.start,Ve=ie.end;if(Ve===void 0&&(Ve=le),"selectionStart"in G)G.selectionStart=le,G.selectionEnd=Math.min(Ve,G.value.length);else{var Ne=G.ownerDocument||document,Ce=Ne&&Ne.defaultView||window;if(Ce.getSelection){var Be=Ce.getSelection(),Qt=G.textContent.length,Ot=Math.min(ie.start,Qt),o2=ie.end===void 0?Ot:Math.min(ie.end,Qt);!Be.extend&&Ot>o2&&(I=o2,o2=Ot,Ot=I);var c1=wy(G,Ot),Te=wy(G,o2);if(c1&&Te&&(Be.rangeCount!==1||Be.anchorNode!==c1.node||Be.anchorOffset!==c1.offset||Be.focusNode!==Te.node||Be.focusOffset!==Te.offset)){var Qe=Ne.createRange();Qe.setStart(c1.node,c1.offset),Be.removeAllRanges(),Ot>o2?(Be.addRange(Qe),Be.extend(Te.node,Te.offset)):(Qe.setEnd(Te.node,Te.offset),Be.addRange(Qe))}}}}for(Ne=[],Be=G;Be=Be.parentNode;)Be.nodeType===1&&Ne.push({element:Be,left:Be.scrollLeft,top:Be.scrollTop});for(typeof G.focus=="function"&&G.focus(),G=0;G<Ne.length;G++){var ye=Ne[G];ye.element.scrollLeft=ye.left,ye.element.scrollTop=ye.top}}cv=!!BH,PH=BH=null}finally{C1=D,b1.p=w,we.T=H}}r.current=c,z3=PP}}function Ky(){if(z3===PP){z3=ps;var r=g7,c=vc,m=v7,H=(c.flags&8772)!==0;if((c.subtreeFlags&8772)!==0||H){H=we.T,we.T=null;var w=b1.p;b1.p=$4;var D=C1;C1|=Sr;try{lt!==null&&typeof lt.markLayoutEffectsStarted=="function"&<.markLayoutEffectsStarted(m),hc=m,pc=r,Rd(r,c.alternate,c),pc=hc=null,lt!==null&&typeof lt.markLayoutEffectsStopped=="function"&<.markLayoutEffectsStopped()}finally{C1=D,b1.p=w,we.T=H}}z3=jP}}function Yd(){if(z3===kae||z3===jP){z3=ps,zb();var r=g7,c=vc,m=v7,H=IP,w=(c.subtreeFlags&10256)!==0||(c.flags&10256)!==0;w?z3=SH:(z3=ps,vc=g7=null,Kd(r,r.pendingLanes),ms=0,dp=null);var D=r.pendingLanes;if(D===0&&(y7=null),w||f6(r),w=Tt(m),c=c.stateNode,h3&&typeof h3.onCommitFiberRoot=="function")try{var I=(c.current.flags&128)===128;switch(w){case $4:var G=Zl;break;case G6:G=bh;break;case gr:G=i7;break;case Pu:G=Eh;break;default:G=i7}h3.onCommitFiberRoot(xa,c,G,I)}catch(Ne){S2||(S2=!0,console.error("React instrumentation encountered an error: %s",Ne))}if(dn&&r.memoizedUpdaters.clear(),Xy(),H!==null){I=we.T,G=b1.p,b1.p=$4,we.T=null;try{var ie=r.onRecoverableError;for(c=0;c<H.length;c++){var le=H[c],Ve=lr(le.stack);pt(le.source,ie,le.value,Ve)}}finally{we.T=I,b1.p=G}}(v7&3)!==0&&l0(),Tn(r),D=r.pendingLanes,(m&4194090)!==0&&(D&42)!==0?(Ng=!0,r===_H?fp++:(fp=0,_H=r)):fp=0,u0(0),Se()}}function lr(r){return r={componentStack:r},Object.defineProperty(r,"digest",{get:function(){console.error('You are accessing "digest" from the errorInfo object passed to onRecoverableError. This property is no longer provided as part of errorInfo but can be accessed as a property of the Error instance itself.')}}),r}function Kd(r,c){(r.pooledCacheLanes&=c)===0&&(c=r.pooledCache,c!=null&&(r.pooledCache=null,ea(c)))}function l0(r){return Qu(),Ky(),Yd(),zo()}function zo(){if(z3!==SH)return!1;var r=g7,c=MH;MH=0;var m=Tt(v7),H=gr>m?gr:m;m=we.T;var w=b1.p;try{b1.p=H,we.T=null,H=AH,AH=null;var D=g7,I=v7;if(z3=ps,vc=g7=null,v7=0,(C1&(X4|Sr))!==L6)throw Error("Cannot flush passive effects while already rendering.");OH=!0,Xg=!1,lt!==null&&typeof lt.markPassiveEffectsStarted=="function"&<.markPassiveEffectsStarted(I);var G=C1;if(C1|=Sr,Id(D.current),au(D,D.current,I,H),lt!==null&&typeof lt.markPassiveEffectsStopped=="function"&<.markPassiveEffectsStopped(),f6(D),C1=G,u0(0,!1),Xg?D===dp?ms++:(ms=0,dp=D):ms=0,Xg=OH=!1,h3&&typeof h3.onPostCommitFiberRoot=="function")try{h3.onPostCommitFiberRoot(xa,D)}catch(le){S2||(S2=!0,console.error("React instrumentation encountered an error: %s",le))}var ie=D.current.stateNode;return ie.effectDuration=0,ie.passiveEffectDuration=0,!0}finally{b1.p=w,we.T=m,Kd(r,c)}}function u2(r,c,m){c=a4(m,c),c=g2(r.stateNode,c,2),r=t6(r,c,2),r!==null&&(f1(r,2),Tn(r))}function P1(r,c,m){if(Lc=!1,r.tag===3)u2(r,r,m);else{for(;c!==null;){if(c.tag===3){u2(c,r,m);return}if(c.tag===1){var H=c.stateNode;if(typeof c.type.getDerivedStateFromError=="function"||typeof H.componentDidCatch=="function"&&(y7===null||!y7.has(H))){r=a4(m,r),m=vl(2),H=t6(c,m,2),H!==null&&(sa(m,H,c,r),f1(H,2),Tn(H));return}}c=c.return}console.error(`Internal React error: Attempted to capture a commit phase error inside a detached tree. This indicates a bug in React. Potential causes include deleting the same fiber more than once, committing an already-finished tree, or an inconsistent return pointer.
|
|
585
|
+
Learn more about data fetching with Hooks: https://react.dev/link/hooks-data-fetching`:" You returned: "+H,pt(c,function(G,ie){console.error("%s must not return anything besides a function, which is used for clean-up.%s",G,ie)},D,I)}m=m.next}while(m!==w)}}catch(G){P1(c,c.return,G)}}function ca(r,c,m){try{var H=c.updateQueue,w=H!==null?H.lastEffect:null;if(w!==null){var D=w.next;H=D;do{if((H.tag&r)===r){var I=H.inst,G=I.destroy;G!==void 0&&(I.destroy=void 0,(r&y3)!==r5?lt!==null&&typeof lt.markComponentPassiveEffectUnmountStarted=="function"&<.markComponentPassiveEffectUnmountStarted(c):(r&F3)!==r5&<!==null&&typeof lt.markComponentLayoutEffectUnmountStarted=="function"&<.markComponentLayoutEffectUnmountStarted(c),(r&Z4)!==r5&&(Lc=!0),w=c,pt(w,_ae,w,m,G),(r&Z4)!==r5&&(Lc=!1),(r&y3)!==r5?lt!==null&&typeof lt.markComponentPassiveEffectUnmountStopped=="function"&<.markComponentPassiveEffectUnmountStopped():(r&F3)!==r5&<!==null&&typeof lt.markComponentLayoutEffectUnmountStopped=="function"&<.markComponentLayoutEffectUnmountStopped())}H=H.next}while(H!==D)}}catch(ie){P1(c,c.return,ie)}}function nu(r,c){s6(r)?(b3(),Ro(c,r),Jn()):Ro(c,r)}function ru(r,c,m){s6(r)?(b3(),ca(m,r,c),Jn()):ca(m,r,c)}function Cd(r){var c=r.updateQueue;if(c!==null){var m=r.stateNode;r.type.defaultProps||"ref"in r.memoizedProps||dc||(m.props!==r.memoizedProps&&console.error("Expected %s props to match memoized props before processing the update queue. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",R(r)||"instance"),m.state!==r.memoizedState&&console.error("Expected %s state to match memoized state before processing the update queue. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",R(r)||"instance"));try{pt(r,s4,c,m)}catch(H){P1(r,r.return,H)}}}function Rb(r,c,m){return r.getSnapshotBeforeUpdate(c,m)}function wd(r,c){var m=c.memoizedProps,H=c.memoizedState;c=r.stateNode,r.type.defaultProps||"ref"in r.memoizedProps||dc||(c.props!==r.memoizedProps&&console.error("Expected %s props to match memoized props before getSnapshotBeforeUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",R(r)||"instance"),c.state!==r.memoizedState&&console.error("Expected %s state to match memoized state before getSnapshotBeforeUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",R(r)||"instance"));try{var w=i0(r.type,m,r.elementType===r.type),D=pt(r,Rb,c,w,H);m=wP,D!==void 0||m.has(r.type)||(m.add(r.type),pt(r,function(){console.error("%s.getSnapshotBeforeUpdate(): A snapshot value (or null) must be returned. You have returned undefined.",R(r))})),c.__reactInternalSnapshotBeforeUpdate=D}catch(I){P1(r,r.return,I)}}function Vd(r,c,m){m.props=i0(r.type,r.memoizedProps),m.state=r.memoizedState,s6(r)?(b3(),pt(r,aP,r,c,m),Jn()):pt(r,aP,r,c,m)}function qy(r){var c=r.ref;if(c!==null){switch(r.tag){case 26:case 27:case 5:var m=r.stateNode;break;case 30:m=r.stateNode;break;default:m=r.stateNode}if(typeof c=="function")if(s6(r))try{b3(),r.refCleanup=c(m)}finally{Jn()}else r.refCleanup=c(m);else typeof c=="string"?console.error("String refs are no longer supported."):c.hasOwnProperty("current")||console.error("Unexpected ref object provided for %s. Use either a ref-setter function or React.createRef().",R(r)),c.current=m}}function Ta(r,c){try{pt(r,qy,r)}catch(m){P1(r,c,m)}}function u6(r,c){var m=r.ref,H=r.refCleanup;if(m!==null)if(typeof H=="function")try{if(s6(r))try{b3(),pt(r,H)}finally{Jn(r)}else pt(r,H)}catch(w){P1(r,c,w)}finally{r.refCleanup=null,r=r.alternate,r!=null&&(r.refCleanup=null)}else if(typeof m=="function")try{if(s6(r))try{b3(),pt(r,m,null)}finally{Jn(r)}else pt(r,m,null)}catch(w){P1(r,c,w)}else m.current=null}function Dd(r,c,m,H){var w=r.memoizedProps,D=w.id,I=w.onCommit;w=w.onRender,c=c===null?"mount":"update",kg&&(c="nested-update"),typeof w=="function"&&w(D,c,r.actualDuration,r.treeBaseDuration,r.actualStartTime,m),typeof I=="function"&&I(r.memoizedProps.id,c,H,m)}function kb(r,c,m,H){var w=r.memoizedProps;r=w.id,w=w.onPostCommit,c=c===null?"mount":"update",kg&&(c="nested-update"),typeof w=="function"&&w(r,c,H,m)}function $y(r){var c=r.type,m=r.memoizedProps,H=r.stateNode;try{pt(r,L2,H,c,m,r)}catch(w){P1(r,r.return,w)}}function iu(r,c,m){try{pt(r,f0,r.stateNode,r.type,m,c,r)}catch(H){P1(r,r.return,H)}}function ko(r){return r.tag===5||r.tag===3||r.tag===26||r.tag===27&&$2(r.type)||r.tag===4}function Ml(r){e:for(;;){for(;r.sibling===null;){if(r.return===null||ko(r.return))return null;r=r.return}for(r.sibling.return=r.return,r=r.sibling;r.tag!==5&&r.tag!==6&&r.tag!==18;){if(r.tag===27&&$2(r.type)||r.flags&2||r.child===null||r.tag===4)continue e;r.child.return=r,r=r.child}if(!(r.flags&2))return r.stateNode}}function No(r,c,m){var H=r.tag;if(H===5||H===6)r=r.stateNode,c?(m.nodeType===9?m.body:m.nodeName==="HTML"?m.ownerDocument.body:m).insertBefore(r,c):(c=m.nodeType===9?m.body:m.nodeName==="HTML"?m.ownerDocument.body:m,c.appendChild(r),m=m._reactRootContainer,m!=null||c.onclick!==null||(c.onclick=c0));else if(H!==4&&(H===27&&$2(r.type)&&(m=r.stateNode,c=null),r=r.child,r!==null))for(No(r,c,m),r=r.sibling;r!==null;)No(r,c,m),r=r.sibling}function Al(r,c,m){var H=r.tag;if(H===5||H===6)r=r.stateNode,c?m.insertBefore(r,c):m.appendChild(r);else if(H!==4&&(H===27&&$2(r.type)&&(m=r.stateNode),r=r.child,r!==null))for(Al(r,c,m),r=r.sibling;r!==null;)Al(r,c,m),r=r.sibling}function Uy(r){for(var c,m=r.return;m!==null;){if(ko(m)){c=m;break}m=m.return}if(c==null)throw Error("Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue.");switch(c.tag){case 27:c=c.stateNode,m=Ml(r),Al(r,m,c);break;case 5:m=c.stateNode,c.flags&32&&(d0(m),c.flags&=-33),c=Ml(r),Al(r,c,m);break;case 3:case 4:c=c.stateNode.containerInfo,m=Ml(r),No(r,m,c);break;default:throw Error("Invalid host parent fiber. This error is likely caused by a bug in React. Please file an issue.")}}function _l(r){var c=r.stateNode,m=r.memoizedProps;try{pt(r,lg,r.type,m,c,r)}catch(H){P1(r,r.return,H)}}function Gy(r,c){if(r=r.containerInfo,BH=cv,r=Dy(r),$f(r)){if("selectionStart"in r)var m={start:r.selectionStart,end:r.selectionEnd};else e:{m=(m=r.ownerDocument)&&m.defaultView||window;var H=m.getSelection&&m.getSelection();if(H&&H.rangeCount!==0){m=H.anchorNode;var w=H.anchorOffset,D=H.focusNode;H=H.focusOffset;try{m.nodeType,D.nodeType}catch{m=null;break e}var I=0,G=-1,ie=-1,le=0,Ve=0,Ne=r,Ce=null;t:for(;;){for(var Be;Ne!==m||w!==0&&Ne.nodeType!==3||(G=I+w),Ne!==D||H!==0&&Ne.nodeType!==3||(ie=I+H),Ne.nodeType===3&&(I+=Ne.nodeValue.length),(Be=Ne.firstChild)!==null;)Ce=Ne,Ne=Be;for(;;){if(Ne===r)break t;if(Ce===m&&++le===w&&(G=I),Ce===D&&++Ve===H&&(ie=I),(Be=Ne.nextSibling)!==null)break;Ne=Ce,Ce=Ne.parentNode}Ne=Be}m=G===-1||ie===-1?null:{start:G,end:ie}}else m=null}m=m||{start:0,end:0}}else m=null;for(PH={focusedElem:r,selectionRange:m},cv=!1,A3=c;A3!==null;)if(c=A3,r=c.child,(c.subtreeFlags&1024)!==0&&r!==null)r.return=c,A3=r;else for(;A3!==null;){switch(r=c=A3,m=r.alternate,w=r.flags,r.tag){case 0:break;case 11:case 15:break;case 1:(w&1024)!==0&&m!==null&&wd(r,m);break;case 3:if((w&1024)!==0){if(r=r.stateNode.containerInfo,m=r.nodeType,m===9)z6(r);else if(m===1)switch(r.nodeName){case"HEAD":case"HTML":case"BODY":z6(r);break;default:r.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((w&1024)!==0)throw Error("This unit of work tag should not have side-effects. This error is likely caused by a bug in React. Please file an issue.")}if(r=c.sibling,r!==null){r.return=c.return,A3=r;break}A3=c.return}}function Rd(r,c,m){var H=m.flags;switch(m.tag){case 0:case 11:case 15:D2(r,m),H&4&&Od(m,F3|i5);break;case 1:if(D2(r,m),H&4)if(r=m.stateNode,c===null)m.type.defaultProps||"ref"in m.memoizedProps||dc||(r.props!==m.memoizedProps&&console.error("Expected %s props to match memoized props before componentDidMount. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",R(m)||"instance"),r.state!==m.memoizedState&&console.error("Expected %s state to match memoized state before componentDidMount. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",R(m)||"instance")),s6(m)?(b3(),pt(m,QH,m,r),Jn()):pt(m,QH,m,r);else{var w=i0(m.type,c.memoizedProps);c=c.memoizedState,m.type.defaultProps||"ref"in m.memoizedProps||dc||(r.props!==m.memoizedProps&&console.error("Expected %s props to match memoized props before componentDidUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",R(m)||"instance"),r.state!==m.memoizedState&&console.error("Expected %s state to match memoized state before componentDidUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",R(m)||"instance")),s6(m)?(b3(),pt(m,nP,m,r,w,c,r.__reactInternalSnapshotBeforeUpdate),Jn()):pt(m,nP,m,r,w,c,r.__reactInternalSnapshotBeforeUpdate)}H&64&&Cd(m),H&512&&Ta(m,m.return);break;case 3:if(c=k4(),D2(r,m),H&64&&(H=m.updateQueue,H!==null)){if(w=null,m.child!==null)switch(m.child.tag){case 27:case 5:w=m.child.stateNode;break;case 1:w=m.child.stateNode}try{pt(m,s4,H,w)}catch(I){P1(m,m.return,I)}}r.effectDuration+=ho(c);break;case 27:c===null&&H&4&&_l(m);case 26:case 5:D2(r,m),c===null&&H&4&&$y(m),H&512&&Ta(m,m.return);break;case 12:if(H&4){H=k4(),D2(r,m),r=m.stateNode,r.effectDuration+=po(H);try{pt(m,Dd,m,c,Rg,r.effectDuration)}catch(I){P1(m,m.return,I)}}else D2(r,m);break;case 13:D2(r,m),H&4&&Ol(r,m),H&64&&(r=m.memoizedState,r!==null&&(r=r.dehydrated,r!==null&&(m=s0.bind(null,m),Xo(r,m))));break;case 22:if(H=m.memoizedState!==null||Oa,!H){c=c!==null&&c.memoizedState!==null||G2,w=Oa;var D=G2;Oa=H,(G2=c)&&!D?H3(r,m,(m.subtreeFlags&8772)!==0):D2(r,m),Oa=w,G2=D}break;case 30:break;default:D2(r,m)}}function Zy(r){var c=r.alternate;c!==null&&(r.alternate=null,Zy(c)),r.child=null,r.deletions=null,r.sibling=null,r.tag===5&&(c=r.stateNode,c!==null&&d1(c)),r.stateNode=null,r._debugOwner=null,r.return=null,r.dependencies=null,r.memoizedProps=null,r.memoizedState=null,r.pendingProps=null,r.stateNode=null,r.updateQueue=null}function d4(r,c,m){for(m=m.child;m!==null;)Bo(r,c,m),m=m.sibling}function Bo(r,c,m){if(h3&&typeof h3.onCommitFiberUnmount=="function")try{h3.onCommitFiberUnmount(xa,m)}catch(D){S2||(S2=!0,console.error("React instrumentation encountered an error: %s",D))}switch(m.tag){case 26:G2||u6(m,c),d4(r,c,m),m.memoizedState?m.memoizedState.count--:m.stateNode&&(m=m.stateNode,m.parentNode.removeChild(m));break;case 27:G2||u6(m,c);var H=a3,w=pn;$2(m.type)&&(a3=m.stateNode,pn=!1),d4(r,c,m),pt(m,Yo,m.stateNode),a3=H,pn=w;break;case 5:G2||u6(m,c);case 6:if(H=a3,w=pn,a3=null,d4(r,c,m),a3=H,pn=w,a3!==null)if(pn)try{pt(m,Nl,a3,m.stateNode)}catch(D){P1(m,c,D)}else try{pt(m,Zo,a3,m.stateNode)}catch(D){P1(m,c,D)}break;case 18:a3!==null&&(pn?(r=a3,j3(r.nodeType===9?r.body:r.nodeName==="HTML"?r.ownerDocument.body:r,m.stateNode),n7(r)):j3(a3,m.stateNode));break;case 4:H=a3,w=pn,a3=m.stateNode.containerInfo,pn=!0,d4(r,c,m),a3=H,pn=w;break;case 0:case 11:case 14:case 15:G2||ca(Z4,m,c),G2||Sl(m,c,F3),d4(r,c,m);break;case 1:G2||(u6(m,c),H=m.stateNode,typeof H.componentWillUnmount=="function"&&Vd(m,c,H)),d4(r,c,m);break;case 21:d4(r,c,m);break;case 22:G2=(H=G2)||m.memoizedState!==null,d4(r,c,m),G2=H;break;default:d4(r,c,m)}}function Ol(r,c){if(c.memoizedState===null&&(r=c.alternate,r!==null&&(r=r.memoizedState,r!==null&&(r=r.dehydrated,r!==null))))try{pt(c,og,r)}catch(m){P1(c,c.return,m)}}function Cl(r){switch(r.tag){case 13:case 19:var c=r.stateNode;return c===null&&(c=r.stateNode=new VP),c;case 22:return r=r.stateNode,c=r._retryCache,c===null&&(c=r._retryCache=new VP),c;default:throw Error("Unexpected Suspense handler tag ("+r.tag+"). This is a bug in React.")}}function Po(r,c){var m=Cl(r);c.forEach(function(H){var w=eg.bind(null,r,H);if(!m.has(H)){if(m.add(H),dn)if(hc!==null&&pc!==null)ha(pc,hc);else throw Error("Expected finished root and lanes to be set. This is a bug in React.");H.then(w,w)}})}function h4(r,c){var m=c.deletions;if(m!==null)for(var H=0;H<m.length;H++){var w=r,D=c,I=m[H],G=D;e:for(;G!==null;){switch(G.tag){case 27:if($2(G.type)){a3=G.stateNode,pn=!1;break e}break;case 5:a3=G.stateNode,pn=!1;break e;case 3:case 4:a3=G.stateNode.containerInfo,pn=!0;break e}G=G.return}if(a3===null)throw Error("Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue.");Bo(w,D,I),a3=null,pn=!1,w=I,D=w.alternate,D!==null&&(D.return=null),w.return=null}if(c.subtreeFlags&13878)for(c=c.child;c!==null;)kd(c,r),c=c.sibling}function kd(r,c){var m=r.alternate,H=r.flags;switch(r.tag){case 0:case 11:case 14:case 15:h4(c,r),K2(r),H&4&&(ca(Z4|i5,r,r.return),Ro(Z4|i5,r),Sl(r,r.return,F3|i5));break;case 1:h4(c,r),K2(r),H&512&&(G2||m===null||u6(m,m.return)),H&64&&Oa&&(r=r.updateQueue,r!==null&&(H=r.callbacks,H!==null&&(m=r.shared.hiddenCallbacks,r.shared.hiddenCallbacks=m===null?H:m.concat(H))));break;case 26:var w=Er;if(h4(c,r),K2(r),H&512&&(G2||m===null||u6(m,m.return)),H&4)if(c=m!==null?m.memoizedState:null,H=r.memoizedState,m===null)if(H===null)if(r.stateNode===null){e:{H=r.type,m=r.memoizedProps,c=w.ownerDocument||w;t:switch(H){case"title":w=c.getElementsByTagName("title")[0],(!w||w[Wl]||w[S3]||w.namespaceURI===Lr||w.hasAttribute("itemprop"))&&(w=c.createElement(H),c.head.insertBefore(w,c.querySelector("head > title"))),e3(w,H,m),w[S3]=r,Le(w),H=w;break e;case"link":var D=hh("link","href",c).get(H+(m.href||""));if(D){for(var I=0;I<D.length;I++)if(w=D[I],w.getAttribute("href")===(m.href==null||m.href===""?null:m.href)&&w.getAttribute("rel")===(m.rel==null?null:m.rel)&&w.getAttribute("title")===(m.title==null?null:m.title)&&w.getAttribute("crossorigin")===(m.crossOrigin==null?null:m.crossOrigin)){D.splice(I,1);break t}}w=c.createElement(H),e3(w,H,m),c.head.appendChild(w);break;case"meta":if(D=hh("meta","content",c).get(H+(m.content||""))){for(I=0;I<D.length;I++)if(w=D[I],U(m.content,"content"),w.getAttribute("content")===(m.content==null?null:""+m.content)&&w.getAttribute("name")===(m.name==null?null:m.name)&&w.getAttribute("property")===(m.property==null?null:m.property)&&w.getAttribute("http-equiv")===(m.httpEquiv==null?null:m.httpEquiv)&&w.getAttribute("charset")===(m.charSet==null?null:m.charSet)){D.splice(I,1);break t}}w=c.createElement(H),e3(w,H,m),c.head.appendChild(w);break;default:throw Error('getNodesForType encountered a type it did not expect: "'+H+'". This is a bug in React.')}w[S3]=r,Le(w),H=w}r.stateNode=H}else ga(w,r.type,r.stateNode);else r.stateNode=ug(w,H,r.memoizedProps);else c!==H?(c===null?m.stateNode!==null&&(m=m.stateNode,m.parentNode.removeChild(m)):c.count--,H===null?ga(w,r.type,r.stateNode):ug(w,H,r.memoizedProps)):H===null&&r.stateNode!==null&&iu(r,r.memoizedProps,m.memoizedProps);break;case 27:h4(c,r),K2(r),H&512&&(G2||m===null||u6(m,m.return)),m!==null&&H&4&&iu(r,r.memoizedProps,m.memoizedProps);break;case 5:if(h4(c,r),K2(r),H&512&&(G2||m===null||u6(m,m.return)),r.flags&32){c=r.stateNode;try{pt(r,d0,c)}catch(Ve){P1(r,r.return,Ve)}}H&4&&r.stateNode!=null&&(c=r.memoizedProps,iu(r,c,m!==null?m.memoizedProps:c)),H&1024&&(gH=!0,r.type!=="form"&&console.error("Unexpected host component type. Expected a form. This is a bug in React."));break;case 6:if(h4(c,r),K2(r),H&4){if(r.stateNode===null)throw Error("This should have a text node initialized. This error is likely caused by a bug in React. Please file an issue.");H=r.memoizedProps,m=m!==null?m.memoizedProps:H,c=r.stateNode;try{pt(r,uh,c,m,H)}catch(Ve){P1(r,r.return,Ve)}}break;case 3:if(w=k4(),lv=null,D=Er,Er=Lu(c.containerInfo),h4(c,r),Er=D,K2(r),H&4&&m!==null&&m.memoizedState.isDehydrated)try{pt(r,z4,c.containerInfo)}catch(Ve){P1(r,r.return,Ve)}gH&&(gH=!1,Nd(r)),c.effectDuration+=ho(w);break;case 4:H=Er,Er=Lu(r.stateNode.containerInfo),h4(c,r),K2(r),Er=H;break;case 12:H=k4(),h4(c,r),K2(r),r.stateNode.effectDuration+=po(H);break;case 13:h4(c,r),K2(r),r.child.flags&8192&&r.memoizedState!==null!=(m!==null&&m.memoizedState!==null)&&(EH=d3()),H&4&&(H=r.updateQueue,H!==null&&(r.updateQueue=null,Po(r,H)));break;case 22:w=r.memoizedState!==null;var G=m!==null&&m.memoizedState!==null,ie=Oa,le=G2;if(Oa=ie||w,G2=le||G,h4(c,r),G2=le,Oa=ie,K2(r),H&8192)e:for(c=r.stateNode,c._visibility=w?c._visibility&~Cg:c._visibility|Cg,w&&(m===null||G||Oa||G2||p4(r)),m=null,c=r;;){if(c.tag===5||c.tag===26){if(m===null){G=m=c;try{D=G.stateNode,w?pt(G,ch,D):pt(G,mu,G.stateNode,G.memoizedProps)}catch(Ve){P1(G,G.return,Ve)}}}else if(c.tag===6){if(m===null){G=c;try{I=G.stateNode,w?pt(G,Th,I):pt(G,yu,I,G.memoizedProps)}catch(Ve){P1(G,G.return,Ve)}}}else if((c.tag!==22&&c.tag!==23||c.memoizedState===null||c===r)&&c.child!==null){c.child.return=c,c=c.child;continue}if(c===r)break e;for(;c.sibling===null;){if(c.return===null||c.return===r)break e;m===c&&(m=null),c=c.return}m===c&&(m=null),c.sibling.return=c.return,c=c.sibling}H&4&&(H=r.updateQueue,H!==null&&(m=H.retryQueue,m!==null&&(H.retryQueue=null,Po(r,m))));break;case 19:h4(c,r),K2(r),H&4&&(H=r.updateQueue,H!==null&&(r.updateQueue=null,Po(r,H)));break;case 30:break;case 21:break;default:h4(c,r),K2(r)}}function K2(r){var c=r.flags;if(c&2){try{pt(r,Uy,r)}catch(m){P1(r,r.return,m)}r.flags&=-3}c&4096&&(r.flags&=-4097)}function Nd(r){if(r.subtreeFlags&1024)for(r=r.child;r!==null;){var c=r;Nd(c),c.tag===5&&c.flags&1024&&c.stateNode.reset(),r=r.sibling}}function D2(r,c){if(c.subtreeFlags&8772)for(c=c.child;c!==null;)Rd(r,c.alternate,c),c=c.sibling}function c6(r){switch(r.tag){case 0:case 11:case 14:case 15:Sl(r,r.return,F3),p4(r);break;case 1:u6(r,r.return);var c=r.stateNode;typeof c.componentWillUnmount=="function"&&Vd(r,r.return,c),p4(r);break;case 27:pt(r,Yo,r.stateNode);case 26:case 5:u6(r,r.return),p4(r);break;case 22:r.memoizedState===null&&p4(r);break;case 30:p4(r);break;default:p4(r)}}function p4(r){for(r=r.child;r!==null;)c6(r),r=r.sibling}function Bd(r,c,m,H){var w=m.flags;switch(m.tag){case 0:case 11:case 15:H3(r,m,H),Od(m,F3);break;case 1:if(H3(r,m,H),c=m.stateNode,typeof c.componentDidMount=="function"&&pt(m,QH,m,c),c=m.updateQueue,c!==null){r=m.stateNode;try{pt(m,Db,c,r)}catch(D){P1(m,m.return,D)}}H&&w&64&&Cd(m),Ta(m,m.return);break;case 27:_l(m);case 26:case 5:H3(r,m,H),H&&c===null&&w&4&&$y(m),Ta(m,m.return);break;case 12:if(H&&w&4){w=k4(),H3(r,m,H),H=m.stateNode,H.effectDuration+=po(w);try{pt(m,Dd,m,c,Rg,H.effectDuration)}catch(D){P1(m,m.return,D)}}else H3(r,m,H);break;case 13:H3(r,m,H),H&&w&4&&Ol(r,m);break;case 22:m.memoizedState===null&&H3(r,m,H),Ta(m,m.return);break;case 30:break;default:H3(r,m,H)}}function H3(r,c,m){for(m=m&&(c.subtreeFlags&8772)!==0,c=c.child;c!==null;)Bd(r,c.alternate,c,m),c=c.sibling}function T6(r,c){var m=null;r!==null&&r.memoizedState!==null&&r.memoizedState.cachePool!==null&&(m=r.memoizedState.cachePool.pool),r=null,c.memoizedState!==null&&c.memoizedState.cachePool!==null&&(r=c.memoizedState.cachePool.pool),r!==m&&(r!=null&&an(r),m!=null&&ea(m))}function E2(r,c){r=null,c.alternate!==null&&(r=c.alternate.memoizedState.cache),c=c.memoizedState.cache,c!==r&&(an(c),r!=null&&ea(r))}function P4(r,c,m,H){if(c.subtreeFlags&10256)for(c=c.child;c!==null;)au(r,c,m,H),c=c.sibling}function au(r,c,m,H){var w=c.flags;switch(c.tag){case 0:case 11:case 15:P4(r,c,m,H),w&2048&&nu(c,y3|i5);break;case 1:P4(r,c,m,H);break;case 3:var D=k4();P4(r,c,m,H),w&2048&&(m=null,c.alternate!==null&&(m=c.alternate.memoizedState.cache),c=c.memoizedState.cache,c!==m&&(an(c),m!=null&&ea(m))),r.passiveEffectDuration+=ho(D);break;case 12:if(w&2048){w=k4(),P4(r,c,m,H),r=c.stateNode,r.passiveEffectDuration+=po(w);try{pt(c,kb,c,c.alternate,Rg,r.passiveEffectDuration)}catch(G){P1(c,c.return,G)}}else P4(r,c,m,H);break;case 13:P4(r,c,m,H);break;case 23:break;case 22:D=c.stateNode;var I=c.alternate;c.memoizedState!==null?D._visibility&Ha?P4(r,c,m,H):jo(r,c):D._visibility&Ha?P4(r,c,m,H):(D._visibility|=Ha,o0(r,c,m,H,(c.subtreeFlags&10256)!==0)),w&2048&&T6(I,c);break;case 24:P4(r,c,m,H),w&2048&&E2(c.alternate,c);break;default:P4(r,c,m,H)}}function o0(r,c,m,H,w){for(w=w&&(c.subtreeFlags&10256)!==0,c=c.child;c!==null;)Pd(r,c,m,H,w),c=c.sibling}function Pd(r,c,m,H,w){var D=c.flags;switch(c.tag){case 0:case 11:case 15:o0(r,c,m,H,w),nu(c,y3);break;case 23:break;case 22:var I=c.stateNode;c.memoizedState!==null?I._visibility&Ha?o0(r,c,m,H,w):jo(r,c):(I._visibility|=Ha,o0(r,c,m,H,w)),w&&D&2048&&T6(c.alternate,c);break;case 24:o0(r,c,m,H,w),w&&D&2048&&E2(c.alternate,c);break;default:o0(r,c,m,H,w)}}function jo(r,c){if(c.subtreeFlags&10256)for(c=c.child;c!==null;){var m=r,H=c,w=H.flags;switch(H.tag){case 22:jo(m,H),w&2048&&T6(H.alternate,H);break;case 24:jo(m,H),w&2048&&E2(H.alternate,H);break;default:jo(m,H)}c=c.sibling}}function cn(r){if(r.subtreeFlags&ap)for(r=r.child;r!==null;)wl(r),r=r.sibling}function wl(r){switch(r.tag){case 26:cn(r),r.flags&ap&&r.memoizedState!==null&&Tg(Er,r.memoizedState,r.memoizedProps);break;case 5:cn(r);break;case 3:case 4:var c=Er;Er=Lu(r.stateNode.containerInfo),cn(r),Er=c;break;case 22:r.memoizedState===null&&(c=r.alternate,c!==null&&c.memoizedState!==null?(c=ap,ap=16777216,cn(r),ap=c):cn(r));break;default:cn(r)}}function jd(r){var c=r.alternate;if(c!==null&&(r=c.child,r!==null)){c.child=null;do c=r.sibling,r.sibling=null,r=c;while(r!==null)}}function Io(r){var c=r.deletions;if((r.flags&16)!==0){if(c!==null)for(var m=0;m<c.length;m++){var H=c[m];A3=H,ou(H,r)}jd(r)}if(r.subtreeFlags&10256)for(r=r.child;r!==null;)Id(r),r=r.sibling}function Id(r){switch(r.tag){case 0:case 11:case 15:Io(r),r.flags&2048&&ru(r,r.return,y3|i5);break;case 3:var c=k4();Io(r),r.stateNode.passiveEffectDuration+=ho(c);break;case 12:c=k4(),Io(r),r.stateNode.passiveEffectDuration+=po(c);break;case 22:c=r.stateNode,r.memoizedState!==null&&c._visibility&Ha&&(r.return===null||r.return.tag!==13)?(c._visibility&=~Ha,Qa(r)):Io(r);break;default:Io(r)}}function Qa(r){var c=r.deletions;if((r.flags&16)!==0){if(c!==null)for(var m=0;m<c.length;m++){var H=c[m];A3=H,ou(H,r)}jd(r)}for(r=r.child;r!==null;)Fd(r),r=r.sibling}function Fd(r){switch(r.tag){case 0:case 11:case 15:ru(r,r.return,y3),Qa(r);break;case 22:var c=r.stateNode;c._visibility&Ha&&(c._visibility&=~Ha,Qa(r));break;default:Qa(r)}}function ou(r,c){for(;A3!==null;){var m=A3,H=m;switch(H.tag){case 0:case 11:case 15:ru(H,c,y3);break;case 23:case 22:H.memoizedState!==null&&H.memoizedState.cachePool!==null&&(H=H.memoizedState.cachePool.pool,H!=null&&an(H));break;case 24:ea(H.memoizedState.cache)}if(H=m.child,H!==null)H.return=m,A3=H;else e:for(m=r;A3!==null;){H=A3;var w=H.sibling,D=H.return;if(Zy(H),H===m){A3=null;break e}if(w!==null){w.return=D,A3=w;break e}A3=D}}}function Xy(){Cae.forEach(function(r){return r()})}function zd(){var r=typeof IS_REACT_ACT_ENVIRONMENT<"u"?IS_REACT_ACT_ENVIRONMENT:void 0;return r||we.actQueue===null||console.error("The current testing environment is not configured to support act(...)"),r}function j4(r){if((C1&X4)!==L6&&l1!==0)return l1&-l1;var c=we.T;return c!==null?(c._updatedFibers||(c._updatedFibers=new Set),c._updatedFibers.add(r),r=ss,r!==0?r:hu()):o1()}function qd(){b6===0&&(b6=(l1&536870912)===0||L1?st():536870912);var r=o5.current;return r!==null&&(r.flags|=32),b6}function Jt(r,c,m){if(Lc&&console.error("useInsertionEffect must not schedule updates."),OH&&(Xg=!0),(r===a2&&(z1===fs||z1===ds)||r.cancelPendingCommit!==null)&&(or(r,0),ar(r,l1,b6,!1)),f1(r,m),(C1&X4)!==0&&r===a2){if(Z6)switch(c.tag){case 0:case 11:case 15:r=i1&&R(i1)||"Unknown",zP.has(r)||(zP.add(r),c=R(c)||"Unknown",console.error("Cannot update a component (`%s`) while rendering a different component (`%s`). To locate the bad setState() call inside `%s`, follow the stack trace as described in https://react.dev/link/setstate-in-render",c,r,r));break;case 1:FP||(console.error("Cannot update during an existing state transition (such as within `render`). Render methods should be a pure function of props and state."),FP=!0)}}else dn&&et(r,c,m),th(c),r===a2&&((C1&X4)===L6&&(m7|=m),N2===Qs&&ar(r,l1,b6,!1)),Tn(r)}function J2(r,c,m){if((C1&(X4|Sr))!==L6)throw Error("Should not already be working.");var H=!m&&(c&124)===0&&(c&r.expiredLanes)===0||zt(r,c),w=H?Zd(r,c):Vl(r,c,!0),D=H;do{if(w===Ca){gc&&!H&&ar(r,c,0,!1);break}else{if(m=r.current.alternate,D&&!Wy(m)){w=Vl(r,c,!1),D=!1;continue}if(w===mc){if(D=c,r.errorRecoveryDisabledLanes&D)var I=0;else I=r.pendingLanes&-536870913,I=I!==0?I:I&536870912?536870912:0;if(I!==0){c=I;e:{w=r;var G=I;I=Tp;var ie=w.current.memoizedState.isDehydrated;if(ie&&(or(w,G).flags|=256),G=Vl(w,G,!1),G!==mc){if(bH&&!ie){w.errorRecoveryDisabledLanes|=D,m7|=D,w=Qs;break e}w=W4,W4=I,w!==null&&(W4===null?W4=w:W4.push.apply(W4,w))}w=G}if(D=!1,w!==mc)continue}}if(w===lp){or(r,0),ar(r,c,0,!0);break}e:{switch(H=r,w){case Ca:case lp:throw Error("Root did not complete. This is a bug in React.");case Qs:if((c&4194048)!==c)break;case Ug:ar(H,c,b6,!h7);break e;case mc:W4=null;break;case vH:case DP:break;default:throw Error("Unknown root exit status.")}if(we.actQueue!==null)Q6(H,m,c,W4,Qp,Gg,b6,m7,hs);else{if((c&62914560)===c&&(D=EH+kP-d3(),10<D)){if(ar(H,c,b6,!h7),mt(H,0,!0)!==0)break e;H.timeoutHandle=YP($d.bind(null,H,m,W4,Qp,Gg,c,b6,m7,hs,h7,w,Rae,BB,0),D);break e}$d(H,m,W4,Qp,Gg,c,b6,m7,hs,h7,w,Vae,BB,0)}}}break}while(!0);Tn(r)}function $d(r,c,m,H,w,D,I,G,ie,le,Ve,Ne,Ce,Be){if(r.timeoutHandle=vs,Ne=c.subtreeFlags,(Ne&8192||(Ne&16785408)===16785408)&&(yp={stylesheets:null,count:0,unsuspend:cg},wl(c),Ne=Qg(),Ne!==null)){r.cancelPendingCommit=Ne(Q6.bind(null,r,c,D,m,H,w,I,G,ie,Ve,Dae,Ce,Be)),ar(r,D,I,!le);return}Q6(r,c,D,m,H,w,I,G,ie)}function Wy(r){for(var c=r;;){var m=c.tag;if((m===0||m===11||m===15)&&c.flags&16384&&(m=c.updateQueue,m!==null&&(m=m.stores,m!==null)))for(var H=0;H<m.length;H++){var w=m[H],D=w.getSnapshot;w=w.value;try{if(!U4(D(),w))return!1}catch{return!1}}if(m=c.child,c.subtreeFlags&16384&&m!==null)m.return=c,c=m;else{if(c===r)break;for(;c.sibling===null;){if(c.return===null||c.return===r)return!0;c=c.return}c.sibling.return=c.return,c=c.sibling}}return!0}function ar(r,c,m,H){c&=~HH,c&=~m7,r.suspendedLanes|=c,r.pingedLanes&=~c,H&&(r.warmLanes|=c),H=r.expirationTimes;for(var w=c;0<w;){var D=31-t3(w),I=1<<D;H[D]=-1,w&=~I}m!==0&&me(r,m,c)}function fa(){return(C1&(X4|Sr))===L6?(u0(0),!1):!0}function lu(){if(i1!==null){if(z1===mn)var r=i1.return;else r=i1,_9(),i6(r),cc=null,rp=0,r=i1;for(;r!==null;)_d(r.alternate,r),r=r.return;i1=null}}function or(r,c){var m=r.timeoutHandle;m!==vs&&(r.timeoutHandle=vs,Zae(m)),m=r.cancelPendingCommit,m!==null&&(r.cancelPendingCommit=null,m()),lu(),a2=r,i1=m=N6(r.current,null),l1=c,z1=mn,x6=null,h7=!1,gc=zt(r,c),bH=!1,N2=Ca,hs=b6=HH=m7=p7=0,W4=Tp=null,Gg=!1,(c&8)!==0&&(c|=c&32);var H=r.entangledLanes;if(H!==0)for(r=r.entanglements,H&=c;0<H;){var w=31-t3(H),D=1<<w;c|=r[w],H&=~D}return _0=c,L9(),c=kB(),1e3<c-RB&&(we.recentlyCreatedOwnerStacks=0,RB=c),br.discardPendingWarnings(),m}function su(r,c){Dt=null,we.H=qg,we.getCurrentStack=null,Z6=!1,p3=null,c===Jh||c===Pg?(c=N4(),z1=up):c===IB?(c=N4(),z1=RP):z1=c===EP?xH:c!==null&&typeof c=="object"&&typeof c.then=="function"?yc:sp,x6=c;var m=i1;if(m===null)N2=lp,Do(r,a4(c,r.current));else switch(m.mode&I3&&Wr(m),_e(),z1){case sp:lt!==null&&typeof lt.markComponentErrored=="function"&<.markComponentErrored(m,c,l1);break;case fs:case ds:case up:case yc:case cp:lt!==null&&typeof lt.markComponentSuspended=="function"&<.markComponentSuspended(m,c,l1)}}function Ud(){var r=we.H;return we.H=qg,r===null?qg:r}function Gd(){var r=we.A;return we.A=Oae,r}function uu(){N2=Qs,h7||(l1&4194048)!==l1&&o5.current!==null||(gc=!0),(p7&134217727)===0&&(m7&134217727)===0||a2===null||ar(a2,l1,b6,!1)}function Vl(r,c,m){var H=C1;C1|=X4;var w=Ud(),D=Gd();if(a2!==r||l1!==c){if(dn){var I=r.memoizedUpdaters;0<I.size&&(ha(r,l1),I.clear()),tt(r,c)}Qp=null,or(r,c)}ze(c),c=!1,I=N2;e:do try{if(z1!==mn&&i1!==null){var G=i1,ie=x6;switch(z1){case xH:lu(),I=Ug;break e;case up:case fs:case ds:case yc:o5.current===null&&(c=!0);var le=z1;if(z1=mn,x6=null,da(r,G,ie,le),m&&gc){I=Ca;break e}break;default:le=z1,z1=mn,x6=null,da(r,G,ie,le)}}cu(),I=N2;break}catch(Ve){su(r,Ve)}while(!0);return c&&r.shellSuspendCounter++,_9(),C1=H,we.H=w,we.A=D,ue(),i1===null&&(a2=null,l1=0,L9()),I}function cu(){for(;i1!==null;)Tu(i1)}function Zd(r,c){var m=C1;C1|=X4;var H=Ud(),w=Gd();if(a2!==r||l1!==c){if(dn){var D=r.memoizedUpdaters;0<D.size&&(ha(r,l1),D.clear()),tt(r,c)}Qp=null,Zg=d3()+NP,or(r,c)}else gc=zt(r,c);ze(c);e:do try{if(z1!==mn&&i1!==null)t:switch(c=i1,D=x6,z1){case sp:z1=mn,x6=null,da(r,c,D,sp);break;case fs:case ds:if(V9(D)){z1=mn,x6=null,Dl(c);break}c=function(){z1!==fs&&z1!==ds||a2!==r||(z1=cp),Tn(r)},D.then(c,c);break e;case up:z1=cp;break e;case RP:z1=LH;break e;case cp:V9(D)?(z1=mn,x6=null,Dl(c)):(z1=mn,x6=null,da(r,c,D,cp));break;case LH:var I=null;switch(i1.tag){case 26:I=i1.memoizedState;case 5:case 27:var G=i1;if(!I||ph(I)){z1=mn,x6=null;var ie=G.sibling;if(ie!==null)i1=ie;else{var le=G.return;le!==null?(i1=le,Fo(le)):i1=null}break t}break;default:console.error("Unexpected type of fiber triggered a suspensey commit. This is a bug in React.")}z1=mn,x6=null,da(r,c,D,LH);break;case yc:z1=mn,x6=null,da(r,c,D,yc);break;case xH:lu(),N2=Ug;break e;default:throw Error("Unexpected SuspendedReason. This is a bug in React.")}we.actQueue!==null?cu():Yy();break}catch(Ve){su(r,Ve)}while(!0);return _9(),we.H=H,we.A=w,C1=m,i1!==null?(lt!==null&&typeof lt.markRenderYielded=="function"&<.markRenderYielded(),Ca):(ue(),a2=null,l1=0,L9(),N2)}function Yy(){for(;i1!==null&&!Fb();)Tu(i1)}function Tu(r){var c=r.alternate;(r.mode&I3)!==c2?(X5(r),c=pt(r,a0,c,r,_0),Wr(r)):c=pt(r,a0,c,r,_0),r.memoizedProps=r.pendingProps,c===null?Fo(r):i1=c}function Dl(r){var c=pt(r,Xd,r);r.memoizedProps=r.pendingProps,c===null?Fo(r):i1=c}function Xd(r){var c=r.alternate,m=(r.mode&I3)!==c2;switch(m&&X5(r),r.tag){case 15:case 0:c=gd(c,r,r.pendingProps,r.type,void 0,l1);break;case 11:c=gd(c,r,r.pendingProps,r.type.render,r.ref,l1);break;case 5:i6(r);default:_d(c,r),r=i1=Zf(r,_0),c=a0(c,r,_0)}return m&&Wr(r),c}function da(r,c,m,H){_9(),i6(c),cc=null,rp=0;var w=c.return;try{if(X9(r,w,c,m,l1)){N2=lp,Do(r,a4(m,r.current)),i1=null;return}}catch(D){if(w!==null)throw i1=w,D;N2=lp,Do(r,a4(m,r.current)),i1=null;return}c.flags&32768?(L1||H===sp?r=!0:gc||(l1&536870912)!==0?r=!1:(h7=r=!0,(H===fs||H===ds||H===up||H===yc)&&(H=o5.current,H!==null&&H.tag===13&&(H.flags|=16384))),Wd(c,r)):Fo(c)}function Fo(r){var c=r;do{if((c.flags&32768)!==0){Wd(c,h7);return}var m=c.alternate;if(r=c.return,X5(c),m=pt(c,Fy,m,c,_0),(c.mode&I3)!==c2&&C9(c),m!==null){i1=m;return}if(c=c.sibling,c!==null){i1=c;return}i1=c=r}while(c!==null);N2===Ca&&(N2=DP)}function Wd(r,c){do{var m=zy(r.alternate,r);if(m!==null){m.flags&=32767,i1=m;return}if((r.mode&I3)!==c2){C9(r),m=r.actualDuration;for(var H=r.child;H!==null;)m+=H.actualDuration,H=H.sibling;r.actualDuration=m}if(m=r.return,m!==null&&(m.flags|=32768,m.subtreeFlags=0,m.deletions=null),!c&&(r=r.sibling,r!==null)){i1=r;return}i1=r=m}while(r!==null);N2=Ug,i1=null}function Q6(r,c,m,H,w,D,I,G,ie){r.cancelPendingCommit=null;do l0();while(z3!==ps);if(br.flushLegacyContextWarning(),br.flushPendingUnsafeLifecycleWarnings(),(C1&(X4|Sr))!==L6)throw Error("Should not already be working.");if(lt!==null&&typeof lt.markCommitStarted=="function"&<.markCommitStarted(m),c===null)Se();else{if(m===0&&console.error("finishedLanes should not be empty during a commit. This is a bug in React."),c===r.current)throw Error("Cannot commit the same tree as before. This error is likely caused by a bug in React. Please file an issue.");if(D=c.lanes|c.childLanes,D|=Jb,Ge(r,m,D,I,G,ie),r===a2&&(i1=a2=null,l1=0),vc=c,g7=r,v7=m,MH=D,AH=w,IP=H,(c.subtreeFlags&10256)!==0||(c.flags&10256)!==0?(r.callbackNode=null,r.callbackPriority=0,tg(i7,function(){return zo(),null})):(r.callbackNode=null,r.callbackPriority=0),Rg=ac(),H=(c.flags&13878)!==0,(c.subtreeFlags&13878)!==0||H){H=we.T,we.T=null,w=b1.p,b1.p=$4,I=C1,C1|=Sr;try{Gy(r,c,m)}finally{C1=I,b1.p=w,we.T=H}}z3=BP,Qu(),Ky(),Yd()}}function Qu(){if(z3===BP){z3=ps;var r=g7,c=vc,m=v7,H=(c.flags&13878)!==0;if((c.subtreeFlags&13878)!==0||H){H=we.T,we.T=null;var w=b1.p;b1.p=$4;var D=C1;C1|=Sr;try{hc=m,pc=r,kd(c,r),pc=hc=null,m=PH;var I=Dy(r.containerInfo),G=m.focusedElem,ie=m.selectionRange;if(I!==G&&G&&G.ownerDocument&&Vy(G.ownerDocument.documentElement,G)){if(ie!==null&&$f(G)){var le=ie.start,Ve=ie.end;if(Ve===void 0&&(Ve=le),"selectionStart"in G)G.selectionStart=le,G.selectionEnd=Math.min(Ve,G.value.length);else{var Ne=G.ownerDocument||document,Ce=Ne&&Ne.defaultView||window;if(Ce.getSelection){var Be=Ce.getSelection(),Qt=G.textContent.length,Ot=Math.min(ie.start,Qt),o2=ie.end===void 0?Ot:Math.min(ie.end,Qt);!Be.extend&&Ot>o2&&(I=o2,o2=Ot,Ot=I);var c1=wy(G,Ot),Te=wy(G,o2);if(c1&&Te&&(Be.rangeCount!==1||Be.anchorNode!==c1.node||Be.anchorOffset!==c1.offset||Be.focusNode!==Te.node||Be.focusOffset!==Te.offset)){var Qe=Ne.createRange();Qe.setStart(c1.node,c1.offset),Be.removeAllRanges(),Ot>o2?(Be.addRange(Qe),Be.extend(Te.node,Te.offset)):(Qe.setEnd(Te.node,Te.offset),Be.addRange(Qe))}}}}for(Ne=[],Be=G;Be=Be.parentNode;)Be.nodeType===1&&Ne.push({element:Be,left:Be.scrollLeft,top:Be.scrollTop});for(typeof G.focus=="function"&&G.focus(),G=0;G<Ne.length;G++){var ye=Ne[G];ye.element.scrollLeft=ye.left,ye.element.scrollTop=ye.top}}cv=!!BH,PH=BH=null}finally{C1=D,b1.p=w,we.T=H}}r.current=c,z3=PP}}function Ky(){if(z3===PP){z3=ps;var r=g7,c=vc,m=v7,H=(c.flags&8772)!==0;if((c.subtreeFlags&8772)!==0||H){H=we.T,we.T=null;var w=b1.p;b1.p=$4;var D=C1;C1|=Sr;try{lt!==null&&typeof lt.markLayoutEffectsStarted=="function"&<.markLayoutEffectsStarted(m),hc=m,pc=r,Rd(r,c.alternate,c),pc=hc=null,lt!==null&&typeof lt.markLayoutEffectsStopped=="function"&<.markLayoutEffectsStopped()}finally{C1=D,b1.p=w,we.T=H}}z3=jP}}function Yd(){if(z3===kae||z3===jP){z3=ps,zb();var r=g7,c=vc,m=v7,H=IP,w=(c.subtreeFlags&10256)!==0||(c.flags&10256)!==0;w?z3=SH:(z3=ps,vc=g7=null,Kd(r,r.pendingLanes),ms=0,dp=null);var D=r.pendingLanes;if(D===0&&(y7=null),w||f6(r),w=Tt(m),c=c.stateNode,h3&&typeof h3.onCommitFiberRoot=="function")try{var I=(c.current.flags&128)===128;switch(w){case $4:var G=Zl;break;case G6:G=bh;break;case gr:G=i7;break;case Pu:G=Eh;break;default:G=i7}h3.onCommitFiberRoot(xa,c,G,I)}catch(Ne){S2||(S2=!0,console.error("React instrumentation encountered an error: %s",Ne))}if(dn&&r.memoizedUpdaters.clear(),Xy(),H!==null){I=we.T,G=b1.p,b1.p=$4,we.T=null;try{var ie=r.onRecoverableError;for(c=0;c<H.length;c++){var le=H[c],Ve=lr(le.stack);pt(le.source,ie,le.value,Ve)}}finally{we.T=I,b1.p=G}}(v7&3)!==0&&l0(),Tn(r),D=r.pendingLanes,(m&4194090)!==0&&(D&42)!==0?(Ng=!0,r===_H?fp++:(fp=0,_H=r)):fp=0,u0(0),Se()}}function lr(r){return r={componentStack:r},Object.defineProperty(r,"digest",{get:function(){console.error('You are accessing "digest" from the errorInfo object passed to onRecoverableError. This property is no longer provided as part of errorInfo but can be accessed as a property of the Error instance itself.')}}),r}function Kd(r,c){(r.pooledCacheLanes&=c)===0&&(c=r.pooledCache,c!=null&&(r.pooledCache=null,ea(c)))}function l0(r){return Qu(),Ky(),Yd(),zo()}function zo(){if(z3!==SH)return!1;var r=g7,c=MH;MH=0;var m=Tt(v7),H=gr>m?gr:m;m=we.T;var w=b1.p;try{b1.p=H,we.T=null,H=AH,AH=null;var D=g7,I=v7;if(z3=ps,vc=g7=null,v7=0,(C1&(X4|Sr))!==L6)throw Error("Cannot flush passive effects while already rendering.");OH=!0,Xg=!1,lt!==null&&typeof lt.markPassiveEffectsStarted=="function"&<.markPassiveEffectsStarted(I);var G=C1;if(C1|=Sr,Id(D.current),au(D,D.current,I,H),lt!==null&&typeof lt.markPassiveEffectsStopped=="function"&<.markPassiveEffectsStopped(),f6(D),C1=G,u0(0,!1),Xg?D===dp?ms++:(ms=0,dp=D):ms=0,Xg=OH=!1,h3&&typeof h3.onPostCommitFiberRoot=="function")try{h3.onPostCommitFiberRoot(xa,D)}catch(le){S2||(S2=!0,console.error("React instrumentation encountered an error: %s",le))}var ie=D.current.stateNode;return ie.effectDuration=0,ie.passiveEffectDuration=0,!0}finally{b1.p=w,we.T=m,Kd(r,c)}}function u2(r,c,m){c=a4(m,c),c=g2(r.stateNode,c,2),r=t6(r,c,2),r!==null&&(f1(r,2),Tn(r))}function P1(r,c,m){if(Lc=!1,r.tag===3)u2(r,r,m);else{for(;c!==null;){if(c.tag===3){u2(c,r,m);return}if(c.tag===1){var H=c.stateNode;if(typeof c.type.getDerivedStateFromError=="function"||typeof H.componentDidCatch=="function"&&(y7===null||!y7.has(H))){r=a4(m,r),m=vl(2),H=t6(c,m,2),H!==null&&(sa(m,H,c,r),f1(H,2),Tn(H));return}}c=c.return}console.error(`Internal React error: Attempted to capture a commit phase error inside a detached tree. This indicates a bug in React. Potential causes include deleting the same fiber more than once, committing an already-finished tree, or an inconsistent return pointer.
|
|
586
586
|
|
|
587
587
|
Error message:
|
|
588
588
|
|
|
@@ -605,13 +605,13 @@ act(() => {
|
|
|
605
605
|
/* assert on the output */
|
|
606
606
|
|
|
607
607
|
This ensures that you're testing the behavior the user would see in the browser. Learn more at https://react.dev/link/wrap-tests-with-act`,R(r))})}function Tn(r){r!==xc&&r.next===null&&(xc===null?Yg=xc=r:xc=xc.next=r),Kg=!0,we.actQueue!==null?wH||(wH=!0,rg()):CH||(CH=!0,rg())}function u0(r,c){if(!VH&&Kg){VH=!0;do for(var m=!1,H=Yg;H!==null;){if(r!==0){var w=H.pendingLanes;if(w===0)var D=0;else{var I=H.suspendedLanes,G=H.pingedLanes;D=(1<<31-t3(42|r)+1)-1,D&=w&~(I&~G),D=D&201326741?D&201326741|1:D?D|2:0}D!==0&&(m=!0,nh(H,D))}else D=l1,D=mt(H,H===a2?D:0,H.cancelPendingCommit!==null||H.timeoutHandle!==vs),(D&3)===0||zt(H,D)||(m=!0,nh(H,D));H=H.next}while(m);VH=!1}}function ng(){d6()}function d6(){Kg=wH=CH=!1;var r=0;ys!==0&&(sh()&&(r=ys),ys=0);for(var c=d3(),m=null,H=Yg;H!==null;){var w=H.next,D=v2(H,c);D===0?(H.next=null,m===null?Yg=w:m.next=w,w===null&&(xc=m)):(m=H,(r!==0||(D&3)!==0)&&(Kg=!0)),H=w}u0(r)}function v2(r,c){for(var m=r.suspendedLanes,H=r.pingedLanes,w=r.expirationTimes,D=r.pendingLanes&-62914561;0<D;){var I=31-t3(D),G=1<<I,ie=w[I];ie===-1?((G&m)===0||(G&H)!==0)&&(w[I]=p1(G,c)):ie<=c&&(r.expiredLanes|=G),D&=~G}if(c=a2,m=l1,m=mt(r,r===c?m:0,r.cancelPendingCommit!==null||r.timeoutHandle!==vs),H=r.callbackNode,m===0||r===c&&(z1===fs||z1===ds)||r.cancelPendingCommit!==null)return H!==null&&R2(H),r.callbackNode=null,r.callbackPriority=0;if((m&3)===0||zt(r,m)){if(c=m&-m,c!==r.callbackPriority||we.actQueue!==null&&H!==DH)R2(H);else return c;switch(Tt(m)){case $4:case G6:m=bh;break;case gr:m=i7;break;case Pu:m=Eh;break;default:m=i7}return H=du.bind(null,r),we.actQueue!==null?(we.actQueue.push(H),m=DH):m=xh(m,H),r.callbackPriority=c,r.callbackNode=m,c}return H!==null&&R2(H),r.callbackPriority=2,r.callbackNode=null,2}function du(r,c){if(Ng=kg=!1,z3!==ps&&z3!==SH)return r.callbackNode=null,r.callbackPriority=0,null;var m=r.callbackNode;if(l0()&&r.callbackNode!==m)return null;var H=l1;return H=mt(r,r===a2?H:0,r.cancelPendingCommit!==null||r.timeoutHandle!==vs),H===0?null:(J2(r,H,c),v2(r,d3()),r.callbackNode!=null&&r.callbackNode===m?du.bind(null,r):null)}function nh(r,c){if(l0())return null;kg=Ng,Ng=!1,J2(r,c,!0)}function R2(r){r!==DH&&r!==null&&gg(r)}function rg(){we.actQueue!==null&&we.actQueue.push(function(){return d6(),null}),Xae(function(){(C1&(X4|Sr))!==L6?xh(Zl,ng):d6()})}function hu(){return ys===0&&(ys=st()),ys}function rh(r){return r==null||typeof r=="symbol"||typeof r=="boolean"?null:typeof r=="function"?r:(U(r,"action"),U5(""+r))}function r2(r,c){var m=c.ownerDocument.createElement("input");return m.name=c.name,m.value=c.value,r.id&&m.setAttribute("form",r.id),c.parentNode.insertBefore(m,c),r=new FormData(r),m.parentNode.removeChild(m),r}function m4(r,c,m,H,w){if(c==="submit"&&m&&m.stateNode===w){var D=rh((w[b4]||null).action),I=H.submitter;I&&(c=(c=I[b4]||null)?rh(c.formAction):I.getAttribute("formAction"),c!==null&&(D=c,I=null));var G=new H1("action","action",null,H,w);r.push({event:G,listeners:[{instance:null,listener:function(){if(H.defaultPrevented){if(ys!==0){var ie=I?r2(w,I):new FormData(w),le={pending:!0,data:ie,method:w.method,action:D};Object.freeze(le),F9(m,le,null,ie)}}else typeof D=="function"&&(G.preventDefault(),ie=I?r2(w,I):new FormData(w),le={pending:!0,data:ie,method:w.method,action:D},Object.freeze(le),F9(m,le,D,ie))},currentTarget:w}]})}}function Qn(r,c,m){r.currentTarget=m;try{c(r)}catch(H){hH(H)}r.currentTarget=null}function ih(r,c){c=(c&4)!==0;for(var m=0;m<r.length;m++){var H=r[m];e:{var w=void 0,D=H.event;if(H=H.listeners,c)for(var I=H.length-1;0<=I;I--){var G=H[I],ie=G.instance,le=G.currentTarget;if(G=G.listener,ie!==w&&D.isPropagationStopped())break e;ie!==null?pt(ie,Qn,D,G,le):Qn(D,G,le),w=ie}else for(I=0;I<H.length;I++){if(G=H[I],ie=G.instance,le=G.currentTarget,G=G.listener,ie!==w&&D.isPropagationStopped())break e;ie!==null?pt(ie,Qn,D,G,le):Qn(D,G,le),w=ie}}}}function e1(r,c){RH.has(r)||console.error('Did not expect a listenToNonDelegatedEvent() call for "%s". This is a bug in React. Please file an issue.',r);var m=c[ju];m===void 0&&(m=c[ju]=new Set);var H=r+"__bubble";m.has(H)||(y4(c,r,2,!1),m.add(H))}function ah(r,c,m){RH.has(r)&&!c&&console.error('Did not expect a listenToNativeEvent() call for "%s" in the bubble phase. This is a bug in React. Please file an issue.',r);var H=0;c&&(H|=4),y4(m,r,H,c)}function Rl(r){if(!r[Jg]){r[Jg]=!0,ba.forEach(function(m){m!=="selectionchange"&&(RH.has(m)||ah(m,!1,r),ah(m,!0,r))});var c=r.nodeType===9?r:r.ownerDocument;c===null||c[Jg]||(c[Jg]=!0,ah("selectionchange",!1,c))}}function y4(r,c,m,H){switch(y0(c)){case $4:var w=Au;break;case G6:w=e7;break;default:w=Il}m=w.bind(null,c,m,r),w=void 0,!Fe||c!=="touchstart"&&c!=="touchmove"&&c!=="wheel"||(w=!0),H?w!==void 0?r.addEventListener(c,m,{capture:!0,passive:w}):r.addEventListener(c,m,!0):w!==void 0?r.addEventListener(c,m,{passive:w}):r.addEventListener(c,m,!1)}function I4(r,c,m,H,w){var D=H;if((c&1)===0&&(c&2)===0&&H!==null)e:for(;;){if(H===null)return;var I=H.tag;if(I===3||I===4){var G=H.stateNode.containerInfo;if(G===w)break;if(I===4)for(I=H.return;I!==null;){var ie=I.tag;if((ie===3||ie===4)&&I.stateNode.containerInfo===w)return;I=I.return}for(;G!==null;){if(I=m1(G),I===null)return;if(ie=I.tag,ie===5||ie===6||ie===26||ie===27){H=D=I;continue e}G=G.parentNode}}H=H.return}uo(function(){var le=D,Ve=Wn(m),Ne=[];e:{var Ce=CB.get(r);if(Ce!==void 0){var Be=H1,Qt=r;switch(r){case"keypress":if($i(m)===0)break e;case"keydown":case"keyup":Be=nae;break;case"focusin":Qt="focus",Be=Y6;break;case"focusout":Qt="blur",Be=Y6;break;case"beforeblur":case"afterblur":Be=Y6;break;case"click":if(m.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":Be=gt;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":Be=r3;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":Be=aae;break;case MB:case AB:case _B:Be=Gie;break;case OB:Be=lae;break;case"scroll":case"scrollend":Be=ge;break;case"wheel":Be=uae;break;case"copy":case"cut":case"paste":Be=Xie;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":Be=gB;break;case"toggle":case"beforetoggle":Be=Tae}var Ot=(c&4)!==0,o2=!Ot&&(r==="scroll"||r==="scrollend"),c1=Ot?Ce!==null?Ce+"Capture":null:Ce;Ot=[];for(var Te=le,Qe;Te!==null;){var ye=Te;if(Qe=ye.stateNode,ye=ye.tag,ye!==5&&ye!==26&&ye!==27||Qe===null||c1===null||(ye=nn(Te,c1),ye!=null&&Ot.push(Uo(Te,ye,Qe))),o2)break;Te=Te.return}0<Ot.length&&(Ce=new Be(Ce,Qt,null,m,Ve),Ne.push({event:Ce,listeners:Ot}))}}if((c&7)===0){e:{if(Ce=r==="mouseover"||r==="pointerover",Be=r==="mouseout"||r==="pointerout",Ce&&m!==P&&(Qt=m.relatedTarget||m.fromElement)&&(m1(Qt)||Qt[b0]))break e;if((Be||Ce)&&(Ce=Ve.window===Ve?Ve:(Ce=Ve.ownerDocument)?Ce.defaultView||Ce.parentWindow:window,Be?(Qt=m.relatedTarget||m.toElement,Be=le,Qt=Qt?m1(Qt):null,Qt!==null&&(o2=S(Qt),Ot=Qt.tag,Qt!==o2||Ot!==5&&Ot!==27&&Ot!==6)&&(Qt=null)):(Be=null,Qt=le),Be!==Qt)){if(Ot=gt,ye="onMouseLeave",c1="onMouseEnter",Te="mouse",(r==="pointerout"||r==="pointerover")&&(Ot=gB,ye="onPointerLeave",c1="onPointerEnter",Te="pointer"),o2=Be==null?Ce:xt(Be),Qe=Qt==null?Ce:xt(Qt),Ce=new Ot(ye,Te+"leave",Be,m,Ve),Ce.target=o2,Ce.relatedTarget=Qe,ye=null,m1(Ve)===le&&(Ot=new Ot(c1,Te+"enter",Qt,m,Ve),Ot.target=Qe,Ot.relatedTarget=o2,ye=Ot),o2=ye,Be&&Qt)t:{for(Ot=Be,c1=Qt,Te=0,Qe=Ot;Qe;Qe=pa(Qe))Te++;for(Qe=0,ye=c1;ye;ye=pa(ye))Qe++;for(;0<Te-Qe;)Ot=pa(Ot),Te--;for(;0<Qe-Te;)c1=pa(c1),Qe--;for(;Te--;){if(Ot===c1||c1!==null&&Ot===c1.alternate)break t;Ot=pa(Ot),c1=pa(c1)}Ot=null}else Ot=null;Be!==null&&sr(Ne,Ce,Be,Ot,!1),Qt!==null&&o2!==null&&sr(Ne,o2,Qt,Ot,!0)}}e:{if(Ce=le?xt(le):window,Be=Ce.nodeName&&Ce.nodeName.toLowerCase(),Be==="select"||Be==="input"&&Ce.type==="file")var je=_y;else if(y9(Ce))if(EB)je=Ob;else{je=Ab;var at=zf}else Be=Ce.nodeName,!Be||Be.toLowerCase()!=="input"||Ce.type!=="checkbox"&&Ce.type!=="radio"?le&&zi(le.elementType)&&(je=_y):je=_b;if(je&&(je=je(r,le))){co(Ne,je,m,Ve);break e}at&&at(r,Ce,le),r==="focusout"&&le&&Ce.type==="number"&&le.memoizedProps.value!=null&&c9(Ce,"number",Ce.value)}switch(at=le?xt(le):window,r){case"focusin":(y9(at)||at.contentEditable==="true")&&(Yu=at,Zb=le,$h=null);break;case"focusout":$h=Zb=Yu=null;break;case"mousedown":Xb=!0;break;case"contextmenu":case"mouseup":case"dragend":Xb=!1,v9(Ne,m,Ve);break;case"selectionchange":if(hae)break;case"keydown":case"keyup":v9(Ne,m,Ve)}var jt;if(Gb)e:{switch(r){case"compositionstart":var ft="onCompositionStart";break e;case"compositionend":ft="onCompositionEnd";break e;case"compositionupdate":ft="onCompositionUpdate";break e}ft=void 0}else Wu?Ur(r,m)&&(ft="onCompositionEnd"):r==="keydown"&&m.keyCode===vB&&(ft="onCompositionStart");ft&&(LB&&m.locale!=="ko"&&(Wu||ft!=="onCompositionStart"?ft==="onCompositionEnd"&&Wu&&(jt=m9()):(Oe=Ve,Re="value"in Oe?Oe.value:Oe.textContent,Wu=!0)),at=E3(le,ft),0<at.length&&(ft=new yB(ft,r,null,m,Ve),Ne.push({event:ft,listeners:at}),jt?ft.data=jt:(jt=W8(m),jt!==null&&(ft.data=jt)))),(jt=fae?Y8(r,m):Mb(r,m))&&(ft=E3(le,"onBeforeInput"),0<ft.length&&(at=new Yie("onBeforeInput","beforeinput",null,m,Ve),Ne.push({event:at,listeners:ft}),at.data=jt)),m4(Ne,r,le,m,Ve)}ih(Ne,c)})}function Uo(r,c,m){return{instance:r,listener:c,currentTarget:m}}function E3(r,c){for(var m=c+"Capture",H=[];r!==null;){var w=r,D=w.stateNode;if(w=w.tag,w!==5&&w!==26&&w!==27||D===null||(w=nn(r,m),w!=null&&H.unshift(Uo(r,w,D)),w=nn(r,c),w!=null&&H.push(Uo(r,w,D))),r.tag===3)return H;r=r.return}return[]}function pa(r){if(r===null)return null;do r=r.return;while(r&&r.tag!==5&&r.tag!==27);return r||null}function sr(r,c,m,H,w){for(var D=c._reactName,I=[];m!==null&&m!==H;){var G=m,ie=G.alternate,le=G.stateNode;if(G=G.tag,ie!==null&&ie===H)break;G!==5&&G!==26&&G!==27||le===null||(ie=le,w?(le=nn(m,D),le!=null&&I.unshift(Uo(m,le,ie))):w||(le=nn(m,D),le!=null&&I.push(Uo(m,le,ie)))),m=m.return}I.length!==0&&r.push({event:c,listeners:I})}function ur(r,c){Sy(r,c),r!=="input"&&r!=="textarea"&&r!=="select"||c==null||c.value!==null||Og||(Og=!0,r==="select"&&c.multiple?console.error("`value` prop on `%s` should not be null. Consider using an empty array when `multiple` is set to `true` to clear the component or `undefined` for uncontrolled components.",r):console.error("`value` prop on `%s` should not be null. Consider using an empty string to clear the component or `undefined` for uncontrolled components.",r));var m={registrationNameDependencies:g6,possibleRegistrationNames:Iu};zi(r)||typeof c.is=="string"||My(r,c,m),c.contentEditable&&!c.suppressContentEditableWarning&&c.children!=null&&console.error("A component is `contentEditable` and contains `children` managed by React. It is now your responsibility to guarantee that none of those nodes are unexpectedly modified or duplicated. This is probably not intentional.")}function i2(r,c,m,H){c!==m&&(m=cr(m),cr(c)!==m&&(H[r]=c))}function oh(r,c,m){c.forEach(function(H){m[Go(H)]=H==="style"?pu(r):r.getAttribute(H)})}function fn(r,c){c===!1?console.error("Expected `%s` listener to be a function, instead got `false`.\n\nIf you used to conditionally omit it with %s={condition && value}, pass %s={condition ? value : undefined} instead.",r,r,r):console.error("Expected `%s` listener to be a function, instead got a value of `%s` type.",r,typeof c)}function h6(r,c){return r=r.namespaceURI===Gu||r.namespaceURI===Lr?r.ownerDocument.createElementNS(r.namespaceURI,r.tagName):r.ownerDocument.createElement(r.tagName),r.innerHTML=c,r.innerHTML}function cr(r){return z(r)&&(console.error("The provided HTML markup uses a value of unsupported type %s. This value must be coerced to a string before using it here.",j(r)),ee(r)),(typeof r=="string"?r:""+r).replace(jae,`
|
|
608
|
-
`).replace(Iae,"")}function ma(r,c){return c=cr(c),cr(r)===c}function c0(){}function y1(r,c,m,H,w,D){switch(m){case"children":typeof H=="string"?(lo(H,c,!1),c==="body"||c==="textarea"&&H===""||U8(r,H)):(typeof H=="number"||typeof H=="bigint")&&(lo(""+H,c,!1),c!=="body"&&U8(r,""+H));break;case"className":Ht(r,"class",H);break;case"tabIndex":Ht(r,"tabindex",H);break;case"dir":case"role":case"viewBox":case"width":case"height":Ht(r,m,H);break;case"style":h9(r,H,D);break;case"data":if(c!=="object"){Ht(r,"data",H);break}case"src":case"href":if(H===""&&(c!=="a"||m!=="href")){console.error(m==="src"?'An empty string ("") was passed to the %s attribute. This may cause the browser to download the whole page again over the network. To fix this, either do not render the element at all or pass null to %s instead of an empty string.':'An empty string ("") was passed to the %s attribute. To fix this, either do not render the element at all or pass null to %s instead of an empty string.',m,m),r.removeAttribute(m);break}if(H==null||typeof H=="function"||typeof H=="symbol"||typeof H=="boolean"){r.removeAttribute(m);break}U(H,m),H=U5(""+H),r.setAttribute(m,H);break;case"action":case"formAction":if(H!=null&&(c==="form"?m==="formAction"?console.error("You can only pass the formAction prop to <input> or <button>. Use the action prop on <form>."):typeof H=="function"&&(w.encType==null&&w.method==null||nv||(nv=!0,console.error("Cannot specify a encType or method for a form that specifies a function as the action. React provides those automatically. They will get overridden.")),w.target==null||tv||(tv=!0,console.error("Cannot specify a target for a form that specifies a function as the action. The function will always be executed in the same window."))):c==="input"||c==="button"?m==="action"?console.error("You can only pass the action prop to <form>. Use the formAction prop on <input> or <button>."):c!=="input"||w.type==="submit"||w.type==="image"||ev?c!=="button"||w.type==null||w.type==="submit"||ev?typeof H=="function"&&(w.name==null||UP||(UP=!0,console.error('Cannot specify a "name" prop for a button that specifies a function as a formAction. React needs it to encode which action should be invoked. It will get overridden.')),w.formEncType==null&&w.formMethod==null||nv||(nv=!0,console.error("Cannot specify a formEncType or formMethod for a button that specifies a function as a formAction. React provides those automatically. They will get overridden.")),w.formTarget==null||tv||(tv=!0,console.error("Cannot specify a formTarget for a button that specifies a function as a formAction. The function will always be executed in the same window."))):(ev=!0,console.error('A button can only specify a formAction along with type="submit" or no type.')):(ev=!0,console.error('An input can only specify a formAction along with type="submit" or type="image".')):console.error(m==="action"?"You can only pass the action prop to <form>.":"You can only pass the formAction prop to <input> or <button>.")),typeof H=="function"){r.setAttribute(m,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof D=="function"&&(m==="formAction"?(c!=="input"&&y1(r,c,"name",w.name,w,null),y1(r,c,"formEncType",w.formEncType,w,null),y1(r,c,"formMethod",w.formMethod,w,null),y1(r,c,"formTarget",w.formTarget,w,null)):(y1(r,c,"encType",w.encType,w,null),y1(r,c,"method",w.method,w,null),y1(r,c,"target",w.target,w,null)));if(H==null||typeof H=="symbol"||typeof H=="boolean"){r.removeAttribute(m);break}U(H,m),H=U5(""+H),r.setAttribute(m,H);break;case"onClick":H!=null&&(typeof H!="function"&&fn(m,H),r.onclick=c0);break;case"onScroll":H!=null&&(typeof H!="function"&&fn(m,H),e1("scroll",r));break;case"onScrollEnd":H!=null&&(typeof H!="function"&&fn(m,H),e1("scrollend",r));break;case"dangerouslySetInnerHTML":if(H!=null){if(typeof H!="object"||!("__html"in H))throw Error("`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. Please visit https://react.dev/link/dangerously-set-inner-html for more information.");if(m=H.__html,m!=null){if(w.children!=null)throw Error("Can only set one of `children` or `props.dangerouslySetInnerHTML`.");r.innerHTML=m}}break;case"multiple":r.multiple=H&&typeof H!="function"&&typeof H!="symbol";break;case"muted":r.muted=H&&typeof H!="function"&&typeof H!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(H==null||typeof H=="function"||typeof H=="boolean"||typeof H=="symbol"){r.removeAttribute("xlink:href");break}U(H,m),m=U5(""+H),r.setAttributeNS(gs,"xlink:href",m);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":H!=null&&typeof H!="function"&&typeof H!="symbol"?(U(H,m),r.setAttribute(m,""+H)):r.removeAttribute(m);break;case"inert":H!==""||rv[m]||(rv[m]=!0,console.error("Received an empty string for a boolean attribute `%s`. This will treat the attribute as if it were false. Either pass `false` to silence this warning, or pass `true` if you used an empty string in earlier versions of React to indicate this attribute is true.",m));case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":H&&typeof H!="function"&&typeof H!="symbol"?r.setAttribute(m,""):r.removeAttribute(m);break;case"capture":case"download":H===!0?r.setAttribute(m,""):H!==!1&&H!=null&&typeof H!="function"&&typeof H!="symbol"?(U(H,m),r.setAttribute(m,H)):r.removeAttribute(m);break;case"cols":case"rows":case"size":case"span":H!=null&&typeof H!="function"&&typeof H!="symbol"&&!isNaN(H)&&1<=H?(U(H,m),r.setAttribute(m,H)):r.removeAttribute(m);break;case"rowSpan":case"start":H==null||typeof H=="function"||typeof H=="symbol"||isNaN(H)?r.removeAttribute(m):(U(H,m),r.setAttribute(m,H));break;case"popover":e1("beforetoggle",r),e1("toggle",r),Xt(r,"popover",H);break;case"xlinkActuate":C2(r,gs,"xlink:actuate",H);break;case"xlinkArcrole":C2(r,gs,"xlink:arcrole",H);break;case"xlinkRole":C2(r,gs,"xlink:role",H);break;case"xlinkShow":C2(r,gs,"xlink:show",H);break;case"xlinkTitle":C2(r,gs,"xlink:title",H);break;case"xlinkType":C2(r,gs,"xlink:type",H);break;case"xmlBase":C2(r,kH,"xml:base",H);break;case"xmlLang":C2(r,kH,"xml:lang",H);break;case"xmlSpace":C2(r,kH,"xml:space",H);break;case"is":D!=null&&console.error('Cannot update the "is" prop after it has been initialized.'),Xt(r,"is",H);break;case"innerText":case"textContent":break;case"popoverTarget":GP||H==null||typeof H!="object"||(GP=!0,console.error("The `popoverTarget` prop expects the ID of an Element as a string. Received %s instead.",H));default:!(2<m.length)||m[0]!=="o"&&m[0]!=="O"||m[1]!=="n"&&m[1]!=="N"?(m=qi(m),Xt(r,m,H)):g6.hasOwnProperty(m)&&H!=null&&typeof H!="function"&&fn(m,H)}}function T0(r,c,m,H,w,D){switch(m){case"style":h9(r,H,D);break;case"dangerouslySetInnerHTML":if(H!=null){if(typeof H!="object"||!("__html"in H))throw Error("`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. Please visit https://react.dev/link/dangerously-set-inner-html for more information.");if(m=H.__html,m!=null){if(w.children!=null)throw Error("Can only set one of `children` or `props.dangerouslySetInnerHTML`.");r.innerHTML=m}}break;case"children":typeof H=="string"?U8(r,H):(typeof H=="number"||typeof H=="bigint")&&U8(r,""+H);break;case"onScroll":H!=null&&(typeof H!="function"&&fn(m,H),e1("scroll",r));break;case"onScrollEnd":H!=null&&(typeof H!="function"&&fn(m,H),e1("scrollend",r));break;case"onClick":H!=null&&(typeof H!="function"&&fn(m,H),r.onclick=c0);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(g6.hasOwnProperty(m))H!=null&&typeof H!="function"&&fn(m,H);else e:{if(m[0]==="o"&&m[1]==="n"&&(w=m.endsWith("Capture"),c=m.slice(2,w?m.length-7:void 0),D=r[b4]||null,D=D!=null?D[m]:null,typeof D=="function"&&r.removeEventListener(c,D,w),typeof H=="function")){typeof D!="function"&&D!==null&&(m in r?r[m]=null:r.hasAttribute(m)&&r.removeAttribute(m)),r.addEventListener(c,H,w);break e}m in r?r[m]=H:H===!0?r.setAttribute(m,""):Xt(r,m,H)}}}function e3(r,c,m){switch(ur(c,m),c){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":e1("error",r),e1("load",r);var H=!1,w=!1,D;for(D in m)if(m.hasOwnProperty(D)){var I=m[D];if(I!=null)switch(D){case"src":H=!0;break;case"srcSet":w=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(c+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");default:y1(r,c,D,I,m,null)}}w&&y1(r,c,"srcSet",m.srcSet,m,null),H&&y1(r,c,"src",m.src,m,null);return;case"input":nt("input",m),e1("invalid",r);var G=D=I=w=null,ie=null,le=null;for(H in m)if(m.hasOwnProperty(H)){var Ve=m[H];if(Ve!=null)switch(H){case"name":w=Ve;break;case"type":I=Ve;break;case"checked":ie=Ve;break;case"defaultChecked":le=Ve;break;case"value":D=Ve;break;case"defaultValue":G=Ve;break;case"children":case"dangerouslySetInnerHTML":if(Ve!=null)throw Error(c+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");break;default:y1(r,c,H,Ve,m,null)}}ji(r,m),Vf(r,D,G,ie,le,I,w,!1),H2(r);return;case"select":nt("select",m),e1("invalid",r),H=I=D=null;for(w in m)if(m.hasOwnProperty(w)&&(G=m[w],G!=null))switch(w){case"value":D=G;break;case"defaultValue":I=G;break;case"multiple":H=G;default:y1(r,c,w,G,m,null)}k6(r,m),c=D,m=I,r.multiple=!!H,c!=null?q5(r,!!H,c,!1):m!=null&&q5(r,!!H,m,!0);return;case"textarea":nt("textarea",m),e1("invalid",r),D=w=H=null;for(I in m)if(m.hasOwnProperty(I)&&(G=m[I],G!=null))switch(I){case"value":H=G;break;case"defaultValue":w=G;break;case"children":D=G;break;case"dangerouslySetInnerHTML":if(G!=null)throw Error("`dangerouslySetInnerHTML` does not make sense on <textarea>.");break;default:y1(r,c,I,G,m,null)}T9(r,m),Ii(r,H,w,D),H2(r);return;case"option":Ey(r,m);for(ie in m)if(m.hasOwnProperty(ie)&&(H=m[ie],H!=null))switch(ie){case"selected":r.selected=H&&typeof H!="function"&&typeof H!="symbol";break;default:y1(r,c,ie,H,m,null)}return;case"dialog":e1("beforetoggle",r),e1("toggle",r),e1("cancel",r),e1("close",r);break;case"iframe":case"object":e1("load",r);break;case"video":case"audio":for(H=0;H<hp.length;H++)e1(hp[H],r);break;case"image":e1("error",r),e1("load",r);break;case"details":e1("toggle",r);break;case"embed":case"source":case"link":e1("error",r),e1("load",r);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(le in m)if(m.hasOwnProperty(le)&&(H=m[le],H!=null))switch(le){case"children":case"dangerouslySetInnerHTML":throw Error(c+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");default:y1(r,c,le,H,m,null)}return;default:if(zi(c)){for(Ve in m)m.hasOwnProperty(Ve)&&(H=m[Ve],H!==void 0&&T0(r,c,Ve,H,m,void 0));return}}for(G in m)m.hasOwnProperty(G)&&(H=m[G],H!=null&&y1(r,c,G,H,m,null))}function ig(r,c,m,H){switch(ur(c,H),c){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var w=null,D=null,I=null,G=null,ie=null,le=null,Ve=null;for(Be in m){var Ne=m[Be];if(m.hasOwnProperty(Be)&&Ne!=null)switch(Be){case"checked":break;case"value":break;case"defaultValue":ie=Ne;default:H.hasOwnProperty(Be)||y1(r,c,Be,null,H,Ne)}}for(var Ce in H){var Be=H[Ce];if(Ne=m[Ce],H.hasOwnProperty(Ce)&&(Be!=null||Ne!=null))switch(Ce){case"type":D=Be;break;case"name":w=Be;break;case"checked":le=Be;break;case"defaultChecked":Ve=Be;break;case"value":I=Be;break;case"defaultValue":G=Be;break;case"children":case"dangerouslySetInnerHTML":if(Be!=null)throw Error(c+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");break;default:Be!==Ne&&y1(r,c,Ce,Be,H,Ne)}}c=m.type==="checkbox"||m.type==="radio"?m.checked!=null:m.value!=null,H=H.type==="checkbox"||H.type==="radio"?H.checked!=null:H.value!=null,c||!H||$P||(console.error("A component is changing an uncontrolled input to be controlled. This is likely caused by the value changing from undefined to a defined value, which should not happen. Decide between using a controlled or uncontrolled input element for the lifetime of the component. More info: https://react.dev/link/controlled-components"),$P=!0),!c||H||qP||(console.error("A component is changing a controlled input to be uncontrolled. This is likely caused by the value changing from a defined to undefined, which should not happen. Decide between using a controlled or uncontrolled input element for the lifetime of the component. More info: https://react.dev/link/controlled-components"),qP=!0),wf(r,I,G,ie,le,Ve,D,w);return;case"select":Be=I=G=Ce=null;for(D in m)if(ie=m[D],m.hasOwnProperty(D)&&ie!=null)switch(D){case"value":break;case"multiple":Be=ie;default:H.hasOwnProperty(D)||y1(r,c,D,null,H,ie)}for(w in H)if(D=H[w],ie=m[w],H.hasOwnProperty(w)&&(D!=null||ie!=null))switch(w){case"value":Ce=D;break;case"defaultValue":G=D;break;case"multiple":I=D;default:D!==ie&&y1(r,c,w,D,H,ie)}H=G,c=I,m=Be,Ce!=null?q5(r,!!c,Ce,!1):!!m!=!!c&&(H!=null?q5(r,!!c,H,!0):q5(r,!!c,c?[]:"",!1));return;case"textarea":Be=Ce=null;for(G in m)if(w=m[G],m.hasOwnProperty(G)&&w!=null&&!H.hasOwnProperty(G))switch(G){case"value":break;case"children":break;default:y1(r,c,G,null,H,w)}for(I in H)if(w=H[I],D=m[I],H.hasOwnProperty(I)&&(w!=null||D!=null))switch(I){case"value":Ce=w;break;case"defaultValue":Be=w;break;case"children":break;case"dangerouslySetInnerHTML":if(w!=null)throw Error("`dangerouslySetInnerHTML` does not make sense on <textarea>.");break;default:w!==D&&y1(r,c,I,w,H,D)}Df(r,Ce,Be);return;case"option":for(var Qt in m)if(Ce=m[Qt],m.hasOwnProperty(Qt)&&Ce!=null&&!H.hasOwnProperty(Qt))switch(Qt){case"selected":r.selected=!1;break;default:y1(r,c,Qt,null,H,Ce)}for(ie in H)if(Ce=H[ie],Be=m[ie],H.hasOwnProperty(ie)&&Ce!==Be&&(Ce!=null||Be!=null))switch(ie){case"selected":r.selected=Ce&&typeof Ce!="function"&&typeof Ce!="symbol";break;default:y1(r,c,ie,Ce,H,Be)}return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var Ot in m)Ce=m[Ot],m.hasOwnProperty(Ot)&&Ce!=null&&!H.hasOwnProperty(Ot)&&y1(r,c,Ot,null,H,Ce);for(le in H)if(Ce=H[le],Be=m[le],H.hasOwnProperty(le)&&Ce!==Be&&(Ce!=null||Be!=null))switch(le){case"children":case"dangerouslySetInnerHTML":if(Ce!=null)throw Error(c+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");break;default:y1(r,c,le,Ce,H,Be)}return;default:if(zi(c)){for(var o2 in m)Ce=m[o2],m.hasOwnProperty(o2)&&Ce!==void 0&&!H.hasOwnProperty(o2)&&T0(r,c,o2,void 0,H,Ce);for(Ve in H)Ce=H[Ve],Be=m[Ve],!H.hasOwnProperty(Ve)||Ce===Be||Ce===void 0&&Be===void 0||T0(r,c,Ve,Ce,H,Be);return}}for(var c1 in m)Ce=m[c1],m.hasOwnProperty(c1)&&Ce!=null&&!H.hasOwnProperty(c1)&&y1(r,c,c1,null,H,Ce);for(Ne in H)Ce=H[Ne],Be=m[Ne],!H.hasOwnProperty(Ne)||Ce===Be||Ce==null&&Be==null||y1(r,c,Ne,Ce,H,Be)}function Go(r){switch(r){case"class":return"className";case"for":return"htmlFor";default:return r}}function pu(r){var c={};r=r.style;for(var m=0;m<r.length;m++){var H=r[m];c[H]=r.getPropertyValue(H)}return c}function kl(r,c,m){if(c!=null&&typeof c!="object")console.error("The `style` prop expects a mapping from style properties to values, not a string. For example, style={{marginRight: spacing + 'em'}} when using JSX.");else{var H,w=H="",D;for(D in c)if(c.hasOwnProperty(D)){var I=c[D];I!=null&&typeof I!="boolean"&&I!==""&&(D.indexOf("--")===0?(de(I,D),H+=w+D+":"+(""+I).trim()):typeof I!="number"||I===0||Ih.has(D)?(de(I,D),H+=w+D.replace(vr,"-$1").toLowerCase().replace(u7,"-ms-")+":"+(""+I).trim()):H+=w+D.replace(vr,"-$1").toLowerCase().replace(u7,"-ms-")+":"+I+"px",w=";")}H=H||null,c=r.getAttribute("style"),c!==H&&(H=cr(H),cr(c)!==H&&(m.style=pu(r)))}}function F4(r,c,m,H,w,D){if(w.delete(m),r=r.getAttribute(m),r===null)switch(typeof H){case"undefined":case"function":case"symbol":case"boolean":return}else if(H!=null)switch(typeof H){case"function":case"symbol":case"boolean":break;default:if(U(H,c),r===""+H)return}i2(c,r,H,D)}function ag(r,c,m,H,w,D){if(w.delete(m),r=r.getAttribute(m),r===null){switch(typeof H){case"function":case"symbol":return}if(!H)return}else switch(typeof H){case"function":case"symbol":break;default:if(H)return}i2(c,r,H,D)}function lh(r,c,m,H,w,D){if(w.delete(m),r=r.getAttribute(m),r===null)switch(typeof H){case"undefined":case"function":case"symbol":return}else if(H!=null)switch(typeof H){case"function":case"symbol":break;default:if(U(H,m),r===""+H)return}i2(c,r,H,D)}function M1(r,c,m,H,w,D){if(w.delete(m),r=r.getAttribute(m),r===null)switch(typeof H){case"undefined":case"function":case"symbol":case"boolean":return;default:if(isNaN(H))return}else if(H!=null)switch(typeof H){case"function":case"symbol":case"boolean":break;default:if(!isNaN(H)&&(U(H,c),r===""+H))return}i2(c,r,H,D)}function j1(r,c,m,H,w,D){if(w.delete(m),r=r.getAttribute(m),r===null)switch(typeof H){case"undefined":case"function":case"symbol":case"boolean":return}else if(H!=null)switch(typeof H){case"function":case"symbol":case"boolean":break;default:if(U(H,c),m=U5(""+H),r===m)return}i2(c,r,H,D)}function t1(r,c,m,H){for(var w={},D=new Set,I=r.attributes,G=0;G<I.length;G++)switch(I[G].name.toLowerCase()){case"value":break;case"checked":break;case"selected":break;default:D.add(I[G].name)}if(zi(c)){for(var ie in m)if(m.hasOwnProperty(ie)){var le=m[ie];if(le!=null){if(g6.hasOwnProperty(ie))typeof le!="function"&&fn(ie,le);else if(m.suppressHydrationWarning!==!0)switch(ie){case"children":typeof le!="string"&&typeof le!="number"||i2("children",r.textContent,le,w);continue;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":continue;case"dangerouslySetInnerHTML":I=r.innerHTML,le=le?le.__html:void 0,le!=null&&(le=h6(r,le),i2(ie,I,le,w));continue;case"style":D.delete(ie),kl(r,le,w);continue;case"offsetParent":case"offsetTop":case"offsetLeft":case"offsetWidth":case"offsetHeight":case"isContentEditable":case"outerText":case"outerHTML":D.delete(ie.toLowerCase()),console.error("Assignment to read-only property will result in a no-op: `%s`",ie);continue;case"className":D.delete("class"),I=_t(r,"class",le),i2("className",I,le,w);continue;default:H.context===Va&&c!=="svg"&&c!=="math"?D.delete(ie.toLowerCase()):D.delete(ie),I=_t(r,ie,le),i2(ie,I,le,w)}}}}else for(le in m)if(m.hasOwnProperty(le)&&(ie=m[le],ie!=null)){if(g6.hasOwnProperty(le))typeof ie!="function"&&fn(le,ie);else if(m.suppressHydrationWarning!==!0)switch(le){case"children":typeof ie!="string"&&typeof ie!="number"||i2("children",r.textContent,ie,w);continue;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"value":case"checked":case"selected":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":continue;case"dangerouslySetInnerHTML":I=r.innerHTML,ie=ie?ie.__html:void 0,ie!=null&&(ie=h6(r,ie),I!==ie&&(w[le]={__html:I}));continue;case"className":F4(r,le,"class",ie,D,w);continue;case"tabIndex":F4(r,le,"tabindex",ie,D,w);continue;case"style":D.delete(le),kl(r,ie,w);continue;case"multiple":D.delete(le),i2(le,r.multiple,ie,w);continue;case"muted":D.delete(le),i2(le,r.muted,ie,w);continue;case"autoFocus":D.delete("autofocus"),i2(le,r.autofocus,ie,w);continue;case"data":if(c!=="object"){D.delete(le),I=r.getAttribute("data"),i2(le,I,ie,w);continue}case"src":case"href":if(!(ie!==""||c==="a"&&le==="href"||c==="object"&&le==="data")){console.error(le==="src"?'An empty string ("") was passed to the %s attribute. This may cause the browser to download the whole page again over the network. To fix this, either do not render the element at all or pass null to %s instead of an empty string.':'An empty string ("") was passed to the %s attribute. To fix this, either do not render the element at all or pass null to %s instead of an empty string.',le,le);continue}j1(r,le,le,ie,D,w);continue;case"action":case"formAction":if(I=r.getAttribute(le),typeof ie=="function"){D.delete(le.toLowerCase()),le==="formAction"?(D.delete("name"),D.delete("formenctype"),D.delete("formmethod"),D.delete("formtarget")):(D.delete("enctype"),D.delete("method"),D.delete("target"));continue}else if(I===Fae){D.delete(le.toLowerCase()),i2(le,"function",ie,w);continue}j1(r,le,le.toLowerCase(),ie,D,w);continue;case"xlinkHref":j1(r,le,"xlink:href",ie,D,w);continue;case"contentEditable":lh(r,le,"contenteditable",ie,D,w);continue;case"spellCheck":lh(r,le,"spellcheck",ie,D,w);continue;case"draggable":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":lh(r,le,le,ie,D,w);continue;case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":ag(r,le,le.toLowerCase(),ie,D,w);continue;case"capture":case"download":e:{G=r;var Ve=I=le,Ne=w;if(D.delete(Ve),G=G.getAttribute(Ve),G===null)switch(typeof ie){case"undefined":case"function":case"symbol":break e;default:if(ie===!1)break e}else if(ie!=null)switch(typeof ie){case"function":case"symbol":break;case"boolean":if(ie===!0&&G==="")break e;break;default:if(U(ie,I),G===""+ie)break e}i2(I,G,ie,Ne)}continue;case"cols":case"rows":case"size":case"span":e:{if(G=r,Ve=I=le,Ne=w,D.delete(Ve),G=G.getAttribute(Ve),G===null)switch(typeof ie){case"undefined":case"function":case"symbol":case"boolean":break e;default:if(isNaN(ie)||1>ie)break e}else if(ie!=null)switch(typeof ie){case"function":case"symbol":case"boolean":break;default:if(!(isNaN(ie)||1>ie)&&(U(ie,I),G===""+ie))break e}i2(I,G,ie,Ne)}continue;case"rowSpan":M1(r,le,"rowspan",ie,D,w);continue;case"start":M1(r,le,le,ie,D,w);continue;case"xHeight":F4(r,le,"x-height",ie,D,w);continue;case"xlinkActuate":F4(r,le,"xlink:actuate",ie,D,w);continue;case"xlinkArcrole":F4(r,le,"xlink:arcrole",ie,D,w);continue;case"xlinkRole":F4(r,le,"xlink:role",ie,D,w);continue;case"xlinkShow":F4(r,le,"xlink:show",ie,D,w);continue;case"xlinkTitle":F4(r,le,"xlink:title",ie,D,w);continue;case"xlinkType":F4(r,le,"xlink:type",ie,D,w);continue;case"xmlBase":F4(r,le,"xml:base",ie,D,w);continue;case"xmlLang":F4(r,le,"xml:lang",ie,D,w);continue;case"xmlSpace":F4(r,le,"xml:space",ie,D,w);continue;case"inert":ie!==""||rv[le]||(rv[le]=!0,console.error("Received an empty string for a boolean attribute `%s`. This will treat the attribute as if it were false. Either pass `false` to silence this warning, or pass `true` if you used an empty string in earlier versions of React to indicate this attribute is true.",le)),ag(r,le,le,ie,D,w);continue;default:if(!(2<le.length)||le[0]!=="o"&&le[0]!=="O"||le[1]!=="n"&&le[1]!=="N"){G=qi(le),I=!1,H.context===Va&&c!=="svg"&&c!=="math"?D.delete(G.toLowerCase()):(Ve=le.toLowerCase(),Ve=is.hasOwnProperty(Ve)&&is[Ve]||null,Ve!==null&&Ve!==le&&(I=!0,D.delete(Ve)),D.delete(G));e:if(Ve=r,Ne=G,G=ie,yt(Ne))if(Ve.hasAttribute(Ne))Ve=Ve.getAttribute(Ne),U(G,Ne),G=Ve===""+G?G:Ve;else{switch(typeof G){case"function":case"symbol":break e;case"boolean":if(Ve=Ne.toLowerCase().slice(0,5),Ve!=="data-"&&Ve!=="aria-")break e}G=G===void 0?void 0:null}else G=void 0;I||i2(le,G,ie,w)}}}return 0<D.size&&m.suppressHydrationWarning!==!0&&oh(r,D,w),Object.keys(w).length===0?null:w}function T1(r,c){switch(r.length){case 0:return"";case 1:return r[0];case 2:return r[0]+" "+c+" "+r[1];default:return r.slice(0,-1).join(", ")+", "+c+" "+r[r.length-1]}}function g1(r){return r.nodeType===9?r:r.ownerDocument}function g4(r){switch(r){case Lr:return bc;case Gu:return ov;default:return Va}}function Tr(r,c){if(r===Va)switch(c){case"svg":return bc;case"math":return ov;default:return Va}return r===bc&&c==="foreignObject"?Va:r}function Q0(r,c){return r==="textarea"||r==="noscript"||typeof c.children=="string"||typeof c.children=="number"||typeof c.children=="bigint"||typeof c.dangerouslySetInnerHTML=="object"&&c.dangerouslySetInnerHTML!==null&&c.dangerouslySetInnerHTML.__html!=null}function sh(){var r=window.event;return r&&r.type==="popstate"?r===jH?!1:(jH=r,!0):(jH=null,!1)}function Qr(r){setTimeout(function(){throw r})}function L2(r,c,m){switch(c){case"button":case"input":case"select":case"textarea":m.autoFocus&&r.focus();break;case"img":m.src?r.src=m.src:m.srcSet&&(r.srcset=m.srcSet)}}function f0(r,c,m,H){ig(r,c,m,H),r[b4]=H}function d0(r){U8(r,"")}function uh(r,c,m){r.nodeValue=m}function $2(r){return r==="head"}function Zo(r,c){r.removeChild(c)}function Nl(r,c){(r.nodeType===9?r.body:r.nodeName==="HTML"?r.ownerDocument.body:r).removeChild(c)}function j3(r,c){var m=c,H=0,w=0;do{var D=m.nextSibling;if(r.removeChild(m),D&&D.nodeType===8)if(m=D.data,m===av){if(0<H&&8>H){m=H;var I=r.ownerDocument;if(m&qae&&Yo(I.documentElement),m&$ae&&Yo(I.body),m&Uae)for(m=I.head,Yo(m),I=m.firstChild;I;){var G=I.nextSibling,ie=I.nodeName;I[Wl]||ie==="SCRIPT"||ie==="STYLE"||ie==="LINK"&&I.rel.toLowerCase()==="stylesheet"||m.removeChild(I),I=G}}if(w===0){r.removeChild(D),n7(c);return}w--}else m===iv||m===wa||m===pp?w++:H=m.charCodeAt(0)-48;else H=0;m=D}while(m);n7(c)}function ch(r){r=r.style,typeof r.setProperty=="function"?r.setProperty("display","none","important"):r.display="none"}function Th(r){r.nodeValue=""}function mu(r,c){c=c[Gae],c=c!=null&&c.hasOwnProperty("display")?c.display:null,r.style.display=c==null||typeof c=="boolean"?"":(""+c).trim()}function yu(r,c){r.nodeValue=c}function z6(r){var c=r.firstChild;for(c&&c.nodeType===10&&(c=c.nextSibling);c;){var m=c;switch(c=c.nextSibling,m.nodeName){case"HTML":case"HEAD":case"BODY":z6(m),d1(m);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(m.rel.toLowerCase()==="stylesheet")continue}r.removeChild(m)}}function f3(r,c,m,H){for(;r.nodeType===1;){var w=m;if(r.nodeName.toLowerCase()!==c.toLowerCase()){if(!H&&(r.nodeName!=="INPUT"||r.type!=="hidden"))break}else if(H){if(!r[Wl])switch(c){case"meta":if(!r.hasAttribute("itemprop"))break;return r;case"link":if(D=r.getAttribute("rel"),D==="stylesheet"&&r.hasAttribute("data-precedence"))break;if(D!==w.rel||r.getAttribute("href")!==(w.href==null||w.href===""?null:w.href)||r.getAttribute("crossorigin")!==(w.crossOrigin==null?null:w.crossOrigin)||r.getAttribute("title")!==(w.title==null?null:w.title))break;return r;case"style":if(r.hasAttribute("data-precedence"))break;return r;case"script":if(D=r.getAttribute("src"),(D!==(w.src==null?null:w.src)||r.getAttribute("type")!==(w.type==null?null:w.type)||r.getAttribute("crossorigin")!==(w.crossOrigin==null?null:w.crossOrigin))&&D&&r.hasAttribute("async")&&!r.hasAttribute("itemprop"))break;return r;default:return r}}else if(c==="input"&&r.type==="hidden"){U(w.name,"name");var D=w.name==null?null:""+w.name;if(w.type==="hidden"&&r.getAttribute("name")===D)return r}else return r;if(r=v4(r.nextSibling),r===null)break}return null}function h0(r,c,m){if(c==="")return null;for(;r.nodeType!==3;)if((r.nodeType!==1||r.nodeName!=="INPUT"||r.type!=="hidden")&&!m||(r=v4(r.nextSibling),r===null))return null;return r}function p0(r){return r.data===pp||r.data===wa&&r.ownerDocument.readyState===XP}function Xo(r,c){var m=r.ownerDocument;if(r.data!==wa||m.readyState===XP)c();else{var H=function(){c(),m.removeEventListener("DOMContentLoaded",H)};m.addEventListener("DOMContentLoaded",H),r._reactRetry=H}}function v4(r){for(;r!=null;r=r.nextSibling){var c=r.nodeType;if(c===1||c===3)break;if(c===8){if(c=r.data,c===iv||c===pp||c===wa||c===NH||c===ZP)break;if(c===av)return null}}return r}function gu(r){if(r.nodeType===1){for(var c=r.nodeName.toLowerCase(),m={},H=r.attributes,w=0;w<H.length;w++){var D=H[w];m[Go(D.name)]=D.name.toLowerCase()==="style"?pu(r):D.value}return{type:c,props:m}}return r.nodeType===8?{type:"Suspense",props:{}}:r.nodeValue}function Qh(r,c,m){return m===null||m[zae]!==!0?(r.nodeValue===c?r=null:(c=cr(c),r=cr(r.nodeValue)===c?null:r.nodeValue),r):null}function Wo(r){r=r.nextSibling;for(var c=0;r;){if(r.nodeType===8){var m=r.data;if(m===av){if(c===0)return v4(r.nextSibling);c--}else m!==iv&&m!==pp&&m!==wa||c++}r=r.nextSibling}return null}function vu(r){r=r.previousSibling;for(var c=0;r;){if(r.nodeType===8){var m=r.data;if(m===iv||m===pp||m===wa){if(c===0)return r;c--}else m===av&&c++}r=r.previousSibling}return null}function z4(r){n7(r)}function og(r){n7(r)}function L4(r,c,m,H,w){switch(w&&d9(r,H.ancestorInfo),c=g1(m),r){case"html":if(r=c.documentElement,!r)throw Error("React expected an <html> element (document.documentElement) to exist in the Document but one was not found. React never removes the documentElement for any Document it renders into so the cause is likely in some other script running on this page.");return r;case"head":if(r=c.head,!r)throw Error("React expected a <head> element (document.head) to exist in the Document but one was not found. React never removes the head for any Document it renders into so the cause is likely in some other script running on this page.");return r;case"body":if(r=c.body,!r)throw Error("React expected a <body> element (document.body) to exist in the Document but one was not found. React never removes the body for any Document it renders into so the cause is likely in some other script running on this page.");return r;default:throw Error("resolveSingletonInstance was called with an element type that is not supported. This is a bug in React.")}}function lg(r,c,m,H){if(!m[b0]&&it(m)){var w=m.tagName.toLowerCase();console.error("You are mounting a new %s component when a previous one has not first unmounted. It is an error to render more than one %s component at a time and attributes and children of these components will likely fail in unpredictable ways. Please only render a single instance of <%s> and if you need to mount a new one, ensure any previous ones have unmounted first.",w,w,w)}switch(r){case"html":case"head":case"body":break;default:console.error("acquireSingletonInstance was called with an element type that is not supported. This is a bug in React.")}for(w=m.attributes;w.length;)m.removeAttributeNode(w[0]);e3(m,r,c),m[S3]=H,m[b4]=c}function Yo(r){for(var c=r.attributes;c.length;)r.removeAttributeNode(c[0]);d1(r)}function Lu(r){return typeof r.getRootNode=="function"?r.getRootNode():r.nodeType===9?r:r.ownerDocument}function fr(r,c,m){var H=Hc;if(H&&typeof c=="string"&&c){var w=Y2(c);w='link[rel="'+r+'"][href="'+w+'"]',typeof m=="string"&&(w+='[crossorigin="'+m+'"]'),tj.has(w)||(tj.add(w),r={rel:r,crossOrigin:m,href:c},H.querySelector(w)===null&&(c=H.createElement("link"),e3(c,"link",r),ve(c),H.head.appendChild(c)))}}function Bl(r,c,m,H){var w=(w=$6.current)?Lu(w):null;if(!w)throw Error('"resourceRoot" was expected to exist. This is a bug in React.');switch(r){case"meta":case"title":return null;case"style":return typeof m.precedence=="string"&&typeof m.href=="string"?(m=p6(m.href),c=te(w).hoistableStyles,H=c.get(m),H||(H={type:"style",instance:null,count:0,state:null},c.set(m,H)),H):{type:"void",instance:null,count:0,state:null};case"link":if(m.rel==="stylesheet"&&typeof m.href=="string"&&typeof m.precedence=="string"){r=p6(m.href);var D=te(w).hoistableStyles,I=D.get(r);if(!I&&(w=w.ownerDocument||w,I={type:"stylesheet",instance:null,count:0,state:{loading:Ls,preload:null}},D.set(r,I),(D=w.querySelector(Jo(r)))&&!D._p&&(I.instance=D,I.state.loading=mp|l5),!s5.has(r))){var G={rel:"preload",as:"style",href:m.href,crossOrigin:m.crossOrigin,integrity:m.integrity,media:m.media,hrefLang:m.hrefLang,referrerPolicy:m.referrerPolicy};s5.set(r,G),D||sg(w,r,G,I.state)}if(c&&H===null)throw m=`
|
|
608
|
+
`).replace(Iae,"")}function ma(r,c){return c=cr(c),cr(r)===c}function c0(){}function y1(r,c,m,H,w,D){switch(m){case"children":typeof H=="string"?(lo(H,c,!1),c==="body"||c==="textarea"&&H===""||U8(r,H)):(typeof H=="number"||typeof H=="bigint")&&(lo(""+H,c,!1),c!=="body"&&U8(r,""+H));break;case"className":Ht(r,"class",H);break;case"tabIndex":Ht(r,"tabindex",H);break;case"dir":case"role":case"viewBox":case"width":case"height":Ht(r,m,H);break;case"style":h9(r,H,D);break;case"data":if(c!=="object"){Ht(r,"data",H);break}case"src":case"href":if(H===""&&(c!=="a"||m!=="href")){console.error(m==="src"?'An empty string ("") was passed to the %s attribute. This may cause the browser to download the whole page again over the network. To fix this, either do not render the element at all or pass null to %s instead of an empty string.':'An empty string ("") was passed to the %s attribute. To fix this, either do not render the element at all or pass null to %s instead of an empty string.',m,m),r.removeAttribute(m);break}if(H==null||typeof H=="function"||typeof H=="symbol"||typeof H=="boolean"){r.removeAttribute(m);break}U(H,m),H=U5(""+H),r.setAttribute(m,H);break;case"action":case"formAction":if(H!=null&&(c==="form"?m==="formAction"?console.error("You can only pass the formAction prop to <input> or <button>. Use the action prop on <form>."):typeof H=="function"&&(w.encType==null&&w.method==null||nv||(nv=!0,console.error("Cannot specify a encType or method for a form that specifies a function as the action. React provides those automatically. They will get overridden.")),w.target==null||tv||(tv=!0,console.error("Cannot specify a target for a form that specifies a function as the action. The function will always be executed in the same window."))):c==="input"||c==="button"?m==="action"?console.error("You can only pass the action prop to <form>. Use the formAction prop on <input> or <button>."):c!=="input"||w.type==="submit"||w.type==="image"||ev?c!=="button"||w.type==null||w.type==="submit"||ev?typeof H=="function"&&(w.name==null||UP||(UP=!0,console.error('Cannot specify a "name" prop for a button that specifies a function as a formAction. React needs it to encode which action should be invoked. It will get overridden.')),w.formEncType==null&&w.formMethod==null||nv||(nv=!0,console.error("Cannot specify a formEncType or formMethod for a button that specifies a function as a formAction. React provides those automatically. They will get overridden.")),w.formTarget==null||tv||(tv=!0,console.error("Cannot specify a formTarget for a button that specifies a function as a formAction. The function will always be executed in the same window."))):(ev=!0,console.error('A button can only specify a formAction along with type="submit" or no type.')):(ev=!0,console.error('An input can only specify a formAction along with type="submit" or type="image".')):console.error(m==="action"?"You can only pass the action prop to <form>.":"You can only pass the formAction prop to <input> or <button>.")),typeof H=="function"){r.setAttribute(m,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof D=="function"&&(m==="formAction"?(c!=="input"&&y1(r,c,"name",w.name,w,null),y1(r,c,"formEncType",w.formEncType,w,null),y1(r,c,"formMethod",w.formMethod,w,null),y1(r,c,"formTarget",w.formTarget,w,null)):(y1(r,c,"encType",w.encType,w,null),y1(r,c,"method",w.method,w,null),y1(r,c,"target",w.target,w,null)));if(H==null||typeof H=="symbol"||typeof H=="boolean"){r.removeAttribute(m);break}U(H,m),H=U5(""+H),r.setAttribute(m,H);break;case"onClick":H!=null&&(typeof H!="function"&&fn(m,H),r.onclick=c0);break;case"onScroll":H!=null&&(typeof H!="function"&&fn(m,H),e1("scroll",r));break;case"onScrollEnd":H!=null&&(typeof H!="function"&&fn(m,H),e1("scrollend",r));break;case"dangerouslySetInnerHTML":if(H!=null){if(typeof H!="object"||!("__html"in H))throw Error("`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. Please visit https://react.dev/link/dangerously-set-inner-html for more information.");if(m=H.__html,m!=null){if(w.children!=null)throw Error("Can only set one of `children` or `props.dangerouslySetInnerHTML`.");r.innerHTML=m}}break;case"multiple":r.multiple=H&&typeof H!="function"&&typeof H!="symbol";break;case"muted":r.muted=H&&typeof H!="function"&&typeof H!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(H==null||typeof H=="function"||typeof H=="boolean"||typeof H=="symbol"){r.removeAttribute("xlink:href");break}U(H,m),m=U5(""+H),r.setAttributeNS(gs,"xlink:href",m);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":H!=null&&typeof H!="function"&&typeof H!="symbol"?(U(H,m),r.setAttribute(m,""+H)):r.removeAttribute(m);break;case"inert":H!==""||rv[m]||(rv[m]=!0,console.error("Received an empty string for a boolean attribute `%s`. This will treat the attribute as if it were false. Either pass `false` to silence this warning, or pass `true` if you used an empty string in earlier versions of React to indicate this attribute is true.",m));case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":H&&typeof H!="function"&&typeof H!="symbol"?r.setAttribute(m,""):r.removeAttribute(m);break;case"capture":case"download":H===!0?r.setAttribute(m,""):H!==!1&&H!=null&&typeof H!="function"&&typeof H!="symbol"?(U(H,m),r.setAttribute(m,H)):r.removeAttribute(m);break;case"cols":case"rows":case"size":case"span":H!=null&&typeof H!="function"&&typeof H!="symbol"&&!isNaN(H)&&1<=H?(U(H,m),r.setAttribute(m,H)):r.removeAttribute(m);break;case"rowSpan":case"start":H==null||typeof H=="function"||typeof H=="symbol"||isNaN(H)?r.removeAttribute(m):(U(H,m),r.setAttribute(m,H));break;case"popover":e1("beforetoggle",r),e1("toggle",r),Xt(r,"popover",H);break;case"xlinkActuate":C2(r,gs,"xlink:actuate",H);break;case"xlinkArcrole":C2(r,gs,"xlink:arcrole",H);break;case"xlinkRole":C2(r,gs,"xlink:role",H);break;case"xlinkShow":C2(r,gs,"xlink:show",H);break;case"xlinkTitle":C2(r,gs,"xlink:title",H);break;case"xlinkType":C2(r,gs,"xlink:type",H);break;case"xmlBase":C2(r,kH,"xml:base",H);break;case"xmlLang":C2(r,kH,"xml:lang",H);break;case"xmlSpace":C2(r,kH,"xml:space",H);break;case"is":D!=null&&console.error('Cannot update the "is" prop after it has been initialized.'),Xt(r,"is",H);break;case"innerText":case"textContent":break;case"popoverTarget":GP||H==null||typeof H!="object"||(GP=!0,console.error("The `popoverTarget` prop expects the ID of an Element as a string. Received %s instead.",H));default:!(2<m.length)||m[0]!=="o"&&m[0]!=="O"||m[1]!=="n"&&m[1]!=="N"?(m=qi(m),Xt(r,m,H)):g6.hasOwnProperty(m)&&H!=null&&typeof H!="function"&&fn(m,H)}}function T0(r,c,m,H,w,D){switch(m){case"style":h9(r,H,D);break;case"dangerouslySetInnerHTML":if(H!=null){if(typeof H!="object"||!("__html"in H))throw Error("`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. Please visit https://react.dev/link/dangerously-set-inner-html for more information.");if(m=H.__html,m!=null){if(w.children!=null)throw Error("Can only set one of `children` or `props.dangerouslySetInnerHTML`.");r.innerHTML=m}}break;case"children":typeof H=="string"?U8(r,H):(typeof H=="number"||typeof H=="bigint")&&U8(r,""+H);break;case"onScroll":H!=null&&(typeof H!="function"&&fn(m,H),e1("scroll",r));break;case"onScrollEnd":H!=null&&(typeof H!="function"&&fn(m,H),e1("scrollend",r));break;case"onClick":H!=null&&(typeof H!="function"&&fn(m,H),r.onclick=c0);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(g6.hasOwnProperty(m))H!=null&&typeof H!="function"&&fn(m,H);else e:{if(m[0]==="o"&&m[1]==="n"&&(w=m.endsWith("Capture"),c=m.slice(2,w?m.length-7:void 0),D=r[b4]||null,D=D!=null?D[m]:null,typeof D=="function"&&r.removeEventListener(c,D,w),typeof H=="function")){typeof D!="function"&&D!==null&&(m in r?r[m]=null:r.hasAttribute(m)&&r.removeAttribute(m)),r.addEventListener(c,H,w);break e}m in r?r[m]=H:H===!0?r.setAttribute(m,""):Xt(r,m,H)}}}function e3(r,c,m){switch(ur(c,m),c){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":e1("error",r),e1("load",r);var H=!1,w=!1,D;for(D in m)if(m.hasOwnProperty(D)){var I=m[D];if(I!=null)switch(D){case"src":H=!0;break;case"srcSet":w=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(c+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");default:y1(r,c,D,I,m,null)}}w&&y1(r,c,"srcSet",m.srcSet,m,null),H&&y1(r,c,"src",m.src,m,null);return;case"input":nt("input",m),e1("invalid",r);var G=D=I=w=null,ie=null,le=null;for(H in m)if(m.hasOwnProperty(H)){var Ve=m[H];if(Ve!=null)switch(H){case"name":w=Ve;break;case"type":I=Ve;break;case"checked":ie=Ve;break;case"defaultChecked":le=Ve;break;case"value":D=Ve;break;case"defaultValue":G=Ve;break;case"children":case"dangerouslySetInnerHTML":if(Ve!=null)throw Error(c+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");break;default:y1(r,c,H,Ve,m,null)}}ji(r,m),Vf(r,D,G,ie,le,I,w,!1),H2(r);return;case"select":nt("select",m),e1("invalid",r),H=I=D=null;for(w in m)if(m.hasOwnProperty(w)&&(G=m[w],G!=null))switch(w){case"value":D=G;break;case"defaultValue":I=G;break;case"multiple":H=G;default:y1(r,c,w,G,m,null)}k6(r,m),c=D,m=I,r.multiple=!!H,c!=null?q5(r,!!H,c,!1):m!=null&&q5(r,!!H,m,!0);return;case"textarea":nt("textarea",m),e1("invalid",r),D=w=H=null;for(I in m)if(m.hasOwnProperty(I)&&(G=m[I],G!=null))switch(I){case"value":H=G;break;case"defaultValue":w=G;break;case"children":D=G;break;case"dangerouslySetInnerHTML":if(G!=null)throw Error("`dangerouslySetInnerHTML` does not make sense on <textarea>.");break;default:y1(r,c,I,G,m,null)}T9(r,m),Ii(r,H,w,D),H2(r);return;case"option":Ey(r,m);for(ie in m)if(m.hasOwnProperty(ie)&&(H=m[ie],H!=null))switch(ie){case"selected":r.selected=H&&typeof H!="function"&&typeof H!="symbol";break;default:y1(r,c,ie,H,m,null)}return;case"dialog":e1("beforetoggle",r),e1("toggle",r),e1("cancel",r),e1("close",r);break;case"iframe":case"object":e1("load",r);break;case"video":case"audio":for(H=0;H<hp.length;H++)e1(hp[H],r);break;case"image":e1("error",r),e1("load",r);break;case"details":e1("toggle",r);break;case"embed":case"source":case"link":e1("error",r),e1("load",r);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(le in m)if(m.hasOwnProperty(le)&&(H=m[le],H!=null))switch(le){case"children":case"dangerouslySetInnerHTML":throw Error(c+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");default:y1(r,c,le,H,m,null)}return;default:if(zi(c)){for(Ve in m)m.hasOwnProperty(Ve)&&(H=m[Ve],H!==void 0&&T0(r,c,Ve,H,m,void 0));return}}for(G in m)m.hasOwnProperty(G)&&(H=m[G],H!=null&&y1(r,c,G,H,m,null))}function ig(r,c,m,H){switch(ur(c,H),c){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var w=null,D=null,I=null,G=null,ie=null,le=null,Ve=null;for(Be in m){var Ne=m[Be];if(m.hasOwnProperty(Be)&&Ne!=null)switch(Be){case"checked":break;case"value":break;case"defaultValue":ie=Ne;default:H.hasOwnProperty(Be)||y1(r,c,Be,null,H,Ne)}}for(var Ce in H){var Be=H[Ce];if(Ne=m[Ce],H.hasOwnProperty(Ce)&&(Be!=null||Ne!=null))switch(Ce){case"type":D=Be;break;case"name":w=Be;break;case"checked":le=Be;break;case"defaultChecked":Ve=Be;break;case"value":I=Be;break;case"defaultValue":G=Be;break;case"children":case"dangerouslySetInnerHTML":if(Be!=null)throw Error(c+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");break;default:Be!==Ne&&y1(r,c,Ce,Be,H,Ne)}}c=m.type==="checkbox"||m.type==="radio"?m.checked!=null:m.value!=null,H=H.type==="checkbox"||H.type==="radio"?H.checked!=null:H.value!=null,c||!H||$P||(console.error("A component is changing an uncontrolled input to be controlled. This is likely caused by the value changing from undefined to a defined value, which should not happen. Decide between using a controlled or uncontrolled input element for the lifetime of the component. More info: https://react.dev/link/controlled-components"),$P=!0),!c||H||qP||(console.error("A component is changing a controlled input to be uncontrolled. This is likely caused by the value changing from a defined to undefined, which should not happen. Decide between using a controlled or uncontrolled input element for the lifetime of the component. More info: https://react.dev/link/controlled-components"),qP=!0),wf(r,I,G,ie,le,Ve,D,w);return;case"select":Be=I=G=Ce=null;for(D in m)if(ie=m[D],m.hasOwnProperty(D)&&ie!=null)switch(D){case"value":break;case"multiple":Be=ie;default:H.hasOwnProperty(D)||y1(r,c,D,null,H,ie)}for(w in H)if(D=H[w],ie=m[w],H.hasOwnProperty(w)&&(D!=null||ie!=null))switch(w){case"value":Ce=D;break;case"defaultValue":G=D;break;case"multiple":I=D;default:D!==ie&&y1(r,c,w,D,H,ie)}H=G,c=I,m=Be,Ce!=null?q5(r,!!c,Ce,!1):!!m!=!!c&&(H!=null?q5(r,!!c,H,!0):q5(r,!!c,c?[]:"",!1));return;case"textarea":Be=Ce=null;for(G in m)if(w=m[G],m.hasOwnProperty(G)&&w!=null&&!H.hasOwnProperty(G))switch(G){case"value":break;case"children":break;default:y1(r,c,G,null,H,w)}for(I in H)if(w=H[I],D=m[I],H.hasOwnProperty(I)&&(w!=null||D!=null))switch(I){case"value":Ce=w;break;case"defaultValue":Be=w;break;case"children":break;case"dangerouslySetInnerHTML":if(w!=null)throw Error("`dangerouslySetInnerHTML` does not make sense on <textarea>.");break;default:w!==D&&y1(r,c,I,w,H,D)}Df(r,Ce,Be);return;case"option":for(var Qt in m)if(Ce=m[Qt],m.hasOwnProperty(Qt)&&Ce!=null&&!H.hasOwnProperty(Qt))switch(Qt){case"selected":r.selected=!1;break;default:y1(r,c,Qt,null,H,Ce)}for(ie in H)if(Ce=H[ie],Be=m[ie],H.hasOwnProperty(ie)&&Ce!==Be&&(Ce!=null||Be!=null))switch(ie){case"selected":r.selected=Ce&&typeof Ce!="function"&&typeof Ce!="symbol";break;default:y1(r,c,ie,Ce,H,Be)}return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var Ot in m)Ce=m[Ot],m.hasOwnProperty(Ot)&&Ce!=null&&!H.hasOwnProperty(Ot)&&y1(r,c,Ot,null,H,Ce);for(le in H)if(Ce=H[le],Be=m[le],H.hasOwnProperty(le)&&Ce!==Be&&(Ce!=null||Be!=null))switch(le){case"children":case"dangerouslySetInnerHTML":if(Ce!=null)throw Error(c+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");break;default:y1(r,c,le,Ce,H,Be)}return;default:if(zi(c)){for(var o2 in m)Ce=m[o2],m.hasOwnProperty(o2)&&Ce!==void 0&&!H.hasOwnProperty(o2)&&T0(r,c,o2,void 0,H,Ce);for(Ve in H)Ce=H[Ve],Be=m[Ve],!H.hasOwnProperty(Ve)||Ce===Be||Ce===void 0&&Be===void 0||T0(r,c,Ve,Ce,H,Be);return}}for(var c1 in m)Ce=m[c1],m.hasOwnProperty(c1)&&Ce!=null&&!H.hasOwnProperty(c1)&&y1(r,c,c1,null,H,Ce);for(Ne in H)Ce=H[Ne],Be=m[Ne],!H.hasOwnProperty(Ne)||Ce===Be||Ce==null&&Be==null||y1(r,c,Ne,Ce,H,Be)}function Go(r){switch(r){case"class":return"className";case"for":return"htmlFor";default:return r}}function pu(r){var c={};r=r.style;for(var m=0;m<r.length;m++){var H=r[m];c[H]=r.getPropertyValue(H)}return c}function kl(r,c,m){if(c!=null&&typeof c!="object")console.error("The `style` prop expects a mapping from style properties to values, not a string. For example, style={{marginRight: spacing + 'em'}} when using JSX.");else{var H,w=H="",D;for(D in c)if(c.hasOwnProperty(D)){var I=c[D];I!=null&&typeof I!="boolean"&&I!==""&&(D.indexOf("--")===0?(de(I,D),H+=w+D+":"+(""+I).trim()):typeof I!="number"||I===0||Ih.has(D)?(de(I,D),H+=w+D.replace(vr,"-$1").toLowerCase().replace(u7,"-ms-")+":"+(""+I).trim()):H+=w+D.replace(vr,"-$1").toLowerCase().replace(u7,"-ms-")+":"+I+"px",w=";")}H=H||null,c=r.getAttribute("style"),c!==H&&(H=cr(H),cr(c)!==H&&(m.style=pu(r)))}}function F4(r,c,m,H,w,D){if(w.delete(m),r=r.getAttribute(m),r===null)switch(typeof H){case"undefined":case"function":case"symbol":case"boolean":return}else if(H!=null)switch(typeof H){case"function":case"symbol":case"boolean":break;default:if(U(H,c),r===""+H)return}i2(c,r,H,D)}function ag(r,c,m,H,w,D){if(w.delete(m),r=r.getAttribute(m),r===null){switch(typeof H){case"function":case"symbol":return}if(!H)return}else switch(typeof H){case"function":case"symbol":break;default:if(H)return}i2(c,r,H,D)}function lh(r,c,m,H,w,D){if(w.delete(m),r=r.getAttribute(m),r===null)switch(typeof H){case"undefined":case"function":case"symbol":return}else if(H!=null)switch(typeof H){case"function":case"symbol":break;default:if(U(H,m),r===""+H)return}i2(c,r,H,D)}function M1(r,c,m,H,w,D){if(w.delete(m),r=r.getAttribute(m),r===null)switch(typeof H){case"undefined":case"function":case"symbol":case"boolean":return;default:if(isNaN(H))return}else if(H!=null)switch(typeof H){case"function":case"symbol":case"boolean":break;default:if(!isNaN(H)&&(U(H,c),r===""+H))return}i2(c,r,H,D)}function j1(r,c,m,H,w,D){if(w.delete(m),r=r.getAttribute(m),r===null)switch(typeof H){case"undefined":case"function":case"symbol":case"boolean":return}else if(H!=null)switch(typeof H){case"function":case"symbol":case"boolean":break;default:if(U(H,c),m=U5(""+H),r===m)return}i2(c,r,H,D)}function t1(r,c,m,H){for(var w={},D=new Set,I=r.attributes,G=0;G<I.length;G++)switch(I[G].name.toLowerCase()){case"value":break;case"checked":break;case"selected":break;default:D.add(I[G].name)}if(zi(c)){for(var ie in m)if(m.hasOwnProperty(ie)){var le=m[ie];if(le!=null){if(g6.hasOwnProperty(ie))typeof le!="function"&&fn(ie,le);else if(m.suppressHydrationWarning!==!0)switch(ie){case"children":typeof le!="string"&&typeof le!="number"||i2("children",r.textContent,le,w);continue;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":continue;case"dangerouslySetInnerHTML":I=r.innerHTML,le=le?le.__html:void 0,le!=null&&(le=h6(r,le),i2(ie,I,le,w));continue;case"style":D.delete(ie),kl(r,le,w);continue;case"offsetParent":case"offsetTop":case"offsetLeft":case"offsetWidth":case"offsetHeight":case"isContentEditable":case"outerText":case"outerHTML":D.delete(ie.toLowerCase()),console.error("Assignment to read-only property will result in a no-op: `%s`",ie);continue;case"className":D.delete("class"),I=_t(r,"class",le),i2("className",I,le,w);continue;default:H.context===Va&&c!=="svg"&&c!=="math"?D.delete(ie.toLowerCase()):D.delete(ie),I=_t(r,ie,le),i2(ie,I,le,w)}}}}else for(le in m)if(m.hasOwnProperty(le)&&(ie=m[le],ie!=null)){if(g6.hasOwnProperty(le))typeof ie!="function"&&fn(le,ie);else if(m.suppressHydrationWarning!==!0)switch(le){case"children":typeof ie!="string"&&typeof ie!="number"||i2("children",r.textContent,ie,w);continue;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"value":case"checked":case"selected":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":continue;case"dangerouslySetInnerHTML":I=r.innerHTML,ie=ie?ie.__html:void 0,ie!=null&&(ie=h6(r,ie),I!==ie&&(w[le]={__html:I}));continue;case"className":F4(r,le,"class",ie,D,w);continue;case"tabIndex":F4(r,le,"tabindex",ie,D,w);continue;case"style":D.delete(le),kl(r,ie,w);continue;case"multiple":D.delete(le),i2(le,r.multiple,ie,w);continue;case"muted":D.delete(le),i2(le,r.muted,ie,w);continue;case"autoFocus":D.delete("autofocus"),i2(le,r.autofocus,ie,w);continue;case"data":if(c!=="object"){D.delete(le),I=r.getAttribute("data"),i2(le,I,ie,w);continue}case"src":case"href":if(!(ie!==""||c==="a"&&le==="href"||c==="object"&&le==="data")){console.error(le==="src"?'An empty string ("") was passed to the %s attribute. This may cause the browser to download the whole page again over the network. To fix this, either do not render the element at all or pass null to %s instead of an empty string.':'An empty string ("") was passed to the %s attribute. To fix this, either do not render the element at all or pass null to %s instead of an empty string.',le,le);continue}j1(r,le,le,ie,D,w);continue;case"action":case"formAction":if(I=r.getAttribute(le),typeof ie=="function"){D.delete(le.toLowerCase()),le==="formAction"?(D.delete("name"),D.delete("formenctype"),D.delete("formmethod"),D.delete("formtarget")):(D.delete("enctype"),D.delete("method"),D.delete("target"));continue}else if(I===Fae){D.delete(le.toLowerCase()),i2(le,"function",ie,w);continue}j1(r,le,le.toLowerCase(),ie,D,w);continue;case"xlinkHref":j1(r,le,"xlink:href",ie,D,w);continue;case"contentEditable":lh(r,le,"contenteditable",ie,D,w);continue;case"spellCheck":lh(r,le,"spellcheck",ie,D,w);continue;case"draggable":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":lh(r,le,le,ie,D,w);continue;case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":ag(r,le,le.toLowerCase(),ie,D,w);continue;case"capture":case"download":e:{G=r;var Ve=I=le,Ne=w;if(D.delete(Ve),G=G.getAttribute(Ve),G===null)switch(typeof ie){case"undefined":case"function":case"symbol":break e;default:if(ie===!1)break e}else if(ie!=null)switch(typeof ie){case"function":case"symbol":break;case"boolean":if(ie===!0&&G==="")break e;break;default:if(U(ie,I),G===""+ie)break e}i2(I,G,ie,Ne)}continue;case"cols":case"rows":case"size":case"span":e:{if(G=r,Ve=I=le,Ne=w,D.delete(Ve),G=G.getAttribute(Ve),G===null)switch(typeof ie){case"undefined":case"function":case"symbol":case"boolean":break e;default:if(isNaN(ie)||1>ie)break e}else if(ie!=null)switch(typeof ie){case"function":case"symbol":case"boolean":break;default:if(!(isNaN(ie)||1>ie)&&(U(ie,I),G===""+ie))break e}i2(I,G,ie,Ne)}continue;case"rowSpan":M1(r,le,"rowspan",ie,D,w);continue;case"start":M1(r,le,le,ie,D,w);continue;case"xHeight":F4(r,le,"x-height",ie,D,w);continue;case"xlinkActuate":F4(r,le,"xlink:actuate",ie,D,w);continue;case"xlinkArcrole":F4(r,le,"xlink:arcrole",ie,D,w);continue;case"xlinkRole":F4(r,le,"xlink:role",ie,D,w);continue;case"xlinkShow":F4(r,le,"xlink:show",ie,D,w);continue;case"xlinkTitle":F4(r,le,"xlink:title",ie,D,w);continue;case"xlinkType":F4(r,le,"xlink:type",ie,D,w);continue;case"xmlBase":F4(r,le,"xml:base",ie,D,w);continue;case"xmlLang":F4(r,le,"xml:lang",ie,D,w);continue;case"xmlSpace":F4(r,le,"xml:space",ie,D,w);continue;case"inert":ie!==""||rv[le]||(rv[le]=!0,console.error("Received an empty string for a boolean attribute `%s`. This will treat the attribute as if it were false. Either pass `false` to silence this warning, or pass `true` if you used an empty string in earlier versions of React to indicate this attribute is true.",le)),ag(r,le,le,ie,D,w);continue;default:if(!(2<le.length)||le[0]!=="o"&&le[0]!=="O"||le[1]!=="n"&&le[1]!=="N"){G=qi(le),I=!1,H.context===Va&&c!=="svg"&&c!=="math"?D.delete(G.toLowerCase()):(Ve=le.toLowerCase(),Ve=is.hasOwnProperty(Ve)&&is[Ve]||null,Ve!==null&&Ve!==le&&(I=!0,D.delete(Ve)),D.delete(G));e:if(Ve=r,Ne=G,G=ie,yt(Ne))if(Ve.hasAttribute(Ne))Ve=Ve.getAttribute(Ne),U(G,Ne),G=Ve===""+G?G:Ve;else{switch(typeof G){case"function":case"symbol":break e;case"boolean":if(Ve=Ne.toLowerCase().slice(0,5),Ve!=="data-"&&Ve!=="aria-")break e}G=G===void 0?void 0:null}else G=void 0;I||i2(le,G,ie,w)}}}return 0<D.size&&m.suppressHydrationWarning!==!0&&oh(r,D,w),Object.keys(w).length===0?null:w}function T1(r,c){switch(r.length){case 0:return"";case 1:return r[0];case 2:return r[0]+" "+c+" "+r[1];default:return r.slice(0,-1).join(", ")+", "+c+" "+r[r.length-1]}}function g1(r){return r.nodeType===9?r:r.ownerDocument}function g4(r){switch(r){case Lr:return bc;case Gu:return ov;default:return Va}}function Tr(r,c){if(r===Va)switch(c){case"svg":return bc;case"math":return ov;default:return Va}return r===bc&&c==="foreignObject"?Va:r}function Q0(r,c){return r==="textarea"||r==="noscript"||typeof c.children=="string"||typeof c.children=="number"||typeof c.children=="bigint"||typeof c.dangerouslySetInnerHTML=="object"&&c.dangerouslySetInnerHTML!==null&&c.dangerouslySetInnerHTML.__html!=null}function sh(){var r=window.event;return r&&r.type==="popstate"?r===jH?!1:(jH=r,!0):(jH=null,!1)}function Qr(r){setTimeout(function(){throw r})}function L2(r,c,m){switch(c){case"button":case"input":case"select":case"textarea":m.autoFocus&&r.focus();break;case"img":m.src?r.src=m.src:m.srcSet&&(r.srcset=m.srcSet)}}function f0(r,c,m,H){ig(r,c,m,H),r[b4]=H}function d0(r){U8(r,"")}function uh(r,c,m){r.nodeValue=m}function $2(r){return r==="head"}function Zo(r,c){r.removeChild(c)}function Nl(r,c){(r.nodeType===9?r.body:r.nodeName==="HTML"?r.ownerDocument.body:r).removeChild(c)}function j3(r,c){var m=c,H=0,w=0;do{var D=m.nextSibling;if(r.removeChild(m),D&&D.nodeType===8)if(m=D.data,m===av){if(0<H&&8>H){m=H;var I=r.ownerDocument;if(m&qae&&Yo(I.documentElement),m&$ae&&Yo(I.body),m&Uae)for(m=I.head,Yo(m),I=m.firstChild;I;){var G=I.nextSibling,ie=I.nodeName;I[Wl]||ie==="SCRIPT"||ie==="STYLE"||ie==="LINK"&&I.rel.toLowerCase()==="stylesheet"||m.removeChild(I),I=G}}if(w===0){r.removeChild(D),n7(c);return}w--}else m===iv||m===wa||m===pp?w++:H=m.charCodeAt(0)-48;else H=0;m=D}while(m);n7(c)}function ch(r){r=r.style,typeof r.setProperty=="function"?r.setProperty("display","none","important"):r.display="none"}function Th(r){r.nodeValue=""}function mu(r,c){c=c[Gae],c=c!=null&&c.hasOwnProperty("display")?c.display:null,r.style.display=c==null||typeof c=="boolean"?"":(""+c).trim()}function yu(r,c){r.nodeValue=c}function z6(r){var c=r.firstChild;for(c&&c.nodeType===10&&(c=c.nextSibling);c;){var m=c;switch(c=c.nextSibling,m.nodeName){case"HTML":case"HEAD":case"BODY":z6(m),d1(m);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(m.rel.toLowerCase()==="stylesheet")continue}r.removeChild(m)}}function f3(r,c,m,H){for(;r.nodeType===1;){var w=m;if(r.nodeName.toLowerCase()!==c.toLowerCase()){if(!H&&(r.nodeName!=="INPUT"||r.type!=="hidden"))break}else if(H){if(!r[Wl])switch(c){case"meta":if(!r.hasAttribute("itemprop"))break;return r;case"link":if(D=r.getAttribute("rel"),D==="stylesheet"&&r.hasAttribute("data-precedence"))break;if(D!==w.rel||r.getAttribute("href")!==(w.href==null||w.href===""?null:w.href)||r.getAttribute("crossorigin")!==(w.crossOrigin==null?null:w.crossOrigin)||r.getAttribute("title")!==(w.title==null?null:w.title))break;return r;case"style":if(r.hasAttribute("data-precedence"))break;return r;case"script":if(D=r.getAttribute("src"),(D!==(w.src==null?null:w.src)||r.getAttribute("type")!==(w.type==null?null:w.type)||r.getAttribute("crossorigin")!==(w.crossOrigin==null?null:w.crossOrigin))&&D&&r.hasAttribute("async")&&!r.hasAttribute("itemprop"))break;return r;default:return r}}else if(c==="input"&&r.type==="hidden"){U(w.name,"name");var D=w.name==null?null:""+w.name;if(w.type==="hidden"&&r.getAttribute("name")===D)return r}else return r;if(r=v4(r.nextSibling),r===null)break}return null}function h0(r,c,m){if(c==="")return null;for(;r.nodeType!==3;)if((r.nodeType!==1||r.nodeName!=="INPUT"||r.type!=="hidden")&&!m||(r=v4(r.nextSibling),r===null))return null;return r}function p0(r){return r.data===pp||r.data===wa&&r.ownerDocument.readyState===XP}function Xo(r,c){var m=r.ownerDocument;if(r.data!==wa||m.readyState===XP)c();else{var H=function(){c(),m.removeEventListener("DOMContentLoaded",H)};m.addEventListener("DOMContentLoaded",H),r._reactRetry=H}}function v4(r){for(;r!=null;r=r.nextSibling){var c=r.nodeType;if(c===1||c===3)break;if(c===8){if(c=r.data,c===iv||c===pp||c===wa||c===NH||c===ZP)break;if(c===av)return null}}return r}function gu(r){if(r.nodeType===1){for(var c=r.nodeName.toLowerCase(),m={},H=r.attributes,w=0;w<H.length;w++){var D=H[w];m[Go(D.name)]=D.name.toLowerCase()==="style"?pu(r):D.value}return{type:c,props:m}}return r.nodeType===8?{type:"Suspense",props:{}}:r.nodeValue}function Qh(r,c,m){return m===null||m[zae]!==!0?(r.nodeValue===c?r=null:(c=cr(c),r=cr(r.nodeValue)===c?null:r.nodeValue),r):null}function Wo(r){r=r.nextSibling;for(var c=0;r;){if(r.nodeType===8){var m=r.data;if(m===av){if(c===0)return v4(r.nextSibling);c--}else m!==iv&&m!==pp&&m!==wa||c++}r=r.nextSibling}return null}function vu(r){r=r.previousSibling;for(var c=0;r;){if(r.nodeType===8){var m=r.data;if(m===iv||m===pp||m===wa){if(c===0)return r;c--}else m===av&&c++}r=r.previousSibling}return null}function z4(r){n7(r)}function og(r){n7(r)}function L4(r,c,m,H,w){switch(w&&d9(r,H.ancestorInfo),c=g1(m),r){case"html":if(r=c.documentElement,!r)throw Error("React expected an <html> element (document.documentElement) to exist in the Document but one was not found. React never removes the documentElement for any Document it renders into so the cause is likely in some other script running on this page.");return r;case"head":if(r=c.head,!r)throw Error("React expected a <head> element (document.head) to exist in the Document but one was not found. React never removes the head for any Document it renders into so the cause is likely in some other script running on this page.");return r;case"body":if(r=c.body,!r)throw Error("React expected a <body> element (document.body) to exist in the Document but one was not found. React never removes the body for any Document it renders into so the cause is likely in some other script running on this page.");return r;default:throw Error("resolveSingletonInstance was called with an element type that is not supported. This is a bug in React.")}}function lg(r,c,m,H){if(!m[b0]&&it(m)){var w=m.tagName.toLowerCase();console.error("You are mounting a new %s component when a previous one has not first unmounted. It is an error to render more than one %s component at a time and attributes and children of these components will likely fail in unpredictable ways. Please only render a single instance of <%s> and if you need to mount a new one, ensure any previous ones have unmounted first.",w,w,w)}switch(r){case"html":case"head":case"body":break;default:console.error("acquireSingletonInstance was called with an element type that is not supported. This is a bug in React.")}for(w=m.attributes;w.length;)m.removeAttributeNode(w[0]);e3(m,r,c),m[S3]=H,m[b4]=c}function Yo(r){for(var c=r.attributes;c.length;)r.removeAttributeNode(c[0]);d1(r)}function Lu(r){return typeof r.getRootNode=="function"?r.getRootNode():r.nodeType===9?r:r.ownerDocument}function fr(r,c,m){var H=Hc;if(H&&typeof c=="string"&&c){var w=Y2(c);w='link[rel="'+r+'"][href="'+w+'"]',typeof m=="string"&&(w+='[crossorigin="'+m+'"]'),tj.has(w)||(tj.add(w),r={rel:r,crossOrigin:m,href:c},H.querySelector(w)===null&&(c=H.createElement("link"),e3(c,"link",r),Le(c),H.head.appendChild(c)))}}function Bl(r,c,m,H){var w=(w=$6.current)?Lu(w):null;if(!w)throw Error('"resourceRoot" was expected to exist. This is a bug in React.');switch(r){case"meta":case"title":return null;case"style":return typeof m.precedence=="string"&&typeof m.href=="string"?(m=p6(m.href),c=te(w).hoistableStyles,H=c.get(m),H||(H={type:"style",instance:null,count:0,state:null},c.set(m,H)),H):{type:"void",instance:null,count:0,state:null};case"link":if(m.rel==="stylesheet"&&typeof m.href=="string"&&typeof m.precedence=="string"){r=p6(m.href);var D=te(w).hoistableStyles,I=D.get(r);if(!I&&(w=w.ownerDocument||w,I={type:"stylesheet",instance:null,count:0,state:{loading:Ls,preload:null}},D.set(r,I),(D=w.querySelector(Jo(r)))&&!D._p&&(I.instance=D,I.state.loading=mp|l5),!s5.has(r))){var G={rel:"preload",as:"style",href:m.href,crossOrigin:m.crossOrigin,integrity:m.integrity,media:m.media,hrefLang:m.hrefLang,referrerPolicy:m.referrerPolicy};s5.set(r,G),D||sg(w,r,G,I.state)}if(c&&H===null)throw m=`
|
|
609
609
|
|
|
610
610
|
- `+Ko(c)+`
|
|
611
611
|
+ `+Ko(m),Error("Expected <link> not to update to be updated to a stylesheet with precedence. Check the `rel`, `href`, and `precedence` props of this component. Alternatively, check whether two different <link> components render in the same slot or share the same key."+m);return I}if(c&&H!==null)throw m=`
|
|
612
612
|
|
|
613
613
|
- `+Ko(c)+`
|
|
614
|
-
+ `+Ko(m),Error("Expected stylesheet with precedence to not be updated to a different kind of <link>. Check the `rel`, `href`, and `precedence` props of this component. Alternatively, check whether two different <link> components render in the same slot or share the same key."+m);return null;case"script":return c=m.async,m=m.src,typeof m=="string"&&c&&typeof c!="function"&&typeof c!="symbol"?(m=m0(m),c=te(w).hoistableScripts,H=c.get(m),H||(H={type:"script",instance:null,count:0,state:null},c.set(m,H)),H):{type:"void",instance:null,count:0,state:null};default:throw Error('getResource encountered a type it did not expect: "'+r+'". this is a bug in React.')}}function Ko(r){var c=0,m="<link";return typeof r.rel=="string"?(c++,m+=' rel="'+r.rel+'"'):U6.call(r,"rel")&&(c++,m+=' rel="'+(r.rel===null?"null":"invalid type "+typeof r.rel)+'"'),typeof r.href=="string"?(c++,m+=' href="'+r.href+'"'):U6.call(r,"href")&&(c++,m+=' href="'+(r.href===null?"null":"invalid type "+typeof r.href)+'"'),typeof r.precedence=="string"?(c++,m+=' precedence="'+r.precedence+'"'):U6.call(r,"precedence")&&(c++,m+=" precedence={"+(r.precedence===null?"null":"invalid type "+typeof r.precedence)+"}"),Object.getOwnPropertyNames(r).length>c&&(m+=" ..."),m+" />"}function p6(r){return'href="'+Y2(r)+'"'}function Jo(r){return'link[rel="stylesheet"]['+r+"]"}function fh(r){return Vt({},r,{"data-precedence":r.precedence,precedence:null})}function sg(r,c,m,H){r.querySelector('link[rel="preload"][as="style"]['+c+"]")?H.loading=mp:(c=r.createElement("link"),H.preload=c,c.addEventListener("load",function(){return H.loading|=mp}),c.addEventListener("error",function(){return H.loading|=JP}),e3(c,"link",m),ve(c),r.head.appendChild(c))}function m0(r){return'[src="'+Y2(r)+'"]'}function ya(r){return"script[async]"+r}function ug(r,c,m){if(c.count++,c.instance===null)switch(c.type){case"style":var H=r.querySelector('style[data-href~="'+Y2(m.href)+'"]');if(H)return c.instance=H,ve(H),H;var w=Vt({},m,{"data-href":m.href,"data-precedence":m.precedence,href:null,precedence:null});return H=(r.ownerDocument||r).createElement("style"),ve(H),e3(H,"style",w),xu(H,m.precedence,r),c.instance=H;case"stylesheet":w=p6(m.href);var D=r.querySelector(Jo(w));if(D)return c.state.loading|=l5,c.instance=D,ve(D),D;H=fh(m),(w=s5.get(w))&&dh(H,w),D=(r.ownerDocument||r).createElement("link"),ve(D);var I=D;return I._p=new Promise(function(G,ie){I.onload=G,I.onerror=ie}),e3(D,"link",H),c.state.loading|=l5,xu(D,m.precedence,r),c.instance=D;case"script":return D=m0(m.src),(w=r.querySelector(ya(D)))?(c.instance=w,ve(w),w):(H=m,(w=s5.get(D))&&(H=Vt({},m),bu(H,w)),r=r.ownerDocument||r,w=r.createElement("script"),ve(w),e3(w,"link",H),r.head.appendChild(w),c.instance=w);case"void":return null;default:throw Error('acquireResource encountered a resource type it did not expect: "'+c.type+'". this is a bug in React.')}else c.type==="stylesheet"&&(c.state.loading&l5)===Ls&&(H=c.instance,c.state.loading|=l5,xu(H,m.precedence,r));return c.instance}function xu(r,c,m){for(var H=m.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),w=H.length?H[H.length-1]:null,D=w,I=0;I<H.length;I++){var G=H[I];if(G.dataset.precedence===c)D=G;else if(D!==w)break}D?D.parentNode.insertBefore(r,D.nextSibling):(c=m.nodeType===9?m.head:m,c.insertBefore(r,c.firstChild))}function dh(r,c){r.crossOrigin==null&&(r.crossOrigin=c.crossOrigin),r.referrerPolicy==null&&(r.referrerPolicy=c.referrerPolicy),r.title==null&&(r.title=c.title)}function bu(r,c){r.crossOrigin==null&&(r.crossOrigin=c.crossOrigin),r.referrerPolicy==null&&(r.referrerPolicy=c.referrerPolicy),r.integrity==null&&(r.integrity=c.integrity)}function hh(r,c,m){if(lv===null){var H=new Map,w=lv=new Map;w.set(m,H)}else w=lv,H=w.get(m),H||(H=new Map,w.set(m,H));if(H.has(r))return H;for(H.set(r,null),m=m.getElementsByTagName(r),w=0;w<m.length;w++){var D=m[w];if(!(D[Wl]||D[S3]||r==="link"&&D.getAttribute("rel")==="stylesheet")&&D.namespaceURI!==Lr){var I=D.getAttribute(c)||"";I=r+I;var G=H.get(I);G?G.push(D):H.set(I,[D])}}return H}function ga(r,c,m){r=r.ownerDocument||r,r.head.insertBefore(m,c==="title"?r.querySelector("head > title"):null)}function Hu(r,c,m){var H=!m.ancestorInfo.containerTagInScope;if(m.context===bc||c.itemProp!=null)return!H||c.itemProp==null||r!=="meta"&&r!=="title"&&r!=="style"&&r!=="link"&&r!=="script"||console.error("Cannot render a <%s> outside the main document if it has an `itemProp` prop. `itemProp` suggests the tag belongs to an `itemScope` which can appear anywhere in the DOM. If you were intending for React to hoist this <%s> remove the `itemProp` prop. Otherwise, try moving this tag into the <head> or <body> of the Document.",r,r),!1;switch(r){case"meta":case"title":return!0;case"style":if(typeof c.precedence!="string"||typeof c.href!="string"||c.href===""){H&&console.error('Cannot render a <style> outside the main document without knowing its precedence and a unique href key. React can hoist and deduplicate <style> tags if you provide a `precedence` prop along with an `href` prop that does not conflict with the `href` values used in any other hoisted <style> or <link rel="stylesheet" ...> tags. Note that hoisting <style> tags is considered an advanced feature that most will not use directly. Consider moving the <style> tag to the <head> or consider adding a `precedence="default"` and `href="some unique resource identifier"`.');break}return!0;case"link":if(typeof c.rel!="string"||typeof c.href!="string"||c.href===""||c.onLoad||c.onError){if(c.rel==="stylesheet"&&typeof c.precedence=="string"){r=c.href;var w=c.onError,D=c.disabled;m=[],c.onLoad&&m.push("`onLoad`"),w&&m.push("`onError`"),D!=null&&m.push("`disabled`"),w=T1(m,"and"),w+=m.length===1?" prop":" props",D=m.length===1?"an "+w:"the "+w,m.length&&console.error('React encountered a <link rel="stylesheet" href="%s" ... /> with a `precedence` prop that also included %s. The presence of loading and error handlers indicates an intent to manage the stylesheet loading state from your from your Component code and React will not hoist or deduplicate this stylesheet. If your intent was to have React hoist and deduplciate this stylesheet using the `precedence` prop remove the %s, otherwise remove the `precedence` prop.',r,D,w)}H&&(typeof c.rel!="string"||typeof c.href!="string"||c.href===""?console.error("Cannot render a <link> outside the main document without a `rel` and `href` prop. Try adding a `rel` and/or `href` prop to this <link> or moving the link into the <head> tag"):(c.onError||c.onLoad)&&console.error("Cannot render a <link> with onLoad or onError listeners outside the main document. Try removing onLoad={...} and onError={...} or moving it into the root <head> tag or somewhere in the <body>."));break}switch(c.rel){case"stylesheet":return r=c.precedence,c=c.disabled,typeof r!="string"&&H&&console.error('Cannot render a <link rel="stylesheet" /> outside the main document without knowing its precedence. Consider adding precedence="default" or moving it into the root <head> tag.'),typeof r=="string"&&c==null;default:return!0}case"script":if(r=c.async&&typeof c.async!="function"&&typeof c.async!="symbol",!r||c.onLoad||c.onError||!c.src||typeof c.src!="string"){H&&(r?c.onLoad||c.onError?console.error("Cannot render a <script> with onLoad or onError listeners outside the main document. Try removing onLoad={...} and onError={...} or moving it into the root <head> tag or somewhere in the <body>."):console.error("Cannot render a <script> outside the main document without `async={true}` and a non-empty `src` prop. Ensure there is a valid `src` and either make the script async or move it into the root <head> tag or somewhere in the <body>."):console.error('Cannot render a sync or defer <script> outside the main document without knowing its order. Try adding async="" or moving it into the root <head> tag.'));break}return!0;case"noscript":case"template":H&&console.error("Cannot render <%s> outside the main document. Try moving it into the root <head> tag.",r)}return!1}function ph(r){return!(r.type==="stylesheet"&&(r.state.loading&ej)===Ls)}function cg(){}function Tg(r,c,m){if(yp===null)throw Error("Internal React Error: suspendedState null when it was expected to exists. Please report this as a React bug.");var H=yp;if(c.type==="stylesheet"&&(typeof m.media!="string"||matchMedia(m.media).matches!==!1)&&(c.state.loading&l5)===Ls){if(c.instance===null){var w=p6(m.href),D=r.querySelector(Jo(w));if(D){r=D._p,r!==null&&typeof r=="object"&&typeof r.then=="function"&&(H.count++,H=Pl.bind(H),r.then(H,H)),c.state.loading|=l5,c.instance=D,ve(D);return}D=r.ownerDocument||r,m=fh(m),(w=s5.get(w))&&dh(m,w),D=D.createElement("link"),ve(D);var I=D;I._p=new Promise(function(G,ie){I.onload=G,I.onerror=ie}),e3(D,"link",m),c.instance=D}H.stylesheets===null&&(H.stylesheets=new Map),H.stylesheets.set(c,r),(r=c.state.preload)&&(c.state.loading&ej)===Ls&&(H.count++,c=Pl.bind(H),r.addEventListener("load",c),r.addEventListener("error",c))}}function Qg(){if(yp===null)throw Error("Internal React Error: suspendedState null when it was expected to exists. Please report this as a React bug.");var r=yp;return r.stylesheets&&r.count===0&&Eu(r,r.stylesheets),0<r.count?function(c){var m=setTimeout(function(){if(r.stylesheets&&Eu(r,r.stylesheets),r.unsuspend){var H=r.unsuspend;r.unsuspend=null,H()}},6e4);return r.unsuspend=c,function(){r.unsuspend=null,clearTimeout(m)}}:null}function Pl(){if(this.count--,this.count===0){if(this.stylesheets)Eu(this,this.stylesheets);else if(this.unsuspend){var r=this.unsuspend;this.unsuspend=null,r()}}}function Eu(r,c){r.stylesheets=null,r.unsuspend!==null&&(r.count++,sv=new Map,c.forEach(Su,r),sv=null,Pl.call(r))}function Su(r,c){if(!(c.state.loading&l5)){var m=sv.get(r);if(m)var H=m.get(FH);else{m=new Map,sv.set(r,m);for(var w=r.querySelectorAll("link[data-precedence],style[data-precedence]"),D=0;D<w.length;D++){var I=w[D];(I.nodeName==="LINK"||I.getAttribute("media")!=="not all")&&(m.set(I.dataset.precedence,I),H=I)}H&&m.set(FH,H)}w=c.instance,I=w.getAttribute("data-precedence"),D=m.get(I)||H,D===H&&m.set(FH,w),m.set(I,w),this.count++,H=Pl.bind(this),w.addEventListener("load",H),w.addEventListener("error",H),D?D.parentNode.insertBefore(w,D.nextSibling):(r=r.nodeType===9?r.head:r,r.insertBefore(w,r.firstChild)),c.state.loading|=l5}}function fg(r,c,m,H,w,D,I,G){for(this.tag=1,this.containerInfo=r,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=vs,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=e2(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=e2(0),this.hiddenUpdates=e2(null),this.identifierPrefix=H,this.onUncaughtError=w,this.onCaughtError=D,this.onRecoverableError=I,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=G,this.incompleteTransitions=new Map,this.passiveEffectDuration=this.effectDuration=-0,this.memoizedUpdaters=new Set,r=this.pendingUpdatersLaneMap=[],c=0;31>c;c++)r.push(new Set);this._debugRootType=m?"hydrateRoot()":"createRoot()"}function mh(r,c,m,H,w,D,I,G,ie,le,Ve,Ne){return r=new fg(r,c,m,I,G,ie,le,Ne),c=gae,D===!0&&(c|=H4|xr),dn&&(c|=I3),D=p(3,null,null,c),r.current=D,D.stateNode=r,c=td(),an(c),r.pooledCache=c,an(c),D.memoizedState={element:H,isDehydrated:m,cache:c},Yr(D),r}function I1(r){return r?(r=T7,r):T7}function jl(r,c,m,H,w,D){if(h3&&typeof h3.onScheduleFiberRoot=="function")try{h3.onScheduleFiberRoot(xa,H,m)}catch(I){S2||(S2=!0,console.error("React instrumentation encountered an error: %s",I))}lt!==null&&typeof lt.markRenderScheduled=="function"&<.markRenderScheduled(c),w=I1(w),H.context===null?H.context=w:H.pendingContext=w,Z6&&p3!==null&&!aj&&(aj=!0,console.error(`Render methods should be a pure function of props and state; triggering nested component updates from render is not allowed. If necessary, trigger nested updates in componentDidUpdate.
|
|
614
|
+
+ `+Ko(m),Error("Expected stylesheet with precedence to not be updated to a different kind of <link>. Check the `rel`, `href`, and `precedence` props of this component. Alternatively, check whether two different <link> components render in the same slot or share the same key."+m);return null;case"script":return c=m.async,m=m.src,typeof m=="string"&&c&&typeof c!="function"&&typeof c!="symbol"?(m=m0(m),c=te(w).hoistableScripts,H=c.get(m),H||(H={type:"script",instance:null,count:0,state:null},c.set(m,H)),H):{type:"void",instance:null,count:0,state:null};default:throw Error('getResource encountered a type it did not expect: "'+r+'". this is a bug in React.')}}function Ko(r){var c=0,m="<link";return typeof r.rel=="string"?(c++,m+=' rel="'+r.rel+'"'):U6.call(r,"rel")&&(c++,m+=' rel="'+(r.rel===null?"null":"invalid type "+typeof r.rel)+'"'),typeof r.href=="string"?(c++,m+=' href="'+r.href+'"'):U6.call(r,"href")&&(c++,m+=' href="'+(r.href===null?"null":"invalid type "+typeof r.href)+'"'),typeof r.precedence=="string"?(c++,m+=' precedence="'+r.precedence+'"'):U6.call(r,"precedence")&&(c++,m+=" precedence={"+(r.precedence===null?"null":"invalid type "+typeof r.precedence)+"}"),Object.getOwnPropertyNames(r).length>c&&(m+=" ..."),m+" />"}function p6(r){return'href="'+Y2(r)+'"'}function Jo(r){return'link[rel="stylesheet"]['+r+"]"}function fh(r){return Vt({},r,{"data-precedence":r.precedence,precedence:null})}function sg(r,c,m,H){r.querySelector('link[rel="preload"][as="style"]['+c+"]")?H.loading=mp:(c=r.createElement("link"),H.preload=c,c.addEventListener("load",function(){return H.loading|=mp}),c.addEventListener("error",function(){return H.loading|=JP}),e3(c,"link",m),Le(c),r.head.appendChild(c))}function m0(r){return'[src="'+Y2(r)+'"]'}function ya(r){return"script[async]"+r}function ug(r,c,m){if(c.count++,c.instance===null)switch(c.type){case"style":var H=r.querySelector('style[data-href~="'+Y2(m.href)+'"]');if(H)return c.instance=H,Le(H),H;var w=Vt({},m,{"data-href":m.href,"data-precedence":m.precedence,href:null,precedence:null});return H=(r.ownerDocument||r).createElement("style"),Le(H),e3(H,"style",w),xu(H,m.precedence,r),c.instance=H;case"stylesheet":w=p6(m.href);var D=r.querySelector(Jo(w));if(D)return c.state.loading|=l5,c.instance=D,Le(D),D;H=fh(m),(w=s5.get(w))&&dh(H,w),D=(r.ownerDocument||r).createElement("link"),Le(D);var I=D;return I._p=new Promise(function(G,ie){I.onload=G,I.onerror=ie}),e3(D,"link",H),c.state.loading|=l5,xu(D,m.precedence,r),c.instance=D;case"script":return D=m0(m.src),(w=r.querySelector(ya(D)))?(c.instance=w,Le(w),w):(H=m,(w=s5.get(D))&&(H=Vt({},m),bu(H,w)),r=r.ownerDocument||r,w=r.createElement("script"),Le(w),e3(w,"link",H),r.head.appendChild(w),c.instance=w);case"void":return null;default:throw Error('acquireResource encountered a resource type it did not expect: "'+c.type+'". this is a bug in React.')}else c.type==="stylesheet"&&(c.state.loading&l5)===Ls&&(H=c.instance,c.state.loading|=l5,xu(H,m.precedence,r));return c.instance}function xu(r,c,m){for(var H=m.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),w=H.length?H[H.length-1]:null,D=w,I=0;I<H.length;I++){var G=H[I];if(G.dataset.precedence===c)D=G;else if(D!==w)break}D?D.parentNode.insertBefore(r,D.nextSibling):(c=m.nodeType===9?m.head:m,c.insertBefore(r,c.firstChild))}function dh(r,c){r.crossOrigin==null&&(r.crossOrigin=c.crossOrigin),r.referrerPolicy==null&&(r.referrerPolicy=c.referrerPolicy),r.title==null&&(r.title=c.title)}function bu(r,c){r.crossOrigin==null&&(r.crossOrigin=c.crossOrigin),r.referrerPolicy==null&&(r.referrerPolicy=c.referrerPolicy),r.integrity==null&&(r.integrity=c.integrity)}function hh(r,c,m){if(lv===null){var H=new Map,w=lv=new Map;w.set(m,H)}else w=lv,H=w.get(m),H||(H=new Map,w.set(m,H));if(H.has(r))return H;for(H.set(r,null),m=m.getElementsByTagName(r),w=0;w<m.length;w++){var D=m[w];if(!(D[Wl]||D[S3]||r==="link"&&D.getAttribute("rel")==="stylesheet")&&D.namespaceURI!==Lr){var I=D.getAttribute(c)||"";I=r+I;var G=H.get(I);G?G.push(D):H.set(I,[D])}}return H}function ga(r,c,m){r=r.ownerDocument||r,r.head.insertBefore(m,c==="title"?r.querySelector("head > title"):null)}function Hu(r,c,m){var H=!m.ancestorInfo.containerTagInScope;if(m.context===bc||c.itemProp!=null)return!H||c.itemProp==null||r!=="meta"&&r!=="title"&&r!=="style"&&r!=="link"&&r!=="script"||console.error("Cannot render a <%s> outside the main document if it has an `itemProp` prop. `itemProp` suggests the tag belongs to an `itemScope` which can appear anywhere in the DOM. If you were intending for React to hoist this <%s> remove the `itemProp` prop. Otherwise, try moving this tag into the <head> or <body> of the Document.",r,r),!1;switch(r){case"meta":case"title":return!0;case"style":if(typeof c.precedence!="string"||typeof c.href!="string"||c.href===""){H&&console.error('Cannot render a <style> outside the main document without knowing its precedence and a unique href key. React can hoist and deduplicate <style> tags if you provide a `precedence` prop along with an `href` prop that does not conflict with the `href` values used in any other hoisted <style> or <link rel="stylesheet" ...> tags. Note that hoisting <style> tags is considered an advanced feature that most will not use directly. Consider moving the <style> tag to the <head> or consider adding a `precedence="default"` and `href="some unique resource identifier"`.');break}return!0;case"link":if(typeof c.rel!="string"||typeof c.href!="string"||c.href===""||c.onLoad||c.onError){if(c.rel==="stylesheet"&&typeof c.precedence=="string"){r=c.href;var w=c.onError,D=c.disabled;m=[],c.onLoad&&m.push("`onLoad`"),w&&m.push("`onError`"),D!=null&&m.push("`disabled`"),w=T1(m,"and"),w+=m.length===1?" prop":" props",D=m.length===1?"an "+w:"the "+w,m.length&&console.error('React encountered a <link rel="stylesheet" href="%s" ... /> with a `precedence` prop that also included %s. The presence of loading and error handlers indicates an intent to manage the stylesheet loading state from your from your Component code and React will not hoist or deduplicate this stylesheet. If your intent was to have React hoist and deduplciate this stylesheet using the `precedence` prop remove the %s, otherwise remove the `precedence` prop.',r,D,w)}H&&(typeof c.rel!="string"||typeof c.href!="string"||c.href===""?console.error("Cannot render a <link> outside the main document without a `rel` and `href` prop. Try adding a `rel` and/or `href` prop to this <link> or moving the link into the <head> tag"):(c.onError||c.onLoad)&&console.error("Cannot render a <link> with onLoad or onError listeners outside the main document. Try removing onLoad={...} and onError={...} or moving it into the root <head> tag or somewhere in the <body>."));break}switch(c.rel){case"stylesheet":return r=c.precedence,c=c.disabled,typeof r!="string"&&H&&console.error('Cannot render a <link rel="stylesheet" /> outside the main document without knowing its precedence. Consider adding precedence="default" or moving it into the root <head> tag.'),typeof r=="string"&&c==null;default:return!0}case"script":if(r=c.async&&typeof c.async!="function"&&typeof c.async!="symbol",!r||c.onLoad||c.onError||!c.src||typeof c.src!="string"){H&&(r?c.onLoad||c.onError?console.error("Cannot render a <script> with onLoad or onError listeners outside the main document. Try removing onLoad={...} and onError={...} or moving it into the root <head> tag or somewhere in the <body>."):console.error("Cannot render a <script> outside the main document without `async={true}` and a non-empty `src` prop. Ensure there is a valid `src` and either make the script async or move it into the root <head> tag or somewhere in the <body>."):console.error('Cannot render a sync or defer <script> outside the main document without knowing its order. Try adding async="" or moving it into the root <head> tag.'));break}return!0;case"noscript":case"template":H&&console.error("Cannot render <%s> outside the main document. Try moving it into the root <head> tag.",r)}return!1}function ph(r){return!(r.type==="stylesheet"&&(r.state.loading&ej)===Ls)}function cg(){}function Tg(r,c,m){if(yp===null)throw Error("Internal React Error: suspendedState null when it was expected to exists. Please report this as a React bug.");var H=yp;if(c.type==="stylesheet"&&(typeof m.media!="string"||matchMedia(m.media).matches!==!1)&&(c.state.loading&l5)===Ls){if(c.instance===null){var w=p6(m.href),D=r.querySelector(Jo(w));if(D){r=D._p,r!==null&&typeof r=="object"&&typeof r.then=="function"&&(H.count++,H=Pl.bind(H),r.then(H,H)),c.state.loading|=l5,c.instance=D,Le(D);return}D=r.ownerDocument||r,m=fh(m),(w=s5.get(w))&&dh(m,w),D=D.createElement("link"),Le(D);var I=D;I._p=new Promise(function(G,ie){I.onload=G,I.onerror=ie}),e3(D,"link",m),c.instance=D}H.stylesheets===null&&(H.stylesheets=new Map),H.stylesheets.set(c,r),(r=c.state.preload)&&(c.state.loading&ej)===Ls&&(H.count++,c=Pl.bind(H),r.addEventListener("load",c),r.addEventListener("error",c))}}function Qg(){if(yp===null)throw Error("Internal React Error: suspendedState null when it was expected to exists. Please report this as a React bug.");var r=yp;return r.stylesheets&&r.count===0&&Eu(r,r.stylesheets),0<r.count?function(c){var m=setTimeout(function(){if(r.stylesheets&&Eu(r,r.stylesheets),r.unsuspend){var H=r.unsuspend;r.unsuspend=null,H()}},6e4);return r.unsuspend=c,function(){r.unsuspend=null,clearTimeout(m)}}:null}function Pl(){if(this.count--,this.count===0){if(this.stylesheets)Eu(this,this.stylesheets);else if(this.unsuspend){var r=this.unsuspend;this.unsuspend=null,r()}}}function Eu(r,c){r.stylesheets=null,r.unsuspend!==null&&(r.count++,sv=new Map,c.forEach(Su,r),sv=null,Pl.call(r))}function Su(r,c){if(!(c.state.loading&l5)){var m=sv.get(r);if(m)var H=m.get(FH);else{m=new Map,sv.set(r,m);for(var w=r.querySelectorAll("link[data-precedence],style[data-precedence]"),D=0;D<w.length;D++){var I=w[D];(I.nodeName==="LINK"||I.getAttribute("media")!=="not all")&&(m.set(I.dataset.precedence,I),H=I)}H&&m.set(FH,H)}w=c.instance,I=w.getAttribute("data-precedence"),D=m.get(I)||H,D===H&&m.set(FH,w),m.set(I,w),this.count++,H=Pl.bind(this),w.addEventListener("load",H),w.addEventListener("error",H),D?D.parentNode.insertBefore(w,D.nextSibling):(r=r.nodeType===9?r.head:r,r.insertBefore(w,r.firstChild)),c.state.loading|=l5}}function fg(r,c,m,H,w,D,I,G){for(this.tag=1,this.containerInfo=r,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=vs,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=e2(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=e2(0),this.hiddenUpdates=e2(null),this.identifierPrefix=H,this.onUncaughtError=w,this.onCaughtError=D,this.onRecoverableError=I,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=G,this.incompleteTransitions=new Map,this.passiveEffectDuration=this.effectDuration=-0,this.memoizedUpdaters=new Set,r=this.pendingUpdatersLaneMap=[],c=0;31>c;c++)r.push(new Set);this._debugRootType=m?"hydrateRoot()":"createRoot()"}function mh(r,c,m,H,w,D,I,G,ie,le,Ve,Ne){return r=new fg(r,c,m,I,G,ie,le,Ne),c=gae,D===!0&&(c|=H4|xr),dn&&(c|=I3),D=p(3,null,null,c),r.current=D,D.stateNode=r,c=td(),an(c),r.pooledCache=c,an(c),D.memoizedState={element:H,isDehydrated:m,cache:c},Yr(D),r}function I1(r){return r?(r=T7,r):T7}function jl(r,c,m,H,w,D){if(h3&&typeof h3.onScheduleFiberRoot=="function")try{h3.onScheduleFiberRoot(xa,H,m)}catch(I){S2||(S2=!0,console.error("React instrumentation encountered an error: %s",I))}lt!==null&&typeof lt.markRenderScheduled=="function"&<.markRenderScheduled(c),w=I1(w),H.context===null?H.context=w:H.pendingContext=w,Z6&&p3!==null&&!aj&&(aj=!0,console.error(`Render methods should be a pure function of props and state; triggering nested component updates from render is not allowed. If necessary, trigger nested updates in componentDidUpdate.
|
|
615
615
|
|
|
616
616
|
Check the render method of %s.`,R(p3)||"Unknown")),H=e6(c),H.payload={element:m},D=D===void 0?null:D,D!==null&&(typeof D!="function"&&console.error("Expected the last optional `callback` argument to be a function. Instead received: %s.",D),H.callback=D),m=t6(r,H,c),m!==null&&(Jt(m,r,c),ta(m,r,c))}function dg(r,c){if(r=r.memoizedState,r!==null&&r.dehydrated!==null){var m=r.retryLane;r.retryLane=m!==0&&m<c?m:c}}function Mu(r,c){dg(r,c),(r=r.alternate)&&dg(r,c)}function hg(r){if(r.tag===13){var c=o4(r,67108864);c!==null&&Jt(c,r,67108864),Mu(r,67108864)}}function Nb(){return p3}function Bb(){for(var r=new Map,c=1,m=0;31>m;m++){var H=ht(c);r.set(c,H),c*=2}return r}function Au(r,c,m,H){var w=we.T;we.T=null;var D=b1.p;try{b1.p=$4,Il(r,c,m,H)}finally{b1.p=D,we.T=w}}function e7(r,c,m,H){var w=we.T;we.T=null;var D=b1.p;try{b1.p=G6,Il(r,c,m,H)}finally{b1.p=D,we.T=w}}function Il(r,c,m,H){if(cv){var w=t7(H);if(w===null)I4(r,c,H,Tv,m),m6(r,H);else if(Pb(w,r,c,m,H))H.stopPropagation();else if(m6(r,H),c&4&&-1<Yae.indexOf(r)){for(;w!==null;){var D=it(w);if(D!==null)switch(D.tag){case 3:if(D=D.stateNode,D.current.memoizedState.isDehydrated){var I=ot(D.pendingLanes);if(I!==0){var G=D;for(G.pendingLanes|=2,G.entangledLanes|=2;I;){var ie=1<<31-t3(I);G.entanglements[1]|=ie,I&=~ie}Tn(D),(C1&(X4|Sr))===L6&&(Zg=d3()+NP,u0(0))}}break;case 13:G=o4(D,2),G!==null&&Jt(G,D,2),fa(),Mu(D,2)}if(D=t7(H),D===null&&I4(r,c,H,Tv,m),D===w)break;w=D}w!==null&&H.stopPropagation()}else I4(r,c,H,null,m)}}function t7(r){return r=Wn(r),Fl(r)}function Fl(r){if(Tv=null,r=m1(r),r!==null){var c=S(r);if(c===null)r=null;else{var m=c.tag;if(m===13){if(r=_(c),r!==null)return r;r=null}else if(m===3){if(c.stateNode.current.memoizedState.isDehydrated)return c.tag===3?c.stateNode.containerInfo:null;r=null}else c!==r&&(r=null)}}return Tv=r,null}function y0(r){switch(r){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return $4;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return G6;case"message":switch(vg()){case Zl:return $4;case bh:return G6;case i7:case Hh:return gr;case Eh:return Pu;default:return gr}default:return gr}}function m6(r,c){switch(r){case"focusin":case"focusout":L7=null;break;case"dragenter":case"dragleave":x7=null;break;case"mouseover":case"mouseout":b7=null;break;case"pointerover":case"pointerout":vp.delete(c.pointerId);break;case"gotpointercapture":case"lostpointercapture":Lp.delete(c.pointerId)}}function dr(r,c,m,H,w,D){return r===null||r.nativeEvent!==D?(r={blockedOn:c,domEventName:m,eventSystemFlags:H,nativeEvent:D,targetContainers:[w]},c!==null&&(c=it(c),c!==null&&hg(c)),r):(r.eventSystemFlags|=H,c=r.targetContainers,w!==null&&c.indexOf(w)===-1&&c.push(w),r)}function Pb(r,c,m,H,w){switch(c){case"focusin":return L7=dr(L7,r,c,m,H,w),!0;case"dragenter":return x7=dr(x7,r,c,m,H,w),!0;case"mouseover":return b7=dr(b7,r,c,m,H,w),!0;case"pointerover":var D=w.pointerId;return vp.set(D,dr(vp.get(D)||null,r,c,m,H,w)),!0;case"gotpointercapture":return D=w.pointerId,Lp.set(D,dr(Lp.get(D)||null,r,c,m,H,w)),!0}return!1}function yh(r){var c=m1(r.target);if(c!==null){var m=S(c);if(m!==null){if(c=m.tag,c===13){if(c=_(m),c!==null){r.blockedOn=c,Ct(r.priority,function(){if(m.tag===13){var H=j4(m);H=Ye(H);var w=o4(m,H);w!==null&&Jt(w,m,H),Mu(m,H)}});return}}else if(c===3&&m.stateNode.current.memoizedState.isDehydrated){r.blockedOn=m.tag===3?m.stateNode.containerInfo:null;return}}}r.blockedOn=null}function zl(r){if(r.blockedOn!==null)return!1;for(var c=r.targetContainers;0<c.length;){var m=t7(r.nativeEvent);if(m===null){m=r.nativeEvent;var H=new m.constructor(m.type,m),w=H;P!==null&&console.error("Expected currently replaying event to be null. This error is likely caused by a bug in React. Please file an issue."),P=w,m.target.dispatchEvent(H),P===null&&console.error("Expected currently replaying event to not be null. This error is likely caused by a bug in React. Please file an issue."),P=null}else return c=it(m),c!==null&&hg(c),r.blockedOn=m,!1;c.shift()}return!0}function gh(r,c,m){zl(r)&&m.delete(c)}function pg(){zH=!1,L7!==null&&zl(L7)&&(L7=null),x7!==null&&zl(x7)&&(x7=null),b7!==null&&zl(b7)&&(b7=null),vp.forEach(gh),Lp.forEach(gh)}function _u(r,c){r.blockedOn===c&&(r.blockedOn=null,zH||(zH=!0,x2.unstable_scheduleCallback(x2.unstable_NormalPriority,pg)))}function Ou(r){Qv!==r&&(Qv=r,x2.unstable_scheduleCallback(x2.unstable_NormalPriority,function(){Qv===r&&(Qv=null);for(var c=0;c<r.length;c+=3){var m=r[c],H=r[c+1],w=r[c+2];if(typeof H!="function"){if(Fl(H||m)===null)continue;break}var D=it(m);D!==null&&(r.splice(c,3),c-=3,m={pending:!0,data:w,method:m.method,action:H},Object.freeze(m),F9(D,m,H,w))}}))}function n7(r){function c(ie){return _u(ie,r)}L7!==null&&_u(L7,r),x7!==null&&_u(x7,r),b7!==null&&_u(b7,r),vp.forEach(c),Lp.forEach(c);for(var m=0;m<H7.length;m++){var H=H7[m];H.blockedOn===r&&(H.blockedOn=null)}for(;0<H7.length&&(m=H7[0],m.blockedOn===null);)yh(m),m.blockedOn===null&&H7.shift();if(m=(r.ownerDocument||r).$$reactFormReplay,m!=null)for(H=0;H<m.length;H+=3){var w=m[H],D=m[H+1],I=w[b4]||null;if(typeof D=="function")I||Ou(m);else if(I){var G=null;if(D&&D.hasAttribute("formAction")){if(w=D,I=D[b4]||null)G=I.formAction;else if(Fl(w)!==null)continue}else G=I.action;typeof G=="function"?m[H+1]=G:(m.splice(H,3),H-=3),Ou(m)}}}function Cu(r){this._internalRoot=r}function wu(r){this._internalRoot=r}function Vu(r){r[b0]&&(r._reactRootContainer?console.error("You are calling ReactDOMClient.createRoot() on a container that was previously passed to ReactDOM.render(). This is not supported."):console.error("You are calling ReactDOMClient.createRoot() on a container that has already been passed to createRoot() before. Instead, call root.render() on the existing root instead if you want to update it."))}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var x2=uB(),vh=ka(),jb=SL(),Vt=Object.assign,Ib=Symbol.for("react.element"),hr=Symbol.for("react.transitional.element"),Pt=Symbol.for("react.portal"),g0=Symbol.for("react.fragment"),va=Symbol.for("react.strict_mode"),ql=Symbol.for("react.profiler"),mg=Symbol.for("react.provider"),$l=Symbol.for("react.consumer"),x4=Symbol.for("react.context"),v0=Symbol.for("react.forward_ref"),L0=Symbol.for("react.suspense"),Du=Symbol.for("react.suspense_list"),Ru=Symbol.for("react.memo"),q4=Symbol.for("react.lazy"),ku=Symbol.for("react.activity"),yg=Symbol.for("react.memo_cache_sentinel"),Ul=Symbol.iterator,F1=Symbol.for("react.client.reference"),U2=Array.isArray,we=vh.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,b1=jb.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Lh=Object.freeze({pending:!1,data:null,method:null,action:null}),Gl=[],r7=[],q6=-1,pr=F(null),La=F(null),$6=F(null),Nu=F(null),U6=Object.prototype.hasOwnProperty,xh=x2.unstable_scheduleCallback,gg=x2.unstable_cancelCallback,Fb=x2.unstable_shouldYield,zb=x2.unstable_requestPaint,d3=x2.unstable_now,vg=x2.unstable_getCurrentPriorityLevel,Zl=x2.unstable_ImmediatePriority,bh=x2.unstable_UserBlockingPriority,i7=x2.unstable_NormalPriority,Hh=x2.unstable_LowPriority,Eh=x2.unstable_IdlePriority,y6=x2.log,Sh=x2.unstable_setDisableYieldValue,xa=null,h3=null,lt=null,S2=!1,dn=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u",t3=Math.clz32?Math.clz32:Xe,mr=Math.log,qb=Math.LN2,Bu=256,yr=4194304,$4=2,G6=8,gr=32,Pu=268435456,x0=Math.random().toString(36).slice(2),S3="__reactFiber$"+x0,b4="__reactProps$"+x0,b0="__reactContainer$"+x0,ju="__reactEvents$"+x0,a7="__reactListeners$"+x0,Xl="__reactHandles$"+x0,Mh="__reactResources$"+x0,Wl="__reactMarker$"+x0,ba=new Set,g6={},Iu={},Fu={button:!0,checkbox:!0,image:!0,hidden:!0,radio:!0,reset:!0,submit:!0},Ah=RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),zu={},Yl={},o7=0,_h,Lg,Oh,l7,xg,bg,Hg;D6.__reactDisabledLog=!0;var s7,Kl,Jl=!1,Ch=new(typeof WeakMap=="function"?WeakMap:Map),p3=null,Z6=!1,Eg=/[\n"\\]/g,wh=!1,Vh=!1,Dh=!1,qu=!1,Rh=!1,es=!1,Sg=["value","defaultValue"],Mg=!1,$u=/["'&<>\n\t]|^\s|\s$/,kh="address applet area article aside base basefont bgsound blockquote body br button caption center col colgroup dd details dir div dl dt embed fieldset figcaption figure footer form frame frameset h1 h2 h3 h4 h5 h6 head header hgroup hr html iframe img input isindex li link listing main marquee menu menuitem meta nav noembed noframes noscript object ol p param plaintext pre script section select source style summary table tbody td template textarea tfoot th thead title tr track ul wbr xmp".split(" "),ts="applet caption html table td th marquee object template foreignObject desc title".split(" "),Nh=ts.concat(["button"]),Ag="dd dt li option optgroup p rp rt".split(" "),Uu={current:null,formTag:null,aTagInScope:null,buttonTagInScope:null,nobrTagInScope:null,pTagInButtonScope:null,listItemTagAutoclosing:null,dlItemTagAutoclosing:null,containerTagInScope:null,implicitRootScope:!1},v6={},X6={animation:"animationDelay animationDirection animationDuration animationFillMode animationIterationCount animationName animationPlayState animationTimingFunction".split(" "),background:"backgroundAttachment backgroundClip backgroundColor backgroundImage backgroundOrigin backgroundPositionX backgroundPositionY backgroundRepeat backgroundSize".split(" "),backgroundPosition:["backgroundPositionX","backgroundPositionY"],border:"borderBottomColor borderBottomStyle borderBottomWidth borderImageOutset borderImageRepeat borderImageSlice borderImageSource borderImageWidth borderLeftColor borderLeftStyle borderLeftWidth borderRightColor borderRightStyle borderRightWidth borderTopColor borderTopStyle borderTopWidth".split(" "),borderBlockEnd:["borderBlockEndColor","borderBlockEndStyle","borderBlockEndWidth"],borderBlockStart:["borderBlockStartColor","borderBlockStartStyle","borderBlockStartWidth"],borderBottom:["borderBottomColor","borderBottomStyle","borderBottomWidth"],borderColor:["borderBottomColor","borderLeftColor","borderRightColor","borderTopColor"],borderImage:["borderImageOutset","borderImageRepeat","borderImageSlice","borderImageSource","borderImageWidth"],borderInlineEnd:["borderInlineEndColor","borderInlineEndStyle","borderInlineEndWidth"],borderInlineStart:["borderInlineStartColor","borderInlineStartStyle","borderInlineStartWidth"],borderLeft:["borderLeftColor","borderLeftStyle","borderLeftWidth"],borderRadius:["borderBottomLeftRadius","borderBottomRightRadius","borderTopLeftRadius","borderTopRightRadius"],borderRight:["borderRightColor","borderRightStyle","borderRightWidth"],borderStyle:["borderBottomStyle","borderLeftStyle","borderRightStyle","borderTopStyle"],borderTop:["borderTopColor","borderTopStyle","borderTopWidth"],borderWidth:["borderBottomWidth","borderLeftWidth","borderRightWidth","borderTopWidth"],columnRule:["columnRuleColor","columnRuleStyle","columnRuleWidth"],columns:["columnCount","columnWidth"],flex:["flexBasis","flexGrow","flexShrink"],flexFlow:["flexDirection","flexWrap"],font:"fontFamily fontFeatureSettings fontKerning fontLanguageOverride fontSize fontSizeAdjust fontStretch fontStyle fontVariant fontVariantAlternates fontVariantCaps fontVariantEastAsian fontVariantLigatures fontVariantNumeric fontVariantPosition fontWeight lineHeight".split(" "),fontVariant:"fontVariantAlternates fontVariantCaps fontVariantEastAsian fontVariantLigatures fontVariantNumeric fontVariantPosition".split(" "),gap:["columnGap","rowGap"],grid:"gridAutoColumns gridAutoFlow gridAutoRows gridTemplateAreas gridTemplateColumns gridTemplateRows".split(" "),gridArea:["gridColumnEnd","gridColumnStart","gridRowEnd","gridRowStart"],gridColumn:["gridColumnEnd","gridColumnStart"],gridColumnGap:["columnGap"],gridGap:["columnGap","rowGap"],gridRow:["gridRowEnd","gridRowStart"],gridRowGap:["rowGap"],gridTemplate:["gridTemplateAreas","gridTemplateColumns","gridTemplateRows"],listStyle:["listStyleImage","listStylePosition","listStyleType"],margin:["marginBottom","marginLeft","marginRight","marginTop"],marker:["markerEnd","markerMid","markerStart"],mask:"maskClip maskComposite maskImage maskMode maskOrigin maskPositionX maskPositionY maskRepeat maskSize".split(" "),maskPosition:["maskPositionX","maskPositionY"],outline:["outlineColor","outlineStyle","outlineWidth"],overflow:["overflowX","overflowY"],padding:["paddingBottom","paddingLeft","paddingRight","paddingTop"],placeContent:["alignContent","justifyContent"],placeItems:["alignItems","justifyItems"],placeSelf:["alignSelf","justifySelf"],textDecoration:["textDecorationColor","textDecorationLine","textDecorationStyle"],textEmphasis:["textEmphasisColor","textEmphasisStyle"],transition:["transitionDelay","transitionDuration","transitionProperty","transitionTimingFunction"],wordWrap:["overflowWrap"]},vr=/([A-Z])/g,u7=/^ms-/,ns=/^(?:webkit|moz|o)[A-Z]/,H0=/^-ms-/,$b=/-(.)/g,Bh=/;\s*$/,W6={},Ph={},jh=!1,rs=!1,Ih=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" ")),Gu="http://www.w3.org/1998/Math/MathML",Lr="http://www.w3.org/2000/svg",Zu=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["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"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["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"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["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"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),is={accept:"accept",acceptcharset:"acceptCharset","accept-charset":"acceptCharset",accesskey:"accessKey",action:"action",allowfullscreen:"allowFullScreen",alt:"alt",as:"as",async:"async",autocapitalize:"autoCapitalize",autocomplete:"autoComplete",autocorrect:"autoCorrect",autofocus:"autoFocus",autoplay:"autoPlay",autosave:"autoSave",capture:"capture",cellpadding:"cellPadding",cellspacing:"cellSpacing",challenge:"challenge",charset:"charSet",checked:"checked",children:"children",cite:"cite",class:"className",classid:"classID",classname:"className",cols:"cols",colspan:"colSpan",content:"content",contenteditable:"contentEditable",contextmenu:"contextMenu",controls:"controls",controlslist:"controlsList",coords:"coords",crossorigin:"crossOrigin",dangerouslysetinnerhtml:"dangerouslySetInnerHTML",data:"data",datetime:"dateTime",default:"default",defaultchecked:"defaultChecked",defaultvalue:"defaultValue",defer:"defer",dir:"dir",disabled:"disabled",disablepictureinpicture:"disablePictureInPicture",disableremoteplayback:"disableRemotePlayback",download:"download",draggable:"draggable",enctype:"encType",enterkeyhint:"enterKeyHint",fetchpriority:"fetchPriority",for:"htmlFor",form:"form",formmethod:"formMethod",formaction:"formAction",formenctype:"formEncType",formnovalidate:"formNoValidate",formtarget:"formTarget",frameborder:"frameBorder",headers:"headers",height:"height",hidden:"hidden",high:"high",href:"href",hreflang:"hrefLang",htmlfor:"htmlFor",httpequiv:"httpEquiv","http-equiv":"httpEquiv",icon:"icon",id:"id",imagesizes:"imageSizes",imagesrcset:"imageSrcSet",inert:"inert",innerhtml:"innerHTML",inputmode:"inputMode",integrity:"integrity",is:"is",itemid:"itemID",itemprop:"itemProp",itemref:"itemRef",itemscope:"itemScope",itemtype:"itemType",keyparams:"keyParams",keytype:"keyType",kind:"kind",label:"label",lang:"lang",list:"list",loop:"loop",low:"low",manifest:"manifest",marginwidth:"marginWidth",marginheight:"marginHeight",max:"max",maxlength:"maxLength",media:"media",mediagroup:"mediaGroup",method:"method",min:"min",minlength:"minLength",multiple:"multiple",muted:"muted",name:"name",nomodule:"noModule",nonce:"nonce",novalidate:"noValidate",open:"open",optimum:"optimum",pattern:"pattern",placeholder:"placeholder",playsinline:"playsInline",poster:"poster",preload:"preload",profile:"profile",radiogroup:"radioGroup",readonly:"readOnly",referrerpolicy:"referrerPolicy",rel:"rel",required:"required",reversed:"reversed",role:"role",rows:"rows",rowspan:"rowSpan",sandbox:"sandbox",scope:"scope",scoped:"scoped",scrolling:"scrolling",seamless:"seamless",selected:"selected",shape:"shape",size:"size",sizes:"sizes",span:"span",spellcheck:"spellCheck",src:"src",srcdoc:"srcDoc",srclang:"srcLang",srcset:"srcSet",start:"start",step:"step",style:"style",summary:"summary",tabindex:"tabIndex",target:"target",title:"title",type:"type",usemap:"useMap",value:"value",width:"width",wmode:"wmode",wrap:"wrap",about:"about",accentheight:"accentHeight","accent-height":"accentHeight",accumulate:"accumulate",additive:"additive",alignmentbaseline:"alignmentBaseline","alignment-baseline":"alignmentBaseline",allowreorder:"allowReorder",alphabetic:"alphabetic",amplitude:"amplitude",arabicform:"arabicForm","arabic-form":"arabicForm",ascent:"ascent",attributename:"attributeName",attributetype:"attributeType",autoreverse:"autoReverse",azimuth:"azimuth",basefrequency:"baseFrequency",baselineshift:"baselineShift","baseline-shift":"baselineShift",baseprofile:"baseProfile",bbox:"bbox",begin:"begin",bias:"bias",by:"by",calcmode:"calcMode",capheight:"capHeight","cap-height":"capHeight",clip:"clip",clippath:"clipPath","clip-path":"clipPath",clippathunits:"clipPathUnits",cliprule:"clipRule","clip-rule":"clipRule",color:"color",colorinterpolation:"colorInterpolation","color-interpolation":"colorInterpolation",colorinterpolationfilters:"colorInterpolationFilters","color-interpolation-filters":"colorInterpolationFilters",colorprofile:"colorProfile","color-profile":"colorProfile",colorrendering:"colorRendering","color-rendering":"colorRendering",contentscripttype:"contentScriptType",contentstyletype:"contentStyleType",cursor:"cursor",cx:"cx",cy:"cy",d:"d",datatype:"datatype",decelerate:"decelerate",descent:"descent",diffuseconstant:"diffuseConstant",direction:"direction",display:"display",divisor:"divisor",dominantbaseline:"dominantBaseline","dominant-baseline":"dominantBaseline",dur:"dur",dx:"dx",dy:"dy",edgemode:"edgeMode",elevation:"elevation",enablebackground:"enableBackground","enable-background":"enableBackground",end:"end",exponent:"exponent",externalresourcesrequired:"externalResourcesRequired",fill:"fill",fillopacity:"fillOpacity","fill-opacity":"fillOpacity",fillrule:"fillRule","fill-rule":"fillRule",filter:"filter",filterres:"filterRes",filterunits:"filterUnits",floodopacity:"floodOpacity","flood-opacity":"floodOpacity",floodcolor:"floodColor","flood-color":"floodColor",focusable:"focusable",fontfamily:"fontFamily","font-family":"fontFamily",fontsize:"fontSize","font-size":"fontSize",fontsizeadjust:"fontSizeAdjust","font-size-adjust":"fontSizeAdjust",fontstretch:"fontStretch","font-stretch":"fontStretch",fontstyle:"fontStyle","font-style":"fontStyle",fontvariant:"fontVariant","font-variant":"fontVariant",fontweight:"fontWeight","font-weight":"fontWeight",format:"format",from:"from",fx:"fx",fy:"fy",g1:"g1",g2:"g2",glyphname:"glyphName","glyph-name":"glyphName",glyphorientationhorizontal:"glyphOrientationHorizontal","glyph-orientation-horizontal":"glyphOrientationHorizontal",glyphorientationvertical:"glyphOrientationVertical","glyph-orientation-vertical":"glyphOrientationVertical",glyphref:"glyphRef",gradienttransform:"gradientTransform",gradientunits:"gradientUnits",hanging:"hanging",horizadvx:"horizAdvX","horiz-adv-x":"horizAdvX",horizoriginx:"horizOriginX","horiz-origin-x":"horizOriginX",ideographic:"ideographic",imagerendering:"imageRendering","image-rendering":"imageRendering",in2:"in2",in:"in",inlist:"inlist",intercept:"intercept",k1:"k1",k2:"k2",k3:"k3",k4:"k4",k:"k",kernelmatrix:"kernelMatrix",kernelunitlength:"kernelUnitLength",kerning:"kerning",keypoints:"keyPoints",keysplines:"keySplines",keytimes:"keyTimes",lengthadjust:"lengthAdjust",letterspacing:"letterSpacing","letter-spacing":"letterSpacing",lightingcolor:"lightingColor","lighting-color":"lightingColor",limitingconeangle:"limitingConeAngle",local:"local",markerend:"markerEnd","marker-end":"markerEnd",markerheight:"markerHeight",markermid:"markerMid","marker-mid":"markerMid",markerstart:"markerStart","marker-start":"markerStart",markerunits:"markerUnits",markerwidth:"markerWidth",mask:"mask",maskcontentunits:"maskContentUnits",maskunits:"maskUnits",mathematical:"mathematical",mode:"mode",numoctaves:"numOctaves",offset:"offset",opacity:"opacity",operator:"operator",order:"order",orient:"orient",orientation:"orientation",origin:"origin",overflow:"overflow",overlineposition:"overlinePosition","overline-position":"overlinePosition",overlinethickness:"overlineThickness","overline-thickness":"overlineThickness",paintorder:"paintOrder","paint-order":"paintOrder",panose1:"panose1","panose-1":"panose1",pathlength:"pathLength",patterncontentunits:"patternContentUnits",patterntransform:"patternTransform",patternunits:"patternUnits",pointerevents:"pointerEvents","pointer-events":"pointerEvents",points:"points",pointsatx:"pointsAtX",pointsaty:"pointsAtY",pointsatz:"pointsAtZ",popover:"popover",popovertarget:"popoverTarget",popovertargetaction:"popoverTargetAction",prefix:"prefix",preservealpha:"preserveAlpha",preserveaspectratio:"preserveAspectRatio",primitiveunits:"primitiveUnits",property:"property",r:"r",radius:"radius",refx:"refX",refy:"refY",renderingintent:"renderingIntent","rendering-intent":"renderingIntent",repeatcount:"repeatCount",repeatdur:"repeatDur",requiredextensions:"requiredExtensions",requiredfeatures:"requiredFeatures",resource:"resource",restart:"restart",result:"result",results:"results",rotate:"rotate",rx:"rx",ry:"ry",scale:"scale",security:"security",seed:"seed",shaperendering:"shapeRendering","shape-rendering":"shapeRendering",slope:"slope",spacing:"spacing",specularconstant:"specularConstant",specularexponent:"specularExponent",speed:"speed",spreadmethod:"spreadMethod",startoffset:"startOffset",stddeviation:"stdDeviation",stemh:"stemh",stemv:"stemv",stitchtiles:"stitchTiles",stopcolor:"stopColor","stop-color":"stopColor",stopopacity:"stopOpacity","stop-opacity":"stopOpacity",strikethroughposition:"strikethroughPosition","strikethrough-position":"strikethroughPosition",strikethroughthickness:"strikethroughThickness","strikethrough-thickness":"strikethroughThickness",string:"string",stroke:"stroke",strokedasharray:"strokeDasharray","stroke-dasharray":"strokeDasharray",strokedashoffset:"strokeDashoffset","stroke-dashoffset":"strokeDashoffset",strokelinecap:"strokeLinecap","stroke-linecap":"strokeLinecap",strokelinejoin:"strokeLinejoin","stroke-linejoin":"strokeLinejoin",strokemiterlimit:"strokeMiterlimit","stroke-miterlimit":"strokeMiterlimit",strokewidth:"strokeWidth","stroke-width":"strokeWidth",strokeopacity:"strokeOpacity","stroke-opacity":"strokeOpacity",suppresscontenteditablewarning:"suppressContentEditableWarning",suppresshydrationwarning:"suppressHydrationWarning",surfacescale:"surfaceScale",systemlanguage:"systemLanguage",tablevalues:"tableValues",targetx:"targetX",targety:"targetY",textanchor:"textAnchor","text-anchor":"textAnchor",textdecoration:"textDecoration","text-decoration":"textDecoration",textlength:"textLength",textrendering:"textRendering","text-rendering":"textRendering",to:"to",transform:"transform",transformorigin:"transformOrigin","transform-origin":"transformOrigin",typeof:"typeof",u1:"u1",u2:"u2",underlineposition:"underlinePosition","underline-position":"underlinePosition",underlinethickness:"underlineThickness","underline-thickness":"underlineThickness",unicode:"unicode",unicodebidi:"unicodeBidi","unicode-bidi":"unicodeBidi",unicoderange:"unicodeRange","unicode-range":"unicodeRange",unitsperem:"unitsPerEm","units-per-em":"unitsPerEm",unselectable:"unselectable",valphabetic:"vAlphabetic","v-alphabetic":"vAlphabetic",values:"values",vectoreffect:"vectorEffect","vector-effect":"vectorEffect",version:"version",vertadvy:"vertAdvY","vert-adv-y":"vertAdvY",vertoriginx:"vertOriginX","vert-origin-x":"vertOriginX",vertoriginy:"vertOriginY","vert-origin-y":"vertOriginY",vhanging:"vHanging","v-hanging":"vHanging",videographic:"vIdeographic","v-ideographic":"vIdeographic",viewbox:"viewBox",viewtarget:"viewTarget",visibility:"visibility",vmathematical:"vMathematical","v-mathematical":"vMathematical",vocab:"vocab",widths:"widths",wordspacing:"wordSpacing","word-spacing":"wordSpacing",writingmode:"writingMode","writing-mode":"writingMode",x1:"x1",x2:"x2",x:"x",xchannelselector:"xChannelSelector",xheight:"xHeight","x-height":"xHeight",xlinkactuate:"xlinkActuate","xlink:actuate":"xlinkActuate",xlinkarcrole:"xlinkArcrole","xlink:arcrole":"xlinkArcrole",xlinkhref:"xlinkHref","xlink:href":"xlinkHref",xlinkrole:"xlinkRole","xlink:role":"xlinkRole",xlinkshow:"xlinkShow","xlink:show":"xlinkShow",xlinktitle:"xlinkTitle","xlink:title":"xlinkTitle",xlinktype:"xlinkType","xlink:type":"xlinkType",xmlbase:"xmlBase","xml:base":"xmlBase",xmllang:"xmlLang","xml:lang":"xmlLang",xmlns:"xmlns","xml:space":"xmlSpace",xmlnsxlink:"xmlnsXlink","xmlns:xlink":"xmlnsXlink",xmlspace:"xmlSpace",y1:"y1",y2:"y2",y:"y",ychannelselector:"yChannelSelector",z:"z",zoomandpan:"zoomAndPan"},c7={"aria-current":0,"aria-description":0,"aria-details":0,"aria-disabled":0,"aria-hidden":0,"aria-invalid":0,"aria-keyshortcuts":0,"aria-label":0,"aria-roledescription":0,"aria-autocomplete":0,"aria-checked":0,"aria-expanded":0,"aria-haspopup":0,"aria-level":0,"aria-modal":0,"aria-multiline":0,"aria-multiselectable":0,"aria-orientation":0,"aria-placeholder":0,"aria-pressed":0,"aria-readonly":0,"aria-required":0,"aria-selected":0,"aria-sort":0,"aria-valuemax":0,"aria-valuemin":0,"aria-valuenow":0,"aria-valuetext":0,"aria-atomic":0,"aria-busy":0,"aria-live":0,"aria-relevant":0,"aria-dropeffect":0,"aria-grabbed":0,"aria-activedescendant":0,"aria-colcount":0,"aria-colindex":0,"aria-colspan":0,"aria-controls":0,"aria-describedby":0,"aria-errormessage":0,"aria-flowto":0,"aria-labelledby":0,"aria-owns":0,"aria-posinset":0,"aria-rowcount":0,"aria-rowindex":0,"aria-rowspan":0,"aria-setsize":0},E0={},Xu=RegExp("^(aria)-[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),_g=RegExp("^(aria)[A-Z][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),Og=!1,n3={},d=/^on./,y=/^on[^A-Z]/,x=RegExp("^(aria)-[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),C=RegExp("^(aria)[A-Z][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),N=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i,P=null,X=null,re=null,ce=!1,Me=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Fe=!1;if(Me)try{var $e={};Object.defineProperty($e,"passive",{get:function(){Fe=!0}}),window.addEventListener("test",$e,$e),window.removeEventListener("test",$e,$e)}catch{Fe=!1}var Oe=null,Re=null,Mt=null,Lt={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(r){return r.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},H1=T3(Lt),be=Vt({},Lt,{view:0,detail:0}),ge=T3(be),Ae,qe,ut,Ut=Vt({},be,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:x3,button:0,buttons:0,relatedTarget:function(r){return r.relatedTarget===void 0?r.fromElement===r.srcElement?r.toElement:r.fromElement:r.relatedTarget},movementX:function(r){return"movementX"in r?r.movementX:(r!==ut&&(ut&&r.type==="mousemove"?(Ae=r.screenX-ut.screenX,qe=r.screenY-ut.screenY):qe=Ae=0,ut=r),Ae)},movementY:function(r){return"movementY"in r?r.movementY:qe}}),gt=T3(Ut),At=Vt({},Ut,{dataTransfer:0}),r3=T3(At),v1=Vt({},be,{relatedTarget:0}),Y6=T3(v1),Ub=Vt({},Lt,{animationName:0,elapsedTime:0,pseudoElement:0}),Gie=T3(Ub),Zie=Vt({},Lt,{clipboardData:function(r){return"clipboardData"in r?r.clipboardData:window.clipboardData}}),Xie=T3(Zie),Wie=Vt({},Lt,{data:0}),yB=T3(Wie),Yie=yB,Kie={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Jie={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},eae={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"},tae=Vt({},be,{key:function(r){if(r.key){var c=Kie[r.key]||r.key;if(c!=="Unidentified")return c}return r.type==="keypress"?(r=$i(r),r===13?"Enter":String.fromCharCode(r)):r.type==="keydown"||r.type==="keyup"?Jie[r.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:x3,charCode:function(r){return r.type==="keypress"?$i(r):0},keyCode:function(r){return r.type==="keydown"||r.type==="keyup"?r.keyCode:0},which:function(r){return r.type==="keypress"?$i(r):r.type==="keydown"||r.type==="keyup"?r.keyCode:0}}),nae=T3(tae),rae=Vt({},Ut,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),gB=T3(rae),iae=Vt({},be,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:x3}),aae=T3(iae),oae=Vt({},Lt,{propertyName:0,elapsedTime:0,pseudoElement:0}),lae=T3(oae),sae=Vt({},Ut,{deltaX:function(r){return"deltaX"in r?r.deltaX:"wheelDeltaX"in r?-r.wheelDeltaX:0},deltaY:function(r){return"deltaY"in r?r.deltaY:"wheelDeltaY"in r?-r.wheelDeltaY:"wheelDelta"in r?-r.wheelDelta:0},deltaZ:0,deltaMode:0}),uae=T3(sae),cae=Vt({},Lt,{newState:0,oldState:0}),Tae=T3(cae),Qae=[9,13,27,32],vB=229,Gb=Me&&"CompositionEvent"in window,Fh=null;Me&&"documentMode"in document&&(Fh=document.documentMode);var fae=Me&&"TextEvent"in window&&!Fh,LB=Me&&(!Gb||Fh&&8<Fh&&11>=Fh),xB=32,bB=String.fromCharCode(xB),HB=!1,Wu=!1,dae={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0},zh=null,qh=null,EB=!1;Me&&(EB=Ff("input")&&(!document.documentMode||9<document.documentMode));var U4=typeof Object.is=="function"?Object.is:Cb,hae=Me&&"documentMode"in document&&11>=document.documentMode,Yu=null,Zb=null,$h=null,Xb=!1,Ku={animationend:Ui("Animation","AnimationEnd"),animationiteration:Ui("Animation","AnimationIteration"),animationstart:Ui("Animation","AnimationStart"),transitionrun:Ui("Transition","TransitionRun"),transitionstart:Ui("Transition","TransitionStart"),transitioncancel:Ui("Transition","TransitionCancel"),transitionend:Ui("Transition","TransitionEnd")},Wb={},SB={};Me&&(SB=document.createElement("div").style,"AnimationEvent"in window||(delete Ku.animationend.animation,delete Ku.animationiteration.animation,delete Ku.animationstart.animation),"TransitionEvent"in window||delete Ku.transitionend.transition);var MB=Gi("animationend"),AB=Gi("animationiteration"),_B=Gi("animationstart"),pae=Gi("transitionrun"),mae=Gi("transitionstart"),yae=Gi("transitioncancel"),OB=Gi("transitionend"),CB=new Map,Yb="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");Yb.push("scrollEnd");var Kb=new WeakMap,Cg=1,Ha=2,K6=[],Ju=0,Jb=0,T7={};Object.freeze(T7);var J6=null,ec=null,c2=0,gae=1,I3=2,H4=8,xr=16,wB=64,VB=!1;try{var DB=Object.preventExtensions({})}catch{VB=!0}var tc=[],nc=0,wg=null,Vg=0,e5=[],t5=0,as=null,Ea=1,Sa="",G4=null,k2=null,L1=!1,Ma=!1,n5=null,os=null,S0=!1,eH=Error("Hydration Mismatch Exception: This is not a real error, and should not leak into userspace. If you're seeing this, it's likely a bug in React."),RB=0;if(typeof performance=="object"&&typeof performance.now=="function")var vae=performance,kB=function(){return vae.now()};else{var Lae=Date;kB=function(){return Lae.now()}}var tH=F(null),nH=F(null),NB={},Dg=null,rc=null,ic=!1,xae=typeof AbortController<"u"?AbortController:function(){var r=[],c=this.signal={aborted:!1,addEventListener:function(m,H){r.push(H)}};this.abort=function(){c.aborted=!0,r.forEach(function(m){return m()})}},bae=x2.unstable_scheduleCallback,Hae=x2.unstable_NormalPriority,m3={$$typeof:x4,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0,_currentRenderer:null,_currentRenderer2:null},ac=x2.unstable_now,BB=-0,Rg=-0,hn=-1.1,ls=-0,kg=!1,Ng=!1,Uh=null,rH=0,ss=0,oc=null,PB=we.S;we.S=function(r,c){typeof c=="object"&&c!==null&&typeof c.then=="function"&&By(r,c),PB!==null&&PB(r,c)};var us=F(null),br={recordUnsafeLifecycleWarnings:function(){},flushPendingUnsafeLifecycleWarnings:function(){},recordLegacyContextWarning:function(){},flushLegacyContextWarning:function(){},discardPendingWarnings:function(){}},Gh=[],Zh=[],Xh=[],Wh=[],Yh=[],Kh=[],cs=new Set;br.recordUnsafeLifecycleWarnings=function(r,c){cs.has(r.type)||(typeof c.componentWillMount=="function"&&c.componentWillMount.__suppressDeprecationWarning!==!0&&Gh.push(r),r.mode&H4&&typeof c.UNSAFE_componentWillMount=="function"&&Zh.push(r),typeof c.componentWillReceiveProps=="function"&&c.componentWillReceiveProps.__suppressDeprecationWarning!==!0&&Xh.push(r),r.mode&H4&&typeof c.UNSAFE_componentWillReceiveProps=="function"&&Wh.push(r),typeof c.componentWillUpdate=="function"&&c.componentWillUpdate.__suppressDeprecationWarning!==!0&&Yh.push(r),r.mode&H4&&typeof c.UNSAFE_componentWillUpdate=="function"&&Kh.push(r))},br.flushPendingUnsafeLifecycleWarnings=function(){var r=new Set;0<Gh.length&&(Gh.forEach(function(G){r.add(R(G)||"Component"),cs.add(G.type)}),Gh=[]);var c=new Set;0<Zh.length&&(Zh.forEach(function(G){c.add(R(G)||"Component"),cs.add(G.type)}),Zh=[]);var m=new Set;0<Xh.length&&(Xh.forEach(function(G){m.add(R(G)||"Component"),cs.add(G.type)}),Xh=[]);var H=new Set;0<Wh.length&&(Wh.forEach(function(G){H.add(R(G)||"Component"),cs.add(G.type)}),Wh=[]);var w=new Set;0<Yh.length&&(Yh.forEach(function(G){w.add(R(G)||"Component"),cs.add(G.type)}),Yh=[]);var D=new Set;if(0<Kh.length&&(Kh.forEach(function(G){D.add(R(G)||"Component"),cs.add(G.type)}),Kh=[]),0<c.size){var I=h(c);console.error(`Using UNSAFE_componentWillMount in strict mode is not recommended and may indicate bugs in your code. See https://react.dev/link/unsafe-component-lifecycles for details.
|
|
617
617
|
|
|
@@ -652,16 +652,16 @@ Learn more about this warning here: https://react.dev/link/legacy-context`,H)})}
|
|
|
652
652
|
|
|
653
653
|
Check the render method of \``+w+"`."),D||H&&(D=`
|
|
654
654
|
|
|
655
|
-
Check the top-level render call using <`+H+">.");var I="";m!=null&&r!==m&&(H=null,typeof m.tag=="number"?H=R(m):typeof m.name=="string"&&(H=m.name),H&&(I=" It was passed a child from "+H+".")),pt(c,function(){console.error('Each child in a list should have a unique "key" prop.%s%s See https://react.dev/link/warning-keys for more information.',D,I)})}}};var Tc=la(!0),fP=la(!1),o5=F(null),A0=null,Qc=1,ip=2,g3=F(0),dP={},hP=new Set,pP=new Set,mP=new Set,yP=new Set,gP=new Set,vP=new Set,LP=new Set,xP=new Set,bP=new Set,HP=new Set;Object.freeze(dP);var dH={enqueueSetState:function(r,c,m){r=r._reactInternals;var H=j4(r),w=e6(H);w.payload=c,m!=null&&(h2(m),w.callback=m),c=t6(r,w,H),c!==null&&(Jt(c,r,H),ta(c,r,H)),Pe(r,H)},enqueueReplaceState:function(r,c,m){r=r._reactInternals;var H=j4(r),w=e6(H);w.tag=zB,w.payload=c,m!=null&&(h2(m),w.callback=m),c=t6(r,w,H),c!==null&&(Jt(c,r,H),ta(c,r,H)),Pe(r,H)},enqueueForceUpdate:function(r,c){r=r._reactInternals;var m=j4(r),H=e6(m);H.tag=qB,c!=null&&(h2(c),H.callback=c),c=t6(r,H,m),c!==null&&(Jt(c,r,m),ta(c,r,m)),lt!==null&&typeof lt.markForceUpdateScheduled=="function"&<.markForceUpdateScheduled(r,m)}},hH=typeof reportError=="function"?reportError:function(r){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var c=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof r=="object"&&r!==null&&typeof r.message=="string"?String(r.message):String(r),error:r});if(!window.dispatchEvent(c))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",r);return}console.error(r)},fc=null,pH=null,EP=Error("This is not a real error. It's an implementation detail of React's selective hydration feature. If this leaks into userspace, it's a bug in React. Please file an issue."),M3=!1,SP={},MP={},AP={},_P={},dc=!1,OP={},mH={},yH={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null},CP=!1,wP=null;wP=new Set;var Oa=!1,G2=!1,gH=!1,VP=typeof WeakSet=="function"?WeakSet:Set,A3=null,hc=null,pc=null,a3=null,pn=!1,Er=null,ap=8192,Oae={getCacheForType:function(r){var c=t2(m3),m=c.data.get(r);return m===void 0&&(m=r(),c.data.set(r,m)),m},getOwner:function(){return p3}};if(typeof Symbol=="function"&&Symbol.for){var op=Symbol.for;op("selector.component"),op("selector.has_pseudo_class"),op("selector.role"),op("selector.test_id"),op("selector.text")}var Cae=[],wae=typeof WeakMap=="function"?WeakMap:Map,L6=0,X4=2,Sr=4,Ca=0,lp=1,mc=2,vH=3,Qs=4,Ug=6,DP=5,C1=L6,a2=null,i1=null,l1=0,mn=0,sp=1,fs=2,up=3,RP=4,LH=5,yc=6,cp=7,xH=8,ds=9,z1=mn,x6=null,h7=!1,gc=!1,bH=!1,_0=0,N2=Ca,p7=0,m7=0,HH=0,b6=0,hs=0,Tp=null,W4=null,Gg=!1,EH=0,kP=300,Zg=1/0,NP=500,Qp=null,y7=null,Vae=0,Dae=1,Rae=2,ps=0,BP=1,PP=2,jP=3,kae=4,SH=5,z3=0,g7=null,vc=null,v7=0,MH=0,AH=null,IP=null,Nae=50,fp=0,_H=null,OH=!1,Xg=!1,Bae=50,ms=0,dp=null,Lc=!1,Wg=null,FP=!1,zP=new Set,Pae={},Yg=null,xc=null,CH=!1,wH=!1,Kg=!1,VH=!1,ys=0,DH={};(function(){for(var r=0;r<Yb.length;r++){var c=Yb[r],m=c.toLowerCase();c=c[0].toUpperCase()+c.slice(1),Yn(m,"on"+c)}Yn(MB,"onAnimationEnd"),Yn(AB,"onAnimationIteration"),Yn(_B,"onAnimationStart"),Yn("dblclick","onDoubleClick"),Yn("focusin","onFocus"),Yn("focusout","onBlur"),Yn(pae,"onTransitionRun"),Yn(mae,"onTransitionStart"),Yn(yae,"onTransitionCancel"),Yn(OB,"onTransitionEnd")})(),rt("onMouseEnter",["mouseout","mouseover"]),rt("onMouseLeave",["mouseout","mouseover"]),rt("onPointerEnter",["pointerout","pointerover"]),rt("onPointerLeave",["pointerout","pointerover"]),We("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),We("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),We("onBeforeInput",["compositionend","keypress","textInput","paste"]),We("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),We("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),We("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var hp="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),RH=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(hp)),Jg="_reactListening"+Math.random().toString(36).slice(2),qP=!1,$P=!1,ev=!1,UP=!1,tv=!1,nv=!1,GP=!1,rv={},jae=/\r\n?/g,Iae=/\u0000|\uFFFD/g,gs="http://www.w3.org/1999/xlink",kH="http://www.w3.org/XML/1998/namespace",Fae="javascript:throw new Error('React form unexpectedly submitted.')",zae="suppressHydrationWarning",iv="$",av="/$",wa="$?",pp="$!",qae=1,$ae=2,Uae=4,NH="F!",ZP="F",XP="complete",Gae="style",Va=0,bc=1,ov=2,BH=null,PH=null,WP={dialog:!0,webview:!0},jH=null,YP=typeof setTimeout=="function"?setTimeout:void 0,Zae=typeof clearTimeout=="function"?clearTimeout:void 0,vs=-1,KP=typeof Promise=="function"?Promise:void 0,Xae=typeof queueMicrotask=="function"?queueMicrotask:typeof KP<"u"?function(r){return KP.resolve(null).then(r).catch(Qr)}:YP,IH=null,Ls=0,mp=1,JP=2,ej=3,l5=4,s5=new Map,tj=new Set,Da=b1.d;b1.d={f:function(){var r=Da.f(),c=fa();return r||c},r:function(r){var c=it(r);c!==null&&c.tag===5&&c.type==="form"?tr(c):Da.r(r)},D:function(r){Da.D(r),fr("dns-prefetch",r,null)},C:function(r,c){Da.C(r,c),fr("preconnect",r,c)},L:function(r,c,m){Da.L(r,c,m);var H=Hc;if(H&&r&&c){var w='link[rel="preload"][as="'+Y2(c)+'"]';c==="image"&&m&&m.imageSrcSet?(w+='[imagesrcset="'+Y2(m.imageSrcSet)+'"]',typeof m.imageSizes=="string"&&(w+='[imagesizes="'+Y2(m.imageSizes)+'"]')):w+='[href="'+Y2(r)+'"]';var D=w;switch(c){case"style":D=p6(r);break;case"script":D=m0(r)}s5.has(D)||(r=Vt({rel:"preload",href:c==="image"&&m&&m.imageSrcSet?void 0:r,as:c},m),s5.set(D,r),H.querySelector(w)!==null||c==="style"&&H.querySelector(Jo(D))||c==="script"&&H.querySelector(ya(D))||(c=H.createElement("link"),e3(c,"link",r),ve(c),H.head.appendChild(c)))}},m:function(r,c){Da.m(r,c);var m=Hc;if(m&&r){var H=c&&typeof c.as=="string"?c.as:"script",w='link[rel="modulepreload"][as="'+Y2(H)+'"][href="'+Y2(r)+'"]',D=w;switch(H){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":D=m0(r)}if(!s5.has(D)&&(r=Vt({rel:"modulepreload",href:r},c),s5.set(D,r),m.querySelector(w)===null)){switch(H){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(m.querySelector(ya(D)))return}H=m.createElement("link"),e3(H,"link",r),ve(H),m.head.appendChild(H)}}},X:function(r,c){Da.X(r,c);var m=Hc;if(m&&r){var H=te(m).hoistableScripts,w=m0(r),D=H.get(w);D||(D=m.querySelector(ya(w)),D||(r=Vt({src:r,async:!0},c),(c=s5.get(w))&&bu(r,c),D=m.createElement("script"),ve(D),e3(D,"link",r),m.head.appendChild(D)),D={type:"script",instance:D,count:1,state:null},H.set(w,D))}},S:function(r,c,m){Da.S(r,c,m);var H=Hc;if(H&&r){var w=te(H).hoistableStyles,D=p6(r);c=c||"default";var I=w.get(D);if(!I){var G={loading:Ls,preload:null};if(I=H.querySelector(Jo(D)))G.loading=mp|l5;else{r=Vt({rel:"stylesheet",href:r,"data-precedence":c},m),(m=s5.get(D))&&dh(r,m);var ie=I=H.createElement("link");ve(ie),e3(ie,"link",r),ie._p=new Promise(function(le,Ve){ie.onload=le,ie.onerror=Ve}),ie.addEventListener("load",function(){G.loading|=mp}),ie.addEventListener("error",function(){G.loading|=JP}),G.loading|=l5,xu(I,c,H)}I={type:"stylesheet",instance:I,count:1,state:G},w.set(D,I)}}},M:function(r,c){Da.M(r,c);var m=Hc;if(m&&r){var H=te(m).hoistableScripts,w=m0(r),D=H.get(w);D||(D=m.querySelector(ya(w)),D||(r=Vt({src:r,async:!0,type:"module"},c),(c=s5.get(w))&&bu(r,c),D=m.createElement("script"),ve(D),e3(D,"link",r),m.head.appendChild(D)),D={type:"script",instance:D,count:1,state:null},H.set(w,D))}}};var Hc=typeof document>"u"?null:document,lv=null,yp=null,FH=null,sv=null,xs=Lh,gp={$$typeof:x4,Provider:null,Consumer:null,_currentValue:xs,_currentValue2:xs,_threadCount:0},nj="%c%s%c ",rj="background: #e6e6e6;background: light-dark(rgba(0,0,0,0.1), rgba(255,255,255,0.25));color: #000000;color: light-dark(#000000, #ffffff);border-radius: 2px",ij="",uv=" ",Wae=Function.prototype.bind,aj=!1,oj=null,lj=null,sj=null,uj=null,cj=null,Tj=null,Qj=null,fj=null,dj=null;oj=function(r,c,m,H){c=t(r,c),c!==null&&(m=n(c.memoizedState,m,0,H),c.memoizedState=m,c.baseState=m,r.memoizedProps=Vt({},r.memoizedProps),m=o4(r,2),m!==null&&Jt(m,r,2))},lj=function(r,c,m){c=t(r,c),c!==null&&(m=a(c.memoizedState,m,0),c.memoizedState=m,c.baseState=m,r.memoizedProps=Vt({},r.memoizedProps),m=o4(r,2),m!==null&&Jt(m,r,2))},sj=function(r,c,m,H){c=t(r,c),c!==null&&(m=l(c.memoizedState,m,H),c.memoizedState=m,c.baseState=m,r.memoizedProps=Vt({},r.memoizedProps),m=o4(r,2),m!==null&&Jt(m,r,2))},uj=function(r,c,m){r.pendingProps=n(r.memoizedProps,c,0,m),r.alternate&&(r.alternate.pendingProps=r.pendingProps),c=o4(r,2),c!==null&&Jt(c,r,2)},cj=function(r,c){r.pendingProps=a(r.memoizedProps,c,0),r.alternate&&(r.alternate.pendingProps=r.pendingProps),c=o4(r,2),c!==null&&Jt(c,r,2)},Tj=function(r,c,m){r.pendingProps=l(r.memoizedProps,c,m),r.alternate&&(r.alternate.pendingProps=r.pendingProps),c=o4(r,2),c!==null&&Jt(c,r,2)},Qj=function(r){var c=o4(r,2);c!==null&&Jt(c,r,2)},fj=function(r){s=r},dj=function(r){i=r};var cv=!0,Tv=null,zH=!1,L7=null,x7=null,b7=null,vp=new Map,Lp=new Map,H7=[],Yae="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset".split(" "),Qv=null;if(wu.prototype.render=Cu.prototype.render=function(r){var c=this._internalRoot;if(c===null)throw Error("Cannot update an unmounted root.");var m=arguments;typeof m[1]=="function"?console.error("does not support the second callback argument. To execute a side effect after rendering, declare it in a component body with useEffect()."):L(m[1])?console.error("You passed a container to the second argument of root.render(...). You don't need to pass it again since you already passed it to create the root."):typeof m[1]<"u"&&console.error("You passed a second argument to root.render(...) but it only accepts one argument."),m=r;var H=c.current,w=j4(H);jl(H,w,m,c,null,null)},wu.prototype.unmount=Cu.prototype.unmount=function(){var r=arguments;if(typeof r[0]=="function"&&console.error("does not support a callback argument. To execute a side effect after rendering, declare it in a component body with useEffect()."),r=this._internalRoot,r!==null){this._internalRoot=null;var c=r.containerInfo;(C1&(X4|Sr))!==L6&&console.error("Attempted to synchronously unmount a root while React was already rendering. React cannot finish unmounting the root until the current render has completed, which may lead to a race condition."),jl(r.current,2,null,r,null,null),fa(),c[b0]=null}},wu.prototype.unstable_scheduleHydration=function(r){if(r){var c=o1();r={blockedOn:null,target:r,priority:c};for(var m=0;m<H7.length&&c!==0&&c<H7[m].priority;m++);H7.splice(m,0,r),m===0&&yh(r)}},function(){var r=vh.version;if(r!=="19.1.0")throw Error(`Incompatible React versions: The "react" and "react-dom" packages must have the exact same version. Instead got:
|
|
655
|
+
Check the top-level render call using <`+H+">.");var I="";m!=null&&r!==m&&(H=null,typeof m.tag=="number"?H=R(m):typeof m.name=="string"&&(H=m.name),H&&(I=" It was passed a child from "+H+".")),pt(c,function(){console.error('Each child in a list should have a unique "key" prop.%s%s See https://react.dev/link/warning-keys for more information.',D,I)})}}};var Tc=la(!0),fP=la(!1),o5=F(null),A0=null,Qc=1,ip=2,g3=F(0),dP={},hP=new Set,pP=new Set,mP=new Set,yP=new Set,gP=new Set,vP=new Set,LP=new Set,xP=new Set,bP=new Set,HP=new Set;Object.freeze(dP);var dH={enqueueSetState:function(r,c,m){r=r._reactInternals;var H=j4(r),w=e6(H);w.payload=c,m!=null&&(h2(m),w.callback=m),c=t6(r,w,H),c!==null&&(Jt(c,r,H),ta(c,r,H)),Pe(r,H)},enqueueReplaceState:function(r,c,m){r=r._reactInternals;var H=j4(r),w=e6(H);w.tag=zB,w.payload=c,m!=null&&(h2(m),w.callback=m),c=t6(r,w,H),c!==null&&(Jt(c,r,H),ta(c,r,H)),Pe(r,H)},enqueueForceUpdate:function(r,c){r=r._reactInternals;var m=j4(r),H=e6(m);H.tag=qB,c!=null&&(h2(c),H.callback=c),c=t6(r,H,m),c!==null&&(Jt(c,r,m),ta(c,r,m)),lt!==null&&typeof lt.markForceUpdateScheduled=="function"&<.markForceUpdateScheduled(r,m)}},hH=typeof reportError=="function"?reportError:function(r){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var c=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof r=="object"&&r!==null&&typeof r.message=="string"?String(r.message):String(r),error:r});if(!window.dispatchEvent(c))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",r);return}console.error(r)},fc=null,pH=null,EP=Error("This is not a real error. It's an implementation detail of React's selective hydration feature. If this leaks into userspace, it's a bug in React. Please file an issue."),M3=!1,SP={},MP={},AP={},_P={},dc=!1,OP={},mH={},yH={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null},CP=!1,wP=null;wP=new Set;var Oa=!1,G2=!1,gH=!1,VP=typeof WeakSet=="function"?WeakSet:Set,A3=null,hc=null,pc=null,a3=null,pn=!1,Er=null,ap=8192,Oae={getCacheForType:function(r){var c=t2(m3),m=c.data.get(r);return m===void 0&&(m=r(),c.data.set(r,m)),m},getOwner:function(){return p3}};if(typeof Symbol=="function"&&Symbol.for){var op=Symbol.for;op("selector.component"),op("selector.has_pseudo_class"),op("selector.role"),op("selector.test_id"),op("selector.text")}var Cae=[],wae=typeof WeakMap=="function"?WeakMap:Map,L6=0,X4=2,Sr=4,Ca=0,lp=1,mc=2,vH=3,Qs=4,Ug=6,DP=5,C1=L6,a2=null,i1=null,l1=0,mn=0,sp=1,fs=2,up=3,RP=4,LH=5,yc=6,cp=7,xH=8,ds=9,z1=mn,x6=null,h7=!1,gc=!1,bH=!1,_0=0,N2=Ca,p7=0,m7=0,HH=0,b6=0,hs=0,Tp=null,W4=null,Gg=!1,EH=0,kP=300,Zg=1/0,NP=500,Qp=null,y7=null,Vae=0,Dae=1,Rae=2,ps=0,BP=1,PP=2,jP=3,kae=4,SH=5,z3=0,g7=null,vc=null,v7=0,MH=0,AH=null,IP=null,Nae=50,fp=0,_H=null,OH=!1,Xg=!1,Bae=50,ms=0,dp=null,Lc=!1,Wg=null,FP=!1,zP=new Set,Pae={},Yg=null,xc=null,CH=!1,wH=!1,Kg=!1,VH=!1,ys=0,DH={};(function(){for(var r=0;r<Yb.length;r++){var c=Yb[r],m=c.toLowerCase();c=c[0].toUpperCase()+c.slice(1),Yn(m,"on"+c)}Yn(MB,"onAnimationEnd"),Yn(AB,"onAnimationIteration"),Yn(_B,"onAnimationStart"),Yn("dblclick","onDoubleClick"),Yn("focusin","onFocus"),Yn("focusout","onBlur"),Yn(pae,"onTransitionRun"),Yn(mae,"onTransitionStart"),Yn(yae,"onTransitionCancel"),Yn(OB,"onTransitionEnd")})(),rt("onMouseEnter",["mouseout","mouseover"]),rt("onMouseLeave",["mouseout","mouseover"]),rt("onPointerEnter",["pointerout","pointerover"]),rt("onPointerLeave",["pointerout","pointerover"]),We("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),We("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),We("onBeforeInput",["compositionend","keypress","textInput","paste"]),We("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),We("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),We("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var hp="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),RH=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(hp)),Jg="_reactListening"+Math.random().toString(36).slice(2),qP=!1,$P=!1,ev=!1,UP=!1,tv=!1,nv=!1,GP=!1,rv={},jae=/\r\n?/g,Iae=/\u0000|\uFFFD/g,gs="http://www.w3.org/1999/xlink",kH="http://www.w3.org/XML/1998/namespace",Fae="javascript:throw new Error('React form unexpectedly submitted.')",zae="suppressHydrationWarning",iv="$",av="/$",wa="$?",pp="$!",qae=1,$ae=2,Uae=4,NH="F!",ZP="F",XP="complete",Gae="style",Va=0,bc=1,ov=2,BH=null,PH=null,WP={dialog:!0,webview:!0},jH=null,YP=typeof setTimeout=="function"?setTimeout:void 0,Zae=typeof clearTimeout=="function"?clearTimeout:void 0,vs=-1,KP=typeof Promise=="function"?Promise:void 0,Xae=typeof queueMicrotask=="function"?queueMicrotask:typeof KP<"u"?function(r){return KP.resolve(null).then(r).catch(Qr)}:YP,IH=null,Ls=0,mp=1,JP=2,ej=3,l5=4,s5=new Map,tj=new Set,Da=b1.d;b1.d={f:function(){var r=Da.f(),c=fa();return r||c},r:function(r){var c=it(r);c!==null&&c.tag===5&&c.type==="form"?tr(c):Da.r(r)},D:function(r){Da.D(r),fr("dns-prefetch",r,null)},C:function(r,c){Da.C(r,c),fr("preconnect",r,c)},L:function(r,c,m){Da.L(r,c,m);var H=Hc;if(H&&r&&c){var w='link[rel="preload"][as="'+Y2(c)+'"]';c==="image"&&m&&m.imageSrcSet?(w+='[imagesrcset="'+Y2(m.imageSrcSet)+'"]',typeof m.imageSizes=="string"&&(w+='[imagesizes="'+Y2(m.imageSizes)+'"]')):w+='[href="'+Y2(r)+'"]';var D=w;switch(c){case"style":D=p6(r);break;case"script":D=m0(r)}s5.has(D)||(r=Vt({rel:"preload",href:c==="image"&&m&&m.imageSrcSet?void 0:r,as:c},m),s5.set(D,r),H.querySelector(w)!==null||c==="style"&&H.querySelector(Jo(D))||c==="script"&&H.querySelector(ya(D))||(c=H.createElement("link"),e3(c,"link",r),Le(c),H.head.appendChild(c)))}},m:function(r,c){Da.m(r,c);var m=Hc;if(m&&r){var H=c&&typeof c.as=="string"?c.as:"script",w='link[rel="modulepreload"][as="'+Y2(H)+'"][href="'+Y2(r)+'"]',D=w;switch(H){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":D=m0(r)}if(!s5.has(D)&&(r=Vt({rel:"modulepreload",href:r},c),s5.set(D,r),m.querySelector(w)===null)){switch(H){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(m.querySelector(ya(D)))return}H=m.createElement("link"),e3(H,"link",r),Le(H),m.head.appendChild(H)}}},X:function(r,c){Da.X(r,c);var m=Hc;if(m&&r){var H=te(m).hoistableScripts,w=m0(r),D=H.get(w);D||(D=m.querySelector(ya(w)),D||(r=Vt({src:r,async:!0},c),(c=s5.get(w))&&bu(r,c),D=m.createElement("script"),Le(D),e3(D,"link",r),m.head.appendChild(D)),D={type:"script",instance:D,count:1,state:null},H.set(w,D))}},S:function(r,c,m){Da.S(r,c,m);var H=Hc;if(H&&r){var w=te(H).hoistableStyles,D=p6(r);c=c||"default";var I=w.get(D);if(!I){var G={loading:Ls,preload:null};if(I=H.querySelector(Jo(D)))G.loading=mp|l5;else{r=Vt({rel:"stylesheet",href:r,"data-precedence":c},m),(m=s5.get(D))&&dh(r,m);var ie=I=H.createElement("link");Le(ie),e3(ie,"link",r),ie._p=new Promise(function(le,Ve){ie.onload=le,ie.onerror=Ve}),ie.addEventListener("load",function(){G.loading|=mp}),ie.addEventListener("error",function(){G.loading|=JP}),G.loading|=l5,xu(I,c,H)}I={type:"stylesheet",instance:I,count:1,state:G},w.set(D,I)}}},M:function(r,c){Da.M(r,c);var m=Hc;if(m&&r){var H=te(m).hoistableScripts,w=m0(r),D=H.get(w);D||(D=m.querySelector(ya(w)),D||(r=Vt({src:r,async:!0,type:"module"},c),(c=s5.get(w))&&bu(r,c),D=m.createElement("script"),Le(D),e3(D,"link",r),m.head.appendChild(D)),D={type:"script",instance:D,count:1,state:null},H.set(w,D))}}};var Hc=typeof document>"u"?null:document,lv=null,yp=null,FH=null,sv=null,xs=Lh,gp={$$typeof:x4,Provider:null,Consumer:null,_currentValue:xs,_currentValue2:xs,_threadCount:0},nj="%c%s%c ",rj="background: #e6e6e6;background: light-dark(rgba(0,0,0,0.1), rgba(255,255,255,0.25));color: #000000;color: light-dark(#000000, #ffffff);border-radius: 2px",ij="",uv=" ",Wae=Function.prototype.bind,aj=!1,oj=null,lj=null,sj=null,uj=null,cj=null,Tj=null,Qj=null,fj=null,dj=null;oj=function(r,c,m,H){c=t(r,c),c!==null&&(m=n(c.memoizedState,m,0,H),c.memoizedState=m,c.baseState=m,r.memoizedProps=Vt({},r.memoizedProps),m=o4(r,2),m!==null&&Jt(m,r,2))},lj=function(r,c,m){c=t(r,c),c!==null&&(m=a(c.memoizedState,m,0),c.memoizedState=m,c.baseState=m,r.memoizedProps=Vt({},r.memoizedProps),m=o4(r,2),m!==null&&Jt(m,r,2))},sj=function(r,c,m,H){c=t(r,c),c!==null&&(m=l(c.memoizedState,m,H),c.memoizedState=m,c.baseState=m,r.memoizedProps=Vt({},r.memoizedProps),m=o4(r,2),m!==null&&Jt(m,r,2))},uj=function(r,c,m){r.pendingProps=n(r.memoizedProps,c,0,m),r.alternate&&(r.alternate.pendingProps=r.pendingProps),c=o4(r,2),c!==null&&Jt(c,r,2)},cj=function(r,c){r.pendingProps=a(r.memoizedProps,c,0),r.alternate&&(r.alternate.pendingProps=r.pendingProps),c=o4(r,2),c!==null&&Jt(c,r,2)},Tj=function(r,c,m){r.pendingProps=l(r.memoizedProps,c,m),r.alternate&&(r.alternate.pendingProps=r.pendingProps),c=o4(r,2),c!==null&&Jt(c,r,2)},Qj=function(r){var c=o4(r,2);c!==null&&Jt(c,r,2)},fj=function(r){s=r},dj=function(r){i=r};var cv=!0,Tv=null,zH=!1,L7=null,x7=null,b7=null,vp=new Map,Lp=new Map,H7=[],Yae="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset".split(" "),Qv=null;if(wu.prototype.render=Cu.prototype.render=function(r){var c=this._internalRoot;if(c===null)throw Error("Cannot update an unmounted root.");var m=arguments;typeof m[1]=="function"?console.error("does not support the second callback argument. To execute a side effect after rendering, declare it in a component body with useEffect()."):L(m[1])?console.error("You passed a container to the second argument of root.render(...). You don't need to pass it again since you already passed it to create the root."):typeof m[1]<"u"&&console.error("You passed a second argument to root.render(...) but it only accepts one argument."),m=r;var H=c.current,w=j4(H);jl(H,w,m,c,null,null)},wu.prototype.unmount=Cu.prototype.unmount=function(){var r=arguments;if(typeof r[0]=="function"&&console.error("does not support a callback argument. To execute a side effect after rendering, declare it in a component body with useEffect()."),r=this._internalRoot,r!==null){this._internalRoot=null;var c=r.containerInfo;(C1&(X4|Sr))!==L6&&console.error("Attempted to synchronously unmount a root while React was already rendering. React cannot finish unmounting the root until the current render has completed, which may lead to a race condition."),jl(r.current,2,null,r,null,null),fa(),c[b0]=null}},wu.prototype.unstable_scheduleHydration=function(r){if(r){var c=o1();r={blockedOn:null,target:r,priority:c};for(var m=0;m<H7.length&&c!==0&&c<H7[m].priority;m++);H7.splice(m,0,r),m===0&&yh(r)}},function(){var r=vh.version;if(r!=="19.1.0")throw Error(`Incompatible React versions: The "react" and "react-dom" packages must have the exact same version. Instead got:
|
|
656
656
|
- react: `+(r+`
|
|
657
657
|
- react-dom: 19.1.0
|
|
658
658
|
Learn more: https://react.dev/warnings/version-mismatch`))}(),typeof Map=="function"&&Map.prototype!=null&&typeof Map.prototype.forEach=="function"&&typeof Set=="function"&&Set.prototype!=null&&typeof Set.prototype.clear=="function"&&typeof Set.prototype.forEach=="function"||console.error("React depends on Map and Set built-in types. Make sure that you load a polyfill in older browsers. https://react.dev/link/react-polyfills"),b1.findDOMNode=function(r){var c=r._reactInternals;if(c===void 0)throw typeof r.render=="function"?Error("Unable to find node on an unmounted component."):(r=Object.keys(r).join(","),Error("Argument appears to not be a ReactComponent. Keys: "+r));return r=E(c),r=r!==null?A(r):null,r=r===null?null:r.stateNode,r},!function(){var r={bundleType:1,version:"19.1.0",rendererPackageName:"react-dom",currentDispatcherRef:we,reconcilerVersion:"19.1.0"};return r.overrideHookState=oj,r.overrideHookStateDeletePath=lj,r.overrideHookStateRenamePath=sj,r.overrideProps=uj,r.overridePropsDeletePath=cj,r.overridePropsRenamePath=Tj,r.scheduleUpdate=Qj,r.setErrorHandler=fj,r.setSuspenseHandler=dj,r.scheduleRefresh=v,r.scheduleRoot=g,r.setRefreshHandler=b,r.getCurrentFiber=Nb,r.getLaneLabelMap=Bb,r.injectProfilingHooks=fe,he(r)}()&&Me&&window.top===window.self&&(-1<navigator.userAgent.indexOf("Chrome")&&navigator.userAgent.indexOf("Edge")===-1||-1<navigator.userAgent.indexOf("Firefox"))){var hj=window.location.protocol;/^(https?|file):$/.test(hj)&&console.info("%cDownload the React DevTools for a better development experience: https://react.dev/link/react-devtools"+(hj==="file:"?`
|
|
659
659
|
You might need to use a local HTTP server (instead of file://): https://react.dev/link/react-devtools-faq`:""),"font-weight:bold")}Mf.createRoot=function(r,c){if(!L(r))throw Error("Target container is not a DOM element.");Vu(r);var m=!1,H="",w=jy,D=G9,I=Z9,G=null;return c!=null&&(c.hydrate?console.warn("hydrate through createRoot is deprecated. Use ReactDOMClient.hydrateRoot(container, <App />) instead."):typeof c=="object"&&c!==null&&c.$$typeof===hr&&console.error(`You passed a JSX element to createRoot. You probably meant to call root.render instead. Example usage:
|
|
660
660
|
|
|
661
661
|
let root = createRoot(domContainer);
|
|
662
|
-
root.render(<App />);`),c.unstable_strictMode===!0&&(m=!0),c.identifierPrefix!==void 0&&(H=c.identifierPrefix),c.onUncaughtError!==void 0&&(w=c.onUncaughtError),c.onCaughtError!==void 0&&(D=c.onCaughtError),c.onRecoverableError!==void 0&&(I=c.onRecoverableError),c.unstable_transitionCallbacks!==void 0&&(G=c.unstable_transitionCallbacks)),c=mh(r,1,!1,null,null,m,H,w,D,I,G,null),r[b0]=c.current,Rl(r),new Cu(c)},Mf.hydrateRoot=function(r,c,m){if(!L(r))throw Error("Target container is not a DOM element.");Vu(r),c===void 0&&console.error("Must provide initial children as second argument to hydrateRoot. Example usage: hydrateRoot(domContainer, <App />)");var H=!1,w="",D=jy,I=G9,G=Z9,ie=null,le=null;return m!=null&&(m.unstable_strictMode===!0&&(H=!0),m.identifierPrefix!==void 0&&(w=m.identifierPrefix),m.onUncaughtError!==void 0&&(D=m.onUncaughtError),m.onCaughtError!==void 0&&(I=m.onCaughtError),m.onRecoverableError!==void 0&&(G=m.onRecoverableError),m.unstable_transitionCallbacks!==void 0&&(ie=m.unstable_transitionCallbacks),m.formState!==void 0&&(le=m.formState)),c=mh(r,1,!0,c,m??null,H,w,D,I,G,ie,le),c.context=I1(null),m=c.current,H=j4(m),H=Ye(H),w=e6(H),w.callback=null,t6(m,w,H),m=H,c.current.lanes=m,f1(c,m),Tn(c),r[b0]=c.current,Rl(r),new wu(c)},Mf.version="19.1.0",typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())}(),Mf}var QB;function $0e(){if(QB)return Ly.exports;QB=1;var e={};function t(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function")){if(e.NODE_ENV!=="production")throw new Error("^_^");try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(t)}catch(n){console.error(n)}}}return e.NODE_ENV==="production"?(t(),Ly.exports=z0e()):Ly.exports=q0e(),Ly.exports}var U0e=$0e();class G0e{constructor(t,n,l){oe(this,"context");oe(this,"focusStack");oe(this,"plot");oe(this,"reactRoot");oe(this,"onChangeEmitter");oe(this,"onChange");oe(this,"currentInstruction","");oe(this,"handleMouseEnter",t=>{t.currentTarget.setAttribute(Le.TITLE,this.currentInstruction)});oe(this,"handleMouseLeave",t=>{t.currentTarget.removeAttribute(Le.TITLE)});this.context=t,this.focusStack=new fv,this.focusStack.push(this.context.scope),this.plot=n,this.reactRoot=U0e.createRoot(l,{identifierPrefix:this.context.id}),this.reactRoot.render(j0e),this.onChangeEmitter=new bs,this.onChange=this.onChangeEmitter.event,this.plot.addEventListener("click",()=>{const o=this.plot.closest(Le.FIGURE),a=this.plot.closest(Le.ARTICLE);o&&o.removeAttribute(Le.TITLE),a&&a.removeAttribute(Le.TITLE)}),this.removeInstruction()}dispose(){var t;this.addInstruction(),this.onChangeEmitter.dispose(),(t=this.reactRoot)==null||t.unmount(),this.reactRoot=null}addInstruction(){const t=this.context.getInstruction(!0);this.currentInstruction=t,this.plot.setAttribute(Le.ARIA_LABEL,t),this.plot.setAttribute(Le.ROLE,Le.IMAGE),this.plot.tabIndex=0;const n=this.plot.closest(Le.FIGURE),l=this.plot.closest(Le.ARTICLE);n&&(n.setAttribute(Le.TITLE,t),n.addEventListener("mouseenter",this.handleMouseEnter),n.addEventListener("mouseleave",this.handleMouseLeave)),l&&(l.setAttribute(Le.TITLE,t),l.addEventListener("mouseenter",this.handleMouseEnter),l.addEventListener("mouseleave",this.handleMouseLeave))}removeInstruction(){this.plot.removeAttribute(Le.ARIA_LABEL),this.plot.setAttribute(Le.ROLE,Le.APPLICATION),this.plot.tabIndex=-1;const t=this.plot.closest(Le.FIGURE),n=this.plot.closest(Le.ARTICLE);t&&(t.removeAttribute(Le.TITLE),t.removeEventListener("mouseenter",this.handleMouseEnter),t.removeEventListener("mouseleave",this.handleMouseLeave)),n&&(n.removeAttribute(Le.TITLE),n.removeEventListener("mouseenter",this.handleMouseEnter),n.removeEventListener("mouseleave",this.handleMouseLeave))}toggleFocus(t){this.focusStack.removeLast(t)||this.focusStack.push(t),this.context.toggleScope(t),this.updateFocus(this.focusStack.peek())}updateFocus(t){(t==="TRACE"||t==="SUBPLOT")&&this.plot.focus(),this.onChangeEmitter.fire({value:t})}}const u9=class u9{constructor(){}static get ctrl(){return u9.IS_MAC?"command":"ctrl"}static get alt(){return u9.IS_MAC?"option":"alt"}static get enter(){return u9.IS_MAC?"return":"enter"}};oe(u9,"IS_MAC",(()=>{var n;return(((n=navigator.userAgentData)==null?void 0:n.platform)??navigator.platform).toLowerCase().includes("mac")})());let kt=u9;const bb=[{description:"Navigate Data Points",key:"arrow keys"},{description:"Move to Next Layer",key:"page up"},{description:"Move to Previous Layer",key:"page down"},{description:"Go to Left/Right/Top/Bottom Extreme Point",key:`${kt.ctrl} + arrow keys`},{description:"Toggle Braille Mode",key:"b"},{description:"Toggle Text Mode",key:"t"},{description:"Toggle Sonification Mode",key:"s"},{description:"Toggle Review Mode",key:"r"},{description:"Autoplay Outward",key:`${kt.ctrl} + shift + arrow keys`},{description:"Stop Autoplay",key:`${kt.ctrl}`},{description:"Speed Up Autoplay",key:". (period)"},{description:"Speed Down Autoplay",key:", (comma)"},{description:"Reset Autoplay Speed",key:"/ (slash)"},{description:"Replay Current Point",key:"space"},{description:"Announce Plot Title",key:"l t"},{description:"Announce X Label",key:"l x"},{description:"Announce Y Label",key:"l y"},{description:"Announce Fill (Z) Label",key:"l f"},{description:"Open Settings",key:`${kt.ctrl} + ,`},{description:"Open Chat",key:"?"}],fB=[{description:"Move around Subplot",key:"arrow keys"},{description:"Activate Current Subplot",key:`${kt.enter}`},{description:"Announce Plot Title",key:"l t"},{description:"Announce Subtitle",key:"l s"},{description:"Announce Caption",key:"l c"},{description:"Open Settings",key:`${kt.ctrl} + ,`}];class Z0e{constructor(t,n){oe(this,"context");oe(this,"display");oe(this,"scopedMenuItems");this.context=t,this.display=n,this.scopedMenuItems={[E1.TRACE]:bb,[E1.TRACE_LABEL]:bb,[E1.BRAILLE]:bb,[E1.SUBPLOT]:fB,[E1.FIGURE_LABEL]:fB}}getMenuItems(){return this.scopedMenuItems[this.context.scope]??[]}toggle(){this.display.toggleFocus(E1.HELP)}}class X0e{constructor(t){oe(this,"highlightedElements");oe(this,"highlightedSubplots");oe(this,"currentHighlightColor");this.highlightedElements=new Map,this.highlightedSubplots=new Set;const n=t.loadSettings();this.currentHighlightColor=n.general.highlightColor}dispose(){this.unhighlightAll()}isSettings(t){return"general"in t}createHighlightElement(t){if(!(t instanceof SVGElement))throw new TypeError("Invalid element provided for highlight creation");const n=w1.createHighlightElement(t,this.currentHighlightColor);return n.id=`${Le.MAIDR_HIGHLIGHT}-${Date.now()}-${Math.random()}`,n}handleSettingsUpdate(t){this.currentHighlightColor=t.general.highlightColor}handleStateUpdate(t){t.empty||(this.unhighlightTraceElements(),t.type==="figure"?this.handleFigureState(t):t.type==="subplot"?this.handleSubplotState(t):this.handleTraceState(t))}handleFigureState(t){t.empty||this.processHighlighting(t.highlight)}handleSubplotState(t){t.empty||this.processHighlighting(t.highlight)}handleTraceState(t){if(t.empty||t.highlight.empty)return;const n=this.getElementsFromHighlight(t.highlight);this.highlightTraceElements(n)}processHighlighting(t){if(t.empty)return;const n=this.getElementsFromHighlight(t);this.isMultiPlotScenario()?this.highlightSubplotElements(n):this.unhighlightSubplotElements()}getElementsFromHighlight(t){return t.empty?[]:Array.isArray(t.elements)?t.elements:[t.elements]}isMultiPlotScenario(){return document.querySelectorAll('g[id^="axes_"]').length>1}highlightTraceElements(t){for(const n of t)try{const l=this.createHighlightElement(n);this.highlightedElements.set(n,l)}catch(l){console.error("Failed to highlight element:",l)}}highlightSubplotElements(t){var o;this.unhighlightSubplotElements();const n=(o=document.querySelector('g[id^="maidr-"] > path[style*="fill"]'))==null?void 0:o.parentElement,l=(n==null?void 0:n.querySelector('path[style*="fill"]'))||void 0;for(const a of t)w1.setSubplotHighlightSvgWithAdaptiveColor(a,this.currentHighlightColor,l),this.highlightedSubplots.add(a)}update(t){try{this.isSettings(t)?this.handleSettingsUpdate(t):this.handleStateUpdate(t)}catch(n){console.error("Failed to update highlight service:",n)}}highlight(t){if(!(t instanceof SVGElement)){console.warn("Invalid element provided to highlight method");return}try{this.unhighlight(t);const n=this.createHighlightElement(t);this.highlightedElements.set(t,n)}catch(n){console.error("Failed to highlight element:",n)}}unhighlight(t){if(!(t instanceof SVGElement))return;const n=this.highlightedElements.get(t);if(n)try{n.remove(),this.highlightedElements.delete(t)}catch(l){console.error("Failed to unhighlight element:",l)}}clear(){try{this.highlightedElements.forEach(t=>{t.remove()}),this.highlightedElements.clear(),this.unhighlightSubplotElements()}catch(t){console.error("Failed to clear highlights:",t)}}unhighlightTraceElements(){this.highlightedElements.forEach(t=>{t.remove()}),this.highlightedElements.clear()}unhighlightSubplotElements(){this.highlightedSubplots.forEach(t=>{w1.removeSubplotHighlightSvg(t)}),this.highlightedSubplots.clear()}unhighlightAll(){this.unhighlightTraceElements(),this.unhighlightSubplotElements()}}class W0e{constructor(t,n){oe(this,"context");oe(this,"autoplay");this.context=t,this.autoplay=n}execute(){const t=this.context.state;t.type==="trace"&&!t.empty&&this.autoplay.start("UPWARD",t)}}class Y0e{constructor(t,n){oe(this,"context");oe(this,"autoplay");this.autoplay=n,this.context=t}execute(){const t=this.context.state;t.type==="trace"&&!t.empty&&this.autoplay.start("DOWNWARD",t)}}class K0e{constructor(t,n){oe(this,"context");oe(this,"autoplay");this.autoplay=n,this.context=t}execute(){const t=this.context.state;t.type==="trace"&&!t.empty&&this.autoplay.start("FORWARD",t)}}class J0e{constructor(t,n){oe(this,"context");oe(this,"autoplay");this.autoplay=n,this.context=t}execute(){const t=this.context.state;t.type==="trace"&&!t.empty&&this.autoplay.start("BACKWARD",t)}}class eie{constructor(t){oe(this,"autoplay");this.autoplay=t}execute(){this.autoplay.stop()}}class tie{constructor(t){oe(this,"autoplay");this.autoplay=t}execute(){this.autoplay.speedUp()}}class nie{constructor(t){oe(this,"autoplay");this.autoplay=t}execute(){this.autoplay.speedDown()}}class rie{constructor(t){oe(this,"autoplay");this.autoplay=t}execute(){this.autoplay.resetSpeed()}}class j8{constructor(t,n){oe(this,"context");oe(this,"textViewModel");this.context=t,this.textViewModel=n}}class iie extends j8{constructor(t,n){super(t,n)}execute(){const t=this.context.state;if(t.type==="trace"&&!t.empty){const n=`X label is ${t.xAxis}`;this.textViewModel.update(n)}}}class aie extends j8{constructor(t,n){super(t,n)}execute(){const t=this.context.state;if(t.type==="trace"&&!t.empty){const n=`Y label is ${t.yAxis}`;this.textViewModel.update(n)}}}class oie extends j8{constructor(t,n){super(t,n)}execute(){const t=this.context.state;if(t.type==="trace"&&!t.empty){const n=`Fill is ${t.fill}`;this.textViewModel.update(n)}}}class lie extends j8{constructor(t,n){super(t,n)}execute(){const t=this.context.state;if(!t.empty){if(t.type==="figure"){const n=`Figure title is ${t.title}`;this.textViewModel.update(n)}else if(t.type==="trace"){const n=`Subplot title is ${t.title}`;this.textViewModel.update(n)}}}}class sie extends j8{constructor(t,n){super(t,n)}execute(){const t=this.context.state;if(t.type==="figure"&&!t.empty){const n=`Subtitle is ${t.subtitle}`;this.textViewModel.update(n)}}}class uie extends j8{constructor(t,n){super(t,n)}execute(){const t=this.context.state;if(t.type==="figure"&&!t.empty){const n=`Caption is ${t.caption}`;this.textViewModel.update(n)}}}class cie extends j8{constructor(n,l,o,a,i){super(n,i);oe(this,"audio");oe(this,"brailleViewModel");oe(this,"highlight");this.audio=l,this.highlight=o,this.brailleViewModel=a}execute(){const n=this.context.state;switch(n.type){case"figure":case"subplot":this.textViewModel.update(n);break;case"trace":this.textViewModel.update(n),this.audio.update(n),this.brailleViewModel.update(n),this.highlight.update(n);break}}}class Tie{constructor(t){oe(this,"context");this.context=t}execute(){this.context.moveOnce("UPWARD")}}class Qie{constructor(t){oe(this,"context");this.context=t}execute(){this.context.moveOnce("DOWNWARD")}}class fie{constructor(t){oe(this,"context");this.context=t}execute(){this.context.moveOnce("BACKWARD")}}class die{constructor(t){oe(this,"context");this.context=t}execute(){this.context.moveOnce("FORWARD")}}class hie{constructor(t){oe(this,"context");this.context=t}execute(){this.context.moveToExtreme("UPWARD")}}class pie{constructor(t){oe(this,"context");this.context=t}execute(){this.context.moveToExtreme("DOWNWARD")}}class mie{constructor(t){oe(this,"context");this.context=t}execute(){this.context.moveToExtreme("BACKWARD")}}class yie{constructor(t){oe(this,"context");this.context=t}execute(){this.context.moveToExtreme("FORWARD")}}class gie{constructor(t){oe(this,"context");this.context=t}execute(){this.context.enterSubplot()}}class vie{constructor(t){oe(this,"context");this.context=t}execute(){this.context.exitSubplot()}}class Lie{constructor(t){oe(this,"context");this.context=t}execute(){this.context.stepTrace("UPWARD")}}class xie{constructor(t){oe(this,"context");this.context=t}execute(){this.context.stepTrace("DOWNWARD")}}class bie{constructor(t,n){oe(this,"context");oe(this,"brailleViewModel");this.context=t,this.brailleViewModel=n}execute(){const t=this.context.state;t.type==="trace"&&this.brailleViewModel.toggle(t)}}class Hie{constructor(t){oe(this,"textViewModel");this.textViewModel=t}execute(){this.textViewModel.toggle()}}class Eie{constructor(t){oe(this,"audio");this.audio=t}execute(){this.audio.toggle()}}class Sie{constructor(t,n){oe(this,"context");oe(this,"reviewViewModel");this.context=t,this.reviewViewModel=n}execute(){const t=this.context.state;t.type==="trace"&&this.reviewViewModel.toggle(t)}}class Mie{constructor(t){oe(this,"helpViewModel");this.helpViewModel=t}execute(){this.helpViewModel.toggle()}}class Aie{constructor(t){oe(this,"chatViewModel");this.chatViewModel=t}execute(){this.chatViewModel.toggle()}}class _ie{constructor(t){oe(this,"settingsViewModel");this.settingsViewModel=t}execute(){this.settingsViewModel.toggle()}}class dB{constructor(t,n){oe(this,"context");oe(this,"scope");this.context=t,this.scope=n}execute(){this.context.toggleScope(this.scope)}}class Oie{constructor(t){oe(this,"context");oe(this,"audioService");oe(this,"autoplayService");oe(this,"highlightService");oe(this,"brailleViewModel");oe(this,"chatViewModel");oe(this,"helpViewModel");oe(this,"reviewViewModel");oe(this,"settingsViewModel");oe(this,"textViewModel");this.context=t.context,this.audioService=t.audioService,this.autoplayService=t.autoplayService,this.highlightService=t.highlightService,this.brailleViewModel=t.brailleViewModel,this.chatViewModel=t.chatViewModel,this.helpViewModel=t.helpViewModel,this.reviewViewModel=t.reviewViewModel,this.settingsViewModel=t.settingsViewModel,this.textViewModel=t.textViewModel}create(t){switch(t){case"MOVE_UP":return new Tie(this.context);case"MOVE_DOWN":return new Qie(this.context);case"MOVE_LEFT":return new fie(this.context);case"MOVE_RIGHT":return new die(this.context);case"MOVE_TO_TOP_EXTREME":return new hie(this.context);case"MOVE_TO_BOTTOM_EXTREME":return new pie(this.context);case"MOVE_TO_LEFT_EXTREME":return new mie(this.context);case"MOVE_TO_RIGHT_EXTREME":return new yie(this.context);case"MOVE_TO_TRACE_CONTEXT":return new gie(this.context);case"MOVE_TO_SUBPLOT_CONTEXT":return new vie(this.context);case"MOVE_TO_NEXT_TRACE":return new Lie(this.context);case"MOVE_TO_PREV_TRACE":return new xie(this.context);case"TOGGLE_AUDIO":return new Eie(this.audioService);case"TOGGLE_BRAILLE":return new bie(this.context,this.brailleViewModel);case"TOGGLE_TEXT":return new Hie(this.textViewModel);case"TOGGLE_REVIEW":return new Sie(this.context,this.reviewViewModel);case"TOGGLE_HELP":return new Mie(this.helpViewModel);case"TOGGLE_CHAT":return new Aie(this.chatViewModel);case"TOGGLE_SETTINGS":return new _ie(this.settingsViewModel);case"DESCRIBE_X":return new iie(this.context,this.textViewModel);case"DESCRIBE_Y":return new aie(this.context,this.textViewModel);case"DESCRIBE_FILL":return new oie(this.context,this.textViewModel);case"DESCRIBE_POINT":return new cie(this.context,this.audioService,this.highlightService,this.brailleViewModel,this.textViewModel);case"DESCRIBE_TITLE":return new lie(this.context,this.textViewModel);case"DESCRIBE_SUBTITLE":return new sie(this.context,this.textViewModel);case"DESCRIBE_CAPTION":return new uie(this.context,this.textViewModel);case"ACTIVATE_FIGURE_LABEL_SCOPE":case"DEACTIVATE_FIGURE_LABEL_SCOPE":return new dB(this.context,E1.FIGURE_LABEL);case"ACTIVATE_TRACE_LABEL_SCOPE":case"DEACTIVATE_TRACE_LABEL_SCOPE":return new dB(this.context,E1.TRACE_LABEL);case"AUTOPLAY_UPWARD":return new W0e(this.context,this.autoplayService);case"AUTOPLAY_DOWNWARD":return new Y0e(this.context,this.autoplayService);case"AUTOPLAY_FORWARD":return new K0e(this.context,this.autoplayService);case"AUTOPLAY_BACKWARD":return new J0e(this.context,this.autoplayService);case"STOP_AUTOPLAY":return new eie(this.autoplayService);case"SPEED_UP_AUTOPLAY":return new tie(this.autoplayService);case"SPEED_DOWN_AUTOPLAY":return new nie(this.autoplayService);case"RESET_AUTOPLAY_SPEED":return new rie(this.autoplayService);default:throw new Error(`Invalid command name: ${t}`)}}}const Cie={ACTIVATE_TRACE_LABEL_SCOPE:"l",AUTOPLAY_UPWARD:`${kt.ctrl}+shift+up`,AUTOPLAY_DOWNWARD:`${kt.ctrl}+shift+down`,AUTOPLAY_FORWARD:`${kt.ctrl}+shift+right`,AUTOPLAY_BACKWARD:`${kt.ctrl}+shift+left`,STOP_AUTOPLAY:`${kt.ctrl}, up, down, left, right`,SPEED_UP_AUTOPLAY:".",SPEED_DOWN_AUTOPLAY:",",RESET_AUTOPLAY_SPEED:"/",MOVE_UP:"up",MOVE_DOWN:"down",MOVE_RIGHT:"right",MOVE_LEFT:"left",MOVE_TO_TOP_EXTREME:`${kt.ctrl}+up`,MOVE_TO_BOTTOM_EXTREME:`${kt.ctrl}+down`,MOVE_TO_LEFT_EXTREME:`${kt.ctrl}+left`,MOVE_TO_RIGHT_EXTREME:`${kt.ctrl}+right`,MOVE_TO_NEXT_TRACE:"pageup",MOVE_TO_PREV_TRACE:"pagedown",TOGGLE_BRAILLE:"b",TOGGLE_TEXT:"t",TOGGLE_AUDIO:"s",TOGGLE_REVIEW:"r",TOGGLE_HELP:`${kt.ctrl}+/`,TOGGLE_CHAT:"shift+/",TOGGLE_SETTINGS:`${kt.ctrl}+,`,DESCRIBE_POINT:"space"},wie={TOGGLE_CHAT:"esc"},Vie={DEACTIVATE_FIGURE_LABEL_SCOPE:"*",DESCRIBE_TITLE:"t",DESCRIBE_SUBTITLE:"s",DESCRIBE_CAPTION:"c",TOGGLE_HELP:`${kt.ctrl}+/`},Die={TOGGLE_HELP:"esc"},Rie={ACTIVATE_FIGURE_LABEL_SCOPE:"l",DESCRIBE_TITLE:"t",DESCRIBE_POINT:"space",MOVE_UP:"up",MOVE_DOWN:"down",MOVE_RIGHT:"right",MOVE_LEFT:"left",MOVE_TO_TOP_EXTREME:`${kt.ctrl}+up`,MOVE_TO_BOTTOM_EXTREME:`${kt.ctrl}+down`,MOVE_TO_LEFT_EXTREME:`${kt.ctrl}+left`,MOVE_TO_RIGHT_EXTREME:`${kt.ctrl}+right`,MOVE_TO_TRACE_CONTEXT:`${kt.enter}`,TOGGLE_HELP:`${kt.ctrl}+/`,TOGGLE_CHAT:"shift+/",TOGGLE_SETTINGS:`${kt.ctrl}+,`},kie={DEACTIVATE_TRACE_LABEL_SCOPE:"*",DESCRIBE_X:"x",DESCRIBE_Y:"y",DESCRIBE_FILL:"f",DESCRIBE_TITLE:"t",DESCRIBE_SUBTITLE:"s",DESCRIBE_CAPTION:"c",TOGGLE_HELP:`${kt.ctrl}+/`},Nie={TOGGLE_BRAILLE:"b",TOGGLE_REVIEW:"r",ALLOW_DEFAULT:`up, down, left, right,
|
|
662
|
+
root.render(<App />);`),c.unstable_strictMode===!0&&(m=!0),c.identifierPrefix!==void 0&&(H=c.identifierPrefix),c.onUncaughtError!==void 0&&(w=c.onUncaughtError),c.onCaughtError!==void 0&&(D=c.onCaughtError),c.onRecoverableError!==void 0&&(I=c.onRecoverableError),c.unstable_transitionCallbacks!==void 0&&(G=c.unstable_transitionCallbacks)),c=mh(r,1,!1,null,null,m,H,w,D,I,G,null),r[b0]=c.current,Rl(r),new Cu(c)},Mf.hydrateRoot=function(r,c,m){if(!L(r))throw Error("Target container is not a DOM element.");Vu(r),c===void 0&&console.error("Must provide initial children as second argument to hydrateRoot. Example usage: hydrateRoot(domContainer, <App />)");var H=!1,w="",D=jy,I=G9,G=Z9,ie=null,le=null;return m!=null&&(m.unstable_strictMode===!0&&(H=!0),m.identifierPrefix!==void 0&&(w=m.identifierPrefix),m.onUncaughtError!==void 0&&(D=m.onUncaughtError),m.onCaughtError!==void 0&&(I=m.onCaughtError),m.onRecoverableError!==void 0&&(G=m.onRecoverableError),m.unstable_transitionCallbacks!==void 0&&(ie=m.unstable_transitionCallbacks),m.formState!==void 0&&(le=m.formState)),c=mh(r,1,!0,c,m??null,H,w,D,I,G,ie,le),c.context=I1(null),m=c.current,H=j4(m),H=Ye(H),w=e6(H),w.callback=null,t6(m,w,H),m=H,c.current.lanes=m,f1(c,m),Tn(c),r[b0]=c.current,Rl(r),new wu(c)},Mf.version="19.1.0",typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())}(),Mf}var QB;function $0e(){if(QB)return Ly.exports;QB=1;var e={};function t(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function")){if(e.NODE_ENV!=="production")throw new Error("^_^");try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(t)}catch(n){console.error(n)}}}return e.NODE_ENV==="production"?(t(),Ly.exports=z0e()):Ly.exports=q0e(),Ly.exports}var U0e=$0e();class G0e{constructor(t,n,l){oe(this,"context");oe(this,"focusStack");oe(this,"plot");oe(this,"reactRoot");oe(this,"onChangeEmitter");oe(this,"onChange");oe(this,"currentInstruction","");oe(this,"handleMouseEnter",t=>{t.currentTarget.setAttribute(ve.TITLE,this.currentInstruction)});oe(this,"handleMouseLeave",t=>{t.currentTarget.removeAttribute(ve.TITLE)});this.context=t,this.focusStack=new fv,this.focusStack.push(this.context.scope),this.plot=n,this.reactRoot=U0e.createRoot(l,{identifierPrefix:this.context.id}),this.reactRoot.render(j0e),this.onChangeEmitter=new bs,this.onChange=this.onChangeEmitter.event,this.plot.addEventListener("click",()=>{const o=this.plot.closest(ve.FIGURE),a=this.plot.closest(ve.ARTICLE);o&&o.removeAttribute(ve.TITLE),a&&a.removeAttribute(ve.TITLE)}),this.removeInstruction()}dispose(){var t;this.addInstruction(),this.onChangeEmitter.dispose(),(t=this.reactRoot)==null||t.unmount(),this.reactRoot=null}addInstruction(){const t=this.context.getInstruction(!0);this.currentInstruction=t,this.plot.setAttribute(ve.ARIA_LABEL,t),this.plot.setAttribute(ve.ROLE,ve.IMAGE),this.plot.tabIndex=0;const n=this.plot.closest(ve.FIGURE),l=this.plot.closest(ve.ARTICLE);n&&(n.setAttribute(ve.TITLE,t),n.addEventListener("mouseenter",this.handleMouseEnter),n.addEventListener("mouseleave",this.handleMouseLeave)),l&&(l.setAttribute(ve.TITLE,t),l.addEventListener("mouseenter",this.handleMouseEnter),l.addEventListener("mouseleave",this.handleMouseLeave))}removeInstruction(){this.plot.removeAttribute(ve.ARIA_LABEL),this.plot.setAttribute(ve.ROLE,ve.APPLICATION),this.plot.tabIndex=-1;const t=this.plot.closest(ve.FIGURE),n=this.plot.closest(ve.ARTICLE);t&&(t.removeAttribute(ve.TITLE),t.removeEventListener("mouseenter",this.handleMouseEnter),t.removeEventListener("mouseleave",this.handleMouseLeave)),n&&(n.removeAttribute(ve.TITLE),n.removeEventListener("mouseenter",this.handleMouseEnter),n.removeEventListener("mouseleave",this.handleMouseLeave))}toggleFocus(t){this.focusStack.removeLast(t)||this.focusStack.push(t),this.context.toggleScope(t),this.updateFocus(this.focusStack.peek())}updateFocus(t){(t==="TRACE"||t==="SUBPLOT")&&this.plot.focus(),this.onChangeEmitter.fire({value:t})}}const u9=class u9{constructor(){}static get ctrl(){return u9.IS_MAC?"command":"ctrl"}static get alt(){return u9.IS_MAC?"option":"alt"}static get enter(){return u9.IS_MAC?"return":"enter"}};oe(u9,"IS_MAC",(()=>{var n;return(((n=navigator.userAgentData)==null?void 0:n.platform)??navigator.platform).toLowerCase().includes("mac")})());let kt=u9;const bb=[{description:"Navigate Data Points",key:"arrow keys"},{description:"Move to Next Layer",key:"page up"},{description:"Move to Previous Layer",key:"page down"},{description:"Go to Left/Right/Top/Bottom Extreme Point",key:`${kt.ctrl} + arrow keys`},{description:"Toggle Braille Mode",key:"b"},{description:"Toggle Text Mode",key:"t"},{description:"Toggle Sonification Mode",key:"s"},{description:"Toggle Review Mode",key:"r"},{description:"Autoplay Outward",key:`${kt.ctrl} + shift + arrow keys`},{description:"Stop Autoplay",key:`${kt.ctrl}`},{description:"Speed Up Autoplay",key:". (period)"},{description:"Speed Down Autoplay",key:", (comma)"},{description:"Reset Autoplay Speed",key:"/ (slash)"},{description:"Replay Current Point",key:"space"},{description:"Announce Plot Title",key:"l t"},{description:"Announce X Label",key:"l x"},{description:"Announce Y Label",key:"l y"},{description:"Announce Fill (Z) Label",key:"l f"},{description:"Open Settings",key:`${kt.ctrl} + ,`},{description:"Open Chat",key:"?"}],fB=[{description:"Move around Subplot",key:"arrow keys"},{description:"Activate Current Subplot",key:`${kt.enter}`},{description:"Announce Plot Title",key:"l t"},{description:"Announce Subtitle",key:"l s"},{description:"Announce Caption",key:"l c"},{description:"Open Settings",key:`${kt.ctrl} + ,`}];class Z0e{constructor(t,n){oe(this,"context");oe(this,"display");oe(this,"scopedMenuItems");this.context=t,this.display=n,this.scopedMenuItems={[E1.TRACE]:bb,[E1.TRACE_LABEL]:bb,[E1.BRAILLE]:bb,[E1.SUBPLOT]:fB,[E1.FIGURE_LABEL]:fB}}getMenuItems(){return this.scopedMenuItems[this.context.scope]??[]}toggle(){this.display.toggleFocus(E1.HELP)}}class X0e{constructor(t){oe(this,"highlightedElements");oe(this,"highlightedSubplots");oe(this,"currentHighlightColor");this.highlightedElements=new Map,this.highlightedSubplots=new Set;const n=t.loadSettings();this.currentHighlightColor=n.general.highlightColor}dispose(){this.unhighlightAll()}isSettings(t){return"general"in t}createHighlightElement(t){if(!(t instanceof SVGElement))throw new TypeError("Invalid element provided for highlight creation");const n=w1.createHighlightElement(t,this.currentHighlightColor);return n.id=`${ve.MAIDR_HIGHLIGHT}-${Date.now()}-${Math.random()}`,n}handleSettingsUpdate(t){this.currentHighlightColor=t.general.highlightColor}handleStateUpdate(t){t.empty||(this.unhighlightTraceElements(),t.type==="figure"?this.handleFigureState(t):t.type==="subplot"?this.handleSubplotState(t):this.handleTraceState(t))}handleFigureState(t){t.empty||this.processHighlighting(t.highlight)}handleSubplotState(t){t.empty||this.processHighlighting(t.highlight)}handleTraceState(t){if(t.empty||t.highlight.empty)return;const n=this.getElementsFromHighlight(t.highlight);this.highlightTraceElements(n)}processHighlighting(t){if(t.empty)return;const n=this.getElementsFromHighlight(t);this.isMultiPlotScenario()?this.highlightSubplotElements(n):this.unhighlightSubplotElements()}getElementsFromHighlight(t){return t.empty?[]:Array.isArray(t.elements)?t.elements:[t.elements]}isMultiPlotScenario(){return document.querySelectorAll('g[id^="axes_"]').length>1}highlightTraceElements(t){for(const n of t)try{const l=this.createHighlightElement(n);this.highlightedElements.set(n,l)}catch(l){console.error("Failed to highlight element:",l)}}highlightSubplotElements(t){var o;this.unhighlightSubplotElements();const n=(o=document.querySelector('g[id^="maidr-"] > path[style*="fill"]'))==null?void 0:o.parentElement,l=(n==null?void 0:n.querySelector('path[style*="fill"]'))||void 0;for(const a of t)w1.setSubplotHighlightSvgWithAdaptiveColor(a,this.currentHighlightColor,l),this.highlightedSubplots.add(a)}update(t){try{this.isSettings(t)?this.handleSettingsUpdate(t):this.handleStateUpdate(t)}catch(n){console.error("Failed to update highlight service:",n)}}highlight(t){if(!(t instanceof SVGElement)){console.warn("Invalid element provided to highlight method");return}try{this.unhighlight(t);const n=this.createHighlightElement(t);this.highlightedElements.set(t,n)}catch(n){console.error("Failed to highlight element:",n)}}unhighlight(t){if(!(t instanceof SVGElement))return;const n=this.highlightedElements.get(t);if(n)try{n.remove(),this.highlightedElements.delete(t)}catch(l){console.error("Failed to unhighlight element:",l)}}clear(){try{this.highlightedElements.forEach(t=>{t.remove()}),this.highlightedElements.clear(),this.unhighlightSubplotElements()}catch(t){console.error("Failed to clear highlights:",t)}}unhighlightTraceElements(){this.highlightedElements.forEach(t=>{t.remove()}),this.highlightedElements.clear()}unhighlightSubplotElements(){this.highlightedSubplots.forEach(t=>{w1.removeSubplotHighlightSvg(t)}),this.highlightedSubplots.clear()}unhighlightAll(){this.unhighlightTraceElements(),this.unhighlightSubplotElements()}}class W0e{constructor(t,n){oe(this,"context");oe(this,"autoplay");this.context=t,this.autoplay=n}execute(){const t=this.context.state;t.type==="trace"&&!t.empty&&this.autoplay.start("UPWARD",t)}}class Y0e{constructor(t,n){oe(this,"context");oe(this,"autoplay");this.autoplay=n,this.context=t}execute(){const t=this.context.state;t.type==="trace"&&!t.empty&&this.autoplay.start("DOWNWARD",t)}}class K0e{constructor(t,n){oe(this,"context");oe(this,"autoplay");this.autoplay=n,this.context=t}execute(){const t=this.context.state;t.type==="trace"&&!t.empty&&this.autoplay.start("FORWARD",t)}}class J0e{constructor(t,n){oe(this,"context");oe(this,"autoplay");this.autoplay=n,this.context=t}execute(){const t=this.context.state;t.type==="trace"&&!t.empty&&this.autoplay.start("BACKWARD",t)}}class eie{constructor(t){oe(this,"autoplay");this.autoplay=t}execute(){this.autoplay.stop()}}class tie{constructor(t){oe(this,"autoplay");this.autoplay=t}execute(){this.autoplay.speedUp()}}class nie{constructor(t){oe(this,"autoplay");this.autoplay=t}execute(){this.autoplay.speedDown()}}class rie{constructor(t){oe(this,"autoplay");this.autoplay=t}execute(){this.autoplay.resetSpeed()}}class j8{constructor(t,n){oe(this,"context");oe(this,"textViewModel");this.context=t,this.textViewModel=n}}class iie extends j8{constructor(t,n){super(t,n)}execute(){const t=this.context.state;if(t.type==="trace"&&!t.empty){const n=`X label is ${t.xAxis}`;this.textViewModel.update(n)}}}class aie extends j8{constructor(t,n){super(t,n)}execute(){const t=this.context.state;if(t.type==="trace"&&!t.empty){const n=`Y label is ${t.yAxis}`;this.textViewModel.update(n)}}}class oie extends j8{constructor(t,n){super(t,n)}execute(){const t=this.context.state;if(t.type==="trace"&&!t.empty){const n=`Fill is ${t.fill}`;this.textViewModel.update(n)}}}class lie extends j8{constructor(t,n){super(t,n)}execute(){const t=this.context.state;if(!t.empty){if(t.type==="figure"){const n=`Figure title is ${t.title}`;this.textViewModel.update(n)}else if(t.type==="trace"){const n=`Subplot title is ${t.title}`;this.textViewModel.update(n)}}}}class sie extends j8{constructor(t,n){super(t,n)}execute(){const t=this.context.state;if(t.type==="figure"&&!t.empty){const n=`Subtitle is ${t.subtitle}`;this.textViewModel.update(n)}}}class uie extends j8{constructor(t,n){super(t,n)}execute(){const t=this.context.state;if(t.type==="figure"&&!t.empty){const n=`Caption is ${t.caption}`;this.textViewModel.update(n)}}}class cie extends j8{constructor(n,l,o,a,i){super(n,i);oe(this,"audio");oe(this,"brailleViewModel");oe(this,"highlight");this.audio=l,this.highlight=o,this.brailleViewModel=a}execute(){const n=this.context.state;switch(n.type){case"figure":case"subplot":this.textViewModel.update(n);break;case"trace":this.textViewModel.update(n),this.audio.update(n),this.brailleViewModel.update(n),this.highlight.update(n);break}}}class Tie{constructor(t){oe(this,"context");this.context=t}execute(){this.context.moveOnce("UPWARD")}}class Qie{constructor(t){oe(this,"context");this.context=t}execute(){this.context.moveOnce("DOWNWARD")}}class fie{constructor(t){oe(this,"context");this.context=t}execute(){this.context.moveOnce("BACKWARD")}}class die{constructor(t){oe(this,"context");this.context=t}execute(){this.context.moveOnce("FORWARD")}}class hie{constructor(t){oe(this,"context");this.context=t}execute(){this.context.moveToExtreme("UPWARD")}}class pie{constructor(t){oe(this,"context");this.context=t}execute(){this.context.moveToExtreme("DOWNWARD")}}class mie{constructor(t){oe(this,"context");this.context=t}execute(){this.context.moveToExtreme("BACKWARD")}}class yie{constructor(t){oe(this,"context");this.context=t}execute(){this.context.moveToExtreme("FORWARD")}}class gie{constructor(t){oe(this,"context");this.context=t}execute(){this.context.enterSubplot()}}class vie{constructor(t){oe(this,"context");this.context=t}execute(){this.context.exitSubplot()}}class Lie{constructor(t){oe(this,"context");this.context=t}execute(){this.context.stepTrace("UPWARD")}}class xie{constructor(t){oe(this,"context");this.context=t}execute(){this.context.stepTrace("DOWNWARD")}}class bie{constructor(t,n){oe(this,"context");oe(this,"brailleViewModel");this.context=t,this.brailleViewModel=n}execute(){const t=this.context.state;t.type==="trace"&&this.brailleViewModel.toggle(t)}}class Hie{constructor(t){oe(this,"textViewModel");this.textViewModel=t}execute(){this.textViewModel.toggle()}}class Eie{constructor(t){oe(this,"audio");this.audio=t}execute(){this.audio.toggle()}}class Sie{constructor(t,n){oe(this,"context");oe(this,"reviewViewModel");this.context=t,this.reviewViewModel=n}execute(){const t=this.context.state;t.type==="trace"&&this.reviewViewModel.toggle(t)}}class Mie{constructor(t){oe(this,"helpViewModel");this.helpViewModel=t}execute(){this.helpViewModel.toggle()}}class Aie{constructor(t){oe(this,"chatViewModel");this.chatViewModel=t}execute(){this.chatViewModel.toggle()}}class _ie{constructor(t){oe(this,"settingsViewModel");this.settingsViewModel=t}execute(){this.settingsViewModel.toggle()}}class dB{constructor(t,n){oe(this,"context");oe(this,"scope");this.context=t,this.scope=n}execute(){this.context.toggleScope(this.scope)}}class Oie{constructor(t){oe(this,"context");oe(this,"audioService");oe(this,"autoplayService");oe(this,"highlightService");oe(this,"brailleViewModel");oe(this,"chatViewModel");oe(this,"helpViewModel");oe(this,"reviewViewModel");oe(this,"settingsViewModel");oe(this,"textViewModel");this.context=t.context,this.audioService=t.audioService,this.autoplayService=t.autoplayService,this.highlightService=t.highlightService,this.brailleViewModel=t.brailleViewModel,this.chatViewModel=t.chatViewModel,this.helpViewModel=t.helpViewModel,this.reviewViewModel=t.reviewViewModel,this.settingsViewModel=t.settingsViewModel,this.textViewModel=t.textViewModel}create(t){switch(t){case"MOVE_UP":return new Tie(this.context);case"MOVE_DOWN":return new Qie(this.context);case"MOVE_LEFT":return new fie(this.context);case"MOVE_RIGHT":return new die(this.context);case"MOVE_TO_TOP_EXTREME":return new hie(this.context);case"MOVE_TO_BOTTOM_EXTREME":return new pie(this.context);case"MOVE_TO_LEFT_EXTREME":return new mie(this.context);case"MOVE_TO_RIGHT_EXTREME":return new yie(this.context);case"MOVE_TO_TRACE_CONTEXT":return new gie(this.context);case"MOVE_TO_SUBPLOT_CONTEXT":return new vie(this.context);case"MOVE_TO_NEXT_TRACE":return new Lie(this.context);case"MOVE_TO_PREV_TRACE":return new xie(this.context);case"TOGGLE_AUDIO":return new Eie(this.audioService);case"TOGGLE_BRAILLE":return new bie(this.context,this.brailleViewModel);case"TOGGLE_TEXT":return new Hie(this.textViewModel);case"TOGGLE_REVIEW":return new Sie(this.context,this.reviewViewModel);case"TOGGLE_HELP":return new Mie(this.helpViewModel);case"TOGGLE_CHAT":return new Aie(this.chatViewModel);case"TOGGLE_SETTINGS":return new _ie(this.settingsViewModel);case"DESCRIBE_X":return new iie(this.context,this.textViewModel);case"DESCRIBE_Y":return new aie(this.context,this.textViewModel);case"DESCRIBE_FILL":return new oie(this.context,this.textViewModel);case"DESCRIBE_POINT":return new cie(this.context,this.audioService,this.highlightService,this.brailleViewModel,this.textViewModel);case"DESCRIBE_TITLE":return new lie(this.context,this.textViewModel);case"DESCRIBE_SUBTITLE":return new sie(this.context,this.textViewModel);case"DESCRIBE_CAPTION":return new uie(this.context,this.textViewModel);case"ACTIVATE_FIGURE_LABEL_SCOPE":case"DEACTIVATE_FIGURE_LABEL_SCOPE":return new dB(this.context,E1.FIGURE_LABEL);case"ACTIVATE_TRACE_LABEL_SCOPE":case"DEACTIVATE_TRACE_LABEL_SCOPE":return new dB(this.context,E1.TRACE_LABEL);case"AUTOPLAY_UPWARD":return new W0e(this.context,this.autoplayService);case"AUTOPLAY_DOWNWARD":return new Y0e(this.context,this.autoplayService);case"AUTOPLAY_FORWARD":return new K0e(this.context,this.autoplayService);case"AUTOPLAY_BACKWARD":return new J0e(this.context,this.autoplayService);case"STOP_AUTOPLAY":return new eie(this.autoplayService);case"SPEED_UP_AUTOPLAY":return new tie(this.autoplayService);case"SPEED_DOWN_AUTOPLAY":return new nie(this.autoplayService);case"RESET_AUTOPLAY_SPEED":return new rie(this.autoplayService);default:throw new Error(`Invalid command name: ${t}`)}}}const Cie={ACTIVATE_TRACE_LABEL_SCOPE:"l",AUTOPLAY_UPWARD:`${kt.ctrl}+shift+up`,AUTOPLAY_DOWNWARD:`${kt.ctrl}+shift+down`,AUTOPLAY_FORWARD:`${kt.ctrl}+shift+right`,AUTOPLAY_BACKWARD:`${kt.ctrl}+shift+left`,STOP_AUTOPLAY:`${kt.ctrl}, up, down, left, right`,SPEED_UP_AUTOPLAY:".",SPEED_DOWN_AUTOPLAY:",",RESET_AUTOPLAY_SPEED:"/",MOVE_UP:"up",MOVE_DOWN:"down",MOVE_RIGHT:"right",MOVE_LEFT:"left",MOVE_TO_TOP_EXTREME:`${kt.ctrl}+up`,MOVE_TO_BOTTOM_EXTREME:`${kt.ctrl}+down`,MOVE_TO_LEFT_EXTREME:`${kt.ctrl}+left`,MOVE_TO_RIGHT_EXTREME:`${kt.ctrl}+right`,MOVE_TO_NEXT_TRACE:"pageup",MOVE_TO_PREV_TRACE:"pagedown",TOGGLE_BRAILLE:"b",TOGGLE_TEXT:"t",TOGGLE_AUDIO:"s",TOGGLE_REVIEW:"r",TOGGLE_HELP:`${kt.ctrl}+/`,TOGGLE_CHAT:"shift+/",TOGGLE_SETTINGS:`${kt.ctrl}+,`,DESCRIBE_POINT:"space"},wie={TOGGLE_CHAT:"esc"},Vie={DEACTIVATE_FIGURE_LABEL_SCOPE:"*",DESCRIBE_TITLE:"t",DESCRIBE_SUBTITLE:"s",DESCRIBE_CAPTION:"c",TOGGLE_HELP:`${kt.ctrl}+/`},Die={TOGGLE_HELP:"esc"},Rie={ACTIVATE_FIGURE_LABEL_SCOPE:"l",DESCRIBE_TITLE:"t",DESCRIBE_POINT:"space",MOVE_UP:"up",MOVE_DOWN:"down",MOVE_RIGHT:"right",MOVE_LEFT:"left",MOVE_TO_TOP_EXTREME:`${kt.ctrl}+up`,MOVE_TO_BOTTOM_EXTREME:`${kt.ctrl}+down`,MOVE_TO_LEFT_EXTREME:`${kt.ctrl}+left`,MOVE_TO_RIGHT_EXTREME:`${kt.ctrl}+right`,MOVE_TO_TRACE_CONTEXT:`${kt.enter}`,TOGGLE_HELP:`${kt.ctrl}+/`,TOGGLE_CHAT:"shift+/",TOGGLE_SETTINGS:`${kt.ctrl}+,`},kie={DEACTIVATE_TRACE_LABEL_SCOPE:"*",DESCRIBE_X:"x",DESCRIBE_Y:"y",DESCRIBE_FILL:"f",DESCRIBE_TITLE:"t",DESCRIBE_SUBTITLE:"s",DESCRIBE_CAPTION:"c",TOGGLE_HELP:`${kt.ctrl}+/`},Nie={TOGGLE_BRAILLE:"b",TOGGLE_REVIEW:"r",ALLOW_DEFAULT:`up, down, left, right,
|
|
663
663
|
${kt.ctrl}+up, ${kt.ctrl}+down,
|
|
664
664
|
${kt.ctrl}+left, ${kt.ctrl}+right,
|
|
665
665
|
pageup, pagedown, home, end,
|
|
666
|
-
tab, ${kt.ctrl}+a, ${kt.ctrl}+c`},Bie={TOGGLE_SETTINGS:"esc"},Pie={ACTIVATE_TRACE_LABEL_SCOPE:"l",AUTOPLAY_UPWARD:`${kt.ctrl}+shift+up`,AUTOPLAY_DOWNWARD:`${kt.ctrl}+shift+down`,AUTOPLAY_FORWARD:`${kt.ctrl}+shift+right`,AUTOPLAY_BACKWARD:`${kt.ctrl}+shift+left`,STOP_AUTOPLAY:`${kt.ctrl}, up, down, left, right`,SPEED_UP_AUTOPLAY:".",SPEED_DOWN_AUTOPLAY:",",RESET_AUTOPLAY_SPEED:"/",MOVE_UP:"up",MOVE_DOWN:"down",MOVE_RIGHT:"right",MOVE_LEFT:"left",MOVE_TO_TOP_EXTREME:`${kt.ctrl}+up`,MOVE_TO_BOTTOM_EXTREME:`${kt.ctrl}+down`,MOVE_TO_LEFT_EXTREME:`${kt.ctrl}+left`,MOVE_TO_RIGHT_EXTREME:`${kt.ctrl}+right`,MOVE_TO_SUBPLOT_CONTEXT:"esc",MOVE_TO_NEXT_TRACE:"pageup",MOVE_TO_PREV_TRACE:"pagedown",TOGGLE_BRAILLE:"b",TOGGLE_TEXT:"t",TOGGLE_AUDIO:"s",TOGGLE_REVIEW:"r",TOGGLE_HELP:`${kt.ctrl}+/`,TOGGLE_CHAT:"shift+/",TOGGLE_SETTINGS:`${kt.ctrl}+,`,DESCRIBE_POINT:"space"},jie={[E1.BRAILLE]:Cie,[E1.CHAT]:wie,[E1.FIGURE_LABEL]:Vie,[E1.HELP]:Die,[E1.REVIEW]:Nie,[E1.SETTINGS]:Bie,[E1.SUBPLOT]:Rie,[E1.TRACE]:Pie,[E1.TRACE_LABEL]:kie};class Iie{constructor(t){oe(this,"commandFactory");this.commandFactory=new Oie(t)}register(t){q3.filter=n=>{const l=n.target;return l.tagName.toLowerCase()===Le.INPUT?l.id.startsWith(Le.REVIEW_INPUT):l.tagName.toLowerCase()===Le.TEXT_AREA?l.id.startsWith(Le.BRAILLE_TEXT_AREA):!0};for(const[n,l]of Object.entries(jie))for(const[o,a]of Object.entries(l))o==="STOP_AUTOPLAY"&&q3("*",E1.TRACE,i=>{(q3.command||q3.ctrl)&&this.commandFactory.create(o).execute(i)}),q3(a,{scope:n},i=>{o!=="ALLOW_DEFAULT"&&(i.preventDefault(),this.commandFactory.create(o).execute(i))});q3.setScope(t)}unregister(){q3.unbind()}}class Fie{constructor(){oe(this,"onChangeEmitter");oe(this,"onChange");this.onChangeEmitter=new bs,this.onChange=this.onChangeEmitter.event}dispose(){this.onChangeEmitter.dispose()}notify(t){t&&this.onChangeEmitter.fire({value:t})}}class zie{constructor(t,n,l){oe(this,"notification");oe(this,"display");oe(this,"text");oe(this,"enabled");oe(this,"onChangeEmitter");oe(this,"onChange");this.notification=t,this.display=n,this.text=l,this.enabled=!1,this.onChangeEmitter=new bs,this.onChange=this.onChangeEmitter.event}dispose(){this.onChangeEmitter.dispose()}update(t){if(!this.enabled||t.empty)return;const n=this.text.format(t);n&&this.onChangeEmitter.fire({value:n})}toggle(t){if(t.empty){this.notification.notify("No info for review");return}this.enabled=!this.enabled,this.update(t),this.display.toggleFocus(E1.REVIEW);const n=`Review is ${this.enabled?"on":"off"}`;this.notification.notify(n)}}const Hb="maidr-settings";class qie{constructor(t,n){oe(this,"storage");oe(this,"display");oe(this,"defaultSettings");oe(this,"currentSettings");oe(this,"observers");this.storage=t,this.display=n,this.observers=[],this.defaultSettings={general:{volume:50,highlightColor:"#03c809",brailleDisplaySize:32,minFrequency:200,maxFrequency:1e3,autoplayDuration:4e3,ariaMode:"assertive"},llm:{expertiseLevel:"basic",customInstruction:"",models:{OPENAI:{enabled:!1,apiKey:"",name:"OpenAI",version:"gpt-4o"},ANTHROPIC_CLAUDE:{enabled:!1,apiKey:"",name:"Anthropic Claude",version:"claude-3-7-sonnet-latest"},GOOGLE_GEMINI:{enabled:!1,apiKey:"",name:"Google Gemini",version:"gemini-2.0-flash"}}}};const l=this.storage.load(Hb);this.currentSettings=l??this.defaultSettings}get state(){return this.currentSettings}addObserver(t){this.observers.push(t)}removeObserver(t){this.observers=this.observers.filter(n=>n!==t)}notifyStateUpdate(){for(const t of this.observers)t.update(this.currentSettings)}loadSettings(){return this.currentSettings}saveSettings(t){this.currentSettings=t,this.storage.save(Hb,this.currentSettings),this.notifyStateUpdate()}resetSettings(){return this.currentSettings=this.defaultSettings,this.storage.remove(Hb),this.notifyStateUpdate(),this.currentSettings}toggle(){this.display.toggleFocus(E1.SETTINGS)}}class $ie{save(t,n){try{const l=JSON.stringify(n);localStorage.setItem(t,l)}catch(l){console.error(`Error while saving ${t} to storage`,l)}}load(t){try{const n=localStorage.getItem(t);return n===null?null:JSON.parse(n)}catch(n){return console.error(`Error while loading ${t} from storage`,n),null}}remove(t){try{localStorage.removeItem(t)}catch(n){console.error(`Error while removing ${t} from storage`,n)}}}class Uie{constructor(t){oe(this,"notification");oe(this,"mode");oe(this,"onChangeEmitter");oe(this,"onChange");this.notification=t,this.mode="verbose",this.onChangeEmitter=new bs,this.onChange=this.onChangeEmitter.event}dispose(){this.onChangeEmitter.dispose()}format(t){return typeof t=="string"?t:!t||t.empty?`No ${t.type==="trace"?"plot":t.type} info to display`:t.type==="figure"?this.formatFigureText(t.index,t.size,t.traceTypes):t.type==="subplot"?this.formatSubplotText(t.index,t.size,t.trace.traceType):this.mode==="verbose"?this.formatVerboseTraceText(t.text):this.formatTerseTraceText(t.text)}formatFigureText(t,n,l){const o=l.length===1?`This is a ${l[0]} plot`:`This is a multi-layered plot containing ${l.join(Le.COMMA_SPACE)} plots`;return`Subplot ${t} of ${n}: ${o}. Press 'ENTER' to select this subplot.`}formatSubplotText(t,n,l){return`Layer ${t} of ${n}: ${l} plot`}formatVerboseTraceText(t){const n=new Array;return n.push(t.main.label,Le.IS),t.range!==void 0?n.push(String(t.range.min),Le.THROUGH,String(t.range.max)):Array.isArray(t.main.value)?n.push(t.main.value.join(Le.COMMA_SPACE)):n.push(String(t.main.value)),n.push(Le.COMMA_SPACE,t.cross.label),t.section!==void 0&&(n.push(Le.COMMA_SPACE),Array.isArray(t.cross.value)&&n.push(String(t.cross.value.length),Le.SPACE),n.push(t.section)),Array.isArray(t.cross.value)?t.cross.value.length>1?n.push(Le.ARE,t.cross.value.join(Le.COMMA_SPACE)):t.cross.value.length>0&&n.push(Le.IS,t.cross.value.join(Le.COMMA_SPACE)):n.push(Le.IS,String(t.cross.value)),t.fill!==void 0&&n.push(Le.COMMA_SPACE,t.fill.label,Le.IS,t.fill.value),n.join(Le.EMPTY)}formatTerseTraceText(t){const n=new Array;return Array.isArray(t.main.value)?n.push(Le.OPEN_BRACKET,t.main.value.join(Le.COMMA_SPACE),Le.CLOSE_BRACKET):n.push(String(t.main.value),Le.COMMA_SPACE),t.section!==void 0&&(Array.isArray(t.cross.value)&&n.push(String(t.cross.value.length),Le.SPACE),n.push(t.section,Le.SPACE)),t.fill!==void 0&&n.push(t.fill.value,Le.COMMA_SPACE),Array.isArray(t.cross.value)?n.push(Le.OPEN_BRACKET,t.cross.value.join(Le.COMMA_SPACE),Le.CLOSE_BRACKET):n.push(String(t.cross.value)),n.join(Le.EMPTY)}update(t){if(this.mode==="off")return;const n=this.format(t);n&&this.onChangeEmitter.fire({value:n})}toggle(){switch(this.mode){case"off":this.mode="verbose";break;case"terse":this.mode="off";break;case"verbose":this.mode="terse";break}const t=`Text mode is ${this.mode}`;return this.notification.notify(t),this.mode!=="off"}}class hB{constructor(t,n,l){oe(this,"figure");oe(this,"context");oe(this,"displayService");oe(this,"notificationService");oe(this,"settingsService");oe(this,"audioService");oe(this,"brailleService");oe(this,"textService");oe(this,"reviewService");oe(this,"autoplayService");oe(this,"highlightService");oe(this,"helpService");oe(this,"chatService");oe(this,"textViewModel");oe(this,"brailleViewModel");oe(this,"reviewViewModel");oe(this,"displayViewModel");oe(this,"helpViewModel");oe(this,"chatViewModel");oe(this,"settingsViewModel");oe(this,"keybinding");this.figure=new iI(t),this.context=new Mj(this.figure),this.displayService=new G0e(this.context,n,l),this.notificationService=new Fie;const o=new $ie;this.settingsService=new qie(o,this.displayService),this.audioService=new uI(this.notificationService,this.context.state,this.settingsService),this.brailleService=new gI(this.context,this.notificationService,this.displayService),this.textService=new Uie(this.notificationService),this.reviewService=new zie(this.notificationService,this.displayService,this.textService),this.autoplayService=new dI(this.context,this.notificationService,this.settingsService),this.highlightService=new X0e(this.settingsService),this.helpService=new Z0e(this.context,this.displayService),this.chatService=new SI(this.displayService,t),this.textViewModel=new jz(Pa,this.textService,this.notificationService,this.autoplayService),this.brailleViewModel=new cz(Pa,this.brailleService),this.reviewViewModel=new Oz(Pa,this.reviewService),this.displayViewModel=new xz(Pa,this.displayService),this.helpViewModel=new Sz(Pa,this.helpService),this.chatViewModel=new yz(Pa,this.chatService,this.audioService),this.settingsViewModel=new Vz(Pa,this.settingsService),this.notificationService.notify(this.context.getInstruction(!1)),this.keybinding=new Iie({context:this.context,audioService:this.audioService,autoplayService:this.autoplayService,highlightService:this.highlightService,brailleViewModel:this.brailleViewModel,chatViewModel:this.chatViewModel,helpViewModel:this.helpViewModel,reviewViewModel:this.reviewViewModel,settingsViewModel:this.settingsViewModel,textViewModel:this.textViewModel}),this.registerViewModels(),this.registerObservers(),this.settingsService.addObserver(this.highlightService),this.keybinding.register(this.context.scope)}dispose(){this.keybinding.unregister(),c5.instance.dispose(),this.settingsViewModel.dispose(),this.chatViewModel.dispose(),this.helpViewModel.dispose(),this.displayViewModel.dispose(),this.reviewViewModel.dispose(),this.brailleViewModel.dispose(),this.textViewModel.dispose(),this.highlightService.dispose(),this.autoplayService.dispose(),this.textService.dispose(),this.reviewService.dispose(),this.brailleService.dispose(),this.audioService.dispose(),this.notificationService.dispose(),this.displayService.dispose(),this.context.dispose(),this.figure.dispose()}registerViewModels(){c5.instance.register("text",this.textViewModel),c5.instance.register("braille",this.brailleViewModel),c5.instance.register("review",this.reviewViewModel),c5.instance.register("display",this.displayViewModel),c5.instance.register("help",this.helpViewModel),c5.instance.register("chat",this.chatViewModel),c5.instance.register("settings",this.settingsViewModel)}registerObservers(){this.figure.addObserver(this.textService),this.figure.addObserver(this.highlightService),this.figure.subplots.forEach(t=>t.forEach(n=>{n.addObserver(this.textService),n.addObserver(this.audioService),n.addObserver(this.brailleService),n.addObserver(this.highlightService),n.traces.forEach(l=>l.forEach(o=>{o.addObserver(this.audioService),o.addObserver(this.brailleService),o.addObserver(this.textService),o.addObserver(this.reviewService),o.addObserver(this.highlightService)}))}))}}document.readyState==="loading"?document.addEventListener(E4.DOM_LOADED,pB):pB();function pB(){const e=document.querySelectorAll(`[${Le.MAIDR_DATA}]`);if(e.forEach(l=>{const o=l.getAttribute(Le.MAIDR_DATA);if(o)try{const a=JSON.parse(o);mB(a,l)}catch(a){console.error("Error parsing maidr attribute:",a)}}),e.length!==0)return;const t=window.maidr;if(!t)return;const n=document.getElementById(t.id);n&&mB(t,n)}function mB(e,t){let n=null,l=null,o=null;const a=()=>{setTimeout(()=>{if(!n)return;const u=document.activeElement;n.contains(u)||(o==null||o.dispose(),o=null)},0)},i=()=>{setTimeout(()=>{if(!(!n||!l)&&!o){const u=JSON.parse(JSON.stringify(e));o=new hB(u,t,l)}},0)},s=document.createElement(Le.FIGURE);s.id=`${Le.MAIDR_FIGURE}-${e.id}`,t.parentNode.replaceChild(s,t),s.appendChild(t);const T=document.createElement(Le.ARTICLE);T.id=`${Le.MAIDR_ARTICLE}-${e.id}`,s.parentNode.replaceChild(T,s),T.appendChild(s),l=document.createElement(Le.DIV),l.id=`${Le.REACT_CONTAINER}-${e.id}`,s.appendChild(l),n=s,t.addEventListener(E4.FOCUS_IN,i),t.addEventListener(E4.CLICK,i),n.addEventListener(E4.FOCUS_OUT,a),(()=>{const u=JSON.parse(JSON.stringify(e));new hB(u,t,l).dispose()})()}});
|
|
666
|
+
tab, ${kt.ctrl}+a, ${kt.ctrl}+c`},Bie={TOGGLE_SETTINGS:"esc"},Pie={ACTIVATE_TRACE_LABEL_SCOPE:"l",AUTOPLAY_UPWARD:`${kt.ctrl}+shift+up`,AUTOPLAY_DOWNWARD:`${kt.ctrl}+shift+down`,AUTOPLAY_FORWARD:`${kt.ctrl}+shift+right`,AUTOPLAY_BACKWARD:`${kt.ctrl}+shift+left`,STOP_AUTOPLAY:`${kt.ctrl}, up, down, left, right`,SPEED_UP_AUTOPLAY:".",SPEED_DOWN_AUTOPLAY:",",RESET_AUTOPLAY_SPEED:"/",MOVE_UP:"up",MOVE_DOWN:"down",MOVE_RIGHT:"right",MOVE_LEFT:"left",MOVE_TO_TOP_EXTREME:`${kt.ctrl}+up`,MOVE_TO_BOTTOM_EXTREME:`${kt.ctrl}+down`,MOVE_TO_LEFT_EXTREME:`${kt.ctrl}+left`,MOVE_TO_RIGHT_EXTREME:`${kt.ctrl}+right`,MOVE_TO_SUBPLOT_CONTEXT:"esc",MOVE_TO_NEXT_TRACE:"pageup",MOVE_TO_PREV_TRACE:"pagedown",TOGGLE_BRAILLE:"b",TOGGLE_TEXT:"t",TOGGLE_AUDIO:"s",TOGGLE_REVIEW:"r",TOGGLE_HELP:`${kt.ctrl}+/`,TOGGLE_CHAT:"shift+/",TOGGLE_SETTINGS:`${kt.ctrl}+,`,DESCRIBE_POINT:"space"},jie={[E1.BRAILLE]:Cie,[E1.CHAT]:wie,[E1.FIGURE_LABEL]:Vie,[E1.HELP]:Die,[E1.REVIEW]:Nie,[E1.SETTINGS]:Bie,[E1.SUBPLOT]:Rie,[E1.TRACE]:Pie,[E1.TRACE_LABEL]:kie};class Iie{constructor(t){oe(this,"commandFactory");this.commandFactory=new Oie(t)}register(t){q3.filter=n=>{const l=n.target;return l.tagName.toLowerCase()===ve.INPUT?l.id.startsWith(ve.REVIEW_INPUT):l.tagName.toLowerCase()===ve.TEXT_AREA?l.id.startsWith(ve.BRAILLE_TEXT_AREA):!0};for(const[n,l]of Object.entries(jie))for(const[o,a]of Object.entries(l))o==="STOP_AUTOPLAY"&&q3("*",E1.TRACE,i=>{(q3.command||q3.ctrl)&&this.commandFactory.create(o).execute(i)}),q3(a,{scope:n},i=>{o!=="ALLOW_DEFAULT"&&(i.preventDefault(),this.commandFactory.create(o).execute(i))});q3.setScope(t)}unregister(){q3.unbind()}}class Fie{constructor(){oe(this,"onChangeEmitter");oe(this,"onChange");this.onChangeEmitter=new bs,this.onChange=this.onChangeEmitter.event}dispose(){this.onChangeEmitter.dispose()}notify(t){t&&this.onChangeEmitter.fire({value:t})}}class zie{constructor(t,n,l){oe(this,"notification");oe(this,"display");oe(this,"text");oe(this,"enabled");oe(this,"onChangeEmitter");oe(this,"onChange");this.notification=t,this.display=n,this.text=l,this.enabled=!1,this.onChangeEmitter=new bs,this.onChange=this.onChangeEmitter.event}dispose(){this.onChangeEmitter.dispose()}update(t){if(!this.enabled||t.empty)return;const n=this.text.format(t);n&&this.onChangeEmitter.fire({value:n})}toggle(t){if(t.empty){this.notification.notify("No info for review");return}this.enabled=!this.enabled,this.update(t),this.display.toggleFocus(E1.REVIEW);const n=`Review is ${this.enabled?"on":"off"}`;this.notification.notify(n)}}const Hb="maidr-settings";class qie{constructor(t,n){oe(this,"storage");oe(this,"display");oe(this,"defaultSettings");oe(this,"currentSettings");oe(this,"observers");this.storage=t,this.display=n,this.observers=[],this.defaultSettings={general:{volume:50,highlightColor:"#03c809",brailleDisplaySize:32,minFrequency:200,maxFrequency:1e3,autoplayDuration:4e3,ariaMode:"assertive"},llm:{expertiseLevel:"basic",customInstruction:"",models:{OPENAI:{enabled:!1,apiKey:"",name:"OpenAI",version:"gpt-4o"},ANTHROPIC_CLAUDE:{enabled:!1,apiKey:"",name:"Anthropic Claude",version:"claude-3-7-sonnet-latest"},GOOGLE_GEMINI:{enabled:!1,apiKey:"",name:"Google Gemini",version:"gemini-2.0-flash"}}}};const l=this.storage.load(Hb);this.currentSettings=l??this.defaultSettings}get state(){return this.currentSettings}addObserver(t){this.observers.push(t)}removeObserver(t){this.observers=this.observers.filter(n=>n!==t)}notifyStateUpdate(){for(const t of this.observers)t.update(this.currentSettings)}loadSettings(){return this.currentSettings}saveSettings(t){this.currentSettings=t,this.storage.save(Hb,this.currentSettings),this.notifyStateUpdate()}resetSettings(){return this.currentSettings=this.defaultSettings,this.storage.remove(Hb),this.notifyStateUpdate(),this.currentSettings}toggle(){this.display.toggleFocus(E1.SETTINGS)}}class $ie{save(t,n){try{const l=JSON.stringify(n);localStorage.setItem(t,l)}catch(l){console.error(`Error while saving ${t} to storage`,l)}}load(t){try{const n=localStorage.getItem(t);return n===null?null:JSON.parse(n)}catch(n){return console.error(`Error while loading ${t} from storage`,n),null}}remove(t){try{localStorage.removeItem(t)}catch(n){console.error(`Error while removing ${t} from storage`,n)}}}class Uie{constructor(t){oe(this,"notification");oe(this,"mode");oe(this,"onChangeEmitter");oe(this,"onChange");this.notification=t,this.mode="verbose",this.onChangeEmitter=new bs,this.onChange=this.onChangeEmitter.event}dispose(){this.onChangeEmitter.dispose()}format(t){return typeof t=="string"?t:!t||t.empty?`No ${t.type==="trace"?"plot":t.type} info to display`:t.type==="figure"?this.formatFigureText(t.index,t.size,t.traceTypes):t.type==="subplot"?this.formatSubplotText(t.index,t.size,t.trace.traceType):this.mode==="verbose"?this.formatVerboseTraceText(t.text):this.formatTerseTraceText(t.text)}formatFigureText(t,n,l){const o=l.length===1?`This is a ${l[0]} plot`:`This is a multi-layered plot containing ${l.join(ve.COMMA_SPACE)} plots`;return`Subplot ${t} of ${n}: ${o}. Press 'ENTER' to select this subplot.`}formatSubplotText(t,n,l){return`Layer ${t} of ${n}: ${l} plot`}formatVerboseTraceText(t){const n=new Array;return n.push(t.main.label,ve.IS),t.range!==void 0?n.push(String(t.range.min),ve.THROUGH,String(t.range.max)):Array.isArray(t.main.value)?n.push(t.main.value.join(ve.COMMA_SPACE)):n.push(String(t.main.value)),n.push(ve.COMMA_SPACE,t.cross.label),t.section!==void 0&&(n.push(ve.COMMA_SPACE),Array.isArray(t.cross.value)&&n.push(String(t.cross.value.length),ve.SPACE),n.push(t.section)),Array.isArray(t.cross.value)?t.cross.value.length>1?n.push(ve.ARE,t.cross.value.join(ve.COMMA_SPACE)):t.cross.value.length>0&&n.push(ve.IS,t.cross.value.join(ve.COMMA_SPACE)):n.push(ve.IS,String(t.cross.value)),t.fill!==void 0&&n.push(ve.COMMA_SPACE,t.fill.label,ve.IS,t.fill.value),n.join(ve.EMPTY)}formatTerseTraceText(t){const n=new Array;return Array.isArray(t.main.value)?n.push(ve.OPEN_BRACKET,t.main.value.join(ve.COMMA_SPACE),ve.CLOSE_BRACKET):n.push(String(t.main.value),ve.COMMA_SPACE),t.section!==void 0&&t.fill!==void 0?Array.isArray(t.cross.value)?n.push(ve.OPEN_BRACKET,t.cross.value.join(ve.COMMA_SPACE),ve.CLOSE_BRACKET,ve.COMMA_SPACE,t.section):n.push(String(t.cross.value),ve.COMMA_SPACE,t.section):Array.isArray(t.cross.value)?n.push(ve.OPEN_BRACKET,t.cross.value.join(ve.COMMA_SPACE),ve.CLOSE_BRACKET):n.push(String(t.cross.value)),t.section!==void 0&&t.fill===void 0&&(n.push(ve.COMMA_SPACE),Array.isArray(t.cross.value)&&n.push(String(t.cross.value.length),ve.SPACE),n.push(t.section)),t.fill!==void 0&&(t.section!==void 0?n.push(ve.SPACE,t.fill.value):n.push(ve.COMMA_SPACE,t.fill.value)),n.join(ve.EMPTY)}update(t){if(this.mode==="off")return;const n=this.format(t);n&&this.onChangeEmitter.fire({value:n})}toggle(){switch(this.mode){case"off":this.mode="verbose";break;case"terse":this.mode="off";break;case"verbose":this.mode="terse";break}const t=`Text mode is ${this.mode}`;return this.notification.notify(t),this.mode!=="off"}}class hB{constructor(t,n,l){oe(this,"figure");oe(this,"context");oe(this,"displayService");oe(this,"notificationService");oe(this,"settingsService");oe(this,"audioService");oe(this,"brailleService");oe(this,"textService");oe(this,"reviewService");oe(this,"autoplayService");oe(this,"highlightService");oe(this,"helpService");oe(this,"chatService");oe(this,"textViewModel");oe(this,"brailleViewModel");oe(this,"reviewViewModel");oe(this,"displayViewModel");oe(this,"helpViewModel");oe(this,"chatViewModel");oe(this,"settingsViewModel");oe(this,"keybinding");this.figure=new iI(t),this.context=new Mj(this.figure),this.displayService=new G0e(this.context,n,l),this.notificationService=new Fie;const o=new $ie;this.settingsService=new qie(o,this.displayService),this.audioService=new uI(this.notificationService,this.context.state,this.settingsService),this.brailleService=new gI(this.context,this.notificationService,this.displayService),this.textService=new Uie(this.notificationService),this.reviewService=new zie(this.notificationService,this.displayService,this.textService),this.autoplayService=new dI(this.context,this.notificationService,this.settingsService),this.highlightService=new X0e(this.settingsService),this.helpService=new Z0e(this.context,this.displayService),this.chatService=new SI(this.displayService,t),this.textViewModel=new jz(Pa,this.textService,this.notificationService,this.autoplayService),this.brailleViewModel=new cz(Pa,this.brailleService),this.reviewViewModel=new Oz(Pa,this.reviewService),this.displayViewModel=new xz(Pa,this.displayService),this.helpViewModel=new Sz(Pa,this.helpService),this.chatViewModel=new yz(Pa,this.chatService,this.audioService),this.settingsViewModel=new Vz(Pa,this.settingsService),this.notificationService.notify(this.context.getInstruction(!1)),this.keybinding=new Iie({context:this.context,audioService:this.audioService,autoplayService:this.autoplayService,highlightService:this.highlightService,brailleViewModel:this.brailleViewModel,chatViewModel:this.chatViewModel,helpViewModel:this.helpViewModel,reviewViewModel:this.reviewViewModel,settingsViewModel:this.settingsViewModel,textViewModel:this.textViewModel}),this.registerViewModels(),this.registerObservers(),this.settingsService.addObserver(this.highlightService),this.keybinding.register(this.context.scope)}dispose(){this.keybinding.unregister(),c5.instance.dispose(),this.settingsViewModel.dispose(),this.chatViewModel.dispose(),this.helpViewModel.dispose(),this.displayViewModel.dispose(),this.reviewViewModel.dispose(),this.brailleViewModel.dispose(),this.textViewModel.dispose(),this.highlightService.dispose(),this.autoplayService.dispose(),this.textService.dispose(),this.reviewService.dispose(),this.brailleService.dispose(),this.audioService.dispose(),this.notificationService.dispose(),this.displayService.dispose(),this.context.dispose(),this.figure.dispose()}registerViewModels(){c5.instance.register("text",this.textViewModel),c5.instance.register("braille",this.brailleViewModel),c5.instance.register("review",this.reviewViewModel),c5.instance.register("display",this.displayViewModel),c5.instance.register("help",this.helpViewModel),c5.instance.register("chat",this.chatViewModel),c5.instance.register("settings",this.settingsViewModel)}registerObservers(){this.figure.addObserver(this.textService),this.figure.addObserver(this.highlightService),this.figure.subplots.forEach(t=>t.forEach(n=>{n.addObserver(this.textService),n.addObserver(this.audioService),n.addObserver(this.brailleService),n.addObserver(this.highlightService),n.traces.forEach(l=>l.forEach(o=>{o.addObserver(this.audioService),o.addObserver(this.brailleService),o.addObserver(this.textService),o.addObserver(this.reviewService),o.addObserver(this.highlightService)}))}))}}document.readyState==="loading"?document.addEventListener(E4.DOM_LOADED,pB):pB();function pB(){const e=document.querySelectorAll(`[${ve.MAIDR_DATA}]`);if(e.forEach(l=>{const o=l.getAttribute(ve.MAIDR_DATA);if(o)try{const a=JSON.parse(o);mB(a,l)}catch(a){console.error("Error parsing maidr attribute:",a)}}),e.length!==0)return;const t=window.maidr;if(!t)return;const n=document.getElementById(t.id);n&&mB(t,n)}function mB(e,t){let n=null,l=null,o=null;const a=()=>{setTimeout(()=>{if(!n)return;const u=document.activeElement;n.contains(u)||(o==null||o.dispose(),o=null)},0)},i=()=>{setTimeout(()=>{if(!(!n||!l)&&!o){const u=JSON.parse(JSON.stringify(e));o=new hB(u,t,l)}},0)},s=document.createElement(ve.FIGURE);s.id=`${ve.MAIDR_FIGURE}-${e.id}`,t.parentNode.replaceChild(s,t),s.appendChild(t);const T=document.createElement(ve.ARTICLE);T.id=`${ve.MAIDR_ARTICLE}-${e.id}`,s.parentNode.replaceChild(T,s),T.appendChild(s),l=document.createElement(ve.DIV),l.id=`${ve.REACT_CONTAINER}-${e.id}`,s.appendChild(l),n=s,t.addEventListener(E4.FOCUS_IN,i),t.addEventListener(E4.CLICK,i),n.addEventListener(E4.FOCUS_OUT,a),(()=>{const u=JSON.parse(JSON.stringify(e));new hB(u,t,l).dispose()})()}});
|
|
667
667
|
//# sourceMappingURL=maidr.js.map
|