@hpcc-js/composite 3.2.1 → 3.2.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +28457 -2410
- package/dist/index.js.map +1 -1
- package/dist/index.umd.cjs +323 -5
- package/dist/index.umd.cjs.map +1 -1
- package/package.json +12 -12
package/dist/index.umd.cjs
CHANGED
|
@@ -1,8 +1,326 @@
|
|
|
1
1
|
(function(){"use strict";try{if(typeof document<"u"){var o=document.createElement("style");o.appendChild(document.createTextNode(".composite_ChartPanel>.body{margin:0;padding:0;display:flex;flex-flow:row}.composite_ChartPanel>.body>article{flex:3 1 60%;order:2}.composite_ChartPanel>.body>nav{flex:1 6 20%;order:1}.composite_ChartPanel>.body>aside{margin-left:4px;flex:1 6 20%;order:3}header,footer{display:block}.composite_Dermatology{background-color:#f8f8ff}.composite_Dermatology .common_Icon{background-color:red;opacity:.75}.composite_Dermatology .common_Icon .common_Shape{fill:#fff;stroke:#a9a9a9;cursor:pointer}.composite_Dermatology .common_Icon.show .common_Shape{fill:#d3d3d3}.composite_Dermatology .common_Icon .common_FAChar .common_Text{fill:#a9a9a9;cursor:pointer}.composite_Dermatology .other_PropertyEditor{font-family:sans-serif;font-size:11px}.composite_Dermatology .other_PropertyEditor input{font-family:sans-serif;font-size:11px;border:0px}.composite_Dermatology .other_PropertyEditor .property-label{height:unset}.composite_MegaChart-Info,.composite_MegaChart-Info *,.composite_MegaChart-Maximize,.composite_MegaChart-Maximize *{font-family:FontAwesome}")),document.head.appendChild(o)}}catch(e){console.error("vite-plugin-css-injected-by-js",e)}})();
|
|
2
|
-
(function(global,factory){typeof exports=="object"&&typeof module<"u"?factory(exports,require("@hpcc-js/common"),require("@hpcc-js/api"),require("@hpcc-js/form"),require("@hpcc-js/other")):typeof define=="function"&&define.amd?define(["exports","@hpcc-js/common","@hpcc-js/api","@hpcc-js/form","@hpcc-js/other"],factory):(global=typeof globalThis<"u"?globalThis:global||self,factory(global["@hpcc-js/composite"]={},global["@hpcc-js/common"],global["@hpcc-js/api"],global["@hpcc-js/form"],global["@hpcc-js/other"]))})(this,function(exports2,common,api,form,other){"use strict";var __defProp=Object.defineProperty;var __defNormalProp=(obj,key,value)=>key in obj?__defProp(obj,key,{enumerable:!0,configurable:!0,writable:!0,value}):obj[key]=value;var __publicField=(obj,key,value)=>__defNormalProp(obj,typeof key!="symbol"?key+"":key,value);const PKG_NAME="@hpcc-js/composite",PKG_VERSION="3.1.1",BUILD_VERSION="3.2.1";(function(){try{if(typeof document<"u"){var r2=document.createElement("style");r2.appendChild(document.createTextNode('@layer rdg{@layer Defaults,FocusSink,CheckboxInput,CheckboxIcon,CheckboxLabel,Cell,HeaderCell,SummaryCell,EditCell,Row,HeaderRow,SummaryRow,GroupedRow,Root;}@layer rdg.MeasuringCell{.mlln6zg7-0-0-beta-47{contain:strict;grid-row:1;visibility:hidden}}@layer rdg.Cell{.cj343x07-0-0-beta-47{position:relative;padding-block:0;padding-inline:8px;border-inline-end:1px solid var(--rdg-border-color);border-block-end:1px solid var(--rdg-border-color);grid-row-start:var(--rdg-grid-row-start);align-content:center;background-color:inherit;white-space:nowrap;overflow:clip;text-overflow:ellipsis;outline:none}.cj343x07-0-0-beta-47[aria-selected=true]{outline:2px solid var(--rdg-selection-color);outline-offset:-2px}}@layer rdg.Cell{.csofj7r7-0-0-beta-47{position:sticky;z-index:1}.csofj7r7-0-0-beta-47:nth-last-child(1 of.csofj7r7-0-0-beta-47){box-shadow:var(--rdg-cell-frozen-box-shadow)}}@layer rdg.CheckboxInput{.c1bn88vv7-0-0-beta-47{display:block;margin:auto;inline-size:20px;block-size:20px}.c1bn88vv7-0-0-beta-47:focus-visible{outline:2px solid var(--rdg-checkbox-focus-color);outline-offset:-3px}.c1bn88vv7-0-0-beta-47:enabled{cursor:pointer}}@layer rdg.GroupCellContent{.g1s9ylgp7-0-0-beta-47{outline:none}}@layer rdg.GroupCellCaret{.cz54e4y7-0-0-beta-47{margin-inline-start:4px;stroke:currentColor;stroke-width:1.5px;fill:transparent;vertical-align:middle}.cz54e4y7-0-0-beta-47>path{transition:d .1s}}@layer rdg.DragHandle{.c1w9bbhr7-0-0-beta-47{--rdg-drag-handle-size: 8px;z-index:0;cursor:move;inline-size:var(--rdg-drag-handle-size);block-size:var(--rdg-drag-handle-size);background-color:var(--rdg-selection-color);place-self:end}.c1w9bbhr7-0-0-beta-47:hover{--rdg-drag-handle-size: 16px;border:2px solid var(--rdg-selection-color);background-color:var(--rdg-background-color)}}@layer rdg.DragHandle{.c1creorc7-0-0-beta-47{z-index:1;position:sticky}}@layer rdg.EditCell{.cis5rrm7-0-0-beta-47{padding:0}}@layer rdg.SortableHeaderCell{.h44jtk67-0-0-beta-47{display:flex}}@layer rdg.SortableHeaderCellName{.hcgkhxz7-0-0-beta-47{flex-grow:1;overflow:clip;text-overflow:ellipsis}}@layer rdg.HeaderCell{.c6l2wv17-0-0-beta-47{cursor:pointer}}@layer rdg.HeaderCell{.c1kqdw7y7-0-0-beta-47{touch-action:none}}@layer rdg.HeaderCell{.r1y6ywlx7-0-0-beta-47{cursor:col-resize;position:absolute;inset-block-start:0;inset-inline-end:0;inset-block-end:0;inline-size:10px}}.c1bezg5o7-0-0-beta-47{opacity:.5}.c1vc96037-0-0-beta-47{background-color:var(--rdg-header-draggable-background-color)}@layer rdg.Row{.r1upfr807-0-0-beta-47{display:contents;background-color:var(--rdg-background-color)}.r1upfr807-0-0-beta-47:hover{background-color:var(--rdg-row-hover-background-color)}.r1upfr807-0-0-beta-47[aria-selected=true]{background-color:var(--rdg-row-selected-background-color)}.r1upfr807-0-0-beta-47[aria-selected=true]:hover{background-color:var(--rdg-row-selected-hover-background-color)}}@layer rdg.FocusSink{.r190mhd37-0-0-beta-47{outline:2px solid var(--rdg-selection-color);outline-offset:-2px}}@layer rdg.FocusSink{.r139qu9m7-0-0-beta-47:before{content:"";display:inline-block;block-size:100%;position:sticky;inset-inline-start:0;border-inline-start:2px solid var(--rdg-selection-color)}}@layer rdg.HeaderRow{.h10tskcx7-0-0-beta-47{display:contents;background-color:var(--rdg-header-background-color);font-weight:700}.h10tskcx7-0-0-beta-47>.cj343x07-0-0-beta-47{z-index:2;position:sticky}.h10tskcx7-0-0-beta-47>.csofj7r7-0-0-beta-47{z-index:3}}@layer rdg.Cell{.c6ra8a37-0-0-beta-47{background-color:#ccf}}@layer rdg.Cell{.cq910m07-0-0-beta-47{background-color:#ccf}.cq910m07-0-0-beta-47.c6ra8a37-0-0-beta-47{background-color:#99f}}@layer rdg.SortIcon{.a3ejtar7-0-0-beta-47{fill:currentColor}.a3ejtar7-0-0-beta-47>path{transition:d .1s}}@layer rdg.Defaults{.rnvodz57-0-0-beta-47 *,.rnvodz57-0-0-beta-47 *:before,.rnvodz57-0-0-beta-47 *:after{box-sizing:inherit}}@layer rdg.Root{.rnvodz57-0-0-beta-47{--rdg-color: #000;--rdg-border-color: #ddd;--rdg-summary-border-color: #aaa;--rdg-background-color: hsl(0deg 0% 100%);--rdg-header-background-color: hsl(0deg 0% 97.5%);--rdg-header-draggable-background-color: hsl(0deg 0% 90.5%);--rdg-row-hover-background-color: hsl(0deg 0% 96%);--rdg-row-selected-background-color: hsl(207deg 76% 92%);--rdg-row-selected-hover-background-color: hsl(207deg 76% 88%);--rdg-checkbox-focus-color: hsl(207deg 100% 69%);--rdg-selection-color: #66afe9;--rdg-font-size: 14px;--rdg-cell-frozen-box-shadow: 2px 0 5px -2px rgba(136, 136, 136, .3);display:grid;color-scheme:var(--rdg-color-scheme, light dark);accent-color:light-dark(hsl(207deg 100% 29%),hsl(207deg 100% 79%));contain:content;content-visibility:auto;block-size:350px;border:1px solid var(--rdg-border-color);box-sizing:border-box;overflow:auto;background-color:var(--rdg-background-color);color:var(--rdg-color);font-size:var(--rdg-font-size)}.rnvodz57-0-0-beta-47:dir(rtl){--rdg-cell-frozen-box-shadow: -2px 0 5px -2px rgba(136, 136, 136, .3)}.rnvodz57-0-0-beta-47:before{content:"";grid-column:1/-1;grid-row:1/-1}.rnvodz57-0-0-beta-47.rdg-dark{--rdg-color-scheme: dark;--rdg-color: #ddd;--rdg-border-color: #444;--rdg-summary-border-color: #555;--rdg-background-color: hsl(0deg 0% 13%);--rdg-header-background-color: hsl(0deg 0% 10.5%);--rdg-header-draggable-background-color: hsl(0deg 0% 17.5%);--rdg-row-hover-background-color: hsl(0deg 0% 9%);--rdg-row-selected-background-color: hsl(207deg 76% 42%);--rdg-row-selected-hover-background-color: hsl(207deg 76% 38%);--rdg-checkbox-focus-color: hsl(207deg 100% 89%)}.rnvodz57-0-0-beta-47.rdg-light{--rdg-color-scheme: light}@media (prefers-color-scheme: dark){.rnvodz57-0-0-beta-47:not(.rdg-light){--rdg-color: #ddd;--rdg-border-color: #444;--rdg-summary-border-color: #555;--rdg-background-color: hsl(0deg 0% 13%);--rdg-header-background-color: hsl(0deg 0% 10.5%);--rdg-header-draggable-background-color: hsl(0deg 0% 17.5%);--rdg-row-hover-background-color: hsl(0deg 0% 9%);--rdg-row-selected-background-color: hsl(207deg 76% 42%);--rdg-row-selected-hover-background-color: hsl(207deg 76% 38%);--rdg-checkbox-focus-color: hsl(207deg 100% 89%)}}.rnvodz57-0-0-beta-47>:nth-last-child(1 of.rdg-top-summary-row)>.cj343x07-0-0-beta-47{border-block-end:2px solid var(--rdg-summary-border-color)}.rnvodz57-0-0-beta-47>:nth-child(1 of.rdg-bottom-summary-row)>.cj343x07-0-0-beta-47{border-block-start:2px solid var(--rdg-summary-border-color)}}@layer rdg.Root{.vlqv91k7-0-0-beta-47{-webkit-user-select:none;user-select:none}.vlqv91k7-0-0-beta-47 .r1upfr807-0-0-beta-47{cursor:move}}@layer rdg.FocusSink{.f1lsfrzw7-0-0-beta-47{grid-column:1/-1;pointer-events:none;z-index:1}}@layer rdg.FocusSink{.f1cte0lg7-0-0-beta-47{z-index:3}}@layer rdg.SummaryCell{.s8wc6fl7-0-0-beta-47{inset-block-start:var(--rdg-summary-row-top);inset-block-end:var(--rdg-summary-row-bottom)}}@layer rdg.SummaryRow{.skuhp557-0-0-beta-47>.cj343x07-0-0-beta-47{position:sticky}}@layer rdg.SummaryRow{.tf8l5ub7-0-0-beta-47>.cj343x07-0-0-beta-47{z-index:2}.tf8l5ub7-0-0-beta-47>.csofj7r7-0-0-beta-47{z-index:3}}@layer rdg.GroupedRow{.g1yxluv37-0-0-beta-47:not([aria-selected=true]){background-color:var(--rdg-header-background-color)}.g1yxluv37-0-0-beta-47>.cj343x07-0-0-beta-47:not(:last-child,.csofj7r7-0-0-beta-47),.g1yxluv37-0-0-beta-47>:nth-last-child(n+2 of.csofj7r7-0-0-beta-47){border-inline-end:none}}@layer rdg.TextEditor{.t7vyx3i7-0-0-beta-47{-webkit-appearance:none;-moz-appearance:none;appearance:none;box-sizing:border-box;inline-size:100%;block-size:100%;padding-block:0;padding-inline:6px;border:2px solid #ccc;vertical-align:top;color:var(--rdg-color);background-color:var(--rdg-background-color);font-family:inherit;font-size:var(--rdg-font-size)}.t7vyx3i7-0-0-beta-47:focus{border-color:var(--rdg-selection-color);outline:none}.t7vyx3i7-0-0-beta-47::placeholder{color:#999;opacity:1}}.dgrid2_Table .rdg{font-family:monospace,Courier New,Courier}.dgrid2_Table .rdg-checkbox-label .rdg-checkbox{block-size:16px;inline-size:16px;border-width:2px;box-shadow:inset 0 0 0 3px var(--rdg-background-color)}')),document.head.appendChild(r2)}}catch(e2){console.error("vite-plugin-css-injected-by-js",e2)}})();var __defProp$1=Object.defineProperty,__defNormalProp$1=(obj,key,value)=>key in obj?__defProp$1(obj,key,{enumerable:!0,configurable:!0,writable:!0,value}):obj[key]=value,__publicField$1=(obj,key,value)=>__defNormalProp$1(obj,typeof key!="symbol"?key+"":key,value),n,l$1,u$2,i$1,o$1,r$2,f$2,e$1,c$1,s$1,a$1,h$1={},v$1=[],p$1=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,y$1=Array.isArray;function d$1(n2,l2){for(var u2 in l2)n2[u2]=l2[u2];return n2}function w$2(n2){n2&&n2.parentNode&&n2.parentNode.removeChild(n2)}function _$1(l2,u2,t2){var i2,o2,r2,f2={};for(r2 in u2)r2=="key"?i2=u2[r2]:r2=="ref"?o2=u2[r2]:f2[r2]=u2[r2];if(arguments.length>2&&(f2.children=arguments.length>3?n.call(arguments,2):t2),typeof l2=="function"&&l2.defaultProps!=null)for(r2 in l2.defaultProps)f2[r2]===void 0&&(f2[r2]=l2.defaultProps[r2]);return g$2(l2,f2,i2,o2,null)}function g$2(n2,t2,i2,o2,r2){var f2={type:n2,props:t2,key:i2,ref:o2,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,constructor:void 0,__v:r2??++u$2,__i:-1,__u:0};return r2==null&&l$1.vnode!=null&&l$1.vnode(f2),f2}function m$1(){return{current:null}}function b(n2){return n2.children}function k$2(n2,l2){this.props=n2,this.context=l2}function x$2(n2,l2){if(l2==null)return n2.__?x$2(n2.__,n2.__i+1):null;for(var u2;l2<n2.__k.length;l2++)if((u2=n2.__k[l2])!=null&&u2.__e!=null)return u2.__e;return typeof n2.type=="function"?x$2(n2):null}function C$2(n2){var l2,u2;if((n2=n2.__)!=null&&n2.__c!=null){for(n2.__e=n2.__c.base=null,l2=0;l2<n2.__k.length;l2++)if((u2=n2.__k[l2])!=null&&u2.__e!=null){n2.__e=n2.__c.base=u2.__e;break}return C$2(n2)}}function S(n2){(!n2.__d&&(n2.__d=!0)&&i$1.push(n2)&&!M$1.__r++||o$1!==l$1.debounceRendering)&&((o$1=l$1.debounceRendering)||r$2)(M$1)}function M$1(){var n2,u2,t2,o2,r2,e2,c2,s2;for(i$1.sort(f$2);n2=i$1.shift();)n2.__d&&(u2=i$1.length,o2=void 0,e2=(r2=(t2=n2).__v).__e,c2=[],s2=[],t2.__P&&((o2=d$1({},r2)).__v=r2.__v+1,l$1.vnode&&l$1.vnode(o2),O$1(t2.__P,o2,r2,t2.__n,t2.__P.namespaceURI,32&r2.__u?[e2]:null,c2,e2??x$2(r2),!!(32&r2.__u),s2),o2.__v=r2.__v,o2.__.__k[o2.__i]=o2,j$2(c2,o2,s2),o2.__e!=e2&&C$2(o2)),i$1.length>u2&&i$1.sort(f$2));M$1.__r=0}function P$2(n2,l2,u2,t2,i2,o2,r2,f2,e2,c2,s2){var a2,p2,y2,d2,w2,_2=t2&&t2.__k||v$1,g2=l2.length;for(u2.__d=e2,$$1(u2,l2,_2),e2=u2.__d,a2=0;a2<g2;a2++)(y2=u2.__k[a2])!=null&&(p2=y2.__i===-1?h$1:_2[y2.__i]||h$1,y2.__i=a2,O$1(n2,y2,p2,i2,o2,r2,f2,e2,c2,s2),d2=y2.__e,y2.ref&&p2.ref!=y2.ref&&(p2.ref&&E$1(p2.ref,null,y2),s2.push(y2.ref,y2.__c||d2,y2)),w2==null&&d2!=null&&(w2=d2),65536&y2.__u||p2.__k===y2.__k?e2=I$1(y2,e2,n2):typeof y2.type=="function"&&y2.__d!==void 0?e2=y2.__d:d2&&(e2=d2.nextSibling),y2.__d=void 0,y2.__u&=-196609);u2.__d=e2,u2.__e=w2}function $$1(n2,l2,u2){var t2,i2,o2,r2,f2,e2=l2.length,c2=u2.length,s2=c2,a2=0;for(n2.__k=[],t2=0;t2<e2;t2++)(i2=l2[t2])!=null&&typeof i2!="boolean"&&typeof i2!="function"?(r2=t2+a2,(i2=n2.__k[t2]=typeof i2=="string"||typeof i2=="number"||typeof i2=="bigint"||i2.constructor==String?g$2(null,i2,null,null,null):y$1(i2)?g$2(b,{children:i2},null,null,null):i2.constructor===void 0&&i2.__b>0?g$2(i2.type,i2.props,i2.key,i2.ref?i2.ref:null,i2.__v):i2).__=n2,i2.__b=n2.__b+1,o2=null,(f2=i2.__i=L$1(i2,u2,r2,s2))!==-1&&(s2--,(o2=u2[f2])&&(o2.__u|=131072)),o2==null||o2.__v===null?(f2==-1&&a2--,typeof i2.type!="function"&&(i2.__u|=65536)):f2!==r2&&(f2==r2-1?a2--:f2==r2+1?a2++:(f2>r2?a2--:a2++,i2.__u|=65536))):i2=n2.__k[t2]=null;if(s2)for(t2=0;t2<c2;t2++)(o2=u2[t2])!=null&&!(131072&o2.__u)&&(o2.__e==n2.__d&&(n2.__d=x$2(o2)),N$1(o2,o2))}function I$1(n2,l2,u2){var t2,i2;if(typeof n2.type=="function"){for(t2=n2.__k,i2=0;t2&&i2<t2.length;i2++)t2[i2]&&(t2[i2].__=n2,l2=I$1(t2[i2],l2,u2));return l2}n2.__e!=l2&&(l2&&n2.type&&!u2.contains(l2)&&(l2=x$2(n2)),u2.insertBefore(n2.__e,l2||null),l2=n2.__e);do l2=l2&&l2.nextSibling;while(l2!=null&&l2.nodeType===8);return l2}function H$1(n2,l2){return l2=l2||[],n2==null||typeof n2=="boolean"||(y$1(n2)?n2.some(function(n3){H$1(n3,l2)}):l2.push(n2)),l2}function L$1(n2,l2,u2,t2){var i2=n2.key,o2=n2.type,r2=u2-1,f2=u2+1,e2=l2[u2];if(e2===null||e2&&i2==e2.key&&o2===e2.type&&!(131072&e2.__u))return u2;if((typeof o2!="function"||o2===b||i2)&&t2>(e2!=null&&!(131072&e2.__u)?1:0))for(;r2>=0||f2<l2.length;){if(r2>=0){if((e2=l2[r2])&&!(131072&e2.__u)&&i2==e2.key&&o2===e2.type)return r2;r2--}if(f2<l2.length){if((e2=l2[f2])&&!(131072&e2.__u)&&i2==e2.key&&o2===e2.type)return f2;f2++}}return-1}function T$2(n2,l2,u2){l2[0]==="-"?n2.setProperty(l2,u2??""):n2[l2]=u2==null?"":typeof u2!="number"||p$1.test(l2)?u2:u2+"px"}function A$2(n2,l2,u2,t2,i2){var o2;n:if(l2==="style")if(typeof u2=="string")n2.style.cssText=u2;else{if(typeof t2=="string"&&(n2.style.cssText=t2=""),t2)for(l2 in t2)u2&&l2 in u2||T$2(n2.style,l2,"");if(u2)for(l2 in u2)t2&&u2[l2]===t2[l2]||T$2(n2.style,l2,u2[l2])}else if(l2[0]==="o"&&l2[1]==="n")o2=l2!==(l2=l2.replace(/(PointerCapture)$|Capture$/i,"$1")),l2=l2.toLowerCase()in n2||l2==="onFocusOut"||l2==="onFocusIn"?l2.toLowerCase().slice(2):l2.slice(2),n2.l||(n2.l={}),n2.l[l2+o2]=u2,u2?t2?u2.u=t2.u:(u2.u=e$1,n2.addEventListener(l2,o2?s$1:c$1,o2)):n2.removeEventListener(l2,o2?s$1:c$1,o2);else{if(i2=="http://www.w3.org/2000/svg")l2=l2.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if(l2!="width"&&l2!="height"&&l2!="href"&&l2!="list"&&l2!="form"&&l2!="tabIndex"&&l2!="download"&&l2!="rowSpan"&&l2!="colSpan"&&l2!="role"&&l2!="popover"&&l2 in n2)try{n2[l2]=u2??"";break n}catch{}typeof u2=="function"||(u2==null||u2===!1&&l2[4]!=="-"?n2.removeAttribute(l2):n2.setAttribute(l2,l2=="popover"&&u2==1?"":u2))}}function F$2(n2){return function(u2){if(this.l){var t2=this.l[u2.type+n2];if(u2.t==null)u2.t=e$1++;else if(u2.t<t2.u)return;return l$1.event&&(u2=l$1.event(u2)),"handleEvent"in t2?t2.handleEvent(u2):t2(u2)}}}function O$1(n2,u2,t2,i2,o2,r2,f2,e2,c2,s2){var a2,h2,v2,p2,w2,_2,g2,m2,x2,C2,S2,M2,$2,I2,H2,L2,T2=u2.type;if(u2.constructor!==void 0)return null;128&t2.__u&&(c2=!!(32&t2.__u),r2=[e2=u2.__e=t2.__e]),(a2=l$1.__b)&&a2(u2);n:if(typeof T2=="function")try{if(m2=u2.props,x2="prototype"in T2&&T2.prototype.render,C2=(a2=T2.contextType)&&i2[a2.__c],S2=a2?C2?C2.props.value:a2.__:i2,t2.__c?g2=(h2=u2.__c=t2.__c).__=h2.__E:(x2?u2.__c=h2=new T2(m2,S2):(u2.__c=h2=new k$2(m2,S2),h2.constructor=T2,h2.render=V$1),C2&&C2.sub(h2),h2.props=m2,h2.state||(h2.state={}),h2.context=S2,h2.__n=i2,v2=h2.__d=!0,h2.__h=[],h2._sb=[]),x2&&h2.__s==null&&(h2.__s=h2.state),x2&&T2.getDerivedStateFromProps!=null&&(h2.__s==h2.state&&(h2.__s=d$1({},h2.__s)),d$1(h2.__s,T2.getDerivedStateFromProps(m2,h2.__s))),p2=h2.props,w2=h2.state,h2.__v=u2,v2)x2&&T2.getDerivedStateFromProps==null&&h2.componentWillMount!=null&&h2.componentWillMount(),x2&&h2.componentDidMount!=null&&h2.__h.push(h2.componentDidMount);else{if(x2&&T2.getDerivedStateFromProps==null&&m2!==p2&&h2.componentWillReceiveProps!=null&&h2.componentWillReceiveProps(m2,S2),!h2.__e&&(h2.shouldComponentUpdate!=null&&h2.shouldComponentUpdate(m2,h2.__s,S2)===!1||u2.__v===t2.__v)){for(u2.__v!==t2.__v&&(h2.props=m2,h2.state=h2.__s,h2.__d=!1),u2.__e=t2.__e,u2.__k=t2.__k,u2.__k.some(function(n3){n3&&(n3.__=u2)}),M2=0;M2<h2._sb.length;M2++)h2.__h.push(h2._sb[M2]);h2._sb=[],h2.__h.length&&f2.push(h2);break n}h2.componentWillUpdate!=null&&h2.componentWillUpdate(m2,h2.__s,S2),x2&&h2.componentDidUpdate!=null&&h2.__h.push(function(){h2.componentDidUpdate(p2,w2,_2)})}if(h2.context=S2,h2.props=m2,h2.__P=n2,h2.__e=!1,$2=l$1.__r,I2=0,x2){for(h2.state=h2.__s,h2.__d=!1,$2&&$2(u2),a2=h2.render(h2.props,h2.state,h2.context),H2=0;H2<h2._sb.length;H2++)h2.__h.push(h2._sb[H2]);h2._sb=[]}else do h2.__d=!1,$2&&$2(u2),a2=h2.render(h2.props,h2.state,h2.context),h2.state=h2.__s;while(h2.__d&&++I2<25);h2.state=h2.__s,h2.getChildContext!=null&&(i2=d$1(d$1({},i2),h2.getChildContext())),x2&&!v2&&h2.getSnapshotBeforeUpdate!=null&&(_2=h2.getSnapshotBeforeUpdate(p2,w2)),P$2(n2,y$1(L2=a2!=null&&a2.type===b&&a2.key==null?a2.props.children:a2)?L2:[L2],u2,t2,i2,o2,r2,f2,e2,c2,s2),h2.base=u2.__e,u2.__u&=-161,h2.__h.length&&f2.push(h2),g2&&(h2.__E=h2.__=null)}catch(n3){if(u2.__v=null,c2||r2!=null){for(u2.__u|=c2?160:128;e2&&e2.nodeType===8&&e2.nextSibling;)e2=e2.nextSibling;r2[r2.indexOf(e2)]=null,u2.__e=e2}else u2.__e=t2.__e,u2.__k=t2.__k;l$1.__e(n3,u2,t2)}else r2==null&&u2.__v===t2.__v?(u2.__k=t2.__k,u2.__e=t2.__e):u2.__e=z$2(t2.__e,u2,t2,i2,o2,r2,f2,c2,s2);(a2=l$1.diffed)&&a2(u2)}function j$2(n2,u2,t2){u2.__d=void 0;for(var i2=0;i2<t2.length;i2++)E$1(t2[i2],t2[++i2],t2[++i2]);l$1.__c&&l$1.__c(u2,n2),n2.some(function(u3){try{n2=u3.__h,u3.__h=[],n2.some(function(n3){n3.call(u3)})}catch(n3){l$1.__e(n3,u3.__v)}})}function z$2(u2,t2,i2,o2,r2,f2,e2,c2,s2){var a2,v2,p2,d2,_2,g2,m2,b2=i2.props,k2=t2.props,C2=t2.type;if(C2==="svg"?r2="http://www.w3.org/2000/svg":C2==="math"?r2="http://www.w3.org/1998/Math/MathML":r2||(r2="http://www.w3.org/1999/xhtml"),f2!=null){for(a2=0;a2<f2.length;a2++)if((_2=f2[a2])&&"setAttribute"in _2==!!C2&&(C2?_2.localName===C2:_2.nodeType===3)){u2=_2,f2[a2]=null;break}}if(u2==null){if(C2===null)return document.createTextNode(k2);u2=document.createElementNS(r2,C2,k2.is&&k2),c2&&(l$1.__m&&l$1.__m(t2,f2),c2=!1),f2=null}if(C2===null)b2===k2||c2&&u2.data===k2||(u2.data=k2);else{if(f2=f2&&n.call(u2.childNodes),b2=i2.props||h$1,!c2&&f2!=null)for(b2={},a2=0;a2<u2.attributes.length;a2++)b2[(_2=u2.attributes[a2]).name]=_2.value;for(a2 in b2)if(_2=b2[a2],a2!="children"){if(a2=="dangerouslySetInnerHTML")p2=_2;else if(!(a2 in k2)){if(a2=="value"&&"defaultValue"in k2||a2=="checked"&&"defaultChecked"in k2)continue;A$2(u2,a2,null,_2,r2)}}for(a2 in k2)_2=k2[a2],a2=="children"?d2=_2:a2=="dangerouslySetInnerHTML"?v2=_2:a2=="value"?g2=_2:a2=="checked"?m2=_2:c2&&typeof _2!="function"||b2[a2]===_2||A$2(u2,a2,_2,b2[a2],r2);if(v2)c2||p2&&(v2.__html===p2.__html||v2.__html===u2.innerHTML)||(u2.innerHTML=v2.__html),t2.__k=[];else if(p2&&(u2.innerHTML=""),P$2(u2,y$1(d2)?d2:[d2],t2,i2,o2,C2==="foreignObject"?"http://www.w3.org/1999/xhtml":r2,f2,e2,f2?f2[0]:i2.__k&&x$2(i2,0),c2,s2),f2!=null)for(a2=f2.length;a2--;)w$2(f2[a2]);c2||(a2="value",C2==="progress"&&g2==null?u2.removeAttribute("value"):g2!==void 0&&(g2!==u2[a2]||C2==="progress"&&!g2||C2==="option"&&g2!==b2[a2])&&A$2(u2,a2,g2,b2[a2],r2),a2="checked",m2!==void 0&&m2!==u2[a2]&&A$2(u2,a2,m2,b2[a2],r2))}return u2}function E$1(n2,u2,t2){try{if(typeof n2=="function"){var i2=typeof n2.__u=="function";i2&&n2.__u(),i2&&u2==null||(n2.__u=n2(u2))}else n2.current=u2}catch(n3){l$1.__e(n3,t2)}}function N$1(n2,u2,t2){var i2,o2;if(l$1.unmount&&l$1.unmount(n2),(i2=n2.ref)&&(i2.current&&i2.current!==n2.__e||E$1(i2,null,u2)),(i2=n2.__c)!=null){if(i2.componentWillUnmount)try{i2.componentWillUnmount()}catch(n3){l$1.__e(n3,u2)}i2.base=i2.__P=null}if(i2=n2.__k)for(o2=0;o2<i2.length;o2++)i2[o2]&&N$1(i2[o2],u2,t2||typeof n2.type!="function");t2||w$2(n2.__e),n2.__c=n2.__=n2.__e=n2.__d=void 0}function V$1(n2,l2,u2){return this.constructor(n2,u2)}function q$2(u2,t2,i2){var o2,r2,f2,e2;l$1.__&&l$1.__(u2,t2),r2=(o2=typeof i2=="function")?null:i2&&i2.__k||t2.__k,f2=[],e2=[],O$1(t2,u2=(!o2&&i2||t2).__k=_$1(b,null,[u2]),r2||h$1,h$1,t2.namespaceURI,!o2&&i2?[i2]:r2?null:t2.firstChild?n.call(t2.childNodes):null,f2,!o2&&i2?i2:r2?r2.__e:t2.firstChild,o2,e2),j$2(f2,u2,e2)}function B$2(n2,l2){q$2(n2,l2,B$2)}function D$2(l2,u2,t2){var i2,o2,r2,f2,e2=d$1({},l2.props);for(r2 in l2.type&&l2.type.defaultProps&&(f2=l2.type.defaultProps),u2)r2=="key"?i2=u2[r2]:r2=="ref"?o2=u2[r2]:e2[r2]=u2[r2]===void 0&&f2!==void 0?f2[r2]:u2[r2];return arguments.length>2&&(e2.children=arguments.length>3?n.call(arguments,2):t2),g$2(l2.type,e2,i2||l2.key,o2||l2.ref,null)}function G$1(n2,l2){var u2={__c:l2="__cC"+a$1++,__:n2,Consumer:function(n3,l3){return n3.children(l3)},Provider:function(n3){var u3,t2;return this.getChildContext||(u3=new Set,(t2={})[l2]=this,this.getChildContext=function(){return t2},this.componentWillUnmount=function(){u3=null},this.shouldComponentUpdate=function(n4){this.props.value!==n4.value&&u3.forEach(function(n5){n5.__e=!0,S(n5)})},this.sub=function(n4){u3.add(n4);var l3=n4.componentWillUnmount;n4.componentWillUnmount=function(){u3&&u3.delete(n4),l3&&l3.call(n4)}}),n3.children}};return u2.Provider.__=u2.Consumer.contextType=u2}n=v$1.slice,l$1={__e:function(n2,l2,u2,t2){for(var i2,o2,r2;l2=l2.__;)if((i2=l2.__c)&&!i2.__)try{if((o2=i2.constructor)&&o2.getDerivedStateFromError!=null&&(i2.setState(o2.getDerivedStateFromError(n2)),r2=i2.__d),i2.componentDidCatch!=null&&(i2.componentDidCatch(n2,t2||{}),r2=i2.__d),r2)return i2.__E=i2}catch(l3){n2=l3}throw n2}},u$2=0,k$2.prototype.setState=function(n2,l2){var u2;u2=this.__s!=null&&this.__s!==this.state?this.__s:this.__s=d$1({},this.state),typeof n2=="function"&&(n2=n2(d$1({},u2),this.props)),n2&&d$1(u2,n2),n2!=null&&this.__v&&(l2&&this._sb.push(l2),S(this))},k$2.prototype.forceUpdate=function(n2){this.__v&&(this.__e=!0,n2&&this.__h.push(n2),S(this))},k$2.prototype.render=b,i$1=[],r$2=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,f$2=function(n2,l2){return n2.__v.__b-l2.__v.__b},M$1.__r=0,e$1=0,c$1=F$2(!1),s$1=F$2(!0),a$1=0;var f$1=0;function u$1(e2,t2,n2,o2,i2,u2){t2||(t2={});var a2,c2,l2=t2;"ref"in t2&&(a2=t2.ref,delete t2.ref);var p2={type:e2,props:l2,key:n2,ref:a2,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,constructor:void 0,__v:--f$1,__i:-1,__u:0,__source:i2,__self:u2};if(typeof e2=="function"&&(a2=e2.defaultProps))for(c2 in a2)l2[c2]===void 0&&(l2[c2]=a2[c2]);return l$1.vnode&&l$1.vnode(p2),p2}var t,r$1,u,i,o=0,f=[],c$2=l$1,e=c$2.__b,a$2=c$2.__r,v=c$2.diffed,l=c$2.__c,m=c$2.unmount,s$2=c$2.__;function d(n2,t2){c$2.__h&&c$2.__h(r$1,n2,o||t2),o=0;var u2=r$1.__H||(r$1.__H={__:[],__h:[]});return n2>=u2.__.length&&u2.__.push({}),u2.__[n2]}function h(n2){return o=1,p(D$1,n2)}function p(n2,u2,i2){var o2=d(t++,2);if(o2.t=n2,!o2.__c&&(o2.__=[i2?i2(u2):D$1(void 0,u2),function(n3){var t2=o2.__N?o2.__N[0]:o2.__[0],r2=o2.t(t2,n3);t2!==r2&&(o2.__N=[r2,o2.__[1]],o2.__c.setState({}))}],o2.__c=r$1,!r$1.u)){var f2=function(n3,t2,r2){if(!o2.__c.__H)return!0;var u3=o2.__c.__H.__.filter(function(n4){return!!n4.__c});if(u3.every(function(n4){return!n4.__N}))return!c2||c2.call(this,n3,t2,r2);var i3=o2.__c.props!==n3;return u3.forEach(function(n4){if(n4.__N){var t3=n4.__[0];n4.__=n4.__N,n4.__N=void 0,t3!==n4.__[0]&&(i3=!0)}}),c2&&c2.call(this,n3,t2,r2)||i3};r$1.u=!0;var c2=r$1.shouldComponentUpdate,e2=r$1.componentWillUpdate;r$1.componentWillUpdate=function(n3,t2,r2){if(this.__e){var u3=c2;c2=void 0,f2(n3,t2,r2),c2=u3}e2&&e2.call(this,n3,t2,r2)},r$1.shouldComponentUpdate=f2}return o2.__N||o2.__}function y(n2,u2){var i2=d(t++,3);!c$2.__s&&C$1(i2.__H,u2)&&(i2.__=n2,i2.i=u2,r$1.__H.__h.push(i2))}function _(n2,u2){var i2=d(t++,4);!c$2.__s&&C$1(i2.__H,u2)&&(i2.__=n2,i2.i=u2,r$1.__h.push(i2))}function A$1(n2){return o=5,T$1(function(){return{current:n2}},[])}function F$1(n2,t2,r2){o=6,_(function(){return typeof n2=="function"?(n2(t2()),function(){return n2(null)}):n2?(n2.current=t2(),function(){return n2.current=null}):void 0},r2==null?r2:r2.concat(n2))}function T$1(n2,r2){var u2=d(t++,7);return C$1(u2.__H,r2)&&(u2.__=n2(),u2.__H=r2,u2.__h=n2),u2.__}function q$1(n2,t2){return o=8,T$1(function(){return n2},t2)}function x$1(n2){var u2=r$1.context[n2.__c],i2=d(t++,9);return i2.c=n2,u2?(i2.__==null&&(i2.__=!0,u2.sub(r$1)),u2.props.value):n2.__}function P$1(n2,t2){c$2.useDebugValue&&c$2.useDebugValue(t2?t2(n2):n2)}function g$1(){var n2=d(t++,11);if(!n2.__){for(var u2=r$1.__v;u2!==null&&!u2.__m&&u2.__!==null;)u2=u2.__;var i2=u2.__m||(u2.__m=[0,0]);n2.__="P"+i2[0]+"-"+i2[1]++}return n2.__}function j$1(){for(var n2;n2=f.shift();)if(n2.__P&&n2.__H)try{n2.__H.__h.forEach(z$1),n2.__H.__h.forEach(B$1),n2.__H.__h=[]}catch(t2){n2.__H.__h=[],c$2.__e(t2,n2.__v)}}c$2.__b=function(n2){r$1=null,e&&e(n2)},c$2.__=function(n2,t2){n2&&t2.__k&&t2.__k.__m&&(n2.__m=t2.__k.__m),s$2&&s$2(n2,t2)},c$2.__r=function(n2){a$2&&a$2(n2),t=0;var i2=(r$1=n2.__c).__H;i2&&(u===r$1?(i2.__h=[],r$1.__h=[],i2.__.forEach(function(n3){n3.__N&&(n3.__=n3.__N),n3.i=n3.__N=void 0})):(i2.__h.forEach(z$1),i2.__h.forEach(B$1),i2.__h=[],t=0)),u=r$1},c$2.diffed=function(n2){v&&v(n2);var t2=n2.__c;t2&&t2.__H&&(t2.__H.__h.length&&(f.push(t2)!==1&&i===c$2.requestAnimationFrame||((i=c$2.requestAnimationFrame)||w$1)(j$1)),t2.__H.__.forEach(function(n3){n3.i&&(n3.__H=n3.i),n3.i=void 0})),u=r$1=null},c$2.__c=function(n2,t2){t2.some(function(n3){try{n3.__h.forEach(z$1),n3.__h=n3.__h.filter(function(n4){return!n4.__||B$1(n4)})}catch(r2){t2.some(function(n4){n4.__h&&(n4.__h=[])}),t2=[],c$2.__e(r2,n3.__v)}}),l&&l(n2,t2)},c$2.unmount=function(n2){m&&m(n2);var t2,r2=n2.__c;r2&&r2.__H&&(r2.__H.__.forEach(function(n3){try{z$1(n3)}catch(n4){t2=n4}}),r2.__H=void 0,t2&&c$2.__e(t2,r2.__v))};var k$1=typeof requestAnimationFrame=="function";function w$1(n2){var t2,r2=function(){clearTimeout(u2),k$1&&cancelAnimationFrame(t2),setTimeout(n2)},u2=setTimeout(r2,100);k$1&&(t2=requestAnimationFrame(r2))}function z$1(n2){var t2=r$1,u2=n2.__c;typeof u2=="function"&&(n2.__c=void 0,u2()),r$1=t2}function B$1(n2){var t2=r$1;n2.__c=n2.__(),r$1=t2}function C$1(n2,t2){return!n2||n2.length!==t2.length||t2.some(function(t3,r2){return t3!==n2[r2]})}function D$1(n2,t2){return typeof t2=="function"?t2(n2):t2}function g(n2,t2){for(var e2 in n2)if(e2!=="__source"&&!(e2 in t2))return!0;for(var r2 in t2)if(r2!=="__source"&&n2[r2]!==t2[r2])return!0;return!1}function E(n2,t2){var e2=t2(),r2=h({t:{__:e2,u:t2}}),u2=r2[0].t,o2=r2[1];return _(function(){u2.__=e2,u2.u=t2,C(u2)&&o2({t:u2})},[n2,e2,t2]),y(function(){return C(u2)&&o2({t:u2}),n2(function(){C(u2)&&o2({t:u2})})},[n2]),e2}function C(n2){var t2,e2,r2=n2.u,u2=n2.__;try{var o2=r2();return!((t2=u2)===(e2=o2)&&(t2!==0||1/t2==1/e2)||t2!=t2&&e2!=e2)}catch{return!0}}function x(n2){n2()}function R(n2){return n2}function w(){return[!1,x]}var k$3=_;function I(n2,t2){this.props=n2,this.context=t2}function N(n2,e2){function r2(n3){var t2=this.props.ref,r3=t2==n3.ref;return!r3&&t2&&(t2.call?t2(null):t2.current=null),e2?!e2(this.props,n3)||!r3:g(this.props,n3)}function u2(e3){return this.shouldComponentUpdate=r2,_$1(n2,e3)}return u2.displayName="Memo("+(n2.displayName||n2.name)+")",u2.prototype.isReactComponent=!0,u2.__f=!0,u2}(I.prototype=new k$2).isPureReactComponent=!0,I.prototype.shouldComponentUpdate=function(n2,t2){return g(this.props,n2)||g(this.state,t2)};var M=l$1.__b;l$1.__b=function(n2){n2.type&&n2.type.__f&&n2.ref&&(n2.props.ref=n2.ref,n2.ref=null),M&&M(n2)};var T=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.forward_ref")||3911;function A(n2){function t2(t3){if(!("ref"in t3))return n2(t3,null);var e2=t3.ref;delete t3.ref;var r2=n2(t3,e2);return t3.ref=e2,r2}return t2.$$typeof=T,t2.render=t2,t2.prototype.isReactComponent=t2.__f=!0,t2.displayName="ForwardRef("+(n2.displayName||n2.name)+")",t2}var D=function(n2,t2){return n2==null?null:H$1(H$1(n2).map(t2))},L={map:D,forEach:D,count:function(n2){return n2?H$1(n2).length:0},only:function(n2){var t2=H$1(n2);if(t2.length!==1)throw"Children.only";return t2[0]},toArray:H$1},O=l$1.__e;l$1.__e=function(n2,t2,e2,r2){if(n2.then){for(var u2,o2=t2;o2=o2.__;)if((u2=o2.__c)&&u2.__c)return t2.__e==null&&(t2.__e=e2.__e,t2.__k=e2.__k),u2.__c(n2,t2)}O(n2,t2,e2,r2)};var F=l$1.unmount;function U(n2,t2,e2){return n2&&(n2.__c&&n2.__c.__H&&(n2.__c.__H.__.forEach(function(n3){typeof n3.__c=="function"&&n3.__c()}),n2.__c.__H=null),(n2=function(n3,t3){for(var e3 in t3)n3[e3]=t3[e3];return n3}({},n2)).__c!=null&&(n2.__c.__P===e2&&(n2.__c.__P=t2),n2.__c=null),n2.__k=n2.__k&&n2.__k.map(function(n3){return U(n3,t2,e2)})),n2}function V(n2,t2,e2){return n2&&e2&&(n2.__v=null,n2.__k=n2.__k&&n2.__k.map(function(n3){return V(n3,t2,e2)}),n2.__c&&n2.__c.__P===t2&&(n2.__e&&e2.appendChild(n2.__e),n2.__c.__e=!0,n2.__c.__P=e2)),n2}function W(){this.__u=0,this.o=null,this.__b=null}function P(n2){var t2=n2.__.__c;return t2&&t2.__a&&t2.__a(n2)}function j(n2){var e2,r2,u2;function o2(o3){if(e2||(e2=n2()).then(function(n3){r2=n3.default||n3},function(n3){u2=n3}),u2)throw u2;if(!r2)throw e2;return _$1(r2,o3)}return o2.displayName="Lazy",o2.__f=!0,o2}function z(){this.i=null,this.l=null}l$1.unmount=function(n2){var t2=n2.__c;t2&&t2.__R&&t2.__R(),t2&&32&n2.__u&&(n2.type=null),F&&F(n2)},(W.prototype=new k$2).__c=function(n2,t2){var e2=t2.__c,r2=this;r2.o==null&&(r2.o=[]),r2.o.push(e2);var u2=P(r2.__v),o2=!1,i2=function(){o2||(o2=!0,e2.__R=null,u2?u2(c2):c2())};e2.__R=i2;var c2=function(){if(!--r2.__u){if(r2.state.__a){var n3=r2.state.__a;r2.__v.__k[0]=V(n3,n3.__c.__P,n3.__c.__O)}var t3;for(r2.setState({__a:r2.__b=null});t3=r2.o.pop();)t3.forceUpdate()}};r2.__u++||32&t2.__u||r2.setState({__a:r2.__b=r2.__v.__k[0]}),n2.then(i2,i2)},W.prototype.componentWillUnmount=function(){this.o=[]},W.prototype.render=function(n2,e2){if(this.__b){if(this.__v.__k){var r2=document.createElement("div"),o2=this.__v.__k[0].__c;this.__v.__k[0]=U(this.__b,r2,o2.__O=o2.__P)}this.__b=null}var i2=e2.__a&&_$1(b,null,n2.fallback);return i2&&(i2.__u&=-33),[_$1(b,null,e2.__a?null:n2.children),i2]};var B=function(n2,t2,e2){if(++e2[1]===e2[0]&&n2.l.delete(t2),n2.props.revealOrder&&(n2.props.revealOrder[0]!=="t"||!n2.l.size))for(e2=n2.i;e2;){for(;e2.length>3;)e2.pop()();if(e2[1]<e2[0])break;n2.i=e2=e2[2]}};function H(n2){return this.getChildContext=function(){return n2.context},n2.children}function Z(n2){var e2=this,r2=n2.h;e2.componentWillUnmount=function(){q$2(null,e2.v),e2.v=null,e2.h=null},e2.h&&e2.h!==r2&&e2.componentWillUnmount(),e2.v||(e2.h=r2,e2.v={nodeType:1,parentNode:r2,childNodes:[],contains:function(){return!0},appendChild:function(n3){this.childNodes.push(n3),e2.h.appendChild(n3)},insertBefore:function(n3,t2){this.childNodes.push(n3),e2.h.appendChild(n3)},removeChild:function(n3){this.childNodes.splice(this.childNodes.indexOf(n3)>>>1,1),e2.h.removeChild(n3)}}),q$2(_$1(H,{context:e2.context},n2.__v),e2.v)}function Y(n2,e2){var r2=_$1(Z,{__v:n2,h:e2});return r2.containerInfo=e2,r2}(z.prototype=new k$2).__a=function(n2){var t2=this,e2=P(t2.__v),r2=t2.l.get(n2);return r2[0]++,function(u2){var o2=function(){t2.props.revealOrder?(r2.push(u2),B(t2,n2,r2)):u2()};e2?e2(o2):o2()}},z.prototype.render=function(n2){this.i=null,this.l=new Map;var t2=H$1(n2.children);n2.revealOrder&&n2.revealOrder[0]==="b"&&t2.reverse();for(var e2=t2.length;e2--;)this.l.set(t2[e2],this.i=[1,0,this.i]);return n2.children},z.prototype.componentDidUpdate=z.prototype.componentDidMount=function(){var n2=this;this.l.forEach(function(t2,e2){B(n2,e2,t2)})};var $=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.element")||60103,q=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|image(!S)|letter|lighting|marker(?!H|W|U)|overline|paint|pointer|shape|stop|strikethrough|stroke|text(?!L)|transform|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/,G=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,J=/[A-Z0-9]/g,K=typeof document<"u",Q=function(n2){return(typeof Symbol<"u"&&typeof Symbol()=="symbol"?/fil|che|rad/:/fil|che|ra/).test(n2)};function X(n2,t2,e2){return t2.__k==null&&(t2.textContent=""),q$2(n2,t2),typeof e2=="function"&&e2(),n2?n2.__c:null}function nn(n2,t2,e2){return B$2(n2,t2),typeof e2=="function"&&e2(),n2?n2.__c:null}k$2.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(t2){Object.defineProperty(k$2.prototype,t2,{configurable:!0,get:function(){return this["UNSAFE_"+t2]},set:function(n2){Object.defineProperty(this,t2,{configurable:!0,writable:!0,value:n2})}})});var tn=l$1.event;function en(){}function rn(){return this.cancelBubble}function un(){return this.defaultPrevented}l$1.event=function(n2){return tn&&(n2=tn(n2)),n2.persist=en,n2.isPropagationStopped=rn,n2.isDefaultPrevented=un,n2.nativeEvent=n2};var on,cn={enumerable:!1,configurable:!0,get:function(){return this.class}},fn=l$1.vnode;l$1.vnode=function(n2){typeof n2.type=="string"&&function(n3){var t2=n3.props,e2=n3.type,u2={},o2=e2.indexOf("-")===-1;for(var i2 in t2){var c2=t2[i2];if(!(i2==="value"&&"defaultValue"in t2&&c2==null||K&&i2==="children"&&e2==="noscript"||i2==="class"||i2==="className")){var f2=i2.toLowerCase();i2==="defaultValue"&&"value"in t2&&t2.value==null?i2="value":i2==="download"&&c2===!0?c2="":f2==="translate"&&c2==="no"?c2=!1:f2[0]==="o"&&f2[1]==="n"?f2==="ondoubleclick"?i2="ondblclick":f2!=="onchange"||e2!=="input"&&e2!=="textarea"||Q(t2.type)?f2==="onfocus"?i2="onfocusin":f2==="onblur"?i2="onfocusout":G.test(i2)&&(i2=f2):f2=i2="oninput":o2&&q.test(i2)?i2=i2.replace(J,"-$&").toLowerCase():c2===null&&(c2=void 0),f2==="oninput"&&u2[i2=f2]&&(i2="oninputCapture"),u2[i2]=c2}}e2=="select"&&u2.multiple&&Array.isArray(u2.value)&&(u2.value=H$1(t2.children).forEach(function(n4){n4.props.selected=u2.value.indexOf(n4.props.value)!=-1})),e2=="select"&&u2.defaultValue!=null&&(u2.value=H$1(t2.children).forEach(function(n4){n4.props.selected=u2.multiple?u2.defaultValue.indexOf(n4.props.value)!=-1:u2.defaultValue==n4.props.value})),t2.class&&!t2.className?(u2.class=t2.class,Object.defineProperty(u2,"className",cn)):(t2.className&&!t2.class||t2.class&&t2.className)&&(u2.class=u2.className=t2.className),n3.props=u2}(n2),n2.$$typeof=$,fn&&fn(n2)};var ln=l$1.__r;l$1.__r=function(n2){ln&&ln(n2),on=n2.__c};var an=l$1.diffed;l$1.diffed=function(n2){an&&an(n2);var t2=n2.props,e2=n2.__e;e2!=null&&n2.type==="textarea"&&"value"in t2&&t2.value!==e2.value&&(e2.value=t2.value==null?"":t2.value),on=null};var sn={ReactCurrentDispatcher:{current:{readContext:function(n2){return on.__n[n2.__c].props.value},useCallback:q$1,useContext:x$1,useDebugValue:P$1,useDeferredValue:R,useEffect:y,useId:g$1,useImperativeHandle:F$1,useInsertionEffect:k$3,useLayoutEffect:_,useMemo:T$1,useReducer:p,useRef:A$1,useState:h,useSyncExternalStore:E,useTransition:w}}};function vn(n2){return _$1.bind(null,n2)}function dn(n2){return!!n2&&n2.$$typeof===$}function pn(n2){return dn(n2)&&n2.type===b}function mn(n2){return!!n2&&!!n2.displayName&&(typeof n2.displayName=="string"||n2.displayName instanceof String)&&n2.displayName.startsWith("Memo(")}function yn(n2){return dn(n2)?D$2.apply(null,arguments):n2}function _n(n2){return!!n2.__k&&(q$2(null,n2),!0)}function bn(n2){return n2&&(n2.base||n2.nodeType===1&&n2)||null}var Sn=function(n2,t2){return n2(t2)},gn=function(n2,t2){return n2(t2)},En=b,Cn=dn,xn={useState:h,useId:g$1,useReducer:p,useEffect:y,useLayoutEffect:_,useInsertionEffect:k$3,useTransition:w,useDeferredValue:R,useSyncExternalStore:E,startTransition:x,useRef:A$1,useImperativeHandle:F$1,useMemo:T$1,useCallback:q$1,useContext:x$1,useDebugValue:P$1,version:"18.3.1",Children:L,render:X,hydrate:nn,unmountComponentAtNode:_n,createPortal:Y,createElement:_$1,createContext:G$1,createFactory:vn,cloneElement:yn,createRef:m$1,Fragment:b,isValidElement:dn,isElement:Cn,isFragment:pn,isMemo:mn,findDOMNode:bn,Component:k$2,PureComponent:I,memo:N,forwardRef:A,flushSync:gn,unstable_batchedUpdates:Sn,StrictMode:En,Suspense:W,SuspenseList:z,lazy:j,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:sn};function r(e2){var t2,f2,n2="";if(typeof e2=="string"||typeof e2=="number")n2+=e2;else if(typeof e2=="object")if(Array.isArray(e2)){var o2=e2.length;for(t2=0;t2<o2;t2++)e2[t2]&&(f2=r(e2[t2]))&&(n2&&(n2+=" "),n2+=f2)}else for(f2 in e2)e2[f2]&&(n2&&(n2+=" "),n2+=f2);return n2}function clsx(){for(var e2,t2,f2=0,n2="",o2=arguments.length;f2<o2;f2++)(e2=arguments[f2])&&(t2=r(e2))&&(n2&&(n2+=" "),n2+=t2);return n2}function getColSpan(column,lastFrozenColumnIndex,args){const colSpan=typeof column.colSpan=="function"?column.colSpan(args):1;if(Number.isInteger(colSpan)&&colSpan>1&&(!column.frozen||column.idx+colSpan-1<=lastFrozenColumnIndex))return colSpan}function stopPropagation(event){event.stopPropagation()}function scrollIntoView(element){element==null||element.scrollIntoView({inline:"nearest",block:"nearest"})}function createCellEvent(event){let defaultPrevented=!1;const cellEvent={...event,preventGridDefault(){defaultPrevented=!0},isGridDefaultPrevented(){return defaultPrevented}};return Object.setPrototypeOf(cellEvent,Object.getPrototypeOf(event)),cellEvent}const nonInputKeys=new Set(["Unidentified","Alt","AltGraph","CapsLock","Control","Fn","FnLock","Meta","NumLock","ScrollLock","Shift","Tab","ArrowDown","ArrowLeft","ArrowRight","ArrowUp","End","Home","PageDown","PageUp","Insert","ContextMenu","Escape","Pause","Play","PrintScreen","F1","F3","F4","F5","F6","F7","F8","F9","F10","F11","F12"]);function isCtrlKeyHeldDown(e2){return(e2.ctrlKey||e2.metaKey)&&e2.key!=="Control"}function isDefaultCellInput(event){return isCtrlKeyHeldDown(event)&&event.keyCode!==86?!1:!nonInputKeys.has(event.key)}function onEditorNavigation({key,target}){var _a;return key==="Tab"&&(target instanceof HTMLInputElement||target instanceof HTMLTextAreaElement||target instanceof HTMLSelectElement)?((_a=target.closest(".rdg-editor-container"))==null?void 0:_a.querySelectorAll("input, textarea, select").length)===1:!1}const measuringCellClassname="mlln6zg7-0-0-beta-47";function renderMeasuringCells(viewportColumns){return viewportColumns.map(({key,idx,minWidth,maxWidth})=>u$1("div",{className:measuringCellClassname,style:{gridColumnStart:idx+1,minWidth,maxWidth},"data-measuring-cell-key":key},key))}function isSelectedCellEditable({selectedPosition,columns,rows}){const column=columns[selectedPosition.idx],row2=rows[selectedPosition.rowIdx];return isCellEditableUtil(column,row2)}function isCellEditableUtil(column,row2){return column.renderEditCell!=null&&(typeof column.editable=="function"?column.editable(row2):column.editable)!==!1}function getSelectedCellColSpan({rows,topSummaryRows,bottomSummaryRows,rowIdx,mainHeaderRowIdx,lastFrozenColumnIndex,column}){const topSummaryRowsCount=(topSummaryRows==null?void 0:topSummaryRows.length)??0;if(rowIdx===mainHeaderRowIdx)return getColSpan(column,lastFrozenColumnIndex,{type:"HEADER"});if(topSummaryRows&&rowIdx>mainHeaderRowIdx&&rowIdx<=topSummaryRowsCount+mainHeaderRowIdx)return getColSpan(column,lastFrozenColumnIndex,{type:"SUMMARY",row:topSummaryRows[rowIdx+topSummaryRowsCount]});if(rowIdx>=0&&rowIdx<rows.length){const row2=rows[rowIdx];return getColSpan(column,lastFrozenColumnIndex,{type:"ROW",row:row2})}if(bottomSummaryRows)return getColSpan(column,lastFrozenColumnIndex,{type:"SUMMARY",row:bottomSummaryRows[rowIdx-rows.length]})}function getNextSelectedCellPosition({moveUp,moveNext,cellNavigationMode,columns,colSpanColumns,rows,topSummaryRows,bottomSummaryRows,minRowIdx,mainHeaderRowIdx,maxRowIdx,currentPosition:{idx:currentIdx,rowIdx:currentRowIdx},nextPosition,lastFrozenColumnIndex,isCellWithinBounds}){let{idx:nextIdx,rowIdx:nextRowIdx}=nextPosition;const columnsCount=columns.length,setColSpan=moveNext2=>{for(const column of colSpanColumns){const colIdx=column.idx;if(colIdx>nextIdx)break;const colSpan=getSelectedCellColSpan({rows,topSummaryRows,bottomSummaryRows,rowIdx:nextRowIdx,mainHeaderRowIdx,lastFrozenColumnIndex,column});if(colSpan&&nextIdx>colIdx&&nextIdx<colSpan+colIdx){nextIdx=colIdx+(moveNext2?colSpan:0);break}}},getParentRowIdx=parent=>parent.level+mainHeaderRowIdx,setHeaderGroupColAndRowSpan=()=>{if(moveNext){let parent=columns[nextIdx].parent;for(;parent!==void 0;){const parentRowIdx=getParentRowIdx(parent);if(nextRowIdx===parentRowIdx){nextIdx=parent.idx+parent.colSpan;break}parent=parent.parent}}else if(moveUp){let parent=columns[nextIdx].parent,found=!1;for(;parent!==void 0;){const parentRowIdx=getParentRowIdx(parent);if(nextRowIdx>=parentRowIdx){nextIdx=parent.idx,nextRowIdx=parentRowIdx,found=!0;break}parent=parent.parent}found||(nextIdx=currentIdx,nextRowIdx=currentRowIdx)}};if(isCellWithinBounds(nextPosition)&&(setColSpan(moveNext),nextRowIdx<mainHeaderRowIdx&&setHeaderGroupColAndRowSpan()),cellNavigationMode==="CHANGE_ROW"&&(nextIdx===columnsCount?nextRowIdx===maxRowIdx||(nextIdx=0,nextRowIdx+=1):nextIdx===-1&&(nextRowIdx===minRowIdx||(nextRowIdx-=1,nextIdx=columnsCount-1),setColSpan(!1))),nextRowIdx<mainHeaderRowIdx){let parent=columns[nextIdx].parent;const nextParentRowIdx=nextRowIdx;for(nextRowIdx=mainHeaderRowIdx;parent!==void 0;){const parentRowIdx=getParentRowIdx(parent);parentRowIdx>=nextParentRowIdx&&(nextRowIdx=parentRowIdx,nextIdx=parent.idx),parent=parent.parent}}return{idx:nextIdx,rowIdx:nextRowIdx}}function canExitGrid({maxColIdx,minRowIdx,maxRowIdx,selectedPosition:{rowIdx,idx},shiftKey}){return shiftKey?idx===0&&rowIdx===minRowIdx:idx===maxColIdx&&rowIdx===maxRowIdx}const cell="cj343x07-0-0-beta-47",cellClassname=`rdg-cell ${cell}`,cellFrozen="csofj7r7-0-0-beta-47",cellFrozenClassname=`rdg-cell-frozen ${cellFrozen}`;function getRowStyle(rowIdx){return{"--rdg-grid-row-start":rowIdx}}function getHeaderCellStyle(column,rowIdx,rowSpan){const gridRowEnd=rowIdx+1,paddingBlockStart=`calc(${rowSpan-1} * var(--rdg-header-row-height))`;return column.parent===void 0?{insetBlockStart:0,gridRowStart:1,gridRowEnd,paddingBlockStart}:{insetBlockStart:`calc(${rowIdx-rowSpan} * var(--rdg-header-row-height))`,gridRowStart:gridRowEnd-rowSpan,gridRowEnd,paddingBlockStart}}function getCellStyle(column,colSpan=1){const index=column.idx+1;return{gridColumnStart:index,gridColumnEnd:index+colSpan,insetInlineStart:column.frozen?`var(--rdg-frozen-left-${column.idx})`:void 0}}function getCellClassname(column,...extraClasses){return clsx(cellClassname,...extraClasses,column.frozen&&cellFrozenClassname)}const{min,max,floor,sign,abs}=Math;function assertIsValidKeyGetter(keyGetter){if(typeof keyGetter!="function")throw new Error("Please specify the rowKeyGetter prop to use selection")}function clampColumnWidth(width,{minWidth,maxWidth}){return width=max(width,minWidth),typeof maxWidth=="number"&&maxWidth>=minWidth?min(width,maxWidth):width}function getHeaderCellRowSpan(column,rowIdx){return column.parent===void 0?rowIdx:column.level-column.parent.level}const checkbox="c1bn88vv7-0-0-beta-47",checkboxClassname=`rdg-checkbox-input ${checkbox}`;function renderCheckbox({onChange,indeterminate,...props}){function handleChange(e2){onChange(e2.target.checked,e2.nativeEvent.shiftKey)}return u$1("input",{ref:el=>{el&&(el.indeterminate=indeterminate===!0)},type:"checkbox",className:checkboxClassname,onChange:handleChange,...props})}function renderValue(props){try{return props.row[props.column.key]}catch{return null}}const DataGridDefaultRenderersContext=G$1(void 0),DataGridDefaultRenderersProvider=DataGridDefaultRenderersContext.Provider;function useDefaultRenderers(){return x$1(DataGridDefaultRenderersContext)}function SelectCellFormatter({value,tabIndex,indeterminate,disabled,onChange,"aria-label":ariaLabel,"aria-labelledby":ariaLabelledBy}){const renderCheckbox2=useDefaultRenderers().renderCheckbox;return renderCheckbox2({"aria-label":ariaLabel,"aria-labelledby":ariaLabelledBy,tabIndex,indeterminate,disabled,checked:value,onChange})}const RowSelectionContext=G$1(void 0),RowSelectionProvider=RowSelectionContext.Provider,RowSelectionChangeContext=G$1(void 0),RowSelectionChangeProvider=RowSelectionChangeContext.Provider;function useRowSelection(){const rowSelectionContext=x$1(RowSelectionContext),rowSelectionChangeContext=x$1(RowSelectionChangeContext);if(rowSelectionContext===void 0||rowSelectionChangeContext===void 0)throw new Error("useRowSelection must be used within DataGrid cells");return{isRowSelectionDisabled:rowSelectionContext.isRowSelectionDisabled,isRowSelected:rowSelectionContext.isRowSelected,onRowSelectionChange:rowSelectionChangeContext}}const HeaderRowSelectionContext=G$1(void 0),HeaderRowSelectionProvider=HeaderRowSelectionContext.Provider,HeaderRowSelectionChangeContext=G$1(void 0),HeaderRowSelectionChangeProvider=HeaderRowSelectionChangeContext.Provider;function useHeaderRowSelection(){const headerRowSelectionContext=x$1(HeaderRowSelectionContext),headerRowSelectionChangeContext=x$1(HeaderRowSelectionChangeContext);if(headerRowSelectionContext===void 0||headerRowSelectionChangeContext===void 0)throw new Error("useHeaderRowSelection must be used within DataGrid cells");return{isIndeterminate:headerRowSelectionContext.isIndeterminate,isRowSelected:headerRowSelectionContext.isRowSelected,onRowSelectionChange:headerRowSelectionChangeContext}}const SELECT_COLUMN_KEY="rdg-select-column";function HeaderRenderer(props){const{isIndeterminate,isRowSelected,onRowSelectionChange}=useHeaderRowSelection();return u$1(SelectCellFormatter,{"aria-label":"Select All",tabIndex:props.tabIndex,indeterminate:isIndeterminate,value:isRowSelected,onChange:checked=>{onRowSelectionChange({checked:isIndeterminate?!1:checked})}})}function SelectFormatter(props){const{isRowSelectionDisabled,isRowSelected,onRowSelectionChange}=useRowSelection();return u$1(SelectCellFormatter,{"aria-label":"Select",tabIndex:props.tabIndex,disabled:isRowSelectionDisabled,value:isRowSelected,onChange:(checked,isShiftClick)=>{onRowSelectionChange({row:props.row,checked,isShiftClick})}})}function SelectGroupFormatter(props){const{isRowSelected,onRowSelectionChange}=useRowSelection();return u$1(SelectCellFormatter,{"aria-label":"Select Group",tabIndex:props.tabIndex,value:isRowSelected,onChange:checked=>{onRowSelectionChange({row:props.row,checked,isShiftClick:!1})}})}const SelectColumn={key:SELECT_COLUMN_KEY,name:"",width:35,minWidth:35,maxWidth:35,resizable:!1,sortable:!1,frozen:!0,renderHeaderCell(props){return u$1(HeaderRenderer,{...props})},renderCell(props){return u$1(SelectFormatter,{...props})},renderGroupCell(props){return u$1(SelectGroupFormatter,{...props})}},DEFAULT_COLUMN_WIDTH="auto",DEFAULT_COLUMN_MIN_WIDTH=50;function useCalculatedColumns({rawColumns,defaultColumnOptions,getColumnWidth,viewportWidth,scrollLeft,enableVirtualization}){const defaultWidth=(defaultColumnOptions==null?void 0:defaultColumnOptions.width)??DEFAULT_COLUMN_WIDTH,defaultMinWidth=(defaultColumnOptions==null?void 0:defaultColumnOptions.minWidth)??DEFAULT_COLUMN_MIN_WIDTH,defaultMaxWidth=(defaultColumnOptions==null?void 0:defaultColumnOptions.maxWidth)??void 0,defaultCellRenderer=(defaultColumnOptions==null?void 0:defaultColumnOptions.renderCell)??renderValue,defaultSortable=(defaultColumnOptions==null?void 0:defaultColumnOptions.sortable)??!1,defaultResizable=(defaultColumnOptions==null?void 0:defaultColumnOptions.resizable)??!1,defaultDraggable=(defaultColumnOptions==null?void 0:defaultColumnOptions.draggable)??!1,{columns,colSpanColumns,lastFrozenColumnIndex,headerRowsCount}=T$1(()=>{let lastFrozenColumnIndex2=-1,headerRowsCount2=1;const columns2=[];collectColumns(rawColumns,1);function collectColumns(rawColumns2,level,parent){for(const rawColumn of rawColumns2){if("children"in rawColumn){const calculatedColumnParent={name:rawColumn.name,parent,idx:-1,colSpan:0,level:0,headerCellClass:rawColumn.headerCellClass};collectColumns(rawColumn.children,level+1,calculatedColumnParent);continue}const frozen=rawColumn.frozen??!1,column={...rawColumn,parent,idx:0,level:0,frozen,width:rawColumn.width??defaultWidth,minWidth:rawColumn.minWidth??defaultMinWidth,maxWidth:rawColumn.maxWidth??defaultMaxWidth,sortable:rawColumn.sortable??defaultSortable,resizable:rawColumn.resizable??defaultResizable,draggable:rawColumn.draggable??defaultDraggable,renderCell:rawColumn.renderCell??defaultCellRenderer};columns2.push(column),frozen&&lastFrozenColumnIndex2++,level>headerRowsCount2&&(headerRowsCount2=level)}}columns2.sort(({key:aKey,frozen:frozenA},{key:bKey,frozen:frozenB})=>aKey===SELECT_COLUMN_KEY?-1:bKey===SELECT_COLUMN_KEY?1:frozenA?frozenB?0:-1:frozenB?1:0);const colSpanColumns2=[];return columns2.forEach((column,idx)=>{column.idx=idx,updateColumnParent(column,idx,0),column.colSpan!=null&&colSpanColumns2.push(column)}),{columns:columns2,colSpanColumns:colSpanColumns2,lastFrozenColumnIndex:lastFrozenColumnIndex2,headerRowsCount:headerRowsCount2}},[rawColumns,defaultWidth,defaultMinWidth,defaultMaxWidth,defaultCellRenderer,defaultResizable,defaultSortable,defaultDraggable]),{templateColumns,layoutCssVars,totalFrozenColumnWidth,columnMetrics}=T$1(()=>{const columnMetrics2=new Map;let left=0,totalFrozenColumnWidth2=0;const templateColumns2=[];for(const column of columns){let width=getColumnWidth(column);typeof width=="number"?width=clampColumnWidth(width,column):width=column.minWidth,templateColumns2.push(`${width}px`),columnMetrics2.set(column,{width,left}),left+=width}if(lastFrozenColumnIndex!==-1){const columnMetric=columnMetrics2.get(columns[lastFrozenColumnIndex]);totalFrozenColumnWidth2=columnMetric.left+columnMetric.width}const layoutCssVars2={};for(let i2=0;i2<=lastFrozenColumnIndex;i2++){const column=columns[i2];layoutCssVars2[`--rdg-frozen-left-${column.idx}`]=`${columnMetrics2.get(column).left}px`}return{templateColumns:templateColumns2,layoutCssVars:layoutCssVars2,totalFrozenColumnWidth:totalFrozenColumnWidth2,columnMetrics:columnMetrics2}},[getColumnWidth,columns,lastFrozenColumnIndex]),[colOverscanStartIdx,colOverscanEndIdx]=T$1(()=>{if(!enableVirtualization)return[0,columns.length-1];const viewportLeft=scrollLeft+totalFrozenColumnWidth,viewportRight=scrollLeft+viewportWidth,lastColIdx=columns.length-1,firstUnfrozenColumnIdx=min(lastFrozenColumnIndex+1,lastColIdx);if(viewportLeft>=viewportRight)return[firstUnfrozenColumnIdx,firstUnfrozenColumnIdx];let colVisibleStartIdx=firstUnfrozenColumnIdx;for(;colVisibleStartIdx<lastColIdx;){const{left,width}=columnMetrics.get(columns[colVisibleStartIdx]);if(left+width>viewportLeft)break;colVisibleStartIdx++}let colVisibleEndIdx=colVisibleStartIdx;for(;colVisibleEndIdx<lastColIdx;){const{left,width}=columnMetrics.get(columns[colVisibleEndIdx]);if(left+width>=viewportRight)break;colVisibleEndIdx++}const colOverscanStartIdx2=max(firstUnfrozenColumnIdx,colVisibleStartIdx-1),colOverscanEndIdx2=min(lastColIdx,colVisibleEndIdx+1);return[colOverscanStartIdx2,colOverscanEndIdx2]},[columnMetrics,columns,lastFrozenColumnIndex,scrollLeft,totalFrozenColumnWidth,viewportWidth,enableVirtualization]);return{columns,colSpanColumns,colOverscanStartIdx,colOverscanEndIdx,templateColumns,layoutCssVars,headerRowsCount,lastFrozenColumnIndex,totalFrozenColumnWidth}}function updateColumnParent(column,index,level){if(level<column.level&&(column.level=level),column.parent!==void 0){const{parent}=column;parent.idx===-1&&(parent.idx=index),parent.colSpan+=1,updateColumnParent(parent,index,level-1)}}const useLayoutEffect=typeof window>"u"?y:_;function useColumnWidths(columns,viewportColumns,templateColumns,gridRef,gridWidth,resizedColumnWidths,measuredColumnWidths,setResizedColumnWidths,setMeasuredColumnWidths,onColumnResize){const prevGridWidthRef=A$1(gridWidth),columnsCanFlex=columns.length===viewportColumns.length,ignorePreviouslyMeasuredColumns=columnsCanFlex&&gridWidth!==prevGridWidthRef.current,newTemplateColumns=[...templateColumns],columnsToMeasure=[];for(const{key,idx,width}of viewportColumns)typeof width=="string"&&(ignorePreviouslyMeasuredColumns||!measuredColumnWidths.has(key))&&!resizedColumnWidths.has(key)&&(newTemplateColumns[idx]=width,columnsToMeasure.push(key));const gridTemplateColumns=newTemplateColumns.join(" ");useLayoutEffect(()=>{prevGridWidthRef.current=gridWidth,updateMeasuredWidths(columnsToMeasure)});function updateMeasuredWidths(columnsToMeasure2){columnsToMeasure2.length!==0&&setMeasuredColumnWidths(measuredColumnWidths2=>{const newMeasuredColumnWidths=new Map(measuredColumnWidths2);let hasChanges=!1;for(const key of columnsToMeasure2){const measuredWidth=measureColumnWidth(gridRef,key);hasChanges||(hasChanges=measuredWidth!==measuredColumnWidths2.get(key)),measuredWidth===void 0?newMeasuredColumnWidths.delete(key):newMeasuredColumnWidths.set(key,measuredWidth)}return hasChanges?newMeasuredColumnWidths:measuredColumnWidths2})}function handleColumnResize(column,nextWidth){const{key:resizingKey}=column,newTemplateColumns2=[...templateColumns],columnsToMeasure2=[];for(const{key,idx,width}of viewportColumns)if(resizingKey===key){const width2=typeof nextWidth=="number"?`${nextWidth}px`:nextWidth;newTemplateColumns2[idx]=width2}else columnsCanFlex&&typeof width=="string"&&!resizedColumnWidths.has(key)&&(newTemplateColumns2[idx]=width,columnsToMeasure2.push(key));gridRef.current.style.gridTemplateColumns=newTemplateColumns2.join(" ");const measuredWidth=typeof nextWidth=="number"?nextWidth:measureColumnWidth(gridRef,resizingKey);gn(()=>{setResizedColumnWidths(resizedColumnWidths2=>{const newResizedColumnWidths=new Map(resizedColumnWidths2);return newResizedColumnWidths.set(resizingKey,measuredWidth),newResizedColumnWidths}),updateMeasuredWidths(columnsToMeasure2)}),onColumnResize==null||onColumnResize(column.idx,measuredWidth)}return{gridTemplateColumns,handleColumnResize}}function measureColumnWidth(gridRef,key){var _a;const selector=`[data-measuring-cell-key="${CSS.escape(key)}"]`,measuringCell=(_a=gridRef.current)==null?void 0:_a.querySelector(selector);return measuringCell==null?void 0:measuringCell.getBoundingClientRect().width}function useGridDimensions(){const gridRef=A$1(null),[inlineSize,setInlineSize]=h(1),[blockSize,setBlockSize]=h(1),[horizontalScrollbarHeight,setHorizontalScrollbarHeight]=h(0);return useLayoutEffect(()=>{const{ResizeObserver}=window;if(ResizeObserver==null)return;const{clientWidth,clientHeight,offsetWidth,offsetHeight}=gridRef.current,{width,height}=gridRef.current.getBoundingClientRect(),initialHorizontalScrollbarHeight=offsetHeight-clientHeight,initialWidth=width-offsetWidth+clientWidth,initialHeight=height-initialHorizontalScrollbarHeight;setInlineSize(initialWidth),setBlockSize(initialHeight),setHorizontalScrollbarHeight(initialHorizontalScrollbarHeight);const resizeObserver=new ResizeObserver(entries=>{const size=entries[0].contentBoxSize[0],{clientHeight:clientHeight2,offsetHeight:offsetHeight2}=gridRef.current;gn(()=>{setInlineSize(size.inlineSize),setBlockSize(size.blockSize),setHorizontalScrollbarHeight(offsetHeight2-clientHeight2)})});return resizeObserver.observe(gridRef.current),()=>{resizeObserver.disconnect()}},[]),[gridRef,inlineSize,blockSize,horizontalScrollbarHeight]}function useLatestFunc(fn2){const ref=A$1(fn2);y(()=>{ref.current=fn2});const callbackFn=q$1((...args)=>{ref.current(...args)},[]);return fn2&&callbackFn}function useRovingTabIndex(isSelected){const[isChildFocused,setIsChildFocused]=h(!1);isChildFocused&&!isSelected&&setIsChildFocused(!1);function onFocus(event){event.target!==event.currentTarget&&setIsChildFocused(!0)}return{tabIndex:isSelected&&!isChildFocused?0:-1,childTabIndex:isSelected?0:-1,onFocus:isSelected?onFocus:void 0}}function useViewportColumns({columns,colSpanColumns,rows,topSummaryRows,bottomSummaryRows,colOverscanStartIdx,colOverscanEndIdx,lastFrozenColumnIndex,rowOverscanStartIdx,rowOverscanEndIdx}){const startIdx=T$1(()=>{if(colOverscanStartIdx===0)return 0;let startIdx2=colOverscanStartIdx;const updateStartIdx=(colIdx,colSpan)=>colSpan!==void 0&&colIdx+colSpan>colOverscanStartIdx?(startIdx2=colIdx,!0):!1;for(const column of colSpanColumns){const colIdx=column.idx;if(colIdx>=startIdx2||updateStartIdx(colIdx,getColSpan(column,lastFrozenColumnIndex,{type:"HEADER"})))break;for(let rowIdx=rowOverscanStartIdx;rowIdx<=rowOverscanEndIdx;rowIdx++){const row2=rows[rowIdx];if(updateStartIdx(colIdx,getColSpan(column,lastFrozenColumnIndex,{type:"ROW",row:row2})))break}if(topSummaryRows!=null){for(const row2 of topSummaryRows)if(updateStartIdx(colIdx,getColSpan(column,lastFrozenColumnIndex,{type:"SUMMARY",row:row2})))break}if(bottomSummaryRows!=null){for(const row2 of bottomSummaryRows)if(updateStartIdx(colIdx,getColSpan(column,lastFrozenColumnIndex,{type:"SUMMARY",row:row2})))break}}return startIdx2},[rowOverscanStartIdx,rowOverscanEndIdx,rows,topSummaryRows,bottomSummaryRows,colOverscanStartIdx,lastFrozenColumnIndex,colSpanColumns]);return T$1(()=>{const viewportColumns=[];for(let colIdx=0;colIdx<=colOverscanEndIdx;colIdx++){const column=columns[colIdx];colIdx<startIdx&&!column.frozen||viewportColumns.push(column)}return viewportColumns},[startIdx,colOverscanEndIdx,columns])}function useViewportRows({rows,rowHeight,clientHeight,scrollTop,enableVirtualization}){const{totalRowHeight,gridTemplateRows,getRowTop,getRowHeight,findRowIdx}=T$1(()=>{if(typeof rowHeight=="number")return{totalRowHeight:rowHeight*rows.length,gridTemplateRows:` repeat(${rows.length}, ${rowHeight}px)`,getRowTop:rowIdx=>rowIdx*rowHeight,getRowHeight:()=>rowHeight,findRowIdx:offset=>floor(offset/rowHeight)};let totalRowHeight2=0,gridTemplateRows2=" ";const rowPositions=rows.map(row2=>{const currentRowHeight=rowHeight(row2),position={top:totalRowHeight2,height:currentRowHeight};return gridTemplateRows2+=`${currentRowHeight}px `,totalRowHeight2+=currentRowHeight,position}),validateRowIdx=rowIdx=>max(0,min(rows.length-1,rowIdx));return{totalRowHeight:totalRowHeight2,gridTemplateRows:gridTemplateRows2,getRowTop:rowIdx=>rowPositions[validateRowIdx(rowIdx)].top,getRowHeight:rowIdx=>rowPositions[validateRowIdx(rowIdx)].height,findRowIdx(offset){let start=0,end=rowPositions.length-1;for(;start<=end;){const middle=start+floor((end-start)/2),currentOffset=rowPositions[middle].top;if(currentOffset===offset)return middle;if(currentOffset<offset?start=middle+1:currentOffset>offset&&(end=middle-1),start>end)return end}return 0}}},[rowHeight,rows]);let rowOverscanStartIdx=0,rowOverscanEndIdx=rows.length-1;if(enableVirtualization){const rowVisibleStartIdx=findRowIdx(scrollTop),rowVisibleEndIdx=findRowIdx(scrollTop+clientHeight);rowOverscanStartIdx=max(0,rowVisibleStartIdx-4),rowOverscanEndIdx=min(rows.length-1,rowVisibleEndIdx+4)}return{rowOverscanStartIdx,rowOverscanEndIdx,totalRowHeight,gridTemplateRows,getRowTop,getRowHeight,findRowIdx}}const cellDragHandle="c1w9bbhr7-0-0-beta-47",cellDragHandleFrozenClassname="c1creorc7-0-0-beta-47",cellDragHandleClassname=`rdg-cell-drag-handle ${cellDragHandle}`;function DragHandle({gridRowStart,rows,column,columnWidth,maxColIdx,isLastRow,selectedPosition,latestDraggedOverRowIdx,isCellEditable,onRowsChange,onFill,onClick,setDragging,setDraggedOverRowIdx}){const{idx,rowIdx}=selectedPosition;function handleMouseDown(event){if(event.preventDefault(),event.buttons!==1)return;setDragging(!0),window.addEventListener("mouseover",onMouseOver),window.addEventListener("mouseup",onMouseUp);function onMouseOver(event2){event2.buttons!==1&&onMouseUp()}function onMouseUp(){window.removeEventListener("mouseover",onMouseOver),window.removeEventListener("mouseup",onMouseUp),setDragging(!1),handleDragEnd()}}function handleDragEnd(){const overRowIdx=latestDraggedOverRowIdx.current;if(overRowIdx===void 0)return;const startRowIndex=rowIdx<overRowIdx?rowIdx+1:overRowIdx,endRowIndex=rowIdx<overRowIdx?overRowIdx+1:rowIdx;updateRows(startRowIndex,endRowIndex),setDraggedOverRowIdx(void 0)}function handleDoubleClick(event){event.stopPropagation(),updateRows(rowIdx+1,rows.length)}function updateRows(startRowIdx,endRowIdx){const sourceRow=rows[rowIdx],updatedRows=[...rows],indexes=[];for(let i2=startRowIdx;i2<endRowIdx;i2++)if(isCellEditable({rowIdx:i2,idx})){const updatedRow=onFill({columnKey:column.key,sourceRow,targetRow:rows[i2]});updatedRow!==rows[i2]&&(updatedRows[i2]=updatedRow,indexes.push(i2))}indexes.length>0&&(onRowsChange==null||onRowsChange(updatedRows,{indexes,column}))}function getStyle(){var _a;const colSpan=((_a=column.colSpan)==null?void 0:_a.call(column,{type:"ROW",row:rows[rowIdx]}))??1,{insetInlineStart,...style}=getCellStyle(column,colSpan),marginEnd="calc(var(--rdg-drag-handle-size) * -0.5 + 1px)",isLastColumn=column.idx+colSpan-1===maxColIdx;return{...style,gridRowStart,marginInlineEnd:isLastColumn?void 0:marginEnd,marginBlockEnd:isLastRow?void 0:marginEnd,insetInlineStart:insetInlineStart?`calc(${insetInlineStart} + ${columnWidth}px + var(--rdg-drag-handle-size) * -0.5 - 1px)`:void 0}}return u$1("div",{style:getStyle(),className:clsx(cellDragHandleClassname,column.frozen&&cellDragHandleFrozenClassname),onClick,onMouseDown:handleMouseDown,onDoubleClick:handleDoubleClick})}const cellEditing="cis5rrm7-0-0-beta-47";function EditCell({column,colSpan,row:row2,rowIdx,onRowChange,closeEditor,onKeyDown,navigate}){var _a,_b,_c;const frameRequestRef=A$1(void 0),commitOnOutsideClick=((_a=column.editorOptions)==null?void 0:_a.commitOnOutsideClick)!==!1,commitOnOutsideMouseDown=useLatestFunc(()=>{onClose(!0,!1)});y(()=>{if(!commitOnOutsideClick)return;function onWindowCaptureMouseDown(){frameRequestRef.current=requestAnimationFrame(commitOnOutsideMouseDown)}return addEventListener("mousedown",onWindowCaptureMouseDown,{capture:!0}),()=>{removeEventListener("mousedown",onWindowCaptureMouseDown,{capture:!0}),cancelFrameRequest()}},[commitOnOutsideClick,commitOnOutsideMouseDown]);function cancelFrameRequest(){cancelAnimationFrame(frameRequestRef.current)}function handleKeyDown(event){if(onKeyDown){const cellEvent=createCellEvent(event);if(onKeyDown({mode:"EDIT",row:row2,column,rowIdx,navigate(){navigate(event)},onClose},cellEvent),cellEvent.isGridDefaultPrevented())return}event.key==="Escape"?onClose():event.key==="Enter"?onClose(!0):onEditorNavigation(event)&&navigate(event)}function onClose(commitChanges=!1,shouldFocusCell=!0){commitChanges?onRowChange(row2,!0,shouldFocusCell):closeEditor(shouldFocusCell)}function onEditorRowChange(row3,commitChangesAndFocus=!1){onRowChange(row3,commitChangesAndFocus,commitChangesAndFocus)}const{cellClass}=column,className=getCellClassname(column,"rdg-editor-container",typeof cellClass=="function"?cellClass(row2):cellClass,!((_b=column.editorOptions)!=null&&_b.displayCellContent)&&cellEditing);return u$1("div",{role:"gridcell","aria-colindex":column.idx+1,"aria-colspan":colSpan,"aria-selected":!0,className,style:getCellStyle(column,colSpan),onKeyDown:handleKeyDown,onMouseDownCapture:cancelFrameRequest,children:column.renderEditCell!=null&&u$1(b,{children:[column.renderEditCell({column,row:row2,rowIdx,onRowChange:onEditorRowChange,onClose}),((_c=column.editorOptions)==null?void 0:_c.displayCellContent)&&column.renderCell({column,row:row2,rowIdx,isCellEditable:!0,tabIndex:-1,onRowChange:onEditorRowChange})]})})}function GroupedColumnHeaderCell({column,rowIdx,isCellSelected,selectCell}){const{tabIndex,onFocus}=useRovingTabIndex(isCellSelected),{colSpan}=column,rowSpan=getHeaderCellRowSpan(column,rowIdx),index=column.idx+1;function onClick(){selectCell({idx:column.idx,rowIdx})}return u$1("div",{role:"columnheader","aria-colindex":index,"aria-colspan":colSpan,"aria-rowspan":rowSpan,"aria-selected":isCellSelected,tabIndex,className:clsx(cellClassname,column.headerCellClass),style:{...getHeaderCellStyle(column,rowIdx,rowSpan),gridColumnStart:index,gridColumnEnd:index+colSpan},onFocus,onClick,children:column.name})}const headerSortCellClassname="h44jtk67-0-0-beta-47",headerSortName="hcgkhxz7-0-0-beta-47",headerSortNameClassname=`rdg-header-sort-name ${headerSortName}`;function renderHeaderCell({column,sortDirection,priority}){return column.sortable?u$1(SortableHeaderCell,{sortDirection,priority,children:column.name}):column.name}function SortableHeaderCell({sortDirection,priority,children}){const renderSortStatus2=useDefaultRenderers().renderSortStatus;return u$1("span",{className:headerSortCellClassname,children:[u$1("span",{className:headerSortNameClassname,children}),u$1("span",{children:renderSortStatus2({sortDirection,priority})})]})}const cellSortableClassname="c6l2wv17-0-0-beta-47",cellResizable="c1kqdw7y7-0-0-beta-47",cellResizableClassname=`rdg-cell-resizable ${cellResizable}`,resizeHandleClassname="r1y6ywlx7-0-0-beta-47",cellDraggableClassname="rdg-cell-draggable",cellDragging="c1bezg5o7-0-0-beta-47",cellDraggingClassname=`rdg-cell-dragging ${cellDragging}`,cellOver="c1vc96037-0-0-beta-47",cellOverClassname=`rdg-cell-drag-over ${cellOver}`;function HeaderCell({column,colSpan,rowIdx,isCellSelected,onColumnResize,onColumnsReorder,sortColumns,onSortColumnsChange,selectCell,shouldFocusGrid,direction,dragDropKey}){const[isDragging,setIsDragging]=h(!1),[isOver,setIsOver]=h(!1),isRtl=direction==="rtl",rowSpan=getHeaderCellRowSpan(column,rowIdx),{tabIndex,childTabIndex,onFocus}=useRovingTabIndex(isCellSelected),sortIndex=sortColumns==null?void 0:sortColumns.findIndex(sort=>sort.columnKey===column.key),sortColumn=sortIndex!==void 0&&sortIndex>-1?sortColumns[sortIndex]:void 0,sortDirection=sortColumn==null?void 0:sortColumn.direction,priority=sortColumn!==void 0&&sortColumns.length>1?sortIndex+1:void 0,ariaSort=sortDirection&&!priority?sortDirection==="ASC"?"ascending":"descending":void 0,{sortable,resizable,draggable}=column,className=getCellClassname(column,column.headerCellClass,sortable&&cellSortableClassname,resizable&&cellResizableClassname,draggable&&cellDraggableClassname,isDragging&&cellDraggingClassname,isOver&&cellOverClassname),renderHeaderCell$1=column.renderHeaderCell??renderHeaderCell;function onPointerDown(event){if(event.pointerType==="mouse"&&event.buttons!==1)return;event.preventDefault();const{currentTarget,pointerId}=event,headerCell=currentTarget.parentElement,{right,left}=headerCell.getBoundingClientRect(),offset=isRtl?event.clientX-left:right-event.clientX;let hasDoubleClicked=!1;function onPointerMove(event2){const{width,right:right2,left:left2}=headerCell.getBoundingClientRect();let newWidth=isRtl?right2+offset-event2.clientX:event2.clientX+offset-left2;newWidth=clampColumnWidth(newWidth,column),width>0&&newWidth!==width&&onColumnResize(column,newWidth)}function onDoubleClick(){hasDoubleClicked=!0,onColumnResize(column,"max-content")}function onLostPointerCapture(event2){hasDoubleClicked||onPointerMove(event2),currentTarget.removeEventListener("pointermove",onPointerMove),currentTarget.removeEventListener("dblclick",onDoubleClick),currentTarget.removeEventListener("lostpointercapture",onLostPointerCapture)}currentTarget.setPointerCapture(pointerId),currentTarget.addEventListener("pointermove",onPointerMove),currentTarget.addEventListener("dblclick",onDoubleClick),currentTarget.addEventListener("lostpointercapture",onLostPointerCapture)}function onSort(ctrlClick){if(onSortColumnsChange==null)return;const{sortDescendingFirst}=column;if(sortColumn===void 0){const nextSort={columnKey:column.key,direction:sortDescendingFirst?"DESC":"ASC"};onSortColumnsChange(sortColumns&&ctrlClick?[...sortColumns,nextSort]:[nextSort])}else{let nextSortColumn;if((sortDescendingFirst===!0&&sortDirection==="DESC"||sortDescendingFirst!==!0&&sortDirection==="ASC")&&(nextSortColumn={columnKey:column.key,direction:sortDirection==="ASC"?"DESC":"ASC"}),ctrlClick){const nextSortColumns=[...sortColumns];nextSortColumn?nextSortColumns[sortIndex]=nextSortColumn:nextSortColumns.splice(sortIndex,1),onSortColumnsChange(nextSortColumns)}else onSortColumnsChange(nextSortColumn?[nextSortColumn]:[])}}function onClick(event){selectCell({idx:column.idx,rowIdx}),sortable&&onSort(event.ctrlKey||event.metaKey)}function handleFocus(event){onFocus==null||onFocus(event),shouldFocusGrid&&selectCell({idx:0,rowIdx})}function onKeyDown(event){(event.key===" "||event.key==="Enter")&&(event.preventDefault(),onSort(event.ctrlKey||event.metaKey))}function onDragStart(event){event.dataTransfer.setData(dragDropKey,column.key),event.dataTransfer.dropEffect="move",setIsDragging(!0)}function onDragEnd(){setIsDragging(!1)}function onDragOver(event){event.preventDefault(),event.dataTransfer.dropEffect="move"}function onDrop(event){if(setIsOver(!1),event.dataTransfer.types.includes(dragDropKey.toLowerCase())){const sourceKey=event.dataTransfer.getData(dragDropKey.toLowerCase());sourceKey!==column.key&&(event.preventDefault(),onColumnsReorder==null||onColumnsReorder(sourceKey,column.key))}}function onDragEnter(event){isEventPertinent(event)&&setIsOver(!0)}function onDragLeave(event){isEventPertinent(event)&&setIsOver(!1)}let draggableProps;return draggable&&(draggableProps={draggable:!0,onDragStart,onDragEnd,onDragOver,onDragEnter,onDragLeave,onDrop}),u$1("div",{role:"columnheader","aria-colindex":column.idx+1,"aria-colspan":colSpan,"aria-rowspan":rowSpan,"aria-selected":isCellSelected,"aria-sort":ariaSort,tabIndex:shouldFocusGrid?0:tabIndex,className,style:{...getHeaderCellStyle(column,rowIdx,rowSpan),...getCellStyle(column,colSpan)},onFocus:handleFocus,onClick,onKeyDown:sortable?onKeyDown:void 0,...draggableProps,children:[renderHeaderCell$1({column,sortDirection,priority,tabIndex:childTabIndex}),resizable&&u$1("div",{className:resizeHandleClassname,onClick:stopPropagation,onPointerDown})]})}function isEventPertinent(event){const relatedTarget=event.relatedTarget;return!event.currentTarget.contains(relatedTarget)}const row="r1upfr807-0-0-beta-47",rowClassname=`rdg-row ${row}`,rowSelected="r190mhd37-0-0-beta-47",rowSelectedClassname="rdg-row-selected",rowSelectedWithFrozenCell="r139qu9m7-0-0-beta-47",topSummaryRowClassname="rdg-top-summary-row",bottomSummaryRowClassname="rdg-bottom-summary-row",headerRow="h10tskcx7-0-0-beta-47",headerRowClassname=`rdg-header-row ${headerRow}`;function HeaderRow({rowIdx,columns,onColumnResize,onColumnsReorder,sortColumns,onSortColumnsChange,lastFrozenColumnIndex,selectedCellIdx,selectCell,shouldFocusGrid,direction}){const dragDropKey=g$1(),cells=[];for(let index=0;index<columns.length;index++){const column=columns[index],colSpan=getColSpan(column,lastFrozenColumnIndex,{type:"HEADER"});colSpan!==void 0&&(index+=colSpan-1),cells.push(u$1(HeaderCell,{column,colSpan,rowIdx,isCellSelected:selectedCellIdx===column.idx,onColumnResize,onColumnsReorder,onSortColumnsChange,sortColumns,selectCell,shouldFocusGrid:shouldFocusGrid&&index===0,direction,dragDropKey},column.key))}return u$1("div",{role:"row","aria-rowindex":rowIdx,className:clsx(headerRowClassname,selectedCellIdx===-1&&rowSelectedClassname),children:cells})}const HeaderRow$1=N(HeaderRow);function GroupedColumnHeaderRow({rowIdx,level,columns,selectedCellIdx,selectCell}){const cells=[],renderedParents=new Set;for(const column of columns){let{parent}=column;if(parent!==void 0){for(;parent.level>level&&parent.parent!==void 0;)parent=parent.parent;if(parent.level===level&&!renderedParents.has(parent)){renderedParents.add(parent);const{idx}=parent;cells.push(u$1(GroupedColumnHeaderCell,{column:parent,rowIdx,isCellSelected:selectedCellIdx===idx,selectCell},idx))}}}return u$1("div",{role:"row","aria-rowindex":rowIdx,className:headerRowClassname,children:cells})}const GroupedColumnHeaderRow$1=N(GroupedColumnHeaderRow),cellCopied="c6ra8a37-0-0-beta-47",cellCopiedClassname=`rdg-cell-copied ${cellCopied}`,cellDraggedOver="cq910m07-0-0-beta-47",cellDraggedOverClassname=`rdg-cell-dragged-over ${cellDraggedOver}`;function Cell$1({column,colSpan,isCellSelected,isCopied,isDraggedOver,row:row2,rowIdx,onClick,onDoubleClick,onContextMenu,onRowChange,selectCell,...props}){const{tabIndex,childTabIndex,onFocus}=useRovingTabIndex(isCellSelected),{cellClass}=column,className=getCellClassname(column,typeof cellClass=="function"?cellClass(row2):cellClass,isCopied&&cellCopiedClassname,isDraggedOver&&cellDraggedOverClassname),isEditable=isCellEditableUtil(column,row2);function selectCellWrapper(openEditor){selectCell({rowIdx,idx:column.idx},openEditor)}function handleClick(event){if(onClick){const cellEvent=createCellEvent(event);if(onClick({row:row2,column,selectCell:selectCellWrapper},cellEvent),cellEvent.isGridDefaultPrevented())return}selectCellWrapper()}function handleContextMenu(event){if(onContextMenu){const cellEvent=createCellEvent(event);if(onContextMenu({row:row2,column,selectCell:selectCellWrapper},cellEvent),cellEvent.isGridDefaultPrevented())return}selectCellWrapper()}function handleDoubleClick(event){if(onDoubleClick){const cellEvent=createCellEvent(event);if(onDoubleClick({row:row2,column,selectCell:selectCellWrapper},cellEvent),cellEvent.isGridDefaultPrevented())return}selectCellWrapper(!0)}function handleRowChange(newRow){onRowChange(column,newRow)}return u$1("div",{role:"gridcell","aria-colindex":column.idx+1,"aria-colspan":colSpan,"aria-selected":isCellSelected,"aria-readonly":!isEditable||void 0,tabIndex,className,style:getCellStyle(column,colSpan),onClick:handleClick,onDoubleClick:handleDoubleClick,onContextMenu:handleContextMenu,onFocus,...props,children:column.renderCell({column,row:row2,rowIdx,isCellEditable:isEditable,tabIndex:childTabIndex,onRowChange:handleRowChange})})}const Cell$1$1=N(Cell$1);function Row({className,rowIdx,gridRowStart,selectedCellIdx,isRowSelectionDisabled,isRowSelected,copiedCellIdx,draggedOverCellIdx,lastFrozenColumnIndex,row:row2,viewportColumns,selectedCellEditor,onCellClick,onCellDoubleClick,onCellContextMenu,rowClass,setDraggedOverRowIdx,onMouseEnter,onRowChange,selectCell,...props},ref){const handleRowChange=useLatestFunc((column,newRow)=>{onRowChange(column,rowIdx,newRow)});function handleDragEnter(event){setDraggedOverRowIdx==null||setDraggedOverRowIdx(rowIdx),onMouseEnter==null||onMouseEnter(event)}className=clsx(rowClassname,`rdg-row-${rowIdx%2===0?"even":"odd"}`,rowClass==null?void 0:rowClass(row2,rowIdx),className,selectedCellIdx===-1&&rowSelectedClassname);const cells=[];for(let index=0;index<viewportColumns.length;index++){const column=viewportColumns[index],{idx}=column,colSpan=getColSpan(column,lastFrozenColumnIndex,{type:"ROW",row:row2});colSpan!==void 0&&(index+=colSpan-1);const isCellSelected=selectedCellIdx===idx;isCellSelected&&selectedCellEditor?cells.push(selectedCellEditor):cells.push(u$1(Cell$1$1,{column,colSpan,row:row2,rowIdx,isCopied:copiedCellIdx===idx,isDraggedOver:draggedOverCellIdx===idx,isCellSelected,onClick:onCellClick,onDoubleClick:onCellDoubleClick,onContextMenu:onCellContextMenu,onRowChange:handleRowChange,selectCell},column.key))}const selectionValue=T$1(()=>({isRowSelected,isRowSelectionDisabled}),[isRowSelectionDisabled,isRowSelected]);return u$1(RowSelectionProvider,{value:selectionValue,children:u$1("div",{role:"row",ref,className,onMouseEnter:handleDragEnter,style:getRowStyle(gridRowStart),...props,children:cells})})}const RowComponent=N(A(Row));function defaultRenderRow(key,props){return u$1(RowComponent,{...props},key)}function ScrollToCell({scrollToPosition:{idx,rowIdx},gridElement,setScrollToCellPosition}){const ref=A$1(null);return useLayoutEffect(()=>{scrollIntoView(ref.current)}),useLayoutEffect(()=>{function removeScrollToCell(){setScrollToCellPosition(null)}const observer=new IntersectionObserver(removeScrollToCell,{root:gridElement,threshold:1});return observer.observe(ref.current),()=>{observer.disconnect()}},[gridElement,setScrollToCellPosition]),u$1("div",{ref,style:{gridColumn:idx===void 0?"1/-1":idx+1,gridRow:rowIdx===void 0?"1/-1":rowIdx+2}})}const arrow="a3ejtar7-0-0-beta-47",arrowClassname=`rdg-sort-arrow ${arrow}`;function renderSortStatus({sortDirection,priority}){return u$1(b,{children:[renderSortIcon({sortDirection}),renderSortPriority({priority})]})}function renderSortIcon({sortDirection}){return sortDirection===void 0?null:u$1("svg",{viewBox:"0 0 12 8",width:"12",height:"8",className:arrowClassname,"aria-hidden":!0,children:u$1("path",{d:sortDirection==="ASC"?"M0 8 6 0 12 8":"M0 0 6 8 12 0"})})}function renderSortPriority({priority}){return priority}const root="rnvodz57-0-0-beta-47",rootClassname=`rdg ${root}`,viewportDragging="vlqv91k7-0-0-beta-47",viewportDraggingClassname=`rdg-viewport-dragging ${viewportDragging}`,focusSinkClassname="f1lsfrzw7-0-0-beta-47",focusSinkHeaderAndSummaryClassname="f1cte0lg7-0-0-beta-47",summaryCellClassname="s8wc6fl7-0-0-beta-47";function SummaryCell({column,colSpan,row:row2,rowIdx,isCellSelected,selectCell}){var _a;const{tabIndex,childTabIndex,onFocus}=useRovingTabIndex(isCellSelected),{summaryCellClass}=column,className=getCellClassname(column,summaryCellClassname,typeof summaryCellClass=="function"?summaryCellClass(row2):summaryCellClass);function onClick(){selectCell({rowIdx,idx:column.idx})}return u$1("div",{role:"gridcell","aria-colindex":column.idx+1,"aria-colspan":colSpan,"aria-selected":isCellSelected,tabIndex,className,style:getCellStyle(column,colSpan),onClick,onFocus,children:(_a=column.renderSummaryCell)==null?void 0:_a.call(column,{column,row:row2,tabIndex:childTabIndex})})}const SummaryCell$1=N(SummaryCell),summaryRow="skuhp557-0-0-beta-47",topSummaryRow="tf8l5ub7-0-0-beta-47",summaryRowClassname=`rdg-summary-row ${summaryRow}`;function SummaryRow({rowIdx,gridRowStart,row:row2,viewportColumns,top,bottom,lastFrozenColumnIndex,selectedCellIdx,isTop,selectCell,"aria-rowindex":ariaRowIndex}){const cells=[];for(let index=0;index<viewportColumns.length;index++){const column=viewportColumns[index],colSpan=getColSpan(column,lastFrozenColumnIndex,{type:"SUMMARY",row:row2});colSpan!==void 0&&(index+=colSpan-1);const isCellSelected=selectedCellIdx===column.idx;cells.push(u$1(SummaryCell$1,{column,colSpan,row:row2,rowIdx,isCellSelected,selectCell},column.key))}return u$1("div",{role:"row","aria-rowindex":ariaRowIndex,className:clsx(rowClassname,`rdg-row-${rowIdx%2===0?"even":"odd"}`,summaryRowClassname,isTop?`${topSummaryRowClassname} ${topSummaryRow}`:bottomSummaryRowClassname,selectedCellIdx===-1&&rowSelectedClassname),style:{...getRowStyle(gridRowStart),"--rdg-summary-row-top":top!==void 0?`${top}px`:void 0,"--rdg-summary-row-bottom":bottom!==void 0?`${bottom}px`:void 0},children:cells})}const SummaryRow$1=N(SummaryRow);function DataGrid(props,ref){const{columns:rawColumns,rows,topSummaryRows,bottomSummaryRows,rowKeyGetter,onRowsChange,rowHeight:rawRowHeight,headerRowHeight:rawHeaderRowHeight,summaryRowHeight:rawSummaryRowHeight,selectedRows,isRowSelectionDisabled,onSelectedRowsChange,sortColumns,onSortColumnsChange,defaultColumnOptions,onCellClick,onCellDoubleClick,onCellContextMenu,onCellKeyDown,onSelectedCellChange,onScroll,onColumnResize,onColumnsReorder,onFill,onCopy,onPaste,enableVirtualization:rawEnableVirtualization,renderers,className,style,rowClass,direction:rawDirection,role:rawRole,"aria-label":ariaLabel,"aria-labelledby":ariaLabelledBy,"aria-describedby":ariaDescribedBy,"aria-rowcount":rawAriaRowCount,"data-testid":testId}=props,defaultRenderers=useDefaultRenderers(),role=rawRole??"grid",rowHeight=rawRowHeight??35,headerRowHeight=rawHeaderRowHeight??(typeof rowHeight=="number"?rowHeight:35),summaryRowHeight=rawSummaryRowHeight??(typeof rowHeight=="number"?rowHeight:35),renderRow=(renderers==null?void 0:renderers.renderRow)??(defaultRenderers==null?void 0:defaultRenderers.renderRow)??defaultRenderRow,renderSortStatus$1=(renderers==null?void 0:renderers.renderSortStatus)??(defaultRenderers==null?void 0:defaultRenderers.renderSortStatus)??renderSortStatus,renderCheckbox$1=(renderers==null?void 0:renderers.renderCheckbox)??(defaultRenderers==null?void 0:defaultRenderers.renderCheckbox)??renderCheckbox,noRowsFallback=(renderers==null?void 0:renderers.noRowsFallback)??(defaultRenderers==null?void 0:defaultRenderers.noRowsFallback),enableVirtualization=rawEnableVirtualization??!0,direction=rawDirection??"ltr",[scrollTop,setScrollTop]=h(0),[scrollLeft,setScrollLeft]=h(0),[resizedColumnWidths,setResizedColumnWidths]=h(()=>new Map),[measuredColumnWidths,setMeasuredColumnWidths]=h(()=>new Map),[copiedCell,setCopiedCell]=h(null),[isDragging,setDragging]=h(!1),[draggedOverRowIdx,setOverRowIdx]=h(void 0),[scrollToPosition,setScrollToPosition]=h(null),getColumnWidth=q$1(column=>resizedColumnWidths.get(column.key)??measuredColumnWidths.get(column.key)??column.width,[measuredColumnWidths,resizedColumnWidths]),[gridRef,gridWidth,gridHeight,horizontalScrollbarHeight]=useGridDimensions(),{columns,colSpanColumns,lastFrozenColumnIndex,headerRowsCount,colOverscanStartIdx,colOverscanEndIdx,templateColumns,layoutCssVars,totalFrozenColumnWidth}=useCalculatedColumns({rawColumns,defaultColumnOptions,getColumnWidth,scrollLeft,viewportWidth:gridWidth,enableVirtualization}),topSummaryRowsCount=(topSummaryRows==null?void 0:topSummaryRows.length)??0,bottomSummaryRowsCount=(bottomSummaryRows==null?void 0:bottomSummaryRows.length)??0,summaryRowsCount=topSummaryRowsCount+bottomSummaryRowsCount,headerAndTopSummaryRowsCount=headerRowsCount+topSummaryRowsCount,groupedColumnHeaderRowsCount=headerRowsCount-1,minRowIdx=-headerAndTopSummaryRowsCount,mainHeaderRowIdx=minRowIdx+groupedColumnHeaderRowsCount,maxRowIdx=rows.length+bottomSummaryRowsCount-1,[selectedPosition,setSelectedPosition]=h(()=>({idx:-1,rowIdx:minRowIdx-1,mode:"SELECT"})),prevSelectedPosition=A$1(selectedPosition),latestDraggedOverRowIdx=A$1(draggedOverRowIdx),lastSelectedRowIdx=A$1(-1),focusSinkRef=A$1(null),shouldFocusCellRef=A$1(!1),isTreeGrid=role==="treegrid",headerRowsHeight=headerRowsCount*headerRowHeight,summaryRowsHeight=summaryRowsCount*summaryRowHeight,clientHeight=gridHeight-headerRowsHeight-summaryRowsHeight,isSelectable=selectedRows!=null&&onSelectedRowsChange!=null,isRtl=direction==="rtl",leftKey=isRtl?"ArrowRight":"ArrowLeft",rightKey=isRtl?"ArrowLeft":"ArrowRight",ariaRowCount=rawAriaRowCount??headerRowsCount+rows.length+summaryRowsCount,defaultGridComponents=T$1(()=>({renderCheckbox:renderCheckbox$1,renderSortStatus:renderSortStatus$1}),[renderCheckbox$1,renderSortStatus$1]),headerSelectionValue=T$1(()=>{let hasSelectedRow=!1,hasUnselectedRow=!1;if(rowKeyGetter!=null&&selectedRows!=null&&selectedRows.size>0){for(const row2 of rows)if(selectedRows.has(rowKeyGetter(row2))?hasSelectedRow=!0:hasUnselectedRow=!0,hasSelectedRow&&hasUnselectedRow)break}return{isRowSelected:hasSelectedRow&&!hasUnselectedRow,isIndeterminate:hasSelectedRow&&hasUnselectedRow}},[rows,selectedRows,rowKeyGetter]),{rowOverscanStartIdx,rowOverscanEndIdx,totalRowHeight,gridTemplateRows,getRowTop,getRowHeight,findRowIdx}=useViewportRows({rows,rowHeight,clientHeight,scrollTop,enableVirtualization}),viewportColumns=useViewportColumns({columns,colSpanColumns,colOverscanStartIdx,colOverscanEndIdx,lastFrozenColumnIndex,rowOverscanStartIdx,rowOverscanEndIdx,rows,topSummaryRows,bottomSummaryRows}),{gridTemplateColumns,handleColumnResize}=useColumnWidths(columns,viewportColumns,templateColumns,gridRef,gridWidth,resizedColumnWidths,measuredColumnWidths,setResizedColumnWidths,setMeasuredColumnWidths,onColumnResize),minColIdx=isTreeGrid?-1:0,maxColIdx=columns.length-1,selectedCellIsWithinSelectionBounds=isCellWithinSelectionBounds(selectedPosition),selectedCellIsWithinViewportBounds=isCellWithinViewportBounds(selectedPosition),scrollHeight=headerRowHeight+totalRowHeight+summaryRowsHeight+horizontalScrollbarHeight,handleColumnResizeLatest=useLatestFunc(handleColumnResize),onColumnsReorderLastest=useLatestFunc(onColumnsReorder),onSortColumnsChangeLatest=useLatestFunc(onSortColumnsChange),onCellClickLatest=useLatestFunc(onCellClick),onCellDoubleClickLatest=useLatestFunc(onCellDoubleClick),onCellContextMenuLatest=useLatestFunc(onCellContextMenu),selectHeaderRowLatest=useLatestFunc(selectHeaderRow),selectRowLatest=useLatestFunc(selectRow),handleFormatterRowChangeLatest=useLatestFunc(updateRow),selectCellLatest=useLatestFunc(selectCell),selectHeaderCellLatest=useLatestFunc(({idx,rowIdx})=>{selectCell({rowIdx:minRowIdx+rowIdx-1,idx})});useLayoutEffect(()=>{if(!selectedCellIsWithinSelectionBounds||isSamePosition(selectedPosition,prevSelectedPosition.current)){prevSelectedPosition.current=selectedPosition;return}prevSelectedPosition.current=selectedPosition,selectedPosition.idx===-1&&(focusSinkRef.current.focus({preventScroll:!0}),scrollIntoView(focusSinkRef.current))}),useLayoutEffect(()=>{shouldFocusCellRef.current&&(shouldFocusCellRef.current=!1,focusCellOrCellContent())}),F$1(ref,()=>({element:gridRef.current,scrollToCell({idx,rowIdx}){const scrollToIdx=idx!==void 0&&idx>lastFrozenColumnIndex&&idx<columns.length?idx:void 0,scrollToRowIdx=rowIdx!==void 0&&isRowIdxWithinViewportBounds(rowIdx)?rowIdx:void 0;(scrollToIdx!==void 0||scrollToRowIdx!==void 0)&&setScrollToPosition({idx:scrollToIdx,rowIdx:scrollToRowIdx})},selectCell}));const setDraggedOverRowIdx=q$1(rowIdx=>{setOverRowIdx(rowIdx),latestDraggedOverRowIdx.current=rowIdx},[]);function selectHeaderRow(args){if(!onSelectedRowsChange)return;assertIsValidKeyGetter(rowKeyGetter);const newSelectedRows=new Set(selectedRows);for(const row2 of rows){if((isRowSelectionDisabled==null?void 0:isRowSelectionDisabled(row2))===!0)continue;const rowKey=rowKeyGetter(row2);args.checked?newSelectedRows.add(rowKey):newSelectedRows.delete(rowKey)}onSelectedRowsChange(newSelectedRows)}function selectRow(args){if(!onSelectedRowsChange)return;assertIsValidKeyGetter(rowKeyGetter);const{row:row2,checked,isShiftClick}=args;if((isRowSelectionDisabled==null?void 0:isRowSelectionDisabled(row2))===!0)return;const newSelectedRows=new Set(selectedRows),rowKey=rowKeyGetter(row2),previousRowIdx=lastSelectedRowIdx.current,rowIdx=rows.indexOf(row2);if(lastSelectedRowIdx.current=rowIdx,checked?newSelectedRows.add(rowKey):newSelectedRows.delete(rowKey),isShiftClick&&previousRowIdx!==-1&&previousRowIdx!==rowIdx&&previousRowIdx<rows.length){const step=sign(rowIdx-previousRowIdx);for(let i2=previousRowIdx+step;i2!==rowIdx;i2+=step){const row3=rows[i2];(isRowSelectionDisabled==null?void 0:isRowSelectionDisabled(row3))!==!0&&(checked?newSelectedRows.add(rowKeyGetter(row3)):newSelectedRows.delete(rowKeyGetter(row3)))}}onSelectedRowsChange(newSelectedRows)}function handleKeyDown(event){var _a;const{idx,rowIdx,mode}=selectedPosition;if(mode==="EDIT")return;if(onCellKeyDown&&isRowIdxWithinViewportBounds(rowIdx)){const row2=rows[rowIdx],cellEvent=createCellEvent(event);if(onCellKeyDown({mode:"SELECT",row:row2,column:columns[idx],rowIdx,selectCell},cellEvent),cellEvent.isGridDefaultPrevented())return}if(!(event.target instanceof Element))return;const isCellEvent=event.target.closest(".rdg-cell")!==null,isRowEvent=isTreeGrid&&event.target===focusSinkRef.current;if(!isCellEvent&&!isRowEvent)return;const{keyCode}=event;if(selectedCellIsWithinViewportBounds&&(onPaste!=null||onCopy!=null)&&isCtrlKeyHeldDown(event)){if(keyCode===67){if(((_a=window.getSelection())==null?void 0:_a.isCollapsed)===!1)return;handleCopy();return}if(keyCode===86){handlePaste();return}}switch(event.key){case"Escape":setCopiedCell(null);return;case"ArrowUp":case"ArrowDown":case"ArrowLeft":case"ArrowRight":case"Tab":case"Home":case"End":case"PageUp":case"PageDown":navigate(event);break;default:handleCellInput(event);break}}function handleScroll(event){const{scrollTop:scrollTop2,scrollLeft:scrollLeft2}=event.currentTarget;gn(()=>{setScrollTop(scrollTop2),setScrollLeft(abs(scrollLeft2))}),onScroll==null||onScroll(event)}function updateRow(column,rowIdx,row2){if(typeof onRowsChange!="function"||row2===rows[rowIdx])return;const updatedRows=[...rows];updatedRows[rowIdx]=row2,onRowsChange(updatedRows,{indexes:[rowIdx],column})}function commitEditorChanges(){selectedPosition.mode==="EDIT"&&updateRow(columns[selectedPosition.idx],selectedPosition.rowIdx,selectedPosition.row)}function handleCopy(){const{idx,rowIdx}=selectedPosition,sourceRow=rows[rowIdx],sourceColumnKey=columns[idx].key;setCopiedCell({row:sourceRow,columnKey:sourceColumnKey}),onCopy==null||onCopy({sourceRow,sourceColumnKey})}function handlePaste(){if(!onPaste||!onRowsChange||copiedCell===null||!isCellEditable(selectedPosition))return;const{idx,rowIdx}=selectedPosition,targetColumn=columns[idx],targetRow=rows[rowIdx],updatedTargetRow=onPaste({sourceRow:copiedCell.row,sourceColumnKey:copiedCell.columnKey,targetRow,targetColumnKey:targetColumn.key});updateRow(targetColumn,rowIdx,updatedTargetRow)}function handleCellInput(event){if(!selectedCellIsWithinViewportBounds)return;const row2=rows[selectedPosition.rowIdx],{key,shiftKey}=event;if(isSelectable&&shiftKey&&key===" "){assertIsValidKeyGetter(rowKeyGetter);const rowKey=rowKeyGetter(row2);selectRow({row:row2,checked:!selectedRows.has(rowKey),isShiftClick:!1}),event.preventDefault();return}isCellEditable(selectedPosition)&&isDefaultCellInput(event)&&setSelectedPosition(({idx,rowIdx})=>({idx,rowIdx,mode:"EDIT",row:row2,originalRow:row2}))}function isColIdxWithinSelectionBounds(idx){return idx>=minColIdx&&idx<=maxColIdx}function isRowIdxWithinViewportBounds(rowIdx){return rowIdx>=0&&rowIdx<rows.length}function isCellWithinSelectionBounds({idx,rowIdx}){return rowIdx>=minRowIdx&&rowIdx<=maxRowIdx&&isColIdxWithinSelectionBounds(idx)}function isCellWithinEditBounds({idx,rowIdx}){return isRowIdxWithinViewportBounds(rowIdx)&&idx>=0&&idx<=maxColIdx}function isCellWithinViewportBounds({idx,rowIdx}){return isRowIdxWithinViewportBounds(rowIdx)&&isColIdxWithinSelectionBounds(idx)}function isCellEditable(position){return isCellWithinEditBounds(position)&&isSelectedCellEditable({columns,rows,selectedPosition:position})}function selectCell(position,enableEditor){if(!isCellWithinSelectionBounds(position))return;commitEditorChanges();const row2=rows[position.rowIdx],samePosition=isSamePosition(selectedPosition,position);enableEditor&&isCellEditable(position)?setSelectedPosition({...position,mode:"EDIT",row:row2,originalRow:row2}):samePosition?scrollIntoView(getCellToScroll(gridRef.current)):(shouldFocusCellRef.current=!0,setSelectedPosition({...position,mode:"SELECT"})),onSelectedCellChange&&!samePosition&&onSelectedCellChange({rowIdx:position.rowIdx,row:row2,column:columns[position.idx]})}function getNextPosition(key,ctrlKey,shiftKey){const{idx,rowIdx}=selectedPosition,isRowSelected=selectedCellIsWithinSelectionBounds&&idx===-1;switch(key){case"ArrowUp":return{idx,rowIdx:rowIdx-1};case"ArrowDown":return{idx,rowIdx:rowIdx+1};case leftKey:return{idx:idx-1,rowIdx};case rightKey:return{idx:idx+1,rowIdx};case"Tab":return{idx:idx+(shiftKey?-1:1),rowIdx};case"Home":return isRowSelected?{idx,rowIdx:minRowIdx}:{idx:0,rowIdx:ctrlKey?minRowIdx:rowIdx};case"End":return isRowSelected?{idx,rowIdx:maxRowIdx}:{idx:maxColIdx,rowIdx:ctrlKey?maxRowIdx:rowIdx};case"PageUp":{if(selectedPosition.rowIdx===minRowIdx)return selectedPosition;const nextRowY=getRowTop(rowIdx)+getRowHeight(rowIdx)-clientHeight;return{idx,rowIdx:nextRowY>0?findRowIdx(nextRowY):0}}case"PageDown":{if(selectedPosition.rowIdx>=rows.length)return selectedPosition;const nextRowY=getRowTop(rowIdx)+clientHeight;return{idx,rowIdx:nextRowY<totalRowHeight?findRowIdx(nextRowY):rows.length-1}}default:return selectedPosition}}function navigate(event){const{key,shiftKey}=event;let cellNavigationMode="NONE";if(key==="Tab"){if(canExitGrid({shiftKey,maxColIdx,minRowIdx,maxRowIdx,selectedPosition})){commitEditorChanges();return}cellNavigationMode="CHANGE_ROW"}event.preventDefault();const ctrlKey=isCtrlKeyHeldDown(event),nextPosition=getNextPosition(key,ctrlKey,shiftKey);if(isSamePosition(selectedPosition,nextPosition))return;const nextSelectedCellPosition=getNextSelectedCellPosition({moveUp:key==="ArrowUp",moveNext:key===rightKey||key==="Tab"&&!shiftKey,columns,colSpanColumns,rows,topSummaryRows,bottomSummaryRows,minRowIdx,mainHeaderRowIdx,maxRowIdx,lastFrozenColumnIndex,cellNavigationMode,currentPosition:selectedPosition,nextPosition,isCellWithinBounds:isCellWithinSelectionBounds});selectCell(nextSelectedCellPosition)}function getDraggedOverCellIdx(currentRowIdx){if(draggedOverRowIdx===void 0)return;const{rowIdx}=selectedPosition;return(rowIdx<draggedOverRowIdx?rowIdx<currentRowIdx&¤tRowIdx<=draggedOverRowIdx:rowIdx>currentRowIdx&¤tRowIdx>=draggedOverRowIdx)?selectedPosition.idx:void 0}function focusCellOrCellContent(){const cell2=getCellToScroll(gridRef.current);cell2!==null&&(scrollIntoView(cell2),(cell2.querySelector('[tabindex="0"]')??cell2).focus({preventScroll:!0}))}function renderDragHandle(){if(onFill==null||selectedPosition.mode==="EDIT"||!isCellWithinViewportBounds(selectedPosition))return;const{idx,rowIdx}=selectedPosition,column=columns[idx];if(column.renderEditCell==null||column.editable===!1)return;const columnWidth=getColumnWidth(column);return u$1(DragHandle,{gridRowStart:headerAndTopSummaryRowsCount+rowIdx+1,rows,column,columnWidth,maxColIdx,isLastRow:rowIdx===maxRowIdx,selectedPosition,isCellEditable,latestDraggedOverRowIdx,onRowsChange,onClick:focusCellOrCellContent,onFill,setDragging,setDraggedOverRowIdx})}function getCellEditor(rowIdx){if(selectedPosition.rowIdx!==rowIdx||selectedPosition.mode==="SELECT")return;const{idx,row:row2}=selectedPosition,column=columns[idx],colSpan=getColSpan(column,lastFrozenColumnIndex,{type:"ROW",row:row2}),closeEditor=shouldFocusCell=>{shouldFocusCellRef.current=shouldFocusCell,setSelectedPosition(({idx:idx2,rowIdx:rowIdx2})=>({idx:idx2,rowIdx:rowIdx2,mode:"SELECT"}))},onRowChange=(row3,commitChanges,shouldFocusCell)=>{commitChanges?gn(()=>{updateRow(column,selectedPosition.rowIdx,row3),closeEditor(shouldFocusCell)}):setSelectedPosition(position=>({...position,row:row3}))};return rows[selectedPosition.rowIdx]!==selectedPosition.originalRow&&closeEditor(!1),u$1(EditCell,{column,colSpan,row:row2,rowIdx,onRowChange,closeEditor,onKeyDown:onCellKeyDown,navigate},column.key)}function getRowViewportColumns(rowIdx){const selectedColumn=selectedPosition.idx===-1?void 0:columns[selectedPosition.idx];return selectedColumn!==void 0&&selectedPosition.rowIdx===rowIdx&&!viewportColumns.includes(selectedColumn)?selectedPosition.idx>colOverscanEndIdx?[...viewportColumns,selectedColumn]:[...viewportColumns.slice(0,lastFrozenColumnIndex+1),selectedColumn,...viewportColumns.slice(lastFrozenColumnIndex+1)]:viewportColumns}function getViewportRows(){const rowElements=[],{idx:selectedIdx,rowIdx:selectedRowIdx}=selectedPosition,startRowIdx=selectedCellIsWithinViewportBounds&&selectedRowIdx<rowOverscanStartIdx?rowOverscanStartIdx-1:rowOverscanStartIdx,endRowIdx=selectedCellIsWithinViewportBounds&&selectedRowIdx>rowOverscanEndIdx?rowOverscanEndIdx+1:rowOverscanEndIdx;for(let viewportRowIdx=startRowIdx;viewportRowIdx<=endRowIdx;viewportRowIdx++){const isRowOutsideViewport=viewportRowIdx===rowOverscanStartIdx-1||viewportRowIdx===rowOverscanEndIdx+1,rowIdx=isRowOutsideViewport?selectedRowIdx:viewportRowIdx;let rowColumns=viewportColumns;const selectedColumn=selectedIdx===-1?void 0:columns[selectedIdx];selectedColumn!==void 0&&(isRowOutsideViewport?rowColumns=[selectedColumn]:rowColumns=getRowViewportColumns(rowIdx));const row2=rows[rowIdx],gridRowStart=headerAndTopSummaryRowsCount+rowIdx+1;let key=rowIdx,isRowSelected=!1;typeof rowKeyGetter=="function"&&(key=rowKeyGetter(row2),isRowSelected=(selectedRows==null?void 0:selectedRows.has(key))??!1),rowElements.push(renderRow(key,{"aria-rowindex":headerAndTopSummaryRowsCount+rowIdx+1,"aria-selected":isSelectable?isRowSelected:void 0,rowIdx,row:row2,viewportColumns:rowColumns,isRowSelectionDisabled:(isRowSelectionDisabled==null?void 0:isRowSelectionDisabled(row2))??!1,isRowSelected,onCellClick:onCellClickLatest,onCellDoubleClick:onCellDoubleClickLatest,onCellContextMenu:onCellContextMenuLatest,rowClass,gridRowStart,copiedCellIdx:copiedCell!==null&&copiedCell.row===row2?columns.findIndex(c2=>c2.key===copiedCell.columnKey):void 0,selectedCellIdx:selectedRowIdx===rowIdx?selectedIdx:void 0,draggedOverCellIdx:getDraggedOverCellIdx(rowIdx),setDraggedOverRowIdx:isDragging?setDraggedOverRowIdx:void 0,lastFrozenColumnIndex,onRowChange:handleFormatterRowChangeLatest,selectCell:selectCellLatest,selectedCellEditor:getCellEditor(rowIdx)}))}return rowElements}(selectedPosition.idx>maxColIdx||selectedPosition.rowIdx>maxRowIdx)&&(setSelectedPosition({idx:-1,rowIdx:minRowIdx-1,mode:"SELECT"}),setDraggedOverRowIdx(void 0));let templateRows=`repeat(${headerRowsCount}, ${headerRowHeight}px)`;topSummaryRowsCount>0&&(templateRows+=` repeat(${topSummaryRowsCount}, ${summaryRowHeight}px)`),rows.length>0&&(templateRows+=gridTemplateRows),bottomSummaryRowsCount>0&&(templateRows+=` repeat(${bottomSummaryRowsCount}, ${summaryRowHeight}px)`);const isGroupRowFocused=selectedPosition.idx===-1&&selectedPosition.rowIdx!==minRowIdx-1;return u$1("div",{role,"aria-label":ariaLabel,"aria-labelledby":ariaLabelledBy,"aria-describedby":ariaDescribedBy,"aria-multiselectable":isSelectable?!0:void 0,"aria-colcount":columns.length,"aria-rowcount":ariaRowCount,className:clsx(rootClassname,className,isDragging&&viewportDraggingClassname),style:{...style,scrollPaddingInlineStart:selectedPosition.idx>lastFrozenColumnIndex||(scrollToPosition==null?void 0:scrollToPosition.idx)!==void 0?`${totalFrozenColumnWidth}px`:void 0,scrollPaddingBlock:isRowIdxWithinViewportBounds(selectedPosition.rowIdx)||(scrollToPosition==null?void 0:scrollToPosition.rowIdx)!==void 0?`${headerRowsHeight+topSummaryRowsCount*summaryRowHeight}px ${bottomSummaryRowsCount*summaryRowHeight}px`:void 0,gridTemplateColumns,gridTemplateRows:templateRows,"--rdg-header-row-height":`${headerRowHeight}px`,"--rdg-scroll-height":`${scrollHeight}px`,...layoutCssVars},dir:direction,ref:gridRef,onScroll:handleScroll,onKeyDown:handleKeyDown,"data-testid":testId,children:[u$1(DataGridDefaultRenderersProvider,{value:defaultGridComponents,children:[u$1(HeaderRowSelectionChangeProvider,{value:selectHeaderRowLatest,children:u$1(HeaderRowSelectionProvider,{value:headerSelectionValue,children:[Array.from({length:groupedColumnHeaderRowsCount},(_2,index)=>u$1(GroupedColumnHeaderRow$1,{rowIdx:index+1,level:-groupedColumnHeaderRowsCount+index,columns:getRowViewportColumns(minRowIdx+index),selectedCellIdx:selectedPosition.rowIdx===minRowIdx+index?selectedPosition.idx:void 0,selectCell:selectHeaderCellLatest},index)),u$1(HeaderRow$1,{rowIdx:headerRowsCount,columns:getRowViewportColumns(mainHeaderRowIdx),onColumnResize:handleColumnResizeLatest,onColumnsReorder:onColumnsReorderLastest,sortColumns,onSortColumnsChange:onSortColumnsChangeLatest,lastFrozenColumnIndex,selectedCellIdx:selectedPosition.rowIdx===mainHeaderRowIdx?selectedPosition.idx:void 0,selectCell:selectHeaderCellLatest,shouldFocusGrid:!selectedCellIsWithinSelectionBounds,direction})]})}),rows.length===0&&noRowsFallback?noRowsFallback:u$1(b,{children:[topSummaryRows==null?void 0:topSummaryRows.map((row2,rowIdx)=>{const gridRowStart=headerRowsCount+1+rowIdx,summaryRowIdx=mainHeaderRowIdx+1+rowIdx,isSummaryRowSelected=selectedPosition.rowIdx===summaryRowIdx,top=headerRowsHeight+summaryRowHeight*rowIdx;return u$1(SummaryRow$1,{"aria-rowindex":gridRowStart,rowIdx:summaryRowIdx,gridRowStart,row:row2,top,bottom:void 0,viewportColumns:getRowViewportColumns(summaryRowIdx),lastFrozenColumnIndex,selectedCellIdx:isSummaryRowSelected?selectedPosition.idx:void 0,isTop:!0,selectCell:selectCellLatest},rowIdx)}),u$1(RowSelectionChangeProvider,{value:selectRowLatest,children:getViewportRows()}),bottomSummaryRows==null?void 0:bottomSummaryRows.map((row2,rowIdx)=>{const gridRowStart=headerAndTopSummaryRowsCount+rows.length+rowIdx+1,summaryRowIdx=rows.length+rowIdx,isSummaryRowSelected=selectedPosition.rowIdx===summaryRowIdx,top=clientHeight>totalRowHeight?gridHeight-summaryRowHeight*(bottomSummaryRows.length-rowIdx):void 0,bottom=top===void 0?summaryRowHeight*(bottomSummaryRows.length-1-rowIdx):void 0;return u$1(SummaryRow$1,{"aria-rowindex":ariaRowCount-bottomSummaryRowsCount+rowIdx+1,rowIdx:summaryRowIdx,gridRowStart,row:row2,top,bottom,viewportColumns:getRowViewportColumns(summaryRowIdx),lastFrozenColumnIndex,selectedCellIdx:isSummaryRowSelected?selectedPosition.idx:void 0,isTop:!1,selectCell:selectCellLatest},rowIdx)})]})]}),renderDragHandle(),renderMeasuringCells(viewportColumns),isTreeGrid&&u$1("div",{ref:focusSinkRef,tabIndex:isGroupRowFocused?0:-1,className:clsx(focusSinkClassname,isGroupRowFocused&&[rowSelected,lastFrozenColumnIndex!==-1&&rowSelectedWithFrozenCell],!isRowIdxWithinViewportBounds(selectedPosition.rowIdx)&&focusSinkHeaderAndSummaryClassname),style:{gridRowStart:selectedPosition.rowIdx+headerAndTopSummaryRowsCount+1}}),scrollToPosition!==null&&u$1(ScrollToCell,{scrollToPosition,setScrollToCellPosition:setScrollToPosition,gridElement:gridRef.current})]})}function getCellToScroll(gridEl){return gridEl.querySelector(':scope > [role="row"] > [tabindex="0"]')}function isSamePosition(p1,p2){return p1.idx===p2.idx&&p1.rowIdx===p2.rowIdx}const DataGrid$1=A(DataGrid);function useData(widget){const columns=xn.useMemo(()=>widget.columns(),[widget,widget.dataChecksum()]),data=xn.useMemo(()=>widget.data(),[widget,widget.dataChecksum()]);return[columns,data]}function copyAndSort(items,attribute,descending){const key=attribute;return[...items].sort((a2,b2)=>a2[key]<b2[key]?descending?1:-1:a2[key]>b2[key]?descending?-1:1:0)}const EmptyRowsRenderer=({message})=>u$1("div",{style:{textAlign:"center",gridColumn:"1/-1"},children:message}),ReactTable=({table,sort})=>{const[columns,data]=useData(table),multiSelect=table.multiSelect(),columnTypes=table.columnTypes(),columnPatterns=table.columnPatterns(),columnFormats=table.columnFormats(),[listColumns,setListColumns]=h([]),[sortColumn,setSortColumn]=h(),[rows,setRows]=h([]),[selectedRows,setSelectedRows]=h(new Set);y(()=>{setListColumns([...multiSelect?[SelectColumn]:[],...columns.map(column=>{const type=columnTypes[column]??"string";let formatter,__hpcc_pattern,__hpcc_format;switch(type){case"time":__hpcc_pattern=columnPatterns[column]!==void 0?common.timeParse(columnPatterns[column]):void 0,__hpcc_format=columnFormats[column]!==void 0?common.timeFormat(columnFormats[column]):void 0;break;case"number":formatter=props=>u$1("div",{style:{textAlign:"right"},children:props.row[props.column.key]});default:__hpcc_format=columnFormats[column]!==void 0?common.format(columnFormats[column]):void 0}return{key:column,name:column,resizable:!0,sortable:!0,minWidth:80,renderCell:formatter,__hpcc_pattern,__hpcc_format}})])},[columnFormats,columnPatterns,columnTypes,columns,multiSelect]);const onSortColumnsChange=q$1(sortColumns=>{const futureSortColumn=sortColumns.slice(-1)[0],sorted=futureSortColumn!==void 0,isSortedDescending=(futureSortColumn==null?void 0:futureSortColumn.direction)==="DESC";setSortColumn(futureSortColumn),setRows(copyAndSort(rows,sorted?futureSortColumn.columnKey:"key",sorted?isSortedDescending:!1))},[rows]),rowKeyGetter=q$1(row2=>row2.key,[]),onSelectedRowsChange=q$1(selectedRows2=>{setSelectedRows(selectedRows2)},[]),onCellClick=q$1((row2,column)=>{table.onRowClickCallback(row2,column.key)},[table]);return y(()=>{let items=data.map((row2,index)=>{const retVal={key:index};return listColumns.forEach((column,index2)=>{let val=row2[index2];column.__hpcc_pattern&&column.__hpcc_format?val=column.__hpcc_format(column.__hpcc_pattern(val)):column.__hpcc_pattern?val=column.__hpcc_pattern(val).toString():column.__hpcc_format&&(val=column.__hpcc_format(val)),retVal[column.key]=val}),retVal});sort!=null&&sort.attribute&&(items=copyAndSort(items,sort.attribute,sort.descending)),setRows(items)},[listColumns,data,sort]),u$1(DataGrid$1,{columns:listColumns,headerRowHeight:24,rows,rowKeyGetter,rowHeight:20,renderers:{noRowsFallback:u$1(EmptyRowsRenderer,{message:table.noDataMessage()})},className:table.darkMode()?"rdg-dark":"rdg-light",sortColumns:sortColumn?[sortColumn]:[],onSortColumnsChange,selectedRows,onSelectedRowsChange:multiSelect?onSelectedRowsChange:void 0,onCellClick:multiSelect?void 0:(args,event)=>onCellClick(args.row,args.column),"aria-describedby":"","aria-label":"","aria-labelledby":"",style:{height:"100%"}})};class Table extends common.HTMLWidget{constructor(){super(),__publicField$1(this,"_div"),__publicField$1(this,"_prevRow"),__publicField$1(this,"_prevColumn")}columnType(column,type){return arguments.length===1?this.columnTypes()[column]:(this.columnTypes({...this.columnTypes(),[column]:type}),this)}columnPattern(column,pattern){return arguments.length===1?this.columnPatterns()[column]:(this.columnPatterns({...this.columnPatterns(),[column]:pattern}),this)}columnFormat(column,format2){return arguments.length===1?this.columnFormats()[column]:(this.columnFormats({...this.columnFormats(),[column]:format2}),this)}onRowClickCallback(row2,column){this._prevRow&&JSON.stringify(this._prevRow)!==JSON.stringify(row2)&&this.click(this._prevRow,this._prevColumn??"",!1),row2&&this.click(row2,column,!0),this._prevRow=row2,this._prevColumn=column}enter(domNode,element){super.enter(domNode,element),this._div=element.append("div").style("display","grid")}update(domNode,element){super.update(domNode,element),this._div.style("width",this.width()+"px"),this._div.style("height",this.height()+"px"),q$2(_$1(ReactTable,{table:this}),this._div.node())}exit(domNode,element){this._div.remove(),super.exit(domNode,element)}click(row2,col,sel){}}Table.prototype._class+=" dgrid2_Table",Table.prototype.publish("noDataMessage","...empty...","string","No Data Message"),Table.prototype.publish("darkMode",!1,"boolean","Dark Mode"),Table.prototype.publish("multiSelect",!1,"boolean","Multiple Selection"),Table.prototype.publish("columnTypes",{},"object",'Column Types ("boolean" | "number" | "string" | "time"'),Table.prototype.publish("columnPatterns",{},"object","Column Patterns"),Table.prototype.publish("columnFormats",{},"object","Column Formats"),function(){try{if(typeof document<"u"){var o2=document.createElement("style");o2.appendChild(document.createTextNode('.layout_AbsoluteSurface{pointer-events:none!important}.layout_AbsoluteSurface>.placeholder{position:relative;overflow:hidden;pointer-events:all}.layout_Accordion>ul{position:relative}.layout_Accordion.open>span{font-style:italic}.layout_Accordion.closed>ul{height:0px;overflow:hidden}.layout_Accordion.open>ul{display:block}.layout_Accordion>.collapsible-icon,.layout_Accordion>.collapsible-title{cursor:pointer;box-sizing:border-box}.layout_Accordion>.collapsible-title{display:block;width:100%}.layout_Accordion>.collapsible-title{font-size:13px;color:#fff;padding:4px 8px;height:26px;-webkit-box-shadow:inset 0px -1px 1px 0px rgba(0,0,0,.2);-moz-box-shadow:inset 0px -1px 1px 0px rgba(0,0,0,.2);box-shadow:inset 0 -1px 1px #0003}.layout_Accordion li{background-color:#fff}.layout_Accordion>ul,.layout_Accordion>.collapsible-title{background-color:#333}.layout_Accordion .layout_Accordion>ul,.layout_Accordion .layout_Accordion>.collapsible-title{background-color:#555}.layout_Accordion .layout_Accordion .layout_Accordion>ul,.layout_Accordion .layout_Accordion .layout_Accordion>.collapsible-title{background-color:#777}.layout_Accordion .layout_Accordion .layout_Accordion .layout_Accordion>ul,.layout_Accordion .layout_Accordion .layout_Accordion .layout_Accordion>.collapsible-title{background-color:#999}.layout_Accordion .layout_Accordion .layout_Accordion .layout_Accordion .layout_Accordion>ul,.layout_Accordion .layout_Accordion .layout_Accordion .layout_Accordion .layout_Accordion>.collapsible-title{background-color:#bbb}.layout_Accordion .layout_Accordion .layout_Accordion .layout_Accordion .layout_Accordion .layout_Accordion>ul,.layout_Accordion .layout_Accordion .layout_Accordion .layout_Accordion .layout_Accordion .layout_Accordion>.collapsible-title{background-color:#ccc}.layout_Accordion .layout_Accordion .layout_Accordion .layout_Accordion .layout_Accordion .layout_Accordion .layout_Accordion>ul,.layout_Accordion .layout_Accordion .layout_Accordion .layout_Accordion .layout_Accordion .layout_Accordion .layout_Accordion>.collapsible-title{background-color:#ddd}.layout_Accordion>ul,.layout_Accordion>span{padding-left:0}.layout_Accordion .layout_Accordion>ul,.layout_Accordion .layout_Accordion>span{padding-left:12px}.layout_Accordion>.collapsible-title:before{padding:4px 8px;position:absolute;left:0;top:0}.layout_Accordion>.collapsible-icon{position:absolute;top:0;right:0;width:24px;height:24px;color:#fff}.layout_Surface{box-sizing:border-box;margin:0;border:1px solid #e5e5e5;overflow:hidden;height:100%;width:100%}.layout_Surface.shadow2{box-shadow:0 2px 2px #00000024,0 3px 1px -2px #0003,0 1px 5px #0000001f}.layout_Surface>h3{margin:0;padding:2px;background-color:#e5e5e5}.layout_Surface .html-button-container{position:absolute;right:0;top:3px}.layout_Surface>div{padding:8px}.layout_Surface .html-button-container .surface-button{margin-right:5px}.layout_Surface .html-button-container .surface-button i{opacity:.8}.layout_Surface .html-button-container .surface-button:hover{opacity:1}.layout_Surface .html-button-container .surface-button:active{opacity:.5}div[draggable=true].hideDragCellContent.content-icon:before{content:"";font-family:FontAwesome;position:absolute;top:calc(50% - 74px);left:calc(50% - 56px);font-size:100px}div[draggable=true].hideDragCellContent.content-icon-Line:before{content:""}div[draggable=true].hideDragCellContent.content-icon-Pie:before{top:calc(50% - 72px);left:calc(50% - 45px);content:""}div[draggable=true].hideDragCellContent.content-icon-Area:before{content:""}div[draggable=true].hideDragCellContent.content-icon-Gauge:before{content:""}div[draggable=true].hideDragCellContent.content-icon-Table:before{content:""}div[draggable=true].hideDragCellContent.content-icon-Form:before{content:""}div[draggable=true].hideDragCellContent.content-icon-Grid:before,div[draggable=true].hideDragCellContent.content-icon-Graph:before,div[draggable=true].hideDragCellContent.content-icon-Border:before,div[draggable=true].hideDragCellContent.content-icon-Tabbed:before,div[draggable=true].hideDragCellContent.content-icon-Accordion:before,div[draggable=true].hideDragCellContent.content-icon-MultiChart:before,div[draggable=true].hideDragCellContent.content-icon-MultiChartSurface:before{content:""}div[draggable=true].hideDragCellContent.content-icon-ChoroplethStates:before,div[draggable=true].hideDragCellContent.content-icon-ChoroplethStatesHeat:before,div[draggable=true].hideDragCellContent.content-icon-ChoroplethCounties:before,div[draggable=true].hideDragCellContent.content-icon-ChoroplethCountries:before,div[draggable=true].hideDragCellContent.content-icon-GMap:before,div[draggable=true].hideDragCellContent.content-icon-GMapHeat:before,div[draggable=true].hideDragCellContent.content-icon-GMapGraph:before{content:""}div[draggable=true].hideDragCellContent.content-icon-Text:before,div[draggable=true].hideDragCellContent.content-icon-TextBox:before,div[draggable=true].hideDragCellContent.content-icon-FAChar:before{content:""}.layout_Cell .update-indicator{box-sizing:border-box;position:absolute;top:0;left:0;padding:0;z-index:1000;border-width:0px;border-style:solid;pointer-events:none}.layout_Border{width:100%;height:100%}.layout_Border>.border-content{width:100%;height:100%;position:relative}.layout_Border>.borderHandle{width:6px;height:6px;background-color:#444;opacity:.3;position:absolute;visibility:hidden}.layout_Border.design-mode>.borderHandle{visibility:visible}.layout_Border>.borderHandle:hover{background-color:#666}.layout_Border>.borderHandle.borderHandleDisabled{display:none}.layout_Border>.borderHandle_top,.layout_Border>.borderHandle_bottom{cursor:ns-resize}.layout_Border>.borderHandle_left,.layout_Border>.borderHandle_right{cursor:ew-resize}.layout_Border .cell{border-radius:5px;border:1px solid #e5e5e5;display:inline-block;overflow:hidden}.layout_Border .cell h2{margin:0;padding-top:4px;-webkit-margin:0px;text-align:center}.layout_Border .layout_BorderCell.over{border:2px dashed #000}.layout_Border .dragItem{z-index:-1;opacity:.33}.layout_Border .notDragItem{z-index:-1;opacity:1}.layout_Border div[draggable=true]{opacity:.75;cursor:default}.layout_Border div[draggable=true] .dragHandle{opacity:1}.layout_Border div[draggable=true] .dragHandle_n,.layout_Border div[draggable=true] .dragHandle_e,.layout_Border div[draggable=true] .dragHandle_s,.layout_Border div[draggable=true] .dragHandle_w{background-color:#aaa}.layout_Border div[draggable=true] .dragHandle_nw,.layout_Border div[draggable=true] .dragHandle_ne,.layout_Border div[draggable=true] .dragHandle_se,.layout_Border div[draggable=true] .dragHandle_sw{background-color:#333}.layout_Border div[draggable=true] .dragHandle_nw{cursor:nw-resize}.layout_Border div[draggable=true] .dragHandle_n{cursor:n-resize}.layout_Border div[draggable=true] .dragHandle_ne{cursor:ne-resize}.layout_Border div[draggable=true] .dragHandle_e{cursor:e-resize}.layout_Border div[draggable=true] .dragHandle_se{cursor:se-resize}.layout_Border div[draggable=true] .dragHandle_s{cursor:s-resize}.layout_Border div[draggable=true] .dragHandle_sw{cursor:sw-resize}.layout_Border div[draggable=true] .dragHandle_w{cursor:w-resize}.layout_Border div[draggable=false]>div>.dragHandle{display:none}.layout_Border .grid-drop-target{position:fixed;box-sizing:border-box;border:2px dashed #7f8c8d;border-radius:0;background:repeating-linear-gradient(-45deg,#0000,#0000 4px,#6464641a 4px,#6464641a 8px)}.layout_Border .grid-drop-target.drop-target-over{border:2px dashed #179BD7;background:repeating-linear-gradient(-45deg,#0000,#0000 6px,#119bd71a 6px,#119bd71a 12px)}.layout_Border2{display:flex;flex-direction:column}.layout_Border2>.body{margin:0;padding:0;display:flex;flex-flow:row}.layout_Border2>.body>.center{flex:1}.layout_Border2>.header{display:block}.layout_Border2>.footer{display:block}.layout_Carousel>div{position:relative;overflow:hidden}.layout_Carousel>div>.carouselItem{position:absolute}.layout_Modal-header{background-color:#3f51b5;overflow:hidden}.layout_Modal-body{background-color:#fff;overflow-y:scroll;overflow-x:hidden}.layout_Modal-title,.layout_Modal-annotations{position:absolute}.layout_Modal-closeButton{cursor:pointer}.layout_Modal-closeButton:hover{opacity:.7}.layout_Modal-closeButton:active{opacity:.5}.layout_Modal-fade{position:fixed;background-color:#000;opacity:.5;z-index:10000}.layout_Modal-content{position:fixed;background-color:#fff;z-index:10100}.layout_Modal-fade-hidden{display:none}.layout_Modal-fadeClickable{cursor:pointer}.layout_ChartPanel .series.highlight{stroke-width:2px;opacity:1}.layout_ChartPanel .series.lowlight{opacity:.3!important}.layout_FlexGrid{display:flex}.FlexGrid-list-item{overflow:hidden;border-style:solid;flex-grow:1}.layout_Grid>.ddCell{position:absolute}.layout_Grid>.laneBackground{position:absolute;border-style:solid;border-width:1px;background:#f5f5f5}.layout_Grid>.lane{position:absolute;border-style:none;opacity:.25;border-radius:0;pointer-events:none}.layout_Grid>.ddCell.draggable{border-style:solid;border-width:1px;background-color:#f8f8ff;border-radius:0;cursor:move}.layout_Grid>.ddCell.draggable>.resizeHandle{bottom:0;right:0;width:8px;height:8px;border-style:none;position:absolute;cursor:nwse-resize}.layout_Grid>.ddCell.draggable .resizeHandleDisplay{bottom:2px;right:2px;width:4px;height:4px;border-style:solid;border-left-width:0px;border-top-width:0px;border-right-width:2px;border-bottom-width:2px;border-color:#a9a9a9;background-color:none;position:absolute}.layout_Grid>.ddCell.draggable .resizeHandleDisplay:hover{border-color:orange}.layout_Grid>.dragging{border-style:solid;border-width:1px;border-color:gray;border-radius:0;position:absolute;background:repeating-linear-gradient(-45deg,#0000,#0000 4px,#6464641a 4px,#6464641a 8px)}.layout_Grid>.resizing{border-style:solid;border-width:1px;border-color:gray;background-color:orange;border-radius:0;position:absolute;opacity:.3;background:repeating-linear-gradient(-45deg,#0000,#0000 4px,orange 4px,orange 8px)}.layout_Grid>.ddCell.draggable .common_Widget.selected{border-style:solid;border-width:1px;border-color:red;background-color:gray;border-radius:0;position:absolute;background:repeating-linear-gradient(-45deg,#0000,#0000 4px,#6400001a 4px,#6400001a 8px)}.layout_Grid #drag-me:before{content:"#" attr(id);font-weight:700}.layout_Layered{pointer-events:none}.layout_Layered>.container>.content{position:absolute}.layout_Layered>.container>.content>div>.common_Widget,.layout_Layered>.container>.content>div>svg>.common_Widget{pointer-events:all}.layout_Tabbed .tab-button{position:relative;top:1px;display:inline-block;border-left:1px solid #ddd;border-top:1px solid #ddd;border-right:1px solid #ddd;background-color:transparent;margin-right:4px;padding:2px 2px 4px;background-color:#ccc}.layout_Tabbed .tab-button.active{background-color:#fff;z-index:999}.layout_Tabbed .on_bottom .tab-button{border-bottom:1px solid #ddd;border-top:none;top:-1px}.layout_Toolbar{height:100%;background-color:#ddd;white-space:nowrap;overflow:hidden}.layout_Toolbar .toolbar-title{display:inline-block;position:relative;top:50%;transform:translateY(-50%);-ms-transform:translateY(-50%);margin-left:4px;font-weight:700;text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.layout_Toolbar .toolbar-child{position:relative;top:50%;transform:translateY(-50%);-ms-transform:translateY(-50%);float:right;margin-left:4px;margin-right:4px;line-height:16px}')),document.head.appendChild(o2)}}catch(e2){console.error("vite-plugin-css-injected-by-js",e2)}}();var __defProp2=Object.defineProperty,__defNormalProp2=(obj,key,value)=>key in obj?__defProp2(obj,key,{enumerable:!0,configurable:!0,writable:!0,value}):obj[key]=value,__publicField2=(obj,key,value)=>__defNormalProp2(obj,typeof key!="symbol"?key+"":key,value);function _mergeNamespaces$1(n2,m2){for(var i2=0;i2<m2.length;i2++){const e2=m2[i2];if(typeof e2!="string"&&!Array.isArray(e2)){for(const k2 in e2)if(k2!=="default"&&!(k2 in n2)){const d2=Object.getOwnPropertyDescriptor(e2,k2);d2&&Object.defineProperty(n2,k2,d2.get?d2:{enumerable:!0,get:()=>e2[k2]})}}}return Object.freeze(Object.defineProperty(n2,Symbol.toStringTag,{value:"Module"}))}class AbsoluteSurface extends common.HTMLWidget{constructor(){super(),this._tag="div"}enter(domNode,element){super.enter(domNode,element)}update(domNode,element){super.update(domNode,element);let xPos=0,yPos=0,width=this.clientWidth(),height=this.clientHeight();switch(this.units()){case"pixels":xPos=this.widgetX(),yPos=this.widgetY(),width=this.widgetWidth()===""?width-xPos:Number(this.widgetWidth()),height=this.widgetHeight()===""?height-yPos:Number(this.widgetHeight());break;case"percent":xPos=this.widgetX()*width/100,yPos=this.widgetY()*height/100,width=this.widgetWidth()===""?width-xPos:Number(this.widgetWidth())*width/100,height=this.widgetHeight()===""?height-yPos:Number(this.widgetHeight())*height/100;break}element.style("opacity",this.opacity());const widgets=element.selectAll("#"+this._id+" > .placeholder").data(this.widget()?[this.widget()]:[],function(d2){return d2._id});widgets.enter().append("div").attr("class","placeholder").each(function(d2){d2.target(this)}).merge(widgets).style("left",xPos+"px").style("top",yPos+"px").style("width",width+"px").style("bottom",height+"px").each(function(d2){d2.resize({width,height})}),widgets.exit().each(function(d2){d2.target(null)}).remove()}exit(domNode,element){this.widget()&&this.widget().target(null),super.exit(domNode,element)}}AbsoluteSurface.prototype._class+=" layout_AbsoluteSurface",AbsoluteSurface.prototype.publish("units","percent","set","Units",["pixels","percent"]),AbsoluteSurface.prototype.publish("widgetX",0,"number","Widget XPos"),AbsoluteSurface.prototype.publish("widgetY",0,"number","Widget YPos"),AbsoluteSurface.prototype.publish("widgetWidth","100","string","Widget Width, omit for full"),AbsoluteSurface.prototype.publish("widgetHeight","100","string","Widget Height, omit for full"),AbsoluteSurface.prototype.publish("widget",null,"widget","Widget",null,{tags:["Private"]}),AbsoluteSurface.prototype.publish("opacity",1,"number","Opacity");class Accordion extends common.HTMLWidget{constructor(){super(),__publicField2(this,"_isClosed"),__publicField2(this,"titleSpan"),__publicField2(this,"iconDiv"),__publicField2(this,"ul"),__publicField2(this,"icon"),this._tag="div",this._isClosed=!1}pushListItem(widget,prepend=!1,protect=!1){const contentArr=this.content();return widget._protected=protect,prepend?contentArr.unshift(widget):contentArr.push(widget),this.content(contentArr),this}clearListItems(){const arr=[];for(const i2 in this.content())this.content()[i2]._protected&&arr.push(this.content()[i2]);return this.content(arr),this}collapseClick(element){element.classed("closed")?(this._isClosed=!1,element.classed("open",!0),element.classed("closed",!1)):(this._isClosed=!0,element.classed("open",!1),element.classed("closed",!0))}enter(domNode,element){super.enter(domNode,element);const context=this;this._isClosed=this.defaultCollapsed(),element.classed(this._isClosed?"closed":"open",!0),this.titleSpan=element.append("span").classed("collapsible-title",!0),this.iconDiv=element.append("div").classed("collapsible-icon",!0),this.ul=element.append("ul"),this.icon=new common.FAChar().size({height:24,width:24}).target(this.iconDiv.node()),this.iconDiv.on("click",function(){context.collapseClick(element),context.render()}),this.titleSpan.on("click",function(){context.collapseClick(element),context.render()})}update(domNode,element){super.update(domNode,element);const context=this,this_id="";this.titleSpan.text(context.title().length>0?context.title()+this_id:"Accordion ["+context._id+"]"+this_id);const rows=this.ul.selectAll("#"+context._id+" > ul > li").data(this.content(),function(d2){return d2._id});rows.enter().append(function(widget){const li=document.createElement("li");if(widget._target===null){const wSize=widget.size();if(wSize.width===0||wSize.height===0){const cSize=context.size();widget.size({width:cSize.width,height:cSize.width})}widget.target(li)}else return widget._target;return li}),rows.exit().remove(),this.icon.text_colorFill(this.titleFontColor()).char(this._isClosed?this.closedIcon():this.openIcon()).render()}exit(domNode,element){super.exit(domNode,element)}}Accordion.prototype._class+=" layout_Accordion",Accordion.prototype.publish("content",[],"widgetArray","Array of widgets",null,{tags:["Basic"]}),Accordion.prototype.publish("title","","string","Title of collapsible section",null,{tags:["Private"]}),Accordion.prototype.publish("openIcon","","string","Icon to display when list is open",null,{tags:["Private"]}),Accordion.prototype.publish("closedIcon","","string","Icon to display when list is closed",null,{tags:["Private"]}),Accordion.prototype.publish("titleFontColor","#FFFFFF","html-color","Title font color",null,{tags:["Private"]}),Accordion.prototype.publish("titleBackgroundColor","#333333","html-color","Title background color",null,{tags:["Private"]}),Accordion.prototype.publish("defaultCollapsed",!1,"boolean","Collapsed by default if true",null,{tags:["Private"]});class Surface extends common.HTMLWidget{constructor(){super(),__publicField2(this,"_surfaceButtons"),this._tag="div",this._surfaceButtons=[]}widgetSize(titleDiv,widgetDiv){let width=this.clientWidth(),height=this.clientHeight();return this.title()&&(height-=this.calcHeight(titleDiv)),height-=this.calcFrameHeight(widgetDiv),width-=this.calcFrameWidth(widgetDiv),{width,height}}enter(domNode,element){super.enter(domNode,element)}update(domNode,element2){super.update(domNode,element2);const context=this;element2.classed("shadow2",this.surfaceShadow()).style("border-width",this.surfaceBorderWidth_exists()?this.surfaceBorderWidth()+"px":null).style("border-color",this.surfaceBorderColor()).style("border-radius",this.surfaceBorderRadius_exists()?this.surfaceBorderRadius()+"px":null).style("background-color",this.surfaceBackgroundColor());const titles=element2.selectAll(".surfaceTitle").data(this.title()?[this.title()]:[]);titles.enter().insert("h3","div").attr("class","surfaceTitle").merge(titles).text(function(d2){return d2}).style("text-align",this.surfaceTitleAlignment()).style("color",this.surfaceTitleFontColor()).style("font-size",this.surfaceTitleFontSize_exists()?this.surfaceTitleFontSize()+"px":null).style("font-family",this.surfaceTitleFontFamily()).style("font-weight",this.surfaceTitleFontBold()?"bold":"normal").style("background-color",this.surfaceTitleBackgroundColor()).style("padding",this.surfaceTitlePadding_exists()?this.surfaceTitlePadding()+"px":null).style("title",this.altText_exists()?this.altText():null),titles.exit().remove();const surfaceButtons=element2.select(".surfaceTitle").append("div").attr("class","html-button-container").selectAll(".surface-button").data(this.buttonAnnotations());surfaceButtons.enter().append("button").classed("surface-button",!0).each(function(button,idx){const el=context._surfaceButtons[idx]=common.select(this).attr("class","surface-button"+(button.class?" "+button.class:"")).attr("id",button.id).style("padding",button.padding).style("width",button.width).style("height",button.height).style("cursor","pointer");button.font==="FontAwesome"?el.style("background","transparent").style("border","none").on("click",function(d2){context.click(d2)}).append("i").attr("class","fa").text(function(){return button.label}):el.text(function(){return button.label}).on("click",function(d2){context.click(d2)})}),surfaceButtons.exit().each(function(_d,idx){const element=common.select(this);delete context._surfaceButtons[idx],element.remove()});const widgets=element2.selectAll("#"+this._id+" > .surfaceWidget").data(this.widget()?[this.widget()]:[],function(d2){return d2._id});widgets.enter().append("div").attr("class","surfaceWidget").each(function(d2){common.select(context.element().node().parentElement).classed("content-icon content-icon-"+d2.classID().split("_")[1],!0),d2.target(this)}).merge(widgets).style("padding",this.surfacePadding_exists()?this.surfacePadding()+"px":null).each(function(d2){const widgetSize=context.widgetSize(element2.select("h3"),common.select(this));widgetSize.width<0&&(widgetSize.width=0),widgetSize.height<0&&(widgetSize.height=0),d2.resize({width:widgetSize.width,height:widgetSize.height})}),widgets.exit().each(function(d2){d2.target(null)}).remove()}exit(domNode,element){this.widget()&&this.widget().target(null),super.exit(domNode,element)}click(obj){}}Surface.prototype._class+=" layout_Surface",Surface.prototype.publish("title","","string","Title",null,{tags:["Intermediate"]}),Surface.prototype.publish("altText",null,"string","Alt text",null,{optional:!0}),Surface.prototype.publish("surfaceTitlePadding",null,"number","Title Padding (px)",null,{tags:["Advanced"],disable:w2=>!w2.title()}),Surface.prototype.publish("surfaceTitleFontSize",null,"number","Title Font Size (px)",null,{tags:["Advanced"],disable:w2=>!w2.title()}),Surface.prototype.publish("surfaceTitleFontColor",null,"html-color","Title Font Color",null,{tags:["Advanced"],disable:w2=>!w2.title()}),Surface.prototype.publish("surfaceTitleFontFamily",null,"string","Title Font Family",null,{tags:["Advanced"],disable:w2=>!w2.title()}),Surface.prototype.publish("surfaceTitleFontBold",!0,"boolean","Enable Bold Title Font",null,{tags:["Advanced"],disable:w2=>!w2.title()}),Surface.prototype.publish("surfaceTitleBackgroundColor",null,"html-color","Title Background Color",null,{tags:["Advanced"],disable:w2=>!w2.title()}),Surface.prototype.publish("surfaceTitleAlignment","center","set","Title Alignment",["left","right","center"],{tags:["Basic"],disable:w2=>!w2.title()}),Surface.prototype.publish("surfaceShadow",!1,"boolean","3D Shadow"),Surface.prototype.publish("surfacePadding",null,"string","Surface Padding (px)",null,{tags:["Intermediate"]}),Surface.prototype.publish("surfaceBackgroundColor",null,"html-color","Surface Background Color",null,{tags:["Advanced"]}),Surface.prototype.publish("surfaceBorderWidth",null,"number","Surface Border Width (px)",null,{tags:["Advanced"]}),Surface.prototype.publish("surfaceBorderColor",null,"html-color","Surface Border Color",null,{tags:["Advanced"]}),Surface.prototype.publish("surfaceBorderRadius",null,"number","Surface Border Radius (px)",null,{tags:["Advanced"]}),Surface.prototype.publish("buttonAnnotations",[],"array","Button Array",null,{tags:["Private"]}),Surface.prototype.publish("widget",null,"widget","Widget",null,{tags:["Basic"]});class Cell extends Surface{constructor(){super(),__publicField2(this,"_indicateTheseIds"),this._indicateTheseIds=[]}indicateTheseIds(_2){return arguments.length?(this._indicateTheseIds=_2,this):this._indicateTheseIds}enter(domNode,element){super.enter(domNode,element);const context=this;element.classed("layout_Surface",!0).on("mouseenter",function(){context.onMouseEnter()}).on("mouseleave",function(){context.onMouseLeave()})}update(domNode,element){super.update(domNode,element)}onMouseEnter(){const arr=this.indicateTheseIds(),opacity=this.indicatorOpacity(),indicatorBorderColor=this.indicatorBorderColor(),indicatorGlowColor=this.indicatorGlowColor();for(let i2=0;i2<arr.length;i2++){const otherElement=common.select("#"+arr[i2]),otherWidget=otherElement.datum();otherElement&&otherWidget&&otherElement.append("div").attr("class","update-indicator").style("width",otherWidget.width()+"px").style("height",otherWidget.height()+"px").style("opacity",opacity).style("border-color",indicatorBorderColor).style("-webkit-box-shadow","inset 0px 0px 30px 0px "+indicatorGlowColor).style("-moz-box-shadow","inset 0px 0px 30px 0px "+indicatorGlowColor).style("box-shadow","inset 0px 0px 30px 0px "+indicatorGlowColor)}}onMouseLeave(){const arr=this.indicateTheseIds();for(let i2=0;i2<arr.length;i2++)common.selectAll("#"+arr[i2]+" > div.update-indicator").remove()}}Cell.prototype._class+=" layout_Cell",Cell.prototype.publish("gridRow",0,"number","Grid Row Position",null,{tags:["Private"]}),Cell.prototype.publish("gridCol",0,"number","Grid Column Position",null,{tags:["Private"]}),Cell.prototype.publish("gridRowSpan",1,"number","Grid Row Span",null,{tags:["Private"]}),Cell.prototype.publish("gridColSpan",1,"number","Grid Column Span",null,{tags:["Private"]}),Cell.prototype.publish("indicatorGlowColor","#EEEE11","html-color","Glow color of update-indicator",null,{tags:["Basic"]}),Cell.prototype.publish("indicatorBorderColor","#F48A00","html-color","Border color of update-indicator",null,{tags:["Basic"]}),Cell.prototype.publish("indicatorOpacity",.8,"number","Opacity of update-indicator",null,{tags:["Basic"]});class Border extends common.HTMLWidget{constructor(){super(),__publicField2(this,"_colCount"),__publicField2(this,"_rowCount"),__publicField2(this,"_colSize"),__publicField2(this,"_rowSize"),__publicField2(this,"_shrinkWrapBoxes"),__publicField2(this,"_watch"),__publicField2(this,"_offsetX"),__publicField2(this,"_offsetY"),__publicField2(this,"_dragCell"),__publicField2(this,"_dragCellSize"),__publicField2(this,"_dragCellStartSize"),__publicField2(this,"_handleTop"),__publicField2(this,"_handleLeft"),__publicField2(this,"_dragPrevX"),__publicField2(this,"_dragPrevY"),__publicField2(this,"_cellSizes"),__publicField2(this,"contentDiv"),__publicField2(this,"_scrollBarWidth"),__publicField2(this,"_borderHandles"),__publicField2(this,"_sectionTypeArr"),__publicField2(this,"lazyPostUpdate",common.Utility.debounce(function(){this.postUpdate()},100)),this._tag="div",this._colCount=0,this._rowCount=0,this._colSize=0,this._rowSize=0,this._shrinkWrapBoxes={},this.content([]),this.sectionTypes([])}watchWidget(widget){if(this._watch===void 0&&(this._watch={}),this._watch[widget.id()]&&(this._watch[widget.id()].remove(),delete this._watch[widget.id()]),widget){const context=this;this._watch[widget.id()]=widget.monitor(function(paramId,newVal,oldVal){oldVal!==newVal&&context.lazyPostUpdate()})}}applyLayoutType(){const layoutObj=this.borderLayoutObject();this.content().forEach(function(cell2,i2){cell2._fixedLeft=layoutObj[this.sectionTypes()[i2]].left,cell2._fixedTop=layoutObj[this.sectionTypes()[i2]].top,cell2._fixedWidth=layoutObj[this.sectionTypes()[i2]].width,cell2._fixedHeight=layoutObj[this.sectionTypes()[i2]].height,cell2._dragHandles=this.cellSpecificDragHandles(this.sectionTypes()[i2])},this)}cellSpecificDragHandles(sectionType){switch(sectionType){case"top":return["s"];case"right":return["w"];case"bottom":return["n"];case"left":return["e"];case"center":return[]}}borderLayoutObject(layoutType){const retObj={},context=this;let topSize,topPerc,bottomSize,bottomPerc,leftSize,leftPerc,rightSize,rightPerc;const bcRect=this.target().getBoundingClientRect();bcRect.top,bcRect.left,bcRect.bottom,bcRect.right,this.target()instanceof SVGElement?(parseFloat(this.target().getAttribute("width")),parseFloat(this.target().getAttribute("height"))):(bcRect.width,bcRect.height),this.sectionTypes().indexOf("top")!==-1&&(topSize=this.topSize(),topPerc=this.topPercentage(),typeof this._shrinkWrapBoxes.top<"u"&&(topSize=this._shrinkWrapBoxes.top.height+this.gutter(),topPerc=0)),this.sectionTypes().indexOf("bottom")!==-1&&(bottomSize=this.bottomSize(),bottomPerc=this.bottomPercentage(),typeof this._shrinkWrapBoxes.bottom<"u"&&(bottomSize=this._shrinkWrapBoxes.bottom.height+this.gutter(),bottomPerc=0)),this.sectionTypes().indexOf("left")!==-1&&(leftSize=this.leftSize(),leftPerc=this.leftPercentage(),typeof this._shrinkWrapBoxes.left<"u"&&(leftSize=this._shrinkWrapBoxes.left.width+this.gutter(),leftPerc=0)),this.sectionTypes().indexOf("right")!==-1&&(rightSize=this.rightSize(),rightPerc=this.rightPercentage(),typeof this._shrinkWrapBoxes.right<"u"&&(rightSize=this._shrinkWrapBoxes.right.width+this.gutter(),rightPerc=0));const t2=_sectionPlacementObject({width:{px:0,"%":100},height:{px:topSize,"%":topPerc},top:{px:0,"%":0},left:{px:0,"%":0}}),b2=_sectionPlacementObject({width:{px:0,"%":100},height:{px:bottomSize,"%":bottomPerc},top:{px:0,"%":100},left:{px:0,"%":0}});b2.top-=b2.height;const l2=_sectionPlacementObject({width:{px:leftSize,"%":leftPerc},height:{px:-t2.height-b2.height,"%":100},top:{px:t2.height,"%":0},left:{px:0,"%":0}}),r2=_sectionPlacementObject({width:{px:rightSize,"%":rightPerc},height:{px:-t2.height-b2.height,"%":100},top:{px:t2.height,"%":0},left:{px:0,"%":100}});r2.left-=r2.width;const c2=_sectionPlacementObject({width:{px:-r2.width-l2.width,"%":100},height:{px:-t2.height-b2.height,"%":100},top:{px:t2.height,"%":0},left:{px:l2.width,"%":0}});return retObj.top=t2,retObj.bottom=b2,retObj.right=r2,retObj.left=l2,retObj.center=c2,retObj;function _sectionPlacementObject(obj){return obj.width.px=typeof obj.width.px<"u"?obj.width.px:0,obj.width["%"]=typeof obj.width["%"]<"u"?obj.width["%"]:0,obj.height.px=typeof obj.height.px<"u"?obj.height.px:0,obj.height["%"]=typeof obj.height["%"]<"u"?obj.height["%"]:0,{width:obj.width.px+obj.width["%"]/100*context.width(),height:obj.height.px+obj.height["%"]/100*context.height(),top:obj.top.px+obj.top["%"]/100*context.height()+context.gutter()/2,left:obj.left.px+obj.left["%"]/100*context.width()+context.gutter()/2}}}clearContent(sectionType){if(!sectionType)this.content().forEach(function(contentWidget){return contentWidget.target(null),!1}),common.select("#"+this.id()+" > div.borderHandle").classed("borderHandleDisabled",!0),delete this._watch,this.content([]),this.sectionTypes([]);else{const idx=this.sectionTypes().indexOf(sectionType);idx>=0&&(this._watch&&this.content()[idx]&&delete this._watch[this.content()[idx].id()],this.content()[idx].target(null),common.select("#"+this.id()+" > div.borderHandle_"+sectionType).classed("borderHandleDisabled",!0),this.content().splice(idx,1),this.sectionTypes().splice(idx,1))}}hasContent(sectionType,widget,title){return this.sectionTypes().indexOf(sectionType)>=0}setContent(sectionType,widget,title){if(this.clearContent(sectionType),title=typeof title<"u"?title:"",widget){const cell2=new Cell().surfaceBorderWidth(0).widget(widget).title(title);this.watchWidget(widget),this.content().push(cell2),this.sectionTypes().push(sectionType)}return this}getCell(id){const idx=this.sectionTypes().indexOf(id);return idx>=0?this.content()[idx]:null}getContent(id){const idx=this.sectionTypes().indexOf(id);return idx>=0?this.content()[idx].widget():null}setLayoutOffsets(){this._offsetX=this._element.node().getBoundingClientRect().left+this.gutter()/2,this._offsetY=this._element.node().getBoundingClientRect().top+this.gutter()/2}dragStart(handle){const event=common.d3Event();event.sourceEvent.stopPropagation();const context=this;this._dragCell=handle,this._dragCellStartSize=this[handle+"Size"](),this[handle+"ShrinkWrap"]()&&(this[handle+"Percentage"](0),this[handle+"ShrinkWrap"](!1));const handleElm=common.select("#"+context.id()+" > div.borderHandle_"+handle);context._handleTop=parseFloat(handleElm.style("top").split("px")[0]),context._handleLeft=parseFloat(handleElm.style("left").split("px")[0]),this._dragPrevX=event.sourceEvent.clientX,this._dragPrevY=event.sourceEvent.clientY}dragTick(handle){const context=this,event=common.d3Event(),xDelta=this._dragPrevX-event.sourceEvent.clientX,yDelta=this._dragPrevY-event.sourceEvent.clientY;switch(handle){case"top":case"bottom":_moveHandles(handle,yDelta);break;case"right":case"left":_moveHandles(handle,xDelta);break}function _moveHandles(handle2,delta){if(delta===0)return;const handles=common.selectAll("#"+context.id()+" > div.borderHandle"),grabbedHandle=common.select("#"+context.id()+" > div.borderHandle_"+handle2);grabbedHandle.classed("borderHandle_top")?(grabbedHandle.style("top",context._handleTop-delta+"px"),context._cellSizes.topHeight=context._handleTop-delta,context._cellSizes.leftHeight=context._cellSizes.height,context._cellSizes.leftHeight-=context._cellSizes.topHeight,context._cellSizes.leftHeight-=context._cellSizes.bottomHeight,context._cellSizes.rightHeight=context._cellSizes.leftHeight):grabbedHandle.classed("borderHandle_right")?(grabbedHandle.style("left",context._handleLeft-delta+"px"),context._cellSizes.rightWidth=context._cellSizes.width-context._handleLeft+delta):grabbedHandle.classed("borderHandle_bottom")?(grabbedHandle.style("top",context._handleTop-delta+"px"),context._cellSizes.bottomHeight=context._cellSizes.height-context._handleTop+delta,context._cellSizes.leftHeight=context._cellSizes.height,context._cellSizes.leftHeight-=context._cellSizes.bottomHeight,context._cellSizes.leftHeight-=context._cellSizes.topHeight,context._cellSizes.rightHeight=context._cellSizes.leftHeight):grabbedHandle.classed("borderHandle_left")&&(grabbedHandle.style("left",context._handleLeft-delta+"px"),context._cellSizes.leftWidth=context._handleLeft-delta),handles.each(function(){const handle3=common.select(this);handle3.classed("borderHandle_top")?(handle3.style("width",context._cellSizes.width+"px"),handle3.style("top",context._cellSizes.topHeight-3+"px")):handle3.classed("borderHandle_right")?(handle3.style("left",context._cellSizes.width-context._cellSizes.rightWidth+"px"),handle3.style("top",context._cellSizes.topHeight+3+"px"),handle3.style("height",context._cellSizes.rightHeight+"px")):handle3.classed("borderHandle_bottom")?(handle3.style("width",context._cellSizes.width+"px"),handle3.style("top",context._cellSizes.height-context._cellSizes.bottomHeight-3+"px")):handle3.classed("borderHandle_left")&&(handle3.style("left",context._cellSizes.leftWidth+"px"),handle3.style("height",context._cellSizes.leftHeight+"px"),handle3.style("top",context._cellSizes.topHeight+3+"px"))})}}dragEnd(handle){if(handle){const event=common.d3Event(),xDelta=this._dragPrevX-event.sourceEvent.clientX,yDelta=this._dragPrevY-event.sourceEvent.clientY;switch(handle){case"top":yDelta!==0&&(this.topPercentage(0),this.topSize(this.topSize()===0?this.getContent("top").getBBox().height-yDelta:this.topSize()-yDelta));break;case"right":xDelta!==0&&(this.rightPercentage(0),this.rightSize(this.rightSize()===0?this.getContent("right").getBBox().width+xDelta:this.rightSize()+xDelta));break;case"bottom":yDelta!==0&&(this.bottomPercentage(0),this.bottomSize(this.bottomSize()===0?this.getContent("bottom").getBBox().height+yDelta:this.bottomSize()+yDelta));break;case"left":xDelta!==0&&(this.leftPercentage(0),this.leftSize(this.leftSize()===0?this.getContent("left").getBBox().width-xDelta:this.leftSize()-xDelta));break}this._dragPrevX=event.sourceEvent.clientX,this._dragPrevY=event.sourceEvent.clientY}this.render()}size(_2){const retVal=common.HTMLWidget.prototype.size.apply(this,arguments);return arguments.length&&this.contentDiv&&this.contentDiv.style("width",this._size.width+"px").style("height",this._size.height+"px"),retVal}enter(domNode,element){super.enter(domNode,element);const context=this;element.style("position","relative"),this.contentDiv=element.append("div").classed("border-content",!0),this._scrollBarWidth=common.Platform.getScrollbarWidth(),this._borderHandles=["top","left","right","bottom"],element.selectAll("div.borderHandle").data(this._borderHandles).enter().append("div").classed("borderHandle",!0).each(function(handle){common.select(this).classed("borderHandle_"+handle,!0).classed("borderHandleDisabled",context.getContent(handle)===null)})}update(domNode,element){super.update(domNode,element),this._sectionTypeArr=this.sectionTypes();const context=this;element.classed("design-mode",this.designMode()),this.setLayoutOffsets();const rows=this.contentDiv.selectAll(".cell_"+this._id).data(this.content(),function(d2){return d2._id}),rowsUpdate=rows.enter().append("div").classed("cell_"+this._id,!0).style("position","absolute").each(function(d2,i2){common.select(this).classed("border-cell border-cell-"+context._sectionTypeArr[i2],!0),d2.target(this),common.select("#"+context.id()+" > div.borderHandle_"+context._sectionTypeArr[i2]).classed("borderHandleDisabled",!1)}).merge(rows);rowsUpdate.each(function(d2,idx){const sectionType=context.sectionTypes()[idx];typeof context[sectionType+"ShrinkWrap"]<"u"&&context[sectionType+"ShrinkWrap"]()?(d2.render(),context._shrinkWrapBoxes[sectionType]=d2.widget().getBBox(!0)):delete context._shrinkWrapBoxes[sectionType]});const drag$1=common.drag().on("start",function(d2,i2){context.dragStart.call(context,d2,i2)}).on("drag",function(d2,i2){context.dragTick.call(context,d2,i2)}).on("end",function(d2,i2){context.dragEnd.call(context,d2,i2)});this.designMode()?element.selectAll("#"+this.id()+" > div.borderHandle").call(drag$1):element.selectAll("#"+this.id()+" > div.borderHandle").on(".drag",null);const layoutObj=this.borderLayoutObject();this.content().forEach(function(cell2,i2){cell2._fixedLeft=layoutObj[this.sectionTypes()[i2]].left,cell2._fixedTop=layoutObj[this.sectionTypes()[i2]].top,cell2._fixedWidth=layoutObj[this.sectionTypes()[i2]].width,cell2._fixedHeight=layoutObj[this.sectionTypes()[i2]].height,cell2._dragHandles=[]},this),rowsUpdate.style("left",function(d2){return d2._fixedLeft+"px"}).style("top",function(d2){return d2._fixedTop+"px"}).style("width",function(d2){return d2._fixedWidth-context.gutter()+"px"}).style("height",function(d2){return d2._fixedHeight-context.gutter()+"px"}).each(function(d2){d2._placeholderElement.attr("draggable",context.designMode()).selectAll(".dragHandle").attr("draggable",context.designMode()),d2.surfacePadding(context.surfacePadding()).resize()}),rows.exit().each(function(d2){d2.target(null)}).remove(),this.getCellSizes(),element.selectAll("#"+this.id()+" > div.borderHandle").each(function(){const handle=common.select(this);handle.classed("borderHandle_top")?(handle.style("width",context._cellSizes.width+"px"),handle.style("top",context._cellSizes.topHeight-3+"px")):handle.classed("borderHandle_right")?(handle.style("left",context._cellSizes.width-context._cellSizes.rightWidth+"px"),handle.style("top",context._cellSizes.topHeight+3+"px"),handle.style("height",context._cellSizes.rightHeight+"px")):handle.classed("borderHandle_bottom")?(handle.style("width",context._cellSizes.width+"px"),handle.style("top",context._cellSizes.height-context._cellSizes.bottomHeight-3+"px")):handle.classed("borderHandle_left")&&(handle.style("left",context._cellSizes.leftWidth+"px"),handle.style("height",context._cellSizes.leftHeight+"px"),handle.style("top",context._cellSizes.topHeight+3+"px"))})}getCellSizes(){const context=this;context._cellSizes={};const contentRect=this.element().node().getBoundingClientRect();context._cellSizes.width=contentRect.width,context._cellSizes.height=contentRect.height,this.element().selectAll("#"+this.id()+" > div > div.border-cell").each(function(){const cell2=common.select(this);if(typeof cell2.node=="function"){const rect=cell2.node().getBoundingClientRect();cell2.classed("border-cell-top")?context._cellSizes.topHeight=rect.height:cell2.classed("border-cell-left")?(context._cellSizes.leftWidth=rect.width,context._cellSizes.leftHeight=rect.height):cell2.classed("border-cell-right")?(context._cellSizes.rightWidth=rect.width,context._cellSizes.rightHeight=rect.height):cell2.classed("border-cell-bottom")&&(context._cellSizes.bottomHeight=rect.height)}}),["height","width","topHeight","bottomHeight","leftHeight","rightHeight","leftWidth","rightWidth"].forEach(function(size){context._cellSizes[size]=context._cellSizes[size]===void 0?0:context._cellSizes[size]})}postUpdate(domNode,element){const context=this;this.content().forEach(function(n2){if(n2._element.node()!==null&&n2.widget()){const prevBox=n2.widget().getBBox(!1,!0),currBox=n2.widget().getBBox(!0,!0);(prevBox.width!==currBox.width||prevBox.height!==currBox.height)&&context.lazyRender()}})}exit(domNode,element){this.content().forEach(w2=>w2.target(null)),super.exit(domNode,element)}}Border.prototype._class+=" layout_Border",Border.prototype.publish("designMode",!1,"boolean","Design Mode",null,{tags:["Basic"]}),Border.prototype.publish("content",[],"widgetArray","widgets",null,{tags:["Intermediate"]}),Border.prototype.publish("gutter",0,"number","Gap Between Widgets",null,{tags:["Basic"]}),Border.prototype.publish("topShrinkWrap",!1,"boolean","'Top' Cell shrinks to fit content",null,{tags:["Intermediate"]}),Border.prototype.publish("leftShrinkWrap",!1,"boolean","'Left' Cell shrinks to fit content",null,{tags:["Intermediate"]}),Border.prototype.publish("rightShrinkWrap",!1,"boolean","'Right' Cell shrinks to fit content",null,{tags:["Intermediate"]}),Border.prototype.publish("bottomShrinkWrap",!1,"boolean","'Bottom' Cell shrinks to fit content",null,{tags:["Intermediate"]}),Border.prototype.publish("topSize",0,"number","Height of the 'Top' Cell (px)",null,{tags:["Private"]}),Border.prototype.publish("leftSize",0,"number","Width of the 'Left' Cell (px)",null,{tags:["Private"]}),Border.prototype.publish("rightSize",0,"number","Width of the 'Right' Cell (px)",null,{tags:["Private"]}),Border.prototype.publish("bottomSize",0,"number","Height of the 'Bottom' Cell (px)",null,{tags:["Private"]}),Border.prototype.publish("topPercentage",20,"number","Percentage (of parent) Height of the 'Top' Cell",null,{tags:["Private"]}),Border.prototype.publish("leftPercentage",20,"number","Percentage (of parent) Width of the 'Left' Cell",null,{tags:["Private"]}),Border.prototype.publish("rightPercentage",20,"number","Percentage (of parent) Width of the 'Right' Cell",null,{tags:["Private"]}),Border.prototype.publish("bottomPercentage",20,"number","Percentage (of parent) Height of the 'Bottom' Cell",null,{tags:["Private"]}),Border.prototype.publish("surfacePadding",0,"number","Cell Padding (px)",null,{tags:["Intermediate"]}),Border.prototype.publish("sectionTypes",[],"array","Section Types sharing an index with 'content' - Used to determine position/size.",null,{tags:["Private"]});class WidgetDiv{constructor(div){__publicField2(this,"_div"),__publicField2(this,"_overlay",!1),__publicField2(this,"_overflowX","visible"),__publicField2(this,"_overflowY","visible"),__publicField2(this,"_widget"),this._div=div}overlay(_2){return arguments.length?(this._overlay=_2,this):this._overlay}overflowX(_2){return arguments.length?(this._overflowX=_2,this._div.style("overflow-x",_2),this):this._overflowX}overflowY(_2){return arguments.length?(this._overflowY=_2,this._div.style("overflow-y",_2),this):this._overflowY}element(){return this._div}node(){return this._div.node()}widget(_2){return arguments.length?(this._widget!==_2&&(this._widget&&this._widget.target(null),this._widget=_2,this._widget&&this._widget.target(this._div.node())),this):this._widget}resize(size){return this._widget&&(this._div.style("width",`${size.width}px`).style("height",`${size.height}px`),this._widget.resize(size)),this}async render(getBBox,availableHeight,availableWidth){let overflowX=this.overflowX();!this.overlay()&&overflowX==="visible"&&(overflowX=null);let overflowY=this.overflowY();return!this.overlay()&&overflowY==="visible"&&(overflowY=null),this._div.style("height",this.overlay()?"0px":null).style("overflow-x",overflowX).style("overflow-y",overflowY),this._widget?this._widget.renderPromise().then(w2=>{if(getBBox&&this._widget.visible()){const retVal=this._widget.getBBox();return retVal.width+=8,availableHeight!==void 0&&retVal.height>availableHeight&&(retVal.width+=common.Platform.getScrollbarWidth()),availableWidth!==void 0&&retVal.width>availableWidth&&(retVal.height+=common.Platform.getScrollbarWidth()),this.overlay()?retVal.height=0:retVal.height+=4,retVal}return getBBox?{x:0,y:0,width:0,height:0}:void 0}):Promise.resolve(getBBox?{x:0,y:0,width:0,height:0}:void 0)}}class Border2 extends common.HTMLWidget{constructor(){super(),__publicField2(this,"_bodyElement"),__publicField2(this,"_topWA"),__publicField2(this,"_leftWA"),__publicField2(this,"_centerWA"),__publicField2(this,"_rightWA"),__publicField2(this,"_bottomWA"),__publicField2(this,"_topPrevOverflow"),__publicField2(this,"_leftPrevOverflow"),__publicField2(this,"_rightPrevOverflow"),__publicField2(this,"_bottomPrevOverflow"),this._tag="div"}enter(domNode,element){super.enter(domNode,element);const topElement=element.append("header");this._bodyElement=element.append("div").attr("class","body");const centerElement=this._bodyElement.append("div").attr("class","center"),leftElement=this._bodyElement.append("div").attr("class","lhs"),rightElement=this._bodyElement.append("div").attr("class","rhs"),bottomElement=element.append("div").attr("class","footer");this._topWA=new WidgetDiv(topElement),this._centerWA=new WidgetDiv(centerElement),this._leftWA=new WidgetDiv(leftElement),this._rightWA=new WidgetDiv(rightElement),this._bottomWA=new WidgetDiv(bottomElement)}update(domNode,element){super.update(domNode,element),this._topWA.element().style("display",this.showTop()?null:"none"),this._rightWA.element().style("display",this.showRight()?null:"none"),this._bottomWA.element().style("display",this.showBottom()?null:"none"),this._leftWA.element().style("display",this.showLeft()?null:"none"),this.topOverflowX()!==this._topWA.overflowX()&&this._topWA.overflowX(this.topOverflowX()),this.rightOverflowX()!==this._rightWA.overflowX()&&this._rightWA.overflowX(this.rightOverflowX()),this.bottomOverflowX()!==this._bottomWA.overflowX()&&this._bottomWA.overflowX(this.bottomOverflowX()),this.leftOverflowX()!==this._leftWA.overflowX()&&this._leftWA.overflowX(this.leftOverflowX()),this.topOverflowY()!==this._topWA.overflowY()&&this._topWA.overflowY(this.topOverflowY()),this.rightOverflowY()!==this._rightWA.overflowY()&&this._rightWA.overflowY(this.rightOverflowY()),this.bottomOverflowY()!==this._bottomWA.overflowY()&&this._bottomWA.overflowY(this.bottomOverflowY()),this.leftOverflowY()!==this._leftWA.overflowY()&&this._leftWA.overflowY(this.leftOverflowY()),this.element().style("width",`${this.width()}px`).style("height",`${this.height()}px`)}targetNull(w2){w2&&w2.target(null)}exit(domNode,element){this.targetNull(this.center()),this.targetNull(this.bottom()),this.targetNull(this.right()),this.targetNull(this.left()),this.targetNull(this.top()),super.exit(domNode,element)}swap(sectionA,sectionB){const a2=this[sectionA](),b2=this[sectionB]();return this.targetNull(a2),this.targetNull(b2),this[`_${sectionA}WA`].widget(null),this[`_${sectionB}WA`].widget(null),this[sectionA](b2),this[sectionB](a2),this}render(callback){return super.render(w2=>{this._topWA?this._topWA.widget(this.top()).overlay(this.topOverlay()).render(!0).then(async topBBox=>{const bottomBBox=await this._bottomWA.widget(this.bottom()).render(!0,void 0,this.width()),availableHeight=this.height()-(topBBox.height+bottomBBox.height),leftBBox=await this._leftWA.widget(this.left()).render(!0,availableHeight),rightBBox=await this._rightWA.widget(this.right()).render(!0,availableHeight);this.bottomHeight_exists()&&(bottomBBox.height=this.bottomHeight());const bodyWidth=this.width()-(leftBBox.width+rightBBox.width),bodyHeight=this.height()-(topBBox.height+bottomBBox.height),centerOverflowX=this.centerOverflowX(),centerOverflowY=this.centerOverflowY(),scrollCenterX=["auto","scroll"].indexOf(centerOverflowX)!==-1,scrollCenterY=["auto","scroll"].indexOf(centerOverflowY)!==-1;(scrollCenterX||scrollCenterY)&&this._centerWA.overflowX(this.centerOverflowX()).overflowY(this.centerOverflowY()).widget(this.center()).resize({width:bodyWidth,height:bodyHeight}).render(),this._bodyElement.style("height",`${bodyHeight}px`);const promises=[this._topWA.overflowX(this.topOverflowX()).overflowY(this.topOverflowY()).resize({width:this.width(),height:topBBox.height}).render(),this._leftWA.overflowX(this.leftOverflowX()).overflowY(this.leftOverflowY()).resize({width:leftBBox.width,height:bodyHeight}).render(),this._rightWA.overflowX(this.rightOverflowX()).overflowY(this.rightOverflowY()).resize({width:rightBBox.width,height:bodyHeight}).render(),this._centerWA.overflowX(this.centerOverflowX()).overflowY(this.centerOverflowY()).widget(this.center()).resize({width:bodyWidth,height:bodyHeight}).render(),this._bottomWA.overflowX(this.bottomOverflowX()).overflowY(this.bottomOverflowY()).resize({width:this.width(),height:bottomBBox.height}).render()];Promise.all(promises).then(promises2=>{callback&&callback(this)})}):callback&&callback(this)})}}Border2.prototype._class+=" layout_Border2",Border2.prototype.publish("showTop",!0,"boolean","If true, top widget adapter will display"),Border2.prototype.publish("showRight",!0,"boolean","If true, right widget adapter will display"),Border2.prototype.publish("showBottom",!0,"boolean","If true, bottom widget adapter will display"),Border2.prototype.publish("showLeft",!0,"boolean","If true, left widget adapter will display"),Border2.prototype.publish("topOverflowX","visible","set","Sets the overflow-x css style for the top widget adapter",["hidden","scroll","visible","auto"]),Border2.prototype.publish("rightOverflowX","visible","set","Sets the overflow-x css style for the right widget adapter",["hidden","scroll","visible","auto"]),Border2.prototype.publish("bottomOverflowX","visible","set","Sets the overflow-x css style for the bottom widget adapter",["hidden","scroll","visible","auto"]),Border2.prototype.publish("leftOverflowX","visible","set","Sets the overflow-x css style for the left widget adapter",["hidden","scroll","visible","auto"]),Border2.prototype.publish("centerOverflowX","visible","set","Sets the overflow-x css style for the center widget adapter",["hidden","scroll","visible","auto"]),Border2.prototype.publish("topOverflowY","visible","set","Sets the overflow-y css style for the top widget adapter",["hidden","scroll","visible","auto"]),Border2.prototype.publish("rightOverflowY","visible","set","Sets the overflow-y css style for the right widget adapter",["hidden","scroll","visible","auto"]),Border2.prototype.publish("bottomOverflowY","visible","set","Sets the overflow-y css style for the bottom widget adapter",["hidden","scroll","visible","auto"]),Border2.prototype.publish("leftOverflowY","visible","set","Sets the overflow-y css style for the left widget adapter",["hidden","scroll","visible","auto"]),Border2.prototype.publish("centerOverflowY","visible","set","Sets the overflow-y css style for the center widget adapter",["hidden","scroll","visible","auto"]),Border2.prototype.publish("top",null,"widget","Top Widget",void 0,{render:!1}),Border2.prototype.publish("topOverlay",!1,"boolean","Overlay Top Widget"),Border2.prototype.publish("left",null,"widget","Left Widget",void 0,{render:!1}),Border2.prototype.publish("center",null,"widget","Center Widget",void 0,{render:!1}),Border2.prototype.publish("right",null,"widget","Right Widget",void 0,{render:!1}),Border2.prototype.publish("bottom",null,"widget","Bottom Widget",void 0,{render:!1}),Border2.prototype.publish("bottomHeight",null,"number","Bottom Fixed Height",void 0,{optional:!0});class Carousel extends common.HTMLWidget{constructor(){super(...arguments),__publicField2(this,"_prevActive",0),__publicField2(this,"_root")}activeWidget(){return this.widgets()[this.active()]}enter(domNode,element){super.enter(domNode,element),this._root=element.append("div").attr("id",`${this.id()}_root`)}update(domNode,element){super.update(domNode,element);const active=this.active(),width=this.width();this._root.style("width",`${width}px`).style("height",`${this.height()}px`);const widgetElements=this._root.selectAll(`#${this.id()}_root > .carouselItem`).data(this.widgets(),d2=>d2.id()),update=widgetElements.enter().append("div").attr("class","carouselItem").each(function(w2){w2.target(this)}).merge(widgetElements).style("left",(d2,i2)=>`${(i2-this._prevActive)*width}px`).style("width",`${width}px`);this._prevActive!==active&&(update.style("display",(d2,i2)=>i2===this._prevActive||i2===active?null:"none").transition().duration(this.transitionDuration()).style("left",(d2,i2)=>`${(i2-active)*width}px`).on("end",function(d2,i2){common.select(this).style("display",()=>i2===active?null:"none")}),this._prevActive=active),widgetElements.exit().each(function(w2){w2.target(null)}).remove()}exit(domNode,element){this.widgets().forEach(w2=>w2.target(null)),super.exit(domNode,element)}render(callback){return super.render(w2=>{if(!this.visible()||this.isDOMHidden())callback&&callback(w2);else{const aw=this.activeWidget();aw&&aw.resize(this.size()).render(w22=>{callback&&callback(w2)})}})}}Carousel.prototype._class+=" layout_Carousel",Carousel.prototype.publish("widgets",[],"widgetArray","Widgets",null,{render:!1}),Carousel.prototype.publish("active",0,"number","Active widget"),Carousel.prototype.publish("transitionDuration",500,"number","Transition duration");var pi$1=Math.PI,tau$1=2*pi$1,epsilon=1e-6,tauEpsilon=tau$1-epsilon;function Path(){this._x0=this._y0=this._x1=this._y1=null,this._=""}function path(){return new Path}Path.prototype=path.prototype={constructor:Path,moveTo:function(x2,y2){this._+="M"+(this._x0=this._x1=+x2)+","+(this._y0=this._y1=+y2)},closePath:function(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},lineTo:function(x2,y2){this._+="L"+(this._x1=+x2)+","+(this._y1=+y2)},quadraticCurveTo:function(x1,y1,x2,y2){this._+="Q"+ +x1+","+ +y1+","+(this._x1=+x2)+","+(this._y1=+y2)},bezierCurveTo:function(x1,y1,x2,y2,x3,y3){this._+="C"+ +x1+","+ +y1+","+ +x2+","+ +y2+","+(this._x1=+x3)+","+(this._y1=+y3)},arcTo:function(x1,y1,x2,y2,r2){x1=+x1,y1=+y1,x2=+x2,y2=+y2,r2=+r2;var x0=this._x1,y0=this._y1,x21=x2-x1,y21=y2-y1,x01=x0-x1,y01=y0-y1,l01_2=x01*x01+y01*y01;if(r2<0)throw new Error("negative radius: "+r2);if(this._x1===null)this._+="M"+(this._x1=x1)+","+(this._y1=y1);else if(l01_2>epsilon)if(!(Math.abs(y01*x21-y21*x01)>epsilon)||!r2)this._+="L"+(this._x1=x1)+","+(this._y1=y1);else{var x20=x2-x0,y20=y2-y0,l21_2=x21*x21+y21*y21,l20_2=x20*x20+y20*y20,l21=Math.sqrt(l21_2),l01=Math.sqrt(l01_2),l2=r2*Math.tan((pi$1-Math.acos((l21_2+l01_2-l20_2)/(2*l21*l01)))/2),t01=l2/l01,t21=l2/l21;Math.abs(t01-1)>epsilon&&(this._+="L"+(x1+t01*x01)+","+(y1+t01*y01)),this._+="A"+r2+","+r2+",0,0,"+ +(y01*x20>x01*y20)+","+(this._x1=x1+t21*x21)+","+(this._y1=y1+t21*y21)}},arc:function(x2,y2,r2,a0,a1,ccw){x2=+x2,y2=+y2,r2=+r2,ccw=!!ccw;var dx=r2*Math.cos(a0),dy=r2*Math.sin(a0),x0=x2+dx,y0=y2+dy,cw=1^ccw,da=ccw?a0-a1:a1-a0;if(r2<0)throw new Error("negative radius: "+r2);this._x1===null?this._+="M"+x0+","+y0:(Math.abs(this._x1-x0)>epsilon||Math.abs(this._y1-y0)>epsilon)&&(this._+="L"+x0+","+y0),r2&&(da<0&&(da=da%tau$1+tau$1),da>tauEpsilon?this._+="A"+r2+","+r2+",0,1,"+cw+","+(x2-dx)+","+(y2-dy)+"A"+r2+","+r2+",0,1,"+cw+","+(this._x1=x0)+","+(this._y1=y0):da>epsilon&&(this._+="A"+r2+","+r2+",0,"+ +(da>=pi$1)+","+cw+","+(this._x1=x2+r2*Math.cos(a1))+","+(this._y1=y2+r2*Math.sin(a1))))},rect:function(x2,y2,w2,h2){this._+="M"+(this._x0=this._x1=+x2)+","+(this._y0=this._y1=+y2)+"h"+ +w2+"v"+ +h2+"h"+-w2+"Z"},toString:function(){return this._}};function constant(x2){return function(){return x2}}var pi=Math.PI,tau=2*pi;const d3SymbolCircle={draw:function(context,size){var r2=Math.sqrt(size/pi);context.moveTo(r2,0),context.arc(0,0,r2,0,tau)}},d3SymbolCross={draw:function(context,size){var r2=Math.sqrt(size/5)/2;context.moveTo(-3*r2,-r2),context.lineTo(-r2,-r2),context.lineTo(-r2,-3*r2),context.lineTo(r2,-3*r2),context.lineTo(r2,-r2),context.lineTo(3*r2,-r2),context.lineTo(3*r2,r2),context.lineTo(r2,r2),context.lineTo(r2,3*r2),context.lineTo(-r2,3*r2),context.lineTo(-r2,r2),context.lineTo(-3*r2,r2),context.closePath()}};var tan30=Math.sqrt(1/3),tan30_2=tan30*2;const d3SymbolDiamond={draw:function(context,size){var y2=Math.sqrt(size/tan30_2),x2=y2*tan30;context.moveTo(0,-y2),context.lineTo(x2,0),context.lineTo(0,y2),context.lineTo(-x2,0),context.closePath()}};var ka=.8908130915292852,kr=Math.sin(pi/10)/Math.sin(7*pi/10),kx=Math.sin(tau/10)*kr,ky=-Math.cos(tau/10)*kr;const d3SymbolStar={draw:function(context,size){var r2=Math.sqrt(size*ka),x2=kx*r2,y2=ky*r2;context.moveTo(0,-r2),context.lineTo(x2,y2);for(var i2=1;i2<5;++i2){var a2=tau*i2/5,c2=Math.cos(a2),s2=Math.sin(a2);context.lineTo(s2*r2,-c2*r2),context.lineTo(c2*x2-s2*y2,s2*x2+c2*y2)}context.closePath()}},d3SymbolSquare={draw:function(context,size){var w2=Math.sqrt(size),x2=-w2/2;context.rect(x2,x2,w2,w2)}};var sqrt3=Math.sqrt(3);const d3SymbolTriangle={draw:function(context,size){var y2=-Math.sqrt(size/(sqrt3*3));context.moveTo(0,y2*2),context.lineTo(-sqrt3*y2,-y2),context.lineTo(sqrt3*y2,-y2),context.closePath()}};var c=-.5,s=Math.sqrt(3)/2,k=1/Math.sqrt(12),a=(k/2+1)*3;const d3SymbolWye={draw:function(context,size){var r2=Math.sqrt(size/a),x0=r2/2,y0=r2*k,x1=x0,y1=r2*k+r2,x2=-x1,y2=y1;context.moveTo(x0,y0),context.lineTo(x1,y1),context.lineTo(x2,y2),context.lineTo(c*x0-s*y0,s*x0+c*y0),context.lineTo(c*x1-s*y1,s*x1+c*y1),context.lineTo(c*x2-s*y2,s*x2+c*y2),context.lineTo(c*x0+s*y0,c*y0-s*x0),context.lineTo(c*x1+s*y1,c*y1-s*x1),context.lineTo(c*x2+s*y2,c*y2-s*x2),context.closePath()}};function d3Symbol(){var type=constant(d3SymbolCircle),size=constant(64),context=null;function symbol(){var buffer;if(context||(context=buffer=path()),type.apply(this,arguments).draw(context,+size.apply(this,arguments)),buffer)return context=null,buffer+""||null}return symbol.type=function(_2){return arguments.length?(type=typeof _2=="function"?_2:constant(_2),symbol):type},symbol.size=function(_2){return arguments.length?(size=typeof _2=="function"?_2:constant(+_2),symbol):size},symbol.context=function(_2){return arguments.length?(context=_2??null,symbol):context},symbol}var _typeof=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(obj){return typeof obj}:function(obj){return obj&&typeof Symbol=="function"&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj},d3_identity=function(d2){return d2},d3_reverse=function(arr){for(var mirror=[],i2=0,l2=arr.length;i2<l2;i2++)mirror[i2]=arr[l2-i2-1];return mirror},d3_textWrapping=function(text,width){text.each(function(){var text2=common.select(this),words=text2.text().split(/\s+/).reverse(),word,line=[],lineHeight=1.2;text2.attr("y");for(var dy=parseFloat(text2.attr("dy"))||0,tspan=text2.text(null).append("tspan").attr("x",0).attr("dy",dy+"em");word=words.pop();)line.push(word),tspan.text(line.join(" ")),tspan.node().getComputedTextLength()>width&&line.length>1&&(line.pop(),tspan.text(line.join(" ")),line=[word],tspan=text2.append("tspan").attr("x",0).attr("dy",lineHeight+dy+"em").text(word))})},d3_mergeLabels=function(){var gen=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],labels=arguments[1],domain=arguments[2],range=arguments[3],labelDelimiter=arguments[4];if((typeof labels>"u"?"undefined":_typeof(labels))==="object"){if(labels.length===0)return gen;for(var i2=labels.length;i2<gen.length;i2++)labels.push(gen[i2]);return labels}else if(typeof labels=="function"){for(var customLabels=[],genLength=gen.length,_i=0;_i<genLength;_i++)customLabels.push(labels({i:_i,genLength,generatedLabels:gen,domain,range,labelDelimiter}));return customLabels}return gen},d3_linearLegend=function(scale,cells,labelFormat){var data=[];if(cells.length>1)data=cells;else for(var domain=scale.domain(),increment=(domain[domain.length-1]-domain[0])/(cells-1),i2=0;i2<cells;i2++)data.push(domain[0]+i2*increment);var labels=data.map(labelFormat);return{data,labels,feature:function(d2){return scale(d2)}}},d3_quantLegend=function(scale,labelFormat,labelDelimiter){var labels=scale.range().map(function(d2){var invert=scale.invertExtent(d2);return labelFormat(invert[0])+" "+labelDelimiter+" "+labelFormat(invert[1])});return{data:scale.range(),labels,feature:d3_identity}},d3_ordinalLegend=function(scale){return{data:scale.domain(),labels:scale.domain(),feature:function(d2){return scale(d2)}}},d3_cellOver=function(cellDispatcher,d2,obj){cellDispatcher.call("cellover",obj,d2)},d3_cellOut=function(cellDispatcher,d2,obj){cellDispatcher.call("cellout",obj,d2)},d3_cellClick=function(cellDispatcher,d2,obj){cellDispatcher.call("cellclick",obj,d2)},helper={d3_drawShapes:function(shape,shapes,shapeHeight,shapeWidth,shapeRadius,path2){shape==="rect"?shapes.attr("height",shapeHeight).attr("width",shapeWidth):shape==="circle"?shapes.attr("r",shapeRadius):shape==="line"?shapes.attr("x1",0).attr("x2",shapeWidth).attr("y1",0).attr("y2",0):shape==="path"&&shapes.attr("d",path2)},d3_addText:function(svg,enter,labels,classPrefix,labelWidth){enter.append("text").attr("class",classPrefix+"label");var text=svg.selectAll("g."+classPrefix+"cell text."+classPrefix+"label").data(labels).text(d3_identity);return labelWidth&&svg.selectAll("g."+classPrefix+"cell text."+classPrefix+"label").call(d3_textWrapping,labelWidth),text},d3_calcType:function(scale,ascending,cells,labels,labelFormat,labelDelimiter){var type=scale.invertExtent?d3_quantLegend(scale,labelFormat,labelDelimiter):scale.ticks?d3_linearLegend(scale,cells,labelFormat):d3_ordinalLegend(scale),range=scale.range&&scale.range()||scale.domain();return type.labels=d3_mergeLabels(type.labels,labels,scale.domain(),range,labelDelimiter),ascending&&(type.labels=d3_reverse(type.labels),type.data=d3_reverse(type.data)),type},d3_filterCells:function(type,cellFilter){var filterCells=type.data.map(function(d2,i2){return{data:d2,label:type.labels[i2]}}).filter(cellFilter),dataValues=filterCells.map(function(d2){return d2.data}),labelValues=filterCells.map(function(d2){return d2.label});return type.data=type.data.filter(function(d2){return dataValues.indexOf(d2)!==-1}),type.labels=type.labels.filter(function(d2){return labelValues.indexOf(d2)!==-1}),type},d3_placement:function(orient,cell2,cellTrans,text,textTrans,labelAlign){cell2.attr("transform",cellTrans),text.attr("transform",textTrans),orient==="horizontal"&&text.style("text-anchor",labelAlign)},d3_addEvents:function(cells,dispatcher){cells.on("mouseover.legend",function(d2){d3_cellOver(dispatcher,d2,this)}).on("mouseout.legend",function(d2){d3_cellOut(dispatcher,d2,this)}).on("click.legend",function(d2){d3_cellClick(dispatcher,d2,this)})},d3_title:function(svg,title,classPrefix,titleWidth){if(title!==""){var titleText=svg.selectAll("text."+classPrefix+"legendTitle");titleText.data([title]).enter().append("text").attr("class",classPrefix+"legendTitle"),svg.selectAll("text."+classPrefix+"legendTitle").text(title),titleWidth&&svg.selectAll("text."+classPrefix+"legendTitle").call(d3_textWrapping,titleWidth);var cellsSvg=svg.select("."+classPrefix+"legendCells"),yOffset=svg.select("."+classPrefix+"legendTitle").nodes().map(function(d2){return d2.getBBox().height})[0],xOffset=-cellsSvg.nodes().map(function(d2){return d2.getBBox().x})[0];cellsSvg.attr("transform","translate("+xOffset+","+yOffset+")")}},d3_defaultLocale:{format:common.format,formatPrefix:common.formatPrefix},d3_defaultFormatSpecifier:".01f",d3_defaultDelimiter:"to"};function color(){var scale=common.scaleLinear(),shape="rect",shapeWidth=15,shapeHeight=15,shapeRadius=10,shapePadding=2,cells=[5],cellFilter=void 0,labels=[],classPrefix="",useClass=!1,title="",locale=helper.d3_defaultLocale,specifier=helper.d3_defaultFormatSpecifier,labelOffset=10,labelAlign="middle",labelDelimiter=helper.d3_defaultDelimiter,labelWrap=void 0,orient="vertical",ascending=!1,path2=void 0,titleWidth=void 0,legendDispatcher=common.dispatch("cellover","cellout","cellclick");function legend(svg){var type=helper.d3_calcType(scale,ascending,cells,labels,locale.format(specifier),labelDelimiter),legendG=svg.selectAll("g").data([scale]);legendG.enter().append("g").attr("class",classPrefix+"legendCells"),cellFilter&&helper.d3_filterCells(type,cellFilter);var cell2=svg.select("."+classPrefix+"legendCells").selectAll("."+classPrefix+"cell").data(type.data),cellEnter=cell2.enter().append("g").attr("class",classPrefix+"cell");cellEnter.append(shape).attr("class",classPrefix+"swatch");var shapes=svg.selectAll("g."+classPrefix+"cell "+shape+"."+classPrefix+"swatch").data(type.data);helper.d3_addEvents(cellEnter,legendDispatcher),cell2.exit().transition().style("opacity",0).remove(),shapes.exit().transition().style("opacity",0).remove(),shapes=shapes.merge(shapes),helper.d3_drawShapes(shape,shapes,shapeHeight,shapeWidth,shapeRadius,path2);var text=helper.d3_addText(svg,cellEnter,type.labels,classPrefix,labelWrap);cell2=cellEnter.merge(cell2);var textSize=text.nodes().map(function(d2){return d2.getBBox()}),shapeSize=shapes.nodes().map(function(d2){return d2.getBBox()});useClass?shapes.attr("class",function(d2){return classPrefix+"swatch "+type.feature(d2)}):shape=="line"?shapes.style("stroke",type.feature):shapes.style("fill",type.feature);var cellTrans=void 0,textTrans=void 0,textAlign=labelAlign=="start"?0:labelAlign=="middle"?.5:1;orient==="vertical"?function(){var cellSize=textSize.map(function(d2,i2){return Math.max(d2.height,shapeSize[i2].height)});cellTrans=function(d2,i2){var height=common.sum(cellSize.slice(0,i2));return"translate(0, "+(height+i2*shapePadding)+")"},textTrans=function(d2,i2){return"translate( "+(shapeSize[i2].width+shapeSize[i2].x+labelOffset)+", "+(shapeSize[i2].y+shapeSize[i2].height/2+5)+")"}}():orient==="horizontal"&&(cellTrans=function(d2,i2){return"translate("+i2*(shapeSize[i2].width+shapePadding)+",0)"},textTrans=function(d2,i2){return"translate("+(shapeSize[i2].width*textAlign+shapeSize[i2].x)+`,
|
|
3
|
-
`+(shapeSize[i2].height+shapeSize[i2].y+labelOffset+8)+")"}),helper.d3_placement(orient,cell2,cellTrans,text,textTrans,labelAlign),helper.d3_title(svg,title,classPrefix,titleWidth),cell2.transition().style("opacity",1)}return legend.scale=function(_2){return arguments.length?(scale=_2,legend):scale},legend.cells=function(_2){return arguments.length?((_2.length>1||_2>=2)&&(cells=_2),legend):cells},legend.cellFilter=function(_2){return arguments.length?(cellFilter=_2,legend):cellFilter},legend.shape=function(_2,d2){return arguments.length?((_2=="rect"||_2=="circle"||_2=="line"||_2=="path"&&typeof d2=="string")&&(shape=_2,path2=d2),legend):shape},legend.shapeWidth=function(_2){return arguments.length?(shapeWidth=+_2,legend):shapeWidth},legend.shapeHeight=function(_2){return arguments.length?(shapeHeight=+_2,legend):shapeHeight},legend.shapeRadius=function(_2){return arguments.length?(shapeRadius=+_2,legend):shapeRadius},legend.shapePadding=function(_2){return arguments.length?(shapePadding=+_2,legend):shapePadding},legend.labels=function(_2){return arguments.length?(labels=_2,legend):labels},legend.labelAlign=function(_2){return arguments.length?((_2=="start"||_2=="end"||_2=="middle")&&(labelAlign=_2),legend):labelAlign},legend.locale=function(_2){return arguments.length?(locale=common.formatLocale(_2),legend):locale},legend.labelFormat=function(_2){return arguments.length?(specifier=common.formatSpecifier(_2),legend):legend.locale().format(specifier)},legend.labelOffset=function(_2){return arguments.length?(labelOffset=+_2,legend):labelOffset},legend.labelDelimiter=function(_2){return arguments.length?(labelDelimiter=_2,legend):labelDelimiter},legend.labelWrap=function(_2){return arguments.length?(labelWrap=_2,legend):labelWrap},legend.useClass=function(_2){return arguments.length?((_2===!0||_2===!1)&&(useClass=_2),legend):useClass},legend.orient=function(_2){return arguments.length?(_2=_2.toLowerCase(),(_2=="horizontal"||_2=="vertical")&&(orient=_2),legend):orient},legend.ascending=function(_2){return arguments.length?(ascending=!!_2,legend):ascending},legend.classPrefix=function(_2){return arguments.length?(classPrefix=_2,legend):classPrefix},legend.title=function(_2){return arguments.length?(title=_2,legend):title},legend.titleWidth=function(_2){return arguments.length?(titleWidth=_2,legend):titleWidth},legend.textWrap=function(_2){return arguments.length?(textWrap=_2,legend):textWrap},legend.on=function(){var value=legendDispatcher.on.apply(legendDispatcher,arguments);return value===legendDispatcher?legend:value},legend}class Legend extends common.SVGWidget{constructor(owner){super(),__publicField2(this,"_owner"),__publicField2(this,"_targetWidget"),__publicField2(this,"_targetWidgetMonitor"),__publicField2(this,"_legendOrdinal"),__publicField2(this,"_disabled",[]),__publicField2(this,"_symbolTypeMap",{circle:d3SymbolCircle,cross:d3SymbolCross,diamond:d3SymbolDiamond,square:d3SymbolSquare,star:d3SymbolStar,triangle:d3SymbolTriangle,wye:d3SymbolWye}),__publicField2(this,"_g"),__publicField2(this,"_containerSize"),this._owner=owner,this._drawStartPos="origin";const context=this;this._legendOrdinal=color().shape("path",d3Symbol().type(d3SymbolCircle).size(150)()).shapePadding(10).shapeRadius(10).on("cellclick",function(d2){context.onClick(d2,this)}).on("cellover",d2=>{context.onOver(d2,this)}).on("cellout",d2=>{context.onOut(d2,this)})}isDisabled(d2){return typeof d2>"u"?!1:typeof d2=="string"?d2.indexOf("__")===0||this._disabled.indexOf(d2)>=0:d2 instanceof common.Database.Field?d2.id().indexOf("__")===0||this._disabled.indexOf(d2.id())>=0:this._disabled.indexOf(d2)>=0}filteredFields(){switch(this.dataFamily()){case"2D":return this.fields();case"ND":return this.fields().filter(d2=>!this.isDisabled(d2))}return this.fields()}filteredColumns(){switch(this.dataFamily()){case"2D":return this.columns();case"ND":return this.columns().filter(d2=>!this.isDisabled(d2))}return this.columns()}filteredData(){switch(this.dataFamily()){case"2D":return this.data().filter(row2=>!this.isDisabled(row2[0]));case"ND":const disabledCols={};let anyDisabled=!1;return this.columns().forEach((col,idx)=>{const disabled=this.isDisabled(col);disabledCols[idx]=disabled,disabled&&(anyDisabled=!0)}),anyDisabled?this.data().map(row2=>row2.filter((cell2,idx)=>!disabledCols[idx])):this.data()}return this.data()}isRainbow(){const widget=this.getWidget();return widget&&widget._palette&&widget._palette.type()==="rainbow"}targetWidget(_2){if(!arguments.length)return this._targetWidget;if(this._targetWidget=_2,this._targetWidgetMonitor&&(this._targetWidgetMonitor.remove(),delete this._targetWidgetMonitor),this._targetWidget){const context=this;this._targetWidgetMonitor=this._targetWidget.monitor(function(key,newProp,oldProp,source){switch(key){case"chart":case"columns":case"data":case"paletteID":context.lazyRender();break}})}return this}getWidget(){if(this._targetWidget)switch(this._targetWidget.classID()){case"composite_MultiChart":return this._targetWidget.chart()}return this._targetWidget}getPalette(){const widget=this.getWidget();if(widget&&widget._palette)switch(widget._palette.type()){case"ordinal":return common.Palette.ordinal(widget._palette.id());case"rainbow":return common.Palette.rainbow(widget._palette.id())}return common.Palette.ordinal("default")}getPaletteType(){return this.getPalette().type()}fillColorFunc(){const widget=this.getWidget();if(widget&&widget.fillColor)return widget._palette&&widget.paletteID&&widget._palette.name!==widget.paletteID()&&(widget._palette=widget._palette.switch(widget.paletteID())),(row2,col,sel)=>widget.fillColor(row2,col,sel);const palette=common.Palette.ordinal(widget&&widget.paletteID&&widget.paletteID()||"default");return(row2,col,sel)=>palette(col)}fillColor(row2,col,sel){return this.fillColorFunc()(row2,col,sel)}enter(domNode,element){super.enter(domNode,element),this._g=element.append("g").attr("class","legendOrdinal")}calcMetaData(){let dataArr=[],total=0,maxLabelWidth=0;const colLength=this.columns().length;if(this._targetWidget){const columns=this.columns();switch(this.getPaletteType()){case"ordinal":const fillColor=this.fillColorFunc();let val=0;switch(this.dataFamily()){case"2D":dataArr=this.data().map(function(n2,i2){val=this.data()[i2].slice(1,colLength).reduce((acc,n22)=>acc+n22,0);const disabled=this.isDisabled(n2[0]);disabled||(total+=val);const label=n2[0]+(!disabled&&this.showSeriesTotal()?` (${val})`:""),textSize=this.textSize(label);return maxLabelWidth<textSize.width&&(maxLabelWidth=textSize.width),[fillColor(n2,n2[0],!1),n2[0],label]},this);break;case"ND":dataArr=this.columns().filter(col=>col.indexOf("__")!==0).filter(function(n2,i2){return i2>0}).map(function(n2,i2){val=this.data().reduce((acc,n22)=>acc+n22[i2+1],0);const disabled=this.isDisabled(columns[i2+1]),label=n2+(!disabled&&this.showSeriesTotal()?` (${val})`:"");disabled||(total+=val);const textSize=this.textSize(label);return maxLabelWidth<textSize.width&&(maxLabelWidth=textSize.width),[fillColor(void 0,n2,!1),n2,label]},this);break;default:dataArr=this.columns().map(function(n2){return[fillColor(void 0,n2,!1),n2]},this);break}break;case"rainbow":const palette=this.getPalette(),format$1=common.format(this.rainbowFormat()),widget=this.getWidget(),steps=this.rainbowBins(),weightMin=widget._dataMinWeight,weightMax=widget._dataMaxWeight,stepWeightDiff=(weightMax-weightMin)/(steps-1);dataArr.push([palette(weightMin,weightMin,weightMax),format$1(weightMin)]);for(let x2=1;x2<steps-1;++x2){let mid=stepWeightDiff*x2;Math.floor(mid)>parseInt(dataArr[0][1])&&(mid=Math.floor(mid)),dataArr.push([palette(mid,weightMin,weightMax),format$1(mid)])}dataArr.push([palette(weightMax,weightMin,weightMax),format$1(weightMax)]);break}}return{dataArr,total,maxLabelWidth}}update(domNode,element){super.update(domNode,element);const{dataArr,maxLabelWidth,total}=this.calcMetaData(),radius=this.shapeRadius(),size=this.radiusToSymbolSize(radius),strokeWidth=1;let shapePadding=this.itemPadding();this.orientation()==="horizontal"&&(shapePadding+=maxLabelWidth-radius*2);const ordinal=common.scaleOrdinal().domain(dataArr.map(row2=>row2[1])).range(dataArr.map(row2=>row2[0]));this._legendOrdinal.shape("path",d3Symbol().type(this._symbolTypeMap[this.symbolType()]).size(size)()).orient(this.orientation()).title(this.title()).labelWrap(this.labelMaxWidth()).labelAlign(this.labelAlign()).shapePadding(shapePadding).scale(ordinal).labels(d2=>dataArr[d2.i][2]),this._g.call(this._legendOrdinal),this.updateDisabled(element,dataArr);const legendCellsBbox=this._g.select(".legendCells").node().getBBox();let offsetX=Math.abs(legendCellsBbox.x),offsetY=Math.abs(legendCellsBbox.y)+strokeWidth;if(this.orientation()==="horizontal"){if(this.labelAlign()==="start"?offsetX+=strokeWidth:this.labelAlign()==="end"&&(offsetX-=strokeWidth),this.width()>legendCellsBbox.width){const extraWidth=this.width()-legendCellsBbox.width;offsetX+=extraWidth/2}}else if(this.orientation()==="vertical"&&(offsetX+=strokeWidth,this._containerSize.height>legendCellsBbox.height)){const extraHeight=this.height()-legendCellsBbox.height;offsetY+=extraHeight/2}this._g.attr("transform",`translate(${offsetX}, ${offsetY})`),this.pos({x:0,y:0}),this._legendOrdinal.labelOffset(this.itemPadding());const legendTotal=this._g.selectAll(".legendTotal").data(dataArr.length&&this.showLegendTotal()?[total]:[]),totalText=`Total: ${total}`,totalOffsetX=-offsetX,totalOffsetY=legendCellsBbox.height+this.itemPadding()+strokeWidth;this.enableOverflowScroll(!1),this.enableOverflow(!0),legendTotal.enter().append("text").classed("legendTotal",!0).merge(legendTotal).attr("transform",`translate(${totalOffsetX}, ${totalOffsetY})`).text(totalText),legendTotal.exit().remove()}updateDisabled(element,dataArr){element.style("cursor","pointer").selectAll("path.swatch").filter((d2,i2)=>i2<dataArr.length).style("stroke",(d2,i2)=>dataArr[i2][0]).style("fill",(d2,i2)=>this._disabled.indexOf(d2)<0?dataArr[i2][0]:"white")}postUpdate(domNode,element){let w2;this._boundingBox&&(w2=this._boundingBox.width,this._boundingBox.width=this._size.width),super.postUpdate(domNode,element),w2!==void 0&&(this._boundingBox.width=w2),this._parentRelativeDiv.style("overflow","hidden")}exit(domNode,element){super.exit(domNode,element)}radiusToSymbolSize(radius){const circleSize=Math.pow(radius,2)*Math.PI;switch(this.symbolType()){case"star":return circleSize*.45;case"triangle":return circleSize*.65;case"cross":case"diamond":case"wye":return circleSize*.75;case"circle":return circleSize;case"square":return circleSize*1.3}}onClick(d2,domNode){switch(this.getPaletteType()){case"ordinal":switch(this.dataFamily()){case"2D":case"ND":const disabledIdx=this._disabled.indexOf(d2);disabledIdx<0?this._disabled.push(d2):this._disabled.splice(disabledIdx,1),this._owner.refreshColumns(),this._owner.refreshData(),this._owner.render();break}break}}onOver(d2,domNode){if(api.instanceOfIHighlight(this._owner))switch(this.getPaletteType()){case"ordinal":switch(this.dataFamily()){case"2D":case"ND":this._disabled.indexOf(d2)<0&&this._owner.highlightColumn(d2);break}break}}onOut(d2,domNode){if(api.instanceOfIHighlight(this._owner))switch(this.getPaletteType()){case"ordinal":switch(this.dataFamily()){case"2D":case"ND":this._owner.highlightColumn();break}break}}onDblClick(rowData,rowIdx){}onMouseOver(rowData,rowIdx){}resize(_size){let retVal;if(this.fitToContent()){this._containerSize=_size;const bbox=this.getBBox();_size.width>bbox.width&&(bbox.width=_size.width),_size.height>bbox.height&&(bbox.height=_size.height),retVal=super.resize.apply(this,[{...bbox}])}else retVal=super.resize.apply(this,arguments);return retVal}}Legend.prototype._class+=" layout_Legend",Legend.prototype.publish("title","","string","Title"),Legend.prototype.publish("symbolType","circle","set","Shape of each legend item",["circle","cross","diamond","square","star","triangle","wye"]),Legend.prototype.publish("labelMaxWidth",null,"number","Max Label Width (pixels)",null,{optional:!0}),Legend.prototype.publish("orientation","vertical","set","Orientation of Legend rows",["vertical","horizontal"],{tags:["Private"]}),Legend.prototype.publish("dataFamily","ND","set","Type of data",["1D","2D","ND","map","graph","any"],{tags:["Private"]}),Legend.prototype.publish("rainbowFormat",",","string","Rainbow number formatting",null,{tags:["Private"],optional:!0,disable:w2=>!w2.isRainbow()}),Legend.prototype.publish("rainbowBins",8,"number","Number of rainbow bins",null,{tags:["Private"],disable:w2=>!w2.isRainbow()}),Legend.prototype.publish("showSeriesTotal",!1,"boolean","Show value next to series"),Legend.prototype.publish("showLegendTotal",!1,"boolean","Show a total of the series values under the legend",null),Legend.prototype.publish("itemPadding",8,"number","Padding between legend items (pixels)"),Legend.prototype.publish("shapeRadius",7,"number","Radius of legend shape (pixels)"),Legend.prototype.publish("fitToContent",!0,"boolean","If true, resize will simply reapply the bounding box dimensions"),Legend.prototype.publish("labelAlign","start","set","Horizontal alignment of legend item label (for horizontal orientation only)",["start","middle","end"],{optional:!0,disable:w2=>w2.orientation()==="vertical"});class Modal extends common.HTMLWidget{constructor(){super(),__publicField2(this,"_widget"),__publicField2(this,"_relativeTarget"),__publicField2(this,"_fade"),__publicField2(this,"_modal"),__publicField2(this,"_modalHeader"),__publicField2(this,"_modalBody"),__publicField2(this,"_modalHeaderAnnotations"),__publicField2(this,"_modalHeaderCloseButton"),__publicField2(this,"_close"),this._tag="div"}closeModal(){this.visible(!1)}getRelativeTarget(){let relativeTarget;return this.relativeTargetId()&&(relativeTarget=document.getElementById(this.relativeTargetId()),relativeTarget)?relativeTarget:!relativeTarget&&(relativeTarget=this.locateAncestor("layout_Grid"),relativeTarget&&relativeTarget.element)?relativeTarget.element().node():document.body}setModalSize(){this.fixedHeight()!==null&&this.fixedWidth()!==null?this._modal.style("height",this.fixedHeight()).style("width",this.fixedWidth()).style("min-height",null).style("min-width",null).style("max-height",null).style("max-width",null):(this.minHeight()||this.minWidth())&&this._modal.style("min-height",this.minHeight()).style("min-width",this.minWidth()).style("max-height",this.maxHeight()).style("max-width",this.maxWidth());const modalRect=this._modal.node().getBoundingClientRect(),headerRect=this._modalHeader.node().getBoundingClientRect();return this._modalBody.style("height",modalRect.height-headerRect.height+"px").style("width",modalRect.width),modalRect}setFadePosition(rect){this._fade.style("top",rect.top+"px").style("left",rect.left+"px").style("width",rect.width+"px").style("height",rect.height+"px")}setModalPosition(rect){const modalRect=this.setModalSize();if(this.fixedTop()!==null&&this.fixedLeft()!==null)this._modal.style("top",`calc(${this.fixedTop()} + ${rect.top}px)`).style("left",`calc(${this.fixedLeft()} + ${rect.left}px)`);else if(this.fixedHeight()!==null&&this.fixedWidth()!==null)this._modal.style("top",rect.top+rect.height/2-modalRect.height/2+"px").style("left",rect.left+rect.width/2-modalRect.width/2+"px");else if(this.minHeight()||this.minWidth()){const contentRect=this._modal.node().getBoundingClientRect();this._modal.style("top",rect.top+rect.height/2-contentRect.height/2+"px").style("left",rect.left+rect.width/2-contentRect.width/2+"px")}}resize(size){return super.resize(),this._modal&&this.setModalSize(),this}resizeBodySync(width,height){const headerRect=this._modalHeader.node().getBoundingClientRect();return this._modal.style("width",width+"px").style("height",height+headerRect.height+"px").style("min-width",width+"px").style("min-height",height+headerRect.height+"px"),this._modalHeader.style("width",width+"px"),this._modalBody.style("width",width+"px").style("height",height+"px"),this.minWidth(width+"px").minHeight(height+headerRect.height+"px").resize({height:height+headerRect.height,width})}enter(domNode,element){super.enter(domNode,element),this._fade=element.append("div").classed("layout_Modal-fade",!0).classed("layout_Modal-fadeClickable",this.enableClickFadeToClose()).classed("layout_Modal-fade-hidden",!this.showFade());const header_h=this.titleFontSize()*2;this._modal=element.append("div").classed("layout_Modal-content",!0),this._modalHeader=this._modal.append("div").classed("layout_Modal-header",!0).style("color",this.titleFontColor()).style("font-size",this.titleFontSize()+"px").style("height",header_h+"px"),this._modalBody=this._modal.append("div").classed("layout_Modal-body",!0).style("height",`calc( 100% - ${header_h}px )`).style("overflow-x",this.overflowX()).style("overflow-y",this.overflowY()),this._modalHeader.append("div").classed("layout_Modal-title",!0).style("line-height",this.titleFontSize()+"px").style("top",this.titleFontSize()/2+"px").style("left",this.titleFontSize()/2+"px").text(this.formattedTitle()),this._modalHeaderAnnotations=this._modalHeader.append("div").classed("layout_Modal-annotations",!0),this._modalHeaderCloseButton=this._modalHeaderAnnotations.append("div").classed("layout_Modal-closeButton",!0).html('<i class="fa fa-close"></i>'),this._modalHeaderAnnotations.style("line-height",this.titleFontSize()+"px").style("right",this.titleFontSize()/2+"px").style("top",this.titleFontSize()/2+"px"),this._modalHeaderCloseButton.on("click",()=>{this.closeModal()}),this._fade.on("click",n2=>{this.enableClickFadeToClose()&&this.closeModal()})}update(domNode,element){super.update(domNode,element),element.style("display",this.show()?null:"none"),this._fade.classed("layout_Modal-fade-hidden",!this.showFade()),this._relativeTarget=this.getRelativeTarget(),this.setModalSize();const rect=this._relativeTarget.getBoundingClientRect();this.setFadePosition(rect),this.setModalPosition(rect),this.show()?(this._widget.target()||this._widget.target(this._modalBody.node()),this._widget.resize().render()):this._widget.target(null).render()}exit(domNode,element){this._widget&&this._widget.target(null),super.exit(domNode,element)}formattedTitle(){const title=this.title_exists()?this.title().trim():"";return title.length>0&&title.slice(0,1)==="("&&title.slice(-1)===")"?title.slice(1,-1):this.title()}}Modal.prototype._class+=" layout_Modal",Modal.prototype.publish("title",null,"string","title"),Modal.prototype.publish("widget",null,"widget","widget"),Modal.prototype.publish("titleFontSize",18,"number","titleFontSize (in pixels)"),Modal.prototype.publish("titleFontColor","#ffffff","html-color","titleFontColor"),Modal.prototype.publish("relativeTargetId",null,"string","relativeTargetId"),Modal.prototype.publish("show",!0,"boolean","show"),Modal.prototype.publish("showFade",!0,"boolean","showFade"),Modal.prototype.publish("enableClickFadeToClose",!0,"boolean","enableClickFadeToClose"),Modal.prototype.publish("minWidth","400px","string","minWidth"),Modal.prototype.publish("minHeight","400px","string","minHeight"),Modal.prototype.publish("maxWidth","800px","string","maxWidth"),Modal.prototype.publish("maxHeight","800px","string","maxHeight"),Modal.prototype.publish("fixedWidth",null,"string","fixedWidth"),Modal.prototype.publish("fixedHeight",null,"string","fixedHeight"),Modal.prototype.publish("fixedTop",null,"string","fixedTop"),Modal.prototype.publish("fixedLeft",null,"string","fixedLeft"),Modal.prototype.publish("overflowX","hidden","string","overflowX"),Modal.prototype.publish("overflowY","scroll","string","overflowY");class ChartPanel extends Border2{constructor(){super(),__publicField2(this,"_legend",new Legend(this).enableOverflow(!0)),__publicField2(this,"_progressBar",new common.ProgressBar),__publicField2(this,"_autoScale",!1),__publicField2(this,"_resolutions",{tiny:{width:100,height:100},small:{width:300,height:300}}),__publicField2(this,"_modal",new Modal),__publicField2(this,"_highlight"),__publicField2(this,"_scale"),__publicField2(this,"_orig_size"),__publicField2(this,"_toggleInfo",new common.ToggleButton().faChar("fa-info-circle").tooltip(".Description").selected(!1).on("enabled",()=>this.description()!=="").on("click",()=>{if(this._toggleInfo.selected()){this._modal.title(this.title()).widget(new common.Text().text(this.description())).show(!0).render();const origCloseFunc=this._modal._close;this._modal._close=()=>{this._toggleInfo.selected(!1).render(),this._modal._close=origCloseFunc}}}).on("mouseMove",()=>{}).on("mouseOut",()=>{})),__publicField2(this,"_toggleData",new common.ToggleButton().faChar("fa-table").tooltip("Data").on("click",()=>{this.dataVisible(this._toggleData.selected()),this.render()})),__publicField2(this,"_buttonDownload",new common.Button().faChar("fa-download").tooltip("Download").on("click",()=>{this.downloadCSV()})),__publicField2(this,"_buttonDownloadImage",new common.Button().faChar("fa-image").tooltip("Download Image").on("click",()=>{this.downloadPNG()})),__publicField2(this,"_toggleLegend",new common.ToggleButton().faChar("fa-list-ul").tooltip("Legend").selected(!1).on("click",()=>{const selected=this._toggleLegend.selected();this.legendPosition()==="bottom"?this.showBottom(selected):this.legendPosition()==="right"&&this.showRight(selected),this.legendVisible(selected),this.render()})),__publicField2(this,"_spacer",new common.Spacer),__publicField2(this,"_titleBar",new common.TitleBar().buttons([this._toggleData,this._buttonDownload,this._buttonDownloadImage,this._spacer,this._toggleLegend])),__publicField2(this,"_carousel",new Carousel),__publicField2(this,"_table",new Table),__publicField2(this,"_widget"),__publicField2(this,"_hideLegendToggleList",["dgrid_Table"]),__publicField2(this,"_prevdataVisible"),__publicField2(this,"_prevlegendVisible"),__publicField2(this,"_prevLegendPosition"),__publicField2(this,"_prevChartDataFamily"),__publicField2(this,"_prevChart"),__publicField2(this,"_prevButtons"),this._tag="div"}fields(_2){return arguments.length?(super.fields(_2),this._legend.fields(_2),this.refreshFields(),this):super.fields()}refreshFields(){return this._widget.fields(this._legend.filteredFields()),this._table.fields(this._legend.filteredFields()),this}columns(_2,asDefault){return arguments.length?(super.columns(_2,asDefault),this._legend.columns(_2,asDefault),this.refreshColumns(),this):super.columns()}refreshColumns(){return this._widget.columns(this._legend.filteredColumns()),this._table.columns(this._legend.filteredColumns()),this}data(_2){return arguments.length?(super.data(_2),this._legend.data(_2),this.refreshData(),this):super.data()}refreshData(){return this._widget.data(this._legend.filteredData()),this._table.data(this._legend.filteredData()),this}highlight(_2){return arguments.length?(this._highlight=_2,this):this._highlight}startProgress(){this._progressBar.start()}finishProgress(){this._progressBar.finish()}buttons(_2){return arguments.length?(this._titleBar.buttons(_2),this):this._titleBar.buttons()}downloadCSV(){const namePrefix=this.downloadTitle()?this.downloadTitle():this.title()?this.title():"data",nameSuffix=this.downloadTimestampSuffix()?"_"+common.Utility.timestamp():"";return common.Utility.downloadString("CSV",this._widget.export("CSV"),namePrefix+nameSuffix),this}downloadPNG(){const widget=this.widget();return widget instanceof common.SVGWidget&&(this.legendVisible()?widget.downloadPNG(this.title(),void 0,this._legend):widget.downloadPNG(this.title())),this}highlightColumn(column){if(column){const cssTag=`series-${this.cssTag(column)}`;this._centerWA.element().selectAll(".series").each(function(){const element=common.select(this),highlight=element.classed(cssTag);element.classed("highlight",highlight).classed("lowlight",!highlight)})}else this._centerWA.element().selectAll(".series").classed("highlight",!1).classed("lowlight",!1);return this}getResponsiveMode(){return this.enableAutoscaling()?this._autoScale?this.size().width<=this._resolutions.tiny.width||this.size().height<=this._resolutions.tiny.height?"tiny":this.size().width<=this._resolutions.small.width||this.size().height<=this._resolutions.small.height?"small":"regular":"regular":"none"}setOrigSize(){this._orig_size=JSON.parse(JSON.stringify(this.size()))}enter(domNode,element){super.enter(domNode,element),this._modal.target(this.target()).relativeTargetId(this.id()),this.top(this._titleBar),this.center(this._carousel),this._legend.targetWidget(this._widget).orientation("vertical").title("").visible(!1),this._progressBar.enter(domNode,element),this.setOrigSize()}preUpdateTiny(element){element.selectAll("div.body,div.title-text,div.icon-bar").style("display","none")}preUpdateSmall(element){const scale_x=this._orig_size.width/this._resolutions.small.width,scale_y=this._orig_size.height/this._resolutions.small.height;this._scale=Math.min(scale_x,scale_y);const x_is_smaller=this._scale===scale_x;this.size({width:x_is_smaller?this._resolutions.small.width:this._orig_size.width*(1/this._scale),height:x_is_smaller?this._orig_size.height*(1/this._scale):this._resolutions.small.height}),element.select("div.title-icon").style("position","static"),element.selectAll("lhs").style("display","none"),element.selectAll("div.body,div.title-text,div.icon-bar").style("display",""),element.selectAll("div.data-count").style("visibility","hidden"),element.style("transform",`scale(${this._scale})`)}preUpdateRegular(element){element.selectAll("div.body,div.title-text,div.icon-bar").style("display",""),element.selectAll("div.data-count").style("visibility","hidden"),element.select("div.title-icon").style("position","static"),element.style("transform","translate(0px,0px) scale(1)")}update(domNode,element){if(super.update(domNode,element),this._table&&this.widget_exists()&&this.widget().class().indexOf("chart_XYAxis")>=0){const chart=this.widget();this._table.columns().forEach((column,idx)=>{switch(idx===0?chart.xAxisType():chart.yAxisType()){case"linear":case"log":case"pow":this._table.columnType(column,"number");break;case"time":this._table.columnType(column,"time");break;case"ordinal":default:this._table.columnType(column,"string")}this._table.columnPattern(column,idx===0?chart.xAxisTypeTimePattern():chart.yAxisTypeTimePattern()),this._table.columnFormat(column,idx===0?chart.xAxisTickFormat():chart.yAxisTickFormat())})}}preUpdate(domNode,element){switch(super.preUpdate(domNode,element),this._prevLegendPosition!==this.legendPosition()&&(this._legend.target()!==null&&this._legend.target(null),this._prevLegendPosition!==void 0?this.swap(this._prevLegendPosition,this.legendPosition()):this[this.legendPosition()](this._legend),this.legendPosition()==="right"?(this.rightOverflowX("hidden"),this.rightOverflowY("auto"),this.bottomOverflowX("visible"),this.bottomOverflowY("visible")):(this.rightOverflowX("visible"),this.rightOverflowY("visible"),this.bottomOverflowX("auto"),this.bottomOverflowY("hidden")),this._prevLegendPosition=this.legendPosition()),this._prevdataVisible!==this.dataVisible()&&(this._prevdataVisible=this.dataVisible(),this._toggleData.selected(this._prevdataVisible),this._legend.visible(this._prevlegendVisible&&!this._prevdataVisible),this._carousel.active(this._prevdataVisible?1:0)),this._prevlegendVisible!==this.legendVisible()&&(this._prevlegendVisible=this.legendVisible(),this._toggleLegend.selected(this._prevlegendVisible),this._legend.visible(this._prevlegendVisible&&!this._prevdataVisible)),this._legend.orientation(this.legendPosition()==="bottom"?"horizontal":"vertical"),this.showLeft(!this.left()),this.getResponsiveMode()){case"tiny":this.preUpdateTiny(element);break;case"small":this.preUpdateSmall(element);break;case"regular":this.preUpdateRegular(element);break}const chart=this._widget.classID()==="composite_MultiChart"?this._widget.chart():this._widget;if(this._legend.dataFamily(chart._dataFamily||"any"),this._prevChartDataFamily!==this._legend.dataFamily())switch(this._prevChartDataFamily=this._legend.dataFamily(),this._prevChartDataFamily){case"any":this._toggleLegend.selected(!1),this._legend.visible(!1);break}if(element.style("box-shadow",this.highlight()?`inset 0px 0px 0px ${this.highlightSize()}px ${this.highlightColor()}`:"none"),this._hideLegendToggleList.indexOf(chart.classID())!==-1?(this._spacer.visible(!1),this._toggleLegend.visible(!1)):(this._spacer.visible(!0),this._toggleLegend.visible(!0)),this._prevChart!==chart){this._prevChart=chart;const widgetIconBar=chart?chart._titleBar||chart._iconBar:void 0;if(widgetIconBar&&widgetIconBar instanceof common.IconBar){this._prevButtons=this._prevButtons||[...this.buttons()];const buttons=[...widgetIconBar.buttons(),new common.Spacer,...this._prevButtons];widgetIconBar.buttons([]).render(),this.buttons(buttons)}else this._prevButtons&&this.buttons(this._prevButtons)}const hiddenButtons=[];this.dataButtonVisible()||hiddenButtons.push(this._toggleData),this.downloadButtonVisible()||hiddenButtons.push(this._buttonDownload),this.downloadImageButtonVisible()||hiddenButtons.push(this._buttonDownloadImage),this.legendButtonVisible()||hiddenButtons.push(this._toggleLegend),this._buttonDownloadImage.enabled(this.widget()instanceof common.SVGWidget),this._titleBar.hiddenButtons(hiddenButtons).visible(this.titleVisible()),this.topOverlay(this.titleOverlay()||!this.titleVisible())}postUpdate(domNode,element){switch(super.postUpdate(domNode,element),this.getResponsiveMode()){case"tiny":this.postUpdateTiny(element);break;case"small":this.postUpdateSmall(element);break;case"regular":this.postUpdateRegular(element);break}}postUpdateTiny(element){element.selectAll("div.body,div.title-text,div.icon-bar").style("display","none"),element.selectAll("div.data-count").style("visibility","visible").style("font-size",this.titleIconFontSize()/3+"px").style("line-height",this.titleIconFontSize()/3+"px").style("left",this.titleIconFontSize()+"px").text(this.data().length),element.style("transform","translate(0px,0px) scale(1)");const iconDiv=element.selectAll("div.title-icon"),_node=iconDiv.node(),containerRect=element.node().parentElement.getBoundingClientRect();if(_node){const rect=iconDiv.node().getBoundingClientRect(),icon_top=containerRect.height/2;iconDiv.style("position","absolute").style("left",`calc(50% - ${rect.width/2}px)`).style("top",`${icon_top-rect.height/2}px`),element.selectAll("div.data-count").style("position","absolute").style("left",`calc(50% + ${rect.width/2}px)`).style("top",`${icon_top-rect.height/2}px`)}}postUpdateSmall(element){element.selectAll("lhs").style("display","none"),element.selectAll("div.title-icon").style("position","static"),element.selectAll("div.body,div.title-text,div.icon-bar").style("display",""),element.selectAll("div.data-count").style("visibility","hidden");const rect=element.node().getBoundingClientRect(),parentRect=element.node().parentElement.getBoundingClientRect();element.style("transform",`translate(${parentRect.x-rect.x}px, ${parentRect.y-rect.y}px) scale(${this._scale})`)}postUpdateRegular(element){element.selectAll("div.title-icon").style("position","static"),element.selectAll("div.body,div.title-text,div.icon-bar").style("display",""),element.selectAll("div.data-count").style("visibility","hidden")}exit(domNode,element){this._progressBar.exit(domNode,element),this.right(null),this._legend.target(null),this.center(null),this._carousel.target(null),this.top(null),this._titleBar.target(null),this._modal.target(null),delete this._prevChart,delete this._prevButtons,delete this._prevChartDataFamily,delete this._prevPos,delete this._prevdataVisible,delete this._prevlegendVisible,super.exit(domNode,element)}click(row2,column,selected){}dblclick(row2,column,selected){}vertex_click(row2,col,sel,more){more&&more.vertex}vertex_dblclick(row2,col,sel,more){more&&more.vertex}edge_click(row2,col,sel,more){more&&more.edge}edge_dblclick(row2,col,sel,more){more&&more.edge}}ChartPanel.prototype._class+=" layout_ChartPanel",ChartPanel.prototype.publishReset(),ChartPanel.prototype.publishProxy("title","_titleBar"),ChartPanel.prototype.publish("titleVisible",!0,"boolean"),ChartPanel.prototype.publish("titleOverlay",!1,"boolean"),ChartPanel.prototype.publishProxy("titleIcon","_titleBar"),ChartPanel.prototype.publishProxy("titleIconFont","_titleBar"),ChartPanel.prototype.publishProxy("titleFont","_titleBar"),ChartPanel.prototype.publishProxy("titleIconFontSize","_titleBar"),ChartPanel.prototype.publishProxy("titleFontSize","_titleBar"),ChartPanel.prototype.publishProxy("description","_titleBar"),ChartPanel.prototype.publishProxy("descriptionFont","_titleBar"),ChartPanel.prototype.publishProxy("descriptionFontSize","_titleBar"),ChartPanel.prototype.publish("dataVisible",!1,"boolean","Show data table"),ChartPanel.prototype.publish("dataButtonVisible",!0,"boolean","Show data table button"),ChartPanel.prototype.publish("downloadButtonVisible",!0,"boolean","Show data download button"),ChartPanel.prototype.publish("downloadImageButtonVisible",!1,"boolean","Show image download button"),ChartPanel.prototype.publish("downloadTitle","","string","File name when downloaded"),ChartPanel.prototype.publish("downloadTimestampSuffix",!0,"boolean","Use timestamp as file name suffix"),ChartPanel.prototype.publish("legendVisible",!1,"boolean","Show legend"),ChartPanel.prototype.publish("legendButtonVisible",!0,"boolean","Show legend button"),ChartPanel.prototype.publish("legendPosition","right","set","Position of legend",["right","bottom"]),ChartPanel.prototype.publishProxy("legend_labelMaxWidth","_legend","labelMaxWidth"),ChartPanel.prototype.publishProxy("legend_showSeriesTotal","_legend","showSeriesTotal"),ChartPanel.prototype.publishProxy("legend_showLegendTotal","_legend","showLegendTotal"),ChartPanel.prototype.publishProxy("legend_itemPadding","_legend","itemPadding"),ChartPanel.prototype.publishProxy("legend_shapeRadius","_legend","shapeRadius"),ChartPanel.prototype.publishProxy("legend_symbolType","_legend","symbolType"),ChartPanel.prototype.publishProxy("legend_labelAlign","_legend","labelAlign"),ChartPanel.prototype.publish("widget",null,"widget","Widget",void 0,{render:!1}),ChartPanel.prototype.publish("enableAutoscaling",!1,"boolean"),ChartPanel.prototype.publish("highlightSize",4,"number"),ChartPanel.prototype.publish("highlightColor","#e67e22","html-color"),ChartPanel.prototype.publishProxy("progress_halfLife","_progressBar","halfLife"),ChartPanel.prototype.publishProxy("progress_decay","_progressBar","decay"),ChartPanel.prototype.publishProxy("progress_size","_progressBar","size"),ChartPanel.prototype.publishProxy("progress_color","_progressBar","color"),ChartPanel.prototype.publishProxy("progress_blurBar","_progressBar","blurBar"),ChartPanel.prototype.publishProxy("progress_blurSize","_progressBar","blurSize"),ChartPanel.prototype.publishProxy("progress_blurColor","_progressBar","blurColor"),ChartPanel.prototype.publishProxy("progress_blurOpacity","_progressBar","blurOpacity"),ChartPanel.prototype.widget=function(_2){if(!arguments.length)return this._widget;this._carousel.widgets([_2,this._table]),this._widget=_2,this._widget.fields(this._legend.filteredFields()).data(this._legend.filteredData());const context=this,tmpAny=this._widget;return tmpAny.click=function(){context.click.apply(context,arguments)},tmpAny.dblclick=function(){context.dblclick.apply(context,arguments)},tmpAny.vertex_click=function(){context.vertex_click.apply(context,arguments)},tmpAny.vertex_dblclick=function(){context.vertex_dblclick.apply(context,arguments)},tmpAny.edge_click=function(){context.edge_click.apply(context,arguments)},tmpAny.edge_dblclick=function(){context.edge_dblclick.apply(context,arguments)},this};class FlexGrid extends common.HTMLWidget{constructor(){super()}enter(domNode,element){super.enter(domNode,element),common.select(domNode.parentNode).style("height","100%").style("width","100%")}update(domNode,element){super.update(domNode,element);const context=this,cachedSizes=[];this.updateFlexParent(element);const listItems=element.selectAll(".FlexGrid-list-item").data(this.widgets(),w2=>w2.id());listItems.enter().append("div").classed("FlexGrid-list-item",!0).each(function(w2){w2.target(this)}).merge(listItems).style("min-height",this.itemMinHeight()+"px").style("min-width",this.itemMinWidth()+"px").style("flex-basis",(n2,i2)=>{const flexBasis=this.widgetsFlexBasis()[i2];return typeof flexBasis<"u"?flexBasis:this.flexBasis()}).style("flex-grow",(n2,i2)=>{const flexGrow=this.widgetsFlexGrow()[i2];return typeof flexGrow<"u"?flexGrow:this.flexGrow()}).style("border-width",this.borderWidth()+"px").style("border-color",this.itemBorderColor()).each(function(){this.firstChild.style.display="none"}).each(function(){const rect=this.getBoundingClientRect();cachedSizes.push([rect.width,rect.height])}).each(function(w2,i2){this.firstChild.style.display="block",w2.resize({width:cachedSizes[i2][0]-2*context.borderWidth(),height:cachedSizes[i2][1]-2*context.borderWidth()})}),listItems.exit().remove()}exit(domNode,element){super.exit(domNode,element)}updateFlexParent(element){element.style("height","100%").style("flex-direction",this.orientation()==="horizontal"?"row":"column").style("flex-wrap",this.flexWrap()).style("align-items",this.alignItems()).style("align-content",this.alignContent()).style("overflow-x",()=>this.forceXScroll()||this.orientation()==="horizontal"&&this.flexWrap()==="nowrap"&&!this.disableScroll()?"scroll":"hidden").style("overflow-y",()=>this.forceYScroll()||this.orientation()==="vertical"&&this.flexWrap()==="nowrap"&&!this.disableScroll()?"scroll":"hidden")}}FlexGrid.prototype._class+=" layout_FlexGrid",FlexGrid.prototype.publish("itemBorderColor","transparent","html-color","Color of list item borders"),FlexGrid.prototype.publish("borderWidth",0,"number","Width of list item borders (pixels)"),FlexGrid.prototype.publish("orientation","horizontal","set","Controls the flex-direction of the list items",["horizontal","vertical"]),FlexGrid.prototype.publish("flexWrap","wrap","set","Controls the line wrap when overflow occurs",["nowrap","wrap","wrap-reverse"]),FlexGrid.prototype.publish("disableScroll",!1,"boolean","If false, scrollbar will show (when flexWrap is set to 'nowrap')",null,{disable:w2=>w2.flexWrap()!=="nowrap"}),FlexGrid.prototype.publish("forceXScroll",!1,"boolean","If true, horzontal scrollbar will show"),FlexGrid.prototype.publish("forceYScroll",!1,"boolean","If true, vertical scrollbar will show"),FlexGrid.prototype.publish("itemMinHeight",64,"number","Minimum height of a list item (pixels)"),FlexGrid.prototype.publish("itemMinWidth",64,"number","Minimum width of a list item (pixels)"),FlexGrid.prototype.publish("alignItems","stretch","set","Controls normal alignment of items",["flex-start","center","flex-end","stretch"]),FlexGrid.prototype.publish("alignContent","stretch","set","Controls normal alignment of item rows",["flex-start","center","flex-end","stretch","space-between","space-around"]),FlexGrid.prototype.publish("flexGrow",1,"number","Default flex-grow style for all list items"),FlexGrid.prototype.publish("flexBasis","10%","string","Default flex-basis style for all list items"),FlexGrid.prototype.publish("widgetsFlexGrow",[],"array","Array of flex-grow values keyed on the widgets array"),FlexGrid.prototype.publish("widgetsFlexBasis",[],"array","Array of flex-basis values keyed on the widgets array"),FlexGrid.prototype.publish("widgets",[],"widgetArray","Array of widgets to be rendered as list items");function getDefaultExportFromCjs(x2){return x2&&x2.__esModule&&Object.prototype.hasOwnProperty.call(x2,"default")?x2.default:x2}var gridList$2={exports:{}},gridList$1=gridList$2.exports,hasRequiredGridList;function requireGridList(){return hasRequiredGridList||(hasRequiredGridList=1,function(module2,exports3){(function(root2,factory){module2.exports=factory()})(gridList$1,function(){var GridList2=function(items,options){this._options=options;for(var k2 in this.defaults)this._options.hasOwnProperty(k2)||(this._options[k2]=this.defaults[k2]);this.items=items,this._adjustSizeOfItems(),this.generateGrid()};GridList2.cloneItems=function(items,_items){var i2,k2;for(_items===void 0&&(_items=[]),i2=0;i2<items.length;i2++){_items[i2]||(_items[i2]={});for(k2 in items[i2])_items[i2][k2]=items[i2][k2]}return _items},GridList2.prototype={defaults:{lanes:5,direction:"horizontal"},toString:function(){var widthOfGrid=this.grid.length,output=`
|
|
2
|
+
(function(global,factory){typeof exports=="object"&&typeof module<"u"?factory(exports,require("@hpcc-js/common"),require("@hpcc-js/api"),require("@hpcc-js/form"),require("@hpcc-js/other")):typeof define=="function"&&define.amd?define(["exports","@hpcc-js/common","@hpcc-js/api","@hpcc-js/form","@hpcc-js/other"],factory):(global=typeof globalThis<"u"?globalThis:global||self,factory(global["@hpcc-js/composite"]={},global["@hpcc-js/common"],global["@hpcc-js/api"],global["@hpcc-js/form"],global["@hpcc-js/other"]))})(this,function(exports2,common,api,form,other){"use strict";var __defProp=Object.defineProperty;var __defNormalProp=(obj,key,value)=>key in obj?__defProp(obj,key,{enumerable:!0,configurable:!0,writable:!0,value}):obj[key]=value;var __publicField=(obj,key,value)=>__defNormalProp(obj,typeof key!="symbol"?key+"":key,value);const PKG_NAME="@hpcc-js/composite",PKG_VERSION="3.1.1",BUILD_VERSION="3.2.1";(function(){try{if(typeof document<"u"){var r2=document.createElement("style");r2.appendChild(document.createTextNode('@layer rdg{@layer Defaults,FocusSink,CheckboxInput,CheckboxIcon,CheckboxLabel,Cell,HeaderCell,SummaryCell,EditCell,Row,HeaderRow,SummaryRow,GroupedRow,Root;}@layer rdg.MeasuringCell{.mlln6zg7-0-0-beta-51{contain:strict;grid-row:1;visibility:hidden}}@layer rdg.Cell{.cj343x07-0-0-beta-51{position:relative;padding-block:0;padding-inline:8px;border-inline-end:1px solid var(--rdg-border-color);border-block-end:1px solid var(--rdg-border-color);grid-row-start:var(--rdg-grid-row-start);align-content:center;background-color:inherit;white-space:nowrap;overflow:clip;text-overflow:ellipsis;outline:none}.cj343x07-0-0-beta-51[aria-selected=true]{outline:2px solid var(--rdg-selection-color);outline-offset:-2px}}@layer rdg.Cell{.csofj7r7-0-0-beta-51{position:sticky;z-index:1}.csofj7r7-0-0-beta-51:nth-last-child(1 of.csofj7r7-0-0-beta-51){box-shadow:var(--rdg-cell-frozen-box-shadow)}}@layer rdg.CheckboxInput{.c1bn88vv7-0-0-beta-51{display:block;margin:auto;inline-size:20px;block-size:20px}.c1bn88vv7-0-0-beta-51:focus-visible{outline:2px solid var(--rdg-checkbox-focus-color);outline-offset:-3px}.c1bn88vv7-0-0-beta-51:enabled{cursor:pointer}}@layer rdg.GroupCellContent{.g1s9ylgp7-0-0-beta-51{outline:none}}@layer rdg.GroupCellCaret{.cz54e4y7-0-0-beta-51{margin-inline-start:4px;stroke:currentColor;stroke-width:1.5px;fill:transparent;vertical-align:middle}.cz54e4y7-0-0-beta-51>path{transition:d .1s}}@layer rdg.SortableHeaderCell{.h44jtk67-0-0-beta-51{display:flex}}@layer rdg.SortableHeaderCellName{.hcgkhxz7-0-0-beta-51{flex-grow:1;overflow:clip;text-overflow:ellipsis}}@layer rdg.Cell{.c6ra8a37-0-0-beta-51{background-color:#ccf}}@layer rdg.Cell{.cq910m07-0-0-beta-51{background-color:#ccf}.cq910m07-0-0-beta-51.c6ra8a37-0-0-beta-51{background-color:#99f}}@layer rdg.DragHandle{.c1w9bbhr7-0-0-beta-51{--rdg-drag-handle-size: 8px;z-index:0;cursor:move;inline-size:var(--rdg-drag-handle-size);block-size:var(--rdg-drag-handle-size);background-color:var(--rdg-selection-color);place-self:end}.c1w9bbhr7-0-0-beta-51:hover{--rdg-drag-handle-size: 16px;border:2px solid var(--rdg-selection-color);background-color:var(--rdg-background-color)}}@layer rdg.DragHandle{.c1creorc7-0-0-beta-51{z-index:1;position:sticky}}@layer rdg.EditCell{.cis5rrm7-0-0-beta-51{padding:0}}@layer rdg.HeaderCell{.c6l2wv17-0-0-beta-51{cursor:pointer}}@layer rdg.HeaderCell{.c1kqdw7y7-0-0-beta-51{touch-action:none}}@layer rdg.HeaderCell{.r1y6ywlx7-0-0-beta-51{cursor:col-resize;position:absolute;inset-block-start:0;inset-inline-end:0;inset-block-end:0;inline-size:10px}}.c1bezg5o7-0-0-beta-51{opacity:.5}.c1vc96037-0-0-beta-51{background-color:var(--rdg-header-draggable-background-color)}@layer rdg.Row{.r1upfr807-0-0-beta-51{display:contents;background-color:var(--rdg-background-color)}.r1upfr807-0-0-beta-51:hover{background-color:var(--rdg-row-hover-background-color)}.r1upfr807-0-0-beta-51[aria-selected=true]{background-color:var(--rdg-row-selected-background-color)}.r1upfr807-0-0-beta-51[aria-selected=true]:hover{background-color:var(--rdg-row-selected-hover-background-color)}}@layer rdg.FocusSink{.r190mhd37-0-0-beta-51{outline:2px solid var(--rdg-selection-color);outline-offset:-2px}}@layer rdg.FocusSink{.r139qu9m7-0-0-beta-51:before{content:"";display:inline-block;block-size:100%;position:sticky;inset-inline-start:0;border-inline-start:2px solid var(--rdg-selection-color)}}@layer rdg.HeaderRow{.h10tskcx7-0-0-beta-51{display:contents;background-color:var(--rdg-header-background-color);font-weight:700}.h10tskcx7-0-0-beta-51>.cj343x07-0-0-beta-51{z-index:2;position:sticky}.h10tskcx7-0-0-beta-51>.csofj7r7-0-0-beta-51{z-index:3}}@layer rdg.SortIcon{.a3ejtar7-0-0-beta-51{fill:currentColor}.a3ejtar7-0-0-beta-51>path{transition:d .1s}}@layer rdg.Defaults{.rnvodz57-0-0-beta-51 *,.rnvodz57-0-0-beta-51 *:before,.rnvodz57-0-0-beta-51 *:after{box-sizing:inherit}}@layer rdg.Root{.rnvodz57-0-0-beta-51{--rdg-color: #000;--rdg-border-color: #ddd;--rdg-summary-border-color: #aaa;--rdg-background-color: hsl(0deg 0% 100%);--rdg-header-background-color: hsl(0deg 0% 97.5%);--rdg-header-draggable-background-color: hsl(0deg 0% 90.5%);--rdg-row-hover-background-color: hsl(0deg 0% 96%);--rdg-row-selected-background-color: hsl(207deg 76% 92%);--rdg-row-selected-hover-background-color: hsl(207deg 76% 88%);--rdg-checkbox-focus-color: hsl(207deg 100% 69%);--rdg-selection-color: #66afe9;--rdg-font-size: 14px;--rdg-cell-frozen-box-shadow: 2px 0 5px -2px rgba(136, 136, 136, .3);display:grid;color-scheme:var(--rdg-color-scheme, light dark);accent-color:light-dark(hsl(207deg 100% 29%),hsl(207deg 100% 79%));contain:content;content-visibility:auto;block-size:350px;border:1px solid var(--rdg-border-color);box-sizing:border-box;overflow:auto;background-color:var(--rdg-background-color);color:var(--rdg-color);font-size:var(--rdg-font-size)}.rnvodz57-0-0-beta-51:dir(rtl){--rdg-cell-frozen-box-shadow: -2px 0 5px -2px rgba(136, 136, 136, .3)}.rnvodz57-0-0-beta-51:before{content:"";grid-column:1/-1;grid-row:1/-1}.rnvodz57-0-0-beta-51.rdg-dark{--rdg-color-scheme: dark;--rdg-color: #ddd;--rdg-border-color: #444;--rdg-summary-border-color: #555;--rdg-background-color: hsl(0deg 0% 13%);--rdg-header-background-color: hsl(0deg 0% 10.5%);--rdg-header-draggable-background-color: hsl(0deg 0% 17.5%);--rdg-row-hover-background-color: hsl(0deg 0% 9%);--rdg-row-selected-background-color: hsl(207deg 76% 42%);--rdg-row-selected-hover-background-color: hsl(207deg 76% 38%);--rdg-checkbox-focus-color: hsl(207deg 100% 89%)}.rnvodz57-0-0-beta-51.rdg-light{--rdg-color-scheme: light}@media (prefers-color-scheme: dark){.rnvodz57-0-0-beta-51:not(.rdg-light){--rdg-color: #ddd;--rdg-border-color: #444;--rdg-summary-border-color: #555;--rdg-background-color: hsl(0deg 0% 13%);--rdg-header-background-color: hsl(0deg 0% 10.5%);--rdg-header-draggable-background-color: hsl(0deg 0% 17.5%);--rdg-row-hover-background-color: hsl(0deg 0% 9%);--rdg-row-selected-background-color: hsl(207deg 76% 42%);--rdg-row-selected-hover-background-color: hsl(207deg 76% 38%);--rdg-checkbox-focus-color: hsl(207deg 100% 89%)}}.rnvodz57-0-0-beta-51>:nth-last-child(1 of.rdg-top-summary-row)>.cj343x07-0-0-beta-51{border-block-end:2px solid var(--rdg-summary-border-color)}.rnvodz57-0-0-beta-51>:nth-child(1 of.rdg-bottom-summary-row)>.cj343x07-0-0-beta-51{border-block-start:2px solid var(--rdg-summary-border-color)}}@layer rdg.Root{.vlqv91k7-0-0-beta-51{-webkit-user-select:none;user-select:none}.vlqv91k7-0-0-beta-51 .r1upfr807-0-0-beta-51{cursor:move}}@layer rdg.FocusSink{.f1lsfrzw7-0-0-beta-51{grid-column:1/-1;pointer-events:none;z-index:1}}@layer rdg.FocusSink{.f1cte0lg7-0-0-beta-51{z-index:3}}@layer rdg.SummaryCell{.s8wc6fl7-0-0-beta-51{inset-block-start:var(--rdg-summary-row-top);inset-block-end:var(--rdg-summary-row-bottom)}}@layer rdg.SummaryRow{.skuhp557-0-0-beta-51>.cj343x07-0-0-beta-51{position:sticky}}@layer rdg.SummaryRow{.tf8l5ub7-0-0-beta-51>.cj343x07-0-0-beta-51{z-index:2}.tf8l5ub7-0-0-beta-51>.csofj7r7-0-0-beta-51{z-index:3}}@layer rdg.GroupedRow{.g1yxluv37-0-0-beta-51:not([aria-selected=true]){background-color:var(--rdg-header-background-color)}.g1yxluv37-0-0-beta-51>.cj343x07-0-0-beta-51:not(:last-child,.csofj7r7-0-0-beta-51),.g1yxluv37-0-0-beta-51>:nth-last-child(n+2 of.csofj7r7-0-0-beta-51){border-inline-end:none}}@layer rdg.TextEditor{.t7vyx3i7-0-0-beta-51{-webkit-appearance:none;-moz-appearance:none;appearance:none;box-sizing:border-box;inline-size:100%;block-size:100%;padding-block:0;padding-inline:6px;border:2px solid #ccc;vertical-align:top;color:var(--rdg-color);background-color:var(--rdg-background-color);font-family:inherit;font-size:var(--rdg-font-size)}.t7vyx3i7-0-0-beta-51:focus{border-color:var(--rdg-selection-color);outline:none}.t7vyx3i7-0-0-beta-51::placeholder{color:#999;opacity:1}}.dgrid2_Table .rdg{font-family:monospace,Courier New,Courier}.dgrid2_Table .rdg-checkbox-label .rdg-checkbox{block-size:16px;inline-size:16px;border-width:2px;box-shadow:inset 0 0 0 3px var(--rdg-background-color)}')),document.head.appendChild(r2)}}catch(e){console.error("vite-plugin-css-injected-by-js",e)}})();var __defProp$1=Object.defineProperty,__defNormalProp$1=(obj,key,value)=>key in obj?__defProp$1(obj,key,{enumerable:!0,configurable:!0,writable:!0,value}):obj[key]=value,__publicField$1=(obj,key,value)=>__defNormalProp$1(obj,typeof key!="symbol"?key+"":key,value);function getDefaultExportFromCjs$1(x){return x&&x.__esModule&&Object.prototype.hasOwnProperty.call(x,"default")?x.default:x}var react={exports:{}},react_production={};/**
|
|
3
|
+
* @license React
|
|
4
|
+
* react.production.js
|
|
5
|
+
*
|
|
6
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
7
|
+
*
|
|
8
|
+
* This source code is licensed under the MIT license found in the
|
|
9
|
+
* LICENSE file in the root directory of this source tree.
|
|
10
|
+
*/var hasRequiredReact_production;function requireReact_production(){if(hasRequiredReact_production)return react_production;hasRequiredReact_production=1;var REACT_ELEMENT_TYPE=Symbol.for("react.transitional.element"),REACT_PORTAL_TYPE=Symbol.for("react.portal"),REACT_FRAGMENT_TYPE=Symbol.for("react.fragment"),REACT_STRICT_MODE_TYPE=Symbol.for("react.strict_mode"),REACT_PROFILER_TYPE=Symbol.for("react.profiler"),REACT_CONSUMER_TYPE=Symbol.for("react.consumer"),REACT_CONTEXT_TYPE=Symbol.for("react.context"),REACT_FORWARD_REF_TYPE=Symbol.for("react.forward_ref"),REACT_SUSPENSE_TYPE=Symbol.for("react.suspense"),REACT_MEMO_TYPE=Symbol.for("react.memo"),REACT_LAZY_TYPE=Symbol.for("react.lazy"),MAYBE_ITERATOR_SYMBOL=Symbol.iterator;function getIteratorFn(maybeIterable){return maybeIterable===null||typeof maybeIterable!="object"?null:(maybeIterable=MAYBE_ITERATOR_SYMBOL&&maybeIterable[MAYBE_ITERATOR_SYMBOL]||maybeIterable["@@iterator"],typeof maybeIterable=="function"?maybeIterable:null)}var ReactNoopUpdateQueue={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},assign=Object.assign,emptyObject={};function Component(props,context,updater){this.props=props,this.context=context,this.refs=emptyObject,this.updater=updater||ReactNoopUpdateQueue}Component.prototype.isReactComponent={},Component.prototype.setState=function(partialState,callback){if(typeof partialState!="object"&&typeof partialState!="function"&&partialState!=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,partialState,callback,"setState")},Component.prototype.forceUpdate=function(callback){this.updater.enqueueForceUpdate(this,callback,"forceUpdate")};function ComponentDummy(){}ComponentDummy.prototype=Component.prototype;function PureComponent(props,context,updater){this.props=props,this.context=context,this.refs=emptyObject,this.updater=updater||ReactNoopUpdateQueue}var pureComponentPrototype=PureComponent.prototype=new ComponentDummy;pureComponentPrototype.constructor=PureComponent,assign(pureComponentPrototype,Component.prototype),pureComponentPrototype.isPureReactComponent=!0;var isArrayImpl=Array.isArray,ReactSharedInternals={H:null,A:null,T:null,S:null,V:null},hasOwnProperty=Object.prototype.hasOwnProperty;function ReactElement(type,key,self2,source,owner,props){return self2=props.ref,{$$typeof:REACT_ELEMENT_TYPE,type,key,ref:self2!==void 0?self2:null,props}}function cloneAndReplaceKey(oldElement,newKey){return ReactElement(oldElement.type,newKey,void 0,void 0,void 0,oldElement.props)}function isValidElement(object){return typeof object=="object"&&object!==null&&object.$$typeof===REACT_ELEMENT_TYPE}function escape(key){var escaperLookup={"=":"=0",":":"=2"};return"$"+key.replace(/[=:]/g,function(match){return escaperLookup[match]})}var userProvidedKeyEscapeRegex=/\/+/g;function getElementKey(element,index){return typeof element=="object"&&element!==null&&element.key!=null?escape(""+element.key):index.toString(36)}function noop$1(){}function resolveThenable(thenable){switch(thenable.status){case"fulfilled":return thenable.value;case"rejected":throw thenable.reason;default:switch(typeof thenable.status=="string"?thenable.then(noop$1,noop$1):(thenable.status="pending",thenable.then(function(fulfilledValue){thenable.status==="pending"&&(thenable.status="fulfilled",thenable.value=fulfilledValue)},function(error){thenable.status==="pending"&&(thenable.status="rejected",thenable.reason=error)})),thenable.status){case"fulfilled":return thenable.value;case"rejected":throw thenable.reason}}throw thenable}function mapIntoArray(children,array,escapedPrefix,nameSoFar,callback){var type=typeof children;(type==="undefined"||type==="boolean")&&(children=null);var invokeCallback=!1;if(children===null)invokeCallback=!0;else switch(type){case"bigint":case"string":case"number":invokeCallback=!0;break;case"object":switch(children.$$typeof){case REACT_ELEMENT_TYPE:case REACT_PORTAL_TYPE:invokeCallback=!0;break;case REACT_LAZY_TYPE:return invokeCallback=children._init,mapIntoArray(invokeCallback(children._payload),array,escapedPrefix,nameSoFar,callback)}}if(invokeCallback)return callback=callback(children),invokeCallback=nameSoFar===""?"."+getElementKey(children,0):nameSoFar,isArrayImpl(callback)?(escapedPrefix="",invokeCallback!=null&&(escapedPrefix=invokeCallback.replace(userProvidedKeyEscapeRegex,"$&/")+"/"),mapIntoArray(callback,array,escapedPrefix,"",function(c2){return c2})):callback!=null&&(isValidElement(callback)&&(callback=cloneAndReplaceKey(callback,escapedPrefix+(callback.key==null||children&&children.key===callback.key?"":(""+callback.key).replace(userProvidedKeyEscapeRegex,"$&/")+"/")+invokeCallback)),array.push(callback)),1;invokeCallback=0;var nextNamePrefix=nameSoFar===""?".":nameSoFar+":";if(isArrayImpl(children))for(var i=0;i<children.length;i++)nameSoFar=children[i],type=nextNamePrefix+getElementKey(nameSoFar,i),invokeCallback+=mapIntoArray(nameSoFar,array,escapedPrefix,type,callback);else if(i=getIteratorFn(children),typeof i=="function")for(children=i.call(children),i=0;!(nameSoFar=children.next()).done;)nameSoFar=nameSoFar.value,type=nextNamePrefix+getElementKey(nameSoFar,i++),invokeCallback+=mapIntoArray(nameSoFar,array,escapedPrefix,type,callback);else if(type==="object"){if(typeof children.then=="function")return mapIntoArray(resolveThenable(children),array,escapedPrefix,nameSoFar,callback);throw array=String(children),Error("Objects are not valid as a React child (found: "+(array==="[object Object]"?"object with keys {"+Object.keys(children).join(", ")+"}":array)+"). If you meant to render a collection of children, use an array instead.")}return invokeCallback}function mapChildren(children,func,context){if(children==null)return children;var result=[],count=0;return mapIntoArray(children,result,"","",function(child){return func.call(context,child,count++)}),result}function lazyInitializer(payload){if(payload._status===-1){var ctor=payload._result;ctor=ctor(),ctor.then(function(moduleObject){(payload._status===0||payload._status===-1)&&(payload._status=1,payload._result=moduleObject)},function(error){(payload._status===0||payload._status===-1)&&(payload._status=2,payload._result=error)}),payload._status===-1&&(payload._status=0,payload._result=ctor)}if(payload._status===1)return payload._result.default;throw payload._result}var reportGlobalError=typeof reportError=="function"?reportError:function(error){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var event=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof error=="object"&&error!==null&&typeof error.message=="string"?String(error.message):String(error),error});if(!window.dispatchEvent(event))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",error);return}console.error(error)};function noop(){}return react_production.Children={map:mapChildren,forEach:function(children,forEachFunc,forEachContext){mapChildren(children,function(){forEachFunc.apply(this,arguments)},forEachContext)},count:function(children){var n=0;return mapChildren(children,function(){n++}),n},toArray:function(children){return mapChildren(children,function(child){return child})||[]},only:function(children){if(!isValidElement(children))throw Error("React.Children.only expected to receive a single React element child.");return children}},react_production.Component=Component,react_production.Fragment=REACT_FRAGMENT_TYPE,react_production.Profiler=REACT_PROFILER_TYPE,react_production.PureComponent=PureComponent,react_production.StrictMode=REACT_STRICT_MODE_TYPE,react_production.Suspense=REACT_SUSPENSE_TYPE,react_production.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=ReactSharedInternals,react_production.__COMPILER_RUNTIME={__proto__:null,c:function(size){return ReactSharedInternals.H.useMemoCache(size)}},react_production.cache=function(fn){return function(){return fn.apply(null,arguments)}},react_production.cloneElement=function(element,config,children){if(element==null)throw Error("The argument must be a React element, but you passed "+element+".");var props=assign({},element.props),key=element.key,owner=void 0;if(config!=null)for(propName in config.ref!==void 0&&(owner=void 0),config.key!==void 0&&(key=""+config.key),config)!hasOwnProperty.call(config,propName)||propName==="key"||propName==="__self"||propName==="__source"||propName==="ref"&&config.ref===void 0||(props[propName]=config[propName]);var propName=arguments.length-2;if(propName===1)props.children=children;else if(1<propName){for(var childArray=Array(propName),i=0;i<propName;i++)childArray[i]=arguments[i+2];props.children=childArray}return ReactElement(element.type,key,void 0,void 0,owner,props)},react_production.createContext=function(defaultValue){return defaultValue={$$typeof:REACT_CONTEXT_TYPE,_currentValue:defaultValue,_currentValue2:defaultValue,_threadCount:0,Provider:null,Consumer:null},defaultValue.Provider=defaultValue,defaultValue.Consumer={$$typeof:REACT_CONSUMER_TYPE,_context:defaultValue},defaultValue},react_production.createElement=function(type,config,children){var propName,props={},key=null;if(config!=null)for(propName in config.key!==void 0&&(key=""+config.key),config)hasOwnProperty.call(config,propName)&&propName!=="key"&&propName!=="__self"&&propName!=="__source"&&(props[propName]=config[propName]);var childrenLength=arguments.length-2;if(childrenLength===1)props.children=children;else if(1<childrenLength){for(var childArray=Array(childrenLength),i=0;i<childrenLength;i++)childArray[i]=arguments[i+2];props.children=childArray}if(type&&type.defaultProps)for(propName in childrenLength=type.defaultProps,childrenLength)props[propName]===void 0&&(props[propName]=childrenLength[propName]);return ReactElement(type,key,void 0,void 0,null,props)},react_production.createRef=function(){return{current:null}},react_production.forwardRef=function(render){return{$$typeof:REACT_FORWARD_REF_TYPE,render}},react_production.isValidElement=isValidElement,react_production.lazy=function(ctor){return{$$typeof:REACT_LAZY_TYPE,_payload:{_status:-1,_result:ctor},_init:lazyInitializer}},react_production.memo=function(type,compare){return{$$typeof:REACT_MEMO_TYPE,type,compare:compare===void 0?null:compare}},react_production.startTransition=function(scope){var prevTransition=ReactSharedInternals.T,currentTransition={};ReactSharedInternals.T=currentTransition;try{var returnValue=scope(),onStartTransitionFinish=ReactSharedInternals.S;onStartTransitionFinish!==null&&onStartTransitionFinish(currentTransition,returnValue),typeof returnValue=="object"&&returnValue!==null&&typeof returnValue.then=="function"&&returnValue.then(noop,reportGlobalError)}catch(error){reportGlobalError(error)}finally{ReactSharedInternals.T=prevTransition}},react_production.unstable_useCacheRefresh=function(){return ReactSharedInternals.H.useCacheRefresh()},react_production.use=function(usable){return ReactSharedInternals.H.use(usable)},react_production.useActionState=function(action,initialState,permalink){return ReactSharedInternals.H.useActionState(action,initialState,permalink)},react_production.useCallback=function(callback,deps){return ReactSharedInternals.H.useCallback(callback,deps)},react_production.useContext=function(Context){return ReactSharedInternals.H.useContext(Context)},react_production.useDebugValue=function(){},react_production.useDeferredValue=function(value,initialValue){return ReactSharedInternals.H.useDeferredValue(value,initialValue)},react_production.useEffect=function(create2,createDeps,update){var dispatcher=ReactSharedInternals.H;if(typeof update=="function")throw Error("useEffect CRUD overload is not enabled in this build of React.");return dispatcher.useEffect(create2,createDeps)},react_production.useId=function(){return ReactSharedInternals.H.useId()},react_production.useImperativeHandle=function(ref,create2,deps){return ReactSharedInternals.H.useImperativeHandle(ref,create2,deps)},react_production.useInsertionEffect=function(create2,deps){return ReactSharedInternals.H.useInsertionEffect(create2,deps)},react_production.useLayoutEffect=function(create2,deps){return ReactSharedInternals.H.useLayoutEffect(create2,deps)},react_production.useMemo=function(create2,deps){return ReactSharedInternals.H.useMemo(create2,deps)},react_production.useOptimistic=function(passthrough,reducer){return ReactSharedInternals.H.useOptimistic(passthrough,reducer)},react_production.useReducer=function(reducer,initialArg,init){return ReactSharedInternals.H.useReducer(reducer,initialArg,init)},react_production.useRef=function(initialValue){return ReactSharedInternals.H.useRef(initialValue)},react_production.useState=function(initialState){return ReactSharedInternals.H.useState(initialState)},react_production.useSyncExternalStore=function(subscribe,getSnapshot,getServerSnapshot){return ReactSharedInternals.H.useSyncExternalStore(subscribe,getSnapshot,getServerSnapshot)},react_production.useTransition=function(){return ReactSharedInternals.H.useTransition()},react_production.version="19.1.0",react_production}var react_development={exports:{}};/**
|
|
11
|
+
* @license React
|
|
12
|
+
* react.development.js
|
|
13
|
+
*
|
|
14
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
15
|
+
*
|
|
16
|
+
* This source code is licensed under the MIT license found in the
|
|
17
|
+
* LICENSE file in the root directory of this source tree.
|
|
18
|
+
*/react_development.exports;var hasRequiredReact_development;function requireReact_development(){return hasRequiredReact_development||(hasRequiredReact_development=1,function(module2,exports3){process.env.NODE_ENV!=="production"&&function(){function defineDeprecationWarning(methodName,info){Object.defineProperty(Component.prototype,methodName,{get:function(){console.warn("%s(...) is deprecated in plain JavaScript React classes. %s",info[0],info[1])}})}function getIteratorFn(maybeIterable){return maybeIterable===null||typeof maybeIterable!="object"?null:(maybeIterable=MAYBE_ITERATOR_SYMBOL&&maybeIterable[MAYBE_ITERATOR_SYMBOL]||maybeIterable["@@iterator"],typeof maybeIterable=="function"?maybeIterable:null)}function warnNoop(publicInstance,callerName){publicInstance=(publicInstance=publicInstance.constructor)&&(publicInstance.displayName||publicInstance.name)||"ReactClass";var warningKey=publicInstance+"."+callerName;didWarnStateUpdateForUnmountedComponent[warningKey]||(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.",callerName,publicInstance),didWarnStateUpdateForUnmountedComponent[warningKey]=!0)}function Component(props,context,updater){this.props=props,this.context=context,this.refs=emptyObject,this.updater=updater||ReactNoopUpdateQueue}function ComponentDummy(){}function PureComponent(props,context,updater){this.props=props,this.context=context,this.refs=emptyObject,this.updater=updater||ReactNoopUpdateQueue}function testStringCoercion(value){return""+value}function checkKeyStringCoercion(value){try{testStringCoercion(value);var JSCompiler_inline_result=!1}catch{JSCompiler_inline_result=!0}if(JSCompiler_inline_result){JSCompiler_inline_result=console;var JSCompiler_temp_const=JSCompiler_inline_result.error,JSCompiler_inline_result$jscomp$0=typeof Symbol=="function"&&Symbol.toStringTag&&value[Symbol.toStringTag]||value.constructor.name||"Object";return JSCompiler_temp_const.call(JSCompiler_inline_result,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",JSCompiler_inline_result$jscomp$0),testStringCoercion(value)}}function getComponentNameFromType(type){if(type==null)return null;if(typeof type=="function")return type.$$typeof===REACT_CLIENT_REFERENCE?null:type.displayName||type.name||null;if(typeof type=="string")return type;switch(type){case REACT_FRAGMENT_TYPE:return"Fragment";case REACT_PROFILER_TYPE:return"Profiler";case REACT_STRICT_MODE_TYPE:return"StrictMode";case REACT_SUSPENSE_TYPE:return"Suspense";case REACT_SUSPENSE_LIST_TYPE:return"SuspenseList";case REACT_ACTIVITY_TYPE:return"Activity"}if(typeof type=="object")switch(typeof type.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),type.$$typeof){case REACT_PORTAL_TYPE:return"Portal";case REACT_CONTEXT_TYPE:return(type.displayName||"Context")+".Provider";case REACT_CONSUMER_TYPE:return(type._context.displayName||"Context")+".Consumer";case REACT_FORWARD_REF_TYPE:var innerType=type.render;return type=type.displayName,type||(type=innerType.displayName||innerType.name||"",type=type!==""?"ForwardRef("+type+")":"ForwardRef"),type;case REACT_MEMO_TYPE:return innerType=type.displayName||null,innerType!==null?innerType:getComponentNameFromType(type.type)||"Memo";case REACT_LAZY_TYPE:innerType=type._payload,type=type._init;try{return getComponentNameFromType(type(innerType))}catch{}}return null}function getTaskName(type){if(type===REACT_FRAGMENT_TYPE)return"<>";if(typeof type=="object"&&type!==null&&type.$$typeof===REACT_LAZY_TYPE)return"<...>";try{var name=getComponentNameFromType(type);return name?"<"+name+">":"<...>"}catch{return"<...>"}}function getOwner(){var dispatcher=ReactSharedInternals.A;return dispatcher===null?null:dispatcher.getOwner()}function UnknownOwner(){return Error("react-stack-top-frame")}function hasValidKey(config){if(hasOwnProperty.call(config,"key")){var getter=Object.getOwnPropertyDescriptor(config,"key").get;if(getter&&getter.isReactWarning)return!1}return config.key!==void 0}function defineKeyPropWarningGetter(props,displayName){function warnAboutAccessingKey(){specialPropKeyWarningShown||(specialPropKeyWarningShown=!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)",displayName))}warnAboutAccessingKey.isReactWarning=!0,Object.defineProperty(props,"key",{get:warnAboutAccessingKey,configurable:!0})}function elementRefGetterWithDeprecationWarning(){var componentName=getComponentNameFromType(this.type);return didWarnAboutElementRef[componentName]||(didWarnAboutElementRef[componentName]=!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.")),componentName=this.props.ref,componentName!==void 0?componentName:null}function ReactElement(type,key,self2,source,owner,props,debugStack,debugTask){return self2=props.ref,type={$$typeof:REACT_ELEMENT_TYPE,type,key,props,_owner:owner},(self2!==void 0?self2:null)!==null?Object.defineProperty(type,"ref",{enumerable:!1,get:elementRefGetterWithDeprecationWarning}):Object.defineProperty(type,"ref",{enumerable:!1,value:null}),type._store={},Object.defineProperty(type._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(type,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(type,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:debugStack}),Object.defineProperty(type,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:debugTask}),Object.freeze&&(Object.freeze(type.props),Object.freeze(type)),type}function cloneAndReplaceKey(oldElement,newKey){return newKey=ReactElement(oldElement.type,newKey,void 0,void 0,oldElement._owner,oldElement.props,oldElement._debugStack,oldElement._debugTask),oldElement._store&&(newKey._store.validated=oldElement._store.validated),newKey}function isValidElement(object){return typeof object=="object"&&object!==null&&object.$$typeof===REACT_ELEMENT_TYPE}function escape(key){var escaperLookup={"=":"=0",":":"=2"};return"$"+key.replace(/[=:]/g,function(match){return escaperLookup[match]})}function getElementKey(element,index){return typeof element=="object"&&element!==null&&element.key!=null?(checkKeyStringCoercion(element.key),escape(""+element.key)):index.toString(36)}function noop$1(){}function resolveThenable(thenable){switch(thenable.status){case"fulfilled":return thenable.value;case"rejected":throw thenable.reason;default:switch(typeof thenable.status=="string"?thenable.then(noop$1,noop$1):(thenable.status="pending",thenable.then(function(fulfilledValue){thenable.status==="pending"&&(thenable.status="fulfilled",thenable.value=fulfilledValue)},function(error){thenable.status==="pending"&&(thenable.status="rejected",thenable.reason=error)})),thenable.status){case"fulfilled":return thenable.value;case"rejected":throw thenable.reason}}throw thenable}function mapIntoArray(children,array,escapedPrefix,nameSoFar,callback){var type=typeof children;(type==="undefined"||type==="boolean")&&(children=null);var invokeCallback=!1;if(children===null)invokeCallback=!0;else switch(type){case"bigint":case"string":case"number":invokeCallback=!0;break;case"object":switch(children.$$typeof){case REACT_ELEMENT_TYPE:case REACT_PORTAL_TYPE:invokeCallback=!0;break;case REACT_LAZY_TYPE:return invokeCallback=children._init,mapIntoArray(invokeCallback(children._payload),array,escapedPrefix,nameSoFar,callback)}}if(invokeCallback){invokeCallback=children,callback=callback(invokeCallback);var childKey=nameSoFar===""?"."+getElementKey(invokeCallback,0):nameSoFar;return isArrayImpl(callback)?(escapedPrefix="",childKey!=null&&(escapedPrefix=childKey.replace(userProvidedKeyEscapeRegex,"$&/")+"/"),mapIntoArray(callback,array,escapedPrefix,"",function(c2){return c2})):callback!=null&&(isValidElement(callback)&&(callback.key!=null&&(invokeCallback&&invokeCallback.key===callback.key||checkKeyStringCoercion(callback.key)),escapedPrefix=cloneAndReplaceKey(callback,escapedPrefix+(callback.key==null||invokeCallback&&invokeCallback.key===callback.key?"":(""+callback.key).replace(userProvidedKeyEscapeRegex,"$&/")+"/")+childKey),nameSoFar!==""&&invokeCallback!=null&&isValidElement(invokeCallback)&&invokeCallback.key==null&&invokeCallback._store&&!invokeCallback._store.validated&&(escapedPrefix._store.validated=2),callback=escapedPrefix),array.push(callback)),1}if(invokeCallback=0,childKey=nameSoFar===""?".":nameSoFar+":",isArrayImpl(children))for(var i=0;i<children.length;i++)nameSoFar=children[i],type=childKey+getElementKey(nameSoFar,i),invokeCallback+=mapIntoArray(nameSoFar,array,escapedPrefix,type,callback);else if(i=getIteratorFn(children),typeof i=="function")for(i===children.entries&&(didWarnAboutMaps||console.warn("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),didWarnAboutMaps=!0),children=i.call(children),i=0;!(nameSoFar=children.next()).done;)nameSoFar=nameSoFar.value,type=childKey+getElementKey(nameSoFar,i++),invokeCallback+=mapIntoArray(nameSoFar,array,escapedPrefix,type,callback);else if(type==="object"){if(typeof children.then=="function")return mapIntoArray(resolveThenable(children),array,escapedPrefix,nameSoFar,callback);throw array=String(children),Error("Objects are not valid as a React child (found: "+(array==="[object Object]"?"object with keys {"+Object.keys(children).join(", ")+"}":array)+"). If you meant to render a collection of children, use an array instead.")}return invokeCallback}function mapChildren(children,func,context){if(children==null)return children;var result=[],count=0;return mapIntoArray(children,result,"","",function(child){return func.call(context,child,count++)}),result}function lazyInitializer(payload){if(payload._status===-1){var ctor=payload._result;ctor=ctor(),ctor.then(function(moduleObject){(payload._status===0||payload._status===-1)&&(payload._status=1,payload._result=moduleObject)},function(error){(payload._status===0||payload._status===-1)&&(payload._status=2,payload._result=error)}),payload._status===-1&&(payload._status=0,payload._result=ctor)}if(payload._status===1)return ctor=payload._result,ctor===void 0&&console.error(`lazy: Expected the result of a dynamic import() call. Instead received: %s
|
|
19
|
+
|
|
20
|
+
Your code should look like:
|
|
21
|
+
const MyComponent = lazy(() => import('./MyComponent'))
|
|
22
|
+
|
|
23
|
+
Did you accidentally put curly braces around the import?`,ctor),"default"in ctor||console.error(`lazy: Expected the result of a dynamic import() call. Instead received: %s
|
|
24
|
+
|
|
25
|
+
Your code should look like:
|
|
26
|
+
const MyComponent = lazy(() => import('./MyComponent'))`,ctor),ctor.default;throw payload._result}function resolveDispatcher(){var dispatcher=ReactSharedInternals.H;return dispatcher===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:
|
|
27
|
+
1. You might have mismatching versions of React and the renderer (such as React DOM)
|
|
28
|
+
2. You might be breaking the Rules of Hooks
|
|
29
|
+
3. You might have more than one copy of React in the same app
|
|
30
|
+
See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`),dispatcher}function noop(){}function enqueueTask(task){if(enqueueTaskImpl===null)try{var requireString=("require"+Math.random()).slice(0,7);enqueueTaskImpl=(module2&&module2[requireString]).call(module2,"timers").setImmediate}catch{enqueueTaskImpl=function(callback){didWarnAboutMessageChannel===!1&&(didWarnAboutMessageChannel=!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 channel=new MessageChannel;channel.port1.onmessage=callback,channel.port2.postMessage(void 0)}}return enqueueTaskImpl(task)}function aggregateErrors(errors){return 1<errors.length&&typeof AggregateError=="function"?new AggregateError(errors):errors[0]}function popActScope(prevActQueue,prevActScopeDepth){prevActScopeDepth!==actScopeDepth-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. "),actScopeDepth=prevActScopeDepth}function recursivelyFlushAsyncActWork(returnValue,resolve,reject){var queue=ReactSharedInternals.actQueue;if(queue!==null)if(queue.length!==0)try{flushActQueue(queue),enqueueTask(function(){return recursivelyFlushAsyncActWork(returnValue,resolve,reject)});return}catch(error){ReactSharedInternals.thrownErrors.push(error)}else ReactSharedInternals.actQueue=null;0<ReactSharedInternals.thrownErrors.length?(queue=aggregateErrors(ReactSharedInternals.thrownErrors),ReactSharedInternals.thrownErrors.length=0,reject(queue)):resolve(returnValue)}function flushActQueue(queue){if(!isFlushing){isFlushing=!0;var i=0;try{for(;i<queue.length;i++){var callback=queue[i];do{ReactSharedInternals.didUsePromise=!1;var continuation=callback(!1);if(continuation!==null){if(ReactSharedInternals.didUsePromise){queue[i]=callback,queue.splice(0,i);return}callback=continuation}else break}while(!0)}queue.length=0}catch(error){queue.splice(0,i+1),ReactSharedInternals.thrownErrors.push(error)}finally{isFlushing=!1}}}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var REACT_ELEMENT_TYPE=Symbol.for("react.transitional.element"),REACT_PORTAL_TYPE=Symbol.for("react.portal"),REACT_FRAGMENT_TYPE=Symbol.for("react.fragment"),REACT_STRICT_MODE_TYPE=Symbol.for("react.strict_mode"),REACT_PROFILER_TYPE=Symbol.for("react.profiler"),REACT_CONSUMER_TYPE=Symbol.for("react.consumer"),REACT_CONTEXT_TYPE=Symbol.for("react.context"),REACT_FORWARD_REF_TYPE=Symbol.for("react.forward_ref"),REACT_SUSPENSE_TYPE=Symbol.for("react.suspense"),REACT_SUSPENSE_LIST_TYPE=Symbol.for("react.suspense_list"),REACT_MEMO_TYPE=Symbol.for("react.memo"),REACT_LAZY_TYPE=Symbol.for("react.lazy"),REACT_ACTIVITY_TYPE=Symbol.for("react.activity"),MAYBE_ITERATOR_SYMBOL=Symbol.iterator,didWarnStateUpdateForUnmountedComponent={},ReactNoopUpdateQueue={isMounted:function(){return!1},enqueueForceUpdate:function(publicInstance){warnNoop(publicInstance,"forceUpdate")},enqueueReplaceState:function(publicInstance){warnNoop(publicInstance,"replaceState")},enqueueSetState:function(publicInstance){warnNoop(publicInstance,"setState")}},assign=Object.assign,emptyObject={};Object.freeze(emptyObject),Component.prototype.isReactComponent={},Component.prototype.setState=function(partialState,callback){if(typeof partialState!="object"&&typeof partialState!="function"&&partialState!=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,partialState,callback,"setState")},Component.prototype.forceUpdate=function(callback){this.updater.enqueueForceUpdate(this,callback,"forceUpdate")};var deprecatedAPIs={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)."]},fnName;for(fnName in deprecatedAPIs)deprecatedAPIs.hasOwnProperty(fnName)&&defineDeprecationWarning(fnName,deprecatedAPIs[fnName]);ComponentDummy.prototype=Component.prototype,deprecatedAPIs=PureComponent.prototype=new ComponentDummy,deprecatedAPIs.constructor=PureComponent,assign(deprecatedAPIs,Component.prototype),deprecatedAPIs.isPureReactComponent=!0;var isArrayImpl=Array.isArray,REACT_CLIENT_REFERENCE=Symbol.for("react.client.reference"),ReactSharedInternals={H:null,A:null,T:null,S:null,V:null,actQueue:null,isBatchingLegacy:!1,didScheduleLegacyUpdate:!1,didUsePromise:!1,thrownErrors:[],getCurrentStack:null,recentlyCreatedOwnerStacks:0},hasOwnProperty=Object.prototype.hasOwnProperty,createTask=console.createTask?console.createTask:function(){return null};deprecatedAPIs={"react-stack-bottom-frame":function(callStackForError){return callStackForError()}};var specialPropKeyWarningShown,didWarnAboutOldJSXRuntime,didWarnAboutElementRef={},unknownOwnerDebugStack=deprecatedAPIs["react-stack-bottom-frame"].bind(deprecatedAPIs,UnknownOwner)(),unknownOwnerDebugTask=createTask(getTaskName(UnknownOwner)),didWarnAboutMaps=!1,userProvidedKeyEscapeRegex=/\/+/g,reportGlobalError=typeof reportError=="function"?reportError:function(error){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var event=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof error=="object"&&error!==null&&typeof error.message=="string"?String(error.message):String(error),error});if(!window.dispatchEvent(event))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",error);return}console.error(error)},didWarnAboutMessageChannel=!1,enqueueTaskImpl=null,actScopeDepth=0,didWarnNoAwaitAct=!1,isFlushing=!1,queueSeveralMicrotasks=typeof queueMicrotask=="function"?function(callback){queueMicrotask(function(){return queueMicrotask(callback)})}:enqueueTask;deprecatedAPIs=Object.freeze({__proto__:null,c:function(size){return resolveDispatcher().useMemoCache(size)}}),exports3.Children={map:mapChildren,forEach:function(children,forEachFunc,forEachContext){mapChildren(children,function(){forEachFunc.apply(this,arguments)},forEachContext)},count:function(children){var n=0;return mapChildren(children,function(){n++}),n},toArray:function(children){return mapChildren(children,function(child){return child})||[]},only:function(children){if(!isValidElement(children))throw Error("React.Children.only expected to receive a single React element child.");return children}},exports3.Component=Component,exports3.Fragment=REACT_FRAGMENT_TYPE,exports3.Profiler=REACT_PROFILER_TYPE,exports3.PureComponent=PureComponent,exports3.StrictMode=REACT_STRICT_MODE_TYPE,exports3.Suspense=REACT_SUSPENSE_TYPE,exports3.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=ReactSharedInternals,exports3.__COMPILER_RUNTIME=deprecatedAPIs,exports3.act=function(callback){var prevActQueue=ReactSharedInternals.actQueue,prevActScopeDepth=actScopeDepth;actScopeDepth++;var queue=ReactSharedInternals.actQueue=prevActQueue!==null?prevActQueue:[],didAwaitActCall=!1;try{var result=callback()}catch(error){ReactSharedInternals.thrownErrors.push(error)}if(0<ReactSharedInternals.thrownErrors.length)throw popActScope(prevActQueue,prevActScopeDepth),callback=aggregateErrors(ReactSharedInternals.thrownErrors),ReactSharedInternals.thrownErrors.length=0,callback;if(result!==null&&typeof result=="object"&&typeof result.then=="function"){var thenable=result;return queueSeveralMicrotasks(function(){didAwaitActCall||didWarnNoAwaitAct||(didWarnNoAwaitAct=!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(resolve,reject){didAwaitActCall=!0,thenable.then(function(returnValue){if(popActScope(prevActQueue,prevActScopeDepth),prevActScopeDepth===0){try{flushActQueue(queue),enqueueTask(function(){return recursivelyFlushAsyncActWork(returnValue,resolve,reject)})}catch(error$0){ReactSharedInternals.thrownErrors.push(error$0)}if(0<ReactSharedInternals.thrownErrors.length){var _thrownError=aggregateErrors(ReactSharedInternals.thrownErrors);ReactSharedInternals.thrownErrors.length=0,reject(_thrownError)}}else resolve(returnValue)},function(error){popActScope(prevActQueue,prevActScopeDepth),0<ReactSharedInternals.thrownErrors.length&&(error=aggregateErrors(ReactSharedInternals.thrownErrors),ReactSharedInternals.thrownErrors.length=0),reject(error)})}}}var returnValue$jscomp$0=result;if(popActScope(prevActQueue,prevActScopeDepth),prevActScopeDepth===0&&(flushActQueue(queue),queue.length!==0&&queueSeveralMicrotasks(function(){didAwaitActCall||didWarnNoAwaitAct||(didWarnNoAwaitAct=!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(() => ...)"))}),ReactSharedInternals.actQueue=null),0<ReactSharedInternals.thrownErrors.length)throw callback=aggregateErrors(ReactSharedInternals.thrownErrors),ReactSharedInternals.thrownErrors.length=0,callback;return{then:function(resolve,reject){didAwaitActCall=!0,prevActScopeDepth===0?(ReactSharedInternals.actQueue=queue,enqueueTask(function(){return recursivelyFlushAsyncActWork(returnValue$jscomp$0,resolve,reject)})):resolve(returnValue$jscomp$0)}}},exports3.cache=function(fn){return function(){return fn.apply(null,arguments)}},exports3.captureOwnerStack=function(){var getCurrentStack=ReactSharedInternals.getCurrentStack;return getCurrentStack===null?null:getCurrentStack()},exports3.cloneElement=function(element,config,children){if(element==null)throw Error("The argument must be a React element, but you passed "+element+".");var props=assign({},element.props),key=element.key,owner=element._owner;if(config!=null){var JSCompiler_inline_result;a:{if(hasOwnProperty.call(config,"ref")&&(JSCompiler_inline_result=Object.getOwnPropertyDescriptor(config,"ref").get)&&JSCompiler_inline_result.isReactWarning){JSCompiler_inline_result=!1;break a}JSCompiler_inline_result=config.ref!==void 0}JSCompiler_inline_result&&(owner=getOwner()),hasValidKey(config)&&(checkKeyStringCoercion(config.key),key=""+config.key);for(propName in config)!hasOwnProperty.call(config,propName)||propName==="key"||propName==="__self"||propName==="__source"||propName==="ref"&&config.ref===void 0||(props[propName]=config[propName])}var propName=arguments.length-2;if(propName===1)props.children=children;else if(1<propName){JSCompiler_inline_result=Array(propName);for(var i=0;i<propName;i++)JSCompiler_inline_result[i]=arguments[i+2];props.children=JSCompiler_inline_result}for(props=ReactElement(element.type,key,void 0,void 0,owner,props,element._debugStack,element._debugTask),key=2;key<arguments.length;key++)owner=arguments[key],isValidElement(owner)&&owner._store&&(owner._store.validated=1);return props},exports3.createContext=function(defaultValue){return defaultValue={$$typeof:REACT_CONTEXT_TYPE,_currentValue:defaultValue,_currentValue2:defaultValue,_threadCount:0,Provider:null,Consumer:null},defaultValue.Provider=defaultValue,defaultValue.Consumer={$$typeof:REACT_CONSUMER_TYPE,_context:defaultValue},defaultValue._currentRenderer=null,defaultValue._currentRenderer2=null,defaultValue},exports3.createElement=function(type,config,children){for(var i=2;i<arguments.length;i++){var node=arguments[i];isValidElement(node)&&node._store&&(node._store.validated=1)}if(i={},node=null,config!=null)for(propName in didWarnAboutOldJSXRuntime||!("__self"in config)||"key"in config||(didWarnAboutOldJSXRuntime=!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")),hasValidKey(config)&&(checkKeyStringCoercion(config.key),node=""+config.key),config)hasOwnProperty.call(config,propName)&&propName!=="key"&&propName!=="__self"&&propName!=="__source"&&(i[propName]=config[propName]);var childrenLength=arguments.length-2;if(childrenLength===1)i.children=children;else if(1<childrenLength){for(var childArray=Array(childrenLength),_i=0;_i<childrenLength;_i++)childArray[_i]=arguments[_i+2];Object.freeze&&Object.freeze(childArray),i.children=childArray}if(type&&type.defaultProps)for(propName in childrenLength=type.defaultProps,childrenLength)i[propName]===void 0&&(i[propName]=childrenLength[propName]);node&&defineKeyPropWarningGetter(i,typeof type=="function"?type.displayName||type.name||"Unknown":type);var propName=1e4>ReactSharedInternals.recentlyCreatedOwnerStacks++;return ReactElement(type,node,void 0,void 0,getOwner(),i,propName?Error("react-stack-top-frame"):unknownOwnerDebugStack,propName?createTask(getTaskName(type)):unknownOwnerDebugTask)},exports3.createRef=function(){var refObject={current:null};return Object.seal(refObject),refObject},exports3.forwardRef=function(render){render!=null&&render.$$typeof===REACT_MEMO_TYPE?console.error("forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...))."):typeof render!="function"?console.error("forwardRef requires a render function but was given %s.",render===null?"null":typeof render):render.length!==0&&render.length!==2&&console.error("forwardRef render functions accept exactly two parameters: props and ref. %s",render.length===1?"Did you forget to use the ref parameter?":"Any additional parameter will be undefined."),render!=null&&render.defaultProps!=null&&console.error("forwardRef render functions do not support defaultProps. Did you accidentally pass a React component?");var elementType={$$typeof:REACT_FORWARD_REF_TYPE,render},ownName;return Object.defineProperty(elementType,"displayName",{enumerable:!1,configurable:!0,get:function(){return ownName},set:function(name){ownName=name,render.name||render.displayName||(Object.defineProperty(render,"name",{value:name}),render.displayName=name)}}),elementType},exports3.isValidElement=isValidElement,exports3.lazy=function(ctor){return{$$typeof:REACT_LAZY_TYPE,_payload:{_status:-1,_result:ctor},_init:lazyInitializer}},exports3.memo=function(type,compare){type==null&&console.error("memo: The first argument must be a component. Instead received: %s",type===null?"null":typeof type),compare={$$typeof:REACT_MEMO_TYPE,type,compare:compare===void 0?null:compare};var ownName;return Object.defineProperty(compare,"displayName",{enumerable:!1,configurable:!0,get:function(){return ownName},set:function(name){ownName=name,type.name||type.displayName||(Object.defineProperty(type,"name",{value:name}),type.displayName=name)}}),compare},exports3.startTransition=function(scope){var prevTransition=ReactSharedInternals.T,currentTransition={};ReactSharedInternals.T=currentTransition,currentTransition._updatedFibers=new Set;try{var returnValue=scope(),onStartTransitionFinish=ReactSharedInternals.S;onStartTransitionFinish!==null&&onStartTransitionFinish(currentTransition,returnValue),typeof returnValue=="object"&&returnValue!==null&&typeof returnValue.then=="function"&&returnValue.then(noop,reportGlobalError)}catch(error){reportGlobalError(error)}finally{prevTransition===null&¤tTransition._updatedFibers&&(scope=currentTransition._updatedFibers.size,currentTransition._updatedFibers.clear(),10<scope&&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.")),ReactSharedInternals.T=prevTransition}},exports3.unstable_useCacheRefresh=function(){return resolveDispatcher().useCacheRefresh()},exports3.use=function(usable){return resolveDispatcher().use(usable)},exports3.useActionState=function(action,initialState,permalink){return resolveDispatcher().useActionState(action,initialState,permalink)},exports3.useCallback=function(callback,deps){return resolveDispatcher().useCallback(callback,deps)},exports3.useContext=function(Context){var dispatcher=resolveDispatcher();return Context.$$typeof===REACT_CONSUMER_TYPE&&console.error("Calling useContext(Context.Consumer) is not supported and will cause bugs. Did you mean to call useContext(Context) instead?"),dispatcher.useContext(Context)},exports3.useDebugValue=function(value,formatterFn){return resolveDispatcher().useDebugValue(value,formatterFn)},exports3.useDeferredValue=function(value,initialValue){return resolveDispatcher().useDeferredValue(value,initialValue)},exports3.useEffect=function(create2,createDeps,update){create2==null&&console.warn("React Hook useEffect requires an effect callback. Did you forget to pass a callback to the hook?");var dispatcher=resolveDispatcher();if(typeof update=="function")throw Error("useEffect CRUD overload is not enabled in this build of React.");return dispatcher.useEffect(create2,createDeps)},exports3.useId=function(){return resolveDispatcher().useId()},exports3.useImperativeHandle=function(ref,create2,deps){return resolveDispatcher().useImperativeHandle(ref,create2,deps)},exports3.useInsertionEffect=function(create2,deps){return create2==null&&console.warn("React Hook useInsertionEffect requires an effect callback. Did you forget to pass a callback to the hook?"),resolveDispatcher().useInsertionEffect(create2,deps)},exports3.useLayoutEffect=function(create2,deps){return create2==null&&console.warn("React Hook useLayoutEffect requires an effect callback. Did you forget to pass a callback to the hook?"),resolveDispatcher().useLayoutEffect(create2,deps)},exports3.useMemo=function(create2,deps){return resolveDispatcher().useMemo(create2,deps)},exports3.useOptimistic=function(passthrough,reducer){return resolveDispatcher().useOptimistic(passthrough,reducer)},exports3.useReducer=function(reducer,initialArg,init){return resolveDispatcher().useReducer(reducer,initialArg,init)},exports3.useRef=function(initialValue){return resolveDispatcher().useRef(initialValue)},exports3.useState=function(initialState){return resolveDispatcher().useState(initialState)},exports3.useSyncExternalStore=function(subscribe,getSnapshot,getServerSnapshot){return resolveDispatcher().useSyncExternalStore(subscribe,getSnapshot,getServerSnapshot)},exports3.useTransition=function(){return resolveDispatcher().useTransition()},exports3.version="19.1.0",typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())}()}(react_development,react_development.exports)),react_development.exports}var hasRequiredReact;function requireReact(){return hasRequiredReact||(hasRequiredReact=1,process.env.NODE_ENV==="production"?react.exports=requireReact_production():react.exports=requireReact_development()),react.exports}var reactExports=requireReact();const React=getDefaultExportFromCjs$1(reactExports);var client={exports:{}},reactDomClient_production={},scheduler={exports:{}},scheduler_production={};/**
|
|
31
|
+
* @license React
|
|
32
|
+
* scheduler.production.js
|
|
33
|
+
*
|
|
34
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
35
|
+
*
|
|
36
|
+
* This source code is licensed under the MIT license found in the
|
|
37
|
+
* LICENSE file in the root directory of this source tree.
|
|
38
|
+
*/var hasRequiredScheduler_production;function requireScheduler_production(){return hasRequiredScheduler_production||(hasRequiredScheduler_production=1,function(exports3){function push(heap,node){var index=heap.length;heap.push(node);a:for(;0<index;){var parentIndex=index-1>>>1,parent=heap[parentIndex];if(0<compare(parent,node))heap[parentIndex]=node,heap[index]=parent,index=parentIndex;else break a}}function peek(heap){return heap.length===0?null:heap[0]}function pop(heap){if(heap.length===0)return null;var first=heap[0],last=heap.pop();if(last!==first){heap[0]=last;a:for(var index=0,length=heap.length,halfLength=length>>>1;index<halfLength;){var leftIndex=2*(index+1)-1,left=heap[leftIndex],rightIndex=leftIndex+1,right=heap[rightIndex];if(0>compare(left,last))rightIndex<length&&0>compare(right,left)?(heap[index]=right,heap[rightIndex]=last,index=rightIndex):(heap[index]=left,heap[leftIndex]=last,index=leftIndex);else if(rightIndex<length&&0>compare(right,last))heap[index]=right,heap[rightIndex]=last,index=rightIndex;else break a}}return first}function compare(a2,b){var diff=a2.sortIndex-b.sortIndex;return diff!==0?diff:a2.id-b.id}if(exports3.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var localPerformance=performance;exports3.unstable_now=function(){return localPerformance.now()}}else{var localDate=Date,initialTime=localDate.now();exports3.unstable_now=function(){return localDate.now()-initialTime}}var taskQueue=[],timerQueue=[],taskIdCounter=1,currentTask=null,currentPriorityLevel=3,isPerformingWork=!1,isHostCallbackScheduled=!1,isHostTimeoutScheduled=!1,needsPaint=!1,localSetTimeout=typeof setTimeout=="function"?setTimeout:null,localClearTimeout=typeof clearTimeout=="function"?clearTimeout:null,localSetImmediate=typeof setImmediate<"u"?setImmediate:null;function advanceTimers(currentTime){for(var timer=peek(timerQueue);timer!==null;){if(timer.callback===null)pop(timerQueue);else if(timer.startTime<=currentTime)pop(timerQueue),timer.sortIndex=timer.expirationTime,push(taskQueue,timer);else break;timer=peek(timerQueue)}}function handleTimeout(currentTime){if(isHostTimeoutScheduled=!1,advanceTimers(currentTime),!isHostCallbackScheduled)if(peek(taskQueue)!==null)isHostCallbackScheduled=!0,isMessageLoopRunning||(isMessageLoopRunning=!0,schedulePerformWorkUntilDeadline());else{var firstTimer=peek(timerQueue);firstTimer!==null&&requestHostTimeout(handleTimeout,firstTimer.startTime-currentTime)}}var isMessageLoopRunning=!1,taskTimeoutID=-1,frameInterval=5,startTime=-1;function shouldYieldToHost(){return needsPaint?!0:!(exports3.unstable_now()-startTime<frameInterval)}function performWorkUntilDeadline(){if(needsPaint=!1,isMessageLoopRunning){var currentTime=exports3.unstable_now();startTime=currentTime;var hasMoreWork=!0;try{a:{isHostCallbackScheduled=!1,isHostTimeoutScheduled&&(isHostTimeoutScheduled=!1,localClearTimeout(taskTimeoutID),taskTimeoutID=-1),isPerformingWork=!0;var previousPriorityLevel=currentPriorityLevel;try{b:{for(advanceTimers(currentTime),currentTask=peek(taskQueue);currentTask!==null&&!(currentTask.expirationTime>currentTime&&shouldYieldToHost());){var callback=currentTask.callback;if(typeof callback=="function"){currentTask.callback=null,currentPriorityLevel=currentTask.priorityLevel;var continuationCallback=callback(currentTask.expirationTime<=currentTime);if(currentTime=exports3.unstable_now(),typeof continuationCallback=="function"){currentTask.callback=continuationCallback,advanceTimers(currentTime),hasMoreWork=!0;break b}currentTask===peek(taskQueue)&&pop(taskQueue),advanceTimers(currentTime)}else pop(taskQueue);currentTask=peek(taskQueue)}if(currentTask!==null)hasMoreWork=!0;else{var firstTimer=peek(timerQueue);firstTimer!==null&&requestHostTimeout(handleTimeout,firstTimer.startTime-currentTime),hasMoreWork=!1}}break a}finally{currentTask=null,currentPriorityLevel=previousPriorityLevel,isPerformingWork=!1}hasMoreWork=void 0}}finally{hasMoreWork?schedulePerformWorkUntilDeadline():isMessageLoopRunning=!1}}}var schedulePerformWorkUntilDeadline;if(typeof localSetImmediate=="function")schedulePerformWorkUntilDeadline=function(){localSetImmediate(performWorkUntilDeadline)};else if(typeof MessageChannel<"u"){var channel=new MessageChannel,port=channel.port2;channel.port1.onmessage=performWorkUntilDeadline,schedulePerformWorkUntilDeadline=function(){port.postMessage(null)}}else schedulePerformWorkUntilDeadline=function(){localSetTimeout(performWorkUntilDeadline,0)};function requestHostTimeout(callback,ms){taskTimeoutID=localSetTimeout(function(){callback(exports3.unstable_now())},ms)}exports3.unstable_IdlePriority=5,exports3.unstable_ImmediatePriority=1,exports3.unstable_LowPriority=4,exports3.unstable_NormalPriority=3,exports3.unstable_Profiling=null,exports3.unstable_UserBlockingPriority=2,exports3.unstable_cancelCallback=function(task){task.callback=null},exports3.unstable_forceFrameRate=function(fps){0>fps||125<fps?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):frameInterval=0<fps?Math.floor(1e3/fps):5},exports3.unstable_getCurrentPriorityLevel=function(){return currentPriorityLevel},exports3.unstable_next=function(eventHandler){switch(currentPriorityLevel){case 1:case 2:case 3:var priorityLevel=3;break;default:priorityLevel=currentPriorityLevel}var previousPriorityLevel=currentPriorityLevel;currentPriorityLevel=priorityLevel;try{return eventHandler()}finally{currentPriorityLevel=previousPriorityLevel}},exports3.unstable_requestPaint=function(){needsPaint=!0},exports3.unstable_runWithPriority=function(priorityLevel,eventHandler){switch(priorityLevel){case 1:case 2:case 3:case 4:case 5:break;default:priorityLevel=3}var previousPriorityLevel=currentPriorityLevel;currentPriorityLevel=priorityLevel;try{return eventHandler()}finally{currentPriorityLevel=previousPriorityLevel}},exports3.unstable_scheduleCallback=function(priorityLevel,callback,options){var currentTime=exports3.unstable_now();switch(typeof options=="object"&&options!==null?(options=options.delay,options=typeof options=="number"&&0<options?currentTime+options:currentTime):options=currentTime,priorityLevel){case 1:var timeout=-1;break;case 2:timeout=250;break;case 5:timeout=1073741823;break;case 4:timeout=1e4;break;default:timeout=5e3}return timeout=options+timeout,priorityLevel={id:taskIdCounter++,callback,priorityLevel,startTime:options,expirationTime:timeout,sortIndex:-1},options>currentTime?(priorityLevel.sortIndex=options,push(timerQueue,priorityLevel),peek(taskQueue)===null&&priorityLevel===peek(timerQueue)&&(isHostTimeoutScheduled?(localClearTimeout(taskTimeoutID),taskTimeoutID=-1):isHostTimeoutScheduled=!0,requestHostTimeout(handleTimeout,options-currentTime))):(priorityLevel.sortIndex=timeout,push(taskQueue,priorityLevel),isHostCallbackScheduled||isPerformingWork||(isHostCallbackScheduled=!0,isMessageLoopRunning||(isMessageLoopRunning=!0,schedulePerformWorkUntilDeadline()))),priorityLevel},exports3.unstable_shouldYield=shouldYieldToHost,exports3.unstable_wrapCallback=function(callback){var parentPriorityLevel=currentPriorityLevel;return function(){var previousPriorityLevel=currentPriorityLevel;currentPriorityLevel=parentPriorityLevel;try{return callback.apply(this,arguments)}finally{currentPriorityLevel=previousPriorityLevel}}}}(scheduler_production)),scheduler_production}var scheduler_development={};/**
|
|
39
|
+
* @license React
|
|
40
|
+
* scheduler.development.js
|
|
41
|
+
*
|
|
42
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
43
|
+
*
|
|
44
|
+
* This source code is licensed under the MIT license found in the
|
|
45
|
+
* LICENSE file in the root directory of this source tree.
|
|
46
|
+
*/var hasRequiredScheduler_development;function requireScheduler_development(){return hasRequiredScheduler_development||(hasRequiredScheduler_development=1,function(exports3){process.env.NODE_ENV!=="production"&&function(){function performWorkUntilDeadline(){if(needsPaint=!1,isMessageLoopRunning){var currentTime=exports3.unstable_now();startTime=currentTime;var hasMoreWork=!0;try{a:{isHostCallbackScheduled=!1,isHostTimeoutScheduled&&(isHostTimeoutScheduled=!1,localClearTimeout(taskTimeoutID),taskTimeoutID=-1),isPerformingWork=!0;var previousPriorityLevel=currentPriorityLevel;try{b:{for(advanceTimers(currentTime),currentTask=peek(taskQueue);currentTask!==null&&!(currentTask.expirationTime>currentTime&&shouldYieldToHost());){var callback=currentTask.callback;if(typeof callback=="function"){currentTask.callback=null,currentPriorityLevel=currentTask.priorityLevel;var continuationCallback=callback(currentTask.expirationTime<=currentTime);if(currentTime=exports3.unstable_now(),typeof continuationCallback=="function"){currentTask.callback=continuationCallback,advanceTimers(currentTime),hasMoreWork=!0;break b}currentTask===peek(taskQueue)&&pop(taskQueue),advanceTimers(currentTime)}else pop(taskQueue);currentTask=peek(taskQueue)}if(currentTask!==null)hasMoreWork=!0;else{var firstTimer=peek(timerQueue);firstTimer!==null&&requestHostTimeout(handleTimeout,firstTimer.startTime-currentTime),hasMoreWork=!1}}break a}finally{currentTask=null,currentPriorityLevel=previousPriorityLevel,isPerformingWork=!1}hasMoreWork=void 0}}finally{hasMoreWork?schedulePerformWorkUntilDeadline():isMessageLoopRunning=!1}}}function push(heap,node){var index=heap.length;heap.push(node);a:for(;0<index;){var parentIndex=index-1>>>1,parent=heap[parentIndex];if(0<compare(parent,node))heap[parentIndex]=node,heap[index]=parent,index=parentIndex;else break a}}function peek(heap){return heap.length===0?null:heap[0]}function pop(heap){if(heap.length===0)return null;var first=heap[0],last=heap.pop();if(last!==first){heap[0]=last;a:for(var index=0,length=heap.length,halfLength=length>>>1;index<halfLength;){var leftIndex=2*(index+1)-1,left=heap[leftIndex],rightIndex=leftIndex+1,right=heap[rightIndex];if(0>compare(left,last))rightIndex<length&&0>compare(right,left)?(heap[index]=right,heap[rightIndex]=last,index=rightIndex):(heap[index]=left,heap[leftIndex]=last,index=leftIndex);else if(rightIndex<length&&0>compare(right,last))heap[index]=right,heap[rightIndex]=last,index=rightIndex;else break a}}return first}function compare(a2,b){var diff=a2.sortIndex-b.sortIndex;return diff!==0?diff:a2.id-b.id}function advanceTimers(currentTime){for(var timer=peek(timerQueue);timer!==null;){if(timer.callback===null)pop(timerQueue);else if(timer.startTime<=currentTime)pop(timerQueue),timer.sortIndex=timer.expirationTime,push(taskQueue,timer);else break;timer=peek(timerQueue)}}function handleTimeout(currentTime){if(isHostTimeoutScheduled=!1,advanceTimers(currentTime),!isHostCallbackScheduled)if(peek(taskQueue)!==null)isHostCallbackScheduled=!0,isMessageLoopRunning||(isMessageLoopRunning=!0,schedulePerformWorkUntilDeadline());else{var firstTimer=peek(timerQueue);firstTimer!==null&&requestHostTimeout(handleTimeout,firstTimer.startTime-currentTime)}}function shouldYieldToHost(){return needsPaint?!0:!(exports3.unstable_now()-startTime<frameInterval)}function requestHostTimeout(callback,ms){taskTimeoutID=localSetTimeout(function(){callback(exports3.unstable_now())},ms)}if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error()),exports3.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var localPerformance=performance;exports3.unstable_now=function(){return localPerformance.now()}}else{var localDate=Date,initialTime=localDate.now();exports3.unstable_now=function(){return localDate.now()-initialTime}}var taskQueue=[],timerQueue=[],taskIdCounter=1,currentTask=null,currentPriorityLevel=3,isPerformingWork=!1,isHostCallbackScheduled=!1,isHostTimeoutScheduled=!1,needsPaint=!1,localSetTimeout=typeof setTimeout=="function"?setTimeout:null,localClearTimeout=typeof clearTimeout=="function"?clearTimeout:null,localSetImmediate=typeof setImmediate<"u"?setImmediate:null,isMessageLoopRunning=!1,taskTimeoutID=-1,frameInterval=5,startTime=-1;if(typeof localSetImmediate=="function")var schedulePerformWorkUntilDeadline=function(){localSetImmediate(performWorkUntilDeadline)};else if(typeof MessageChannel<"u"){var channel=new MessageChannel,port=channel.port2;channel.port1.onmessage=performWorkUntilDeadline,schedulePerformWorkUntilDeadline=function(){port.postMessage(null)}}else schedulePerformWorkUntilDeadline=function(){localSetTimeout(performWorkUntilDeadline,0)};exports3.unstable_IdlePriority=5,exports3.unstable_ImmediatePriority=1,exports3.unstable_LowPriority=4,exports3.unstable_NormalPriority=3,exports3.unstable_Profiling=null,exports3.unstable_UserBlockingPriority=2,exports3.unstable_cancelCallback=function(task){task.callback=null},exports3.unstable_forceFrameRate=function(fps){0>fps||125<fps?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):frameInterval=0<fps?Math.floor(1e3/fps):5},exports3.unstable_getCurrentPriorityLevel=function(){return currentPriorityLevel},exports3.unstable_next=function(eventHandler){switch(currentPriorityLevel){case 1:case 2:case 3:var priorityLevel=3;break;default:priorityLevel=currentPriorityLevel}var previousPriorityLevel=currentPriorityLevel;currentPriorityLevel=priorityLevel;try{return eventHandler()}finally{currentPriorityLevel=previousPriorityLevel}},exports3.unstable_requestPaint=function(){needsPaint=!0},exports3.unstable_runWithPriority=function(priorityLevel,eventHandler){switch(priorityLevel){case 1:case 2:case 3:case 4:case 5:break;default:priorityLevel=3}var previousPriorityLevel=currentPriorityLevel;currentPriorityLevel=priorityLevel;try{return eventHandler()}finally{currentPriorityLevel=previousPriorityLevel}},exports3.unstable_scheduleCallback=function(priorityLevel,callback,options){var currentTime=exports3.unstable_now();switch(typeof options=="object"&&options!==null?(options=options.delay,options=typeof options=="number"&&0<options?currentTime+options:currentTime):options=currentTime,priorityLevel){case 1:var timeout=-1;break;case 2:timeout=250;break;case 5:timeout=1073741823;break;case 4:timeout=1e4;break;default:timeout=5e3}return timeout=options+timeout,priorityLevel={id:taskIdCounter++,callback,priorityLevel,startTime:options,expirationTime:timeout,sortIndex:-1},options>currentTime?(priorityLevel.sortIndex=options,push(timerQueue,priorityLevel),peek(taskQueue)===null&&priorityLevel===peek(timerQueue)&&(isHostTimeoutScheduled?(localClearTimeout(taskTimeoutID),taskTimeoutID=-1):isHostTimeoutScheduled=!0,requestHostTimeout(handleTimeout,options-currentTime))):(priorityLevel.sortIndex=timeout,push(taskQueue,priorityLevel),isHostCallbackScheduled||isPerformingWork||(isHostCallbackScheduled=!0,isMessageLoopRunning||(isMessageLoopRunning=!0,schedulePerformWorkUntilDeadline()))),priorityLevel},exports3.unstable_shouldYield=shouldYieldToHost,exports3.unstable_wrapCallback=function(callback){var parentPriorityLevel=currentPriorityLevel;return function(){var previousPriorityLevel=currentPriorityLevel;currentPriorityLevel=parentPriorityLevel;try{return callback.apply(this,arguments)}finally{currentPriorityLevel=previousPriorityLevel}}},typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())}()}(scheduler_development)),scheduler_development}var hasRequiredScheduler;function requireScheduler(){return hasRequiredScheduler||(hasRequiredScheduler=1,process.env.NODE_ENV==="production"?scheduler.exports=requireScheduler_production():scheduler.exports=requireScheduler_development()),scheduler.exports}var reactDom={exports:{}},reactDom_production={};/**
|
|
47
|
+
* @license React
|
|
48
|
+
* react-dom.production.js
|
|
49
|
+
*
|
|
50
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
51
|
+
*
|
|
52
|
+
* This source code is licensed under the MIT license found in the
|
|
53
|
+
* LICENSE file in the root directory of this source tree.
|
|
54
|
+
*/var hasRequiredReactDom_production;function requireReactDom_production(){if(hasRequiredReactDom_production)return reactDom_production;hasRequiredReactDom_production=1;var React2=requireReact();function formatProdErrorMessage(code){var url="https://react.dev/errors/"+code;if(1<arguments.length){url+="?args[]="+encodeURIComponent(arguments[1]);for(var i=2;i<arguments.length;i++)url+="&args[]="+encodeURIComponent(arguments[i])}return"Minified React error #"+code+"; visit "+url+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function noop(){}var Internals={d:{f:noop,r:function(){throw Error(formatProdErrorMessage(522))},D:noop,C:noop,L:noop,m:noop,X:noop,S:noop,M:noop},p:0,findDOMNode:null},REACT_PORTAL_TYPE=Symbol.for("react.portal");function createPortal$1(children,containerInfo,implementation){var key=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:REACT_PORTAL_TYPE,key:key==null?null:""+key,children,containerInfo,implementation}}var ReactSharedInternals=React2.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function getCrossOriginStringAs(as,input){if(as==="font")return"";if(typeof input=="string")return input==="use-credentials"?input:""}return reactDom_production.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=Internals,reactDom_production.createPortal=function(children,container){var key=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!container||container.nodeType!==1&&container.nodeType!==9&&container.nodeType!==11)throw Error(formatProdErrorMessage(299));return createPortal$1(children,container,null,key)},reactDom_production.flushSync=function(fn){var previousTransition=ReactSharedInternals.T,previousUpdatePriority=Internals.p;try{if(ReactSharedInternals.T=null,Internals.p=2,fn)return fn()}finally{ReactSharedInternals.T=previousTransition,Internals.p=previousUpdatePriority,Internals.d.f()}},reactDom_production.preconnect=function(href,options){typeof href=="string"&&(options?(options=options.crossOrigin,options=typeof options=="string"?options==="use-credentials"?options:"":void 0):options=null,Internals.d.C(href,options))},reactDom_production.prefetchDNS=function(href){typeof href=="string"&&Internals.d.D(href)},reactDom_production.preinit=function(href,options){if(typeof href=="string"&&options&&typeof options.as=="string"){var as=options.as,crossOrigin=getCrossOriginStringAs(as,options.crossOrigin),integrity=typeof options.integrity=="string"?options.integrity:void 0,fetchPriority=typeof options.fetchPriority=="string"?options.fetchPriority:void 0;as==="style"?Internals.d.S(href,typeof options.precedence=="string"?options.precedence:void 0,{crossOrigin,integrity,fetchPriority}):as==="script"&&Internals.d.X(href,{crossOrigin,integrity,fetchPriority,nonce:typeof options.nonce=="string"?options.nonce:void 0})}},reactDom_production.preinitModule=function(href,options){if(typeof href=="string")if(typeof options=="object"&&options!==null){if(options.as==null||options.as==="script"){var crossOrigin=getCrossOriginStringAs(options.as,options.crossOrigin);Internals.d.M(href,{crossOrigin,integrity:typeof options.integrity=="string"?options.integrity:void 0,nonce:typeof options.nonce=="string"?options.nonce:void 0})}}else options==null&&Internals.d.M(href)},reactDom_production.preload=function(href,options){if(typeof href=="string"&&typeof options=="object"&&options!==null&&typeof options.as=="string"){var as=options.as,crossOrigin=getCrossOriginStringAs(as,options.crossOrigin);Internals.d.L(href,as,{crossOrigin,integrity:typeof options.integrity=="string"?options.integrity:void 0,nonce:typeof options.nonce=="string"?options.nonce:void 0,type:typeof options.type=="string"?options.type:void 0,fetchPriority:typeof options.fetchPriority=="string"?options.fetchPriority:void 0,referrerPolicy:typeof options.referrerPolicy=="string"?options.referrerPolicy:void 0,imageSrcSet:typeof options.imageSrcSet=="string"?options.imageSrcSet:void 0,imageSizes:typeof options.imageSizes=="string"?options.imageSizes:void 0,media:typeof options.media=="string"?options.media:void 0})}},reactDom_production.preloadModule=function(href,options){if(typeof href=="string")if(options){var crossOrigin=getCrossOriginStringAs(options.as,options.crossOrigin);Internals.d.m(href,{as:typeof options.as=="string"&&options.as!=="script"?options.as:void 0,crossOrigin,integrity:typeof options.integrity=="string"?options.integrity:void 0})}else Internals.d.m(href)},reactDom_production.requestFormReset=function(form2){Internals.d.r(form2)},reactDom_production.unstable_batchedUpdates=function(fn,a2){return fn(a2)},reactDom_production.useFormState=function(action,initialState,permalink){return ReactSharedInternals.H.useFormState(action,initialState,permalink)},reactDom_production.useFormStatus=function(){return ReactSharedInternals.H.useHostTransitionStatus()},reactDom_production.version="19.1.0",reactDom_production}var reactDom_development={};/**
|
|
55
|
+
* @license React
|
|
56
|
+
* react-dom.development.js
|
|
57
|
+
*
|
|
58
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
59
|
+
*
|
|
60
|
+
* This source code is licensed under the MIT license found in the
|
|
61
|
+
* LICENSE file in the root directory of this source tree.
|
|
62
|
+
*/var hasRequiredReactDom_development;function requireReactDom_development(){return hasRequiredReactDom_development||(hasRequiredReactDom_development=1,process.env.NODE_ENV!=="production"&&function(){function noop(){}function testStringCoercion(value){return""+value}function createPortal$1(children,containerInfo,implementation){var key=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;try{testStringCoercion(key);var JSCompiler_inline_result=!1}catch{JSCompiler_inline_result=!0}return JSCompiler_inline_result&&(console.error("The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",typeof Symbol=="function"&&Symbol.toStringTag&&key[Symbol.toStringTag]||key.constructor.name||"Object"),testStringCoercion(key)),{$$typeof:REACT_PORTAL_TYPE,key:key==null?null:""+key,children,containerInfo,implementation}}function getCrossOriginStringAs(as,input){if(as==="font")return"";if(typeof input=="string")return input==="use-credentials"?input:""}function getValueDescriptorExpectingObjectForWarning(thing){return thing===null?"`null`":thing===void 0?"`undefined`":thing===""?"an empty string":'something with type "'+typeof thing+'"'}function getValueDescriptorExpectingEnumForWarning(thing){return thing===null?"`null`":thing===void 0?"`undefined`":thing===""?"an empty string":typeof thing=="string"?JSON.stringify(thing):typeof thing=="number"?"`"+thing+"`":'something with type "'+typeof thing+'"'}function resolveDispatcher(){var dispatcher=ReactSharedInternals.H;return dispatcher===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:
|
|
63
|
+
1. You might have mismatching versions of React and the renderer (such as React DOM)
|
|
64
|
+
2. You might be breaking the Rules of Hooks
|
|
65
|
+
3. You might have more than one copy of React in the same app
|
|
66
|
+
See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`),dispatcher}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var React2=requireReact(),Internals={d:{f:noop,r:function(){throw Error("Invalid form element. requestFormReset must be passed a form that was rendered by React.")},D:noop,C:noop,L:noop,m:noop,X:noop,S:noop,M:noop},p:0,findDOMNode:null},REACT_PORTAL_TYPE=Symbol.for("react.portal"),ReactSharedInternals=React2.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;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://reactjs.org/link/react-polyfills"),reactDom_development.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=Internals,reactDom_development.createPortal=function(children,container){var key=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!container||container.nodeType!==1&&container.nodeType!==9&&container.nodeType!==11)throw Error("Target container is not a DOM element.");return createPortal$1(children,container,null,key)},reactDom_development.flushSync=function(fn){var previousTransition=ReactSharedInternals.T,previousUpdatePriority=Internals.p;try{if(ReactSharedInternals.T=null,Internals.p=2,fn)return fn()}finally{ReactSharedInternals.T=previousTransition,Internals.p=previousUpdatePriority,Internals.d.f()&&console.error("flushSync was called from inside a lifecycle method. React cannot flush when React is already rendering. Consider moving this call to a scheduler task or micro task.")}},reactDom_development.preconnect=function(href,options){typeof href=="string"&&href?options!=null&&typeof options!="object"?console.error("ReactDOM.preconnect(): Expected the `options` argument (second) to be an object but encountered %s instead. The only supported option at this time is `crossOrigin` which accepts a string.",getValueDescriptorExpectingEnumForWarning(options)):options!=null&&typeof options.crossOrigin!="string"&&console.error("ReactDOM.preconnect(): Expected the `crossOrigin` option (second argument) to be a string but encountered %s instead. Try removing this option or passing a string value instead.",getValueDescriptorExpectingObjectForWarning(options.crossOrigin)):console.error("ReactDOM.preconnect(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",getValueDescriptorExpectingObjectForWarning(href)),typeof href=="string"&&(options?(options=options.crossOrigin,options=typeof options=="string"?options==="use-credentials"?options:"":void 0):options=null,Internals.d.C(href,options))},reactDom_development.prefetchDNS=function(href){if(typeof href!="string"||!href)console.error("ReactDOM.prefetchDNS(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",getValueDescriptorExpectingObjectForWarning(href));else if(1<arguments.length){var options=arguments[1];typeof options=="object"&&options.hasOwnProperty("crossOrigin")?console.error("ReactDOM.prefetchDNS(): Expected only one argument, `href`, but encountered %s as a second argument instead. This argument is reserved for future options and is currently disallowed. It looks like the you are attempting to set a crossOrigin property for this DNS lookup hint. Browsers do not perform DNS queries using CORS and setting this attribute on the resource hint has no effect. Try calling ReactDOM.prefetchDNS() with just a single string argument, `href`.",getValueDescriptorExpectingEnumForWarning(options)):console.error("ReactDOM.prefetchDNS(): Expected only one argument, `href`, but encountered %s as a second argument instead. This argument is reserved for future options and is currently disallowed. Try calling ReactDOM.prefetchDNS() with just a single string argument, `href`.",getValueDescriptorExpectingEnumForWarning(options))}typeof href=="string"&&Internals.d.D(href)},reactDom_development.preinit=function(href,options){if(typeof href=="string"&&href?options==null||typeof options!="object"?console.error("ReactDOM.preinit(): Expected the `options` argument (second) to be an object with an `as` property describing the type of resource to be preinitialized but encountered %s instead.",getValueDescriptorExpectingEnumForWarning(options)):options.as!=="style"&&options.as!=="script"&&console.error('ReactDOM.preinit(): Expected the `as` property in the `options` argument (second) to contain a valid value describing the type of resource to be preinitialized but encountered %s instead. Valid values for `as` are "style" and "script".',getValueDescriptorExpectingEnumForWarning(options.as)):console.error("ReactDOM.preinit(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",getValueDescriptorExpectingObjectForWarning(href)),typeof href=="string"&&options&&typeof options.as=="string"){var as=options.as,crossOrigin=getCrossOriginStringAs(as,options.crossOrigin),integrity=typeof options.integrity=="string"?options.integrity:void 0,fetchPriority=typeof options.fetchPriority=="string"?options.fetchPriority:void 0;as==="style"?Internals.d.S(href,typeof options.precedence=="string"?options.precedence:void 0,{crossOrigin,integrity,fetchPriority}):as==="script"&&Internals.d.X(href,{crossOrigin,integrity,fetchPriority,nonce:typeof options.nonce=="string"?options.nonce:void 0})}},reactDom_development.preinitModule=function(href,options){var encountered="";if(typeof href=="string"&&href||(encountered+=" The `href` argument encountered was "+getValueDescriptorExpectingObjectForWarning(href)+"."),options!==void 0&&typeof options!="object"?encountered+=" The `options` argument encountered was "+getValueDescriptorExpectingObjectForWarning(options)+".":options&&"as"in options&&options.as!=="script"&&(encountered+=" The `as` option encountered was "+getValueDescriptorExpectingEnumForWarning(options.as)+"."),encountered)console.error("ReactDOM.preinitModule(): Expected up to two arguments, a non-empty `href` string and, optionally, an `options` object with a valid `as` property.%s",encountered);else switch(encountered=options&&typeof options.as=="string"?options.as:"script",encountered){case"script":break;default:encountered=getValueDescriptorExpectingEnumForWarning(encountered),console.error('ReactDOM.preinitModule(): Currently the only supported "as" type for this function is "script" but received "%s" instead. This warning was generated for `href` "%s". In the future other module types will be supported, aligning with the import-attributes proposal. Learn more here: (https://github.com/tc39/proposal-import-attributes)',encountered,href)}typeof href=="string"&&(typeof options=="object"&&options!==null?(options.as==null||options.as==="script")&&(encountered=getCrossOriginStringAs(options.as,options.crossOrigin),Internals.d.M(href,{crossOrigin:encountered,integrity:typeof options.integrity=="string"?options.integrity:void 0,nonce:typeof options.nonce=="string"?options.nonce:void 0})):options==null&&Internals.d.M(href))},reactDom_development.preload=function(href,options){var encountered="";if(typeof href=="string"&&href||(encountered+=" The `href` argument encountered was "+getValueDescriptorExpectingObjectForWarning(href)+"."),options==null||typeof options!="object"?encountered+=" The `options` argument encountered was "+getValueDescriptorExpectingObjectForWarning(options)+".":typeof options.as=="string"&&options.as||(encountered+=" The `as` option encountered was "+getValueDescriptorExpectingObjectForWarning(options.as)+"."),encountered&&console.error('ReactDOM.preload(): Expected two arguments, a non-empty `href` string and an `options` object with an `as` property valid for a `<link rel="preload" as="..." />` tag.%s',encountered),typeof href=="string"&&typeof options=="object"&&options!==null&&typeof options.as=="string"){encountered=options.as;var crossOrigin=getCrossOriginStringAs(encountered,options.crossOrigin);Internals.d.L(href,encountered,{crossOrigin,integrity:typeof options.integrity=="string"?options.integrity:void 0,nonce:typeof options.nonce=="string"?options.nonce:void 0,type:typeof options.type=="string"?options.type:void 0,fetchPriority:typeof options.fetchPriority=="string"?options.fetchPriority:void 0,referrerPolicy:typeof options.referrerPolicy=="string"?options.referrerPolicy:void 0,imageSrcSet:typeof options.imageSrcSet=="string"?options.imageSrcSet:void 0,imageSizes:typeof options.imageSizes=="string"?options.imageSizes:void 0,media:typeof options.media=="string"?options.media:void 0})}},reactDom_development.preloadModule=function(href,options){var encountered="";typeof href=="string"&&href||(encountered+=" The `href` argument encountered was "+getValueDescriptorExpectingObjectForWarning(href)+"."),options!==void 0&&typeof options!="object"?encountered+=" The `options` argument encountered was "+getValueDescriptorExpectingObjectForWarning(options)+".":options&&"as"in options&&typeof options.as!="string"&&(encountered+=" The `as` option encountered was "+getValueDescriptorExpectingObjectForWarning(options.as)+"."),encountered&&console.error('ReactDOM.preloadModule(): Expected two arguments, a non-empty `href` string and, optionally, an `options` object with an `as` property valid for a `<link rel="modulepreload" as="..." />` tag.%s',encountered),typeof href=="string"&&(options?(encountered=getCrossOriginStringAs(options.as,options.crossOrigin),Internals.d.m(href,{as:typeof options.as=="string"&&options.as!=="script"?options.as:void 0,crossOrigin:encountered,integrity:typeof options.integrity=="string"?options.integrity:void 0})):Internals.d.m(href))},reactDom_development.requestFormReset=function(form2){Internals.d.r(form2)},reactDom_development.unstable_batchedUpdates=function(fn,a2){return fn(a2)},reactDom_development.useFormState=function(action,initialState,permalink){return resolveDispatcher().useFormState(action,initialState,permalink)},reactDom_development.useFormStatus=function(){return resolveDispatcher().useHostTransitionStatus()},reactDom_development.version="19.1.0",typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())}()),reactDom_development}var hasRequiredReactDom;function requireReactDom(){if(hasRequiredReactDom)return reactDom.exports;hasRequiredReactDom=1;function checkDCE(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function")){if(process.env.NODE_ENV!=="production")throw new Error("^_^");try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(checkDCE)}catch(err){console.error(err)}}}return process.env.NODE_ENV==="production"?(checkDCE(),reactDom.exports=requireReactDom_production()):reactDom.exports=requireReactDom_development(),reactDom.exports}/**
|
|
67
|
+
* @license React
|
|
68
|
+
* react-dom-client.production.js
|
|
69
|
+
*
|
|
70
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
71
|
+
*
|
|
72
|
+
* This source code is licensed under the MIT license found in the
|
|
73
|
+
* LICENSE file in the root directory of this source tree.
|
|
74
|
+
*/var hasRequiredReactDomClient_production;function requireReactDomClient_production(){if(hasRequiredReactDomClient_production)return reactDomClient_production;hasRequiredReactDomClient_production=1;var Scheduler=requireScheduler(),React2=requireReact(),ReactDOM=requireReactDom();function formatProdErrorMessage(code){var url="https://react.dev/errors/"+code;if(1<arguments.length){url+="?args[]="+encodeURIComponent(arguments[1]);for(var i=2;i<arguments.length;i++)url+="&args[]="+encodeURIComponent(arguments[i])}return"Minified React error #"+code+"; visit "+url+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function isValidContainer(node){return!(!node||node.nodeType!==1&&node.nodeType!==9&&node.nodeType!==11)}function getNearestMountedFiber(fiber){var node=fiber,nearestMounted=fiber;if(fiber.alternate)for(;node.return;)node=node.return;else{fiber=node;do node=fiber,(node.flags&4098)!==0&&(nearestMounted=node.return),fiber=node.return;while(fiber)}return node.tag===3?nearestMounted:null}function getSuspenseInstanceFromFiber(fiber){if(fiber.tag===13){var suspenseState=fiber.memoizedState;if(suspenseState===null&&(fiber=fiber.alternate,fiber!==null&&(suspenseState=fiber.memoizedState)),suspenseState!==null)return suspenseState.dehydrated}return null}function assertIsMounted(fiber){if(getNearestMountedFiber(fiber)!==fiber)throw Error(formatProdErrorMessage(188))}function findCurrentFiberUsingSlowPath(fiber){var alternate=fiber.alternate;if(!alternate){if(alternate=getNearestMountedFiber(fiber),alternate===null)throw Error(formatProdErrorMessage(188));return alternate!==fiber?null:fiber}for(var a2=fiber,b=alternate;;){var parentA=a2.return;if(parentA===null)break;var parentB=parentA.alternate;if(parentB===null){if(b=parentA.return,b!==null){a2=b;continue}break}if(parentA.child===parentB.child){for(parentB=parentA.child;parentB;){if(parentB===a2)return assertIsMounted(parentA),fiber;if(parentB===b)return assertIsMounted(parentA),alternate;parentB=parentB.sibling}throw Error(formatProdErrorMessage(188))}if(a2.return!==b.return)a2=parentA,b=parentB;else{for(var didFindChild=!1,child$0=parentA.child;child$0;){if(child$0===a2){didFindChild=!0,a2=parentA,b=parentB;break}if(child$0===b){didFindChild=!0,b=parentA,a2=parentB;break}child$0=child$0.sibling}if(!didFindChild){for(child$0=parentB.child;child$0;){if(child$0===a2){didFindChild=!0,a2=parentB,b=parentA;break}if(child$0===b){didFindChild=!0,b=parentB,a2=parentA;break}child$0=child$0.sibling}if(!didFindChild)throw Error(formatProdErrorMessage(189))}}if(a2.alternate!==b)throw Error(formatProdErrorMessage(190))}if(a2.tag!==3)throw Error(formatProdErrorMessage(188));return a2.stateNode.current===a2?fiber:alternate}function findCurrentHostFiberImpl(node){var tag=node.tag;if(tag===5||tag===26||tag===27||tag===6)return node;for(node=node.child;node!==null;){if(tag=findCurrentHostFiberImpl(node),tag!==null)return tag;node=node.sibling}return null}var assign=Object.assign,REACT_LEGACY_ELEMENT_TYPE=Symbol.for("react.element"),REACT_ELEMENT_TYPE=Symbol.for("react.transitional.element"),REACT_PORTAL_TYPE=Symbol.for("react.portal"),REACT_FRAGMENT_TYPE=Symbol.for("react.fragment"),REACT_STRICT_MODE_TYPE=Symbol.for("react.strict_mode"),REACT_PROFILER_TYPE=Symbol.for("react.profiler"),REACT_PROVIDER_TYPE=Symbol.for("react.provider"),REACT_CONSUMER_TYPE=Symbol.for("react.consumer"),REACT_CONTEXT_TYPE=Symbol.for("react.context"),REACT_FORWARD_REF_TYPE=Symbol.for("react.forward_ref"),REACT_SUSPENSE_TYPE=Symbol.for("react.suspense"),REACT_SUSPENSE_LIST_TYPE=Symbol.for("react.suspense_list"),REACT_MEMO_TYPE=Symbol.for("react.memo"),REACT_LAZY_TYPE=Symbol.for("react.lazy"),REACT_ACTIVITY_TYPE=Symbol.for("react.activity"),REACT_MEMO_CACHE_SENTINEL=Symbol.for("react.memo_cache_sentinel"),MAYBE_ITERATOR_SYMBOL=Symbol.iterator;function getIteratorFn(maybeIterable){return maybeIterable===null||typeof maybeIterable!="object"?null:(maybeIterable=MAYBE_ITERATOR_SYMBOL&&maybeIterable[MAYBE_ITERATOR_SYMBOL]||maybeIterable["@@iterator"],typeof maybeIterable=="function"?maybeIterable:null)}var REACT_CLIENT_REFERENCE=Symbol.for("react.client.reference");function getComponentNameFromType(type){if(type==null)return null;if(typeof type=="function")return type.$$typeof===REACT_CLIENT_REFERENCE?null:type.displayName||type.name||null;if(typeof type=="string")return type;switch(type){case REACT_FRAGMENT_TYPE:return"Fragment";case REACT_PROFILER_TYPE:return"Profiler";case REACT_STRICT_MODE_TYPE:return"StrictMode";case REACT_SUSPENSE_TYPE:return"Suspense";case REACT_SUSPENSE_LIST_TYPE:return"SuspenseList";case REACT_ACTIVITY_TYPE:return"Activity"}if(typeof type=="object")switch(type.$$typeof){case REACT_PORTAL_TYPE:return"Portal";case REACT_CONTEXT_TYPE:return(type.displayName||"Context")+".Provider";case REACT_CONSUMER_TYPE:return(type._context.displayName||"Context")+".Consumer";case REACT_FORWARD_REF_TYPE:var innerType=type.render;return type=type.displayName,type||(type=innerType.displayName||innerType.name||"",type=type!==""?"ForwardRef("+type+")":"ForwardRef"),type;case REACT_MEMO_TYPE:return innerType=type.displayName||null,innerType!==null?innerType:getComponentNameFromType(type.type)||"Memo";case REACT_LAZY_TYPE:innerType=type._payload,type=type._init;try{return getComponentNameFromType(type(innerType))}catch{}}return null}var isArrayImpl=Array.isArray,ReactSharedInternals=React2.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ReactDOMSharedInternals=ReactDOM.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,sharedNotPendingObject={pending:!1,data:null,method:null,action:null},valueStack=[],index=-1;function createCursor(defaultValue){return{current:defaultValue}}function pop(cursor){0>index||(cursor.current=valueStack[index],valueStack[index]=null,index--)}function push(cursor,value){index++,valueStack[index]=cursor.current,cursor.current=value}var contextStackCursor=createCursor(null),contextFiberStackCursor=createCursor(null),rootInstanceStackCursor=createCursor(null),hostTransitionProviderCursor=createCursor(null);function pushHostContainer(fiber,nextRootInstance){switch(push(rootInstanceStackCursor,nextRootInstance),push(contextFiberStackCursor,fiber),push(contextStackCursor,null),nextRootInstance.nodeType){case 9:case 11:fiber=(fiber=nextRootInstance.documentElement)&&(fiber=fiber.namespaceURI)?getOwnHostContext(fiber):0;break;default:if(fiber=nextRootInstance.tagName,nextRootInstance=nextRootInstance.namespaceURI)nextRootInstance=getOwnHostContext(nextRootInstance),fiber=getChildHostContextProd(nextRootInstance,fiber);else switch(fiber){case"svg":fiber=1;break;case"math":fiber=2;break;default:fiber=0}}pop(contextStackCursor),push(contextStackCursor,fiber)}function popHostContainer(){pop(contextStackCursor),pop(contextFiberStackCursor),pop(rootInstanceStackCursor)}function pushHostContext(fiber){fiber.memoizedState!==null&&push(hostTransitionProviderCursor,fiber);var context=contextStackCursor.current,JSCompiler_inline_result=getChildHostContextProd(context,fiber.type);context!==JSCompiler_inline_result&&(push(contextFiberStackCursor,fiber),push(contextStackCursor,JSCompiler_inline_result))}function popHostContext(fiber){contextFiberStackCursor.current===fiber&&(pop(contextStackCursor),pop(contextFiberStackCursor)),hostTransitionProviderCursor.current===fiber&&(pop(hostTransitionProviderCursor),HostTransitionContext._currentValue=sharedNotPendingObject)}var hasOwnProperty=Object.prototype.hasOwnProperty,scheduleCallback$3=Scheduler.unstable_scheduleCallback,cancelCallback$1=Scheduler.unstable_cancelCallback,shouldYield=Scheduler.unstable_shouldYield,requestPaint=Scheduler.unstable_requestPaint,now=Scheduler.unstable_now,getCurrentPriorityLevel=Scheduler.unstable_getCurrentPriorityLevel,ImmediatePriority=Scheduler.unstable_ImmediatePriority,UserBlockingPriority=Scheduler.unstable_UserBlockingPriority,NormalPriority$1=Scheduler.unstable_NormalPriority,LowPriority=Scheduler.unstable_LowPriority,IdlePriority=Scheduler.unstable_IdlePriority,log$1=Scheduler.log,unstable_setDisableYieldValue=Scheduler.unstable_setDisableYieldValue,rendererID=null,injectedHook=null;function setIsStrictModeForDevtools(newIsStrictMode){if(typeof log$1=="function"&&unstable_setDisableYieldValue(newIsStrictMode),injectedHook&&typeof injectedHook.setStrictMode=="function")try{injectedHook.setStrictMode(rendererID,newIsStrictMode)}catch{}}var clz32=Math.clz32?Math.clz32:clz32Fallback,log=Math.log,LN2=Math.LN2;function clz32Fallback(x){return x>>>=0,x===0?32:31-(log(x)/LN2|0)|0}var nextTransitionLane=256,nextRetryLane=4194304;function getHighestPriorityLanes(lanes){var pendingSyncLanes=lanes&42;if(pendingSyncLanes!==0)return pendingSyncLanes;switch(lanes&-lanes){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 lanes&4194048;case 4194304:case 8388608:case 16777216:case 33554432:return lanes&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return lanes}}function getNextLanes(root3,wipLanes,rootHasPendingCommit){var pendingLanes=root3.pendingLanes;if(pendingLanes===0)return 0;var nextLanes=0,suspendedLanes=root3.suspendedLanes,pingedLanes=root3.pingedLanes;root3=root3.warmLanes;var nonIdlePendingLanes=pendingLanes&134217727;return nonIdlePendingLanes!==0?(pendingLanes=nonIdlePendingLanes&~suspendedLanes,pendingLanes!==0?nextLanes=getHighestPriorityLanes(pendingLanes):(pingedLanes&=nonIdlePendingLanes,pingedLanes!==0?nextLanes=getHighestPriorityLanes(pingedLanes):rootHasPendingCommit||(rootHasPendingCommit=nonIdlePendingLanes&~root3,rootHasPendingCommit!==0&&(nextLanes=getHighestPriorityLanes(rootHasPendingCommit))))):(nonIdlePendingLanes=pendingLanes&~suspendedLanes,nonIdlePendingLanes!==0?nextLanes=getHighestPriorityLanes(nonIdlePendingLanes):pingedLanes!==0?nextLanes=getHighestPriorityLanes(pingedLanes):rootHasPendingCommit||(rootHasPendingCommit=pendingLanes&~root3,rootHasPendingCommit!==0&&(nextLanes=getHighestPriorityLanes(rootHasPendingCommit)))),nextLanes===0?0:wipLanes!==0&&wipLanes!==nextLanes&&(wipLanes&suspendedLanes)===0&&(suspendedLanes=nextLanes&-nextLanes,rootHasPendingCommit=wipLanes&-wipLanes,suspendedLanes>=rootHasPendingCommit||suspendedLanes===32&&(rootHasPendingCommit&4194048)!==0)?wipLanes:nextLanes}function checkIfRootIsPrerendering(root3,renderLanes2){return(root3.pendingLanes&~(root3.suspendedLanes&~root3.pingedLanes)&renderLanes2)===0}function computeExpirationTime(lane,currentTime){switch(lane){case 1:case 2:case 4:case 8:case 64:return currentTime+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 currentTime+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 claimNextTransitionLane(){var lane=nextTransitionLane;return nextTransitionLane<<=1,(nextTransitionLane&4194048)===0&&(nextTransitionLane=256),lane}function claimNextRetryLane(){var lane=nextRetryLane;return nextRetryLane<<=1,(nextRetryLane&62914560)===0&&(nextRetryLane=4194304),lane}function createLaneMap(initial){for(var laneMap=[],i=0;31>i;i++)laneMap.push(initial);return laneMap}function markRootUpdated$1(root3,updateLane){root3.pendingLanes|=updateLane,updateLane!==268435456&&(root3.suspendedLanes=0,root3.pingedLanes=0,root3.warmLanes=0)}function markRootFinished(root3,finishedLanes,remainingLanes,spawnedLane,updatedLanes,suspendedRetryLanes){var previouslyPendingLanes=root3.pendingLanes;root3.pendingLanes=remainingLanes,root3.suspendedLanes=0,root3.pingedLanes=0,root3.warmLanes=0,root3.expiredLanes&=remainingLanes,root3.entangledLanes&=remainingLanes,root3.errorRecoveryDisabledLanes&=remainingLanes,root3.shellSuspendCounter=0;var entanglements=root3.entanglements,expirationTimes=root3.expirationTimes,hiddenUpdates=root3.hiddenUpdates;for(remainingLanes=previouslyPendingLanes&~remainingLanes;0<remainingLanes;){var index$5=31-clz32(remainingLanes),lane=1<<index$5;entanglements[index$5]=0,expirationTimes[index$5]=-1;var hiddenUpdatesForLane=hiddenUpdates[index$5];if(hiddenUpdatesForLane!==null)for(hiddenUpdates[index$5]=null,index$5=0;index$5<hiddenUpdatesForLane.length;index$5++){var update=hiddenUpdatesForLane[index$5];update!==null&&(update.lane&=-536870913)}remainingLanes&=~lane}spawnedLane!==0&&markSpawnedDeferredLane(root3,spawnedLane,0),suspendedRetryLanes!==0&&updatedLanes===0&&root3.tag!==0&&(root3.suspendedLanes|=suspendedRetryLanes&~(previouslyPendingLanes&~finishedLanes))}function markSpawnedDeferredLane(root3,spawnedLane,entangledLanes){root3.pendingLanes|=spawnedLane,root3.suspendedLanes&=~spawnedLane;var spawnedLaneIndex=31-clz32(spawnedLane);root3.entangledLanes|=spawnedLane,root3.entanglements[spawnedLaneIndex]=root3.entanglements[spawnedLaneIndex]|1073741824|entangledLanes&4194090}function markRootEntangled(root3,entangledLanes){var rootEntangledLanes=root3.entangledLanes|=entangledLanes;for(root3=root3.entanglements;rootEntangledLanes;){var index$6=31-clz32(rootEntangledLanes),lane=1<<index$6;lane&entangledLanes|root3[index$6]&entangledLanes&&(root3[index$6]|=entangledLanes),rootEntangledLanes&=~lane}}function getBumpedLaneForHydrationByLane(lane){switch(lane){case 2:lane=1;break;case 8:lane=4;break;case 32:lane=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:lane=128;break;case 268435456:lane=134217728;break;default:lane=0}return lane}function lanesToEventPriority(lanes){return lanes&=-lanes,2<lanes?8<lanes?(lanes&134217727)!==0?32:268435456:8:2}function resolveUpdatePriority(){var updatePriority=ReactDOMSharedInternals.p;return updatePriority!==0?updatePriority:(updatePriority=window.event,updatePriority===void 0?32:getEventPriority(updatePriority.type))}function runWithPriority(priority,fn){var previousPriority=ReactDOMSharedInternals.p;try{return ReactDOMSharedInternals.p=priority,fn()}finally{ReactDOMSharedInternals.p=previousPriority}}var randomKey=Math.random().toString(36).slice(2),internalInstanceKey="__reactFiber$"+randomKey,internalPropsKey="__reactProps$"+randomKey,internalContainerInstanceKey="__reactContainer$"+randomKey,internalEventHandlersKey="__reactEvents$"+randomKey,internalEventHandlerListenersKey="__reactListeners$"+randomKey,internalEventHandlesSetKey="__reactHandles$"+randomKey,internalRootNodeResourcesKey="__reactResources$"+randomKey,internalHoistableMarker="__reactMarker$"+randomKey;function detachDeletedInstance(node){delete node[internalInstanceKey],delete node[internalPropsKey],delete node[internalEventHandlersKey],delete node[internalEventHandlerListenersKey],delete node[internalEventHandlesSetKey]}function getClosestInstanceFromNode(targetNode){var targetInst=targetNode[internalInstanceKey];if(targetInst)return targetInst;for(var parentNode=targetNode.parentNode;parentNode;){if(targetInst=parentNode[internalContainerInstanceKey]||parentNode[internalInstanceKey]){if(parentNode=targetInst.alternate,targetInst.child!==null||parentNode!==null&&parentNode.child!==null)for(targetNode=getParentSuspenseInstance(targetNode);targetNode!==null;){if(parentNode=targetNode[internalInstanceKey])return parentNode;targetNode=getParentSuspenseInstance(targetNode)}return targetInst}targetNode=parentNode,parentNode=targetNode.parentNode}return null}function getInstanceFromNode(node){if(node=node[internalInstanceKey]||node[internalContainerInstanceKey]){var tag=node.tag;if(tag===5||tag===6||tag===13||tag===26||tag===27||tag===3)return node}return null}function getNodeFromInstance(inst){var tag=inst.tag;if(tag===5||tag===26||tag===27||tag===6)return inst.stateNode;throw Error(formatProdErrorMessage(33))}function getResourcesFromRoot(root3){var resources=root3[internalRootNodeResourcesKey];return resources||(resources=root3[internalRootNodeResourcesKey]={hoistableStyles:new Map,hoistableScripts:new Map}),resources}function markNodeAsHoistable(node){node[internalHoistableMarker]=!0}var allNativeEvents=new Set,registrationNameDependencies={};function registerTwoPhaseEvent(registrationName,dependencies){registerDirectEvent(registrationName,dependencies),registerDirectEvent(registrationName+"Capture",dependencies)}function registerDirectEvent(registrationName,dependencies){for(registrationNameDependencies[registrationName]=dependencies,registrationName=0;registrationName<dependencies.length;registrationName++)allNativeEvents.add(dependencies[registrationName])}var VALID_ATTRIBUTE_NAME_REGEX=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]*$"),illegalAttributeNameCache={},validatedAttributeNameCache={};function isAttributeNameSafe(attributeName){return hasOwnProperty.call(validatedAttributeNameCache,attributeName)?!0:hasOwnProperty.call(illegalAttributeNameCache,attributeName)?!1:VALID_ATTRIBUTE_NAME_REGEX.test(attributeName)?validatedAttributeNameCache[attributeName]=!0:(illegalAttributeNameCache[attributeName]=!0,!1)}function setValueForAttribute(node,name,value){if(isAttributeNameSafe(name))if(value===null)node.removeAttribute(name);else{switch(typeof value){case"undefined":case"function":case"symbol":node.removeAttribute(name);return;case"boolean":var prefix$8=name.toLowerCase().slice(0,5);if(prefix$8!=="data-"&&prefix$8!=="aria-"){node.removeAttribute(name);return}}node.setAttribute(name,""+value)}}function setValueForKnownAttribute(node,name,value){if(value===null)node.removeAttribute(name);else{switch(typeof value){case"undefined":case"function":case"symbol":case"boolean":node.removeAttribute(name);return}node.setAttribute(name,""+value)}}function setValueForNamespacedAttribute(node,namespace,name,value){if(value===null)node.removeAttribute(name);else{switch(typeof value){case"undefined":case"function":case"symbol":case"boolean":node.removeAttribute(name);return}node.setAttributeNS(namespace,name,""+value)}}var prefix,suffix;function describeBuiltInComponentFrame(name){if(prefix===void 0)try{throw Error()}catch(x){var match=x.stack.trim().match(/\n( *(at )?)/);prefix=match&&match[1]||"",suffix=-1<x.stack.indexOf(`
|
|
75
|
+
at`)?" (<anonymous>)":-1<x.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
76
|
+
`+prefix+name+suffix}var reentry=!1;function describeNativeComponentFrame(fn,construct){if(!fn||reentry)return"";reentry=!0;var previousPrepareStackTrace=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var RunInRootFrame={DetermineComponentFrameRoot:function(){try{if(construct){var Fake=function(){throw Error()};if(Object.defineProperty(Fake.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(Fake,[])}catch(x){var control=x}Reflect.construct(fn,[],Fake)}else{try{Fake.call()}catch(x$9){control=x$9}fn.call(Fake.prototype)}}else{try{throw Error()}catch(x$10){control=x$10}(Fake=fn())&&typeof Fake.catch=="function"&&Fake.catch(function(){})}}catch(sample){if(sample&&control&&typeof sample.stack=="string")return[sample.stack,control.stack]}return[null,null]}};RunInRootFrame.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var namePropDescriptor=Object.getOwnPropertyDescriptor(RunInRootFrame.DetermineComponentFrameRoot,"name");namePropDescriptor&&namePropDescriptor.configurable&&Object.defineProperty(RunInRootFrame.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var _RunInRootFrame$Deter=RunInRootFrame.DetermineComponentFrameRoot(),sampleStack=_RunInRootFrame$Deter[0],controlStack=_RunInRootFrame$Deter[1];if(sampleStack&&controlStack){var sampleLines=sampleStack.split(`
|
|
77
|
+
`),controlLines=controlStack.split(`
|
|
78
|
+
`);for(namePropDescriptor=RunInRootFrame=0;RunInRootFrame<sampleLines.length&&!sampleLines[RunInRootFrame].includes("DetermineComponentFrameRoot");)RunInRootFrame++;for(;namePropDescriptor<controlLines.length&&!controlLines[namePropDescriptor].includes("DetermineComponentFrameRoot");)namePropDescriptor++;if(RunInRootFrame===sampleLines.length||namePropDescriptor===controlLines.length)for(RunInRootFrame=sampleLines.length-1,namePropDescriptor=controlLines.length-1;1<=RunInRootFrame&&0<=namePropDescriptor&&sampleLines[RunInRootFrame]!==controlLines[namePropDescriptor];)namePropDescriptor--;for(;1<=RunInRootFrame&&0<=namePropDescriptor;RunInRootFrame--,namePropDescriptor--)if(sampleLines[RunInRootFrame]!==controlLines[namePropDescriptor]){if(RunInRootFrame!==1||namePropDescriptor!==1)do if(RunInRootFrame--,namePropDescriptor--,0>namePropDescriptor||sampleLines[RunInRootFrame]!==controlLines[namePropDescriptor]){var frame=`
|
|
79
|
+
`+sampleLines[RunInRootFrame].replace(" at new "," at ");return fn.displayName&&frame.includes("<anonymous>")&&(frame=frame.replace("<anonymous>",fn.displayName)),frame}while(1<=RunInRootFrame&&0<=namePropDescriptor);break}}}finally{reentry=!1,Error.prepareStackTrace=previousPrepareStackTrace}return(previousPrepareStackTrace=fn?fn.displayName||fn.name:"")?describeBuiltInComponentFrame(previousPrepareStackTrace):""}function describeFiber(fiber){switch(fiber.tag){case 26:case 27:case 5:return describeBuiltInComponentFrame(fiber.type);case 16:return describeBuiltInComponentFrame("Lazy");case 13:return describeBuiltInComponentFrame("Suspense");case 19:return describeBuiltInComponentFrame("SuspenseList");case 0:case 15:return describeNativeComponentFrame(fiber.type,!1);case 11:return describeNativeComponentFrame(fiber.type.render,!1);case 1:return describeNativeComponentFrame(fiber.type,!0);case 31:return describeBuiltInComponentFrame("Activity");default:return""}}function getStackByFiberInDevAndProd(workInProgress2){try{var info="";do info+=describeFiber(workInProgress2),workInProgress2=workInProgress2.return;while(workInProgress2);return info}catch(x){return`
|
|
80
|
+
Error generating stack: `+x.message+`
|
|
81
|
+
`+x.stack}}function getToStringValue(value){switch(typeof value){case"bigint":case"boolean":case"number":case"string":case"undefined":return value;case"object":return value;default:return""}}function isCheckable(elem){var type=elem.type;return(elem=elem.nodeName)&&elem.toLowerCase()==="input"&&(type==="checkbox"||type==="radio")}function trackValueOnNode(node){var valueField=isCheckable(node)?"checked":"value",descriptor=Object.getOwnPropertyDescriptor(node.constructor.prototype,valueField),currentValue=""+node[valueField];if(!node.hasOwnProperty(valueField)&&typeof descriptor<"u"&&typeof descriptor.get=="function"&&typeof descriptor.set=="function"){var get=descriptor.get,set=descriptor.set;return Object.defineProperty(node,valueField,{configurable:!0,get:function(){return get.call(this)},set:function(value){currentValue=""+value,set.call(this,value)}}),Object.defineProperty(node,valueField,{enumerable:descriptor.enumerable}),{getValue:function(){return currentValue},setValue:function(value){currentValue=""+value},stopTracking:function(){node._valueTracker=null,delete node[valueField]}}}}function track(node){node._valueTracker||(node._valueTracker=trackValueOnNode(node))}function updateValueIfChanged(node){if(!node)return!1;var tracker=node._valueTracker;if(!tracker)return!0;var lastValue=tracker.getValue(),value="";return node&&(value=isCheckable(node)?node.checked?"true":"false":node.value),node=value,node!==lastValue?(tracker.setValue(node),!0):!1}function getActiveElement(doc){if(doc=doc||(typeof document<"u"?document:void 0),typeof doc>"u")return null;try{return doc.activeElement||doc.body}catch{return doc.body}}var escapeSelectorAttributeValueInsideDoubleQuotesRegex=/[\n"\\]/g;function escapeSelectorAttributeValueInsideDoubleQuotes(value){return value.replace(escapeSelectorAttributeValueInsideDoubleQuotesRegex,function(ch){return"\\"+ch.charCodeAt(0).toString(16)+" "})}function updateInput(element,value,defaultValue,lastDefaultValue,checked,defaultChecked,type,name){element.name="",type!=null&&typeof type!="function"&&typeof type!="symbol"&&typeof type!="boolean"?element.type=type:element.removeAttribute("type"),value!=null?type==="number"?(value===0&&element.value===""||element.value!=value)&&(element.value=""+getToStringValue(value)):element.value!==""+getToStringValue(value)&&(element.value=""+getToStringValue(value)):type!=="submit"&&type!=="reset"||element.removeAttribute("value"),value!=null?setDefaultValue(element,type,getToStringValue(value)):defaultValue!=null?setDefaultValue(element,type,getToStringValue(defaultValue)):lastDefaultValue!=null&&element.removeAttribute("value"),checked==null&&defaultChecked!=null&&(element.defaultChecked=!!defaultChecked),checked!=null&&(element.checked=checked&&typeof checked!="function"&&typeof checked!="symbol"),name!=null&&typeof name!="function"&&typeof name!="symbol"&&typeof name!="boolean"?element.name=""+getToStringValue(name):element.removeAttribute("name")}function initInput(element,value,defaultValue,checked,defaultChecked,type,name,isHydrating2){if(type!=null&&typeof type!="function"&&typeof type!="symbol"&&typeof type!="boolean"&&(element.type=type),value!=null||defaultValue!=null){if(!(type!=="submit"&&type!=="reset"||value!=null))return;defaultValue=defaultValue!=null?""+getToStringValue(defaultValue):"",value=value!=null?""+getToStringValue(value):defaultValue,isHydrating2||value===element.value||(element.value=value),element.defaultValue=value}checked=checked??defaultChecked,checked=typeof checked!="function"&&typeof checked!="symbol"&&!!checked,element.checked=isHydrating2?element.checked:!!checked,element.defaultChecked=!!checked,name!=null&&typeof name!="function"&&typeof name!="symbol"&&typeof name!="boolean"&&(element.name=name)}function setDefaultValue(node,type,value){type==="number"&&getActiveElement(node.ownerDocument)===node||node.defaultValue===""+value||(node.defaultValue=""+value)}function updateOptions(node,multiple,propValue,setDefaultSelected){if(node=node.options,multiple){multiple={};for(var i=0;i<propValue.length;i++)multiple["$"+propValue[i]]=!0;for(propValue=0;propValue<node.length;propValue++)i=multiple.hasOwnProperty("$"+node[propValue].value),node[propValue].selected!==i&&(node[propValue].selected=i),i&&setDefaultSelected&&(node[propValue].defaultSelected=!0)}else{for(propValue=""+getToStringValue(propValue),multiple=null,i=0;i<node.length;i++){if(node[i].value===propValue){node[i].selected=!0,setDefaultSelected&&(node[i].defaultSelected=!0);return}multiple!==null||node[i].disabled||(multiple=node[i])}multiple!==null&&(multiple.selected=!0)}}function updateTextarea(element,value,defaultValue){if(value!=null&&(value=""+getToStringValue(value),value!==element.value&&(element.value=value),defaultValue==null)){element.defaultValue!==value&&(element.defaultValue=value);return}element.defaultValue=defaultValue!=null?""+getToStringValue(defaultValue):""}function initTextarea(element,value,defaultValue,children){if(value==null){if(children!=null){if(defaultValue!=null)throw Error(formatProdErrorMessage(92));if(isArrayImpl(children)){if(1<children.length)throw Error(formatProdErrorMessage(93));children=children[0]}defaultValue=children}defaultValue==null&&(defaultValue=""),value=defaultValue}defaultValue=getToStringValue(value),element.defaultValue=defaultValue,children=element.textContent,children===defaultValue&&children!==""&&children!==null&&(element.value=children)}function setTextContent(node,text){if(text){var firstChild=node.firstChild;if(firstChild&&firstChild===node.lastChild&&firstChild.nodeType===3){firstChild.nodeValue=text;return}}node.textContent=text}var unitlessNumbers=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 setValueForStyle(style2,styleName,value){var isCustomProperty=styleName.indexOf("--")===0;value==null||typeof value=="boolean"||value===""?isCustomProperty?style2.setProperty(styleName,""):styleName==="float"?style2.cssFloat="":style2[styleName]="":isCustomProperty?style2.setProperty(styleName,value):typeof value!="number"||value===0||unitlessNumbers.has(styleName)?styleName==="float"?style2.cssFloat=value:style2[styleName]=(""+value).trim():style2[styleName]=value+"px"}function setValueForStyles(node,styles,prevStyles){if(styles!=null&&typeof styles!="object")throw Error(formatProdErrorMessage(62));if(node=node.style,prevStyles!=null){for(var styleName in prevStyles)!prevStyles.hasOwnProperty(styleName)||styles!=null&&styles.hasOwnProperty(styleName)||(styleName.indexOf("--")===0?node.setProperty(styleName,""):styleName==="float"?node.cssFloat="":node[styleName]="");for(var styleName$16 in styles)styleName=styles[styleName$16],styles.hasOwnProperty(styleName$16)&&prevStyles[styleName$16]!==styleName&&setValueForStyle(node,styleName$16,styleName)}else for(var styleName$17 in styles)styles.hasOwnProperty(styleName$17)&&setValueForStyle(node,styleName$17,styles[styleName$17])}function isCustomElement(tagName){if(tagName.indexOf("-")===-1)return!1;switch(tagName){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 aliases=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"]]),isJavaScriptProtocol=/^[\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 sanitizeURL(url){return isJavaScriptProtocol.test(""+url)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":url}var currentReplayingEvent=null;function getEventTarget(nativeEvent){return nativeEvent=nativeEvent.target||nativeEvent.srcElement||window,nativeEvent.correspondingUseElement&&(nativeEvent=nativeEvent.correspondingUseElement),nativeEvent.nodeType===3?nativeEvent.parentNode:nativeEvent}var restoreTarget=null,restoreQueue=null;function restoreStateOfTarget(target){var internalInstance=getInstanceFromNode(target);if(internalInstance&&(target=internalInstance.stateNode)){var props=target[internalPropsKey]||null;a:switch(target=internalInstance.stateNode,internalInstance.type){case"input":if(updateInput(target,props.value,props.defaultValue,props.defaultValue,props.checked,props.defaultChecked,props.type,props.name),internalInstance=props.name,props.type==="radio"&&internalInstance!=null){for(props=target;props.parentNode;)props=props.parentNode;for(props=props.querySelectorAll('input[name="'+escapeSelectorAttributeValueInsideDoubleQuotes(""+internalInstance)+'"][type="radio"]'),internalInstance=0;internalInstance<props.length;internalInstance++){var otherNode=props[internalInstance];if(otherNode!==target&&otherNode.form===target.form){var otherProps=otherNode[internalPropsKey]||null;if(!otherProps)throw Error(formatProdErrorMessage(90));updateInput(otherNode,otherProps.value,otherProps.defaultValue,otherProps.defaultValue,otherProps.checked,otherProps.defaultChecked,otherProps.type,otherProps.name)}}for(internalInstance=0;internalInstance<props.length;internalInstance++)otherNode=props[internalInstance],otherNode.form===target.form&&updateValueIfChanged(otherNode)}break a;case"textarea":updateTextarea(target,props.value,props.defaultValue);break a;case"select":internalInstance=props.value,internalInstance!=null&&updateOptions(target,!!props.multiple,internalInstance,!1)}}}var isInsideEventHandler=!1;function batchedUpdates$1(fn,a2,b){if(isInsideEventHandler)return fn(a2,b);isInsideEventHandler=!0;try{var JSCompiler_inline_result=fn(a2);return JSCompiler_inline_result}finally{if(isInsideEventHandler=!1,(restoreTarget!==null||restoreQueue!==null)&&(flushSyncWork$1(),restoreTarget&&(a2=restoreTarget,fn=restoreQueue,restoreQueue=restoreTarget=null,restoreStateOfTarget(a2),fn)))for(a2=0;a2<fn.length;a2++)restoreStateOfTarget(fn[a2])}}function getListener(inst,registrationName){var stateNode=inst.stateNode;if(stateNode===null)return null;var props=stateNode[internalPropsKey]||null;if(props===null)return null;stateNode=props[registrationName];a:switch(registrationName){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(props=!props.disabled)||(inst=inst.type,props=!(inst==="button"||inst==="input"||inst==="select"||inst==="textarea")),inst=!props;break a;default:inst=!1}if(inst)return null;if(stateNode&&typeof stateNode!="function")throw Error(formatProdErrorMessage(231,registrationName,typeof stateNode));return stateNode}var canUseDOM=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),passiveBrowserEventsSupported=!1;if(canUseDOM)try{var options={};Object.defineProperty(options,"passive",{get:function(){passiveBrowserEventsSupported=!0}}),window.addEventListener("test",options,options),window.removeEventListener("test",options,options)}catch{passiveBrowserEventsSupported=!1}var root2=null,startText=null,fallbackText=null;function getData(){if(fallbackText)return fallbackText;var start,startValue=startText,startLength=startValue.length,end,endValue="value"in root2?root2.value:root2.textContent,endLength=endValue.length;for(start=0;start<startLength&&startValue[start]===endValue[start];start++);var minEnd=startLength-start;for(end=1;end<=minEnd&&startValue[startLength-end]===endValue[endLength-end];end++);return fallbackText=endValue.slice(start,1<end?1-end:void 0)}function getEventCharCode(nativeEvent){var keyCode=nativeEvent.keyCode;return"charCode"in nativeEvent?(nativeEvent=nativeEvent.charCode,nativeEvent===0&&keyCode===13&&(nativeEvent=13)):nativeEvent=keyCode,nativeEvent===10&&(nativeEvent=13),32<=nativeEvent||nativeEvent===13?nativeEvent:0}function functionThatReturnsTrue(){return!0}function functionThatReturnsFalse(){return!1}function createSyntheticEvent(Interface){function SyntheticBaseEvent(reactName,reactEventType,targetInst,nativeEvent,nativeEventTarget){this._reactName=reactName,this._targetInst=targetInst,this.type=reactEventType,this.nativeEvent=nativeEvent,this.target=nativeEventTarget,this.currentTarget=null;for(var propName in Interface)Interface.hasOwnProperty(propName)&&(reactName=Interface[propName],this[propName]=reactName?reactName(nativeEvent):nativeEvent[propName]);return this.isDefaultPrevented=(nativeEvent.defaultPrevented!=null?nativeEvent.defaultPrevented:nativeEvent.returnValue===!1)?functionThatReturnsTrue:functionThatReturnsFalse,this.isPropagationStopped=functionThatReturnsFalse,this}return assign(SyntheticBaseEvent.prototype,{preventDefault:function(){this.defaultPrevented=!0;var event=this.nativeEvent;event&&(event.preventDefault?event.preventDefault():typeof event.returnValue!="unknown"&&(event.returnValue=!1),this.isDefaultPrevented=functionThatReturnsTrue)},stopPropagation:function(){var event=this.nativeEvent;event&&(event.stopPropagation?event.stopPropagation():typeof event.cancelBubble!="unknown"&&(event.cancelBubble=!0),this.isPropagationStopped=functionThatReturnsTrue)},persist:function(){},isPersistent:functionThatReturnsTrue}),SyntheticBaseEvent}var EventInterface={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(event){return event.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},SyntheticEvent=createSyntheticEvent(EventInterface),UIEventInterface=assign({},EventInterface,{view:0,detail:0}),SyntheticUIEvent=createSyntheticEvent(UIEventInterface),lastMovementX,lastMovementY,lastMouseEvent,MouseEventInterface=assign({},UIEventInterface,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:getEventModifierState,button:0,buttons:0,relatedTarget:function(event){return event.relatedTarget===void 0?event.fromElement===event.srcElement?event.toElement:event.fromElement:event.relatedTarget},movementX:function(event){return"movementX"in event?event.movementX:(event!==lastMouseEvent&&(lastMouseEvent&&event.type==="mousemove"?(lastMovementX=event.screenX-lastMouseEvent.screenX,lastMovementY=event.screenY-lastMouseEvent.screenY):lastMovementY=lastMovementX=0,lastMouseEvent=event),lastMovementX)},movementY:function(event){return"movementY"in event?event.movementY:lastMovementY}}),SyntheticMouseEvent=createSyntheticEvent(MouseEventInterface),DragEventInterface=assign({},MouseEventInterface,{dataTransfer:0}),SyntheticDragEvent=createSyntheticEvent(DragEventInterface),FocusEventInterface=assign({},UIEventInterface,{relatedTarget:0}),SyntheticFocusEvent=createSyntheticEvent(FocusEventInterface),AnimationEventInterface=assign({},EventInterface,{animationName:0,elapsedTime:0,pseudoElement:0}),SyntheticAnimationEvent=createSyntheticEvent(AnimationEventInterface),ClipboardEventInterface=assign({},EventInterface,{clipboardData:function(event){return"clipboardData"in event?event.clipboardData:window.clipboardData}}),SyntheticClipboardEvent=createSyntheticEvent(ClipboardEventInterface),CompositionEventInterface=assign({},EventInterface,{data:0}),SyntheticCompositionEvent=createSyntheticEvent(CompositionEventInterface),normalizeKey={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},translateToKey={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"},modifierKeyToProp={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function modifierStateGetter(keyArg){var nativeEvent=this.nativeEvent;return nativeEvent.getModifierState?nativeEvent.getModifierState(keyArg):(keyArg=modifierKeyToProp[keyArg])?!!nativeEvent[keyArg]:!1}function getEventModifierState(){return modifierStateGetter}var KeyboardEventInterface=assign({},UIEventInterface,{key:function(nativeEvent){if(nativeEvent.key){var key=normalizeKey[nativeEvent.key]||nativeEvent.key;if(key!=="Unidentified")return key}return nativeEvent.type==="keypress"?(nativeEvent=getEventCharCode(nativeEvent),nativeEvent===13?"Enter":String.fromCharCode(nativeEvent)):nativeEvent.type==="keydown"||nativeEvent.type==="keyup"?translateToKey[nativeEvent.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:getEventModifierState,charCode:function(event){return event.type==="keypress"?getEventCharCode(event):0},keyCode:function(event){return event.type==="keydown"||event.type==="keyup"?event.keyCode:0},which:function(event){return event.type==="keypress"?getEventCharCode(event):event.type==="keydown"||event.type==="keyup"?event.keyCode:0}}),SyntheticKeyboardEvent=createSyntheticEvent(KeyboardEventInterface),PointerEventInterface=assign({},MouseEventInterface,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),SyntheticPointerEvent=createSyntheticEvent(PointerEventInterface),TouchEventInterface=assign({},UIEventInterface,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:getEventModifierState}),SyntheticTouchEvent=createSyntheticEvent(TouchEventInterface),TransitionEventInterface=assign({},EventInterface,{propertyName:0,elapsedTime:0,pseudoElement:0}),SyntheticTransitionEvent=createSyntheticEvent(TransitionEventInterface),WheelEventInterface=assign({},MouseEventInterface,{deltaX:function(event){return"deltaX"in event?event.deltaX:"wheelDeltaX"in event?-event.wheelDeltaX:0},deltaY:function(event){return"deltaY"in event?event.deltaY:"wheelDeltaY"in event?-event.wheelDeltaY:"wheelDelta"in event?-event.wheelDelta:0},deltaZ:0,deltaMode:0}),SyntheticWheelEvent=createSyntheticEvent(WheelEventInterface),ToggleEventInterface=assign({},EventInterface,{newState:0,oldState:0}),SyntheticToggleEvent=createSyntheticEvent(ToggleEventInterface),END_KEYCODES=[9,13,27,32],canUseCompositionEvent=canUseDOM&&"CompositionEvent"in window,documentMode=null;canUseDOM&&"documentMode"in document&&(documentMode=document.documentMode);var canUseTextInputEvent=canUseDOM&&"TextEvent"in window&&!documentMode,useFallbackCompositionData=canUseDOM&&(!canUseCompositionEvent||documentMode&&8<documentMode&&11>=documentMode),SPACEBAR_CHAR=" ",hasSpaceKeypress=!1;function isFallbackCompositionEnd(domEventName,nativeEvent){switch(domEventName){case"keyup":return END_KEYCODES.indexOf(nativeEvent.keyCode)!==-1;case"keydown":return nativeEvent.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function getDataFromCustomEvent(nativeEvent){return nativeEvent=nativeEvent.detail,typeof nativeEvent=="object"&&"data"in nativeEvent?nativeEvent.data:null}var isComposing=!1;function getNativeBeforeInputChars(domEventName,nativeEvent){switch(domEventName){case"compositionend":return getDataFromCustomEvent(nativeEvent);case"keypress":return nativeEvent.which!==32?null:(hasSpaceKeypress=!0,SPACEBAR_CHAR);case"textInput":return domEventName=nativeEvent.data,domEventName===SPACEBAR_CHAR&&hasSpaceKeypress?null:domEventName;default:return null}}function getFallbackBeforeInputChars(domEventName,nativeEvent){if(isComposing)return domEventName==="compositionend"||!canUseCompositionEvent&&isFallbackCompositionEnd(domEventName,nativeEvent)?(domEventName=getData(),fallbackText=startText=root2=null,isComposing=!1,domEventName):null;switch(domEventName){case"paste":return null;case"keypress":if(!(nativeEvent.ctrlKey||nativeEvent.altKey||nativeEvent.metaKey)||nativeEvent.ctrlKey&&nativeEvent.altKey){if(nativeEvent.char&&1<nativeEvent.char.length)return nativeEvent.char;if(nativeEvent.which)return String.fromCharCode(nativeEvent.which)}return null;case"compositionend":return useFallbackCompositionData&&nativeEvent.locale!=="ko"?null:nativeEvent.data;default:return null}}var supportedInputTypes={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 isTextInputElement(elem){var nodeName=elem&&elem.nodeName&&elem.nodeName.toLowerCase();return nodeName==="input"?!!supportedInputTypes[elem.type]:nodeName==="textarea"}function createAndAccumulateChangeEvent(dispatchQueue,inst,nativeEvent,target){restoreTarget?restoreQueue?restoreQueue.push(target):restoreQueue=[target]:restoreTarget=target,inst=accumulateTwoPhaseListeners(inst,"onChange"),0<inst.length&&(nativeEvent=new SyntheticEvent("onChange","change",null,nativeEvent,target),dispatchQueue.push({event:nativeEvent,listeners:inst}))}var activeElement$1=null,activeElementInst$1=null;function runEventInBatch(dispatchQueue){processDispatchQueue(dispatchQueue,0)}function getInstIfValueChanged(targetInst){var targetNode=getNodeFromInstance(targetInst);if(updateValueIfChanged(targetNode))return targetInst}function getTargetInstForChangeEvent(domEventName,targetInst){if(domEventName==="change")return targetInst}var isInputEventSupported=!1;if(canUseDOM){var JSCompiler_inline_result$jscomp$282;if(canUseDOM){var isSupported$jscomp$inline_417="oninput"in document;if(!isSupported$jscomp$inline_417){var element$jscomp$inline_418=document.createElement("div");element$jscomp$inline_418.setAttribute("oninput","return;"),isSupported$jscomp$inline_417=typeof element$jscomp$inline_418.oninput=="function"}JSCompiler_inline_result$jscomp$282=isSupported$jscomp$inline_417}else JSCompiler_inline_result$jscomp$282=!1;isInputEventSupported=JSCompiler_inline_result$jscomp$282&&(!document.documentMode||9<document.documentMode)}function stopWatchingForValueChange(){activeElement$1&&(activeElement$1.detachEvent("onpropertychange",handlePropertyChange),activeElementInst$1=activeElement$1=null)}function handlePropertyChange(nativeEvent){if(nativeEvent.propertyName==="value"&&getInstIfValueChanged(activeElementInst$1)){var dispatchQueue=[];createAndAccumulateChangeEvent(dispatchQueue,activeElementInst$1,nativeEvent,getEventTarget(nativeEvent)),batchedUpdates$1(runEventInBatch,dispatchQueue)}}function handleEventsForInputEventPolyfill(domEventName,target,targetInst){domEventName==="focusin"?(stopWatchingForValueChange(),activeElement$1=target,activeElementInst$1=targetInst,activeElement$1.attachEvent("onpropertychange",handlePropertyChange)):domEventName==="focusout"&&stopWatchingForValueChange()}function getTargetInstForInputEventPolyfill(domEventName){if(domEventName==="selectionchange"||domEventName==="keyup"||domEventName==="keydown")return getInstIfValueChanged(activeElementInst$1)}function getTargetInstForClickEvent(domEventName,targetInst){if(domEventName==="click")return getInstIfValueChanged(targetInst)}function getTargetInstForInputOrChangeEvent(domEventName,targetInst){if(domEventName==="input"||domEventName==="change")return getInstIfValueChanged(targetInst)}function is(x,y){return x===y&&(x!==0||1/x===1/y)||x!==x&&y!==y}var objectIs=typeof Object.is=="function"?Object.is:is;function shallowEqual(objA,objB){if(objectIs(objA,objB))return!0;if(typeof objA!="object"||objA===null||typeof objB!="object"||objB===null)return!1;var keysA=Object.keys(objA),keysB=Object.keys(objB);if(keysA.length!==keysB.length)return!1;for(keysB=0;keysB<keysA.length;keysB++){var currentKey=keysA[keysB];if(!hasOwnProperty.call(objB,currentKey)||!objectIs(objA[currentKey],objB[currentKey]))return!1}return!0}function getLeafNode(node){for(;node&&node.firstChild;)node=node.firstChild;return node}function getNodeForCharacterOffset(root3,offset){var node=getLeafNode(root3);root3=0;for(var nodeEnd;node;){if(node.nodeType===3){if(nodeEnd=root3+node.textContent.length,root3<=offset&&nodeEnd>=offset)return{node,offset:offset-root3};root3=nodeEnd}a:{for(;node;){if(node.nextSibling){node=node.nextSibling;break a}node=node.parentNode}node=void 0}node=getLeafNode(node)}}function containsNode(outerNode,innerNode){return outerNode&&innerNode?outerNode===innerNode?!0:outerNode&&outerNode.nodeType===3?!1:innerNode&&innerNode.nodeType===3?containsNode(outerNode,innerNode.parentNode):"contains"in outerNode?outerNode.contains(innerNode):outerNode.compareDocumentPosition?!!(outerNode.compareDocumentPosition(innerNode)&16):!1:!1}function getActiveElementDeep(containerInfo){containerInfo=containerInfo!=null&&containerInfo.ownerDocument!=null&&containerInfo.ownerDocument.defaultView!=null?containerInfo.ownerDocument.defaultView:window;for(var element=getActiveElement(containerInfo.document);element instanceof containerInfo.HTMLIFrameElement;){try{var JSCompiler_inline_result=typeof element.contentWindow.location.href=="string"}catch{JSCompiler_inline_result=!1}if(JSCompiler_inline_result)containerInfo=element.contentWindow;else break;element=getActiveElement(containerInfo.document)}return element}function hasSelectionCapabilities(elem){var nodeName=elem&&elem.nodeName&&elem.nodeName.toLowerCase();return nodeName&&(nodeName==="input"&&(elem.type==="text"||elem.type==="search"||elem.type==="tel"||elem.type==="url"||elem.type==="password")||nodeName==="textarea"||elem.contentEditable==="true")}var skipSelectionChangeEvent=canUseDOM&&"documentMode"in document&&11>=document.documentMode,activeElement=null,activeElementInst=null,lastSelection=null,mouseDown=!1;function constructSelectEvent(dispatchQueue,nativeEvent,nativeEventTarget){var doc=nativeEventTarget.window===nativeEventTarget?nativeEventTarget.document:nativeEventTarget.nodeType===9?nativeEventTarget:nativeEventTarget.ownerDocument;mouseDown||activeElement==null||activeElement!==getActiveElement(doc)||(doc=activeElement,"selectionStart"in doc&&hasSelectionCapabilities(doc)?doc={start:doc.selectionStart,end:doc.selectionEnd}:(doc=(doc.ownerDocument&&doc.ownerDocument.defaultView||window).getSelection(),doc={anchorNode:doc.anchorNode,anchorOffset:doc.anchorOffset,focusNode:doc.focusNode,focusOffset:doc.focusOffset}),lastSelection&&shallowEqual(lastSelection,doc)||(lastSelection=doc,doc=accumulateTwoPhaseListeners(activeElementInst,"onSelect"),0<doc.length&&(nativeEvent=new SyntheticEvent("onSelect","select",null,nativeEvent,nativeEventTarget),dispatchQueue.push({event:nativeEvent,listeners:doc}),nativeEvent.target=activeElement)))}function makePrefixMap(styleProp,eventName){var prefixes={};return prefixes[styleProp.toLowerCase()]=eventName.toLowerCase(),prefixes["Webkit"+styleProp]="webkit"+eventName,prefixes["Moz"+styleProp]="moz"+eventName,prefixes}var vendorPrefixes={animationend:makePrefixMap("Animation","AnimationEnd"),animationiteration:makePrefixMap("Animation","AnimationIteration"),animationstart:makePrefixMap("Animation","AnimationStart"),transitionrun:makePrefixMap("Transition","TransitionRun"),transitionstart:makePrefixMap("Transition","TransitionStart"),transitioncancel:makePrefixMap("Transition","TransitionCancel"),transitionend:makePrefixMap("Transition","TransitionEnd")},prefixedEventNames={},style={};canUseDOM&&(style=document.createElement("div").style,"AnimationEvent"in window||(delete vendorPrefixes.animationend.animation,delete vendorPrefixes.animationiteration.animation,delete vendorPrefixes.animationstart.animation),"TransitionEvent"in window||delete vendorPrefixes.transitionend.transition);function getVendorPrefixedEventName(eventName){if(prefixedEventNames[eventName])return prefixedEventNames[eventName];if(!vendorPrefixes[eventName])return eventName;var prefixMap=vendorPrefixes[eventName],styleProp;for(styleProp in prefixMap)if(prefixMap.hasOwnProperty(styleProp)&&styleProp in style)return prefixedEventNames[eventName]=prefixMap[styleProp];return eventName}var ANIMATION_END=getVendorPrefixedEventName("animationend"),ANIMATION_ITERATION=getVendorPrefixedEventName("animationiteration"),ANIMATION_START=getVendorPrefixedEventName("animationstart"),TRANSITION_RUN=getVendorPrefixedEventName("transitionrun"),TRANSITION_START=getVendorPrefixedEventName("transitionstart"),TRANSITION_CANCEL=getVendorPrefixedEventName("transitioncancel"),TRANSITION_END=getVendorPrefixedEventName("transitionend"),topLevelEventsToReactNames=new Map,simpleEventPluginEvents="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(" ");simpleEventPluginEvents.push("scrollEnd");function registerSimpleEvent(domEventName,reactName){topLevelEventsToReactNames.set(domEventName,reactName),registerTwoPhaseEvent(reactName,[domEventName])}var CapturedStacks=new WeakMap;function createCapturedValueAtFiber(value,source){if(typeof value=="object"&&value!==null){var existing=CapturedStacks.get(value);return existing!==void 0?existing:(source={value,source,stack:getStackByFiberInDevAndProd(source)},CapturedStacks.set(value,source),source)}return{value,source,stack:getStackByFiberInDevAndProd(source)}}var concurrentQueues=[],concurrentQueuesIndex=0,concurrentlyUpdatedLanes=0;function finishQueueingConcurrentUpdates(){for(var endIndex=concurrentQueuesIndex,i=concurrentlyUpdatedLanes=concurrentQueuesIndex=0;i<endIndex;){var fiber=concurrentQueues[i];concurrentQueues[i++]=null;var queue=concurrentQueues[i];concurrentQueues[i++]=null;var update=concurrentQueues[i];concurrentQueues[i++]=null;var lane=concurrentQueues[i];if(concurrentQueues[i++]=null,queue!==null&&update!==null){var pending=queue.pending;pending===null?update.next=update:(update.next=pending.next,pending.next=update),queue.pending=update}lane!==0&&markUpdateLaneFromFiberToRoot(fiber,update,lane)}}function enqueueUpdate$1(fiber,queue,update,lane){concurrentQueues[concurrentQueuesIndex++]=fiber,concurrentQueues[concurrentQueuesIndex++]=queue,concurrentQueues[concurrentQueuesIndex++]=update,concurrentQueues[concurrentQueuesIndex++]=lane,concurrentlyUpdatedLanes|=lane,fiber.lanes|=lane,fiber=fiber.alternate,fiber!==null&&(fiber.lanes|=lane)}function enqueueConcurrentHookUpdate(fiber,queue,update,lane){return enqueueUpdate$1(fiber,queue,update,lane),getRootForUpdatedFiber(fiber)}function enqueueConcurrentRenderForLane(fiber,lane){return enqueueUpdate$1(fiber,null,null,lane),getRootForUpdatedFiber(fiber)}function markUpdateLaneFromFiberToRoot(sourceFiber,update,lane){sourceFiber.lanes|=lane;var alternate=sourceFiber.alternate;alternate!==null&&(alternate.lanes|=lane);for(var isHidden=!1,parent=sourceFiber.return;parent!==null;)parent.childLanes|=lane,alternate=parent.alternate,alternate!==null&&(alternate.childLanes|=lane),parent.tag===22&&(sourceFiber=parent.stateNode,sourceFiber===null||sourceFiber._visibility&1||(isHidden=!0)),sourceFiber=parent,parent=parent.return;return sourceFiber.tag===3?(parent=sourceFiber.stateNode,isHidden&&update!==null&&(isHidden=31-clz32(lane),sourceFiber=parent.hiddenUpdates,alternate=sourceFiber[isHidden],alternate===null?sourceFiber[isHidden]=[update]:alternate.push(update),update.lane=lane|536870912),parent):null}function getRootForUpdatedFiber(sourceFiber){if(50<nestedUpdateCount)throw nestedUpdateCount=0,rootWithNestedUpdates=null,Error(formatProdErrorMessage(185));for(var parent=sourceFiber.return;parent!==null;)sourceFiber=parent,parent=sourceFiber.return;return sourceFiber.tag===3?sourceFiber.stateNode:null}var emptyContextObject={};function FiberNode(tag,pendingProps,key,mode){this.tag=tag,this.key=key,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=pendingProps,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=mode,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function createFiberImplClass(tag,pendingProps,key,mode){return new FiberNode(tag,pendingProps,key,mode)}function shouldConstruct(Component){return Component=Component.prototype,!(!Component||!Component.isReactComponent)}function createWorkInProgress(current,pendingProps){var workInProgress2=current.alternate;return workInProgress2===null?(workInProgress2=createFiberImplClass(current.tag,pendingProps,current.key,current.mode),workInProgress2.elementType=current.elementType,workInProgress2.type=current.type,workInProgress2.stateNode=current.stateNode,workInProgress2.alternate=current,current.alternate=workInProgress2):(workInProgress2.pendingProps=pendingProps,workInProgress2.type=current.type,workInProgress2.flags=0,workInProgress2.subtreeFlags=0,workInProgress2.deletions=null),workInProgress2.flags=current.flags&65011712,workInProgress2.childLanes=current.childLanes,workInProgress2.lanes=current.lanes,workInProgress2.child=current.child,workInProgress2.memoizedProps=current.memoizedProps,workInProgress2.memoizedState=current.memoizedState,workInProgress2.updateQueue=current.updateQueue,pendingProps=current.dependencies,workInProgress2.dependencies=pendingProps===null?null:{lanes:pendingProps.lanes,firstContext:pendingProps.firstContext},workInProgress2.sibling=current.sibling,workInProgress2.index=current.index,workInProgress2.ref=current.ref,workInProgress2.refCleanup=current.refCleanup,workInProgress2}function resetWorkInProgress(workInProgress2,renderLanes2){workInProgress2.flags&=65011714;var current=workInProgress2.alternate;return current===null?(workInProgress2.childLanes=0,workInProgress2.lanes=renderLanes2,workInProgress2.child=null,workInProgress2.subtreeFlags=0,workInProgress2.memoizedProps=null,workInProgress2.memoizedState=null,workInProgress2.updateQueue=null,workInProgress2.dependencies=null,workInProgress2.stateNode=null):(workInProgress2.childLanes=current.childLanes,workInProgress2.lanes=current.lanes,workInProgress2.child=current.child,workInProgress2.subtreeFlags=0,workInProgress2.deletions=null,workInProgress2.memoizedProps=current.memoizedProps,workInProgress2.memoizedState=current.memoizedState,workInProgress2.updateQueue=current.updateQueue,workInProgress2.type=current.type,renderLanes2=current.dependencies,workInProgress2.dependencies=renderLanes2===null?null:{lanes:renderLanes2.lanes,firstContext:renderLanes2.firstContext}),workInProgress2}function createFiberFromTypeAndProps(type,key,pendingProps,owner,mode,lanes){var fiberTag=0;if(owner=type,typeof type=="function")shouldConstruct(type)&&(fiberTag=1);else if(typeof type=="string")fiberTag=isHostHoistableType(type,pendingProps,contextStackCursor.current)?26:type==="html"||type==="head"||type==="body"?27:5;else a:switch(type){case REACT_ACTIVITY_TYPE:return type=createFiberImplClass(31,pendingProps,key,mode),type.elementType=REACT_ACTIVITY_TYPE,type.lanes=lanes,type;case REACT_FRAGMENT_TYPE:return createFiberFromFragment(pendingProps.children,mode,lanes,key);case REACT_STRICT_MODE_TYPE:fiberTag=8,mode|=24;break;case REACT_PROFILER_TYPE:return type=createFiberImplClass(12,pendingProps,key,mode|2),type.elementType=REACT_PROFILER_TYPE,type.lanes=lanes,type;case REACT_SUSPENSE_TYPE:return type=createFiberImplClass(13,pendingProps,key,mode),type.elementType=REACT_SUSPENSE_TYPE,type.lanes=lanes,type;case REACT_SUSPENSE_LIST_TYPE:return type=createFiberImplClass(19,pendingProps,key,mode),type.elementType=REACT_SUSPENSE_LIST_TYPE,type.lanes=lanes,type;default:if(typeof type=="object"&&type!==null)switch(type.$$typeof){case REACT_PROVIDER_TYPE:case REACT_CONTEXT_TYPE:fiberTag=10;break a;case REACT_CONSUMER_TYPE:fiberTag=9;break a;case REACT_FORWARD_REF_TYPE:fiberTag=11;break a;case REACT_MEMO_TYPE:fiberTag=14;break a;case REACT_LAZY_TYPE:fiberTag=16,owner=null;break a}fiberTag=29,pendingProps=Error(formatProdErrorMessage(130,type===null?"null":typeof type,"")),owner=null}return key=createFiberImplClass(fiberTag,pendingProps,key,mode),key.elementType=type,key.type=owner,key.lanes=lanes,key}function createFiberFromFragment(elements,mode,lanes,key){return elements=createFiberImplClass(7,elements,key,mode),elements.lanes=lanes,elements}function createFiberFromText(content,mode,lanes){return content=createFiberImplClass(6,content,null,mode),content.lanes=lanes,content}function createFiberFromPortal(portal,mode,lanes){return mode=createFiberImplClass(4,portal.children!==null?portal.children:[],portal.key,mode),mode.lanes=lanes,mode.stateNode={containerInfo:portal.containerInfo,pendingChildren:null,implementation:portal.implementation},mode}var forkStack=[],forkStackIndex=0,treeForkProvider=null,treeForkCount=0,idStack=[],idStackIndex=0,treeContextProvider=null,treeContextId=1,treeContextOverflow="";function pushTreeFork(workInProgress2,totalChildren){forkStack[forkStackIndex++]=treeForkCount,forkStack[forkStackIndex++]=treeForkProvider,treeForkProvider=workInProgress2,treeForkCount=totalChildren}function pushTreeId(workInProgress2,totalChildren,index2){idStack[idStackIndex++]=treeContextId,idStack[idStackIndex++]=treeContextOverflow,idStack[idStackIndex++]=treeContextProvider,treeContextProvider=workInProgress2;var baseIdWithLeadingBit=treeContextId;workInProgress2=treeContextOverflow;var baseLength=32-clz32(baseIdWithLeadingBit)-1;baseIdWithLeadingBit&=~(1<<baseLength),index2+=1;var length=32-clz32(totalChildren)+baseLength;if(30<length){var numberOfOverflowBits=baseLength-baseLength%5;length=(baseIdWithLeadingBit&(1<<numberOfOverflowBits)-1).toString(32),baseIdWithLeadingBit>>=numberOfOverflowBits,baseLength-=numberOfOverflowBits,treeContextId=1<<32-clz32(totalChildren)+baseLength|index2<<baseLength|baseIdWithLeadingBit,treeContextOverflow=length+workInProgress2}else treeContextId=1<<length|index2<<baseLength|baseIdWithLeadingBit,treeContextOverflow=workInProgress2}function pushMaterializedTreeId(workInProgress2){workInProgress2.return!==null&&(pushTreeFork(workInProgress2,1),pushTreeId(workInProgress2,1,0))}function popTreeContext(workInProgress2){for(;workInProgress2===treeForkProvider;)treeForkProvider=forkStack[--forkStackIndex],forkStack[forkStackIndex]=null,treeForkCount=forkStack[--forkStackIndex],forkStack[forkStackIndex]=null;for(;workInProgress2===treeContextProvider;)treeContextProvider=idStack[--idStackIndex],idStack[idStackIndex]=null,treeContextOverflow=idStack[--idStackIndex],idStack[idStackIndex]=null,treeContextId=idStack[--idStackIndex],idStack[idStackIndex]=null}var hydrationParentFiber=null,nextHydratableInstance=null,isHydrating=!1,hydrationErrors=null,rootOrSingletonContext=!1,HydrationMismatchException=Error(formatProdErrorMessage(519));function throwOnHydrationMismatch(fiber){var error=Error(formatProdErrorMessage(418,""));throw queueHydrationError(createCapturedValueAtFiber(error,fiber)),HydrationMismatchException}function prepareToHydrateHostInstance(fiber){var instance=fiber.stateNode,type=fiber.type,props=fiber.memoizedProps;switch(instance[internalInstanceKey]=fiber,instance[internalPropsKey]=props,type){case"dialog":listenToNonDelegatedEvent("cancel",instance),listenToNonDelegatedEvent("close",instance);break;case"iframe":case"object":case"embed":listenToNonDelegatedEvent("load",instance);break;case"video":case"audio":for(type=0;type<mediaEventTypes.length;type++)listenToNonDelegatedEvent(mediaEventTypes[type],instance);break;case"source":listenToNonDelegatedEvent("error",instance);break;case"img":case"image":case"link":listenToNonDelegatedEvent("error",instance),listenToNonDelegatedEvent("load",instance);break;case"details":listenToNonDelegatedEvent("toggle",instance);break;case"input":listenToNonDelegatedEvent("invalid",instance),initInput(instance,props.value,props.defaultValue,props.checked,props.defaultChecked,props.type,props.name,!0),track(instance);break;case"select":listenToNonDelegatedEvent("invalid",instance);break;case"textarea":listenToNonDelegatedEvent("invalid",instance),initTextarea(instance,props.value,props.defaultValue,props.children),track(instance)}type=props.children,typeof type!="string"&&typeof type!="number"&&typeof type!="bigint"||instance.textContent===""+type||props.suppressHydrationWarning===!0||checkForUnmatchedText(instance.textContent,type)?(props.popover!=null&&(listenToNonDelegatedEvent("beforetoggle",instance),listenToNonDelegatedEvent("toggle",instance)),props.onScroll!=null&&listenToNonDelegatedEvent("scroll",instance),props.onScrollEnd!=null&&listenToNonDelegatedEvent("scrollend",instance),props.onClick!=null&&(instance.onclick=noop$1),instance=!0):instance=!1,instance||throwOnHydrationMismatch(fiber)}function popToNextHostParent(fiber){for(hydrationParentFiber=fiber.return;hydrationParentFiber;)switch(hydrationParentFiber.tag){case 5:case 13:rootOrSingletonContext=!1;return;case 27:case 3:rootOrSingletonContext=!0;return;default:hydrationParentFiber=hydrationParentFiber.return}}function popHydrationState(fiber){if(fiber!==hydrationParentFiber)return!1;if(!isHydrating)return popToNextHostParent(fiber),isHydrating=!0,!1;var tag=fiber.tag,JSCompiler_temp;if((JSCompiler_temp=tag!==3&&tag!==27)&&((JSCompiler_temp=tag===5)&&(JSCompiler_temp=fiber.type,JSCompiler_temp=!(JSCompiler_temp!=="form"&&JSCompiler_temp!=="button")||shouldSetTextContent(fiber.type,fiber.memoizedProps)),JSCompiler_temp=!JSCompiler_temp),JSCompiler_temp&&nextHydratableInstance&&throwOnHydrationMismatch(fiber),popToNextHostParent(fiber),tag===13){if(fiber=fiber.memoizedState,fiber=fiber!==null?fiber.dehydrated:null,!fiber)throw Error(formatProdErrorMessage(317));a:{for(fiber=fiber.nextSibling,tag=0;fiber;){if(fiber.nodeType===8)if(JSCompiler_temp=fiber.data,JSCompiler_temp==="/$"){if(tag===0){nextHydratableInstance=getNextHydratable(fiber.nextSibling);break a}tag--}else JSCompiler_temp!=="$"&&JSCompiler_temp!=="$!"&&JSCompiler_temp!=="$?"||tag++;fiber=fiber.nextSibling}nextHydratableInstance=null}}else tag===27?(tag=nextHydratableInstance,isSingletonScope(fiber.type)?(fiber=previousHydratableOnEnteringScopedSingleton,previousHydratableOnEnteringScopedSingleton=null,nextHydratableInstance=fiber):nextHydratableInstance=tag):nextHydratableInstance=hydrationParentFiber?getNextHydratable(fiber.stateNode.nextSibling):null;return!0}function resetHydrationState(){nextHydratableInstance=hydrationParentFiber=null,isHydrating=!1}function upgradeHydrationErrorsToRecoverable(){var queuedErrors=hydrationErrors;return queuedErrors!==null&&(workInProgressRootRecoverableErrors===null?workInProgressRootRecoverableErrors=queuedErrors:workInProgressRootRecoverableErrors.push.apply(workInProgressRootRecoverableErrors,queuedErrors),hydrationErrors=null),queuedErrors}function queueHydrationError(error){hydrationErrors===null?hydrationErrors=[error]:hydrationErrors.push(error)}var valueCursor=createCursor(null),currentlyRenderingFiber$1=null,lastContextDependency=null;function pushProvider(providerFiber,context,nextValue){push(valueCursor,context._currentValue),context._currentValue=nextValue}function popProvider(context){context._currentValue=valueCursor.current,pop(valueCursor)}function scheduleContextWorkOnParentPath(parent,renderLanes2,propagationRoot){for(;parent!==null;){var alternate=parent.alternate;if((parent.childLanes&renderLanes2)!==renderLanes2?(parent.childLanes|=renderLanes2,alternate!==null&&(alternate.childLanes|=renderLanes2)):alternate!==null&&(alternate.childLanes&renderLanes2)!==renderLanes2&&(alternate.childLanes|=renderLanes2),parent===propagationRoot)break;parent=parent.return}}function propagateContextChanges(workInProgress2,contexts,renderLanes2,forcePropagateEntireTree){var fiber=workInProgress2.child;for(fiber!==null&&(fiber.return=workInProgress2);fiber!==null;){var list=fiber.dependencies;if(list!==null){var nextFiber=fiber.child;list=list.firstContext;a:for(;list!==null;){var dependency=list;list=fiber;for(var i=0;i<contexts.length;i++)if(dependency.context===contexts[i]){list.lanes|=renderLanes2,dependency=list.alternate,dependency!==null&&(dependency.lanes|=renderLanes2),scheduleContextWorkOnParentPath(list.return,renderLanes2,workInProgress2),forcePropagateEntireTree||(nextFiber=null);break a}list=dependency.next}}else if(fiber.tag===18){if(nextFiber=fiber.return,nextFiber===null)throw Error(formatProdErrorMessage(341));nextFiber.lanes|=renderLanes2,list=nextFiber.alternate,list!==null&&(list.lanes|=renderLanes2),scheduleContextWorkOnParentPath(nextFiber,renderLanes2,workInProgress2),nextFiber=null}else nextFiber=fiber.child;if(nextFiber!==null)nextFiber.return=fiber;else for(nextFiber=fiber;nextFiber!==null;){if(nextFiber===workInProgress2){nextFiber=null;break}if(fiber=nextFiber.sibling,fiber!==null){fiber.return=nextFiber.return,nextFiber=fiber;break}nextFiber=nextFiber.return}fiber=nextFiber}}function propagateParentContextChanges(current,workInProgress2,renderLanes2,forcePropagateEntireTree){current=null;for(var parent=workInProgress2,isInsidePropagationBailout=!1;parent!==null;){if(!isInsidePropagationBailout){if((parent.flags&524288)!==0)isInsidePropagationBailout=!0;else if((parent.flags&262144)!==0)break}if(parent.tag===10){var currentParent=parent.alternate;if(currentParent===null)throw Error(formatProdErrorMessage(387));if(currentParent=currentParent.memoizedProps,currentParent!==null){var context=parent.type;objectIs(parent.pendingProps.value,currentParent.value)||(current!==null?current.push(context):current=[context])}}else if(parent===hostTransitionProviderCursor.current){if(currentParent=parent.alternate,currentParent===null)throw Error(formatProdErrorMessage(387));currentParent.memoizedState.memoizedState!==parent.memoizedState.memoizedState&&(current!==null?current.push(HostTransitionContext):current=[HostTransitionContext])}parent=parent.return}current!==null&&propagateContextChanges(workInProgress2,current,renderLanes2,forcePropagateEntireTree),workInProgress2.flags|=262144}function checkIfContextChanged(currentDependencies){for(currentDependencies=currentDependencies.firstContext;currentDependencies!==null;){if(!objectIs(currentDependencies.context._currentValue,currentDependencies.memoizedValue))return!0;currentDependencies=currentDependencies.next}return!1}function prepareToReadContext(workInProgress2){currentlyRenderingFiber$1=workInProgress2,lastContextDependency=null,workInProgress2=workInProgress2.dependencies,workInProgress2!==null&&(workInProgress2.firstContext=null)}function readContext(context){return readContextForConsumer(currentlyRenderingFiber$1,context)}function readContextDuringReconciliation(consumer,context){return currentlyRenderingFiber$1===null&&prepareToReadContext(consumer),readContextForConsumer(consumer,context)}function readContextForConsumer(consumer,context){var value=context._currentValue;if(context={context,memoizedValue:value,next:null},lastContextDependency===null){if(consumer===null)throw Error(formatProdErrorMessage(308));lastContextDependency=context,consumer.dependencies={lanes:0,firstContext:context},consumer.flags|=524288}else lastContextDependency=lastContextDependency.next=context;return value}var AbortControllerLocal=typeof AbortController<"u"?AbortController:function(){var listeners=[],signal=this.signal={aborted:!1,addEventListener:function(type,listener){listeners.push(listener)}};this.abort=function(){signal.aborted=!0,listeners.forEach(function(listener){return listener()})}},scheduleCallback$2=Scheduler.unstable_scheduleCallback,NormalPriority=Scheduler.unstable_NormalPriority,CacheContext={$$typeof:REACT_CONTEXT_TYPE,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function createCache(){return{controller:new AbortControllerLocal,data:new Map,refCount:0}}function releaseCache(cache){cache.refCount--,cache.refCount===0&&scheduleCallback$2(NormalPriority,function(){cache.controller.abort()})}var currentEntangledListeners=null,currentEntangledPendingCount=0,currentEntangledLane=0,currentEntangledActionThenable=null;function entangleAsyncAction(transition,thenable){if(currentEntangledListeners===null){var entangledListeners=currentEntangledListeners=[];currentEntangledPendingCount=0,currentEntangledLane=requestTransitionLane(),currentEntangledActionThenable={status:"pending",value:void 0,then:function(resolve){entangledListeners.push(resolve)}}}return currentEntangledPendingCount++,thenable.then(pingEngtangledActionScope,pingEngtangledActionScope),thenable}function pingEngtangledActionScope(){if(--currentEntangledPendingCount===0&¤tEntangledListeners!==null){currentEntangledActionThenable!==null&&(currentEntangledActionThenable.status="fulfilled");var listeners=currentEntangledListeners;currentEntangledListeners=null,currentEntangledLane=0,currentEntangledActionThenable=null;for(var i=0;i<listeners.length;i++)(0,listeners[i])()}}function chainThenableValue(thenable,result){var listeners=[],thenableWithOverride={status:"pending",value:null,reason:null,then:function(resolve){listeners.push(resolve)}};return thenable.then(function(){thenableWithOverride.status="fulfilled",thenableWithOverride.value=result;for(var i=0;i<listeners.length;i++)(0,listeners[i])(result)},function(error){for(thenableWithOverride.status="rejected",thenableWithOverride.reason=error,error=0;error<listeners.length;error++)(0,listeners[error])(void 0)}),thenableWithOverride}var prevOnStartTransitionFinish=ReactSharedInternals.S;ReactSharedInternals.S=function(transition,returnValue){typeof returnValue=="object"&&returnValue!==null&&typeof returnValue.then=="function"&&entangleAsyncAction(transition,returnValue),prevOnStartTransitionFinish!==null&&prevOnStartTransitionFinish(transition,returnValue)};var resumedCache=createCursor(null);function peekCacheFromPool(){var cacheResumedFromPreviousRender=resumedCache.current;return cacheResumedFromPreviousRender!==null?cacheResumedFromPreviousRender:workInProgressRoot.pooledCache}function pushTransition(offscreenWorkInProgress,prevCachePool){prevCachePool===null?push(resumedCache,resumedCache.current):push(resumedCache,prevCachePool.pool)}function getSuspendedCache(){var cacheFromPool=peekCacheFromPool();return cacheFromPool===null?null:{parent:CacheContext._currentValue,pool:cacheFromPool}}var SuspenseException=Error(formatProdErrorMessage(460)),SuspenseyCommitException=Error(formatProdErrorMessage(474)),SuspenseActionException=Error(formatProdErrorMessage(542)),noopSuspenseyCommitThenable={then:function(){}};function isThenableResolved(thenable){return thenable=thenable.status,thenable==="fulfilled"||thenable==="rejected"}function noop$3(){}function trackUsedThenable(thenableState2,thenable,index2){switch(index2=thenableState2[index2],index2===void 0?thenableState2.push(thenable):index2!==thenable&&(thenable.then(noop$3,noop$3),thenable=index2),thenable.status){case"fulfilled":return thenable.value;case"rejected":throw thenableState2=thenable.reason,checkIfUseWrappedInAsyncCatch(thenableState2),thenableState2;default:if(typeof thenable.status=="string")thenable.then(noop$3,noop$3);else{if(thenableState2=workInProgressRoot,thenableState2!==null&&100<thenableState2.shellSuspendCounter)throw Error(formatProdErrorMessage(482));thenableState2=thenable,thenableState2.status="pending",thenableState2.then(function(fulfilledValue){if(thenable.status==="pending"){var fulfilledThenable=thenable;fulfilledThenable.status="fulfilled",fulfilledThenable.value=fulfilledValue}},function(error){if(thenable.status==="pending"){var rejectedThenable=thenable;rejectedThenable.status="rejected",rejectedThenable.reason=error}})}switch(thenable.status){case"fulfilled":return thenable.value;case"rejected":throw thenableState2=thenable.reason,checkIfUseWrappedInAsyncCatch(thenableState2),thenableState2}throw suspendedThenable=thenable,SuspenseException}}var suspendedThenable=null;function getSuspendedThenable(){if(suspendedThenable===null)throw Error(formatProdErrorMessage(459));var thenable=suspendedThenable;return suspendedThenable=null,thenable}function checkIfUseWrappedInAsyncCatch(rejectedReason){if(rejectedReason===SuspenseException||rejectedReason===SuspenseActionException)throw Error(formatProdErrorMessage(483))}var hasForceUpdate=!1;function initializeUpdateQueue(fiber){fiber.updateQueue={baseState:fiber.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function cloneUpdateQueue(current,workInProgress2){current=current.updateQueue,workInProgress2.updateQueue===current&&(workInProgress2.updateQueue={baseState:current.baseState,firstBaseUpdate:current.firstBaseUpdate,lastBaseUpdate:current.lastBaseUpdate,shared:current.shared,callbacks:null})}function createUpdate(lane){return{lane,tag:0,payload:null,callback:null,next:null}}function enqueueUpdate(fiber,update,lane){var updateQueue=fiber.updateQueue;if(updateQueue===null)return null;if(updateQueue=updateQueue.shared,(executionContext&2)!==0){var pending=updateQueue.pending;return pending===null?update.next=update:(update.next=pending.next,pending.next=update),updateQueue.pending=update,update=getRootForUpdatedFiber(fiber),markUpdateLaneFromFiberToRoot(fiber,null,lane),update}return enqueueUpdate$1(fiber,updateQueue,update,lane),getRootForUpdatedFiber(fiber)}function entangleTransitions(root3,fiber,lane){if(fiber=fiber.updateQueue,fiber!==null&&(fiber=fiber.shared,(lane&4194048)!==0)){var queueLanes=fiber.lanes;queueLanes&=root3.pendingLanes,lane|=queueLanes,fiber.lanes=lane,markRootEntangled(root3,lane)}}function enqueueCapturedUpdate(workInProgress2,capturedUpdate){var queue=workInProgress2.updateQueue,current=workInProgress2.alternate;if(current!==null&&(current=current.updateQueue,queue===current)){var newFirst=null,newLast=null;if(queue=queue.firstBaseUpdate,queue!==null){do{var clone2={lane:queue.lane,tag:queue.tag,payload:queue.payload,callback:null,next:null};newLast===null?newFirst=newLast=clone2:newLast=newLast.next=clone2,queue=queue.next}while(queue!==null);newLast===null?newFirst=newLast=capturedUpdate:newLast=newLast.next=capturedUpdate}else newFirst=newLast=capturedUpdate;queue={baseState:current.baseState,firstBaseUpdate:newFirst,lastBaseUpdate:newLast,shared:current.shared,callbacks:current.callbacks},workInProgress2.updateQueue=queue;return}workInProgress2=queue.lastBaseUpdate,workInProgress2===null?queue.firstBaseUpdate=capturedUpdate:workInProgress2.next=capturedUpdate,queue.lastBaseUpdate=capturedUpdate}var didReadFromEntangledAsyncAction=!1;function suspendIfUpdateReadFromEntangledAsyncAction(){if(didReadFromEntangledAsyncAction){var entangledActionThenable=currentEntangledActionThenable;if(entangledActionThenable!==null)throw entangledActionThenable}}function processUpdateQueue(workInProgress$jscomp$0,props,instance$jscomp$0,renderLanes2){didReadFromEntangledAsyncAction=!1;var queue=workInProgress$jscomp$0.updateQueue;hasForceUpdate=!1;var firstBaseUpdate=queue.firstBaseUpdate,lastBaseUpdate=queue.lastBaseUpdate,pendingQueue=queue.shared.pending;if(pendingQueue!==null){queue.shared.pending=null;var lastPendingUpdate=pendingQueue,firstPendingUpdate=lastPendingUpdate.next;lastPendingUpdate.next=null,lastBaseUpdate===null?firstBaseUpdate=firstPendingUpdate:lastBaseUpdate.next=firstPendingUpdate,lastBaseUpdate=lastPendingUpdate;var current=workInProgress$jscomp$0.alternate;current!==null&&(current=current.updateQueue,pendingQueue=current.lastBaseUpdate,pendingQueue!==lastBaseUpdate&&(pendingQueue===null?current.firstBaseUpdate=firstPendingUpdate:pendingQueue.next=firstPendingUpdate,current.lastBaseUpdate=lastPendingUpdate))}if(firstBaseUpdate!==null){var newState=queue.baseState;lastBaseUpdate=0,current=firstPendingUpdate=lastPendingUpdate=null,pendingQueue=firstBaseUpdate;do{var updateLane=pendingQueue.lane&-536870913,isHiddenUpdate=updateLane!==pendingQueue.lane;if(isHiddenUpdate?(workInProgressRootRenderLanes&updateLane)===updateLane:(renderLanes2&updateLane)===updateLane){updateLane!==0&&updateLane===currentEntangledLane&&(didReadFromEntangledAsyncAction=!0),current!==null&&(current=current.next={lane:0,tag:pendingQueue.tag,payload:pendingQueue.payload,callback:null,next:null});a:{var workInProgress2=workInProgress$jscomp$0,update=pendingQueue;updateLane=props;var instance=instance$jscomp$0;switch(update.tag){case 1:if(workInProgress2=update.payload,typeof workInProgress2=="function"){newState=workInProgress2.call(instance,newState,updateLane);break a}newState=workInProgress2;break a;case 3:workInProgress2.flags=workInProgress2.flags&-65537|128;case 0:if(workInProgress2=update.payload,updateLane=typeof workInProgress2=="function"?workInProgress2.call(instance,newState,updateLane):workInProgress2,updateLane==null)break a;newState=assign({},newState,updateLane);break a;case 2:hasForceUpdate=!0}}updateLane=pendingQueue.callback,updateLane!==null&&(workInProgress$jscomp$0.flags|=64,isHiddenUpdate&&(workInProgress$jscomp$0.flags|=8192),isHiddenUpdate=queue.callbacks,isHiddenUpdate===null?queue.callbacks=[updateLane]:isHiddenUpdate.push(updateLane))}else isHiddenUpdate={lane:updateLane,tag:pendingQueue.tag,payload:pendingQueue.payload,callback:pendingQueue.callback,next:null},current===null?(firstPendingUpdate=current=isHiddenUpdate,lastPendingUpdate=newState):current=current.next=isHiddenUpdate,lastBaseUpdate|=updateLane;if(pendingQueue=pendingQueue.next,pendingQueue===null){if(pendingQueue=queue.shared.pending,pendingQueue===null)break;isHiddenUpdate=pendingQueue,pendingQueue=isHiddenUpdate.next,isHiddenUpdate.next=null,queue.lastBaseUpdate=isHiddenUpdate,queue.shared.pending=null}}while(!0);current===null&&(lastPendingUpdate=newState),queue.baseState=lastPendingUpdate,queue.firstBaseUpdate=firstPendingUpdate,queue.lastBaseUpdate=current,firstBaseUpdate===null&&(queue.shared.lanes=0),workInProgressRootSkippedLanes|=lastBaseUpdate,workInProgress$jscomp$0.lanes=lastBaseUpdate,workInProgress$jscomp$0.memoizedState=newState}}function callCallback(callback,context){if(typeof callback!="function")throw Error(formatProdErrorMessage(191,callback));callback.call(context)}function commitCallbacks(updateQueue,context){var callbacks=updateQueue.callbacks;if(callbacks!==null)for(updateQueue.callbacks=null,updateQueue=0;updateQueue<callbacks.length;updateQueue++)callCallback(callbacks[updateQueue],context)}var currentTreeHiddenStackCursor=createCursor(null),prevEntangledRenderLanesCursor=createCursor(0);function pushHiddenContext(fiber,context){fiber=entangledRenderLanes,push(prevEntangledRenderLanesCursor,fiber),push(currentTreeHiddenStackCursor,context),entangledRenderLanes=fiber|context.baseLanes}function reuseHiddenContextOnStack(){push(prevEntangledRenderLanesCursor,entangledRenderLanes),push(currentTreeHiddenStackCursor,currentTreeHiddenStackCursor.current)}function popHiddenContext(){entangledRenderLanes=prevEntangledRenderLanesCursor.current,pop(currentTreeHiddenStackCursor),pop(prevEntangledRenderLanesCursor)}var renderLanes=0,currentlyRenderingFiber=null,currentHook=null,workInProgressHook=null,didScheduleRenderPhaseUpdate=!1,didScheduleRenderPhaseUpdateDuringThisPass=!1,shouldDoubleInvokeUserFnsInHooksDEV=!1,localIdCounter=0,thenableIndexCounter$1=0,thenableState$1=null,globalClientIdCounter=0;function throwInvalidHookError(){throw Error(formatProdErrorMessage(321))}function areHookInputsEqual(nextDeps,prevDeps){if(prevDeps===null)return!1;for(var i=0;i<prevDeps.length&&i<nextDeps.length;i++)if(!objectIs(nextDeps[i],prevDeps[i]))return!1;return!0}function renderWithHooks(current,workInProgress2,Component,props,secondArg,nextRenderLanes){return renderLanes=nextRenderLanes,currentlyRenderingFiber=workInProgress2,workInProgress2.memoizedState=null,workInProgress2.updateQueue=null,workInProgress2.lanes=0,ReactSharedInternals.H=current===null||current.memoizedState===null?HooksDispatcherOnMount:HooksDispatcherOnUpdate,shouldDoubleInvokeUserFnsInHooksDEV=!1,nextRenderLanes=Component(props,secondArg),shouldDoubleInvokeUserFnsInHooksDEV=!1,didScheduleRenderPhaseUpdateDuringThisPass&&(nextRenderLanes=renderWithHooksAgain(workInProgress2,Component,props,secondArg)),finishRenderingHooks(current),nextRenderLanes}function finishRenderingHooks(current){ReactSharedInternals.H=ContextOnlyDispatcher;var didRenderTooFewHooks=currentHook!==null&¤tHook.next!==null;if(renderLanes=0,workInProgressHook=currentHook=currentlyRenderingFiber=null,didScheduleRenderPhaseUpdate=!1,thenableIndexCounter$1=0,thenableState$1=null,didRenderTooFewHooks)throw Error(formatProdErrorMessage(300));current===null||didReceiveUpdate||(current=current.dependencies,current!==null&&checkIfContextChanged(current)&&(didReceiveUpdate=!0))}function renderWithHooksAgain(workInProgress2,Component,props,secondArg){currentlyRenderingFiber=workInProgress2;var numberOfReRenders=0;do{if(didScheduleRenderPhaseUpdateDuringThisPass&&(thenableState$1=null),thenableIndexCounter$1=0,didScheduleRenderPhaseUpdateDuringThisPass=!1,25<=numberOfReRenders)throw Error(formatProdErrorMessage(301));if(numberOfReRenders+=1,workInProgressHook=currentHook=null,workInProgress2.updateQueue!=null){var children=workInProgress2.updateQueue;children.lastEffect=null,children.events=null,children.stores=null,children.memoCache!=null&&(children.memoCache.index=0)}ReactSharedInternals.H=HooksDispatcherOnRerender,children=Component(props,secondArg)}while(didScheduleRenderPhaseUpdateDuringThisPass);return children}function TransitionAwareHostComponent(){var dispatcher=ReactSharedInternals.H,maybeThenable=dispatcher.useState()[0];return maybeThenable=typeof maybeThenable.then=="function"?useThenable(maybeThenable):maybeThenable,dispatcher=dispatcher.useState()[0],(currentHook!==null?currentHook.memoizedState:null)!==dispatcher&&(currentlyRenderingFiber.flags|=1024),maybeThenable}function checkDidRenderIdHook(){var didRenderIdHook=localIdCounter!==0;return localIdCounter=0,didRenderIdHook}function bailoutHooks(current,workInProgress2,lanes){workInProgress2.updateQueue=current.updateQueue,workInProgress2.flags&=-2053,current.lanes&=~lanes}function resetHooksOnUnwind(workInProgress2){if(didScheduleRenderPhaseUpdate){for(workInProgress2=workInProgress2.memoizedState;workInProgress2!==null;){var queue=workInProgress2.queue;queue!==null&&(queue.pending=null),workInProgress2=workInProgress2.next}didScheduleRenderPhaseUpdate=!1}renderLanes=0,workInProgressHook=currentHook=currentlyRenderingFiber=null,didScheduleRenderPhaseUpdateDuringThisPass=!1,thenableIndexCounter$1=localIdCounter=0,thenableState$1=null}function mountWorkInProgressHook(){var hook={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return workInProgressHook===null?currentlyRenderingFiber.memoizedState=workInProgressHook=hook:workInProgressHook=workInProgressHook.next=hook,workInProgressHook}function updateWorkInProgressHook(){if(currentHook===null){var nextCurrentHook=currentlyRenderingFiber.alternate;nextCurrentHook=nextCurrentHook!==null?nextCurrentHook.memoizedState:null}else nextCurrentHook=currentHook.next;var nextWorkInProgressHook=workInProgressHook===null?currentlyRenderingFiber.memoizedState:workInProgressHook.next;if(nextWorkInProgressHook!==null)workInProgressHook=nextWorkInProgressHook,currentHook=nextCurrentHook;else{if(nextCurrentHook===null)throw currentlyRenderingFiber.alternate===null?Error(formatProdErrorMessage(467)):Error(formatProdErrorMessage(310));currentHook=nextCurrentHook,nextCurrentHook={memoizedState:currentHook.memoizedState,baseState:currentHook.baseState,baseQueue:currentHook.baseQueue,queue:currentHook.queue,next:null},workInProgressHook===null?currentlyRenderingFiber.memoizedState=workInProgressHook=nextCurrentHook:workInProgressHook=workInProgressHook.next=nextCurrentHook}return workInProgressHook}function createFunctionComponentUpdateQueue(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function useThenable(thenable){var index2=thenableIndexCounter$1;return thenableIndexCounter$1+=1,thenableState$1===null&&(thenableState$1=[]),thenable=trackUsedThenable(thenableState$1,thenable,index2),index2=currentlyRenderingFiber,(workInProgressHook===null?index2.memoizedState:workInProgressHook.next)===null&&(index2=index2.alternate,ReactSharedInternals.H=index2===null||index2.memoizedState===null?HooksDispatcherOnMount:HooksDispatcherOnUpdate),thenable}function use(usable){if(usable!==null&&typeof usable=="object"){if(typeof usable.then=="function")return useThenable(usable);if(usable.$$typeof===REACT_CONTEXT_TYPE)return readContext(usable)}throw Error(formatProdErrorMessage(438,String(usable)))}function useMemoCache(size){var memoCache=null,updateQueue=currentlyRenderingFiber.updateQueue;if(updateQueue!==null&&(memoCache=updateQueue.memoCache),memoCache==null){var current=currentlyRenderingFiber.alternate;current!==null&&(current=current.updateQueue,current!==null&&(current=current.memoCache,current!=null&&(memoCache={data:current.data.map(function(array){return array.slice()}),index:0})))}if(memoCache==null&&(memoCache={data:[],index:0}),updateQueue===null&&(updateQueue=createFunctionComponentUpdateQueue(),currentlyRenderingFiber.updateQueue=updateQueue),updateQueue.memoCache=memoCache,updateQueue=memoCache.data[memoCache.index],updateQueue===void 0)for(updateQueue=memoCache.data[memoCache.index]=Array(size),current=0;current<size;current++)updateQueue[current]=REACT_MEMO_CACHE_SENTINEL;return memoCache.index++,updateQueue}function basicStateReducer(state,action){return typeof action=="function"?action(state):action}function updateReducer(reducer){var hook=updateWorkInProgressHook();return updateReducerImpl(hook,currentHook,reducer)}function updateReducerImpl(hook,current,reducer){var queue=hook.queue;if(queue===null)throw Error(formatProdErrorMessage(311));queue.lastRenderedReducer=reducer;var baseQueue=hook.baseQueue,pendingQueue=queue.pending;if(pendingQueue!==null){if(baseQueue!==null){var baseFirst=baseQueue.next;baseQueue.next=pendingQueue.next,pendingQueue.next=baseFirst}current.baseQueue=baseQueue=pendingQueue,queue.pending=null}if(pendingQueue=hook.baseState,baseQueue===null)hook.memoizedState=pendingQueue;else{current=baseQueue.next;var newBaseQueueFirst=baseFirst=null,newBaseQueueLast=null,update=current,didReadFromEntangledAsyncAction$32=!1;do{var updateLane=update.lane&-536870913;if(updateLane!==update.lane?(workInProgressRootRenderLanes&updateLane)===updateLane:(renderLanes&updateLane)===updateLane){var revertLane=update.revertLane;if(revertLane===0)newBaseQueueLast!==null&&(newBaseQueueLast=newBaseQueueLast.next={lane:0,revertLane:0,action:update.action,hasEagerState:update.hasEagerState,eagerState:update.eagerState,next:null}),updateLane===currentEntangledLane&&(didReadFromEntangledAsyncAction$32=!0);else if((renderLanes&revertLane)===revertLane){update=update.next,revertLane===currentEntangledLane&&(didReadFromEntangledAsyncAction$32=!0);continue}else updateLane={lane:0,revertLane:update.revertLane,action:update.action,hasEagerState:update.hasEagerState,eagerState:update.eagerState,next:null},newBaseQueueLast===null?(newBaseQueueFirst=newBaseQueueLast=updateLane,baseFirst=pendingQueue):newBaseQueueLast=newBaseQueueLast.next=updateLane,currentlyRenderingFiber.lanes|=revertLane,workInProgressRootSkippedLanes|=revertLane;updateLane=update.action,shouldDoubleInvokeUserFnsInHooksDEV&&reducer(pendingQueue,updateLane),pendingQueue=update.hasEagerState?update.eagerState:reducer(pendingQueue,updateLane)}else revertLane={lane:updateLane,revertLane:update.revertLane,action:update.action,hasEagerState:update.hasEagerState,eagerState:update.eagerState,next:null},newBaseQueueLast===null?(newBaseQueueFirst=newBaseQueueLast=revertLane,baseFirst=pendingQueue):newBaseQueueLast=newBaseQueueLast.next=revertLane,currentlyRenderingFiber.lanes|=updateLane,workInProgressRootSkippedLanes|=updateLane;update=update.next}while(update!==null&&update!==current);if(newBaseQueueLast===null?baseFirst=pendingQueue:newBaseQueueLast.next=newBaseQueueFirst,!objectIs(pendingQueue,hook.memoizedState)&&(didReceiveUpdate=!0,didReadFromEntangledAsyncAction$32&&(reducer=currentEntangledActionThenable,reducer!==null)))throw reducer;hook.memoizedState=pendingQueue,hook.baseState=baseFirst,hook.baseQueue=newBaseQueueLast,queue.lastRenderedState=pendingQueue}return baseQueue===null&&(queue.lanes=0),[hook.memoizedState,queue.dispatch]}function rerenderReducer(reducer){var hook=updateWorkInProgressHook(),queue=hook.queue;if(queue===null)throw Error(formatProdErrorMessage(311));queue.lastRenderedReducer=reducer;var dispatch=queue.dispatch,lastRenderPhaseUpdate=queue.pending,newState=hook.memoizedState;if(lastRenderPhaseUpdate!==null){queue.pending=null;var update=lastRenderPhaseUpdate=lastRenderPhaseUpdate.next;do newState=reducer(newState,update.action),update=update.next;while(update!==lastRenderPhaseUpdate);objectIs(newState,hook.memoizedState)||(didReceiveUpdate=!0),hook.memoizedState=newState,hook.baseQueue===null&&(hook.baseState=newState),queue.lastRenderedState=newState}return[newState,dispatch]}function updateSyncExternalStore(subscribe,getSnapshot,getServerSnapshot){var fiber=currentlyRenderingFiber,hook=updateWorkInProgressHook(),isHydrating$jscomp$0=isHydrating;if(isHydrating$jscomp$0){if(getServerSnapshot===void 0)throw Error(formatProdErrorMessage(407));getServerSnapshot=getServerSnapshot()}else getServerSnapshot=getSnapshot();var snapshotChanged=!objectIs((currentHook||hook).memoizedState,getServerSnapshot);snapshotChanged&&(hook.memoizedState=getServerSnapshot,didReceiveUpdate=!0),hook=hook.queue;var create2=subscribeToStore.bind(null,fiber,hook,subscribe);if(updateEffectImpl(2048,8,create2,[subscribe]),hook.getSnapshot!==getSnapshot||snapshotChanged||workInProgressHook!==null&&workInProgressHook.memoizedState.tag&1){if(fiber.flags|=2048,pushSimpleEffect(9,createEffectInstance(),updateStoreInstance.bind(null,fiber,hook,getServerSnapshot,getSnapshot),null),workInProgressRoot===null)throw Error(formatProdErrorMessage(349));isHydrating$jscomp$0||(renderLanes&124)!==0||pushStoreConsistencyCheck(fiber,getSnapshot,getServerSnapshot)}return getServerSnapshot}function pushStoreConsistencyCheck(fiber,getSnapshot,renderedSnapshot){fiber.flags|=16384,fiber={getSnapshot,value:renderedSnapshot},getSnapshot=currentlyRenderingFiber.updateQueue,getSnapshot===null?(getSnapshot=createFunctionComponentUpdateQueue(),currentlyRenderingFiber.updateQueue=getSnapshot,getSnapshot.stores=[fiber]):(renderedSnapshot=getSnapshot.stores,renderedSnapshot===null?getSnapshot.stores=[fiber]:renderedSnapshot.push(fiber))}function updateStoreInstance(fiber,inst,nextSnapshot,getSnapshot){inst.value=nextSnapshot,inst.getSnapshot=getSnapshot,checkIfSnapshotChanged(inst)&&forceStoreRerender(fiber)}function subscribeToStore(fiber,inst,subscribe){return subscribe(function(){checkIfSnapshotChanged(inst)&&forceStoreRerender(fiber)})}function checkIfSnapshotChanged(inst){var latestGetSnapshot=inst.getSnapshot;inst=inst.value;try{var nextValue=latestGetSnapshot();return!objectIs(inst,nextValue)}catch{return!0}}function forceStoreRerender(fiber){var root3=enqueueConcurrentRenderForLane(fiber,2);root3!==null&&scheduleUpdateOnFiber(root3,fiber,2)}function mountStateImpl(initialState){var hook=mountWorkInProgressHook();if(typeof initialState=="function"){var initialStateInitializer=initialState;if(initialState=initialStateInitializer(),shouldDoubleInvokeUserFnsInHooksDEV){setIsStrictModeForDevtools(!0);try{initialStateInitializer()}finally{setIsStrictModeForDevtools(!1)}}}return hook.memoizedState=hook.baseState=initialState,hook.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:basicStateReducer,lastRenderedState:initialState},hook}function updateOptimisticImpl(hook,current,passthrough,reducer){return hook.baseState=passthrough,updateReducerImpl(hook,currentHook,typeof reducer=="function"?reducer:basicStateReducer)}function dispatchActionState(fiber,actionQueue,setPendingState,setState,payload){if(isRenderPhaseUpdate(fiber))throw Error(formatProdErrorMessage(485));if(fiber=actionQueue.action,fiber!==null){var actionNode={payload,action:fiber,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(listener){actionNode.listeners.push(listener)}};ReactSharedInternals.T!==null?setPendingState(!0):actionNode.isTransition=!1,setState(actionNode),setPendingState=actionQueue.pending,setPendingState===null?(actionNode.next=actionQueue.pending=actionNode,runActionStateAction(actionQueue,actionNode)):(actionNode.next=setPendingState.next,actionQueue.pending=setPendingState.next=actionNode)}}function runActionStateAction(actionQueue,node){var action=node.action,payload=node.payload,prevState=actionQueue.state;if(node.isTransition){var prevTransition=ReactSharedInternals.T,currentTransition={};ReactSharedInternals.T=currentTransition;try{var returnValue=action(prevState,payload),onStartTransitionFinish=ReactSharedInternals.S;onStartTransitionFinish!==null&&onStartTransitionFinish(currentTransition,returnValue),handleActionReturnValue(actionQueue,node,returnValue)}catch(error){onActionError(actionQueue,node,error)}finally{ReactSharedInternals.T=prevTransition}}else try{prevTransition=action(prevState,payload),handleActionReturnValue(actionQueue,node,prevTransition)}catch(error$38){onActionError(actionQueue,node,error$38)}}function handleActionReturnValue(actionQueue,node,returnValue){returnValue!==null&&typeof returnValue=="object"&&typeof returnValue.then=="function"?returnValue.then(function(nextState){onActionSuccess(actionQueue,node,nextState)},function(error){return onActionError(actionQueue,node,error)}):onActionSuccess(actionQueue,node,returnValue)}function onActionSuccess(actionQueue,actionNode,nextState){actionNode.status="fulfilled",actionNode.value=nextState,notifyActionListeners(actionNode),actionQueue.state=nextState,actionNode=actionQueue.pending,actionNode!==null&&(nextState=actionNode.next,nextState===actionNode?actionQueue.pending=null:(nextState=nextState.next,actionNode.next=nextState,runActionStateAction(actionQueue,nextState)))}function onActionError(actionQueue,actionNode,error){var last=actionQueue.pending;if(actionQueue.pending=null,last!==null){last=last.next;do actionNode.status="rejected",actionNode.reason=error,notifyActionListeners(actionNode),actionNode=actionNode.next;while(actionNode!==last)}actionQueue.action=null}function notifyActionListeners(actionNode){actionNode=actionNode.listeners;for(var i=0;i<actionNode.length;i++)(0,actionNode[i])()}function actionStateReducer(oldState,newState){return newState}function mountActionState(action,initialStateProp){if(isHydrating){var ssrFormState=workInProgressRoot.formState;if(ssrFormState!==null){a:{var JSCompiler_inline_result=currentlyRenderingFiber;if(isHydrating){if(nextHydratableInstance){b:{for(var JSCompiler_inline_result$jscomp$0=nextHydratableInstance,inRootOrSingleton=rootOrSingletonContext;JSCompiler_inline_result$jscomp$0.nodeType!==8;){if(!inRootOrSingleton){JSCompiler_inline_result$jscomp$0=null;break b}if(JSCompiler_inline_result$jscomp$0=getNextHydratable(JSCompiler_inline_result$jscomp$0.nextSibling),JSCompiler_inline_result$jscomp$0===null){JSCompiler_inline_result$jscomp$0=null;break b}}inRootOrSingleton=JSCompiler_inline_result$jscomp$0.data,JSCompiler_inline_result$jscomp$0=inRootOrSingleton==="F!"||inRootOrSingleton==="F"?JSCompiler_inline_result$jscomp$0:null}if(JSCompiler_inline_result$jscomp$0){nextHydratableInstance=getNextHydratable(JSCompiler_inline_result$jscomp$0.nextSibling),JSCompiler_inline_result=JSCompiler_inline_result$jscomp$0.data==="F!";break a}}throwOnHydrationMismatch(JSCompiler_inline_result)}JSCompiler_inline_result=!1}JSCompiler_inline_result&&(initialStateProp=ssrFormState[0])}}return ssrFormState=mountWorkInProgressHook(),ssrFormState.memoizedState=ssrFormState.baseState=initialStateProp,JSCompiler_inline_result={pending:null,lanes:0,dispatch:null,lastRenderedReducer:actionStateReducer,lastRenderedState:initialStateProp},ssrFormState.queue=JSCompiler_inline_result,ssrFormState=dispatchSetState.bind(null,currentlyRenderingFiber,JSCompiler_inline_result),JSCompiler_inline_result.dispatch=ssrFormState,JSCompiler_inline_result=mountStateImpl(!1),inRootOrSingleton=dispatchOptimisticSetState.bind(null,currentlyRenderingFiber,!1,JSCompiler_inline_result.queue),JSCompiler_inline_result=mountWorkInProgressHook(),JSCompiler_inline_result$jscomp$0={state:initialStateProp,dispatch:null,action,pending:null},JSCompiler_inline_result.queue=JSCompiler_inline_result$jscomp$0,ssrFormState=dispatchActionState.bind(null,currentlyRenderingFiber,JSCompiler_inline_result$jscomp$0,inRootOrSingleton,ssrFormState),JSCompiler_inline_result$jscomp$0.dispatch=ssrFormState,JSCompiler_inline_result.memoizedState=action,[initialStateProp,ssrFormState,!1]}function updateActionState(action){var stateHook=updateWorkInProgressHook();return updateActionStateImpl(stateHook,currentHook,action)}function updateActionStateImpl(stateHook,currentStateHook,action){if(currentStateHook=updateReducerImpl(stateHook,currentStateHook,actionStateReducer)[0],stateHook=updateReducer(basicStateReducer)[0],typeof currentStateHook=="object"&¤tStateHook!==null&&typeof currentStateHook.then=="function")try{var state=useThenable(currentStateHook)}catch(x){throw x===SuspenseException?SuspenseActionException:x}else state=currentStateHook;currentStateHook=updateWorkInProgressHook();var actionQueue=currentStateHook.queue,dispatch=actionQueue.dispatch;return action!==currentStateHook.memoizedState&&(currentlyRenderingFiber.flags|=2048,pushSimpleEffect(9,createEffectInstance(),actionStateActionEffect.bind(null,actionQueue,action),null)),[state,dispatch,stateHook]}function actionStateActionEffect(actionQueue,action){actionQueue.action=action}function rerenderActionState(action){var stateHook=updateWorkInProgressHook(),currentStateHook=currentHook;if(currentStateHook!==null)return updateActionStateImpl(stateHook,currentStateHook,action);updateWorkInProgressHook(),stateHook=stateHook.memoizedState,currentStateHook=updateWorkInProgressHook();var dispatch=currentStateHook.queue.dispatch;return currentStateHook.memoizedState=action,[stateHook,dispatch,!1]}function pushSimpleEffect(tag,inst,create2,createDeps){return tag={tag,create:create2,deps:createDeps,inst,next:null},inst=currentlyRenderingFiber.updateQueue,inst===null&&(inst=createFunctionComponentUpdateQueue(),currentlyRenderingFiber.updateQueue=inst),create2=inst.lastEffect,create2===null?inst.lastEffect=tag.next=tag:(createDeps=create2.next,create2.next=tag,tag.next=createDeps,inst.lastEffect=tag),tag}function createEffectInstance(){return{destroy:void 0,resource:void 0}}function updateRef(){return updateWorkInProgressHook().memoizedState}function mountEffectImpl(fiberFlags,hookFlags,create2,createDeps){var hook=mountWorkInProgressHook();createDeps=createDeps===void 0?null:createDeps,currentlyRenderingFiber.flags|=fiberFlags,hook.memoizedState=pushSimpleEffect(1|hookFlags,createEffectInstance(),create2,createDeps)}function updateEffectImpl(fiberFlags,hookFlags,create2,deps){var hook=updateWorkInProgressHook();deps=deps===void 0?null:deps;var inst=hook.memoizedState.inst;currentHook!==null&&deps!==null&&areHookInputsEqual(deps,currentHook.memoizedState.deps)?hook.memoizedState=pushSimpleEffect(hookFlags,inst,create2,deps):(currentlyRenderingFiber.flags|=fiberFlags,hook.memoizedState=pushSimpleEffect(1|hookFlags,inst,create2,deps))}function mountEffect(create2,createDeps){mountEffectImpl(8390656,8,create2,createDeps)}function updateEffect(create2,createDeps){updateEffectImpl(2048,8,create2,createDeps)}function updateInsertionEffect(create2,deps){return updateEffectImpl(4,2,create2,deps)}function updateLayoutEffect(create2,deps){return updateEffectImpl(4,4,create2,deps)}function imperativeHandleEffect(create2,ref){if(typeof ref=="function"){create2=create2();var refCleanup=ref(create2);return function(){typeof refCleanup=="function"?refCleanup():ref(null)}}if(ref!=null)return create2=create2(),ref.current=create2,function(){ref.current=null}}function updateImperativeHandle(ref,create2,deps){deps=deps!=null?deps.concat([ref]):null,updateEffectImpl(4,4,imperativeHandleEffect.bind(null,create2,ref),deps)}function mountDebugValue(){}function updateCallback(callback,deps){var hook=updateWorkInProgressHook();deps=deps===void 0?null:deps;var prevState=hook.memoizedState;return deps!==null&&areHookInputsEqual(deps,prevState[1])?prevState[0]:(hook.memoizedState=[callback,deps],callback)}function updateMemo(nextCreate,deps){var hook=updateWorkInProgressHook();deps=deps===void 0?null:deps;var prevState=hook.memoizedState;if(deps!==null&&areHookInputsEqual(deps,prevState[1]))return prevState[0];if(prevState=nextCreate(),shouldDoubleInvokeUserFnsInHooksDEV){setIsStrictModeForDevtools(!0);try{nextCreate()}finally{setIsStrictModeForDevtools(!1)}}return hook.memoizedState=[prevState,deps],prevState}function mountDeferredValueImpl(hook,value,initialValue){return initialValue===void 0||(renderLanes&1073741824)!==0?hook.memoizedState=value:(hook.memoizedState=initialValue,hook=requestDeferredLane(),currentlyRenderingFiber.lanes|=hook,workInProgressRootSkippedLanes|=hook,initialValue)}function updateDeferredValueImpl(hook,prevValue,value,initialValue){return objectIs(value,prevValue)?value:currentTreeHiddenStackCursor.current!==null?(hook=mountDeferredValueImpl(hook,value,initialValue),objectIs(hook,prevValue)||(didReceiveUpdate=!0),hook):(renderLanes&42)===0?(didReceiveUpdate=!0,hook.memoizedState=value):(hook=requestDeferredLane(),currentlyRenderingFiber.lanes|=hook,workInProgressRootSkippedLanes|=hook,prevValue)}function startTransition(fiber,queue,pendingState,finishedState,callback){var previousPriority=ReactDOMSharedInternals.p;ReactDOMSharedInternals.p=previousPriority!==0&&8>previousPriority?previousPriority:8;var prevTransition=ReactSharedInternals.T,currentTransition={};ReactSharedInternals.T=currentTransition,dispatchOptimisticSetState(fiber,!1,queue,pendingState);try{var returnValue=callback(),onStartTransitionFinish=ReactSharedInternals.S;if(onStartTransitionFinish!==null&&onStartTransitionFinish(currentTransition,returnValue),returnValue!==null&&typeof returnValue=="object"&&typeof returnValue.then=="function"){var thenableForFinishedState=chainThenableValue(returnValue,finishedState);dispatchSetStateInternal(fiber,queue,thenableForFinishedState,requestUpdateLane(fiber))}else dispatchSetStateInternal(fiber,queue,finishedState,requestUpdateLane(fiber))}catch(error){dispatchSetStateInternal(fiber,queue,{then:function(){},status:"rejected",reason:error},requestUpdateLane())}finally{ReactDOMSharedInternals.p=previousPriority,ReactSharedInternals.T=prevTransition}}function noop$2(){}function startHostTransition(formFiber,pendingState,action,formData){if(formFiber.tag!==5)throw Error(formatProdErrorMessage(476));var queue=ensureFormComponentIsStateful(formFiber).queue;startTransition(formFiber,queue,pendingState,sharedNotPendingObject,action===null?noop$2:function(){return requestFormReset$1(formFiber),action(formData)})}function ensureFormComponentIsStateful(formFiber){var existingStateHook=formFiber.memoizedState;if(existingStateHook!==null)return existingStateHook;existingStateHook={memoizedState:sharedNotPendingObject,baseState:sharedNotPendingObject,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:basicStateReducer,lastRenderedState:sharedNotPendingObject},next:null};var initialResetState={};return existingStateHook.next={memoizedState:initialResetState,baseState:initialResetState,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:basicStateReducer,lastRenderedState:initialResetState},next:null},formFiber.memoizedState=existingStateHook,formFiber=formFiber.alternate,formFiber!==null&&(formFiber.memoizedState=existingStateHook),existingStateHook}function requestFormReset$1(formFiber){var resetStateQueue=ensureFormComponentIsStateful(formFiber).next.queue;dispatchSetStateInternal(formFiber,resetStateQueue,{},requestUpdateLane())}function useHostTransitionStatus(){return readContext(HostTransitionContext)}function updateId(){return updateWorkInProgressHook().memoizedState}function updateRefresh(){return updateWorkInProgressHook().memoizedState}function refreshCache(fiber){for(var provider=fiber.return;provider!==null;){switch(provider.tag){case 24:case 3:var lane=requestUpdateLane();fiber=createUpdate(lane);var root$41=enqueueUpdate(provider,fiber,lane);root$41!==null&&(scheduleUpdateOnFiber(root$41,provider,lane),entangleTransitions(root$41,provider,lane)),provider={cache:createCache()},fiber.payload=provider;return}provider=provider.return}}function dispatchReducerAction(fiber,queue,action){var lane=requestUpdateLane();action={lane,revertLane:0,action,hasEagerState:!1,eagerState:null,next:null},isRenderPhaseUpdate(fiber)?enqueueRenderPhaseUpdate(queue,action):(action=enqueueConcurrentHookUpdate(fiber,queue,action,lane),action!==null&&(scheduleUpdateOnFiber(action,fiber,lane),entangleTransitionUpdate(action,queue,lane)))}function dispatchSetState(fiber,queue,action){var lane=requestUpdateLane();dispatchSetStateInternal(fiber,queue,action,lane)}function dispatchSetStateInternal(fiber,queue,action,lane){var update={lane,revertLane:0,action,hasEagerState:!1,eagerState:null,next:null};if(isRenderPhaseUpdate(fiber))enqueueRenderPhaseUpdate(queue,update);else{var alternate=fiber.alternate;if(fiber.lanes===0&&(alternate===null||alternate.lanes===0)&&(alternate=queue.lastRenderedReducer,alternate!==null))try{var currentState=queue.lastRenderedState,eagerState=alternate(currentState,action);if(update.hasEagerState=!0,update.eagerState=eagerState,objectIs(eagerState,currentState))return enqueueUpdate$1(fiber,queue,update,0),workInProgressRoot===null&&finishQueueingConcurrentUpdates(),!1}catch{}finally{}if(action=enqueueConcurrentHookUpdate(fiber,queue,update,lane),action!==null)return scheduleUpdateOnFiber(action,fiber,lane),entangleTransitionUpdate(action,queue,lane),!0}return!1}function dispatchOptimisticSetState(fiber,throwIfDuringRender,queue,action){if(action={lane:2,revertLane:requestTransitionLane(),action,hasEagerState:!1,eagerState:null,next:null},isRenderPhaseUpdate(fiber)){if(throwIfDuringRender)throw Error(formatProdErrorMessage(479))}else throwIfDuringRender=enqueueConcurrentHookUpdate(fiber,queue,action,2),throwIfDuringRender!==null&&scheduleUpdateOnFiber(throwIfDuringRender,fiber,2)}function isRenderPhaseUpdate(fiber){var alternate=fiber.alternate;return fiber===currentlyRenderingFiber||alternate!==null&&alternate===currentlyRenderingFiber}function enqueueRenderPhaseUpdate(queue,update){didScheduleRenderPhaseUpdateDuringThisPass=didScheduleRenderPhaseUpdate=!0;var pending=queue.pending;pending===null?update.next=update:(update.next=pending.next,pending.next=update),queue.pending=update}function entangleTransitionUpdate(root3,queue,lane){if((lane&4194048)!==0){var queueLanes=queue.lanes;queueLanes&=root3.pendingLanes,lane|=queueLanes,queue.lanes=lane,markRootEntangled(root3,lane)}}var ContextOnlyDispatcher={readContext,use,useCallback:throwInvalidHookError,useContext:throwInvalidHookError,useEffect:throwInvalidHookError,useImperativeHandle:throwInvalidHookError,useLayoutEffect:throwInvalidHookError,useInsertionEffect:throwInvalidHookError,useMemo:throwInvalidHookError,useReducer:throwInvalidHookError,useRef:throwInvalidHookError,useState:throwInvalidHookError,useDebugValue:throwInvalidHookError,useDeferredValue:throwInvalidHookError,useTransition:throwInvalidHookError,useSyncExternalStore:throwInvalidHookError,useId:throwInvalidHookError,useHostTransitionStatus:throwInvalidHookError,useFormState:throwInvalidHookError,useActionState:throwInvalidHookError,useOptimistic:throwInvalidHookError,useMemoCache:throwInvalidHookError,useCacheRefresh:throwInvalidHookError},HooksDispatcherOnMount={readContext,use,useCallback:function(callback,deps){return mountWorkInProgressHook().memoizedState=[callback,deps===void 0?null:deps],callback},useContext:readContext,useEffect:mountEffect,useImperativeHandle:function(ref,create2,deps){deps=deps!=null?deps.concat([ref]):null,mountEffectImpl(4194308,4,imperativeHandleEffect.bind(null,create2,ref),deps)},useLayoutEffect:function(create2,deps){return mountEffectImpl(4194308,4,create2,deps)},useInsertionEffect:function(create2,deps){mountEffectImpl(4,2,create2,deps)},useMemo:function(nextCreate,deps){var hook=mountWorkInProgressHook();deps=deps===void 0?null:deps;var nextValue=nextCreate();if(shouldDoubleInvokeUserFnsInHooksDEV){setIsStrictModeForDevtools(!0);try{nextCreate()}finally{setIsStrictModeForDevtools(!1)}}return hook.memoizedState=[nextValue,deps],nextValue},useReducer:function(reducer,initialArg,init){var hook=mountWorkInProgressHook();if(init!==void 0){var initialState=init(initialArg);if(shouldDoubleInvokeUserFnsInHooksDEV){setIsStrictModeForDevtools(!0);try{init(initialArg)}finally{setIsStrictModeForDevtools(!1)}}}else initialState=initialArg;return hook.memoizedState=hook.baseState=initialState,reducer={pending:null,lanes:0,dispatch:null,lastRenderedReducer:reducer,lastRenderedState:initialState},hook.queue=reducer,reducer=reducer.dispatch=dispatchReducerAction.bind(null,currentlyRenderingFiber,reducer),[hook.memoizedState,reducer]},useRef:function(initialValue){var hook=mountWorkInProgressHook();return initialValue={current:initialValue},hook.memoizedState=initialValue},useState:function(initialState){initialState=mountStateImpl(initialState);var queue=initialState.queue,dispatch=dispatchSetState.bind(null,currentlyRenderingFiber,queue);return queue.dispatch=dispatch,[initialState.memoizedState,dispatch]},useDebugValue:mountDebugValue,useDeferredValue:function(value,initialValue){var hook=mountWorkInProgressHook();return mountDeferredValueImpl(hook,value,initialValue)},useTransition:function(){var stateHook=mountStateImpl(!1);return stateHook=startTransition.bind(null,currentlyRenderingFiber,stateHook.queue,!0,!1),mountWorkInProgressHook().memoizedState=stateHook,[!1,stateHook]},useSyncExternalStore:function(subscribe,getSnapshot,getServerSnapshot){var fiber=currentlyRenderingFiber,hook=mountWorkInProgressHook();if(isHydrating){if(getServerSnapshot===void 0)throw Error(formatProdErrorMessage(407));getServerSnapshot=getServerSnapshot()}else{if(getServerSnapshot=getSnapshot(),workInProgressRoot===null)throw Error(formatProdErrorMessage(349));(workInProgressRootRenderLanes&124)!==0||pushStoreConsistencyCheck(fiber,getSnapshot,getServerSnapshot)}hook.memoizedState=getServerSnapshot;var inst={value:getServerSnapshot,getSnapshot};return hook.queue=inst,mountEffect(subscribeToStore.bind(null,fiber,inst,subscribe),[subscribe]),fiber.flags|=2048,pushSimpleEffect(9,createEffectInstance(),updateStoreInstance.bind(null,fiber,inst,getServerSnapshot,getSnapshot),null),getServerSnapshot},useId:function(){var hook=mountWorkInProgressHook(),identifierPrefix=workInProgressRoot.identifierPrefix;if(isHydrating){var JSCompiler_inline_result=treeContextOverflow,idWithLeadingBit=treeContextId;JSCompiler_inline_result=(idWithLeadingBit&~(1<<32-clz32(idWithLeadingBit)-1)).toString(32)+JSCompiler_inline_result,identifierPrefix="«"+identifierPrefix+"R"+JSCompiler_inline_result,JSCompiler_inline_result=localIdCounter++,0<JSCompiler_inline_result&&(identifierPrefix+="H"+JSCompiler_inline_result.toString(32)),identifierPrefix+="»"}else JSCompiler_inline_result=globalClientIdCounter++,identifierPrefix="«"+identifierPrefix+"r"+JSCompiler_inline_result.toString(32)+"»";return hook.memoizedState=identifierPrefix},useHostTransitionStatus,useFormState:mountActionState,useActionState:mountActionState,useOptimistic:function(passthrough){var hook=mountWorkInProgressHook();hook.memoizedState=hook.baseState=passthrough;var queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return hook.queue=queue,hook=dispatchOptimisticSetState.bind(null,currentlyRenderingFiber,!0,queue),queue.dispatch=hook,[passthrough,hook]},useMemoCache,useCacheRefresh:function(){return mountWorkInProgressHook().memoizedState=refreshCache.bind(null,currentlyRenderingFiber)}},HooksDispatcherOnUpdate={readContext,use,useCallback:updateCallback,useContext:readContext,useEffect:updateEffect,useImperativeHandle:updateImperativeHandle,useInsertionEffect:updateInsertionEffect,useLayoutEffect:updateLayoutEffect,useMemo:updateMemo,useReducer:updateReducer,useRef:updateRef,useState:function(){return updateReducer(basicStateReducer)},useDebugValue:mountDebugValue,useDeferredValue:function(value,initialValue){var hook=updateWorkInProgressHook();return updateDeferredValueImpl(hook,currentHook.memoizedState,value,initialValue)},useTransition:function(){var booleanOrThenable=updateReducer(basicStateReducer)[0],start=updateWorkInProgressHook().memoizedState;return[typeof booleanOrThenable=="boolean"?booleanOrThenable:useThenable(booleanOrThenable),start]},useSyncExternalStore:updateSyncExternalStore,useId:updateId,useHostTransitionStatus,useFormState:updateActionState,useActionState:updateActionState,useOptimistic:function(passthrough,reducer){var hook=updateWorkInProgressHook();return updateOptimisticImpl(hook,currentHook,passthrough,reducer)},useMemoCache,useCacheRefresh:updateRefresh},HooksDispatcherOnRerender={readContext,use,useCallback:updateCallback,useContext:readContext,useEffect:updateEffect,useImperativeHandle:updateImperativeHandle,useInsertionEffect:updateInsertionEffect,useLayoutEffect:updateLayoutEffect,useMemo:updateMemo,useReducer:rerenderReducer,useRef:updateRef,useState:function(){return rerenderReducer(basicStateReducer)},useDebugValue:mountDebugValue,useDeferredValue:function(value,initialValue){var hook=updateWorkInProgressHook();return currentHook===null?mountDeferredValueImpl(hook,value,initialValue):updateDeferredValueImpl(hook,currentHook.memoizedState,value,initialValue)},useTransition:function(){var booleanOrThenable=rerenderReducer(basicStateReducer)[0],start=updateWorkInProgressHook().memoizedState;return[typeof booleanOrThenable=="boolean"?booleanOrThenable:useThenable(booleanOrThenable),start]},useSyncExternalStore:updateSyncExternalStore,useId:updateId,useHostTransitionStatus,useFormState:rerenderActionState,useActionState:rerenderActionState,useOptimistic:function(passthrough,reducer){var hook=updateWorkInProgressHook();return currentHook!==null?updateOptimisticImpl(hook,currentHook,passthrough,reducer):(hook.baseState=passthrough,[passthrough,hook.queue.dispatch])},useMemoCache,useCacheRefresh:updateRefresh},thenableState=null,thenableIndexCounter=0;function unwrapThenable(thenable){var index2=thenableIndexCounter;return thenableIndexCounter+=1,thenableState===null&&(thenableState=[]),trackUsedThenable(thenableState,thenable,index2)}function coerceRef(workInProgress2,element){element=element.props.ref,workInProgress2.ref=element!==void 0?element:null}function throwOnInvalidObjectType(returnFiber,newChild){throw newChild.$$typeof===REACT_LEGACY_ELEMENT_TYPE?Error(formatProdErrorMessage(525)):(returnFiber=Object.prototype.toString.call(newChild),Error(formatProdErrorMessage(31,returnFiber==="[object Object]"?"object with keys {"+Object.keys(newChild).join(", ")+"}":returnFiber)))}function resolveLazy(lazyType){var init=lazyType._init;return init(lazyType._payload)}function createChildReconciler(shouldTrackSideEffects){function deleteChild(returnFiber,childToDelete){if(shouldTrackSideEffects){var deletions=returnFiber.deletions;deletions===null?(returnFiber.deletions=[childToDelete],returnFiber.flags|=16):deletions.push(childToDelete)}}function deleteRemainingChildren(returnFiber,currentFirstChild){if(!shouldTrackSideEffects)return null;for(;currentFirstChild!==null;)deleteChild(returnFiber,currentFirstChild),currentFirstChild=currentFirstChild.sibling;return null}function mapRemainingChildren(currentFirstChild){for(var existingChildren=new Map;currentFirstChild!==null;)currentFirstChild.key!==null?existingChildren.set(currentFirstChild.key,currentFirstChild):existingChildren.set(currentFirstChild.index,currentFirstChild),currentFirstChild=currentFirstChild.sibling;return existingChildren}function useFiber(fiber,pendingProps){return fiber=createWorkInProgress(fiber,pendingProps),fiber.index=0,fiber.sibling=null,fiber}function placeChild(newFiber,lastPlacedIndex,newIndex){return newFiber.index=newIndex,shouldTrackSideEffects?(newIndex=newFiber.alternate,newIndex!==null?(newIndex=newIndex.index,newIndex<lastPlacedIndex?(newFiber.flags|=67108866,lastPlacedIndex):newIndex):(newFiber.flags|=67108866,lastPlacedIndex)):(newFiber.flags|=1048576,lastPlacedIndex)}function placeSingleChild(newFiber){return shouldTrackSideEffects&&newFiber.alternate===null&&(newFiber.flags|=67108866),newFiber}function updateTextNode(returnFiber,current,textContent,lanes){return current===null||current.tag!==6?(current=createFiberFromText(textContent,returnFiber.mode,lanes),current.return=returnFiber,current):(current=useFiber(current,textContent),current.return=returnFiber,current)}function updateElement(returnFiber,current,element,lanes){var elementType=element.type;return elementType===REACT_FRAGMENT_TYPE?updateFragment(returnFiber,current,element.props.children,lanes,element.key):current!==null&&(current.elementType===elementType||typeof elementType=="object"&&elementType!==null&&elementType.$$typeof===REACT_LAZY_TYPE&&resolveLazy(elementType)===current.type)?(current=useFiber(current,element.props),coerceRef(current,element),current.return=returnFiber,current):(current=createFiberFromTypeAndProps(element.type,element.key,element.props,null,returnFiber.mode,lanes),coerceRef(current,element),current.return=returnFiber,current)}function updatePortal(returnFiber,current,portal,lanes){return current===null||current.tag!==4||current.stateNode.containerInfo!==portal.containerInfo||current.stateNode.implementation!==portal.implementation?(current=createFiberFromPortal(portal,returnFiber.mode,lanes),current.return=returnFiber,current):(current=useFiber(current,portal.children||[]),current.return=returnFiber,current)}function updateFragment(returnFiber,current,fragment,lanes,key){return current===null||current.tag!==7?(current=createFiberFromFragment(fragment,returnFiber.mode,lanes,key),current.return=returnFiber,current):(current=useFiber(current,fragment),current.return=returnFiber,current)}function createChild(returnFiber,newChild,lanes){if(typeof newChild=="string"&&newChild!==""||typeof newChild=="number"||typeof newChild=="bigint")return newChild=createFiberFromText(""+newChild,returnFiber.mode,lanes),newChild.return=returnFiber,newChild;if(typeof newChild=="object"&&newChild!==null){switch(newChild.$$typeof){case REACT_ELEMENT_TYPE:return lanes=createFiberFromTypeAndProps(newChild.type,newChild.key,newChild.props,null,returnFiber.mode,lanes),coerceRef(lanes,newChild),lanes.return=returnFiber,lanes;case REACT_PORTAL_TYPE:return newChild=createFiberFromPortal(newChild,returnFiber.mode,lanes),newChild.return=returnFiber,newChild;case REACT_LAZY_TYPE:var init=newChild._init;return newChild=init(newChild._payload),createChild(returnFiber,newChild,lanes)}if(isArrayImpl(newChild)||getIteratorFn(newChild))return newChild=createFiberFromFragment(newChild,returnFiber.mode,lanes,null),newChild.return=returnFiber,newChild;if(typeof newChild.then=="function")return createChild(returnFiber,unwrapThenable(newChild),lanes);if(newChild.$$typeof===REACT_CONTEXT_TYPE)return createChild(returnFiber,readContextDuringReconciliation(returnFiber,newChild),lanes);throwOnInvalidObjectType(returnFiber,newChild)}return null}function updateSlot(returnFiber,oldFiber,newChild,lanes){var key=oldFiber!==null?oldFiber.key:null;if(typeof newChild=="string"&&newChild!==""||typeof newChild=="number"||typeof newChild=="bigint")return key!==null?null:updateTextNode(returnFiber,oldFiber,""+newChild,lanes);if(typeof newChild=="object"&&newChild!==null){switch(newChild.$$typeof){case REACT_ELEMENT_TYPE:return newChild.key===key?updateElement(returnFiber,oldFiber,newChild,lanes):null;case REACT_PORTAL_TYPE:return newChild.key===key?updatePortal(returnFiber,oldFiber,newChild,lanes):null;case REACT_LAZY_TYPE:return key=newChild._init,newChild=key(newChild._payload),updateSlot(returnFiber,oldFiber,newChild,lanes)}if(isArrayImpl(newChild)||getIteratorFn(newChild))return key!==null?null:updateFragment(returnFiber,oldFiber,newChild,lanes,null);if(typeof newChild.then=="function")return updateSlot(returnFiber,oldFiber,unwrapThenable(newChild),lanes);if(newChild.$$typeof===REACT_CONTEXT_TYPE)return updateSlot(returnFiber,oldFiber,readContextDuringReconciliation(returnFiber,newChild),lanes);throwOnInvalidObjectType(returnFiber,newChild)}return null}function updateFromMap(existingChildren,returnFiber,newIdx,newChild,lanes){if(typeof newChild=="string"&&newChild!==""||typeof newChild=="number"||typeof newChild=="bigint")return existingChildren=existingChildren.get(newIdx)||null,updateTextNode(returnFiber,existingChildren,""+newChild,lanes);if(typeof newChild=="object"&&newChild!==null){switch(newChild.$$typeof){case REACT_ELEMENT_TYPE:return existingChildren=existingChildren.get(newChild.key===null?newIdx:newChild.key)||null,updateElement(returnFiber,existingChildren,newChild,lanes);case REACT_PORTAL_TYPE:return existingChildren=existingChildren.get(newChild.key===null?newIdx:newChild.key)||null,updatePortal(returnFiber,existingChildren,newChild,lanes);case REACT_LAZY_TYPE:var init=newChild._init;return newChild=init(newChild._payload),updateFromMap(existingChildren,returnFiber,newIdx,newChild,lanes)}if(isArrayImpl(newChild)||getIteratorFn(newChild))return existingChildren=existingChildren.get(newIdx)||null,updateFragment(returnFiber,existingChildren,newChild,lanes,null);if(typeof newChild.then=="function")return updateFromMap(existingChildren,returnFiber,newIdx,unwrapThenable(newChild),lanes);if(newChild.$$typeof===REACT_CONTEXT_TYPE)return updateFromMap(existingChildren,returnFiber,newIdx,readContextDuringReconciliation(returnFiber,newChild),lanes);throwOnInvalidObjectType(returnFiber,newChild)}return null}function reconcileChildrenArray(returnFiber,currentFirstChild,newChildren,lanes){for(var resultingFirstChild=null,previousNewFiber=null,oldFiber=currentFirstChild,newIdx=currentFirstChild=0,nextOldFiber=null;oldFiber!==null&&newIdx<newChildren.length;newIdx++){oldFiber.index>newIdx?(nextOldFiber=oldFiber,oldFiber=null):nextOldFiber=oldFiber.sibling;var newFiber=updateSlot(returnFiber,oldFiber,newChildren[newIdx],lanes);if(newFiber===null){oldFiber===null&&(oldFiber=nextOldFiber);break}shouldTrackSideEffects&&oldFiber&&newFiber.alternate===null&&deleteChild(returnFiber,oldFiber),currentFirstChild=placeChild(newFiber,currentFirstChild,newIdx),previousNewFiber===null?resultingFirstChild=newFiber:previousNewFiber.sibling=newFiber,previousNewFiber=newFiber,oldFiber=nextOldFiber}if(newIdx===newChildren.length)return deleteRemainingChildren(returnFiber,oldFiber),isHydrating&&pushTreeFork(returnFiber,newIdx),resultingFirstChild;if(oldFiber===null){for(;newIdx<newChildren.length;newIdx++)oldFiber=createChild(returnFiber,newChildren[newIdx],lanes),oldFiber!==null&&(currentFirstChild=placeChild(oldFiber,currentFirstChild,newIdx),previousNewFiber===null?resultingFirstChild=oldFiber:previousNewFiber.sibling=oldFiber,previousNewFiber=oldFiber);return isHydrating&&pushTreeFork(returnFiber,newIdx),resultingFirstChild}for(oldFiber=mapRemainingChildren(oldFiber);newIdx<newChildren.length;newIdx++)nextOldFiber=updateFromMap(oldFiber,returnFiber,newIdx,newChildren[newIdx],lanes),nextOldFiber!==null&&(shouldTrackSideEffects&&nextOldFiber.alternate!==null&&oldFiber.delete(nextOldFiber.key===null?newIdx:nextOldFiber.key),currentFirstChild=placeChild(nextOldFiber,currentFirstChild,newIdx),previousNewFiber===null?resultingFirstChild=nextOldFiber:previousNewFiber.sibling=nextOldFiber,previousNewFiber=nextOldFiber);return shouldTrackSideEffects&&oldFiber.forEach(function(child){return deleteChild(returnFiber,child)}),isHydrating&&pushTreeFork(returnFiber,newIdx),resultingFirstChild}function reconcileChildrenIterator(returnFiber,currentFirstChild,newChildren,lanes){if(newChildren==null)throw Error(formatProdErrorMessage(151));for(var resultingFirstChild=null,previousNewFiber=null,oldFiber=currentFirstChild,newIdx=currentFirstChild=0,nextOldFiber=null,step=newChildren.next();oldFiber!==null&&!step.done;newIdx++,step=newChildren.next()){oldFiber.index>newIdx?(nextOldFiber=oldFiber,oldFiber=null):nextOldFiber=oldFiber.sibling;var newFiber=updateSlot(returnFiber,oldFiber,step.value,lanes);if(newFiber===null){oldFiber===null&&(oldFiber=nextOldFiber);break}shouldTrackSideEffects&&oldFiber&&newFiber.alternate===null&&deleteChild(returnFiber,oldFiber),currentFirstChild=placeChild(newFiber,currentFirstChild,newIdx),previousNewFiber===null?resultingFirstChild=newFiber:previousNewFiber.sibling=newFiber,previousNewFiber=newFiber,oldFiber=nextOldFiber}if(step.done)return deleteRemainingChildren(returnFiber,oldFiber),isHydrating&&pushTreeFork(returnFiber,newIdx),resultingFirstChild;if(oldFiber===null){for(;!step.done;newIdx++,step=newChildren.next())step=createChild(returnFiber,step.value,lanes),step!==null&&(currentFirstChild=placeChild(step,currentFirstChild,newIdx),previousNewFiber===null?resultingFirstChild=step:previousNewFiber.sibling=step,previousNewFiber=step);return isHydrating&&pushTreeFork(returnFiber,newIdx),resultingFirstChild}for(oldFiber=mapRemainingChildren(oldFiber);!step.done;newIdx++,step=newChildren.next())step=updateFromMap(oldFiber,returnFiber,newIdx,step.value,lanes),step!==null&&(shouldTrackSideEffects&&step.alternate!==null&&oldFiber.delete(step.key===null?newIdx:step.key),currentFirstChild=placeChild(step,currentFirstChild,newIdx),previousNewFiber===null?resultingFirstChild=step:previousNewFiber.sibling=step,previousNewFiber=step);return shouldTrackSideEffects&&oldFiber.forEach(function(child){return deleteChild(returnFiber,child)}),isHydrating&&pushTreeFork(returnFiber,newIdx),resultingFirstChild}function reconcileChildFibersImpl(returnFiber,currentFirstChild,newChild,lanes){if(typeof newChild=="object"&&newChild!==null&&newChild.type===REACT_FRAGMENT_TYPE&&newChild.key===null&&(newChild=newChild.props.children),typeof newChild=="object"&&newChild!==null){switch(newChild.$$typeof){case REACT_ELEMENT_TYPE:a:{for(var key=newChild.key;currentFirstChild!==null;){if(currentFirstChild.key===key){if(key=newChild.type,key===REACT_FRAGMENT_TYPE){if(currentFirstChild.tag===7){deleteRemainingChildren(returnFiber,currentFirstChild.sibling),lanes=useFiber(currentFirstChild,newChild.props.children),lanes.return=returnFiber,returnFiber=lanes;break a}}else if(currentFirstChild.elementType===key||typeof key=="object"&&key!==null&&key.$$typeof===REACT_LAZY_TYPE&&resolveLazy(key)===currentFirstChild.type){deleteRemainingChildren(returnFiber,currentFirstChild.sibling),lanes=useFiber(currentFirstChild,newChild.props),coerceRef(lanes,newChild),lanes.return=returnFiber,returnFiber=lanes;break a}deleteRemainingChildren(returnFiber,currentFirstChild);break}else deleteChild(returnFiber,currentFirstChild);currentFirstChild=currentFirstChild.sibling}newChild.type===REACT_FRAGMENT_TYPE?(lanes=createFiberFromFragment(newChild.props.children,returnFiber.mode,lanes,newChild.key),lanes.return=returnFiber,returnFiber=lanes):(lanes=createFiberFromTypeAndProps(newChild.type,newChild.key,newChild.props,null,returnFiber.mode,lanes),coerceRef(lanes,newChild),lanes.return=returnFiber,returnFiber=lanes)}return placeSingleChild(returnFiber);case REACT_PORTAL_TYPE:a:{for(key=newChild.key;currentFirstChild!==null;){if(currentFirstChild.key===key)if(currentFirstChild.tag===4&¤tFirstChild.stateNode.containerInfo===newChild.containerInfo&¤tFirstChild.stateNode.implementation===newChild.implementation){deleteRemainingChildren(returnFiber,currentFirstChild.sibling),lanes=useFiber(currentFirstChild,newChild.children||[]),lanes.return=returnFiber,returnFiber=lanes;break a}else{deleteRemainingChildren(returnFiber,currentFirstChild);break}else deleteChild(returnFiber,currentFirstChild);currentFirstChild=currentFirstChild.sibling}lanes=createFiberFromPortal(newChild,returnFiber.mode,lanes),lanes.return=returnFiber,returnFiber=lanes}return placeSingleChild(returnFiber);case REACT_LAZY_TYPE:return key=newChild._init,newChild=key(newChild._payload),reconcileChildFibersImpl(returnFiber,currentFirstChild,newChild,lanes)}if(isArrayImpl(newChild))return reconcileChildrenArray(returnFiber,currentFirstChild,newChild,lanes);if(getIteratorFn(newChild)){if(key=getIteratorFn(newChild),typeof key!="function")throw Error(formatProdErrorMessage(150));return newChild=key.call(newChild),reconcileChildrenIterator(returnFiber,currentFirstChild,newChild,lanes)}if(typeof newChild.then=="function")return reconcileChildFibersImpl(returnFiber,currentFirstChild,unwrapThenable(newChild),lanes);if(newChild.$$typeof===REACT_CONTEXT_TYPE)return reconcileChildFibersImpl(returnFiber,currentFirstChild,readContextDuringReconciliation(returnFiber,newChild),lanes);throwOnInvalidObjectType(returnFiber,newChild)}return typeof newChild=="string"&&newChild!==""||typeof newChild=="number"||typeof newChild=="bigint"?(newChild=""+newChild,currentFirstChild!==null&¤tFirstChild.tag===6?(deleteRemainingChildren(returnFiber,currentFirstChild.sibling),lanes=useFiber(currentFirstChild,newChild),lanes.return=returnFiber,returnFiber=lanes):(deleteRemainingChildren(returnFiber,currentFirstChild),lanes=createFiberFromText(newChild,returnFiber.mode,lanes),lanes.return=returnFiber,returnFiber=lanes),placeSingleChild(returnFiber)):deleteRemainingChildren(returnFiber,currentFirstChild)}return function(returnFiber,currentFirstChild,newChild,lanes){try{thenableIndexCounter=0;var firstChildFiber=reconcileChildFibersImpl(returnFiber,currentFirstChild,newChild,lanes);return thenableState=null,firstChildFiber}catch(x){if(x===SuspenseException||x===SuspenseActionException)throw x;var fiber=createFiberImplClass(29,x,null,returnFiber.mode);return fiber.lanes=lanes,fiber.return=returnFiber,fiber}finally{}}}var reconcileChildFibers=createChildReconciler(!0),mountChildFibers=createChildReconciler(!1),suspenseHandlerStackCursor=createCursor(null),shellBoundary=null;function pushPrimaryTreeSuspenseHandler(handler){var current=handler.alternate;push(suspenseStackCursor,suspenseStackCursor.current&1),push(suspenseHandlerStackCursor,handler),shellBoundary===null&&(current===null||currentTreeHiddenStackCursor.current!==null||current.memoizedState!==null)&&(shellBoundary=handler)}function pushOffscreenSuspenseHandler(fiber){if(fiber.tag===22){if(push(suspenseStackCursor,suspenseStackCursor.current),push(suspenseHandlerStackCursor,fiber),shellBoundary===null){var current=fiber.alternate;current!==null&¤t.memoizedState!==null&&(shellBoundary=fiber)}}else reuseSuspenseHandlerOnStack()}function reuseSuspenseHandlerOnStack(){push(suspenseStackCursor,suspenseStackCursor.current),push(suspenseHandlerStackCursor,suspenseHandlerStackCursor.current)}function popSuspenseHandler(fiber){pop(suspenseHandlerStackCursor),shellBoundary===fiber&&(shellBoundary=null),pop(suspenseStackCursor)}var suspenseStackCursor=createCursor(0);function findFirstSuspended(row2){for(var node=row2;node!==null;){if(node.tag===13){var state=node.memoizedState;if(state!==null&&(state=state.dehydrated,state===null||state.data==="$?"||isSuspenseInstanceFallback(state)))return node}else if(node.tag===19&&node.memoizedProps.revealOrder!==void 0){if((node.flags&128)!==0)return node}else if(node.child!==null){node.child.return=node,node=node.child;continue}if(node===row2)break;for(;node.sibling===null;){if(node.return===null||node.return===row2)return null;node=node.return}node.sibling.return=node.return,node=node.sibling}return null}function applyDerivedStateFromProps(workInProgress2,ctor,getDerivedStateFromProps,nextProps){ctor=workInProgress2.memoizedState,getDerivedStateFromProps=getDerivedStateFromProps(nextProps,ctor),getDerivedStateFromProps=getDerivedStateFromProps==null?ctor:assign({},ctor,getDerivedStateFromProps),workInProgress2.memoizedState=getDerivedStateFromProps,workInProgress2.lanes===0&&(workInProgress2.updateQueue.baseState=getDerivedStateFromProps)}var classComponentUpdater={enqueueSetState:function(inst,payload,callback){inst=inst._reactInternals;var lane=requestUpdateLane(),update=createUpdate(lane);update.payload=payload,callback!=null&&(update.callback=callback),payload=enqueueUpdate(inst,update,lane),payload!==null&&(scheduleUpdateOnFiber(payload,inst,lane),entangleTransitions(payload,inst,lane))},enqueueReplaceState:function(inst,payload,callback){inst=inst._reactInternals;var lane=requestUpdateLane(),update=createUpdate(lane);update.tag=1,update.payload=payload,callback!=null&&(update.callback=callback),payload=enqueueUpdate(inst,update,lane),payload!==null&&(scheduleUpdateOnFiber(payload,inst,lane),entangleTransitions(payload,inst,lane))},enqueueForceUpdate:function(inst,callback){inst=inst._reactInternals;var lane=requestUpdateLane(),update=createUpdate(lane);update.tag=2,callback!=null&&(update.callback=callback),callback=enqueueUpdate(inst,update,lane),callback!==null&&(scheduleUpdateOnFiber(callback,inst,lane),entangleTransitions(callback,inst,lane))}};function checkShouldComponentUpdate(workInProgress2,ctor,oldProps,newProps,oldState,newState,nextContext){return workInProgress2=workInProgress2.stateNode,typeof workInProgress2.shouldComponentUpdate=="function"?workInProgress2.shouldComponentUpdate(newProps,newState,nextContext):ctor.prototype&&ctor.prototype.isPureReactComponent?!shallowEqual(oldProps,newProps)||!shallowEqual(oldState,newState):!0}function callComponentWillReceiveProps(workInProgress2,instance,newProps,nextContext){workInProgress2=instance.state,typeof instance.componentWillReceiveProps=="function"&&instance.componentWillReceiveProps(newProps,nextContext),typeof instance.UNSAFE_componentWillReceiveProps=="function"&&instance.UNSAFE_componentWillReceiveProps(newProps,nextContext),instance.state!==workInProgress2&&classComponentUpdater.enqueueReplaceState(instance,instance.state,null)}function resolveClassComponentProps(Component,baseProps){var newProps=baseProps;if("ref"in baseProps){newProps={};for(var propName in baseProps)propName!=="ref"&&(newProps[propName]=baseProps[propName])}if(Component=Component.defaultProps){newProps===baseProps&&(newProps=assign({},newProps));for(var propName$73 in Component)newProps[propName$73]===void 0&&(newProps[propName$73]=Component[propName$73])}return newProps}var reportGlobalError=typeof reportError=="function"?reportError:function(error){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var event=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof error=="object"&&error!==null&&typeof error.message=="string"?String(error.message):String(error),error});if(!window.dispatchEvent(event))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",error);return}console.error(error)};function defaultOnUncaughtError(error){reportGlobalError(error)}function defaultOnCaughtError(error){console.error(error)}function defaultOnRecoverableError(error){reportGlobalError(error)}function logUncaughtError(root3,errorInfo){try{var onUncaughtError=root3.onUncaughtError;onUncaughtError(errorInfo.value,{componentStack:errorInfo.stack})}catch(e$74){setTimeout(function(){throw e$74})}}function logCaughtError(root3,boundary,errorInfo){try{var onCaughtError=root3.onCaughtError;onCaughtError(errorInfo.value,{componentStack:errorInfo.stack,errorBoundary:boundary.tag===1?boundary.stateNode:null})}catch(e$75){setTimeout(function(){throw e$75})}}function createRootErrorUpdate(root3,errorInfo,lane){return lane=createUpdate(lane),lane.tag=3,lane.payload={element:null},lane.callback=function(){logUncaughtError(root3,errorInfo)},lane}function createClassErrorUpdate(lane){return lane=createUpdate(lane),lane.tag=3,lane}function initializeClassErrorUpdate(update,root3,fiber,errorInfo){var getDerivedStateFromError=fiber.type.getDerivedStateFromError;if(typeof getDerivedStateFromError=="function"){var error=errorInfo.value;update.payload=function(){return getDerivedStateFromError(error)},update.callback=function(){logCaughtError(root3,fiber,errorInfo)}}var inst=fiber.stateNode;inst!==null&&typeof inst.componentDidCatch=="function"&&(update.callback=function(){logCaughtError(root3,fiber,errorInfo),typeof getDerivedStateFromError!="function"&&(legacyErrorBoundariesThatAlreadyFailed===null?legacyErrorBoundariesThatAlreadyFailed=new Set([this]):legacyErrorBoundariesThatAlreadyFailed.add(this));var stack=errorInfo.stack;this.componentDidCatch(errorInfo.value,{componentStack:stack!==null?stack:""})})}function throwException(root3,returnFiber,sourceFiber,value,rootRenderLanes){if(sourceFiber.flags|=32768,value!==null&&typeof value=="object"&&typeof value.then=="function"){if(returnFiber=sourceFiber.alternate,returnFiber!==null&&propagateParentContextChanges(returnFiber,sourceFiber,rootRenderLanes,!0),sourceFiber=suspenseHandlerStackCursor.current,sourceFiber!==null){switch(sourceFiber.tag){case 13:return shellBoundary===null?renderDidSuspendDelayIfPossible():sourceFiber.alternate===null&&workInProgressRootExitStatus===0&&(workInProgressRootExitStatus=3),sourceFiber.flags&=-257,sourceFiber.flags|=65536,sourceFiber.lanes=rootRenderLanes,value===noopSuspenseyCommitThenable?sourceFiber.flags|=16384:(returnFiber=sourceFiber.updateQueue,returnFiber===null?sourceFiber.updateQueue=new Set([value]):returnFiber.add(value),attachPingListener(root3,value,rootRenderLanes)),!1;case 22:return sourceFiber.flags|=65536,value===noopSuspenseyCommitThenable?sourceFiber.flags|=16384:(returnFiber=sourceFiber.updateQueue,returnFiber===null?(returnFiber={transitions:null,markerInstances:null,retryQueue:new Set([value])},sourceFiber.updateQueue=returnFiber):(sourceFiber=returnFiber.retryQueue,sourceFiber===null?returnFiber.retryQueue=new Set([value]):sourceFiber.add(value)),attachPingListener(root3,value,rootRenderLanes)),!1}throw Error(formatProdErrorMessage(435,sourceFiber.tag))}return attachPingListener(root3,value,rootRenderLanes),renderDidSuspendDelayIfPossible(),!1}if(isHydrating)return returnFiber=suspenseHandlerStackCursor.current,returnFiber!==null?((returnFiber.flags&65536)===0&&(returnFiber.flags|=256),returnFiber.flags|=65536,returnFiber.lanes=rootRenderLanes,value!==HydrationMismatchException&&(root3=Error(formatProdErrorMessage(422),{cause:value}),queueHydrationError(createCapturedValueAtFiber(root3,sourceFiber)))):(value!==HydrationMismatchException&&(returnFiber=Error(formatProdErrorMessage(423),{cause:value}),queueHydrationError(createCapturedValueAtFiber(returnFiber,sourceFiber))),root3=root3.current.alternate,root3.flags|=65536,rootRenderLanes&=-rootRenderLanes,root3.lanes|=rootRenderLanes,value=createCapturedValueAtFiber(value,sourceFiber),rootRenderLanes=createRootErrorUpdate(root3.stateNode,value,rootRenderLanes),enqueueCapturedUpdate(root3,rootRenderLanes),workInProgressRootExitStatus!==4&&(workInProgressRootExitStatus=2)),!1;var wrapperError=Error(formatProdErrorMessage(520),{cause:value});if(wrapperError=createCapturedValueAtFiber(wrapperError,sourceFiber),workInProgressRootConcurrentErrors===null?workInProgressRootConcurrentErrors=[wrapperError]:workInProgressRootConcurrentErrors.push(wrapperError),workInProgressRootExitStatus!==4&&(workInProgressRootExitStatus=2),returnFiber===null)return!0;value=createCapturedValueAtFiber(value,sourceFiber),sourceFiber=returnFiber;do{switch(sourceFiber.tag){case 3:return sourceFiber.flags|=65536,root3=rootRenderLanes&-rootRenderLanes,sourceFiber.lanes|=root3,root3=createRootErrorUpdate(sourceFiber.stateNode,value,root3),enqueueCapturedUpdate(sourceFiber,root3),!1;case 1:if(returnFiber=sourceFiber.type,wrapperError=sourceFiber.stateNode,(sourceFiber.flags&128)===0&&(typeof returnFiber.getDerivedStateFromError=="function"||wrapperError!==null&&typeof wrapperError.componentDidCatch=="function"&&(legacyErrorBoundariesThatAlreadyFailed===null||!legacyErrorBoundariesThatAlreadyFailed.has(wrapperError))))return sourceFiber.flags|=65536,rootRenderLanes&=-rootRenderLanes,sourceFiber.lanes|=rootRenderLanes,rootRenderLanes=createClassErrorUpdate(rootRenderLanes),initializeClassErrorUpdate(rootRenderLanes,root3,sourceFiber,value),enqueueCapturedUpdate(sourceFiber,rootRenderLanes),!1}sourceFiber=sourceFiber.return}while(sourceFiber!==null);return!1}var SelectiveHydrationException=Error(formatProdErrorMessage(461)),didReceiveUpdate=!1;function reconcileChildren(current,workInProgress2,nextChildren,renderLanes2){workInProgress2.child=current===null?mountChildFibers(workInProgress2,null,nextChildren,renderLanes2):reconcileChildFibers(workInProgress2,current.child,nextChildren,renderLanes2)}function updateForwardRef(current,workInProgress2,Component,nextProps,renderLanes2){Component=Component.render;var ref=workInProgress2.ref;if("ref"in nextProps){var propsWithoutRef={};for(var key in nextProps)key!=="ref"&&(propsWithoutRef[key]=nextProps[key])}else propsWithoutRef=nextProps;return prepareToReadContext(workInProgress2),nextProps=renderWithHooks(current,workInProgress2,Component,propsWithoutRef,ref,renderLanes2),key=checkDidRenderIdHook(),current!==null&&!didReceiveUpdate?(bailoutHooks(current,workInProgress2,renderLanes2),bailoutOnAlreadyFinishedWork(current,workInProgress2,renderLanes2)):(isHydrating&&key&&pushMaterializedTreeId(workInProgress2),workInProgress2.flags|=1,reconcileChildren(current,workInProgress2,nextProps,renderLanes2),workInProgress2.child)}function updateMemoComponent(current,workInProgress2,Component,nextProps,renderLanes2){if(current===null){var type=Component.type;return typeof type=="function"&&!shouldConstruct(type)&&type.defaultProps===void 0&&Component.compare===null?(workInProgress2.tag=15,workInProgress2.type=type,updateSimpleMemoComponent(current,workInProgress2,type,nextProps,renderLanes2)):(current=createFiberFromTypeAndProps(Component.type,null,nextProps,workInProgress2,workInProgress2.mode,renderLanes2),current.ref=workInProgress2.ref,current.return=workInProgress2,workInProgress2.child=current)}if(type=current.child,!checkScheduledUpdateOrContext(current,renderLanes2)){var prevProps=type.memoizedProps;if(Component=Component.compare,Component=Component!==null?Component:shallowEqual,Component(prevProps,nextProps)&¤t.ref===workInProgress2.ref)return bailoutOnAlreadyFinishedWork(current,workInProgress2,renderLanes2)}return workInProgress2.flags|=1,current=createWorkInProgress(type,nextProps),current.ref=workInProgress2.ref,current.return=workInProgress2,workInProgress2.child=current}function updateSimpleMemoComponent(current,workInProgress2,Component,nextProps,renderLanes2){if(current!==null){var prevProps=current.memoizedProps;if(shallowEqual(prevProps,nextProps)&¤t.ref===workInProgress2.ref)if(didReceiveUpdate=!1,workInProgress2.pendingProps=nextProps=prevProps,checkScheduledUpdateOrContext(current,renderLanes2))(current.flags&131072)!==0&&(didReceiveUpdate=!0);else return workInProgress2.lanes=current.lanes,bailoutOnAlreadyFinishedWork(current,workInProgress2,renderLanes2)}return updateFunctionComponent(current,workInProgress2,Component,nextProps,renderLanes2)}function updateOffscreenComponent(current,workInProgress2,renderLanes2){var nextProps=workInProgress2.pendingProps,nextChildren=nextProps.children,prevState=current!==null?current.memoizedState:null;if(nextProps.mode==="hidden"){if((workInProgress2.flags&128)!==0){if(nextProps=prevState!==null?prevState.baseLanes|renderLanes2:renderLanes2,current!==null){for(nextChildren=workInProgress2.child=current.child,prevState=0;nextChildren!==null;)prevState=prevState|nextChildren.lanes|nextChildren.childLanes,nextChildren=nextChildren.sibling;workInProgress2.childLanes=prevState&~nextProps}else workInProgress2.childLanes=0,workInProgress2.child=null;return deferHiddenOffscreenComponent(current,workInProgress2,nextProps,renderLanes2)}if((renderLanes2&536870912)!==0)workInProgress2.memoizedState={baseLanes:0,cachePool:null},current!==null&&pushTransition(workInProgress2,prevState!==null?prevState.cachePool:null),prevState!==null?pushHiddenContext(workInProgress2,prevState):reuseHiddenContextOnStack(),pushOffscreenSuspenseHandler(workInProgress2);else return workInProgress2.lanes=workInProgress2.childLanes=536870912,deferHiddenOffscreenComponent(current,workInProgress2,prevState!==null?prevState.baseLanes|renderLanes2:renderLanes2,renderLanes2)}else prevState!==null?(pushTransition(workInProgress2,prevState.cachePool),pushHiddenContext(workInProgress2,prevState),reuseSuspenseHandlerOnStack(),workInProgress2.memoizedState=null):(current!==null&&pushTransition(workInProgress2,null),reuseHiddenContextOnStack(),reuseSuspenseHandlerOnStack());return reconcileChildren(current,workInProgress2,nextChildren,renderLanes2),workInProgress2.child}function deferHiddenOffscreenComponent(current,workInProgress2,nextBaseLanes,renderLanes2){var JSCompiler_inline_result=peekCacheFromPool();return JSCompiler_inline_result=JSCompiler_inline_result===null?null:{parent:CacheContext._currentValue,pool:JSCompiler_inline_result},workInProgress2.memoizedState={baseLanes:nextBaseLanes,cachePool:JSCompiler_inline_result},current!==null&&pushTransition(workInProgress2,null),reuseHiddenContextOnStack(),pushOffscreenSuspenseHandler(workInProgress2),current!==null&&propagateParentContextChanges(current,workInProgress2,renderLanes2,!0),null}function markRef(current,workInProgress2){var ref=workInProgress2.ref;if(ref===null)current!==null&¤t.ref!==null&&(workInProgress2.flags|=4194816);else{if(typeof ref!="function"&&typeof ref!="object")throw Error(formatProdErrorMessage(284));(current===null||current.ref!==ref)&&(workInProgress2.flags|=4194816)}}function updateFunctionComponent(current,workInProgress2,Component,nextProps,renderLanes2){return prepareToReadContext(workInProgress2),Component=renderWithHooks(current,workInProgress2,Component,nextProps,void 0,renderLanes2),nextProps=checkDidRenderIdHook(),current!==null&&!didReceiveUpdate?(bailoutHooks(current,workInProgress2,renderLanes2),bailoutOnAlreadyFinishedWork(current,workInProgress2,renderLanes2)):(isHydrating&&nextProps&&pushMaterializedTreeId(workInProgress2),workInProgress2.flags|=1,reconcileChildren(current,workInProgress2,Component,renderLanes2),workInProgress2.child)}function replayFunctionComponent(current,workInProgress2,nextProps,Component,secondArg,renderLanes2){return prepareToReadContext(workInProgress2),workInProgress2.updateQueue=null,nextProps=renderWithHooksAgain(workInProgress2,Component,nextProps,secondArg),finishRenderingHooks(current),Component=checkDidRenderIdHook(),current!==null&&!didReceiveUpdate?(bailoutHooks(current,workInProgress2,renderLanes2),bailoutOnAlreadyFinishedWork(current,workInProgress2,renderLanes2)):(isHydrating&&Component&&pushMaterializedTreeId(workInProgress2),workInProgress2.flags|=1,reconcileChildren(current,workInProgress2,nextProps,renderLanes2),workInProgress2.child)}function updateClassComponent(current,workInProgress2,Component,nextProps,renderLanes2){if(prepareToReadContext(workInProgress2),workInProgress2.stateNode===null){var context=emptyContextObject,contextType=Component.contextType;typeof contextType=="object"&&contextType!==null&&(context=readContext(contextType)),context=new Component(nextProps,context),workInProgress2.memoizedState=context.state!==null&&context.state!==void 0?context.state:null,context.updater=classComponentUpdater,workInProgress2.stateNode=context,context._reactInternals=workInProgress2,context=workInProgress2.stateNode,context.props=nextProps,context.state=workInProgress2.memoizedState,context.refs={},initializeUpdateQueue(workInProgress2),contextType=Component.contextType,context.context=typeof contextType=="object"&&contextType!==null?readContext(contextType):emptyContextObject,context.state=workInProgress2.memoizedState,contextType=Component.getDerivedStateFromProps,typeof contextType=="function"&&(applyDerivedStateFromProps(workInProgress2,Component,contextType,nextProps),context.state=workInProgress2.memoizedState),typeof Component.getDerivedStateFromProps=="function"||typeof context.getSnapshotBeforeUpdate=="function"||typeof context.UNSAFE_componentWillMount!="function"&&typeof context.componentWillMount!="function"||(contextType=context.state,typeof context.componentWillMount=="function"&&context.componentWillMount(),typeof context.UNSAFE_componentWillMount=="function"&&context.UNSAFE_componentWillMount(),contextType!==context.state&&classComponentUpdater.enqueueReplaceState(context,context.state,null),processUpdateQueue(workInProgress2,nextProps,context,renderLanes2),suspendIfUpdateReadFromEntangledAsyncAction(),context.state=workInProgress2.memoizedState),typeof context.componentDidMount=="function"&&(workInProgress2.flags|=4194308),nextProps=!0}else if(current===null){context=workInProgress2.stateNode;var unresolvedOldProps=workInProgress2.memoizedProps,oldProps=resolveClassComponentProps(Component,unresolvedOldProps);context.props=oldProps;var oldContext=context.context,contextType$jscomp$0=Component.contextType;contextType=emptyContextObject,typeof contextType$jscomp$0=="object"&&contextType$jscomp$0!==null&&(contextType=readContext(contextType$jscomp$0));var getDerivedStateFromProps=Component.getDerivedStateFromProps;contextType$jscomp$0=typeof getDerivedStateFromProps=="function"||typeof context.getSnapshotBeforeUpdate=="function",unresolvedOldProps=workInProgress2.pendingProps!==unresolvedOldProps,contextType$jscomp$0||typeof context.UNSAFE_componentWillReceiveProps!="function"&&typeof context.componentWillReceiveProps!="function"||(unresolvedOldProps||oldContext!==contextType)&&callComponentWillReceiveProps(workInProgress2,context,nextProps,contextType),hasForceUpdate=!1;var oldState=workInProgress2.memoizedState;context.state=oldState,processUpdateQueue(workInProgress2,nextProps,context,renderLanes2),suspendIfUpdateReadFromEntangledAsyncAction(),oldContext=workInProgress2.memoizedState,unresolvedOldProps||oldState!==oldContext||hasForceUpdate?(typeof getDerivedStateFromProps=="function"&&(applyDerivedStateFromProps(workInProgress2,Component,getDerivedStateFromProps,nextProps),oldContext=workInProgress2.memoizedState),(oldProps=hasForceUpdate||checkShouldComponentUpdate(workInProgress2,Component,oldProps,nextProps,oldState,oldContext,contextType))?(contextType$jscomp$0||typeof context.UNSAFE_componentWillMount!="function"&&typeof context.componentWillMount!="function"||(typeof context.componentWillMount=="function"&&context.componentWillMount(),typeof context.UNSAFE_componentWillMount=="function"&&context.UNSAFE_componentWillMount()),typeof context.componentDidMount=="function"&&(workInProgress2.flags|=4194308)):(typeof context.componentDidMount=="function"&&(workInProgress2.flags|=4194308),workInProgress2.memoizedProps=nextProps,workInProgress2.memoizedState=oldContext),context.props=nextProps,context.state=oldContext,context.context=contextType,nextProps=oldProps):(typeof context.componentDidMount=="function"&&(workInProgress2.flags|=4194308),nextProps=!1)}else{context=workInProgress2.stateNode,cloneUpdateQueue(current,workInProgress2),contextType=workInProgress2.memoizedProps,contextType$jscomp$0=resolveClassComponentProps(Component,contextType),context.props=contextType$jscomp$0,getDerivedStateFromProps=workInProgress2.pendingProps,oldState=context.context,oldContext=Component.contextType,oldProps=emptyContextObject,typeof oldContext=="object"&&oldContext!==null&&(oldProps=readContext(oldContext)),unresolvedOldProps=Component.getDerivedStateFromProps,(oldContext=typeof unresolvedOldProps=="function"||typeof context.getSnapshotBeforeUpdate=="function")||typeof context.UNSAFE_componentWillReceiveProps!="function"&&typeof context.componentWillReceiveProps!="function"||(contextType!==getDerivedStateFromProps||oldState!==oldProps)&&callComponentWillReceiveProps(workInProgress2,context,nextProps,oldProps),hasForceUpdate=!1,oldState=workInProgress2.memoizedState,context.state=oldState,processUpdateQueue(workInProgress2,nextProps,context,renderLanes2),suspendIfUpdateReadFromEntangledAsyncAction();var newState=workInProgress2.memoizedState;contextType!==getDerivedStateFromProps||oldState!==newState||hasForceUpdate||current!==null&¤t.dependencies!==null&&checkIfContextChanged(current.dependencies)?(typeof unresolvedOldProps=="function"&&(applyDerivedStateFromProps(workInProgress2,Component,unresolvedOldProps,nextProps),newState=workInProgress2.memoizedState),(contextType$jscomp$0=hasForceUpdate||checkShouldComponentUpdate(workInProgress2,Component,contextType$jscomp$0,nextProps,oldState,newState,oldProps)||current!==null&¤t.dependencies!==null&&checkIfContextChanged(current.dependencies))?(oldContext||typeof context.UNSAFE_componentWillUpdate!="function"&&typeof context.componentWillUpdate!="function"||(typeof context.componentWillUpdate=="function"&&context.componentWillUpdate(nextProps,newState,oldProps),typeof context.UNSAFE_componentWillUpdate=="function"&&context.UNSAFE_componentWillUpdate(nextProps,newState,oldProps)),typeof context.componentDidUpdate=="function"&&(workInProgress2.flags|=4),typeof context.getSnapshotBeforeUpdate=="function"&&(workInProgress2.flags|=1024)):(typeof context.componentDidUpdate!="function"||contextType===current.memoizedProps&&oldState===current.memoizedState||(workInProgress2.flags|=4),typeof context.getSnapshotBeforeUpdate!="function"||contextType===current.memoizedProps&&oldState===current.memoizedState||(workInProgress2.flags|=1024),workInProgress2.memoizedProps=nextProps,workInProgress2.memoizedState=newState),context.props=nextProps,context.state=newState,context.context=oldProps,nextProps=contextType$jscomp$0):(typeof context.componentDidUpdate!="function"||contextType===current.memoizedProps&&oldState===current.memoizedState||(workInProgress2.flags|=4),typeof context.getSnapshotBeforeUpdate!="function"||contextType===current.memoizedProps&&oldState===current.memoizedState||(workInProgress2.flags|=1024),nextProps=!1)}return context=nextProps,markRef(current,workInProgress2),nextProps=(workInProgress2.flags&128)!==0,context||nextProps?(context=workInProgress2.stateNode,Component=nextProps&&typeof Component.getDerivedStateFromError!="function"?null:context.render(),workInProgress2.flags|=1,current!==null&&nextProps?(workInProgress2.child=reconcileChildFibers(workInProgress2,current.child,null,renderLanes2),workInProgress2.child=reconcileChildFibers(workInProgress2,null,Component,renderLanes2)):reconcileChildren(current,workInProgress2,Component,renderLanes2),workInProgress2.memoizedState=context.state,current=workInProgress2.child):current=bailoutOnAlreadyFinishedWork(current,workInProgress2,renderLanes2),current}function mountHostRootWithoutHydrating(current,workInProgress2,nextChildren,renderLanes2){return resetHydrationState(),workInProgress2.flags|=256,reconcileChildren(current,workInProgress2,nextChildren,renderLanes2),workInProgress2.child}var SUSPENDED_MARKER={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function mountSuspenseOffscreenState(renderLanes2){return{baseLanes:renderLanes2,cachePool:getSuspendedCache()}}function getRemainingWorkInPrimaryTree(current,primaryTreeDidDefer,renderLanes2){return current=current!==null?current.childLanes&~renderLanes2:0,primaryTreeDidDefer&&(current|=workInProgressDeferredLane),current}function updateSuspenseComponent(current,workInProgress2,renderLanes2){var nextProps=workInProgress2.pendingProps,showFallback=!1,didSuspend=(workInProgress2.flags&128)!==0,JSCompiler_temp;if((JSCompiler_temp=didSuspend)||(JSCompiler_temp=current!==null&¤t.memoizedState===null?!1:(suspenseStackCursor.current&2)!==0),JSCompiler_temp&&(showFallback=!0,workInProgress2.flags&=-129),JSCompiler_temp=(workInProgress2.flags&32)!==0,workInProgress2.flags&=-33,current===null){if(isHydrating){if(showFallback?pushPrimaryTreeSuspenseHandler(workInProgress2):reuseSuspenseHandlerOnStack(),isHydrating){var nextInstance=nextHydratableInstance,JSCompiler_temp$jscomp$0;if(JSCompiler_temp$jscomp$0=nextInstance){c:{for(JSCompiler_temp$jscomp$0=nextInstance,nextInstance=rootOrSingletonContext;JSCompiler_temp$jscomp$0.nodeType!==8;){if(!nextInstance){nextInstance=null;break c}if(JSCompiler_temp$jscomp$0=getNextHydratable(JSCompiler_temp$jscomp$0.nextSibling),JSCompiler_temp$jscomp$0===null){nextInstance=null;break c}}nextInstance=JSCompiler_temp$jscomp$0}nextInstance!==null?(workInProgress2.memoizedState={dehydrated:nextInstance,treeContext:treeContextProvider!==null?{id:treeContextId,overflow:treeContextOverflow}:null,retryLane:536870912,hydrationErrors:null},JSCompiler_temp$jscomp$0=createFiberImplClass(18,null,null,0),JSCompiler_temp$jscomp$0.stateNode=nextInstance,JSCompiler_temp$jscomp$0.return=workInProgress2,workInProgress2.child=JSCompiler_temp$jscomp$0,hydrationParentFiber=workInProgress2,nextHydratableInstance=null,JSCompiler_temp$jscomp$0=!0):JSCompiler_temp$jscomp$0=!1}JSCompiler_temp$jscomp$0||throwOnHydrationMismatch(workInProgress2)}if(nextInstance=workInProgress2.memoizedState,nextInstance!==null&&(nextInstance=nextInstance.dehydrated,nextInstance!==null))return isSuspenseInstanceFallback(nextInstance)?workInProgress2.lanes=32:workInProgress2.lanes=536870912,null;popSuspenseHandler(workInProgress2)}return nextInstance=nextProps.children,nextProps=nextProps.fallback,showFallback?(reuseSuspenseHandlerOnStack(),showFallback=workInProgress2.mode,nextInstance=mountWorkInProgressOffscreenFiber({mode:"hidden",children:nextInstance},showFallback),nextProps=createFiberFromFragment(nextProps,showFallback,renderLanes2,null),nextInstance.return=workInProgress2,nextProps.return=workInProgress2,nextInstance.sibling=nextProps,workInProgress2.child=nextInstance,showFallback=workInProgress2.child,showFallback.memoizedState=mountSuspenseOffscreenState(renderLanes2),showFallback.childLanes=getRemainingWorkInPrimaryTree(current,JSCompiler_temp,renderLanes2),workInProgress2.memoizedState=SUSPENDED_MARKER,nextProps):(pushPrimaryTreeSuspenseHandler(workInProgress2),mountSuspensePrimaryChildren(workInProgress2,nextInstance))}if(JSCompiler_temp$jscomp$0=current.memoizedState,JSCompiler_temp$jscomp$0!==null&&(nextInstance=JSCompiler_temp$jscomp$0.dehydrated,nextInstance!==null)){if(didSuspend)workInProgress2.flags&256?(pushPrimaryTreeSuspenseHandler(workInProgress2),workInProgress2.flags&=-257,workInProgress2=retrySuspenseComponentWithoutHydrating(current,workInProgress2,renderLanes2)):workInProgress2.memoizedState!==null?(reuseSuspenseHandlerOnStack(),workInProgress2.child=current.child,workInProgress2.flags|=128,workInProgress2=null):(reuseSuspenseHandlerOnStack(),showFallback=nextProps.fallback,nextInstance=workInProgress2.mode,nextProps=mountWorkInProgressOffscreenFiber({mode:"visible",children:nextProps.children},nextInstance),showFallback=createFiberFromFragment(showFallback,nextInstance,renderLanes2,null),showFallback.flags|=2,nextProps.return=workInProgress2,showFallback.return=workInProgress2,nextProps.sibling=showFallback,workInProgress2.child=nextProps,reconcileChildFibers(workInProgress2,current.child,null,renderLanes2),nextProps=workInProgress2.child,nextProps.memoizedState=mountSuspenseOffscreenState(renderLanes2),nextProps.childLanes=getRemainingWorkInPrimaryTree(current,JSCompiler_temp,renderLanes2),workInProgress2.memoizedState=SUSPENDED_MARKER,workInProgress2=showFallback);else if(pushPrimaryTreeSuspenseHandler(workInProgress2),isSuspenseInstanceFallback(nextInstance)){if(JSCompiler_temp=nextInstance.nextSibling&&nextInstance.nextSibling.dataset,JSCompiler_temp)var digest=JSCompiler_temp.dgst;JSCompiler_temp=digest,nextProps=Error(formatProdErrorMessage(419)),nextProps.stack="",nextProps.digest=JSCompiler_temp,queueHydrationError({value:nextProps,source:null,stack:null}),workInProgress2=retrySuspenseComponentWithoutHydrating(current,workInProgress2,renderLanes2)}else if(didReceiveUpdate||propagateParentContextChanges(current,workInProgress2,renderLanes2,!1),JSCompiler_temp=(renderLanes2¤t.childLanes)!==0,didReceiveUpdate||JSCompiler_temp){if(JSCompiler_temp=workInProgressRoot,JSCompiler_temp!==null&&(nextProps=renderLanes2&-renderLanes2,nextProps=(nextProps&42)!==0?1:getBumpedLaneForHydrationByLane(nextProps),nextProps=(nextProps&(JSCompiler_temp.suspendedLanes|renderLanes2))!==0?0:nextProps,nextProps!==0&&nextProps!==JSCompiler_temp$jscomp$0.retryLane))throw JSCompiler_temp$jscomp$0.retryLane=nextProps,enqueueConcurrentRenderForLane(current,nextProps),scheduleUpdateOnFiber(JSCompiler_temp,current,nextProps),SelectiveHydrationException;nextInstance.data==="$?"||renderDidSuspendDelayIfPossible(),workInProgress2=retrySuspenseComponentWithoutHydrating(current,workInProgress2,renderLanes2)}else nextInstance.data==="$?"?(workInProgress2.flags|=192,workInProgress2.child=current.child,workInProgress2=null):(current=JSCompiler_temp$jscomp$0.treeContext,nextHydratableInstance=getNextHydratable(nextInstance.nextSibling),hydrationParentFiber=workInProgress2,isHydrating=!0,hydrationErrors=null,rootOrSingletonContext=!1,current!==null&&(idStack[idStackIndex++]=treeContextId,idStack[idStackIndex++]=treeContextOverflow,idStack[idStackIndex++]=treeContextProvider,treeContextId=current.id,treeContextOverflow=current.overflow,treeContextProvider=workInProgress2),workInProgress2=mountSuspensePrimaryChildren(workInProgress2,nextProps.children),workInProgress2.flags|=4096);return workInProgress2}return showFallback?(reuseSuspenseHandlerOnStack(),showFallback=nextProps.fallback,nextInstance=workInProgress2.mode,JSCompiler_temp$jscomp$0=current.child,digest=JSCompiler_temp$jscomp$0.sibling,nextProps=createWorkInProgress(JSCompiler_temp$jscomp$0,{mode:"hidden",children:nextProps.children}),nextProps.subtreeFlags=JSCompiler_temp$jscomp$0.subtreeFlags&65011712,digest!==null?showFallback=createWorkInProgress(digest,showFallback):(showFallback=createFiberFromFragment(showFallback,nextInstance,renderLanes2,null),showFallback.flags|=2),showFallback.return=workInProgress2,nextProps.return=workInProgress2,nextProps.sibling=showFallback,workInProgress2.child=nextProps,nextProps=showFallback,showFallback=workInProgress2.child,nextInstance=current.child.memoizedState,nextInstance===null?nextInstance=mountSuspenseOffscreenState(renderLanes2):(JSCompiler_temp$jscomp$0=nextInstance.cachePool,JSCompiler_temp$jscomp$0!==null?(digest=CacheContext._currentValue,JSCompiler_temp$jscomp$0=JSCompiler_temp$jscomp$0.parent!==digest?{parent:digest,pool:digest}:JSCompiler_temp$jscomp$0):JSCompiler_temp$jscomp$0=getSuspendedCache(),nextInstance={baseLanes:nextInstance.baseLanes|renderLanes2,cachePool:JSCompiler_temp$jscomp$0}),showFallback.memoizedState=nextInstance,showFallback.childLanes=getRemainingWorkInPrimaryTree(current,JSCompiler_temp,renderLanes2),workInProgress2.memoizedState=SUSPENDED_MARKER,nextProps):(pushPrimaryTreeSuspenseHandler(workInProgress2),renderLanes2=current.child,current=renderLanes2.sibling,renderLanes2=createWorkInProgress(renderLanes2,{mode:"visible",children:nextProps.children}),renderLanes2.return=workInProgress2,renderLanes2.sibling=null,current!==null&&(JSCompiler_temp=workInProgress2.deletions,JSCompiler_temp===null?(workInProgress2.deletions=[current],workInProgress2.flags|=16):JSCompiler_temp.push(current)),workInProgress2.child=renderLanes2,workInProgress2.memoizedState=null,renderLanes2)}function mountSuspensePrimaryChildren(workInProgress2,primaryChildren){return primaryChildren=mountWorkInProgressOffscreenFiber({mode:"visible",children:primaryChildren},workInProgress2.mode),primaryChildren.return=workInProgress2,workInProgress2.child=primaryChildren}function mountWorkInProgressOffscreenFiber(offscreenProps,mode){return offscreenProps=createFiberImplClass(22,offscreenProps,null,mode),offscreenProps.lanes=0,offscreenProps.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null},offscreenProps}function retrySuspenseComponentWithoutHydrating(current,workInProgress2,renderLanes2){return reconcileChildFibers(workInProgress2,current.child,null,renderLanes2),current=mountSuspensePrimaryChildren(workInProgress2,workInProgress2.pendingProps.children),current.flags|=2,workInProgress2.memoizedState=null,current}function scheduleSuspenseWorkOnFiber(fiber,renderLanes2,propagationRoot){fiber.lanes|=renderLanes2;var alternate=fiber.alternate;alternate!==null&&(alternate.lanes|=renderLanes2),scheduleContextWorkOnParentPath(fiber.return,renderLanes2,propagationRoot)}function initSuspenseListRenderState(workInProgress2,isBackwards,tail,lastContentRow,tailMode){var renderState=workInProgress2.memoizedState;renderState===null?workInProgress2.memoizedState={isBackwards,rendering:null,renderingStartTime:0,last:lastContentRow,tail,tailMode}:(renderState.isBackwards=isBackwards,renderState.rendering=null,renderState.renderingStartTime=0,renderState.last=lastContentRow,renderState.tail=tail,renderState.tailMode=tailMode)}function updateSuspenseListComponent(current,workInProgress2,renderLanes2){var nextProps=workInProgress2.pendingProps,revealOrder=nextProps.revealOrder,tailMode=nextProps.tail;if(reconcileChildren(current,workInProgress2,nextProps.children,renderLanes2),nextProps=suspenseStackCursor.current,(nextProps&2)!==0)nextProps=nextProps&1|2,workInProgress2.flags|=128;else{if(current!==null&&(current.flags&128)!==0)a:for(current=workInProgress2.child;current!==null;){if(current.tag===13)current.memoizedState!==null&&scheduleSuspenseWorkOnFiber(current,renderLanes2,workInProgress2);else if(current.tag===19)scheduleSuspenseWorkOnFiber(current,renderLanes2,workInProgress2);else if(current.child!==null){current.child.return=current,current=current.child;continue}if(current===workInProgress2)break a;for(;current.sibling===null;){if(current.return===null||current.return===workInProgress2)break a;current=current.return}current.sibling.return=current.return,current=current.sibling}nextProps&=1}switch(push(suspenseStackCursor,nextProps),revealOrder){case"forwards":for(renderLanes2=workInProgress2.child,revealOrder=null;renderLanes2!==null;)current=renderLanes2.alternate,current!==null&&findFirstSuspended(current)===null&&(revealOrder=renderLanes2),renderLanes2=renderLanes2.sibling;renderLanes2=revealOrder,renderLanes2===null?(revealOrder=workInProgress2.child,workInProgress2.child=null):(revealOrder=renderLanes2.sibling,renderLanes2.sibling=null),initSuspenseListRenderState(workInProgress2,!1,revealOrder,renderLanes2,tailMode);break;case"backwards":for(renderLanes2=null,revealOrder=workInProgress2.child,workInProgress2.child=null;revealOrder!==null;){if(current=revealOrder.alternate,current!==null&&findFirstSuspended(current)===null){workInProgress2.child=revealOrder;break}current=revealOrder.sibling,revealOrder.sibling=renderLanes2,renderLanes2=revealOrder,revealOrder=current}initSuspenseListRenderState(workInProgress2,!0,renderLanes2,null,tailMode);break;case"together":initSuspenseListRenderState(workInProgress2,!1,null,null,void 0);break;default:workInProgress2.memoizedState=null}return workInProgress2.child}function bailoutOnAlreadyFinishedWork(current,workInProgress2,renderLanes2){if(current!==null&&(workInProgress2.dependencies=current.dependencies),workInProgressRootSkippedLanes|=workInProgress2.lanes,(renderLanes2&workInProgress2.childLanes)===0)if(current!==null){if(propagateParentContextChanges(current,workInProgress2,renderLanes2,!1),(renderLanes2&workInProgress2.childLanes)===0)return null}else return null;if(current!==null&&workInProgress2.child!==current.child)throw Error(formatProdErrorMessage(153));if(workInProgress2.child!==null){for(current=workInProgress2.child,renderLanes2=createWorkInProgress(current,current.pendingProps),workInProgress2.child=renderLanes2,renderLanes2.return=workInProgress2;current.sibling!==null;)current=current.sibling,renderLanes2=renderLanes2.sibling=createWorkInProgress(current,current.pendingProps),renderLanes2.return=workInProgress2;renderLanes2.sibling=null}return workInProgress2.child}function checkScheduledUpdateOrContext(current,renderLanes2){return(current.lanes&renderLanes2)!==0?!0:(current=current.dependencies,!!(current!==null&&checkIfContextChanged(current)))}function attemptEarlyBailoutIfNoScheduledUpdate(current,workInProgress2,renderLanes2){switch(workInProgress2.tag){case 3:pushHostContainer(workInProgress2,workInProgress2.stateNode.containerInfo),pushProvider(workInProgress2,CacheContext,current.memoizedState.cache),resetHydrationState();break;case 27:case 5:pushHostContext(workInProgress2);break;case 4:pushHostContainer(workInProgress2,workInProgress2.stateNode.containerInfo);break;case 10:pushProvider(workInProgress2,workInProgress2.type,workInProgress2.memoizedProps.value);break;case 13:var state=workInProgress2.memoizedState;if(state!==null)return state.dehydrated!==null?(pushPrimaryTreeSuspenseHandler(workInProgress2),workInProgress2.flags|=128,null):(renderLanes2&workInProgress2.child.childLanes)!==0?updateSuspenseComponent(current,workInProgress2,renderLanes2):(pushPrimaryTreeSuspenseHandler(workInProgress2),current=bailoutOnAlreadyFinishedWork(current,workInProgress2,renderLanes2),current!==null?current.sibling:null);pushPrimaryTreeSuspenseHandler(workInProgress2);break;case 19:var didSuspendBefore=(current.flags&128)!==0;if(state=(renderLanes2&workInProgress2.childLanes)!==0,state||(propagateParentContextChanges(current,workInProgress2,renderLanes2,!1),state=(renderLanes2&workInProgress2.childLanes)!==0),didSuspendBefore){if(state)return updateSuspenseListComponent(current,workInProgress2,renderLanes2);workInProgress2.flags|=128}if(didSuspendBefore=workInProgress2.memoizedState,didSuspendBefore!==null&&(didSuspendBefore.rendering=null,didSuspendBefore.tail=null,didSuspendBefore.lastEffect=null),push(suspenseStackCursor,suspenseStackCursor.current),state)break;return null;case 22:case 23:return workInProgress2.lanes=0,updateOffscreenComponent(current,workInProgress2,renderLanes2);case 24:pushProvider(workInProgress2,CacheContext,current.memoizedState.cache)}return bailoutOnAlreadyFinishedWork(current,workInProgress2,renderLanes2)}function beginWork(current,workInProgress2,renderLanes2){if(current!==null)if(current.memoizedProps!==workInProgress2.pendingProps)didReceiveUpdate=!0;else{if(!checkScheduledUpdateOrContext(current,renderLanes2)&&(workInProgress2.flags&128)===0)return didReceiveUpdate=!1,attemptEarlyBailoutIfNoScheduledUpdate(current,workInProgress2,renderLanes2);didReceiveUpdate=(current.flags&131072)!==0}else didReceiveUpdate=!1,isHydrating&&(workInProgress2.flags&1048576)!==0&&pushTreeId(workInProgress2,treeForkCount,workInProgress2.index);switch(workInProgress2.lanes=0,workInProgress2.tag){case 16:a:{current=workInProgress2.pendingProps;var lazyComponent=workInProgress2.elementType,init=lazyComponent._init;if(lazyComponent=init(lazyComponent._payload),workInProgress2.type=lazyComponent,typeof lazyComponent=="function")shouldConstruct(lazyComponent)?(current=resolveClassComponentProps(lazyComponent,current),workInProgress2.tag=1,workInProgress2=updateClassComponent(null,workInProgress2,lazyComponent,current,renderLanes2)):(workInProgress2.tag=0,workInProgress2=updateFunctionComponent(null,workInProgress2,lazyComponent,current,renderLanes2));else{if(lazyComponent!=null){if(init=lazyComponent.$$typeof,init===REACT_FORWARD_REF_TYPE){workInProgress2.tag=11,workInProgress2=updateForwardRef(null,workInProgress2,lazyComponent,current,renderLanes2);break a}else if(init===REACT_MEMO_TYPE){workInProgress2.tag=14,workInProgress2=updateMemoComponent(null,workInProgress2,lazyComponent,current,renderLanes2);break a}}throw workInProgress2=getComponentNameFromType(lazyComponent)||lazyComponent,Error(formatProdErrorMessage(306,workInProgress2,""))}}return workInProgress2;case 0:return updateFunctionComponent(current,workInProgress2,workInProgress2.type,workInProgress2.pendingProps,renderLanes2);case 1:return lazyComponent=workInProgress2.type,init=resolveClassComponentProps(lazyComponent,workInProgress2.pendingProps),updateClassComponent(current,workInProgress2,lazyComponent,init,renderLanes2);case 3:a:{if(pushHostContainer(workInProgress2,workInProgress2.stateNode.containerInfo),current===null)throw Error(formatProdErrorMessage(387));lazyComponent=workInProgress2.pendingProps;var prevState=workInProgress2.memoizedState;init=prevState.element,cloneUpdateQueue(current,workInProgress2),processUpdateQueue(workInProgress2,lazyComponent,null,renderLanes2);var nextState=workInProgress2.memoizedState;if(lazyComponent=nextState.cache,pushProvider(workInProgress2,CacheContext,lazyComponent),lazyComponent!==prevState.cache&&propagateContextChanges(workInProgress2,[CacheContext],renderLanes2,!0),suspendIfUpdateReadFromEntangledAsyncAction(),lazyComponent=nextState.element,prevState.isDehydrated)if(prevState={element:lazyComponent,isDehydrated:!1,cache:nextState.cache},workInProgress2.updateQueue.baseState=prevState,workInProgress2.memoizedState=prevState,workInProgress2.flags&256){workInProgress2=mountHostRootWithoutHydrating(current,workInProgress2,lazyComponent,renderLanes2);break a}else if(lazyComponent!==init){init=createCapturedValueAtFiber(Error(formatProdErrorMessage(424)),workInProgress2),queueHydrationError(init),workInProgress2=mountHostRootWithoutHydrating(current,workInProgress2,lazyComponent,renderLanes2);break a}else{switch(current=workInProgress2.stateNode.containerInfo,current.nodeType){case 9:current=current.body;break;default:current=current.nodeName==="HTML"?current.ownerDocument.body:current}for(nextHydratableInstance=getNextHydratable(current.firstChild),hydrationParentFiber=workInProgress2,isHydrating=!0,hydrationErrors=null,rootOrSingletonContext=!0,renderLanes2=mountChildFibers(workInProgress2,null,lazyComponent,renderLanes2),workInProgress2.child=renderLanes2;renderLanes2;)renderLanes2.flags=renderLanes2.flags&-3|4096,renderLanes2=renderLanes2.sibling}else{if(resetHydrationState(),lazyComponent===init){workInProgress2=bailoutOnAlreadyFinishedWork(current,workInProgress2,renderLanes2);break a}reconcileChildren(current,workInProgress2,lazyComponent,renderLanes2)}workInProgress2=workInProgress2.child}return workInProgress2;case 26:return markRef(current,workInProgress2),current===null?(renderLanes2=getResource(workInProgress2.type,null,workInProgress2.pendingProps,null))?workInProgress2.memoizedState=renderLanes2:isHydrating||(renderLanes2=workInProgress2.type,current=workInProgress2.pendingProps,lazyComponent=getOwnerDocumentFromRootContainer(rootInstanceStackCursor.current).createElement(renderLanes2),lazyComponent[internalInstanceKey]=workInProgress2,lazyComponent[internalPropsKey]=current,setInitialProperties(lazyComponent,renderLanes2,current),markNodeAsHoistable(lazyComponent),workInProgress2.stateNode=lazyComponent):workInProgress2.memoizedState=getResource(workInProgress2.type,current.memoizedProps,workInProgress2.pendingProps,current.memoizedState),null;case 27:return pushHostContext(workInProgress2),current===null&&isHydrating&&(lazyComponent=workInProgress2.stateNode=resolveSingletonInstance(workInProgress2.type,workInProgress2.pendingProps,rootInstanceStackCursor.current),hydrationParentFiber=workInProgress2,rootOrSingletonContext=!0,init=nextHydratableInstance,isSingletonScope(workInProgress2.type)?(previousHydratableOnEnteringScopedSingleton=init,nextHydratableInstance=getNextHydratable(lazyComponent.firstChild)):nextHydratableInstance=init),reconcileChildren(current,workInProgress2,workInProgress2.pendingProps.children,renderLanes2),markRef(current,workInProgress2),current===null&&(workInProgress2.flags|=4194304),workInProgress2.child;case 5:return current===null&&isHydrating&&((init=lazyComponent=nextHydratableInstance)&&(lazyComponent=canHydrateInstance(lazyComponent,workInProgress2.type,workInProgress2.pendingProps,rootOrSingletonContext),lazyComponent!==null?(workInProgress2.stateNode=lazyComponent,hydrationParentFiber=workInProgress2,nextHydratableInstance=getNextHydratable(lazyComponent.firstChild),rootOrSingletonContext=!1,init=!0):init=!1),init||throwOnHydrationMismatch(workInProgress2)),pushHostContext(workInProgress2),init=workInProgress2.type,prevState=workInProgress2.pendingProps,nextState=current!==null?current.memoizedProps:null,lazyComponent=prevState.children,shouldSetTextContent(init,prevState)?lazyComponent=null:nextState!==null&&shouldSetTextContent(init,nextState)&&(workInProgress2.flags|=32),workInProgress2.memoizedState!==null&&(init=renderWithHooks(current,workInProgress2,TransitionAwareHostComponent,null,null,renderLanes2),HostTransitionContext._currentValue=init),markRef(current,workInProgress2),reconcileChildren(current,workInProgress2,lazyComponent,renderLanes2),workInProgress2.child;case 6:return current===null&&isHydrating&&((current=renderLanes2=nextHydratableInstance)&&(renderLanes2=canHydrateTextInstance(renderLanes2,workInProgress2.pendingProps,rootOrSingletonContext),renderLanes2!==null?(workInProgress2.stateNode=renderLanes2,hydrationParentFiber=workInProgress2,nextHydratableInstance=null,current=!0):current=!1),current||throwOnHydrationMismatch(workInProgress2)),null;case 13:return updateSuspenseComponent(current,workInProgress2,renderLanes2);case 4:return pushHostContainer(workInProgress2,workInProgress2.stateNode.containerInfo),lazyComponent=workInProgress2.pendingProps,current===null?workInProgress2.child=reconcileChildFibers(workInProgress2,null,lazyComponent,renderLanes2):reconcileChildren(current,workInProgress2,lazyComponent,renderLanes2),workInProgress2.child;case 11:return updateForwardRef(current,workInProgress2,workInProgress2.type,workInProgress2.pendingProps,renderLanes2);case 7:return reconcileChildren(current,workInProgress2,workInProgress2.pendingProps,renderLanes2),workInProgress2.child;case 8:return reconcileChildren(current,workInProgress2,workInProgress2.pendingProps.children,renderLanes2),workInProgress2.child;case 12:return reconcileChildren(current,workInProgress2,workInProgress2.pendingProps.children,renderLanes2),workInProgress2.child;case 10:return lazyComponent=workInProgress2.pendingProps,pushProvider(workInProgress2,workInProgress2.type,lazyComponent.value),reconcileChildren(current,workInProgress2,lazyComponent.children,renderLanes2),workInProgress2.child;case 9:return init=workInProgress2.type._context,lazyComponent=workInProgress2.pendingProps.children,prepareToReadContext(workInProgress2),init=readContext(init),lazyComponent=lazyComponent(init),workInProgress2.flags|=1,reconcileChildren(current,workInProgress2,lazyComponent,renderLanes2),workInProgress2.child;case 14:return updateMemoComponent(current,workInProgress2,workInProgress2.type,workInProgress2.pendingProps,renderLanes2);case 15:return updateSimpleMemoComponent(current,workInProgress2,workInProgress2.type,workInProgress2.pendingProps,renderLanes2);case 19:return updateSuspenseListComponent(current,workInProgress2,renderLanes2);case 31:return lazyComponent=workInProgress2.pendingProps,renderLanes2=workInProgress2.mode,lazyComponent={mode:lazyComponent.mode,children:lazyComponent.children},current===null?(renderLanes2=mountWorkInProgressOffscreenFiber(lazyComponent,renderLanes2),renderLanes2.ref=workInProgress2.ref,workInProgress2.child=renderLanes2,renderLanes2.return=workInProgress2,workInProgress2=renderLanes2):(renderLanes2=createWorkInProgress(current.child,lazyComponent),renderLanes2.ref=workInProgress2.ref,workInProgress2.child=renderLanes2,renderLanes2.return=workInProgress2,workInProgress2=renderLanes2),workInProgress2;case 22:return updateOffscreenComponent(current,workInProgress2,renderLanes2);case 24:return prepareToReadContext(workInProgress2),lazyComponent=readContext(CacheContext),current===null?(init=peekCacheFromPool(),init===null&&(init=workInProgressRoot,prevState=createCache(),init.pooledCache=prevState,prevState.refCount++,prevState!==null&&(init.pooledCacheLanes|=renderLanes2),init=prevState),workInProgress2.memoizedState={parent:lazyComponent,cache:init},initializeUpdateQueue(workInProgress2),pushProvider(workInProgress2,CacheContext,init)):((current.lanes&renderLanes2)!==0&&(cloneUpdateQueue(current,workInProgress2),processUpdateQueue(workInProgress2,null,null,renderLanes2),suspendIfUpdateReadFromEntangledAsyncAction()),init=current.memoizedState,prevState=workInProgress2.memoizedState,init.parent!==lazyComponent?(init={parent:lazyComponent,cache:lazyComponent},workInProgress2.memoizedState=init,workInProgress2.lanes===0&&(workInProgress2.memoizedState=workInProgress2.updateQueue.baseState=init),pushProvider(workInProgress2,CacheContext,lazyComponent)):(lazyComponent=prevState.cache,pushProvider(workInProgress2,CacheContext,lazyComponent),lazyComponent!==init.cache&&propagateContextChanges(workInProgress2,[CacheContext],renderLanes2,!0))),reconcileChildren(current,workInProgress2,workInProgress2.pendingProps.children,renderLanes2),workInProgress2.child;case 29:throw workInProgress2.pendingProps}throw Error(formatProdErrorMessage(156,workInProgress2.tag))}function markUpdate(workInProgress2){workInProgress2.flags|=4}function preloadResourceAndSuspendIfNeeded(workInProgress2,resource){if(resource.type!=="stylesheet"||(resource.state.loading&4)!==0)workInProgress2.flags&=-16777217;else if(workInProgress2.flags|=16777216,!preloadResource(resource)){if(resource=suspenseHandlerStackCursor.current,resource!==null&&((workInProgressRootRenderLanes&4194048)===workInProgressRootRenderLanes?shellBoundary!==null:(workInProgressRootRenderLanes&62914560)!==workInProgressRootRenderLanes&&(workInProgressRootRenderLanes&536870912)===0||resource!==shellBoundary))throw suspendedThenable=noopSuspenseyCommitThenable,SuspenseyCommitException;workInProgress2.flags|=8192}}function scheduleRetryEffect(workInProgress2,retryQueue){retryQueue!==null&&(workInProgress2.flags|=4),workInProgress2.flags&16384&&(retryQueue=workInProgress2.tag!==22?claimNextRetryLane():536870912,workInProgress2.lanes|=retryQueue,workInProgressSuspendedRetryLanes|=retryQueue)}function cutOffTailIfNeeded(renderState,hasRenderedATailFallback){if(!isHydrating)switch(renderState.tailMode){case"hidden":hasRenderedATailFallback=renderState.tail;for(var lastTailNode=null;hasRenderedATailFallback!==null;)hasRenderedATailFallback.alternate!==null&&(lastTailNode=hasRenderedATailFallback),hasRenderedATailFallback=hasRenderedATailFallback.sibling;lastTailNode===null?renderState.tail=null:lastTailNode.sibling=null;break;case"collapsed":lastTailNode=renderState.tail;for(var lastTailNode$113=null;lastTailNode!==null;)lastTailNode.alternate!==null&&(lastTailNode$113=lastTailNode),lastTailNode=lastTailNode.sibling;lastTailNode$113===null?hasRenderedATailFallback||renderState.tail===null?renderState.tail=null:renderState.tail.sibling=null:lastTailNode$113.sibling=null}}function bubbleProperties(completedWork){var didBailout=completedWork.alternate!==null&&completedWork.alternate.child===completedWork.child,newChildLanes=0,subtreeFlags=0;if(didBailout)for(var child$114=completedWork.child;child$114!==null;)newChildLanes|=child$114.lanes|child$114.childLanes,subtreeFlags|=child$114.subtreeFlags&65011712,subtreeFlags|=child$114.flags&65011712,child$114.return=completedWork,child$114=child$114.sibling;else for(child$114=completedWork.child;child$114!==null;)newChildLanes|=child$114.lanes|child$114.childLanes,subtreeFlags|=child$114.subtreeFlags,subtreeFlags|=child$114.flags,child$114.return=completedWork,child$114=child$114.sibling;return completedWork.subtreeFlags|=subtreeFlags,completedWork.childLanes=newChildLanes,didBailout}function completeWork(current,workInProgress2,renderLanes2){var newProps=workInProgress2.pendingProps;switch(popTreeContext(workInProgress2),workInProgress2.tag){case 31:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return bubbleProperties(workInProgress2),null;case 1:return bubbleProperties(workInProgress2),null;case 3:return renderLanes2=workInProgress2.stateNode,newProps=null,current!==null&&(newProps=current.memoizedState.cache),workInProgress2.memoizedState.cache!==newProps&&(workInProgress2.flags|=2048),popProvider(CacheContext),popHostContainer(),renderLanes2.pendingContext&&(renderLanes2.context=renderLanes2.pendingContext,renderLanes2.pendingContext=null),(current===null||current.child===null)&&(popHydrationState(workInProgress2)?markUpdate(workInProgress2):current===null||current.memoizedState.isDehydrated&&(workInProgress2.flags&256)===0||(workInProgress2.flags|=1024,upgradeHydrationErrorsToRecoverable())),bubbleProperties(workInProgress2),null;case 26:return renderLanes2=workInProgress2.memoizedState,current===null?(markUpdate(workInProgress2),renderLanes2!==null?(bubbleProperties(workInProgress2),preloadResourceAndSuspendIfNeeded(workInProgress2,renderLanes2)):(bubbleProperties(workInProgress2),workInProgress2.flags&=-16777217)):renderLanes2?renderLanes2!==current.memoizedState?(markUpdate(workInProgress2),bubbleProperties(workInProgress2),preloadResourceAndSuspendIfNeeded(workInProgress2,renderLanes2)):(bubbleProperties(workInProgress2),workInProgress2.flags&=-16777217):(current.memoizedProps!==newProps&&markUpdate(workInProgress2),bubbleProperties(workInProgress2),workInProgress2.flags&=-16777217),null;case 27:popHostContext(workInProgress2),renderLanes2=rootInstanceStackCursor.current;var type=workInProgress2.type;if(current!==null&&workInProgress2.stateNode!=null)current.memoizedProps!==newProps&&markUpdate(workInProgress2);else{if(!newProps){if(workInProgress2.stateNode===null)throw Error(formatProdErrorMessage(166));return bubbleProperties(workInProgress2),null}current=contextStackCursor.current,popHydrationState(workInProgress2)?prepareToHydrateHostInstance(workInProgress2):(current=resolveSingletonInstance(type,newProps,renderLanes2),workInProgress2.stateNode=current,markUpdate(workInProgress2))}return bubbleProperties(workInProgress2),null;case 5:if(popHostContext(workInProgress2),renderLanes2=workInProgress2.type,current!==null&&workInProgress2.stateNode!=null)current.memoizedProps!==newProps&&markUpdate(workInProgress2);else{if(!newProps){if(workInProgress2.stateNode===null)throw Error(formatProdErrorMessage(166));return bubbleProperties(workInProgress2),null}if(current=contextStackCursor.current,popHydrationState(workInProgress2))prepareToHydrateHostInstance(workInProgress2);else{switch(type=getOwnerDocumentFromRootContainer(rootInstanceStackCursor.current),current){case 1:current=type.createElementNS("http://www.w3.org/2000/svg",renderLanes2);break;case 2:current=type.createElementNS("http://www.w3.org/1998/Math/MathML",renderLanes2);break;default:switch(renderLanes2){case"svg":current=type.createElementNS("http://www.w3.org/2000/svg",renderLanes2);break;case"math":current=type.createElementNS("http://www.w3.org/1998/Math/MathML",renderLanes2);break;case"script":current=type.createElement("div"),current.innerHTML="<script><\/script>",current=current.removeChild(current.firstChild);break;case"select":current=typeof newProps.is=="string"?type.createElement("select",{is:newProps.is}):type.createElement("select"),newProps.multiple?current.multiple=!0:newProps.size&&(current.size=newProps.size);break;default:current=typeof newProps.is=="string"?type.createElement(renderLanes2,{is:newProps.is}):type.createElement(renderLanes2)}}current[internalInstanceKey]=workInProgress2,current[internalPropsKey]=newProps;a:for(type=workInProgress2.child;type!==null;){if(type.tag===5||type.tag===6)current.appendChild(type.stateNode);else if(type.tag!==4&&type.tag!==27&&type.child!==null){type.child.return=type,type=type.child;continue}if(type===workInProgress2)break a;for(;type.sibling===null;){if(type.return===null||type.return===workInProgress2)break a;type=type.return}type.sibling.return=type.return,type=type.sibling}workInProgress2.stateNode=current;a:switch(setInitialProperties(current,renderLanes2,newProps),renderLanes2){case"button":case"input":case"select":case"textarea":current=!!newProps.autoFocus;break a;case"img":current=!0;break a;default:current=!1}current&&markUpdate(workInProgress2)}}return bubbleProperties(workInProgress2),workInProgress2.flags&=-16777217,null;case 6:if(current&&workInProgress2.stateNode!=null)current.memoizedProps!==newProps&&markUpdate(workInProgress2);else{if(typeof newProps!="string"&&workInProgress2.stateNode===null)throw Error(formatProdErrorMessage(166));if(current=rootInstanceStackCursor.current,popHydrationState(workInProgress2)){if(current=workInProgress2.stateNode,renderLanes2=workInProgress2.memoizedProps,newProps=null,type=hydrationParentFiber,type!==null)switch(type.tag){case 27:case 5:newProps=type.memoizedProps}current[internalInstanceKey]=workInProgress2,current=!!(current.nodeValue===renderLanes2||newProps!==null&&newProps.suppressHydrationWarning===!0||checkForUnmatchedText(current.nodeValue,renderLanes2)),current||throwOnHydrationMismatch(workInProgress2)}else current=getOwnerDocumentFromRootContainer(current).createTextNode(newProps),current[internalInstanceKey]=workInProgress2,workInProgress2.stateNode=current}return bubbleProperties(workInProgress2),null;case 13:if(newProps=workInProgress2.memoizedState,current===null||current.memoizedState!==null&¤t.memoizedState.dehydrated!==null){if(type=popHydrationState(workInProgress2),newProps!==null&&newProps.dehydrated!==null){if(current===null){if(!type)throw Error(formatProdErrorMessage(318));if(type=workInProgress2.memoizedState,type=type!==null?type.dehydrated:null,!type)throw Error(formatProdErrorMessage(317));type[internalInstanceKey]=workInProgress2}else resetHydrationState(),(workInProgress2.flags&128)===0&&(workInProgress2.memoizedState=null),workInProgress2.flags|=4;bubbleProperties(workInProgress2),type=!1}else type=upgradeHydrationErrorsToRecoverable(),current!==null&¤t.memoizedState!==null&&(current.memoizedState.hydrationErrors=type),type=!0;if(!type)return workInProgress2.flags&256?(popSuspenseHandler(workInProgress2),workInProgress2):(popSuspenseHandler(workInProgress2),null)}if(popSuspenseHandler(workInProgress2),(workInProgress2.flags&128)!==0)return workInProgress2.lanes=renderLanes2,workInProgress2;if(renderLanes2=newProps!==null,current=current!==null&¤t.memoizedState!==null,renderLanes2){newProps=workInProgress2.child,type=null,newProps.alternate!==null&&newProps.alternate.memoizedState!==null&&newProps.alternate.memoizedState.cachePool!==null&&(type=newProps.alternate.memoizedState.cachePool.pool);var cache$127=null;newProps.memoizedState!==null&&newProps.memoizedState.cachePool!==null&&(cache$127=newProps.memoizedState.cachePool.pool),cache$127!==type&&(newProps.flags|=2048)}return renderLanes2!==current&&renderLanes2&&(workInProgress2.child.flags|=8192),scheduleRetryEffect(workInProgress2,workInProgress2.updateQueue),bubbleProperties(workInProgress2),null;case 4:return popHostContainer(),current===null&&listenToAllSupportedEvents(workInProgress2.stateNode.containerInfo),bubbleProperties(workInProgress2),null;case 10:return popProvider(workInProgress2.type),bubbleProperties(workInProgress2),null;case 19:if(pop(suspenseStackCursor),type=workInProgress2.memoizedState,type===null)return bubbleProperties(workInProgress2),null;if(newProps=(workInProgress2.flags&128)!==0,cache$127=type.rendering,cache$127===null)if(newProps)cutOffTailIfNeeded(type,!1);else{if(workInProgressRootExitStatus!==0||current!==null&&(current.flags&128)!==0)for(current=workInProgress2.child;current!==null;){if(cache$127=findFirstSuspended(current),cache$127!==null){for(workInProgress2.flags|=128,cutOffTailIfNeeded(type,!1),current=cache$127.updateQueue,workInProgress2.updateQueue=current,scheduleRetryEffect(workInProgress2,current),workInProgress2.subtreeFlags=0,current=renderLanes2,renderLanes2=workInProgress2.child;renderLanes2!==null;)resetWorkInProgress(renderLanes2,current),renderLanes2=renderLanes2.sibling;return push(suspenseStackCursor,suspenseStackCursor.current&1|2),workInProgress2.child}current=current.sibling}type.tail!==null&&now()>workInProgressRootRenderTargetTime&&(workInProgress2.flags|=128,newProps=!0,cutOffTailIfNeeded(type,!1),workInProgress2.lanes=4194304)}else{if(!newProps)if(current=findFirstSuspended(cache$127),current!==null){if(workInProgress2.flags|=128,newProps=!0,current=current.updateQueue,workInProgress2.updateQueue=current,scheduleRetryEffect(workInProgress2,current),cutOffTailIfNeeded(type,!0),type.tail===null&&type.tailMode==="hidden"&&!cache$127.alternate&&!isHydrating)return bubbleProperties(workInProgress2),null}else 2*now()-type.renderingStartTime>workInProgressRootRenderTargetTime&&renderLanes2!==536870912&&(workInProgress2.flags|=128,newProps=!0,cutOffTailIfNeeded(type,!1),workInProgress2.lanes=4194304);type.isBackwards?(cache$127.sibling=workInProgress2.child,workInProgress2.child=cache$127):(current=type.last,current!==null?current.sibling=cache$127:workInProgress2.child=cache$127,type.last=cache$127)}return type.tail!==null?(workInProgress2=type.tail,type.rendering=workInProgress2,type.tail=workInProgress2.sibling,type.renderingStartTime=now(),workInProgress2.sibling=null,current=suspenseStackCursor.current,push(suspenseStackCursor,newProps?current&1|2:current&1),workInProgress2):(bubbleProperties(workInProgress2),null);case 22:case 23:return popSuspenseHandler(workInProgress2),popHiddenContext(),newProps=workInProgress2.memoizedState!==null,current!==null?current.memoizedState!==null!==newProps&&(workInProgress2.flags|=8192):newProps&&(workInProgress2.flags|=8192),newProps?(renderLanes2&536870912)!==0&&(workInProgress2.flags&128)===0&&(bubbleProperties(workInProgress2),workInProgress2.subtreeFlags&6&&(workInProgress2.flags|=8192)):bubbleProperties(workInProgress2),renderLanes2=workInProgress2.updateQueue,renderLanes2!==null&&scheduleRetryEffect(workInProgress2,renderLanes2.retryQueue),renderLanes2=null,current!==null&¤t.memoizedState!==null&¤t.memoizedState.cachePool!==null&&(renderLanes2=current.memoizedState.cachePool.pool),newProps=null,workInProgress2.memoizedState!==null&&workInProgress2.memoizedState.cachePool!==null&&(newProps=workInProgress2.memoizedState.cachePool.pool),newProps!==renderLanes2&&(workInProgress2.flags|=2048),current!==null&&pop(resumedCache),null;case 24:return renderLanes2=null,current!==null&&(renderLanes2=current.memoizedState.cache),workInProgress2.memoizedState.cache!==renderLanes2&&(workInProgress2.flags|=2048),popProvider(CacheContext),bubbleProperties(workInProgress2),null;case 25:return null;case 30:return null}throw Error(formatProdErrorMessage(156,workInProgress2.tag))}function unwindWork(current,workInProgress2){switch(popTreeContext(workInProgress2),workInProgress2.tag){case 1:return current=workInProgress2.flags,current&65536?(workInProgress2.flags=current&-65537|128,workInProgress2):null;case 3:return popProvider(CacheContext),popHostContainer(),current=workInProgress2.flags,(current&65536)!==0&&(current&128)===0?(workInProgress2.flags=current&-65537|128,workInProgress2):null;case 26:case 27:case 5:return popHostContext(workInProgress2),null;case 13:if(popSuspenseHandler(workInProgress2),current=workInProgress2.memoizedState,current!==null&¤t.dehydrated!==null){if(workInProgress2.alternate===null)throw Error(formatProdErrorMessage(340));resetHydrationState()}return current=workInProgress2.flags,current&65536?(workInProgress2.flags=current&-65537|128,workInProgress2):null;case 19:return pop(suspenseStackCursor),null;case 4:return popHostContainer(),null;case 10:return popProvider(workInProgress2.type),null;case 22:case 23:return popSuspenseHandler(workInProgress2),popHiddenContext(),current!==null&&pop(resumedCache),current=workInProgress2.flags,current&65536?(workInProgress2.flags=current&-65537|128,workInProgress2):null;case 24:return popProvider(CacheContext),null;case 25:return null;default:return null}}function unwindInterruptedWork(current,interruptedWork){switch(popTreeContext(interruptedWork),interruptedWork.tag){case 3:popProvider(CacheContext),popHostContainer();break;case 26:case 27:case 5:popHostContext(interruptedWork);break;case 4:popHostContainer();break;case 13:popSuspenseHandler(interruptedWork);break;case 19:pop(suspenseStackCursor);break;case 10:popProvider(interruptedWork.type);break;case 22:case 23:popSuspenseHandler(interruptedWork),popHiddenContext(),current!==null&&pop(resumedCache);break;case 24:popProvider(CacheContext)}}function commitHookEffectListMount(flags,finishedWork){try{var updateQueue=finishedWork.updateQueue,lastEffect=updateQueue!==null?updateQueue.lastEffect:null;if(lastEffect!==null){var firstEffect=lastEffect.next;updateQueue=firstEffect;do{if((updateQueue.tag&flags)===flags){lastEffect=void 0;var create2=updateQueue.create,inst=updateQueue.inst;lastEffect=create2(),inst.destroy=lastEffect}updateQueue=updateQueue.next}while(updateQueue!==firstEffect)}}catch(error){captureCommitPhaseError(finishedWork,finishedWork.return,error)}}function commitHookEffectListUnmount(flags,finishedWork,nearestMountedAncestor$jscomp$0){try{var updateQueue=finishedWork.updateQueue,lastEffect=updateQueue!==null?updateQueue.lastEffect:null;if(lastEffect!==null){var firstEffect=lastEffect.next;updateQueue=firstEffect;do{if((updateQueue.tag&flags)===flags){var inst=updateQueue.inst,destroy=inst.destroy;if(destroy!==void 0){inst.destroy=void 0,lastEffect=finishedWork;var nearestMountedAncestor=nearestMountedAncestor$jscomp$0,destroy_=destroy;try{destroy_()}catch(error){captureCommitPhaseError(lastEffect,nearestMountedAncestor,error)}}}updateQueue=updateQueue.next}while(updateQueue!==firstEffect)}}catch(error){captureCommitPhaseError(finishedWork,finishedWork.return,error)}}function commitClassCallbacks(finishedWork){var updateQueue=finishedWork.updateQueue;if(updateQueue!==null){var instance=finishedWork.stateNode;try{commitCallbacks(updateQueue,instance)}catch(error){captureCommitPhaseError(finishedWork,finishedWork.return,error)}}}function safelyCallComponentWillUnmount(current,nearestMountedAncestor,instance){instance.props=resolveClassComponentProps(current.type,current.memoizedProps),instance.state=current.memoizedState;try{instance.componentWillUnmount()}catch(error){captureCommitPhaseError(current,nearestMountedAncestor,error)}}function safelyAttachRef(current,nearestMountedAncestor){try{var ref=current.ref;if(ref!==null){switch(current.tag){case 26:case 27:case 5:var instanceToUse=current.stateNode;break;case 30:instanceToUse=current.stateNode;break;default:instanceToUse=current.stateNode}typeof ref=="function"?current.refCleanup=ref(instanceToUse):ref.current=instanceToUse}}catch(error){captureCommitPhaseError(current,nearestMountedAncestor,error)}}function safelyDetachRef(current,nearestMountedAncestor){var ref=current.ref,refCleanup=current.refCleanup;if(ref!==null)if(typeof refCleanup=="function")try{refCleanup()}catch(error){captureCommitPhaseError(current,nearestMountedAncestor,error)}finally{current.refCleanup=null,current=current.alternate,current!=null&&(current.refCleanup=null)}else if(typeof ref=="function")try{ref(null)}catch(error$143){captureCommitPhaseError(current,nearestMountedAncestor,error$143)}else ref.current=null}function commitHostMount(finishedWork){var type=finishedWork.type,props=finishedWork.memoizedProps,instance=finishedWork.stateNode;try{a:switch(type){case"button":case"input":case"select":case"textarea":props.autoFocus&&instance.focus();break a;case"img":props.src?instance.src=props.src:props.srcSet&&(instance.srcset=props.srcSet)}}catch(error){captureCommitPhaseError(finishedWork,finishedWork.return,error)}}function commitHostUpdate(finishedWork,newProps,oldProps){try{var domElement=finishedWork.stateNode;updateProperties(domElement,finishedWork.type,oldProps,newProps),domElement[internalPropsKey]=newProps}catch(error){captureCommitPhaseError(finishedWork,finishedWork.return,error)}}function isHostParent(fiber){return fiber.tag===5||fiber.tag===3||fiber.tag===26||fiber.tag===27&&isSingletonScope(fiber.type)||fiber.tag===4}function getHostSibling(fiber){a:for(;;){for(;fiber.sibling===null;){if(fiber.return===null||isHostParent(fiber.return))return null;fiber=fiber.return}for(fiber.sibling.return=fiber.return,fiber=fiber.sibling;fiber.tag!==5&&fiber.tag!==6&&fiber.tag!==18;){if(fiber.tag===27&&isSingletonScope(fiber.type)||fiber.flags&2||fiber.child===null||fiber.tag===4)continue a;fiber.child.return=fiber,fiber=fiber.child}if(!(fiber.flags&2))return fiber.stateNode}}function insertOrAppendPlacementNodeIntoContainer(node,before,parent){var tag=node.tag;if(tag===5||tag===6)node=node.stateNode,before?(parent.nodeType===9?parent.body:parent.nodeName==="HTML"?parent.ownerDocument.body:parent).insertBefore(node,before):(before=parent.nodeType===9?parent.body:parent.nodeName==="HTML"?parent.ownerDocument.body:parent,before.appendChild(node),parent=parent._reactRootContainer,parent!=null||before.onclick!==null||(before.onclick=noop$1));else if(tag!==4&&(tag===27&&isSingletonScope(node.type)&&(parent=node.stateNode,before=null),node=node.child,node!==null))for(insertOrAppendPlacementNodeIntoContainer(node,before,parent),node=node.sibling;node!==null;)insertOrAppendPlacementNodeIntoContainer(node,before,parent),node=node.sibling}function insertOrAppendPlacementNode(node,before,parent){var tag=node.tag;if(tag===5||tag===6)node=node.stateNode,before?parent.insertBefore(node,before):parent.appendChild(node);else if(tag!==4&&(tag===27&&isSingletonScope(node.type)&&(parent=node.stateNode),node=node.child,node!==null))for(insertOrAppendPlacementNode(node,before,parent),node=node.sibling;node!==null;)insertOrAppendPlacementNode(node,before,parent),node=node.sibling}function commitHostSingletonAcquisition(finishedWork){var singleton=finishedWork.stateNode,props=finishedWork.memoizedProps;try{for(var type=finishedWork.type,attributes=singleton.attributes;attributes.length;)singleton.removeAttributeNode(attributes[0]);setInitialProperties(singleton,type,props),singleton[internalInstanceKey]=finishedWork,singleton[internalPropsKey]=props}catch(error){captureCommitPhaseError(finishedWork,finishedWork.return,error)}}var offscreenSubtreeIsHidden=!1,offscreenSubtreeWasHidden=!1,needsFormReset=!1,PossiblyWeakSet=typeof WeakSet=="function"?WeakSet:Set,nextEffect=null;function commitBeforeMutationEffects(root3,firstChild){if(root3=root3.containerInfo,eventsEnabled=_enabled,root3=getActiveElementDeep(root3),hasSelectionCapabilities(root3)){if("selectionStart"in root3)var JSCompiler_temp={start:root3.selectionStart,end:root3.selectionEnd};else a:{JSCompiler_temp=(JSCompiler_temp=root3.ownerDocument)&&JSCompiler_temp.defaultView||window;var selection=JSCompiler_temp.getSelection&&JSCompiler_temp.getSelection();if(selection&&selection.rangeCount!==0){JSCompiler_temp=selection.anchorNode;var anchorOffset=selection.anchorOffset,focusNode=selection.focusNode;selection=selection.focusOffset;try{JSCompiler_temp.nodeType,focusNode.nodeType}catch{JSCompiler_temp=null;break a}var length=0,start=-1,end=-1,indexWithinAnchor=0,indexWithinFocus=0,node=root3,parentNode=null;b:for(;;){for(var next;node!==JSCompiler_temp||anchorOffset!==0&&node.nodeType!==3||(start=length+anchorOffset),node!==focusNode||selection!==0&&node.nodeType!==3||(end=length+selection),node.nodeType===3&&(length+=node.nodeValue.length),(next=node.firstChild)!==null;)parentNode=node,node=next;for(;;){if(node===root3)break b;if(parentNode===JSCompiler_temp&&++indexWithinAnchor===anchorOffset&&(start=length),parentNode===focusNode&&++indexWithinFocus===selection&&(end=length),(next=node.nextSibling)!==null)break;node=parentNode,parentNode=node.parentNode}node=next}JSCompiler_temp=start===-1||end===-1?null:{start,end}}else JSCompiler_temp=null}JSCompiler_temp=JSCompiler_temp||{start:0,end:0}}else JSCompiler_temp=null;for(selectionInformation={focusedElem:root3,selectionRange:JSCompiler_temp},_enabled=!1,nextEffect=firstChild;nextEffect!==null;)if(firstChild=nextEffect,root3=firstChild.child,(firstChild.subtreeFlags&1024)!==0&&root3!==null)root3.return=firstChild,nextEffect=root3;else for(;nextEffect!==null;){switch(firstChild=nextEffect,focusNode=firstChild.alternate,root3=firstChild.flags,firstChild.tag){case 0:break;case 11:case 15:break;case 1:if((root3&1024)!==0&&focusNode!==null){root3=void 0,JSCompiler_temp=firstChild,anchorOffset=focusNode.memoizedProps,focusNode=focusNode.memoizedState,selection=JSCompiler_temp.stateNode;try{var resolvedPrevProps=resolveClassComponentProps(JSCompiler_temp.type,anchorOffset,JSCompiler_temp.elementType===JSCompiler_temp.type);root3=selection.getSnapshotBeforeUpdate(resolvedPrevProps,focusNode),selection.__reactInternalSnapshotBeforeUpdate=root3}catch(error){captureCommitPhaseError(JSCompiler_temp,JSCompiler_temp.return,error)}}break;case 3:if((root3&1024)!==0){if(root3=firstChild.stateNode.containerInfo,JSCompiler_temp=root3.nodeType,JSCompiler_temp===9)clearContainerSparingly(root3);else if(JSCompiler_temp===1)switch(root3.nodeName){case"HEAD":case"HTML":case"BODY":clearContainerSparingly(root3);break;default:root3.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((root3&1024)!==0)throw Error(formatProdErrorMessage(163))}if(root3=firstChild.sibling,root3!==null){root3.return=firstChild.return,nextEffect=root3;break}nextEffect=firstChild.return}}function commitLayoutEffectOnFiber(finishedRoot,current,finishedWork){var flags=finishedWork.flags;switch(finishedWork.tag){case 0:case 11:case 15:recursivelyTraverseLayoutEffects(finishedRoot,finishedWork),flags&4&&commitHookEffectListMount(5,finishedWork);break;case 1:if(recursivelyTraverseLayoutEffects(finishedRoot,finishedWork),flags&4)if(finishedRoot=finishedWork.stateNode,current===null)try{finishedRoot.componentDidMount()}catch(error){captureCommitPhaseError(finishedWork,finishedWork.return,error)}else{var prevProps=resolveClassComponentProps(finishedWork.type,current.memoizedProps);current=current.memoizedState;try{finishedRoot.componentDidUpdate(prevProps,current,finishedRoot.__reactInternalSnapshotBeforeUpdate)}catch(error$142){captureCommitPhaseError(finishedWork,finishedWork.return,error$142)}}flags&64&&commitClassCallbacks(finishedWork),flags&512&&safelyAttachRef(finishedWork,finishedWork.return);break;case 3:if(recursivelyTraverseLayoutEffects(finishedRoot,finishedWork),flags&64&&(finishedRoot=finishedWork.updateQueue,finishedRoot!==null)){if(current=null,finishedWork.child!==null)switch(finishedWork.child.tag){case 27:case 5:current=finishedWork.child.stateNode;break;case 1:current=finishedWork.child.stateNode}try{commitCallbacks(finishedRoot,current)}catch(error){captureCommitPhaseError(finishedWork,finishedWork.return,error)}}break;case 27:current===null&&flags&4&&commitHostSingletonAcquisition(finishedWork);case 26:case 5:recursivelyTraverseLayoutEffects(finishedRoot,finishedWork),current===null&&flags&4&&commitHostMount(finishedWork),flags&512&&safelyAttachRef(finishedWork,finishedWork.return);break;case 12:recursivelyTraverseLayoutEffects(finishedRoot,finishedWork);break;case 13:recursivelyTraverseLayoutEffects(finishedRoot,finishedWork),flags&4&&commitSuspenseHydrationCallbacks(finishedRoot,finishedWork),flags&64&&(finishedRoot=finishedWork.memoizedState,finishedRoot!==null&&(finishedRoot=finishedRoot.dehydrated,finishedRoot!==null&&(finishedWork=retryDehydratedSuspenseBoundary.bind(null,finishedWork),registerSuspenseInstanceRetry(finishedRoot,finishedWork))));break;case 22:if(flags=finishedWork.memoizedState!==null||offscreenSubtreeIsHidden,!flags){current=current!==null&¤t.memoizedState!==null||offscreenSubtreeWasHidden,prevProps=offscreenSubtreeIsHidden;var prevOffscreenSubtreeWasHidden=offscreenSubtreeWasHidden;offscreenSubtreeIsHidden=flags,(offscreenSubtreeWasHidden=current)&&!prevOffscreenSubtreeWasHidden?recursivelyTraverseReappearLayoutEffects(finishedRoot,finishedWork,(finishedWork.subtreeFlags&8772)!==0):recursivelyTraverseLayoutEffects(finishedRoot,finishedWork),offscreenSubtreeIsHidden=prevProps,offscreenSubtreeWasHidden=prevOffscreenSubtreeWasHidden}break;case 30:break;default:recursivelyTraverseLayoutEffects(finishedRoot,finishedWork)}}function detachFiberAfterEffects(fiber){var alternate=fiber.alternate;alternate!==null&&(fiber.alternate=null,detachFiberAfterEffects(alternate)),fiber.child=null,fiber.deletions=null,fiber.sibling=null,fiber.tag===5&&(alternate=fiber.stateNode,alternate!==null&&detachDeletedInstance(alternate)),fiber.stateNode=null,fiber.return=null,fiber.dependencies=null,fiber.memoizedProps=null,fiber.memoizedState=null,fiber.pendingProps=null,fiber.stateNode=null,fiber.updateQueue=null}var hostParent=null,hostParentIsContainer=!1;function recursivelyTraverseDeletionEffects(finishedRoot,nearestMountedAncestor,parent){for(parent=parent.child;parent!==null;)commitDeletionEffectsOnFiber(finishedRoot,nearestMountedAncestor,parent),parent=parent.sibling}function commitDeletionEffectsOnFiber(finishedRoot,nearestMountedAncestor,deletedFiber){if(injectedHook&&typeof injectedHook.onCommitFiberUnmount=="function")try{injectedHook.onCommitFiberUnmount(rendererID,deletedFiber)}catch{}switch(deletedFiber.tag){case 26:offscreenSubtreeWasHidden||safelyDetachRef(deletedFiber,nearestMountedAncestor),recursivelyTraverseDeletionEffects(finishedRoot,nearestMountedAncestor,deletedFiber),deletedFiber.memoizedState?deletedFiber.memoizedState.count--:deletedFiber.stateNode&&(deletedFiber=deletedFiber.stateNode,deletedFiber.parentNode.removeChild(deletedFiber));break;case 27:offscreenSubtreeWasHidden||safelyDetachRef(deletedFiber,nearestMountedAncestor);var prevHostParent=hostParent,prevHostParentIsContainer=hostParentIsContainer;isSingletonScope(deletedFiber.type)&&(hostParent=deletedFiber.stateNode,hostParentIsContainer=!1),recursivelyTraverseDeletionEffects(finishedRoot,nearestMountedAncestor,deletedFiber),releaseSingletonInstance(deletedFiber.stateNode),hostParent=prevHostParent,hostParentIsContainer=prevHostParentIsContainer;break;case 5:offscreenSubtreeWasHidden||safelyDetachRef(deletedFiber,nearestMountedAncestor);case 6:if(prevHostParent=hostParent,prevHostParentIsContainer=hostParentIsContainer,hostParent=null,recursivelyTraverseDeletionEffects(finishedRoot,nearestMountedAncestor,deletedFiber),hostParent=prevHostParent,hostParentIsContainer=prevHostParentIsContainer,hostParent!==null)if(hostParentIsContainer)try{(hostParent.nodeType===9?hostParent.body:hostParent.nodeName==="HTML"?hostParent.ownerDocument.body:hostParent).removeChild(deletedFiber.stateNode)}catch(error){captureCommitPhaseError(deletedFiber,nearestMountedAncestor,error)}else try{hostParent.removeChild(deletedFiber.stateNode)}catch(error){captureCommitPhaseError(deletedFiber,nearestMountedAncestor,error)}break;case 18:hostParent!==null&&(hostParentIsContainer?(finishedRoot=hostParent,clearSuspenseBoundary(finishedRoot.nodeType===9?finishedRoot.body:finishedRoot.nodeName==="HTML"?finishedRoot.ownerDocument.body:finishedRoot,deletedFiber.stateNode),retryIfBlockedOn(finishedRoot)):clearSuspenseBoundary(hostParent,deletedFiber.stateNode));break;case 4:prevHostParent=hostParent,prevHostParentIsContainer=hostParentIsContainer,hostParent=deletedFiber.stateNode.containerInfo,hostParentIsContainer=!0,recursivelyTraverseDeletionEffects(finishedRoot,nearestMountedAncestor,deletedFiber),hostParent=prevHostParent,hostParentIsContainer=prevHostParentIsContainer;break;case 0:case 11:case 14:case 15:offscreenSubtreeWasHidden||commitHookEffectListUnmount(2,deletedFiber,nearestMountedAncestor),offscreenSubtreeWasHidden||commitHookEffectListUnmount(4,deletedFiber,nearestMountedAncestor),recursivelyTraverseDeletionEffects(finishedRoot,nearestMountedAncestor,deletedFiber);break;case 1:offscreenSubtreeWasHidden||(safelyDetachRef(deletedFiber,nearestMountedAncestor),prevHostParent=deletedFiber.stateNode,typeof prevHostParent.componentWillUnmount=="function"&&safelyCallComponentWillUnmount(deletedFiber,nearestMountedAncestor,prevHostParent)),recursivelyTraverseDeletionEffects(finishedRoot,nearestMountedAncestor,deletedFiber);break;case 21:recursivelyTraverseDeletionEffects(finishedRoot,nearestMountedAncestor,deletedFiber);break;case 22:offscreenSubtreeWasHidden=(prevHostParent=offscreenSubtreeWasHidden)||deletedFiber.memoizedState!==null,recursivelyTraverseDeletionEffects(finishedRoot,nearestMountedAncestor,deletedFiber),offscreenSubtreeWasHidden=prevHostParent;break;default:recursivelyTraverseDeletionEffects(finishedRoot,nearestMountedAncestor,deletedFiber)}}function commitSuspenseHydrationCallbacks(finishedRoot,finishedWork){if(finishedWork.memoizedState===null&&(finishedRoot=finishedWork.alternate,finishedRoot!==null&&(finishedRoot=finishedRoot.memoizedState,finishedRoot!==null&&(finishedRoot=finishedRoot.dehydrated,finishedRoot!==null))))try{retryIfBlockedOn(finishedRoot)}catch(error){captureCommitPhaseError(finishedWork,finishedWork.return,error)}}function getRetryCache(finishedWork){switch(finishedWork.tag){case 13:case 19:var retryCache=finishedWork.stateNode;return retryCache===null&&(retryCache=finishedWork.stateNode=new PossiblyWeakSet),retryCache;case 22:return finishedWork=finishedWork.stateNode,retryCache=finishedWork._retryCache,retryCache===null&&(retryCache=finishedWork._retryCache=new PossiblyWeakSet),retryCache;default:throw Error(formatProdErrorMessage(435,finishedWork.tag))}}function attachSuspenseRetryListeners(finishedWork,wakeables){var retryCache=getRetryCache(finishedWork);wakeables.forEach(function(wakeable){var retry=resolveRetryWakeable.bind(null,finishedWork,wakeable);retryCache.has(wakeable)||(retryCache.add(wakeable),wakeable.then(retry,retry))})}function recursivelyTraverseMutationEffects(root$jscomp$0,parentFiber){var deletions=parentFiber.deletions;if(deletions!==null)for(var i=0;i<deletions.length;i++){var childToDelete=deletions[i],root3=root$jscomp$0,returnFiber=parentFiber,parent=returnFiber;a:for(;parent!==null;){switch(parent.tag){case 27:if(isSingletonScope(parent.type)){hostParent=parent.stateNode,hostParentIsContainer=!1;break a}break;case 5:hostParent=parent.stateNode,hostParentIsContainer=!1;break a;case 3:case 4:hostParent=parent.stateNode.containerInfo,hostParentIsContainer=!0;break a}parent=parent.return}if(hostParent===null)throw Error(formatProdErrorMessage(160));commitDeletionEffectsOnFiber(root3,returnFiber,childToDelete),hostParent=null,hostParentIsContainer=!1,root3=childToDelete.alternate,root3!==null&&(root3.return=null),childToDelete.return=null}if(parentFiber.subtreeFlags&13878)for(parentFiber=parentFiber.child;parentFiber!==null;)commitMutationEffectsOnFiber(parentFiber,root$jscomp$0),parentFiber=parentFiber.sibling}var currentHoistableRoot=null;function commitMutationEffectsOnFiber(finishedWork,root3){var current=finishedWork.alternate,flags=finishedWork.flags;switch(finishedWork.tag){case 0:case 11:case 14:case 15:recursivelyTraverseMutationEffects(root3,finishedWork),commitReconciliationEffects(finishedWork),flags&4&&(commitHookEffectListUnmount(3,finishedWork,finishedWork.return),commitHookEffectListMount(3,finishedWork),commitHookEffectListUnmount(5,finishedWork,finishedWork.return));break;case 1:recursivelyTraverseMutationEffects(root3,finishedWork),commitReconciliationEffects(finishedWork),flags&512&&(offscreenSubtreeWasHidden||current===null||safelyDetachRef(current,current.return)),flags&64&&offscreenSubtreeIsHidden&&(finishedWork=finishedWork.updateQueue,finishedWork!==null&&(flags=finishedWork.callbacks,flags!==null&&(current=finishedWork.shared.hiddenCallbacks,finishedWork.shared.hiddenCallbacks=current===null?flags:current.concat(flags))));break;case 26:var hoistableRoot=currentHoistableRoot;if(recursivelyTraverseMutationEffects(root3,finishedWork),commitReconciliationEffects(finishedWork),flags&512&&(offscreenSubtreeWasHidden||current===null||safelyDetachRef(current,current.return)),flags&4){var currentResource=current!==null?current.memoizedState:null;if(flags=finishedWork.memoizedState,current===null)if(flags===null)if(finishedWork.stateNode===null){a:{flags=finishedWork.type,current=finishedWork.memoizedProps,hoistableRoot=hoistableRoot.ownerDocument||hoistableRoot;b:switch(flags){case"title":currentResource=hoistableRoot.getElementsByTagName("title")[0],(!currentResource||currentResource[internalHoistableMarker]||currentResource[internalInstanceKey]||currentResource.namespaceURI==="http://www.w3.org/2000/svg"||currentResource.hasAttribute("itemprop"))&&(currentResource=hoistableRoot.createElement(flags),hoistableRoot.head.insertBefore(currentResource,hoistableRoot.querySelector("head > title"))),setInitialProperties(currentResource,flags,current),currentResource[internalInstanceKey]=finishedWork,markNodeAsHoistable(currentResource),flags=currentResource;break a;case"link":var maybeNodes=getHydratableHoistableCache("link","href",hoistableRoot).get(flags+(current.href||""));if(maybeNodes){for(var i=0;i<maybeNodes.length;i++)if(currentResource=maybeNodes[i],currentResource.getAttribute("href")===(current.href==null||current.href===""?null:current.href)&¤tResource.getAttribute("rel")===(current.rel==null?null:current.rel)&¤tResource.getAttribute("title")===(current.title==null?null:current.title)&¤tResource.getAttribute("crossorigin")===(current.crossOrigin==null?null:current.crossOrigin)){maybeNodes.splice(i,1);break b}}currentResource=hoistableRoot.createElement(flags),setInitialProperties(currentResource,flags,current),hoistableRoot.head.appendChild(currentResource);break;case"meta":if(maybeNodes=getHydratableHoistableCache("meta","content",hoistableRoot).get(flags+(current.content||""))){for(i=0;i<maybeNodes.length;i++)if(currentResource=maybeNodes[i],currentResource.getAttribute("content")===(current.content==null?null:""+current.content)&¤tResource.getAttribute("name")===(current.name==null?null:current.name)&¤tResource.getAttribute("property")===(current.property==null?null:current.property)&¤tResource.getAttribute("http-equiv")===(current.httpEquiv==null?null:current.httpEquiv)&¤tResource.getAttribute("charset")===(current.charSet==null?null:current.charSet)){maybeNodes.splice(i,1);break b}}currentResource=hoistableRoot.createElement(flags),setInitialProperties(currentResource,flags,current),hoistableRoot.head.appendChild(currentResource);break;default:throw Error(formatProdErrorMessage(468,flags))}currentResource[internalInstanceKey]=finishedWork,markNodeAsHoistable(currentResource),flags=currentResource}finishedWork.stateNode=flags}else mountHoistable(hoistableRoot,finishedWork.type,finishedWork.stateNode);else finishedWork.stateNode=acquireResource(hoistableRoot,flags,finishedWork.memoizedProps);else currentResource!==flags?(currentResource===null?current.stateNode!==null&&(current=current.stateNode,current.parentNode.removeChild(current)):currentResource.count--,flags===null?mountHoistable(hoistableRoot,finishedWork.type,finishedWork.stateNode):acquireResource(hoistableRoot,flags,finishedWork.memoizedProps)):flags===null&&finishedWork.stateNode!==null&&commitHostUpdate(finishedWork,finishedWork.memoizedProps,current.memoizedProps)}break;case 27:recursivelyTraverseMutationEffects(root3,finishedWork),commitReconciliationEffects(finishedWork),flags&512&&(offscreenSubtreeWasHidden||current===null||safelyDetachRef(current,current.return)),current!==null&&flags&4&&commitHostUpdate(finishedWork,finishedWork.memoizedProps,current.memoizedProps);break;case 5:if(recursivelyTraverseMutationEffects(root3,finishedWork),commitReconciliationEffects(finishedWork),flags&512&&(offscreenSubtreeWasHidden||current===null||safelyDetachRef(current,current.return)),finishedWork.flags&32){hoistableRoot=finishedWork.stateNode;try{setTextContent(hoistableRoot,"")}catch(error){captureCommitPhaseError(finishedWork,finishedWork.return,error)}}flags&4&&finishedWork.stateNode!=null&&(hoistableRoot=finishedWork.memoizedProps,commitHostUpdate(finishedWork,hoistableRoot,current!==null?current.memoizedProps:hoistableRoot)),flags&1024&&(needsFormReset=!0);break;case 6:if(recursivelyTraverseMutationEffects(root3,finishedWork),commitReconciliationEffects(finishedWork),flags&4){if(finishedWork.stateNode===null)throw Error(formatProdErrorMessage(162));flags=finishedWork.memoizedProps,current=finishedWork.stateNode;try{current.nodeValue=flags}catch(error){captureCommitPhaseError(finishedWork,finishedWork.return,error)}}break;case 3:if(tagCaches=null,hoistableRoot=currentHoistableRoot,currentHoistableRoot=getHoistableRoot(root3.containerInfo),recursivelyTraverseMutationEffects(root3,finishedWork),currentHoistableRoot=hoistableRoot,commitReconciliationEffects(finishedWork),flags&4&¤t!==null&¤t.memoizedState.isDehydrated)try{retryIfBlockedOn(root3.containerInfo)}catch(error){captureCommitPhaseError(finishedWork,finishedWork.return,error)}needsFormReset&&(needsFormReset=!1,recursivelyResetForms(finishedWork));break;case 4:flags=currentHoistableRoot,currentHoistableRoot=getHoistableRoot(finishedWork.stateNode.containerInfo),recursivelyTraverseMutationEffects(root3,finishedWork),commitReconciliationEffects(finishedWork),currentHoistableRoot=flags;break;case 12:recursivelyTraverseMutationEffects(root3,finishedWork),commitReconciliationEffects(finishedWork);break;case 13:recursivelyTraverseMutationEffects(root3,finishedWork),commitReconciliationEffects(finishedWork),finishedWork.child.flags&8192&&finishedWork.memoizedState!==null!=(current!==null&¤t.memoizedState!==null)&&(globalMostRecentFallbackTime=now()),flags&4&&(flags=finishedWork.updateQueue,flags!==null&&(finishedWork.updateQueue=null,attachSuspenseRetryListeners(finishedWork,flags)));break;case 22:hoistableRoot=finishedWork.memoizedState!==null;var wasHidden=current!==null&¤t.memoizedState!==null,prevOffscreenSubtreeIsHidden=offscreenSubtreeIsHidden,prevOffscreenSubtreeWasHidden=offscreenSubtreeWasHidden;if(offscreenSubtreeIsHidden=prevOffscreenSubtreeIsHidden||hoistableRoot,offscreenSubtreeWasHidden=prevOffscreenSubtreeWasHidden||wasHidden,recursivelyTraverseMutationEffects(root3,finishedWork),offscreenSubtreeWasHidden=prevOffscreenSubtreeWasHidden,offscreenSubtreeIsHidden=prevOffscreenSubtreeIsHidden,commitReconciliationEffects(finishedWork),flags&8192)a:for(root3=finishedWork.stateNode,root3._visibility=hoistableRoot?root3._visibility&-2:root3._visibility|1,hoistableRoot&&(current===null||wasHidden||offscreenSubtreeIsHidden||offscreenSubtreeWasHidden||recursivelyTraverseDisappearLayoutEffects(finishedWork)),current=null,root3=finishedWork;;){if(root3.tag===5||root3.tag===26){if(current===null){wasHidden=current=root3;try{if(currentResource=wasHidden.stateNode,hoistableRoot)maybeNodes=currentResource.style,typeof maybeNodes.setProperty=="function"?maybeNodes.setProperty("display","none","important"):maybeNodes.display="none";else{i=wasHidden.stateNode;var styleProp=wasHidden.memoizedProps.style,display=styleProp!=null&&styleProp.hasOwnProperty("display")?styleProp.display:null;i.style.display=display==null||typeof display=="boolean"?"":(""+display).trim()}}catch(error){captureCommitPhaseError(wasHidden,wasHidden.return,error)}}}else if(root3.tag===6){if(current===null){wasHidden=root3;try{wasHidden.stateNode.nodeValue=hoistableRoot?"":wasHidden.memoizedProps}catch(error){captureCommitPhaseError(wasHidden,wasHidden.return,error)}}}else if((root3.tag!==22&&root3.tag!==23||root3.memoizedState===null||root3===finishedWork)&&root3.child!==null){root3.child.return=root3,root3=root3.child;continue}if(root3===finishedWork)break a;for(;root3.sibling===null;){if(root3.return===null||root3.return===finishedWork)break a;current===root3&&(current=null),root3=root3.return}current===root3&&(current=null),root3.sibling.return=root3.return,root3=root3.sibling}flags&4&&(flags=finishedWork.updateQueue,flags!==null&&(current=flags.retryQueue,current!==null&&(flags.retryQueue=null,attachSuspenseRetryListeners(finishedWork,current))));break;case 19:recursivelyTraverseMutationEffects(root3,finishedWork),commitReconciliationEffects(finishedWork),flags&4&&(flags=finishedWork.updateQueue,flags!==null&&(finishedWork.updateQueue=null,attachSuspenseRetryListeners(finishedWork,flags)));break;case 30:break;case 21:break;default:recursivelyTraverseMutationEffects(root3,finishedWork),commitReconciliationEffects(finishedWork)}}function commitReconciliationEffects(finishedWork){var flags=finishedWork.flags;if(flags&2){try{for(var hostParentFiber,parentFiber=finishedWork.return;parentFiber!==null;){if(isHostParent(parentFiber)){hostParentFiber=parentFiber;break}parentFiber=parentFiber.return}if(hostParentFiber==null)throw Error(formatProdErrorMessage(160));switch(hostParentFiber.tag){case 27:var parent=hostParentFiber.stateNode,before=getHostSibling(finishedWork);insertOrAppendPlacementNode(finishedWork,before,parent);break;case 5:var parent$144=hostParentFiber.stateNode;hostParentFiber.flags&32&&(setTextContent(parent$144,""),hostParentFiber.flags&=-33);var before$145=getHostSibling(finishedWork);insertOrAppendPlacementNode(finishedWork,before$145,parent$144);break;case 3:case 4:var parent$146=hostParentFiber.stateNode.containerInfo,before$147=getHostSibling(finishedWork);insertOrAppendPlacementNodeIntoContainer(finishedWork,before$147,parent$146);break;default:throw Error(formatProdErrorMessage(161))}}catch(error){captureCommitPhaseError(finishedWork,finishedWork.return,error)}finishedWork.flags&=-3}flags&4096&&(finishedWork.flags&=-4097)}function recursivelyResetForms(parentFiber){if(parentFiber.subtreeFlags&1024)for(parentFiber=parentFiber.child;parentFiber!==null;){var fiber=parentFiber;recursivelyResetForms(fiber),fiber.tag===5&&fiber.flags&1024&&fiber.stateNode.reset(),parentFiber=parentFiber.sibling}}function recursivelyTraverseLayoutEffects(root3,parentFiber){if(parentFiber.subtreeFlags&8772)for(parentFiber=parentFiber.child;parentFiber!==null;)commitLayoutEffectOnFiber(root3,parentFiber.alternate,parentFiber),parentFiber=parentFiber.sibling}function recursivelyTraverseDisappearLayoutEffects(parentFiber){for(parentFiber=parentFiber.child;parentFiber!==null;){var finishedWork=parentFiber;switch(finishedWork.tag){case 0:case 11:case 14:case 15:commitHookEffectListUnmount(4,finishedWork,finishedWork.return),recursivelyTraverseDisappearLayoutEffects(finishedWork);break;case 1:safelyDetachRef(finishedWork,finishedWork.return);var instance=finishedWork.stateNode;typeof instance.componentWillUnmount=="function"&&safelyCallComponentWillUnmount(finishedWork,finishedWork.return,instance),recursivelyTraverseDisappearLayoutEffects(finishedWork);break;case 27:releaseSingletonInstance(finishedWork.stateNode);case 26:case 5:safelyDetachRef(finishedWork,finishedWork.return),recursivelyTraverseDisappearLayoutEffects(finishedWork);break;case 22:finishedWork.memoizedState===null&&recursivelyTraverseDisappearLayoutEffects(finishedWork);break;case 30:recursivelyTraverseDisappearLayoutEffects(finishedWork);break;default:recursivelyTraverseDisappearLayoutEffects(finishedWork)}parentFiber=parentFiber.sibling}}function recursivelyTraverseReappearLayoutEffects(finishedRoot$jscomp$0,parentFiber,includeWorkInProgressEffects){for(includeWorkInProgressEffects=includeWorkInProgressEffects&&(parentFiber.subtreeFlags&8772)!==0,parentFiber=parentFiber.child;parentFiber!==null;){var current=parentFiber.alternate,finishedRoot=finishedRoot$jscomp$0,finishedWork=parentFiber,flags=finishedWork.flags;switch(finishedWork.tag){case 0:case 11:case 15:recursivelyTraverseReappearLayoutEffects(finishedRoot,finishedWork,includeWorkInProgressEffects),commitHookEffectListMount(4,finishedWork);break;case 1:if(recursivelyTraverseReappearLayoutEffects(finishedRoot,finishedWork,includeWorkInProgressEffects),current=finishedWork,finishedRoot=current.stateNode,typeof finishedRoot.componentDidMount=="function")try{finishedRoot.componentDidMount()}catch(error){captureCommitPhaseError(current,current.return,error)}if(current=finishedWork,finishedRoot=current.updateQueue,finishedRoot!==null){var instance=current.stateNode;try{var hiddenCallbacks=finishedRoot.shared.hiddenCallbacks;if(hiddenCallbacks!==null)for(finishedRoot.shared.hiddenCallbacks=null,finishedRoot=0;finishedRoot<hiddenCallbacks.length;finishedRoot++)callCallback(hiddenCallbacks[finishedRoot],instance)}catch(error){captureCommitPhaseError(current,current.return,error)}}includeWorkInProgressEffects&&flags&64&&commitClassCallbacks(finishedWork),safelyAttachRef(finishedWork,finishedWork.return);break;case 27:commitHostSingletonAcquisition(finishedWork);case 26:case 5:recursivelyTraverseReappearLayoutEffects(finishedRoot,finishedWork,includeWorkInProgressEffects),includeWorkInProgressEffects&¤t===null&&flags&4&&commitHostMount(finishedWork),safelyAttachRef(finishedWork,finishedWork.return);break;case 12:recursivelyTraverseReappearLayoutEffects(finishedRoot,finishedWork,includeWorkInProgressEffects);break;case 13:recursivelyTraverseReappearLayoutEffects(finishedRoot,finishedWork,includeWorkInProgressEffects),includeWorkInProgressEffects&&flags&4&&commitSuspenseHydrationCallbacks(finishedRoot,finishedWork);break;case 22:finishedWork.memoizedState===null&&recursivelyTraverseReappearLayoutEffects(finishedRoot,finishedWork,includeWorkInProgressEffects),safelyAttachRef(finishedWork,finishedWork.return);break;case 30:break;default:recursivelyTraverseReappearLayoutEffects(finishedRoot,finishedWork,includeWorkInProgressEffects)}parentFiber=parentFiber.sibling}}function commitOffscreenPassiveMountEffects(current,finishedWork){var previousCache=null;current!==null&¤t.memoizedState!==null&¤t.memoizedState.cachePool!==null&&(previousCache=current.memoizedState.cachePool.pool),current=null,finishedWork.memoizedState!==null&&finishedWork.memoizedState.cachePool!==null&&(current=finishedWork.memoizedState.cachePool.pool),current!==previousCache&&(current!=null&¤t.refCount++,previousCache!=null&&releaseCache(previousCache))}function commitCachePassiveMountEffect(current,finishedWork){current=null,finishedWork.alternate!==null&&(current=finishedWork.alternate.memoizedState.cache),finishedWork=finishedWork.memoizedState.cache,finishedWork!==current&&(finishedWork.refCount++,current!=null&&releaseCache(current))}function recursivelyTraversePassiveMountEffects(root3,parentFiber,committedLanes,committedTransitions){if(parentFiber.subtreeFlags&10256)for(parentFiber=parentFiber.child;parentFiber!==null;)commitPassiveMountOnFiber(root3,parentFiber,committedLanes,committedTransitions),parentFiber=parentFiber.sibling}function commitPassiveMountOnFiber(finishedRoot,finishedWork,committedLanes,committedTransitions){var flags=finishedWork.flags;switch(finishedWork.tag){case 0:case 11:case 15:recursivelyTraversePassiveMountEffects(finishedRoot,finishedWork,committedLanes,committedTransitions),flags&2048&&commitHookEffectListMount(9,finishedWork);break;case 1:recursivelyTraversePassiveMountEffects(finishedRoot,finishedWork,committedLanes,committedTransitions);break;case 3:recursivelyTraversePassiveMountEffects(finishedRoot,finishedWork,committedLanes,committedTransitions),flags&2048&&(finishedRoot=null,finishedWork.alternate!==null&&(finishedRoot=finishedWork.alternate.memoizedState.cache),finishedWork=finishedWork.memoizedState.cache,finishedWork!==finishedRoot&&(finishedWork.refCount++,finishedRoot!=null&&releaseCache(finishedRoot)));break;case 12:if(flags&2048){recursivelyTraversePassiveMountEffects(finishedRoot,finishedWork,committedLanes,committedTransitions),finishedRoot=finishedWork.stateNode;try{var _finishedWork$memoize2=finishedWork.memoizedProps,id=_finishedWork$memoize2.id,onPostCommit=_finishedWork$memoize2.onPostCommit;typeof onPostCommit=="function"&&onPostCommit(id,finishedWork.alternate===null?"mount":"update",finishedRoot.passiveEffectDuration,-0)}catch(error){captureCommitPhaseError(finishedWork,finishedWork.return,error)}}else recursivelyTraversePassiveMountEffects(finishedRoot,finishedWork,committedLanes,committedTransitions);break;case 13:recursivelyTraversePassiveMountEffects(finishedRoot,finishedWork,committedLanes,committedTransitions);break;case 23:break;case 22:_finishedWork$memoize2=finishedWork.stateNode,id=finishedWork.alternate,finishedWork.memoizedState!==null?_finishedWork$memoize2._visibility&2?recursivelyTraversePassiveMountEffects(finishedRoot,finishedWork,committedLanes,committedTransitions):recursivelyTraverseAtomicPassiveEffects(finishedRoot,finishedWork):_finishedWork$memoize2._visibility&2?recursivelyTraversePassiveMountEffects(finishedRoot,finishedWork,committedLanes,committedTransitions):(_finishedWork$memoize2._visibility|=2,recursivelyTraverseReconnectPassiveEffects(finishedRoot,finishedWork,committedLanes,committedTransitions,(finishedWork.subtreeFlags&10256)!==0)),flags&2048&&commitOffscreenPassiveMountEffects(id,finishedWork);break;case 24:recursivelyTraversePassiveMountEffects(finishedRoot,finishedWork,committedLanes,committedTransitions),flags&2048&&commitCachePassiveMountEffect(finishedWork.alternate,finishedWork);break;default:recursivelyTraversePassiveMountEffects(finishedRoot,finishedWork,committedLanes,committedTransitions)}}function recursivelyTraverseReconnectPassiveEffects(finishedRoot$jscomp$0,parentFiber,committedLanes$jscomp$0,committedTransitions$jscomp$0,includeWorkInProgressEffects){for(includeWorkInProgressEffects=includeWorkInProgressEffects&&(parentFiber.subtreeFlags&10256)!==0,parentFiber=parentFiber.child;parentFiber!==null;){var finishedRoot=finishedRoot$jscomp$0,finishedWork=parentFiber,committedLanes=committedLanes$jscomp$0,committedTransitions=committedTransitions$jscomp$0,flags=finishedWork.flags;switch(finishedWork.tag){case 0:case 11:case 15:recursivelyTraverseReconnectPassiveEffects(finishedRoot,finishedWork,committedLanes,committedTransitions,includeWorkInProgressEffects),commitHookEffectListMount(8,finishedWork);break;case 23:break;case 22:var instance=finishedWork.stateNode;finishedWork.memoizedState!==null?instance._visibility&2?recursivelyTraverseReconnectPassiveEffects(finishedRoot,finishedWork,committedLanes,committedTransitions,includeWorkInProgressEffects):recursivelyTraverseAtomicPassiveEffects(finishedRoot,finishedWork):(instance._visibility|=2,recursivelyTraverseReconnectPassiveEffects(finishedRoot,finishedWork,committedLanes,committedTransitions,includeWorkInProgressEffects)),includeWorkInProgressEffects&&flags&2048&&commitOffscreenPassiveMountEffects(finishedWork.alternate,finishedWork);break;case 24:recursivelyTraverseReconnectPassiveEffects(finishedRoot,finishedWork,committedLanes,committedTransitions,includeWorkInProgressEffects),includeWorkInProgressEffects&&flags&2048&&commitCachePassiveMountEffect(finishedWork.alternate,finishedWork);break;default:recursivelyTraverseReconnectPassiveEffects(finishedRoot,finishedWork,committedLanes,committedTransitions,includeWorkInProgressEffects)}parentFiber=parentFiber.sibling}}function recursivelyTraverseAtomicPassiveEffects(finishedRoot$jscomp$0,parentFiber){if(parentFiber.subtreeFlags&10256)for(parentFiber=parentFiber.child;parentFiber!==null;){var finishedRoot=finishedRoot$jscomp$0,finishedWork=parentFiber,flags=finishedWork.flags;switch(finishedWork.tag){case 22:recursivelyTraverseAtomicPassiveEffects(finishedRoot,finishedWork),flags&2048&&commitOffscreenPassiveMountEffects(finishedWork.alternate,finishedWork);break;case 24:recursivelyTraverseAtomicPassiveEffects(finishedRoot,finishedWork),flags&2048&&commitCachePassiveMountEffect(finishedWork.alternate,finishedWork);break;default:recursivelyTraverseAtomicPassiveEffects(finishedRoot,finishedWork)}parentFiber=parentFiber.sibling}}var suspenseyCommitFlag=8192;function recursivelyAccumulateSuspenseyCommit(parentFiber){if(parentFiber.subtreeFlags&suspenseyCommitFlag)for(parentFiber=parentFiber.child;parentFiber!==null;)accumulateSuspenseyCommitOnFiber(parentFiber),parentFiber=parentFiber.sibling}function accumulateSuspenseyCommitOnFiber(fiber){switch(fiber.tag){case 26:recursivelyAccumulateSuspenseyCommit(fiber),fiber.flags&suspenseyCommitFlag&&fiber.memoizedState!==null&&suspendResource(currentHoistableRoot,fiber.memoizedState,fiber.memoizedProps);break;case 5:recursivelyAccumulateSuspenseyCommit(fiber);break;case 3:case 4:var previousHoistableRoot=currentHoistableRoot;currentHoistableRoot=getHoistableRoot(fiber.stateNode.containerInfo),recursivelyAccumulateSuspenseyCommit(fiber),currentHoistableRoot=previousHoistableRoot;break;case 22:fiber.memoizedState===null&&(previousHoistableRoot=fiber.alternate,previousHoistableRoot!==null&&previousHoistableRoot.memoizedState!==null?(previousHoistableRoot=suspenseyCommitFlag,suspenseyCommitFlag=16777216,recursivelyAccumulateSuspenseyCommit(fiber),suspenseyCommitFlag=previousHoistableRoot):recursivelyAccumulateSuspenseyCommit(fiber));break;default:recursivelyAccumulateSuspenseyCommit(fiber)}}function detachAlternateSiblings(parentFiber){var previousFiber=parentFiber.alternate;if(previousFiber!==null&&(parentFiber=previousFiber.child,parentFiber!==null)){previousFiber.child=null;do previousFiber=parentFiber.sibling,parentFiber.sibling=null,parentFiber=previousFiber;while(parentFiber!==null)}}function recursivelyTraversePassiveUnmountEffects(parentFiber){var deletions=parentFiber.deletions;if((parentFiber.flags&16)!==0){if(deletions!==null)for(var i=0;i<deletions.length;i++){var childToDelete=deletions[i];nextEffect=childToDelete,commitPassiveUnmountEffectsInsideOfDeletedTree_begin(childToDelete,parentFiber)}detachAlternateSiblings(parentFiber)}if(parentFiber.subtreeFlags&10256)for(parentFiber=parentFiber.child;parentFiber!==null;)commitPassiveUnmountOnFiber(parentFiber),parentFiber=parentFiber.sibling}function commitPassiveUnmountOnFiber(finishedWork){switch(finishedWork.tag){case 0:case 11:case 15:recursivelyTraversePassiveUnmountEffects(finishedWork),finishedWork.flags&2048&&commitHookEffectListUnmount(9,finishedWork,finishedWork.return);break;case 3:recursivelyTraversePassiveUnmountEffects(finishedWork);break;case 12:recursivelyTraversePassiveUnmountEffects(finishedWork);break;case 22:var instance=finishedWork.stateNode;finishedWork.memoizedState!==null&&instance._visibility&2&&(finishedWork.return===null||finishedWork.return.tag!==13)?(instance._visibility&=-3,recursivelyTraverseDisconnectPassiveEffects(finishedWork)):recursivelyTraversePassiveUnmountEffects(finishedWork);break;default:recursivelyTraversePassiveUnmountEffects(finishedWork)}}function recursivelyTraverseDisconnectPassiveEffects(parentFiber){var deletions=parentFiber.deletions;if((parentFiber.flags&16)!==0){if(deletions!==null)for(var i=0;i<deletions.length;i++){var childToDelete=deletions[i];nextEffect=childToDelete,commitPassiveUnmountEffectsInsideOfDeletedTree_begin(childToDelete,parentFiber)}detachAlternateSiblings(parentFiber)}for(parentFiber=parentFiber.child;parentFiber!==null;){switch(deletions=parentFiber,deletions.tag){case 0:case 11:case 15:commitHookEffectListUnmount(8,deletions,deletions.return),recursivelyTraverseDisconnectPassiveEffects(deletions);break;case 22:i=deletions.stateNode,i._visibility&2&&(i._visibility&=-3,recursivelyTraverseDisconnectPassiveEffects(deletions));break;default:recursivelyTraverseDisconnectPassiveEffects(deletions)}parentFiber=parentFiber.sibling}}function commitPassiveUnmountEffectsInsideOfDeletedTree_begin(deletedSubtreeRoot,nearestMountedAncestor){for(;nextEffect!==null;){var fiber=nextEffect;switch(fiber.tag){case 0:case 11:case 15:commitHookEffectListUnmount(8,fiber,nearestMountedAncestor);break;case 23:case 22:if(fiber.memoizedState!==null&&fiber.memoizedState.cachePool!==null){var cache=fiber.memoizedState.cachePool.pool;cache!=null&&cache.refCount++}break;case 24:releaseCache(fiber.memoizedState.cache)}if(cache=fiber.child,cache!==null)cache.return=fiber,nextEffect=cache;else a:for(fiber=deletedSubtreeRoot;nextEffect!==null;){cache=nextEffect;var sibling=cache.sibling,returnFiber=cache.return;if(detachFiberAfterEffects(cache),cache===fiber){nextEffect=null;break a}if(sibling!==null){sibling.return=returnFiber,nextEffect=sibling;break a}nextEffect=returnFiber}}}var DefaultAsyncDispatcher={getCacheForType:function(resourceType){var cache=readContext(CacheContext),cacheForType=cache.data.get(resourceType);return cacheForType===void 0&&(cacheForType=resourceType(),cache.data.set(resourceType,cacheForType)),cacheForType}},PossiblyWeakMap=typeof WeakMap=="function"?WeakMap:Map,executionContext=0,workInProgressRoot=null,workInProgress=null,workInProgressRootRenderLanes=0,workInProgressSuspendedReason=0,workInProgressThrownValue=null,workInProgressRootDidSkipSuspendedSiblings=!1,workInProgressRootIsPrerendering=!1,workInProgressRootDidAttachPingListener=!1,entangledRenderLanes=0,workInProgressRootExitStatus=0,workInProgressRootSkippedLanes=0,workInProgressRootInterleavedUpdatedLanes=0,workInProgressRootPingedLanes=0,workInProgressDeferredLane=0,workInProgressSuspendedRetryLanes=0,workInProgressRootConcurrentErrors=null,workInProgressRootRecoverableErrors=null,workInProgressRootDidIncludeRecursiveRenderUpdate=!1,globalMostRecentFallbackTime=0,workInProgressRootRenderTargetTime=1/0,workInProgressTransitions=null,legacyErrorBoundariesThatAlreadyFailed=null,pendingEffectsStatus=0,pendingEffectsRoot=null,pendingFinishedWork=null,pendingEffectsLanes=0,pendingEffectsRemainingLanes=0,pendingPassiveTransitions=null,pendingRecoverableErrors=null,nestedUpdateCount=0,rootWithNestedUpdates=null;function requestUpdateLane(){if((executionContext&2)!==0&&workInProgressRootRenderLanes!==0)return workInProgressRootRenderLanes&-workInProgressRootRenderLanes;if(ReactSharedInternals.T!==null){var actionScopeLane=currentEntangledLane;return actionScopeLane!==0?actionScopeLane:requestTransitionLane()}return resolveUpdatePriority()}function requestDeferredLane(){workInProgressDeferredLane===0&&(workInProgressDeferredLane=(workInProgressRootRenderLanes&536870912)===0||isHydrating?claimNextTransitionLane():536870912);var suspenseHandler=suspenseHandlerStackCursor.current;return suspenseHandler!==null&&(suspenseHandler.flags|=32),workInProgressDeferredLane}function scheduleUpdateOnFiber(root3,fiber,lane){(root3===workInProgressRoot&&(workInProgressSuspendedReason===2||workInProgressSuspendedReason===9)||root3.cancelPendingCommit!==null)&&(prepareFreshStack(root3,0),markRootSuspended(root3,workInProgressRootRenderLanes,workInProgressDeferredLane,!1)),markRootUpdated$1(root3,lane),((executionContext&2)===0||root3!==workInProgressRoot)&&(root3===workInProgressRoot&&((executionContext&2)===0&&(workInProgressRootInterleavedUpdatedLanes|=lane),workInProgressRootExitStatus===4&&markRootSuspended(root3,workInProgressRootRenderLanes,workInProgressDeferredLane,!1)),ensureRootIsScheduled(root3))}function performWorkOnRoot(root$jscomp$0,lanes,forceSync){if((executionContext&6)!==0)throw Error(formatProdErrorMessage(327));var shouldTimeSlice=!forceSync&&(lanes&124)===0&&(lanes&root$jscomp$0.expiredLanes)===0||checkIfRootIsPrerendering(root$jscomp$0,lanes),exitStatus=shouldTimeSlice?renderRootConcurrent(root$jscomp$0,lanes):renderRootSync(root$jscomp$0,lanes,!0),renderWasConcurrent=shouldTimeSlice;do{if(exitStatus===0){workInProgressRootIsPrerendering&&!shouldTimeSlice&&markRootSuspended(root$jscomp$0,lanes,0,!1);break}else{if(forceSync=root$jscomp$0.current.alternate,renderWasConcurrent&&!isRenderConsistentWithExternalStores(forceSync)){exitStatus=renderRootSync(root$jscomp$0,lanes,!1),renderWasConcurrent=!1;continue}if(exitStatus===2){if(renderWasConcurrent=lanes,root$jscomp$0.errorRecoveryDisabledLanes&renderWasConcurrent)var JSCompiler_inline_result=0;else JSCompiler_inline_result=root$jscomp$0.pendingLanes&-536870913,JSCompiler_inline_result=JSCompiler_inline_result!==0?JSCompiler_inline_result:JSCompiler_inline_result&536870912?536870912:0;if(JSCompiler_inline_result!==0){lanes=JSCompiler_inline_result;a:{var root3=root$jscomp$0;exitStatus=workInProgressRootConcurrentErrors;var wasRootDehydrated=root3.current.memoizedState.isDehydrated;if(wasRootDehydrated&&(prepareFreshStack(root3,JSCompiler_inline_result).flags|=256),JSCompiler_inline_result=renderRootSync(root3,JSCompiler_inline_result,!1),JSCompiler_inline_result!==2){if(workInProgressRootDidAttachPingListener&&!wasRootDehydrated){root3.errorRecoveryDisabledLanes|=renderWasConcurrent,workInProgressRootInterleavedUpdatedLanes|=renderWasConcurrent,exitStatus=4;break a}renderWasConcurrent=workInProgressRootRecoverableErrors,workInProgressRootRecoverableErrors=exitStatus,renderWasConcurrent!==null&&(workInProgressRootRecoverableErrors===null?workInProgressRootRecoverableErrors=renderWasConcurrent:workInProgressRootRecoverableErrors.push.apply(workInProgressRootRecoverableErrors,renderWasConcurrent))}exitStatus=JSCompiler_inline_result}if(renderWasConcurrent=!1,exitStatus!==2)continue}}if(exitStatus===1){prepareFreshStack(root$jscomp$0,0),markRootSuspended(root$jscomp$0,lanes,0,!0);break}a:{switch(shouldTimeSlice=root$jscomp$0,renderWasConcurrent=exitStatus,renderWasConcurrent){case 0:case 1:throw Error(formatProdErrorMessage(345));case 4:if((lanes&4194048)!==lanes)break;case 6:markRootSuspended(shouldTimeSlice,lanes,workInProgressDeferredLane,!workInProgressRootDidSkipSuspendedSiblings);break a;case 2:workInProgressRootRecoverableErrors=null;break;case 3:case 5:break;default:throw Error(formatProdErrorMessage(329))}if((lanes&62914560)===lanes&&(exitStatus=globalMostRecentFallbackTime+300-now(),10<exitStatus)){if(markRootSuspended(shouldTimeSlice,lanes,workInProgressDeferredLane,!workInProgressRootDidSkipSuspendedSiblings),getNextLanes(shouldTimeSlice,0,!0)!==0)break a;shouldTimeSlice.timeoutHandle=scheduleTimeout(commitRootWhenReady.bind(null,shouldTimeSlice,forceSync,workInProgressRootRecoverableErrors,workInProgressTransitions,workInProgressRootDidIncludeRecursiveRenderUpdate,lanes,workInProgressDeferredLane,workInProgressRootInterleavedUpdatedLanes,workInProgressSuspendedRetryLanes,workInProgressRootDidSkipSuspendedSiblings,renderWasConcurrent,2,-0,0),exitStatus);break a}commitRootWhenReady(shouldTimeSlice,forceSync,workInProgressRootRecoverableErrors,workInProgressTransitions,workInProgressRootDidIncludeRecursiveRenderUpdate,lanes,workInProgressDeferredLane,workInProgressRootInterleavedUpdatedLanes,workInProgressSuspendedRetryLanes,workInProgressRootDidSkipSuspendedSiblings,renderWasConcurrent,0,-0,0)}}break}while(!0);ensureRootIsScheduled(root$jscomp$0)}function commitRootWhenReady(root3,finishedWork,recoverableErrors,transitions,didIncludeRenderPhaseUpdate,lanes,spawnedLane,updatedLanes,suspendedRetryLanes,didSkipSuspendedSiblings,exitStatus,suspendedCommitReason,completedRenderStartTime,completedRenderEndTime){if(root3.timeoutHandle=-1,suspendedCommitReason=finishedWork.subtreeFlags,(suspendedCommitReason&8192||(suspendedCommitReason&16785408)===16785408)&&(suspendedState={stylesheets:null,count:0,unsuspend:noop},accumulateSuspenseyCommitOnFiber(finishedWork),suspendedCommitReason=waitForCommitToBeReady(),suspendedCommitReason!==null)){root3.cancelPendingCommit=suspendedCommitReason(commitRoot.bind(null,root3,finishedWork,lanes,recoverableErrors,transitions,didIncludeRenderPhaseUpdate,spawnedLane,updatedLanes,suspendedRetryLanes,exitStatus,1,completedRenderStartTime,completedRenderEndTime)),markRootSuspended(root3,lanes,spawnedLane,!didSkipSuspendedSiblings);return}commitRoot(root3,finishedWork,lanes,recoverableErrors,transitions,didIncludeRenderPhaseUpdate,spawnedLane,updatedLanes,suspendedRetryLanes)}function isRenderConsistentWithExternalStores(finishedWork){for(var node=finishedWork;;){var tag=node.tag;if((tag===0||tag===11||tag===15)&&node.flags&16384&&(tag=node.updateQueue,tag!==null&&(tag=tag.stores,tag!==null)))for(var i=0;i<tag.length;i++){var check=tag[i],getSnapshot=check.getSnapshot;check=check.value;try{if(!objectIs(getSnapshot(),check))return!1}catch{return!1}}if(tag=node.child,node.subtreeFlags&16384&&tag!==null)tag.return=node,node=tag;else{if(node===finishedWork)break;for(;node.sibling===null;){if(node.return===null||node.return===finishedWork)return!0;node=node.return}node.sibling.return=node.return,node=node.sibling}}return!0}function markRootSuspended(root3,suspendedLanes,spawnedLane,didAttemptEntireTree){suspendedLanes&=~workInProgressRootPingedLanes,suspendedLanes&=~workInProgressRootInterleavedUpdatedLanes,root3.suspendedLanes|=suspendedLanes,root3.pingedLanes&=~suspendedLanes,didAttemptEntireTree&&(root3.warmLanes|=suspendedLanes),didAttemptEntireTree=root3.expirationTimes;for(var lanes=suspendedLanes;0<lanes;){var index$4=31-clz32(lanes),lane=1<<index$4;didAttemptEntireTree[index$4]=-1,lanes&=~lane}spawnedLane!==0&&markSpawnedDeferredLane(root3,spawnedLane,suspendedLanes)}function flushSyncWork$1(){return(executionContext&6)===0?(flushSyncWorkAcrossRoots_impl(0),!1):!0}function resetWorkInProgressStack(){if(workInProgress!==null){if(workInProgressSuspendedReason===0)var interruptedWork=workInProgress.return;else interruptedWork=workInProgress,lastContextDependency=currentlyRenderingFiber$1=null,resetHooksOnUnwind(interruptedWork),thenableState=null,thenableIndexCounter=0,interruptedWork=workInProgress;for(;interruptedWork!==null;)unwindInterruptedWork(interruptedWork.alternate,interruptedWork),interruptedWork=interruptedWork.return;workInProgress=null}}function prepareFreshStack(root3,lanes){var timeoutHandle=root3.timeoutHandle;timeoutHandle!==-1&&(root3.timeoutHandle=-1,cancelTimeout(timeoutHandle)),timeoutHandle=root3.cancelPendingCommit,timeoutHandle!==null&&(root3.cancelPendingCommit=null,timeoutHandle()),resetWorkInProgressStack(),workInProgressRoot=root3,workInProgress=timeoutHandle=createWorkInProgress(root3.current,null),workInProgressRootRenderLanes=lanes,workInProgressSuspendedReason=0,workInProgressThrownValue=null,workInProgressRootDidSkipSuspendedSiblings=!1,workInProgressRootIsPrerendering=checkIfRootIsPrerendering(root3,lanes),workInProgressRootDidAttachPingListener=!1,workInProgressSuspendedRetryLanes=workInProgressDeferredLane=workInProgressRootPingedLanes=workInProgressRootInterleavedUpdatedLanes=workInProgressRootSkippedLanes=workInProgressRootExitStatus=0,workInProgressRootRecoverableErrors=workInProgressRootConcurrentErrors=null,workInProgressRootDidIncludeRecursiveRenderUpdate=!1,(lanes&8)!==0&&(lanes|=lanes&32);var allEntangledLanes=root3.entangledLanes;if(allEntangledLanes!==0)for(root3=root3.entanglements,allEntangledLanes&=lanes;0<allEntangledLanes;){var index$2=31-clz32(allEntangledLanes),lane=1<<index$2;lanes|=root3[index$2],allEntangledLanes&=~lane}return entangledRenderLanes=lanes,finishQueueingConcurrentUpdates(),timeoutHandle}function handleThrow(root3,thrownValue){currentlyRenderingFiber=null,ReactSharedInternals.H=ContextOnlyDispatcher,thrownValue===SuspenseException||thrownValue===SuspenseActionException?(thrownValue=getSuspendedThenable(),workInProgressSuspendedReason=3):thrownValue===SuspenseyCommitException?(thrownValue=getSuspendedThenable(),workInProgressSuspendedReason=4):workInProgressSuspendedReason=thrownValue===SelectiveHydrationException?8:thrownValue!==null&&typeof thrownValue=="object"&&typeof thrownValue.then=="function"?6:1,workInProgressThrownValue=thrownValue,workInProgress===null&&(workInProgressRootExitStatus=1,logUncaughtError(root3,createCapturedValueAtFiber(thrownValue,root3.current)))}function pushDispatcher(){var prevDispatcher=ReactSharedInternals.H;return ReactSharedInternals.H=ContextOnlyDispatcher,prevDispatcher===null?ContextOnlyDispatcher:prevDispatcher}function pushAsyncDispatcher(){var prevAsyncDispatcher=ReactSharedInternals.A;return ReactSharedInternals.A=DefaultAsyncDispatcher,prevAsyncDispatcher}function renderDidSuspendDelayIfPossible(){workInProgressRootExitStatus=4,workInProgressRootDidSkipSuspendedSiblings||(workInProgressRootRenderLanes&4194048)!==workInProgressRootRenderLanes&&suspenseHandlerStackCursor.current!==null||(workInProgressRootIsPrerendering=!0),(workInProgressRootSkippedLanes&134217727)===0&&(workInProgressRootInterleavedUpdatedLanes&134217727)===0||workInProgressRoot===null||markRootSuspended(workInProgressRoot,workInProgressRootRenderLanes,workInProgressDeferredLane,!1)}function renderRootSync(root3,lanes,shouldYieldForPrerendering){var prevExecutionContext=executionContext;executionContext|=2;var prevDispatcher=pushDispatcher(),prevAsyncDispatcher=pushAsyncDispatcher();(workInProgressRoot!==root3||workInProgressRootRenderLanes!==lanes)&&(workInProgressTransitions=null,prepareFreshStack(root3,lanes)),lanes=!1;var exitStatus=workInProgressRootExitStatus;a:do try{if(workInProgressSuspendedReason!==0&&workInProgress!==null){var unitOfWork=workInProgress,thrownValue=workInProgressThrownValue;switch(workInProgressSuspendedReason){case 8:resetWorkInProgressStack(),exitStatus=6;break a;case 3:case 2:case 9:case 6:suspenseHandlerStackCursor.current===null&&(lanes=!0);var reason=workInProgressSuspendedReason;if(workInProgressSuspendedReason=0,workInProgressThrownValue=null,throwAndUnwindWorkLoop(root3,unitOfWork,thrownValue,reason),shouldYieldForPrerendering&&workInProgressRootIsPrerendering){exitStatus=0;break a}break;default:reason=workInProgressSuspendedReason,workInProgressSuspendedReason=0,workInProgressThrownValue=null,throwAndUnwindWorkLoop(root3,unitOfWork,thrownValue,reason)}}workLoopSync(),exitStatus=workInProgressRootExitStatus;break}catch(thrownValue$167){handleThrow(root3,thrownValue$167)}while(!0);return lanes&&root3.shellSuspendCounter++,lastContextDependency=currentlyRenderingFiber$1=null,executionContext=prevExecutionContext,ReactSharedInternals.H=prevDispatcher,ReactSharedInternals.A=prevAsyncDispatcher,workInProgress===null&&(workInProgressRoot=null,workInProgressRootRenderLanes=0,finishQueueingConcurrentUpdates()),exitStatus}function workLoopSync(){for(;workInProgress!==null;)performUnitOfWork(workInProgress)}function renderRootConcurrent(root3,lanes){var prevExecutionContext=executionContext;executionContext|=2;var prevDispatcher=pushDispatcher(),prevAsyncDispatcher=pushAsyncDispatcher();workInProgressRoot!==root3||workInProgressRootRenderLanes!==lanes?(workInProgressTransitions=null,workInProgressRootRenderTargetTime=now()+500,prepareFreshStack(root3,lanes)):workInProgressRootIsPrerendering=checkIfRootIsPrerendering(root3,lanes);a:do try{if(workInProgressSuspendedReason!==0&&workInProgress!==null){lanes=workInProgress;var thrownValue=workInProgressThrownValue;b:switch(workInProgressSuspendedReason){case 1:workInProgressSuspendedReason=0,workInProgressThrownValue=null,throwAndUnwindWorkLoop(root3,lanes,thrownValue,1);break;case 2:case 9:if(isThenableResolved(thrownValue)){workInProgressSuspendedReason=0,workInProgressThrownValue=null,replaySuspendedUnitOfWork(lanes);break}lanes=function(){workInProgressSuspendedReason!==2&&workInProgressSuspendedReason!==9||workInProgressRoot!==root3||(workInProgressSuspendedReason=7),ensureRootIsScheduled(root3)},thrownValue.then(lanes,lanes);break a;case 3:workInProgressSuspendedReason=7;break a;case 4:workInProgressSuspendedReason=5;break a;case 7:isThenableResolved(thrownValue)?(workInProgressSuspendedReason=0,workInProgressThrownValue=null,replaySuspendedUnitOfWork(lanes)):(workInProgressSuspendedReason=0,workInProgressThrownValue=null,throwAndUnwindWorkLoop(root3,lanes,thrownValue,7));break;case 5:var resource=null;switch(workInProgress.tag){case 26:resource=workInProgress.memoizedState;case 5:case 27:var hostFiber=workInProgress;if(!resource||preloadResource(resource)){workInProgressSuspendedReason=0,workInProgressThrownValue=null;var sibling=hostFiber.sibling;if(sibling!==null)workInProgress=sibling;else{var returnFiber=hostFiber.return;returnFiber!==null?(workInProgress=returnFiber,completeUnitOfWork(returnFiber)):workInProgress=null}break b}}workInProgressSuspendedReason=0,workInProgressThrownValue=null,throwAndUnwindWorkLoop(root3,lanes,thrownValue,5);break;case 6:workInProgressSuspendedReason=0,workInProgressThrownValue=null,throwAndUnwindWorkLoop(root3,lanes,thrownValue,6);break;case 8:resetWorkInProgressStack(),workInProgressRootExitStatus=6;break a;default:throw Error(formatProdErrorMessage(462))}}workLoopConcurrentByScheduler();break}catch(thrownValue$169){handleThrow(root3,thrownValue$169)}while(!0);return lastContextDependency=currentlyRenderingFiber$1=null,ReactSharedInternals.H=prevDispatcher,ReactSharedInternals.A=prevAsyncDispatcher,executionContext=prevExecutionContext,workInProgress!==null?0:(workInProgressRoot=null,workInProgressRootRenderLanes=0,finishQueueingConcurrentUpdates(),workInProgressRootExitStatus)}function workLoopConcurrentByScheduler(){for(;workInProgress!==null&&!shouldYield();)performUnitOfWork(workInProgress)}function performUnitOfWork(unitOfWork){var next=beginWork(unitOfWork.alternate,unitOfWork,entangledRenderLanes);unitOfWork.memoizedProps=unitOfWork.pendingProps,next===null?completeUnitOfWork(unitOfWork):workInProgress=next}function replaySuspendedUnitOfWork(unitOfWork){var next=unitOfWork,current=next.alternate;switch(next.tag){case 15:case 0:next=replayFunctionComponent(current,next,next.pendingProps,next.type,void 0,workInProgressRootRenderLanes);break;case 11:next=replayFunctionComponent(current,next,next.pendingProps,next.type.render,next.ref,workInProgressRootRenderLanes);break;case 5:resetHooksOnUnwind(next);default:unwindInterruptedWork(current,next),next=workInProgress=resetWorkInProgress(next,entangledRenderLanes),next=beginWork(current,next,entangledRenderLanes)}unitOfWork.memoizedProps=unitOfWork.pendingProps,next===null?completeUnitOfWork(unitOfWork):workInProgress=next}function throwAndUnwindWorkLoop(root3,unitOfWork,thrownValue,suspendedReason){lastContextDependency=currentlyRenderingFiber$1=null,resetHooksOnUnwind(unitOfWork),thenableState=null,thenableIndexCounter=0;var returnFiber=unitOfWork.return;try{if(throwException(root3,returnFiber,unitOfWork,thrownValue,workInProgressRootRenderLanes)){workInProgressRootExitStatus=1,logUncaughtError(root3,createCapturedValueAtFiber(thrownValue,root3.current)),workInProgress=null;return}}catch(error){if(returnFiber!==null)throw workInProgress=returnFiber,error;workInProgressRootExitStatus=1,logUncaughtError(root3,createCapturedValueAtFiber(thrownValue,root3.current)),workInProgress=null;return}unitOfWork.flags&32768?(isHydrating||suspendedReason===1?root3=!0:workInProgressRootIsPrerendering||(workInProgressRootRenderLanes&536870912)!==0?root3=!1:(workInProgressRootDidSkipSuspendedSiblings=root3=!0,(suspendedReason===2||suspendedReason===9||suspendedReason===3||suspendedReason===6)&&(suspendedReason=suspenseHandlerStackCursor.current,suspendedReason!==null&&suspendedReason.tag===13&&(suspendedReason.flags|=16384))),unwindUnitOfWork(unitOfWork,root3)):completeUnitOfWork(unitOfWork)}function completeUnitOfWork(unitOfWork){var completedWork=unitOfWork;do{if((completedWork.flags&32768)!==0){unwindUnitOfWork(completedWork,workInProgressRootDidSkipSuspendedSiblings);return}unitOfWork=completedWork.return;var next=completeWork(completedWork.alternate,completedWork,entangledRenderLanes);if(next!==null){workInProgress=next;return}if(completedWork=completedWork.sibling,completedWork!==null){workInProgress=completedWork;return}workInProgress=completedWork=unitOfWork}while(completedWork!==null);workInProgressRootExitStatus===0&&(workInProgressRootExitStatus=5)}function unwindUnitOfWork(unitOfWork,skipSiblings){do{var next=unwindWork(unitOfWork.alternate,unitOfWork);if(next!==null){next.flags&=32767,workInProgress=next;return}if(next=unitOfWork.return,next!==null&&(next.flags|=32768,next.subtreeFlags=0,next.deletions=null),!skipSiblings&&(unitOfWork=unitOfWork.sibling,unitOfWork!==null)){workInProgress=unitOfWork;return}workInProgress=unitOfWork=next}while(unitOfWork!==null);workInProgressRootExitStatus=6,workInProgress=null}function commitRoot(root3,finishedWork,lanes,recoverableErrors,transitions,didIncludeRenderPhaseUpdate,spawnedLane,updatedLanes,suspendedRetryLanes){root3.cancelPendingCommit=null;do flushPendingEffects();while(pendingEffectsStatus!==0);if((executionContext&6)!==0)throw Error(formatProdErrorMessage(327));if(finishedWork!==null){if(finishedWork===root3.current)throw Error(formatProdErrorMessage(177));if(didIncludeRenderPhaseUpdate=finishedWork.lanes|finishedWork.childLanes,didIncludeRenderPhaseUpdate|=concurrentlyUpdatedLanes,markRootFinished(root3,lanes,didIncludeRenderPhaseUpdate,spawnedLane,updatedLanes,suspendedRetryLanes),root3===workInProgressRoot&&(workInProgress=workInProgressRoot=null,workInProgressRootRenderLanes=0),pendingFinishedWork=finishedWork,pendingEffectsRoot=root3,pendingEffectsLanes=lanes,pendingEffectsRemainingLanes=didIncludeRenderPhaseUpdate,pendingPassiveTransitions=transitions,pendingRecoverableErrors=recoverableErrors,(finishedWork.subtreeFlags&10256)!==0||(finishedWork.flags&10256)!==0?(root3.callbackNode=null,root3.callbackPriority=0,scheduleCallback$1(NormalPriority$1,function(){return flushPassiveEffects(),null})):(root3.callbackNode=null,root3.callbackPriority=0),recoverableErrors=(finishedWork.flags&13878)!==0,(finishedWork.subtreeFlags&13878)!==0||recoverableErrors){recoverableErrors=ReactSharedInternals.T,ReactSharedInternals.T=null,transitions=ReactDOMSharedInternals.p,ReactDOMSharedInternals.p=2,spawnedLane=executionContext,executionContext|=4;try{commitBeforeMutationEffects(root3,finishedWork,lanes)}finally{executionContext=spawnedLane,ReactDOMSharedInternals.p=transitions,ReactSharedInternals.T=recoverableErrors}}pendingEffectsStatus=1,flushMutationEffects(),flushLayoutEffects(),flushSpawnedWork()}}function flushMutationEffects(){if(pendingEffectsStatus===1){pendingEffectsStatus=0;var root3=pendingEffectsRoot,finishedWork=pendingFinishedWork,rootMutationHasEffect=(finishedWork.flags&13878)!==0;if((finishedWork.subtreeFlags&13878)!==0||rootMutationHasEffect){rootMutationHasEffect=ReactSharedInternals.T,ReactSharedInternals.T=null;var previousPriority=ReactDOMSharedInternals.p;ReactDOMSharedInternals.p=2;var prevExecutionContext=executionContext;executionContext|=4;try{commitMutationEffectsOnFiber(finishedWork,root3);var priorSelectionInformation=selectionInformation,curFocusedElem=getActiveElementDeep(root3.containerInfo),priorFocusedElem=priorSelectionInformation.focusedElem,priorSelectionRange=priorSelectionInformation.selectionRange;if(curFocusedElem!==priorFocusedElem&&priorFocusedElem&&priorFocusedElem.ownerDocument&&containsNode(priorFocusedElem.ownerDocument.documentElement,priorFocusedElem)){if(priorSelectionRange!==null&&hasSelectionCapabilities(priorFocusedElem)){var start=priorSelectionRange.start,end=priorSelectionRange.end;if(end===void 0&&(end=start),"selectionStart"in priorFocusedElem)priorFocusedElem.selectionStart=start,priorFocusedElem.selectionEnd=Math.min(end,priorFocusedElem.value.length);else{var doc=priorFocusedElem.ownerDocument||document,win=doc&&doc.defaultView||window;if(win.getSelection){var selection=win.getSelection(),length=priorFocusedElem.textContent.length,start$jscomp$0=Math.min(priorSelectionRange.start,length),end$jscomp$0=priorSelectionRange.end===void 0?start$jscomp$0:Math.min(priorSelectionRange.end,length);!selection.extend&&start$jscomp$0>end$jscomp$0&&(curFocusedElem=end$jscomp$0,end$jscomp$0=start$jscomp$0,start$jscomp$0=curFocusedElem);var startMarker=getNodeForCharacterOffset(priorFocusedElem,start$jscomp$0),endMarker=getNodeForCharacterOffset(priorFocusedElem,end$jscomp$0);if(startMarker&&endMarker&&(selection.rangeCount!==1||selection.anchorNode!==startMarker.node||selection.anchorOffset!==startMarker.offset||selection.focusNode!==endMarker.node||selection.focusOffset!==endMarker.offset)){var range=doc.createRange();range.setStart(startMarker.node,startMarker.offset),selection.removeAllRanges(),start$jscomp$0>end$jscomp$0?(selection.addRange(range),selection.extend(endMarker.node,endMarker.offset)):(range.setEnd(endMarker.node,endMarker.offset),selection.addRange(range))}}}}for(doc=[],selection=priorFocusedElem;selection=selection.parentNode;)selection.nodeType===1&&doc.push({element:selection,left:selection.scrollLeft,top:selection.scrollTop});for(typeof priorFocusedElem.focus=="function"&&priorFocusedElem.focus(),priorFocusedElem=0;priorFocusedElem<doc.length;priorFocusedElem++){var info=doc[priorFocusedElem];info.element.scrollLeft=info.left,info.element.scrollTop=info.top}}_enabled=!!eventsEnabled,selectionInformation=eventsEnabled=null}finally{executionContext=prevExecutionContext,ReactDOMSharedInternals.p=previousPriority,ReactSharedInternals.T=rootMutationHasEffect}}root3.current=finishedWork,pendingEffectsStatus=2}}function flushLayoutEffects(){if(pendingEffectsStatus===2){pendingEffectsStatus=0;var root3=pendingEffectsRoot,finishedWork=pendingFinishedWork,rootHasLayoutEffect=(finishedWork.flags&8772)!==0;if((finishedWork.subtreeFlags&8772)!==0||rootHasLayoutEffect){rootHasLayoutEffect=ReactSharedInternals.T,ReactSharedInternals.T=null;var previousPriority=ReactDOMSharedInternals.p;ReactDOMSharedInternals.p=2;var prevExecutionContext=executionContext;executionContext|=4;try{commitLayoutEffectOnFiber(root3,finishedWork.alternate,finishedWork)}finally{executionContext=prevExecutionContext,ReactDOMSharedInternals.p=previousPriority,ReactSharedInternals.T=rootHasLayoutEffect}}pendingEffectsStatus=3}}function flushSpawnedWork(){if(pendingEffectsStatus===4||pendingEffectsStatus===3){pendingEffectsStatus=0,requestPaint();var root3=pendingEffectsRoot,finishedWork=pendingFinishedWork,lanes=pendingEffectsLanes,recoverableErrors=pendingRecoverableErrors;(finishedWork.subtreeFlags&10256)!==0||(finishedWork.flags&10256)!==0?pendingEffectsStatus=5:(pendingEffectsStatus=0,pendingFinishedWork=pendingEffectsRoot=null,releaseRootPooledCache(root3,root3.pendingLanes));var remainingLanes=root3.pendingLanes;if(remainingLanes===0&&(legacyErrorBoundariesThatAlreadyFailed=null),lanesToEventPriority(lanes),finishedWork=finishedWork.stateNode,injectedHook&&typeof injectedHook.onCommitFiberRoot=="function")try{injectedHook.onCommitFiberRoot(rendererID,finishedWork,void 0,(finishedWork.current.flags&128)===128)}catch{}if(recoverableErrors!==null){finishedWork=ReactSharedInternals.T,remainingLanes=ReactDOMSharedInternals.p,ReactDOMSharedInternals.p=2,ReactSharedInternals.T=null;try{for(var onRecoverableError=root3.onRecoverableError,i=0;i<recoverableErrors.length;i++){var recoverableError=recoverableErrors[i];onRecoverableError(recoverableError.value,{componentStack:recoverableError.stack})}}finally{ReactSharedInternals.T=finishedWork,ReactDOMSharedInternals.p=remainingLanes}}(pendingEffectsLanes&3)!==0&&flushPendingEffects(),ensureRootIsScheduled(root3),remainingLanes=root3.pendingLanes,(lanes&4194090)!==0&&(remainingLanes&42)!==0?root3===rootWithNestedUpdates?nestedUpdateCount++:(nestedUpdateCount=0,rootWithNestedUpdates=root3):nestedUpdateCount=0,flushSyncWorkAcrossRoots_impl(0)}}function releaseRootPooledCache(root3,remainingLanes){(root3.pooledCacheLanes&=remainingLanes)===0&&(remainingLanes=root3.pooledCache,remainingLanes!=null&&(root3.pooledCache=null,releaseCache(remainingLanes)))}function flushPendingEffects(wasDelayedCommit){return flushMutationEffects(),flushLayoutEffects(),flushSpawnedWork(),flushPassiveEffects()}function flushPassiveEffects(){if(pendingEffectsStatus!==5)return!1;var root3=pendingEffectsRoot,remainingLanes=pendingEffectsRemainingLanes;pendingEffectsRemainingLanes=0;var renderPriority=lanesToEventPriority(pendingEffectsLanes),prevTransition=ReactSharedInternals.T,previousPriority=ReactDOMSharedInternals.p;try{ReactDOMSharedInternals.p=32>renderPriority?32:renderPriority,ReactSharedInternals.T=null,renderPriority=pendingPassiveTransitions,pendingPassiveTransitions=null;var root$jscomp$0=pendingEffectsRoot,lanes=pendingEffectsLanes;if(pendingEffectsStatus=0,pendingFinishedWork=pendingEffectsRoot=null,pendingEffectsLanes=0,(executionContext&6)!==0)throw Error(formatProdErrorMessage(331));var prevExecutionContext=executionContext;if(executionContext|=4,commitPassiveUnmountOnFiber(root$jscomp$0.current),commitPassiveMountOnFiber(root$jscomp$0,root$jscomp$0.current,lanes,renderPriority),executionContext=prevExecutionContext,flushSyncWorkAcrossRoots_impl(0,!1),injectedHook&&typeof injectedHook.onPostCommitFiberRoot=="function")try{injectedHook.onPostCommitFiberRoot(rendererID,root$jscomp$0)}catch{}return!0}finally{ReactDOMSharedInternals.p=previousPriority,ReactSharedInternals.T=prevTransition,releaseRootPooledCache(root3,remainingLanes)}}function captureCommitPhaseErrorOnRoot(rootFiber,sourceFiber,error){sourceFiber=createCapturedValueAtFiber(error,sourceFiber),sourceFiber=createRootErrorUpdate(rootFiber.stateNode,sourceFiber,2),rootFiber=enqueueUpdate(rootFiber,sourceFiber,2),rootFiber!==null&&(markRootUpdated$1(rootFiber,2),ensureRootIsScheduled(rootFiber))}function captureCommitPhaseError(sourceFiber,nearestMountedAncestor,error){if(sourceFiber.tag===3)captureCommitPhaseErrorOnRoot(sourceFiber,sourceFiber,error);else for(;nearestMountedAncestor!==null;){if(nearestMountedAncestor.tag===3){captureCommitPhaseErrorOnRoot(nearestMountedAncestor,sourceFiber,error);break}else if(nearestMountedAncestor.tag===1){var instance=nearestMountedAncestor.stateNode;if(typeof nearestMountedAncestor.type.getDerivedStateFromError=="function"||typeof instance.componentDidCatch=="function"&&(legacyErrorBoundariesThatAlreadyFailed===null||!legacyErrorBoundariesThatAlreadyFailed.has(instance))){sourceFiber=createCapturedValueAtFiber(error,sourceFiber),error=createClassErrorUpdate(2),instance=enqueueUpdate(nearestMountedAncestor,error,2),instance!==null&&(initializeClassErrorUpdate(error,instance,nearestMountedAncestor,sourceFiber),markRootUpdated$1(instance,2),ensureRootIsScheduled(instance));break}}nearestMountedAncestor=nearestMountedAncestor.return}}function attachPingListener(root3,wakeable,lanes){var pingCache=root3.pingCache;if(pingCache===null){pingCache=root3.pingCache=new PossiblyWeakMap;var threadIDs=new Set;pingCache.set(wakeable,threadIDs)}else threadIDs=pingCache.get(wakeable),threadIDs===void 0&&(threadIDs=new Set,pingCache.set(wakeable,threadIDs));threadIDs.has(lanes)||(workInProgressRootDidAttachPingListener=!0,threadIDs.add(lanes),root3=pingSuspendedRoot.bind(null,root3,wakeable,lanes),wakeable.then(root3,root3))}function pingSuspendedRoot(root3,wakeable,pingedLanes){var pingCache=root3.pingCache;pingCache!==null&&pingCache.delete(wakeable),root3.pingedLanes|=root3.suspendedLanes&pingedLanes,root3.warmLanes&=~pingedLanes,workInProgressRoot===root3&&(workInProgressRootRenderLanes&pingedLanes)===pingedLanes&&(workInProgressRootExitStatus===4||workInProgressRootExitStatus===3&&(workInProgressRootRenderLanes&62914560)===workInProgressRootRenderLanes&&300>now()-globalMostRecentFallbackTime?(executionContext&2)===0&&prepareFreshStack(root3,0):workInProgressRootPingedLanes|=pingedLanes,workInProgressSuspendedRetryLanes===workInProgressRootRenderLanes&&(workInProgressSuspendedRetryLanes=0)),ensureRootIsScheduled(root3)}function retryTimedOutBoundary(boundaryFiber,retryLane){retryLane===0&&(retryLane=claimNextRetryLane()),boundaryFiber=enqueueConcurrentRenderForLane(boundaryFiber,retryLane),boundaryFiber!==null&&(markRootUpdated$1(boundaryFiber,retryLane),ensureRootIsScheduled(boundaryFiber))}function retryDehydratedSuspenseBoundary(boundaryFiber){var suspenseState=boundaryFiber.memoizedState,retryLane=0;suspenseState!==null&&(retryLane=suspenseState.retryLane),retryTimedOutBoundary(boundaryFiber,retryLane)}function resolveRetryWakeable(boundaryFiber,wakeable){var retryLane=0;switch(boundaryFiber.tag){case 13:var retryCache=boundaryFiber.stateNode,suspenseState=boundaryFiber.memoizedState;suspenseState!==null&&(retryLane=suspenseState.retryLane);break;case 19:retryCache=boundaryFiber.stateNode;break;case 22:retryCache=boundaryFiber.stateNode._retryCache;break;default:throw Error(formatProdErrorMessage(314))}retryCache!==null&&retryCache.delete(wakeable),retryTimedOutBoundary(boundaryFiber,retryLane)}function scheduleCallback$1(priorityLevel,callback){return scheduleCallback$3(priorityLevel,callback)}var firstScheduledRoot=null,lastScheduledRoot=null,didScheduleMicrotask=!1,mightHavePendingSyncWork=!1,isFlushingWork=!1,currentEventTransitionLane=0;function ensureRootIsScheduled(root3){root3!==lastScheduledRoot&&root3.next===null&&(lastScheduledRoot===null?firstScheduledRoot=lastScheduledRoot=root3:lastScheduledRoot=lastScheduledRoot.next=root3),mightHavePendingSyncWork=!0,didScheduleMicrotask||(didScheduleMicrotask=!0,scheduleImmediateRootScheduleTask())}function flushSyncWorkAcrossRoots_impl(syncTransitionLanes,onlyLegacy){if(!isFlushingWork&&mightHavePendingSyncWork){isFlushingWork=!0;do for(var didPerformSomeWork=!1,root$174=firstScheduledRoot;root$174!==null;){if(syncTransitionLanes!==0){var pendingLanes=root$174.pendingLanes;if(pendingLanes===0)var JSCompiler_inline_result=0;else{var suspendedLanes=root$174.suspendedLanes,pingedLanes=root$174.pingedLanes;JSCompiler_inline_result=(1<<31-clz32(42|syncTransitionLanes)+1)-1,JSCompiler_inline_result&=pendingLanes&~(suspendedLanes&~pingedLanes),JSCompiler_inline_result=JSCompiler_inline_result&201326741?JSCompiler_inline_result&201326741|1:JSCompiler_inline_result?JSCompiler_inline_result|2:0}JSCompiler_inline_result!==0&&(didPerformSomeWork=!0,performSyncWorkOnRoot(root$174,JSCompiler_inline_result))}else JSCompiler_inline_result=workInProgressRootRenderLanes,JSCompiler_inline_result=getNextLanes(root$174,root$174===workInProgressRoot?JSCompiler_inline_result:0,root$174.cancelPendingCommit!==null||root$174.timeoutHandle!==-1),(JSCompiler_inline_result&3)===0||checkIfRootIsPrerendering(root$174,JSCompiler_inline_result)||(didPerformSomeWork=!0,performSyncWorkOnRoot(root$174,JSCompiler_inline_result));root$174=root$174.next}while(didPerformSomeWork);isFlushingWork=!1}}function processRootScheduleInImmediateTask(){processRootScheduleInMicrotask()}function processRootScheduleInMicrotask(){mightHavePendingSyncWork=didScheduleMicrotask=!1;var syncTransitionLanes=0;currentEventTransitionLane!==0&&(shouldAttemptEagerTransition()&&(syncTransitionLanes=currentEventTransitionLane),currentEventTransitionLane=0);for(var currentTime=now(),prev=null,root3=firstScheduledRoot;root3!==null;){var next=root3.next,nextLanes=scheduleTaskForRootDuringMicrotask(root3,currentTime);nextLanes===0?(root3.next=null,prev===null?firstScheduledRoot=next:prev.next=next,next===null&&(lastScheduledRoot=prev)):(prev=root3,(syncTransitionLanes!==0||(nextLanes&3)!==0)&&(mightHavePendingSyncWork=!0)),root3=next}flushSyncWorkAcrossRoots_impl(syncTransitionLanes)}function scheduleTaskForRootDuringMicrotask(root3,currentTime){for(var suspendedLanes=root3.suspendedLanes,pingedLanes=root3.pingedLanes,expirationTimes=root3.expirationTimes,lanes=root3.pendingLanes&-62914561;0<lanes;){var index$3=31-clz32(lanes),lane=1<<index$3,expirationTime=expirationTimes[index$3];expirationTime===-1?((lane&suspendedLanes)===0||(lane&pingedLanes)!==0)&&(expirationTimes[index$3]=computeExpirationTime(lane,currentTime)):expirationTime<=currentTime&&(root3.expiredLanes|=lane),lanes&=~lane}if(currentTime=workInProgressRoot,suspendedLanes=workInProgressRootRenderLanes,suspendedLanes=getNextLanes(root3,root3===currentTime?suspendedLanes:0,root3.cancelPendingCommit!==null||root3.timeoutHandle!==-1),pingedLanes=root3.callbackNode,suspendedLanes===0||root3===currentTime&&(workInProgressSuspendedReason===2||workInProgressSuspendedReason===9)||root3.cancelPendingCommit!==null)return pingedLanes!==null&&pingedLanes!==null&&cancelCallback$1(pingedLanes),root3.callbackNode=null,root3.callbackPriority=0;if((suspendedLanes&3)===0||checkIfRootIsPrerendering(root3,suspendedLanes)){if(currentTime=suspendedLanes&-suspendedLanes,currentTime===root3.callbackPriority)return currentTime;switch(pingedLanes!==null&&cancelCallback$1(pingedLanes),lanesToEventPriority(suspendedLanes)){case 2:case 8:suspendedLanes=UserBlockingPriority;break;case 32:suspendedLanes=NormalPriority$1;break;case 268435456:suspendedLanes=IdlePriority;break;default:suspendedLanes=NormalPriority$1}return pingedLanes=performWorkOnRootViaSchedulerTask.bind(null,root3),suspendedLanes=scheduleCallback$3(suspendedLanes,pingedLanes),root3.callbackPriority=currentTime,root3.callbackNode=suspendedLanes,currentTime}return pingedLanes!==null&&pingedLanes!==null&&cancelCallback$1(pingedLanes),root3.callbackPriority=2,root3.callbackNode=null,2}function performWorkOnRootViaSchedulerTask(root3,didTimeout){if(pendingEffectsStatus!==0&&pendingEffectsStatus!==5)return root3.callbackNode=null,root3.callbackPriority=0,null;var originalCallbackNode=root3.callbackNode;if(flushPendingEffects()&&root3.callbackNode!==originalCallbackNode)return null;var workInProgressRootRenderLanes$jscomp$0=workInProgressRootRenderLanes;return workInProgressRootRenderLanes$jscomp$0=getNextLanes(root3,root3===workInProgressRoot?workInProgressRootRenderLanes$jscomp$0:0,root3.cancelPendingCommit!==null||root3.timeoutHandle!==-1),workInProgressRootRenderLanes$jscomp$0===0?null:(performWorkOnRoot(root3,workInProgressRootRenderLanes$jscomp$0,didTimeout),scheduleTaskForRootDuringMicrotask(root3,now()),root3.callbackNode!=null&&root3.callbackNode===originalCallbackNode?performWorkOnRootViaSchedulerTask.bind(null,root3):null)}function performSyncWorkOnRoot(root3,lanes){if(flushPendingEffects())return null;performWorkOnRoot(root3,lanes,!0)}function scheduleImmediateRootScheduleTask(){scheduleMicrotask(function(){(executionContext&6)!==0?scheduleCallback$3(ImmediatePriority,processRootScheduleInImmediateTask):processRootScheduleInMicrotask()})}function requestTransitionLane(){return currentEventTransitionLane===0&&(currentEventTransitionLane=claimNextTransitionLane()),currentEventTransitionLane}function coerceFormActionProp(actionProp){return actionProp==null||typeof actionProp=="symbol"||typeof actionProp=="boolean"?null:typeof actionProp=="function"?actionProp:sanitizeURL(""+actionProp)}function createFormDataWithSubmitter(form2,submitter){var temp=submitter.ownerDocument.createElement("input");return temp.name=submitter.name,temp.value=submitter.value,form2.id&&temp.setAttribute("form",form2.id),submitter.parentNode.insertBefore(temp,submitter),form2=new FormData(form2),temp.parentNode.removeChild(temp),form2}function extractEvents$1(dispatchQueue,domEventName,maybeTargetInst,nativeEvent,nativeEventTarget){if(domEventName==="submit"&&maybeTargetInst&&maybeTargetInst.stateNode===nativeEventTarget){var action=coerceFormActionProp((nativeEventTarget[internalPropsKey]||null).action),submitter=nativeEvent.submitter;submitter&&(domEventName=(domEventName=submitter[internalPropsKey]||null)?coerceFormActionProp(domEventName.formAction):submitter.getAttribute("formAction"),domEventName!==null&&(action=domEventName,submitter=null));var event=new SyntheticEvent("action","action",null,nativeEvent,nativeEventTarget);dispatchQueue.push({event,listeners:[{instance:null,listener:function(){if(nativeEvent.defaultPrevented){if(currentEventTransitionLane!==0){var formData=submitter?createFormDataWithSubmitter(nativeEventTarget,submitter):new FormData(nativeEventTarget);startHostTransition(maybeTargetInst,{pending:!0,data:formData,method:nativeEventTarget.method,action},null,formData)}}else typeof action=="function"&&(event.preventDefault(),formData=submitter?createFormDataWithSubmitter(nativeEventTarget,submitter):new FormData(nativeEventTarget),startHostTransition(maybeTargetInst,{pending:!0,data:formData,method:nativeEventTarget.method,action},action,formData))},currentTarget:nativeEventTarget}]})}}for(var i$jscomp$inline_1528=0;i$jscomp$inline_1528<simpleEventPluginEvents.length;i$jscomp$inline_1528++){var eventName$jscomp$inline_1529=simpleEventPluginEvents[i$jscomp$inline_1528],domEventName$jscomp$inline_1530=eventName$jscomp$inline_1529.toLowerCase(),capitalizedEvent$jscomp$inline_1531=eventName$jscomp$inline_1529[0].toUpperCase()+eventName$jscomp$inline_1529.slice(1);registerSimpleEvent(domEventName$jscomp$inline_1530,"on"+capitalizedEvent$jscomp$inline_1531)}registerSimpleEvent(ANIMATION_END,"onAnimationEnd"),registerSimpleEvent(ANIMATION_ITERATION,"onAnimationIteration"),registerSimpleEvent(ANIMATION_START,"onAnimationStart"),registerSimpleEvent("dblclick","onDoubleClick"),registerSimpleEvent("focusin","onFocus"),registerSimpleEvent("focusout","onBlur"),registerSimpleEvent(TRANSITION_RUN,"onTransitionRun"),registerSimpleEvent(TRANSITION_START,"onTransitionStart"),registerSimpleEvent(TRANSITION_CANCEL,"onTransitionCancel"),registerSimpleEvent(TRANSITION_END,"onTransitionEnd"),registerDirectEvent("onMouseEnter",["mouseout","mouseover"]),registerDirectEvent("onMouseLeave",["mouseout","mouseover"]),registerDirectEvent("onPointerEnter",["pointerout","pointerover"]),registerDirectEvent("onPointerLeave",["pointerout","pointerover"]),registerTwoPhaseEvent("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),registerTwoPhaseEvent("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),registerTwoPhaseEvent("onBeforeInput",["compositionend","keypress","textInput","paste"]),registerTwoPhaseEvent("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),registerTwoPhaseEvent("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),registerTwoPhaseEvent("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var mediaEventTypes="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(" "),nonDelegatedEvents=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(mediaEventTypes));function processDispatchQueue(dispatchQueue,eventSystemFlags){eventSystemFlags=(eventSystemFlags&4)!==0;for(var i=0;i<dispatchQueue.length;i++){var _dispatchQueue$i=dispatchQueue[i],event=_dispatchQueue$i.event;_dispatchQueue$i=_dispatchQueue$i.listeners;a:{var previousInstance=void 0;if(eventSystemFlags)for(var i$jscomp$0=_dispatchQueue$i.length-1;0<=i$jscomp$0;i$jscomp$0--){var _dispatchListeners$i=_dispatchQueue$i[i$jscomp$0],instance=_dispatchListeners$i.instance,currentTarget=_dispatchListeners$i.currentTarget;if(_dispatchListeners$i=_dispatchListeners$i.listener,instance!==previousInstance&&event.isPropagationStopped())break a;previousInstance=_dispatchListeners$i,event.currentTarget=currentTarget;try{previousInstance(event)}catch(error){reportGlobalError(error)}event.currentTarget=null,previousInstance=instance}else for(i$jscomp$0=0;i$jscomp$0<_dispatchQueue$i.length;i$jscomp$0++){if(_dispatchListeners$i=_dispatchQueue$i[i$jscomp$0],instance=_dispatchListeners$i.instance,currentTarget=_dispatchListeners$i.currentTarget,_dispatchListeners$i=_dispatchListeners$i.listener,instance!==previousInstance&&event.isPropagationStopped())break a;previousInstance=_dispatchListeners$i,event.currentTarget=currentTarget;try{previousInstance(event)}catch(error){reportGlobalError(error)}event.currentTarget=null,previousInstance=instance}}}}function listenToNonDelegatedEvent(domEventName,targetElement){var JSCompiler_inline_result=targetElement[internalEventHandlersKey];JSCompiler_inline_result===void 0&&(JSCompiler_inline_result=targetElement[internalEventHandlersKey]=new Set);var listenerSetKey=domEventName+"__bubble";JSCompiler_inline_result.has(listenerSetKey)||(addTrappedEventListener(targetElement,domEventName,2,!1),JSCompiler_inline_result.add(listenerSetKey))}function listenToNativeEvent(domEventName,isCapturePhaseListener,target){var eventSystemFlags=0;isCapturePhaseListener&&(eventSystemFlags|=4),addTrappedEventListener(target,domEventName,eventSystemFlags,isCapturePhaseListener)}var listeningMarker="_reactListening"+Math.random().toString(36).slice(2);function listenToAllSupportedEvents(rootContainerElement){if(!rootContainerElement[listeningMarker]){rootContainerElement[listeningMarker]=!0,allNativeEvents.forEach(function(domEventName){domEventName!=="selectionchange"&&(nonDelegatedEvents.has(domEventName)||listenToNativeEvent(domEventName,!1,rootContainerElement),listenToNativeEvent(domEventName,!0,rootContainerElement))});var ownerDocument=rootContainerElement.nodeType===9?rootContainerElement:rootContainerElement.ownerDocument;ownerDocument===null||ownerDocument[listeningMarker]||(ownerDocument[listeningMarker]=!0,listenToNativeEvent("selectionchange",!1,ownerDocument))}}function addTrappedEventListener(targetContainer,domEventName,eventSystemFlags,isCapturePhaseListener){switch(getEventPriority(domEventName)){case 2:var listenerWrapper=dispatchDiscreteEvent;break;case 8:listenerWrapper=dispatchContinuousEvent;break;default:listenerWrapper=dispatchEvent}eventSystemFlags=listenerWrapper.bind(null,domEventName,eventSystemFlags,targetContainer),listenerWrapper=void 0,!passiveBrowserEventsSupported||domEventName!=="touchstart"&&domEventName!=="touchmove"&&domEventName!=="wheel"||(listenerWrapper=!0),isCapturePhaseListener?listenerWrapper!==void 0?targetContainer.addEventListener(domEventName,eventSystemFlags,{capture:!0,passive:listenerWrapper}):targetContainer.addEventListener(domEventName,eventSystemFlags,!0):listenerWrapper!==void 0?targetContainer.addEventListener(domEventName,eventSystemFlags,{passive:listenerWrapper}):targetContainer.addEventListener(domEventName,eventSystemFlags,!1)}function dispatchEventForPluginEventSystem(domEventName,eventSystemFlags,nativeEvent,targetInst$jscomp$0,targetContainer){var ancestorInst=targetInst$jscomp$0;if((eventSystemFlags&1)===0&&(eventSystemFlags&2)===0&&targetInst$jscomp$0!==null)a:for(;;){if(targetInst$jscomp$0===null)return;var nodeTag=targetInst$jscomp$0.tag;if(nodeTag===3||nodeTag===4){var container=targetInst$jscomp$0.stateNode.containerInfo;if(container===targetContainer)break;if(nodeTag===4)for(nodeTag=targetInst$jscomp$0.return;nodeTag!==null;){var grandTag=nodeTag.tag;if((grandTag===3||grandTag===4)&&nodeTag.stateNode.containerInfo===targetContainer)return;nodeTag=nodeTag.return}for(;container!==null;){if(nodeTag=getClosestInstanceFromNode(container),nodeTag===null)return;if(grandTag=nodeTag.tag,grandTag===5||grandTag===6||grandTag===26||grandTag===27){targetInst$jscomp$0=ancestorInst=nodeTag;continue a}container=container.parentNode}}targetInst$jscomp$0=targetInst$jscomp$0.return}batchedUpdates$1(function(){var targetInst=ancestorInst,nativeEventTarget=getEventTarget(nativeEvent),dispatchQueue=[];a:{var reactName=topLevelEventsToReactNames.get(domEventName);if(reactName!==void 0){var SyntheticEventCtor=SyntheticEvent,reactEventType=domEventName;switch(domEventName){case"keypress":if(getEventCharCode(nativeEvent)===0)break a;case"keydown":case"keyup":SyntheticEventCtor=SyntheticKeyboardEvent;break;case"focusin":reactEventType="focus",SyntheticEventCtor=SyntheticFocusEvent;break;case"focusout":reactEventType="blur",SyntheticEventCtor=SyntheticFocusEvent;break;case"beforeblur":case"afterblur":SyntheticEventCtor=SyntheticFocusEvent;break;case"click":if(nativeEvent.button===2)break a;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":SyntheticEventCtor=SyntheticMouseEvent;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":SyntheticEventCtor=SyntheticDragEvent;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":SyntheticEventCtor=SyntheticTouchEvent;break;case ANIMATION_END:case ANIMATION_ITERATION:case ANIMATION_START:SyntheticEventCtor=SyntheticAnimationEvent;break;case TRANSITION_END:SyntheticEventCtor=SyntheticTransitionEvent;break;case"scroll":case"scrollend":SyntheticEventCtor=SyntheticUIEvent;break;case"wheel":SyntheticEventCtor=SyntheticWheelEvent;break;case"copy":case"cut":case"paste":SyntheticEventCtor=SyntheticClipboardEvent;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":SyntheticEventCtor=SyntheticPointerEvent;break;case"toggle":case"beforetoggle":SyntheticEventCtor=SyntheticToggleEvent}var inCapturePhase=(eventSystemFlags&4)!==0,accumulateTargetOnly=!inCapturePhase&&(domEventName==="scroll"||domEventName==="scrollend"),reactEventName=inCapturePhase?reactName!==null?reactName+"Capture":null:reactName;inCapturePhase=[];for(var instance=targetInst,lastHostComponent;instance!==null;){var _instance=instance;if(lastHostComponent=_instance.stateNode,_instance=_instance.tag,_instance!==5&&_instance!==26&&_instance!==27||lastHostComponent===null||reactEventName===null||(_instance=getListener(instance,reactEventName),_instance!=null&&inCapturePhase.push(createDispatchListener(instance,_instance,lastHostComponent))),accumulateTargetOnly)break;instance=instance.return}0<inCapturePhase.length&&(reactName=new SyntheticEventCtor(reactName,reactEventType,null,nativeEvent,nativeEventTarget),dispatchQueue.push({event:reactName,listeners:inCapturePhase}))}}if((eventSystemFlags&7)===0){a:{if(reactName=domEventName==="mouseover"||domEventName==="pointerover",SyntheticEventCtor=domEventName==="mouseout"||domEventName==="pointerout",reactName&&nativeEvent!==currentReplayingEvent&&(reactEventType=nativeEvent.relatedTarget||nativeEvent.fromElement)&&(getClosestInstanceFromNode(reactEventType)||reactEventType[internalContainerInstanceKey]))break a;if((SyntheticEventCtor||reactName)&&(reactName=nativeEventTarget.window===nativeEventTarget?nativeEventTarget:(reactName=nativeEventTarget.ownerDocument)?reactName.defaultView||reactName.parentWindow:window,SyntheticEventCtor?(reactEventType=nativeEvent.relatedTarget||nativeEvent.toElement,SyntheticEventCtor=targetInst,reactEventType=reactEventType?getClosestInstanceFromNode(reactEventType):null,reactEventType!==null&&(accumulateTargetOnly=getNearestMountedFiber(reactEventType),inCapturePhase=reactEventType.tag,reactEventType!==accumulateTargetOnly||inCapturePhase!==5&&inCapturePhase!==27&&inCapturePhase!==6)&&(reactEventType=null)):(SyntheticEventCtor=null,reactEventType=targetInst),SyntheticEventCtor!==reactEventType)){if(inCapturePhase=SyntheticMouseEvent,_instance="onMouseLeave",reactEventName="onMouseEnter",instance="mouse",(domEventName==="pointerout"||domEventName==="pointerover")&&(inCapturePhase=SyntheticPointerEvent,_instance="onPointerLeave",reactEventName="onPointerEnter",instance="pointer"),accumulateTargetOnly=SyntheticEventCtor==null?reactName:getNodeFromInstance(SyntheticEventCtor),lastHostComponent=reactEventType==null?reactName:getNodeFromInstance(reactEventType),reactName=new inCapturePhase(_instance,instance+"leave",SyntheticEventCtor,nativeEvent,nativeEventTarget),reactName.target=accumulateTargetOnly,reactName.relatedTarget=lastHostComponent,_instance=null,getClosestInstanceFromNode(nativeEventTarget)===targetInst&&(inCapturePhase=new inCapturePhase(reactEventName,instance+"enter",reactEventType,nativeEvent,nativeEventTarget),inCapturePhase.target=lastHostComponent,inCapturePhase.relatedTarget=accumulateTargetOnly,_instance=inCapturePhase),accumulateTargetOnly=_instance,SyntheticEventCtor&&reactEventType)b:{for(inCapturePhase=SyntheticEventCtor,reactEventName=reactEventType,instance=0,lastHostComponent=inCapturePhase;lastHostComponent;lastHostComponent=getParent(lastHostComponent))instance++;for(lastHostComponent=0,_instance=reactEventName;_instance;_instance=getParent(_instance))lastHostComponent++;for(;0<instance-lastHostComponent;)inCapturePhase=getParent(inCapturePhase),instance--;for(;0<lastHostComponent-instance;)reactEventName=getParent(reactEventName),lastHostComponent--;for(;instance--;){if(inCapturePhase===reactEventName||reactEventName!==null&&inCapturePhase===reactEventName.alternate)break b;inCapturePhase=getParent(inCapturePhase),reactEventName=getParent(reactEventName)}inCapturePhase=null}else inCapturePhase=null;SyntheticEventCtor!==null&&accumulateEnterLeaveListenersForEvent(dispatchQueue,reactName,SyntheticEventCtor,inCapturePhase,!1),reactEventType!==null&&accumulateTargetOnly!==null&&accumulateEnterLeaveListenersForEvent(dispatchQueue,accumulateTargetOnly,reactEventType,inCapturePhase,!0)}}a:{if(reactName=targetInst?getNodeFromInstance(targetInst):window,SyntheticEventCtor=reactName.nodeName&&reactName.nodeName.toLowerCase(),SyntheticEventCtor==="select"||SyntheticEventCtor==="input"&&reactName.type==="file")var getTargetInstFunc=getTargetInstForChangeEvent;else if(isTextInputElement(reactName))if(isInputEventSupported)getTargetInstFunc=getTargetInstForInputOrChangeEvent;else{getTargetInstFunc=getTargetInstForInputEventPolyfill;var handleEventFunc=handleEventsForInputEventPolyfill}else SyntheticEventCtor=reactName.nodeName,!SyntheticEventCtor||SyntheticEventCtor.toLowerCase()!=="input"||reactName.type!=="checkbox"&&reactName.type!=="radio"?targetInst&&isCustomElement(targetInst.elementType)&&(getTargetInstFunc=getTargetInstForChangeEvent):getTargetInstFunc=getTargetInstForClickEvent;if(getTargetInstFunc&&(getTargetInstFunc=getTargetInstFunc(domEventName,targetInst))){createAndAccumulateChangeEvent(dispatchQueue,getTargetInstFunc,nativeEvent,nativeEventTarget);break a}handleEventFunc&&handleEventFunc(domEventName,reactName,targetInst),domEventName==="focusout"&&targetInst&&reactName.type==="number"&&targetInst.memoizedProps.value!=null&&setDefaultValue(reactName,"number",reactName.value)}switch(handleEventFunc=targetInst?getNodeFromInstance(targetInst):window,domEventName){case"focusin":(isTextInputElement(handleEventFunc)||handleEventFunc.contentEditable==="true")&&(activeElement=handleEventFunc,activeElementInst=targetInst,lastSelection=null);break;case"focusout":lastSelection=activeElementInst=activeElement=null;break;case"mousedown":mouseDown=!0;break;case"contextmenu":case"mouseup":case"dragend":mouseDown=!1,constructSelectEvent(dispatchQueue,nativeEvent,nativeEventTarget);break;case"selectionchange":if(skipSelectionChangeEvent)break;case"keydown":case"keyup":constructSelectEvent(dispatchQueue,nativeEvent,nativeEventTarget)}var fallbackData;if(canUseCompositionEvent)b:{switch(domEventName){case"compositionstart":var eventType="onCompositionStart";break b;case"compositionend":eventType="onCompositionEnd";break b;case"compositionupdate":eventType="onCompositionUpdate";break b}eventType=void 0}else isComposing?isFallbackCompositionEnd(domEventName,nativeEvent)&&(eventType="onCompositionEnd"):domEventName==="keydown"&&nativeEvent.keyCode===229&&(eventType="onCompositionStart");eventType&&(useFallbackCompositionData&&nativeEvent.locale!=="ko"&&(isComposing||eventType!=="onCompositionStart"?eventType==="onCompositionEnd"&&isComposing&&(fallbackData=getData()):(root2=nativeEventTarget,startText="value"in root2?root2.value:root2.textContent,isComposing=!0)),handleEventFunc=accumulateTwoPhaseListeners(targetInst,eventType),0<handleEventFunc.length&&(eventType=new SyntheticCompositionEvent(eventType,domEventName,null,nativeEvent,nativeEventTarget),dispatchQueue.push({event:eventType,listeners:handleEventFunc}),fallbackData?eventType.data=fallbackData:(fallbackData=getDataFromCustomEvent(nativeEvent),fallbackData!==null&&(eventType.data=fallbackData)))),(fallbackData=canUseTextInputEvent?getNativeBeforeInputChars(domEventName,nativeEvent):getFallbackBeforeInputChars(domEventName,nativeEvent))&&(eventType=accumulateTwoPhaseListeners(targetInst,"onBeforeInput"),0<eventType.length&&(handleEventFunc=new SyntheticCompositionEvent("onBeforeInput","beforeinput",null,nativeEvent,nativeEventTarget),dispatchQueue.push({event:handleEventFunc,listeners:eventType}),handleEventFunc.data=fallbackData)),extractEvents$1(dispatchQueue,domEventName,targetInst,nativeEvent,nativeEventTarget)}processDispatchQueue(dispatchQueue,eventSystemFlags)})}function createDispatchListener(instance,listener,currentTarget){return{instance,listener,currentTarget}}function accumulateTwoPhaseListeners(targetFiber,reactName){for(var captureName=reactName+"Capture",listeners=[];targetFiber!==null;){var _instance2=targetFiber,stateNode=_instance2.stateNode;if(_instance2=_instance2.tag,_instance2!==5&&_instance2!==26&&_instance2!==27||stateNode===null||(_instance2=getListener(targetFiber,captureName),_instance2!=null&&listeners.unshift(createDispatchListener(targetFiber,_instance2,stateNode)),_instance2=getListener(targetFiber,reactName),_instance2!=null&&listeners.push(createDispatchListener(targetFiber,_instance2,stateNode))),targetFiber.tag===3)return listeners;targetFiber=targetFiber.return}return[]}function getParent(inst){if(inst===null)return null;do inst=inst.return;while(inst&&inst.tag!==5&&inst.tag!==27);return inst||null}function accumulateEnterLeaveListenersForEvent(dispatchQueue,event,target,common2,inCapturePhase){for(var registrationName=event._reactName,listeners=[];target!==null&&target!==common2;){var _instance3=target,alternate=_instance3.alternate,stateNode=_instance3.stateNode;if(_instance3=_instance3.tag,alternate!==null&&alternate===common2)break;_instance3!==5&&_instance3!==26&&_instance3!==27||stateNode===null||(alternate=stateNode,inCapturePhase?(stateNode=getListener(target,registrationName),stateNode!=null&&listeners.unshift(createDispatchListener(target,stateNode,alternate))):inCapturePhase||(stateNode=getListener(target,registrationName),stateNode!=null&&listeners.push(createDispatchListener(target,stateNode,alternate)))),target=target.return}listeners.length!==0&&dispatchQueue.push({event,listeners})}var NORMALIZE_NEWLINES_REGEX=/\r\n?/g,NORMALIZE_NULL_AND_REPLACEMENT_REGEX=/\u0000|\uFFFD/g;function normalizeMarkupForTextOrAttribute(markup){return(typeof markup=="string"?markup:""+markup).replace(NORMALIZE_NEWLINES_REGEX,`
|
|
82
|
+
`).replace(NORMALIZE_NULL_AND_REPLACEMENT_REGEX,"")}function checkForUnmatchedText(serverText,clientText){return clientText=normalizeMarkupForTextOrAttribute(clientText),normalizeMarkupForTextOrAttribute(serverText)===clientText}function noop$1(){}function setProp(domElement,tag,key,value,props,prevValue){switch(key){case"children":typeof value=="string"?tag==="body"||tag==="textarea"&&value===""||setTextContent(domElement,value):(typeof value=="number"||typeof value=="bigint")&&tag!=="body"&&setTextContent(domElement,""+value);break;case"className":setValueForKnownAttribute(domElement,"class",value);break;case"tabIndex":setValueForKnownAttribute(domElement,"tabindex",value);break;case"dir":case"role":case"viewBox":case"width":case"height":setValueForKnownAttribute(domElement,key,value);break;case"style":setValueForStyles(domElement,value,prevValue);break;case"data":if(tag!=="object"){setValueForKnownAttribute(domElement,"data",value);break}case"src":case"href":if(value===""&&(tag!=="a"||key!=="href")){domElement.removeAttribute(key);break}if(value==null||typeof value=="function"||typeof value=="symbol"||typeof value=="boolean"){domElement.removeAttribute(key);break}value=sanitizeURL(""+value),domElement.setAttribute(key,value);break;case"action":case"formAction":if(typeof value=="function"){domElement.setAttribute(key,"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 prevValue=="function"&&(key==="formAction"?(tag!=="input"&&setProp(domElement,tag,"name",props.name,props,null),setProp(domElement,tag,"formEncType",props.formEncType,props,null),setProp(domElement,tag,"formMethod",props.formMethod,props,null),setProp(domElement,tag,"formTarget",props.formTarget,props,null)):(setProp(domElement,tag,"encType",props.encType,props,null),setProp(domElement,tag,"method",props.method,props,null),setProp(domElement,tag,"target",props.target,props,null)));if(value==null||typeof value=="symbol"||typeof value=="boolean"){domElement.removeAttribute(key);break}value=sanitizeURL(""+value),domElement.setAttribute(key,value);break;case"onClick":value!=null&&(domElement.onclick=noop$1);break;case"onScroll":value!=null&&listenToNonDelegatedEvent("scroll",domElement);break;case"onScrollEnd":value!=null&&listenToNonDelegatedEvent("scrollend",domElement);break;case"dangerouslySetInnerHTML":if(value!=null){if(typeof value!="object"||!("__html"in value))throw Error(formatProdErrorMessage(61));if(key=value.__html,key!=null){if(props.children!=null)throw Error(formatProdErrorMessage(60));domElement.innerHTML=key}}break;case"multiple":domElement.multiple=value&&typeof value!="function"&&typeof value!="symbol";break;case"muted":domElement.muted=value&&typeof value!="function"&&typeof value!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(value==null||typeof value=="function"||typeof value=="boolean"||typeof value=="symbol"){domElement.removeAttribute("xlink:href");break}key=sanitizeURL(""+value),domElement.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",key);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":value!=null&&typeof value!="function"&&typeof value!="symbol"?domElement.setAttribute(key,""+value):domElement.removeAttribute(key);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":value&&typeof value!="function"&&typeof value!="symbol"?domElement.setAttribute(key,""):domElement.removeAttribute(key);break;case"capture":case"download":value===!0?domElement.setAttribute(key,""):value!==!1&&value!=null&&typeof value!="function"&&typeof value!="symbol"?domElement.setAttribute(key,value):domElement.removeAttribute(key);break;case"cols":case"rows":case"size":case"span":value!=null&&typeof value!="function"&&typeof value!="symbol"&&!isNaN(value)&&1<=value?domElement.setAttribute(key,value):domElement.removeAttribute(key);break;case"rowSpan":case"start":value==null||typeof value=="function"||typeof value=="symbol"||isNaN(value)?domElement.removeAttribute(key):domElement.setAttribute(key,value);break;case"popover":listenToNonDelegatedEvent("beforetoggle",domElement),listenToNonDelegatedEvent("toggle",domElement),setValueForAttribute(domElement,"popover",value);break;case"xlinkActuate":setValueForNamespacedAttribute(domElement,"http://www.w3.org/1999/xlink","xlink:actuate",value);break;case"xlinkArcrole":setValueForNamespacedAttribute(domElement,"http://www.w3.org/1999/xlink","xlink:arcrole",value);break;case"xlinkRole":setValueForNamespacedAttribute(domElement,"http://www.w3.org/1999/xlink","xlink:role",value);break;case"xlinkShow":setValueForNamespacedAttribute(domElement,"http://www.w3.org/1999/xlink","xlink:show",value);break;case"xlinkTitle":setValueForNamespacedAttribute(domElement,"http://www.w3.org/1999/xlink","xlink:title",value);break;case"xlinkType":setValueForNamespacedAttribute(domElement,"http://www.w3.org/1999/xlink","xlink:type",value);break;case"xmlBase":setValueForNamespacedAttribute(domElement,"http://www.w3.org/XML/1998/namespace","xml:base",value);break;case"xmlLang":setValueForNamespacedAttribute(domElement,"http://www.w3.org/XML/1998/namespace","xml:lang",value);break;case"xmlSpace":setValueForNamespacedAttribute(domElement,"http://www.w3.org/XML/1998/namespace","xml:space",value);break;case"is":setValueForAttribute(domElement,"is",value);break;case"innerText":case"textContent":break;default:(!(2<key.length)||key[0]!=="o"&&key[0]!=="O"||key[1]!=="n"&&key[1]!=="N")&&(key=aliases.get(key)||key,setValueForAttribute(domElement,key,value))}}function setPropOnCustomElement(domElement,tag,key,value,props,prevValue){switch(key){case"style":setValueForStyles(domElement,value,prevValue);break;case"dangerouslySetInnerHTML":if(value!=null){if(typeof value!="object"||!("__html"in value))throw Error(formatProdErrorMessage(61));if(key=value.__html,key!=null){if(props.children!=null)throw Error(formatProdErrorMessage(60));domElement.innerHTML=key}}break;case"children":typeof value=="string"?setTextContent(domElement,value):(typeof value=="number"||typeof value=="bigint")&&setTextContent(domElement,""+value);break;case"onScroll":value!=null&&listenToNonDelegatedEvent("scroll",domElement);break;case"onScrollEnd":value!=null&&listenToNonDelegatedEvent("scrollend",domElement);break;case"onClick":value!=null&&(domElement.onclick=noop$1);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!registrationNameDependencies.hasOwnProperty(key))a:{if(key[0]==="o"&&key[1]==="n"&&(props=key.endsWith("Capture"),tag=key.slice(2,props?key.length-7:void 0),prevValue=domElement[internalPropsKey]||null,prevValue=prevValue!=null?prevValue[key]:null,typeof prevValue=="function"&&domElement.removeEventListener(tag,prevValue,props),typeof value=="function")){typeof prevValue!="function"&&prevValue!==null&&(key in domElement?domElement[key]=null:domElement.hasAttribute(key)&&domElement.removeAttribute(key)),domElement.addEventListener(tag,value,props);break a}key in domElement?domElement[key]=value:value===!0?domElement.setAttribute(key,""):setValueForAttribute(domElement,key,value)}}}function setInitialProperties(domElement,tag,props){switch(tag){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":listenToNonDelegatedEvent("error",domElement),listenToNonDelegatedEvent("load",domElement);var hasSrc=!1,hasSrcSet=!1,propKey;for(propKey in props)if(props.hasOwnProperty(propKey)){var propValue=props[propKey];if(propValue!=null)switch(propKey){case"src":hasSrc=!0;break;case"srcSet":hasSrcSet=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(formatProdErrorMessage(137,tag));default:setProp(domElement,tag,propKey,propValue,props,null)}}hasSrcSet&&setProp(domElement,tag,"srcSet",props.srcSet,props,null),hasSrc&&setProp(domElement,tag,"src",props.src,props,null);return;case"input":listenToNonDelegatedEvent("invalid",domElement);var defaultValue=propKey=propValue=hasSrcSet=null,checked=null,defaultChecked=null;for(hasSrc in props)if(props.hasOwnProperty(hasSrc)){var propValue$188=props[hasSrc];if(propValue$188!=null)switch(hasSrc){case"name":hasSrcSet=propValue$188;break;case"type":propValue=propValue$188;break;case"checked":checked=propValue$188;break;case"defaultChecked":defaultChecked=propValue$188;break;case"value":propKey=propValue$188;break;case"defaultValue":defaultValue=propValue$188;break;case"children":case"dangerouslySetInnerHTML":if(propValue$188!=null)throw Error(formatProdErrorMessage(137,tag));break;default:setProp(domElement,tag,hasSrc,propValue$188,props,null)}}initInput(domElement,propKey,defaultValue,checked,defaultChecked,propValue,hasSrcSet,!1),track(domElement);return;case"select":listenToNonDelegatedEvent("invalid",domElement),hasSrc=propValue=propKey=null;for(hasSrcSet in props)if(props.hasOwnProperty(hasSrcSet)&&(defaultValue=props[hasSrcSet],defaultValue!=null))switch(hasSrcSet){case"value":propKey=defaultValue;break;case"defaultValue":propValue=defaultValue;break;case"multiple":hasSrc=defaultValue;default:setProp(domElement,tag,hasSrcSet,defaultValue,props,null)}tag=propKey,props=propValue,domElement.multiple=!!hasSrc,tag!=null?updateOptions(domElement,!!hasSrc,tag,!1):props!=null&&updateOptions(domElement,!!hasSrc,props,!0);return;case"textarea":listenToNonDelegatedEvent("invalid",domElement),propKey=hasSrcSet=hasSrc=null;for(propValue in props)if(props.hasOwnProperty(propValue)&&(defaultValue=props[propValue],defaultValue!=null))switch(propValue){case"value":hasSrc=defaultValue;break;case"defaultValue":hasSrcSet=defaultValue;break;case"children":propKey=defaultValue;break;case"dangerouslySetInnerHTML":if(defaultValue!=null)throw Error(formatProdErrorMessage(91));break;default:setProp(domElement,tag,propValue,defaultValue,props,null)}initTextarea(domElement,hasSrc,hasSrcSet,propKey),track(domElement);return;case"option":for(checked in props)if(props.hasOwnProperty(checked)&&(hasSrc=props[checked],hasSrc!=null))switch(checked){case"selected":domElement.selected=hasSrc&&typeof hasSrc!="function"&&typeof hasSrc!="symbol";break;default:setProp(domElement,tag,checked,hasSrc,props,null)}return;case"dialog":listenToNonDelegatedEvent("beforetoggle",domElement),listenToNonDelegatedEvent("toggle",domElement),listenToNonDelegatedEvent("cancel",domElement),listenToNonDelegatedEvent("close",domElement);break;case"iframe":case"object":listenToNonDelegatedEvent("load",domElement);break;case"video":case"audio":for(hasSrc=0;hasSrc<mediaEventTypes.length;hasSrc++)listenToNonDelegatedEvent(mediaEventTypes[hasSrc],domElement);break;case"image":listenToNonDelegatedEvent("error",domElement),listenToNonDelegatedEvent("load",domElement);break;case"details":listenToNonDelegatedEvent("toggle",domElement);break;case"embed":case"source":case"link":listenToNonDelegatedEvent("error",domElement),listenToNonDelegatedEvent("load",domElement);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(defaultChecked in props)if(props.hasOwnProperty(defaultChecked)&&(hasSrc=props[defaultChecked],hasSrc!=null))switch(defaultChecked){case"children":case"dangerouslySetInnerHTML":throw Error(formatProdErrorMessage(137,tag));default:setProp(domElement,tag,defaultChecked,hasSrc,props,null)}return;default:if(isCustomElement(tag)){for(propValue$188 in props)props.hasOwnProperty(propValue$188)&&(hasSrc=props[propValue$188],hasSrc!==void 0&&setPropOnCustomElement(domElement,tag,propValue$188,hasSrc,props,void 0));return}}for(defaultValue in props)props.hasOwnProperty(defaultValue)&&(hasSrc=props[defaultValue],hasSrc!=null&&setProp(domElement,tag,defaultValue,hasSrc,props,null))}function updateProperties(domElement,tag,lastProps,nextProps){switch(tag){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var name=null,type=null,value=null,defaultValue=null,lastDefaultValue=null,checked=null,defaultChecked=null;for(propKey in lastProps){var lastProp=lastProps[propKey];if(lastProps.hasOwnProperty(propKey)&&lastProp!=null)switch(propKey){case"checked":break;case"value":break;case"defaultValue":lastDefaultValue=lastProp;default:nextProps.hasOwnProperty(propKey)||setProp(domElement,tag,propKey,null,nextProps,lastProp)}}for(var propKey$205 in nextProps){var propKey=nextProps[propKey$205];if(lastProp=lastProps[propKey$205],nextProps.hasOwnProperty(propKey$205)&&(propKey!=null||lastProp!=null))switch(propKey$205){case"type":type=propKey;break;case"name":name=propKey;break;case"checked":checked=propKey;break;case"defaultChecked":defaultChecked=propKey;break;case"value":value=propKey;break;case"defaultValue":defaultValue=propKey;break;case"children":case"dangerouslySetInnerHTML":if(propKey!=null)throw Error(formatProdErrorMessage(137,tag));break;default:propKey!==lastProp&&setProp(domElement,tag,propKey$205,propKey,nextProps,lastProp)}}updateInput(domElement,value,defaultValue,lastDefaultValue,checked,defaultChecked,type,name);return;case"select":propKey=value=defaultValue=propKey$205=null;for(type in lastProps)if(lastDefaultValue=lastProps[type],lastProps.hasOwnProperty(type)&&lastDefaultValue!=null)switch(type){case"value":break;case"multiple":propKey=lastDefaultValue;default:nextProps.hasOwnProperty(type)||setProp(domElement,tag,type,null,nextProps,lastDefaultValue)}for(name in nextProps)if(type=nextProps[name],lastDefaultValue=lastProps[name],nextProps.hasOwnProperty(name)&&(type!=null||lastDefaultValue!=null))switch(name){case"value":propKey$205=type;break;case"defaultValue":defaultValue=type;break;case"multiple":value=type;default:type!==lastDefaultValue&&setProp(domElement,tag,name,type,nextProps,lastDefaultValue)}tag=defaultValue,lastProps=value,nextProps=propKey,propKey$205!=null?updateOptions(domElement,!!lastProps,propKey$205,!1):!!nextProps!=!!lastProps&&(tag!=null?updateOptions(domElement,!!lastProps,tag,!0):updateOptions(domElement,!!lastProps,lastProps?[]:"",!1));return;case"textarea":propKey=propKey$205=null;for(defaultValue in lastProps)if(name=lastProps[defaultValue],lastProps.hasOwnProperty(defaultValue)&&name!=null&&!nextProps.hasOwnProperty(defaultValue))switch(defaultValue){case"value":break;case"children":break;default:setProp(domElement,tag,defaultValue,null,nextProps,name)}for(value in nextProps)if(name=nextProps[value],type=lastProps[value],nextProps.hasOwnProperty(value)&&(name!=null||type!=null))switch(value){case"value":propKey$205=name;break;case"defaultValue":propKey=name;break;case"children":break;case"dangerouslySetInnerHTML":if(name!=null)throw Error(formatProdErrorMessage(91));break;default:name!==type&&setProp(domElement,tag,value,name,nextProps,type)}updateTextarea(domElement,propKey$205,propKey);return;case"option":for(var propKey$221 in lastProps)if(propKey$205=lastProps[propKey$221],lastProps.hasOwnProperty(propKey$221)&&propKey$205!=null&&!nextProps.hasOwnProperty(propKey$221))switch(propKey$221){case"selected":domElement.selected=!1;break;default:setProp(domElement,tag,propKey$221,null,nextProps,propKey$205)}for(lastDefaultValue in nextProps)if(propKey$205=nextProps[lastDefaultValue],propKey=lastProps[lastDefaultValue],nextProps.hasOwnProperty(lastDefaultValue)&&propKey$205!==propKey&&(propKey$205!=null||propKey!=null))switch(lastDefaultValue){case"selected":domElement.selected=propKey$205&&typeof propKey$205!="function"&&typeof propKey$205!="symbol";break;default:setProp(domElement,tag,lastDefaultValue,propKey$205,nextProps,propKey)}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 propKey$226 in lastProps)propKey$205=lastProps[propKey$226],lastProps.hasOwnProperty(propKey$226)&&propKey$205!=null&&!nextProps.hasOwnProperty(propKey$226)&&setProp(domElement,tag,propKey$226,null,nextProps,propKey$205);for(checked in nextProps)if(propKey$205=nextProps[checked],propKey=lastProps[checked],nextProps.hasOwnProperty(checked)&&propKey$205!==propKey&&(propKey$205!=null||propKey!=null))switch(checked){case"children":case"dangerouslySetInnerHTML":if(propKey$205!=null)throw Error(formatProdErrorMessage(137,tag));break;default:setProp(domElement,tag,checked,propKey$205,nextProps,propKey)}return;default:if(isCustomElement(tag)){for(var propKey$231 in lastProps)propKey$205=lastProps[propKey$231],lastProps.hasOwnProperty(propKey$231)&&propKey$205!==void 0&&!nextProps.hasOwnProperty(propKey$231)&&setPropOnCustomElement(domElement,tag,propKey$231,void 0,nextProps,propKey$205);for(defaultChecked in nextProps)propKey$205=nextProps[defaultChecked],propKey=lastProps[defaultChecked],!nextProps.hasOwnProperty(defaultChecked)||propKey$205===propKey||propKey$205===void 0&&propKey===void 0||setPropOnCustomElement(domElement,tag,defaultChecked,propKey$205,nextProps,propKey);return}}for(var propKey$236 in lastProps)propKey$205=lastProps[propKey$236],lastProps.hasOwnProperty(propKey$236)&&propKey$205!=null&&!nextProps.hasOwnProperty(propKey$236)&&setProp(domElement,tag,propKey$236,null,nextProps,propKey$205);for(lastProp in nextProps)propKey$205=nextProps[lastProp],propKey=lastProps[lastProp],!nextProps.hasOwnProperty(lastProp)||propKey$205===propKey||propKey$205==null&&propKey==null||setProp(domElement,tag,lastProp,propKey$205,nextProps,propKey)}var eventsEnabled=null,selectionInformation=null;function getOwnerDocumentFromRootContainer(rootContainerElement){return rootContainerElement.nodeType===9?rootContainerElement:rootContainerElement.ownerDocument}function getOwnHostContext(namespaceURI){switch(namespaceURI){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function getChildHostContextProd(parentNamespace,type){if(parentNamespace===0)switch(type){case"svg":return 1;case"math":return 2;default:return 0}return parentNamespace===1&&type==="foreignObject"?0:parentNamespace}function shouldSetTextContent(type,props){return type==="textarea"||type==="noscript"||typeof props.children=="string"||typeof props.children=="number"||typeof props.children=="bigint"||typeof props.dangerouslySetInnerHTML=="object"&&props.dangerouslySetInnerHTML!==null&&props.dangerouslySetInnerHTML.__html!=null}var currentPopstateTransitionEvent=null;function shouldAttemptEagerTransition(){var event=window.event;return event&&event.type==="popstate"?event===currentPopstateTransitionEvent?!1:(currentPopstateTransitionEvent=event,!0):(currentPopstateTransitionEvent=null,!1)}var scheduleTimeout=typeof setTimeout=="function"?setTimeout:void 0,cancelTimeout=typeof clearTimeout=="function"?clearTimeout:void 0,localPromise=typeof Promise=="function"?Promise:void 0,scheduleMicrotask=typeof queueMicrotask=="function"?queueMicrotask:typeof localPromise<"u"?function(callback){return localPromise.resolve(null).then(callback).catch(handleErrorInNextTick)}:scheduleTimeout;function handleErrorInNextTick(error){setTimeout(function(){throw error})}function isSingletonScope(type){return type==="head"}function clearSuspenseBoundary(parentInstance,suspenseInstance){var node=suspenseInstance,possiblePreambleContribution=0,depth=0;do{var nextNode=node.nextSibling;if(parentInstance.removeChild(node),nextNode&&nextNode.nodeType===8)if(node=nextNode.data,node==="/$"){if(0<possiblePreambleContribution&&8>possiblePreambleContribution){node=possiblePreambleContribution;var ownerDocument=parentInstance.ownerDocument;if(node&1&&releaseSingletonInstance(ownerDocument.documentElement),node&2&&releaseSingletonInstance(ownerDocument.body),node&4)for(node=ownerDocument.head,releaseSingletonInstance(node),ownerDocument=node.firstChild;ownerDocument;){var nextNode$jscomp$0=ownerDocument.nextSibling,nodeName=ownerDocument.nodeName;ownerDocument[internalHoistableMarker]||nodeName==="SCRIPT"||nodeName==="STYLE"||nodeName==="LINK"&&ownerDocument.rel.toLowerCase()==="stylesheet"||node.removeChild(ownerDocument),ownerDocument=nextNode$jscomp$0}}if(depth===0){parentInstance.removeChild(nextNode),retryIfBlockedOn(suspenseInstance);return}depth--}else node==="$"||node==="$?"||node==="$!"?depth++:possiblePreambleContribution=node.charCodeAt(0)-48;else possiblePreambleContribution=0;node=nextNode}while(node);retryIfBlockedOn(suspenseInstance)}function clearContainerSparingly(container){var nextNode=container.firstChild;for(nextNode&&nextNode.nodeType===10&&(nextNode=nextNode.nextSibling);nextNode;){var node=nextNode;switch(nextNode=nextNode.nextSibling,node.nodeName){case"HTML":case"HEAD":case"BODY":clearContainerSparingly(node),detachDeletedInstance(node);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(node.rel.toLowerCase()==="stylesheet")continue}container.removeChild(node)}}function canHydrateInstance(instance,type,props,inRootOrSingleton){for(;instance.nodeType===1;){var anyProps=props;if(instance.nodeName.toLowerCase()!==type.toLowerCase()){if(!inRootOrSingleton&&(instance.nodeName!=="INPUT"||instance.type!=="hidden"))break}else if(inRootOrSingleton){if(!instance[internalHoistableMarker])switch(type){case"meta":if(!instance.hasAttribute("itemprop"))break;return instance;case"link":if(name=instance.getAttribute("rel"),name==="stylesheet"&&instance.hasAttribute("data-precedence")||name!==anyProps.rel||instance.getAttribute("href")!==(anyProps.href==null||anyProps.href===""?null:anyProps.href)||instance.getAttribute("crossorigin")!==(anyProps.crossOrigin==null?null:anyProps.crossOrigin)||instance.getAttribute("title")!==(anyProps.title==null?null:anyProps.title))break;return instance;case"style":if(instance.hasAttribute("data-precedence"))break;return instance;case"script":if(name=instance.getAttribute("src"),(name!==(anyProps.src==null?null:anyProps.src)||instance.getAttribute("type")!==(anyProps.type==null?null:anyProps.type)||instance.getAttribute("crossorigin")!==(anyProps.crossOrigin==null?null:anyProps.crossOrigin))&&name&&instance.hasAttribute("async")&&!instance.hasAttribute("itemprop"))break;return instance;default:return instance}}else if(type==="input"&&instance.type==="hidden"){var name=anyProps.name==null?null:""+anyProps.name;if(anyProps.type==="hidden"&&instance.getAttribute("name")===name)return instance}else return instance;if(instance=getNextHydratable(instance.nextSibling),instance===null)break}return null}function canHydrateTextInstance(instance,text,inRootOrSingleton){if(text==="")return null;for(;instance.nodeType!==3;)if((instance.nodeType!==1||instance.nodeName!=="INPUT"||instance.type!=="hidden")&&!inRootOrSingleton||(instance=getNextHydratable(instance.nextSibling),instance===null))return null;return instance}function isSuspenseInstanceFallback(instance){return instance.data==="$!"||instance.data==="$?"&&instance.ownerDocument.readyState==="complete"}function registerSuspenseInstanceRetry(instance,callback){var ownerDocument=instance.ownerDocument;if(instance.data!=="$?"||ownerDocument.readyState==="complete")callback();else{var listener=function(){callback(),ownerDocument.removeEventListener("DOMContentLoaded",listener)};ownerDocument.addEventListener("DOMContentLoaded",listener),instance._reactRetry=listener}}function getNextHydratable(node){for(;node!=null;node=node.nextSibling){var nodeType=node.nodeType;if(nodeType===1||nodeType===3)break;if(nodeType===8){if(nodeType=node.data,nodeType==="$"||nodeType==="$!"||nodeType==="$?"||nodeType==="F!"||nodeType==="F")break;if(nodeType==="/$")return null}}return node}var previousHydratableOnEnteringScopedSingleton=null;function getParentSuspenseInstance(targetInstance){targetInstance=targetInstance.previousSibling;for(var depth=0;targetInstance;){if(targetInstance.nodeType===8){var data=targetInstance.data;if(data==="$"||data==="$!"||data==="$?"){if(depth===0)return targetInstance;depth--}else data==="/$"&&depth++}targetInstance=targetInstance.previousSibling}return null}function resolveSingletonInstance(type,props,rootContainerInstance){switch(props=getOwnerDocumentFromRootContainer(rootContainerInstance),type){case"html":if(type=props.documentElement,!type)throw Error(formatProdErrorMessage(452));return type;case"head":if(type=props.head,!type)throw Error(formatProdErrorMessage(453));return type;case"body":if(type=props.body,!type)throw Error(formatProdErrorMessage(454));return type;default:throw Error(formatProdErrorMessage(451))}}function releaseSingletonInstance(instance){for(var attributes=instance.attributes;attributes.length;)instance.removeAttributeNode(attributes[0]);detachDeletedInstance(instance)}var preloadPropsMap=new Map,preconnectsSet=new Set;function getHoistableRoot(container){return typeof container.getRootNode=="function"?container.getRootNode():container.nodeType===9?container:container.ownerDocument}var previousDispatcher=ReactDOMSharedInternals.d;ReactDOMSharedInternals.d={f:flushSyncWork,r:requestFormReset,D:prefetchDNS,C:preconnect,L:preload,m:preloadModule,X:preinitScript,S:preinitStyle,M:preinitModuleScript};function flushSyncWork(){var previousWasRendering=previousDispatcher.f(),wasRendering=flushSyncWork$1();return previousWasRendering||wasRendering}function requestFormReset(form2){var formInst=getInstanceFromNode(form2);formInst!==null&&formInst.tag===5&&formInst.type==="form"?requestFormReset$1(formInst):previousDispatcher.r(form2)}var globalDocument=typeof document>"u"?null:document;function preconnectAs(rel,href,crossOrigin){var ownerDocument=globalDocument;if(ownerDocument&&typeof href=="string"&&href){var limitedEscapedHref=escapeSelectorAttributeValueInsideDoubleQuotes(href);limitedEscapedHref='link[rel="'+rel+'"][href="'+limitedEscapedHref+'"]',typeof crossOrigin=="string"&&(limitedEscapedHref+='[crossorigin="'+crossOrigin+'"]'),preconnectsSet.has(limitedEscapedHref)||(preconnectsSet.add(limitedEscapedHref),rel={rel,crossOrigin,href},ownerDocument.querySelector(limitedEscapedHref)===null&&(href=ownerDocument.createElement("link"),setInitialProperties(href,"link",rel),markNodeAsHoistable(href),ownerDocument.head.appendChild(href)))}}function prefetchDNS(href){previousDispatcher.D(href),preconnectAs("dns-prefetch",href,null)}function preconnect(href,crossOrigin){previousDispatcher.C(href,crossOrigin),preconnectAs("preconnect",href,crossOrigin)}function preload(href,as,options2){previousDispatcher.L(href,as,options2);var ownerDocument=globalDocument;if(ownerDocument&&href&&as){var preloadSelector='link[rel="preload"][as="'+escapeSelectorAttributeValueInsideDoubleQuotes(as)+'"]';as==="image"&&options2&&options2.imageSrcSet?(preloadSelector+='[imagesrcset="'+escapeSelectorAttributeValueInsideDoubleQuotes(options2.imageSrcSet)+'"]',typeof options2.imageSizes=="string"&&(preloadSelector+='[imagesizes="'+escapeSelectorAttributeValueInsideDoubleQuotes(options2.imageSizes)+'"]')):preloadSelector+='[href="'+escapeSelectorAttributeValueInsideDoubleQuotes(href)+'"]';var key=preloadSelector;switch(as){case"style":key=getStyleKey(href);break;case"script":key=getScriptKey(href)}preloadPropsMap.has(key)||(href=assign({rel:"preload",href:as==="image"&&options2&&options2.imageSrcSet?void 0:href,as},options2),preloadPropsMap.set(key,href),ownerDocument.querySelector(preloadSelector)!==null||as==="style"&&ownerDocument.querySelector(getStylesheetSelectorFromKey(key))||as==="script"&&ownerDocument.querySelector(getScriptSelectorFromKey(key))||(as=ownerDocument.createElement("link"),setInitialProperties(as,"link",href),markNodeAsHoistable(as),ownerDocument.head.appendChild(as)))}}function preloadModule(href,options2){previousDispatcher.m(href,options2);var ownerDocument=globalDocument;if(ownerDocument&&href){var as=options2&&typeof options2.as=="string"?options2.as:"script",preloadSelector='link[rel="modulepreload"][as="'+escapeSelectorAttributeValueInsideDoubleQuotes(as)+'"][href="'+escapeSelectorAttributeValueInsideDoubleQuotes(href)+'"]',key=preloadSelector;switch(as){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":key=getScriptKey(href)}if(!preloadPropsMap.has(key)&&(href=assign({rel:"modulepreload",href},options2),preloadPropsMap.set(key,href),ownerDocument.querySelector(preloadSelector)===null)){switch(as){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(ownerDocument.querySelector(getScriptSelectorFromKey(key)))return}as=ownerDocument.createElement("link"),setInitialProperties(as,"link",href),markNodeAsHoistable(as),ownerDocument.head.appendChild(as)}}}function preinitStyle(href,precedence,options2){previousDispatcher.S(href,precedence,options2);var ownerDocument=globalDocument;if(ownerDocument&&href){var styles=getResourcesFromRoot(ownerDocument).hoistableStyles,key=getStyleKey(href);precedence=precedence||"default";var resource=styles.get(key);if(!resource){var state={loading:0,preload:null};if(resource=ownerDocument.querySelector(getStylesheetSelectorFromKey(key)))state.loading=5;else{href=assign({rel:"stylesheet",href,"data-precedence":precedence},options2),(options2=preloadPropsMap.get(key))&&adoptPreloadPropsForStylesheet(href,options2);var link=resource=ownerDocument.createElement("link");markNodeAsHoistable(link),setInitialProperties(link,"link",href),link._p=new Promise(function(resolve,reject){link.onload=resolve,link.onerror=reject}),link.addEventListener("load",function(){state.loading|=1}),link.addEventListener("error",function(){state.loading|=2}),state.loading|=4,insertStylesheet(resource,precedence,ownerDocument)}resource={type:"stylesheet",instance:resource,count:1,state},styles.set(key,resource)}}}function preinitScript(src,options2){previousDispatcher.X(src,options2);var ownerDocument=globalDocument;if(ownerDocument&&src){var scripts=getResourcesFromRoot(ownerDocument).hoistableScripts,key=getScriptKey(src),resource=scripts.get(key);resource||(resource=ownerDocument.querySelector(getScriptSelectorFromKey(key)),resource||(src=assign({src,async:!0},options2),(options2=preloadPropsMap.get(key))&&adoptPreloadPropsForScript(src,options2),resource=ownerDocument.createElement("script"),markNodeAsHoistable(resource),setInitialProperties(resource,"link",src),ownerDocument.head.appendChild(resource)),resource={type:"script",instance:resource,count:1,state:null},scripts.set(key,resource))}}function preinitModuleScript(src,options2){previousDispatcher.M(src,options2);var ownerDocument=globalDocument;if(ownerDocument&&src){var scripts=getResourcesFromRoot(ownerDocument).hoistableScripts,key=getScriptKey(src),resource=scripts.get(key);resource||(resource=ownerDocument.querySelector(getScriptSelectorFromKey(key)),resource||(src=assign({src,async:!0,type:"module"},options2),(options2=preloadPropsMap.get(key))&&adoptPreloadPropsForScript(src,options2),resource=ownerDocument.createElement("script"),markNodeAsHoistable(resource),setInitialProperties(resource,"link",src),ownerDocument.head.appendChild(resource)),resource={type:"script",instance:resource,count:1,state:null},scripts.set(key,resource))}}function getResource(type,currentProps,pendingProps,currentResource){var JSCompiler_inline_result=(JSCompiler_inline_result=rootInstanceStackCursor.current)?getHoistableRoot(JSCompiler_inline_result):null;if(!JSCompiler_inline_result)throw Error(formatProdErrorMessage(446));switch(type){case"meta":case"title":return null;case"style":return typeof pendingProps.precedence=="string"&&typeof pendingProps.href=="string"?(currentProps=getStyleKey(pendingProps.href),pendingProps=getResourcesFromRoot(JSCompiler_inline_result).hoistableStyles,currentResource=pendingProps.get(currentProps),currentResource||(currentResource={type:"style",instance:null,count:0,state:null},pendingProps.set(currentProps,currentResource)),currentResource):{type:"void",instance:null,count:0,state:null};case"link":if(pendingProps.rel==="stylesheet"&&typeof pendingProps.href=="string"&&typeof pendingProps.precedence=="string"){type=getStyleKey(pendingProps.href);var styles$244=getResourcesFromRoot(JSCompiler_inline_result).hoistableStyles,resource$245=styles$244.get(type);if(resource$245||(JSCompiler_inline_result=JSCompiler_inline_result.ownerDocument||JSCompiler_inline_result,resource$245={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},styles$244.set(type,resource$245),(styles$244=JSCompiler_inline_result.querySelector(getStylesheetSelectorFromKey(type)))&&!styles$244._p&&(resource$245.instance=styles$244,resource$245.state.loading=5),preloadPropsMap.has(type)||(pendingProps={rel:"preload",as:"style",href:pendingProps.href,crossOrigin:pendingProps.crossOrigin,integrity:pendingProps.integrity,media:pendingProps.media,hrefLang:pendingProps.hrefLang,referrerPolicy:pendingProps.referrerPolicy},preloadPropsMap.set(type,pendingProps),styles$244||preloadStylesheet(JSCompiler_inline_result,type,pendingProps,resource$245.state))),currentProps&¤tResource===null)throw Error(formatProdErrorMessage(528,""));return resource$245}if(currentProps&¤tResource!==null)throw Error(formatProdErrorMessage(529,""));return null;case"script":return currentProps=pendingProps.async,pendingProps=pendingProps.src,typeof pendingProps=="string"&¤tProps&&typeof currentProps!="function"&&typeof currentProps!="symbol"?(currentProps=getScriptKey(pendingProps),pendingProps=getResourcesFromRoot(JSCompiler_inline_result).hoistableScripts,currentResource=pendingProps.get(currentProps),currentResource||(currentResource={type:"script",instance:null,count:0,state:null},pendingProps.set(currentProps,currentResource)),currentResource):{type:"void",instance:null,count:0,state:null};default:throw Error(formatProdErrorMessage(444,type))}}function getStyleKey(href){return'href="'+escapeSelectorAttributeValueInsideDoubleQuotes(href)+'"'}function getStylesheetSelectorFromKey(key){return'link[rel="stylesheet"]['+key+"]"}function stylesheetPropsFromRawProps(rawProps){return assign({},rawProps,{"data-precedence":rawProps.precedence,precedence:null})}function preloadStylesheet(ownerDocument,key,preloadProps,state){ownerDocument.querySelector('link[rel="preload"][as="style"]['+key+"]")?state.loading=1:(key=ownerDocument.createElement("link"),state.preload=key,key.addEventListener("load",function(){return state.loading|=1}),key.addEventListener("error",function(){return state.loading|=2}),setInitialProperties(key,"link",preloadProps),markNodeAsHoistable(key),ownerDocument.head.appendChild(key))}function getScriptKey(src){return'[src="'+escapeSelectorAttributeValueInsideDoubleQuotes(src)+'"]'}function getScriptSelectorFromKey(key){return"script[async]"+key}function acquireResource(hoistableRoot,resource,props){if(resource.count++,resource.instance===null)switch(resource.type){case"style":var instance=hoistableRoot.querySelector('style[data-href~="'+escapeSelectorAttributeValueInsideDoubleQuotes(props.href)+'"]');if(instance)return resource.instance=instance,markNodeAsHoistable(instance),instance;var styleProps=assign({},props,{"data-href":props.href,"data-precedence":props.precedence,href:null,precedence:null});return instance=(hoistableRoot.ownerDocument||hoistableRoot).createElement("style"),markNodeAsHoistable(instance),setInitialProperties(instance,"style",styleProps),insertStylesheet(instance,props.precedence,hoistableRoot),resource.instance=instance;case"stylesheet":styleProps=getStyleKey(props.href);var instance$250=hoistableRoot.querySelector(getStylesheetSelectorFromKey(styleProps));if(instance$250)return resource.state.loading|=4,resource.instance=instance$250,markNodeAsHoistable(instance$250),instance$250;instance=stylesheetPropsFromRawProps(props),(styleProps=preloadPropsMap.get(styleProps))&&adoptPreloadPropsForStylesheet(instance,styleProps),instance$250=(hoistableRoot.ownerDocument||hoistableRoot).createElement("link"),markNodeAsHoistable(instance$250);var linkInstance=instance$250;return linkInstance._p=new Promise(function(resolve,reject){linkInstance.onload=resolve,linkInstance.onerror=reject}),setInitialProperties(instance$250,"link",instance),resource.state.loading|=4,insertStylesheet(instance$250,props.precedence,hoistableRoot),resource.instance=instance$250;case"script":return instance$250=getScriptKey(props.src),(styleProps=hoistableRoot.querySelector(getScriptSelectorFromKey(instance$250)))?(resource.instance=styleProps,markNodeAsHoistable(styleProps),styleProps):(instance=props,(styleProps=preloadPropsMap.get(instance$250))&&(instance=assign({},props),adoptPreloadPropsForScript(instance,styleProps)),hoistableRoot=hoistableRoot.ownerDocument||hoistableRoot,styleProps=hoistableRoot.createElement("script"),markNodeAsHoistable(styleProps),setInitialProperties(styleProps,"link",instance),hoistableRoot.head.appendChild(styleProps),resource.instance=styleProps);case"void":return null;default:throw Error(formatProdErrorMessage(443,resource.type))}else resource.type==="stylesheet"&&(resource.state.loading&4)===0&&(instance=resource.instance,resource.state.loading|=4,insertStylesheet(instance,props.precedence,hoistableRoot));return resource.instance}function insertStylesheet(instance,precedence,root3){for(var nodes=root3.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),last=nodes.length?nodes[nodes.length-1]:null,prior=last,i=0;i<nodes.length;i++){var node=nodes[i];if(node.dataset.precedence===precedence)prior=node;else if(prior!==last)break}prior?prior.parentNode.insertBefore(instance,prior.nextSibling):(precedence=root3.nodeType===9?root3.head:root3,precedence.insertBefore(instance,precedence.firstChild))}function adoptPreloadPropsForStylesheet(stylesheetProps,preloadProps){stylesheetProps.crossOrigin==null&&(stylesheetProps.crossOrigin=preloadProps.crossOrigin),stylesheetProps.referrerPolicy==null&&(stylesheetProps.referrerPolicy=preloadProps.referrerPolicy),stylesheetProps.title==null&&(stylesheetProps.title=preloadProps.title)}function adoptPreloadPropsForScript(scriptProps,preloadProps){scriptProps.crossOrigin==null&&(scriptProps.crossOrigin=preloadProps.crossOrigin),scriptProps.referrerPolicy==null&&(scriptProps.referrerPolicy=preloadProps.referrerPolicy),scriptProps.integrity==null&&(scriptProps.integrity=preloadProps.integrity)}var tagCaches=null;function getHydratableHoistableCache(type,keyAttribute,ownerDocument){if(tagCaches===null){var cache=new Map,caches=tagCaches=new Map;caches.set(ownerDocument,cache)}else caches=tagCaches,cache=caches.get(ownerDocument),cache||(cache=new Map,caches.set(ownerDocument,cache));if(cache.has(type))return cache;for(cache.set(type,null),ownerDocument=ownerDocument.getElementsByTagName(type),caches=0;caches<ownerDocument.length;caches++){var node=ownerDocument[caches];if(!(node[internalHoistableMarker]||node[internalInstanceKey]||type==="link"&&node.getAttribute("rel")==="stylesheet")&&node.namespaceURI!=="http://www.w3.org/2000/svg"){var nodeKey=node.getAttribute(keyAttribute)||"";nodeKey=type+nodeKey;var existing=cache.get(nodeKey);existing?existing.push(node):cache.set(nodeKey,[node])}}return cache}function mountHoistable(hoistableRoot,type,instance){hoistableRoot=hoistableRoot.ownerDocument||hoistableRoot,hoistableRoot.head.insertBefore(instance,type==="title"?hoistableRoot.querySelector("head > title"):null)}function isHostHoistableType(type,props,hostContext){if(hostContext===1||props.itemProp!=null)return!1;switch(type){case"meta":case"title":return!0;case"style":if(typeof props.precedence!="string"||typeof props.href!="string"||props.href==="")break;return!0;case"link":if(typeof props.rel!="string"||typeof props.href!="string"||props.href===""||props.onLoad||props.onError)break;switch(props.rel){case"stylesheet":return type=props.disabled,typeof props.precedence=="string"&&type==null;default:return!0}case"script":if(props.async&&typeof props.async!="function"&&typeof props.async!="symbol"&&!props.onLoad&&!props.onError&&props.src&&typeof props.src=="string")return!0}return!1}function preloadResource(resource){return!(resource.type==="stylesheet"&&(resource.state.loading&3)===0)}var suspendedState=null;function noop(){}function suspendResource(hoistableRoot,resource,props){if(suspendedState===null)throw Error(formatProdErrorMessage(475));var state=suspendedState;if(resource.type==="stylesheet"&&(typeof props.media!="string"||matchMedia(props.media).matches!==!1)&&(resource.state.loading&4)===0){if(resource.instance===null){var key=getStyleKey(props.href),instance=hoistableRoot.querySelector(getStylesheetSelectorFromKey(key));if(instance){hoistableRoot=instance._p,hoistableRoot!==null&&typeof hoistableRoot=="object"&&typeof hoistableRoot.then=="function"&&(state.count++,state=onUnsuspend.bind(state),hoistableRoot.then(state,state)),resource.state.loading|=4,resource.instance=instance,markNodeAsHoistable(instance);return}instance=hoistableRoot.ownerDocument||hoistableRoot,props=stylesheetPropsFromRawProps(props),(key=preloadPropsMap.get(key))&&adoptPreloadPropsForStylesheet(props,key),instance=instance.createElement("link"),markNodeAsHoistable(instance);var linkInstance=instance;linkInstance._p=new Promise(function(resolve,reject){linkInstance.onload=resolve,linkInstance.onerror=reject}),setInitialProperties(instance,"link",props),resource.instance=instance}state.stylesheets===null&&(state.stylesheets=new Map),state.stylesheets.set(resource,hoistableRoot),(hoistableRoot=resource.state.preload)&&(resource.state.loading&3)===0&&(state.count++,resource=onUnsuspend.bind(state),hoistableRoot.addEventListener("load",resource),hoistableRoot.addEventListener("error",resource))}}function waitForCommitToBeReady(){if(suspendedState===null)throw Error(formatProdErrorMessage(475));var state=suspendedState;return state.stylesheets&&state.count===0&&insertSuspendedStylesheets(state,state.stylesheets),0<state.count?function(commit){var stylesheetTimer=setTimeout(function(){if(state.stylesheets&&insertSuspendedStylesheets(state,state.stylesheets),state.unsuspend){var unsuspend=state.unsuspend;state.unsuspend=null,unsuspend()}},6e4);return state.unsuspend=commit,function(){state.unsuspend=null,clearTimeout(stylesheetTimer)}}:null}function onUnsuspend(){if(this.count--,this.count===0){if(this.stylesheets)insertSuspendedStylesheets(this,this.stylesheets);else if(this.unsuspend){var unsuspend=this.unsuspend;this.unsuspend=null,unsuspend()}}}var precedencesByRoot=null;function insertSuspendedStylesheets(state,resources){state.stylesheets=null,state.unsuspend!==null&&(state.count++,precedencesByRoot=new Map,resources.forEach(insertStylesheetIntoRoot,state),precedencesByRoot=null,onUnsuspend.call(state))}function insertStylesheetIntoRoot(root3,resource){if(!(resource.state.loading&4)){var precedences=precedencesByRoot.get(root3);if(precedences)var last=precedences.get(null);else{precedences=new Map,precedencesByRoot.set(root3,precedences);for(var nodes=root3.querySelectorAll("link[data-precedence],style[data-precedence]"),i=0;i<nodes.length;i++){var node=nodes[i];(node.nodeName==="LINK"||node.getAttribute("media")!=="not all")&&(precedences.set(node.dataset.precedence,node),last=node)}last&&precedences.set(null,last)}nodes=resource.instance,node=nodes.getAttribute("data-precedence"),i=precedences.get(node)||last,i===last&&precedences.set(null,nodes),precedences.set(node,nodes),this.count++,last=onUnsuspend.bind(this),nodes.addEventListener("load",last),nodes.addEventListener("error",last),i?i.parentNode.insertBefore(nodes,i.nextSibling):(root3=root3.nodeType===9?root3.head:root3,root3.insertBefore(nodes,root3.firstChild)),resource.state.loading|=4}}var HostTransitionContext={$$typeof:REACT_CONTEXT_TYPE,Provider:null,Consumer:null,_currentValue:sharedNotPendingObject,_currentValue2:sharedNotPendingObject,_threadCount:0};function FiberRootNode(containerInfo,tag,hydrate,identifierPrefix,onUncaughtError,onCaughtError,onRecoverableError,formState){this.tag=1,this.containerInfo=containerInfo,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=createLaneMap(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=createLaneMap(0),this.hiddenUpdates=createLaneMap(null),this.identifierPrefix=identifierPrefix,this.onUncaughtError=onUncaughtError,this.onCaughtError=onCaughtError,this.onRecoverableError=onRecoverableError,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=formState,this.incompleteTransitions=new Map}function createFiberRoot(containerInfo,tag,hydrate,initialChildren,hydrationCallbacks,isStrictMode,identifierPrefix,onUncaughtError,onCaughtError,onRecoverableError,transitionCallbacks,formState){return containerInfo=new FiberRootNode(containerInfo,tag,hydrate,identifierPrefix,onUncaughtError,onCaughtError,onRecoverableError,formState),tag=1,isStrictMode===!0&&(tag|=24),isStrictMode=createFiberImplClass(3,null,null,tag),containerInfo.current=isStrictMode,isStrictMode.stateNode=containerInfo,tag=createCache(),tag.refCount++,containerInfo.pooledCache=tag,tag.refCount++,isStrictMode.memoizedState={element:initialChildren,isDehydrated:hydrate,cache:tag},initializeUpdateQueue(isStrictMode),containerInfo}function getContextForSubtree(parentComponent){return parentComponent?(parentComponent=emptyContextObject,parentComponent):emptyContextObject}function updateContainerImpl(rootFiber,lane,element,container,parentComponent,callback){parentComponent=getContextForSubtree(parentComponent),container.context===null?container.context=parentComponent:container.pendingContext=parentComponent,container=createUpdate(lane),container.payload={element},callback=callback===void 0?null:callback,callback!==null&&(container.callback=callback),element=enqueueUpdate(rootFiber,container,lane),element!==null&&(scheduleUpdateOnFiber(element,rootFiber,lane),entangleTransitions(element,rootFiber,lane))}function markRetryLaneImpl(fiber,retryLane){if(fiber=fiber.memoizedState,fiber!==null&&fiber.dehydrated!==null){var a2=fiber.retryLane;fiber.retryLane=a2!==0&&a2<retryLane?a2:retryLane}}function markRetryLaneIfNotHydrated(fiber,retryLane){markRetryLaneImpl(fiber,retryLane),(fiber=fiber.alternate)&&markRetryLaneImpl(fiber,retryLane)}function attemptContinuousHydration(fiber){if(fiber.tag===13){var root3=enqueueConcurrentRenderForLane(fiber,67108864);root3!==null&&scheduleUpdateOnFiber(root3,fiber,67108864),markRetryLaneIfNotHydrated(fiber,67108864)}}var _enabled=!0;function dispatchDiscreteEvent(domEventName,eventSystemFlags,container,nativeEvent){var prevTransition=ReactSharedInternals.T;ReactSharedInternals.T=null;var previousPriority=ReactDOMSharedInternals.p;try{ReactDOMSharedInternals.p=2,dispatchEvent(domEventName,eventSystemFlags,container,nativeEvent)}finally{ReactDOMSharedInternals.p=previousPriority,ReactSharedInternals.T=prevTransition}}function dispatchContinuousEvent(domEventName,eventSystemFlags,container,nativeEvent){var prevTransition=ReactSharedInternals.T;ReactSharedInternals.T=null;var previousPriority=ReactDOMSharedInternals.p;try{ReactDOMSharedInternals.p=8,dispatchEvent(domEventName,eventSystemFlags,container,nativeEvent)}finally{ReactDOMSharedInternals.p=previousPriority,ReactSharedInternals.T=prevTransition}}function dispatchEvent(domEventName,eventSystemFlags,targetContainer,nativeEvent){if(_enabled){var blockedOn=findInstanceBlockingEvent(nativeEvent);if(blockedOn===null)dispatchEventForPluginEventSystem(domEventName,eventSystemFlags,nativeEvent,return_targetInst,targetContainer),clearIfContinuousEvent(domEventName,nativeEvent);else if(queueIfContinuousEvent(blockedOn,domEventName,eventSystemFlags,targetContainer,nativeEvent))nativeEvent.stopPropagation();else if(clearIfContinuousEvent(domEventName,nativeEvent),eventSystemFlags&4&&-1<discreteReplayableEvents.indexOf(domEventName)){for(;blockedOn!==null;){var fiber=getInstanceFromNode(blockedOn);if(fiber!==null)switch(fiber.tag){case 3:if(fiber=fiber.stateNode,fiber.current.memoizedState.isDehydrated){var lanes=getHighestPriorityLanes(fiber.pendingLanes);if(lanes!==0){var root3=fiber;for(root3.pendingLanes|=2,root3.entangledLanes|=2;lanes;){var lane=1<<31-clz32(lanes);root3.entanglements[1]|=lane,lanes&=~lane}ensureRootIsScheduled(fiber),(executionContext&6)===0&&(workInProgressRootRenderTargetTime=now()+500,flushSyncWorkAcrossRoots_impl(0))}}break;case 13:root3=enqueueConcurrentRenderForLane(fiber,2),root3!==null&&scheduleUpdateOnFiber(root3,fiber,2),flushSyncWork$1(),markRetryLaneIfNotHydrated(fiber,2)}if(fiber=findInstanceBlockingEvent(nativeEvent),fiber===null&&dispatchEventForPluginEventSystem(domEventName,eventSystemFlags,nativeEvent,return_targetInst,targetContainer),fiber===blockedOn)break;blockedOn=fiber}blockedOn!==null&&nativeEvent.stopPropagation()}else dispatchEventForPluginEventSystem(domEventName,eventSystemFlags,nativeEvent,null,targetContainer)}}function findInstanceBlockingEvent(nativeEvent){return nativeEvent=getEventTarget(nativeEvent),findInstanceBlockingTarget(nativeEvent)}var return_targetInst=null;function findInstanceBlockingTarget(targetNode){if(return_targetInst=null,targetNode=getClosestInstanceFromNode(targetNode),targetNode!==null){var nearestMounted=getNearestMountedFiber(targetNode);if(nearestMounted===null)targetNode=null;else{var tag=nearestMounted.tag;if(tag===13){if(targetNode=getSuspenseInstanceFromFiber(nearestMounted),targetNode!==null)return targetNode;targetNode=null}else if(tag===3){if(nearestMounted.stateNode.current.memoizedState.isDehydrated)return nearestMounted.tag===3?nearestMounted.stateNode.containerInfo:null;targetNode=null}else nearestMounted!==targetNode&&(targetNode=null)}}return return_targetInst=targetNode,null}function getEventPriority(domEventName){switch(domEventName){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(getCurrentPriorityLevel()){case ImmediatePriority:return 2;case UserBlockingPriority:return 8;case NormalPriority$1:case LowPriority:return 32;case IdlePriority:return 268435456;default:return 32}default:return 32}}var hasScheduledReplayAttempt=!1,queuedFocus=null,queuedDrag=null,queuedMouse=null,queuedPointers=new Map,queuedPointerCaptures=new Map,queuedExplicitHydrationTargets=[],discreteReplayableEvents="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 clearIfContinuousEvent(domEventName,nativeEvent){switch(domEventName){case"focusin":case"focusout":queuedFocus=null;break;case"dragenter":case"dragleave":queuedDrag=null;break;case"mouseover":case"mouseout":queuedMouse=null;break;case"pointerover":case"pointerout":queuedPointers.delete(nativeEvent.pointerId);break;case"gotpointercapture":case"lostpointercapture":queuedPointerCaptures.delete(nativeEvent.pointerId)}}function accumulateOrCreateContinuousQueuedReplayableEvent(existingQueuedEvent,blockedOn,domEventName,eventSystemFlags,targetContainer,nativeEvent){return existingQueuedEvent===null||existingQueuedEvent.nativeEvent!==nativeEvent?(existingQueuedEvent={blockedOn,domEventName,eventSystemFlags,nativeEvent,targetContainers:[targetContainer]},blockedOn!==null&&(blockedOn=getInstanceFromNode(blockedOn),blockedOn!==null&&attemptContinuousHydration(blockedOn)),existingQueuedEvent):(existingQueuedEvent.eventSystemFlags|=eventSystemFlags,blockedOn=existingQueuedEvent.targetContainers,targetContainer!==null&&blockedOn.indexOf(targetContainer)===-1&&blockedOn.push(targetContainer),existingQueuedEvent)}function queueIfContinuousEvent(blockedOn,domEventName,eventSystemFlags,targetContainer,nativeEvent){switch(domEventName){case"focusin":return queuedFocus=accumulateOrCreateContinuousQueuedReplayableEvent(queuedFocus,blockedOn,domEventName,eventSystemFlags,targetContainer,nativeEvent),!0;case"dragenter":return queuedDrag=accumulateOrCreateContinuousQueuedReplayableEvent(queuedDrag,blockedOn,domEventName,eventSystemFlags,targetContainer,nativeEvent),!0;case"mouseover":return queuedMouse=accumulateOrCreateContinuousQueuedReplayableEvent(queuedMouse,blockedOn,domEventName,eventSystemFlags,targetContainer,nativeEvent),!0;case"pointerover":var pointerId=nativeEvent.pointerId;return queuedPointers.set(pointerId,accumulateOrCreateContinuousQueuedReplayableEvent(queuedPointers.get(pointerId)||null,blockedOn,domEventName,eventSystemFlags,targetContainer,nativeEvent)),!0;case"gotpointercapture":return pointerId=nativeEvent.pointerId,queuedPointerCaptures.set(pointerId,accumulateOrCreateContinuousQueuedReplayableEvent(queuedPointerCaptures.get(pointerId)||null,blockedOn,domEventName,eventSystemFlags,targetContainer,nativeEvent)),!0}return!1}function attemptExplicitHydrationTarget(queuedTarget){var targetInst=getClosestInstanceFromNode(queuedTarget.target);if(targetInst!==null){var nearestMounted=getNearestMountedFiber(targetInst);if(nearestMounted!==null){if(targetInst=nearestMounted.tag,targetInst===13){if(targetInst=getSuspenseInstanceFromFiber(nearestMounted),targetInst!==null){queuedTarget.blockedOn=targetInst,runWithPriority(queuedTarget.priority,function(){if(nearestMounted.tag===13){var lane=requestUpdateLane();lane=getBumpedLaneForHydrationByLane(lane);var root3=enqueueConcurrentRenderForLane(nearestMounted,lane);root3!==null&&scheduleUpdateOnFiber(root3,nearestMounted,lane),markRetryLaneIfNotHydrated(nearestMounted,lane)}});return}}else if(targetInst===3&&nearestMounted.stateNode.current.memoizedState.isDehydrated){queuedTarget.blockedOn=nearestMounted.tag===3?nearestMounted.stateNode.containerInfo:null;return}}}queuedTarget.blockedOn=null}function attemptReplayContinuousQueuedEvent(queuedEvent){if(queuedEvent.blockedOn!==null)return!1;for(var targetContainers=queuedEvent.targetContainers;0<targetContainers.length;){var nextBlockedOn=findInstanceBlockingEvent(queuedEvent.nativeEvent);if(nextBlockedOn===null){nextBlockedOn=queuedEvent.nativeEvent;var nativeEventClone=new nextBlockedOn.constructor(nextBlockedOn.type,nextBlockedOn);currentReplayingEvent=nativeEventClone,nextBlockedOn.target.dispatchEvent(nativeEventClone),currentReplayingEvent=null}else return targetContainers=getInstanceFromNode(nextBlockedOn),targetContainers!==null&&attemptContinuousHydration(targetContainers),queuedEvent.blockedOn=nextBlockedOn,!1;targetContainers.shift()}return!0}function attemptReplayContinuousQueuedEventInMap(queuedEvent,key,map){attemptReplayContinuousQueuedEvent(queuedEvent)&&map.delete(key)}function replayUnblockedEvents(){hasScheduledReplayAttempt=!1,queuedFocus!==null&&attemptReplayContinuousQueuedEvent(queuedFocus)&&(queuedFocus=null),queuedDrag!==null&&attemptReplayContinuousQueuedEvent(queuedDrag)&&(queuedDrag=null),queuedMouse!==null&&attemptReplayContinuousQueuedEvent(queuedMouse)&&(queuedMouse=null),queuedPointers.forEach(attemptReplayContinuousQueuedEventInMap),queuedPointerCaptures.forEach(attemptReplayContinuousQueuedEventInMap)}function scheduleCallbackIfUnblocked(queuedEvent,unblocked){queuedEvent.blockedOn===unblocked&&(queuedEvent.blockedOn=null,hasScheduledReplayAttempt||(hasScheduledReplayAttempt=!0,Scheduler.unstable_scheduleCallback(Scheduler.unstable_NormalPriority,replayUnblockedEvents)))}var lastScheduledReplayQueue=null;function scheduleReplayQueueIfNeeded(formReplayingQueue){lastScheduledReplayQueue!==formReplayingQueue&&(lastScheduledReplayQueue=formReplayingQueue,Scheduler.unstable_scheduleCallback(Scheduler.unstable_NormalPriority,function(){lastScheduledReplayQueue===formReplayingQueue&&(lastScheduledReplayQueue=null);for(var i=0;i<formReplayingQueue.length;i+=3){var form2=formReplayingQueue[i],submitterOrAction=formReplayingQueue[i+1],formData=formReplayingQueue[i+2];if(typeof submitterOrAction!="function"){if(findInstanceBlockingTarget(submitterOrAction||form2)===null)continue;break}var formInst=getInstanceFromNode(form2);formInst!==null&&(formReplayingQueue.splice(i,3),i-=3,startHostTransition(formInst,{pending:!0,data:formData,method:form2.method,action:submitterOrAction},submitterOrAction,formData))}}))}function retryIfBlockedOn(unblocked){function unblock(queuedEvent){return scheduleCallbackIfUnblocked(queuedEvent,unblocked)}queuedFocus!==null&&scheduleCallbackIfUnblocked(queuedFocus,unblocked),queuedDrag!==null&&scheduleCallbackIfUnblocked(queuedDrag,unblocked),queuedMouse!==null&&scheduleCallbackIfUnblocked(queuedMouse,unblocked),queuedPointers.forEach(unblock),queuedPointerCaptures.forEach(unblock);for(var i=0;i<queuedExplicitHydrationTargets.length;i++){var queuedTarget=queuedExplicitHydrationTargets[i];queuedTarget.blockedOn===unblocked&&(queuedTarget.blockedOn=null)}for(;0<queuedExplicitHydrationTargets.length&&(i=queuedExplicitHydrationTargets[0],i.blockedOn===null);)attemptExplicitHydrationTarget(i),i.blockedOn===null&&queuedExplicitHydrationTargets.shift();if(i=(unblocked.ownerDocument||unblocked).$$reactFormReplay,i!=null)for(queuedTarget=0;queuedTarget<i.length;queuedTarget+=3){var form2=i[queuedTarget],submitterOrAction=i[queuedTarget+1],formProps=form2[internalPropsKey]||null;if(typeof submitterOrAction=="function")formProps||scheduleReplayQueueIfNeeded(i);else if(formProps){var action=null;if(submitterOrAction&&submitterOrAction.hasAttribute("formAction")){if(form2=submitterOrAction,formProps=submitterOrAction[internalPropsKey]||null)action=formProps.formAction;else if(findInstanceBlockingTarget(form2)!==null)continue}else action=formProps.action;typeof action=="function"?i[queuedTarget+1]=action:(i.splice(queuedTarget,3),queuedTarget-=3),scheduleReplayQueueIfNeeded(i)}}}function ReactDOMRoot(internalRoot){this._internalRoot=internalRoot}ReactDOMHydrationRoot.prototype.render=ReactDOMRoot.prototype.render=function(children){var root3=this._internalRoot;if(root3===null)throw Error(formatProdErrorMessage(409));var current=root3.current,lane=requestUpdateLane();updateContainerImpl(current,lane,children,root3,null,null)},ReactDOMHydrationRoot.prototype.unmount=ReactDOMRoot.prototype.unmount=function(){var root3=this._internalRoot;if(root3!==null){this._internalRoot=null;var container=root3.containerInfo;updateContainerImpl(root3.current,2,null,root3,null,null),flushSyncWork$1(),container[internalContainerInstanceKey]=null}};function ReactDOMHydrationRoot(internalRoot){this._internalRoot=internalRoot}ReactDOMHydrationRoot.prototype.unstable_scheduleHydration=function(target){if(target){var updatePriority=resolveUpdatePriority();target={blockedOn:null,target,priority:updatePriority};for(var i=0;i<queuedExplicitHydrationTargets.length&&updatePriority!==0&&updatePriority<queuedExplicitHydrationTargets[i].priority;i++);queuedExplicitHydrationTargets.splice(i,0,target),i===0&&attemptExplicitHydrationTarget(target)}};var isomorphicReactPackageVersion$jscomp$inline_1785=React2.version;if(isomorphicReactPackageVersion$jscomp$inline_1785!=="19.1.0")throw Error(formatProdErrorMessage(527,isomorphicReactPackageVersion$jscomp$inline_1785,"19.1.0"));ReactDOMSharedInternals.findDOMNode=function(componentOrElement){var fiber=componentOrElement._reactInternals;if(fiber===void 0)throw typeof componentOrElement.render=="function"?Error(formatProdErrorMessage(188)):(componentOrElement=Object.keys(componentOrElement).join(","),Error(formatProdErrorMessage(268,componentOrElement)));return componentOrElement=findCurrentFiberUsingSlowPath(fiber),componentOrElement=componentOrElement!==null?findCurrentHostFiberImpl(componentOrElement):null,componentOrElement=componentOrElement===null?null:componentOrElement.stateNode,componentOrElement};var internals$jscomp$inline_2256={bundleType:0,version:"19.1.0",rendererPackageName:"react-dom",currentDispatcherRef:ReactSharedInternals,reconcilerVersion:"19.1.0"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var hook$jscomp$inline_2257=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!hook$jscomp$inline_2257.isDisabled&&hook$jscomp$inline_2257.supportsFiber)try{rendererID=hook$jscomp$inline_2257.inject(internals$jscomp$inline_2256),injectedHook=hook$jscomp$inline_2257}catch{}}return reactDomClient_production.createRoot=function(container,options2){if(!isValidContainer(container))throw Error(formatProdErrorMessage(299));var isStrictMode=!1,identifierPrefix="",onUncaughtError=defaultOnUncaughtError,onCaughtError=defaultOnCaughtError,onRecoverableError=defaultOnRecoverableError,transitionCallbacks=null;return options2!=null&&(options2.unstable_strictMode===!0&&(isStrictMode=!0),options2.identifierPrefix!==void 0&&(identifierPrefix=options2.identifierPrefix),options2.onUncaughtError!==void 0&&(onUncaughtError=options2.onUncaughtError),options2.onCaughtError!==void 0&&(onCaughtError=options2.onCaughtError),options2.onRecoverableError!==void 0&&(onRecoverableError=options2.onRecoverableError),options2.unstable_transitionCallbacks!==void 0&&(transitionCallbacks=options2.unstable_transitionCallbacks)),options2=createFiberRoot(container,1,!1,null,null,isStrictMode,identifierPrefix,onUncaughtError,onCaughtError,onRecoverableError,transitionCallbacks,null),container[internalContainerInstanceKey]=options2.current,listenToAllSupportedEvents(container),new ReactDOMRoot(options2)},reactDomClient_production.hydrateRoot=function(container,initialChildren,options2){if(!isValidContainer(container))throw Error(formatProdErrorMessage(299));var isStrictMode=!1,identifierPrefix="",onUncaughtError=defaultOnUncaughtError,onCaughtError=defaultOnCaughtError,onRecoverableError=defaultOnRecoverableError,transitionCallbacks=null,formState=null;return options2!=null&&(options2.unstable_strictMode===!0&&(isStrictMode=!0),options2.identifierPrefix!==void 0&&(identifierPrefix=options2.identifierPrefix),options2.onUncaughtError!==void 0&&(onUncaughtError=options2.onUncaughtError),options2.onCaughtError!==void 0&&(onCaughtError=options2.onCaughtError),options2.onRecoverableError!==void 0&&(onRecoverableError=options2.onRecoverableError),options2.unstable_transitionCallbacks!==void 0&&(transitionCallbacks=options2.unstable_transitionCallbacks),options2.formState!==void 0&&(formState=options2.formState)),initialChildren=createFiberRoot(container,1,!0,initialChildren,options2??null,isStrictMode,identifierPrefix,onUncaughtError,onCaughtError,onRecoverableError,transitionCallbacks,formState),initialChildren.context=getContextForSubtree(null),options2=initialChildren.current,isStrictMode=requestUpdateLane(),isStrictMode=getBumpedLaneForHydrationByLane(isStrictMode),identifierPrefix=createUpdate(isStrictMode),identifierPrefix.callback=null,enqueueUpdate(options2,identifierPrefix,isStrictMode),options2=isStrictMode,initialChildren.current.lanes=options2,markRootUpdated$1(initialChildren,options2),ensureRootIsScheduled(initialChildren),container[internalContainerInstanceKey]=initialChildren.current,listenToAllSupportedEvents(container),new ReactDOMHydrationRoot(initialChildren)},reactDomClient_production.version="19.1.0",reactDomClient_production}var reactDomClient_development={};/**
|
|
83
|
+
* @license React
|
|
84
|
+
* react-dom-client.development.js
|
|
85
|
+
*
|
|
86
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
87
|
+
*
|
|
88
|
+
* This source code is licensed under the MIT license found in the
|
|
89
|
+
* LICENSE file in the root directory of this source tree.
|
|
90
|
+
*/var hasRequiredReactDomClient_development;function requireReactDomClient_development(){return hasRequiredReactDomClient_development||(hasRequiredReactDomClient_development=1,process.env.NODE_ENV!=="production"&&function(){function findHook(fiber,id){for(fiber=fiber.memoizedState;fiber!==null&&0<id;)fiber=fiber.next,id--;return fiber}function copyWithSetImpl(obj,path2,index,value){if(index>=path2.length)return value;var key=path2[index],updated=isArrayImpl(obj)?obj.slice():assign({},obj);return updated[key]=copyWithSetImpl(obj[key],path2,index+1,value),updated}function copyWithRename(obj,oldPath,newPath){if(oldPath.length!==newPath.length)console.warn("copyWithRename() expects paths of the same length");else{for(var i=0;i<newPath.length-1;i++)if(oldPath[i]!==newPath[i]){console.warn("copyWithRename() expects paths to be the same except for the deepest key");return}return copyWithRenameImpl(obj,oldPath,newPath,0)}}function copyWithRenameImpl(obj,oldPath,newPath,index){var oldKey=oldPath[index],updated=isArrayImpl(obj)?obj.slice():assign({},obj);return index+1===oldPath.length?(updated[newPath[index]]=updated[oldKey],isArrayImpl(updated)?updated.splice(oldKey,1):delete updated[oldKey]):updated[oldKey]=copyWithRenameImpl(obj[oldKey],oldPath,newPath,index+1),updated}function copyWithDeleteImpl(obj,path2,index){var key=path2[index],updated=isArrayImpl(obj)?obj.slice():assign({},obj);return index+1===path2.length?(isArrayImpl(updated)?updated.splice(key,1):delete updated[key],updated):(updated[key]=copyWithDeleteImpl(obj[key],path2,index+1),updated)}function shouldSuspendImpl(){return!1}function shouldErrorImpl(){return null}function warnForMissingKey(){}function warnInvalidHookAccess(){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 warnInvalidContextAccess(){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 noop$2(){}function setToSortedString(set){var array=[];return set.forEach(function(value){array.push(value)}),array.sort().join(", ")}function createFiber(tag,pendingProps,key,mode){return new FiberNode(tag,pendingProps,key,mode)}function scheduleRoot(root3,element){root3.context===emptyContextObject&&(updateContainerImpl(root3.current,2,element,root3,null,null),flushSyncWork$1())}function scheduleRefresh(root3,update){if(resolveFamily!==null){var staleFamilies=update.staleFamilies;update=update.updatedFamilies,flushPendingEffects(),scheduleFibersWithFamiliesRecursively(root3.current,update,staleFamilies),flushSyncWork$1()}}function setRefreshHandler(handler){resolveFamily=handler}function isValidContainer(node){return!(!node||node.nodeType!==1&&node.nodeType!==9&&node.nodeType!==11)}function getNearestMountedFiber(fiber){var node=fiber,nearestMounted=fiber;if(fiber.alternate)for(;node.return;)node=node.return;else{fiber=node;do node=fiber,(node.flags&4098)!==0&&(nearestMounted=node.return),fiber=node.return;while(fiber)}return node.tag===3?nearestMounted:null}function getSuspenseInstanceFromFiber(fiber){if(fiber.tag===13){var suspenseState=fiber.memoizedState;if(suspenseState===null&&(fiber=fiber.alternate,fiber!==null&&(suspenseState=fiber.memoizedState)),suspenseState!==null)return suspenseState.dehydrated}return null}function assertIsMounted(fiber){if(getNearestMountedFiber(fiber)!==fiber)throw Error("Unable to find node on an unmounted component.")}function findCurrentFiberUsingSlowPath(fiber){var alternate=fiber.alternate;if(!alternate){if(alternate=getNearestMountedFiber(fiber),alternate===null)throw Error("Unable to find node on an unmounted component.");return alternate!==fiber?null:fiber}for(var a2=fiber,b=alternate;;){var parentA=a2.return;if(parentA===null)break;var parentB=parentA.alternate;if(parentB===null){if(b=parentA.return,b!==null){a2=b;continue}break}if(parentA.child===parentB.child){for(parentB=parentA.child;parentB;){if(parentB===a2)return assertIsMounted(parentA),fiber;if(parentB===b)return assertIsMounted(parentA),alternate;parentB=parentB.sibling}throw Error("Unable to find node on an unmounted component.")}if(a2.return!==b.return)a2=parentA,b=parentB;else{for(var didFindChild=!1,_child=parentA.child;_child;){if(_child===a2){didFindChild=!0,a2=parentA,b=parentB;break}if(_child===b){didFindChild=!0,b=parentA,a2=parentB;break}_child=_child.sibling}if(!didFindChild){for(_child=parentB.child;_child;){if(_child===a2){didFindChild=!0,a2=parentB,b=parentA;break}if(_child===b){didFindChild=!0,b=parentB,a2=parentA;break}_child=_child.sibling}if(!didFindChild)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(a2.alternate!==b)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(a2.tag!==3)throw Error("Unable to find node on an unmounted component.");return a2.stateNode.current===a2?fiber:alternate}function findCurrentHostFiberImpl(node){var tag=node.tag;if(tag===5||tag===26||tag===27||tag===6)return node;for(node=node.child;node!==null;){if(tag=findCurrentHostFiberImpl(node),tag!==null)return tag;node=node.sibling}return null}function getIteratorFn(maybeIterable){return maybeIterable===null||typeof maybeIterable!="object"?null:(maybeIterable=MAYBE_ITERATOR_SYMBOL&&maybeIterable[MAYBE_ITERATOR_SYMBOL]||maybeIterable["@@iterator"],typeof maybeIterable=="function"?maybeIterable:null)}function getComponentNameFromType(type){if(type==null)return null;if(typeof type=="function")return type.$$typeof===REACT_CLIENT_REFERENCE?null:type.displayName||type.name||null;if(typeof type=="string")return type;switch(type){case REACT_FRAGMENT_TYPE:return"Fragment";case REACT_PROFILER_TYPE:return"Profiler";case REACT_STRICT_MODE_TYPE:return"StrictMode";case REACT_SUSPENSE_TYPE:return"Suspense";case REACT_SUSPENSE_LIST_TYPE:return"SuspenseList";case REACT_ACTIVITY_TYPE:return"Activity"}if(typeof type=="object")switch(typeof type.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),type.$$typeof){case REACT_PORTAL_TYPE:return"Portal";case REACT_CONTEXT_TYPE:return(type.displayName||"Context")+".Provider";case REACT_CONSUMER_TYPE:return(type._context.displayName||"Context")+".Consumer";case REACT_FORWARD_REF_TYPE:var innerType=type.render;return type=type.displayName,type||(type=innerType.displayName||innerType.name||"",type=type!==""?"ForwardRef("+type+")":"ForwardRef"),type;case REACT_MEMO_TYPE:return innerType=type.displayName||null,innerType!==null?innerType:getComponentNameFromType(type.type)||"Memo";case REACT_LAZY_TYPE:innerType=type._payload,type=type._init;try{return getComponentNameFromType(type(innerType))}catch{}}return null}function getComponentNameFromOwner(owner){return typeof owner.tag=="number"?getComponentNameFromFiber(owner):typeof owner.name=="string"?owner.name:null}function getComponentNameFromFiber(fiber){var type=fiber.type;switch(fiber.tag){case 31:return"Activity";case 24:return"Cache";case 9:return(type._context.displayName||"Context")+".Consumer";case 10:return(type.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return fiber=type.render,fiber=fiber.displayName||fiber.name||"",type.displayName||(fiber!==""?"ForwardRef("+fiber+")":"ForwardRef");case 7:return"Fragment";case 26:case 27:case 5:return type;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return getComponentNameFromType(type);case 8:return type===REACT_STRICT_MODE_TYPE?"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 type=="function")return type.displayName||type.name||null;if(typeof type=="string")return type;break;case 29:if(type=fiber._debugInfo,type!=null){for(var i=type.length-1;0<=i;i--)if(typeof type[i].name=="string")return type[i].name}if(fiber.return!==null)return getComponentNameFromFiber(fiber.return)}return null}function createCursor(defaultValue){return{current:defaultValue}}function pop(cursor,fiber){0>index$jscomp$0?console.error("Unexpected pop."):(fiber!==fiberStack[index$jscomp$0]&&console.error("Unexpected Fiber popped."),cursor.current=valueStack[index$jscomp$0],valueStack[index$jscomp$0]=null,fiberStack[index$jscomp$0]=null,index$jscomp$0--)}function push(cursor,value,fiber){index$jscomp$0++,valueStack[index$jscomp$0]=cursor.current,fiberStack[index$jscomp$0]=fiber,cursor.current=value}function requiredContext(c2){return c2===null&&console.error("Expected host context to exist. This error is likely caused by a bug in React. Please file an issue."),c2}function pushHostContainer(fiber,nextRootInstance){push(rootInstanceStackCursor,nextRootInstance,fiber),push(contextFiberStackCursor,fiber,fiber),push(contextStackCursor,null,fiber);var nextRootContext=nextRootInstance.nodeType;switch(nextRootContext){case 9:case 11:nextRootContext=nextRootContext===9?"#document":"#fragment",nextRootInstance=(nextRootInstance=nextRootInstance.documentElement)&&(nextRootInstance=nextRootInstance.namespaceURI)?getOwnHostContext(nextRootInstance):HostContextNamespaceNone;break;default:if(nextRootContext=nextRootInstance.tagName,nextRootInstance=nextRootInstance.namespaceURI)nextRootInstance=getOwnHostContext(nextRootInstance),nextRootInstance=getChildHostContextProd(nextRootInstance,nextRootContext);else switch(nextRootContext){case"svg":nextRootInstance=HostContextNamespaceSvg;break;case"math":nextRootInstance=HostContextNamespaceMath;break;default:nextRootInstance=HostContextNamespaceNone}}nextRootContext=nextRootContext.toLowerCase(),nextRootContext=updatedAncestorInfoDev(null,nextRootContext),nextRootContext={context:nextRootInstance,ancestorInfo:nextRootContext},pop(contextStackCursor,fiber),push(contextStackCursor,nextRootContext,fiber)}function popHostContainer(fiber){pop(contextStackCursor,fiber),pop(contextFiberStackCursor,fiber),pop(rootInstanceStackCursor,fiber)}function getHostContext(){return requiredContext(contextStackCursor.current)}function pushHostContext(fiber){fiber.memoizedState!==null&&push(hostTransitionProviderCursor,fiber,fiber);var context=requiredContext(contextStackCursor.current),type=fiber.type,nextContext=getChildHostContextProd(context.context,type);type=updatedAncestorInfoDev(context.ancestorInfo,type),nextContext={context:nextContext,ancestorInfo:type},context!==nextContext&&(push(contextFiberStackCursor,fiber,fiber),push(contextStackCursor,nextContext,fiber))}function popHostContext(fiber){contextFiberStackCursor.current===fiber&&(pop(contextStackCursor,fiber),pop(contextFiberStackCursor,fiber)),hostTransitionProviderCursor.current===fiber&&(pop(hostTransitionProviderCursor,fiber),HostTransitionContext._currentValue=NotPendingTransition)}function typeName(value){return typeof Symbol=="function"&&Symbol.toStringTag&&value[Symbol.toStringTag]||value.constructor.name||"Object"}function willCoercionThrow(value){try{return testStringCoercion(value),!1}catch{return!0}}function testStringCoercion(value){return""+value}function checkAttributeStringCoercion(value,attributeName){if(willCoercionThrow(value))return console.error("The provided `%s` attribute is an unsupported type %s. This value must be coerced to a string before using it here.",attributeName,typeName(value)),testStringCoercion(value)}function checkCSSPropertyStringCoercion(value,propName){if(willCoercionThrow(value))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.",propName,typeName(value)),testStringCoercion(value)}function checkFormFieldValueStringCoercion(value){if(willCoercionThrow(value))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.",typeName(value)),testStringCoercion(value)}function injectInternals(internals){if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u")return!1;var hook=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(hook.isDisabled)return!0;if(!hook.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{rendererID=hook.inject(internals),injectedHook=hook}catch(err){console.error("React instrumentation encountered an error: %s.",err)}return!!hook.checkDCE}function setIsStrictModeForDevtools(newIsStrictMode){if(typeof log$1=="function"&&unstable_setDisableYieldValue(newIsStrictMode),injectedHook&&typeof injectedHook.setStrictMode=="function")try{injectedHook.setStrictMode(rendererID,newIsStrictMode)}catch(err){hasLoggedError||(hasLoggedError=!0,console.error("React instrumentation encountered an error: %s",err))}}function injectProfilingHooks(profilingHooks){injectedProfilingHooks=profilingHooks}function markCommitStopped(){injectedProfilingHooks!==null&&typeof injectedProfilingHooks.markCommitStopped=="function"&&injectedProfilingHooks.markCommitStopped()}function markComponentRenderStarted(fiber){injectedProfilingHooks!==null&&typeof injectedProfilingHooks.markComponentRenderStarted=="function"&&injectedProfilingHooks.markComponentRenderStarted(fiber)}function markComponentRenderStopped(){injectedProfilingHooks!==null&&typeof injectedProfilingHooks.markComponentRenderStopped=="function"&&injectedProfilingHooks.markComponentRenderStopped()}function markRenderStarted(lanes){injectedProfilingHooks!==null&&typeof injectedProfilingHooks.markRenderStarted=="function"&&injectedProfilingHooks.markRenderStarted(lanes)}function markRenderStopped(){injectedProfilingHooks!==null&&typeof injectedProfilingHooks.markRenderStopped=="function"&&injectedProfilingHooks.markRenderStopped()}function markStateUpdateScheduled(fiber,lane){injectedProfilingHooks!==null&&typeof injectedProfilingHooks.markStateUpdateScheduled=="function"&&injectedProfilingHooks.markStateUpdateScheduled(fiber,lane)}function clz32Fallback(x){return x>>>=0,x===0?32:31-(log(x)/LN2|0)|0}function getLabelForLane(lane){if(lane&1)return"SyncHydrationLane";if(lane&2)return"Sync";if(lane&4)return"InputContinuousHydration";if(lane&8)return"InputContinuous";if(lane&16)return"DefaultHydration";if(lane&32)return"Default";if(lane&128)return"TransitionHydration";if(lane&4194048)return"Transition";if(lane&62914560)return"Retry";if(lane&67108864)return"SelectiveHydration";if(lane&134217728)return"IdleHydration";if(lane&268435456)return"Idle";if(lane&536870912)return"Offscreen";if(lane&1073741824)return"Deferred"}function getHighestPriorityLanes(lanes){var pendingSyncLanes=lanes&42;if(pendingSyncLanes!==0)return pendingSyncLanes;switch(lanes&-lanes){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 lanes&4194048;case 4194304:case 8388608:case 16777216:case 33554432:return lanes&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."),lanes}}function getNextLanes(root3,wipLanes,rootHasPendingCommit){var pendingLanes=root3.pendingLanes;if(pendingLanes===0)return 0;var nextLanes=0,suspendedLanes=root3.suspendedLanes,pingedLanes=root3.pingedLanes;root3=root3.warmLanes;var nonIdlePendingLanes=pendingLanes&134217727;return nonIdlePendingLanes!==0?(pendingLanes=nonIdlePendingLanes&~suspendedLanes,pendingLanes!==0?nextLanes=getHighestPriorityLanes(pendingLanes):(pingedLanes&=nonIdlePendingLanes,pingedLanes!==0?nextLanes=getHighestPriorityLanes(pingedLanes):rootHasPendingCommit||(rootHasPendingCommit=nonIdlePendingLanes&~root3,rootHasPendingCommit!==0&&(nextLanes=getHighestPriorityLanes(rootHasPendingCommit))))):(nonIdlePendingLanes=pendingLanes&~suspendedLanes,nonIdlePendingLanes!==0?nextLanes=getHighestPriorityLanes(nonIdlePendingLanes):pingedLanes!==0?nextLanes=getHighestPriorityLanes(pingedLanes):rootHasPendingCommit||(rootHasPendingCommit=pendingLanes&~root3,rootHasPendingCommit!==0&&(nextLanes=getHighestPriorityLanes(rootHasPendingCommit)))),nextLanes===0?0:wipLanes!==0&&wipLanes!==nextLanes&&(wipLanes&suspendedLanes)===0&&(suspendedLanes=nextLanes&-nextLanes,rootHasPendingCommit=wipLanes&-wipLanes,suspendedLanes>=rootHasPendingCommit||suspendedLanes===32&&(rootHasPendingCommit&4194048)!==0)?wipLanes:nextLanes}function checkIfRootIsPrerendering(root3,renderLanes2){return(root3.pendingLanes&~(root3.suspendedLanes&~root3.pingedLanes)&renderLanes2)===0}function computeExpirationTime(lane,currentTime){switch(lane){case 1:case 2:case 4:case 8:case 64:return currentTime+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 currentTime+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 claimNextTransitionLane(){var lane=nextTransitionLane;return nextTransitionLane<<=1,(nextTransitionLane&4194048)===0&&(nextTransitionLane=256),lane}function claimNextRetryLane(){var lane=nextRetryLane;return nextRetryLane<<=1,(nextRetryLane&62914560)===0&&(nextRetryLane=4194304),lane}function createLaneMap(initial){for(var laneMap=[],i=0;31>i;i++)laneMap.push(initial);return laneMap}function markRootUpdated$1(root3,updateLane){root3.pendingLanes|=updateLane,updateLane!==268435456&&(root3.suspendedLanes=0,root3.pingedLanes=0,root3.warmLanes=0)}function markRootFinished(root3,finishedLanes,remainingLanes,spawnedLane,updatedLanes,suspendedRetryLanes){var previouslyPendingLanes=root3.pendingLanes;root3.pendingLanes=remainingLanes,root3.suspendedLanes=0,root3.pingedLanes=0,root3.warmLanes=0,root3.expiredLanes&=remainingLanes,root3.entangledLanes&=remainingLanes,root3.errorRecoveryDisabledLanes&=remainingLanes,root3.shellSuspendCounter=0;var entanglements=root3.entanglements,expirationTimes=root3.expirationTimes,hiddenUpdates=root3.hiddenUpdates;for(remainingLanes=previouslyPendingLanes&~remainingLanes;0<remainingLanes;){var index=31-clz32(remainingLanes),lane=1<<index;entanglements[index]=0,expirationTimes[index]=-1;var hiddenUpdatesForLane=hiddenUpdates[index];if(hiddenUpdatesForLane!==null)for(hiddenUpdates[index]=null,index=0;index<hiddenUpdatesForLane.length;index++){var update=hiddenUpdatesForLane[index];update!==null&&(update.lane&=-536870913)}remainingLanes&=~lane}spawnedLane!==0&&markSpawnedDeferredLane(root3,spawnedLane,0),suspendedRetryLanes!==0&&updatedLanes===0&&root3.tag!==0&&(root3.suspendedLanes|=suspendedRetryLanes&~(previouslyPendingLanes&~finishedLanes))}function markSpawnedDeferredLane(root3,spawnedLane,entangledLanes){root3.pendingLanes|=spawnedLane,root3.suspendedLanes&=~spawnedLane;var spawnedLaneIndex=31-clz32(spawnedLane);root3.entangledLanes|=spawnedLane,root3.entanglements[spawnedLaneIndex]=root3.entanglements[spawnedLaneIndex]|1073741824|entangledLanes&4194090}function markRootEntangled(root3,entangledLanes){var rootEntangledLanes=root3.entangledLanes|=entangledLanes;for(root3=root3.entanglements;rootEntangledLanes;){var index=31-clz32(rootEntangledLanes),lane=1<<index;lane&entangledLanes|root3[index]&entangledLanes&&(root3[index]|=entangledLanes),rootEntangledLanes&=~lane}}function getBumpedLaneForHydrationByLane(lane){switch(lane){case 2:lane=1;break;case 8:lane=4;break;case 32:lane=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:lane=128;break;case 268435456:lane=134217728;break;default:lane=0}return lane}function addFiberToLanesMap(root3,fiber,lanes){if(isDevToolsPresent)for(root3=root3.pendingUpdatersLaneMap;0<lanes;){var index=31-clz32(lanes),lane=1<<index;root3[index].add(fiber),lanes&=~lane}}function movePendingFibersToMemoized(root3,lanes){if(isDevToolsPresent)for(var pendingUpdatersLaneMap=root3.pendingUpdatersLaneMap,memoizedUpdaters=root3.memoizedUpdaters;0<lanes;){var index=31-clz32(lanes);root3=1<<index,index=pendingUpdatersLaneMap[index],0<index.size&&(index.forEach(function(fiber){var alternate=fiber.alternate;alternate!==null&&memoizedUpdaters.has(alternate)||memoizedUpdaters.add(fiber)}),index.clear()),lanes&=~root3}}function lanesToEventPriority(lanes){return lanes&=-lanes,DiscreteEventPriority<lanes?ContinuousEventPriority<lanes?(lanes&134217727)!==0?DefaultEventPriority:IdleEventPriority:ContinuousEventPriority:DiscreteEventPriority}function resolveUpdatePriority(){var updatePriority=ReactDOMSharedInternals.p;return updatePriority!==0?updatePriority:(updatePriority=window.event,updatePriority===void 0?DefaultEventPriority:getEventPriority(updatePriority.type))}function runWithPriority(priority,fn){var previousPriority=ReactDOMSharedInternals.p;try{return ReactDOMSharedInternals.p=priority,fn()}finally{ReactDOMSharedInternals.p=previousPriority}}function detachDeletedInstance(node){delete node[internalInstanceKey],delete node[internalPropsKey],delete node[internalEventHandlersKey],delete node[internalEventHandlerListenersKey],delete node[internalEventHandlesSetKey]}function getClosestInstanceFromNode(targetNode){var targetInst=targetNode[internalInstanceKey];if(targetInst)return targetInst;for(var parentNode=targetNode.parentNode;parentNode;){if(targetInst=parentNode[internalContainerInstanceKey]||parentNode[internalInstanceKey]){if(parentNode=targetInst.alternate,targetInst.child!==null||parentNode!==null&&parentNode.child!==null)for(targetNode=getParentSuspenseInstance(targetNode);targetNode!==null;){if(parentNode=targetNode[internalInstanceKey])return parentNode;targetNode=getParentSuspenseInstance(targetNode)}return targetInst}targetNode=parentNode,parentNode=targetNode.parentNode}return null}function getInstanceFromNode(node){if(node=node[internalInstanceKey]||node[internalContainerInstanceKey]){var tag=node.tag;if(tag===5||tag===6||tag===13||tag===26||tag===27||tag===3)return node}return null}function getNodeFromInstance(inst){var tag=inst.tag;if(tag===5||tag===26||tag===27||tag===6)return inst.stateNode;throw Error("getNodeFromInstance: Invalid argument.")}function getResourcesFromRoot(root3){var resources=root3[internalRootNodeResourcesKey];return resources||(resources=root3[internalRootNodeResourcesKey]={hoistableStyles:new Map,hoistableScripts:new Map}),resources}function markNodeAsHoistable(node){node[internalHoistableMarker]=!0}function registerTwoPhaseEvent(registrationName,dependencies){registerDirectEvent(registrationName,dependencies),registerDirectEvent(registrationName+"Capture",dependencies)}function registerDirectEvent(registrationName,dependencies){registrationNameDependencies[registrationName]&&console.error("EventRegistry: More than one plugin attempted to publish the same registration name, `%s`.",registrationName),registrationNameDependencies[registrationName]=dependencies;var lowerCasedName=registrationName.toLowerCase();for(possibleRegistrationNames[lowerCasedName]=registrationName,registrationName==="onDoubleClick"&&(possibleRegistrationNames.ondblclick=registrationName),registrationName=0;registrationName<dependencies.length;registrationName++)allNativeEvents.add(dependencies[registrationName])}function checkControlledValueProps(tagName,props){hasReadOnlyValue[props.type]||props.onChange||props.onInput||props.readOnly||props.disabled||props.value==null||console.error(tagName==="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`."),props.onChange||props.readOnly||props.disabled||props.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 isAttributeNameSafe(attributeName){return hasOwnProperty.call(validatedAttributeNameCache,attributeName)?!0:hasOwnProperty.call(illegalAttributeNameCache,attributeName)?!1:VALID_ATTRIBUTE_NAME_REGEX.test(attributeName)?validatedAttributeNameCache[attributeName]=!0:(illegalAttributeNameCache[attributeName]=!0,console.error("Invalid attribute name: `%s`",attributeName),!1)}function getValueForAttributeOnCustomComponent(node,name,expected){if(isAttributeNameSafe(name)){if(!node.hasAttribute(name)){switch(typeof expected){case"symbol":case"object":return expected;case"function":return expected;case"boolean":if(expected===!1)return expected}return expected===void 0?void 0:null}return node=node.getAttribute(name),node===""&&expected===!0?!0:(checkAttributeStringCoercion(expected,name),node===""+expected?expected:node)}}function setValueForAttribute(node,name,value){if(isAttributeNameSafe(name))if(value===null)node.removeAttribute(name);else{switch(typeof value){case"undefined":case"function":case"symbol":node.removeAttribute(name);return;case"boolean":var prefix2=name.toLowerCase().slice(0,5);if(prefix2!=="data-"&&prefix2!=="aria-"){node.removeAttribute(name);return}}checkAttributeStringCoercion(value,name),node.setAttribute(name,""+value)}}function setValueForKnownAttribute(node,name,value){if(value===null)node.removeAttribute(name);else{switch(typeof value){case"undefined":case"function":case"symbol":case"boolean":node.removeAttribute(name);return}checkAttributeStringCoercion(value,name),node.setAttribute(name,""+value)}}function setValueForNamespacedAttribute(node,namespace,name,value){if(value===null)node.removeAttribute(name);else{switch(typeof value){case"undefined":case"function":case"symbol":case"boolean":node.removeAttribute(name);return}checkAttributeStringCoercion(value,name),node.setAttributeNS(namespace,name,""+value)}}function disabledLog(){}function disableLogs(){if(disabledDepth===0){prevLog=console.log,prevInfo=console.info,prevWarn=console.warn,prevError=console.error,prevGroup=console.group,prevGroupCollapsed=console.groupCollapsed,prevGroupEnd=console.groupEnd;var props={configurable:!0,enumerable:!0,value:disabledLog,writable:!0};Object.defineProperties(console,{info:props,log:props,warn:props,error:props,group:props,groupCollapsed:props,groupEnd:props})}disabledDepth++}function reenableLogs(){if(disabledDepth--,disabledDepth===0){var props={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:assign({},props,{value:prevLog}),info:assign({},props,{value:prevInfo}),warn:assign({},props,{value:prevWarn}),error:assign({},props,{value:prevError}),group:assign({},props,{value:prevGroup}),groupCollapsed:assign({},props,{value:prevGroupCollapsed}),groupEnd:assign({},props,{value:prevGroupEnd})})}0>disabledDepth&&console.error("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}function describeBuiltInComponentFrame(name){if(prefix===void 0)try{throw Error()}catch(x){var match=x.stack.trim().match(/\n( *(at )?)/);prefix=match&&match[1]||"",suffix=-1<x.stack.indexOf(`
|
|
91
|
+
at`)?" (<anonymous>)":-1<x.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
92
|
+
`+prefix+name+suffix}function describeNativeComponentFrame(fn,construct){if(!fn||reentry)return"";var frame=componentFrameCache.get(fn);if(frame!==void 0)return frame;reentry=!0,frame=Error.prepareStackTrace,Error.prepareStackTrace=void 0;var previousDispatcher2=null;previousDispatcher2=ReactSharedInternals.H,ReactSharedInternals.H=null,disableLogs();try{var RunInRootFrame={DetermineComponentFrameRoot:function(){try{if(construct){var Fake=function(){throw Error()};if(Object.defineProperty(Fake.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(Fake,[])}catch(x){var control=x}Reflect.construct(fn,[],Fake)}else{try{Fake.call()}catch(x$0){control=x$0}fn.call(Fake.prototype)}}else{try{throw Error()}catch(x$1){control=x$1}(Fake=fn())&&typeof Fake.catch=="function"&&Fake.catch(function(){})}}catch(sample){if(sample&&control&&typeof sample.stack=="string")return[sample.stack,control.stack]}return[null,null]}};RunInRootFrame.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var namePropDescriptor=Object.getOwnPropertyDescriptor(RunInRootFrame.DetermineComponentFrameRoot,"name");namePropDescriptor&&namePropDescriptor.configurable&&Object.defineProperty(RunInRootFrame.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var _RunInRootFrame$Deter=RunInRootFrame.DetermineComponentFrameRoot(),sampleStack=_RunInRootFrame$Deter[0],controlStack=_RunInRootFrame$Deter[1];if(sampleStack&&controlStack){var sampleLines=sampleStack.split(`
|
|
93
|
+
`),controlLines=controlStack.split(`
|
|
94
|
+
`);for(_RunInRootFrame$Deter=namePropDescriptor=0;namePropDescriptor<sampleLines.length&&!sampleLines[namePropDescriptor].includes("DetermineComponentFrameRoot");)namePropDescriptor++;for(;_RunInRootFrame$Deter<controlLines.length&&!controlLines[_RunInRootFrame$Deter].includes("DetermineComponentFrameRoot");)_RunInRootFrame$Deter++;if(namePropDescriptor===sampleLines.length||_RunInRootFrame$Deter===controlLines.length)for(namePropDescriptor=sampleLines.length-1,_RunInRootFrame$Deter=controlLines.length-1;1<=namePropDescriptor&&0<=_RunInRootFrame$Deter&&sampleLines[namePropDescriptor]!==controlLines[_RunInRootFrame$Deter];)_RunInRootFrame$Deter--;for(;1<=namePropDescriptor&&0<=_RunInRootFrame$Deter;namePropDescriptor--,_RunInRootFrame$Deter--)if(sampleLines[namePropDescriptor]!==controlLines[_RunInRootFrame$Deter]){if(namePropDescriptor!==1||_RunInRootFrame$Deter!==1)do if(namePropDescriptor--,_RunInRootFrame$Deter--,0>_RunInRootFrame$Deter||sampleLines[namePropDescriptor]!==controlLines[_RunInRootFrame$Deter]){var _frame=`
|
|
95
|
+
`+sampleLines[namePropDescriptor].replace(" at new "," at ");return fn.displayName&&_frame.includes("<anonymous>")&&(_frame=_frame.replace("<anonymous>",fn.displayName)),typeof fn=="function"&&componentFrameCache.set(fn,_frame),_frame}while(1<=namePropDescriptor&&0<=_RunInRootFrame$Deter);break}}}finally{reentry=!1,ReactSharedInternals.H=previousDispatcher2,reenableLogs(),Error.prepareStackTrace=frame}return sampleLines=(sampleLines=fn?fn.displayName||fn.name:"")?describeBuiltInComponentFrame(sampleLines):"",typeof fn=="function"&&componentFrameCache.set(fn,sampleLines),sampleLines}function formatOwnerStack(error){var prevPrepareStackTrace=Error.prepareStackTrace;if(Error.prepareStackTrace=void 0,error=error.stack,Error.prepareStackTrace=prevPrepareStackTrace,error.startsWith(`Error: react-stack-top-frame
|
|
96
|
+
`)&&(error=error.slice(29)),prevPrepareStackTrace=error.indexOf(`
|
|
97
|
+
`),prevPrepareStackTrace!==-1&&(error=error.slice(prevPrepareStackTrace+1)),prevPrepareStackTrace=error.indexOf("react-stack-bottom-frame"),prevPrepareStackTrace!==-1&&(prevPrepareStackTrace=error.lastIndexOf(`
|
|
98
|
+
`,prevPrepareStackTrace)),prevPrepareStackTrace!==-1)error=error.slice(0,prevPrepareStackTrace);else return"";return error}function describeFiber(fiber){switch(fiber.tag){case 26:case 27:case 5:return describeBuiltInComponentFrame(fiber.type);case 16:return describeBuiltInComponentFrame("Lazy");case 13:return describeBuiltInComponentFrame("Suspense");case 19:return describeBuiltInComponentFrame("SuspenseList");case 0:case 15:return describeNativeComponentFrame(fiber.type,!1);case 11:return describeNativeComponentFrame(fiber.type.render,!1);case 1:return describeNativeComponentFrame(fiber.type,!0);case 31:return describeBuiltInComponentFrame("Activity");default:return""}}function getStackByFiberInDevAndProd(workInProgress2){try{var info="";do{info+=describeFiber(workInProgress2);var debugInfo=workInProgress2._debugInfo;if(debugInfo)for(var i=debugInfo.length-1;0<=i;i--){var entry=debugInfo[i];if(typeof entry.name=="string"){var JSCompiler_temp_const=info,env=entry.env,JSCompiler_inline_result=describeBuiltInComponentFrame(entry.name+(env?" ["+env+"]":""));info=JSCompiler_temp_const+JSCompiler_inline_result}}workInProgress2=workInProgress2.return}while(workInProgress2);return info}catch(x){return`
|
|
99
|
+
Error generating stack: `+x.message+`
|
|
100
|
+
`+x.stack}}function describeFunctionComponentFrameWithoutLineNumber(fn){return(fn=fn?fn.displayName||fn.name:"")?describeBuiltInComponentFrame(fn):""}function getCurrentFiberOwnerNameInDevOrNull(){if(current===null)return null;var owner=current._debugOwner;return owner!=null?getComponentNameFromOwner(owner):null}function getCurrentFiberStackInDev(){if(current===null)return"";var workInProgress2=current;try{var info="";switch(workInProgress2.tag===6&&(workInProgress2=workInProgress2.return),workInProgress2.tag){case 26:case 27:case 5:info+=describeBuiltInComponentFrame(workInProgress2.type);break;case 13:info+=describeBuiltInComponentFrame("Suspense");break;case 19:info+=describeBuiltInComponentFrame("SuspenseList");break;case 31:info+=describeBuiltInComponentFrame("Activity");break;case 30:case 0:case 15:case 1:workInProgress2._debugOwner||info!==""||(info+=describeFunctionComponentFrameWithoutLineNumber(workInProgress2.type));break;case 11:workInProgress2._debugOwner||info!==""||(info+=describeFunctionComponentFrameWithoutLineNumber(workInProgress2.type.render))}for(;workInProgress2;)if(typeof workInProgress2.tag=="number"){var fiber=workInProgress2;workInProgress2=fiber._debugOwner;var debugStack=fiber._debugStack;workInProgress2&&debugStack&&(typeof debugStack!="string"&&(fiber._debugStack=debugStack=formatOwnerStack(debugStack)),debugStack!==""&&(info+=`
|
|
101
|
+
`+debugStack))}else if(workInProgress2.debugStack!=null){var ownerStack=workInProgress2.debugStack;(workInProgress2=workInProgress2.owner)&&ownerStack&&(info+=`
|
|
102
|
+
`+formatOwnerStack(ownerStack))}else break;var JSCompiler_inline_result=info}catch(x){JSCompiler_inline_result=`
|
|
103
|
+
Error generating stack: `+x.message+`
|
|
104
|
+
`+x.stack}return JSCompiler_inline_result}function runWithFiberInDEV(fiber,callback,arg0,arg1,arg2,arg3,arg4){var previousFiber=current;setCurrentFiber(fiber);try{return fiber!==null&&fiber._debugTask?fiber._debugTask.run(callback.bind(null,arg0,arg1,arg2,arg3,arg4)):callback(arg0,arg1,arg2,arg3,arg4)}finally{setCurrentFiber(previousFiber)}throw Error("runWithFiberInDEV should never be called in production. This is a bug in React.")}function setCurrentFiber(fiber){ReactSharedInternals.getCurrentStack=fiber===null?null:getCurrentFiberStackInDev,isRendering=!1,current=fiber}function getToStringValue(value){switch(typeof value){case"bigint":case"boolean":case"number":case"string":case"undefined":return value;case"object":return checkFormFieldValueStringCoercion(value),value;default:return""}}function isCheckable(elem){var type=elem.type;return(elem=elem.nodeName)&&elem.toLowerCase()==="input"&&(type==="checkbox"||type==="radio")}function trackValueOnNode(node){var valueField=isCheckable(node)?"checked":"value",descriptor=Object.getOwnPropertyDescriptor(node.constructor.prototype,valueField);checkFormFieldValueStringCoercion(node[valueField]);var currentValue=""+node[valueField];if(!node.hasOwnProperty(valueField)&&typeof descriptor<"u"&&typeof descriptor.get=="function"&&typeof descriptor.set=="function"){var get=descriptor.get,set=descriptor.set;return Object.defineProperty(node,valueField,{configurable:!0,get:function(){return get.call(this)},set:function(value){checkFormFieldValueStringCoercion(value),currentValue=""+value,set.call(this,value)}}),Object.defineProperty(node,valueField,{enumerable:descriptor.enumerable}),{getValue:function(){return currentValue},setValue:function(value){checkFormFieldValueStringCoercion(value),currentValue=""+value},stopTracking:function(){node._valueTracker=null,delete node[valueField]}}}}function track(node){node._valueTracker||(node._valueTracker=trackValueOnNode(node))}function updateValueIfChanged(node){if(!node)return!1;var tracker=node._valueTracker;if(!tracker)return!0;var lastValue=tracker.getValue(),value="";return node&&(value=isCheckable(node)?node.checked?"true":"false":node.value),node=value,node!==lastValue?(tracker.setValue(node),!0):!1}function getActiveElement(doc){if(doc=doc||(typeof document<"u"?document:void 0),typeof doc>"u")return null;try{return doc.activeElement||doc.body}catch{return doc.body}}function escapeSelectorAttributeValueInsideDoubleQuotes(value){return value.replace(escapeSelectorAttributeValueInsideDoubleQuotesRegex,function(ch){return"\\"+ch.charCodeAt(0).toString(16)+" "})}function validateInputProps(element,props){props.checked===void 0||props.defaultChecked===void 0||didWarnCheckedDefaultChecked||(console.error("%s contains an input of type %s with both checked and defaultChecked props. Input elements must be either controlled or uncontrolled (specify either the checked prop, or the defaultChecked prop, but not both). Decide between using a controlled or uncontrolled input element and remove one of these props. More info: https://react.dev/link/controlled-components",getCurrentFiberOwnerNameInDevOrNull()||"A component",props.type),didWarnCheckedDefaultChecked=!0),props.value===void 0||props.defaultValue===void 0||didWarnValueDefaultValue$1||(console.error("%s contains an input of type %s with both value and defaultValue props. Input elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled input element and remove one of these props. More info: https://react.dev/link/controlled-components",getCurrentFiberOwnerNameInDevOrNull()||"A component",props.type),didWarnValueDefaultValue$1=!0)}function updateInput(element,value,defaultValue,lastDefaultValue,checked,defaultChecked,type,name){element.name="",type!=null&&typeof type!="function"&&typeof type!="symbol"&&typeof type!="boolean"?(checkAttributeStringCoercion(type,"type"),element.type=type):element.removeAttribute("type"),value!=null?type==="number"?(value===0&&element.value===""||element.value!=value)&&(element.value=""+getToStringValue(value)):element.value!==""+getToStringValue(value)&&(element.value=""+getToStringValue(value)):type!=="submit"&&type!=="reset"||element.removeAttribute("value"),value!=null?setDefaultValue(element,type,getToStringValue(value)):defaultValue!=null?setDefaultValue(element,type,getToStringValue(defaultValue)):lastDefaultValue!=null&&element.removeAttribute("value"),checked==null&&defaultChecked!=null&&(element.defaultChecked=!!defaultChecked),checked!=null&&(element.checked=checked&&typeof checked!="function"&&typeof checked!="symbol"),name!=null&&typeof name!="function"&&typeof name!="symbol"&&typeof name!="boolean"?(checkAttributeStringCoercion(name,"name"),element.name=""+getToStringValue(name)):element.removeAttribute("name")}function initInput(element,value,defaultValue,checked,defaultChecked,type,name,isHydrating2){if(type!=null&&typeof type!="function"&&typeof type!="symbol"&&typeof type!="boolean"&&(checkAttributeStringCoercion(type,"type"),element.type=type),value!=null||defaultValue!=null){if(!(type!=="submit"&&type!=="reset"||value!=null))return;defaultValue=defaultValue!=null?""+getToStringValue(defaultValue):"",value=value!=null?""+getToStringValue(value):defaultValue,isHydrating2||value===element.value||(element.value=value),element.defaultValue=value}checked=checked??defaultChecked,checked=typeof checked!="function"&&typeof checked!="symbol"&&!!checked,element.checked=isHydrating2?element.checked:!!checked,element.defaultChecked=!!checked,name!=null&&typeof name!="function"&&typeof name!="symbol"&&typeof name!="boolean"&&(checkAttributeStringCoercion(name,"name"),element.name=name)}function setDefaultValue(node,type,value){type==="number"&&getActiveElement(node.ownerDocument)===node||node.defaultValue===""+value||(node.defaultValue=""+value)}function validateOptionProps(element,props){props.value==null&&(typeof props.children=="object"&&props.children!==null?React2.Children.forEach(props.children,function(child){child==null||typeof child=="string"||typeof child=="number"||typeof child=="bigint"||didWarnInvalidChild||(didWarnInvalidChild=!0,console.error("Cannot infer the option value of complex children. Pass a `value` prop or use a plain string as children to <option>."))}):props.dangerouslySetInnerHTML==null||didWarnInvalidInnerHTML||(didWarnInvalidInnerHTML=!0,console.error("Pass a `value` prop if you set dangerouslyInnerHTML so React knows which value should be selected."))),props.selected==null||didWarnSelectedSetOnOption||(console.error("Use the `defaultValue` or `value` props on <select> instead of setting `selected` on <option>."),didWarnSelectedSetOnOption=!0)}function getDeclarationErrorAddendum(){var ownerName=getCurrentFiberOwnerNameInDevOrNull();return ownerName?`
|
|
105
|
+
|
|
106
|
+
Check the render method of \``+ownerName+"`.":""}function updateOptions(node,multiple,propValue,setDefaultSelected){if(node=node.options,multiple){multiple={};for(var i=0;i<propValue.length;i++)multiple["$"+propValue[i]]=!0;for(propValue=0;propValue<node.length;propValue++)i=multiple.hasOwnProperty("$"+node[propValue].value),node[propValue].selected!==i&&(node[propValue].selected=i),i&&setDefaultSelected&&(node[propValue].defaultSelected=!0)}else{for(propValue=""+getToStringValue(propValue),multiple=null,i=0;i<node.length;i++){if(node[i].value===propValue){node[i].selected=!0,setDefaultSelected&&(node[i].defaultSelected=!0);return}multiple!==null||node[i].disabled||(multiple=node[i])}multiple!==null&&(multiple.selected=!0)}}function validateSelectProps(element,props){for(element=0;element<valuePropNames.length;element++){var propName=valuePropNames[element];if(props[propName]!=null){var propNameIsArray=isArrayImpl(props[propName]);props.multiple&&!propNameIsArray?console.error("The `%s` prop supplied to <select> must be an array if `multiple` is true.%s",propName,getDeclarationErrorAddendum()):!props.multiple&&propNameIsArray&&console.error("The `%s` prop supplied to <select> must be a scalar value if `multiple` is false.%s",propName,getDeclarationErrorAddendum())}}props.value===void 0||props.defaultValue===void 0||didWarnValueDefaultValue||(console.error("Select elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled select element and remove one of these props. More info: https://react.dev/link/controlled-components"),didWarnValueDefaultValue=!0)}function validateTextareaProps(element,props){props.value===void 0||props.defaultValue===void 0||didWarnValDefaultVal||(console.error("%s contains a textarea with both value and defaultValue props. Textarea elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled textarea and remove one of these props. More info: https://react.dev/link/controlled-components",getCurrentFiberOwnerNameInDevOrNull()||"A component"),didWarnValDefaultVal=!0),props.children!=null&&props.value==null&&console.error("Use the `defaultValue` or `value` props instead of setting children on <textarea>.")}function updateTextarea(element,value,defaultValue){if(value!=null&&(value=""+getToStringValue(value),value!==element.value&&(element.value=value),defaultValue==null)){element.defaultValue!==value&&(element.defaultValue=value);return}element.defaultValue=defaultValue!=null?""+getToStringValue(defaultValue):""}function initTextarea(element,value,defaultValue,children){if(value==null){if(children!=null){if(defaultValue!=null)throw Error("If you supply `defaultValue` on a <textarea>, do not pass children.");if(isArrayImpl(children)){if(1<children.length)throw Error("<textarea> can only have at most one child.");children=children[0]}defaultValue=children}defaultValue==null&&(defaultValue=""),value=defaultValue}defaultValue=getToStringValue(value),element.defaultValue=defaultValue,children=element.textContent,children===defaultValue&&children!==""&&children!==null&&(element.value=children)}function findNotableNode(node,indent){return node.serverProps===void 0&&node.serverTail.length===0&&node.children.length===1&&3<node.distanceFromLeaf&&node.distanceFromLeaf>15-indent?findNotableNode(node.children[0],indent):node}function indentation(indent){return" "+" ".repeat(indent)}function added(indent){return"+ "+" ".repeat(indent)}function removed(indent){return"- "+" ".repeat(indent)}function describeFiberType(fiber){switch(fiber.tag){case 26:case 27:case 5:return fiber.type;case 16:return"Lazy";case 13:return"Suspense";case 19:return"SuspenseList";case 0:case 15:return fiber=fiber.type,fiber.displayName||fiber.name||null;case 11:return fiber=fiber.type.render,fiber.displayName||fiber.name||null;case 1:return fiber=fiber.type,fiber.displayName||fiber.name||null;default:return null}}function describeTextNode(content,maxLength){return needsEscaping.test(content)?(content=JSON.stringify(content),content.length>maxLength-2?8>maxLength?'{"..."}':"{"+content.slice(0,maxLength-7)+'..."}':"{"+content+"}"):content.length>maxLength?5>maxLength?'{"..."}':content.slice(0,maxLength-3)+"...":content}function describeTextDiff(clientText,serverProps,indent){var maxLength=120-2*indent;if(serverProps===null)return added(indent)+describeTextNode(clientText,maxLength)+`
|
|
107
|
+
`;if(typeof serverProps=="string"){for(var firstDiff=0;firstDiff<serverProps.length&&firstDiff<clientText.length&&serverProps.charCodeAt(firstDiff)===clientText.charCodeAt(firstDiff);firstDiff++);return firstDiff>maxLength-8&&10<firstDiff&&(clientText="..."+clientText.slice(firstDiff-8),serverProps="..."+serverProps.slice(firstDiff-8)),added(indent)+describeTextNode(clientText,maxLength)+`
|
|
108
|
+
`+removed(indent)+describeTextNode(serverProps,maxLength)+`
|
|
109
|
+
`}return indentation(indent)+describeTextNode(clientText,maxLength)+`
|
|
110
|
+
`}function objectName(object){return Object.prototype.toString.call(object).replace(/^\[object (.*)\]$/,function(m,p0){return p0})}function describeValue(value,maxLength){switch(typeof value){case"string":return value=JSON.stringify(value),value.length>maxLength?5>maxLength?'"..."':value.slice(0,maxLength-4)+'..."':value;case"object":if(value===null)return"null";if(isArrayImpl(value))return"[...]";if(value.$$typeof===REACT_ELEMENT_TYPE)return(maxLength=getComponentNameFromType(value.type))?"<"+maxLength+">":"<...>";var name=objectName(value);if(name==="Object"){name="",maxLength-=2;for(var propName in value)if(value.hasOwnProperty(propName)){var jsonPropName=JSON.stringify(propName);if(jsonPropName!=='"'+propName+'"'&&(propName=jsonPropName),maxLength-=propName.length-2,jsonPropName=describeValue(value[propName],15>maxLength?maxLength:15),maxLength-=jsonPropName.length,0>maxLength){name+=name===""?"...":", ...";break}name+=(name===""?"":",")+propName+":"+jsonPropName}return"{"+name+"}"}return name;case"function":return(maxLength=value.displayName||value.name)?"function "+maxLength:"function";default:return String(value)}}function describePropValue(value,maxLength){return typeof value!="string"||needsEscaping.test(value)?"{"+describeValue(value,maxLength-2)+"}":value.length>maxLength-2?5>maxLength?'"..."':'"'+value.slice(0,maxLength-5)+'..."':'"'+value+'"'}function describeExpandedElement(type,props,rowPrefix){var remainingRowLength=120-rowPrefix.length-type.length,properties=[],propName;for(propName in props)if(props.hasOwnProperty(propName)&&propName!=="children"){var propValue=describePropValue(props[propName],120-rowPrefix.length-propName.length-1);remainingRowLength-=propName.length+propValue.length+2,properties.push(propName+"="+propValue)}return properties.length===0?rowPrefix+"<"+type+`>
|
|
111
|
+
`:0<remainingRowLength?rowPrefix+"<"+type+" "+properties.join(" ")+`>
|
|
112
|
+
`:rowPrefix+"<"+type+`
|
|
113
|
+
`+rowPrefix+" "+properties.join(`
|
|
114
|
+
`+rowPrefix+" ")+`
|
|
115
|
+
`+rowPrefix+`>
|
|
116
|
+
`}function describePropertiesDiff(clientObject,serverObject,indent){var properties="",remainingServerProperties=assign({},serverObject),propName;for(propName in clientObject)if(clientObject.hasOwnProperty(propName)){delete remainingServerProperties[propName];var maxLength=120-2*indent-propName.length-2,clientPropValue=describeValue(clientObject[propName],maxLength);serverObject.hasOwnProperty(propName)?(maxLength=describeValue(serverObject[propName],maxLength),properties+=added(indent)+propName+": "+clientPropValue+`
|
|
117
|
+
`,properties+=removed(indent)+propName+": "+maxLength+`
|
|
118
|
+
`):properties+=added(indent)+propName+": "+clientPropValue+`
|
|
119
|
+
`}for(var _propName in remainingServerProperties)remainingServerProperties.hasOwnProperty(_propName)&&(clientObject=describeValue(remainingServerProperties[_propName],120-2*indent-_propName.length-2),properties+=removed(indent)+_propName+": "+clientObject+`
|
|
120
|
+
`);return properties}function describeElementDiff(type,clientProps,serverProps,indent){var content="",serverPropNames=new Map;for(propName$jscomp$0 in serverProps)serverProps.hasOwnProperty(propName$jscomp$0)&&serverPropNames.set(propName$jscomp$0.toLowerCase(),propName$jscomp$0);if(serverPropNames.size===1&&serverPropNames.has("children"))content+=describeExpandedElement(type,clientProps,indentation(indent));else{for(var _propName2 in clientProps)if(clientProps.hasOwnProperty(_propName2)&&_propName2!=="children"){var maxLength$jscomp$0=120-2*(indent+1)-_propName2.length-1,serverPropName=serverPropNames.get(_propName2.toLowerCase());if(serverPropName!==void 0){serverPropNames.delete(_propName2.toLowerCase());var propName$jscomp$0=clientProps[_propName2];serverPropName=serverProps[serverPropName];var clientPropValue=describePropValue(propName$jscomp$0,maxLength$jscomp$0);maxLength$jscomp$0=describePropValue(serverPropName,maxLength$jscomp$0),typeof propName$jscomp$0=="object"&&propName$jscomp$0!==null&&typeof serverPropName=="object"&&serverPropName!==null&&objectName(propName$jscomp$0)==="Object"&&objectName(serverPropName)==="Object"&&(2<Object.keys(propName$jscomp$0).length||2<Object.keys(serverPropName).length||-1<clientPropValue.indexOf("...")||-1<maxLength$jscomp$0.indexOf("..."))?content+=indentation(indent+1)+_propName2+`={{
|
|
121
|
+
`+describePropertiesDiff(propName$jscomp$0,serverPropName,indent+2)+indentation(indent+1)+`}}
|
|
122
|
+
`:(content+=added(indent+1)+_propName2+"="+clientPropValue+`
|
|
123
|
+
`,content+=removed(indent+1)+_propName2+"="+maxLength$jscomp$0+`
|
|
124
|
+
`)}else content+=indentation(indent+1)+_propName2+"="+describePropValue(clientProps[_propName2],maxLength$jscomp$0)+`
|
|
125
|
+
`}serverPropNames.forEach(function(propName){if(propName!=="children"){var maxLength=120-2*(indent+1)-propName.length-1;content+=removed(indent+1)+propName+"="+describePropValue(serverProps[propName],maxLength)+`
|
|
126
|
+
`}}),content=content===""?indentation(indent)+"<"+type+`>
|
|
127
|
+
`:indentation(indent)+"<"+type+`
|
|
128
|
+
`+content+indentation(indent)+`>
|
|
129
|
+
`}return type=serverProps.children,clientProps=clientProps.children,typeof type=="string"||typeof type=="number"||typeof type=="bigint"?(serverPropNames="",(typeof clientProps=="string"||typeof clientProps=="number"||typeof clientProps=="bigint")&&(serverPropNames=""+clientProps),content+=describeTextDiff(serverPropNames,""+type,indent+1)):(typeof clientProps=="string"||typeof clientProps=="number"||typeof clientProps=="bigint")&&(content=type==null?content+describeTextDiff(""+clientProps,null,indent+1):content+describeTextDiff(""+clientProps,void 0,indent+1)),content}function describeSiblingFiber(fiber,indent){var type=describeFiberType(fiber);if(type===null){for(type="",fiber=fiber.child;fiber;)type+=describeSiblingFiber(fiber,indent),fiber=fiber.sibling;return type}return indentation(indent)+"<"+type+`>
|
|
130
|
+
`}function describeNode(node,indent){var skipToNode=findNotableNode(node,indent);if(skipToNode!==node&&(node.children.length!==1||node.children[0]!==skipToNode))return indentation(indent)+`...
|
|
131
|
+
`+describeNode(skipToNode,indent+1);skipToNode="";var debugInfo=node.fiber._debugInfo;if(debugInfo)for(var i=0;i<debugInfo.length;i++){var serverComponentName=debugInfo[i].name;typeof serverComponentName=="string"&&(skipToNode+=indentation(indent)+"<"+serverComponentName+`>
|
|
132
|
+
`,indent++)}if(debugInfo="",i=node.fiber.pendingProps,node.fiber.tag===6)debugInfo=describeTextDiff(i,node.serverProps,indent),indent++;else if(serverComponentName=describeFiberType(node.fiber),serverComponentName!==null)if(node.serverProps===void 0){debugInfo=indent;var maxLength=120-2*debugInfo-serverComponentName.length-2,content="";for(propName in i)if(i.hasOwnProperty(propName)&&propName!=="children"){var propValue=describePropValue(i[propName],15);if(maxLength-=propName.length+propValue.length+2,0>maxLength){content+=" ...";break}content+=" "+propName+"="+propValue}debugInfo=indentation(debugInfo)+"<"+serverComponentName+content+`>
|
|
133
|
+
`,indent++}else node.serverProps===null?(debugInfo=describeExpandedElement(serverComponentName,i,added(indent)),indent++):typeof node.serverProps=="string"?console.error("Should not have matched a non HostText fiber to a Text node. This is a bug in React."):(debugInfo=describeElementDiff(serverComponentName,i,node.serverProps,indent),indent++);var propName="";for(i=node.fiber.child,serverComponentName=0;i&&serverComponentName<node.children.length;)maxLength=node.children[serverComponentName],maxLength.fiber===i?(propName+=describeNode(maxLength,indent),serverComponentName++):propName+=describeSiblingFiber(i,indent),i=i.sibling;for(i&&0<node.children.length&&(propName+=indentation(indent)+`...
|
|
134
|
+
`),i=node.serverTail,node.serverProps===null&&indent--,node=0;node<i.length;node++)serverComponentName=i[node],propName=typeof serverComponentName=="string"?propName+(removed(indent)+describeTextNode(serverComponentName,120-2*indent)+`
|
|
135
|
+
`):propName+describeExpandedElement(serverComponentName.type,serverComponentName.props,removed(indent));return skipToNode+debugInfo+propName}function describeDiff(rootNode){try{return`
|
|
136
|
+
|
|
137
|
+
`+describeNode(rootNode,0)}catch{return""}}function describeAncestors(ancestor,child,props){for(var fiber=child,node=null,distanceFromLeaf=0;fiber;)fiber===ancestor&&(distanceFromLeaf=0),node={fiber,children:node!==null?[node]:[],serverProps:fiber===child?props:fiber===ancestor?null:void 0,serverTail:[],distanceFromLeaf},distanceFromLeaf++,fiber=fiber.return;return node!==null?describeDiff(node).replaceAll(/^[+-]/gm,">"):""}function updatedAncestorInfoDev(oldInfo,tag){var ancestorInfo=assign({},oldInfo||emptyAncestorInfoDev),info={tag};return inScopeTags.indexOf(tag)!==-1&&(ancestorInfo.aTagInScope=null,ancestorInfo.buttonTagInScope=null,ancestorInfo.nobrTagInScope=null),buttonScopeTags.indexOf(tag)!==-1&&(ancestorInfo.pTagInButtonScope=null),specialTags.indexOf(tag)!==-1&&tag!=="address"&&tag!=="div"&&tag!=="p"&&(ancestorInfo.listItemTagAutoclosing=null,ancestorInfo.dlItemTagAutoclosing=null),ancestorInfo.current=info,tag==="form"&&(ancestorInfo.formTag=info),tag==="a"&&(ancestorInfo.aTagInScope=info),tag==="button"&&(ancestorInfo.buttonTagInScope=info),tag==="nobr"&&(ancestorInfo.nobrTagInScope=info),tag==="p"&&(ancestorInfo.pTagInButtonScope=info),tag==="li"&&(ancestorInfo.listItemTagAutoclosing=info),(tag==="dd"||tag==="dt")&&(ancestorInfo.dlItemTagAutoclosing=info),tag==="#document"||tag==="html"?ancestorInfo.containerTagInScope=null:ancestorInfo.containerTagInScope||(ancestorInfo.containerTagInScope=info),oldInfo!==null||tag!=="#document"&&tag!=="html"&&tag!=="body"?ancestorInfo.implicitRootScope===!0&&(ancestorInfo.implicitRootScope=!1):ancestorInfo.implicitRootScope=!0,ancestorInfo}function isTagValidWithParent(tag,parentTag,implicitRootScope){switch(parentTag){case"select":return tag==="hr"||tag==="option"||tag==="optgroup"||tag==="script"||tag==="template"||tag==="#text";case"optgroup":return tag==="option"||tag==="#text";case"option":return tag==="#text";case"tr":return tag==="th"||tag==="td"||tag==="style"||tag==="script"||tag==="template";case"tbody":case"thead":case"tfoot":return tag==="tr"||tag==="style"||tag==="script"||tag==="template";case"colgroup":return tag==="col"||tag==="template";case"table":return tag==="caption"||tag==="colgroup"||tag==="tbody"||tag==="tfoot"||tag==="thead"||tag==="style"||tag==="script"||tag==="template";case"head":return tag==="base"||tag==="basefont"||tag==="bgsound"||tag==="link"||tag==="meta"||tag==="title"||tag==="noscript"||tag==="noframes"||tag==="style"||tag==="script"||tag==="template";case"html":if(implicitRootScope)break;return tag==="head"||tag==="body"||tag==="frameset";case"frameset":return tag==="frame";case"#document":if(!implicitRootScope)return tag==="html"}switch(tag){case"h1":case"h2":case"h3":case"h4":case"h5":case"h6":return parentTag!=="h1"&&parentTag!=="h2"&&parentTag!=="h3"&&parentTag!=="h4"&&parentTag!=="h5"&&parentTag!=="h6";case"rp":case"rt":return impliedEndTags.indexOf(parentTag)===-1;case"caption":case"col":case"colgroup":case"frameset":case"frame":case"tbody":case"td":case"tfoot":case"th":case"thead":case"tr":return parentTag==null;case"head":return implicitRootScope||parentTag===null;case"html":return implicitRootScope&&parentTag==="#document"||parentTag===null;case"body":return implicitRootScope&&(parentTag==="#document"||parentTag==="html")||parentTag===null}return!0}function findInvalidAncestorForTag(tag,ancestorInfo){switch(tag){case"address":case"article":case"aside":case"blockquote":case"center":case"details":case"dialog":case"dir":case"div":case"dl":case"fieldset":case"figcaption":case"figure":case"footer":case"header":case"hgroup":case"main":case"menu":case"nav":case"ol":case"p":case"section":case"summary":case"ul":case"pre":case"listing":case"table":case"hr":case"xmp":case"h1":case"h2":case"h3":case"h4":case"h5":case"h6":return ancestorInfo.pTagInButtonScope;case"form":return ancestorInfo.formTag||ancestorInfo.pTagInButtonScope;case"li":return ancestorInfo.listItemTagAutoclosing;case"dd":case"dt":return ancestorInfo.dlItemTagAutoclosing;case"button":return ancestorInfo.buttonTagInScope;case"a":return ancestorInfo.aTagInScope;case"nobr":return ancestorInfo.nobrTagInScope}return null}function findAncestor(parent,tagName){for(;parent;){switch(parent.tag){case 5:case 26:case 27:if(parent.type===tagName)return parent}parent=parent.return}return null}function validateDOMNesting(childTag,ancestorInfo){ancestorInfo=ancestorInfo||emptyAncestorInfoDev;var parentInfo=ancestorInfo.current;if(ancestorInfo=(parentInfo=isTagValidWithParent(childTag,parentInfo&&parentInfo.tag,ancestorInfo.implicitRootScope)?null:parentInfo)?null:findInvalidAncestorForTag(childTag,ancestorInfo),ancestorInfo=parentInfo||ancestorInfo,!ancestorInfo)return!0;var ancestorTag=ancestorInfo.tag;if(ancestorInfo=String(!!parentInfo)+"|"+childTag+"|"+ancestorTag,didWarn[ancestorInfo])return!1;didWarn[ancestorInfo]=!0;var ancestor=(ancestorInfo=current)?findAncestor(ancestorInfo.return,ancestorTag):null,ancestorDescription=ancestorInfo!==null&&ancestor!==null?describeAncestors(ancestor,ancestorInfo,null):"",tagDisplayName="<"+childTag+">";return parentInfo?(parentInfo="",ancestorTag==="table"&&childTag==="tr"&&(parentInfo+=" Add a <tbody>, <thead> or <tfoot> to your code to match the DOM tree generated by the browser."),console.error(`In HTML, %s cannot be a child of <%s>.%s
|
|
138
|
+
This will cause a hydration error.%s`,tagDisplayName,ancestorTag,parentInfo,ancestorDescription)):console.error(`In HTML, %s cannot be a descendant of <%s>.
|
|
139
|
+
This will cause a hydration error.%s`,tagDisplayName,ancestorTag,ancestorDescription),ancestorInfo&&(childTag=ancestorInfo.return,ancestor===null||childTag===null||ancestor===childTag&&childTag._debugOwner===ancestorInfo._debugOwner||runWithFiberInDEV(ancestor,function(){console.error(`<%s> cannot contain a nested %s.
|
|
140
|
+
See this log for the ancestor stack trace.`,ancestorTag,tagDisplayName)})),!1}function validateTextNesting(childText,parentTag,implicitRootScope){if(implicitRootScope||isTagValidWithParent("#text",parentTag,!1))return!0;if(implicitRootScope="#text|"+parentTag,didWarn[implicitRootScope])return!1;didWarn[implicitRootScope]=!0;var ancestor=(implicitRootScope=current)?findAncestor(implicitRootScope,parentTag):null;return implicitRootScope=implicitRootScope!==null&&ancestor!==null?describeAncestors(ancestor,implicitRootScope,implicitRootScope.tag!==6?{children:null}:null):"",/\S/.test(childText)?console.error(`In HTML, text nodes cannot be a child of <%s>.
|
|
141
|
+
This will cause a hydration error.%s`,parentTag,implicitRootScope):console.error(`In HTML, whitespace text nodes cannot be a child of <%s>. Make sure you don't have any extra whitespace between tags on each line of your source code.
|
|
142
|
+
This will cause a hydration error.%s`,parentTag,implicitRootScope),!1}function setTextContent(node,text){if(text){var firstChild=node.firstChild;if(firstChild&&firstChild===node.lastChild&&firstChild.nodeType===3){firstChild.nodeValue=text;return}}node.textContent=text}function camelize(string){return string.replace(hyphenPattern,function(_,character){return character.toUpperCase()})}function setValueForStyle(style2,styleName,value){var isCustomProperty=styleName.indexOf("--")===0;isCustomProperty||(-1<styleName.indexOf("-")?warnedStyleNames.hasOwnProperty(styleName)&&warnedStyleNames[styleName]||(warnedStyleNames[styleName]=!0,console.error("Unsupported style property %s. Did you mean %s?",styleName,camelize(styleName.replace(msPattern,"ms-")))):badVendoredStyleNamePattern.test(styleName)?warnedStyleNames.hasOwnProperty(styleName)&&warnedStyleNames[styleName]||(warnedStyleNames[styleName]=!0,console.error("Unsupported vendor-prefixed style property %s. Did you mean %s?",styleName,styleName.charAt(0).toUpperCase()+styleName.slice(1))):!badStyleValueWithSemicolonPattern.test(value)||warnedStyleValues.hasOwnProperty(value)&&warnedStyleValues[value]||(warnedStyleValues[value]=!0,console.error(`Style property values shouldn't contain a semicolon. Try "%s: %s" instead.`,styleName,value.replace(badStyleValueWithSemicolonPattern,""))),typeof value=="number"&&(isNaN(value)?warnedForNaNValue||(warnedForNaNValue=!0,console.error("`NaN` is an invalid value for the `%s` css style property.",styleName)):isFinite(value)||warnedForInfinityValue||(warnedForInfinityValue=!0,console.error("`Infinity` is an invalid value for the `%s` css style property.",styleName)))),value==null||typeof value=="boolean"||value===""?isCustomProperty?style2.setProperty(styleName,""):styleName==="float"?style2.cssFloat="":style2[styleName]="":isCustomProperty?style2.setProperty(styleName,value):typeof value!="number"||value===0||unitlessNumbers.has(styleName)?styleName==="float"?style2.cssFloat=value:(checkCSSPropertyStringCoercion(value,styleName),style2[styleName]=(""+value).trim()):style2[styleName]=value+"px"}function setValueForStyles(node,styles,prevStyles){if(styles!=null&&typeof styles!="object")throw Error("The `style` prop expects a mapping from style properties to values, not a string. For example, style={{marginRight: spacing + 'em'}} when using JSX.");if(styles&&Object.freeze(styles),node=node.style,prevStyles!=null){if(styles){var expandedUpdates={};if(prevStyles){for(var key in prevStyles)if(prevStyles.hasOwnProperty(key)&&!styles.hasOwnProperty(key))for(var longhands=shorthandToLonghand[key]||[key],i=0;i<longhands.length;i++)expandedUpdates[longhands[i]]=key}for(var _key in styles)if(styles.hasOwnProperty(_key)&&(!prevStyles||prevStyles[_key]!==styles[_key]))for(key=shorthandToLonghand[_key]||[_key],longhands=0;longhands<key.length;longhands++)expandedUpdates[key[longhands]]=_key;_key={};for(var key$jscomp$0 in styles)for(key=shorthandToLonghand[key$jscomp$0]||[key$jscomp$0],longhands=0;longhands<key.length;longhands++)_key[key[longhands]]=key$jscomp$0;key$jscomp$0={};for(var _key2 in expandedUpdates)if(key=expandedUpdates[_key2],(longhands=_key[_key2])&&key!==longhands&&(i=key+","+longhands,!key$jscomp$0[i])){key$jscomp$0[i]=!0,i=console;var value=styles[key];i.error.call(i,"%s a style property during rerender (%s) when a conflicting property is set (%s) can lead to styling bugs. To avoid this, don't mix shorthand and non-shorthand properties for the same value; instead, replace the shorthand with separate values.",value==null||typeof value=="boolean"||value===""?"Removing":"Updating",key,longhands)}}for(var styleName in prevStyles)!prevStyles.hasOwnProperty(styleName)||styles!=null&&styles.hasOwnProperty(styleName)||(styleName.indexOf("--")===0?node.setProperty(styleName,""):styleName==="float"?node.cssFloat="":node[styleName]="");for(var _styleName in styles)_key2=styles[_styleName],styles.hasOwnProperty(_styleName)&&prevStyles[_styleName]!==_key2&&setValueForStyle(node,_styleName,_key2)}else for(expandedUpdates in styles)styles.hasOwnProperty(expandedUpdates)&&setValueForStyle(node,expandedUpdates,styles[expandedUpdates])}function isCustomElement(tagName){if(tagName.indexOf("-")===-1)return!1;switch(tagName){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}}function getAttributeAlias(name){return aliases.get(name)||name}function validateProperty$1(tagName,name){if(hasOwnProperty.call(warnedProperties$1,name)&&warnedProperties$1[name])return!0;if(rARIACamel$1.test(name)){if(tagName="aria-"+name.slice(4).toLowerCase(),tagName=ariaProperties.hasOwnProperty(tagName)?tagName:null,tagName==null)return console.error("Invalid ARIA attribute `%s`. ARIA attributes follow the pattern aria-* and must be lowercase.",name),warnedProperties$1[name]=!0;if(name!==tagName)return console.error("Invalid ARIA attribute `%s`. Did you mean `%s`?",name,tagName),warnedProperties$1[name]=!0}if(rARIA$1.test(name)){if(tagName=name.toLowerCase(),tagName=ariaProperties.hasOwnProperty(tagName)?tagName:null,tagName==null)return warnedProperties$1[name]=!0,!1;name!==tagName&&(console.error("Unknown ARIA attribute `%s`. Did you mean `%s`?",name,tagName),warnedProperties$1[name]=!0)}return!0}function validateProperties$2(type,props){var invalidProps=[],key;for(key in props)validateProperty$1(type,key)||invalidProps.push(key);props=invalidProps.map(function(prop){return"`"+prop+"`"}).join(", "),invalidProps.length===1?console.error("Invalid aria prop %s on <%s> tag. For details, see https://react.dev/link/invalid-aria-props",props,type):1<invalidProps.length&&console.error("Invalid aria props %s on <%s> tag. For details, see https://react.dev/link/invalid-aria-props",props,type)}function validateProperty(tagName,name,value,eventRegistry){if(hasOwnProperty.call(warnedProperties,name)&&warnedProperties[name])return!0;var lowerCasedName=name.toLowerCase();if(lowerCasedName==="onfocusin"||lowerCasedName==="onfocusout")return console.error("React uses onFocus and onBlur instead of onFocusIn and onFocusOut. All React events are normalized to bubble, so onFocusIn and onFocusOut are not needed/supported by React."),warnedProperties[name]=!0;if(typeof value=="function"&&(tagName==="form"&&name==="action"||tagName==="input"&&name==="formAction"||tagName==="button"&&name==="formAction"))return!0;if(eventRegistry!=null){if(tagName=eventRegistry.possibleRegistrationNames,eventRegistry.registrationNameDependencies.hasOwnProperty(name))return!0;if(eventRegistry=tagName.hasOwnProperty(lowerCasedName)?tagName[lowerCasedName]:null,eventRegistry!=null)return console.error("Invalid event handler property `%s`. Did you mean `%s`?",name,eventRegistry),warnedProperties[name]=!0;if(EVENT_NAME_REGEX.test(name))return console.error("Unknown event handler property `%s`. It will be ignored.",name),warnedProperties[name]=!0}else if(EVENT_NAME_REGEX.test(name))return INVALID_EVENT_NAME_REGEX.test(name)&&console.error("Invalid event handler property `%s`. React events use the camelCase naming convention, for example `onClick`.",name),warnedProperties[name]=!0;if(rARIA.test(name)||rARIACamel.test(name))return!0;if(lowerCasedName==="innerhtml")return console.error("Directly setting property `innerHTML` is not permitted. For more information, lookup documentation on `dangerouslySetInnerHTML`."),warnedProperties[name]=!0;if(lowerCasedName==="aria")return console.error("The `aria` attribute is reserved for future use in React. Pass individual `aria-` attributes instead."),warnedProperties[name]=!0;if(lowerCasedName==="is"&&value!==null&&value!==void 0&&typeof value!="string")return console.error("Received a `%s` for a string attribute `is`. If this is expected, cast the value to a string.",typeof value),warnedProperties[name]=!0;if(typeof value=="number"&&isNaN(value))return console.error("Received NaN for the `%s` attribute. If this is expected, cast the value to a string.",name),warnedProperties[name]=!0;if(possibleStandardNames.hasOwnProperty(lowerCasedName)){if(lowerCasedName=possibleStandardNames[lowerCasedName],lowerCasedName!==name)return console.error("Invalid DOM property `%s`. Did you mean `%s`?",name,lowerCasedName),warnedProperties[name]=!0}else if(name!==lowerCasedName)return console.error("React does not recognize the `%s` prop on a DOM element. If you intentionally want it to appear in the DOM as a custom attribute, spell it as lowercase `%s` instead. If you accidentally passed it from a parent component, remove it from the DOM element.",name,lowerCasedName),warnedProperties[name]=!0;switch(name){case"dangerouslySetInnerHTML":case"children":case"style":case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":return!0;case"innerText":case"textContent":return!0}switch(typeof value){case"boolean":switch(name){case"autoFocus":case"checked":case"multiple":case"muted":case"selected":case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":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":case"capture":case"download":case"inert":return!0;default:return lowerCasedName=name.toLowerCase().slice(0,5),lowerCasedName==="data-"||lowerCasedName==="aria-"?!0:(value?console.error('Received `%s` for a non-boolean attribute `%s`.\n\nIf you want to write it to the DOM, pass a string instead: %s="%s" or %s={value.toString()}.',value,name,name,value,name):console.error('Received `%s` for a non-boolean attribute `%s`.\n\nIf you want to write it to the DOM, pass a string instead: %s="%s" or %s={value.toString()}.\n\nIf you used to conditionally omit it with %s={condition && value}, pass %s={condition ? value : undefined} instead.',value,name,name,value,name,name,name),warnedProperties[name]=!0)}case"function":case"symbol":return warnedProperties[name]=!0,!1;case"string":if(value==="false"||value==="true"){switch(name){case"checked":case"selected":case"multiple":case"muted":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":case"inert":break;default:return!0}console.error("Received the string `%s` for the boolean attribute `%s`. %s Did you mean %s={%s}?",value,name,value==="false"?"The browser will interpret it as a truthy value.":'Although this works, it will not work as expected if you pass the string "false".',name,value),warnedProperties[name]=!0}}return!0}function warnUnknownProperties(type,props,eventRegistry){var unknownProps=[],key;for(key in props)validateProperty(type,key,props[key],eventRegistry)||unknownProps.push(key);props=unknownProps.map(function(prop){return"`"+prop+"`"}).join(", "),unknownProps.length===1?console.error("Invalid value for prop %s on <%s> tag. Either remove it from the element, or pass a string or number value to keep it in the DOM. For details, see https://react.dev/link/attribute-behavior ",props,type):1<unknownProps.length&&console.error("Invalid values for props %s on <%s> tag. Either remove them from the element, or pass a string or number value to keep them in the DOM. For details, see https://react.dev/link/attribute-behavior ",props,type)}function sanitizeURL(url){return isJavaScriptProtocol.test(""+url)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":url}function getEventTarget(nativeEvent){return nativeEvent=nativeEvent.target||nativeEvent.srcElement||window,nativeEvent.correspondingUseElement&&(nativeEvent=nativeEvent.correspondingUseElement),nativeEvent.nodeType===3?nativeEvent.parentNode:nativeEvent}function restoreStateOfTarget(target){var internalInstance=getInstanceFromNode(target);if(internalInstance&&(target=internalInstance.stateNode)){var props=target[internalPropsKey]||null;a:switch(target=internalInstance.stateNode,internalInstance.type){case"input":if(updateInput(target,props.value,props.defaultValue,props.defaultValue,props.checked,props.defaultChecked,props.type,props.name),internalInstance=props.name,props.type==="radio"&&internalInstance!=null){for(props=target;props.parentNode;)props=props.parentNode;for(checkAttributeStringCoercion(internalInstance,"name"),props=props.querySelectorAll('input[name="'+escapeSelectorAttributeValueInsideDoubleQuotes(""+internalInstance)+'"][type="radio"]'),internalInstance=0;internalInstance<props.length;internalInstance++){var otherNode=props[internalInstance];if(otherNode!==target&&otherNode.form===target.form){var otherProps=otherNode[internalPropsKey]||null;if(!otherProps)throw Error("ReactDOMInput: Mixing React and non-React radio inputs with the same `name` is not supported.");updateInput(otherNode,otherProps.value,otherProps.defaultValue,otherProps.defaultValue,otherProps.checked,otherProps.defaultChecked,otherProps.type,otherProps.name)}}for(internalInstance=0;internalInstance<props.length;internalInstance++)otherNode=props[internalInstance],otherNode.form===target.form&&updateValueIfChanged(otherNode)}break a;case"textarea":updateTextarea(target,props.value,props.defaultValue);break a;case"select":internalInstance=props.value,internalInstance!=null&&updateOptions(target,!!props.multiple,internalInstance,!1)}}}function batchedUpdates$1(fn,a2,b){if(isInsideEventHandler)return fn(a2,b);isInsideEventHandler=!0;try{var JSCompiler_inline_result=fn(a2);return JSCompiler_inline_result}finally{if(isInsideEventHandler=!1,(restoreTarget!==null||restoreQueue!==null)&&(flushSyncWork$1(),restoreTarget&&(a2=restoreTarget,fn=restoreQueue,restoreQueue=restoreTarget=null,restoreStateOfTarget(a2),fn)))for(a2=0;a2<fn.length;a2++)restoreStateOfTarget(fn[a2])}}function getListener(inst,registrationName){var stateNode=inst.stateNode;if(stateNode===null)return null;var props=stateNode[internalPropsKey]||null;if(props===null)return null;stateNode=props[registrationName];a:switch(registrationName){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(props=!props.disabled)||(inst=inst.type,props=!(inst==="button"||inst==="input"||inst==="select"||inst==="textarea")),inst=!props;break a;default:inst=!1}if(inst)return null;if(stateNode&&typeof stateNode!="function")throw Error("Expected `"+registrationName+"` listener to be a function, instead got a value of `"+typeof stateNode+"` type.");return stateNode}function getData(){if(fallbackText)return fallbackText;var start,startValue=startText,startLength=startValue.length,end,endValue="value"in root2?root2.value:root2.textContent,endLength=endValue.length;for(start=0;start<startLength&&startValue[start]===endValue[start];start++);var minEnd=startLength-start;for(end=1;end<=minEnd&&startValue[startLength-end]===endValue[endLength-end];end++);return fallbackText=endValue.slice(start,1<end?1-end:void 0)}function getEventCharCode(nativeEvent){var keyCode=nativeEvent.keyCode;return"charCode"in nativeEvent?(nativeEvent=nativeEvent.charCode,nativeEvent===0&&keyCode===13&&(nativeEvent=13)):nativeEvent=keyCode,nativeEvent===10&&(nativeEvent=13),32<=nativeEvent||nativeEvent===13?nativeEvent:0}function functionThatReturnsTrue(){return!0}function functionThatReturnsFalse(){return!1}function createSyntheticEvent(Interface){function SyntheticBaseEvent(reactName,reactEventType,targetInst,nativeEvent,nativeEventTarget){this._reactName=reactName,this._targetInst=targetInst,this.type=reactEventType,this.nativeEvent=nativeEvent,this.target=nativeEventTarget,this.currentTarget=null;for(var propName in Interface)Interface.hasOwnProperty(propName)&&(reactName=Interface[propName],this[propName]=reactName?reactName(nativeEvent):nativeEvent[propName]);return this.isDefaultPrevented=(nativeEvent.defaultPrevented!=null?nativeEvent.defaultPrevented:nativeEvent.returnValue===!1)?functionThatReturnsTrue:functionThatReturnsFalse,this.isPropagationStopped=functionThatReturnsFalse,this}return assign(SyntheticBaseEvent.prototype,{preventDefault:function(){this.defaultPrevented=!0;var event=this.nativeEvent;event&&(event.preventDefault?event.preventDefault():typeof event.returnValue!="unknown"&&(event.returnValue=!1),this.isDefaultPrevented=functionThatReturnsTrue)},stopPropagation:function(){var event=this.nativeEvent;event&&(event.stopPropagation?event.stopPropagation():typeof event.cancelBubble!="unknown"&&(event.cancelBubble=!0),this.isPropagationStopped=functionThatReturnsTrue)},persist:function(){},isPersistent:functionThatReturnsTrue}),SyntheticBaseEvent}function modifierStateGetter(keyArg){var nativeEvent=this.nativeEvent;return nativeEvent.getModifierState?nativeEvent.getModifierState(keyArg):(keyArg=modifierKeyToProp[keyArg])?!!nativeEvent[keyArg]:!1}function getEventModifierState(){return modifierStateGetter}function isFallbackCompositionEnd(domEventName,nativeEvent){switch(domEventName){case"keyup":return END_KEYCODES.indexOf(nativeEvent.keyCode)!==-1;case"keydown":return nativeEvent.keyCode!==START_KEYCODE;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function getDataFromCustomEvent(nativeEvent){return nativeEvent=nativeEvent.detail,typeof nativeEvent=="object"&&"data"in nativeEvent?nativeEvent.data:null}function getNativeBeforeInputChars(domEventName,nativeEvent){switch(domEventName){case"compositionend":return getDataFromCustomEvent(nativeEvent);case"keypress":return nativeEvent.which!==SPACEBAR_CODE?null:(hasSpaceKeypress=!0,SPACEBAR_CHAR);case"textInput":return domEventName=nativeEvent.data,domEventName===SPACEBAR_CHAR&&hasSpaceKeypress?null:domEventName;default:return null}}function getFallbackBeforeInputChars(domEventName,nativeEvent){if(isComposing)return domEventName==="compositionend"||!canUseCompositionEvent&&isFallbackCompositionEnd(domEventName,nativeEvent)?(domEventName=getData(),fallbackText=startText=root2=null,isComposing=!1,domEventName):null;switch(domEventName){case"paste":return null;case"keypress":if(!(nativeEvent.ctrlKey||nativeEvent.altKey||nativeEvent.metaKey)||nativeEvent.ctrlKey&&nativeEvent.altKey){if(nativeEvent.char&&1<nativeEvent.char.length)return nativeEvent.char;if(nativeEvent.which)return String.fromCharCode(nativeEvent.which)}return null;case"compositionend":return useFallbackCompositionData&&nativeEvent.locale!=="ko"?null:nativeEvent.data;default:return null}}function isTextInputElement(elem){var nodeName=elem&&elem.nodeName&&elem.nodeName.toLowerCase();return nodeName==="input"?!!supportedInputTypes[elem.type]:nodeName==="textarea"}function isEventSupported(eventNameSuffix){if(!canUseDOM)return!1;eventNameSuffix="on"+eventNameSuffix;var isSupported=eventNameSuffix in document;return isSupported||(isSupported=document.createElement("div"),isSupported.setAttribute(eventNameSuffix,"return;"),isSupported=typeof isSupported[eventNameSuffix]=="function"),isSupported}function createAndAccumulateChangeEvent(dispatchQueue,inst,nativeEvent,target){restoreTarget?restoreQueue?restoreQueue.push(target):restoreQueue=[target]:restoreTarget=target,inst=accumulateTwoPhaseListeners(inst,"onChange"),0<inst.length&&(nativeEvent=new SyntheticEvent("onChange","change",null,nativeEvent,target),dispatchQueue.push({event:nativeEvent,listeners:inst}))}function runEventInBatch(dispatchQueue){processDispatchQueue(dispatchQueue,0)}function getInstIfValueChanged(targetInst){var targetNode=getNodeFromInstance(targetInst);if(updateValueIfChanged(targetNode))return targetInst}function getTargetInstForChangeEvent(domEventName,targetInst){if(domEventName==="change")return targetInst}function stopWatchingForValueChange(){activeElement$1&&(activeElement$1.detachEvent("onpropertychange",handlePropertyChange),activeElementInst$1=activeElement$1=null)}function handlePropertyChange(nativeEvent){if(nativeEvent.propertyName==="value"&&getInstIfValueChanged(activeElementInst$1)){var dispatchQueue=[];createAndAccumulateChangeEvent(dispatchQueue,activeElementInst$1,nativeEvent,getEventTarget(nativeEvent)),batchedUpdates$1(runEventInBatch,dispatchQueue)}}function handleEventsForInputEventPolyfill(domEventName,target,targetInst){domEventName==="focusin"?(stopWatchingForValueChange(),activeElement$1=target,activeElementInst$1=targetInst,activeElement$1.attachEvent("onpropertychange",handlePropertyChange)):domEventName==="focusout"&&stopWatchingForValueChange()}function getTargetInstForInputEventPolyfill(domEventName){if(domEventName==="selectionchange"||domEventName==="keyup"||domEventName==="keydown")return getInstIfValueChanged(activeElementInst$1)}function getTargetInstForClickEvent(domEventName,targetInst){if(domEventName==="click")return getInstIfValueChanged(targetInst)}function getTargetInstForInputOrChangeEvent(domEventName,targetInst){if(domEventName==="input"||domEventName==="change")return getInstIfValueChanged(targetInst)}function is(x,y){return x===y&&(x!==0||1/x===1/y)||x!==x&&y!==y}function shallowEqual(objA,objB){if(objectIs(objA,objB))return!0;if(typeof objA!="object"||objA===null||typeof objB!="object"||objB===null)return!1;var keysA=Object.keys(objA),keysB=Object.keys(objB);if(keysA.length!==keysB.length)return!1;for(keysB=0;keysB<keysA.length;keysB++){var currentKey=keysA[keysB];if(!hasOwnProperty.call(objB,currentKey)||!objectIs(objA[currentKey],objB[currentKey]))return!1}return!0}function getLeafNode(node){for(;node&&node.firstChild;)node=node.firstChild;return node}function getNodeForCharacterOffset(root3,offset){var node=getLeafNode(root3);root3=0;for(var nodeEnd;node;){if(node.nodeType===3){if(nodeEnd=root3+node.textContent.length,root3<=offset&&nodeEnd>=offset)return{node,offset:offset-root3};root3=nodeEnd}a:{for(;node;){if(node.nextSibling){node=node.nextSibling;break a}node=node.parentNode}node=void 0}node=getLeafNode(node)}}function containsNode(outerNode,innerNode){return outerNode&&innerNode?outerNode===innerNode?!0:outerNode&&outerNode.nodeType===3?!1:innerNode&&innerNode.nodeType===3?containsNode(outerNode,innerNode.parentNode):"contains"in outerNode?outerNode.contains(innerNode):outerNode.compareDocumentPosition?!!(outerNode.compareDocumentPosition(innerNode)&16):!1:!1}function getActiveElementDeep(containerInfo){containerInfo=containerInfo!=null&&containerInfo.ownerDocument!=null&&containerInfo.ownerDocument.defaultView!=null?containerInfo.ownerDocument.defaultView:window;for(var element=getActiveElement(containerInfo.document);element instanceof containerInfo.HTMLIFrameElement;){try{var JSCompiler_inline_result=typeof element.contentWindow.location.href=="string"}catch{JSCompiler_inline_result=!1}if(JSCompiler_inline_result)containerInfo=element.contentWindow;else break;element=getActiveElement(containerInfo.document)}return element}function hasSelectionCapabilities(elem){var nodeName=elem&&elem.nodeName&&elem.nodeName.toLowerCase();return nodeName&&(nodeName==="input"&&(elem.type==="text"||elem.type==="search"||elem.type==="tel"||elem.type==="url"||elem.type==="password")||nodeName==="textarea"||elem.contentEditable==="true")}function constructSelectEvent(dispatchQueue,nativeEvent,nativeEventTarget){var doc=nativeEventTarget.window===nativeEventTarget?nativeEventTarget.document:nativeEventTarget.nodeType===9?nativeEventTarget:nativeEventTarget.ownerDocument;mouseDown||activeElement==null||activeElement!==getActiveElement(doc)||(doc=activeElement,"selectionStart"in doc&&hasSelectionCapabilities(doc)?doc={start:doc.selectionStart,end:doc.selectionEnd}:(doc=(doc.ownerDocument&&doc.ownerDocument.defaultView||window).getSelection(),doc={anchorNode:doc.anchorNode,anchorOffset:doc.anchorOffset,focusNode:doc.focusNode,focusOffset:doc.focusOffset}),lastSelection&&shallowEqual(lastSelection,doc)||(lastSelection=doc,doc=accumulateTwoPhaseListeners(activeElementInst,"onSelect"),0<doc.length&&(nativeEvent=new SyntheticEvent("onSelect","select",null,nativeEvent,nativeEventTarget),dispatchQueue.push({event:nativeEvent,listeners:doc}),nativeEvent.target=activeElement)))}function makePrefixMap(styleProp,eventName){var prefixes={};return prefixes[styleProp.toLowerCase()]=eventName.toLowerCase(),prefixes["Webkit"+styleProp]="webkit"+eventName,prefixes["Moz"+styleProp]="moz"+eventName,prefixes}function getVendorPrefixedEventName(eventName){if(prefixedEventNames[eventName])return prefixedEventNames[eventName];if(!vendorPrefixes[eventName])return eventName;var prefixMap=vendorPrefixes[eventName],styleProp;for(styleProp in prefixMap)if(prefixMap.hasOwnProperty(styleProp)&&styleProp in style)return prefixedEventNames[eventName]=prefixMap[styleProp];return eventName}function registerSimpleEvent(domEventName,reactName){topLevelEventsToReactNames.set(domEventName,reactName),registerTwoPhaseEvent(reactName,[domEventName])}function createCapturedValueAtFiber(value,source){if(typeof value=="object"&&value!==null){var existing=CapturedStacks.get(value);return existing!==void 0?existing:(source={value,source,stack:getStackByFiberInDevAndProd(source)},CapturedStacks.set(value,source),source)}return{value,source,stack:getStackByFiberInDevAndProd(source)}}function finishQueueingConcurrentUpdates(){for(var endIndex=concurrentQueuesIndex,i=concurrentlyUpdatedLanes=concurrentQueuesIndex=0;i<endIndex;){var fiber=concurrentQueues[i];concurrentQueues[i++]=null;var queue=concurrentQueues[i];concurrentQueues[i++]=null;var update=concurrentQueues[i];concurrentQueues[i++]=null;var lane=concurrentQueues[i];if(concurrentQueues[i++]=null,queue!==null&&update!==null){var pending=queue.pending;pending===null?update.next=update:(update.next=pending.next,pending.next=update),queue.pending=update}lane!==0&&markUpdateLaneFromFiberToRoot(fiber,update,lane)}}function enqueueUpdate$1(fiber,queue,update,lane){concurrentQueues[concurrentQueuesIndex++]=fiber,concurrentQueues[concurrentQueuesIndex++]=queue,concurrentQueues[concurrentQueuesIndex++]=update,concurrentQueues[concurrentQueuesIndex++]=lane,concurrentlyUpdatedLanes|=lane,fiber.lanes|=lane,fiber=fiber.alternate,fiber!==null&&(fiber.lanes|=lane)}function enqueueConcurrentHookUpdate(fiber,queue,update,lane){return enqueueUpdate$1(fiber,queue,update,lane),getRootForUpdatedFiber(fiber)}function enqueueConcurrentRenderForLane(fiber,lane){return enqueueUpdate$1(fiber,null,null,lane),getRootForUpdatedFiber(fiber)}function markUpdateLaneFromFiberToRoot(sourceFiber,update,lane){sourceFiber.lanes|=lane;var alternate=sourceFiber.alternate;alternate!==null&&(alternate.lanes|=lane);for(var isHidden=!1,parent=sourceFiber.return;parent!==null;)parent.childLanes|=lane,alternate=parent.alternate,alternate!==null&&(alternate.childLanes|=lane),parent.tag===22&&(sourceFiber=parent.stateNode,sourceFiber===null||sourceFiber._visibility&OffscreenVisible||(isHidden=!0)),sourceFiber=parent,parent=parent.return;return sourceFiber.tag===3?(parent=sourceFiber.stateNode,isHidden&&update!==null&&(isHidden=31-clz32(lane),sourceFiber=parent.hiddenUpdates,alternate=sourceFiber[isHidden],alternate===null?sourceFiber[isHidden]=[update]:alternate.push(update),update.lane=lane|536870912),parent):null}function getRootForUpdatedFiber(sourceFiber){if(nestedUpdateCount>NESTED_UPDATE_LIMIT)throw nestedPassiveUpdateCount=nestedUpdateCount=0,rootWithPassiveNestedUpdates=rootWithNestedUpdates=null,Error("Maximum update depth exceeded. This can happen when a component repeatedly calls setState inside componentWillUpdate or componentDidUpdate. React limits the number of nested updates to prevent infinite loops.");nestedPassiveUpdateCount>NESTED_PASSIVE_UPDATE_LIMIT&&(nestedPassiveUpdateCount=0,rootWithPassiveNestedUpdates=null,console.error("Maximum update depth exceeded. This can happen when a component calls setState inside useEffect, but useEffect either doesn't have a dependency array, or one of the dependencies changes on every render.")),sourceFiber.alternate===null&&(sourceFiber.flags&4098)!==0&&warnAboutUpdateOnNotYetMountedFiberInDEV(sourceFiber);for(var node=sourceFiber,parent=node.return;parent!==null;)node.alternate===null&&(node.flags&4098)!==0&&warnAboutUpdateOnNotYetMountedFiberInDEV(sourceFiber),node=parent,parent=node.return;return node.tag===3?node.stateNode:null}function resolveFunctionForHotReloading(type){if(resolveFamily===null)return type;var family=resolveFamily(type);return family===void 0?type:family.current}function resolveForwardRefForHotReloading(type){if(resolveFamily===null)return type;var family=resolveFamily(type);return family===void 0?type!=null&&typeof type.render=="function"&&(family=resolveFunctionForHotReloading(type.render),type.render!==family)?(family={$$typeof:REACT_FORWARD_REF_TYPE,render:family},type.displayName!==void 0&&(family.displayName=type.displayName),family):type:family.current}function isCompatibleFamilyForHotReloading(fiber,element){if(resolveFamily===null)return!1;var prevType=fiber.elementType;element=element.type;var needsCompareFamilies=!1,$$typeofNextType=typeof element=="object"&&element!==null?element.$$typeof:null;switch(fiber.tag){case 1:typeof element=="function"&&(needsCompareFamilies=!0);break;case 0:(typeof element=="function"||$$typeofNextType===REACT_LAZY_TYPE)&&(needsCompareFamilies=!0);break;case 11:($$typeofNextType===REACT_FORWARD_REF_TYPE||$$typeofNextType===REACT_LAZY_TYPE)&&(needsCompareFamilies=!0);break;case 14:case 15:($$typeofNextType===REACT_MEMO_TYPE||$$typeofNextType===REACT_LAZY_TYPE)&&(needsCompareFamilies=!0);break;default:return!1}return!!(needsCompareFamilies&&(fiber=resolveFamily(prevType),fiber!==void 0&&fiber===resolveFamily(element)))}function markFailedErrorBoundaryForHotReloading(fiber){resolveFamily!==null&&typeof WeakSet=="function"&&(failedBoundaries===null&&(failedBoundaries=new WeakSet),failedBoundaries.add(fiber))}function scheduleFibersWithFamiliesRecursively(fiber,updatedFamilies,staleFamilies){var alternate=fiber.alternate,child=fiber.child,sibling=fiber.sibling,tag=fiber.tag,type=fiber.type,candidateType=null;switch(tag){case 0:case 15:case 1:candidateType=type;break;case 11:candidateType=type.render}if(resolveFamily===null)throw Error("Expected resolveFamily to be set during hot reload.");var needsRender=!1;type=!1,candidateType!==null&&(candidateType=resolveFamily(candidateType),candidateType!==void 0&&(staleFamilies.has(candidateType)?type=!0:updatedFamilies.has(candidateType)&&(tag===1?type=!0:needsRender=!0))),failedBoundaries!==null&&(failedBoundaries.has(fiber)||alternate!==null&&failedBoundaries.has(alternate))&&(type=!0),type&&(fiber._debugNeedsRemount=!0),(type||needsRender)&&(alternate=enqueueConcurrentRenderForLane(fiber,2),alternate!==null&&scheduleUpdateOnFiber(alternate,fiber,2)),child===null||type||scheduleFibersWithFamiliesRecursively(child,updatedFamilies,staleFamilies),sibling!==null&&scheduleFibersWithFamiliesRecursively(sibling,updatedFamilies,staleFamilies)}function FiberNode(tag,pendingProps,key,mode){this.tag=tag,this.key=key,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=pendingProps,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=mode,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null,this.actualDuration=-0,this.actualStartTime=-1.1,this.treeBaseDuration=this.selfBaseDuration=-0,this._debugTask=this._debugStack=this._debugOwner=this._debugInfo=null,this._debugNeedsRemount=!1,this._debugHookTypes=null,hasBadMapPolyfill||typeof Object.preventExtensions!="function"||Object.preventExtensions(this)}function shouldConstruct(Component){return Component=Component.prototype,!(!Component||!Component.isReactComponent)}function createWorkInProgress(current2,pendingProps){var workInProgress2=current2.alternate;switch(workInProgress2===null?(workInProgress2=createFiber(current2.tag,pendingProps,current2.key,current2.mode),workInProgress2.elementType=current2.elementType,workInProgress2.type=current2.type,workInProgress2.stateNode=current2.stateNode,workInProgress2._debugOwner=current2._debugOwner,workInProgress2._debugStack=current2._debugStack,workInProgress2._debugTask=current2._debugTask,workInProgress2._debugHookTypes=current2._debugHookTypes,workInProgress2.alternate=current2,current2.alternate=workInProgress2):(workInProgress2.pendingProps=pendingProps,workInProgress2.type=current2.type,workInProgress2.flags=0,workInProgress2.subtreeFlags=0,workInProgress2.deletions=null,workInProgress2.actualDuration=-0,workInProgress2.actualStartTime=-1.1),workInProgress2.flags=current2.flags&65011712,workInProgress2.childLanes=current2.childLanes,workInProgress2.lanes=current2.lanes,workInProgress2.child=current2.child,workInProgress2.memoizedProps=current2.memoizedProps,workInProgress2.memoizedState=current2.memoizedState,workInProgress2.updateQueue=current2.updateQueue,pendingProps=current2.dependencies,workInProgress2.dependencies=pendingProps===null?null:{lanes:pendingProps.lanes,firstContext:pendingProps.firstContext,_debugThenableState:pendingProps._debugThenableState},workInProgress2.sibling=current2.sibling,workInProgress2.index=current2.index,workInProgress2.ref=current2.ref,workInProgress2.refCleanup=current2.refCleanup,workInProgress2.selfBaseDuration=current2.selfBaseDuration,workInProgress2.treeBaseDuration=current2.treeBaseDuration,workInProgress2._debugInfo=current2._debugInfo,workInProgress2._debugNeedsRemount=current2._debugNeedsRemount,workInProgress2.tag){case 0:case 15:workInProgress2.type=resolveFunctionForHotReloading(current2.type);break;case 1:workInProgress2.type=resolveFunctionForHotReloading(current2.type);break;case 11:workInProgress2.type=resolveForwardRefForHotReloading(current2.type)}return workInProgress2}function resetWorkInProgress(workInProgress2,renderLanes2){workInProgress2.flags&=65011714;var current2=workInProgress2.alternate;return current2===null?(workInProgress2.childLanes=0,workInProgress2.lanes=renderLanes2,workInProgress2.child=null,workInProgress2.subtreeFlags=0,workInProgress2.memoizedProps=null,workInProgress2.memoizedState=null,workInProgress2.updateQueue=null,workInProgress2.dependencies=null,workInProgress2.stateNode=null,workInProgress2.selfBaseDuration=0,workInProgress2.treeBaseDuration=0):(workInProgress2.childLanes=current2.childLanes,workInProgress2.lanes=current2.lanes,workInProgress2.child=current2.child,workInProgress2.subtreeFlags=0,workInProgress2.deletions=null,workInProgress2.memoizedProps=current2.memoizedProps,workInProgress2.memoizedState=current2.memoizedState,workInProgress2.updateQueue=current2.updateQueue,workInProgress2.type=current2.type,renderLanes2=current2.dependencies,workInProgress2.dependencies=renderLanes2===null?null:{lanes:renderLanes2.lanes,firstContext:renderLanes2.firstContext,_debugThenableState:renderLanes2._debugThenableState},workInProgress2.selfBaseDuration=current2.selfBaseDuration,workInProgress2.treeBaseDuration=current2.treeBaseDuration),workInProgress2}function createFiberFromTypeAndProps(type,key,pendingProps,owner,mode,lanes){var fiberTag=0,resolvedType=type;if(typeof type=="function")shouldConstruct(type)&&(fiberTag=1),resolvedType=resolveFunctionForHotReloading(resolvedType);else if(typeof type=="string")fiberTag=getHostContext(),fiberTag=isHostHoistableType(type,pendingProps,fiberTag)?26:type==="html"||type==="head"||type==="body"?27:5;else a:switch(type){case REACT_ACTIVITY_TYPE:return key=createFiber(31,pendingProps,key,mode),key.elementType=REACT_ACTIVITY_TYPE,key.lanes=lanes,key;case REACT_FRAGMENT_TYPE:return createFiberFromFragment(pendingProps.children,mode,lanes,key);case REACT_STRICT_MODE_TYPE:fiberTag=8,mode|=StrictLegacyMode,mode|=StrictEffectsMode;break;case REACT_PROFILER_TYPE:return type=pendingProps,owner=mode,typeof type.id!="string"&&console.error('Profiler must specify an "id" of type `string` as a prop. Received the type `%s` instead.',typeof type.id),key=createFiber(12,type,key,owner|ProfileMode),key.elementType=REACT_PROFILER_TYPE,key.lanes=lanes,key.stateNode={effectDuration:0,passiveEffectDuration:0},key;case REACT_SUSPENSE_TYPE:return key=createFiber(13,pendingProps,key,mode),key.elementType=REACT_SUSPENSE_TYPE,key.lanes=lanes,key;case REACT_SUSPENSE_LIST_TYPE:return key=createFiber(19,pendingProps,key,mode),key.elementType=REACT_SUSPENSE_LIST_TYPE,key.lanes=lanes,key;default:if(typeof type=="object"&&type!==null)switch(type.$$typeof){case REACT_PROVIDER_TYPE:case REACT_CONTEXT_TYPE:fiberTag=10;break a;case REACT_CONSUMER_TYPE:fiberTag=9;break a;case REACT_FORWARD_REF_TYPE:fiberTag=11,resolvedType=resolveForwardRefForHotReloading(resolvedType);break a;case REACT_MEMO_TYPE:fiberTag=14;break a;case REACT_LAZY_TYPE:fiberTag=16,resolvedType=null;break a}resolvedType="",(type===void 0||typeof type=="object"&&type!==null&&Object.keys(type).length===0)&&(resolvedType+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports."),type===null?pendingProps="null":isArrayImpl(type)?pendingProps="array":type!==void 0&&type.$$typeof===REACT_ELEMENT_TYPE?(pendingProps="<"+(getComponentNameFromType(type.type)||"Unknown")+" />",resolvedType=" Did you accidentally export a JSX literal instead of a component?"):pendingProps=typeof type,(fiberTag=owner?getComponentNameFromOwner(owner):null)&&(resolvedType+=`
|
|
143
|
+
|
|
144
|
+
Check the render method of \``+fiberTag+"`."),fiberTag=29,pendingProps=Error("Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: "+(pendingProps+"."+resolvedType)),resolvedType=null}return key=createFiber(fiberTag,pendingProps,key,mode),key.elementType=type,key.type=resolvedType,key.lanes=lanes,key._debugOwner=owner,key}function createFiberFromElement(element,mode,lanes){return mode=createFiberFromTypeAndProps(element.type,element.key,element.props,element._owner,mode,lanes),mode._debugOwner=element._owner,mode._debugStack=element._debugStack,mode._debugTask=element._debugTask,mode}function createFiberFromFragment(elements,mode,lanes,key){return elements=createFiber(7,elements,key,mode),elements.lanes=lanes,elements}function createFiberFromText(content,mode,lanes){return content=createFiber(6,content,null,mode),content.lanes=lanes,content}function createFiberFromPortal(portal,mode,lanes){return mode=createFiber(4,portal.children!==null?portal.children:[],portal.key,mode),mode.lanes=lanes,mode.stateNode={containerInfo:portal.containerInfo,pendingChildren:null,implementation:portal.implementation},mode}function pushTreeFork(workInProgress2,totalChildren){warnIfNotHydrating(),forkStack[forkStackIndex++]=treeForkCount,forkStack[forkStackIndex++]=treeForkProvider,treeForkProvider=workInProgress2,treeForkCount=totalChildren}function pushTreeId(workInProgress2,totalChildren,index){warnIfNotHydrating(),idStack[idStackIndex++]=treeContextId,idStack[idStackIndex++]=treeContextOverflow,idStack[idStackIndex++]=treeContextProvider,treeContextProvider=workInProgress2;var baseIdWithLeadingBit=treeContextId;workInProgress2=treeContextOverflow;var baseLength=32-clz32(baseIdWithLeadingBit)-1;baseIdWithLeadingBit&=~(1<<baseLength),index+=1;var length=32-clz32(totalChildren)+baseLength;if(30<length){var numberOfOverflowBits=baseLength-baseLength%5;length=(baseIdWithLeadingBit&(1<<numberOfOverflowBits)-1).toString(32),baseIdWithLeadingBit>>=numberOfOverflowBits,baseLength-=numberOfOverflowBits,treeContextId=1<<32-clz32(totalChildren)+baseLength|index<<baseLength|baseIdWithLeadingBit,treeContextOverflow=length+workInProgress2}else treeContextId=1<<length|index<<baseLength|baseIdWithLeadingBit,treeContextOverflow=workInProgress2}function pushMaterializedTreeId(workInProgress2){warnIfNotHydrating(),workInProgress2.return!==null&&(pushTreeFork(workInProgress2,1),pushTreeId(workInProgress2,1,0))}function popTreeContext(workInProgress2){for(;workInProgress2===treeForkProvider;)treeForkProvider=forkStack[--forkStackIndex],forkStack[forkStackIndex]=null,treeForkCount=forkStack[--forkStackIndex],forkStack[forkStackIndex]=null;for(;workInProgress2===treeContextProvider;)treeContextProvider=idStack[--idStackIndex],idStack[idStackIndex]=null,treeContextOverflow=idStack[--idStackIndex],idStack[idStackIndex]=null,treeContextId=idStack[--idStackIndex],idStack[idStackIndex]=null}function warnIfNotHydrating(){isHydrating||console.error("Expected to be hydrating. This is a bug in React. Please file an issue.")}function buildHydrationDiffNode(fiber,distanceFromLeaf){if(fiber.return===null){if(hydrationDiffRootDEV===null)hydrationDiffRootDEV={fiber,children:[],serverProps:void 0,serverTail:[],distanceFromLeaf};else{if(hydrationDiffRootDEV.fiber!==fiber)throw Error("Saw multiple hydration diff roots in a pass. This is a bug in React.");hydrationDiffRootDEV.distanceFromLeaf>distanceFromLeaf&&(hydrationDiffRootDEV.distanceFromLeaf=distanceFromLeaf)}return hydrationDiffRootDEV}var siblings=buildHydrationDiffNode(fiber.return,distanceFromLeaf+1).children;return 0<siblings.length&&siblings[siblings.length-1].fiber===fiber?(siblings=siblings[siblings.length-1],siblings.distanceFromLeaf>distanceFromLeaf&&(siblings.distanceFromLeaf=distanceFromLeaf),siblings):(distanceFromLeaf={fiber,children:[],serverProps:void 0,serverTail:[],distanceFromLeaf},siblings.push(distanceFromLeaf),distanceFromLeaf)}function warnNonHydratedInstance(fiber,rejectedCandidate){didSuspendOrErrorDEV||(fiber=buildHydrationDiffNode(fiber,0),fiber.serverProps=null,rejectedCandidate!==null&&(rejectedCandidate=describeHydratableInstanceForDevWarnings(rejectedCandidate),fiber.serverTail.push(rejectedCandidate)))}function throwOnHydrationMismatch(fiber){var diff="",diffRoot=hydrationDiffRootDEV;throw diffRoot!==null&&(hydrationDiffRootDEV=null,diff=describeDiff(diffRoot)),queueHydrationError(createCapturedValueAtFiber(Error(`Hydration failed because the server rendered HTML didn't match the client. As a result this tree will be regenerated on the client. This can happen if a SSR-ed Client Component used:
|
|
145
|
+
|
|
146
|
+
- A server/client branch \`if (typeof window !== 'undefined')\`.
|
|
147
|
+
- Variable input such as \`Date.now()\` or \`Math.random()\` which changes each time it's called.
|
|
148
|
+
- Date formatting in a user's locale which doesn't match the server.
|
|
149
|
+
- External changing data without sending a snapshot of it along with the HTML.
|
|
150
|
+
- Invalid HTML tag nesting.
|
|
151
|
+
|
|
152
|
+
It can also happen if the client has a browser extension installed which messes with the HTML before React loaded.
|
|
153
|
+
|
|
154
|
+
https://react.dev/link/hydration-mismatch`+diff),fiber)),HydrationMismatchException}function prepareToHydrateHostInstance(fiber){var didHydrate=fiber.stateNode,type=fiber.type,props=fiber.memoizedProps;switch(didHydrate[internalInstanceKey]=fiber,didHydrate[internalPropsKey]=props,validatePropertiesInDevelopment(type,props),type){case"dialog":listenToNonDelegatedEvent("cancel",didHydrate),listenToNonDelegatedEvent("close",didHydrate);break;case"iframe":case"object":case"embed":listenToNonDelegatedEvent("load",didHydrate);break;case"video":case"audio":for(type=0;type<mediaEventTypes.length;type++)listenToNonDelegatedEvent(mediaEventTypes[type],didHydrate);break;case"source":listenToNonDelegatedEvent("error",didHydrate);break;case"img":case"image":case"link":listenToNonDelegatedEvent("error",didHydrate),listenToNonDelegatedEvent("load",didHydrate);break;case"details":listenToNonDelegatedEvent("toggle",didHydrate);break;case"input":checkControlledValueProps("input",props),listenToNonDelegatedEvent("invalid",didHydrate),validateInputProps(didHydrate,props),initInput(didHydrate,props.value,props.defaultValue,props.checked,props.defaultChecked,props.type,props.name,!0),track(didHydrate);break;case"option":validateOptionProps(didHydrate,props);break;case"select":checkControlledValueProps("select",props),listenToNonDelegatedEvent("invalid",didHydrate),validateSelectProps(didHydrate,props);break;case"textarea":checkControlledValueProps("textarea",props),listenToNonDelegatedEvent("invalid",didHydrate),validateTextareaProps(didHydrate,props),initTextarea(didHydrate,props.value,props.defaultValue,props.children),track(didHydrate)}type=props.children,typeof type!="string"&&typeof type!="number"&&typeof type!="bigint"||didHydrate.textContent===""+type||props.suppressHydrationWarning===!0||checkForUnmatchedText(didHydrate.textContent,type)?(props.popover!=null&&(listenToNonDelegatedEvent("beforetoggle",didHydrate),listenToNonDelegatedEvent("toggle",didHydrate)),props.onScroll!=null&&listenToNonDelegatedEvent("scroll",didHydrate),props.onScrollEnd!=null&&listenToNonDelegatedEvent("scrollend",didHydrate),props.onClick!=null&&(didHydrate.onclick=noop$1),didHydrate=!0):didHydrate=!1,didHydrate||throwOnHydrationMismatch(fiber)}function popToNextHostParent(fiber){for(hydrationParentFiber=fiber.return;hydrationParentFiber;)switch(hydrationParentFiber.tag){case 5:case 13:rootOrSingletonContext=!1;return;case 27:case 3:rootOrSingletonContext=!0;return;default:hydrationParentFiber=hydrationParentFiber.return}}function popHydrationState(fiber){if(fiber!==hydrationParentFiber)return!1;if(!isHydrating)return popToNextHostParent(fiber),isHydrating=!0,!1;var tag=fiber.tag,JSCompiler_temp;if((JSCompiler_temp=tag!==3&&tag!==27)&&((JSCompiler_temp=tag===5)&&(JSCompiler_temp=fiber.type,JSCompiler_temp=!(JSCompiler_temp!=="form"&&JSCompiler_temp!=="button")||shouldSetTextContent(fiber.type,fiber.memoizedProps)),JSCompiler_temp=!JSCompiler_temp),JSCompiler_temp&&nextHydratableInstance){for(JSCompiler_temp=nextHydratableInstance;JSCompiler_temp;){var diffNode=buildHydrationDiffNode(fiber,0),description=describeHydratableInstanceForDevWarnings(JSCompiler_temp);diffNode.serverTail.push(description),JSCompiler_temp=description.type==="Suspense"?getNextHydratableInstanceAfterSuspenseInstance(JSCompiler_temp):getNextHydratable(JSCompiler_temp.nextSibling)}throwOnHydrationMismatch(fiber)}if(popToNextHostParent(fiber),tag===13){if(fiber=fiber.memoizedState,fiber=fiber!==null?fiber.dehydrated:null,!fiber)throw Error("Expected to have a hydrated suspense instance. This error is likely caused by a bug in React. Please file an issue.");nextHydratableInstance=getNextHydratableInstanceAfterSuspenseInstance(fiber)}else tag===27?(tag=nextHydratableInstance,isSingletonScope(fiber.type)?(fiber=previousHydratableOnEnteringScopedSingleton,previousHydratableOnEnteringScopedSingleton=null,nextHydratableInstance=fiber):nextHydratableInstance=tag):nextHydratableInstance=hydrationParentFiber?getNextHydratable(fiber.stateNode.nextSibling):null;return!0}function resetHydrationState(){nextHydratableInstance=hydrationParentFiber=null,didSuspendOrErrorDEV=isHydrating=!1}function upgradeHydrationErrorsToRecoverable(){var queuedErrors=hydrationErrors;return queuedErrors!==null&&(workInProgressRootRecoverableErrors===null?workInProgressRootRecoverableErrors=queuedErrors:workInProgressRootRecoverableErrors.push.apply(workInProgressRootRecoverableErrors,queuedErrors),hydrationErrors=null),queuedErrors}function queueHydrationError(error){hydrationErrors===null?hydrationErrors=[error]:hydrationErrors.push(error)}function emitPendingHydrationWarnings(){var diffRoot=hydrationDiffRootDEV;if(diffRoot!==null){hydrationDiffRootDEV=null;for(var diff=describeDiff(diffRoot);0<diffRoot.children.length;)diffRoot=diffRoot.children[0];runWithFiberInDEV(diffRoot.fiber,function(){console.error(`A tree hydrated but some attributes of the server rendered HTML didn't match the client properties. This won't be patched up. This can happen if a SSR-ed Client Component used:
|
|
155
|
+
|
|
156
|
+
- A server/client branch \`if (typeof window !== 'undefined')\`.
|
|
157
|
+
- Variable input such as \`Date.now()\` or \`Math.random()\` which changes each time it's called.
|
|
158
|
+
- Date formatting in a user's locale which doesn't match the server.
|
|
159
|
+
- External changing data without sending a snapshot of it along with the HTML.
|
|
160
|
+
- Invalid HTML tag nesting.
|
|
161
|
+
|
|
162
|
+
It can also happen if the client has a browser extension installed which messes with the HTML before React loaded.
|
|
163
|
+
|
|
164
|
+
%s%s`,"https://react.dev/link/hydration-mismatch",diff)})}}function resetContextDependencies(){lastContextDependency=currentlyRenderingFiber$1=null,isDisallowedContextReadInDEV=!1}function pushProvider(providerFiber,context,nextValue){push(valueCursor,context._currentValue,providerFiber),context._currentValue=nextValue,push(rendererCursorDEV,context._currentRenderer,providerFiber),context._currentRenderer!==void 0&&context._currentRenderer!==null&&context._currentRenderer!==rendererSigil&&console.error("Detected multiple renderers concurrently rendering the same context provider. This is currently unsupported."),context._currentRenderer=rendererSigil}function popProvider(context,providerFiber){context._currentValue=valueCursor.current;var currentRenderer=rendererCursorDEV.current;pop(rendererCursorDEV,providerFiber),context._currentRenderer=currentRenderer,pop(valueCursor,providerFiber)}function scheduleContextWorkOnParentPath(parent,renderLanes2,propagationRoot){for(;parent!==null;){var alternate=parent.alternate;if((parent.childLanes&renderLanes2)!==renderLanes2?(parent.childLanes|=renderLanes2,alternate!==null&&(alternate.childLanes|=renderLanes2)):alternate!==null&&(alternate.childLanes&renderLanes2)!==renderLanes2&&(alternate.childLanes|=renderLanes2),parent===propagationRoot)break;parent=parent.return}parent!==propagationRoot&&console.error("Expected to find the propagation root when scheduling context work. This error is likely caused by a bug in React. Please file an issue.")}function propagateContextChanges(workInProgress2,contexts,renderLanes2,forcePropagateEntireTree){var fiber=workInProgress2.child;for(fiber!==null&&(fiber.return=workInProgress2);fiber!==null;){var list=fiber.dependencies;if(list!==null){var nextFiber=fiber.child;list=list.firstContext;a:for(;list!==null;){var dependency=list;list=fiber;for(var i=0;i<contexts.length;i++)if(dependency.context===contexts[i]){list.lanes|=renderLanes2,dependency=list.alternate,dependency!==null&&(dependency.lanes|=renderLanes2),scheduleContextWorkOnParentPath(list.return,renderLanes2,workInProgress2),forcePropagateEntireTree||(nextFiber=null);break a}list=dependency.next}}else if(fiber.tag===18){if(nextFiber=fiber.return,nextFiber===null)throw Error("We just came from a parent so we must have had a parent. This is a bug in React.");nextFiber.lanes|=renderLanes2,list=nextFiber.alternate,list!==null&&(list.lanes|=renderLanes2),scheduleContextWorkOnParentPath(nextFiber,renderLanes2,workInProgress2),nextFiber=null}else nextFiber=fiber.child;if(nextFiber!==null)nextFiber.return=fiber;else for(nextFiber=fiber;nextFiber!==null;){if(nextFiber===workInProgress2){nextFiber=null;break}if(fiber=nextFiber.sibling,fiber!==null){fiber.return=nextFiber.return,nextFiber=fiber;break}nextFiber=nextFiber.return}fiber=nextFiber}}function propagateParentContextChanges(current2,workInProgress2,renderLanes2,forcePropagateEntireTree){current2=null;for(var parent=workInProgress2,isInsidePropagationBailout=!1;parent!==null;){if(!isInsidePropagationBailout){if((parent.flags&524288)!==0)isInsidePropagationBailout=!0;else if((parent.flags&262144)!==0)break}if(parent.tag===10){var currentParent=parent.alternate;if(currentParent===null)throw Error("Should have a current fiber. This is a bug in React.");if(currentParent=currentParent.memoizedProps,currentParent!==null){var context=parent.type;objectIs(parent.pendingProps.value,currentParent.value)||(current2!==null?current2.push(context):current2=[context])}}else if(parent===hostTransitionProviderCursor.current){if(currentParent=parent.alternate,currentParent===null)throw Error("Should have a current fiber. This is a bug in React.");currentParent.memoizedState.memoizedState!==parent.memoizedState.memoizedState&&(current2!==null?current2.push(HostTransitionContext):current2=[HostTransitionContext])}parent=parent.return}current2!==null&&propagateContextChanges(workInProgress2,current2,renderLanes2,forcePropagateEntireTree),workInProgress2.flags|=262144}function checkIfContextChanged(currentDependencies){for(currentDependencies=currentDependencies.firstContext;currentDependencies!==null;){if(!objectIs(currentDependencies.context._currentValue,currentDependencies.memoizedValue))return!0;currentDependencies=currentDependencies.next}return!1}function prepareToReadContext(workInProgress2){currentlyRenderingFiber$1=workInProgress2,lastContextDependency=null,workInProgress2=workInProgress2.dependencies,workInProgress2!==null&&(workInProgress2.firstContext=null)}function readContext(context){return isDisallowedContextReadInDEV&&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()."),readContextForConsumer(currentlyRenderingFiber$1,context)}function readContextDuringReconciliation(consumer,context){return currentlyRenderingFiber$1===null&&prepareToReadContext(consumer),readContextForConsumer(consumer,context)}function readContextForConsumer(consumer,context){var value=context._currentValue;if(context={context,memoizedValue:value,next:null},lastContextDependency===null){if(consumer===null)throw 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().");lastContextDependency=context,consumer.dependencies={lanes:0,firstContext:context,_debugThenableState:null},consumer.flags|=524288}else lastContextDependency=lastContextDependency.next=context;return value}function createCache(){return{controller:new AbortControllerLocal,data:new Map,refCount:0}}function retainCache(cache){cache.controller.signal.aborted&&console.warn("A cache instance was retained after it was already freed. This likely indicates a bug in React."),cache.refCount++}function releaseCache(cache){cache.refCount--,0>cache.refCount&&console.warn("A cache instance was released after it was already freed. This likely indicates a bug in React."),cache.refCount===0&&scheduleCallback$2(NormalPriority,function(){cache.controller.abort()})}function pushNestedEffectDurations(){var prevEffectDuration=profilerEffectDuration;return profilerEffectDuration=0,prevEffectDuration}function popNestedEffectDurations(prevEffectDuration){var elapsedTime=profilerEffectDuration;return profilerEffectDuration=prevEffectDuration,elapsedTime}function bubbleNestedEffectDurations(prevEffectDuration){var elapsedTime=profilerEffectDuration;return profilerEffectDuration+=prevEffectDuration,elapsedTime}function startProfilerTimer(fiber){profilerStartTime=now(),0>fiber.actualStartTime&&(fiber.actualStartTime=profilerStartTime)}function stopProfilerTimerIfRunningAndRecordDuration(fiber){if(0<=profilerStartTime){var elapsedTime=now()-profilerStartTime;fiber.actualDuration+=elapsedTime,fiber.selfBaseDuration=elapsedTime,profilerStartTime=-1}}function stopProfilerTimerIfRunningAndRecordIncompleteDuration(fiber){if(0<=profilerStartTime){var elapsedTime=now()-profilerStartTime;fiber.actualDuration+=elapsedTime,profilerStartTime=-1}}function recordEffectDuration(){if(0<=profilerStartTime){var elapsedTime=now()-profilerStartTime;profilerStartTime=-1,profilerEffectDuration+=elapsedTime}}function startEffectTimer(){profilerStartTime=now()}function transferActualDuration(fiber){for(var child=fiber.child;child;)fiber.actualDuration+=child.actualDuration,child=child.sibling}function entangleAsyncAction(transition,thenable){if(currentEntangledListeners===null){var entangledListeners=currentEntangledListeners=[];currentEntangledPendingCount=0,currentEntangledLane=requestTransitionLane(),currentEntangledActionThenable={status:"pending",value:void 0,then:function(resolve){entangledListeners.push(resolve)}}}return currentEntangledPendingCount++,thenable.then(pingEngtangledActionScope,pingEngtangledActionScope),thenable}function pingEngtangledActionScope(){if(--currentEntangledPendingCount===0&¤tEntangledListeners!==null){currentEntangledActionThenable!==null&&(currentEntangledActionThenable.status="fulfilled");var listeners=currentEntangledListeners;currentEntangledListeners=null,currentEntangledLane=0,currentEntangledActionThenable=null;for(var i=0;i<listeners.length;i++)(0,listeners[i])()}}function chainThenableValue(thenable,result){var listeners=[],thenableWithOverride={status:"pending",value:null,reason:null,then:function(resolve){listeners.push(resolve)}};return thenable.then(function(){thenableWithOverride.status="fulfilled",thenableWithOverride.value=result;for(var i=0;i<listeners.length;i++)(0,listeners[i])(result)},function(error){for(thenableWithOverride.status="rejected",thenableWithOverride.reason=error,error=0;error<listeners.length;error++)(0,listeners[error])(void 0)}),thenableWithOverride}function peekCacheFromPool(){var cacheResumedFromPreviousRender=resumedCache.current;return cacheResumedFromPreviousRender!==null?cacheResumedFromPreviousRender:workInProgressRoot.pooledCache}function pushTransition(offscreenWorkInProgress,prevCachePool){prevCachePool===null?push(resumedCache,resumedCache.current,offscreenWorkInProgress):push(resumedCache,prevCachePool.pool,offscreenWorkInProgress)}function getSuspendedCache(){var cacheFromPool=peekCacheFromPool();return cacheFromPool===null?null:{parent:CacheContext._currentValue,pool:cacheFromPool}}function createThenableState(){return{didWarnAboutUncachedPromise:!1,thenables:[]}}function isThenableResolved(thenable){return thenable=thenable.status,thenable==="fulfilled"||thenable==="rejected"}function noop$3(){}function trackUsedThenable(thenableState2,thenable,index){ReactSharedInternals.actQueue!==null&&(ReactSharedInternals.didUsePromise=!0);var trackedThenables=thenableState2.thenables;switch(index=trackedThenables[index],index===void 0?trackedThenables.push(thenable):index!==thenable&&(thenableState2.didWarnAboutUncachedPromise||(thenableState2.didWarnAboutUncachedPromise=!0,console.error("A component was suspended by an uncached promise. Creating promises inside a Client Component or hook is not yet supported, except via a Suspense-compatible library or framework.")),thenable.then(noop$3,noop$3),thenable=index),thenable.status){case"fulfilled":return thenable.value;case"rejected":throw thenableState2=thenable.reason,checkIfUseWrappedInAsyncCatch(thenableState2),thenableState2;default:if(typeof thenable.status=="string")thenable.then(noop$3,noop$3);else{if(thenableState2=workInProgressRoot,thenableState2!==null&&100<thenableState2.shellSuspendCounter)throw Error("An unknown Component is an async Client Component. Only Server Components can be async at the moment. This error is often caused by accidentally adding `'use client'` to a module that was originally written for the server.");thenableState2=thenable,thenableState2.status="pending",thenableState2.then(function(fulfilledValue){if(thenable.status==="pending"){var fulfilledThenable=thenable;fulfilledThenable.status="fulfilled",fulfilledThenable.value=fulfilledValue}},function(error){if(thenable.status==="pending"){var rejectedThenable=thenable;rejectedThenable.status="rejected",rejectedThenable.reason=error}})}switch(thenable.status){case"fulfilled":return thenable.value;case"rejected":throw thenableState2=thenable.reason,checkIfUseWrappedInAsyncCatch(thenableState2),thenableState2}throw suspendedThenable=thenable,needsToResetSuspendedThenableDEV=!0,SuspenseException}}function getSuspendedThenable(){if(suspendedThenable===null)throw Error("Expected a suspended thenable. This is a bug in React. Please file an issue.");var thenable=suspendedThenable;return suspendedThenable=null,needsToResetSuspendedThenableDEV=!1,thenable}function checkIfUseWrappedInAsyncCatch(rejectedReason){if(rejectedReason===SuspenseException||rejectedReason===SuspenseActionException)throw Error("Hooks are not supported inside an async component. This error is often caused by accidentally adding `'use client'` to a module that was originally written for the server.")}function initializeUpdateQueue(fiber){fiber.updateQueue={baseState:fiber.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function cloneUpdateQueue(current2,workInProgress2){current2=current2.updateQueue,workInProgress2.updateQueue===current2&&(workInProgress2.updateQueue={baseState:current2.baseState,firstBaseUpdate:current2.firstBaseUpdate,lastBaseUpdate:current2.lastBaseUpdate,shared:current2.shared,callbacks:null})}function createUpdate(lane){return{lane,tag:UpdateState,payload:null,callback:null,next:null}}function enqueueUpdate(fiber,update,lane){var updateQueue=fiber.updateQueue;if(updateQueue===null)return null;if(updateQueue=updateQueue.shared,currentlyProcessingQueue===updateQueue&&!didWarnUpdateInsideUpdate){var componentName2=getComponentNameFromFiber(fiber);console.error(`An update (setState, replaceState, or forceUpdate) was scheduled from inside an update function. Update functions should be pure, with zero side-effects. Consider using componentDidUpdate or a callback.
|
|
165
|
+
|
|
166
|
+
Please update the following component: %s`,componentName2),didWarnUpdateInsideUpdate=!0}return(executionContext&RenderContext)!==NoContext?(componentName2=updateQueue.pending,componentName2===null?update.next=update:(update.next=componentName2.next,componentName2.next=update),updateQueue.pending=update,update=getRootForUpdatedFiber(fiber),markUpdateLaneFromFiberToRoot(fiber,null,lane),update):(enqueueUpdate$1(fiber,updateQueue,update,lane),getRootForUpdatedFiber(fiber))}function entangleTransitions(root3,fiber,lane){if(fiber=fiber.updateQueue,fiber!==null&&(fiber=fiber.shared,(lane&4194048)!==0)){var queueLanes=fiber.lanes;queueLanes&=root3.pendingLanes,lane|=queueLanes,fiber.lanes=lane,markRootEntangled(root3,lane)}}function enqueueCapturedUpdate(workInProgress2,capturedUpdate){var queue=workInProgress2.updateQueue,current2=workInProgress2.alternate;if(current2!==null&&(current2=current2.updateQueue,queue===current2)){var newFirst=null,newLast=null;if(queue=queue.firstBaseUpdate,queue!==null){do{var clone2={lane:queue.lane,tag:queue.tag,payload:queue.payload,callback:null,next:null};newLast===null?newFirst=newLast=clone2:newLast=newLast.next=clone2,queue=queue.next}while(queue!==null);newLast===null?newFirst=newLast=capturedUpdate:newLast=newLast.next=capturedUpdate}else newFirst=newLast=capturedUpdate;queue={baseState:current2.baseState,firstBaseUpdate:newFirst,lastBaseUpdate:newLast,shared:current2.shared,callbacks:current2.callbacks},workInProgress2.updateQueue=queue;return}workInProgress2=queue.lastBaseUpdate,workInProgress2===null?queue.firstBaseUpdate=capturedUpdate:workInProgress2.next=capturedUpdate,queue.lastBaseUpdate=capturedUpdate}function suspendIfUpdateReadFromEntangledAsyncAction(){if(didReadFromEntangledAsyncAction){var entangledActionThenable=currentEntangledActionThenable;if(entangledActionThenable!==null)throw entangledActionThenable}}function processUpdateQueue(workInProgress2,props,instance$jscomp$0,renderLanes2){didReadFromEntangledAsyncAction=!1;var queue=workInProgress2.updateQueue;hasForceUpdate=!1,currentlyProcessingQueue=queue.shared;var firstBaseUpdate=queue.firstBaseUpdate,lastBaseUpdate=queue.lastBaseUpdate,pendingQueue=queue.shared.pending;if(pendingQueue!==null){queue.shared.pending=null;var lastPendingUpdate=pendingQueue,firstPendingUpdate=lastPendingUpdate.next;lastPendingUpdate.next=null,lastBaseUpdate===null?firstBaseUpdate=firstPendingUpdate:lastBaseUpdate.next=firstPendingUpdate,lastBaseUpdate=lastPendingUpdate;var current2=workInProgress2.alternate;current2!==null&&(current2=current2.updateQueue,pendingQueue=current2.lastBaseUpdate,pendingQueue!==lastBaseUpdate&&(pendingQueue===null?current2.firstBaseUpdate=firstPendingUpdate:pendingQueue.next=firstPendingUpdate,current2.lastBaseUpdate=lastPendingUpdate))}if(firstBaseUpdate!==null){var newState=queue.baseState;lastBaseUpdate=0,current2=firstPendingUpdate=lastPendingUpdate=null,pendingQueue=firstBaseUpdate;do{var updateLane=pendingQueue.lane&-536870913,isHiddenUpdate=updateLane!==pendingQueue.lane;if(isHiddenUpdate?(workInProgressRootRenderLanes&updateLane)===updateLane:(renderLanes2&updateLane)===updateLane){updateLane!==0&&updateLane===currentEntangledLane&&(didReadFromEntangledAsyncAction=!0),current2!==null&&(current2=current2.next={lane:0,tag:pendingQueue.tag,payload:pendingQueue.payload,callback:null,next:null});a:{updateLane=workInProgress2;var partialState=pendingQueue,nextProps=props,instance=instance$jscomp$0;switch(partialState.tag){case ReplaceState:if(partialState=partialState.payload,typeof partialState=="function"){isDisallowedContextReadInDEV=!0;var nextState=partialState.call(instance,newState,nextProps);if(updateLane.mode&StrictLegacyMode){setIsStrictModeForDevtools(!0);try{partialState.call(instance,newState,nextProps)}finally{setIsStrictModeForDevtools(!1)}}isDisallowedContextReadInDEV=!1,newState=nextState;break a}newState=partialState;break a;case CaptureUpdate:updateLane.flags=updateLane.flags&-65537|128;case UpdateState:if(nextState=partialState.payload,typeof nextState=="function"){if(isDisallowedContextReadInDEV=!0,partialState=nextState.call(instance,newState,nextProps),updateLane.mode&StrictLegacyMode){setIsStrictModeForDevtools(!0);try{nextState.call(instance,newState,nextProps)}finally{setIsStrictModeForDevtools(!1)}}isDisallowedContextReadInDEV=!1}else partialState=nextState;if(partialState==null)break a;newState=assign({},newState,partialState);break a;case ForceUpdate:hasForceUpdate=!0}}updateLane=pendingQueue.callback,updateLane!==null&&(workInProgress2.flags|=64,isHiddenUpdate&&(workInProgress2.flags|=8192),isHiddenUpdate=queue.callbacks,isHiddenUpdate===null?queue.callbacks=[updateLane]:isHiddenUpdate.push(updateLane))}else isHiddenUpdate={lane:updateLane,tag:pendingQueue.tag,payload:pendingQueue.payload,callback:pendingQueue.callback,next:null},current2===null?(firstPendingUpdate=current2=isHiddenUpdate,lastPendingUpdate=newState):current2=current2.next=isHiddenUpdate,lastBaseUpdate|=updateLane;if(pendingQueue=pendingQueue.next,pendingQueue===null){if(pendingQueue=queue.shared.pending,pendingQueue===null)break;isHiddenUpdate=pendingQueue,pendingQueue=isHiddenUpdate.next,isHiddenUpdate.next=null,queue.lastBaseUpdate=isHiddenUpdate,queue.shared.pending=null}}while(!0);current2===null&&(lastPendingUpdate=newState),queue.baseState=lastPendingUpdate,queue.firstBaseUpdate=firstPendingUpdate,queue.lastBaseUpdate=current2,firstBaseUpdate===null&&(queue.shared.lanes=0),workInProgressRootSkippedLanes|=lastBaseUpdate,workInProgress2.lanes=lastBaseUpdate,workInProgress2.memoizedState=newState}currentlyProcessingQueue=null}function callCallback(callback,context){if(typeof callback!="function")throw Error("Invalid argument passed as callback. Expected a function. Instead received: "+callback);callback.call(context)}function commitHiddenCallbacks(updateQueue,context){var hiddenCallbacks=updateQueue.shared.hiddenCallbacks;if(hiddenCallbacks!==null)for(updateQueue.shared.hiddenCallbacks=null,updateQueue=0;updateQueue<hiddenCallbacks.length;updateQueue++)callCallback(hiddenCallbacks[updateQueue],context)}function commitCallbacks(updateQueue,context){var callbacks=updateQueue.callbacks;if(callbacks!==null)for(updateQueue.callbacks=null,updateQueue=0;updateQueue<callbacks.length;updateQueue++)callCallback(callbacks[updateQueue],context)}function pushHiddenContext(fiber,context){var prevEntangledRenderLanes=entangledRenderLanes;push(prevEntangledRenderLanesCursor,prevEntangledRenderLanes,fiber),push(currentTreeHiddenStackCursor,context,fiber),entangledRenderLanes=prevEntangledRenderLanes|context.baseLanes}function reuseHiddenContextOnStack(fiber){push(prevEntangledRenderLanesCursor,entangledRenderLanes,fiber),push(currentTreeHiddenStackCursor,currentTreeHiddenStackCursor.current,fiber)}function popHiddenContext(fiber){entangledRenderLanes=prevEntangledRenderLanesCursor.current,pop(currentTreeHiddenStackCursor,fiber),pop(prevEntangledRenderLanesCursor,fiber)}function mountHookTypesDev(){var hookName=currentHookNameInDev;hookTypesDev===null?hookTypesDev=[hookName]:hookTypesDev.push(hookName)}function updateHookTypesDev(){var hookName=currentHookNameInDev;if(hookTypesDev!==null&&(hookTypesUpdateIndexDev++,hookTypesDev[hookTypesUpdateIndexDev]!==hookName)){var componentName2=getComponentNameFromFiber(currentlyRenderingFiber);if(!didWarnAboutMismatchedHooksForComponent.has(componentName2)&&(didWarnAboutMismatchedHooksForComponent.add(componentName2),hookTypesDev!==null)){for(var table="",i=0;i<=hookTypesUpdateIndexDev;i++){var oldHookName=hookTypesDev[i],newHookName=i===hookTypesUpdateIndexDev?hookName:oldHookName;for(oldHookName=i+1+". "+oldHookName;30>oldHookName.length;)oldHookName+=" ";oldHookName+=newHookName+`
|
|
167
|
+
`,table+=oldHookName}console.error(`React has detected a change in the order of Hooks called by %s. This will lead to bugs and errors if not fixed. For more information, read the Rules of Hooks: https://react.dev/link/rules-of-hooks
|
|
168
|
+
|
|
169
|
+
Previous render Next render
|
|
170
|
+
------------------------------------------------------
|
|
171
|
+
%s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
172
|
+
`,componentName2,table)}}}function checkDepsAreArrayDev(deps){deps==null||isArrayImpl(deps)||console.error("%s received a final argument that is not an array (instead, received `%s`). When specified, the final argument must be an array.",currentHookNameInDev,typeof deps)}function warnOnUseFormStateInDev(){var componentName2=getComponentNameFromFiber(currentlyRenderingFiber);didWarnAboutUseFormState.has(componentName2)||(didWarnAboutUseFormState.add(componentName2),console.error("ReactDOM.useFormState has been renamed to React.useActionState. Please update %s to use React.useActionState.",componentName2))}function throwInvalidHookError(){throw 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:
|
|
173
|
+
1. You might have mismatching versions of React and the renderer (such as React DOM)
|
|
174
|
+
2. You might be breaking the Rules of Hooks
|
|
175
|
+
3. You might have more than one copy of React in the same app
|
|
176
|
+
See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`)}function areHookInputsEqual(nextDeps,prevDeps){if(ignorePreviousDependencies)return!1;if(prevDeps===null)return console.error("%s received a final argument during this render, but not during the previous render. Even though the final argument is optional, its type cannot change between renders.",currentHookNameInDev),!1;nextDeps.length!==prevDeps.length&&console.error(`The final argument passed to %s changed size between renders. The order and size of this array must remain constant.
|
|
177
|
+
|
|
178
|
+
Previous: %s
|
|
179
|
+
Incoming: %s`,currentHookNameInDev,"["+prevDeps.join(", ")+"]","["+nextDeps.join(", ")+"]");for(var i=0;i<prevDeps.length&&i<nextDeps.length;i++)if(!objectIs(nextDeps[i],prevDeps[i]))return!1;return!0}function renderWithHooks(current2,workInProgress2,Component,props,secondArg,nextRenderLanes){renderLanes=nextRenderLanes,currentlyRenderingFiber=workInProgress2,hookTypesDev=current2!==null?current2._debugHookTypes:null,hookTypesUpdateIndexDev=-1,ignorePreviousDependencies=current2!==null&¤t2.type!==workInProgress2.type,(Object.prototype.toString.call(Component)==="[object AsyncFunction]"||Object.prototype.toString.call(Component)==="[object AsyncGeneratorFunction]")&&(nextRenderLanes=getComponentNameFromFiber(currentlyRenderingFiber),didWarnAboutAsyncClientComponent.has(nextRenderLanes)||(didWarnAboutAsyncClientComponent.add(nextRenderLanes),console.error("%s is an async Client Component. Only Server Components can be async at the moment. This error is often caused by accidentally adding `'use client'` to a module that was originally written for the server.",nextRenderLanes===null?"An unknown Component":"<"+nextRenderLanes+">"))),workInProgress2.memoizedState=null,workInProgress2.updateQueue=null,workInProgress2.lanes=0,ReactSharedInternals.H=current2!==null&¤t2.memoizedState!==null?HooksDispatcherOnUpdateInDEV:hookTypesDev!==null?HooksDispatcherOnMountWithHookTypesInDEV:HooksDispatcherOnMountInDEV,shouldDoubleInvokeUserFnsInHooksDEV=nextRenderLanes=(workInProgress2.mode&StrictLegacyMode)!==NoMode;var children=callComponentInDEV(Component,props,secondArg);if(shouldDoubleInvokeUserFnsInHooksDEV=!1,didScheduleRenderPhaseUpdateDuringThisPass&&(children=renderWithHooksAgain(workInProgress2,Component,props,secondArg)),nextRenderLanes){setIsStrictModeForDevtools(!0);try{children=renderWithHooksAgain(workInProgress2,Component,props,secondArg)}finally{setIsStrictModeForDevtools(!1)}}return finishRenderingHooks(current2,workInProgress2),children}function finishRenderingHooks(current2,workInProgress2){workInProgress2._debugHookTypes=hookTypesDev,workInProgress2.dependencies===null?thenableState$1!==null&&(workInProgress2.dependencies={lanes:0,firstContext:null,_debugThenableState:thenableState$1}):workInProgress2.dependencies._debugThenableState=thenableState$1,ReactSharedInternals.H=ContextOnlyDispatcher;var didRenderTooFewHooks=currentHook!==null&¤tHook.next!==null;if(renderLanes=0,hookTypesDev=currentHookNameInDev=workInProgressHook=currentHook=currentlyRenderingFiber=null,hookTypesUpdateIndexDev=-1,current2!==null&&(current2.flags&65011712)!==(workInProgress2.flags&65011712)&&console.error("Internal React error: Expected static flag was missing. Please notify the React team."),didScheduleRenderPhaseUpdate=!1,thenableIndexCounter$1=0,thenableState$1=null,didRenderTooFewHooks)throw Error("Rendered fewer hooks than expected. This may be caused by an accidental early return statement.");current2===null||didReceiveUpdate||(current2=current2.dependencies,current2!==null&&checkIfContextChanged(current2)&&(didReceiveUpdate=!0)),needsToResetSuspendedThenableDEV?(needsToResetSuspendedThenableDEV=!1,current2=!0):current2=!1,current2&&(workInProgress2=getComponentNameFromFiber(workInProgress2)||"Unknown",didWarnAboutUseWrappedInTryCatch.has(workInProgress2)||didWarnAboutAsyncClientComponent.has(workInProgress2)||(didWarnAboutUseWrappedInTryCatch.add(workInProgress2),console.error("`use` was called from inside a try/catch block. This is not allowed and can lead to unexpected behavior. To handle errors triggered by `use`, wrap your component in a error boundary.")))}function renderWithHooksAgain(workInProgress2,Component,props,secondArg){currentlyRenderingFiber=workInProgress2;var numberOfReRenders=0;do{if(didScheduleRenderPhaseUpdateDuringThisPass&&(thenableState$1=null),thenableIndexCounter$1=0,didScheduleRenderPhaseUpdateDuringThisPass=!1,numberOfReRenders>=RE_RENDER_LIMIT)throw Error("Too many re-renders. React limits the number of renders to prevent an infinite loop.");if(numberOfReRenders+=1,ignorePreviousDependencies=!1,workInProgressHook=currentHook=null,workInProgress2.updateQueue!=null){var children=workInProgress2.updateQueue;children.lastEffect=null,children.events=null,children.stores=null,children.memoCache!=null&&(children.memoCache.index=0)}hookTypesUpdateIndexDev=-1,ReactSharedInternals.H=HooksDispatcherOnRerenderInDEV,children=callComponentInDEV(Component,props,secondArg)}while(didScheduleRenderPhaseUpdateDuringThisPass);return children}function TransitionAwareHostComponent(){var dispatcher=ReactSharedInternals.H,maybeThenable=dispatcher.useState()[0];return maybeThenable=typeof maybeThenable.then=="function"?useThenable(maybeThenable):maybeThenable,dispatcher=dispatcher.useState()[0],(currentHook!==null?currentHook.memoizedState:null)!==dispatcher&&(currentlyRenderingFiber.flags|=1024),maybeThenable}function checkDidRenderIdHook(){var didRenderIdHook=localIdCounter!==0;return localIdCounter=0,didRenderIdHook}function bailoutHooks(current2,workInProgress2,lanes){workInProgress2.updateQueue=current2.updateQueue,workInProgress2.flags=(workInProgress2.mode&StrictEffectsMode)!==NoMode?workInProgress2.flags&-402655237:workInProgress2.flags&-2053,current2.lanes&=~lanes}function resetHooksOnUnwind(workInProgress2){if(didScheduleRenderPhaseUpdate){for(workInProgress2=workInProgress2.memoizedState;workInProgress2!==null;){var queue=workInProgress2.queue;queue!==null&&(queue.pending=null),workInProgress2=workInProgress2.next}didScheduleRenderPhaseUpdate=!1}renderLanes=0,hookTypesDev=workInProgressHook=currentHook=currentlyRenderingFiber=null,hookTypesUpdateIndexDev=-1,currentHookNameInDev=null,didScheduleRenderPhaseUpdateDuringThisPass=!1,thenableIndexCounter$1=localIdCounter=0,thenableState$1=null}function mountWorkInProgressHook(){var hook={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return workInProgressHook===null?currentlyRenderingFiber.memoizedState=workInProgressHook=hook:workInProgressHook=workInProgressHook.next=hook,workInProgressHook}function updateWorkInProgressHook(){if(currentHook===null){var nextCurrentHook=currentlyRenderingFiber.alternate;nextCurrentHook=nextCurrentHook!==null?nextCurrentHook.memoizedState:null}else nextCurrentHook=currentHook.next;var nextWorkInProgressHook=workInProgressHook===null?currentlyRenderingFiber.memoizedState:workInProgressHook.next;if(nextWorkInProgressHook!==null)workInProgressHook=nextWorkInProgressHook,currentHook=nextCurrentHook;else{if(nextCurrentHook===null)throw currentlyRenderingFiber.alternate===null?Error("Update hook called on initial render. This is likely a bug in React. Please file an issue."):Error("Rendered more hooks than during the previous render.");currentHook=nextCurrentHook,nextCurrentHook={memoizedState:currentHook.memoizedState,baseState:currentHook.baseState,baseQueue:currentHook.baseQueue,queue:currentHook.queue,next:null},workInProgressHook===null?currentlyRenderingFiber.memoizedState=workInProgressHook=nextCurrentHook:workInProgressHook=workInProgressHook.next=nextCurrentHook}return workInProgressHook}function createFunctionComponentUpdateQueue(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function useThenable(thenable){var index=thenableIndexCounter$1;return thenableIndexCounter$1+=1,thenableState$1===null&&(thenableState$1=createThenableState()),thenable=trackUsedThenable(thenableState$1,thenable,index),index=currentlyRenderingFiber,(workInProgressHook===null?index.memoizedState:workInProgressHook.next)===null&&(index=index.alternate,ReactSharedInternals.H=index!==null&&index.memoizedState!==null?HooksDispatcherOnUpdateInDEV:HooksDispatcherOnMountInDEV),thenable}function use(usable){if(usable!==null&&typeof usable=="object"){if(typeof usable.then=="function")return useThenable(usable);if(usable.$$typeof===REACT_CONTEXT_TYPE)return readContext(usable)}throw Error("An unsupported type was passed to use(): "+String(usable))}function useMemoCache(size){var memoCache=null,updateQueue=currentlyRenderingFiber.updateQueue;if(updateQueue!==null&&(memoCache=updateQueue.memoCache),memoCache==null){var current2=currentlyRenderingFiber.alternate;current2!==null&&(current2=current2.updateQueue,current2!==null&&(current2=current2.memoCache,current2!=null&&(memoCache={data:current2.data.map(function(array){return array.slice()}),index:0})))}if(memoCache==null&&(memoCache={data:[],index:0}),updateQueue===null&&(updateQueue=createFunctionComponentUpdateQueue(),currentlyRenderingFiber.updateQueue=updateQueue),updateQueue.memoCache=memoCache,updateQueue=memoCache.data[memoCache.index],updateQueue===void 0||ignorePreviousDependencies)for(updateQueue=memoCache.data[memoCache.index]=Array(size),current2=0;current2<size;current2++)updateQueue[current2]=REACT_MEMO_CACHE_SENTINEL;else updateQueue.length!==size&&console.error("Expected a constant size argument for each invocation of useMemoCache. The previous cache was allocated with size %s but size %s was requested.",updateQueue.length,size);return memoCache.index++,updateQueue}function basicStateReducer(state,action){return typeof action=="function"?action(state):action}function mountReducer(reducer,initialArg,init){var hook=mountWorkInProgressHook();if(init!==void 0){var initialState=init(initialArg);if(shouldDoubleInvokeUserFnsInHooksDEV){setIsStrictModeForDevtools(!0);try{init(initialArg)}finally{setIsStrictModeForDevtools(!1)}}}else initialState=initialArg;return hook.memoizedState=hook.baseState=initialState,reducer={pending:null,lanes:0,dispatch:null,lastRenderedReducer:reducer,lastRenderedState:initialState},hook.queue=reducer,reducer=reducer.dispatch=dispatchReducerAction.bind(null,currentlyRenderingFiber,reducer),[hook.memoizedState,reducer]}function updateReducer(reducer){var hook=updateWorkInProgressHook();return updateReducerImpl(hook,currentHook,reducer)}function updateReducerImpl(hook,current2,reducer){var queue=hook.queue;if(queue===null)throw Error("Should have a queue. You are likely calling Hooks conditionally, which is not allowed. (https://react.dev/link/invalid-hook-call)");queue.lastRenderedReducer=reducer;var baseQueue=hook.baseQueue,pendingQueue=queue.pending;if(pendingQueue!==null){if(baseQueue!==null){var baseFirst=baseQueue.next;baseQueue.next=pendingQueue.next,pendingQueue.next=baseFirst}current2.baseQueue!==baseQueue&&console.error("Internal error: Expected work-in-progress queue to be a clone. This is a bug in React."),current2.baseQueue=baseQueue=pendingQueue,queue.pending=null}if(pendingQueue=hook.baseState,baseQueue===null)hook.memoizedState=pendingQueue;else{current2=baseQueue.next;var newBaseQueueFirst=baseFirst=null,newBaseQueueLast=null,update=current2,didReadFromEntangledAsyncAction2=!1;do{var updateLane=update.lane&-536870913;if(updateLane!==update.lane?(workInProgressRootRenderLanes&updateLane)===updateLane:(renderLanes&updateLane)===updateLane){var revertLane=update.revertLane;if(revertLane===0)newBaseQueueLast!==null&&(newBaseQueueLast=newBaseQueueLast.next={lane:0,revertLane:0,action:update.action,hasEagerState:update.hasEagerState,eagerState:update.eagerState,next:null}),updateLane===currentEntangledLane&&(didReadFromEntangledAsyncAction2=!0);else if((renderLanes&revertLane)===revertLane){update=update.next,revertLane===currentEntangledLane&&(didReadFromEntangledAsyncAction2=!0);continue}else updateLane={lane:0,revertLane:update.revertLane,action:update.action,hasEagerState:update.hasEagerState,eagerState:update.eagerState,next:null},newBaseQueueLast===null?(newBaseQueueFirst=newBaseQueueLast=updateLane,baseFirst=pendingQueue):newBaseQueueLast=newBaseQueueLast.next=updateLane,currentlyRenderingFiber.lanes|=revertLane,workInProgressRootSkippedLanes|=revertLane;updateLane=update.action,shouldDoubleInvokeUserFnsInHooksDEV&&reducer(pendingQueue,updateLane),pendingQueue=update.hasEagerState?update.eagerState:reducer(pendingQueue,updateLane)}else revertLane={lane:updateLane,revertLane:update.revertLane,action:update.action,hasEagerState:update.hasEagerState,eagerState:update.eagerState,next:null},newBaseQueueLast===null?(newBaseQueueFirst=newBaseQueueLast=revertLane,baseFirst=pendingQueue):newBaseQueueLast=newBaseQueueLast.next=revertLane,currentlyRenderingFiber.lanes|=updateLane,workInProgressRootSkippedLanes|=updateLane;update=update.next}while(update!==null&&update!==current2);if(newBaseQueueLast===null?baseFirst=pendingQueue:newBaseQueueLast.next=newBaseQueueFirst,!objectIs(pendingQueue,hook.memoizedState)&&(didReceiveUpdate=!0,didReadFromEntangledAsyncAction2&&(reducer=currentEntangledActionThenable,reducer!==null)))throw reducer;hook.memoizedState=pendingQueue,hook.baseState=baseFirst,hook.baseQueue=newBaseQueueLast,queue.lastRenderedState=pendingQueue}return baseQueue===null&&(queue.lanes=0),[hook.memoizedState,queue.dispatch]}function rerenderReducer(reducer){var hook=updateWorkInProgressHook(),queue=hook.queue;if(queue===null)throw Error("Should have a queue. You are likely calling Hooks conditionally, which is not allowed. (https://react.dev/link/invalid-hook-call)");queue.lastRenderedReducer=reducer;var dispatch=queue.dispatch,lastRenderPhaseUpdate=queue.pending,newState=hook.memoizedState;if(lastRenderPhaseUpdate!==null){queue.pending=null;var update=lastRenderPhaseUpdate=lastRenderPhaseUpdate.next;do newState=reducer(newState,update.action),update=update.next;while(update!==lastRenderPhaseUpdate);objectIs(newState,hook.memoizedState)||(didReceiveUpdate=!0),hook.memoizedState=newState,hook.baseQueue===null&&(hook.baseState=newState),queue.lastRenderedState=newState}return[newState,dispatch]}function mountSyncExternalStore(subscribe,getSnapshot,getServerSnapshot){var fiber=currentlyRenderingFiber,hook=mountWorkInProgressHook();if(isHydrating){if(getServerSnapshot===void 0)throw Error("Missing getServerSnapshot, which is required for server-rendered content. Will revert to client rendering.");var nextSnapshot=getServerSnapshot();didWarnUncachedGetSnapshot||nextSnapshot===getServerSnapshot()||(console.error("The result of getServerSnapshot should be cached to avoid an infinite loop"),didWarnUncachedGetSnapshot=!0)}else{if(nextSnapshot=getSnapshot(),didWarnUncachedGetSnapshot||(getServerSnapshot=getSnapshot(),objectIs(nextSnapshot,getServerSnapshot)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),didWarnUncachedGetSnapshot=!0)),workInProgressRoot===null)throw Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");(workInProgressRootRenderLanes&124)!==0||pushStoreConsistencyCheck(fiber,getSnapshot,nextSnapshot)}return hook.memoizedState=nextSnapshot,getServerSnapshot={value:nextSnapshot,getSnapshot},hook.queue=getServerSnapshot,mountEffect(subscribeToStore.bind(null,fiber,getServerSnapshot,subscribe),[subscribe]),fiber.flags|=2048,pushSimpleEffect(HasEffect|Passive,createEffectInstance(),updateStoreInstance.bind(null,fiber,getServerSnapshot,nextSnapshot,getSnapshot),null),nextSnapshot}function updateSyncExternalStore(subscribe,getSnapshot,getServerSnapshot){var fiber=currentlyRenderingFiber,hook=updateWorkInProgressHook(),isHydrating$jscomp$0=isHydrating;if(isHydrating$jscomp$0){if(getServerSnapshot===void 0)throw Error("Missing getServerSnapshot, which is required for server-rendered content. Will revert to client rendering.");getServerSnapshot=getServerSnapshot()}else if(getServerSnapshot=getSnapshot(),!didWarnUncachedGetSnapshot){var cachedSnapshot=getSnapshot();objectIs(getServerSnapshot,cachedSnapshot)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),didWarnUncachedGetSnapshot=!0)}(cachedSnapshot=!objectIs((currentHook||hook).memoizedState,getServerSnapshot))&&(hook.memoizedState=getServerSnapshot,didReceiveUpdate=!0),hook=hook.queue;var create2=subscribeToStore.bind(null,fiber,hook,subscribe);if(updateEffectImpl(2048,Passive,create2,[subscribe]),hook.getSnapshot!==getSnapshot||cachedSnapshot||workInProgressHook!==null&&workInProgressHook.memoizedState.tag&HasEffect){if(fiber.flags|=2048,pushSimpleEffect(HasEffect|Passive,createEffectInstance(),updateStoreInstance.bind(null,fiber,hook,getServerSnapshot,getSnapshot),null),workInProgressRoot===null)throw Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");isHydrating$jscomp$0||(renderLanes&124)!==0||pushStoreConsistencyCheck(fiber,getSnapshot,getServerSnapshot)}return getServerSnapshot}function pushStoreConsistencyCheck(fiber,getSnapshot,renderedSnapshot){fiber.flags|=16384,fiber={getSnapshot,value:renderedSnapshot},getSnapshot=currentlyRenderingFiber.updateQueue,getSnapshot===null?(getSnapshot=createFunctionComponentUpdateQueue(),currentlyRenderingFiber.updateQueue=getSnapshot,getSnapshot.stores=[fiber]):(renderedSnapshot=getSnapshot.stores,renderedSnapshot===null?getSnapshot.stores=[fiber]:renderedSnapshot.push(fiber))}function updateStoreInstance(fiber,inst,nextSnapshot,getSnapshot){inst.value=nextSnapshot,inst.getSnapshot=getSnapshot,checkIfSnapshotChanged(inst)&&forceStoreRerender(fiber)}function subscribeToStore(fiber,inst,subscribe){return subscribe(function(){checkIfSnapshotChanged(inst)&&forceStoreRerender(fiber)})}function checkIfSnapshotChanged(inst){var latestGetSnapshot=inst.getSnapshot;inst=inst.value;try{var nextValue=latestGetSnapshot();return!objectIs(inst,nextValue)}catch{return!0}}function forceStoreRerender(fiber){var root3=enqueueConcurrentRenderForLane(fiber,2);root3!==null&&scheduleUpdateOnFiber(root3,fiber,2)}function mountStateImpl(initialState){var hook=mountWorkInProgressHook();if(typeof initialState=="function"){var initialStateInitializer=initialState;if(initialState=initialStateInitializer(),shouldDoubleInvokeUserFnsInHooksDEV){setIsStrictModeForDevtools(!0);try{initialStateInitializer()}finally{setIsStrictModeForDevtools(!1)}}}return hook.memoizedState=hook.baseState=initialState,hook.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:basicStateReducer,lastRenderedState:initialState},hook}function mountState(initialState){initialState=mountStateImpl(initialState);var queue=initialState.queue,dispatch=dispatchSetState.bind(null,currentlyRenderingFiber,queue);return queue.dispatch=dispatch,[initialState.memoizedState,dispatch]}function mountOptimistic(passthrough){var hook=mountWorkInProgressHook();hook.memoizedState=hook.baseState=passthrough;var queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return hook.queue=queue,hook=dispatchOptimisticSetState.bind(null,currentlyRenderingFiber,!0,queue),queue.dispatch=hook,[passthrough,hook]}function updateOptimistic(passthrough,reducer){var hook=updateWorkInProgressHook();return updateOptimisticImpl(hook,currentHook,passthrough,reducer)}function updateOptimisticImpl(hook,current2,passthrough,reducer){return hook.baseState=passthrough,updateReducerImpl(hook,currentHook,typeof reducer=="function"?reducer:basicStateReducer)}function rerenderOptimistic(passthrough,reducer){var hook=updateWorkInProgressHook();return currentHook!==null?updateOptimisticImpl(hook,currentHook,passthrough,reducer):(hook.baseState=passthrough,[passthrough,hook.queue.dispatch])}function dispatchActionState(fiber,actionQueue,setPendingState,setState,payload){if(isRenderPhaseUpdate(fiber))throw Error("Cannot update form state while rendering.");if(fiber=actionQueue.action,fiber!==null){var actionNode={payload,action:fiber,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(listener){actionNode.listeners.push(listener)}};ReactSharedInternals.T!==null?setPendingState(!0):actionNode.isTransition=!1,setState(actionNode),setPendingState=actionQueue.pending,setPendingState===null?(actionNode.next=actionQueue.pending=actionNode,runActionStateAction(actionQueue,actionNode)):(actionNode.next=setPendingState.next,actionQueue.pending=setPendingState.next=actionNode)}}function runActionStateAction(actionQueue,node){var action=node.action,payload=node.payload,prevState=actionQueue.state;if(node.isTransition){var prevTransition=ReactSharedInternals.T,currentTransition={};ReactSharedInternals.T=currentTransition,ReactSharedInternals.T._updatedFibers=new Set;try{var returnValue=action(prevState,payload),onStartTransitionFinish=ReactSharedInternals.S;onStartTransitionFinish!==null&&onStartTransitionFinish(currentTransition,returnValue),handleActionReturnValue(actionQueue,node,returnValue)}catch(error){onActionError(actionQueue,node,error)}finally{ReactSharedInternals.T=prevTransition,prevTransition===null&¤tTransition._updatedFibers&&(actionQueue=currentTransition._updatedFibers.size,currentTransition._updatedFibers.clear(),10<actionQueue&&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."))}}else try{currentTransition=action(prevState,payload),handleActionReturnValue(actionQueue,node,currentTransition)}catch(error$4){onActionError(actionQueue,node,error$4)}}function handleActionReturnValue(actionQueue,node,returnValue){returnValue!==null&&typeof returnValue=="object"&&typeof returnValue.then=="function"?(returnValue.then(function(nextState){onActionSuccess(actionQueue,node,nextState)},function(error){return onActionError(actionQueue,node,error)}),node.isTransition||console.error("An async function with useActionState was called outside of a transition. This is likely not what you intended (for example, isPending will not update correctly). Either call the returned function inside startTransition, or pass it to an `action` or `formAction` prop.")):onActionSuccess(actionQueue,node,returnValue)}function onActionSuccess(actionQueue,actionNode,nextState){actionNode.status="fulfilled",actionNode.value=nextState,notifyActionListeners(actionNode),actionQueue.state=nextState,actionNode=actionQueue.pending,actionNode!==null&&(nextState=actionNode.next,nextState===actionNode?actionQueue.pending=null:(nextState=nextState.next,actionNode.next=nextState,runActionStateAction(actionQueue,nextState)))}function onActionError(actionQueue,actionNode,error){var last=actionQueue.pending;if(actionQueue.pending=null,last!==null){last=last.next;do actionNode.status="rejected",actionNode.reason=error,notifyActionListeners(actionNode),actionNode=actionNode.next;while(actionNode!==last)}actionQueue.action=null}function notifyActionListeners(actionNode){actionNode=actionNode.listeners;for(var i=0;i<actionNode.length;i++)(0,actionNode[i])()}function actionStateReducer(oldState,newState){return newState}function mountActionState(action,initialStateProp){if(isHydrating){var ssrFormState=workInProgressRoot.formState;if(ssrFormState!==null){a:{var isMatching=currentlyRenderingFiber;if(isHydrating){if(nextHydratableInstance){b:{for(var markerInstance=nextHydratableInstance,inRootOrSingleton=rootOrSingletonContext;markerInstance.nodeType!==8;){if(!inRootOrSingleton){markerInstance=null;break b}if(markerInstance=getNextHydratable(markerInstance.nextSibling),markerInstance===null){markerInstance=null;break b}}inRootOrSingleton=markerInstance.data,markerInstance=inRootOrSingleton===FORM_STATE_IS_MATCHING||inRootOrSingleton===FORM_STATE_IS_NOT_MATCHING?markerInstance:null}if(markerInstance){nextHydratableInstance=getNextHydratable(markerInstance.nextSibling),isMatching=markerInstance.data===FORM_STATE_IS_MATCHING;break a}}throwOnHydrationMismatch(isMatching)}isMatching=!1}isMatching&&(initialStateProp=ssrFormState[0])}}return ssrFormState=mountWorkInProgressHook(),ssrFormState.memoizedState=ssrFormState.baseState=initialStateProp,isMatching={pending:null,lanes:0,dispatch:null,lastRenderedReducer:actionStateReducer,lastRenderedState:initialStateProp},ssrFormState.queue=isMatching,ssrFormState=dispatchSetState.bind(null,currentlyRenderingFiber,isMatching),isMatching.dispatch=ssrFormState,isMatching=mountStateImpl(!1),inRootOrSingleton=dispatchOptimisticSetState.bind(null,currentlyRenderingFiber,!1,isMatching.queue),isMatching=mountWorkInProgressHook(),markerInstance={state:initialStateProp,dispatch:null,action,pending:null},isMatching.queue=markerInstance,ssrFormState=dispatchActionState.bind(null,currentlyRenderingFiber,markerInstance,inRootOrSingleton,ssrFormState),markerInstance.dispatch=ssrFormState,isMatching.memoizedState=action,[initialStateProp,ssrFormState,!1]}function updateActionState(action){var stateHook=updateWorkInProgressHook();return updateActionStateImpl(stateHook,currentHook,action)}function updateActionStateImpl(stateHook,currentStateHook,action){if(currentStateHook=updateReducerImpl(stateHook,currentStateHook,actionStateReducer)[0],stateHook=updateReducer(basicStateReducer)[0],typeof currentStateHook=="object"&¤tStateHook!==null&&typeof currentStateHook.then=="function")try{var state=useThenable(currentStateHook)}catch(x){throw x===SuspenseException?SuspenseActionException:x}else state=currentStateHook;currentStateHook=updateWorkInProgressHook();var actionQueue=currentStateHook.queue,dispatch=actionQueue.dispatch;return action!==currentStateHook.memoizedState&&(currentlyRenderingFiber.flags|=2048,pushSimpleEffect(HasEffect|Passive,createEffectInstance(),actionStateActionEffect.bind(null,actionQueue,action),null)),[state,dispatch,stateHook]}function actionStateActionEffect(actionQueue,action){actionQueue.action=action}function rerenderActionState(action){var stateHook=updateWorkInProgressHook(),currentStateHook=currentHook;if(currentStateHook!==null)return updateActionStateImpl(stateHook,currentStateHook,action);updateWorkInProgressHook(),stateHook=stateHook.memoizedState,currentStateHook=updateWorkInProgressHook();var dispatch=currentStateHook.queue.dispatch;return currentStateHook.memoizedState=action,[stateHook,dispatch,!1]}function pushSimpleEffect(tag,inst,create2,createDeps){return tag={tag,create:create2,deps:createDeps,inst,next:null},inst=currentlyRenderingFiber.updateQueue,inst===null&&(inst=createFunctionComponentUpdateQueue(),currentlyRenderingFiber.updateQueue=inst),create2=inst.lastEffect,create2===null?inst.lastEffect=tag.next=tag:(createDeps=create2.next,create2.next=tag,tag.next=createDeps,inst.lastEffect=tag),tag}function createEffectInstance(){return{destroy:void 0,resource:void 0}}function mountRef(initialValue){var hook=mountWorkInProgressHook();return initialValue={current:initialValue},hook.memoizedState=initialValue}function mountEffectImpl(fiberFlags,hookFlags,create2,createDeps){var hook=mountWorkInProgressHook();createDeps=createDeps===void 0?null:createDeps,currentlyRenderingFiber.flags|=fiberFlags,hook.memoizedState=pushSimpleEffect(HasEffect|hookFlags,createEffectInstance(),create2,createDeps)}function updateEffectImpl(fiberFlags,hookFlags,create2,deps){var hook=updateWorkInProgressHook();deps=deps===void 0?null:deps;var inst=hook.memoizedState.inst;currentHook!==null&&deps!==null&&areHookInputsEqual(deps,currentHook.memoizedState.deps)?hook.memoizedState=pushSimpleEffect(hookFlags,inst,create2,deps):(currentlyRenderingFiber.flags|=fiberFlags,hook.memoizedState=pushSimpleEffect(HasEffect|hookFlags,inst,create2,deps))}function mountEffect(create2,createDeps){(currentlyRenderingFiber.mode&StrictEffectsMode)!==NoMode&&(currentlyRenderingFiber.mode&NoStrictPassiveEffectsMode)===NoMode?mountEffectImpl(276826112,Passive,create2,createDeps):mountEffectImpl(8390656,Passive,create2,createDeps)}function mountLayoutEffect(create2,deps){var fiberFlags=4194308;return(currentlyRenderingFiber.mode&StrictEffectsMode)!==NoMode&&(fiberFlags|=134217728),mountEffectImpl(fiberFlags,Layout,create2,deps)}function imperativeHandleEffect(create2,ref){if(typeof ref=="function"){create2=create2();var refCleanup=ref(create2);return function(){typeof refCleanup=="function"?refCleanup():ref(null)}}if(ref!=null)return ref.hasOwnProperty("current")||console.error("Expected useImperativeHandle() first argument to either be a ref callback or React.createRef() object. Instead received: %s.","an object with keys {"+Object.keys(ref).join(", ")+"}"),create2=create2(),ref.current=create2,function(){ref.current=null}}function mountImperativeHandle(ref,create2,deps){typeof create2!="function"&&console.error("Expected useImperativeHandle() second argument to be a function that creates a handle. Instead received: %s.",create2!==null?typeof create2:"null"),deps=deps!=null?deps.concat([ref]):null;var fiberFlags=4194308;(currentlyRenderingFiber.mode&StrictEffectsMode)!==NoMode&&(fiberFlags|=134217728),mountEffectImpl(fiberFlags,Layout,imperativeHandleEffect.bind(null,create2,ref),deps)}function updateImperativeHandle(ref,create2,deps){typeof create2!="function"&&console.error("Expected useImperativeHandle() second argument to be a function that creates a handle. Instead received: %s.",create2!==null?typeof create2:"null"),deps=deps!=null?deps.concat([ref]):null,updateEffectImpl(4,Layout,imperativeHandleEffect.bind(null,create2,ref),deps)}function mountCallback(callback,deps){return mountWorkInProgressHook().memoizedState=[callback,deps===void 0?null:deps],callback}function updateCallback(callback,deps){var hook=updateWorkInProgressHook();deps=deps===void 0?null:deps;var prevState=hook.memoizedState;return deps!==null&&areHookInputsEqual(deps,prevState[1])?prevState[0]:(hook.memoizedState=[callback,deps],callback)}function mountMemo(nextCreate,deps){var hook=mountWorkInProgressHook();deps=deps===void 0?null:deps;var nextValue=nextCreate();if(shouldDoubleInvokeUserFnsInHooksDEV){setIsStrictModeForDevtools(!0);try{nextCreate()}finally{setIsStrictModeForDevtools(!1)}}return hook.memoizedState=[nextValue,deps],nextValue}function updateMemo(nextCreate,deps){var hook=updateWorkInProgressHook();deps=deps===void 0?null:deps;var prevState=hook.memoizedState;if(deps!==null&&areHookInputsEqual(deps,prevState[1]))return prevState[0];if(prevState=nextCreate(),shouldDoubleInvokeUserFnsInHooksDEV){setIsStrictModeForDevtools(!0);try{nextCreate()}finally{setIsStrictModeForDevtools(!1)}}return hook.memoizedState=[prevState,deps],prevState}function mountDeferredValue(value,initialValue){var hook=mountWorkInProgressHook();return mountDeferredValueImpl(hook,value,initialValue)}function updateDeferredValue(value,initialValue){var hook=updateWorkInProgressHook();return updateDeferredValueImpl(hook,currentHook.memoizedState,value,initialValue)}function rerenderDeferredValue(value,initialValue){var hook=updateWorkInProgressHook();return currentHook===null?mountDeferredValueImpl(hook,value,initialValue):updateDeferredValueImpl(hook,currentHook.memoizedState,value,initialValue)}function mountDeferredValueImpl(hook,value,initialValue){return initialValue===void 0||(renderLanes&1073741824)!==0?hook.memoizedState=value:(hook.memoizedState=initialValue,hook=requestDeferredLane(),currentlyRenderingFiber.lanes|=hook,workInProgressRootSkippedLanes|=hook,initialValue)}function updateDeferredValueImpl(hook,prevValue,value,initialValue){return objectIs(value,prevValue)?value:currentTreeHiddenStackCursor.current!==null?(hook=mountDeferredValueImpl(hook,value,initialValue),objectIs(hook,prevValue)||(didReceiveUpdate=!0),hook):(renderLanes&42)===0?(didReceiveUpdate=!0,hook.memoizedState=value):(hook=requestDeferredLane(),currentlyRenderingFiber.lanes|=hook,workInProgressRootSkippedLanes|=hook,prevValue)}function startTransition(fiber,queue,pendingState,finishedState,callback){var previousPriority=ReactDOMSharedInternals.p;ReactDOMSharedInternals.p=previousPriority!==0&&previousPriority<ContinuousEventPriority?previousPriority:ContinuousEventPriority;var prevTransition=ReactSharedInternals.T,currentTransition={};ReactSharedInternals.T=currentTransition,dispatchOptimisticSetState(fiber,!1,queue,pendingState),currentTransition._updatedFibers=new Set;try{var returnValue=callback(),onStartTransitionFinish=ReactSharedInternals.S;if(onStartTransitionFinish!==null&&onStartTransitionFinish(currentTransition,returnValue),returnValue!==null&&typeof returnValue=="object"&&typeof returnValue.then=="function"){var thenableForFinishedState=chainThenableValue(returnValue,finishedState);dispatchSetStateInternal(fiber,queue,thenableForFinishedState,requestUpdateLane(fiber))}else dispatchSetStateInternal(fiber,queue,finishedState,requestUpdateLane(fiber))}catch(error){dispatchSetStateInternal(fiber,queue,{then:function(){},status:"rejected",reason:error},requestUpdateLane(fiber))}finally{ReactDOMSharedInternals.p=previousPriority,ReactSharedInternals.T=prevTransition,prevTransition===null&¤tTransition._updatedFibers&&(fiber=currentTransition._updatedFibers.size,currentTransition._updatedFibers.clear(),10<fiber&&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."))}}function startHostTransition(formFiber,pendingState,action,formData){if(formFiber.tag!==5)throw Error("Expected the form instance to be a HostComponent. This is a bug in React.");var queue=ensureFormComponentIsStateful(formFiber).queue;startTransition(formFiber,queue,pendingState,NotPendingTransition,action===null?noop$2:function(){return requestFormReset$1(formFiber),action(formData)})}function ensureFormComponentIsStateful(formFiber){var existingStateHook=formFiber.memoizedState;if(existingStateHook!==null)return existingStateHook;existingStateHook={memoizedState:NotPendingTransition,baseState:NotPendingTransition,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:basicStateReducer,lastRenderedState:NotPendingTransition},next:null};var initialResetState={};return existingStateHook.next={memoizedState:initialResetState,baseState:initialResetState,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:basicStateReducer,lastRenderedState:initialResetState},next:null},formFiber.memoizedState=existingStateHook,formFiber=formFiber.alternate,formFiber!==null&&(formFiber.memoizedState=existingStateHook),existingStateHook}function requestFormReset$1(formFiber){ReactSharedInternals.T===null&&console.error("requestFormReset was called outside a transition or action. To fix, move to an action, or wrap with startTransition.");var resetStateQueue=ensureFormComponentIsStateful(formFiber).next.queue;dispatchSetStateInternal(formFiber,resetStateQueue,{},requestUpdateLane(formFiber))}function mountTransition(){var stateHook=mountStateImpl(!1);return stateHook=startTransition.bind(null,currentlyRenderingFiber,stateHook.queue,!0,!1),mountWorkInProgressHook().memoizedState=stateHook,[!1,stateHook]}function updateTransition(){var booleanOrThenable=updateReducer(basicStateReducer)[0],start=updateWorkInProgressHook().memoizedState;return[typeof booleanOrThenable=="boolean"?booleanOrThenable:useThenable(booleanOrThenable),start]}function rerenderTransition(){var booleanOrThenable=rerenderReducer(basicStateReducer)[0],start=updateWorkInProgressHook().memoizedState;return[typeof booleanOrThenable=="boolean"?booleanOrThenable:useThenable(booleanOrThenable),start]}function useHostTransitionStatus(){return readContext(HostTransitionContext)}function mountId(){var hook=mountWorkInProgressHook(),identifierPrefix=workInProgressRoot.identifierPrefix;if(isHydrating){var treeId=treeContextOverflow,idWithLeadingBit=treeContextId;treeId=(idWithLeadingBit&~(1<<32-clz32(idWithLeadingBit)-1)).toString(32)+treeId,identifierPrefix="«"+identifierPrefix+"R"+treeId,treeId=localIdCounter++,0<treeId&&(identifierPrefix+="H"+treeId.toString(32)),identifierPrefix+="»"}else treeId=globalClientIdCounter++,identifierPrefix="«"+identifierPrefix+"r"+treeId.toString(32)+"»";return hook.memoizedState=identifierPrefix}function mountRefresh(){return mountWorkInProgressHook().memoizedState=refreshCache.bind(null,currentlyRenderingFiber)}function refreshCache(fiber,seedKey){for(var provider=fiber.return;provider!==null;){switch(provider.tag){case 24:case 3:var lane=requestUpdateLane(provider);fiber=createUpdate(lane);var root3=enqueueUpdate(provider,fiber,lane);root3!==null&&(scheduleUpdateOnFiber(root3,provider,lane),entangleTransitions(root3,provider,lane)),provider=createCache(),seedKey!=null&&root3!==null&&console.error("The seed argument is not enabled outside experimental channels."),fiber.payload={cache:provider};return}provider=provider.return}}function dispatchReducerAction(fiber,queue,action){var args=arguments;typeof args[3]=="function"&&console.error("State updates from the useState() and useReducer() Hooks don't support the second callback argument. To execute a side effect after rendering, declare it in the component body with useEffect()."),args=requestUpdateLane(fiber);var update={lane:args,revertLane:0,action,hasEagerState:!1,eagerState:null,next:null};isRenderPhaseUpdate(fiber)?enqueueRenderPhaseUpdate(queue,update):(update=enqueueConcurrentHookUpdate(fiber,queue,update,args),update!==null&&(scheduleUpdateOnFiber(update,fiber,args),entangleTransitionUpdate(update,queue,args))),markStateUpdateScheduled(fiber,args)}function dispatchSetState(fiber,queue,action){var args=arguments;typeof args[3]=="function"&&console.error("State updates from the useState() and useReducer() Hooks don't support the second callback argument. To execute a side effect after rendering, declare it in the component body with useEffect()."),args=requestUpdateLane(fiber),dispatchSetStateInternal(fiber,queue,action,args),markStateUpdateScheduled(fiber,args)}function dispatchSetStateInternal(fiber,queue,action,lane){var update={lane,revertLane:0,action,hasEagerState:!1,eagerState:null,next:null};if(isRenderPhaseUpdate(fiber))enqueueRenderPhaseUpdate(queue,update);else{var alternate=fiber.alternate;if(fiber.lanes===0&&(alternate===null||alternate.lanes===0)&&(alternate=queue.lastRenderedReducer,alternate!==null)){var prevDispatcher=ReactSharedInternals.H;ReactSharedInternals.H=InvalidNestedHooksDispatcherOnUpdateInDEV;try{var currentState=queue.lastRenderedState,eagerState=alternate(currentState,action);if(update.hasEagerState=!0,update.eagerState=eagerState,objectIs(eagerState,currentState))return enqueueUpdate$1(fiber,queue,update,0),workInProgressRoot===null&&finishQueueingConcurrentUpdates(),!1}catch{}finally{ReactSharedInternals.H=prevDispatcher}}if(action=enqueueConcurrentHookUpdate(fiber,queue,update,lane),action!==null)return scheduleUpdateOnFiber(action,fiber,lane),entangleTransitionUpdate(action,queue,lane),!0}return!1}function dispatchOptimisticSetState(fiber,throwIfDuringRender,queue,action){if(ReactSharedInternals.T===null&¤tEntangledLane===0&&console.error("An optimistic state update occurred outside a transition or action. To fix, move the update to an action, or wrap with startTransition."),action={lane:2,revertLane:requestTransitionLane(),action,hasEagerState:!1,eagerState:null,next:null},isRenderPhaseUpdate(fiber)){if(throwIfDuringRender)throw Error("Cannot update optimistic state while rendering.");console.error("Cannot call startTransition while rendering.")}else throwIfDuringRender=enqueueConcurrentHookUpdate(fiber,queue,action,2),throwIfDuringRender!==null&&scheduleUpdateOnFiber(throwIfDuringRender,fiber,2);markStateUpdateScheduled(fiber,2)}function isRenderPhaseUpdate(fiber){var alternate=fiber.alternate;return fiber===currentlyRenderingFiber||alternate!==null&&alternate===currentlyRenderingFiber}function enqueueRenderPhaseUpdate(queue,update){didScheduleRenderPhaseUpdateDuringThisPass=didScheduleRenderPhaseUpdate=!0;var pending=queue.pending;pending===null?update.next=update:(update.next=pending.next,pending.next=update),queue.pending=update}function entangleTransitionUpdate(root3,queue,lane){if((lane&4194048)!==0){var queueLanes=queue.lanes;queueLanes&=root3.pendingLanes,lane|=queueLanes,queue.lanes=lane,markRootEntangled(root3,lane)}}function pushDebugInfo(debugInfo){var previousDebugInfo=currentDebugInfo;return debugInfo!=null&&(currentDebugInfo=previousDebugInfo===null?debugInfo:previousDebugInfo.concat(debugInfo)),previousDebugInfo}function validateFragmentProps(element,fiber,returnFiber){for(var keys=Object.keys(element.props),i=0;i<keys.length;i++){var key=keys[i];if(key!=="children"&&key!=="key"){fiber===null&&(fiber=createFiberFromElement(element,returnFiber.mode,0),fiber._debugInfo=currentDebugInfo,fiber.return=returnFiber),runWithFiberInDEV(fiber,function(erroredKey){console.error("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",erroredKey)},key);break}}}function unwrapThenable(thenable){var index=thenableIndexCounter;return thenableIndexCounter+=1,thenableState===null&&(thenableState=createThenableState()),trackUsedThenable(thenableState,thenable,index)}function coerceRef(workInProgress2,element){element=element.props.ref,workInProgress2.ref=element!==void 0?element:null}function throwOnInvalidObjectType(returnFiber,newChild){throw newChild.$$typeof===REACT_LEGACY_ELEMENT_TYPE?Error(`A React Element from an older version of React was rendered. This is not supported. It can happen if:
|
|
180
|
+
- Multiple copies of the "react" package is used.
|
|
181
|
+
- A library pre-bundled an old copy of "react" or "react/jsx-runtime".
|
|
182
|
+
- A compiler tries to "inline" JSX instead of using the runtime.`):(returnFiber=Object.prototype.toString.call(newChild),Error("Objects are not valid as a React child (found: "+(returnFiber==="[object Object]"?"object with keys {"+Object.keys(newChild).join(", ")+"}":returnFiber)+"). If you meant to render a collection of children, use an array instead."))}function warnOnFunctionType(returnFiber,invalidChild){var parentName=getComponentNameFromFiber(returnFiber)||"Component";ownerHasFunctionTypeWarning[parentName]||(ownerHasFunctionTypeWarning[parentName]=!0,invalidChild=invalidChild.displayName||invalidChild.name||"Component",returnFiber.tag===3?console.error(`Functions are not valid as a React child. This may happen if you return %s instead of <%s /> from render. Or maybe you meant to call this function rather than return it.
|
|
183
|
+
root.render(%s)`,invalidChild,invalidChild,invalidChild):console.error(`Functions are not valid as a React child. This may happen if you return %s instead of <%s /> from render. Or maybe you meant to call this function rather than return it.
|
|
184
|
+
<%s>{%s}</%s>`,invalidChild,invalidChild,parentName,invalidChild,parentName))}function warnOnSymbolType(returnFiber,invalidChild){var parentName=getComponentNameFromFiber(returnFiber)||"Component";ownerHasSymbolTypeWarning[parentName]||(ownerHasSymbolTypeWarning[parentName]=!0,invalidChild=String(invalidChild),returnFiber.tag===3?console.error(`Symbols are not valid as a React child.
|
|
185
|
+
root.render(%s)`,invalidChild):console.error(`Symbols are not valid as a React child.
|
|
186
|
+
<%s>%s</%s>`,parentName,invalidChild,parentName))}function createChildReconciler(shouldTrackSideEffects){function deleteChild(returnFiber,childToDelete){if(shouldTrackSideEffects){var deletions=returnFiber.deletions;deletions===null?(returnFiber.deletions=[childToDelete],returnFiber.flags|=16):deletions.push(childToDelete)}}function deleteRemainingChildren(returnFiber,currentFirstChild){if(!shouldTrackSideEffects)return null;for(;currentFirstChild!==null;)deleteChild(returnFiber,currentFirstChild),currentFirstChild=currentFirstChild.sibling;return null}function mapRemainingChildren(currentFirstChild){for(var existingChildren=new Map;currentFirstChild!==null;)currentFirstChild.key!==null?existingChildren.set(currentFirstChild.key,currentFirstChild):existingChildren.set(currentFirstChild.index,currentFirstChild),currentFirstChild=currentFirstChild.sibling;return existingChildren}function useFiber(fiber,pendingProps){return fiber=createWorkInProgress(fiber,pendingProps),fiber.index=0,fiber.sibling=null,fiber}function placeChild(newFiber,lastPlacedIndex,newIndex){return newFiber.index=newIndex,shouldTrackSideEffects?(newIndex=newFiber.alternate,newIndex!==null?(newIndex=newIndex.index,newIndex<lastPlacedIndex?(newFiber.flags|=67108866,lastPlacedIndex):newIndex):(newFiber.flags|=67108866,lastPlacedIndex)):(newFiber.flags|=1048576,lastPlacedIndex)}function placeSingleChild(newFiber){return shouldTrackSideEffects&&newFiber.alternate===null&&(newFiber.flags|=67108866),newFiber}function updateTextNode(returnFiber,current2,textContent,lanes){return current2===null||current2.tag!==6?(current2=createFiberFromText(textContent,returnFiber.mode,lanes),current2.return=returnFiber,current2._debugOwner=returnFiber,current2._debugTask=returnFiber._debugTask,current2._debugInfo=currentDebugInfo,current2):(current2=useFiber(current2,textContent),current2.return=returnFiber,current2._debugInfo=currentDebugInfo,current2)}function updateElement(returnFiber,current2,element,lanes){var elementType=element.type;return elementType===REACT_FRAGMENT_TYPE?(current2=updateFragment(returnFiber,current2,element.props.children,lanes,element.key),validateFragmentProps(element,current2,returnFiber),current2):current2!==null&&(current2.elementType===elementType||isCompatibleFamilyForHotReloading(current2,element)||typeof elementType=="object"&&elementType!==null&&elementType.$$typeof===REACT_LAZY_TYPE&&callLazyInitInDEV(elementType)===current2.type)?(current2=useFiber(current2,element.props),coerceRef(current2,element),current2.return=returnFiber,current2._debugOwner=element._owner,current2._debugInfo=currentDebugInfo,current2):(current2=createFiberFromElement(element,returnFiber.mode,lanes),coerceRef(current2,element),current2.return=returnFiber,current2._debugInfo=currentDebugInfo,current2)}function updatePortal(returnFiber,current2,portal,lanes){return current2===null||current2.tag!==4||current2.stateNode.containerInfo!==portal.containerInfo||current2.stateNode.implementation!==portal.implementation?(current2=createFiberFromPortal(portal,returnFiber.mode,lanes),current2.return=returnFiber,current2._debugInfo=currentDebugInfo,current2):(current2=useFiber(current2,portal.children||[]),current2.return=returnFiber,current2._debugInfo=currentDebugInfo,current2)}function updateFragment(returnFiber,current2,fragment,lanes,key){return current2===null||current2.tag!==7?(current2=createFiberFromFragment(fragment,returnFiber.mode,lanes,key),current2.return=returnFiber,current2._debugOwner=returnFiber,current2._debugTask=returnFiber._debugTask,current2._debugInfo=currentDebugInfo,current2):(current2=useFiber(current2,fragment),current2.return=returnFiber,current2._debugInfo=currentDebugInfo,current2)}function createChild(returnFiber,newChild,lanes){if(typeof newChild=="string"&&newChild!==""||typeof newChild=="number"||typeof newChild=="bigint")return newChild=createFiberFromText(""+newChild,returnFiber.mode,lanes),newChild.return=returnFiber,newChild._debugOwner=returnFiber,newChild._debugTask=returnFiber._debugTask,newChild._debugInfo=currentDebugInfo,newChild;if(typeof newChild=="object"&&newChild!==null){switch(newChild.$$typeof){case REACT_ELEMENT_TYPE:return lanes=createFiberFromElement(newChild,returnFiber.mode,lanes),coerceRef(lanes,newChild),lanes.return=returnFiber,returnFiber=pushDebugInfo(newChild._debugInfo),lanes._debugInfo=currentDebugInfo,currentDebugInfo=returnFiber,lanes;case REACT_PORTAL_TYPE:return newChild=createFiberFromPortal(newChild,returnFiber.mode,lanes),newChild.return=returnFiber,newChild._debugInfo=currentDebugInfo,newChild;case REACT_LAZY_TYPE:var _prevDebugInfo=pushDebugInfo(newChild._debugInfo);return newChild=callLazyInitInDEV(newChild),returnFiber=createChild(returnFiber,newChild,lanes),currentDebugInfo=_prevDebugInfo,returnFiber}if(isArrayImpl(newChild)||getIteratorFn(newChild))return lanes=createFiberFromFragment(newChild,returnFiber.mode,lanes,null),lanes.return=returnFiber,lanes._debugOwner=returnFiber,lanes._debugTask=returnFiber._debugTask,returnFiber=pushDebugInfo(newChild._debugInfo),lanes._debugInfo=currentDebugInfo,currentDebugInfo=returnFiber,lanes;if(typeof newChild.then=="function")return _prevDebugInfo=pushDebugInfo(newChild._debugInfo),returnFiber=createChild(returnFiber,unwrapThenable(newChild),lanes),currentDebugInfo=_prevDebugInfo,returnFiber;if(newChild.$$typeof===REACT_CONTEXT_TYPE)return createChild(returnFiber,readContextDuringReconciliation(returnFiber,newChild),lanes);throwOnInvalidObjectType(returnFiber,newChild)}return typeof newChild=="function"&&warnOnFunctionType(returnFiber,newChild),typeof newChild=="symbol"&&warnOnSymbolType(returnFiber,newChild),null}function updateSlot(returnFiber,oldFiber,newChild,lanes){var key=oldFiber!==null?oldFiber.key:null;if(typeof newChild=="string"&&newChild!==""||typeof newChild=="number"||typeof newChild=="bigint")return key!==null?null:updateTextNode(returnFiber,oldFiber,""+newChild,lanes);if(typeof newChild=="object"&&newChild!==null){switch(newChild.$$typeof){case REACT_ELEMENT_TYPE:return newChild.key===key?(key=pushDebugInfo(newChild._debugInfo),returnFiber=updateElement(returnFiber,oldFiber,newChild,lanes),currentDebugInfo=key,returnFiber):null;case REACT_PORTAL_TYPE:return newChild.key===key?updatePortal(returnFiber,oldFiber,newChild,lanes):null;case REACT_LAZY_TYPE:return key=pushDebugInfo(newChild._debugInfo),newChild=callLazyInitInDEV(newChild),returnFiber=updateSlot(returnFiber,oldFiber,newChild,lanes),currentDebugInfo=key,returnFiber}if(isArrayImpl(newChild)||getIteratorFn(newChild))return key!==null?null:(key=pushDebugInfo(newChild._debugInfo),returnFiber=updateFragment(returnFiber,oldFiber,newChild,lanes,null),currentDebugInfo=key,returnFiber);if(typeof newChild.then=="function")return key=pushDebugInfo(newChild._debugInfo),returnFiber=updateSlot(returnFiber,oldFiber,unwrapThenable(newChild),lanes),currentDebugInfo=key,returnFiber;if(newChild.$$typeof===REACT_CONTEXT_TYPE)return updateSlot(returnFiber,oldFiber,readContextDuringReconciliation(returnFiber,newChild),lanes);throwOnInvalidObjectType(returnFiber,newChild)}return typeof newChild=="function"&&warnOnFunctionType(returnFiber,newChild),typeof newChild=="symbol"&&warnOnSymbolType(returnFiber,newChild),null}function updateFromMap(existingChildren,returnFiber,newIdx,newChild,lanes){if(typeof newChild=="string"&&newChild!==""||typeof newChild=="number"||typeof newChild=="bigint")return existingChildren=existingChildren.get(newIdx)||null,updateTextNode(returnFiber,existingChildren,""+newChild,lanes);if(typeof newChild=="object"&&newChild!==null){switch(newChild.$$typeof){case REACT_ELEMENT_TYPE:return newIdx=existingChildren.get(newChild.key===null?newIdx:newChild.key)||null,existingChildren=pushDebugInfo(newChild._debugInfo),returnFiber=updateElement(returnFiber,newIdx,newChild,lanes),currentDebugInfo=existingChildren,returnFiber;case REACT_PORTAL_TYPE:return existingChildren=existingChildren.get(newChild.key===null?newIdx:newChild.key)||null,updatePortal(returnFiber,existingChildren,newChild,lanes);case REACT_LAZY_TYPE:var _prevDebugInfo7=pushDebugInfo(newChild._debugInfo);return newChild=callLazyInitInDEV(newChild),returnFiber=updateFromMap(existingChildren,returnFiber,newIdx,newChild,lanes),currentDebugInfo=_prevDebugInfo7,returnFiber}if(isArrayImpl(newChild)||getIteratorFn(newChild))return newIdx=existingChildren.get(newIdx)||null,existingChildren=pushDebugInfo(newChild._debugInfo),returnFiber=updateFragment(returnFiber,newIdx,newChild,lanes,null),currentDebugInfo=existingChildren,returnFiber;if(typeof newChild.then=="function")return _prevDebugInfo7=pushDebugInfo(newChild._debugInfo),returnFiber=updateFromMap(existingChildren,returnFiber,newIdx,unwrapThenable(newChild),lanes),currentDebugInfo=_prevDebugInfo7,returnFiber;if(newChild.$$typeof===REACT_CONTEXT_TYPE)return updateFromMap(existingChildren,returnFiber,newIdx,readContextDuringReconciliation(returnFiber,newChild),lanes);throwOnInvalidObjectType(returnFiber,newChild)}return typeof newChild=="function"&&warnOnFunctionType(returnFiber,newChild),typeof newChild=="symbol"&&warnOnSymbolType(returnFiber,newChild),null}function warnOnInvalidKey(returnFiber,workInProgress2,child,knownKeys){if(typeof child!="object"||child===null)return knownKeys;switch(child.$$typeof){case REACT_ELEMENT_TYPE:case REACT_PORTAL_TYPE:warnForMissingKey(returnFiber,workInProgress2,child);var key=child.key;if(typeof key!="string")break;if(knownKeys===null){knownKeys=new Set,knownKeys.add(key);break}if(!knownKeys.has(key)){knownKeys.add(key);break}runWithFiberInDEV(workInProgress2,function(){console.error("Encountered two children with the same key, `%s`. Keys should be unique so that components maintain their identity across updates. Non-unique keys may cause children to be duplicated and/or omitted — the behavior is unsupported and could change in a future version.",key)});break;case REACT_LAZY_TYPE:child=callLazyInitInDEV(child),warnOnInvalidKey(returnFiber,workInProgress2,child,knownKeys)}return knownKeys}function reconcileChildrenArray(returnFiber,currentFirstChild,newChildren,lanes){for(var knownKeys=null,resultingFirstChild=null,previousNewFiber=null,oldFiber=currentFirstChild,newIdx=currentFirstChild=0,nextOldFiber=null;oldFiber!==null&&newIdx<newChildren.length;newIdx++){oldFiber.index>newIdx?(nextOldFiber=oldFiber,oldFiber=null):nextOldFiber=oldFiber.sibling;var newFiber=updateSlot(returnFiber,oldFiber,newChildren[newIdx],lanes);if(newFiber===null){oldFiber===null&&(oldFiber=nextOldFiber);break}knownKeys=warnOnInvalidKey(returnFiber,newFiber,newChildren[newIdx],knownKeys),shouldTrackSideEffects&&oldFiber&&newFiber.alternate===null&&deleteChild(returnFiber,oldFiber),currentFirstChild=placeChild(newFiber,currentFirstChild,newIdx),previousNewFiber===null?resultingFirstChild=newFiber:previousNewFiber.sibling=newFiber,previousNewFiber=newFiber,oldFiber=nextOldFiber}if(newIdx===newChildren.length)return deleteRemainingChildren(returnFiber,oldFiber),isHydrating&&pushTreeFork(returnFiber,newIdx),resultingFirstChild;if(oldFiber===null){for(;newIdx<newChildren.length;newIdx++)oldFiber=createChild(returnFiber,newChildren[newIdx],lanes),oldFiber!==null&&(knownKeys=warnOnInvalidKey(returnFiber,oldFiber,newChildren[newIdx],knownKeys),currentFirstChild=placeChild(oldFiber,currentFirstChild,newIdx),previousNewFiber===null?resultingFirstChild=oldFiber:previousNewFiber.sibling=oldFiber,previousNewFiber=oldFiber);return isHydrating&&pushTreeFork(returnFiber,newIdx),resultingFirstChild}for(oldFiber=mapRemainingChildren(oldFiber);newIdx<newChildren.length;newIdx++)nextOldFiber=updateFromMap(oldFiber,returnFiber,newIdx,newChildren[newIdx],lanes),nextOldFiber!==null&&(knownKeys=warnOnInvalidKey(returnFiber,nextOldFiber,newChildren[newIdx],knownKeys),shouldTrackSideEffects&&nextOldFiber.alternate!==null&&oldFiber.delete(nextOldFiber.key===null?newIdx:nextOldFiber.key),currentFirstChild=placeChild(nextOldFiber,currentFirstChild,newIdx),previousNewFiber===null?resultingFirstChild=nextOldFiber:previousNewFiber.sibling=nextOldFiber,previousNewFiber=nextOldFiber);return shouldTrackSideEffects&&oldFiber.forEach(function(child){return deleteChild(returnFiber,child)}),isHydrating&&pushTreeFork(returnFiber,newIdx),resultingFirstChild}function reconcileChildrenIterator(returnFiber,currentFirstChild,newChildren,lanes){if(newChildren==null)throw Error("An iterable object provided no iterator.");for(var resultingFirstChild=null,previousNewFiber=null,oldFiber=currentFirstChild,newIdx=currentFirstChild=0,nextOldFiber=null,knownKeys=null,step=newChildren.next();oldFiber!==null&&!step.done;newIdx++,step=newChildren.next()){oldFiber.index>newIdx?(nextOldFiber=oldFiber,oldFiber=null):nextOldFiber=oldFiber.sibling;var newFiber=updateSlot(returnFiber,oldFiber,step.value,lanes);if(newFiber===null){oldFiber===null&&(oldFiber=nextOldFiber);break}knownKeys=warnOnInvalidKey(returnFiber,newFiber,step.value,knownKeys),shouldTrackSideEffects&&oldFiber&&newFiber.alternate===null&&deleteChild(returnFiber,oldFiber),currentFirstChild=placeChild(newFiber,currentFirstChild,newIdx),previousNewFiber===null?resultingFirstChild=newFiber:previousNewFiber.sibling=newFiber,previousNewFiber=newFiber,oldFiber=nextOldFiber}if(step.done)return deleteRemainingChildren(returnFiber,oldFiber),isHydrating&&pushTreeFork(returnFiber,newIdx),resultingFirstChild;if(oldFiber===null){for(;!step.done;newIdx++,step=newChildren.next())oldFiber=createChild(returnFiber,step.value,lanes),oldFiber!==null&&(knownKeys=warnOnInvalidKey(returnFiber,oldFiber,step.value,knownKeys),currentFirstChild=placeChild(oldFiber,currentFirstChild,newIdx),previousNewFiber===null?resultingFirstChild=oldFiber:previousNewFiber.sibling=oldFiber,previousNewFiber=oldFiber);return isHydrating&&pushTreeFork(returnFiber,newIdx),resultingFirstChild}for(oldFiber=mapRemainingChildren(oldFiber);!step.done;newIdx++,step=newChildren.next())nextOldFiber=updateFromMap(oldFiber,returnFiber,newIdx,step.value,lanes),nextOldFiber!==null&&(knownKeys=warnOnInvalidKey(returnFiber,nextOldFiber,step.value,knownKeys),shouldTrackSideEffects&&nextOldFiber.alternate!==null&&oldFiber.delete(nextOldFiber.key===null?newIdx:nextOldFiber.key),currentFirstChild=placeChild(nextOldFiber,currentFirstChild,newIdx),previousNewFiber===null?resultingFirstChild=nextOldFiber:previousNewFiber.sibling=nextOldFiber,previousNewFiber=nextOldFiber);return shouldTrackSideEffects&&oldFiber.forEach(function(child){return deleteChild(returnFiber,child)}),isHydrating&&pushTreeFork(returnFiber,newIdx),resultingFirstChild}function reconcileChildFibersImpl(returnFiber,currentFirstChild,newChild,lanes){if(typeof newChild=="object"&&newChild!==null&&newChild.type===REACT_FRAGMENT_TYPE&&newChild.key===null&&(validateFragmentProps(newChild,null,returnFiber),newChild=newChild.props.children),typeof newChild=="object"&&newChild!==null){switch(newChild.$$typeof){case REACT_ELEMENT_TYPE:var prevDebugInfo=pushDebugInfo(newChild._debugInfo);a:{for(var key=newChild.key;currentFirstChild!==null;){if(currentFirstChild.key===key){if(key=newChild.type,key===REACT_FRAGMENT_TYPE){if(currentFirstChild.tag===7){deleteRemainingChildren(returnFiber,currentFirstChild.sibling),lanes=useFiber(currentFirstChild,newChild.props.children),lanes.return=returnFiber,lanes._debugOwner=newChild._owner,lanes._debugInfo=currentDebugInfo,validateFragmentProps(newChild,lanes,returnFiber),returnFiber=lanes;break a}}else if(currentFirstChild.elementType===key||isCompatibleFamilyForHotReloading(currentFirstChild,newChild)||typeof key=="object"&&key!==null&&key.$$typeof===REACT_LAZY_TYPE&&callLazyInitInDEV(key)===currentFirstChild.type){deleteRemainingChildren(returnFiber,currentFirstChild.sibling),lanes=useFiber(currentFirstChild,newChild.props),coerceRef(lanes,newChild),lanes.return=returnFiber,lanes._debugOwner=newChild._owner,lanes._debugInfo=currentDebugInfo,returnFiber=lanes;break a}deleteRemainingChildren(returnFiber,currentFirstChild);break}else deleteChild(returnFiber,currentFirstChild);currentFirstChild=currentFirstChild.sibling}newChild.type===REACT_FRAGMENT_TYPE?(lanes=createFiberFromFragment(newChild.props.children,returnFiber.mode,lanes,newChild.key),lanes.return=returnFiber,lanes._debugOwner=returnFiber,lanes._debugTask=returnFiber._debugTask,lanes._debugInfo=currentDebugInfo,validateFragmentProps(newChild,lanes,returnFiber),returnFiber=lanes):(lanes=createFiberFromElement(newChild,returnFiber.mode,lanes),coerceRef(lanes,newChild),lanes.return=returnFiber,lanes._debugInfo=currentDebugInfo,returnFiber=lanes)}return returnFiber=placeSingleChild(returnFiber),currentDebugInfo=prevDebugInfo,returnFiber;case REACT_PORTAL_TYPE:a:{for(prevDebugInfo=newChild,newChild=prevDebugInfo.key;currentFirstChild!==null;){if(currentFirstChild.key===newChild)if(currentFirstChild.tag===4&¤tFirstChild.stateNode.containerInfo===prevDebugInfo.containerInfo&¤tFirstChild.stateNode.implementation===prevDebugInfo.implementation){deleteRemainingChildren(returnFiber,currentFirstChild.sibling),lanes=useFiber(currentFirstChild,prevDebugInfo.children||[]),lanes.return=returnFiber,returnFiber=lanes;break a}else{deleteRemainingChildren(returnFiber,currentFirstChild);break}else deleteChild(returnFiber,currentFirstChild);currentFirstChild=currentFirstChild.sibling}lanes=createFiberFromPortal(prevDebugInfo,returnFiber.mode,lanes),lanes.return=returnFiber,returnFiber=lanes}return placeSingleChild(returnFiber);case REACT_LAZY_TYPE:return prevDebugInfo=pushDebugInfo(newChild._debugInfo),newChild=callLazyInitInDEV(newChild),returnFiber=reconcileChildFibersImpl(returnFiber,currentFirstChild,newChild,lanes),currentDebugInfo=prevDebugInfo,returnFiber}if(isArrayImpl(newChild))return prevDebugInfo=pushDebugInfo(newChild._debugInfo),returnFiber=reconcileChildrenArray(returnFiber,currentFirstChild,newChild,lanes),currentDebugInfo=prevDebugInfo,returnFiber;if(getIteratorFn(newChild)){if(prevDebugInfo=pushDebugInfo(newChild._debugInfo),key=getIteratorFn(newChild),typeof key!="function")throw Error("An object is not an iterable. This error is likely caused by a bug in React. Please file an issue.");var newChildren=key.call(newChild);return newChildren===newChild?(returnFiber.tag!==0||Object.prototype.toString.call(returnFiber.type)!=="[object GeneratorFunction]"||Object.prototype.toString.call(newChildren)!=="[object Generator]")&&(didWarnAboutGenerators||console.error("Using Iterators as children is unsupported and will likely yield unexpected results because enumerating a generator mutates it. You may convert it to an array with `Array.from()` or the `[...spread]` operator before rendering. You can also use an Iterable that can iterate multiple times over the same items."),didWarnAboutGenerators=!0):newChild.entries!==key||didWarnAboutMaps||(console.error("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),didWarnAboutMaps=!0),returnFiber=reconcileChildrenIterator(returnFiber,currentFirstChild,newChildren,lanes),currentDebugInfo=prevDebugInfo,returnFiber}if(typeof newChild.then=="function")return prevDebugInfo=pushDebugInfo(newChild._debugInfo),returnFiber=reconcileChildFibersImpl(returnFiber,currentFirstChild,unwrapThenable(newChild),lanes),currentDebugInfo=prevDebugInfo,returnFiber;if(newChild.$$typeof===REACT_CONTEXT_TYPE)return reconcileChildFibersImpl(returnFiber,currentFirstChild,readContextDuringReconciliation(returnFiber,newChild),lanes);throwOnInvalidObjectType(returnFiber,newChild)}return typeof newChild=="string"&&newChild!==""||typeof newChild=="number"||typeof newChild=="bigint"?(prevDebugInfo=""+newChild,currentFirstChild!==null&¤tFirstChild.tag===6?(deleteRemainingChildren(returnFiber,currentFirstChild.sibling),lanes=useFiber(currentFirstChild,prevDebugInfo),lanes.return=returnFiber,returnFiber=lanes):(deleteRemainingChildren(returnFiber,currentFirstChild),lanes=createFiberFromText(prevDebugInfo,returnFiber.mode,lanes),lanes.return=returnFiber,lanes._debugOwner=returnFiber,lanes._debugTask=returnFiber._debugTask,lanes._debugInfo=currentDebugInfo,returnFiber=lanes),placeSingleChild(returnFiber)):(typeof newChild=="function"&&warnOnFunctionType(returnFiber,newChild),typeof newChild=="symbol"&&warnOnSymbolType(returnFiber,newChild),deleteRemainingChildren(returnFiber,currentFirstChild))}return function(returnFiber,currentFirstChild,newChild,lanes){var prevDebugInfo=currentDebugInfo;currentDebugInfo=null;try{thenableIndexCounter=0;var firstChildFiber=reconcileChildFibersImpl(returnFiber,currentFirstChild,newChild,lanes);return thenableState=null,firstChildFiber}catch(x){if(x===SuspenseException||x===SuspenseActionException)throw x;var fiber=createFiber(29,x,null,returnFiber.mode);fiber.lanes=lanes,fiber.return=returnFiber;var debugInfo=fiber._debugInfo=currentDebugInfo;if(fiber._debugOwner=returnFiber._debugOwner,fiber._debugTask=returnFiber._debugTask,debugInfo!=null){for(var i=debugInfo.length-1;0<=i;i--)if(typeof debugInfo[i].stack=="string"){fiber._debugOwner=debugInfo[i],fiber._debugTask=debugInfo[i].debugTask;break}}return fiber}finally{currentDebugInfo=prevDebugInfo}}}function pushPrimaryTreeSuspenseHandler(handler){var current2=handler.alternate;push(suspenseStackCursor,suspenseStackCursor.current&SubtreeSuspenseContextMask,handler),push(suspenseHandlerStackCursor,handler,handler),shellBoundary===null&&(current2===null||currentTreeHiddenStackCursor.current!==null||current2.memoizedState!==null)&&(shellBoundary=handler)}function pushOffscreenSuspenseHandler(fiber){if(fiber.tag===22){if(push(suspenseStackCursor,suspenseStackCursor.current,fiber),push(suspenseHandlerStackCursor,fiber,fiber),shellBoundary===null){var current2=fiber.alternate;current2!==null&¤t2.memoizedState!==null&&(shellBoundary=fiber)}}else reuseSuspenseHandlerOnStack(fiber)}function reuseSuspenseHandlerOnStack(fiber){push(suspenseStackCursor,suspenseStackCursor.current,fiber),push(suspenseHandlerStackCursor,suspenseHandlerStackCursor.current,fiber)}function popSuspenseHandler(fiber){pop(suspenseHandlerStackCursor,fiber),shellBoundary===fiber&&(shellBoundary=null),pop(suspenseStackCursor,fiber)}function findFirstSuspended(row2){for(var node=row2;node!==null;){if(node.tag===13){var state=node.memoizedState;if(state!==null&&(state=state.dehydrated,state===null||state.data===SUSPENSE_PENDING_START_DATA||isSuspenseInstanceFallback(state)))return node}else if(node.tag===19&&node.memoizedProps.revealOrder!==void 0){if((node.flags&128)!==0)return node}else if(node.child!==null){node.child.return=node,node=node.child;continue}if(node===row2)break;for(;node.sibling===null;){if(node.return===null||node.return===row2)return null;node=node.return}node.sibling.return=node.return,node=node.sibling}return null}function warnOnInvalidCallback(callback){if(callback!==null&&typeof callback!="function"){var key=String(callback);didWarnOnInvalidCallback.has(key)||(didWarnOnInvalidCallback.add(key),console.error("Expected the last optional `callback` argument to be a function. Instead received: %s.",callback))}}function applyDerivedStateFromProps(workInProgress2,ctor,getDerivedStateFromProps,nextProps){var prevState=workInProgress2.memoizedState,partialState=getDerivedStateFromProps(nextProps,prevState);if(workInProgress2.mode&StrictLegacyMode){setIsStrictModeForDevtools(!0);try{partialState=getDerivedStateFromProps(nextProps,prevState)}finally{setIsStrictModeForDevtools(!1)}}partialState===void 0&&(ctor=getComponentNameFromType(ctor)||"Component",didWarnAboutUndefinedDerivedState.has(ctor)||(didWarnAboutUndefinedDerivedState.add(ctor),console.error("%s.getDerivedStateFromProps(): A valid state object (or null) must be returned. You have returned undefined.",ctor))),prevState=partialState==null?prevState:assign({},prevState,partialState),workInProgress2.memoizedState=prevState,workInProgress2.lanes===0&&(workInProgress2.updateQueue.baseState=prevState)}function checkShouldComponentUpdate(workInProgress2,ctor,oldProps,newProps,oldState,newState,nextContext){var instance=workInProgress2.stateNode;if(typeof instance.shouldComponentUpdate=="function"){if(oldProps=instance.shouldComponentUpdate(newProps,newState,nextContext),workInProgress2.mode&StrictLegacyMode){setIsStrictModeForDevtools(!0);try{oldProps=instance.shouldComponentUpdate(newProps,newState,nextContext)}finally{setIsStrictModeForDevtools(!1)}}return oldProps===void 0&&console.error("%s.shouldComponentUpdate(): Returned undefined instead of a boolean value. Make sure to return true or false.",getComponentNameFromType(ctor)||"Component"),oldProps}return ctor.prototype&&ctor.prototype.isPureReactComponent?!shallowEqual(oldProps,newProps)||!shallowEqual(oldState,newState):!0}function callComponentWillReceiveProps(workInProgress2,instance,newProps,nextContext){var oldState=instance.state;typeof instance.componentWillReceiveProps=="function"&&instance.componentWillReceiveProps(newProps,nextContext),typeof instance.UNSAFE_componentWillReceiveProps=="function"&&instance.UNSAFE_componentWillReceiveProps(newProps,nextContext),instance.state!==oldState&&(workInProgress2=getComponentNameFromFiber(workInProgress2)||"Component",didWarnAboutStateAssignmentForComponent.has(workInProgress2)||(didWarnAboutStateAssignmentForComponent.add(workInProgress2),console.error("%s.componentWillReceiveProps(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.",workInProgress2)),classComponentUpdater.enqueueReplaceState(instance,instance.state,null))}function resolveClassComponentProps(Component,baseProps){var newProps=baseProps;if("ref"in baseProps){newProps={};for(var propName in baseProps)propName!=="ref"&&(newProps[propName]=baseProps[propName])}if(Component=Component.defaultProps){newProps===baseProps&&(newProps=assign({},newProps));for(var _propName in Component)newProps[_propName]===void 0&&(newProps[_propName]=Component[_propName])}return newProps}function defaultOnUncaughtError(error){reportGlobalError(error),console.warn(`%s
|
|
187
|
+
|
|
188
|
+
%s
|
|
189
|
+
`,componentName?"An error occurred in the <"+componentName+"> component.":"An error occurred in one of your React components.",`Consider adding an error boundary to your tree to customize error handling behavior.
|
|
190
|
+
Visit https://react.dev/link/error-boundaries to learn more about error boundaries.`)}function defaultOnCaughtError(error){var componentNameMessage=componentName?"The above error occurred in the <"+componentName+"> component.":"The above error occurred in one of your React components.",recreateMessage="React will try to recreate this component tree from scratch using the error boundary you provided, "+((errorBoundaryName||"Anonymous")+".");if(typeof error=="object"&&error!==null&&typeof error.environmentName=="string"){var JSCompiler_inline_result=error.environmentName;error=[`%o
|
|
191
|
+
|
|
192
|
+
%s
|
|
193
|
+
|
|
194
|
+
%s
|
|
195
|
+
`,error,componentNameMessage,recreateMessage].slice(0),typeof error[0]=="string"?error.splice(0,1,badgeFormat+error[0],badgeStyle,pad+JSCompiler_inline_result+pad,resetStyle):error.splice(0,0,badgeFormat,badgeStyle,pad+JSCompiler_inline_result+pad,resetStyle),error.unshift(console),JSCompiler_inline_result=bind.apply(console.error,error),JSCompiler_inline_result()}else console.error(`%o
|
|
196
|
+
|
|
197
|
+
%s
|
|
198
|
+
|
|
199
|
+
%s
|
|
200
|
+
`,error,componentNameMessage,recreateMessage)}function defaultOnRecoverableError(error){reportGlobalError(error)}function logUncaughtError(root3,errorInfo){try{componentName=errorInfo.source?getComponentNameFromFiber(errorInfo.source):null,errorBoundaryName=null;var error=errorInfo.value;if(ReactSharedInternals.actQueue!==null)ReactSharedInternals.thrownErrors.push(error);else{var onUncaughtError=root3.onUncaughtError;onUncaughtError(error,{componentStack:errorInfo.stack})}}catch(e$5){setTimeout(function(){throw e$5})}}function logCaughtError(root3,boundary,errorInfo){try{componentName=errorInfo.source?getComponentNameFromFiber(errorInfo.source):null,errorBoundaryName=getComponentNameFromFiber(boundary);var onCaughtError=root3.onCaughtError;onCaughtError(errorInfo.value,{componentStack:errorInfo.stack,errorBoundary:boundary.tag===1?boundary.stateNode:null})}catch(e$6){setTimeout(function(){throw e$6})}}function createRootErrorUpdate(root3,errorInfo,lane){return lane=createUpdate(lane),lane.tag=CaptureUpdate,lane.payload={element:null},lane.callback=function(){runWithFiberInDEV(errorInfo.source,logUncaughtError,root3,errorInfo)},lane}function createClassErrorUpdate(lane){return lane=createUpdate(lane),lane.tag=CaptureUpdate,lane}function initializeClassErrorUpdate(update,root3,fiber,errorInfo){var getDerivedStateFromError=fiber.type.getDerivedStateFromError;if(typeof getDerivedStateFromError=="function"){var error=errorInfo.value;update.payload=function(){return getDerivedStateFromError(error)},update.callback=function(){markFailedErrorBoundaryForHotReloading(fiber),runWithFiberInDEV(errorInfo.source,logCaughtError,root3,fiber,errorInfo)}}var inst=fiber.stateNode;inst!==null&&typeof inst.componentDidCatch=="function"&&(update.callback=function(){markFailedErrorBoundaryForHotReloading(fiber),runWithFiberInDEV(errorInfo.source,logCaughtError,root3,fiber,errorInfo),typeof getDerivedStateFromError!="function"&&(legacyErrorBoundariesThatAlreadyFailed===null?legacyErrorBoundariesThatAlreadyFailed=new Set([this]):legacyErrorBoundariesThatAlreadyFailed.add(this)),callComponentDidCatchInDEV(this,errorInfo),typeof getDerivedStateFromError=="function"||(fiber.lanes&2)===0&&console.error("%s: Error boundaries should implement getDerivedStateFromError(). In that method, return a state update to display an error message or fallback UI.",getComponentNameFromFiber(fiber)||"Unknown")})}function throwException(root3,returnFiber,sourceFiber,value,rootRenderLanes){if(sourceFiber.flags|=32768,isDevToolsPresent&&restorePendingUpdaters(root3,rootRenderLanes),value!==null&&typeof value=="object"&&typeof value.then=="function"){if(returnFiber=sourceFiber.alternate,returnFiber!==null&&propagateParentContextChanges(returnFiber,sourceFiber,rootRenderLanes,!0),isHydrating&&(didSuspendOrErrorDEV=!0),sourceFiber=suspenseHandlerStackCursor.current,sourceFiber!==null){switch(sourceFiber.tag){case 13:return shellBoundary===null?renderDidSuspendDelayIfPossible():sourceFiber.alternate===null&&workInProgressRootExitStatus===RootInProgress&&(workInProgressRootExitStatus=RootSuspended),sourceFiber.flags&=-257,sourceFiber.flags|=65536,sourceFiber.lanes=rootRenderLanes,value===noopSuspenseyCommitThenable?sourceFiber.flags|=16384:(returnFiber=sourceFiber.updateQueue,returnFiber===null?sourceFiber.updateQueue=new Set([value]):returnFiber.add(value),attachPingListener(root3,value,rootRenderLanes)),!1;case 22:return sourceFiber.flags|=65536,value===noopSuspenseyCommitThenable?sourceFiber.flags|=16384:(returnFiber=sourceFiber.updateQueue,returnFiber===null?(returnFiber={transitions:null,markerInstances:null,retryQueue:new Set([value])},sourceFiber.updateQueue=returnFiber):(sourceFiber=returnFiber.retryQueue,sourceFiber===null?returnFiber.retryQueue=new Set([value]):sourceFiber.add(value)),attachPingListener(root3,value,rootRenderLanes)),!1}throw Error("Unexpected Suspense handler tag ("+sourceFiber.tag+"). This is a bug in React.")}return attachPingListener(root3,value,rootRenderLanes),renderDidSuspendDelayIfPossible(),!1}if(isHydrating)return didSuspendOrErrorDEV=!0,returnFiber=suspenseHandlerStackCursor.current,returnFiber!==null?((returnFiber.flags&65536)===0&&(returnFiber.flags|=256),returnFiber.flags|=65536,returnFiber.lanes=rootRenderLanes,value!==HydrationMismatchException&&queueHydrationError(createCapturedValueAtFiber(Error("There was an error while hydrating but React was able to recover by instead client rendering from the nearest Suspense boundary.",{cause:value}),sourceFiber))):(value!==HydrationMismatchException&&queueHydrationError(createCapturedValueAtFiber(Error("There was an error while hydrating but React was able to recover by instead client rendering the entire root.",{cause:value}),sourceFiber)),root3=root3.current.alternate,root3.flags|=65536,rootRenderLanes&=-rootRenderLanes,root3.lanes|=rootRenderLanes,value=createCapturedValueAtFiber(value,sourceFiber),rootRenderLanes=createRootErrorUpdate(root3.stateNode,value,rootRenderLanes),enqueueCapturedUpdate(root3,rootRenderLanes),workInProgressRootExitStatus!==RootSuspendedWithDelay&&(workInProgressRootExitStatus=RootErrored)),!1;var error=createCapturedValueAtFiber(Error("There was an error during concurrent rendering but React was able to recover by instead synchronously rendering the entire root.",{cause:value}),sourceFiber);if(workInProgressRootConcurrentErrors===null?workInProgressRootConcurrentErrors=[error]:workInProgressRootConcurrentErrors.push(error),workInProgressRootExitStatus!==RootSuspendedWithDelay&&(workInProgressRootExitStatus=RootErrored),returnFiber===null)return!0;value=createCapturedValueAtFiber(value,sourceFiber),sourceFiber=returnFiber;do{switch(sourceFiber.tag){case 3:return sourceFiber.flags|=65536,root3=rootRenderLanes&-rootRenderLanes,sourceFiber.lanes|=root3,root3=createRootErrorUpdate(sourceFiber.stateNode,value,root3),enqueueCapturedUpdate(sourceFiber,root3),!1;case 1:if(returnFiber=sourceFiber.type,error=sourceFiber.stateNode,(sourceFiber.flags&128)===0&&(typeof returnFiber.getDerivedStateFromError=="function"||error!==null&&typeof error.componentDidCatch=="function"&&(legacyErrorBoundariesThatAlreadyFailed===null||!legacyErrorBoundariesThatAlreadyFailed.has(error))))return sourceFiber.flags|=65536,rootRenderLanes&=-rootRenderLanes,sourceFiber.lanes|=rootRenderLanes,rootRenderLanes=createClassErrorUpdate(rootRenderLanes),initializeClassErrorUpdate(rootRenderLanes,root3,sourceFiber,value),enqueueCapturedUpdate(sourceFiber,rootRenderLanes),!1}sourceFiber=sourceFiber.return}while(sourceFiber!==null);return!1}function reconcileChildren(current2,workInProgress2,nextChildren,renderLanes2){workInProgress2.child=current2===null?mountChildFibers(workInProgress2,null,nextChildren,renderLanes2):reconcileChildFibers(workInProgress2,current2.child,nextChildren,renderLanes2)}function updateForwardRef(current2,workInProgress2,Component,nextProps,renderLanes2){Component=Component.render;var ref=workInProgress2.ref;if("ref"in nextProps){var propsWithoutRef={};for(var key in nextProps)key!=="ref"&&(propsWithoutRef[key]=nextProps[key])}else propsWithoutRef=nextProps;return prepareToReadContext(workInProgress2),markComponentRenderStarted(workInProgress2),nextProps=renderWithHooks(current2,workInProgress2,Component,propsWithoutRef,ref,renderLanes2),key=checkDidRenderIdHook(),markComponentRenderStopped(),current2!==null&&!didReceiveUpdate?(bailoutHooks(current2,workInProgress2,renderLanes2),bailoutOnAlreadyFinishedWork(current2,workInProgress2,renderLanes2)):(isHydrating&&key&&pushMaterializedTreeId(workInProgress2),workInProgress2.flags|=1,reconcileChildren(current2,workInProgress2,nextProps,renderLanes2),workInProgress2.child)}function updateMemoComponent(current2,workInProgress2,Component,nextProps,renderLanes2){if(current2===null){var type=Component.type;return typeof type=="function"&&!shouldConstruct(type)&&type.defaultProps===void 0&&Component.compare===null?(Component=resolveFunctionForHotReloading(type),workInProgress2.tag=15,workInProgress2.type=Component,validateFunctionComponentInDev(workInProgress2,type),updateSimpleMemoComponent(current2,workInProgress2,Component,nextProps,renderLanes2)):(current2=createFiberFromTypeAndProps(Component.type,null,nextProps,workInProgress2,workInProgress2.mode,renderLanes2),current2.ref=workInProgress2.ref,current2.return=workInProgress2,workInProgress2.child=current2)}if(type=current2.child,!checkScheduledUpdateOrContext(current2,renderLanes2)){var prevProps=type.memoizedProps;if(Component=Component.compare,Component=Component!==null?Component:shallowEqual,Component(prevProps,nextProps)&¤t2.ref===workInProgress2.ref)return bailoutOnAlreadyFinishedWork(current2,workInProgress2,renderLanes2)}return workInProgress2.flags|=1,current2=createWorkInProgress(type,nextProps),current2.ref=workInProgress2.ref,current2.return=workInProgress2,workInProgress2.child=current2}function updateSimpleMemoComponent(current2,workInProgress2,Component,nextProps,renderLanes2){if(current2!==null){var prevProps=current2.memoizedProps;if(shallowEqual(prevProps,nextProps)&¤t2.ref===workInProgress2.ref&&workInProgress2.type===current2.type)if(didReceiveUpdate=!1,workInProgress2.pendingProps=nextProps=prevProps,checkScheduledUpdateOrContext(current2,renderLanes2))(current2.flags&131072)!==0&&(didReceiveUpdate=!0);else return workInProgress2.lanes=current2.lanes,bailoutOnAlreadyFinishedWork(current2,workInProgress2,renderLanes2)}return updateFunctionComponent(current2,workInProgress2,Component,nextProps,renderLanes2)}function updateOffscreenComponent(current2,workInProgress2,renderLanes2){var nextProps=workInProgress2.pendingProps,nextChildren=nextProps.children,prevState=current2!==null?current2.memoizedState:null;if(nextProps.mode==="hidden"){if((workInProgress2.flags&128)!==0){if(nextProps=prevState!==null?prevState.baseLanes|renderLanes2:renderLanes2,current2!==null){for(nextChildren=workInProgress2.child=current2.child,prevState=0;nextChildren!==null;)prevState=prevState|nextChildren.lanes|nextChildren.childLanes,nextChildren=nextChildren.sibling;workInProgress2.childLanes=prevState&~nextProps}else workInProgress2.childLanes=0,workInProgress2.child=null;return deferHiddenOffscreenComponent(current2,workInProgress2,nextProps,renderLanes2)}if((renderLanes2&536870912)!==0)workInProgress2.memoizedState={baseLanes:0,cachePool:null},current2!==null&&pushTransition(workInProgress2,prevState!==null?prevState.cachePool:null),prevState!==null?pushHiddenContext(workInProgress2,prevState):reuseHiddenContextOnStack(workInProgress2),pushOffscreenSuspenseHandler(workInProgress2);else return workInProgress2.lanes=workInProgress2.childLanes=536870912,deferHiddenOffscreenComponent(current2,workInProgress2,prevState!==null?prevState.baseLanes|renderLanes2:renderLanes2,renderLanes2)}else prevState!==null?(pushTransition(workInProgress2,prevState.cachePool),pushHiddenContext(workInProgress2,prevState),reuseSuspenseHandlerOnStack(workInProgress2),workInProgress2.memoizedState=null):(current2!==null&&pushTransition(workInProgress2,null),reuseHiddenContextOnStack(workInProgress2),reuseSuspenseHandlerOnStack(workInProgress2));return reconcileChildren(current2,workInProgress2,nextChildren,renderLanes2),workInProgress2.child}function deferHiddenOffscreenComponent(current2,workInProgress2,nextBaseLanes,renderLanes2){var JSCompiler_inline_result=peekCacheFromPool();return JSCompiler_inline_result=JSCompiler_inline_result===null?null:{parent:CacheContext._currentValue,pool:JSCompiler_inline_result},workInProgress2.memoizedState={baseLanes:nextBaseLanes,cachePool:JSCompiler_inline_result},current2!==null&&pushTransition(workInProgress2,null),reuseHiddenContextOnStack(workInProgress2),pushOffscreenSuspenseHandler(workInProgress2),current2!==null&&propagateParentContextChanges(current2,workInProgress2,renderLanes2,!0),null}function markRef(current2,workInProgress2){var ref=workInProgress2.ref;if(ref===null)current2!==null&¤t2.ref!==null&&(workInProgress2.flags|=4194816);else{if(typeof ref!="function"&&typeof ref!="object")throw Error("Expected ref to be a function, an object returned by React.createRef(), or undefined/null.");(current2===null||current2.ref!==ref)&&(workInProgress2.flags|=4194816)}}function updateFunctionComponent(current2,workInProgress2,Component,nextProps,renderLanes2){if(Component.prototype&&typeof Component.prototype.render=="function"){var componentName2=getComponentNameFromType(Component)||"Unknown";didWarnAboutBadClass[componentName2]||(console.error("The <%s /> component appears to have a render method, but doesn't extend React.Component. This is likely to cause errors. Change %s to extend React.Component instead.",componentName2,componentName2),didWarnAboutBadClass[componentName2]=!0)}return workInProgress2.mode&StrictLegacyMode&&ReactStrictModeWarnings.recordLegacyContextWarning(workInProgress2,null),current2===null&&(validateFunctionComponentInDev(workInProgress2,workInProgress2.type),Component.contextTypes&&(componentName2=getComponentNameFromType(Component)||"Unknown",didWarnAboutContextTypes[componentName2]||(didWarnAboutContextTypes[componentName2]=!0,console.error("%s uses the legacy contextTypes API which was removed in React 19. Use React.createContext() with React.useContext() instead. (https://react.dev/link/legacy-context)",componentName2)))),prepareToReadContext(workInProgress2),markComponentRenderStarted(workInProgress2),Component=renderWithHooks(current2,workInProgress2,Component,nextProps,void 0,renderLanes2),nextProps=checkDidRenderIdHook(),markComponentRenderStopped(),current2!==null&&!didReceiveUpdate?(bailoutHooks(current2,workInProgress2,renderLanes2),bailoutOnAlreadyFinishedWork(current2,workInProgress2,renderLanes2)):(isHydrating&&nextProps&&pushMaterializedTreeId(workInProgress2),workInProgress2.flags|=1,reconcileChildren(current2,workInProgress2,Component,renderLanes2),workInProgress2.child)}function replayFunctionComponent(current2,workInProgress2,nextProps,Component,secondArg,renderLanes2){return prepareToReadContext(workInProgress2),markComponentRenderStarted(workInProgress2),hookTypesUpdateIndexDev=-1,ignorePreviousDependencies=current2!==null&¤t2.type!==workInProgress2.type,workInProgress2.updateQueue=null,nextProps=renderWithHooksAgain(workInProgress2,Component,nextProps,secondArg),finishRenderingHooks(current2,workInProgress2),Component=checkDidRenderIdHook(),markComponentRenderStopped(),current2!==null&&!didReceiveUpdate?(bailoutHooks(current2,workInProgress2,renderLanes2),bailoutOnAlreadyFinishedWork(current2,workInProgress2,renderLanes2)):(isHydrating&&Component&&pushMaterializedTreeId(workInProgress2),workInProgress2.flags|=1,reconcileChildren(current2,workInProgress2,nextProps,renderLanes2),workInProgress2.child)}function updateClassComponent(current2,workInProgress2,Component,nextProps,renderLanes2){switch(shouldErrorImpl(workInProgress2)){case!1:var _instance=workInProgress2.stateNode,state=new workInProgress2.type(workInProgress2.memoizedProps,_instance.context).state;_instance.updater.enqueueSetState(_instance,state,null);break;case!0:workInProgress2.flags|=128,workInProgress2.flags|=65536,_instance=Error("Simulated error coming from DevTools");var lane=renderLanes2&-renderLanes2;if(workInProgress2.lanes|=lane,state=workInProgressRoot,state===null)throw Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");lane=createClassErrorUpdate(lane),initializeClassErrorUpdate(lane,state,workInProgress2,createCapturedValueAtFiber(_instance,workInProgress2)),enqueueCapturedUpdate(workInProgress2,lane)}if(prepareToReadContext(workInProgress2),workInProgress2.stateNode===null){if(state=emptyContextObject,_instance=Component.contextType,"contextType"in Component&&_instance!==null&&(_instance===void 0||_instance.$$typeof!==REACT_CONTEXT_TYPE)&&!didWarnAboutInvalidateContextType.has(Component)&&(didWarnAboutInvalidateContextType.add(Component),lane=_instance===void 0?" However, it is set to undefined. This can be caused by a typo or by mixing up named and default imports. This can also happen due to a circular dependency, so try moving the createContext() call to a separate file.":typeof _instance!="object"?" However, it is set to a "+typeof _instance+".":_instance.$$typeof===REACT_CONSUMER_TYPE?" Did you accidentally pass the Context.Consumer instead?":" However, it is set to an object with keys {"+Object.keys(_instance).join(", ")+"}.",console.error("%s defines an invalid contextType. contextType should point to the Context object returned by React.createContext().%s",getComponentNameFromType(Component)||"Component",lane)),typeof _instance=="object"&&_instance!==null&&(state=readContext(_instance)),_instance=new Component(nextProps,state),workInProgress2.mode&StrictLegacyMode){setIsStrictModeForDevtools(!0);try{_instance=new Component(nextProps,state)}finally{setIsStrictModeForDevtools(!1)}}if(state=workInProgress2.memoizedState=_instance.state!==null&&_instance.state!==void 0?_instance.state:null,_instance.updater=classComponentUpdater,workInProgress2.stateNode=_instance,_instance._reactInternals=workInProgress2,_instance._reactInternalInstance=fakeInternalInstance,typeof Component.getDerivedStateFromProps=="function"&&state===null&&(state=getComponentNameFromType(Component)||"Component",didWarnAboutUninitializedState.has(state)||(didWarnAboutUninitializedState.add(state),console.error("`%s` uses `getDerivedStateFromProps` but its initial state is %s. This is not recommended. Instead, define the initial state by assigning an object to `this.state` in the constructor of `%s`. This ensures that `getDerivedStateFromProps` arguments have a consistent shape.",state,_instance.state===null?"null":"undefined",state))),typeof Component.getDerivedStateFromProps=="function"||typeof _instance.getSnapshotBeforeUpdate=="function"){var foundWillUpdateName=lane=state=null;if(typeof _instance.componentWillMount=="function"&&_instance.componentWillMount.__suppressDeprecationWarning!==!0?state="componentWillMount":typeof _instance.UNSAFE_componentWillMount=="function"&&(state="UNSAFE_componentWillMount"),typeof _instance.componentWillReceiveProps=="function"&&_instance.componentWillReceiveProps.__suppressDeprecationWarning!==!0?lane="componentWillReceiveProps":typeof _instance.UNSAFE_componentWillReceiveProps=="function"&&(lane="UNSAFE_componentWillReceiveProps"),typeof _instance.componentWillUpdate=="function"&&_instance.componentWillUpdate.__suppressDeprecationWarning!==!0?foundWillUpdateName="componentWillUpdate":typeof _instance.UNSAFE_componentWillUpdate=="function"&&(foundWillUpdateName="UNSAFE_componentWillUpdate"),state!==null||lane!==null||foundWillUpdateName!==null){_instance=getComponentNameFromType(Component)||"Component";var newApiName=typeof Component.getDerivedStateFromProps=="function"?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";didWarnAboutLegacyLifecyclesAndDerivedState.has(_instance)||(didWarnAboutLegacyLifecyclesAndDerivedState.add(_instance),console.error(`Unsafe legacy lifecycles will not be called for components using new component APIs.
|
|
201
|
+
|
|
202
|
+
%s uses %s but also contains the following legacy lifecycles:%s%s%s
|
|
203
|
+
|
|
204
|
+
The above lifecycles should be removed. Learn more about this warning here:
|
|
205
|
+
https://react.dev/link/unsafe-component-lifecycles`,_instance,newApiName,state!==null?`
|
|
206
|
+
`+state:"",lane!==null?`
|
|
207
|
+
`+lane:"",foundWillUpdateName!==null?`
|
|
208
|
+
`+foundWillUpdateName:""))}}_instance=workInProgress2.stateNode,state=getComponentNameFromType(Component)||"Component",_instance.render||(Component.prototype&&typeof Component.prototype.render=="function"?console.error("No `render` method found on the %s instance: did you accidentally return an object from the constructor?",state):console.error("No `render` method found on the %s instance: you may have forgotten to define `render`.",state)),!_instance.getInitialState||_instance.getInitialState.isReactClassApproved||_instance.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?",state),_instance.getDefaultProps&&!_instance.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.",state),_instance.contextType&&console.error("contextType was defined as an instance property on %s. Use a static property to define contextType instead.",state),Component.childContextTypes&&!didWarnAboutChildContextTypes.has(Component)&&(didWarnAboutChildContextTypes.add(Component),console.error("%s uses the legacy childContextTypes API which was removed in React 19. Use React.createContext() instead. (https://react.dev/link/legacy-context)",state)),Component.contextTypes&&!didWarnAboutContextTypes$1.has(Component)&&(didWarnAboutContextTypes$1.add(Component),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)",state)),typeof _instance.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.",state),Component.prototype&&Component.prototype.isPureReactComponent&&typeof _instance.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.",getComponentNameFromType(Component)||"A pure component"),typeof _instance.componentDidUnmount=="function"&&console.error("%s has a method called componentDidUnmount(). But there is no such lifecycle method. Did you mean componentWillUnmount()?",state),typeof _instance.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().",state),typeof _instance.componentWillRecieveProps=="function"&&console.error("%s has a method called componentWillRecieveProps(). Did you mean componentWillReceiveProps()?",state),typeof _instance.UNSAFE_componentWillRecieveProps=="function"&&console.error("%s has a method called UNSAFE_componentWillRecieveProps(). Did you mean UNSAFE_componentWillReceiveProps()?",state),lane=_instance.props!==nextProps,_instance.props!==void 0&&lane&&console.error("When calling super() in `%s`, make sure to pass up the same props that your component's constructor was passed.",state),_instance.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.",state,state),typeof _instance.getSnapshotBeforeUpdate!="function"||typeof _instance.componentDidUpdate=="function"||didWarnAboutGetSnapshotBeforeUpdateWithoutDidUpdate.has(Component)||(didWarnAboutGetSnapshotBeforeUpdateWithoutDidUpdate.add(Component),console.error("%s: getSnapshotBeforeUpdate() should be used with componentDidUpdate(). This component defines getSnapshotBeforeUpdate() only.",getComponentNameFromType(Component))),typeof _instance.getDerivedStateFromProps=="function"&&console.error("%s: getDerivedStateFromProps() is defined as an instance method and will be ignored. Instead, declare it as a static method.",state),typeof _instance.getDerivedStateFromError=="function"&&console.error("%s: getDerivedStateFromError() is defined as an instance method and will be ignored. Instead, declare it as a static method.",state),typeof Component.getSnapshotBeforeUpdate=="function"&&console.error("%s: getSnapshotBeforeUpdate() is defined as a static method and will be ignored. Instead, declare it as an instance method.",state),(lane=_instance.state)&&(typeof lane!="object"||isArrayImpl(lane))&&console.error("%s.state: must be set to an object or null",state),typeof _instance.getChildContext=="function"&&typeof Component.childContextTypes!="object"&&console.error("%s.getChildContext(): childContextTypes must be defined in order to use getChildContext().",state),_instance=workInProgress2.stateNode,_instance.props=nextProps,_instance.state=workInProgress2.memoizedState,_instance.refs={},initializeUpdateQueue(workInProgress2),state=Component.contextType,_instance.context=typeof state=="object"&&state!==null?readContext(state):emptyContextObject,_instance.state===nextProps&&(state=getComponentNameFromType(Component)||"Component",didWarnAboutDirectlyAssigningPropsToState.has(state)||(didWarnAboutDirectlyAssigningPropsToState.add(state),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.",state))),workInProgress2.mode&StrictLegacyMode&&ReactStrictModeWarnings.recordLegacyContextWarning(workInProgress2,_instance),ReactStrictModeWarnings.recordUnsafeLifecycleWarnings(workInProgress2,_instance),_instance.state=workInProgress2.memoizedState,state=Component.getDerivedStateFromProps,typeof state=="function"&&(applyDerivedStateFromProps(workInProgress2,Component,state,nextProps),_instance.state=workInProgress2.memoizedState),typeof Component.getDerivedStateFromProps=="function"||typeof _instance.getSnapshotBeforeUpdate=="function"||typeof _instance.UNSAFE_componentWillMount!="function"&&typeof _instance.componentWillMount!="function"||(state=_instance.state,typeof _instance.componentWillMount=="function"&&_instance.componentWillMount(),typeof _instance.UNSAFE_componentWillMount=="function"&&_instance.UNSAFE_componentWillMount(),state!==_instance.state&&(console.error("%s.componentWillMount(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.",getComponentNameFromFiber(workInProgress2)||"Component"),classComponentUpdater.enqueueReplaceState(_instance,_instance.state,null)),processUpdateQueue(workInProgress2,nextProps,_instance,renderLanes2),suspendIfUpdateReadFromEntangledAsyncAction(),_instance.state=workInProgress2.memoizedState),typeof _instance.componentDidMount=="function"&&(workInProgress2.flags|=4194308),(workInProgress2.mode&StrictEffectsMode)!==NoMode&&(workInProgress2.flags|=134217728),_instance=!0}else if(current2===null){_instance=workInProgress2.stateNode;var unresolvedOldProps=workInProgress2.memoizedProps;lane=resolveClassComponentProps(Component,unresolvedOldProps),_instance.props=lane;var oldContext=_instance.context;foundWillUpdateName=Component.contextType,state=emptyContextObject,typeof foundWillUpdateName=="object"&&foundWillUpdateName!==null&&(state=readContext(foundWillUpdateName)),newApiName=Component.getDerivedStateFromProps,foundWillUpdateName=typeof newApiName=="function"||typeof _instance.getSnapshotBeforeUpdate=="function",unresolvedOldProps=workInProgress2.pendingProps!==unresolvedOldProps,foundWillUpdateName||typeof _instance.UNSAFE_componentWillReceiveProps!="function"&&typeof _instance.componentWillReceiveProps!="function"||(unresolvedOldProps||oldContext!==state)&&callComponentWillReceiveProps(workInProgress2,_instance,nextProps,state),hasForceUpdate=!1;var oldState=workInProgress2.memoizedState;_instance.state=oldState,processUpdateQueue(workInProgress2,nextProps,_instance,renderLanes2),suspendIfUpdateReadFromEntangledAsyncAction(),oldContext=workInProgress2.memoizedState,unresolvedOldProps||oldState!==oldContext||hasForceUpdate?(typeof newApiName=="function"&&(applyDerivedStateFromProps(workInProgress2,Component,newApiName,nextProps),oldContext=workInProgress2.memoizedState),(lane=hasForceUpdate||checkShouldComponentUpdate(workInProgress2,Component,lane,nextProps,oldState,oldContext,state))?(foundWillUpdateName||typeof _instance.UNSAFE_componentWillMount!="function"&&typeof _instance.componentWillMount!="function"||(typeof _instance.componentWillMount=="function"&&_instance.componentWillMount(),typeof _instance.UNSAFE_componentWillMount=="function"&&_instance.UNSAFE_componentWillMount()),typeof _instance.componentDidMount=="function"&&(workInProgress2.flags|=4194308),(workInProgress2.mode&StrictEffectsMode)!==NoMode&&(workInProgress2.flags|=134217728)):(typeof _instance.componentDidMount=="function"&&(workInProgress2.flags|=4194308),(workInProgress2.mode&StrictEffectsMode)!==NoMode&&(workInProgress2.flags|=134217728),workInProgress2.memoizedProps=nextProps,workInProgress2.memoizedState=oldContext),_instance.props=nextProps,_instance.state=oldContext,_instance.context=state,_instance=lane):(typeof _instance.componentDidMount=="function"&&(workInProgress2.flags|=4194308),(workInProgress2.mode&StrictEffectsMode)!==NoMode&&(workInProgress2.flags|=134217728),_instance=!1)}else{_instance=workInProgress2.stateNode,cloneUpdateQueue(current2,workInProgress2),state=workInProgress2.memoizedProps,foundWillUpdateName=resolveClassComponentProps(Component,state),_instance.props=foundWillUpdateName,newApiName=workInProgress2.pendingProps,oldState=_instance.context,oldContext=Component.contextType,lane=emptyContextObject,typeof oldContext=="object"&&oldContext!==null&&(lane=readContext(oldContext)),unresolvedOldProps=Component.getDerivedStateFromProps,(oldContext=typeof unresolvedOldProps=="function"||typeof _instance.getSnapshotBeforeUpdate=="function")||typeof _instance.UNSAFE_componentWillReceiveProps!="function"&&typeof _instance.componentWillReceiveProps!="function"||(state!==newApiName||oldState!==lane)&&callComponentWillReceiveProps(workInProgress2,_instance,nextProps,lane),hasForceUpdate=!1,oldState=workInProgress2.memoizedState,_instance.state=oldState,processUpdateQueue(workInProgress2,nextProps,_instance,renderLanes2),suspendIfUpdateReadFromEntangledAsyncAction();var newState=workInProgress2.memoizedState;state!==newApiName||oldState!==newState||hasForceUpdate||current2!==null&¤t2.dependencies!==null&&checkIfContextChanged(current2.dependencies)?(typeof unresolvedOldProps=="function"&&(applyDerivedStateFromProps(workInProgress2,Component,unresolvedOldProps,nextProps),newState=workInProgress2.memoizedState),(foundWillUpdateName=hasForceUpdate||checkShouldComponentUpdate(workInProgress2,Component,foundWillUpdateName,nextProps,oldState,newState,lane)||current2!==null&¤t2.dependencies!==null&&checkIfContextChanged(current2.dependencies))?(oldContext||typeof _instance.UNSAFE_componentWillUpdate!="function"&&typeof _instance.componentWillUpdate!="function"||(typeof _instance.componentWillUpdate=="function"&&_instance.componentWillUpdate(nextProps,newState,lane),typeof _instance.UNSAFE_componentWillUpdate=="function"&&_instance.UNSAFE_componentWillUpdate(nextProps,newState,lane)),typeof _instance.componentDidUpdate=="function"&&(workInProgress2.flags|=4),typeof _instance.getSnapshotBeforeUpdate=="function"&&(workInProgress2.flags|=1024)):(typeof _instance.componentDidUpdate!="function"||state===current2.memoizedProps&&oldState===current2.memoizedState||(workInProgress2.flags|=4),typeof _instance.getSnapshotBeforeUpdate!="function"||state===current2.memoizedProps&&oldState===current2.memoizedState||(workInProgress2.flags|=1024),workInProgress2.memoizedProps=nextProps,workInProgress2.memoizedState=newState),_instance.props=nextProps,_instance.state=newState,_instance.context=lane,_instance=foundWillUpdateName):(typeof _instance.componentDidUpdate!="function"||state===current2.memoizedProps&&oldState===current2.memoizedState||(workInProgress2.flags|=4),typeof _instance.getSnapshotBeforeUpdate!="function"||state===current2.memoizedProps&&oldState===current2.memoizedState||(workInProgress2.flags|=1024),_instance=!1)}if(lane=_instance,markRef(current2,workInProgress2),state=(workInProgress2.flags&128)!==0,lane||state){if(lane=workInProgress2.stateNode,setCurrentFiber(workInProgress2),state&&typeof Component.getDerivedStateFromError!="function")Component=null,profilerStartTime=-1;else{if(markComponentRenderStarted(workInProgress2),Component=callRenderInDEV(lane),workInProgress2.mode&StrictLegacyMode){setIsStrictModeForDevtools(!0);try{callRenderInDEV(lane)}finally{setIsStrictModeForDevtools(!1)}}markComponentRenderStopped()}workInProgress2.flags|=1,current2!==null&&state?(workInProgress2.child=reconcileChildFibers(workInProgress2,current2.child,null,renderLanes2),workInProgress2.child=reconcileChildFibers(workInProgress2,null,Component,renderLanes2)):reconcileChildren(current2,workInProgress2,Component,renderLanes2),workInProgress2.memoizedState=lane.state,current2=workInProgress2.child}else current2=bailoutOnAlreadyFinishedWork(current2,workInProgress2,renderLanes2);return renderLanes2=workInProgress2.stateNode,_instance&&renderLanes2.props!==nextProps&&(didWarnAboutReassigningProps||console.error("It looks like %s is reassigning its own `this.props` while rendering. This is not supported and can lead to confusing bugs.",getComponentNameFromFiber(workInProgress2)||"a component"),didWarnAboutReassigningProps=!0),current2}function mountHostRootWithoutHydrating(current2,workInProgress2,nextChildren,renderLanes2){return resetHydrationState(),workInProgress2.flags|=256,reconcileChildren(current2,workInProgress2,nextChildren,renderLanes2),workInProgress2.child}function validateFunctionComponentInDev(workInProgress2,Component){Component&&Component.childContextTypes&&console.error(`childContextTypes cannot be defined on a function component.
|
|
209
|
+
%s.childContextTypes = ...`,Component.displayName||Component.name||"Component"),typeof Component.getDerivedStateFromProps=="function"&&(workInProgress2=getComponentNameFromType(Component)||"Unknown",didWarnAboutGetDerivedStateOnFunctionComponent[workInProgress2]||(console.error("%s: Function components do not support getDerivedStateFromProps.",workInProgress2),didWarnAboutGetDerivedStateOnFunctionComponent[workInProgress2]=!0)),typeof Component.contextType=="object"&&Component.contextType!==null&&(Component=getComponentNameFromType(Component)||"Unknown",didWarnAboutContextTypeOnFunctionComponent[Component]||(console.error("%s: Function components do not support contextType.",Component),didWarnAboutContextTypeOnFunctionComponent[Component]=!0))}function mountSuspenseOffscreenState(renderLanes2){return{baseLanes:renderLanes2,cachePool:getSuspendedCache()}}function getRemainingWorkInPrimaryTree(current2,primaryTreeDidDefer,renderLanes2){return current2=current2!==null?current2.childLanes&~renderLanes2:0,primaryTreeDidDefer&&(current2|=workInProgressDeferredLane),current2}function updateSuspenseComponent(current2,workInProgress2,renderLanes2){var JSCompiler_object_inline_digest_2451,JSCompiler_object_inline_stack_2452=workInProgress2.pendingProps;shouldSuspendImpl(workInProgress2)&&(workInProgress2.flags|=128);var JSCompiler_object_inline_componentStack_2453=!1,didSuspend=(workInProgress2.flags&128)!==0;if((JSCompiler_object_inline_digest_2451=didSuspend)||(JSCompiler_object_inline_digest_2451=current2!==null&¤t2.memoizedState===null?!1:(suspenseStackCursor.current&ForceSuspenseFallback)!==0),JSCompiler_object_inline_digest_2451&&(JSCompiler_object_inline_componentStack_2453=!0,workInProgress2.flags&=-129),JSCompiler_object_inline_digest_2451=(workInProgress2.flags&32)!==0,workInProgress2.flags&=-33,current2===null){if(isHydrating){if(JSCompiler_object_inline_componentStack_2453?pushPrimaryTreeSuspenseHandler(workInProgress2):reuseSuspenseHandlerOnStack(workInProgress2),isHydrating){var JSCompiler_object_inline_message_2450=nextHydratableInstance,JSCompiler_temp;if(!(JSCompiler_temp=!JSCompiler_object_inline_message_2450)){c:{var instance=JSCompiler_object_inline_message_2450;for(JSCompiler_temp=rootOrSingletonContext;instance.nodeType!==8;){if(!JSCompiler_temp){JSCompiler_temp=null;break c}if(instance=getNextHydratable(instance.nextSibling),instance===null){JSCompiler_temp=null;break c}}JSCompiler_temp=instance}JSCompiler_temp!==null?(warnIfNotHydrating(),workInProgress2.memoizedState={dehydrated:JSCompiler_temp,treeContext:treeContextProvider!==null?{id:treeContextId,overflow:treeContextOverflow}:null,retryLane:536870912,hydrationErrors:null},instance=createFiber(18,null,null,NoMode),instance.stateNode=JSCompiler_temp,instance.return=workInProgress2,workInProgress2.child=instance,hydrationParentFiber=workInProgress2,nextHydratableInstance=null,JSCompiler_temp=!0):JSCompiler_temp=!1,JSCompiler_temp=!JSCompiler_temp}JSCompiler_temp&&(warnNonHydratedInstance(workInProgress2,JSCompiler_object_inline_message_2450),throwOnHydrationMismatch(workInProgress2))}if(JSCompiler_object_inline_message_2450=workInProgress2.memoizedState,JSCompiler_object_inline_message_2450!==null&&(JSCompiler_object_inline_message_2450=JSCompiler_object_inline_message_2450.dehydrated,JSCompiler_object_inline_message_2450!==null))return isSuspenseInstanceFallback(JSCompiler_object_inline_message_2450)?workInProgress2.lanes=32:workInProgress2.lanes=536870912,null;popSuspenseHandler(workInProgress2)}return JSCompiler_object_inline_message_2450=JSCompiler_object_inline_stack_2452.children,JSCompiler_object_inline_stack_2452=JSCompiler_object_inline_stack_2452.fallback,JSCompiler_object_inline_componentStack_2453?(reuseSuspenseHandlerOnStack(workInProgress2),JSCompiler_object_inline_componentStack_2453=workInProgress2.mode,JSCompiler_object_inline_message_2450=mountWorkInProgressOffscreenFiber({mode:"hidden",children:JSCompiler_object_inline_message_2450},JSCompiler_object_inline_componentStack_2453),JSCompiler_object_inline_stack_2452=createFiberFromFragment(JSCompiler_object_inline_stack_2452,JSCompiler_object_inline_componentStack_2453,renderLanes2,null),JSCompiler_object_inline_message_2450.return=workInProgress2,JSCompiler_object_inline_stack_2452.return=workInProgress2,JSCompiler_object_inline_message_2450.sibling=JSCompiler_object_inline_stack_2452,workInProgress2.child=JSCompiler_object_inline_message_2450,JSCompiler_object_inline_componentStack_2453=workInProgress2.child,JSCompiler_object_inline_componentStack_2453.memoizedState=mountSuspenseOffscreenState(renderLanes2),JSCompiler_object_inline_componentStack_2453.childLanes=getRemainingWorkInPrimaryTree(current2,JSCompiler_object_inline_digest_2451,renderLanes2),workInProgress2.memoizedState=SUSPENDED_MARKER,JSCompiler_object_inline_stack_2452):(pushPrimaryTreeSuspenseHandler(workInProgress2),mountSuspensePrimaryChildren(workInProgress2,JSCompiler_object_inline_message_2450))}var prevState=current2.memoizedState;if(prevState!==null&&(JSCompiler_object_inline_message_2450=prevState.dehydrated,JSCompiler_object_inline_message_2450!==null)){if(didSuspend)workInProgress2.flags&256?(pushPrimaryTreeSuspenseHandler(workInProgress2),workInProgress2.flags&=-257,workInProgress2=retrySuspenseComponentWithoutHydrating(current2,workInProgress2,renderLanes2)):workInProgress2.memoizedState!==null?(reuseSuspenseHandlerOnStack(workInProgress2),workInProgress2.child=current2.child,workInProgress2.flags|=128,workInProgress2=null):(reuseSuspenseHandlerOnStack(workInProgress2),JSCompiler_object_inline_componentStack_2453=JSCompiler_object_inline_stack_2452.fallback,JSCompiler_object_inline_message_2450=workInProgress2.mode,JSCompiler_object_inline_stack_2452=mountWorkInProgressOffscreenFiber({mode:"visible",children:JSCompiler_object_inline_stack_2452.children},JSCompiler_object_inline_message_2450),JSCompiler_object_inline_componentStack_2453=createFiberFromFragment(JSCompiler_object_inline_componentStack_2453,JSCompiler_object_inline_message_2450,renderLanes2,null),JSCompiler_object_inline_componentStack_2453.flags|=2,JSCompiler_object_inline_stack_2452.return=workInProgress2,JSCompiler_object_inline_componentStack_2453.return=workInProgress2,JSCompiler_object_inline_stack_2452.sibling=JSCompiler_object_inline_componentStack_2453,workInProgress2.child=JSCompiler_object_inline_stack_2452,reconcileChildFibers(workInProgress2,current2.child,null,renderLanes2),JSCompiler_object_inline_stack_2452=workInProgress2.child,JSCompiler_object_inline_stack_2452.memoizedState=mountSuspenseOffscreenState(renderLanes2),JSCompiler_object_inline_stack_2452.childLanes=getRemainingWorkInPrimaryTree(current2,JSCompiler_object_inline_digest_2451,renderLanes2),workInProgress2.memoizedState=SUSPENDED_MARKER,workInProgress2=JSCompiler_object_inline_componentStack_2453);else if(pushPrimaryTreeSuspenseHandler(workInProgress2),isHydrating&&console.error("We should not be hydrating here. This is a bug in React. Please file a bug."),isSuspenseInstanceFallback(JSCompiler_object_inline_message_2450)){if(JSCompiler_object_inline_digest_2451=JSCompiler_object_inline_message_2450.nextSibling&&JSCompiler_object_inline_message_2450.nextSibling.dataset,JSCompiler_object_inline_digest_2451){JSCompiler_temp=JSCompiler_object_inline_digest_2451.dgst;var message=JSCompiler_object_inline_digest_2451.msg;instance=JSCompiler_object_inline_digest_2451.stck;var componentStack=JSCompiler_object_inline_digest_2451.cstck}JSCompiler_object_inline_message_2450=message,JSCompiler_object_inline_digest_2451=JSCompiler_temp,JSCompiler_object_inline_stack_2452=instance,JSCompiler_temp=JSCompiler_object_inline_componentStack_2453=componentStack,JSCompiler_object_inline_componentStack_2453=Error(JSCompiler_object_inline_message_2450||"The server could not finish this Suspense boundary, likely due to an error during server rendering. Switched to client rendering."),JSCompiler_object_inline_componentStack_2453.stack=JSCompiler_object_inline_stack_2452||"",JSCompiler_object_inline_componentStack_2453.digest=JSCompiler_object_inline_digest_2451,JSCompiler_object_inline_digest_2451=JSCompiler_temp===void 0?null:JSCompiler_temp,JSCompiler_object_inline_stack_2452={value:JSCompiler_object_inline_componentStack_2453,source:null,stack:JSCompiler_object_inline_digest_2451},typeof JSCompiler_object_inline_digest_2451=="string"&&CapturedStacks.set(JSCompiler_object_inline_componentStack_2453,JSCompiler_object_inline_stack_2452),queueHydrationError(JSCompiler_object_inline_stack_2452),workInProgress2=retrySuspenseComponentWithoutHydrating(current2,workInProgress2,renderLanes2)}else if(didReceiveUpdate||propagateParentContextChanges(current2,workInProgress2,renderLanes2,!1),JSCompiler_object_inline_digest_2451=(renderLanes2¤t2.childLanes)!==0,didReceiveUpdate||JSCompiler_object_inline_digest_2451){if(JSCompiler_object_inline_digest_2451=workInProgressRoot,JSCompiler_object_inline_digest_2451!==null&&(JSCompiler_object_inline_stack_2452=renderLanes2&-renderLanes2,JSCompiler_object_inline_stack_2452=(JSCompiler_object_inline_stack_2452&42)!==0?1:getBumpedLaneForHydrationByLane(JSCompiler_object_inline_stack_2452),JSCompiler_object_inline_stack_2452=(JSCompiler_object_inline_stack_2452&(JSCompiler_object_inline_digest_2451.suspendedLanes|renderLanes2))!==0?0:JSCompiler_object_inline_stack_2452,JSCompiler_object_inline_stack_2452!==0&&JSCompiler_object_inline_stack_2452!==prevState.retryLane))throw prevState.retryLane=JSCompiler_object_inline_stack_2452,enqueueConcurrentRenderForLane(current2,JSCompiler_object_inline_stack_2452),scheduleUpdateOnFiber(JSCompiler_object_inline_digest_2451,current2,JSCompiler_object_inline_stack_2452),SelectiveHydrationException;JSCompiler_object_inline_message_2450.data===SUSPENSE_PENDING_START_DATA||renderDidSuspendDelayIfPossible(),workInProgress2=retrySuspenseComponentWithoutHydrating(current2,workInProgress2,renderLanes2)}else JSCompiler_object_inline_message_2450.data===SUSPENSE_PENDING_START_DATA?(workInProgress2.flags|=192,workInProgress2.child=current2.child,workInProgress2=null):(current2=prevState.treeContext,nextHydratableInstance=getNextHydratable(JSCompiler_object_inline_message_2450.nextSibling),hydrationParentFiber=workInProgress2,isHydrating=!0,hydrationErrors=null,didSuspendOrErrorDEV=!1,hydrationDiffRootDEV=null,rootOrSingletonContext=!1,current2!==null&&(warnIfNotHydrating(),idStack[idStackIndex++]=treeContextId,idStack[idStackIndex++]=treeContextOverflow,idStack[idStackIndex++]=treeContextProvider,treeContextId=current2.id,treeContextOverflow=current2.overflow,treeContextProvider=workInProgress2),workInProgress2=mountSuspensePrimaryChildren(workInProgress2,JSCompiler_object_inline_stack_2452.children),workInProgress2.flags|=4096);return workInProgress2}return JSCompiler_object_inline_componentStack_2453?(reuseSuspenseHandlerOnStack(workInProgress2),JSCompiler_object_inline_componentStack_2453=JSCompiler_object_inline_stack_2452.fallback,JSCompiler_object_inline_message_2450=workInProgress2.mode,JSCompiler_temp=current2.child,instance=JSCompiler_temp.sibling,JSCompiler_object_inline_stack_2452=createWorkInProgress(JSCompiler_temp,{mode:"hidden",children:JSCompiler_object_inline_stack_2452.children}),JSCompiler_object_inline_stack_2452.subtreeFlags=JSCompiler_temp.subtreeFlags&65011712,instance!==null?JSCompiler_object_inline_componentStack_2453=createWorkInProgress(instance,JSCompiler_object_inline_componentStack_2453):(JSCompiler_object_inline_componentStack_2453=createFiberFromFragment(JSCompiler_object_inline_componentStack_2453,JSCompiler_object_inline_message_2450,renderLanes2,null),JSCompiler_object_inline_componentStack_2453.flags|=2),JSCompiler_object_inline_componentStack_2453.return=workInProgress2,JSCompiler_object_inline_stack_2452.return=workInProgress2,JSCompiler_object_inline_stack_2452.sibling=JSCompiler_object_inline_componentStack_2453,workInProgress2.child=JSCompiler_object_inline_stack_2452,JSCompiler_object_inline_stack_2452=JSCompiler_object_inline_componentStack_2453,JSCompiler_object_inline_componentStack_2453=workInProgress2.child,JSCompiler_object_inline_message_2450=current2.child.memoizedState,JSCompiler_object_inline_message_2450===null?JSCompiler_object_inline_message_2450=mountSuspenseOffscreenState(renderLanes2):(JSCompiler_temp=JSCompiler_object_inline_message_2450.cachePool,JSCompiler_temp!==null?(instance=CacheContext._currentValue,JSCompiler_temp=JSCompiler_temp.parent!==instance?{parent:instance,pool:instance}:JSCompiler_temp):JSCompiler_temp=getSuspendedCache(),JSCompiler_object_inline_message_2450={baseLanes:JSCompiler_object_inline_message_2450.baseLanes|renderLanes2,cachePool:JSCompiler_temp}),JSCompiler_object_inline_componentStack_2453.memoizedState=JSCompiler_object_inline_message_2450,JSCompiler_object_inline_componentStack_2453.childLanes=getRemainingWorkInPrimaryTree(current2,JSCompiler_object_inline_digest_2451,renderLanes2),workInProgress2.memoizedState=SUSPENDED_MARKER,JSCompiler_object_inline_stack_2452):(pushPrimaryTreeSuspenseHandler(workInProgress2),renderLanes2=current2.child,current2=renderLanes2.sibling,renderLanes2=createWorkInProgress(renderLanes2,{mode:"visible",children:JSCompiler_object_inline_stack_2452.children}),renderLanes2.return=workInProgress2,renderLanes2.sibling=null,current2!==null&&(JSCompiler_object_inline_digest_2451=workInProgress2.deletions,JSCompiler_object_inline_digest_2451===null?(workInProgress2.deletions=[current2],workInProgress2.flags|=16):JSCompiler_object_inline_digest_2451.push(current2)),workInProgress2.child=renderLanes2,workInProgress2.memoizedState=null,renderLanes2)}function mountSuspensePrimaryChildren(workInProgress2,primaryChildren){return primaryChildren=mountWorkInProgressOffscreenFiber({mode:"visible",children:primaryChildren},workInProgress2.mode),primaryChildren.return=workInProgress2,workInProgress2.child=primaryChildren}function mountWorkInProgressOffscreenFiber(offscreenProps,mode){return offscreenProps=createFiber(22,offscreenProps,null,mode),offscreenProps.lanes=0,offscreenProps.stateNode={_visibility:OffscreenVisible,_pendingMarkers:null,_retryCache:null,_transitions:null},offscreenProps}function retrySuspenseComponentWithoutHydrating(current2,workInProgress2,renderLanes2){return reconcileChildFibers(workInProgress2,current2.child,null,renderLanes2),current2=mountSuspensePrimaryChildren(workInProgress2,workInProgress2.pendingProps.children),current2.flags|=2,workInProgress2.memoizedState=null,current2}function scheduleSuspenseWorkOnFiber(fiber,renderLanes2,propagationRoot){fiber.lanes|=renderLanes2;var alternate=fiber.alternate;alternate!==null&&(alternate.lanes|=renderLanes2),scheduleContextWorkOnParentPath(fiber.return,renderLanes2,propagationRoot)}function validateSuspenseListNestedChild(childSlot,index){var isAnArray=isArrayImpl(childSlot);return childSlot=!isAnArray&&typeof getIteratorFn(childSlot)=="function",isAnArray||childSlot?(isAnArray=isAnArray?"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>",isAnArray,index,isAnArray),!1):!0}function initSuspenseListRenderState(workInProgress2,isBackwards,tail,lastContentRow,tailMode){var renderState=workInProgress2.memoizedState;renderState===null?workInProgress2.memoizedState={isBackwards,rendering:null,renderingStartTime:0,last:lastContentRow,tail,tailMode}:(renderState.isBackwards=isBackwards,renderState.rendering=null,renderState.renderingStartTime=0,renderState.last=lastContentRow,renderState.tail=tail,renderState.tailMode=tailMode)}function updateSuspenseListComponent(current2,workInProgress2,renderLanes2){var nextProps=workInProgress2.pendingProps,revealOrder=nextProps.revealOrder,tailMode=nextProps.tail;if(nextProps=nextProps.children,revealOrder!==void 0&&revealOrder!=="forwards"&&revealOrder!=="backwards"&&revealOrder!=="together"&&!didWarnAboutRevealOrder[revealOrder])if(didWarnAboutRevealOrder[revealOrder]=!0,typeof revealOrder=="string")switch(revealOrder.toLowerCase()){case"together":case"forwards":case"backwards":console.error('"%s" is not a valid value for revealOrder on <SuspenseList />. Use lowercase "%s" instead.',revealOrder,revealOrder.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.',revealOrder,revealOrder.toLowerCase());break;default:console.error('"%s" is not a supported revealOrder on <SuspenseList />. Did you mean "together", "forwards" or "backwards"?',revealOrder)}else console.error('%s is not a supported value for revealOrder on <SuspenseList />. Did you mean "together", "forwards" or "backwards"?',revealOrder);tailMode===void 0||didWarnAboutTailOptions[tailMode]||(tailMode!=="collapsed"&&tailMode!=="hidden"?(didWarnAboutTailOptions[tailMode]=!0,console.error('"%s" is not a supported value for tail on <SuspenseList />. Did you mean "collapsed" or "hidden"?',tailMode)):revealOrder!=="forwards"&&revealOrder!=="backwards"&&(didWarnAboutTailOptions[tailMode]=!0,console.error('<SuspenseList tail="%s" /> is only valid if revealOrder is "forwards" or "backwards". Did you mean to specify revealOrder="forwards"?',tailMode)));a:if((revealOrder==="forwards"||revealOrder==="backwards")&&nextProps!==void 0&&nextProps!==null&&nextProps!==!1)if(isArrayImpl(nextProps)){for(var i=0;i<nextProps.length;i++)if(!validateSuspenseListNestedChild(nextProps[i],i))break a}else if(i=getIteratorFn(nextProps),typeof i=="function"){if(i=i.call(nextProps))for(var step=i.next(),_i=0;!step.done;step=i.next()){if(!validateSuspenseListNestedChild(step.value,_i))break a;_i++}}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?',revealOrder);if(reconcileChildren(current2,workInProgress2,nextProps,renderLanes2),nextProps=suspenseStackCursor.current,(nextProps&ForceSuspenseFallback)!==0)nextProps=nextProps&SubtreeSuspenseContextMask|ForceSuspenseFallback,workInProgress2.flags|=128;else{if(current2!==null&&(current2.flags&128)!==0)a:for(current2=workInProgress2.child;current2!==null;){if(current2.tag===13)current2.memoizedState!==null&&scheduleSuspenseWorkOnFiber(current2,renderLanes2,workInProgress2);else if(current2.tag===19)scheduleSuspenseWorkOnFiber(current2,renderLanes2,workInProgress2);else if(current2.child!==null){current2.child.return=current2,current2=current2.child;continue}if(current2===workInProgress2)break a;for(;current2.sibling===null;){if(current2.return===null||current2.return===workInProgress2)break a;current2=current2.return}current2.sibling.return=current2.return,current2=current2.sibling}nextProps&=SubtreeSuspenseContextMask}switch(push(suspenseStackCursor,nextProps,workInProgress2),revealOrder){case"forwards":for(renderLanes2=workInProgress2.child,revealOrder=null;renderLanes2!==null;)current2=renderLanes2.alternate,current2!==null&&findFirstSuspended(current2)===null&&(revealOrder=renderLanes2),renderLanes2=renderLanes2.sibling;renderLanes2=revealOrder,renderLanes2===null?(revealOrder=workInProgress2.child,workInProgress2.child=null):(revealOrder=renderLanes2.sibling,renderLanes2.sibling=null),initSuspenseListRenderState(workInProgress2,!1,revealOrder,renderLanes2,tailMode);break;case"backwards":for(renderLanes2=null,revealOrder=workInProgress2.child,workInProgress2.child=null;revealOrder!==null;){if(current2=revealOrder.alternate,current2!==null&&findFirstSuspended(current2)===null){workInProgress2.child=revealOrder;break}current2=revealOrder.sibling,revealOrder.sibling=renderLanes2,renderLanes2=revealOrder,revealOrder=current2}initSuspenseListRenderState(workInProgress2,!0,renderLanes2,null,tailMode);break;case"together":initSuspenseListRenderState(workInProgress2,!1,null,null,void 0);break;default:workInProgress2.memoizedState=null}return workInProgress2.child}function bailoutOnAlreadyFinishedWork(current2,workInProgress2,renderLanes2){if(current2!==null&&(workInProgress2.dependencies=current2.dependencies),profilerStartTime=-1,workInProgressRootSkippedLanes|=workInProgress2.lanes,(renderLanes2&workInProgress2.childLanes)===0)if(current2!==null){if(propagateParentContextChanges(current2,workInProgress2,renderLanes2,!1),(renderLanes2&workInProgress2.childLanes)===0)return null}else return null;if(current2!==null&&workInProgress2.child!==current2.child)throw Error("Resuming work not yet implemented.");if(workInProgress2.child!==null){for(current2=workInProgress2.child,renderLanes2=createWorkInProgress(current2,current2.pendingProps),workInProgress2.child=renderLanes2,renderLanes2.return=workInProgress2;current2.sibling!==null;)current2=current2.sibling,renderLanes2=renderLanes2.sibling=createWorkInProgress(current2,current2.pendingProps),renderLanes2.return=workInProgress2;renderLanes2.sibling=null}return workInProgress2.child}function checkScheduledUpdateOrContext(current2,renderLanes2){return(current2.lanes&renderLanes2)!==0?!0:(current2=current2.dependencies,!!(current2!==null&&checkIfContextChanged(current2)))}function attemptEarlyBailoutIfNoScheduledUpdate(current2,workInProgress2,renderLanes2){switch(workInProgress2.tag){case 3:pushHostContainer(workInProgress2,workInProgress2.stateNode.containerInfo),pushProvider(workInProgress2,CacheContext,current2.memoizedState.cache),resetHydrationState();break;case 27:case 5:pushHostContext(workInProgress2);break;case 4:pushHostContainer(workInProgress2,workInProgress2.stateNode.containerInfo);break;case 10:pushProvider(workInProgress2,workInProgress2.type,workInProgress2.memoizedProps.value);break;case 12:(renderLanes2&workInProgress2.childLanes)!==0&&(workInProgress2.flags|=4),workInProgress2.flags|=2048;var stateNode=workInProgress2.stateNode;stateNode.effectDuration=-0,stateNode.passiveEffectDuration=-0;break;case 13:if(stateNode=workInProgress2.memoizedState,stateNode!==null)return stateNode.dehydrated!==null?(pushPrimaryTreeSuspenseHandler(workInProgress2),workInProgress2.flags|=128,null):(renderLanes2&workInProgress2.child.childLanes)!==0?updateSuspenseComponent(current2,workInProgress2,renderLanes2):(pushPrimaryTreeSuspenseHandler(workInProgress2),current2=bailoutOnAlreadyFinishedWork(current2,workInProgress2,renderLanes2),current2!==null?current2.sibling:null);pushPrimaryTreeSuspenseHandler(workInProgress2);break;case 19:var didSuspendBefore=(current2.flags&128)!==0;if(stateNode=(renderLanes2&workInProgress2.childLanes)!==0,stateNode||(propagateParentContextChanges(current2,workInProgress2,renderLanes2,!1),stateNode=(renderLanes2&workInProgress2.childLanes)!==0),didSuspendBefore){if(stateNode)return updateSuspenseListComponent(current2,workInProgress2,renderLanes2);workInProgress2.flags|=128}if(didSuspendBefore=workInProgress2.memoizedState,didSuspendBefore!==null&&(didSuspendBefore.rendering=null,didSuspendBefore.tail=null,didSuspendBefore.lastEffect=null),push(suspenseStackCursor,suspenseStackCursor.current,workInProgress2),stateNode)break;return null;case 22:case 23:return workInProgress2.lanes=0,updateOffscreenComponent(current2,workInProgress2,renderLanes2);case 24:pushProvider(workInProgress2,CacheContext,current2.memoizedState.cache)}return bailoutOnAlreadyFinishedWork(current2,workInProgress2,renderLanes2)}function beginWork(current2,workInProgress2,renderLanes2){if(workInProgress2._debugNeedsRemount&¤t2!==null){renderLanes2=createFiberFromTypeAndProps(workInProgress2.type,workInProgress2.key,workInProgress2.pendingProps,workInProgress2._debugOwner||null,workInProgress2.mode,workInProgress2.lanes),renderLanes2._debugStack=workInProgress2._debugStack,renderLanes2._debugTask=workInProgress2._debugTask;var returnFiber=workInProgress2.return;if(returnFiber===null)throw Error("Cannot swap the root fiber.");if(current2.alternate=null,workInProgress2.alternate=null,renderLanes2.index=workInProgress2.index,renderLanes2.sibling=workInProgress2.sibling,renderLanes2.return=workInProgress2.return,renderLanes2.ref=workInProgress2.ref,renderLanes2._debugInfo=workInProgress2._debugInfo,workInProgress2===returnFiber.child)returnFiber.child=renderLanes2;else{var prevSibling=returnFiber.child;if(prevSibling===null)throw Error("Expected parent to have a child.");for(;prevSibling.sibling!==workInProgress2;)if(prevSibling=prevSibling.sibling,prevSibling===null)throw Error("Expected to find the previous sibling.");prevSibling.sibling=renderLanes2}return workInProgress2=returnFiber.deletions,workInProgress2===null?(returnFiber.deletions=[current2],returnFiber.flags|=16):workInProgress2.push(current2),renderLanes2.flags|=2,renderLanes2}if(current2!==null)if(current2.memoizedProps!==workInProgress2.pendingProps||workInProgress2.type!==current2.type)didReceiveUpdate=!0;else{if(!checkScheduledUpdateOrContext(current2,renderLanes2)&&(workInProgress2.flags&128)===0)return didReceiveUpdate=!1,attemptEarlyBailoutIfNoScheduledUpdate(current2,workInProgress2,renderLanes2);didReceiveUpdate=(current2.flags&131072)!==0}else didReceiveUpdate=!1,(returnFiber=isHydrating)&&(warnIfNotHydrating(),returnFiber=(workInProgress2.flags&1048576)!==0),returnFiber&&(returnFiber=workInProgress2.index,warnIfNotHydrating(),pushTreeId(workInProgress2,treeForkCount,returnFiber));switch(workInProgress2.lanes=0,workInProgress2.tag){case 16:a:if(returnFiber=workInProgress2.pendingProps,current2=callLazyInitInDEV(workInProgress2.elementType),workInProgress2.type=current2,typeof current2=="function")shouldConstruct(current2)?(returnFiber=resolveClassComponentProps(current2,returnFiber),workInProgress2.tag=1,workInProgress2.type=current2=resolveFunctionForHotReloading(current2),workInProgress2=updateClassComponent(null,workInProgress2,current2,returnFiber,renderLanes2)):(workInProgress2.tag=0,validateFunctionComponentInDev(workInProgress2,current2),workInProgress2.type=current2=resolveFunctionForHotReloading(current2),workInProgress2=updateFunctionComponent(null,workInProgress2,current2,returnFiber,renderLanes2));else{if(current2!=null){if(prevSibling=current2.$$typeof,prevSibling===REACT_FORWARD_REF_TYPE){workInProgress2.tag=11,workInProgress2.type=current2=resolveForwardRefForHotReloading(current2),workInProgress2=updateForwardRef(null,workInProgress2,current2,returnFiber,renderLanes2);break a}else if(prevSibling===REACT_MEMO_TYPE){workInProgress2.tag=14,workInProgress2=updateMemoComponent(null,workInProgress2,current2,returnFiber,renderLanes2);break a}}throw workInProgress2="",current2!==null&&typeof current2=="object"&¤t2.$$typeof===REACT_LAZY_TYPE&&(workInProgress2=" Did you wrap a component in React.lazy() more than once?"),current2=getComponentNameFromType(current2)||current2,Error("Element type is invalid. Received a promise that resolves to: "+current2+". Lazy element type must resolve to a class or function."+workInProgress2)}return workInProgress2;case 0:return updateFunctionComponent(current2,workInProgress2,workInProgress2.type,workInProgress2.pendingProps,renderLanes2);case 1:return returnFiber=workInProgress2.type,prevSibling=resolveClassComponentProps(returnFiber,workInProgress2.pendingProps),updateClassComponent(current2,workInProgress2,returnFiber,prevSibling,renderLanes2);case 3:a:{if(pushHostContainer(workInProgress2,workInProgress2.stateNode.containerInfo),current2===null)throw Error("Should have a current fiber. This is a bug in React.");returnFiber=workInProgress2.pendingProps;var prevState=workInProgress2.memoizedState;prevSibling=prevState.element,cloneUpdateQueue(current2,workInProgress2),processUpdateQueue(workInProgress2,returnFiber,null,renderLanes2);var nextState=workInProgress2.memoizedState;if(returnFiber=nextState.cache,pushProvider(workInProgress2,CacheContext,returnFiber),returnFiber!==prevState.cache&&propagateContextChanges(workInProgress2,[CacheContext],renderLanes2,!0),suspendIfUpdateReadFromEntangledAsyncAction(),returnFiber=nextState.element,prevState.isDehydrated)if(prevState={element:returnFiber,isDehydrated:!1,cache:nextState.cache},workInProgress2.updateQueue.baseState=prevState,workInProgress2.memoizedState=prevState,workInProgress2.flags&256){workInProgress2=mountHostRootWithoutHydrating(current2,workInProgress2,returnFiber,renderLanes2);break a}else if(returnFiber!==prevSibling){prevSibling=createCapturedValueAtFiber(Error("This root received an early update, before anything was able hydrate. Switched the entire root to client rendering."),workInProgress2),queueHydrationError(prevSibling),workInProgress2=mountHostRootWithoutHydrating(current2,workInProgress2,returnFiber,renderLanes2);break a}else{switch(current2=workInProgress2.stateNode.containerInfo,current2.nodeType){case 9:current2=current2.body;break;default:current2=current2.nodeName==="HTML"?current2.ownerDocument.body:current2}for(nextHydratableInstance=getNextHydratable(current2.firstChild),hydrationParentFiber=workInProgress2,isHydrating=!0,hydrationErrors=null,didSuspendOrErrorDEV=!1,hydrationDiffRootDEV=null,rootOrSingletonContext=!0,current2=mountChildFibers(workInProgress2,null,returnFiber,renderLanes2),workInProgress2.child=current2;current2;)current2.flags=current2.flags&-3|4096,current2=current2.sibling}else{if(resetHydrationState(),returnFiber===prevSibling){workInProgress2=bailoutOnAlreadyFinishedWork(current2,workInProgress2,renderLanes2);break a}reconcileChildren(current2,workInProgress2,returnFiber,renderLanes2)}workInProgress2=workInProgress2.child}return workInProgress2;case 26:return markRef(current2,workInProgress2),current2===null?(current2=getResource(workInProgress2.type,null,workInProgress2.pendingProps,null))?workInProgress2.memoizedState=current2:isHydrating||(current2=workInProgress2.type,renderLanes2=workInProgress2.pendingProps,returnFiber=requiredContext(rootInstanceStackCursor.current),returnFiber=getOwnerDocumentFromRootContainer(returnFiber).createElement(current2),returnFiber[internalInstanceKey]=workInProgress2,returnFiber[internalPropsKey]=renderLanes2,setInitialProperties(returnFiber,current2,renderLanes2),markNodeAsHoistable(returnFiber),workInProgress2.stateNode=returnFiber):workInProgress2.memoizedState=getResource(workInProgress2.type,current2.memoizedProps,workInProgress2.pendingProps,current2.memoizedState),null;case 27:return pushHostContext(workInProgress2),current2===null&&isHydrating&&(returnFiber=requiredContext(rootInstanceStackCursor.current),prevSibling=getHostContext(),returnFiber=workInProgress2.stateNode=resolveSingletonInstance(workInProgress2.type,workInProgress2.pendingProps,returnFiber,prevSibling,!1),didSuspendOrErrorDEV||(prevSibling=diffHydratedProperties(returnFiber,workInProgress2.type,workInProgress2.pendingProps,prevSibling),prevSibling!==null&&(buildHydrationDiffNode(workInProgress2,0).serverProps=prevSibling)),hydrationParentFiber=workInProgress2,rootOrSingletonContext=!0,prevSibling=nextHydratableInstance,isSingletonScope(workInProgress2.type)?(previousHydratableOnEnteringScopedSingleton=prevSibling,nextHydratableInstance=getNextHydratable(returnFiber.firstChild)):nextHydratableInstance=prevSibling),reconcileChildren(current2,workInProgress2,workInProgress2.pendingProps.children,renderLanes2),markRef(current2,workInProgress2),current2===null&&(workInProgress2.flags|=4194304),workInProgress2.child;case 5:return current2===null&&isHydrating&&(prevState=getHostContext(),returnFiber=validateDOMNesting(workInProgress2.type,prevState.ancestorInfo),prevSibling=nextHydratableInstance,(nextState=!prevSibling)||(nextState=canHydrateInstance(prevSibling,workInProgress2.type,workInProgress2.pendingProps,rootOrSingletonContext),nextState!==null?(workInProgress2.stateNode=nextState,didSuspendOrErrorDEV||(prevState=diffHydratedProperties(nextState,workInProgress2.type,workInProgress2.pendingProps,prevState),prevState!==null&&(buildHydrationDiffNode(workInProgress2,0).serverProps=prevState)),hydrationParentFiber=workInProgress2,nextHydratableInstance=getNextHydratable(nextState.firstChild),rootOrSingletonContext=!1,prevState=!0):prevState=!1,nextState=!prevState),nextState&&(returnFiber&&warnNonHydratedInstance(workInProgress2,prevSibling),throwOnHydrationMismatch(workInProgress2))),pushHostContext(workInProgress2),prevSibling=workInProgress2.type,prevState=workInProgress2.pendingProps,nextState=current2!==null?current2.memoizedProps:null,returnFiber=prevState.children,shouldSetTextContent(prevSibling,prevState)?returnFiber=null:nextState!==null&&shouldSetTextContent(prevSibling,nextState)&&(workInProgress2.flags|=32),workInProgress2.memoizedState!==null&&(prevSibling=renderWithHooks(current2,workInProgress2,TransitionAwareHostComponent,null,null,renderLanes2),HostTransitionContext._currentValue=prevSibling),markRef(current2,workInProgress2),reconcileChildren(current2,workInProgress2,returnFiber,renderLanes2),workInProgress2.child;case 6:return current2===null&&isHydrating&&(current2=workInProgress2.pendingProps,renderLanes2=getHostContext(),returnFiber=renderLanes2.ancestorInfo.current,current2=returnFiber!=null?validateTextNesting(current2,returnFiber.tag,renderLanes2.ancestorInfo.implicitRootScope):!0,renderLanes2=nextHydratableInstance,(returnFiber=!renderLanes2)||(returnFiber=canHydrateTextInstance(renderLanes2,workInProgress2.pendingProps,rootOrSingletonContext),returnFiber!==null?(workInProgress2.stateNode=returnFiber,hydrationParentFiber=workInProgress2,nextHydratableInstance=null,returnFiber=!0):returnFiber=!1,returnFiber=!returnFiber),returnFiber&&(current2&&warnNonHydratedInstance(workInProgress2,renderLanes2),throwOnHydrationMismatch(workInProgress2))),null;case 13:return updateSuspenseComponent(current2,workInProgress2,renderLanes2);case 4:return pushHostContainer(workInProgress2,workInProgress2.stateNode.containerInfo),returnFiber=workInProgress2.pendingProps,current2===null?workInProgress2.child=reconcileChildFibers(workInProgress2,null,returnFiber,renderLanes2):reconcileChildren(current2,workInProgress2,returnFiber,renderLanes2),workInProgress2.child;case 11:return updateForwardRef(current2,workInProgress2,workInProgress2.type,workInProgress2.pendingProps,renderLanes2);case 7:return reconcileChildren(current2,workInProgress2,workInProgress2.pendingProps,renderLanes2),workInProgress2.child;case 8:return reconcileChildren(current2,workInProgress2,workInProgress2.pendingProps.children,renderLanes2),workInProgress2.child;case 12:return workInProgress2.flags|=4,workInProgress2.flags|=2048,returnFiber=workInProgress2.stateNode,returnFiber.effectDuration=-0,returnFiber.passiveEffectDuration=-0,reconcileChildren(current2,workInProgress2,workInProgress2.pendingProps.children,renderLanes2),workInProgress2.child;case 10:return returnFiber=workInProgress2.type,prevSibling=workInProgress2.pendingProps,prevState=prevSibling.value,"value"in prevSibling||hasWarnedAboutUsingNoValuePropOnContextProvider||(hasWarnedAboutUsingNoValuePropOnContextProvider=!0,console.error("The `value` prop is required for the `<Context.Provider>`. Did you misspell it or forget to pass it?")),pushProvider(workInProgress2,returnFiber,prevState),reconcileChildren(current2,workInProgress2,prevSibling.children,renderLanes2),workInProgress2.child;case 9:return prevSibling=workInProgress2.type._context,returnFiber=workInProgress2.pendingProps.children,typeof returnFiber!="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."),prepareToReadContext(workInProgress2),prevSibling=readContext(prevSibling),markComponentRenderStarted(workInProgress2),returnFiber=callComponentInDEV(returnFiber,prevSibling,void 0),markComponentRenderStopped(),workInProgress2.flags|=1,reconcileChildren(current2,workInProgress2,returnFiber,renderLanes2),workInProgress2.child;case 14:return updateMemoComponent(current2,workInProgress2,workInProgress2.type,workInProgress2.pendingProps,renderLanes2);case 15:return updateSimpleMemoComponent(current2,workInProgress2,workInProgress2.type,workInProgress2.pendingProps,renderLanes2);case 19:return updateSuspenseListComponent(current2,workInProgress2,renderLanes2);case 31:return returnFiber=workInProgress2.pendingProps,renderLanes2=workInProgress2.mode,returnFiber={mode:returnFiber.mode,children:returnFiber.children},current2===null?(current2=mountWorkInProgressOffscreenFiber(returnFiber,renderLanes2),current2.ref=workInProgress2.ref,workInProgress2.child=current2,current2.return=workInProgress2,workInProgress2=current2):(current2=createWorkInProgress(current2.child,returnFiber),current2.ref=workInProgress2.ref,workInProgress2.child=current2,current2.return=workInProgress2,workInProgress2=current2),workInProgress2;case 22:return updateOffscreenComponent(current2,workInProgress2,renderLanes2);case 24:return prepareToReadContext(workInProgress2),returnFiber=readContext(CacheContext),current2===null?(prevSibling=peekCacheFromPool(),prevSibling===null&&(prevSibling=workInProgressRoot,prevState=createCache(),prevSibling.pooledCache=prevState,retainCache(prevState),prevState!==null&&(prevSibling.pooledCacheLanes|=renderLanes2),prevSibling=prevState),workInProgress2.memoizedState={parent:returnFiber,cache:prevSibling},initializeUpdateQueue(workInProgress2),pushProvider(workInProgress2,CacheContext,prevSibling)):((current2.lanes&renderLanes2)!==0&&(cloneUpdateQueue(current2,workInProgress2),processUpdateQueue(workInProgress2,null,null,renderLanes2),suspendIfUpdateReadFromEntangledAsyncAction()),prevSibling=current2.memoizedState,prevState=workInProgress2.memoizedState,prevSibling.parent!==returnFiber?(prevSibling={parent:returnFiber,cache:returnFiber},workInProgress2.memoizedState=prevSibling,workInProgress2.lanes===0&&(workInProgress2.memoizedState=workInProgress2.updateQueue.baseState=prevSibling),pushProvider(workInProgress2,CacheContext,returnFiber)):(returnFiber=prevState.cache,pushProvider(workInProgress2,CacheContext,returnFiber),returnFiber!==prevSibling.cache&&propagateContextChanges(workInProgress2,[CacheContext],renderLanes2,!0))),reconcileChildren(current2,workInProgress2,workInProgress2.pendingProps.children,renderLanes2),workInProgress2.child;case 29:throw workInProgress2.pendingProps}throw Error("Unknown unit of work tag ("+workInProgress2.tag+"). This error is likely caused by a bug in React. Please file an issue.")}function markUpdate(workInProgress2){workInProgress2.flags|=4}function preloadResourceAndSuspendIfNeeded(workInProgress2,resource){if(resource.type!=="stylesheet"||(resource.state.loading&Inserted)!==NotLoaded)workInProgress2.flags&=-16777217;else if(workInProgress2.flags|=16777216,!preloadResource(resource)){if(resource=suspenseHandlerStackCursor.current,resource!==null&&((workInProgressRootRenderLanes&4194048)===workInProgressRootRenderLanes?shellBoundary!==null:(workInProgressRootRenderLanes&62914560)!==workInProgressRootRenderLanes&&(workInProgressRootRenderLanes&536870912)===0||resource!==shellBoundary))throw suspendedThenable=noopSuspenseyCommitThenable,SuspenseyCommitException;workInProgress2.flags|=8192}}function scheduleRetryEffect(workInProgress2,retryQueue){retryQueue!==null&&(workInProgress2.flags|=4),workInProgress2.flags&16384&&(retryQueue=workInProgress2.tag!==22?claimNextRetryLane():536870912,workInProgress2.lanes|=retryQueue,workInProgressSuspendedRetryLanes|=retryQueue)}function cutOffTailIfNeeded(renderState,hasRenderedATailFallback){if(!isHydrating)switch(renderState.tailMode){case"hidden":hasRenderedATailFallback=renderState.tail;for(var lastTailNode=null;hasRenderedATailFallback!==null;)hasRenderedATailFallback.alternate!==null&&(lastTailNode=hasRenderedATailFallback),hasRenderedATailFallback=hasRenderedATailFallback.sibling;lastTailNode===null?renderState.tail=null:lastTailNode.sibling=null;break;case"collapsed":lastTailNode=renderState.tail;for(var _lastTailNode=null;lastTailNode!==null;)lastTailNode.alternate!==null&&(_lastTailNode=lastTailNode),lastTailNode=lastTailNode.sibling;_lastTailNode===null?hasRenderedATailFallback||renderState.tail===null?renderState.tail=null:renderState.tail.sibling=null:_lastTailNode.sibling=null}}function bubbleProperties(completedWork){var didBailout=completedWork.alternate!==null&&completedWork.alternate.child===completedWork.child,newChildLanes=0,subtreeFlags=0;if(didBailout)if((completedWork.mode&ProfileMode)!==NoMode){for(var _treeBaseDuration=completedWork.selfBaseDuration,_child2=completedWork.child;_child2!==null;)newChildLanes|=_child2.lanes|_child2.childLanes,subtreeFlags|=_child2.subtreeFlags&65011712,subtreeFlags|=_child2.flags&65011712,_treeBaseDuration+=_child2.treeBaseDuration,_child2=_child2.sibling;completedWork.treeBaseDuration=_treeBaseDuration}else for(_treeBaseDuration=completedWork.child;_treeBaseDuration!==null;)newChildLanes|=_treeBaseDuration.lanes|_treeBaseDuration.childLanes,subtreeFlags|=_treeBaseDuration.subtreeFlags&65011712,subtreeFlags|=_treeBaseDuration.flags&65011712,_treeBaseDuration.return=completedWork,_treeBaseDuration=_treeBaseDuration.sibling;else if((completedWork.mode&ProfileMode)!==NoMode){_treeBaseDuration=completedWork.actualDuration,_child2=completedWork.selfBaseDuration;for(var child=completedWork.child;child!==null;)newChildLanes|=child.lanes|child.childLanes,subtreeFlags|=child.subtreeFlags,subtreeFlags|=child.flags,_treeBaseDuration+=child.actualDuration,_child2+=child.treeBaseDuration,child=child.sibling;completedWork.actualDuration=_treeBaseDuration,completedWork.treeBaseDuration=_child2}else for(_treeBaseDuration=completedWork.child;_treeBaseDuration!==null;)newChildLanes|=_treeBaseDuration.lanes|_treeBaseDuration.childLanes,subtreeFlags|=_treeBaseDuration.subtreeFlags,subtreeFlags|=_treeBaseDuration.flags,_treeBaseDuration.return=completedWork,_treeBaseDuration=_treeBaseDuration.sibling;return completedWork.subtreeFlags|=subtreeFlags,completedWork.childLanes=newChildLanes,didBailout}function completeWork(current2,workInProgress2,renderLanes2){var newProps=workInProgress2.pendingProps;switch(popTreeContext(workInProgress2),workInProgress2.tag){case 31:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return bubbleProperties(workInProgress2),null;case 1:return bubbleProperties(workInProgress2),null;case 3:return renderLanes2=workInProgress2.stateNode,newProps=null,current2!==null&&(newProps=current2.memoizedState.cache),workInProgress2.memoizedState.cache!==newProps&&(workInProgress2.flags|=2048),popProvider(CacheContext,workInProgress2),popHostContainer(workInProgress2),renderLanes2.pendingContext&&(renderLanes2.context=renderLanes2.pendingContext,renderLanes2.pendingContext=null),(current2===null||current2.child===null)&&(popHydrationState(workInProgress2)?(emitPendingHydrationWarnings(),markUpdate(workInProgress2)):current2===null||current2.memoizedState.isDehydrated&&(workInProgress2.flags&256)===0||(workInProgress2.flags|=1024,upgradeHydrationErrorsToRecoverable())),bubbleProperties(workInProgress2),null;case 26:return renderLanes2=workInProgress2.memoizedState,current2===null?(markUpdate(workInProgress2),renderLanes2!==null?(bubbleProperties(workInProgress2),preloadResourceAndSuspendIfNeeded(workInProgress2,renderLanes2)):(bubbleProperties(workInProgress2),workInProgress2.flags&=-16777217)):renderLanes2?renderLanes2!==current2.memoizedState?(markUpdate(workInProgress2),bubbleProperties(workInProgress2),preloadResourceAndSuspendIfNeeded(workInProgress2,renderLanes2)):(bubbleProperties(workInProgress2),workInProgress2.flags&=-16777217):(current2.memoizedProps!==newProps&&markUpdate(workInProgress2),bubbleProperties(workInProgress2),workInProgress2.flags&=-16777217),null;case 27:popHostContext(workInProgress2),renderLanes2=requiredContext(rootInstanceStackCursor.current);var _type=workInProgress2.type;if(current2!==null&&workInProgress2.stateNode!=null)current2.memoizedProps!==newProps&&markUpdate(workInProgress2);else{if(!newProps){if(workInProgress2.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 bubbleProperties(workInProgress2),null}current2=getHostContext(),popHydrationState(workInProgress2)?prepareToHydrateHostInstance(workInProgress2):(current2=resolveSingletonInstance(_type,newProps,renderLanes2,current2,!0),workInProgress2.stateNode=current2,markUpdate(workInProgress2))}return bubbleProperties(workInProgress2),null;case 5:if(popHostContext(workInProgress2),renderLanes2=workInProgress2.type,current2!==null&&workInProgress2.stateNode!=null)current2.memoizedProps!==newProps&&markUpdate(workInProgress2);else{if(!newProps){if(workInProgress2.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 bubbleProperties(workInProgress2),null}if(_type=getHostContext(),popHydrationState(workInProgress2))prepareToHydrateHostInstance(workInProgress2);else{switch(current2=requiredContext(rootInstanceStackCursor.current),validateDOMNesting(renderLanes2,_type.ancestorInfo),_type=_type.context,current2=getOwnerDocumentFromRootContainer(current2),_type){case HostContextNamespaceSvg:current2=current2.createElementNS(SVG_NAMESPACE,renderLanes2);break;case HostContextNamespaceMath:current2=current2.createElementNS(MATH_NAMESPACE,renderLanes2);break;default:switch(renderLanes2){case"svg":current2=current2.createElementNS(SVG_NAMESPACE,renderLanes2);break;case"math":current2=current2.createElementNS(MATH_NAMESPACE,renderLanes2);break;case"script":current2=current2.createElement("div"),current2.innerHTML="<script><\/script>",current2=current2.removeChild(current2.firstChild);break;case"select":current2=typeof newProps.is=="string"?current2.createElement("select",{is:newProps.is}):current2.createElement("select"),newProps.multiple?current2.multiple=!0:newProps.size&&(current2.size=newProps.size);break;default:current2=typeof newProps.is=="string"?current2.createElement(renderLanes2,{is:newProps.is}):current2.createElement(renderLanes2),renderLanes2.indexOf("-")===-1&&(renderLanes2!==renderLanes2.toLowerCase()&&console.error("<%s /> is using incorrect casing. Use PascalCase for React components, or lowercase for HTML elements.",renderLanes2),Object.prototype.toString.call(current2)!=="[object HTMLUnknownElement]"||hasOwnProperty.call(warnedUnknownTags,renderLanes2)||(warnedUnknownTags[renderLanes2]=!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.",renderLanes2)))}}current2[internalInstanceKey]=workInProgress2,current2[internalPropsKey]=newProps;a:for(_type=workInProgress2.child;_type!==null;){if(_type.tag===5||_type.tag===6)current2.appendChild(_type.stateNode);else if(_type.tag!==4&&_type.tag!==27&&_type.child!==null){_type.child.return=_type,_type=_type.child;continue}if(_type===workInProgress2)break a;for(;_type.sibling===null;){if(_type.return===null||_type.return===workInProgress2)break a;_type=_type.return}_type.sibling.return=_type.return,_type=_type.sibling}workInProgress2.stateNode=current2;a:switch(setInitialProperties(current2,renderLanes2,newProps),renderLanes2){case"button":case"input":case"select":case"textarea":current2=!!newProps.autoFocus;break a;case"img":current2=!0;break a;default:current2=!1}current2&&markUpdate(workInProgress2)}}return bubbleProperties(workInProgress2),workInProgress2.flags&=-16777217,null;case 6:if(current2&&workInProgress2.stateNode!=null)current2.memoizedProps!==newProps&&markUpdate(workInProgress2);else{if(typeof newProps!="string"&&workInProgress2.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(current2=requiredContext(rootInstanceStackCursor.current),renderLanes2=getHostContext(),popHydrationState(workInProgress2)){current2=workInProgress2.stateNode,renderLanes2=workInProgress2.memoizedProps,_type=!didSuspendOrErrorDEV,newProps=null;var returnFiber=hydrationParentFiber;if(returnFiber!==null)switch(returnFiber.tag){case 3:_type&&(_type=diffHydratedTextForDevWarnings(current2,renderLanes2,newProps),_type!==null&&(buildHydrationDiffNode(workInProgress2,0).serverProps=_type));break;case 27:case 5:newProps=returnFiber.memoizedProps,_type&&(_type=diffHydratedTextForDevWarnings(current2,renderLanes2,newProps),_type!==null&&(buildHydrationDiffNode(workInProgress2,0).serverProps=_type))}current2[internalInstanceKey]=workInProgress2,current2=!!(current2.nodeValue===renderLanes2||newProps!==null&&newProps.suppressHydrationWarning===!0||checkForUnmatchedText(current2.nodeValue,renderLanes2)),current2||throwOnHydrationMismatch(workInProgress2)}else _type=renderLanes2.ancestorInfo.current,_type!=null&&validateTextNesting(newProps,_type.tag,renderLanes2.ancestorInfo.implicitRootScope),current2=getOwnerDocumentFromRootContainer(current2).createTextNode(newProps),current2[internalInstanceKey]=workInProgress2,workInProgress2.stateNode=current2}return bubbleProperties(workInProgress2),null;case 13:if(newProps=workInProgress2.memoizedState,current2===null||current2.memoizedState!==null&¤t2.memoizedState.dehydrated!==null){if(_type=popHydrationState(workInProgress2),newProps!==null&&newProps.dehydrated!==null){if(current2===null){if(!_type)throw Error("A dehydrated suspense component was completed without a hydrated node. This is probably a bug in React.");if(_type=workInProgress2.memoizedState,_type=_type!==null?_type.dehydrated:null,!_type)throw Error("Expected to have a hydrated suspense instance. This error is likely caused by a bug in React. Please file an issue.");_type[internalInstanceKey]=workInProgress2,bubbleProperties(workInProgress2),(workInProgress2.mode&ProfileMode)!==NoMode&&newProps!==null&&(_type=workInProgress2.child,_type!==null&&(workInProgress2.treeBaseDuration-=_type.treeBaseDuration))}else emitPendingHydrationWarnings(),resetHydrationState(),(workInProgress2.flags&128)===0&&(workInProgress2.memoizedState=null),workInProgress2.flags|=4,bubbleProperties(workInProgress2),(workInProgress2.mode&ProfileMode)!==NoMode&&newProps!==null&&(_type=workInProgress2.child,_type!==null&&(workInProgress2.treeBaseDuration-=_type.treeBaseDuration));_type=!1}else _type=upgradeHydrationErrorsToRecoverable(),current2!==null&¤t2.memoizedState!==null&&(current2.memoizedState.hydrationErrors=_type),_type=!0;if(!_type)return workInProgress2.flags&256?(popSuspenseHandler(workInProgress2),workInProgress2):(popSuspenseHandler(workInProgress2),null)}return popSuspenseHandler(workInProgress2),(workInProgress2.flags&128)!==0?(workInProgress2.lanes=renderLanes2,(workInProgress2.mode&ProfileMode)!==NoMode&&transferActualDuration(workInProgress2),workInProgress2):(renderLanes2=newProps!==null,current2=current2!==null&¤t2.memoizedState!==null,renderLanes2&&(newProps=workInProgress2.child,_type=null,newProps.alternate!==null&&newProps.alternate.memoizedState!==null&&newProps.alternate.memoizedState.cachePool!==null&&(_type=newProps.alternate.memoizedState.cachePool.pool),returnFiber=null,newProps.memoizedState!==null&&newProps.memoizedState.cachePool!==null&&(returnFiber=newProps.memoizedState.cachePool.pool),returnFiber!==_type&&(newProps.flags|=2048)),renderLanes2!==current2&&renderLanes2&&(workInProgress2.child.flags|=8192),scheduleRetryEffect(workInProgress2,workInProgress2.updateQueue),bubbleProperties(workInProgress2),(workInProgress2.mode&ProfileMode)!==NoMode&&renderLanes2&&(current2=workInProgress2.child,current2!==null&&(workInProgress2.treeBaseDuration-=current2.treeBaseDuration)),null);case 4:return popHostContainer(workInProgress2),current2===null&&listenToAllSupportedEvents(workInProgress2.stateNode.containerInfo),bubbleProperties(workInProgress2),null;case 10:return popProvider(workInProgress2.type,workInProgress2),bubbleProperties(workInProgress2),null;case 19:if(pop(suspenseStackCursor,workInProgress2),_type=workInProgress2.memoizedState,_type===null)return bubbleProperties(workInProgress2),null;if(newProps=(workInProgress2.flags&128)!==0,returnFiber=_type.rendering,returnFiber===null)if(newProps)cutOffTailIfNeeded(_type,!1);else{if(workInProgressRootExitStatus!==RootInProgress||current2!==null&&(current2.flags&128)!==0)for(current2=workInProgress2.child;current2!==null;){if(returnFiber=findFirstSuspended(current2),returnFiber!==null){for(workInProgress2.flags|=128,cutOffTailIfNeeded(_type,!1),current2=returnFiber.updateQueue,workInProgress2.updateQueue=current2,scheduleRetryEffect(workInProgress2,current2),workInProgress2.subtreeFlags=0,current2=renderLanes2,renderLanes2=workInProgress2.child;renderLanes2!==null;)resetWorkInProgress(renderLanes2,current2),renderLanes2=renderLanes2.sibling;return push(suspenseStackCursor,suspenseStackCursor.current&SubtreeSuspenseContextMask|ForceSuspenseFallback,workInProgress2),workInProgress2.child}current2=current2.sibling}_type.tail!==null&&now$1()>workInProgressRootRenderTargetTime&&(workInProgress2.flags|=128,newProps=!0,cutOffTailIfNeeded(_type,!1),workInProgress2.lanes=4194304)}else{if(!newProps)if(current2=findFirstSuspended(returnFiber),current2!==null){if(workInProgress2.flags|=128,newProps=!0,current2=current2.updateQueue,workInProgress2.updateQueue=current2,scheduleRetryEffect(workInProgress2,current2),cutOffTailIfNeeded(_type,!0),_type.tail===null&&_type.tailMode==="hidden"&&!returnFiber.alternate&&!isHydrating)return bubbleProperties(workInProgress2),null}else 2*now$1()-_type.renderingStartTime>workInProgressRootRenderTargetTime&&renderLanes2!==536870912&&(workInProgress2.flags|=128,newProps=!0,cutOffTailIfNeeded(_type,!1),workInProgress2.lanes=4194304);_type.isBackwards?(returnFiber.sibling=workInProgress2.child,workInProgress2.child=returnFiber):(current2=_type.last,current2!==null?current2.sibling=returnFiber:workInProgress2.child=returnFiber,_type.last=returnFiber)}return _type.tail!==null?(current2=_type.tail,_type.rendering=current2,_type.tail=current2.sibling,_type.renderingStartTime=now$1(),current2.sibling=null,renderLanes2=suspenseStackCursor.current,renderLanes2=newProps?renderLanes2&SubtreeSuspenseContextMask|ForceSuspenseFallback:renderLanes2&SubtreeSuspenseContextMask,push(suspenseStackCursor,renderLanes2,workInProgress2),current2):(bubbleProperties(workInProgress2),null);case 22:case 23:return popSuspenseHandler(workInProgress2),popHiddenContext(workInProgress2),newProps=workInProgress2.memoizedState!==null,current2!==null?current2.memoizedState!==null!==newProps&&(workInProgress2.flags|=8192):newProps&&(workInProgress2.flags|=8192),newProps?(renderLanes2&536870912)!==0&&(workInProgress2.flags&128)===0&&(bubbleProperties(workInProgress2),workInProgress2.subtreeFlags&6&&(workInProgress2.flags|=8192)):bubbleProperties(workInProgress2),renderLanes2=workInProgress2.updateQueue,renderLanes2!==null&&scheduleRetryEffect(workInProgress2,renderLanes2.retryQueue),renderLanes2=null,current2!==null&¤t2.memoizedState!==null&¤t2.memoizedState.cachePool!==null&&(renderLanes2=current2.memoizedState.cachePool.pool),newProps=null,workInProgress2.memoizedState!==null&&workInProgress2.memoizedState.cachePool!==null&&(newProps=workInProgress2.memoizedState.cachePool.pool),newProps!==renderLanes2&&(workInProgress2.flags|=2048),current2!==null&&pop(resumedCache,workInProgress2),null;case 24:return renderLanes2=null,current2!==null&&(renderLanes2=current2.memoizedState.cache),workInProgress2.memoizedState.cache!==renderLanes2&&(workInProgress2.flags|=2048),popProvider(CacheContext,workInProgress2),bubbleProperties(workInProgress2),null;case 25:return null;case 30:return null}throw Error("Unknown unit of work tag ("+workInProgress2.tag+"). This error is likely caused by a bug in React. Please file an issue.")}function unwindWork(current2,workInProgress2){switch(popTreeContext(workInProgress2),workInProgress2.tag){case 1:return current2=workInProgress2.flags,current2&65536?(workInProgress2.flags=current2&-65537|128,(workInProgress2.mode&ProfileMode)!==NoMode&&transferActualDuration(workInProgress2),workInProgress2):null;case 3:return popProvider(CacheContext,workInProgress2),popHostContainer(workInProgress2),current2=workInProgress2.flags,(current2&65536)!==0&&(current2&128)===0?(workInProgress2.flags=current2&-65537|128,workInProgress2):null;case 26:case 27:case 5:return popHostContext(workInProgress2),null;case 13:if(popSuspenseHandler(workInProgress2),current2=workInProgress2.memoizedState,current2!==null&¤t2.dehydrated!==null){if(workInProgress2.alternate===null)throw Error("Threw in newly mounted dehydrated component. This is likely a bug in React. Please file an issue.");resetHydrationState()}return current2=workInProgress2.flags,current2&65536?(workInProgress2.flags=current2&-65537|128,(workInProgress2.mode&ProfileMode)!==NoMode&&transferActualDuration(workInProgress2),workInProgress2):null;case 19:return pop(suspenseStackCursor,workInProgress2),null;case 4:return popHostContainer(workInProgress2),null;case 10:return popProvider(workInProgress2.type,workInProgress2),null;case 22:case 23:return popSuspenseHandler(workInProgress2),popHiddenContext(workInProgress2),current2!==null&&pop(resumedCache,workInProgress2),current2=workInProgress2.flags,current2&65536?(workInProgress2.flags=current2&-65537|128,(workInProgress2.mode&ProfileMode)!==NoMode&&transferActualDuration(workInProgress2),workInProgress2):null;case 24:return popProvider(CacheContext,workInProgress2),null;case 25:return null;default:return null}}function unwindInterruptedWork(current2,interruptedWork){switch(popTreeContext(interruptedWork),interruptedWork.tag){case 3:popProvider(CacheContext,interruptedWork),popHostContainer(interruptedWork);break;case 26:case 27:case 5:popHostContext(interruptedWork);break;case 4:popHostContainer(interruptedWork);break;case 13:popSuspenseHandler(interruptedWork);break;case 19:pop(suspenseStackCursor,interruptedWork);break;case 10:popProvider(interruptedWork.type,interruptedWork);break;case 22:case 23:popSuspenseHandler(interruptedWork),popHiddenContext(interruptedWork),current2!==null&&pop(resumedCache,interruptedWork);break;case 24:popProvider(CacheContext,interruptedWork)}}function shouldProfile(current2){return(current2.mode&ProfileMode)!==NoMode}function commitHookLayoutEffects(finishedWork,hookFlags){shouldProfile(finishedWork)?(startEffectTimer(),commitHookEffectListMount(hookFlags,finishedWork),recordEffectDuration()):commitHookEffectListMount(hookFlags,finishedWork)}function commitHookLayoutUnmountEffects(finishedWork,nearestMountedAncestor,hookFlags){shouldProfile(finishedWork)?(startEffectTimer(),commitHookEffectListUnmount(hookFlags,finishedWork,nearestMountedAncestor),recordEffectDuration()):commitHookEffectListUnmount(hookFlags,finishedWork,nearestMountedAncestor)}function commitHookEffectListMount(flags,finishedWork){try{var updateQueue=finishedWork.updateQueue,lastEffect=updateQueue!==null?updateQueue.lastEffect:null;if(lastEffect!==null){var firstEffect=lastEffect.next;updateQueue=firstEffect;do{if((updateQueue.tag&flags)===flags&&((flags&Passive)!==NoFlags?injectedProfilingHooks!==null&&typeof injectedProfilingHooks.markComponentPassiveEffectMountStarted=="function"&&injectedProfilingHooks.markComponentPassiveEffectMountStarted(finishedWork):(flags&Layout)!==NoFlags&&injectedProfilingHooks!==null&&typeof injectedProfilingHooks.markComponentLayoutEffectMountStarted=="function"&&injectedProfilingHooks.markComponentLayoutEffectMountStarted(finishedWork),lastEffect=void 0,(flags&Insertion)!==NoFlags&&(isRunningInsertionEffect=!0),lastEffect=runWithFiberInDEV(finishedWork,callCreateInDEV,updateQueue),(flags&Insertion)!==NoFlags&&(isRunningInsertionEffect=!1),(flags&Passive)!==NoFlags?injectedProfilingHooks!==null&&typeof injectedProfilingHooks.markComponentPassiveEffectMountStopped=="function"&&injectedProfilingHooks.markComponentPassiveEffectMountStopped():(flags&Layout)!==NoFlags&&injectedProfilingHooks!==null&&typeof injectedProfilingHooks.markComponentLayoutEffectMountStopped=="function"&&injectedProfilingHooks.markComponentLayoutEffectMountStopped(),lastEffect!==void 0&&typeof lastEffect!="function")){var hookName=void 0;hookName=(updateQueue.tag&Layout)!==0?"useLayoutEffect":(updateQueue.tag&Insertion)!==0?"useInsertionEffect":"useEffect";var addendum=void 0;addendum=lastEffect===null?" You returned null. If your effect does not require clean up, return undefined (or nothing).":typeof lastEffect.then=="function"?`
|
|
210
|
+
|
|
211
|
+
It looks like you wrote `+hookName+`(async () => ...) or returned a Promise. Instead, write the async function inside your effect and call it immediately:
|
|
212
|
+
|
|
213
|
+
`+hookName+`(() => {
|
|
214
|
+
async function fetchData() {
|
|
215
|
+
// You can await here
|
|
216
|
+
const response = await MyAPI.getData(someId);
|
|
217
|
+
// ...
|
|
218
|
+
}
|
|
219
|
+
fetchData();
|
|
220
|
+
}, [someId]); // Or [] if effect doesn't need props or state
|
|
221
|
+
|
|
222
|
+
Learn more about data fetching with Hooks: https://react.dev/link/hooks-data-fetching`:" You returned: "+lastEffect,runWithFiberInDEV(finishedWork,function(n,a2){console.error("%s must not return anything besides a function, which is used for clean-up.%s",n,a2)},hookName,addendum)}updateQueue=updateQueue.next}while(updateQueue!==firstEffect)}}catch(error){captureCommitPhaseError(finishedWork,finishedWork.return,error)}}function commitHookEffectListUnmount(flags,finishedWork,nearestMountedAncestor){try{var updateQueue=finishedWork.updateQueue,lastEffect=updateQueue!==null?updateQueue.lastEffect:null;if(lastEffect!==null){var firstEffect=lastEffect.next;updateQueue=firstEffect;do{if((updateQueue.tag&flags)===flags){var inst=updateQueue.inst,destroy=inst.destroy;destroy!==void 0&&(inst.destroy=void 0,(flags&Passive)!==NoFlags?injectedProfilingHooks!==null&&typeof injectedProfilingHooks.markComponentPassiveEffectUnmountStarted=="function"&&injectedProfilingHooks.markComponentPassiveEffectUnmountStarted(finishedWork):(flags&Layout)!==NoFlags&&injectedProfilingHooks!==null&&typeof injectedProfilingHooks.markComponentLayoutEffectUnmountStarted=="function"&&injectedProfilingHooks.markComponentLayoutEffectUnmountStarted(finishedWork),(flags&Insertion)!==NoFlags&&(isRunningInsertionEffect=!0),lastEffect=finishedWork,runWithFiberInDEV(lastEffect,callDestroyInDEV,lastEffect,nearestMountedAncestor,destroy),(flags&Insertion)!==NoFlags&&(isRunningInsertionEffect=!1),(flags&Passive)!==NoFlags?injectedProfilingHooks!==null&&typeof injectedProfilingHooks.markComponentPassiveEffectUnmountStopped=="function"&&injectedProfilingHooks.markComponentPassiveEffectUnmountStopped():(flags&Layout)!==NoFlags&&injectedProfilingHooks!==null&&typeof injectedProfilingHooks.markComponentLayoutEffectUnmountStopped=="function"&&injectedProfilingHooks.markComponentLayoutEffectUnmountStopped())}updateQueue=updateQueue.next}while(updateQueue!==firstEffect)}}catch(error){captureCommitPhaseError(finishedWork,finishedWork.return,error)}}function commitHookPassiveMountEffects(finishedWork,hookFlags){shouldProfile(finishedWork)?(startEffectTimer(),commitHookEffectListMount(hookFlags,finishedWork),recordEffectDuration()):commitHookEffectListMount(hookFlags,finishedWork)}function commitHookPassiveUnmountEffects(finishedWork,nearestMountedAncestor,hookFlags){shouldProfile(finishedWork)?(startEffectTimer(),commitHookEffectListUnmount(hookFlags,finishedWork,nearestMountedAncestor),recordEffectDuration()):commitHookEffectListUnmount(hookFlags,finishedWork,nearestMountedAncestor)}function commitClassCallbacks(finishedWork){var updateQueue=finishedWork.updateQueue;if(updateQueue!==null){var instance=finishedWork.stateNode;finishedWork.type.defaultProps||"ref"in finishedWork.memoizedProps||didWarnAboutReassigningProps||(instance.props!==finishedWork.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.",getComponentNameFromFiber(finishedWork)||"instance"),instance.state!==finishedWork.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.",getComponentNameFromFiber(finishedWork)||"instance"));try{runWithFiberInDEV(finishedWork,commitCallbacks,updateQueue,instance)}catch(error){captureCommitPhaseError(finishedWork,finishedWork.return,error)}}}function callGetSnapshotBeforeUpdates(instance,prevProps,prevState){return instance.getSnapshotBeforeUpdate(prevProps,prevState)}function commitClassSnapshot(finishedWork,current2){var prevProps=current2.memoizedProps,prevState=current2.memoizedState;current2=finishedWork.stateNode,finishedWork.type.defaultProps||"ref"in finishedWork.memoizedProps||didWarnAboutReassigningProps||(current2.props!==finishedWork.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.",getComponentNameFromFiber(finishedWork)||"instance"),current2.state!==finishedWork.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.",getComponentNameFromFiber(finishedWork)||"instance"));try{var resolvedPrevProps=resolveClassComponentProps(finishedWork.type,prevProps,finishedWork.elementType===finishedWork.type),snapshot=runWithFiberInDEV(finishedWork,callGetSnapshotBeforeUpdates,current2,resolvedPrevProps,prevState);prevProps=didWarnAboutUndefinedSnapshotBeforeUpdate,snapshot!==void 0||prevProps.has(finishedWork.type)||(prevProps.add(finishedWork.type),runWithFiberInDEV(finishedWork,function(){console.error("%s.getSnapshotBeforeUpdate(): A snapshot value (or null) must be returned. You have returned undefined.",getComponentNameFromFiber(finishedWork))})),current2.__reactInternalSnapshotBeforeUpdate=snapshot}catch(error){captureCommitPhaseError(finishedWork,finishedWork.return,error)}}function safelyCallComponentWillUnmount(current2,nearestMountedAncestor,instance){instance.props=resolveClassComponentProps(current2.type,current2.memoizedProps),instance.state=current2.memoizedState,shouldProfile(current2)?(startEffectTimer(),runWithFiberInDEV(current2,callComponentWillUnmountInDEV,current2,nearestMountedAncestor,instance),recordEffectDuration()):runWithFiberInDEV(current2,callComponentWillUnmountInDEV,current2,nearestMountedAncestor,instance)}function commitAttachRef(finishedWork){var ref=finishedWork.ref;if(ref!==null){switch(finishedWork.tag){case 26:case 27:case 5:var instanceToUse=finishedWork.stateNode;break;case 30:instanceToUse=finishedWork.stateNode;break;default:instanceToUse=finishedWork.stateNode}if(typeof ref=="function")if(shouldProfile(finishedWork))try{startEffectTimer(),finishedWork.refCleanup=ref(instanceToUse)}finally{recordEffectDuration()}else finishedWork.refCleanup=ref(instanceToUse);else typeof ref=="string"?console.error("String refs are no longer supported."):ref.hasOwnProperty("current")||console.error("Unexpected ref object provided for %s. Use either a ref-setter function or React.createRef().",getComponentNameFromFiber(finishedWork)),ref.current=instanceToUse}}function safelyAttachRef(current2,nearestMountedAncestor){try{runWithFiberInDEV(current2,commitAttachRef,current2)}catch(error){captureCommitPhaseError(current2,nearestMountedAncestor,error)}}function safelyDetachRef(current2,nearestMountedAncestor){var ref=current2.ref,refCleanup=current2.refCleanup;if(ref!==null)if(typeof refCleanup=="function")try{if(shouldProfile(current2))try{startEffectTimer(),runWithFiberInDEV(current2,refCleanup)}finally{recordEffectDuration(current2)}else runWithFiberInDEV(current2,refCleanup)}catch(error){captureCommitPhaseError(current2,nearestMountedAncestor,error)}finally{current2.refCleanup=null,current2=current2.alternate,current2!=null&&(current2.refCleanup=null)}else if(typeof ref=="function")try{if(shouldProfile(current2))try{startEffectTimer(),runWithFiberInDEV(current2,ref,null)}finally{recordEffectDuration(current2)}else runWithFiberInDEV(current2,ref,null)}catch(error$7){captureCommitPhaseError(current2,nearestMountedAncestor,error$7)}else ref.current=null}function commitProfiler(finishedWork,current2,commitStartTime2,effectDuration){var _finishedWork$memoize=finishedWork.memoizedProps,id=_finishedWork$memoize.id,onCommit=_finishedWork$memoize.onCommit;_finishedWork$memoize=_finishedWork$memoize.onRender,current2=current2===null?"mount":"update",currentUpdateIsNested&&(current2="nested-update"),typeof _finishedWork$memoize=="function"&&_finishedWork$memoize(id,current2,finishedWork.actualDuration,finishedWork.treeBaseDuration,finishedWork.actualStartTime,commitStartTime2),typeof onCommit=="function"&&onCommit(finishedWork.memoizedProps.id,current2,effectDuration,commitStartTime2)}function commitProfilerPostCommitImpl(finishedWork,current2,commitStartTime2,passiveEffectDuration){var _finishedWork$memoize2=finishedWork.memoizedProps;finishedWork=_finishedWork$memoize2.id,_finishedWork$memoize2=_finishedWork$memoize2.onPostCommit,current2=current2===null?"mount":"update",currentUpdateIsNested&&(current2="nested-update"),typeof _finishedWork$memoize2=="function"&&_finishedWork$memoize2(finishedWork,current2,passiveEffectDuration,commitStartTime2)}function commitHostMount(finishedWork){var type=finishedWork.type,props=finishedWork.memoizedProps,instance=finishedWork.stateNode;try{runWithFiberInDEV(finishedWork,commitMount,instance,type,props,finishedWork)}catch(error){captureCommitPhaseError(finishedWork,finishedWork.return,error)}}function commitHostUpdate(finishedWork,newProps,oldProps){try{runWithFiberInDEV(finishedWork,commitUpdate,finishedWork.stateNode,finishedWork.type,oldProps,newProps,finishedWork)}catch(error){captureCommitPhaseError(finishedWork,finishedWork.return,error)}}function isHostParent(fiber){return fiber.tag===5||fiber.tag===3||fiber.tag===26||fiber.tag===27&&isSingletonScope(fiber.type)||fiber.tag===4}function getHostSibling(fiber){a:for(;;){for(;fiber.sibling===null;){if(fiber.return===null||isHostParent(fiber.return))return null;fiber=fiber.return}for(fiber.sibling.return=fiber.return,fiber=fiber.sibling;fiber.tag!==5&&fiber.tag!==6&&fiber.tag!==18;){if(fiber.tag===27&&isSingletonScope(fiber.type)||fiber.flags&2||fiber.child===null||fiber.tag===4)continue a;fiber.child.return=fiber,fiber=fiber.child}if(!(fiber.flags&2))return fiber.stateNode}}function insertOrAppendPlacementNodeIntoContainer(node,before,parent){var tag=node.tag;if(tag===5||tag===6)node=node.stateNode,before?(parent.nodeType===9?parent.body:parent.nodeName==="HTML"?parent.ownerDocument.body:parent).insertBefore(node,before):(before=parent.nodeType===9?parent.body:parent.nodeName==="HTML"?parent.ownerDocument.body:parent,before.appendChild(node),parent=parent._reactRootContainer,parent!=null||before.onclick!==null||(before.onclick=noop$1));else if(tag!==4&&(tag===27&&isSingletonScope(node.type)&&(parent=node.stateNode,before=null),node=node.child,node!==null))for(insertOrAppendPlacementNodeIntoContainer(node,before,parent),node=node.sibling;node!==null;)insertOrAppendPlacementNodeIntoContainer(node,before,parent),node=node.sibling}function insertOrAppendPlacementNode(node,before,parent){var tag=node.tag;if(tag===5||tag===6)node=node.stateNode,before?parent.insertBefore(node,before):parent.appendChild(node);else if(tag!==4&&(tag===27&&isSingletonScope(node.type)&&(parent=node.stateNode),node=node.child,node!==null))for(insertOrAppendPlacementNode(node,before,parent),node=node.sibling;node!==null;)insertOrAppendPlacementNode(node,before,parent),node=node.sibling}function commitPlacement(finishedWork){for(var hostParentFiber,parentFiber=finishedWork.return;parentFiber!==null;){if(isHostParent(parentFiber)){hostParentFiber=parentFiber;break}parentFiber=parentFiber.return}if(hostParentFiber==null)throw Error("Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue.");switch(hostParentFiber.tag){case 27:hostParentFiber=hostParentFiber.stateNode,parentFiber=getHostSibling(finishedWork),insertOrAppendPlacementNode(finishedWork,parentFiber,hostParentFiber);break;case 5:parentFiber=hostParentFiber.stateNode,hostParentFiber.flags&32&&(resetTextContent(parentFiber),hostParentFiber.flags&=-33),hostParentFiber=getHostSibling(finishedWork),insertOrAppendPlacementNode(finishedWork,hostParentFiber,parentFiber);break;case 3:case 4:hostParentFiber=hostParentFiber.stateNode.containerInfo,parentFiber=getHostSibling(finishedWork),insertOrAppendPlacementNodeIntoContainer(finishedWork,parentFiber,hostParentFiber);break;default:throw Error("Invalid host parent fiber. This error is likely caused by a bug in React. Please file an issue.")}}function commitHostSingletonAcquisition(finishedWork){var singleton=finishedWork.stateNode,props=finishedWork.memoizedProps;try{runWithFiberInDEV(finishedWork,acquireSingletonInstance,finishedWork.type,props,singleton,finishedWork)}catch(error){captureCommitPhaseError(finishedWork,finishedWork.return,error)}}function commitBeforeMutationEffects(root3,firstChild){if(root3=root3.containerInfo,eventsEnabled=_enabled,root3=getActiveElementDeep(root3),hasSelectionCapabilities(root3)){if("selectionStart"in root3)var JSCompiler_temp={start:root3.selectionStart,end:root3.selectionEnd};else a:{JSCompiler_temp=(JSCompiler_temp=root3.ownerDocument)&&JSCompiler_temp.defaultView||window;var selection=JSCompiler_temp.getSelection&&JSCompiler_temp.getSelection();if(selection&&selection.rangeCount!==0){JSCompiler_temp=selection.anchorNode;var anchorOffset=selection.anchorOffset,focusNode=selection.focusNode;selection=selection.focusOffset;try{JSCompiler_temp.nodeType,focusNode.nodeType}catch{JSCompiler_temp=null;break a}var length=0,start=-1,end=-1,indexWithinAnchor=0,indexWithinFocus=0,node=root3,parentNode=null;b:for(;;){for(var next;node!==JSCompiler_temp||anchorOffset!==0&&node.nodeType!==3||(start=length+anchorOffset),node!==focusNode||selection!==0&&node.nodeType!==3||(end=length+selection),node.nodeType===3&&(length+=node.nodeValue.length),(next=node.firstChild)!==null;)parentNode=node,node=next;for(;;){if(node===root3)break b;if(parentNode===JSCompiler_temp&&++indexWithinAnchor===anchorOffset&&(start=length),parentNode===focusNode&&++indexWithinFocus===selection&&(end=length),(next=node.nextSibling)!==null)break;node=parentNode,parentNode=node.parentNode}node=next}JSCompiler_temp=start===-1||end===-1?null:{start,end}}else JSCompiler_temp=null}JSCompiler_temp=JSCompiler_temp||{start:0,end:0}}else JSCompiler_temp=null;for(selectionInformation={focusedElem:root3,selectionRange:JSCompiler_temp},_enabled=!1,nextEffect=firstChild;nextEffect!==null;)if(firstChild=nextEffect,root3=firstChild.child,(firstChild.subtreeFlags&1024)!==0&&root3!==null)root3.return=firstChild,nextEffect=root3;else for(;nextEffect!==null;){switch(root3=firstChild=nextEffect,JSCompiler_temp=root3.alternate,anchorOffset=root3.flags,root3.tag){case 0:break;case 11:case 15:break;case 1:(anchorOffset&1024)!==0&&JSCompiler_temp!==null&&commitClassSnapshot(root3,JSCompiler_temp);break;case 3:if((anchorOffset&1024)!==0){if(root3=root3.stateNode.containerInfo,JSCompiler_temp=root3.nodeType,JSCompiler_temp===9)clearContainerSparingly(root3);else if(JSCompiler_temp===1)switch(root3.nodeName){case"HEAD":case"HTML":case"BODY":clearContainerSparingly(root3);break;default:root3.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((anchorOffset&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(root3=firstChild.sibling,root3!==null){root3.return=firstChild.return,nextEffect=root3;break}nextEffect=firstChild.return}}function commitLayoutEffectOnFiber(finishedRoot,current2,finishedWork){var flags=finishedWork.flags;switch(finishedWork.tag){case 0:case 11:case 15:recursivelyTraverseLayoutEffects(finishedRoot,finishedWork),flags&4&&commitHookLayoutEffects(finishedWork,Layout|HasEffect);break;case 1:if(recursivelyTraverseLayoutEffects(finishedRoot,finishedWork),flags&4)if(finishedRoot=finishedWork.stateNode,current2===null)finishedWork.type.defaultProps||"ref"in finishedWork.memoizedProps||didWarnAboutReassigningProps||(finishedRoot.props!==finishedWork.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.",getComponentNameFromFiber(finishedWork)||"instance"),finishedRoot.state!==finishedWork.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.",getComponentNameFromFiber(finishedWork)||"instance")),shouldProfile(finishedWork)?(startEffectTimer(),runWithFiberInDEV(finishedWork,callComponentDidMountInDEV,finishedWork,finishedRoot),recordEffectDuration()):runWithFiberInDEV(finishedWork,callComponentDidMountInDEV,finishedWork,finishedRoot);else{var prevProps=resolveClassComponentProps(finishedWork.type,current2.memoizedProps);current2=current2.memoizedState,finishedWork.type.defaultProps||"ref"in finishedWork.memoizedProps||didWarnAboutReassigningProps||(finishedRoot.props!==finishedWork.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.",getComponentNameFromFiber(finishedWork)||"instance"),finishedRoot.state!==finishedWork.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.",getComponentNameFromFiber(finishedWork)||"instance")),shouldProfile(finishedWork)?(startEffectTimer(),runWithFiberInDEV(finishedWork,callComponentDidUpdateInDEV,finishedWork,finishedRoot,prevProps,current2,finishedRoot.__reactInternalSnapshotBeforeUpdate),recordEffectDuration()):runWithFiberInDEV(finishedWork,callComponentDidUpdateInDEV,finishedWork,finishedRoot,prevProps,current2,finishedRoot.__reactInternalSnapshotBeforeUpdate)}flags&64&&commitClassCallbacks(finishedWork),flags&512&&safelyAttachRef(finishedWork,finishedWork.return);break;case 3:if(current2=pushNestedEffectDurations(),recursivelyTraverseLayoutEffects(finishedRoot,finishedWork),flags&64&&(flags=finishedWork.updateQueue,flags!==null)){if(prevProps=null,finishedWork.child!==null)switch(finishedWork.child.tag){case 27:case 5:prevProps=finishedWork.child.stateNode;break;case 1:prevProps=finishedWork.child.stateNode}try{runWithFiberInDEV(finishedWork,commitCallbacks,flags,prevProps)}catch(error){captureCommitPhaseError(finishedWork,finishedWork.return,error)}}finishedRoot.effectDuration+=popNestedEffectDurations(current2);break;case 27:current2===null&&flags&4&&commitHostSingletonAcquisition(finishedWork);case 26:case 5:recursivelyTraverseLayoutEffects(finishedRoot,finishedWork),current2===null&&flags&4&&commitHostMount(finishedWork),flags&512&&safelyAttachRef(finishedWork,finishedWork.return);break;case 12:if(flags&4){flags=pushNestedEffectDurations(),recursivelyTraverseLayoutEffects(finishedRoot,finishedWork),finishedRoot=finishedWork.stateNode,finishedRoot.effectDuration+=bubbleNestedEffectDurations(flags);try{runWithFiberInDEV(finishedWork,commitProfiler,finishedWork,current2,commitStartTime,finishedRoot.effectDuration)}catch(error){captureCommitPhaseError(finishedWork,finishedWork.return,error)}}else recursivelyTraverseLayoutEffects(finishedRoot,finishedWork);break;case 13:recursivelyTraverseLayoutEffects(finishedRoot,finishedWork),flags&4&&commitSuspenseHydrationCallbacks(finishedRoot,finishedWork),flags&64&&(finishedRoot=finishedWork.memoizedState,finishedRoot!==null&&(finishedRoot=finishedRoot.dehydrated,finishedRoot!==null&&(finishedWork=retryDehydratedSuspenseBoundary.bind(null,finishedWork),registerSuspenseInstanceRetry(finishedRoot,finishedWork))));break;case 22:if(flags=finishedWork.memoizedState!==null||offscreenSubtreeIsHidden,!flags){current2=current2!==null&¤t2.memoizedState!==null||offscreenSubtreeWasHidden,prevProps=offscreenSubtreeIsHidden;var prevOffscreenSubtreeWasHidden=offscreenSubtreeWasHidden;offscreenSubtreeIsHidden=flags,(offscreenSubtreeWasHidden=current2)&&!prevOffscreenSubtreeWasHidden?recursivelyTraverseReappearLayoutEffects(finishedRoot,finishedWork,(finishedWork.subtreeFlags&8772)!==0):recursivelyTraverseLayoutEffects(finishedRoot,finishedWork),offscreenSubtreeIsHidden=prevProps,offscreenSubtreeWasHidden=prevOffscreenSubtreeWasHidden}break;case 30:break;default:recursivelyTraverseLayoutEffects(finishedRoot,finishedWork)}}function detachFiberAfterEffects(fiber){var alternate=fiber.alternate;alternate!==null&&(fiber.alternate=null,detachFiberAfterEffects(alternate)),fiber.child=null,fiber.deletions=null,fiber.sibling=null,fiber.tag===5&&(alternate=fiber.stateNode,alternate!==null&&detachDeletedInstance(alternate)),fiber.stateNode=null,fiber._debugOwner=null,fiber.return=null,fiber.dependencies=null,fiber.memoizedProps=null,fiber.memoizedState=null,fiber.pendingProps=null,fiber.stateNode=null,fiber.updateQueue=null}function recursivelyTraverseDeletionEffects(finishedRoot,nearestMountedAncestor,parent){for(parent=parent.child;parent!==null;)commitDeletionEffectsOnFiber(finishedRoot,nearestMountedAncestor,parent),parent=parent.sibling}function commitDeletionEffectsOnFiber(finishedRoot,nearestMountedAncestor,deletedFiber){if(injectedHook&&typeof injectedHook.onCommitFiberUnmount=="function")try{injectedHook.onCommitFiberUnmount(rendererID,deletedFiber)}catch(err){hasLoggedError||(hasLoggedError=!0,console.error("React instrumentation encountered an error: %s",err))}switch(deletedFiber.tag){case 26:offscreenSubtreeWasHidden||safelyDetachRef(deletedFiber,nearestMountedAncestor),recursivelyTraverseDeletionEffects(finishedRoot,nearestMountedAncestor,deletedFiber),deletedFiber.memoizedState?deletedFiber.memoizedState.count--:deletedFiber.stateNode&&(deletedFiber=deletedFiber.stateNode,deletedFiber.parentNode.removeChild(deletedFiber));break;case 27:offscreenSubtreeWasHidden||safelyDetachRef(deletedFiber,nearestMountedAncestor);var prevHostParent=hostParent,prevHostParentIsContainer=hostParentIsContainer;isSingletonScope(deletedFiber.type)&&(hostParent=deletedFiber.stateNode,hostParentIsContainer=!1),recursivelyTraverseDeletionEffects(finishedRoot,nearestMountedAncestor,deletedFiber),runWithFiberInDEV(deletedFiber,releaseSingletonInstance,deletedFiber.stateNode),hostParent=prevHostParent,hostParentIsContainer=prevHostParentIsContainer;break;case 5:offscreenSubtreeWasHidden||safelyDetachRef(deletedFiber,nearestMountedAncestor);case 6:if(prevHostParent=hostParent,prevHostParentIsContainer=hostParentIsContainer,hostParent=null,recursivelyTraverseDeletionEffects(finishedRoot,nearestMountedAncestor,deletedFiber),hostParent=prevHostParent,hostParentIsContainer=prevHostParentIsContainer,hostParent!==null)if(hostParentIsContainer)try{runWithFiberInDEV(deletedFiber,removeChildFromContainer,hostParent,deletedFiber.stateNode)}catch(error){captureCommitPhaseError(deletedFiber,nearestMountedAncestor,error)}else try{runWithFiberInDEV(deletedFiber,removeChild,hostParent,deletedFiber.stateNode)}catch(error){captureCommitPhaseError(deletedFiber,nearestMountedAncestor,error)}break;case 18:hostParent!==null&&(hostParentIsContainer?(finishedRoot=hostParent,clearSuspenseBoundary(finishedRoot.nodeType===9?finishedRoot.body:finishedRoot.nodeName==="HTML"?finishedRoot.ownerDocument.body:finishedRoot,deletedFiber.stateNode),retryIfBlockedOn(finishedRoot)):clearSuspenseBoundary(hostParent,deletedFiber.stateNode));break;case 4:prevHostParent=hostParent,prevHostParentIsContainer=hostParentIsContainer,hostParent=deletedFiber.stateNode.containerInfo,hostParentIsContainer=!0,recursivelyTraverseDeletionEffects(finishedRoot,nearestMountedAncestor,deletedFiber),hostParent=prevHostParent,hostParentIsContainer=prevHostParentIsContainer;break;case 0:case 11:case 14:case 15:offscreenSubtreeWasHidden||commitHookEffectListUnmount(Insertion,deletedFiber,nearestMountedAncestor),offscreenSubtreeWasHidden||commitHookLayoutUnmountEffects(deletedFiber,nearestMountedAncestor,Layout),recursivelyTraverseDeletionEffects(finishedRoot,nearestMountedAncestor,deletedFiber);break;case 1:offscreenSubtreeWasHidden||(safelyDetachRef(deletedFiber,nearestMountedAncestor),prevHostParent=deletedFiber.stateNode,typeof prevHostParent.componentWillUnmount=="function"&&safelyCallComponentWillUnmount(deletedFiber,nearestMountedAncestor,prevHostParent)),recursivelyTraverseDeletionEffects(finishedRoot,nearestMountedAncestor,deletedFiber);break;case 21:recursivelyTraverseDeletionEffects(finishedRoot,nearestMountedAncestor,deletedFiber);break;case 22:offscreenSubtreeWasHidden=(prevHostParent=offscreenSubtreeWasHidden)||deletedFiber.memoizedState!==null,recursivelyTraverseDeletionEffects(finishedRoot,nearestMountedAncestor,deletedFiber),offscreenSubtreeWasHidden=prevHostParent;break;default:recursivelyTraverseDeletionEffects(finishedRoot,nearestMountedAncestor,deletedFiber)}}function commitSuspenseHydrationCallbacks(finishedRoot,finishedWork){if(finishedWork.memoizedState===null&&(finishedRoot=finishedWork.alternate,finishedRoot!==null&&(finishedRoot=finishedRoot.memoizedState,finishedRoot!==null&&(finishedRoot=finishedRoot.dehydrated,finishedRoot!==null))))try{runWithFiberInDEV(finishedWork,commitHydratedSuspenseInstance,finishedRoot)}catch(error){captureCommitPhaseError(finishedWork,finishedWork.return,error)}}function getRetryCache(finishedWork){switch(finishedWork.tag){case 13:case 19:var retryCache=finishedWork.stateNode;return retryCache===null&&(retryCache=finishedWork.stateNode=new PossiblyWeakSet),retryCache;case 22:return finishedWork=finishedWork.stateNode,retryCache=finishedWork._retryCache,retryCache===null&&(retryCache=finishedWork._retryCache=new PossiblyWeakSet),retryCache;default:throw Error("Unexpected Suspense handler tag ("+finishedWork.tag+"). This is a bug in React.")}}function attachSuspenseRetryListeners(finishedWork,wakeables){var retryCache=getRetryCache(finishedWork);wakeables.forEach(function(wakeable){var retry=resolveRetryWakeable.bind(null,finishedWork,wakeable);if(!retryCache.has(wakeable)){if(retryCache.add(wakeable),isDevToolsPresent)if(inProgressLanes!==null&&inProgressRoot!==null)restorePendingUpdaters(inProgressRoot,inProgressLanes);else throw Error("Expected finished root and lanes to be set. This is a bug in React.");wakeable.then(retry,retry)}})}function recursivelyTraverseMutationEffects(root$jscomp$0,parentFiber){var deletions=parentFiber.deletions;if(deletions!==null)for(var i=0;i<deletions.length;i++){var root3=root$jscomp$0,returnFiber=parentFiber,deletedFiber=deletions[i],parent=returnFiber;a:for(;parent!==null;){switch(parent.tag){case 27:if(isSingletonScope(parent.type)){hostParent=parent.stateNode,hostParentIsContainer=!1;break a}break;case 5:hostParent=parent.stateNode,hostParentIsContainer=!1;break a;case 3:case 4:hostParent=parent.stateNode.containerInfo,hostParentIsContainer=!0;break a}parent=parent.return}if(hostParent===null)throw Error("Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue.");commitDeletionEffectsOnFiber(root3,returnFiber,deletedFiber),hostParent=null,hostParentIsContainer=!1,root3=deletedFiber,returnFiber=root3.alternate,returnFiber!==null&&(returnFiber.return=null),root3.return=null}if(parentFiber.subtreeFlags&13878)for(parentFiber=parentFiber.child;parentFiber!==null;)commitMutationEffectsOnFiber(parentFiber,root$jscomp$0),parentFiber=parentFiber.sibling}function commitMutationEffectsOnFiber(finishedWork,root3){var current2=finishedWork.alternate,flags=finishedWork.flags;switch(finishedWork.tag){case 0:case 11:case 14:case 15:recursivelyTraverseMutationEffects(root3,finishedWork),commitReconciliationEffects(finishedWork),flags&4&&(commitHookEffectListUnmount(Insertion|HasEffect,finishedWork,finishedWork.return),commitHookEffectListMount(Insertion|HasEffect,finishedWork),commitHookLayoutUnmountEffects(finishedWork,finishedWork.return,Layout|HasEffect));break;case 1:recursivelyTraverseMutationEffects(root3,finishedWork),commitReconciliationEffects(finishedWork),flags&512&&(offscreenSubtreeWasHidden||current2===null||safelyDetachRef(current2,current2.return)),flags&64&&offscreenSubtreeIsHidden&&(finishedWork=finishedWork.updateQueue,finishedWork!==null&&(flags=finishedWork.callbacks,flags!==null&&(current2=finishedWork.shared.hiddenCallbacks,finishedWork.shared.hiddenCallbacks=current2===null?flags:current2.concat(flags))));break;case 26:var hoistableRoot=currentHoistableRoot;if(recursivelyTraverseMutationEffects(root3,finishedWork),commitReconciliationEffects(finishedWork),flags&512&&(offscreenSubtreeWasHidden||current2===null||safelyDetachRef(current2,current2.return)),flags&4)if(root3=current2!==null?current2.memoizedState:null,flags=finishedWork.memoizedState,current2===null)if(flags===null)if(finishedWork.stateNode===null){a:{flags=finishedWork.type,current2=finishedWork.memoizedProps,root3=hoistableRoot.ownerDocument||hoistableRoot;b:switch(flags){case"title":hoistableRoot=root3.getElementsByTagName("title")[0],(!hoistableRoot||hoistableRoot[internalHoistableMarker]||hoistableRoot[internalInstanceKey]||hoistableRoot.namespaceURI===SVG_NAMESPACE||hoistableRoot.hasAttribute("itemprop"))&&(hoistableRoot=root3.createElement(flags),root3.head.insertBefore(hoistableRoot,root3.querySelector("head > title"))),setInitialProperties(hoistableRoot,flags,current2),hoistableRoot[internalInstanceKey]=finishedWork,markNodeAsHoistable(hoistableRoot),flags=hoistableRoot;break a;case"link":var maybeNodes=getHydratableHoistableCache("link","href",root3).get(flags+(current2.href||""));if(maybeNodes){for(var i=0;i<maybeNodes.length;i++)if(hoistableRoot=maybeNodes[i],hoistableRoot.getAttribute("href")===(current2.href==null||current2.href===""?null:current2.href)&&hoistableRoot.getAttribute("rel")===(current2.rel==null?null:current2.rel)&&hoistableRoot.getAttribute("title")===(current2.title==null?null:current2.title)&&hoistableRoot.getAttribute("crossorigin")===(current2.crossOrigin==null?null:current2.crossOrigin)){maybeNodes.splice(i,1);break b}}hoistableRoot=root3.createElement(flags),setInitialProperties(hoistableRoot,flags,current2),root3.head.appendChild(hoistableRoot);break;case"meta":if(maybeNodes=getHydratableHoistableCache("meta","content",root3).get(flags+(current2.content||""))){for(i=0;i<maybeNodes.length;i++)if(hoistableRoot=maybeNodes[i],checkAttributeStringCoercion(current2.content,"content"),hoistableRoot.getAttribute("content")===(current2.content==null?null:""+current2.content)&&hoistableRoot.getAttribute("name")===(current2.name==null?null:current2.name)&&hoistableRoot.getAttribute("property")===(current2.property==null?null:current2.property)&&hoistableRoot.getAttribute("http-equiv")===(current2.httpEquiv==null?null:current2.httpEquiv)&&hoistableRoot.getAttribute("charset")===(current2.charSet==null?null:current2.charSet)){maybeNodes.splice(i,1);break b}}hoistableRoot=root3.createElement(flags),setInitialProperties(hoistableRoot,flags,current2),root3.head.appendChild(hoistableRoot);break;default:throw Error('getNodesForType encountered a type it did not expect: "'+flags+'". This is a bug in React.')}hoistableRoot[internalInstanceKey]=finishedWork,markNodeAsHoistable(hoistableRoot),flags=hoistableRoot}finishedWork.stateNode=flags}else mountHoistable(hoistableRoot,finishedWork.type,finishedWork.stateNode);else finishedWork.stateNode=acquireResource(hoistableRoot,flags,finishedWork.memoizedProps);else root3!==flags?(root3===null?current2.stateNode!==null&&(current2=current2.stateNode,current2.parentNode.removeChild(current2)):root3.count--,flags===null?mountHoistable(hoistableRoot,finishedWork.type,finishedWork.stateNode):acquireResource(hoistableRoot,flags,finishedWork.memoizedProps)):flags===null&&finishedWork.stateNode!==null&&commitHostUpdate(finishedWork,finishedWork.memoizedProps,current2.memoizedProps);break;case 27:recursivelyTraverseMutationEffects(root3,finishedWork),commitReconciliationEffects(finishedWork),flags&512&&(offscreenSubtreeWasHidden||current2===null||safelyDetachRef(current2,current2.return)),current2!==null&&flags&4&&commitHostUpdate(finishedWork,finishedWork.memoizedProps,current2.memoizedProps);break;case 5:if(recursivelyTraverseMutationEffects(root3,finishedWork),commitReconciliationEffects(finishedWork),flags&512&&(offscreenSubtreeWasHidden||current2===null||safelyDetachRef(current2,current2.return)),finishedWork.flags&32){root3=finishedWork.stateNode;try{runWithFiberInDEV(finishedWork,resetTextContent,root3)}catch(error){captureCommitPhaseError(finishedWork,finishedWork.return,error)}}flags&4&&finishedWork.stateNode!=null&&(root3=finishedWork.memoizedProps,commitHostUpdate(finishedWork,root3,current2!==null?current2.memoizedProps:root3)),flags&1024&&(needsFormReset=!0,finishedWork.type!=="form"&&console.error("Unexpected host component type. Expected a form. This is a bug in React."));break;case 6:if(recursivelyTraverseMutationEffects(root3,finishedWork),commitReconciliationEffects(finishedWork),flags&4){if(finishedWork.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.");flags=finishedWork.memoizedProps,current2=current2!==null?current2.memoizedProps:flags,root3=finishedWork.stateNode;try{runWithFiberInDEV(finishedWork,commitTextUpdate,root3,current2,flags)}catch(error){captureCommitPhaseError(finishedWork,finishedWork.return,error)}}break;case 3:if(hoistableRoot=pushNestedEffectDurations(),tagCaches=null,maybeNodes=currentHoistableRoot,currentHoistableRoot=getHoistableRoot(root3.containerInfo),recursivelyTraverseMutationEffects(root3,finishedWork),currentHoistableRoot=maybeNodes,commitReconciliationEffects(finishedWork),flags&4&¤t2!==null&¤t2.memoizedState.isDehydrated)try{runWithFiberInDEV(finishedWork,commitHydratedContainer,root3.containerInfo)}catch(error){captureCommitPhaseError(finishedWork,finishedWork.return,error)}needsFormReset&&(needsFormReset=!1,recursivelyResetForms(finishedWork)),root3.effectDuration+=popNestedEffectDurations(hoistableRoot);break;case 4:flags=currentHoistableRoot,currentHoistableRoot=getHoistableRoot(finishedWork.stateNode.containerInfo),recursivelyTraverseMutationEffects(root3,finishedWork),commitReconciliationEffects(finishedWork),currentHoistableRoot=flags;break;case 12:flags=pushNestedEffectDurations(),recursivelyTraverseMutationEffects(root3,finishedWork),commitReconciliationEffects(finishedWork),finishedWork.stateNode.effectDuration+=bubbleNestedEffectDurations(flags);break;case 13:recursivelyTraverseMutationEffects(root3,finishedWork),commitReconciliationEffects(finishedWork),finishedWork.child.flags&8192&&finishedWork.memoizedState!==null!=(current2!==null&¤t2.memoizedState!==null)&&(globalMostRecentFallbackTime=now$1()),flags&4&&(flags=finishedWork.updateQueue,flags!==null&&(finishedWork.updateQueue=null,attachSuspenseRetryListeners(finishedWork,flags)));break;case 22:hoistableRoot=finishedWork.memoizedState!==null;var wasHidden=current2!==null&¤t2.memoizedState!==null,prevOffscreenSubtreeIsHidden=offscreenSubtreeIsHidden,prevOffscreenSubtreeWasHidden=offscreenSubtreeWasHidden;if(offscreenSubtreeIsHidden=prevOffscreenSubtreeIsHidden||hoistableRoot,offscreenSubtreeWasHidden=prevOffscreenSubtreeWasHidden||wasHidden,recursivelyTraverseMutationEffects(root3,finishedWork),offscreenSubtreeWasHidden=prevOffscreenSubtreeWasHidden,offscreenSubtreeIsHidden=prevOffscreenSubtreeIsHidden,commitReconciliationEffects(finishedWork),flags&8192)a:for(root3=finishedWork.stateNode,root3._visibility=hoistableRoot?root3._visibility&-2:root3._visibility|OffscreenVisible,hoistableRoot&&(current2===null||wasHidden||offscreenSubtreeIsHidden||offscreenSubtreeWasHidden||recursivelyTraverseDisappearLayoutEffects(finishedWork)),current2=null,root3=finishedWork;;){if(root3.tag===5||root3.tag===26){if(current2===null){wasHidden=current2=root3;try{maybeNodes=wasHidden.stateNode,hoistableRoot?runWithFiberInDEV(wasHidden,hideInstance,maybeNodes):runWithFiberInDEV(wasHidden,unhideInstance,wasHidden.stateNode,wasHidden.memoizedProps)}catch(error){captureCommitPhaseError(wasHidden,wasHidden.return,error)}}}else if(root3.tag===6){if(current2===null){wasHidden=root3;try{i=wasHidden.stateNode,hoistableRoot?runWithFiberInDEV(wasHidden,hideTextInstance,i):runWithFiberInDEV(wasHidden,unhideTextInstance,i,wasHidden.memoizedProps)}catch(error){captureCommitPhaseError(wasHidden,wasHidden.return,error)}}}else if((root3.tag!==22&&root3.tag!==23||root3.memoizedState===null||root3===finishedWork)&&root3.child!==null){root3.child.return=root3,root3=root3.child;continue}if(root3===finishedWork)break a;for(;root3.sibling===null;){if(root3.return===null||root3.return===finishedWork)break a;current2===root3&&(current2=null),root3=root3.return}current2===root3&&(current2=null),root3.sibling.return=root3.return,root3=root3.sibling}flags&4&&(flags=finishedWork.updateQueue,flags!==null&&(current2=flags.retryQueue,current2!==null&&(flags.retryQueue=null,attachSuspenseRetryListeners(finishedWork,current2))));break;case 19:recursivelyTraverseMutationEffects(root3,finishedWork),commitReconciliationEffects(finishedWork),flags&4&&(flags=finishedWork.updateQueue,flags!==null&&(finishedWork.updateQueue=null,attachSuspenseRetryListeners(finishedWork,flags)));break;case 30:break;case 21:break;default:recursivelyTraverseMutationEffects(root3,finishedWork),commitReconciliationEffects(finishedWork)}}function commitReconciliationEffects(finishedWork){var flags=finishedWork.flags;if(flags&2){try{runWithFiberInDEV(finishedWork,commitPlacement,finishedWork)}catch(error){captureCommitPhaseError(finishedWork,finishedWork.return,error)}finishedWork.flags&=-3}flags&4096&&(finishedWork.flags&=-4097)}function recursivelyResetForms(parentFiber){if(parentFiber.subtreeFlags&1024)for(parentFiber=parentFiber.child;parentFiber!==null;){var fiber=parentFiber;recursivelyResetForms(fiber),fiber.tag===5&&fiber.flags&1024&&fiber.stateNode.reset(),parentFiber=parentFiber.sibling}}function recursivelyTraverseLayoutEffects(root3,parentFiber){if(parentFiber.subtreeFlags&8772)for(parentFiber=parentFiber.child;parentFiber!==null;)commitLayoutEffectOnFiber(root3,parentFiber.alternate,parentFiber),parentFiber=parentFiber.sibling}function disappearLayoutEffects(finishedWork){switch(finishedWork.tag){case 0:case 11:case 14:case 15:commitHookLayoutUnmountEffects(finishedWork,finishedWork.return,Layout),recursivelyTraverseDisappearLayoutEffects(finishedWork);break;case 1:safelyDetachRef(finishedWork,finishedWork.return);var instance=finishedWork.stateNode;typeof instance.componentWillUnmount=="function"&&safelyCallComponentWillUnmount(finishedWork,finishedWork.return,instance),recursivelyTraverseDisappearLayoutEffects(finishedWork);break;case 27:runWithFiberInDEV(finishedWork,releaseSingletonInstance,finishedWork.stateNode);case 26:case 5:safelyDetachRef(finishedWork,finishedWork.return),recursivelyTraverseDisappearLayoutEffects(finishedWork);break;case 22:finishedWork.memoizedState===null&&recursivelyTraverseDisappearLayoutEffects(finishedWork);break;case 30:recursivelyTraverseDisappearLayoutEffects(finishedWork);break;default:recursivelyTraverseDisappearLayoutEffects(finishedWork)}}function recursivelyTraverseDisappearLayoutEffects(parentFiber){for(parentFiber=parentFiber.child;parentFiber!==null;)disappearLayoutEffects(parentFiber),parentFiber=parentFiber.sibling}function reappearLayoutEffects(finishedRoot,current2,finishedWork,includeWorkInProgressEffects){var flags=finishedWork.flags;switch(finishedWork.tag){case 0:case 11:case 15:recursivelyTraverseReappearLayoutEffects(finishedRoot,finishedWork,includeWorkInProgressEffects),commitHookLayoutEffects(finishedWork,Layout);break;case 1:if(recursivelyTraverseReappearLayoutEffects(finishedRoot,finishedWork,includeWorkInProgressEffects),current2=finishedWork.stateNode,typeof current2.componentDidMount=="function"&&runWithFiberInDEV(finishedWork,callComponentDidMountInDEV,finishedWork,current2),current2=finishedWork.updateQueue,current2!==null){finishedRoot=finishedWork.stateNode;try{runWithFiberInDEV(finishedWork,commitHiddenCallbacks,current2,finishedRoot)}catch(error){captureCommitPhaseError(finishedWork,finishedWork.return,error)}}includeWorkInProgressEffects&&flags&64&&commitClassCallbacks(finishedWork),safelyAttachRef(finishedWork,finishedWork.return);break;case 27:commitHostSingletonAcquisition(finishedWork);case 26:case 5:recursivelyTraverseReappearLayoutEffects(finishedRoot,finishedWork,includeWorkInProgressEffects),includeWorkInProgressEffects&¤t2===null&&flags&4&&commitHostMount(finishedWork),safelyAttachRef(finishedWork,finishedWork.return);break;case 12:if(includeWorkInProgressEffects&&flags&4){flags=pushNestedEffectDurations(),recursivelyTraverseReappearLayoutEffects(finishedRoot,finishedWork,includeWorkInProgressEffects),includeWorkInProgressEffects=finishedWork.stateNode,includeWorkInProgressEffects.effectDuration+=bubbleNestedEffectDurations(flags);try{runWithFiberInDEV(finishedWork,commitProfiler,finishedWork,current2,commitStartTime,includeWorkInProgressEffects.effectDuration)}catch(error){captureCommitPhaseError(finishedWork,finishedWork.return,error)}}else recursivelyTraverseReappearLayoutEffects(finishedRoot,finishedWork,includeWorkInProgressEffects);break;case 13:recursivelyTraverseReappearLayoutEffects(finishedRoot,finishedWork,includeWorkInProgressEffects),includeWorkInProgressEffects&&flags&4&&commitSuspenseHydrationCallbacks(finishedRoot,finishedWork);break;case 22:finishedWork.memoizedState===null&&recursivelyTraverseReappearLayoutEffects(finishedRoot,finishedWork,includeWorkInProgressEffects),safelyAttachRef(finishedWork,finishedWork.return);break;case 30:break;default:recursivelyTraverseReappearLayoutEffects(finishedRoot,finishedWork,includeWorkInProgressEffects)}}function recursivelyTraverseReappearLayoutEffects(finishedRoot,parentFiber,includeWorkInProgressEffects){for(includeWorkInProgressEffects=includeWorkInProgressEffects&&(parentFiber.subtreeFlags&8772)!==0,parentFiber=parentFiber.child;parentFiber!==null;)reappearLayoutEffects(finishedRoot,parentFiber.alternate,parentFiber,includeWorkInProgressEffects),parentFiber=parentFiber.sibling}function commitOffscreenPassiveMountEffects(current2,finishedWork){var previousCache=null;current2!==null&¤t2.memoizedState!==null&¤t2.memoizedState.cachePool!==null&&(previousCache=current2.memoizedState.cachePool.pool),current2=null,finishedWork.memoizedState!==null&&finishedWork.memoizedState.cachePool!==null&&(current2=finishedWork.memoizedState.cachePool.pool),current2!==previousCache&&(current2!=null&&retainCache(current2),previousCache!=null&&releaseCache(previousCache))}function commitCachePassiveMountEffect(current2,finishedWork){current2=null,finishedWork.alternate!==null&&(current2=finishedWork.alternate.memoizedState.cache),finishedWork=finishedWork.memoizedState.cache,finishedWork!==current2&&(retainCache(finishedWork),current2!=null&&releaseCache(current2))}function recursivelyTraversePassiveMountEffects(root3,parentFiber,committedLanes,committedTransitions){if(parentFiber.subtreeFlags&10256)for(parentFiber=parentFiber.child;parentFiber!==null;)commitPassiveMountOnFiber(root3,parentFiber,committedLanes,committedTransitions),parentFiber=parentFiber.sibling}function commitPassiveMountOnFiber(finishedRoot,finishedWork,committedLanes,committedTransitions){var flags=finishedWork.flags;switch(finishedWork.tag){case 0:case 11:case 15:recursivelyTraversePassiveMountEffects(finishedRoot,finishedWork,committedLanes,committedTransitions),flags&2048&&commitHookPassiveMountEffects(finishedWork,Passive|HasEffect);break;case 1:recursivelyTraversePassiveMountEffects(finishedRoot,finishedWork,committedLanes,committedTransitions);break;case 3:var prevEffectDuration=pushNestedEffectDurations();recursivelyTraversePassiveMountEffects(finishedRoot,finishedWork,committedLanes,committedTransitions),flags&2048&&(committedLanes=null,finishedWork.alternate!==null&&(committedLanes=finishedWork.alternate.memoizedState.cache),finishedWork=finishedWork.memoizedState.cache,finishedWork!==committedLanes&&(retainCache(finishedWork),committedLanes!=null&&releaseCache(committedLanes))),finishedRoot.passiveEffectDuration+=popNestedEffectDurations(prevEffectDuration);break;case 12:if(flags&2048){flags=pushNestedEffectDurations(),recursivelyTraversePassiveMountEffects(finishedRoot,finishedWork,committedLanes,committedTransitions),finishedRoot=finishedWork.stateNode,finishedRoot.passiveEffectDuration+=bubbleNestedEffectDurations(flags);try{runWithFiberInDEV(finishedWork,commitProfilerPostCommitImpl,finishedWork,finishedWork.alternate,commitStartTime,finishedRoot.passiveEffectDuration)}catch(error){captureCommitPhaseError(finishedWork,finishedWork.return,error)}}else recursivelyTraversePassiveMountEffects(finishedRoot,finishedWork,committedLanes,committedTransitions);break;case 13:recursivelyTraversePassiveMountEffects(finishedRoot,finishedWork,committedLanes,committedTransitions);break;case 23:break;case 22:prevEffectDuration=finishedWork.stateNode;var _current=finishedWork.alternate;finishedWork.memoizedState!==null?prevEffectDuration._visibility&OffscreenPassiveEffectsConnected?recursivelyTraversePassiveMountEffects(finishedRoot,finishedWork,committedLanes,committedTransitions):recursivelyTraverseAtomicPassiveEffects(finishedRoot,finishedWork):prevEffectDuration._visibility&OffscreenPassiveEffectsConnected?recursivelyTraversePassiveMountEffects(finishedRoot,finishedWork,committedLanes,committedTransitions):(prevEffectDuration._visibility|=OffscreenPassiveEffectsConnected,recursivelyTraverseReconnectPassiveEffects(finishedRoot,finishedWork,committedLanes,committedTransitions,(finishedWork.subtreeFlags&10256)!==0)),flags&2048&&commitOffscreenPassiveMountEffects(_current,finishedWork);break;case 24:recursivelyTraversePassiveMountEffects(finishedRoot,finishedWork,committedLanes,committedTransitions),flags&2048&&commitCachePassiveMountEffect(finishedWork.alternate,finishedWork);break;default:recursivelyTraversePassiveMountEffects(finishedRoot,finishedWork,committedLanes,committedTransitions)}}function recursivelyTraverseReconnectPassiveEffects(finishedRoot,parentFiber,committedLanes,committedTransitions,includeWorkInProgressEffects){for(includeWorkInProgressEffects=includeWorkInProgressEffects&&(parentFiber.subtreeFlags&10256)!==0,parentFiber=parentFiber.child;parentFiber!==null;)reconnectPassiveEffects(finishedRoot,parentFiber,committedLanes,committedTransitions,includeWorkInProgressEffects),parentFiber=parentFiber.sibling}function reconnectPassiveEffects(finishedRoot,finishedWork,committedLanes,committedTransitions,includeWorkInProgressEffects){var flags=finishedWork.flags;switch(finishedWork.tag){case 0:case 11:case 15:recursivelyTraverseReconnectPassiveEffects(finishedRoot,finishedWork,committedLanes,committedTransitions,includeWorkInProgressEffects),commitHookPassiveMountEffects(finishedWork,Passive);break;case 23:break;case 22:var _instance2=finishedWork.stateNode;finishedWork.memoizedState!==null?_instance2._visibility&OffscreenPassiveEffectsConnected?recursivelyTraverseReconnectPassiveEffects(finishedRoot,finishedWork,committedLanes,committedTransitions,includeWorkInProgressEffects):recursivelyTraverseAtomicPassiveEffects(finishedRoot,finishedWork):(_instance2._visibility|=OffscreenPassiveEffectsConnected,recursivelyTraverseReconnectPassiveEffects(finishedRoot,finishedWork,committedLanes,committedTransitions,includeWorkInProgressEffects)),includeWorkInProgressEffects&&flags&2048&&commitOffscreenPassiveMountEffects(finishedWork.alternate,finishedWork);break;case 24:recursivelyTraverseReconnectPassiveEffects(finishedRoot,finishedWork,committedLanes,committedTransitions,includeWorkInProgressEffects),includeWorkInProgressEffects&&flags&2048&&commitCachePassiveMountEffect(finishedWork.alternate,finishedWork);break;default:recursivelyTraverseReconnectPassiveEffects(finishedRoot,finishedWork,committedLanes,committedTransitions,includeWorkInProgressEffects)}}function recursivelyTraverseAtomicPassiveEffects(finishedRoot$jscomp$0,parentFiber){if(parentFiber.subtreeFlags&10256)for(parentFiber=parentFiber.child;parentFiber!==null;){var finishedRoot=finishedRoot$jscomp$0,finishedWork=parentFiber,flags=finishedWork.flags;switch(finishedWork.tag){case 22:recursivelyTraverseAtomicPassiveEffects(finishedRoot,finishedWork),flags&2048&&commitOffscreenPassiveMountEffects(finishedWork.alternate,finishedWork);break;case 24:recursivelyTraverseAtomicPassiveEffects(finishedRoot,finishedWork),flags&2048&&commitCachePassiveMountEffect(finishedWork.alternate,finishedWork);break;default:recursivelyTraverseAtomicPassiveEffects(finishedRoot,finishedWork)}parentFiber=parentFiber.sibling}}function recursivelyAccumulateSuspenseyCommit(parentFiber){if(parentFiber.subtreeFlags&suspenseyCommitFlag)for(parentFiber=parentFiber.child;parentFiber!==null;)accumulateSuspenseyCommitOnFiber(parentFiber),parentFiber=parentFiber.sibling}function accumulateSuspenseyCommitOnFiber(fiber){switch(fiber.tag){case 26:recursivelyAccumulateSuspenseyCommit(fiber),fiber.flags&suspenseyCommitFlag&&fiber.memoizedState!==null&&suspendResource(currentHoistableRoot,fiber.memoizedState,fiber.memoizedProps);break;case 5:recursivelyAccumulateSuspenseyCommit(fiber);break;case 3:case 4:var previousHoistableRoot=currentHoistableRoot;currentHoistableRoot=getHoistableRoot(fiber.stateNode.containerInfo),recursivelyAccumulateSuspenseyCommit(fiber),currentHoistableRoot=previousHoistableRoot;break;case 22:fiber.memoizedState===null&&(previousHoistableRoot=fiber.alternate,previousHoistableRoot!==null&&previousHoistableRoot.memoizedState!==null?(previousHoistableRoot=suspenseyCommitFlag,suspenseyCommitFlag=16777216,recursivelyAccumulateSuspenseyCommit(fiber),suspenseyCommitFlag=previousHoistableRoot):recursivelyAccumulateSuspenseyCommit(fiber));break;default:recursivelyAccumulateSuspenseyCommit(fiber)}}function detachAlternateSiblings(parentFiber){var previousFiber=parentFiber.alternate;if(previousFiber!==null&&(parentFiber=previousFiber.child,parentFiber!==null)){previousFiber.child=null;do previousFiber=parentFiber.sibling,parentFiber.sibling=null,parentFiber=previousFiber;while(parentFiber!==null)}}function recursivelyTraversePassiveUnmountEffects(parentFiber){var deletions=parentFiber.deletions;if((parentFiber.flags&16)!==0){if(deletions!==null)for(var i=0;i<deletions.length;i++){var childToDelete=deletions[i];nextEffect=childToDelete,commitPassiveUnmountEffectsInsideOfDeletedTree_begin(childToDelete,parentFiber)}detachAlternateSiblings(parentFiber)}if(parentFiber.subtreeFlags&10256)for(parentFiber=parentFiber.child;parentFiber!==null;)commitPassiveUnmountOnFiber(parentFiber),parentFiber=parentFiber.sibling}function commitPassiveUnmountOnFiber(finishedWork){switch(finishedWork.tag){case 0:case 11:case 15:recursivelyTraversePassiveUnmountEffects(finishedWork),finishedWork.flags&2048&&commitHookPassiveUnmountEffects(finishedWork,finishedWork.return,Passive|HasEffect);break;case 3:var prevEffectDuration=pushNestedEffectDurations();recursivelyTraversePassiveUnmountEffects(finishedWork),finishedWork.stateNode.passiveEffectDuration+=popNestedEffectDurations(prevEffectDuration);break;case 12:prevEffectDuration=pushNestedEffectDurations(),recursivelyTraversePassiveUnmountEffects(finishedWork),finishedWork.stateNode.passiveEffectDuration+=bubbleNestedEffectDurations(prevEffectDuration);break;case 22:prevEffectDuration=finishedWork.stateNode,finishedWork.memoizedState!==null&&prevEffectDuration._visibility&OffscreenPassiveEffectsConnected&&(finishedWork.return===null||finishedWork.return.tag!==13)?(prevEffectDuration._visibility&=-3,recursivelyTraverseDisconnectPassiveEffects(finishedWork)):recursivelyTraversePassiveUnmountEffects(finishedWork);break;default:recursivelyTraversePassiveUnmountEffects(finishedWork)}}function recursivelyTraverseDisconnectPassiveEffects(parentFiber){var deletions=parentFiber.deletions;if((parentFiber.flags&16)!==0){if(deletions!==null)for(var i=0;i<deletions.length;i++){var childToDelete=deletions[i];nextEffect=childToDelete,commitPassiveUnmountEffectsInsideOfDeletedTree_begin(childToDelete,parentFiber)}detachAlternateSiblings(parentFiber)}for(parentFiber=parentFiber.child;parentFiber!==null;)disconnectPassiveEffect(parentFiber),parentFiber=parentFiber.sibling}function disconnectPassiveEffect(finishedWork){switch(finishedWork.tag){case 0:case 11:case 15:commitHookPassiveUnmountEffects(finishedWork,finishedWork.return,Passive),recursivelyTraverseDisconnectPassiveEffects(finishedWork);break;case 22:var instance=finishedWork.stateNode;instance._visibility&OffscreenPassiveEffectsConnected&&(instance._visibility&=-3,recursivelyTraverseDisconnectPassiveEffects(finishedWork));break;default:recursivelyTraverseDisconnectPassiveEffects(finishedWork)}}function commitPassiveUnmountEffectsInsideOfDeletedTree_begin(deletedSubtreeRoot,nearestMountedAncestor){for(;nextEffect!==null;){var fiber=nextEffect,current2=fiber;switch(current2.tag){case 0:case 11:case 15:commitHookPassiveUnmountEffects(current2,nearestMountedAncestor,Passive);break;case 23:case 22:current2.memoizedState!==null&¤t2.memoizedState.cachePool!==null&&(current2=current2.memoizedState.cachePool.pool,current2!=null&&retainCache(current2));break;case 24:releaseCache(current2.memoizedState.cache)}if(current2=fiber.child,current2!==null)current2.return=fiber,nextEffect=current2;else a:for(fiber=deletedSubtreeRoot;nextEffect!==null;){current2=nextEffect;var sibling=current2.sibling,returnFiber=current2.return;if(detachFiberAfterEffects(current2),current2===fiber){nextEffect=null;break a}if(sibling!==null){sibling.return=returnFiber,nextEffect=sibling;break a}nextEffect=returnFiber}}}function onCommitRoot(){commitHooks.forEach(function(commitHook){return commitHook()})}function isConcurrentActEnvironment(){var isReactActEnvironmentGlobal=typeof IS_REACT_ACT_ENVIRONMENT<"u"?IS_REACT_ACT_ENVIRONMENT:void 0;return isReactActEnvironmentGlobal||ReactSharedInternals.actQueue===null||console.error("The current testing environment is not configured to support act(...)"),isReactActEnvironmentGlobal}function requestUpdateLane(fiber){if((executionContext&RenderContext)!==NoContext&&workInProgressRootRenderLanes!==0)return workInProgressRootRenderLanes&-workInProgressRootRenderLanes;var transition=ReactSharedInternals.T;return transition!==null?(transition._updatedFibers||(transition._updatedFibers=new Set),transition._updatedFibers.add(fiber),fiber=currentEntangledLane,fiber!==0?fiber:requestTransitionLane()):resolveUpdatePriority()}function requestDeferredLane(){workInProgressDeferredLane===0&&(workInProgressDeferredLane=(workInProgressRootRenderLanes&536870912)===0||isHydrating?claimNextTransitionLane():536870912);var suspenseHandler=suspenseHandlerStackCursor.current;return suspenseHandler!==null&&(suspenseHandler.flags|=32),workInProgressDeferredLane}function scheduleUpdateOnFiber(root3,fiber,lane){if(isRunningInsertionEffect&&console.error("useInsertionEffect must not schedule updates."),isFlushingPassiveEffects&&(didScheduleUpdateDuringPassiveEffects=!0),(root3===workInProgressRoot&&(workInProgressSuspendedReason===SuspendedOnData||workInProgressSuspendedReason===SuspendedOnAction)||root3.cancelPendingCommit!==null)&&(prepareFreshStack(root3,0),markRootSuspended(root3,workInProgressRootRenderLanes,workInProgressDeferredLane,!1)),markRootUpdated$1(root3,lane),(executionContext&RenderContext)!==0&&root3===workInProgressRoot){if(isRendering)switch(fiber.tag){case 0:case 11:case 15:root3=workInProgress&&getComponentNameFromFiber(workInProgress)||"Unknown",didWarnAboutUpdateInRenderForAnotherComponent.has(root3)||(didWarnAboutUpdateInRenderForAnotherComponent.add(root3),fiber=getComponentNameFromFiber(fiber)||"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",fiber,root3,root3));break;case 1:didWarnAboutUpdateInRender||(console.error("Cannot update during an existing state transition (such as within `render`). Render methods should be a pure function of props and state."),didWarnAboutUpdateInRender=!0)}}else isDevToolsPresent&&addFiberToLanesMap(root3,fiber,lane),warnIfUpdatesNotWrappedWithActDEV(fiber),root3===workInProgressRoot&&((executionContext&RenderContext)===NoContext&&(workInProgressRootInterleavedUpdatedLanes|=lane),workInProgressRootExitStatus===RootSuspendedWithDelay&&markRootSuspended(root3,workInProgressRootRenderLanes,workInProgressDeferredLane,!1)),ensureRootIsScheduled(root3)}function performWorkOnRoot(root3,lanes,forceSync){if((executionContext&(RenderContext|CommitContext))!==NoContext)throw Error("Should not already be working.");var shouldTimeSlice=!forceSync&&(lanes&124)===0&&(lanes&root3.expiredLanes)===0||checkIfRootIsPrerendering(root3,lanes),exitStatus=shouldTimeSlice?renderRootConcurrent(root3,lanes):renderRootSync(root3,lanes,!0),renderWasConcurrent=shouldTimeSlice;do{if(exitStatus===RootInProgress){workInProgressRootIsPrerendering&&!shouldTimeSlice&&markRootSuspended(root3,lanes,0,!1);break}else{if(forceSync=root3.current.alternate,renderWasConcurrent&&!isRenderConsistentWithExternalStores(forceSync)){exitStatus=renderRootSync(root3,lanes,!1),renderWasConcurrent=!1;continue}if(exitStatus===RootErrored){if(renderWasConcurrent=lanes,root3.errorRecoveryDisabledLanes&renderWasConcurrent)var errorRetryLanes=0;else errorRetryLanes=root3.pendingLanes&-536870913,errorRetryLanes=errorRetryLanes!==0?errorRetryLanes:errorRetryLanes&536870912?536870912:0;if(errorRetryLanes!==0){lanes=errorRetryLanes;a:{exitStatus=root3;var errorRetryLanes$jscomp$0=errorRetryLanes;errorRetryLanes=workInProgressRootConcurrentErrors;var wasRootDehydrated=exitStatus.current.memoizedState.isDehydrated;if(wasRootDehydrated&&(prepareFreshStack(exitStatus,errorRetryLanes$jscomp$0).flags|=256),errorRetryLanes$jscomp$0=renderRootSync(exitStatus,errorRetryLanes$jscomp$0,!1),errorRetryLanes$jscomp$0!==RootErrored){if(workInProgressRootDidAttachPingListener&&!wasRootDehydrated){exitStatus.errorRecoveryDisabledLanes|=renderWasConcurrent,workInProgressRootInterleavedUpdatedLanes|=renderWasConcurrent,exitStatus=RootSuspendedWithDelay;break a}exitStatus=workInProgressRootRecoverableErrors,workInProgressRootRecoverableErrors=errorRetryLanes,exitStatus!==null&&(workInProgressRootRecoverableErrors===null?workInProgressRootRecoverableErrors=exitStatus:workInProgressRootRecoverableErrors.push.apply(workInProgressRootRecoverableErrors,exitStatus))}exitStatus=errorRetryLanes$jscomp$0}if(renderWasConcurrent=!1,exitStatus!==RootErrored)continue}}if(exitStatus===RootFatalErrored){prepareFreshStack(root3,0),markRootSuspended(root3,lanes,0,!0);break}a:{switch(shouldTimeSlice=root3,exitStatus){case RootInProgress:case RootFatalErrored:throw Error("Root did not complete. This is a bug in React.");case RootSuspendedWithDelay:if((lanes&4194048)!==lanes)break;case RootSuspendedAtTheShell:markRootSuspended(shouldTimeSlice,lanes,workInProgressDeferredLane,!workInProgressRootDidSkipSuspendedSiblings);break a;case RootErrored:workInProgressRootRecoverableErrors=null;break;case RootSuspended:case RootCompleted:break;default:throw Error("Unknown root exit status.")}if(ReactSharedInternals.actQueue!==null)commitRoot(shouldTimeSlice,forceSync,lanes,workInProgressRootRecoverableErrors,workInProgressTransitions,workInProgressRootDidIncludeRecursiveRenderUpdate,workInProgressDeferredLane,workInProgressRootInterleavedUpdatedLanes,workInProgressSuspendedRetryLanes);else{if((lanes&62914560)===lanes&&(renderWasConcurrent=globalMostRecentFallbackTime+FALLBACK_THROTTLE_MS-now$1(),10<renderWasConcurrent)){if(markRootSuspended(shouldTimeSlice,lanes,workInProgressDeferredLane,!workInProgressRootDidSkipSuspendedSiblings),getNextLanes(shouldTimeSlice,0,!0)!==0)break a;shouldTimeSlice.timeoutHandle=scheduleTimeout(commitRootWhenReady.bind(null,shouldTimeSlice,forceSync,workInProgressRootRecoverableErrors,workInProgressTransitions,workInProgressRootDidIncludeRecursiveRenderUpdate,lanes,workInProgressDeferredLane,workInProgressRootInterleavedUpdatedLanes,workInProgressSuspendedRetryLanes,workInProgressRootDidSkipSuspendedSiblings,exitStatus,THROTTLED_COMMIT,renderStartTime,0),renderWasConcurrent);break a}commitRootWhenReady(shouldTimeSlice,forceSync,workInProgressRootRecoverableErrors,workInProgressTransitions,workInProgressRootDidIncludeRecursiveRenderUpdate,lanes,workInProgressDeferredLane,workInProgressRootInterleavedUpdatedLanes,workInProgressSuspendedRetryLanes,workInProgressRootDidSkipSuspendedSiblings,exitStatus,IMMEDIATE_COMMIT,renderStartTime,0)}}}break}while(!0);ensureRootIsScheduled(root3)}function commitRootWhenReady(root3,finishedWork,recoverableErrors,transitions,didIncludeRenderPhaseUpdate,lanes,spawnedLane,updatedLanes,suspendedRetryLanes,didSkipSuspendedSiblings,exitStatus,suspendedCommitReason,completedRenderStartTime,completedRenderEndTime){if(root3.timeoutHandle=noTimeout,suspendedCommitReason=finishedWork.subtreeFlags,(suspendedCommitReason&8192||(suspendedCommitReason&16785408)===16785408)&&(suspendedState={stylesheets:null,count:0,unsuspend:noop},accumulateSuspenseyCommitOnFiber(finishedWork),suspendedCommitReason=waitForCommitToBeReady(),suspendedCommitReason!==null)){root3.cancelPendingCommit=suspendedCommitReason(commitRoot.bind(null,root3,finishedWork,lanes,recoverableErrors,transitions,didIncludeRenderPhaseUpdate,spawnedLane,updatedLanes,suspendedRetryLanes,exitStatus,SUSPENDED_COMMIT,completedRenderStartTime,completedRenderEndTime)),markRootSuspended(root3,lanes,spawnedLane,!didSkipSuspendedSiblings);return}commitRoot(root3,finishedWork,lanes,recoverableErrors,transitions,didIncludeRenderPhaseUpdate,spawnedLane,updatedLanes,suspendedRetryLanes)}function isRenderConsistentWithExternalStores(finishedWork){for(var node=finishedWork;;){var tag=node.tag;if((tag===0||tag===11||tag===15)&&node.flags&16384&&(tag=node.updateQueue,tag!==null&&(tag=tag.stores,tag!==null)))for(var i=0;i<tag.length;i++){var check=tag[i],getSnapshot=check.getSnapshot;check=check.value;try{if(!objectIs(getSnapshot(),check))return!1}catch{return!1}}if(tag=node.child,node.subtreeFlags&16384&&tag!==null)tag.return=node,node=tag;else{if(node===finishedWork)break;for(;node.sibling===null;){if(node.return===null||node.return===finishedWork)return!0;node=node.return}node.sibling.return=node.return,node=node.sibling}}return!0}function markRootSuspended(root3,suspendedLanes,spawnedLane,didAttemptEntireTree){suspendedLanes&=~workInProgressRootPingedLanes,suspendedLanes&=~workInProgressRootInterleavedUpdatedLanes,root3.suspendedLanes|=suspendedLanes,root3.pingedLanes&=~suspendedLanes,didAttemptEntireTree&&(root3.warmLanes|=suspendedLanes),didAttemptEntireTree=root3.expirationTimes;for(var lanes=suspendedLanes;0<lanes;){var index=31-clz32(lanes),lane=1<<index;didAttemptEntireTree[index]=-1,lanes&=~lane}spawnedLane!==0&&markSpawnedDeferredLane(root3,spawnedLane,suspendedLanes)}function flushSyncWork$1(){return(executionContext&(RenderContext|CommitContext))===NoContext?(flushSyncWorkAcrossRoots_impl(0),!1):!0}function resetWorkInProgressStack(){if(workInProgress!==null){if(workInProgressSuspendedReason===NotSuspended)var interruptedWork=workInProgress.return;else interruptedWork=workInProgress,resetContextDependencies(),resetHooksOnUnwind(interruptedWork),thenableState=null,thenableIndexCounter=0,interruptedWork=workInProgress;for(;interruptedWork!==null;)unwindInterruptedWork(interruptedWork.alternate,interruptedWork),interruptedWork=interruptedWork.return;workInProgress=null}}function prepareFreshStack(root3,lanes){var timeoutHandle=root3.timeoutHandle;timeoutHandle!==noTimeout&&(root3.timeoutHandle=noTimeout,cancelTimeout(timeoutHandle)),timeoutHandle=root3.cancelPendingCommit,timeoutHandle!==null&&(root3.cancelPendingCommit=null,timeoutHandle()),resetWorkInProgressStack(),workInProgressRoot=root3,workInProgress=timeoutHandle=createWorkInProgress(root3.current,null),workInProgressRootRenderLanes=lanes,workInProgressSuspendedReason=NotSuspended,workInProgressThrownValue=null,workInProgressRootDidSkipSuspendedSiblings=!1,workInProgressRootIsPrerendering=checkIfRootIsPrerendering(root3,lanes),workInProgressRootDidAttachPingListener=!1,workInProgressRootExitStatus=RootInProgress,workInProgressSuspendedRetryLanes=workInProgressDeferredLane=workInProgressRootPingedLanes=workInProgressRootInterleavedUpdatedLanes=workInProgressRootSkippedLanes=0,workInProgressRootRecoverableErrors=workInProgressRootConcurrentErrors=null,workInProgressRootDidIncludeRecursiveRenderUpdate=!1,(lanes&8)!==0&&(lanes|=lanes&32);var allEntangledLanes=root3.entangledLanes;if(allEntangledLanes!==0)for(root3=root3.entanglements,allEntangledLanes&=lanes;0<allEntangledLanes;){var index=31-clz32(allEntangledLanes),lane=1<<index;lanes|=root3[index],allEntangledLanes&=~lane}return entangledRenderLanes=lanes,finishQueueingConcurrentUpdates(),lanes=getCurrentTime(),1e3<lanes-lastResetTime&&(ReactSharedInternals.recentlyCreatedOwnerStacks=0,lastResetTime=lanes),ReactStrictModeWarnings.discardPendingWarnings(),timeoutHandle}function handleThrow(root3,thrownValue){currentlyRenderingFiber=null,ReactSharedInternals.H=ContextOnlyDispatcher,ReactSharedInternals.getCurrentStack=null,isRendering=!1,current=null,thrownValue===SuspenseException||thrownValue===SuspenseActionException?(thrownValue=getSuspendedThenable(),workInProgressSuspendedReason=SuspendedOnImmediate):thrownValue===SuspenseyCommitException?(thrownValue=getSuspendedThenable(),workInProgressSuspendedReason=SuspendedOnInstance):workInProgressSuspendedReason=thrownValue===SelectiveHydrationException?SuspendedOnHydration:thrownValue!==null&&typeof thrownValue=="object"&&typeof thrownValue.then=="function"?SuspendedOnDeprecatedThrowPromise:SuspendedOnError,workInProgressThrownValue=thrownValue;var erroredWork=workInProgress;if(erroredWork===null)workInProgressRootExitStatus=RootFatalErrored,logUncaughtError(root3,createCapturedValueAtFiber(thrownValue,root3.current));else switch(erroredWork.mode&ProfileMode&&stopProfilerTimerIfRunningAndRecordDuration(erroredWork),markComponentRenderStopped(),workInProgressSuspendedReason){case SuspendedOnError:injectedProfilingHooks!==null&&typeof injectedProfilingHooks.markComponentErrored=="function"&&injectedProfilingHooks.markComponentErrored(erroredWork,thrownValue,workInProgressRootRenderLanes);break;case SuspendedOnData:case SuspendedOnAction:case SuspendedOnImmediate:case SuspendedOnDeprecatedThrowPromise:case SuspendedAndReadyToContinue:injectedProfilingHooks!==null&&typeof injectedProfilingHooks.markComponentSuspended=="function"&&injectedProfilingHooks.markComponentSuspended(erroredWork,thrownValue,workInProgressRootRenderLanes)}}function pushDispatcher(){var prevDispatcher=ReactSharedInternals.H;return ReactSharedInternals.H=ContextOnlyDispatcher,prevDispatcher===null?ContextOnlyDispatcher:prevDispatcher}function pushAsyncDispatcher(){var prevAsyncDispatcher=ReactSharedInternals.A;return ReactSharedInternals.A=DefaultAsyncDispatcher,prevAsyncDispatcher}function renderDidSuspendDelayIfPossible(){workInProgressRootExitStatus=RootSuspendedWithDelay,workInProgressRootDidSkipSuspendedSiblings||(workInProgressRootRenderLanes&4194048)!==workInProgressRootRenderLanes&&suspenseHandlerStackCursor.current!==null||(workInProgressRootIsPrerendering=!0),(workInProgressRootSkippedLanes&134217727)===0&&(workInProgressRootInterleavedUpdatedLanes&134217727)===0||workInProgressRoot===null||markRootSuspended(workInProgressRoot,workInProgressRootRenderLanes,workInProgressDeferredLane,!1)}function renderRootSync(root3,lanes,shouldYieldForPrerendering){var prevExecutionContext=executionContext;executionContext|=RenderContext;var prevDispatcher=pushDispatcher(),prevAsyncDispatcher=pushAsyncDispatcher();if(workInProgressRoot!==root3||workInProgressRootRenderLanes!==lanes){if(isDevToolsPresent){var memoizedUpdaters=root3.memoizedUpdaters;0<memoizedUpdaters.size&&(restorePendingUpdaters(root3,workInProgressRootRenderLanes),memoizedUpdaters.clear()),movePendingFibersToMemoized(root3,lanes)}workInProgressTransitions=null,prepareFreshStack(root3,lanes)}markRenderStarted(lanes),lanes=!1,memoizedUpdaters=workInProgressRootExitStatus;a:do try{if(workInProgressSuspendedReason!==NotSuspended&&workInProgress!==null){var unitOfWork=workInProgress,thrownValue=workInProgressThrownValue;switch(workInProgressSuspendedReason){case SuspendedOnHydration:resetWorkInProgressStack(),memoizedUpdaters=RootSuspendedAtTheShell;break a;case SuspendedOnImmediate:case SuspendedOnData:case SuspendedOnAction:case SuspendedOnDeprecatedThrowPromise:suspenseHandlerStackCursor.current===null&&(lanes=!0);var reason=workInProgressSuspendedReason;if(workInProgressSuspendedReason=NotSuspended,workInProgressThrownValue=null,throwAndUnwindWorkLoop(root3,unitOfWork,thrownValue,reason),shouldYieldForPrerendering&&workInProgressRootIsPrerendering){memoizedUpdaters=RootInProgress;break a}break;default:reason=workInProgressSuspendedReason,workInProgressSuspendedReason=NotSuspended,workInProgressThrownValue=null,throwAndUnwindWorkLoop(root3,unitOfWork,thrownValue,reason)}}workLoopSync(),memoizedUpdaters=workInProgressRootExitStatus;break}catch(thrownValue$8){handleThrow(root3,thrownValue$8)}while(!0);return lanes&&root3.shellSuspendCounter++,resetContextDependencies(),executionContext=prevExecutionContext,ReactSharedInternals.H=prevDispatcher,ReactSharedInternals.A=prevAsyncDispatcher,markRenderStopped(),workInProgress===null&&(workInProgressRoot=null,workInProgressRootRenderLanes=0,finishQueueingConcurrentUpdates()),memoizedUpdaters}function workLoopSync(){for(;workInProgress!==null;)performUnitOfWork(workInProgress)}function renderRootConcurrent(root3,lanes){var prevExecutionContext=executionContext;executionContext|=RenderContext;var prevDispatcher=pushDispatcher(),prevAsyncDispatcher=pushAsyncDispatcher();if(workInProgressRoot!==root3||workInProgressRootRenderLanes!==lanes){if(isDevToolsPresent){var memoizedUpdaters=root3.memoizedUpdaters;0<memoizedUpdaters.size&&(restorePendingUpdaters(root3,workInProgressRootRenderLanes),memoizedUpdaters.clear()),movePendingFibersToMemoized(root3,lanes)}workInProgressTransitions=null,workInProgressRootRenderTargetTime=now$1()+RENDER_TIMEOUT_MS,prepareFreshStack(root3,lanes)}else workInProgressRootIsPrerendering=checkIfRootIsPrerendering(root3,lanes);markRenderStarted(lanes);a:do try{if(workInProgressSuspendedReason!==NotSuspended&&workInProgress!==null)b:switch(lanes=workInProgress,memoizedUpdaters=workInProgressThrownValue,workInProgressSuspendedReason){case SuspendedOnError:workInProgressSuspendedReason=NotSuspended,workInProgressThrownValue=null,throwAndUnwindWorkLoop(root3,lanes,memoizedUpdaters,SuspendedOnError);break;case SuspendedOnData:case SuspendedOnAction:if(isThenableResolved(memoizedUpdaters)){workInProgressSuspendedReason=NotSuspended,workInProgressThrownValue=null,replaySuspendedUnitOfWork(lanes);break}lanes=function(){workInProgressSuspendedReason!==SuspendedOnData&&workInProgressSuspendedReason!==SuspendedOnAction||workInProgressRoot!==root3||(workInProgressSuspendedReason=SuspendedAndReadyToContinue),ensureRootIsScheduled(root3)},memoizedUpdaters.then(lanes,lanes);break a;case SuspendedOnImmediate:workInProgressSuspendedReason=SuspendedAndReadyToContinue;break a;case SuspendedOnInstance:workInProgressSuspendedReason=SuspendedOnInstanceAndReadyToContinue;break a;case SuspendedAndReadyToContinue:isThenableResolved(memoizedUpdaters)?(workInProgressSuspendedReason=NotSuspended,workInProgressThrownValue=null,replaySuspendedUnitOfWork(lanes)):(workInProgressSuspendedReason=NotSuspended,workInProgressThrownValue=null,throwAndUnwindWorkLoop(root3,lanes,memoizedUpdaters,SuspendedAndReadyToContinue));break;case SuspendedOnInstanceAndReadyToContinue:var resource=null;switch(workInProgress.tag){case 26:resource=workInProgress.memoizedState;case 5:case 27:var hostFiber=workInProgress;if(!resource||preloadResource(resource)){workInProgressSuspendedReason=NotSuspended,workInProgressThrownValue=null;var sibling=hostFiber.sibling;if(sibling!==null)workInProgress=sibling;else{var returnFiber=hostFiber.return;returnFiber!==null?(workInProgress=returnFiber,completeUnitOfWork(returnFiber)):workInProgress=null}break b}break;default:console.error("Unexpected type of fiber triggered a suspensey commit. This is a bug in React.")}workInProgressSuspendedReason=NotSuspended,workInProgressThrownValue=null,throwAndUnwindWorkLoop(root3,lanes,memoizedUpdaters,SuspendedOnInstanceAndReadyToContinue);break;case SuspendedOnDeprecatedThrowPromise:workInProgressSuspendedReason=NotSuspended,workInProgressThrownValue=null,throwAndUnwindWorkLoop(root3,lanes,memoizedUpdaters,SuspendedOnDeprecatedThrowPromise);break;case SuspendedOnHydration:resetWorkInProgressStack(),workInProgressRootExitStatus=RootSuspendedAtTheShell;break a;default:throw Error("Unexpected SuspendedReason. This is a bug in React.")}ReactSharedInternals.actQueue!==null?workLoopSync():workLoopConcurrentByScheduler();break}catch(thrownValue$9){handleThrow(root3,thrownValue$9)}while(!0);return resetContextDependencies(),ReactSharedInternals.H=prevDispatcher,ReactSharedInternals.A=prevAsyncDispatcher,executionContext=prevExecutionContext,workInProgress!==null?(injectedProfilingHooks!==null&&typeof injectedProfilingHooks.markRenderYielded=="function"&&injectedProfilingHooks.markRenderYielded(),RootInProgress):(markRenderStopped(),workInProgressRoot=null,workInProgressRootRenderLanes=0,finishQueueingConcurrentUpdates(),workInProgressRootExitStatus)}function workLoopConcurrentByScheduler(){for(;workInProgress!==null&&!shouldYield();)performUnitOfWork(workInProgress)}function performUnitOfWork(unitOfWork){var current2=unitOfWork.alternate;(unitOfWork.mode&ProfileMode)!==NoMode?(startProfilerTimer(unitOfWork),current2=runWithFiberInDEV(unitOfWork,beginWork,current2,unitOfWork,entangledRenderLanes),stopProfilerTimerIfRunningAndRecordDuration(unitOfWork)):current2=runWithFiberInDEV(unitOfWork,beginWork,current2,unitOfWork,entangledRenderLanes),unitOfWork.memoizedProps=unitOfWork.pendingProps,current2===null?completeUnitOfWork(unitOfWork):workInProgress=current2}function replaySuspendedUnitOfWork(unitOfWork){var next=runWithFiberInDEV(unitOfWork,replayBeginWork,unitOfWork);unitOfWork.memoizedProps=unitOfWork.pendingProps,next===null?completeUnitOfWork(unitOfWork):workInProgress=next}function replayBeginWork(unitOfWork){var current2=unitOfWork.alternate,isProfilingMode=(unitOfWork.mode&ProfileMode)!==NoMode;switch(isProfilingMode&&startProfilerTimer(unitOfWork),unitOfWork.tag){case 15:case 0:current2=replayFunctionComponent(current2,unitOfWork,unitOfWork.pendingProps,unitOfWork.type,void 0,workInProgressRootRenderLanes);break;case 11:current2=replayFunctionComponent(current2,unitOfWork,unitOfWork.pendingProps,unitOfWork.type.render,unitOfWork.ref,workInProgressRootRenderLanes);break;case 5:resetHooksOnUnwind(unitOfWork);default:unwindInterruptedWork(current2,unitOfWork),unitOfWork=workInProgress=resetWorkInProgress(unitOfWork,entangledRenderLanes),current2=beginWork(current2,unitOfWork,entangledRenderLanes)}return isProfilingMode&&stopProfilerTimerIfRunningAndRecordDuration(unitOfWork),current2}function throwAndUnwindWorkLoop(root3,unitOfWork,thrownValue,suspendedReason){resetContextDependencies(),resetHooksOnUnwind(unitOfWork),thenableState=null,thenableIndexCounter=0;var returnFiber=unitOfWork.return;try{if(throwException(root3,returnFiber,unitOfWork,thrownValue,workInProgressRootRenderLanes)){workInProgressRootExitStatus=RootFatalErrored,logUncaughtError(root3,createCapturedValueAtFiber(thrownValue,root3.current)),workInProgress=null;return}}catch(error){if(returnFiber!==null)throw workInProgress=returnFiber,error;workInProgressRootExitStatus=RootFatalErrored,logUncaughtError(root3,createCapturedValueAtFiber(thrownValue,root3.current)),workInProgress=null;return}unitOfWork.flags&32768?(isHydrating||suspendedReason===SuspendedOnError?root3=!0:workInProgressRootIsPrerendering||(workInProgressRootRenderLanes&536870912)!==0?root3=!1:(workInProgressRootDidSkipSuspendedSiblings=root3=!0,(suspendedReason===SuspendedOnData||suspendedReason===SuspendedOnAction||suspendedReason===SuspendedOnImmediate||suspendedReason===SuspendedOnDeprecatedThrowPromise)&&(suspendedReason=suspenseHandlerStackCursor.current,suspendedReason!==null&&suspendedReason.tag===13&&(suspendedReason.flags|=16384))),unwindUnitOfWork(unitOfWork,root3)):completeUnitOfWork(unitOfWork)}function completeUnitOfWork(unitOfWork){var completedWork=unitOfWork;do{if((completedWork.flags&32768)!==0){unwindUnitOfWork(completedWork,workInProgressRootDidSkipSuspendedSiblings);return}var current2=completedWork.alternate;if(unitOfWork=completedWork.return,startProfilerTimer(completedWork),current2=runWithFiberInDEV(completedWork,completeWork,current2,completedWork,entangledRenderLanes),(completedWork.mode&ProfileMode)!==NoMode&&stopProfilerTimerIfRunningAndRecordIncompleteDuration(completedWork),current2!==null){workInProgress=current2;return}if(completedWork=completedWork.sibling,completedWork!==null){workInProgress=completedWork;return}workInProgress=completedWork=unitOfWork}while(completedWork!==null);workInProgressRootExitStatus===RootInProgress&&(workInProgressRootExitStatus=RootCompleted)}function unwindUnitOfWork(unitOfWork,skipSiblings){do{var next=unwindWork(unitOfWork.alternate,unitOfWork);if(next!==null){next.flags&=32767,workInProgress=next;return}if((unitOfWork.mode&ProfileMode)!==NoMode){stopProfilerTimerIfRunningAndRecordIncompleteDuration(unitOfWork),next=unitOfWork.actualDuration;for(var child=unitOfWork.child;child!==null;)next+=child.actualDuration,child=child.sibling;unitOfWork.actualDuration=next}if(next=unitOfWork.return,next!==null&&(next.flags|=32768,next.subtreeFlags=0,next.deletions=null),!skipSiblings&&(unitOfWork=unitOfWork.sibling,unitOfWork!==null)){workInProgress=unitOfWork;return}workInProgress=unitOfWork=next}while(unitOfWork!==null);workInProgressRootExitStatus=RootSuspendedAtTheShell,workInProgress=null}function commitRoot(root3,finishedWork,lanes,recoverableErrors,transitions,didIncludeRenderPhaseUpdate,spawnedLane,updatedLanes,suspendedRetryLanes){root3.cancelPendingCommit=null;do flushPendingEffects();while(pendingEffectsStatus!==NO_PENDING_EFFECTS);if(ReactStrictModeWarnings.flushLegacyContextWarning(),ReactStrictModeWarnings.flushPendingUnsafeLifecycleWarnings(),(executionContext&(RenderContext|CommitContext))!==NoContext)throw Error("Should not already be working.");if(injectedProfilingHooks!==null&&typeof injectedProfilingHooks.markCommitStarted=="function"&&injectedProfilingHooks.markCommitStarted(lanes),finishedWork===null)markCommitStopped();else{if(lanes===0&&console.error("finishedLanes should not be empty during a commit. This is a bug in React."),finishedWork===root3.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(didIncludeRenderPhaseUpdate=finishedWork.lanes|finishedWork.childLanes,didIncludeRenderPhaseUpdate|=concurrentlyUpdatedLanes,markRootFinished(root3,lanes,didIncludeRenderPhaseUpdate,spawnedLane,updatedLanes,suspendedRetryLanes),root3===workInProgressRoot&&(workInProgress=workInProgressRoot=null,workInProgressRootRenderLanes=0),pendingFinishedWork=finishedWork,pendingEffectsRoot=root3,pendingEffectsLanes=lanes,pendingEffectsRemainingLanes=didIncludeRenderPhaseUpdate,pendingPassiveTransitions=transitions,pendingRecoverableErrors=recoverableErrors,(finishedWork.subtreeFlags&10256)!==0||(finishedWork.flags&10256)!==0?(root3.callbackNode=null,root3.callbackPriority=0,scheduleCallback$1(NormalPriority$1,function(){return flushPassiveEffects(),null})):(root3.callbackNode=null,root3.callbackPriority=0),commitStartTime=now(),recoverableErrors=(finishedWork.flags&13878)!==0,(finishedWork.subtreeFlags&13878)!==0||recoverableErrors){recoverableErrors=ReactSharedInternals.T,ReactSharedInternals.T=null,transitions=ReactDOMSharedInternals.p,ReactDOMSharedInternals.p=DiscreteEventPriority,spawnedLane=executionContext,executionContext|=CommitContext;try{commitBeforeMutationEffects(root3,finishedWork,lanes)}finally{executionContext=spawnedLane,ReactDOMSharedInternals.p=transitions,ReactSharedInternals.T=recoverableErrors}}pendingEffectsStatus=PENDING_MUTATION_PHASE,flushMutationEffects(),flushLayoutEffects(),flushSpawnedWork()}}function flushMutationEffects(){if(pendingEffectsStatus===PENDING_MUTATION_PHASE){pendingEffectsStatus=NO_PENDING_EFFECTS;var root3=pendingEffectsRoot,finishedWork=pendingFinishedWork,lanes=pendingEffectsLanes,rootMutationHasEffect=(finishedWork.flags&13878)!==0;if((finishedWork.subtreeFlags&13878)!==0||rootMutationHasEffect){rootMutationHasEffect=ReactSharedInternals.T,ReactSharedInternals.T=null;var previousPriority=ReactDOMSharedInternals.p;ReactDOMSharedInternals.p=DiscreteEventPriority;var prevExecutionContext=executionContext;executionContext|=CommitContext;try{inProgressLanes=lanes,inProgressRoot=root3,commitMutationEffectsOnFiber(finishedWork,root3),inProgressRoot=inProgressLanes=null,lanes=selectionInformation;var curFocusedElem=getActiveElementDeep(root3.containerInfo),priorFocusedElem=lanes.focusedElem,priorSelectionRange=lanes.selectionRange;if(curFocusedElem!==priorFocusedElem&&priorFocusedElem&&priorFocusedElem.ownerDocument&&containsNode(priorFocusedElem.ownerDocument.documentElement,priorFocusedElem)){if(priorSelectionRange!==null&&hasSelectionCapabilities(priorFocusedElem)){var start=priorSelectionRange.start,end=priorSelectionRange.end;if(end===void 0&&(end=start),"selectionStart"in priorFocusedElem)priorFocusedElem.selectionStart=start,priorFocusedElem.selectionEnd=Math.min(end,priorFocusedElem.value.length);else{var doc=priorFocusedElem.ownerDocument||document,win=doc&&doc.defaultView||window;if(win.getSelection){var selection=win.getSelection(),length=priorFocusedElem.textContent.length,start$jscomp$0=Math.min(priorSelectionRange.start,length),end$jscomp$0=priorSelectionRange.end===void 0?start$jscomp$0:Math.min(priorSelectionRange.end,length);!selection.extend&&start$jscomp$0>end$jscomp$0&&(curFocusedElem=end$jscomp$0,end$jscomp$0=start$jscomp$0,start$jscomp$0=curFocusedElem);var startMarker=getNodeForCharacterOffset(priorFocusedElem,start$jscomp$0),endMarker=getNodeForCharacterOffset(priorFocusedElem,end$jscomp$0);if(startMarker&&endMarker&&(selection.rangeCount!==1||selection.anchorNode!==startMarker.node||selection.anchorOffset!==startMarker.offset||selection.focusNode!==endMarker.node||selection.focusOffset!==endMarker.offset)){var range=doc.createRange();range.setStart(startMarker.node,startMarker.offset),selection.removeAllRanges(),start$jscomp$0>end$jscomp$0?(selection.addRange(range),selection.extend(endMarker.node,endMarker.offset)):(range.setEnd(endMarker.node,endMarker.offset),selection.addRange(range))}}}}for(doc=[],selection=priorFocusedElem;selection=selection.parentNode;)selection.nodeType===1&&doc.push({element:selection,left:selection.scrollLeft,top:selection.scrollTop});for(typeof priorFocusedElem.focus=="function"&&priorFocusedElem.focus(),priorFocusedElem=0;priorFocusedElem<doc.length;priorFocusedElem++){var info=doc[priorFocusedElem];info.element.scrollLeft=info.left,info.element.scrollTop=info.top}}_enabled=!!eventsEnabled,selectionInformation=eventsEnabled=null}finally{executionContext=prevExecutionContext,ReactDOMSharedInternals.p=previousPriority,ReactSharedInternals.T=rootMutationHasEffect}}root3.current=finishedWork,pendingEffectsStatus=PENDING_LAYOUT_PHASE}}function flushLayoutEffects(){if(pendingEffectsStatus===PENDING_LAYOUT_PHASE){pendingEffectsStatus=NO_PENDING_EFFECTS;var root3=pendingEffectsRoot,finishedWork=pendingFinishedWork,lanes=pendingEffectsLanes,rootHasLayoutEffect=(finishedWork.flags&8772)!==0;if((finishedWork.subtreeFlags&8772)!==0||rootHasLayoutEffect){rootHasLayoutEffect=ReactSharedInternals.T,ReactSharedInternals.T=null;var previousPriority=ReactDOMSharedInternals.p;ReactDOMSharedInternals.p=DiscreteEventPriority;var prevExecutionContext=executionContext;executionContext|=CommitContext;try{injectedProfilingHooks!==null&&typeof injectedProfilingHooks.markLayoutEffectsStarted=="function"&&injectedProfilingHooks.markLayoutEffectsStarted(lanes),inProgressLanes=lanes,inProgressRoot=root3,commitLayoutEffectOnFiber(root3,finishedWork.alternate,finishedWork),inProgressRoot=inProgressLanes=null,injectedProfilingHooks!==null&&typeof injectedProfilingHooks.markLayoutEffectsStopped=="function"&&injectedProfilingHooks.markLayoutEffectsStopped()}finally{executionContext=prevExecutionContext,ReactDOMSharedInternals.p=previousPriority,ReactSharedInternals.T=rootHasLayoutEffect}}pendingEffectsStatus=PENDING_AFTER_MUTATION_PHASE}}function flushSpawnedWork(){if(pendingEffectsStatus===PENDING_SPAWNED_WORK||pendingEffectsStatus===PENDING_AFTER_MUTATION_PHASE){pendingEffectsStatus=NO_PENDING_EFFECTS,requestPaint();var root3=pendingEffectsRoot,finishedWork=pendingFinishedWork,lanes=pendingEffectsLanes,recoverableErrors=pendingRecoverableErrors,rootDidHavePassiveEffects=(finishedWork.subtreeFlags&10256)!==0||(finishedWork.flags&10256)!==0;rootDidHavePassiveEffects?pendingEffectsStatus=PENDING_PASSIVE_PHASE:(pendingEffectsStatus=NO_PENDING_EFFECTS,pendingFinishedWork=pendingEffectsRoot=null,releaseRootPooledCache(root3,root3.pendingLanes),nestedPassiveUpdateCount=0,rootWithPassiveNestedUpdates=null);var remainingLanes=root3.pendingLanes;if(remainingLanes===0&&(legacyErrorBoundariesThatAlreadyFailed=null),rootDidHavePassiveEffects||commitDoubleInvokeEffectsInDEV(root3),rootDidHavePassiveEffects=lanesToEventPriority(lanes),finishedWork=finishedWork.stateNode,injectedHook&&typeof injectedHook.onCommitFiberRoot=="function")try{var didError=(finishedWork.current.flags&128)===128;switch(rootDidHavePassiveEffects){case DiscreteEventPriority:var schedulerPriority=ImmediatePriority;break;case ContinuousEventPriority:schedulerPriority=UserBlockingPriority;break;case DefaultEventPriority:schedulerPriority=NormalPriority$1;break;case IdleEventPriority:schedulerPriority=IdlePriority;break;default:schedulerPriority=NormalPriority$1}injectedHook.onCommitFiberRoot(rendererID,finishedWork,schedulerPriority,didError)}catch(err){hasLoggedError||(hasLoggedError=!0,console.error("React instrumentation encountered an error: %s",err))}if(isDevToolsPresent&&root3.memoizedUpdaters.clear(),onCommitRoot(),recoverableErrors!==null){didError=ReactSharedInternals.T,schedulerPriority=ReactDOMSharedInternals.p,ReactDOMSharedInternals.p=DiscreteEventPriority,ReactSharedInternals.T=null;try{var onRecoverableError=root3.onRecoverableError;for(finishedWork=0;finishedWork<recoverableErrors.length;finishedWork++){var recoverableError=recoverableErrors[finishedWork],errorInfo=makeErrorInfo(recoverableError.stack);runWithFiberInDEV(recoverableError.source,onRecoverableError,recoverableError.value,errorInfo)}}finally{ReactSharedInternals.T=didError,ReactDOMSharedInternals.p=schedulerPriority}}(pendingEffectsLanes&3)!==0&&flushPendingEffects(),ensureRootIsScheduled(root3),remainingLanes=root3.pendingLanes,(lanes&4194090)!==0&&(remainingLanes&42)!==0?(nestedUpdateScheduled=!0,root3===rootWithNestedUpdates?nestedUpdateCount++:(nestedUpdateCount=0,rootWithNestedUpdates=root3)):nestedUpdateCount=0,flushSyncWorkAcrossRoots_impl(0),markCommitStopped()}}function makeErrorInfo(componentStack){return componentStack={componentStack},Object.defineProperty(componentStack,"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.')}}),componentStack}function releaseRootPooledCache(root3,remainingLanes){(root3.pooledCacheLanes&=remainingLanes)===0&&(remainingLanes=root3.pooledCache,remainingLanes!=null&&(root3.pooledCache=null,releaseCache(remainingLanes)))}function flushPendingEffects(wasDelayedCommit){return flushMutationEffects(),flushLayoutEffects(),flushSpawnedWork(),flushPassiveEffects()}function flushPassiveEffects(){if(pendingEffectsStatus!==PENDING_PASSIVE_PHASE)return!1;var root3=pendingEffectsRoot,remainingLanes=pendingEffectsRemainingLanes;pendingEffectsRemainingLanes=0;var renderPriority=lanesToEventPriority(pendingEffectsLanes),priority=DefaultEventPriority>renderPriority?DefaultEventPriority:renderPriority;renderPriority=ReactSharedInternals.T;var previousPriority=ReactDOMSharedInternals.p;try{ReactDOMSharedInternals.p=priority,ReactSharedInternals.T=null,priority=pendingPassiveTransitions,pendingPassiveTransitions=null;var root$jscomp$0=pendingEffectsRoot,lanes=pendingEffectsLanes;if(pendingEffectsStatus=NO_PENDING_EFFECTS,pendingFinishedWork=pendingEffectsRoot=null,pendingEffectsLanes=0,(executionContext&(RenderContext|CommitContext))!==NoContext)throw Error("Cannot flush passive effects while already rendering.");isFlushingPassiveEffects=!0,didScheduleUpdateDuringPassiveEffects=!1,injectedProfilingHooks!==null&&typeof injectedProfilingHooks.markPassiveEffectsStarted=="function"&&injectedProfilingHooks.markPassiveEffectsStarted(lanes);var prevExecutionContext=executionContext;if(executionContext|=CommitContext,commitPassiveUnmountOnFiber(root$jscomp$0.current),commitPassiveMountOnFiber(root$jscomp$0,root$jscomp$0.current,lanes,priority),injectedProfilingHooks!==null&&typeof injectedProfilingHooks.markPassiveEffectsStopped=="function"&&injectedProfilingHooks.markPassiveEffectsStopped(),commitDoubleInvokeEffectsInDEV(root$jscomp$0),executionContext=prevExecutionContext,flushSyncWorkAcrossRoots_impl(0,!1),didScheduleUpdateDuringPassiveEffects?root$jscomp$0===rootWithPassiveNestedUpdates?nestedPassiveUpdateCount++:(nestedPassiveUpdateCount=0,rootWithPassiveNestedUpdates=root$jscomp$0):nestedPassiveUpdateCount=0,didScheduleUpdateDuringPassiveEffects=isFlushingPassiveEffects=!1,injectedHook&&typeof injectedHook.onPostCommitFiberRoot=="function")try{injectedHook.onPostCommitFiberRoot(rendererID,root$jscomp$0)}catch(err){hasLoggedError||(hasLoggedError=!0,console.error("React instrumentation encountered an error: %s",err))}var stateNode=root$jscomp$0.current.stateNode;return stateNode.effectDuration=0,stateNode.passiveEffectDuration=0,!0}finally{ReactDOMSharedInternals.p=previousPriority,ReactSharedInternals.T=renderPriority,releaseRootPooledCache(root3,remainingLanes)}}function captureCommitPhaseErrorOnRoot(rootFiber,sourceFiber,error){sourceFiber=createCapturedValueAtFiber(error,sourceFiber),sourceFiber=createRootErrorUpdate(rootFiber.stateNode,sourceFiber,2),rootFiber=enqueueUpdate(rootFiber,sourceFiber,2),rootFiber!==null&&(markRootUpdated$1(rootFiber,2),ensureRootIsScheduled(rootFiber))}function captureCommitPhaseError(sourceFiber,nearestMountedAncestor,error){if(isRunningInsertionEffect=!1,sourceFiber.tag===3)captureCommitPhaseErrorOnRoot(sourceFiber,sourceFiber,error);else{for(;nearestMountedAncestor!==null;){if(nearestMountedAncestor.tag===3){captureCommitPhaseErrorOnRoot(nearestMountedAncestor,sourceFiber,error);return}if(nearestMountedAncestor.tag===1){var instance=nearestMountedAncestor.stateNode;if(typeof nearestMountedAncestor.type.getDerivedStateFromError=="function"||typeof instance.componentDidCatch=="function"&&(legacyErrorBoundariesThatAlreadyFailed===null||!legacyErrorBoundariesThatAlreadyFailed.has(instance))){sourceFiber=createCapturedValueAtFiber(error,sourceFiber),error=createClassErrorUpdate(2),instance=enqueueUpdate(nearestMountedAncestor,error,2),instance!==null&&(initializeClassErrorUpdate(error,instance,nearestMountedAncestor,sourceFiber),markRootUpdated$1(instance,2),ensureRootIsScheduled(instance));return}}nearestMountedAncestor=nearestMountedAncestor.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.
|
|
223
|
+
|
|
224
|
+
Error message:
|
|
225
|
+
|
|
226
|
+
%s`,error)}}function attachPingListener(root3,wakeable,lanes){var pingCache=root3.pingCache;if(pingCache===null){pingCache=root3.pingCache=new PossiblyWeakMap;var threadIDs=new Set;pingCache.set(wakeable,threadIDs)}else threadIDs=pingCache.get(wakeable),threadIDs===void 0&&(threadIDs=new Set,pingCache.set(wakeable,threadIDs));threadIDs.has(lanes)||(workInProgressRootDidAttachPingListener=!0,threadIDs.add(lanes),pingCache=pingSuspendedRoot.bind(null,root3,wakeable,lanes),isDevToolsPresent&&restorePendingUpdaters(root3,lanes),wakeable.then(pingCache,pingCache))}function pingSuspendedRoot(root3,wakeable,pingedLanes){var pingCache=root3.pingCache;pingCache!==null&&pingCache.delete(wakeable),root3.pingedLanes|=root3.suspendedLanes&pingedLanes,root3.warmLanes&=~pingedLanes,isConcurrentActEnvironment()&&ReactSharedInternals.actQueue===null&&console.error(`A suspended resource finished loading inside a test, but the event was not wrapped in act(...).
|
|
227
|
+
|
|
228
|
+
When testing, code that resolves suspended data should be wrapped into act(...):
|
|
229
|
+
|
|
230
|
+
act(() => {
|
|
231
|
+
/* finish loading suspended data */
|
|
232
|
+
});
|
|
233
|
+
/* assert on the output */
|
|
234
|
+
|
|
235
|
+
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`),workInProgressRoot===root3&&(workInProgressRootRenderLanes&pingedLanes)===pingedLanes&&(workInProgressRootExitStatus===RootSuspendedWithDelay||workInProgressRootExitStatus===RootSuspended&&(workInProgressRootRenderLanes&62914560)===workInProgressRootRenderLanes&&now$1()-globalMostRecentFallbackTime<FALLBACK_THROTTLE_MS?(executionContext&RenderContext)===NoContext&&prepareFreshStack(root3,0):workInProgressRootPingedLanes|=pingedLanes,workInProgressSuspendedRetryLanes===workInProgressRootRenderLanes&&(workInProgressSuspendedRetryLanes=0)),ensureRootIsScheduled(root3)}function retryTimedOutBoundary(boundaryFiber,retryLane){retryLane===0&&(retryLane=claimNextRetryLane()),boundaryFiber=enqueueConcurrentRenderForLane(boundaryFiber,retryLane),boundaryFiber!==null&&(markRootUpdated$1(boundaryFiber,retryLane),ensureRootIsScheduled(boundaryFiber))}function retryDehydratedSuspenseBoundary(boundaryFiber){var suspenseState=boundaryFiber.memoizedState,retryLane=0;suspenseState!==null&&(retryLane=suspenseState.retryLane),retryTimedOutBoundary(boundaryFiber,retryLane)}function resolveRetryWakeable(boundaryFiber,wakeable){var retryLane=0;switch(boundaryFiber.tag){case 13:var retryCache=boundaryFiber.stateNode,suspenseState=boundaryFiber.memoizedState;suspenseState!==null&&(retryLane=suspenseState.retryLane);break;case 19:retryCache=boundaryFiber.stateNode;break;case 22:retryCache=boundaryFiber.stateNode._retryCache;break;default:throw Error("Pinged unknown suspense boundary type. This is probably a bug in React.")}retryCache!==null&&retryCache.delete(wakeable),retryTimedOutBoundary(boundaryFiber,retryLane)}function recursivelyTraverseAndDoubleInvokeEffectsInDEV(root$jscomp$0,parentFiber,isInStrictMode){if((parentFiber.subtreeFlags&67117056)!==0)for(parentFiber=parentFiber.child;parentFiber!==null;){var root3=root$jscomp$0,fiber=parentFiber,isStrictModeFiber=fiber.type===REACT_STRICT_MODE_TYPE;isStrictModeFiber=isInStrictMode||isStrictModeFiber,fiber.tag!==22?fiber.flags&67108864?isStrictModeFiber&&runWithFiberInDEV(fiber,doubleInvokeEffectsOnFiber,root3,fiber,(fiber.mode&NoStrictPassiveEffectsMode)===NoMode):recursivelyTraverseAndDoubleInvokeEffectsInDEV(root3,fiber,isStrictModeFiber):fiber.memoizedState===null&&(isStrictModeFiber&&fiber.flags&8192?runWithFiberInDEV(fiber,doubleInvokeEffectsOnFiber,root3,fiber):fiber.subtreeFlags&67108864&&runWithFiberInDEV(fiber,recursivelyTraverseAndDoubleInvokeEffectsInDEV,root3,fiber,isStrictModeFiber)),parentFiber=parentFiber.sibling}}function doubleInvokeEffectsOnFiber(root3,fiber){var shouldDoubleInvokePassiveEffects=2<arguments.length&&arguments[2]!==void 0?arguments[2]:!0;setIsStrictModeForDevtools(!0);try{disappearLayoutEffects(fiber),shouldDoubleInvokePassiveEffects&&disconnectPassiveEffect(fiber),reappearLayoutEffects(root3,fiber.alternate,fiber,!1),shouldDoubleInvokePassiveEffects&&reconnectPassiveEffects(root3,fiber,0,null,!1,0)}finally{setIsStrictModeForDevtools(!1)}}function commitDoubleInvokeEffectsInDEV(root3){var doubleInvokeEffects=!0;root3.current.mode&(StrictLegacyMode|StrictEffectsMode)||(doubleInvokeEffects=!1),recursivelyTraverseAndDoubleInvokeEffectsInDEV(root3,root3.current,doubleInvokeEffects)}function warnAboutUpdateOnNotYetMountedFiberInDEV(fiber){if((executionContext&RenderContext)===NoContext){var tag=fiber.tag;if(tag===3||tag===1||tag===0||tag===11||tag===14||tag===15){if(tag=getComponentNameFromFiber(fiber)||"ReactComponent",didWarnStateUpdateForNotYetMountedComponent!==null){if(didWarnStateUpdateForNotYetMountedComponent.has(tag))return;didWarnStateUpdateForNotYetMountedComponent.add(tag)}else didWarnStateUpdateForNotYetMountedComponent=new Set([tag]);runWithFiberInDEV(fiber,function(){console.error("Can't perform a React state update on a component that hasn't mounted yet. This indicates that you have a side-effect in your render function that asynchronously later calls tries to update the component. Move this work to useEffect instead.")})}}}function restorePendingUpdaters(root3,lanes){isDevToolsPresent&&root3.memoizedUpdaters.forEach(function(schedulingFiber){addFiberToLanesMap(root3,schedulingFiber,lanes)})}function scheduleCallback$1(priorityLevel,callback){var actQueue=ReactSharedInternals.actQueue;return actQueue!==null?(actQueue.push(callback),fakeActCallbackNode$1):scheduleCallback$3(priorityLevel,callback)}function warnIfUpdatesNotWrappedWithActDEV(fiber){isConcurrentActEnvironment()&&ReactSharedInternals.actQueue===null&&runWithFiberInDEV(fiber,function(){console.error(`An update to %s inside a test was not wrapped in act(...).
|
|
236
|
+
|
|
237
|
+
When testing, code that causes React state updates should be wrapped into act(...):
|
|
238
|
+
|
|
239
|
+
act(() => {
|
|
240
|
+
/* fire events that update state */
|
|
241
|
+
});
|
|
242
|
+
/* assert on the output */
|
|
243
|
+
|
|
244
|
+
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`,getComponentNameFromFiber(fiber))})}function ensureRootIsScheduled(root3){root3!==lastScheduledRoot&&root3.next===null&&(lastScheduledRoot===null?firstScheduledRoot=lastScheduledRoot=root3:lastScheduledRoot=lastScheduledRoot.next=root3),mightHavePendingSyncWork=!0,ReactSharedInternals.actQueue!==null?didScheduleMicrotask_act||(didScheduleMicrotask_act=!0,scheduleImmediateRootScheduleTask()):didScheduleMicrotask||(didScheduleMicrotask=!0,scheduleImmediateRootScheduleTask())}function flushSyncWorkAcrossRoots_impl(syncTransitionLanes,onlyLegacy){if(!isFlushingWork&&mightHavePendingSyncWork){isFlushingWork=!0;do for(var didPerformSomeWork=!1,root3=firstScheduledRoot;root3!==null;){if(syncTransitionLanes!==0){var pendingLanes=root3.pendingLanes;if(pendingLanes===0)var nextLanes=0;else{var suspendedLanes=root3.suspendedLanes,pingedLanes=root3.pingedLanes;nextLanes=(1<<31-clz32(42|syncTransitionLanes)+1)-1,nextLanes&=pendingLanes&~(suspendedLanes&~pingedLanes),nextLanes=nextLanes&201326741?nextLanes&201326741|1:nextLanes?nextLanes|2:0}nextLanes!==0&&(didPerformSomeWork=!0,performSyncWorkOnRoot(root3,nextLanes))}else nextLanes=workInProgressRootRenderLanes,nextLanes=getNextLanes(root3,root3===workInProgressRoot?nextLanes:0,root3.cancelPendingCommit!==null||root3.timeoutHandle!==noTimeout),(nextLanes&3)===0||checkIfRootIsPrerendering(root3,nextLanes)||(didPerformSomeWork=!0,performSyncWorkOnRoot(root3,nextLanes));root3=root3.next}while(didPerformSomeWork);isFlushingWork=!1}}function processRootScheduleInImmediateTask(){processRootScheduleInMicrotask()}function processRootScheduleInMicrotask(){mightHavePendingSyncWork=didScheduleMicrotask_act=didScheduleMicrotask=!1;var syncTransitionLanes=0;currentEventTransitionLane!==0&&(shouldAttemptEagerTransition()&&(syncTransitionLanes=currentEventTransitionLane),currentEventTransitionLane=0);for(var currentTime=now$1(),prev=null,root3=firstScheduledRoot;root3!==null;){var next=root3.next,nextLanes=scheduleTaskForRootDuringMicrotask(root3,currentTime);nextLanes===0?(root3.next=null,prev===null?firstScheduledRoot=next:prev.next=next,next===null&&(lastScheduledRoot=prev)):(prev=root3,(syncTransitionLanes!==0||(nextLanes&3)!==0)&&(mightHavePendingSyncWork=!0)),root3=next}flushSyncWorkAcrossRoots_impl(syncTransitionLanes)}function scheduleTaskForRootDuringMicrotask(root3,currentTime){for(var suspendedLanes=root3.suspendedLanes,pingedLanes=root3.pingedLanes,expirationTimes=root3.expirationTimes,lanes=root3.pendingLanes&-62914561;0<lanes;){var index=31-clz32(lanes),lane=1<<index,expirationTime=expirationTimes[index];expirationTime===-1?((lane&suspendedLanes)===0||(lane&pingedLanes)!==0)&&(expirationTimes[index]=computeExpirationTime(lane,currentTime)):expirationTime<=currentTime&&(root3.expiredLanes|=lane),lanes&=~lane}if(currentTime=workInProgressRoot,suspendedLanes=workInProgressRootRenderLanes,suspendedLanes=getNextLanes(root3,root3===currentTime?suspendedLanes:0,root3.cancelPendingCommit!==null||root3.timeoutHandle!==noTimeout),pingedLanes=root3.callbackNode,suspendedLanes===0||root3===currentTime&&(workInProgressSuspendedReason===SuspendedOnData||workInProgressSuspendedReason===SuspendedOnAction)||root3.cancelPendingCommit!==null)return pingedLanes!==null&&cancelCallback(pingedLanes),root3.callbackNode=null,root3.callbackPriority=0;if((suspendedLanes&3)===0||checkIfRootIsPrerendering(root3,suspendedLanes)){if(currentTime=suspendedLanes&-suspendedLanes,currentTime!==root3.callbackPriority||ReactSharedInternals.actQueue!==null&&pingedLanes!==fakeActCallbackNode)cancelCallback(pingedLanes);else return currentTime;switch(lanesToEventPriority(suspendedLanes)){case DiscreteEventPriority:case ContinuousEventPriority:suspendedLanes=UserBlockingPriority;break;case DefaultEventPriority:suspendedLanes=NormalPriority$1;break;case IdleEventPriority:suspendedLanes=IdlePriority;break;default:suspendedLanes=NormalPriority$1}return pingedLanes=performWorkOnRootViaSchedulerTask.bind(null,root3),ReactSharedInternals.actQueue!==null?(ReactSharedInternals.actQueue.push(pingedLanes),suspendedLanes=fakeActCallbackNode):suspendedLanes=scheduleCallback$3(suspendedLanes,pingedLanes),root3.callbackPriority=currentTime,root3.callbackNode=suspendedLanes,currentTime}return pingedLanes!==null&&cancelCallback(pingedLanes),root3.callbackPriority=2,root3.callbackNode=null,2}function performWorkOnRootViaSchedulerTask(root3,didTimeout){if(nestedUpdateScheduled=currentUpdateIsNested=!1,pendingEffectsStatus!==NO_PENDING_EFFECTS&&pendingEffectsStatus!==PENDING_PASSIVE_PHASE)return root3.callbackNode=null,root3.callbackPriority=0,null;var originalCallbackNode=root3.callbackNode;if(flushPendingEffects()&&root3.callbackNode!==originalCallbackNode)return null;var workInProgressRootRenderLanes$jscomp$0=workInProgressRootRenderLanes;return workInProgressRootRenderLanes$jscomp$0=getNextLanes(root3,root3===workInProgressRoot?workInProgressRootRenderLanes$jscomp$0:0,root3.cancelPendingCommit!==null||root3.timeoutHandle!==noTimeout),workInProgressRootRenderLanes$jscomp$0===0?null:(performWorkOnRoot(root3,workInProgressRootRenderLanes$jscomp$0,didTimeout),scheduleTaskForRootDuringMicrotask(root3,now$1()),root3.callbackNode!=null&&root3.callbackNode===originalCallbackNode?performWorkOnRootViaSchedulerTask.bind(null,root3):null)}function performSyncWorkOnRoot(root3,lanes){if(flushPendingEffects())return null;currentUpdateIsNested=nestedUpdateScheduled,nestedUpdateScheduled=!1,performWorkOnRoot(root3,lanes,!0)}function cancelCallback(callbackNode){callbackNode!==fakeActCallbackNode&&callbackNode!==null&&cancelCallback$1(callbackNode)}function scheduleImmediateRootScheduleTask(){ReactSharedInternals.actQueue!==null&&ReactSharedInternals.actQueue.push(function(){return processRootScheduleInMicrotask(),null}),scheduleMicrotask(function(){(executionContext&(RenderContext|CommitContext))!==NoContext?scheduleCallback$3(ImmediatePriority,processRootScheduleInImmediateTask):processRootScheduleInMicrotask()})}function requestTransitionLane(){return currentEventTransitionLane===0&&(currentEventTransitionLane=claimNextTransitionLane()),currentEventTransitionLane}function coerceFormActionProp(actionProp){return actionProp==null||typeof actionProp=="symbol"||typeof actionProp=="boolean"?null:typeof actionProp=="function"?actionProp:(checkAttributeStringCoercion(actionProp,"action"),sanitizeURL(""+actionProp))}function createFormDataWithSubmitter(form2,submitter){var temp=submitter.ownerDocument.createElement("input");return temp.name=submitter.name,temp.value=submitter.value,form2.id&&temp.setAttribute("form",form2.id),submitter.parentNode.insertBefore(temp,submitter),form2=new FormData(form2),temp.parentNode.removeChild(temp),form2}function extractEvents$1(dispatchQueue,domEventName,maybeTargetInst,nativeEvent,nativeEventTarget){if(domEventName==="submit"&&maybeTargetInst&&maybeTargetInst.stateNode===nativeEventTarget){var action=coerceFormActionProp((nativeEventTarget[internalPropsKey]||null).action),submitter=nativeEvent.submitter;submitter&&(domEventName=(domEventName=submitter[internalPropsKey]||null)?coerceFormActionProp(domEventName.formAction):submitter.getAttribute("formAction"),domEventName!==null&&(action=domEventName,submitter=null));var event=new SyntheticEvent("action","action",null,nativeEvent,nativeEventTarget);dispatchQueue.push({event,listeners:[{instance:null,listener:function(){if(nativeEvent.defaultPrevented){if(currentEventTransitionLane!==0){var formData=submitter?createFormDataWithSubmitter(nativeEventTarget,submitter):new FormData(nativeEventTarget),pendingState={pending:!0,data:formData,method:nativeEventTarget.method,action};Object.freeze(pendingState),startHostTransition(maybeTargetInst,pendingState,null,formData)}}else typeof action=="function"&&(event.preventDefault(),formData=submitter?createFormDataWithSubmitter(nativeEventTarget,submitter):new FormData(nativeEventTarget),pendingState={pending:!0,data:formData,method:nativeEventTarget.method,action},Object.freeze(pendingState),startHostTransition(maybeTargetInst,pendingState,action,formData))},currentTarget:nativeEventTarget}]})}}function executeDispatch(event,listener,currentTarget){event.currentTarget=currentTarget;try{listener(event)}catch(error){reportGlobalError(error)}event.currentTarget=null}function processDispatchQueue(dispatchQueue,eventSystemFlags){eventSystemFlags=(eventSystemFlags&4)!==0;for(var i=0;i<dispatchQueue.length;i++){var _dispatchQueue$i=dispatchQueue[i];a:{var previousInstance=void 0,event=_dispatchQueue$i.event;if(_dispatchQueue$i=_dispatchQueue$i.listeners,eventSystemFlags)for(var i$jscomp$0=_dispatchQueue$i.length-1;0<=i$jscomp$0;i$jscomp$0--){var _dispatchListeners$i=_dispatchQueue$i[i$jscomp$0],instance=_dispatchListeners$i.instance,currentTarget=_dispatchListeners$i.currentTarget;if(_dispatchListeners$i=_dispatchListeners$i.listener,instance!==previousInstance&&event.isPropagationStopped())break a;instance!==null?runWithFiberInDEV(instance,executeDispatch,event,_dispatchListeners$i,currentTarget):executeDispatch(event,_dispatchListeners$i,currentTarget),previousInstance=instance}else for(i$jscomp$0=0;i$jscomp$0<_dispatchQueue$i.length;i$jscomp$0++){if(_dispatchListeners$i=_dispatchQueue$i[i$jscomp$0],instance=_dispatchListeners$i.instance,currentTarget=_dispatchListeners$i.currentTarget,_dispatchListeners$i=_dispatchListeners$i.listener,instance!==previousInstance&&event.isPropagationStopped())break a;instance!==null?runWithFiberInDEV(instance,executeDispatch,event,_dispatchListeners$i,currentTarget):executeDispatch(event,_dispatchListeners$i,currentTarget),previousInstance=instance}}}}function listenToNonDelegatedEvent(domEventName,targetElement){nonDelegatedEvents.has(domEventName)||console.error('Did not expect a listenToNonDelegatedEvent() call for "%s". This is a bug in React. Please file an issue.',domEventName);var listenerSet=targetElement[internalEventHandlersKey];listenerSet===void 0&&(listenerSet=targetElement[internalEventHandlersKey]=new Set);var listenerSetKey=domEventName+"__bubble";listenerSet.has(listenerSetKey)||(addTrappedEventListener(targetElement,domEventName,2,!1),listenerSet.add(listenerSetKey))}function listenToNativeEvent(domEventName,isCapturePhaseListener,target){nonDelegatedEvents.has(domEventName)&&!isCapturePhaseListener&&console.error('Did not expect a listenToNativeEvent() call for "%s" in the bubble phase. This is a bug in React. Please file an issue.',domEventName);var eventSystemFlags=0;isCapturePhaseListener&&(eventSystemFlags|=4),addTrappedEventListener(target,domEventName,eventSystemFlags,isCapturePhaseListener)}function listenToAllSupportedEvents(rootContainerElement){if(!rootContainerElement[listeningMarker]){rootContainerElement[listeningMarker]=!0,allNativeEvents.forEach(function(domEventName){domEventName!=="selectionchange"&&(nonDelegatedEvents.has(domEventName)||listenToNativeEvent(domEventName,!1,rootContainerElement),listenToNativeEvent(domEventName,!0,rootContainerElement))});var ownerDocument=rootContainerElement.nodeType===9?rootContainerElement:rootContainerElement.ownerDocument;ownerDocument===null||ownerDocument[listeningMarker]||(ownerDocument[listeningMarker]=!0,listenToNativeEvent("selectionchange",!1,ownerDocument))}}function addTrappedEventListener(targetContainer,domEventName,eventSystemFlags,isCapturePhaseListener){switch(getEventPriority(domEventName)){case DiscreteEventPriority:var listenerWrapper=dispatchDiscreteEvent;break;case ContinuousEventPriority:listenerWrapper=dispatchContinuousEvent;break;default:listenerWrapper=dispatchEvent}eventSystemFlags=listenerWrapper.bind(null,domEventName,eventSystemFlags,targetContainer),listenerWrapper=void 0,!passiveBrowserEventsSupported||domEventName!=="touchstart"&&domEventName!=="touchmove"&&domEventName!=="wheel"||(listenerWrapper=!0),isCapturePhaseListener?listenerWrapper!==void 0?targetContainer.addEventListener(domEventName,eventSystemFlags,{capture:!0,passive:listenerWrapper}):targetContainer.addEventListener(domEventName,eventSystemFlags,!0):listenerWrapper!==void 0?targetContainer.addEventListener(domEventName,eventSystemFlags,{passive:listenerWrapper}):targetContainer.addEventListener(domEventName,eventSystemFlags,!1)}function dispatchEventForPluginEventSystem(domEventName,eventSystemFlags,nativeEvent,targetInst$jscomp$0,targetContainer){var ancestorInst=targetInst$jscomp$0;if((eventSystemFlags&1)===0&&(eventSystemFlags&2)===0&&targetInst$jscomp$0!==null)a:for(;;){if(targetInst$jscomp$0===null)return;var nodeTag=targetInst$jscomp$0.tag;if(nodeTag===3||nodeTag===4){var container=targetInst$jscomp$0.stateNode.containerInfo;if(container===targetContainer)break;if(nodeTag===4)for(nodeTag=targetInst$jscomp$0.return;nodeTag!==null;){var grandTag=nodeTag.tag;if((grandTag===3||grandTag===4)&&nodeTag.stateNode.containerInfo===targetContainer)return;nodeTag=nodeTag.return}for(;container!==null;){if(nodeTag=getClosestInstanceFromNode(container),nodeTag===null)return;if(grandTag=nodeTag.tag,grandTag===5||grandTag===6||grandTag===26||grandTag===27){targetInst$jscomp$0=ancestorInst=nodeTag;continue a}container=container.parentNode}}targetInst$jscomp$0=targetInst$jscomp$0.return}batchedUpdates$1(function(){var targetInst=ancestorInst,nativeEventTarget=getEventTarget(nativeEvent),dispatchQueue=[];a:{var reactName=topLevelEventsToReactNames.get(domEventName);if(reactName!==void 0){var SyntheticEventCtor=SyntheticEvent,reactEventType=domEventName;switch(domEventName){case"keypress":if(getEventCharCode(nativeEvent)===0)break a;case"keydown":case"keyup":SyntheticEventCtor=SyntheticKeyboardEvent;break;case"focusin":reactEventType="focus",SyntheticEventCtor=SyntheticFocusEvent;break;case"focusout":reactEventType="blur",SyntheticEventCtor=SyntheticFocusEvent;break;case"beforeblur":case"afterblur":SyntheticEventCtor=SyntheticFocusEvent;break;case"click":if(nativeEvent.button===2)break a;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":SyntheticEventCtor=SyntheticMouseEvent;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":SyntheticEventCtor=SyntheticDragEvent;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":SyntheticEventCtor=SyntheticTouchEvent;break;case ANIMATION_END:case ANIMATION_ITERATION:case ANIMATION_START:SyntheticEventCtor=SyntheticAnimationEvent;break;case TRANSITION_END:SyntheticEventCtor=SyntheticTransitionEvent;break;case"scroll":case"scrollend":SyntheticEventCtor=SyntheticUIEvent;break;case"wheel":SyntheticEventCtor=SyntheticWheelEvent;break;case"copy":case"cut":case"paste":SyntheticEventCtor=SyntheticClipboardEvent;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":SyntheticEventCtor=SyntheticPointerEvent;break;case"toggle":case"beforetoggle":SyntheticEventCtor=SyntheticToggleEvent}var inCapturePhase=(eventSystemFlags&4)!==0,accumulateTargetOnly=!inCapturePhase&&(domEventName==="scroll"||domEventName==="scrollend"),reactEventName=inCapturePhase?reactName!==null?reactName+"Capture":null:reactName;inCapturePhase=[];for(var instance=targetInst,lastHostComponent;instance!==null;){var _instance2=instance;if(lastHostComponent=_instance2.stateNode,_instance2=_instance2.tag,_instance2!==5&&_instance2!==26&&_instance2!==27||lastHostComponent===null||reactEventName===null||(_instance2=getListener(instance,reactEventName),_instance2!=null&&inCapturePhase.push(createDispatchListener(instance,_instance2,lastHostComponent))),accumulateTargetOnly)break;instance=instance.return}0<inCapturePhase.length&&(reactName=new SyntheticEventCtor(reactName,reactEventType,null,nativeEvent,nativeEventTarget),dispatchQueue.push({event:reactName,listeners:inCapturePhase}))}}if((eventSystemFlags&7)===0){a:{if(reactName=domEventName==="mouseover"||domEventName==="pointerover",SyntheticEventCtor=domEventName==="mouseout"||domEventName==="pointerout",reactName&&nativeEvent!==currentReplayingEvent&&(reactEventType=nativeEvent.relatedTarget||nativeEvent.fromElement)&&(getClosestInstanceFromNode(reactEventType)||reactEventType[internalContainerInstanceKey]))break a;if((SyntheticEventCtor||reactName)&&(reactName=nativeEventTarget.window===nativeEventTarget?nativeEventTarget:(reactName=nativeEventTarget.ownerDocument)?reactName.defaultView||reactName.parentWindow:window,SyntheticEventCtor?(reactEventType=nativeEvent.relatedTarget||nativeEvent.toElement,SyntheticEventCtor=targetInst,reactEventType=reactEventType?getClosestInstanceFromNode(reactEventType):null,reactEventType!==null&&(accumulateTargetOnly=getNearestMountedFiber(reactEventType),inCapturePhase=reactEventType.tag,reactEventType!==accumulateTargetOnly||inCapturePhase!==5&&inCapturePhase!==27&&inCapturePhase!==6)&&(reactEventType=null)):(SyntheticEventCtor=null,reactEventType=targetInst),SyntheticEventCtor!==reactEventType)){if(inCapturePhase=SyntheticMouseEvent,_instance2="onMouseLeave",reactEventName="onMouseEnter",instance="mouse",(domEventName==="pointerout"||domEventName==="pointerover")&&(inCapturePhase=SyntheticPointerEvent,_instance2="onPointerLeave",reactEventName="onPointerEnter",instance="pointer"),accumulateTargetOnly=SyntheticEventCtor==null?reactName:getNodeFromInstance(SyntheticEventCtor),lastHostComponent=reactEventType==null?reactName:getNodeFromInstance(reactEventType),reactName=new inCapturePhase(_instance2,instance+"leave",SyntheticEventCtor,nativeEvent,nativeEventTarget),reactName.target=accumulateTargetOnly,reactName.relatedTarget=lastHostComponent,_instance2=null,getClosestInstanceFromNode(nativeEventTarget)===targetInst&&(inCapturePhase=new inCapturePhase(reactEventName,instance+"enter",reactEventType,nativeEvent,nativeEventTarget),inCapturePhase.target=lastHostComponent,inCapturePhase.relatedTarget=accumulateTargetOnly,_instance2=inCapturePhase),accumulateTargetOnly=_instance2,SyntheticEventCtor&&reactEventType)b:{for(inCapturePhase=SyntheticEventCtor,reactEventName=reactEventType,instance=0,lastHostComponent=inCapturePhase;lastHostComponent;lastHostComponent=getParent(lastHostComponent))instance++;for(lastHostComponent=0,_instance2=reactEventName;_instance2;_instance2=getParent(_instance2))lastHostComponent++;for(;0<instance-lastHostComponent;)inCapturePhase=getParent(inCapturePhase),instance--;for(;0<lastHostComponent-instance;)reactEventName=getParent(reactEventName),lastHostComponent--;for(;instance--;){if(inCapturePhase===reactEventName||reactEventName!==null&&inCapturePhase===reactEventName.alternate)break b;inCapturePhase=getParent(inCapturePhase),reactEventName=getParent(reactEventName)}inCapturePhase=null}else inCapturePhase=null;SyntheticEventCtor!==null&&accumulateEnterLeaveListenersForEvent(dispatchQueue,reactName,SyntheticEventCtor,inCapturePhase,!1),reactEventType!==null&&accumulateTargetOnly!==null&&accumulateEnterLeaveListenersForEvent(dispatchQueue,accumulateTargetOnly,reactEventType,inCapturePhase,!0)}}a:{if(reactName=targetInst?getNodeFromInstance(targetInst):window,SyntheticEventCtor=reactName.nodeName&&reactName.nodeName.toLowerCase(),SyntheticEventCtor==="select"||SyntheticEventCtor==="input"&&reactName.type==="file")var getTargetInstFunc=getTargetInstForChangeEvent;else if(isTextInputElement(reactName))if(isInputEventSupported)getTargetInstFunc=getTargetInstForInputOrChangeEvent;else{getTargetInstFunc=getTargetInstForInputEventPolyfill;var handleEventFunc=handleEventsForInputEventPolyfill}else SyntheticEventCtor=reactName.nodeName,!SyntheticEventCtor||SyntheticEventCtor.toLowerCase()!=="input"||reactName.type!=="checkbox"&&reactName.type!=="radio"?targetInst&&isCustomElement(targetInst.elementType)&&(getTargetInstFunc=getTargetInstForChangeEvent):getTargetInstFunc=getTargetInstForClickEvent;if(getTargetInstFunc&&(getTargetInstFunc=getTargetInstFunc(domEventName,targetInst))){createAndAccumulateChangeEvent(dispatchQueue,getTargetInstFunc,nativeEvent,nativeEventTarget);break a}handleEventFunc&&handleEventFunc(domEventName,reactName,targetInst),domEventName==="focusout"&&targetInst&&reactName.type==="number"&&targetInst.memoizedProps.value!=null&&setDefaultValue(reactName,"number",reactName.value)}switch(handleEventFunc=targetInst?getNodeFromInstance(targetInst):window,domEventName){case"focusin":(isTextInputElement(handleEventFunc)||handleEventFunc.contentEditable==="true")&&(activeElement=handleEventFunc,activeElementInst=targetInst,lastSelection=null);break;case"focusout":lastSelection=activeElementInst=activeElement=null;break;case"mousedown":mouseDown=!0;break;case"contextmenu":case"mouseup":case"dragend":mouseDown=!1,constructSelectEvent(dispatchQueue,nativeEvent,nativeEventTarget);break;case"selectionchange":if(skipSelectionChangeEvent)break;case"keydown":case"keyup":constructSelectEvent(dispatchQueue,nativeEvent,nativeEventTarget)}var fallbackData;if(canUseCompositionEvent)b:{switch(domEventName){case"compositionstart":var eventType="onCompositionStart";break b;case"compositionend":eventType="onCompositionEnd";break b;case"compositionupdate":eventType="onCompositionUpdate";break b}eventType=void 0}else isComposing?isFallbackCompositionEnd(domEventName,nativeEvent)&&(eventType="onCompositionEnd"):domEventName==="keydown"&&nativeEvent.keyCode===START_KEYCODE&&(eventType="onCompositionStart");eventType&&(useFallbackCompositionData&&nativeEvent.locale!=="ko"&&(isComposing||eventType!=="onCompositionStart"?eventType==="onCompositionEnd"&&isComposing&&(fallbackData=getData()):(root2=nativeEventTarget,startText="value"in root2?root2.value:root2.textContent,isComposing=!0)),handleEventFunc=accumulateTwoPhaseListeners(targetInst,eventType),0<handleEventFunc.length&&(eventType=new SyntheticCompositionEvent(eventType,domEventName,null,nativeEvent,nativeEventTarget),dispatchQueue.push({event:eventType,listeners:handleEventFunc}),fallbackData?eventType.data=fallbackData:(fallbackData=getDataFromCustomEvent(nativeEvent),fallbackData!==null&&(eventType.data=fallbackData)))),(fallbackData=canUseTextInputEvent?getNativeBeforeInputChars(domEventName,nativeEvent):getFallbackBeforeInputChars(domEventName,nativeEvent))&&(eventType=accumulateTwoPhaseListeners(targetInst,"onBeforeInput"),0<eventType.length&&(handleEventFunc=new SyntheticInputEvent("onBeforeInput","beforeinput",null,nativeEvent,nativeEventTarget),dispatchQueue.push({event:handleEventFunc,listeners:eventType}),handleEventFunc.data=fallbackData)),extractEvents$1(dispatchQueue,domEventName,targetInst,nativeEvent,nativeEventTarget)}processDispatchQueue(dispatchQueue,eventSystemFlags)})}function createDispatchListener(instance,listener,currentTarget){return{instance,listener,currentTarget}}function accumulateTwoPhaseListeners(targetFiber,reactName){for(var captureName=reactName+"Capture",listeners=[];targetFiber!==null;){var _instance3=targetFiber,stateNode=_instance3.stateNode;if(_instance3=_instance3.tag,_instance3!==5&&_instance3!==26&&_instance3!==27||stateNode===null||(_instance3=getListener(targetFiber,captureName),_instance3!=null&&listeners.unshift(createDispatchListener(targetFiber,_instance3,stateNode)),_instance3=getListener(targetFiber,reactName),_instance3!=null&&listeners.push(createDispatchListener(targetFiber,_instance3,stateNode))),targetFiber.tag===3)return listeners;targetFiber=targetFiber.return}return[]}function getParent(inst){if(inst===null)return null;do inst=inst.return;while(inst&&inst.tag!==5&&inst.tag!==27);return inst||null}function accumulateEnterLeaveListenersForEvent(dispatchQueue,event,target,common2,inCapturePhase){for(var registrationName=event._reactName,listeners=[];target!==null&&target!==common2;){var _instance4=target,alternate=_instance4.alternate,stateNode=_instance4.stateNode;if(_instance4=_instance4.tag,alternate!==null&&alternate===common2)break;_instance4!==5&&_instance4!==26&&_instance4!==27||stateNode===null||(alternate=stateNode,inCapturePhase?(stateNode=getListener(target,registrationName),stateNode!=null&&listeners.unshift(createDispatchListener(target,stateNode,alternate))):inCapturePhase||(stateNode=getListener(target,registrationName),stateNode!=null&&listeners.push(createDispatchListener(target,stateNode,alternate)))),target=target.return}listeners.length!==0&&dispatchQueue.push({event,listeners})}function validatePropertiesInDevelopment(type,props){validateProperties$2(type,props),type!=="input"&&type!=="textarea"&&type!=="select"||props==null||props.value!==null||didWarnValueNull||(didWarnValueNull=!0,type==="select"&&props.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.",type):console.error("`value` prop on `%s` should not be null. Consider using an empty string to clear the component or `undefined` for uncontrolled components.",type));var eventRegistry={registrationNameDependencies,possibleRegistrationNames};isCustomElement(type)||typeof props.is=="string"||warnUnknownProperties(type,props,eventRegistry),props.contentEditable&&!props.suppressContentEditableWarning&&props.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 warnForPropDifference(propName,serverValue,clientValue,serverDifferences){serverValue!==clientValue&&(clientValue=normalizeMarkupForTextOrAttribute(clientValue),normalizeMarkupForTextOrAttribute(serverValue)!==clientValue&&(serverDifferences[propName]=serverValue))}function warnForExtraAttributes(domElement,attributeNames,serverDifferences){attributeNames.forEach(function(attributeName){serverDifferences[getPropNameFromAttributeName(attributeName)]=attributeName==="style"?getStylesObjectFromElement(domElement):domElement.getAttribute(attributeName)})}function warnForInvalidEventListener(registrationName,listener){listener===!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.",registrationName,registrationName,registrationName):console.error("Expected `%s` listener to be a function, instead got a value of `%s` type.",registrationName,typeof listener)}function normalizeHTML(parent,html){return parent=parent.namespaceURI===MATH_NAMESPACE||parent.namespaceURI===SVG_NAMESPACE?parent.ownerDocument.createElementNS(parent.namespaceURI,parent.tagName):parent.ownerDocument.createElement(parent.tagName),parent.innerHTML=html,parent.innerHTML}function normalizeMarkupForTextOrAttribute(markup){return willCoercionThrow(markup)&&(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.",typeName(markup)),testStringCoercion(markup)),(typeof markup=="string"?markup:""+markup).replace(NORMALIZE_NEWLINES_REGEX,`
|
|
245
|
+
`).replace(NORMALIZE_NULL_AND_REPLACEMENT_REGEX,"")}function checkForUnmatchedText(serverText,clientText){return clientText=normalizeMarkupForTextOrAttribute(clientText),normalizeMarkupForTextOrAttribute(serverText)===clientText}function noop$1(){}function setProp(domElement,tag,key,value,props,prevValue){switch(key){case"children":typeof value=="string"?(validateTextNesting(value,tag,!1),tag==="body"||tag==="textarea"&&value===""||setTextContent(domElement,value)):(typeof value=="number"||typeof value=="bigint")&&(validateTextNesting(""+value,tag,!1),tag!=="body"&&setTextContent(domElement,""+value));break;case"className":setValueForKnownAttribute(domElement,"class",value);break;case"tabIndex":setValueForKnownAttribute(domElement,"tabindex",value);break;case"dir":case"role":case"viewBox":case"width":case"height":setValueForKnownAttribute(domElement,key,value);break;case"style":setValueForStyles(domElement,value,prevValue);break;case"data":if(tag!=="object"){setValueForKnownAttribute(domElement,"data",value);break}case"src":case"href":if(value===""&&(tag!=="a"||key!=="href")){console.error(key==="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.',key,key),domElement.removeAttribute(key);break}if(value==null||typeof value=="function"||typeof value=="symbol"||typeof value=="boolean"){domElement.removeAttribute(key);break}checkAttributeStringCoercion(value,key),value=sanitizeURL(""+value),domElement.setAttribute(key,value);break;case"action":case"formAction":if(value!=null&&(tag==="form"?key==="formAction"?console.error("You can only pass the formAction prop to <input> or <button>. Use the action prop on <form>."):typeof value=="function"&&(props.encType==null&&props.method==null||didWarnFormActionMethod||(didWarnFormActionMethod=!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.")),props.target==null||didWarnFormActionTarget||(didWarnFormActionTarget=!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."))):tag==="input"||tag==="button"?key==="action"?console.error("You can only pass the action prop to <form>. Use the formAction prop on <input> or <button>."):tag!=="input"||props.type==="submit"||props.type==="image"||didWarnFormActionType?tag!=="button"||props.type==null||props.type==="submit"||didWarnFormActionType?typeof value=="function"&&(props.name==null||didWarnFormActionName||(didWarnFormActionName=!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.')),props.formEncType==null&&props.formMethod==null||didWarnFormActionMethod||(didWarnFormActionMethod=!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.")),props.formTarget==null||didWarnFormActionTarget||(didWarnFormActionTarget=!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."))):(didWarnFormActionType=!0,console.error('A button can only specify a formAction along with type="submit" or no type.')):(didWarnFormActionType=!0,console.error('An input can only specify a formAction along with type="submit" or type="image".')):console.error(key==="action"?"You can only pass the action prop to <form>.":"You can only pass the formAction prop to <input> or <button>.")),typeof value=="function"){domElement.setAttribute(key,"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 prevValue=="function"&&(key==="formAction"?(tag!=="input"&&setProp(domElement,tag,"name",props.name,props,null),setProp(domElement,tag,"formEncType",props.formEncType,props,null),setProp(domElement,tag,"formMethod",props.formMethod,props,null),setProp(domElement,tag,"formTarget",props.formTarget,props,null)):(setProp(domElement,tag,"encType",props.encType,props,null),setProp(domElement,tag,"method",props.method,props,null),setProp(domElement,tag,"target",props.target,props,null)));if(value==null||typeof value=="symbol"||typeof value=="boolean"){domElement.removeAttribute(key);break}checkAttributeStringCoercion(value,key),value=sanitizeURL(""+value),domElement.setAttribute(key,value);break;case"onClick":value!=null&&(typeof value!="function"&&warnForInvalidEventListener(key,value),domElement.onclick=noop$1);break;case"onScroll":value!=null&&(typeof value!="function"&&warnForInvalidEventListener(key,value),listenToNonDelegatedEvent("scroll",domElement));break;case"onScrollEnd":value!=null&&(typeof value!="function"&&warnForInvalidEventListener(key,value),listenToNonDelegatedEvent("scrollend",domElement));break;case"dangerouslySetInnerHTML":if(value!=null){if(typeof value!="object"||!("__html"in value))throw Error("`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. Please visit https://react.dev/link/dangerously-set-inner-html for more information.");if(key=value.__html,key!=null){if(props.children!=null)throw Error("Can only set one of `children` or `props.dangerouslySetInnerHTML`.");domElement.innerHTML=key}}break;case"multiple":domElement.multiple=value&&typeof value!="function"&&typeof value!="symbol";break;case"muted":domElement.muted=value&&typeof value!="function"&&typeof value!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(value==null||typeof value=="function"||typeof value=="boolean"||typeof value=="symbol"){domElement.removeAttribute("xlink:href");break}checkAttributeStringCoercion(value,key),key=sanitizeURL(""+value),domElement.setAttributeNS(xlinkNamespace,"xlink:href",key);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":value!=null&&typeof value!="function"&&typeof value!="symbol"?(checkAttributeStringCoercion(value,key),domElement.setAttribute(key,""+value)):domElement.removeAttribute(key);break;case"inert":value!==""||didWarnForNewBooleanPropsWithEmptyValue[key]||(didWarnForNewBooleanPropsWithEmptyValue[key]=!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.",key));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":value&&typeof value!="function"&&typeof value!="symbol"?domElement.setAttribute(key,""):domElement.removeAttribute(key);break;case"capture":case"download":value===!0?domElement.setAttribute(key,""):value!==!1&&value!=null&&typeof value!="function"&&typeof value!="symbol"?(checkAttributeStringCoercion(value,key),domElement.setAttribute(key,value)):domElement.removeAttribute(key);break;case"cols":case"rows":case"size":case"span":value!=null&&typeof value!="function"&&typeof value!="symbol"&&!isNaN(value)&&1<=value?(checkAttributeStringCoercion(value,key),domElement.setAttribute(key,value)):domElement.removeAttribute(key);break;case"rowSpan":case"start":value==null||typeof value=="function"||typeof value=="symbol"||isNaN(value)?domElement.removeAttribute(key):(checkAttributeStringCoercion(value,key),domElement.setAttribute(key,value));break;case"popover":listenToNonDelegatedEvent("beforetoggle",domElement),listenToNonDelegatedEvent("toggle",domElement),setValueForAttribute(domElement,"popover",value);break;case"xlinkActuate":setValueForNamespacedAttribute(domElement,xlinkNamespace,"xlink:actuate",value);break;case"xlinkArcrole":setValueForNamespacedAttribute(domElement,xlinkNamespace,"xlink:arcrole",value);break;case"xlinkRole":setValueForNamespacedAttribute(domElement,xlinkNamespace,"xlink:role",value);break;case"xlinkShow":setValueForNamespacedAttribute(domElement,xlinkNamespace,"xlink:show",value);break;case"xlinkTitle":setValueForNamespacedAttribute(domElement,xlinkNamespace,"xlink:title",value);break;case"xlinkType":setValueForNamespacedAttribute(domElement,xlinkNamespace,"xlink:type",value);break;case"xmlBase":setValueForNamespacedAttribute(domElement,xmlNamespace,"xml:base",value);break;case"xmlLang":setValueForNamespacedAttribute(domElement,xmlNamespace,"xml:lang",value);break;case"xmlSpace":setValueForNamespacedAttribute(domElement,xmlNamespace,"xml:space",value);break;case"is":prevValue!=null&&console.error('Cannot update the "is" prop after it has been initialized.'),setValueForAttribute(domElement,"is",value);break;case"innerText":case"textContent":break;case"popoverTarget":didWarnPopoverTargetObject||value==null||typeof value!="object"||(didWarnPopoverTargetObject=!0,console.error("The `popoverTarget` prop expects the ID of an Element as a string. Received %s instead.",value));default:!(2<key.length)||key[0]!=="o"&&key[0]!=="O"||key[1]!=="n"&&key[1]!=="N"?(key=getAttributeAlias(key),setValueForAttribute(domElement,key,value)):registrationNameDependencies.hasOwnProperty(key)&&value!=null&&typeof value!="function"&&warnForInvalidEventListener(key,value)}}function setPropOnCustomElement(domElement,tag,key,value,props,prevValue){switch(key){case"style":setValueForStyles(domElement,value,prevValue);break;case"dangerouslySetInnerHTML":if(value!=null){if(typeof value!="object"||!("__html"in value))throw Error("`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. Please visit https://react.dev/link/dangerously-set-inner-html for more information.");if(key=value.__html,key!=null){if(props.children!=null)throw Error("Can only set one of `children` or `props.dangerouslySetInnerHTML`.");domElement.innerHTML=key}}break;case"children":typeof value=="string"?setTextContent(domElement,value):(typeof value=="number"||typeof value=="bigint")&&setTextContent(domElement,""+value);break;case"onScroll":value!=null&&(typeof value!="function"&&warnForInvalidEventListener(key,value),listenToNonDelegatedEvent("scroll",domElement));break;case"onScrollEnd":value!=null&&(typeof value!="function"&&warnForInvalidEventListener(key,value),listenToNonDelegatedEvent("scrollend",domElement));break;case"onClick":value!=null&&(typeof value!="function"&&warnForInvalidEventListener(key,value),domElement.onclick=noop$1);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(registrationNameDependencies.hasOwnProperty(key))value!=null&&typeof value!="function"&&warnForInvalidEventListener(key,value);else a:{if(key[0]==="o"&&key[1]==="n"&&(props=key.endsWith("Capture"),tag=key.slice(2,props?key.length-7:void 0),prevValue=domElement[internalPropsKey]||null,prevValue=prevValue!=null?prevValue[key]:null,typeof prevValue=="function"&&domElement.removeEventListener(tag,prevValue,props),typeof value=="function")){typeof prevValue!="function"&&prevValue!==null&&(key in domElement?domElement[key]=null:domElement.hasAttribute(key)&&domElement.removeAttribute(key)),domElement.addEventListener(tag,value,props);break a}key in domElement?domElement[key]=value:value===!0?domElement.setAttribute(key,""):setValueForAttribute(domElement,key,value)}}}function setInitialProperties(domElement,tag,props){switch(validatePropertiesInDevelopment(tag,props),tag){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":listenToNonDelegatedEvent("error",domElement),listenToNonDelegatedEvent("load",domElement);var hasSrc=!1,hasSrcSet=!1,propKey;for(propKey in props)if(props.hasOwnProperty(propKey)){var propValue=props[propKey];if(propValue!=null)switch(propKey){case"src":hasSrc=!0;break;case"srcSet":hasSrcSet=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(tag+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");default:setProp(domElement,tag,propKey,propValue,props,null)}}hasSrcSet&&setProp(domElement,tag,"srcSet",props.srcSet,props,null),hasSrc&&setProp(domElement,tag,"src",props.src,props,null);return;case"input":checkControlledValueProps("input",props),listenToNonDelegatedEvent("invalid",domElement);var defaultValue=propKey=propValue=hasSrcSet=null,checked=null,defaultChecked=null;for(hasSrc in props)if(props.hasOwnProperty(hasSrc)){var _propValue=props[hasSrc];if(_propValue!=null)switch(hasSrc){case"name":hasSrcSet=_propValue;break;case"type":propValue=_propValue;break;case"checked":checked=_propValue;break;case"defaultChecked":defaultChecked=_propValue;break;case"value":propKey=_propValue;break;case"defaultValue":defaultValue=_propValue;break;case"children":case"dangerouslySetInnerHTML":if(_propValue!=null)throw Error(tag+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");break;default:setProp(domElement,tag,hasSrc,_propValue,props,null)}}validateInputProps(domElement,props),initInput(domElement,propKey,defaultValue,checked,defaultChecked,propValue,hasSrcSet,!1),track(domElement);return;case"select":checkControlledValueProps("select",props),listenToNonDelegatedEvent("invalid",domElement),hasSrc=propValue=propKey=null;for(hasSrcSet in props)if(props.hasOwnProperty(hasSrcSet)&&(defaultValue=props[hasSrcSet],defaultValue!=null))switch(hasSrcSet){case"value":propKey=defaultValue;break;case"defaultValue":propValue=defaultValue;break;case"multiple":hasSrc=defaultValue;default:setProp(domElement,tag,hasSrcSet,defaultValue,props,null)}validateSelectProps(domElement,props),tag=propKey,props=propValue,domElement.multiple=!!hasSrc,tag!=null?updateOptions(domElement,!!hasSrc,tag,!1):props!=null&&updateOptions(domElement,!!hasSrc,props,!0);return;case"textarea":checkControlledValueProps("textarea",props),listenToNonDelegatedEvent("invalid",domElement),propKey=hasSrcSet=hasSrc=null;for(propValue in props)if(props.hasOwnProperty(propValue)&&(defaultValue=props[propValue],defaultValue!=null))switch(propValue){case"value":hasSrc=defaultValue;break;case"defaultValue":hasSrcSet=defaultValue;break;case"children":propKey=defaultValue;break;case"dangerouslySetInnerHTML":if(defaultValue!=null)throw Error("`dangerouslySetInnerHTML` does not make sense on <textarea>.");break;default:setProp(domElement,tag,propValue,defaultValue,props,null)}validateTextareaProps(domElement,props),initTextarea(domElement,hasSrc,hasSrcSet,propKey),track(domElement);return;case"option":validateOptionProps(domElement,props);for(checked in props)if(props.hasOwnProperty(checked)&&(hasSrc=props[checked],hasSrc!=null))switch(checked){case"selected":domElement.selected=hasSrc&&typeof hasSrc!="function"&&typeof hasSrc!="symbol";break;default:setProp(domElement,tag,checked,hasSrc,props,null)}return;case"dialog":listenToNonDelegatedEvent("beforetoggle",domElement),listenToNonDelegatedEvent("toggle",domElement),listenToNonDelegatedEvent("cancel",domElement),listenToNonDelegatedEvent("close",domElement);break;case"iframe":case"object":listenToNonDelegatedEvent("load",domElement);break;case"video":case"audio":for(hasSrc=0;hasSrc<mediaEventTypes.length;hasSrc++)listenToNonDelegatedEvent(mediaEventTypes[hasSrc],domElement);break;case"image":listenToNonDelegatedEvent("error",domElement),listenToNonDelegatedEvent("load",domElement);break;case"details":listenToNonDelegatedEvent("toggle",domElement);break;case"embed":case"source":case"link":listenToNonDelegatedEvent("error",domElement),listenToNonDelegatedEvent("load",domElement);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(defaultChecked in props)if(props.hasOwnProperty(defaultChecked)&&(hasSrc=props[defaultChecked],hasSrc!=null))switch(defaultChecked){case"children":case"dangerouslySetInnerHTML":throw Error(tag+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");default:setProp(domElement,tag,defaultChecked,hasSrc,props,null)}return;default:if(isCustomElement(tag)){for(_propValue in props)props.hasOwnProperty(_propValue)&&(hasSrc=props[_propValue],hasSrc!==void 0&&setPropOnCustomElement(domElement,tag,_propValue,hasSrc,props,void 0));return}}for(defaultValue in props)props.hasOwnProperty(defaultValue)&&(hasSrc=props[defaultValue],hasSrc!=null&&setProp(domElement,tag,defaultValue,hasSrc,props,null))}function updateProperties(domElement,tag,lastProps,nextProps){switch(validatePropertiesInDevelopment(tag,nextProps),tag){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var name=null,type=null,value=null,defaultValue=null,lastDefaultValue=null,checked=null,defaultChecked=null;for(propKey in lastProps){var lastProp=lastProps[propKey];if(lastProps.hasOwnProperty(propKey)&&lastProp!=null)switch(propKey){case"checked":break;case"value":break;case"defaultValue":lastDefaultValue=lastProp;default:nextProps.hasOwnProperty(propKey)||setProp(domElement,tag,propKey,null,nextProps,lastProp)}}for(var _propKey8 in nextProps){var propKey=nextProps[_propKey8];if(lastProp=lastProps[_propKey8],nextProps.hasOwnProperty(_propKey8)&&(propKey!=null||lastProp!=null))switch(_propKey8){case"type":type=propKey;break;case"name":name=propKey;break;case"checked":checked=propKey;break;case"defaultChecked":defaultChecked=propKey;break;case"value":value=propKey;break;case"defaultValue":defaultValue=propKey;break;case"children":case"dangerouslySetInnerHTML":if(propKey!=null)throw Error(tag+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");break;default:propKey!==lastProp&&setProp(domElement,tag,_propKey8,propKey,nextProps,lastProp)}}tag=lastProps.type==="checkbox"||lastProps.type==="radio"?lastProps.checked!=null:lastProps.value!=null,nextProps=nextProps.type==="checkbox"||nextProps.type==="radio"?nextProps.checked!=null:nextProps.value!=null,tag||!nextProps||didWarnUncontrolledToControlled||(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"),didWarnUncontrolledToControlled=!0),!tag||nextProps||didWarnControlledToUncontrolled||(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"),didWarnControlledToUncontrolled=!0),updateInput(domElement,value,defaultValue,lastDefaultValue,checked,defaultChecked,type,name);return;case"select":propKey=value=defaultValue=_propKey8=null;for(type in lastProps)if(lastDefaultValue=lastProps[type],lastProps.hasOwnProperty(type)&&lastDefaultValue!=null)switch(type){case"value":break;case"multiple":propKey=lastDefaultValue;default:nextProps.hasOwnProperty(type)||setProp(domElement,tag,type,null,nextProps,lastDefaultValue)}for(name in nextProps)if(type=nextProps[name],lastDefaultValue=lastProps[name],nextProps.hasOwnProperty(name)&&(type!=null||lastDefaultValue!=null))switch(name){case"value":_propKey8=type;break;case"defaultValue":defaultValue=type;break;case"multiple":value=type;default:type!==lastDefaultValue&&setProp(domElement,tag,name,type,nextProps,lastDefaultValue)}nextProps=defaultValue,tag=value,lastProps=propKey,_propKey8!=null?updateOptions(domElement,!!tag,_propKey8,!1):!!lastProps!=!!tag&&(nextProps!=null?updateOptions(domElement,!!tag,nextProps,!0):updateOptions(domElement,!!tag,tag?[]:"",!1));return;case"textarea":propKey=_propKey8=null;for(defaultValue in lastProps)if(name=lastProps[defaultValue],lastProps.hasOwnProperty(defaultValue)&&name!=null&&!nextProps.hasOwnProperty(defaultValue))switch(defaultValue){case"value":break;case"children":break;default:setProp(domElement,tag,defaultValue,null,nextProps,name)}for(value in nextProps)if(name=nextProps[value],type=lastProps[value],nextProps.hasOwnProperty(value)&&(name!=null||type!=null))switch(value){case"value":_propKey8=name;break;case"defaultValue":propKey=name;break;case"children":break;case"dangerouslySetInnerHTML":if(name!=null)throw Error("`dangerouslySetInnerHTML` does not make sense on <textarea>.");break;default:name!==type&&setProp(domElement,tag,value,name,nextProps,type)}updateTextarea(domElement,_propKey8,propKey);return;case"option":for(var _propKey13 in lastProps)if(_propKey8=lastProps[_propKey13],lastProps.hasOwnProperty(_propKey13)&&_propKey8!=null&&!nextProps.hasOwnProperty(_propKey13))switch(_propKey13){case"selected":domElement.selected=!1;break;default:setProp(domElement,tag,_propKey13,null,nextProps,_propKey8)}for(lastDefaultValue in nextProps)if(_propKey8=nextProps[lastDefaultValue],propKey=lastProps[lastDefaultValue],nextProps.hasOwnProperty(lastDefaultValue)&&_propKey8!==propKey&&(_propKey8!=null||propKey!=null))switch(lastDefaultValue){case"selected":domElement.selected=_propKey8&&typeof _propKey8!="function"&&typeof _propKey8!="symbol";break;default:setProp(domElement,tag,lastDefaultValue,_propKey8,nextProps,propKey)}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 _propKey15 in lastProps)_propKey8=lastProps[_propKey15],lastProps.hasOwnProperty(_propKey15)&&_propKey8!=null&&!nextProps.hasOwnProperty(_propKey15)&&setProp(domElement,tag,_propKey15,null,nextProps,_propKey8);for(checked in nextProps)if(_propKey8=nextProps[checked],propKey=lastProps[checked],nextProps.hasOwnProperty(checked)&&_propKey8!==propKey&&(_propKey8!=null||propKey!=null))switch(checked){case"children":case"dangerouslySetInnerHTML":if(_propKey8!=null)throw Error(tag+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");break;default:setProp(domElement,tag,checked,_propKey8,nextProps,propKey)}return;default:if(isCustomElement(tag)){for(var _propKey17 in lastProps)_propKey8=lastProps[_propKey17],lastProps.hasOwnProperty(_propKey17)&&_propKey8!==void 0&&!nextProps.hasOwnProperty(_propKey17)&&setPropOnCustomElement(domElement,tag,_propKey17,void 0,nextProps,_propKey8);for(defaultChecked in nextProps)_propKey8=nextProps[defaultChecked],propKey=lastProps[defaultChecked],!nextProps.hasOwnProperty(defaultChecked)||_propKey8===propKey||_propKey8===void 0&&propKey===void 0||setPropOnCustomElement(domElement,tag,defaultChecked,_propKey8,nextProps,propKey);return}}for(var _propKey19 in lastProps)_propKey8=lastProps[_propKey19],lastProps.hasOwnProperty(_propKey19)&&_propKey8!=null&&!nextProps.hasOwnProperty(_propKey19)&&setProp(domElement,tag,_propKey19,null,nextProps,_propKey8);for(lastProp in nextProps)_propKey8=nextProps[lastProp],propKey=lastProps[lastProp],!nextProps.hasOwnProperty(lastProp)||_propKey8===propKey||_propKey8==null&&propKey==null||setProp(domElement,tag,lastProp,_propKey8,nextProps,propKey)}function getPropNameFromAttributeName(attrName){switch(attrName){case"class":return"className";case"for":return"htmlFor";default:return attrName}}function getStylesObjectFromElement(domElement){var serverValueInObjectForm={};domElement=domElement.style;for(var i=0;i<domElement.length;i++){var styleName=domElement[i];serverValueInObjectForm[styleName]=domElement.getPropertyValue(styleName)}return serverValueInObjectForm}function diffHydratedStyles(domElement,value$jscomp$0,serverDifferences){if(value$jscomp$0!=null&&typeof value$jscomp$0!="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 clientValue,delimiter=clientValue="",styleName;for(styleName in value$jscomp$0)if(value$jscomp$0.hasOwnProperty(styleName)){var value=value$jscomp$0[styleName];value!=null&&typeof value!="boolean"&&value!==""&&(styleName.indexOf("--")===0?(checkCSSPropertyStringCoercion(value,styleName),clientValue+=delimiter+styleName+":"+(""+value).trim()):typeof value!="number"||value===0||unitlessNumbers.has(styleName)?(checkCSSPropertyStringCoercion(value,styleName),clientValue+=delimiter+styleName.replace(uppercasePattern,"-$1").toLowerCase().replace(msPattern$1,"-ms-")+":"+(""+value).trim()):clientValue+=delimiter+styleName.replace(uppercasePattern,"-$1").toLowerCase().replace(msPattern$1,"-ms-")+":"+value+"px",delimiter=";")}clientValue=clientValue||null,value$jscomp$0=domElement.getAttribute("style"),value$jscomp$0!==clientValue&&(clientValue=normalizeMarkupForTextOrAttribute(clientValue),normalizeMarkupForTextOrAttribute(value$jscomp$0)!==clientValue&&(serverDifferences.style=getStylesObjectFromElement(domElement)))}}function hydrateAttribute(domElement,propKey,attributeName,value,extraAttributes,serverDifferences){if(extraAttributes.delete(attributeName),domElement=domElement.getAttribute(attributeName),domElement===null)switch(typeof value){case"undefined":case"function":case"symbol":case"boolean":return}else if(value!=null)switch(typeof value){case"function":case"symbol":case"boolean":break;default:if(checkAttributeStringCoercion(value,propKey),domElement===""+value)return}warnForPropDifference(propKey,domElement,value,serverDifferences)}function hydrateBooleanAttribute(domElement,propKey,attributeName,value,extraAttributes,serverDifferences){if(extraAttributes.delete(attributeName),domElement=domElement.getAttribute(attributeName),domElement===null){switch(typeof value){case"function":case"symbol":return}if(!value)return}else switch(typeof value){case"function":case"symbol":break;default:if(value)return}warnForPropDifference(propKey,domElement,value,serverDifferences)}function hydrateBooleanishAttribute(domElement,propKey,attributeName,value,extraAttributes,serverDifferences){if(extraAttributes.delete(attributeName),domElement=domElement.getAttribute(attributeName),domElement===null)switch(typeof value){case"undefined":case"function":case"symbol":return}else if(value!=null)switch(typeof value){case"function":case"symbol":break;default:if(checkAttributeStringCoercion(value,attributeName),domElement===""+value)return}warnForPropDifference(propKey,domElement,value,serverDifferences)}function hydrateNumericAttribute(domElement,propKey,attributeName,value,extraAttributes,serverDifferences){if(extraAttributes.delete(attributeName),domElement=domElement.getAttribute(attributeName),domElement===null)switch(typeof value){case"undefined":case"function":case"symbol":case"boolean":return;default:if(isNaN(value))return}else if(value!=null)switch(typeof value){case"function":case"symbol":case"boolean":break;default:if(!isNaN(value)&&(checkAttributeStringCoercion(value,propKey),domElement===""+value))return}warnForPropDifference(propKey,domElement,value,serverDifferences)}function hydrateSanitizedAttribute(domElement,propKey,attributeName,value,extraAttributes,serverDifferences){if(extraAttributes.delete(attributeName),domElement=domElement.getAttribute(attributeName),domElement===null)switch(typeof value){case"undefined":case"function":case"symbol":case"boolean":return}else if(value!=null)switch(typeof value){case"function":case"symbol":case"boolean":break;default:if(checkAttributeStringCoercion(value,propKey),attributeName=sanitizeURL(""+value),domElement===attributeName)return}warnForPropDifference(propKey,domElement,value,serverDifferences)}function diffHydratedProperties(domElement,tag,props,hostContext){for(var serverDifferences={},extraAttributes=new Set,attributes=domElement.attributes,i=0;i<attributes.length;i++)switch(attributes[i].name.toLowerCase()){case"value":break;case"checked":break;case"selected":break;default:extraAttributes.add(attributes[i].name)}if(isCustomElement(tag)){for(var propKey in props)if(props.hasOwnProperty(propKey)){var value=props[propKey];if(value!=null){if(registrationNameDependencies.hasOwnProperty(propKey))typeof value!="function"&&warnForInvalidEventListener(propKey,value);else if(props.suppressHydrationWarning!==!0)switch(propKey){case"children":typeof value!="string"&&typeof value!="number"||warnForPropDifference("children",domElement.textContent,value,serverDifferences);continue;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":continue;case"dangerouslySetInnerHTML":attributes=domElement.innerHTML,value=value?value.__html:void 0,value!=null&&(value=normalizeHTML(domElement,value),warnForPropDifference(propKey,attributes,value,serverDifferences));continue;case"style":extraAttributes.delete(propKey),diffHydratedStyles(domElement,value,serverDifferences);continue;case"offsetParent":case"offsetTop":case"offsetLeft":case"offsetWidth":case"offsetHeight":case"isContentEditable":case"outerText":case"outerHTML":extraAttributes.delete(propKey.toLowerCase()),console.error("Assignment to read-only property will result in a no-op: `%s`",propKey);continue;case"className":extraAttributes.delete("class"),attributes=getValueForAttributeOnCustomComponent(domElement,"class",value),warnForPropDifference("className",attributes,value,serverDifferences);continue;default:hostContext.context===HostContextNamespaceNone&&tag!=="svg"&&tag!=="math"?extraAttributes.delete(propKey.toLowerCase()):extraAttributes.delete(propKey),attributes=getValueForAttributeOnCustomComponent(domElement,propKey,value),warnForPropDifference(propKey,attributes,value,serverDifferences)}}}}else for(value in props)if(props.hasOwnProperty(value)&&(propKey=props[value],propKey!=null)){if(registrationNameDependencies.hasOwnProperty(value))typeof propKey!="function"&&warnForInvalidEventListener(value,propKey);else if(props.suppressHydrationWarning!==!0)switch(value){case"children":typeof propKey!="string"&&typeof propKey!="number"||warnForPropDifference("children",domElement.textContent,propKey,serverDifferences);continue;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"value":case"checked":case"selected":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":continue;case"dangerouslySetInnerHTML":attributes=domElement.innerHTML,propKey=propKey?propKey.__html:void 0,propKey!=null&&(propKey=normalizeHTML(domElement,propKey),attributes!==propKey&&(serverDifferences[value]={__html:attributes}));continue;case"className":hydrateAttribute(domElement,value,"class",propKey,extraAttributes,serverDifferences);continue;case"tabIndex":hydrateAttribute(domElement,value,"tabindex",propKey,extraAttributes,serverDifferences);continue;case"style":extraAttributes.delete(value),diffHydratedStyles(domElement,propKey,serverDifferences);continue;case"multiple":extraAttributes.delete(value),warnForPropDifference(value,domElement.multiple,propKey,serverDifferences);continue;case"muted":extraAttributes.delete(value),warnForPropDifference(value,domElement.muted,propKey,serverDifferences);continue;case"autoFocus":extraAttributes.delete("autofocus"),warnForPropDifference(value,domElement.autofocus,propKey,serverDifferences);continue;case"data":if(tag!=="object"){extraAttributes.delete(value),attributes=domElement.getAttribute("data"),warnForPropDifference(value,attributes,propKey,serverDifferences);continue}case"src":case"href":if(!(propKey!==""||tag==="a"&&value==="href"||tag==="object"&&value==="data")){console.error(value==="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.',value,value);continue}hydrateSanitizedAttribute(domElement,value,value,propKey,extraAttributes,serverDifferences);continue;case"action":case"formAction":if(attributes=domElement.getAttribute(value),typeof propKey=="function"){extraAttributes.delete(value.toLowerCase()),value==="formAction"?(extraAttributes.delete("name"),extraAttributes.delete("formenctype"),extraAttributes.delete("formmethod"),extraAttributes.delete("formtarget")):(extraAttributes.delete("enctype"),extraAttributes.delete("method"),extraAttributes.delete("target"));continue}else if(attributes===EXPECTED_FORM_ACTION_URL){extraAttributes.delete(value.toLowerCase()),warnForPropDifference(value,"function",propKey,serverDifferences);continue}hydrateSanitizedAttribute(domElement,value,value.toLowerCase(),propKey,extraAttributes,serverDifferences);continue;case"xlinkHref":hydrateSanitizedAttribute(domElement,value,"xlink:href",propKey,extraAttributes,serverDifferences);continue;case"contentEditable":hydrateBooleanishAttribute(domElement,value,"contenteditable",propKey,extraAttributes,serverDifferences);continue;case"spellCheck":hydrateBooleanishAttribute(domElement,value,"spellcheck",propKey,extraAttributes,serverDifferences);continue;case"draggable":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":hydrateBooleanishAttribute(domElement,value,value,propKey,extraAttributes,serverDifferences);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":hydrateBooleanAttribute(domElement,value,value.toLowerCase(),propKey,extraAttributes,serverDifferences);continue;case"capture":case"download":a:{i=domElement;var attributeName=attributes=value,serverDifferences$jscomp$0=serverDifferences;if(extraAttributes.delete(attributeName),i=i.getAttribute(attributeName),i===null)switch(typeof propKey){case"undefined":case"function":case"symbol":break a;default:if(propKey===!1)break a}else if(propKey!=null)switch(typeof propKey){case"function":case"symbol":break;case"boolean":if(propKey===!0&&i==="")break a;break;default:if(checkAttributeStringCoercion(propKey,attributes),i===""+propKey)break a}warnForPropDifference(attributes,i,propKey,serverDifferences$jscomp$0)}continue;case"cols":case"rows":case"size":case"span":a:{if(i=domElement,attributeName=attributes=value,serverDifferences$jscomp$0=serverDifferences,extraAttributes.delete(attributeName),i=i.getAttribute(attributeName),i===null)switch(typeof propKey){case"undefined":case"function":case"symbol":case"boolean":break a;default:if(isNaN(propKey)||1>propKey)break a}else if(propKey!=null)switch(typeof propKey){case"function":case"symbol":case"boolean":break;default:if(!(isNaN(propKey)||1>propKey)&&(checkAttributeStringCoercion(propKey,attributes),i===""+propKey))break a}warnForPropDifference(attributes,i,propKey,serverDifferences$jscomp$0)}continue;case"rowSpan":hydrateNumericAttribute(domElement,value,"rowspan",propKey,extraAttributes,serverDifferences);continue;case"start":hydrateNumericAttribute(domElement,value,value,propKey,extraAttributes,serverDifferences);continue;case"xHeight":hydrateAttribute(domElement,value,"x-height",propKey,extraAttributes,serverDifferences);continue;case"xlinkActuate":hydrateAttribute(domElement,value,"xlink:actuate",propKey,extraAttributes,serverDifferences);continue;case"xlinkArcrole":hydrateAttribute(domElement,value,"xlink:arcrole",propKey,extraAttributes,serverDifferences);continue;case"xlinkRole":hydrateAttribute(domElement,value,"xlink:role",propKey,extraAttributes,serverDifferences);continue;case"xlinkShow":hydrateAttribute(domElement,value,"xlink:show",propKey,extraAttributes,serverDifferences);continue;case"xlinkTitle":hydrateAttribute(domElement,value,"xlink:title",propKey,extraAttributes,serverDifferences);continue;case"xlinkType":hydrateAttribute(domElement,value,"xlink:type",propKey,extraAttributes,serverDifferences);continue;case"xmlBase":hydrateAttribute(domElement,value,"xml:base",propKey,extraAttributes,serverDifferences);continue;case"xmlLang":hydrateAttribute(domElement,value,"xml:lang",propKey,extraAttributes,serverDifferences);continue;case"xmlSpace":hydrateAttribute(domElement,value,"xml:space",propKey,extraAttributes,serverDifferences);continue;case"inert":propKey!==""||didWarnForNewBooleanPropsWithEmptyValue[value]||(didWarnForNewBooleanPropsWithEmptyValue[value]=!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.",value)),hydrateBooleanAttribute(domElement,value,value,propKey,extraAttributes,serverDifferences);continue;default:if(!(2<value.length)||value[0]!=="o"&&value[0]!=="O"||value[1]!=="n"&&value[1]!=="N"){i=getAttributeAlias(value),attributes=!1,hostContext.context===HostContextNamespaceNone&&tag!=="svg"&&tag!=="math"?extraAttributes.delete(i.toLowerCase()):(attributeName=value.toLowerCase(),attributeName=possibleStandardNames.hasOwnProperty(attributeName)&&possibleStandardNames[attributeName]||null,attributeName!==null&&attributeName!==value&&(attributes=!0,extraAttributes.delete(attributeName)),extraAttributes.delete(i));a:if(attributeName=domElement,serverDifferences$jscomp$0=i,i=propKey,isAttributeNameSafe(serverDifferences$jscomp$0))if(attributeName.hasAttribute(serverDifferences$jscomp$0))attributeName=attributeName.getAttribute(serverDifferences$jscomp$0),checkAttributeStringCoercion(i,serverDifferences$jscomp$0),i=attributeName===""+i?i:attributeName;else{switch(typeof i){case"function":case"symbol":break a;case"boolean":if(attributeName=serverDifferences$jscomp$0.toLowerCase().slice(0,5),attributeName!=="data-"&&attributeName!=="aria-")break a}i=i===void 0?void 0:null}else i=void 0;attributes||warnForPropDifference(value,i,propKey,serverDifferences)}}}return 0<extraAttributes.size&&props.suppressHydrationWarning!==!0&&warnForExtraAttributes(domElement,extraAttributes,serverDifferences),Object.keys(serverDifferences).length===0?null:serverDifferences}function propNamesListJoin(list,combinator){switch(list.length){case 0:return"";case 1:return list[0];case 2:return list[0]+" "+combinator+" "+list[1];default:return list.slice(0,-1).join(", ")+", "+combinator+" "+list[list.length-1]}}function getOwnerDocumentFromRootContainer(rootContainerElement){return rootContainerElement.nodeType===9?rootContainerElement:rootContainerElement.ownerDocument}function getOwnHostContext(namespaceURI){switch(namespaceURI){case SVG_NAMESPACE:return HostContextNamespaceSvg;case MATH_NAMESPACE:return HostContextNamespaceMath;default:return HostContextNamespaceNone}}function getChildHostContextProd(parentNamespace,type){if(parentNamespace===HostContextNamespaceNone)switch(type){case"svg":return HostContextNamespaceSvg;case"math":return HostContextNamespaceMath;default:return HostContextNamespaceNone}return parentNamespace===HostContextNamespaceSvg&&type==="foreignObject"?HostContextNamespaceNone:parentNamespace}function shouldSetTextContent(type,props){return type==="textarea"||type==="noscript"||typeof props.children=="string"||typeof props.children=="number"||typeof props.children=="bigint"||typeof props.dangerouslySetInnerHTML=="object"&&props.dangerouslySetInnerHTML!==null&&props.dangerouslySetInnerHTML.__html!=null}function shouldAttemptEagerTransition(){var event=window.event;return event&&event.type==="popstate"?event===currentPopstateTransitionEvent?!1:(currentPopstateTransitionEvent=event,!0):(currentPopstateTransitionEvent=null,!1)}function handleErrorInNextTick(error){setTimeout(function(){throw error})}function commitMount(domElement,type,newProps){switch(type){case"button":case"input":case"select":case"textarea":newProps.autoFocus&&domElement.focus();break;case"img":newProps.src?domElement.src=newProps.src:newProps.srcSet&&(domElement.srcset=newProps.srcSet)}}function commitUpdate(domElement,type,oldProps,newProps){updateProperties(domElement,type,oldProps,newProps),domElement[internalPropsKey]=newProps}function resetTextContent(domElement){setTextContent(domElement,"")}function commitTextUpdate(textInstance,oldText,newText){textInstance.nodeValue=newText}function isSingletonScope(type){return type==="head"}function removeChild(parentInstance,child){parentInstance.removeChild(child)}function removeChildFromContainer(container,child){(container.nodeType===9?container.body:container.nodeName==="HTML"?container.ownerDocument.body:container).removeChild(child)}function clearSuspenseBoundary(parentInstance,suspenseInstance){var node=suspenseInstance,possiblePreambleContribution=0,depth=0;do{var nextNode=node.nextSibling;if(parentInstance.removeChild(node),nextNode&&nextNode.nodeType===8)if(node=nextNode.data,node===SUSPENSE_END_DATA){if(0<possiblePreambleContribution&&8>possiblePreambleContribution){node=possiblePreambleContribution;var ownerDocument=parentInstance.ownerDocument;if(node&PREAMBLE_CONTRIBUTION_HTML&&releaseSingletonInstance(ownerDocument.documentElement),node&PREAMBLE_CONTRIBUTION_BODY&&releaseSingletonInstance(ownerDocument.body),node&PREAMBLE_CONTRIBUTION_HEAD)for(node=ownerDocument.head,releaseSingletonInstance(node),ownerDocument=node.firstChild;ownerDocument;){var nextNode$jscomp$0=ownerDocument.nextSibling,nodeName=ownerDocument.nodeName;ownerDocument[internalHoistableMarker]||nodeName==="SCRIPT"||nodeName==="STYLE"||nodeName==="LINK"&&ownerDocument.rel.toLowerCase()==="stylesheet"||node.removeChild(ownerDocument),ownerDocument=nextNode$jscomp$0}}if(depth===0){parentInstance.removeChild(nextNode),retryIfBlockedOn(suspenseInstance);return}depth--}else node===SUSPENSE_START_DATA||node===SUSPENSE_PENDING_START_DATA||node===SUSPENSE_FALLBACK_START_DATA?depth++:possiblePreambleContribution=node.charCodeAt(0)-48;else possiblePreambleContribution=0;node=nextNode}while(node);retryIfBlockedOn(suspenseInstance)}function hideInstance(instance){instance=instance.style,typeof instance.setProperty=="function"?instance.setProperty("display","none","important"):instance.display="none"}function hideTextInstance(textInstance){textInstance.nodeValue=""}function unhideInstance(instance,props){props=props[STYLE],props=props!=null&&props.hasOwnProperty("display")?props.display:null,instance.style.display=props==null||typeof props=="boolean"?"":(""+props).trim()}function unhideTextInstance(textInstance,text){textInstance.nodeValue=text}function clearContainerSparingly(container){var nextNode=container.firstChild;for(nextNode&&nextNode.nodeType===10&&(nextNode=nextNode.nextSibling);nextNode;){var node=nextNode;switch(nextNode=nextNode.nextSibling,node.nodeName){case"HTML":case"HEAD":case"BODY":clearContainerSparingly(node),detachDeletedInstance(node);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(node.rel.toLowerCase()==="stylesheet")continue}container.removeChild(node)}}function canHydrateInstance(instance,type,props,inRootOrSingleton){for(;instance.nodeType===1;){var anyProps=props;if(instance.nodeName.toLowerCase()!==type.toLowerCase()){if(!inRootOrSingleton&&(instance.nodeName!=="INPUT"||instance.type!=="hidden"))break}else if(inRootOrSingleton){if(!instance[internalHoistableMarker])switch(type){case"meta":if(!instance.hasAttribute("itemprop"))break;return instance;case"link":if(name=instance.getAttribute("rel"),name==="stylesheet"&&instance.hasAttribute("data-precedence")||name!==anyProps.rel||instance.getAttribute("href")!==(anyProps.href==null||anyProps.href===""?null:anyProps.href)||instance.getAttribute("crossorigin")!==(anyProps.crossOrigin==null?null:anyProps.crossOrigin)||instance.getAttribute("title")!==(anyProps.title==null?null:anyProps.title))break;return instance;case"style":if(instance.hasAttribute("data-precedence"))break;return instance;case"script":if(name=instance.getAttribute("src"),(name!==(anyProps.src==null?null:anyProps.src)||instance.getAttribute("type")!==(anyProps.type==null?null:anyProps.type)||instance.getAttribute("crossorigin")!==(anyProps.crossOrigin==null?null:anyProps.crossOrigin))&&name&&instance.hasAttribute("async")&&!instance.hasAttribute("itemprop"))break;return instance;default:return instance}}else if(type==="input"&&instance.type==="hidden"){checkAttributeStringCoercion(anyProps.name,"name");var name=anyProps.name==null?null:""+anyProps.name;if(anyProps.type==="hidden"&&instance.getAttribute("name")===name)return instance}else return instance;if(instance=getNextHydratable(instance.nextSibling),instance===null)break}return null}function canHydrateTextInstance(instance,text,inRootOrSingleton){if(text==="")return null;for(;instance.nodeType!==3;)if((instance.nodeType!==1||instance.nodeName!=="INPUT"||instance.type!=="hidden")&&!inRootOrSingleton||(instance=getNextHydratable(instance.nextSibling),instance===null))return null;return instance}function isSuspenseInstanceFallback(instance){return instance.data===SUSPENSE_FALLBACK_START_DATA||instance.data===SUSPENSE_PENDING_START_DATA&&instance.ownerDocument.readyState===DOCUMENT_READY_STATE_COMPLETE}function registerSuspenseInstanceRetry(instance,callback){var ownerDocument=instance.ownerDocument;if(instance.data!==SUSPENSE_PENDING_START_DATA||ownerDocument.readyState===DOCUMENT_READY_STATE_COMPLETE)callback();else{var listener=function(){callback(),ownerDocument.removeEventListener("DOMContentLoaded",listener)};ownerDocument.addEventListener("DOMContentLoaded",listener),instance._reactRetry=listener}}function getNextHydratable(node){for(;node!=null;node=node.nextSibling){var nodeType=node.nodeType;if(nodeType===1||nodeType===3)break;if(nodeType===8){if(nodeType=node.data,nodeType===SUSPENSE_START_DATA||nodeType===SUSPENSE_FALLBACK_START_DATA||nodeType===SUSPENSE_PENDING_START_DATA||nodeType===FORM_STATE_IS_MATCHING||nodeType===FORM_STATE_IS_NOT_MATCHING)break;if(nodeType===SUSPENSE_END_DATA)return null}}return node}function describeHydratableInstanceForDevWarnings(instance){if(instance.nodeType===1){for(var JSCompiler_temp_const=instance.nodeName.toLowerCase(),serverDifferences={},attributes=instance.attributes,i=0;i<attributes.length;i++){var attr=attributes[i];serverDifferences[getPropNameFromAttributeName(attr.name)]=attr.name.toLowerCase()==="style"?getStylesObjectFromElement(instance):attr.value}return{type:JSCompiler_temp_const,props:serverDifferences}}return instance.nodeType===8?{type:"Suspense",props:{}}:instance.nodeValue}function diffHydratedTextForDevWarnings(textInstance,text,parentProps){return parentProps===null||parentProps[SUPPRESS_HYDRATION_WARNING]!==!0?(textInstance.nodeValue===text?textInstance=null:(text=normalizeMarkupForTextOrAttribute(text),textInstance=normalizeMarkupForTextOrAttribute(textInstance.nodeValue)===text?null:textInstance.nodeValue),textInstance):null}function getNextHydratableInstanceAfterSuspenseInstance(suspenseInstance){suspenseInstance=suspenseInstance.nextSibling;for(var depth=0;suspenseInstance;){if(suspenseInstance.nodeType===8){var data=suspenseInstance.data;if(data===SUSPENSE_END_DATA){if(depth===0)return getNextHydratable(suspenseInstance.nextSibling);depth--}else data!==SUSPENSE_START_DATA&&data!==SUSPENSE_FALLBACK_START_DATA&&data!==SUSPENSE_PENDING_START_DATA||depth++}suspenseInstance=suspenseInstance.nextSibling}return null}function getParentSuspenseInstance(targetInstance){targetInstance=targetInstance.previousSibling;for(var depth=0;targetInstance;){if(targetInstance.nodeType===8){var data=targetInstance.data;if(data===SUSPENSE_START_DATA||data===SUSPENSE_FALLBACK_START_DATA||data===SUSPENSE_PENDING_START_DATA){if(depth===0)return targetInstance;depth--}else data===SUSPENSE_END_DATA&&depth++}targetInstance=targetInstance.previousSibling}return null}function commitHydratedContainer(container){retryIfBlockedOn(container)}function commitHydratedSuspenseInstance(suspenseInstance){retryIfBlockedOn(suspenseInstance)}function resolveSingletonInstance(type,props,rootContainerInstance,hostContext,validateDOMNestingDev){switch(validateDOMNestingDev&&validateDOMNesting(type,hostContext.ancestorInfo),props=getOwnerDocumentFromRootContainer(rootContainerInstance),type){case"html":if(type=props.documentElement,!type)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 type;case"head":if(type=props.head,!type)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 type;case"body":if(type=props.body,!type)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 type;default:throw Error("resolveSingletonInstance was called with an element type that is not supported. This is a bug in React.")}}function acquireSingletonInstance(type,props,instance,internalInstanceHandle){if(!instance[internalContainerInstanceKey]&&getInstanceFromNode(instance)){var tagName=instance.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.",tagName,tagName,tagName)}switch(type){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(tagName=instance.attributes;tagName.length;)instance.removeAttributeNode(tagName[0]);setInitialProperties(instance,type,props),instance[internalInstanceKey]=internalInstanceHandle,instance[internalPropsKey]=props}function releaseSingletonInstance(instance){for(var attributes=instance.attributes;attributes.length;)instance.removeAttributeNode(attributes[0]);detachDeletedInstance(instance)}function getHoistableRoot(container){return typeof container.getRootNode=="function"?container.getRootNode():container.nodeType===9?container:container.ownerDocument}function preconnectAs(rel,href,crossOrigin){var ownerDocument=globalDocument;if(ownerDocument&&typeof href=="string"&&href){var limitedEscapedHref=escapeSelectorAttributeValueInsideDoubleQuotes(href);limitedEscapedHref='link[rel="'+rel+'"][href="'+limitedEscapedHref+'"]',typeof crossOrigin=="string"&&(limitedEscapedHref+='[crossorigin="'+crossOrigin+'"]'),preconnectsSet.has(limitedEscapedHref)||(preconnectsSet.add(limitedEscapedHref),rel={rel,crossOrigin,href},ownerDocument.querySelector(limitedEscapedHref)===null&&(href=ownerDocument.createElement("link"),setInitialProperties(href,"link",rel),markNodeAsHoistable(href),ownerDocument.head.appendChild(href)))}}function getResource(type,currentProps,pendingProps,currentResource){var resourceRoot=(resourceRoot=rootInstanceStackCursor.current)?getHoistableRoot(resourceRoot):null;if(!resourceRoot)throw Error('"resourceRoot" was expected to exist. This is a bug in React.');switch(type){case"meta":case"title":return null;case"style":return typeof pendingProps.precedence=="string"&&typeof pendingProps.href=="string"?(pendingProps=getStyleKey(pendingProps.href),currentProps=getResourcesFromRoot(resourceRoot).hoistableStyles,currentResource=currentProps.get(pendingProps),currentResource||(currentResource={type:"style",instance:null,count:0,state:null},currentProps.set(pendingProps,currentResource)),currentResource):{type:"void",instance:null,count:0,state:null};case"link":if(pendingProps.rel==="stylesheet"&&typeof pendingProps.href=="string"&&typeof pendingProps.precedence=="string"){type=getStyleKey(pendingProps.href);var _styles=getResourcesFromRoot(resourceRoot).hoistableStyles,_resource=_styles.get(type);if(!_resource&&(resourceRoot=resourceRoot.ownerDocument||resourceRoot,_resource={type:"stylesheet",instance:null,count:0,state:{loading:NotLoaded,preload:null}},_styles.set(type,_resource),(_styles=resourceRoot.querySelector(getStylesheetSelectorFromKey(type)))&&!_styles._p&&(_resource.instance=_styles,_resource.state.loading=Loaded|Inserted),!preloadPropsMap.has(type))){var preloadProps={rel:"preload",as:"style",href:pendingProps.href,crossOrigin:pendingProps.crossOrigin,integrity:pendingProps.integrity,media:pendingProps.media,hrefLang:pendingProps.hrefLang,referrerPolicy:pendingProps.referrerPolicy};preloadPropsMap.set(type,preloadProps),_styles||preloadStylesheet(resourceRoot,type,preloadProps,_resource.state)}if(currentProps&¤tResource===null)throw pendingProps=`
|
|
246
|
+
|
|
247
|
+
- `+describeLinkForResourceErrorDEV(currentProps)+`
|
|
248
|
+
+ `+describeLinkForResourceErrorDEV(pendingProps),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."+pendingProps);return _resource}if(currentProps&¤tResource!==null)throw pendingProps=`
|
|
249
|
+
|
|
250
|
+
- `+describeLinkForResourceErrorDEV(currentProps)+`
|
|
251
|
+
+ `+describeLinkForResourceErrorDEV(pendingProps),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."+pendingProps);return null;case"script":return currentProps=pendingProps.async,pendingProps=pendingProps.src,typeof pendingProps=="string"&¤tProps&&typeof currentProps!="function"&&typeof currentProps!="symbol"?(pendingProps=getScriptKey(pendingProps),currentProps=getResourcesFromRoot(resourceRoot).hoistableScripts,currentResource=currentProps.get(pendingProps),currentResource||(currentResource={type:"script",instance:null,count:0,state:null},currentProps.set(pendingProps,currentResource)),currentResource):{type:"void",instance:null,count:0,state:null};default:throw Error('getResource encountered a type it did not expect: "'+type+'". this is a bug in React.')}}function describeLinkForResourceErrorDEV(props){var describedProps=0,description="<link";return typeof props.rel=="string"?(describedProps++,description+=' rel="'+props.rel+'"'):hasOwnProperty.call(props,"rel")&&(describedProps++,description+=' rel="'+(props.rel===null?"null":"invalid type "+typeof props.rel)+'"'),typeof props.href=="string"?(describedProps++,description+=' href="'+props.href+'"'):hasOwnProperty.call(props,"href")&&(describedProps++,description+=' href="'+(props.href===null?"null":"invalid type "+typeof props.href)+'"'),typeof props.precedence=="string"?(describedProps++,description+=' precedence="'+props.precedence+'"'):hasOwnProperty.call(props,"precedence")&&(describedProps++,description+=" precedence={"+(props.precedence===null?"null":"invalid type "+typeof props.precedence)+"}"),Object.getOwnPropertyNames(props).length>describedProps&&(description+=" ..."),description+" />"}function getStyleKey(href){return'href="'+escapeSelectorAttributeValueInsideDoubleQuotes(href)+'"'}function getStylesheetSelectorFromKey(key){return'link[rel="stylesheet"]['+key+"]"}function stylesheetPropsFromRawProps(rawProps){return assign({},rawProps,{"data-precedence":rawProps.precedence,precedence:null})}function preloadStylesheet(ownerDocument,key,preloadProps,state){ownerDocument.querySelector('link[rel="preload"][as="style"]['+key+"]")?state.loading=Loaded:(key=ownerDocument.createElement("link"),state.preload=key,key.addEventListener("load",function(){return state.loading|=Loaded}),key.addEventListener("error",function(){return state.loading|=Errored}),setInitialProperties(key,"link",preloadProps),markNodeAsHoistable(key),ownerDocument.head.appendChild(key))}function getScriptKey(src){return'[src="'+escapeSelectorAttributeValueInsideDoubleQuotes(src)+'"]'}function getScriptSelectorFromKey(key){return"script[async]"+key}function acquireResource(hoistableRoot,resource,props){if(resource.count++,resource.instance===null)switch(resource.type){case"style":var instance=hoistableRoot.querySelector('style[data-href~="'+escapeSelectorAttributeValueInsideDoubleQuotes(props.href)+'"]');if(instance)return resource.instance=instance,markNodeAsHoistable(instance),instance;var styleProps=assign({},props,{"data-href":props.href,"data-precedence":props.precedence,href:null,precedence:null});return instance=(hoistableRoot.ownerDocument||hoistableRoot).createElement("style"),markNodeAsHoistable(instance),setInitialProperties(instance,"style",styleProps),insertStylesheet(instance,props.precedence,hoistableRoot),resource.instance=instance;case"stylesheet":styleProps=getStyleKey(props.href);var _instance=hoistableRoot.querySelector(getStylesheetSelectorFromKey(styleProps));if(_instance)return resource.state.loading|=Inserted,resource.instance=_instance,markNodeAsHoistable(_instance),_instance;instance=stylesheetPropsFromRawProps(props),(styleProps=preloadPropsMap.get(styleProps))&&adoptPreloadPropsForStylesheet(instance,styleProps),_instance=(hoistableRoot.ownerDocument||hoistableRoot).createElement("link"),markNodeAsHoistable(_instance);var linkInstance=_instance;return linkInstance._p=new Promise(function(resolve,reject){linkInstance.onload=resolve,linkInstance.onerror=reject}),setInitialProperties(_instance,"link",instance),resource.state.loading|=Inserted,insertStylesheet(_instance,props.precedence,hoistableRoot),resource.instance=_instance;case"script":return _instance=getScriptKey(props.src),(styleProps=hoistableRoot.querySelector(getScriptSelectorFromKey(_instance)))?(resource.instance=styleProps,markNodeAsHoistable(styleProps),styleProps):(instance=props,(styleProps=preloadPropsMap.get(_instance))&&(instance=assign({},props),adoptPreloadPropsForScript(instance,styleProps)),hoistableRoot=hoistableRoot.ownerDocument||hoistableRoot,styleProps=hoistableRoot.createElement("script"),markNodeAsHoistable(styleProps),setInitialProperties(styleProps,"link",instance),hoistableRoot.head.appendChild(styleProps),resource.instance=styleProps);case"void":return null;default:throw Error('acquireResource encountered a resource type it did not expect: "'+resource.type+'". this is a bug in React.')}else resource.type==="stylesheet"&&(resource.state.loading&Inserted)===NotLoaded&&(instance=resource.instance,resource.state.loading|=Inserted,insertStylesheet(instance,props.precedence,hoistableRoot));return resource.instance}function insertStylesheet(instance,precedence,root3){for(var nodes=root3.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),last=nodes.length?nodes[nodes.length-1]:null,prior=last,i=0;i<nodes.length;i++){var node=nodes[i];if(node.dataset.precedence===precedence)prior=node;else if(prior!==last)break}prior?prior.parentNode.insertBefore(instance,prior.nextSibling):(precedence=root3.nodeType===9?root3.head:root3,precedence.insertBefore(instance,precedence.firstChild))}function adoptPreloadPropsForStylesheet(stylesheetProps,preloadProps){stylesheetProps.crossOrigin==null&&(stylesheetProps.crossOrigin=preloadProps.crossOrigin),stylesheetProps.referrerPolicy==null&&(stylesheetProps.referrerPolicy=preloadProps.referrerPolicy),stylesheetProps.title==null&&(stylesheetProps.title=preloadProps.title)}function adoptPreloadPropsForScript(scriptProps,preloadProps){scriptProps.crossOrigin==null&&(scriptProps.crossOrigin=preloadProps.crossOrigin),scriptProps.referrerPolicy==null&&(scriptProps.referrerPolicy=preloadProps.referrerPolicy),scriptProps.integrity==null&&(scriptProps.integrity=preloadProps.integrity)}function getHydratableHoistableCache(type,keyAttribute,ownerDocument){if(tagCaches===null){var cache=new Map,caches=tagCaches=new Map;caches.set(ownerDocument,cache)}else caches=tagCaches,cache=caches.get(ownerDocument),cache||(cache=new Map,caches.set(ownerDocument,cache));if(cache.has(type))return cache;for(cache.set(type,null),ownerDocument=ownerDocument.getElementsByTagName(type),caches=0;caches<ownerDocument.length;caches++){var node=ownerDocument[caches];if(!(node[internalHoistableMarker]||node[internalInstanceKey]||type==="link"&&node.getAttribute("rel")==="stylesheet")&&node.namespaceURI!==SVG_NAMESPACE){var nodeKey=node.getAttribute(keyAttribute)||"";nodeKey=type+nodeKey;var existing=cache.get(nodeKey);existing?existing.push(node):cache.set(nodeKey,[node])}}return cache}function mountHoistable(hoistableRoot,type,instance){hoistableRoot=hoistableRoot.ownerDocument||hoistableRoot,hoistableRoot.head.insertBefore(instance,type==="title"?hoistableRoot.querySelector("head > title"):null)}function isHostHoistableType(type,props,hostContext){var outsideHostContainerContext=!hostContext.ancestorInfo.containerTagInScope;if(hostContext.context===HostContextNamespaceSvg||props.itemProp!=null)return!outsideHostContainerContext||props.itemProp==null||type!=="meta"&&type!=="title"&&type!=="style"&&type!=="link"&&type!=="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.",type,type),!1;switch(type){case"meta":case"title":return!0;case"style":if(typeof props.precedence!="string"||typeof props.href!="string"||props.href===""){outsideHostContainerContext&&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 props.rel!="string"||typeof props.href!="string"||props.href===""||props.onLoad||props.onError){if(props.rel==="stylesheet"&&typeof props.precedence=="string"){type=props.href;var onError=props.onError,disabled=props.disabled;hostContext=[],props.onLoad&&hostContext.push("`onLoad`"),onError&&hostContext.push("`onError`"),disabled!=null&&hostContext.push("`disabled`"),onError=propNamesListJoin(hostContext,"and"),onError+=hostContext.length===1?" prop":" props",disabled=hostContext.length===1?"an "+onError:"the "+onError,hostContext.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.',type,disabled,onError)}outsideHostContainerContext&&(typeof props.rel!="string"||typeof props.href!="string"||props.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"):(props.onError||props.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(props.rel){case"stylesheet":return type=props.precedence,props=props.disabled,typeof type!="string"&&outsideHostContainerContext&&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 type=="string"&&props==null;default:return!0}case"script":if(type=props.async&&typeof props.async!="function"&&typeof props.async!="symbol",!type||props.onLoad||props.onError||!props.src||typeof props.src!="string"){outsideHostContainerContext&&(type?props.onLoad||props.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":outsideHostContainerContext&&console.error("Cannot render <%s> outside the main document. Try moving it into the root <head> tag.",type)}return!1}function preloadResource(resource){return!(resource.type==="stylesheet"&&(resource.state.loading&Settled)===NotLoaded)}function noop(){}function suspendResource(hoistableRoot,resource,props){if(suspendedState===null)throw Error("Internal React Error: suspendedState null when it was expected to exists. Please report this as a React bug.");var state=suspendedState;if(resource.type==="stylesheet"&&(typeof props.media!="string"||matchMedia(props.media).matches!==!1)&&(resource.state.loading&Inserted)===NotLoaded){if(resource.instance===null){var key=getStyleKey(props.href),instance=hoistableRoot.querySelector(getStylesheetSelectorFromKey(key));if(instance){hoistableRoot=instance._p,hoistableRoot!==null&&typeof hoistableRoot=="object"&&typeof hoistableRoot.then=="function"&&(state.count++,state=onUnsuspend.bind(state),hoistableRoot.then(state,state)),resource.state.loading|=Inserted,resource.instance=instance,markNodeAsHoistable(instance);return}instance=hoistableRoot.ownerDocument||hoistableRoot,props=stylesheetPropsFromRawProps(props),(key=preloadPropsMap.get(key))&&adoptPreloadPropsForStylesheet(props,key),instance=instance.createElement("link"),markNodeAsHoistable(instance);var linkInstance=instance;linkInstance._p=new Promise(function(resolve,reject){linkInstance.onload=resolve,linkInstance.onerror=reject}),setInitialProperties(instance,"link",props),resource.instance=instance}state.stylesheets===null&&(state.stylesheets=new Map),state.stylesheets.set(resource,hoistableRoot),(hoistableRoot=resource.state.preload)&&(resource.state.loading&Settled)===NotLoaded&&(state.count++,resource=onUnsuspend.bind(state),hoistableRoot.addEventListener("load",resource),hoistableRoot.addEventListener("error",resource))}}function waitForCommitToBeReady(){if(suspendedState===null)throw Error("Internal React Error: suspendedState null when it was expected to exists. Please report this as a React bug.");var state=suspendedState;return state.stylesheets&&state.count===0&&insertSuspendedStylesheets(state,state.stylesheets),0<state.count?function(commit){var stylesheetTimer=setTimeout(function(){if(state.stylesheets&&insertSuspendedStylesheets(state,state.stylesheets),state.unsuspend){var unsuspend=state.unsuspend;state.unsuspend=null,unsuspend()}},6e4);return state.unsuspend=commit,function(){state.unsuspend=null,clearTimeout(stylesheetTimer)}}:null}function onUnsuspend(){if(this.count--,this.count===0){if(this.stylesheets)insertSuspendedStylesheets(this,this.stylesheets);else if(this.unsuspend){var unsuspend=this.unsuspend;this.unsuspend=null,unsuspend()}}}function insertSuspendedStylesheets(state,resources){state.stylesheets=null,state.unsuspend!==null&&(state.count++,precedencesByRoot=new Map,resources.forEach(insertStylesheetIntoRoot,state),precedencesByRoot=null,onUnsuspend.call(state))}function insertStylesheetIntoRoot(root3,resource){if(!(resource.state.loading&Inserted)){var precedences=precedencesByRoot.get(root3);if(precedences)var last=precedences.get(LAST_PRECEDENCE);else{precedences=new Map,precedencesByRoot.set(root3,precedences);for(var nodes=root3.querySelectorAll("link[data-precedence],style[data-precedence]"),i=0;i<nodes.length;i++){var node=nodes[i];(node.nodeName==="LINK"||node.getAttribute("media")!=="not all")&&(precedences.set(node.dataset.precedence,node),last=node)}last&&precedences.set(LAST_PRECEDENCE,last)}nodes=resource.instance,node=nodes.getAttribute("data-precedence"),i=precedences.get(node)||last,i===last&&precedences.set(LAST_PRECEDENCE,nodes),precedences.set(node,nodes),this.count++,last=onUnsuspend.bind(this),nodes.addEventListener("load",last),nodes.addEventListener("error",last),i?i.parentNode.insertBefore(nodes,i.nextSibling):(root3=root3.nodeType===9?root3.head:root3,root3.insertBefore(nodes,root3.firstChild)),resource.state.loading|=Inserted}}function FiberRootNode(containerInfo,tag,hydrate,identifierPrefix,onUncaughtError,onCaughtError,onRecoverableError,formState){for(this.tag=1,this.containerInfo=containerInfo,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=noTimeout,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=createLaneMap(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=createLaneMap(0),this.hiddenUpdates=createLaneMap(null),this.identifierPrefix=identifierPrefix,this.onUncaughtError=onUncaughtError,this.onCaughtError=onCaughtError,this.onRecoverableError=onRecoverableError,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=formState,this.incompleteTransitions=new Map,this.passiveEffectDuration=this.effectDuration=-0,this.memoizedUpdaters=new Set,containerInfo=this.pendingUpdatersLaneMap=[],tag=0;31>tag;tag++)containerInfo.push(new Set);this._debugRootType=hydrate?"hydrateRoot()":"createRoot()"}function createFiberRoot(containerInfo,tag,hydrate,initialChildren,hydrationCallbacks,isStrictMode,identifierPrefix,onUncaughtError,onCaughtError,onRecoverableError,transitionCallbacks,formState){return containerInfo=new FiberRootNode(containerInfo,tag,hydrate,identifierPrefix,onUncaughtError,onCaughtError,onRecoverableError,formState),tag=ConcurrentMode,isStrictMode===!0&&(tag|=StrictLegacyMode|StrictEffectsMode),isDevToolsPresent&&(tag|=ProfileMode),isStrictMode=createFiber(3,null,null,tag),containerInfo.current=isStrictMode,isStrictMode.stateNode=containerInfo,tag=createCache(),retainCache(tag),containerInfo.pooledCache=tag,retainCache(tag),isStrictMode.memoizedState={element:initialChildren,isDehydrated:hydrate,cache:tag},initializeUpdateQueue(isStrictMode),containerInfo}function getContextForSubtree(parentComponent){return parentComponent?(parentComponent=emptyContextObject,parentComponent):emptyContextObject}function updateContainerImpl(rootFiber,lane,element,container,parentComponent,callback){if(injectedHook&&typeof injectedHook.onScheduleFiberRoot=="function")try{injectedHook.onScheduleFiberRoot(rendererID,container,element)}catch(err){hasLoggedError||(hasLoggedError=!0,console.error("React instrumentation encountered an error: %s",err))}injectedProfilingHooks!==null&&typeof injectedProfilingHooks.markRenderScheduled=="function"&&injectedProfilingHooks.markRenderScheduled(lane),parentComponent=getContextForSubtree(parentComponent),container.context===null?container.context=parentComponent:container.pendingContext=parentComponent,isRendering&¤t!==null&&!didWarnAboutNestedUpdates&&(didWarnAboutNestedUpdates=!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.
|
|
252
|
+
|
|
253
|
+
Check the render method of %s.`,getComponentNameFromFiber(current)||"Unknown")),container=createUpdate(lane),container.payload={element},callback=callback===void 0?null:callback,callback!==null&&(typeof callback!="function"&&console.error("Expected the last optional `callback` argument to be a function. Instead received: %s.",callback),container.callback=callback),element=enqueueUpdate(rootFiber,container,lane),element!==null&&(scheduleUpdateOnFiber(element,rootFiber,lane),entangleTransitions(element,rootFiber,lane))}function markRetryLaneImpl(fiber,retryLane){if(fiber=fiber.memoizedState,fiber!==null&&fiber.dehydrated!==null){var a2=fiber.retryLane;fiber.retryLane=a2!==0&&a2<retryLane?a2:retryLane}}function markRetryLaneIfNotHydrated(fiber,retryLane){markRetryLaneImpl(fiber,retryLane),(fiber=fiber.alternate)&&markRetryLaneImpl(fiber,retryLane)}function attemptContinuousHydration(fiber){if(fiber.tag===13){var root3=enqueueConcurrentRenderForLane(fiber,67108864);root3!==null&&scheduleUpdateOnFiber(root3,fiber,67108864),markRetryLaneIfNotHydrated(fiber,67108864)}}function getCurrentFiberForDevTools(){return current}function getLaneLabelMap(){for(var map=new Map,lane=1,index=0;31>index;index++){var label=getLabelForLane(lane);map.set(lane,label),lane*=2}return map}function dispatchDiscreteEvent(domEventName,eventSystemFlags,container,nativeEvent){var prevTransition=ReactSharedInternals.T;ReactSharedInternals.T=null;var previousPriority=ReactDOMSharedInternals.p;try{ReactDOMSharedInternals.p=DiscreteEventPriority,dispatchEvent(domEventName,eventSystemFlags,container,nativeEvent)}finally{ReactDOMSharedInternals.p=previousPriority,ReactSharedInternals.T=prevTransition}}function dispatchContinuousEvent(domEventName,eventSystemFlags,container,nativeEvent){var prevTransition=ReactSharedInternals.T;ReactSharedInternals.T=null;var previousPriority=ReactDOMSharedInternals.p;try{ReactDOMSharedInternals.p=ContinuousEventPriority,dispatchEvent(domEventName,eventSystemFlags,container,nativeEvent)}finally{ReactDOMSharedInternals.p=previousPriority,ReactSharedInternals.T=prevTransition}}function dispatchEvent(domEventName,eventSystemFlags,targetContainer,nativeEvent){if(_enabled){var blockedOn=findInstanceBlockingEvent(nativeEvent);if(blockedOn===null)dispatchEventForPluginEventSystem(domEventName,eventSystemFlags,nativeEvent,return_targetInst,targetContainer),clearIfContinuousEvent(domEventName,nativeEvent);else if(queueIfContinuousEvent(blockedOn,domEventName,eventSystemFlags,targetContainer,nativeEvent))nativeEvent.stopPropagation();else if(clearIfContinuousEvent(domEventName,nativeEvent),eventSystemFlags&4&&-1<discreteReplayableEvents.indexOf(domEventName)){for(;blockedOn!==null;){var fiber=getInstanceFromNode(blockedOn);if(fiber!==null)switch(fiber.tag){case 3:if(fiber=fiber.stateNode,fiber.current.memoizedState.isDehydrated){var lanes=getHighestPriorityLanes(fiber.pendingLanes);if(lanes!==0){var root3=fiber;for(root3.pendingLanes|=2,root3.entangledLanes|=2;lanes;){var lane=1<<31-clz32(lanes);root3.entanglements[1]|=lane,lanes&=~lane}ensureRootIsScheduled(fiber),(executionContext&(RenderContext|CommitContext))===NoContext&&(workInProgressRootRenderTargetTime=now$1()+RENDER_TIMEOUT_MS,flushSyncWorkAcrossRoots_impl(0))}}break;case 13:root3=enqueueConcurrentRenderForLane(fiber,2),root3!==null&&scheduleUpdateOnFiber(root3,fiber,2),flushSyncWork$1(),markRetryLaneIfNotHydrated(fiber,2)}if(fiber=findInstanceBlockingEvent(nativeEvent),fiber===null&&dispatchEventForPluginEventSystem(domEventName,eventSystemFlags,nativeEvent,return_targetInst,targetContainer),fiber===blockedOn)break;blockedOn=fiber}blockedOn!==null&&nativeEvent.stopPropagation()}else dispatchEventForPluginEventSystem(domEventName,eventSystemFlags,nativeEvent,null,targetContainer)}}function findInstanceBlockingEvent(nativeEvent){return nativeEvent=getEventTarget(nativeEvent),findInstanceBlockingTarget(nativeEvent)}function findInstanceBlockingTarget(targetNode){if(return_targetInst=null,targetNode=getClosestInstanceFromNode(targetNode),targetNode!==null){var nearestMounted=getNearestMountedFiber(targetNode);if(nearestMounted===null)targetNode=null;else{var tag=nearestMounted.tag;if(tag===13){if(targetNode=getSuspenseInstanceFromFiber(nearestMounted),targetNode!==null)return targetNode;targetNode=null}else if(tag===3){if(nearestMounted.stateNode.current.memoizedState.isDehydrated)return nearestMounted.tag===3?nearestMounted.stateNode.containerInfo:null;targetNode=null}else nearestMounted!==targetNode&&(targetNode=null)}}return return_targetInst=targetNode,null}function getEventPriority(domEventName){switch(domEventName){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 DiscreteEventPriority;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 ContinuousEventPriority;case"message":switch(getCurrentPriorityLevel()){case ImmediatePriority:return DiscreteEventPriority;case UserBlockingPriority:return ContinuousEventPriority;case NormalPriority$1:case LowPriority:return DefaultEventPriority;case IdlePriority:return IdleEventPriority;default:return DefaultEventPriority}default:return DefaultEventPriority}}function clearIfContinuousEvent(domEventName,nativeEvent){switch(domEventName){case"focusin":case"focusout":queuedFocus=null;break;case"dragenter":case"dragleave":queuedDrag=null;break;case"mouseover":case"mouseout":queuedMouse=null;break;case"pointerover":case"pointerout":queuedPointers.delete(nativeEvent.pointerId);break;case"gotpointercapture":case"lostpointercapture":queuedPointerCaptures.delete(nativeEvent.pointerId)}}function accumulateOrCreateContinuousQueuedReplayableEvent(existingQueuedEvent,blockedOn,domEventName,eventSystemFlags,targetContainer,nativeEvent){return existingQueuedEvent===null||existingQueuedEvent.nativeEvent!==nativeEvent?(existingQueuedEvent={blockedOn,domEventName,eventSystemFlags,nativeEvent,targetContainers:[targetContainer]},blockedOn!==null&&(blockedOn=getInstanceFromNode(blockedOn),blockedOn!==null&&attemptContinuousHydration(blockedOn)),existingQueuedEvent):(existingQueuedEvent.eventSystemFlags|=eventSystemFlags,blockedOn=existingQueuedEvent.targetContainers,targetContainer!==null&&blockedOn.indexOf(targetContainer)===-1&&blockedOn.push(targetContainer),existingQueuedEvent)}function queueIfContinuousEvent(blockedOn,domEventName,eventSystemFlags,targetContainer,nativeEvent){switch(domEventName){case"focusin":return queuedFocus=accumulateOrCreateContinuousQueuedReplayableEvent(queuedFocus,blockedOn,domEventName,eventSystemFlags,targetContainer,nativeEvent),!0;case"dragenter":return queuedDrag=accumulateOrCreateContinuousQueuedReplayableEvent(queuedDrag,blockedOn,domEventName,eventSystemFlags,targetContainer,nativeEvent),!0;case"mouseover":return queuedMouse=accumulateOrCreateContinuousQueuedReplayableEvent(queuedMouse,blockedOn,domEventName,eventSystemFlags,targetContainer,nativeEvent),!0;case"pointerover":var pointerId=nativeEvent.pointerId;return queuedPointers.set(pointerId,accumulateOrCreateContinuousQueuedReplayableEvent(queuedPointers.get(pointerId)||null,blockedOn,domEventName,eventSystemFlags,targetContainer,nativeEvent)),!0;case"gotpointercapture":return pointerId=nativeEvent.pointerId,queuedPointerCaptures.set(pointerId,accumulateOrCreateContinuousQueuedReplayableEvent(queuedPointerCaptures.get(pointerId)||null,blockedOn,domEventName,eventSystemFlags,targetContainer,nativeEvent)),!0}return!1}function attemptExplicitHydrationTarget(queuedTarget){var targetInst=getClosestInstanceFromNode(queuedTarget.target);if(targetInst!==null){var nearestMounted=getNearestMountedFiber(targetInst);if(nearestMounted!==null){if(targetInst=nearestMounted.tag,targetInst===13){if(targetInst=getSuspenseInstanceFromFiber(nearestMounted),targetInst!==null){queuedTarget.blockedOn=targetInst,runWithPriority(queuedTarget.priority,function(){if(nearestMounted.tag===13){var lane=requestUpdateLane(nearestMounted);lane=getBumpedLaneForHydrationByLane(lane);var root3=enqueueConcurrentRenderForLane(nearestMounted,lane);root3!==null&&scheduleUpdateOnFiber(root3,nearestMounted,lane),markRetryLaneIfNotHydrated(nearestMounted,lane)}});return}}else if(targetInst===3&&nearestMounted.stateNode.current.memoizedState.isDehydrated){queuedTarget.blockedOn=nearestMounted.tag===3?nearestMounted.stateNode.containerInfo:null;return}}}queuedTarget.blockedOn=null}function attemptReplayContinuousQueuedEvent(queuedEvent){if(queuedEvent.blockedOn!==null)return!1;for(var targetContainers=queuedEvent.targetContainers;0<targetContainers.length;){var nextBlockedOn=findInstanceBlockingEvent(queuedEvent.nativeEvent);if(nextBlockedOn===null){nextBlockedOn=queuedEvent.nativeEvent;var nativeEventClone=new nextBlockedOn.constructor(nextBlockedOn.type,nextBlockedOn),event=nativeEventClone;currentReplayingEvent!==null&&console.error("Expected currently replaying event to be null. This error is likely caused by a bug in React. Please file an issue."),currentReplayingEvent=event,nextBlockedOn.target.dispatchEvent(nativeEventClone),currentReplayingEvent===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."),currentReplayingEvent=null}else return targetContainers=getInstanceFromNode(nextBlockedOn),targetContainers!==null&&attemptContinuousHydration(targetContainers),queuedEvent.blockedOn=nextBlockedOn,!1;targetContainers.shift()}return!0}function attemptReplayContinuousQueuedEventInMap(queuedEvent,key,map){attemptReplayContinuousQueuedEvent(queuedEvent)&&map.delete(key)}function replayUnblockedEvents(){hasScheduledReplayAttempt=!1,queuedFocus!==null&&attemptReplayContinuousQueuedEvent(queuedFocus)&&(queuedFocus=null),queuedDrag!==null&&attemptReplayContinuousQueuedEvent(queuedDrag)&&(queuedDrag=null),queuedMouse!==null&&attemptReplayContinuousQueuedEvent(queuedMouse)&&(queuedMouse=null),queuedPointers.forEach(attemptReplayContinuousQueuedEventInMap),queuedPointerCaptures.forEach(attemptReplayContinuousQueuedEventInMap)}function scheduleCallbackIfUnblocked(queuedEvent,unblocked){queuedEvent.blockedOn===unblocked&&(queuedEvent.blockedOn=null,hasScheduledReplayAttempt||(hasScheduledReplayAttempt=!0,Scheduler.unstable_scheduleCallback(Scheduler.unstable_NormalPriority,replayUnblockedEvents)))}function scheduleReplayQueueIfNeeded(formReplayingQueue){lastScheduledReplayQueue!==formReplayingQueue&&(lastScheduledReplayQueue=formReplayingQueue,Scheduler.unstable_scheduleCallback(Scheduler.unstable_NormalPriority,function(){lastScheduledReplayQueue===formReplayingQueue&&(lastScheduledReplayQueue=null);for(var i=0;i<formReplayingQueue.length;i+=3){var form2=formReplayingQueue[i],submitterOrAction=formReplayingQueue[i+1],formData=formReplayingQueue[i+2];if(typeof submitterOrAction!="function"){if(findInstanceBlockingTarget(submitterOrAction||form2)===null)continue;break}var formInst=getInstanceFromNode(form2);formInst!==null&&(formReplayingQueue.splice(i,3),i-=3,form2={pending:!0,data:formData,method:form2.method,action:submitterOrAction},Object.freeze(form2),startHostTransition(formInst,form2,submitterOrAction,formData))}}))}function retryIfBlockedOn(unblocked){function unblock(queuedEvent){return scheduleCallbackIfUnblocked(queuedEvent,unblocked)}queuedFocus!==null&&scheduleCallbackIfUnblocked(queuedFocus,unblocked),queuedDrag!==null&&scheduleCallbackIfUnblocked(queuedDrag,unblocked),queuedMouse!==null&&scheduleCallbackIfUnblocked(queuedMouse,unblocked),queuedPointers.forEach(unblock),queuedPointerCaptures.forEach(unblock);for(var i=0;i<queuedExplicitHydrationTargets.length;i++){var queuedTarget=queuedExplicitHydrationTargets[i];queuedTarget.blockedOn===unblocked&&(queuedTarget.blockedOn=null)}for(;0<queuedExplicitHydrationTargets.length&&(i=queuedExplicitHydrationTargets[0],i.blockedOn===null);)attemptExplicitHydrationTarget(i),i.blockedOn===null&&queuedExplicitHydrationTargets.shift();if(i=(unblocked.ownerDocument||unblocked).$$reactFormReplay,i!=null)for(queuedTarget=0;queuedTarget<i.length;queuedTarget+=3){var form2=i[queuedTarget],submitterOrAction=i[queuedTarget+1],formProps=form2[internalPropsKey]||null;if(typeof submitterOrAction=="function")formProps||scheduleReplayQueueIfNeeded(i);else if(formProps){var action=null;if(submitterOrAction&&submitterOrAction.hasAttribute("formAction")){if(form2=submitterOrAction,formProps=submitterOrAction[internalPropsKey]||null)action=formProps.formAction;else if(findInstanceBlockingTarget(form2)!==null)continue}else action=formProps.action;typeof action=="function"?i[queuedTarget+1]=action:(i.splice(queuedTarget,3),queuedTarget-=3),scheduleReplayQueueIfNeeded(i)}}}function ReactDOMRoot(internalRoot){this._internalRoot=internalRoot}function ReactDOMHydrationRoot(internalRoot){this._internalRoot=internalRoot}function warnIfReactDOMContainerInDEV(container){container[internalContainerInstanceKey]&&(container._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 Scheduler=requireScheduler(),React2=requireReact(),ReactDOM=requireReactDom(),assign=Object.assign,REACT_LEGACY_ELEMENT_TYPE=Symbol.for("react.element"),REACT_ELEMENT_TYPE=Symbol.for("react.transitional.element"),REACT_PORTAL_TYPE=Symbol.for("react.portal"),REACT_FRAGMENT_TYPE=Symbol.for("react.fragment"),REACT_STRICT_MODE_TYPE=Symbol.for("react.strict_mode"),REACT_PROFILER_TYPE=Symbol.for("react.profiler"),REACT_PROVIDER_TYPE=Symbol.for("react.provider"),REACT_CONSUMER_TYPE=Symbol.for("react.consumer"),REACT_CONTEXT_TYPE=Symbol.for("react.context"),REACT_FORWARD_REF_TYPE=Symbol.for("react.forward_ref"),REACT_SUSPENSE_TYPE=Symbol.for("react.suspense"),REACT_SUSPENSE_LIST_TYPE=Symbol.for("react.suspense_list"),REACT_MEMO_TYPE=Symbol.for("react.memo"),REACT_LAZY_TYPE=Symbol.for("react.lazy"),REACT_ACTIVITY_TYPE=Symbol.for("react.activity"),REACT_MEMO_CACHE_SENTINEL=Symbol.for("react.memo_cache_sentinel"),MAYBE_ITERATOR_SYMBOL=Symbol.iterator,REACT_CLIENT_REFERENCE=Symbol.for("react.client.reference"),isArrayImpl=Array.isArray,ReactSharedInternals=React2.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ReactDOMSharedInternals=ReactDOM.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,NotPending=Object.freeze({pending:!1,data:null,method:null,action:null}),valueStack=[],fiberStack=[],index$jscomp$0=-1,contextStackCursor=createCursor(null),contextFiberStackCursor=createCursor(null),rootInstanceStackCursor=createCursor(null),hostTransitionProviderCursor=createCursor(null),hasOwnProperty=Object.prototype.hasOwnProperty,scheduleCallback$3=Scheduler.unstable_scheduleCallback,cancelCallback$1=Scheduler.unstable_cancelCallback,shouldYield=Scheduler.unstable_shouldYield,requestPaint=Scheduler.unstable_requestPaint,now$1=Scheduler.unstable_now,getCurrentPriorityLevel=Scheduler.unstable_getCurrentPriorityLevel,ImmediatePriority=Scheduler.unstable_ImmediatePriority,UserBlockingPriority=Scheduler.unstable_UserBlockingPriority,NormalPriority$1=Scheduler.unstable_NormalPriority,LowPriority=Scheduler.unstable_LowPriority,IdlePriority=Scheduler.unstable_IdlePriority,log$1=Scheduler.log,unstable_setDisableYieldValue=Scheduler.unstable_setDisableYieldValue,rendererID=null,injectedHook=null,injectedProfilingHooks=null,hasLoggedError=!1,isDevToolsPresent=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u",clz32=Math.clz32?Math.clz32:clz32Fallback,log=Math.log,LN2=Math.LN2,nextTransitionLane=256,nextRetryLane=4194304,DiscreteEventPriority=2,ContinuousEventPriority=8,DefaultEventPriority=32,IdleEventPriority=268435456,randomKey=Math.random().toString(36).slice(2),internalInstanceKey="__reactFiber$"+randomKey,internalPropsKey="__reactProps$"+randomKey,internalContainerInstanceKey="__reactContainer$"+randomKey,internalEventHandlersKey="__reactEvents$"+randomKey,internalEventHandlerListenersKey="__reactListeners$"+randomKey,internalEventHandlesSetKey="__reactHandles$"+randomKey,internalRootNodeResourcesKey="__reactResources$"+randomKey,internalHoistableMarker="__reactMarker$"+randomKey,allNativeEvents=new Set,registrationNameDependencies={},possibleRegistrationNames={},hasReadOnlyValue={button:!0,checkbox:!0,image:!0,hidden:!0,radio:!0,reset:!0,submit:!0},VALID_ATTRIBUTE_NAME_REGEX=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]*$"),illegalAttributeNameCache={},validatedAttributeNameCache={},disabledDepth=0,prevLog,prevInfo,prevWarn,prevError,prevGroup,prevGroupCollapsed,prevGroupEnd;disabledLog.__reactDisabledLog=!0;var prefix,suffix,reentry=!1,componentFrameCache=new(typeof WeakMap=="function"?WeakMap:Map),current=null,isRendering=!1,escapeSelectorAttributeValueInsideDoubleQuotesRegex=/[\n"\\]/g,didWarnValueDefaultValue$1=!1,didWarnCheckedDefaultChecked=!1,didWarnSelectedSetOnOption=!1,didWarnInvalidChild=!1,didWarnInvalidInnerHTML=!1,didWarnValueDefaultValue=!1,valuePropNames=["value","defaultValue"],didWarnValDefaultVal=!1,needsEscaping=/["'&<>\n\t]|^\s|\s$/,specialTags="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(" "),inScopeTags="applet caption html table td th marquee object template foreignObject desc title".split(" "),buttonScopeTags=inScopeTags.concat(["button"]),impliedEndTags="dd dt li option optgroup p rp rt".split(" "),emptyAncestorInfoDev={current:null,formTag:null,aTagInScope:null,buttonTagInScope:null,nobrTagInScope:null,pTagInButtonScope:null,listItemTagAutoclosing:null,dlItemTagAutoclosing:null,containerTagInScope:null,implicitRootScope:!1},didWarn={},shorthandToLonghand={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"]},uppercasePattern=/([A-Z])/g,msPattern$1=/^ms-/,badVendoredStyleNamePattern=/^(?:webkit|moz|o)[A-Z]/,msPattern=/^-ms-/,hyphenPattern=/-(.)/g,badStyleValueWithSemicolonPattern=/;\s*$/,warnedStyleNames={},warnedStyleValues={},warnedForNaNValue=!1,warnedForInfinityValue=!1,unitlessNumbers=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(" ")),MATH_NAMESPACE="http://www.w3.org/1998/Math/MathML",SVG_NAMESPACE="http://www.w3.org/2000/svg",aliases=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"]]),possibleStandardNames={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"},ariaProperties={"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},warnedProperties$1={},rARIA$1=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]*$"),rARIACamel$1=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]*$"),didWarnValueNull=!1,warnedProperties={},EVENT_NAME_REGEX=/^on./,INVALID_EVENT_NAME_REGEX=/^on[^A-Z]/,rARIA=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]*$"),rARIACamel=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]*$"),isJavaScriptProtocol=/^[\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,currentReplayingEvent=null,restoreTarget=null,restoreQueue=null,isInsideEventHandler=!1,canUseDOM=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),passiveBrowserEventsSupported=!1;if(canUseDOM)try{var options$jscomp$0={};Object.defineProperty(options$jscomp$0,"passive",{get:function(){passiveBrowserEventsSupported=!0}}),window.addEventListener("test",options$jscomp$0,options$jscomp$0),window.removeEventListener("test",options$jscomp$0,options$jscomp$0)}catch{passiveBrowserEventsSupported=!1}var root2=null,startText=null,fallbackText=null,EventInterface={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(event){return event.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},SyntheticEvent=createSyntheticEvent(EventInterface),UIEventInterface=assign({},EventInterface,{view:0,detail:0}),SyntheticUIEvent=createSyntheticEvent(UIEventInterface),lastMovementX,lastMovementY,lastMouseEvent,MouseEventInterface=assign({},UIEventInterface,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:getEventModifierState,button:0,buttons:0,relatedTarget:function(event){return event.relatedTarget===void 0?event.fromElement===event.srcElement?event.toElement:event.fromElement:event.relatedTarget},movementX:function(event){return"movementX"in event?event.movementX:(event!==lastMouseEvent&&(lastMouseEvent&&event.type==="mousemove"?(lastMovementX=event.screenX-lastMouseEvent.screenX,lastMovementY=event.screenY-lastMouseEvent.screenY):lastMovementY=lastMovementX=0,lastMouseEvent=event),lastMovementX)},movementY:function(event){return"movementY"in event?event.movementY:lastMovementY}}),SyntheticMouseEvent=createSyntheticEvent(MouseEventInterface),DragEventInterface=assign({},MouseEventInterface,{dataTransfer:0}),SyntheticDragEvent=createSyntheticEvent(DragEventInterface),FocusEventInterface=assign({},UIEventInterface,{relatedTarget:0}),SyntheticFocusEvent=createSyntheticEvent(FocusEventInterface),AnimationEventInterface=assign({},EventInterface,{animationName:0,elapsedTime:0,pseudoElement:0}),SyntheticAnimationEvent=createSyntheticEvent(AnimationEventInterface),ClipboardEventInterface=assign({},EventInterface,{clipboardData:function(event){return"clipboardData"in event?event.clipboardData:window.clipboardData}}),SyntheticClipboardEvent=createSyntheticEvent(ClipboardEventInterface),CompositionEventInterface=assign({},EventInterface,{data:0}),SyntheticCompositionEvent=createSyntheticEvent(CompositionEventInterface),SyntheticInputEvent=SyntheticCompositionEvent,normalizeKey={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},translateToKey={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"},modifierKeyToProp={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"},KeyboardEventInterface=assign({},UIEventInterface,{key:function(nativeEvent){if(nativeEvent.key){var key=normalizeKey[nativeEvent.key]||nativeEvent.key;if(key!=="Unidentified")return key}return nativeEvent.type==="keypress"?(nativeEvent=getEventCharCode(nativeEvent),nativeEvent===13?"Enter":String.fromCharCode(nativeEvent)):nativeEvent.type==="keydown"||nativeEvent.type==="keyup"?translateToKey[nativeEvent.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:getEventModifierState,charCode:function(event){return event.type==="keypress"?getEventCharCode(event):0},keyCode:function(event){return event.type==="keydown"||event.type==="keyup"?event.keyCode:0},which:function(event){return event.type==="keypress"?getEventCharCode(event):event.type==="keydown"||event.type==="keyup"?event.keyCode:0}}),SyntheticKeyboardEvent=createSyntheticEvent(KeyboardEventInterface),PointerEventInterface=assign({},MouseEventInterface,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),SyntheticPointerEvent=createSyntheticEvent(PointerEventInterface),TouchEventInterface=assign({},UIEventInterface,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:getEventModifierState}),SyntheticTouchEvent=createSyntheticEvent(TouchEventInterface),TransitionEventInterface=assign({},EventInterface,{propertyName:0,elapsedTime:0,pseudoElement:0}),SyntheticTransitionEvent=createSyntheticEvent(TransitionEventInterface),WheelEventInterface=assign({},MouseEventInterface,{deltaX:function(event){return"deltaX"in event?event.deltaX:"wheelDeltaX"in event?-event.wheelDeltaX:0},deltaY:function(event){return"deltaY"in event?event.deltaY:"wheelDeltaY"in event?-event.wheelDeltaY:"wheelDelta"in event?-event.wheelDelta:0},deltaZ:0,deltaMode:0}),SyntheticWheelEvent=createSyntheticEvent(WheelEventInterface),ToggleEventInterface=assign({},EventInterface,{newState:0,oldState:0}),SyntheticToggleEvent=createSyntheticEvent(ToggleEventInterface),END_KEYCODES=[9,13,27,32],START_KEYCODE=229,canUseCompositionEvent=canUseDOM&&"CompositionEvent"in window,documentMode=null;canUseDOM&&"documentMode"in document&&(documentMode=document.documentMode);var canUseTextInputEvent=canUseDOM&&"TextEvent"in window&&!documentMode,useFallbackCompositionData=canUseDOM&&(!canUseCompositionEvent||documentMode&&8<documentMode&&11>=documentMode),SPACEBAR_CODE=32,SPACEBAR_CHAR=String.fromCharCode(SPACEBAR_CODE),hasSpaceKeypress=!1,isComposing=!1,supportedInputTypes={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},activeElement$1=null,activeElementInst$1=null,isInputEventSupported=!1;canUseDOM&&(isInputEventSupported=isEventSupported("input")&&(!document.documentMode||9<document.documentMode));var objectIs=typeof Object.is=="function"?Object.is:is,skipSelectionChangeEvent=canUseDOM&&"documentMode"in document&&11>=document.documentMode,activeElement=null,activeElementInst=null,lastSelection=null,mouseDown=!1,vendorPrefixes={animationend:makePrefixMap("Animation","AnimationEnd"),animationiteration:makePrefixMap("Animation","AnimationIteration"),animationstart:makePrefixMap("Animation","AnimationStart"),transitionrun:makePrefixMap("Transition","TransitionRun"),transitionstart:makePrefixMap("Transition","TransitionStart"),transitioncancel:makePrefixMap("Transition","TransitionCancel"),transitionend:makePrefixMap("Transition","TransitionEnd")},prefixedEventNames={},style={};canUseDOM&&(style=document.createElement("div").style,"AnimationEvent"in window||(delete vendorPrefixes.animationend.animation,delete vendorPrefixes.animationiteration.animation,delete vendorPrefixes.animationstart.animation),"TransitionEvent"in window||delete vendorPrefixes.transitionend.transition);var ANIMATION_END=getVendorPrefixedEventName("animationend"),ANIMATION_ITERATION=getVendorPrefixedEventName("animationiteration"),ANIMATION_START=getVendorPrefixedEventName("animationstart"),TRANSITION_RUN=getVendorPrefixedEventName("transitionrun"),TRANSITION_START=getVendorPrefixedEventName("transitionstart"),TRANSITION_CANCEL=getVendorPrefixedEventName("transitioncancel"),TRANSITION_END=getVendorPrefixedEventName("transitionend"),topLevelEventsToReactNames=new Map,simpleEventPluginEvents="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(" ");simpleEventPluginEvents.push("scrollEnd");var CapturedStacks=new WeakMap,OffscreenVisible=1,OffscreenPassiveEffectsConnected=2,concurrentQueues=[],concurrentQueuesIndex=0,concurrentlyUpdatedLanes=0,emptyContextObject={};Object.freeze(emptyContextObject);var resolveFamily=null,failedBoundaries=null,NoMode=0,ConcurrentMode=1,ProfileMode=2,StrictLegacyMode=8,StrictEffectsMode=16,NoStrictPassiveEffectsMode=64,hasBadMapPolyfill=!1;try{var nonExtensibleObject=Object.preventExtensions({})}catch{hasBadMapPolyfill=!0}var forkStack=[],forkStackIndex=0,treeForkProvider=null,treeForkCount=0,idStack=[],idStackIndex=0,treeContextProvider=null,treeContextId=1,treeContextOverflow="",hydrationParentFiber=null,nextHydratableInstance=null,isHydrating=!1,didSuspendOrErrorDEV=!1,hydrationDiffRootDEV=null,hydrationErrors=null,rootOrSingletonContext=!1,HydrationMismatchException=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."),lastResetTime=0;if(typeof performance=="object"&&typeof performance.now=="function")var localPerformance=performance,getCurrentTime=function(){return localPerformance.now()};else{var localDate=Date;getCurrentTime=function(){return localDate.now()}}var valueCursor=createCursor(null),rendererCursorDEV=createCursor(null),rendererSigil={},currentlyRenderingFiber$1=null,lastContextDependency=null,isDisallowedContextReadInDEV=!1,AbortControllerLocal=typeof AbortController<"u"?AbortController:function(){var listeners=[],signal=this.signal={aborted:!1,addEventListener:function(type,listener){listeners.push(listener)}};this.abort=function(){signal.aborted=!0,listeners.forEach(function(listener){return listener()})}},scheduleCallback$2=Scheduler.unstable_scheduleCallback,NormalPriority=Scheduler.unstable_NormalPriority,CacheContext={$$typeof:REACT_CONTEXT_TYPE,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0,_currentRenderer:null,_currentRenderer2:null},now=Scheduler.unstable_now,renderStartTime=-0,commitStartTime=-0,profilerStartTime=-1.1,profilerEffectDuration=-0,currentUpdateIsNested=!1,nestedUpdateScheduled=!1,currentEntangledListeners=null,currentEntangledPendingCount=0,currentEntangledLane=0,currentEntangledActionThenable=null,prevOnStartTransitionFinish=ReactSharedInternals.S;ReactSharedInternals.S=function(transition,returnValue){typeof returnValue=="object"&&returnValue!==null&&typeof returnValue.then=="function"&&entangleAsyncAction(transition,returnValue),prevOnStartTransitionFinish!==null&&prevOnStartTransitionFinish(transition,returnValue)};var resumedCache=createCursor(null),ReactStrictModeWarnings={recordUnsafeLifecycleWarnings:function(){},flushPendingUnsafeLifecycleWarnings:function(){},recordLegacyContextWarning:function(){},flushLegacyContextWarning:function(){},discardPendingWarnings:function(){}},pendingComponentWillMountWarnings=[],pendingUNSAFE_ComponentWillMountWarnings=[],pendingComponentWillReceivePropsWarnings=[],pendingUNSAFE_ComponentWillReceivePropsWarnings=[],pendingComponentWillUpdateWarnings=[],pendingUNSAFE_ComponentWillUpdateWarnings=[],didWarnAboutUnsafeLifecycles=new Set;ReactStrictModeWarnings.recordUnsafeLifecycleWarnings=function(fiber,instance){didWarnAboutUnsafeLifecycles.has(fiber.type)||(typeof instance.componentWillMount=="function"&&instance.componentWillMount.__suppressDeprecationWarning!==!0&&pendingComponentWillMountWarnings.push(fiber),fiber.mode&StrictLegacyMode&&typeof instance.UNSAFE_componentWillMount=="function"&&pendingUNSAFE_ComponentWillMountWarnings.push(fiber),typeof instance.componentWillReceiveProps=="function"&&instance.componentWillReceiveProps.__suppressDeprecationWarning!==!0&&pendingComponentWillReceivePropsWarnings.push(fiber),fiber.mode&StrictLegacyMode&&typeof instance.UNSAFE_componentWillReceiveProps=="function"&&pendingUNSAFE_ComponentWillReceivePropsWarnings.push(fiber),typeof instance.componentWillUpdate=="function"&&instance.componentWillUpdate.__suppressDeprecationWarning!==!0&&pendingComponentWillUpdateWarnings.push(fiber),fiber.mode&StrictLegacyMode&&typeof instance.UNSAFE_componentWillUpdate=="function"&&pendingUNSAFE_ComponentWillUpdateWarnings.push(fiber))},ReactStrictModeWarnings.flushPendingUnsafeLifecycleWarnings=function(){var componentWillMountUniqueNames=new Set;0<pendingComponentWillMountWarnings.length&&(pendingComponentWillMountWarnings.forEach(function(fiber){componentWillMountUniqueNames.add(getComponentNameFromFiber(fiber)||"Component"),didWarnAboutUnsafeLifecycles.add(fiber.type)}),pendingComponentWillMountWarnings=[]);var UNSAFE_componentWillMountUniqueNames=new Set;0<pendingUNSAFE_ComponentWillMountWarnings.length&&(pendingUNSAFE_ComponentWillMountWarnings.forEach(function(fiber){UNSAFE_componentWillMountUniqueNames.add(getComponentNameFromFiber(fiber)||"Component"),didWarnAboutUnsafeLifecycles.add(fiber.type)}),pendingUNSAFE_ComponentWillMountWarnings=[]);var componentWillReceivePropsUniqueNames=new Set;0<pendingComponentWillReceivePropsWarnings.length&&(pendingComponentWillReceivePropsWarnings.forEach(function(fiber){componentWillReceivePropsUniqueNames.add(getComponentNameFromFiber(fiber)||"Component"),didWarnAboutUnsafeLifecycles.add(fiber.type)}),pendingComponentWillReceivePropsWarnings=[]);var UNSAFE_componentWillReceivePropsUniqueNames=new Set;0<pendingUNSAFE_ComponentWillReceivePropsWarnings.length&&(pendingUNSAFE_ComponentWillReceivePropsWarnings.forEach(function(fiber){UNSAFE_componentWillReceivePropsUniqueNames.add(getComponentNameFromFiber(fiber)||"Component"),didWarnAboutUnsafeLifecycles.add(fiber.type)}),pendingUNSAFE_ComponentWillReceivePropsWarnings=[]);var componentWillUpdateUniqueNames=new Set;0<pendingComponentWillUpdateWarnings.length&&(pendingComponentWillUpdateWarnings.forEach(function(fiber){componentWillUpdateUniqueNames.add(getComponentNameFromFiber(fiber)||"Component"),didWarnAboutUnsafeLifecycles.add(fiber.type)}),pendingComponentWillUpdateWarnings=[]);var UNSAFE_componentWillUpdateUniqueNames=new Set;if(0<pendingUNSAFE_ComponentWillUpdateWarnings.length&&(pendingUNSAFE_ComponentWillUpdateWarnings.forEach(function(fiber){UNSAFE_componentWillUpdateUniqueNames.add(getComponentNameFromFiber(fiber)||"Component"),didWarnAboutUnsafeLifecycles.add(fiber.type)}),pendingUNSAFE_ComponentWillUpdateWarnings=[]),0<UNSAFE_componentWillMountUniqueNames.size){var sortedNames=setToSortedString(UNSAFE_componentWillMountUniqueNames);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.
|
|
254
|
+
|
|
255
|
+
* Move code with side effects to componentDidMount, and set initial state in the constructor.
|
|
256
|
+
|
|
257
|
+
Please update the following components: %s`,sortedNames)}0<UNSAFE_componentWillReceivePropsUniqueNames.size&&(sortedNames=setToSortedString(UNSAFE_componentWillReceivePropsUniqueNames),console.error(`Using UNSAFE_componentWillReceiveProps in strict mode is not recommended and may indicate bugs in your code. See https://react.dev/link/unsafe-component-lifecycles for details.
|
|
258
|
+
|
|
259
|
+
* Move data fetching code or side effects to componentDidUpdate.
|
|
260
|
+
* If you're updating state whenever props change, refactor your code to use memoization techniques or move it to static getDerivedStateFromProps. Learn more at: https://react.dev/link/derived-state
|
|
261
|
+
|
|
262
|
+
Please update the following components: %s`,sortedNames)),0<UNSAFE_componentWillUpdateUniqueNames.size&&(sortedNames=setToSortedString(UNSAFE_componentWillUpdateUniqueNames),console.error(`Using UNSAFE_componentWillUpdate in strict mode is not recommended and may indicate bugs in your code. See https://react.dev/link/unsafe-component-lifecycles for details.
|
|
263
|
+
|
|
264
|
+
* Move data fetching code or side effects to componentDidUpdate.
|
|
265
|
+
|
|
266
|
+
Please update the following components: %s`,sortedNames)),0<componentWillMountUniqueNames.size&&(sortedNames=setToSortedString(componentWillMountUniqueNames),console.warn(`componentWillMount has been renamed, and is not recommended for use. See https://react.dev/link/unsafe-component-lifecycles for details.
|
|
267
|
+
|
|
268
|
+
* Move code with side effects to componentDidMount, and set initial state in the constructor.
|
|
269
|
+
* Rename componentWillMount to UNSAFE_componentWillMount to suppress this warning in non-strict mode. In React 18.x, only the UNSAFE_ name will work. To rename all deprecated lifecycles to their new names, you can run \`npx react-codemod rename-unsafe-lifecycles\` in your project source folder.
|
|
270
|
+
|
|
271
|
+
Please update the following components: %s`,sortedNames)),0<componentWillReceivePropsUniqueNames.size&&(sortedNames=setToSortedString(componentWillReceivePropsUniqueNames),console.warn(`componentWillReceiveProps has been renamed, and is not recommended for use. See https://react.dev/link/unsafe-component-lifecycles for details.
|
|
272
|
+
|
|
273
|
+
* Move data fetching code or side effects to componentDidUpdate.
|
|
274
|
+
* If you're updating state whenever props change, refactor your code to use memoization techniques or move it to static getDerivedStateFromProps. Learn more at: https://react.dev/link/derived-state
|
|
275
|
+
* Rename componentWillReceiveProps to UNSAFE_componentWillReceiveProps to suppress this warning in non-strict mode. In React 18.x, only the UNSAFE_ name will work. To rename all deprecated lifecycles to their new names, you can run \`npx react-codemod rename-unsafe-lifecycles\` in your project source folder.
|
|
276
|
+
|
|
277
|
+
Please update the following components: %s`,sortedNames)),0<componentWillUpdateUniqueNames.size&&(sortedNames=setToSortedString(componentWillUpdateUniqueNames),console.warn(`componentWillUpdate has been renamed, and is not recommended for use. See https://react.dev/link/unsafe-component-lifecycles for details.
|
|
278
|
+
|
|
279
|
+
* Move data fetching code or side effects to componentDidUpdate.
|
|
280
|
+
* Rename componentWillUpdate to UNSAFE_componentWillUpdate to suppress this warning in non-strict mode. In React 18.x, only the UNSAFE_ name will work. To rename all deprecated lifecycles to their new names, you can run \`npx react-codemod rename-unsafe-lifecycles\` in your project source folder.
|
|
281
|
+
|
|
282
|
+
Please update the following components: %s`,sortedNames))};var pendingLegacyContextWarning=new Map,didWarnAboutLegacyContext=new Set;ReactStrictModeWarnings.recordLegacyContextWarning=function(fiber,instance){for(var strictRoot=null,node=fiber;node!==null;)node.mode&StrictLegacyMode&&(strictRoot=node),node=node.return;strictRoot===null?console.error("Expected to find a StrictMode component in a strict mode tree. This error is likely caused by a bug in React. Please file an issue."):!didWarnAboutLegacyContext.has(fiber.type)&&(node=pendingLegacyContextWarning.get(strictRoot),fiber.type.contextTypes!=null||fiber.type.childContextTypes!=null||instance!==null&&typeof instance.getChildContext=="function")&&(node===void 0&&(node=[],pendingLegacyContextWarning.set(strictRoot,node)),node.push(fiber))},ReactStrictModeWarnings.flushLegacyContextWarning=function(){pendingLegacyContextWarning.forEach(function(fiberArray){if(fiberArray.length!==0){var firstFiber=fiberArray[0],uniqueNames=new Set;fiberArray.forEach(function(fiber){uniqueNames.add(getComponentNameFromFiber(fiber)||"Component"),didWarnAboutLegacyContext.add(fiber.type)});var sortedNames=setToSortedString(uniqueNames);runWithFiberInDEV(firstFiber,function(){console.error(`Legacy context API has been detected within a strict-mode tree.
|
|
283
|
+
|
|
284
|
+
The old API will be supported in all 16.x releases, but applications using it should migrate to the new version.
|
|
285
|
+
|
|
286
|
+
Please update the following components: %s
|
|
287
|
+
|
|
288
|
+
Learn more about this warning here: https://react.dev/link/legacy-context`,sortedNames)})}})},ReactStrictModeWarnings.discardPendingWarnings=function(){pendingComponentWillMountWarnings=[],pendingUNSAFE_ComponentWillMountWarnings=[],pendingComponentWillReceivePropsWarnings=[],pendingUNSAFE_ComponentWillReceivePropsWarnings=[],pendingComponentWillUpdateWarnings=[],pendingUNSAFE_ComponentWillUpdateWarnings=[],pendingLegacyContextWarning=new Map};var SuspenseException=Error("Suspense Exception: This is not a real error! It's an implementation detail of `use` to interrupt the current render. You must either rethrow it immediately, or move the `use` call outside of the `try/catch` block. Capturing without rethrowing will lead to unexpected behavior.\n\nTo handle async errors, wrap your component in an error boundary, or call the promise's `.catch` method and pass the result to `use`."),SuspenseyCommitException=Error("Suspense 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."),SuspenseActionException=Error("Suspense Exception: This is not a real error! It's an implementation detail of `useActionState` to interrupt the current render. You must either rethrow it immediately, or move the `useActionState` call outside of the `try/catch` block. Capturing without rethrowing will lead to unexpected behavior.\n\nTo handle async errors, wrap your component in an error boundary."),noopSuspenseyCommitThenable={then:function(){console.error('Internal React error: A listener was unexpectedly attached to a "noop" thenable. This is a bug in React. Please file an issue.')}},suspendedThenable=null,needsToResetSuspendedThenableDEV=!1,NoFlags=0,HasEffect=1,Insertion=2,Layout=4,Passive=8,UpdateState=0,ReplaceState=1,ForceUpdate=2,CaptureUpdate=3,hasForceUpdate=!1,didWarnUpdateInsideUpdate=!1,currentlyProcessingQueue=null,didReadFromEntangledAsyncAction=!1,currentTreeHiddenStackCursor=createCursor(null),prevEntangledRenderLanesCursor=createCursor(0),didWarnUncachedGetSnapshot,didWarnAboutMismatchedHooksForComponent=new Set,didWarnAboutUseWrappedInTryCatch=new Set,didWarnAboutAsyncClientComponent=new Set,didWarnAboutUseFormState=new Set,renderLanes=0,currentlyRenderingFiber=null,currentHook=null,workInProgressHook=null,didScheduleRenderPhaseUpdate=!1,didScheduleRenderPhaseUpdateDuringThisPass=!1,shouldDoubleInvokeUserFnsInHooksDEV=!1,localIdCounter=0,thenableIndexCounter$1=0,thenableState$1=null,globalClientIdCounter=0,RE_RENDER_LIMIT=25,currentHookNameInDev=null,hookTypesDev=null,hookTypesUpdateIndexDev=-1,ignorePreviousDependencies=!1,ContextOnlyDispatcher={readContext,use,useCallback:throwInvalidHookError,useContext:throwInvalidHookError,useEffect:throwInvalidHookError,useImperativeHandle:throwInvalidHookError,useLayoutEffect:throwInvalidHookError,useInsertionEffect:throwInvalidHookError,useMemo:throwInvalidHookError,useReducer:throwInvalidHookError,useRef:throwInvalidHookError,useState:throwInvalidHookError,useDebugValue:throwInvalidHookError,useDeferredValue:throwInvalidHookError,useTransition:throwInvalidHookError,useSyncExternalStore:throwInvalidHookError,useId:throwInvalidHookError,useHostTransitionStatus:throwInvalidHookError,useFormState:throwInvalidHookError,useActionState:throwInvalidHookError,useOptimistic:throwInvalidHookError,useMemoCache:throwInvalidHookError,useCacheRefresh:throwInvalidHookError},HooksDispatcherOnMountInDEV=null,HooksDispatcherOnMountWithHookTypesInDEV=null,HooksDispatcherOnUpdateInDEV=null,HooksDispatcherOnRerenderInDEV=null,InvalidNestedHooksDispatcherOnMountInDEV=null,InvalidNestedHooksDispatcherOnUpdateInDEV=null,InvalidNestedHooksDispatcherOnRerenderInDEV=null;HooksDispatcherOnMountInDEV={readContext:function(context){return readContext(context)},use,useCallback:function(callback,deps){return currentHookNameInDev="useCallback",mountHookTypesDev(),checkDepsAreArrayDev(deps),mountCallback(callback,deps)},useContext:function(context){return currentHookNameInDev="useContext",mountHookTypesDev(),readContext(context)},useEffect:function(create2,createDeps){return currentHookNameInDev="useEffect",mountHookTypesDev(),checkDepsAreArrayDev(createDeps),mountEffect(create2,createDeps)},useImperativeHandle:function(ref,create2,deps){return currentHookNameInDev="useImperativeHandle",mountHookTypesDev(),checkDepsAreArrayDev(deps),mountImperativeHandle(ref,create2,deps)},useInsertionEffect:function(create2,deps){currentHookNameInDev="useInsertionEffect",mountHookTypesDev(),checkDepsAreArrayDev(deps),mountEffectImpl(4,Insertion,create2,deps)},useLayoutEffect:function(create2,deps){return currentHookNameInDev="useLayoutEffect",mountHookTypesDev(),checkDepsAreArrayDev(deps),mountLayoutEffect(create2,deps)},useMemo:function(create2,deps){currentHookNameInDev="useMemo",mountHookTypesDev(),checkDepsAreArrayDev(deps);var prevDispatcher=ReactSharedInternals.H;ReactSharedInternals.H=InvalidNestedHooksDispatcherOnMountInDEV;try{return mountMemo(create2,deps)}finally{ReactSharedInternals.H=prevDispatcher}},useReducer:function(reducer,initialArg,init){currentHookNameInDev="useReducer",mountHookTypesDev();var prevDispatcher=ReactSharedInternals.H;ReactSharedInternals.H=InvalidNestedHooksDispatcherOnMountInDEV;try{return mountReducer(reducer,initialArg,init)}finally{ReactSharedInternals.H=prevDispatcher}},useRef:function(initialValue){return currentHookNameInDev="useRef",mountHookTypesDev(),mountRef(initialValue)},useState:function(initialState){currentHookNameInDev="useState",mountHookTypesDev();var prevDispatcher=ReactSharedInternals.H;ReactSharedInternals.H=InvalidNestedHooksDispatcherOnMountInDEV;try{return mountState(initialState)}finally{ReactSharedInternals.H=prevDispatcher}},useDebugValue:function(){currentHookNameInDev="useDebugValue",mountHookTypesDev()},useDeferredValue:function(value,initialValue){return currentHookNameInDev="useDeferredValue",mountHookTypesDev(),mountDeferredValue(value,initialValue)},useTransition:function(){return currentHookNameInDev="useTransition",mountHookTypesDev(),mountTransition()},useSyncExternalStore:function(subscribe,getSnapshot,getServerSnapshot){return currentHookNameInDev="useSyncExternalStore",mountHookTypesDev(),mountSyncExternalStore(subscribe,getSnapshot,getServerSnapshot)},useId:function(){return currentHookNameInDev="useId",mountHookTypesDev(),mountId()},useFormState:function(action,initialState){return currentHookNameInDev="useFormState",mountHookTypesDev(),warnOnUseFormStateInDev(),mountActionState(action,initialState)},useActionState:function(action,initialState){return currentHookNameInDev="useActionState",mountHookTypesDev(),mountActionState(action,initialState)},useOptimistic:function(passthrough){return currentHookNameInDev="useOptimistic",mountHookTypesDev(),mountOptimistic(passthrough)},useHostTransitionStatus,useMemoCache,useCacheRefresh:function(){return currentHookNameInDev="useCacheRefresh",mountHookTypesDev(),mountRefresh()}},HooksDispatcherOnMountWithHookTypesInDEV={readContext:function(context){return readContext(context)},use,useCallback:function(callback,deps){return currentHookNameInDev="useCallback",updateHookTypesDev(),mountCallback(callback,deps)},useContext:function(context){return currentHookNameInDev="useContext",updateHookTypesDev(),readContext(context)},useEffect:function(create2,createDeps){return currentHookNameInDev="useEffect",updateHookTypesDev(),mountEffect(create2,createDeps)},useImperativeHandle:function(ref,create2,deps){return currentHookNameInDev="useImperativeHandle",updateHookTypesDev(),mountImperativeHandle(ref,create2,deps)},useInsertionEffect:function(create2,deps){currentHookNameInDev="useInsertionEffect",updateHookTypesDev(),mountEffectImpl(4,Insertion,create2,deps)},useLayoutEffect:function(create2,deps){return currentHookNameInDev="useLayoutEffect",updateHookTypesDev(),mountLayoutEffect(create2,deps)},useMemo:function(create2,deps){currentHookNameInDev="useMemo",updateHookTypesDev();var prevDispatcher=ReactSharedInternals.H;ReactSharedInternals.H=InvalidNestedHooksDispatcherOnMountInDEV;try{return mountMemo(create2,deps)}finally{ReactSharedInternals.H=prevDispatcher}},useReducer:function(reducer,initialArg,init){currentHookNameInDev="useReducer",updateHookTypesDev();var prevDispatcher=ReactSharedInternals.H;ReactSharedInternals.H=InvalidNestedHooksDispatcherOnMountInDEV;try{return mountReducer(reducer,initialArg,init)}finally{ReactSharedInternals.H=prevDispatcher}},useRef:function(initialValue){return currentHookNameInDev="useRef",updateHookTypesDev(),mountRef(initialValue)},useState:function(initialState){currentHookNameInDev="useState",updateHookTypesDev();var prevDispatcher=ReactSharedInternals.H;ReactSharedInternals.H=InvalidNestedHooksDispatcherOnMountInDEV;try{return mountState(initialState)}finally{ReactSharedInternals.H=prevDispatcher}},useDebugValue:function(){currentHookNameInDev="useDebugValue",updateHookTypesDev()},useDeferredValue:function(value,initialValue){return currentHookNameInDev="useDeferredValue",updateHookTypesDev(),mountDeferredValue(value,initialValue)},useTransition:function(){return currentHookNameInDev="useTransition",updateHookTypesDev(),mountTransition()},useSyncExternalStore:function(subscribe,getSnapshot,getServerSnapshot){return currentHookNameInDev="useSyncExternalStore",updateHookTypesDev(),mountSyncExternalStore(subscribe,getSnapshot,getServerSnapshot)},useId:function(){return currentHookNameInDev="useId",updateHookTypesDev(),mountId()},useActionState:function(action,initialState){return currentHookNameInDev="useActionState",updateHookTypesDev(),mountActionState(action,initialState)},useFormState:function(action,initialState){return currentHookNameInDev="useFormState",updateHookTypesDev(),warnOnUseFormStateInDev(),mountActionState(action,initialState)},useOptimistic:function(passthrough){return currentHookNameInDev="useOptimistic",updateHookTypesDev(),mountOptimistic(passthrough)},useHostTransitionStatus,useMemoCache,useCacheRefresh:function(){return currentHookNameInDev="useCacheRefresh",updateHookTypesDev(),mountRefresh()}},HooksDispatcherOnUpdateInDEV={readContext:function(context){return readContext(context)},use,useCallback:function(callback,deps){return currentHookNameInDev="useCallback",updateHookTypesDev(),updateCallback(callback,deps)},useContext:function(context){return currentHookNameInDev="useContext",updateHookTypesDev(),readContext(context)},useEffect:function(create2,createDeps){currentHookNameInDev="useEffect",updateHookTypesDev(),updateEffectImpl(2048,Passive,create2,createDeps)},useImperativeHandle:function(ref,create2,deps){return currentHookNameInDev="useImperativeHandle",updateHookTypesDev(),updateImperativeHandle(ref,create2,deps)},useInsertionEffect:function(create2,deps){return currentHookNameInDev="useInsertionEffect",updateHookTypesDev(),updateEffectImpl(4,Insertion,create2,deps)},useLayoutEffect:function(create2,deps){return currentHookNameInDev="useLayoutEffect",updateHookTypesDev(),updateEffectImpl(4,Layout,create2,deps)},useMemo:function(create2,deps){currentHookNameInDev="useMemo",updateHookTypesDev();var prevDispatcher=ReactSharedInternals.H;ReactSharedInternals.H=InvalidNestedHooksDispatcherOnUpdateInDEV;try{return updateMemo(create2,deps)}finally{ReactSharedInternals.H=prevDispatcher}},useReducer:function(reducer,initialArg,init){currentHookNameInDev="useReducer",updateHookTypesDev();var prevDispatcher=ReactSharedInternals.H;ReactSharedInternals.H=InvalidNestedHooksDispatcherOnUpdateInDEV;try{return updateReducer(reducer,initialArg,init)}finally{ReactSharedInternals.H=prevDispatcher}},useRef:function(){return currentHookNameInDev="useRef",updateHookTypesDev(),updateWorkInProgressHook().memoizedState},useState:function(){currentHookNameInDev="useState",updateHookTypesDev();var prevDispatcher=ReactSharedInternals.H;ReactSharedInternals.H=InvalidNestedHooksDispatcherOnUpdateInDEV;try{return updateReducer(basicStateReducer)}finally{ReactSharedInternals.H=prevDispatcher}},useDebugValue:function(){currentHookNameInDev="useDebugValue",updateHookTypesDev()},useDeferredValue:function(value,initialValue){return currentHookNameInDev="useDeferredValue",updateHookTypesDev(),updateDeferredValue(value,initialValue)},useTransition:function(){return currentHookNameInDev="useTransition",updateHookTypesDev(),updateTransition()},useSyncExternalStore:function(subscribe,getSnapshot,getServerSnapshot){return currentHookNameInDev="useSyncExternalStore",updateHookTypesDev(),updateSyncExternalStore(subscribe,getSnapshot,getServerSnapshot)},useId:function(){return currentHookNameInDev="useId",updateHookTypesDev(),updateWorkInProgressHook().memoizedState},useFormState:function(action){return currentHookNameInDev="useFormState",updateHookTypesDev(),warnOnUseFormStateInDev(),updateActionState(action)},useActionState:function(action){return currentHookNameInDev="useActionState",updateHookTypesDev(),updateActionState(action)},useOptimistic:function(passthrough,reducer){return currentHookNameInDev="useOptimistic",updateHookTypesDev(),updateOptimistic(passthrough,reducer)},useHostTransitionStatus,useMemoCache,useCacheRefresh:function(){return currentHookNameInDev="useCacheRefresh",updateHookTypesDev(),updateWorkInProgressHook().memoizedState}},HooksDispatcherOnRerenderInDEV={readContext:function(context){return readContext(context)},use,useCallback:function(callback,deps){return currentHookNameInDev="useCallback",updateHookTypesDev(),updateCallback(callback,deps)},useContext:function(context){return currentHookNameInDev="useContext",updateHookTypesDev(),readContext(context)},useEffect:function(create2,createDeps){currentHookNameInDev="useEffect",updateHookTypesDev(),updateEffectImpl(2048,Passive,create2,createDeps)},useImperativeHandle:function(ref,create2,deps){return currentHookNameInDev="useImperativeHandle",updateHookTypesDev(),updateImperativeHandle(ref,create2,deps)},useInsertionEffect:function(create2,deps){return currentHookNameInDev="useInsertionEffect",updateHookTypesDev(),updateEffectImpl(4,Insertion,create2,deps)},useLayoutEffect:function(create2,deps){return currentHookNameInDev="useLayoutEffect",updateHookTypesDev(),updateEffectImpl(4,Layout,create2,deps)},useMemo:function(create2,deps){currentHookNameInDev="useMemo",updateHookTypesDev();var prevDispatcher=ReactSharedInternals.H;ReactSharedInternals.H=InvalidNestedHooksDispatcherOnRerenderInDEV;try{return updateMemo(create2,deps)}finally{ReactSharedInternals.H=prevDispatcher}},useReducer:function(reducer,initialArg,init){currentHookNameInDev="useReducer",updateHookTypesDev();var prevDispatcher=ReactSharedInternals.H;ReactSharedInternals.H=InvalidNestedHooksDispatcherOnRerenderInDEV;try{return rerenderReducer(reducer,initialArg,init)}finally{ReactSharedInternals.H=prevDispatcher}},useRef:function(){return currentHookNameInDev="useRef",updateHookTypesDev(),updateWorkInProgressHook().memoizedState},useState:function(){currentHookNameInDev="useState",updateHookTypesDev();var prevDispatcher=ReactSharedInternals.H;ReactSharedInternals.H=InvalidNestedHooksDispatcherOnRerenderInDEV;try{return rerenderReducer(basicStateReducer)}finally{ReactSharedInternals.H=prevDispatcher}},useDebugValue:function(){currentHookNameInDev="useDebugValue",updateHookTypesDev()},useDeferredValue:function(value,initialValue){return currentHookNameInDev="useDeferredValue",updateHookTypesDev(),rerenderDeferredValue(value,initialValue)},useTransition:function(){return currentHookNameInDev="useTransition",updateHookTypesDev(),rerenderTransition()},useSyncExternalStore:function(subscribe,getSnapshot,getServerSnapshot){return currentHookNameInDev="useSyncExternalStore",updateHookTypesDev(),updateSyncExternalStore(subscribe,getSnapshot,getServerSnapshot)},useId:function(){return currentHookNameInDev="useId",updateHookTypesDev(),updateWorkInProgressHook().memoizedState},useFormState:function(action){return currentHookNameInDev="useFormState",updateHookTypesDev(),warnOnUseFormStateInDev(),rerenderActionState(action)},useActionState:function(action){return currentHookNameInDev="useActionState",updateHookTypesDev(),rerenderActionState(action)},useOptimistic:function(passthrough,reducer){return currentHookNameInDev="useOptimistic",updateHookTypesDev(),rerenderOptimistic(passthrough,reducer)},useHostTransitionStatus,useMemoCache,useCacheRefresh:function(){return currentHookNameInDev="useCacheRefresh",updateHookTypesDev(),updateWorkInProgressHook().memoizedState}},InvalidNestedHooksDispatcherOnMountInDEV={readContext:function(context){return warnInvalidContextAccess(),readContext(context)},use:function(usable){return warnInvalidHookAccess(),use(usable)},useCallback:function(callback,deps){return currentHookNameInDev="useCallback",warnInvalidHookAccess(),mountHookTypesDev(),mountCallback(callback,deps)},useContext:function(context){return currentHookNameInDev="useContext",warnInvalidHookAccess(),mountHookTypesDev(),readContext(context)},useEffect:function(create2,createDeps){return currentHookNameInDev="useEffect",warnInvalidHookAccess(),mountHookTypesDev(),mountEffect(create2,createDeps)},useImperativeHandle:function(ref,create2,deps){return currentHookNameInDev="useImperativeHandle",warnInvalidHookAccess(),mountHookTypesDev(),mountImperativeHandle(ref,create2,deps)},useInsertionEffect:function(create2,deps){currentHookNameInDev="useInsertionEffect",warnInvalidHookAccess(),mountHookTypesDev(),mountEffectImpl(4,Insertion,create2,deps)},useLayoutEffect:function(create2,deps){return currentHookNameInDev="useLayoutEffect",warnInvalidHookAccess(),mountHookTypesDev(),mountLayoutEffect(create2,deps)},useMemo:function(create2,deps){currentHookNameInDev="useMemo",warnInvalidHookAccess(),mountHookTypesDev();var prevDispatcher=ReactSharedInternals.H;ReactSharedInternals.H=InvalidNestedHooksDispatcherOnMountInDEV;try{return mountMemo(create2,deps)}finally{ReactSharedInternals.H=prevDispatcher}},useReducer:function(reducer,initialArg,init){currentHookNameInDev="useReducer",warnInvalidHookAccess(),mountHookTypesDev();var prevDispatcher=ReactSharedInternals.H;ReactSharedInternals.H=InvalidNestedHooksDispatcherOnMountInDEV;try{return mountReducer(reducer,initialArg,init)}finally{ReactSharedInternals.H=prevDispatcher}},useRef:function(initialValue){return currentHookNameInDev="useRef",warnInvalidHookAccess(),mountHookTypesDev(),mountRef(initialValue)},useState:function(initialState){currentHookNameInDev="useState",warnInvalidHookAccess(),mountHookTypesDev();var prevDispatcher=ReactSharedInternals.H;ReactSharedInternals.H=InvalidNestedHooksDispatcherOnMountInDEV;try{return mountState(initialState)}finally{ReactSharedInternals.H=prevDispatcher}},useDebugValue:function(){currentHookNameInDev="useDebugValue",warnInvalidHookAccess(),mountHookTypesDev()},useDeferredValue:function(value,initialValue){return currentHookNameInDev="useDeferredValue",warnInvalidHookAccess(),mountHookTypesDev(),mountDeferredValue(value,initialValue)},useTransition:function(){return currentHookNameInDev="useTransition",warnInvalidHookAccess(),mountHookTypesDev(),mountTransition()},useSyncExternalStore:function(subscribe,getSnapshot,getServerSnapshot){return currentHookNameInDev="useSyncExternalStore",warnInvalidHookAccess(),mountHookTypesDev(),mountSyncExternalStore(subscribe,getSnapshot,getServerSnapshot)},useId:function(){return currentHookNameInDev="useId",warnInvalidHookAccess(),mountHookTypesDev(),mountId()},useFormState:function(action,initialState){return currentHookNameInDev="useFormState",warnInvalidHookAccess(),mountHookTypesDev(),mountActionState(action,initialState)},useActionState:function(action,initialState){return currentHookNameInDev="useActionState",warnInvalidHookAccess(),mountHookTypesDev(),mountActionState(action,initialState)},useOptimistic:function(passthrough){return currentHookNameInDev="useOptimistic",warnInvalidHookAccess(),mountHookTypesDev(),mountOptimistic(passthrough)},useMemoCache:function(size){return warnInvalidHookAccess(),useMemoCache(size)},useHostTransitionStatus,useCacheRefresh:function(){return currentHookNameInDev="useCacheRefresh",mountHookTypesDev(),mountRefresh()}},InvalidNestedHooksDispatcherOnUpdateInDEV={readContext:function(context){return warnInvalidContextAccess(),readContext(context)},use:function(usable){return warnInvalidHookAccess(),use(usable)},useCallback:function(callback,deps){return currentHookNameInDev="useCallback",warnInvalidHookAccess(),updateHookTypesDev(),updateCallback(callback,deps)},useContext:function(context){return currentHookNameInDev="useContext",warnInvalidHookAccess(),updateHookTypesDev(),readContext(context)},useEffect:function(create2,createDeps){currentHookNameInDev="useEffect",warnInvalidHookAccess(),updateHookTypesDev(),updateEffectImpl(2048,Passive,create2,createDeps)},useImperativeHandle:function(ref,create2,deps){return currentHookNameInDev="useImperativeHandle",warnInvalidHookAccess(),updateHookTypesDev(),updateImperativeHandle(ref,create2,deps)},useInsertionEffect:function(create2,deps){return currentHookNameInDev="useInsertionEffect",warnInvalidHookAccess(),updateHookTypesDev(),updateEffectImpl(4,Insertion,create2,deps)},useLayoutEffect:function(create2,deps){return currentHookNameInDev="useLayoutEffect",warnInvalidHookAccess(),updateHookTypesDev(),updateEffectImpl(4,Layout,create2,deps)},useMemo:function(create2,deps){currentHookNameInDev="useMemo",warnInvalidHookAccess(),updateHookTypesDev();var prevDispatcher=ReactSharedInternals.H;ReactSharedInternals.H=InvalidNestedHooksDispatcherOnUpdateInDEV;try{return updateMemo(create2,deps)}finally{ReactSharedInternals.H=prevDispatcher}},useReducer:function(reducer,initialArg,init){currentHookNameInDev="useReducer",warnInvalidHookAccess(),updateHookTypesDev();var prevDispatcher=ReactSharedInternals.H;ReactSharedInternals.H=InvalidNestedHooksDispatcherOnUpdateInDEV;try{return updateReducer(reducer,initialArg,init)}finally{ReactSharedInternals.H=prevDispatcher}},useRef:function(){return currentHookNameInDev="useRef",warnInvalidHookAccess(),updateHookTypesDev(),updateWorkInProgressHook().memoizedState},useState:function(){currentHookNameInDev="useState",warnInvalidHookAccess(),updateHookTypesDev();var prevDispatcher=ReactSharedInternals.H;ReactSharedInternals.H=InvalidNestedHooksDispatcherOnUpdateInDEV;try{return updateReducer(basicStateReducer)}finally{ReactSharedInternals.H=prevDispatcher}},useDebugValue:function(){currentHookNameInDev="useDebugValue",warnInvalidHookAccess(),updateHookTypesDev()},useDeferredValue:function(value,initialValue){return currentHookNameInDev="useDeferredValue",warnInvalidHookAccess(),updateHookTypesDev(),updateDeferredValue(value,initialValue)},useTransition:function(){return currentHookNameInDev="useTransition",warnInvalidHookAccess(),updateHookTypesDev(),updateTransition()},useSyncExternalStore:function(subscribe,getSnapshot,getServerSnapshot){return currentHookNameInDev="useSyncExternalStore",warnInvalidHookAccess(),updateHookTypesDev(),updateSyncExternalStore(subscribe,getSnapshot,getServerSnapshot)},useId:function(){return currentHookNameInDev="useId",warnInvalidHookAccess(),updateHookTypesDev(),updateWorkInProgressHook().memoizedState},useFormState:function(action){return currentHookNameInDev="useFormState",warnInvalidHookAccess(),updateHookTypesDev(),updateActionState(action)},useActionState:function(action){return currentHookNameInDev="useActionState",warnInvalidHookAccess(),updateHookTypesDev(),updateActionState(action)},useOptimistic:function(passthrough,reducer){return currentHookNameInDev="useOptimistic",warnInvalidHookAccess(),updateHookTypesDev(),updateOptimistic(passthrough,reducer)},useMemoCache:function(size){return warnInvalidHookAccess(),useMemoCache(size)},useHostTransitionStatus,useCacheRefresh:function(){return currentHookNameInDev="useCacheRefresh",updateHookTypesDev(),updateWorkInProgressHook().memoizedState}},InvalidNestedHooksDispatcherOnRerenderInDEV={readContext:function(context){return warnInvalidContextAccess(),readContext(context)},use:function(usable){return warnInvalidHookAccess(),use(usable)},useCallback:function(callback,deps){return currentHookNameInDev="useCallback",warnInvalidHookAccess(),updateHookTypesDev(),updateCallback(callback,deps)},useContext:function(context){return currentHookNameInDev="useContext",warnInvalidHookAccess(),updateHookTypesDev(),readContext(context)},useEffect:function(create2,createDeps){currentHookNameInDev="useEffect",warnInvalidHookAccess(),updateHookTypesDev(),updateEffectImpl(2048,Passive,create2,createDeps)},useImperativeHandle:function(ref,create2,deps){return currentHookNameInDev="useImperativeHandle",warnInvalidHookAccess(),updateHookTypesDev(),updateImperativeHandle(ref,create2,deps)},useInsertionEffect:function(create2,deps){return currentHookNameInDev="useInsertionEffect",warnInvalidHookAccess(),updateHookTypesDev(),updateEffectImpl(4,Insertion,create2,deps)},useLayoutEffect:function(create2,deps){return currentHookNameInDev="useLayoutEffect",warnInvalidHookAccess(),updateHookTypesDev(),updateEffectImpl(4,Layout,create2,deps)},useMemo:function(create2,deps){currentHookNameInDev="useMemo",warnInvalidHookAccess(),updateHookTypesDev();var prevDispatcher=ReactSharedInternals.H;ReactSharedInternals.H=InvalidNestedHooksDispatcherOnUpdateInDEV;try{return updateMemo(create2,deps)}finally{ReactSharedInternals.H=prevDispatcher}},useReducer:function(reducer,initialArg,init){currentHookNameInDev="useReducer",warnInvalidHookAccess(),updateHookTypesDev();var prevDispatcher=ReactSharedInternals.H;ReactSharedInternals.H=InvalidNestedHooksDispatcherOnUpdateInDEV;try{return rerenderReducer(reducer,initialArg,init)}finally{ReactSharedInternals.H=prevDispatcher}},useRef:function(){return currentHookNameInDev="useRef",warnInvalidHookAccess(),updateHookTypesDev(),updateWorkInProgressHook().memoizedState},useState:function(){currentHookNameInDev="useState",warnInvalidHookAccess(),updateHookTypesDev();var prevDispatcher=ReactSharedInternals.H;ReactSharedInternals.H=InvalidNestedHooksDispatcherOnUpdateInDEV;try{return rerenderReducer(basicStateReducer)}finally{ReactSharedInternals.H=prevDispatcher}},useDebugValue:function(){currentHookNameInDev="useDebugValue",warnInvalidHookAccess(),updateHookTypesDev()},useDeferredValue:function(value,initialValue){return currentHookNameInDev="useDeferredValue",warnInvalidHookAccess(),updateHookTypesDev(),rerenderDeferredValue(value,initialValue)},useTransition:function(){return currentHookNameInDev="useTransition",warnInvalidHookAccess(),updateHookTypesDev(),rerenderTransition()},useSyncExternalStore:function(subscribe,getSnapshot,getServerSnapshot){return currentHookNameInDev="useSyncExternalStore",warnInvalidHookAccess(),updateHookTypesDev(),updateSyncExternalStore(subscribe,getSnapshot,getServerSnapshot)},useId:function(){return currentHookNameInDev="useId",warnInvalidHookAccess(),updateHookTypesDev(),updateWorkInProgressHook().memoizedState},useFormState:function(action){return currentHookNameInDev="useFormState",warnInvalidHookAccess(),updateHookTypesDev(),rerenderActionState(action)},useActionState:function(action){return currentHookNameInDev="useActionState",warnInvalidHookAccess(),updateHookTypesDev(),rerenderActionState(action)},useOptimistic:function(passthrough,reducer){return currentHookNameInDev="useOptimistic",warnInvalidHookAccess(),updateHookTypesDev(),rerenderOptimistic(passthrough,reducer)},useMemoCache:function(size){return warnInvalidHookAccess(),useMemoCache(size)},useHostTransitionStatus,useCacheRefresh:function(){return currentHookNameInDev="useCacheRefresh",updateHookTypesDev(),updateWorkInProgressHook().memoizedState}};var callComponent={"react-stack-bottom-frame":function(Component,props,secondArg){var wasRendering=isRendering;isRendering=!0;try{return Component(props,secondArg)}finally{isRendering=wasRendering}}},callComponentInDEV=callComponent["react-stack-bottom-frame"].bind(callComponent),callRender={"react-stack-bottom-frame":function(instance){var wasRendering=isRendering;isRendering=!0;try{return instance.render()}finally{isRendering=wasRendering}}},callRenderInDEV=callRender["react-stack-bottom-frame"].bind(callRender),callComponentDidMount={"react-stack-bottom-frame":function(finishedWork,instance){try{instance.componentDidMount()}catch(error){captureCommitPhaseError(finishedWork,finishedWork.return,error)}}},callComponentDidMountInDEV=callComponentDidMount["react-stack-bottom-frame"].bind(callComponentDidMount),callComponentDidUpdate={"react-stack-bottom-frame":function(finishedWork,instance,prevProps,prevState,snapshot){try{instance.componentDidUpdate(prevProps,prevState,snapshot)}catch(error){captureCommitPhaseError(finishedWork,finishedWork.return,error)}}},callComponentDidUpdateInDEV=callComponentDidUpdate["react-stack-bottom-frame"].bind(callComponentDidUpdate),callComponentDidCatch={"react-stack-bottom-frame":function(instance,errorInfo){var stack=errorInfo.stack;instance.componentDidCatch(errorInfo.value,{componentStack:stack!==null?stack:""})}},callComponentDidCatchInDEV=callComponentDidCatch["react-stack-bottom-frame"].bind(callComponentDidCatch),callComponentWillUnmount={"react-stack-bottom-frame":function(current2,nearestMountedAncestor,instance){try{instance.componentWillUnmount()}catch(error){captureCommitPhaseError(current2,nearestMountedAncestor,error)}}},callComponentWillUnmountInDEV=callComponentWillUnmount["react-stack-bottom-frame"].bind(callComponentWillUnmount),callCreate={"react-stack-bottom-frame":function(effect){effect.resourceKind!=null&&console.error("Expected only SimpleEffects when enableUseEffectCRUDOverload is disabled, got %s",effect.resourceKind);var create2=effect.create;return effect=effect.inst,create2=create2(),effect.destroy=create2}},callCreateInDEV=callCreate["react-stack-bottom-frame"].bind(callCreate),callDestroy={"react-stack-bottom-frame":function(current2,nearestMountedAncestor,destroy){try{destroy()}catch(error){captureCommitPhaseError(current2,nearestMountedAncestor,error)}}},callDestroyInDEV=callDestroy["react-stack-bottom-frame"].bind(callDestroy),callLazyInit={"react-stack-bottom-frame":function(lazy){var init=lazy._init;return init(lazy._payload)}},callLazyInitInDEV=callLazyInit["react-stack-bottom-frame"].bind(callLazyInit),thenableState=null,thenableIndexCounter=0,currentDebugInfo=null,didWarnAboutMaps,didWarnAboutGenerators=didWarnAboutMaps=!1,ownerHasKeyUseWarning={},ownerHasFunctionTypeWarning={},ownerHasSymbolTypeWarning={};warnForMissingKey=function(returnFiber,workInProgress2,child){if(child!==null&&typeof child=="object"&&child._store&&(!child._store.validated&&child.key==null||child._store.validated===2)){if(typeof child._store!="object")throw Error("React Component in warnForMissingKey should have a _store. This error is likely caused by a bug in React. Please file an issue.");child._store.validated=1;var componentName2=getComponentNameFromFiber(returnFiber),componentKey=componentName2||"null";if(!ownerHasKeyUseWarning[componentKey]){ownerHasKeyUseWarning[componentKey]=!0,child=child._owner,returnFiber=returnFiber._debugOwner;var currentComponentErrorInfo="";returnFiber&&typeof returnFiber.tag=="number"&&(componentKey=getComponentNameFromFiber(returnFiber))&&(currentComponentErrorInfo=`
|
|
289
|
+
|
|
290
|
+
Check the render method of \``+componentKey+"`."),currentComponentErrorInfo||componentName2&&(currentComponentErrorInfo=`
|
|
291
|
+
|
|
292
|
+
Check the top-level render call using <`+componentName2+">.");var childOwnerAppendix="";child!=null&&returnFiber!==child&&(componentName2=null,typeof child.tag=="number"?componentName2=getComponentNameFromFiber(child):typeof child.name=="string"&&(componentName2=child.name),componentName2&&(childOwnerAppendix=" It was passed a child from "+componentName2+".")),runWithFiberInDEV(workInProgress2,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.',currentComponentErrorInfo,childOwnerAppendix)})}}};var reconcileChildFibers=createChildReconciler(!0),mountChildFibers=createChildReconciler(!1),suspenseHandlerStackCursor=createCursor(null),shellBoundary=null,SubtreeSuspenseContextMask=1,ForceSuspenseFallback=2,suspenseStackCursor=createCursor(0),fakeInternalInstance={},didWarnAboutStateAssignmentForComponent=new Set,didWarnAboutUninitializedState=new Set,didWarnAboutGetSnapshotBeforeUpdateWithoutDidUpdate=new Set,didWarnAboutLegacyLifecyclesAndDerivedState=new Set,didWarnAboutDirectlyAssigningPropsToState=new Set,didWarnAboutUndefinedDerivedState=new Set,didWarnAboutContextTypes$1=new Set,didWarnAboutChildContextTypes=new Set,didWarnAboutInvalidateContextType=new Set,didWarnOnInvalidCallback=new Set;Object.freeze(fakeInternalInstance);var classComponentUpdater={enqueueSetState:function(inst,payload,callback){inst=inst._reactInternals;var lane=requestUpdateLane(inst),update=createUpdate(lane);update.payload=payload,callback!=null&&(warnOnInvalidCallback(callback),update.callback=callback),payload=enqueueUpdate(inst,update,lane),payload!==null&&(scheduleUpdateOnFiber(payload,inst,lane),entangleTransitions(payload,inst,lane)),markStateUpdateScheduled(inst,lane)},enqueueReplaceState:function(inst,payload,callback){inst=inst._reactInternals;var lane=requestUpdateLane(inst),update=createUpdate(lane);update.tag=ReplaceState,update.payload=payload,callback!=null&&(warnOnInvalidCallback(callback),update.callback=callback),payload=enqueueUpdate(inst,update,lane),payload!==null&&(scheduleUpdateOnFiber(payload,inst,lane),entangleTransitions(payload,inst,lane)),markStateUpdateScheduled(inst,lane)},enqueueForceUpdate:function(inst,callback){inst=inst._reactInternals;var lane=requestUpdateLane(inst),update=createUpdate(lane);update.tag=ForceUpdate,callback!=null&&(warnOnInvalidCallback(callback),update.callback=callback),callback=enqueueUpdate(inst,update,lane),callback!==null&&(scheduleUpdateOnFiber(callback,inst,lane),entangleTransitions(callback,inst,lane)),injectedProfilingHooks!==null&&typeof injectedProfilingHooks.markForceUpdateScheduled=="function"&&injectedProfilingHooks.markForceUpdateScheduled(inst,lane)}},reportGlobalError=typeof reportError=="function"?reportError:function(error){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var event=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof error=="object"&&error!==null&&typeof error.message=="string"?String(error.message):String(error),error});if(!window.dispatchEvent(event))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",error);return}console.error(error)},componentName=null,errorBoundaryName=null,SelectiveHydrationException=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."),didReceiveUpdate=!1,didWarnAboutBadClass={},didWarnAboutContextTypeOnFunctionComponent={},didWarnAboutContextTypes={},didWarnAboutGetDerivedStateOnFunctionComponent={},didWarnAboutReassigningProps=!1,didWarnAboutRevealOrder={},didWarnAboutTailOptions={},SUSPENDED_MARKER={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null},hasWarnedAboutUsingNoValuePropOnContextProvider=!1,didWarnAboutUndefinedSnapshotBeforeUpdate=null;didWarnAboutUndefinedSnapshotBeforeUpdate=new Set;var offscreenSubtreeIsHidden=!1,offscreenSubtreeWasHidden=!1,needsFormReset=!1,PossiblyWeakSet=typeof WeakSet=="function"?WeakSet:Set,nextEffect=null,inProgressLanes=null,inProgressRoot=null,hostParent=null,hostParentIsContainer=!1,currentHoistableRoot=null,suspenseyCommitFlag=8192,DefaultAsyncDispatcher={getCacheForType:function(resourceType){var cache=readContext(CacheContext),cacheForType=cache.data.get(resourceType);return cacheForType===void 0&&(cacheForType=resourceType(),cache.data.set(resourceType,cacheForType)),cacheForType},getOwner:function(){return current}};if(typeof Symbol=="function"&&Symbol.for){var symbolFor=Symbol.for;symbolFor("selector.component"),symbolFor("selector.has_pseudo_class"),symbolFor("selector.role"),symbolFor("selector.test_id"),symbolFor("selector.text")}var commitHooks=[],PossiblyWeakMap=typeof WeakMap=="function"?WeakMap:Map,NoContext=0,RenderContext=2,CommitContext=4,RootInProgress=0,RootFatalErrored=1,RootErrored=2,RootSuspended=3,RootSuspendedWithDelay=4,RootSuspendedAtTheShell=6,RootCompleted=5,executionContext=NoContext,workInProgressRoot=null,workInProgress=null,workInProgressRootRenderLanes=0,NotSuspended=0,SuspendedOnError=1,SuspendedOnData=2,SuspendedOnImmediate=3,SuspendedOnInstance=4,SuspendedOnInstanceAndReadyToContinue=5,SuspendedOnDeprecatedThrowPromise=6,SuspendedAndReadyToContinue=7,SuspendedOnHydration=8,SuspendedOnAction=9,workInProgressSuspendedReason=NotSuspended,workInProgressThrownValue=null,workInProgressRootDidSkipSuspendedSiblings=!1,workInProgressRootIsPrerendering=!1,workInProgressRootDidAttachPingListener=!1,entangledRenderLanes=0,workInProgressRootExitStatus=RootInProgress,workInProgressRootSkippedLanes=0,workInProgressRootInterleavedUpdatedLanes=0,workInProgressRootPingedLanes=0,workInProgressDeferredLane=0,workInProgressSuspendedRetryLanes=0,workInProgressRootConcurrentErrors=null,workInProgressRootRecoverableErrors=null,workInProgressRootDidIncludeRecursiveRenderUpdate=!1,globalMostRecentFallbackTime=0,FALLBACK_THROTTLE_MS=300,workInProgressRootRenderTargetTime=1/0,RENDER_TIMEOUT_MS=500,workInProgressTransitions=null,legacyErrorBoundariesThatAlreadyFailed=null,IMMEDIATE_COMMIT=0,SUSPENDED_COMMIT=1,THROTTLED_COMMIT=2,NO_PENDING_EFFECTS=0,PENDING_MUTATION_PHASE=1,PENDING_LAYOUT_PHASE=2,PENDING_AFTER_MUTATION_PHASE=3,PENDING_SPAWNED_WORK=4,PENDING_PASSIVE_PHASE=5,pendingEffectsStatus=0,pendingEffectsRoot=null,pendingFinishedWork=null,pendingEffectsLanes=0,pendingEffectsRemainingLanes=0,pendingPassiveTransitions=null,pendingRecoverableErrors=null,NESTED_UPDATE_LIMIT=50,nestedUpdateCount=0,rootWithNestedUpdates=null,isFlushingPassiveEffects=!1,didScheduleUpdateDuringPassiveEffects=!1,NESTED_PASSIVE_UPDATE_LIMIT=50,nestedPassiveUpdateCount=0,rootWithPassiveNestedUpdates=null,isRunningInsertionEffect=!1,didWarnStateUpdateForNotYetMountedComponent=null,didWarnAboutUpdateInRender=!1,didWarnAboutUpdateInRenderForAnotherComponent=new Set,fakeActCallbackNode$1={},firstScheduledRoot=null,lastScheduledRoot=null,didScheduleMicrotask=!1,didScheduleMicrotask_act=!1,mightHavePendingSyncWork=!1,isFlushingWork=!1,currentEventTransitionLane=0,fakeActCallbackNode={};(function(){for(var i=0;i<simpleEventPluginEvents.length;i++){var eventName=simpleEventPluginEvents[i],domEventName=eventName.toLowerCase();eventName=eventName[0].toUpperCase()+eventName.slice(1),registerSimpleEvent(domEventName,"on"+eventName)}registerSimpleEvent(ANIMATION_END,"onAnimationEnd"),registerSimpleEvent(ANIMATION_ITERATION,"onAnimationIteration"),registerSimpleEvent(ANIMATION_START,"onAnimationStart"),registerSimpleEvent("dblclick","onDoubleClick"),registerSimpleEvent("focusin","onFocus"),registerSimpleEvent("focusout","onBlur"),registerSimpleEvent(TRANSITION_RUN,"onTransitionRun"),registerSimpleEvent(TRANSITION_START,"onTransitionStart"),registerSimpleEvent(TRANSITION_CANCEL,"onTransitionCancel"),registerSimpleEvent(TRANSITION_END,"onTransitionEnd")})(),registerDirectEvent("onMouseEnter",["mouseout","mouseover"]),registerDirectEvent("onMouseLeave",["mouseout","mouseover"]),registerDirectEvent("onPointerEnter",["pointerout","pointerover"]),registerDirectEvent("onPointerLeave",["pointerout","pointerover"]),registerTwoPhaseEvent("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),registerTwoPhaseEvent("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),registerTwoPhaseEvent("onBeforeInput",["compositionend","keypress","textInput","paste"]),registerTwoPhaseEvent("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),registerTwoPhaseEvent("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),registerTwoPhaseEvent("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var mediaEventTypes="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(" "),nonDelegatedEvents=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(mediaEventTypes)),listeningMarker="_reactListening"+Math.random().toString(36).slice(2),didWarnControlledToUncontrolled=!1,didWarnUncontrolledToControlled=!1,didWarnFormActionType=!1,didWarnFormActionName=!1,didWarnFormActionTarget=!1,didWarnFormActionMethod=!1,didWarnPopoverTargetObject=!1,didWarnForNewBooleanPropsWithEmptyValue={},NORMALIZE_NEWLINES_REGEX=/\r\n?/g,NORMALIZE_NULL_AND_REPLACEMENT_REGEX=/\u0000|\uFFFD/g,xlinkNamespace="http://www.w3.org/1999/xlink",xmlNamespace="http://www.w3.org/XML/1998/namespace",EXPECTED_FORM_ACTION_URL="javascript:throw new Error('React form unexpectedly submitted.')",SUPPRESS_HYDRATION_WARNING="suppressHydrationWarning",SUSPENSE_START_DATA="$",SUSPENSE_END_DATA="/$",SUSPENSE_PENDING_START_DATA="$?",SUSPENSE_FALLBACK_START_DATA="$!",PREAMBLE_CONTRIBUTION_HTML=1,PREAMBLE_CONTRIBUTION_BODY=2,PREAMBLE_CONTRIBUTION_HEAD=4,FORM_STATE_IS_MATCHING="F!",FORM_STATE_IS_NOT_MATCHING="F",DOCUMENT_READY_STATE_COMPLETE="complete",STYLE="style",HostContextNamespaceNone=0,HostContextNamespaceSvg=1,HostContextNamespaceMath=2,eventsEnabled=null,selectionInformation=null,warnedUnknownTags={dialog:!0,webview:!0},currentPopstateTransitionEvent=null,scheduleTimeout=typeof setTimeout=="function"?setTimeout:void 0,cancelTimeout=typeof clearTimeout=="function"?clearTimeout:void 0,noTimeout=-1,localPromise=typeof Promise=="function"?Promise:void 0,scheduleMicrotask=typeof queueMicrotask=="function"?queueMicrotask:typeof localPromise<"u"?function(callback){return localPromise.resolve(null).then(callback).catch(handleErrorInNextTick)}:scheduleTimeout,previousHydratableOnEnteringScopedSingleton=null,NotLoaded=0,Loaded=1,Errored=2,Settled=3,Inserted=4,preloadPropsMap=new Map,preconnectsSet=new Set,previousDispatcher=ReactDOMSharedInternals.d;ReactDOMSharedInternals.d={f:function(){var previousWasRendering=previousDispatcher.f(),wasRendering=flushSyncWork$1();return previousWasRendering||wasRendering},r:function(form2){var formInst=getInstanceFromNode(form2);formInst!==null&&formInst.tag===5&&formInst.type==="form"?requestFormReset$1(formInst):previousDispatcher.r(form2)},D:function(href){previousDispatcher.D(href),preconnectAs("dns-prefetch",href,null)},C:function(href,crossOrigin){previousDispatcher.C(href,crossOrigin),preconnectAs("preconnect",href,crossOrigin)},L:function(href,as,options){previousDispatcher.L(href,as,options);var ownerDocument=globalDocument;if(ownerDocument&&href&&as){var preloadSelector='link[rel="preload"][as="'+escapeSelectorAttributeValueInsideDoubleQuotes(as)+'"]';as==="image"&&options&&options.imageSrcSet?(preloadSelector+='[imagesrcset="'+escapeSelectorAttributeValueInsideDoubleQuotes(options.imageSrcSet)+'"]',typeof options.imageSizes=="string"&&(preloadSelector+='[imagesizes="'+escapeSelectorAttributeValueInsideDoubleQuotes(options.imageSizes)+'"]')):preloadSelector+='[href="'+escapeSelectorAttributeValueInsideDoubleQuotes(href)+'"]';var key=preloadSelector;switch(as){case"style":key=getStyleKey(href);break;case"script":key=getScriptKey(href)}preloadPropsMap.has(key)||(href=assign({rel:"preload",href:as==="image"&&options&&options.imageSrcSet?void 0:href,as},options),preloadPropsMap.set(key,href),ownerDocument.querySelector(preloadSelector)!==null||as==="style"&&ownerDocument.querySelector(getStylesheetSelectorFromKey(key))||as==="script"&&ownerDocument.querySelector(getScriptSelectorFromKey(key))||(as=ownerDocument.createElement("link"),setInitialProperties(as,"link",href),markNodeAsHoistable(as),ownerDocument.head.appendChild(as)))}},m:function(href,options){previousDispatcher.m(href,options);var ownerDocument=globalDocument;if(ownerDocument&&href){var as=options&&typeof options.as=="string"?options.as:"script",preloadSelector='link[rel="modulepreload"][as="'+escapeSelectorAttributeValueInsideDoubleQuotes(as)+'"][href="'+escapeSelectorAttributeValueInsideDoubleQuotes(href)+'"]',key=preloadSelector;switch(as){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":key=getScriptKey(href)}if(!preloadPropsMap.has(key)&&(href=assign({rel:"modulepreload",href},options),preloadPropsMap.set(key,href),ownerDocument.querySelector(preloadSelector)===null)){switch(as){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(ownerDocument.querySelector(getScriptSelectorFromKey(key)))return}as=ownerDocument.createElement("link"),setInitialProperties(as,"link",href),markNodeAsHoistable(as),ownerDocument.head.appendChild(as)}}},X:function(src,options){previousDispatcher.X(src,options);var ownerDocument=globalDocument;if(ownerDocument&&src){var scripts=getResourcesFromRoot(ownerDocument).hoistableScripts,key=getScriptKey(src),resource=scripts.get(key);resource||(resource=ownerDocument.querySelector(getScriptSelectorFromKey(key)),resource||(src=assign({src,async:!0},options),(options=preloadPropsMap.get(key))&&adoptPreloadPropsForScript(src,options),resource=ownerDocument.createElement("script"),markNodeAsHoistable(resource),setInitialProperties(resource,"link",src),ownerDocument.head.appendChild(resource)),resource={type:"script",instance:resource,count:1,state:null},scripts.set(key,resource))}},S:function(href,precedence,options){previousDispatcher.S(href,precedence,options);var ownerDocument=globalDocument;if(ownerDocument&&href){var styles=getResourcesFromRoot(ownerDocument).hoistableStyles,key=getStyleKey(href);precedence=precedence||"default";var resource=styles.get(key);if(!resource){var state={loading:NotLoaded,preload:null};if(resource=ownerDocument.querySelector(getStylesheetSelectorFromKey(key)))state.loading=Loaded|Inserted;else{href=assign({rel:"stylesheet",href,"data-precedence":precedence},options),(options=preloadPropsMap.get(key))&&adoptPreloadPropsForStylesheet(href,options);var link=resource=ownerDocument.createElement("link");markNodeAsHoistable(link),setInitialProperties(link,"link",href),link._p=new Promise(function(resolve,reject){link.onload=resolve,link.onerror=reject}),link.addEventListener("load",function(){state.loading|=Loaded}),link.addEventListener("error",function(){state.loading|=Errored}),state.loading|=Inserted,insertStylesheet(resource,precedence,ownerDocument)}resource={type:"stylesheet",instance:resource,count:1,state},styles.set(key,resource)}}},M:function(src,options){previousDispatcher.M(src,options);var ownerDocument=globalDocument;if(ownerDocument&&src){var scripts=getResourcesFromRoot(ownerDocument).hoistableScripts,key=getScriptKey(src),resource=scripts.get(key);resource||(resource=ownerDocument.querySelector(getScriptSelectorFromKey(key)),resource||(src=assign({src,async:!0,type:"module"},options),(options=preloadPropsMap.get(key))&&adoptPreloadPropsForScript(src,options),resource=ownerDocument.createElement("script"),markNodeAsHoistable(resource),setInitialProperties(resource,"link",src),ownerDocument.head.appendChild(resource)),resource={type:"script",instance:resource,count:1,state:null},scripts.set(key,resource))}}};var globalDocument=typeof document>"u"?null:document,tagCaches=null,suspendedState=null,LAST_PRECEDENCE=null,precedencesByRoot=null,NotPendingTransition=NotPending,HostTransitionContext={$$typeof:REACT_CONTEXT_TYPE,Provider:null,Consumer:null,_currentValue:NotPendingTransition,_currentValue2:NotPendingTransition,_threadCount:0},badgeFormat="%c%s%c ",badgeStyle="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",resetStyle="",pad=" ",bind=Function.prototype.bind,didWarnAboutNestedUpdates=!1,overrideHookState=null,overrideHookStateDeletePath=null,overrideHookStateRenamePath=null,overrideProps=null,overridePropsDeletePath=null,overridePropsRenamePath=null,scheduleUpdate=null,setErrorHandler=null,setSuspenseHandler=null;overrideHookState=function(fiber,id,path2,value){id=findHook(fiber,id),id!==null&&(path2=copyWithSetImpl(id.memoizedState,path2,0,value),id.memoizedState=path2,id.baseState=path2,fiber.memoizedProps=assign({},fiber.memoizedProps),path2=enqueueConcurrentRenderForLane(fiber,2),path2!==null&&scheduleUpdateOnFiber(path2,fiber,2))},overrideHookStateDeletePath=function(fiber,id,path2){id=findHook(fiber,id),id!==null&&(path2=copyWithDeleteImpl(id.memoizedState,path2,0),id.memoizedState=path2,id.baseState=path2,fiber.memoizedProps=assign({},fiber.memoizedProps),path2=enqueueConcurrentRenderForLane(fiber,2),path2!==null&&scheduleUpdateOnFiber(path2,fiber,2))},overrideHookStateRenamePath=function(fiber,id,oldPath,newPath){id=findHook(fiber,id),id!==null&&(oldPath=copyWithRename(id.memoizedState,oldPath,newPath),id.memoizedState=oldPath,id.baseState=oldPath,fiber.memoizedProps=assign({},fiber.memoizedProps),oldPath=enqueueConcurrentRenderForLane(fiber,2),oldPath!==null&&scheduleUpdateOnFiber(oldPath,fiber,2))},overrideProps=function(fiber,path2,value){fiber.pendingProps=copyWithSetImpl(fiber.memoizedProps,path2,0,value),fiber.alternate&&(fiber.alternate.pendingProps=fiber.pendingProps),path2=enqueueConcurrentRenderForLane(fiber,2),path2!==null&&scheduleUpdateOnFiber(path2,fiber,2)},overridePropsDeletePath=function(fiber,path2){fiber.pendingProps=copyWithDeleteImpl(fiber.memoizedProps,path2,0),fiber.alternate&&(fiber.alternate.pendingProps=fiber.pendingProps),path2=enqueueConcurrentRenderForLane(fiber,2),path2!==null&&scheduleUpdateOnFiber(path2,fiber,2)},overridePropsRenamePath=function(fiber,oldPath,newPath){fiber.pendingProps=copyWithRename(fiber.memoizedProps,oldPath,newPath),fiber.alternate&&(fiber.alternate.pendingProps=fiber.pendingProps),oldPath=enqueueConcurrentRenderForLane(fiber,2),oldPath!==null&&scheduleUpdateOnFiber(oldPath,fiber,2)},scheduleUpdate=function(fiber){var root3=enqueueConcurrentRenderForLane(fiber,2);root3!==null&&scheduleUpdateOnFiber(root3,fiber,2)},setErrorHandler=function(newShouldErrorImpl){shouldErrorImpl=newShouldErrorImpl},setSuspenseHandler=function(newShouldSuspendImpl){shouldSuspendImpl=newShouldSuspendImpl};var _enabled=!0,return_targetInst=null,hasScheduledReplayAttempt=!1,queuedFocus=null,queuedDrag=null,queuedMouse=null,queuedPointers=new Map,queuedPointerCaptures=new Map,queuedExplicitHydrationTargets=[],discreteReplayableEvents="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(" "),lastScheduledReplayQueue=null;if(ReactDOMHydrationRoot.prototype.render=ReactDOMRoot.prototype.render=function(children){var root3=this._internalRoot;if(root3===null)throw Error("Cannot update an unmounted root.");var args=arguments;typeof args[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()."):isValidContainer(args[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 args[1]<"u"&&console.error("You passed a second argument to root.render(...) but it only accepts one argument."),args=children;var current2=root3.current,lane=requestUpdateLane(current2);updateContainerImpl(current2,lane,args,root3,null,null)},ReactDOMHydrationRoot.prototype.unmount=ReactDOMRoot.prototype.unmount=function(){var args=arguments;if(typeof args[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()."),args=this._internalRoot,args!==null){this._internalRoot=null;var container=args.containerInfo;(executionContext&(RenderContext|CommitContext))!==NoContext&&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."),updateContainerImpl(args.current,2,null,args,null,null),flushSyncWork$1(),container[internalContainerInstanceKey]=null}},ReactDOMHydrationRoot.prototype.unstable_scheduleHydration=function(target){if(target){var updatePriority=resolveUpdatePriority();target={blockedOn:null,target,priority:updatePriority};for(var i=0;i<queuedExplicitHydrationTargets.length&&updatePriority!==0&&updatePriority<queuedExplicitHydrationTargets[i].priority;i++);queuedExplicitHydrationTargets.splice(i,0,target),i===0&&attemptExplicitHydrationTarget(target)}},function(){var isomorphicReactPackageVersion=React2.version;if(isomorphicReactPackageVersion!=="19.1.0")throw Error(`Incompatible React versions: The "react" and "react-dom" packages must have the exact same version. Instead got:
|
|
293
|
+
- react: `+(isomorphicReactPackageVersion+`
|
|
294
|
+
- react-dom: 19.1.0
|
|
295
|
+
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"),ReactDOMSharedInternals.findDOMNode=function(componentOrElement){var fiber=componentOrElement._reactInternals;if(fiber===void 0)throw typeof componentOrElement.render=="function"?Error("Unable to find node on an unmounted component."):(componentOrElement=Object.keys(componentOrElement).join(","),Error("Argument appears to not be a ReactComponent. Keys: "+componentOrElement));return componentOrElement=findCurrentFiberUsingSlowPath(fiber),componentOrElement=componentOrElement!==null?findCurrentHostFiberImpl(componentOrElement):null,componentOrElement=componentOrElement===null?null:componentOrElement.stateNode,componentOrElement},!function(){var internals={bundleType:1,version:"19.1.0",rendererPackageName:"react-dom",currentDispatcherRef:ReactSharedInternals,reconcilerVersion:"19.1.0"};return internals.overrideHookState=overrideHookState,internals.overrideHookStateDeletePath=overrideHookStateDeletePath,internals.overrideHookStateRenamePath=overrideHookStateRenamePath,internals.overrideProps=overrideProps,internals.overridePropsDeletePath=overridePropsDeletePath,internals.overridePropsRenamePath=overridePropsRenamePath,internals.scheduleUpdate=scheduleUpdate,internals.setErrorHandler=setErrorHandler,internals.setSuspenseHandler=setSuspenseHandler,internals.scheduleRefresh=scheduleRefresh,internals.scheduleRoot=scheduleRoot,internals.setRefreshHandler=setRefreshHandler,internals.getCurrentFiber=getCurrentFiberForDevTools,internals.getLaneLabelMap=getLaneLabelMap,internals.injectProfilingHooks=injectProfilingHooks,injectInternals(internals)}()&&canUseDOM&&window.top===window.self&&(-1<navigator.userAgent.indexOf("Chrome")&&navigator.userAgent.indexOf("Edge")===-1||-1<navigator.userAgent.indexOf("Firefox"))){var protocol=window.location.protocol;/^(https?|file):$/.test(protocol)&&console.info("%cDownload the React DevTools for a better development experience: https://react.dev/link/react-devtools"+(protocol==="file:"?`
|
|
296
|
+
You might need to use a local HTTP server (instead of file://): https://react.dev/link/react-devtools-faq`:""),"font-weight:bold")}reactDomClient_development.createRoot=function(container,options){if(!isValidContainer(container))throw Error("Target container is not a DOM element.");warnIfReactDOMContainerInDEV(container);var isStrictMode=!1,identifierPrefix="",onUncaughtError=defaultOnUncaughtError,onCaughtError=defaultOnCaughtError,onRecoverableError=defaultOnRecoverableError,transitionCallbacks=null;return options!=null&&(options.hydrate?console.warn("hydrate through createRoot is deprecated. Use ReactDOMClient.hydrateRoot(container, <App />) instead."):typeof options=="object"&&options!==null&&options.$$typeof===REACT_ELEMENT_TYPE&&console.error(`You passed a JSX element to createRoot. You probably meant to call root.render instead. Example usage:
|
|
297
|
+
|
|
298
|
+
let root = createRoot(domContainer);
|
|
299
|
+
root.render(<App />);`),options.unstable_strictMode===!0&&(isStrictMode=!0),options.identifierPrefix!==void 0&&(identifierPrefix=options.identifierPrefix),options.onUncaughtError!==void 0&&(onUncaughtError=options.onUncaughtError),options.onCaughtError!==void 0&&(onCaughtError=options.onCaughtError),options.onRecoverableError!==void 0&&(onRecoverableError=options.onRecoverableError),options.unstable_transitionCallbacks!==void 0&&(transitionCallbacks=options.unstable_transitionCallbacks)),options=createFiberRoot(container,1,!1,null,null,isStrictMode,identifierPrefix,onUncaughtError,onCaughtError,onRecoverableError,transitionCallbacks,null),container[internalContainerInstanceKey]=options.current,listenToAllSupportedEvents(container),new ReactDOMRoot(options)},reactDomClient_development.hydrateRoot=function(container,initialChildren,options){if(!isValidContainer(container))throw Error("Target container is not a DOM element.");warnIfReactDOMContainerInDEV(container),initialChildren===void 0&&console.error("Must provide initial children as second argument to hydrateRoot. Example usage: hydrateRoot(domContainer, <App />)");var isStrictMode=!1,identifierPrefix="",onUncaughtError=defaultOnUncaughtError,onCaughtError=defaultOnCaughtError,onRecoverableError=defaultOnRecoverableError,transitionCallbacks=null,formState=null;return options!=null&&(options.unstable_strictMode===!0&&(isStrictMode=!0),options.identifierPrefix!==void 0&&(identifierPrefix=options.identifierPrefix),options.onUncaughtError!==void 0&&(onUncaughtError=options.onUncaughtError),options.onCaughtError!==void 0&&(onCaughtError=options.onCaughtError),options.onRecoverableError!==void 0&&(onRecoverableError=options.onRecoverableError),options.unstable_transitionCallbacks!==void 0&&(transitionCallbacks=options.unstable_transitionCallbacks),options.formState!==void 0&&(formState=options.formState)),initialChildren=createFiberRoot(container,1,!0,initialChildren,options??null,isStrictMode,identifierPrefix,onUncaughtError,onCaughtError,onRecoverableError,transitionCallbacks,formState),initialChildren.context=getContextForSubtree(null),options=initialChildren.current,isStrictMode=requestUpdateLane(options),isStrictMode=getBumpedLaneForHydrationByLane(isStrictMode),identifierPrefix=createUpdate(isStrictMode),identifierPrefix.callback=null,enqueueUpdate(options,identifierPrefix,isStrictMode),options=isStrictMode,initialChildren.current.lanes=options,markRootUpdated$1(initialChildren,options),ensureRootIsScheduled(initialChildren),container[internalContainerInstanceKey]=initialChildren.current,listenToAllSupportedEvents(container),new ReactDOMHydrationRoot(initialChildren)},reactDomClient_development.version="19.1.0",typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())}()),reactDomClient_development}var hasRequiredClient;function requireClient(){if(hasRequiredClient)return client.exports;hasRequiredClient=1;function checkDCE(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function")){if(process.env.NODE_ENV!=="production")throw new Error("^_^");try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(checkDCE)}catch(err){console.error(err)}}}return process.env.NODE_ENV==="production"?(checkDCE(),client.exports=requireReactDomClient_production()):client.exports=requireReactDomClient_development(),client.exports}var clientExports=requireClient(),jsxRuntime={exports:{}},reactJsxRuntime_production={};/**
|
|
300
|
+
* @license React
|
|
301
|
+
* react-jsx-runtime.production.js
|
|
302
|
+
*
|
|
303
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
304
|
+
*
|
|
305
|
+
* This source code is licensed under the MIT license found in the
|
|
306
|
+
* LICENSE file in the root directory of this source tree.
|
|
307
|
+
*/var hasRequiredReactJsxRuntime_production;function requireReactJsxRuntime_production(){if(hasRequiredReactJsxRuntime_production)return reactJsxRuntime_production;hasRequiredReactJsxRuntime_production=1;var REACT_ELEMENT_TYPE=Symbol.for("react.transitional.element"),REACT_FRAGMENT_TYPE=Symbol.for("react.fragment");function jsxProd(type,config,maybeKey){var key=null;if(maybeKey!==void 0&&(key=""+maybeKey),config.key!==void 0&&(key=""+config.key),"key"in config){maybeKey={};for(var propName in config)propName!=="key"&&(maybeKey[propName]=config[propName])}else maybeKey=config;return config=maybeKey.ref,{$$typeof:REACT_ELEMENT_TYPE,type,key,ref:config!==void 0?config:null,props:maybeKey}}return reactJsxRuntime_production.Fragment=REACT_FRAGMENT_TYPE,reactJsxRuntime_production.jsx=jsxProd,reactJsxRuntime_production.jsxs=jsxProd,reactJsxRuntime_production}var reactJsxRuntime_development={};/**
|
|
308
|
+
* @license React
|
|
309
|
+
* react-jsx-runtime.development.js
|
|
310
|
+
*
|
|
311
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
312
|
+
*
|
|
313
|
+
* This source code is licensed under the MIT license found in the
|
|
314
|
+
* LICENSE file in the root directory of this source tree.
|
|
315
|
+
*/var hasRequiredReactJsxRuntime_development;function requireReactJsxRuntime_development(){return hasRequiredReactJsxRuntime_development||(hasRequiredReactJsxRuntime_development=1,process.env.NODE_ENV!=="production"&&function(){function getComponentNameFromType(type){if(type==null)return null;if(typeof type=="function")return type.$$typeof===REACT_CLIENT_REFERENCE?null:type.displayName||type.name||null;if(typeof type=="string")return type;switch(type){case REACT_FRAGMENT_TYPE:return"Fragment";case REACT_PROFILER_TYPE:return"Profiler";case REACT_STRICT_MODE_TYPE:return"StrictMode";case REACT_SUSPENSE_TYPE:return"Suspense";case REACT_SUSPENSE_LIST_TYPE:return"SuspenseList";case REACT_ACTIVITY_TYPE:return"Activity"}if(typeof type=="object")switch(typeof type.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),type.$$typeof){case REACT_PORTAL_TYPE:return"Portal";case REACT_CONTEXT_TYPE:return(type.displayName||"Context")+".Provider";case REACT_CONSUMER_TYPE:return(type._context.displayName||"Context")+".Consumer";case REACT_FORWARD_REF_TYPE:var innerType=type.render;return type=type.displayName,type||(type=innerType.displayName||innerType.name||"",type=type!==""?"ForwardRef("+type+")":"ForwardRef"),type;case REACT_MEMO_TYPE:return innerType=type.displayName||null,innerType!==null?innerType:getComponentNameFromType(type.type)||"Memo";case REACT_LAZY_TYPE:innerType=type._payload,type=type._init;try{return getComponentNameFromType(type(innerType))}catch{}}return null}function testStringCoercion(value){return""+value}function checkKeyStringCoercion(value){try{testStringCoercion(value);var JSCompiler_inline_result=!1}catch{JSCompiler_inline_result=!0}if(JSCompiler_inline_result){JSCompiler_inline_result=console;var JSCompiler_temp_const=JSCompiler_inline_result.error,JSCompiler_inline_result$jscomp$0=typeof Symbol=="function"&&Symbol.toStringTag&&value[Symbol.toStringTag]||value.constructor.name||"Object";return JSCompiler_temp_const.call(JSCompiler_inline_result,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",JSCompiler_inline_result$jscomp$0),testStringCoercion(value)}}function getTaskName(type){if(type===REACT_FRAGMENT_TYPE)return"<>";if(typeof type=="object"&&type!==null&&type.$$typeof===REACT_LAZY_TYPE)return"<...>";try{var name=getComponentNameFromType(type);return name?"<"+name+">":"<...>"}catch{return"<...>"}}function getOwner(){var dispatcher=ReactSharedInternals.A;return dispatcher===null?null:dispatcher.getOwner()}function UnknownOwner(){return Error("react-stack-top-frame")}function hasValidKey(config){if(hasOwnProperty.call(config,"key")){var getter=Object.getOwnPropertyDescriptor(config,"key").get;if(getter&&getter.isReactWarning)return!1}return config.key!==void 0}function defineKeyPropWarningGetter(props,displayName){function warnAboutAccessingKey(){specialPropKeyWarningShown||(specialPropKeyWarningShown=!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)",displayName))}warnAboutAccessingKey.isReactWarning=!0,Object.defineProperty(props,"key",{get:warnAboutAccessingKey,configurable:!0})}function elementRefGetterWithDeprecationWarning(){var componentName=getComponentNameFromType(this.type);return didWarnAboutElementRef[componentName]||(didWarnAboutElementRef[componentName]=!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.")),componentName=this.props.ref,componentName!==void 0?componentName:null}function ReactElement(type,key,self2,source,owner,props,debugStack,debugTask){return self2=props.ref,type={$$typeof:REACT_ELEMENT_TYPE,type,key,props,_owner:owner},(self2!==void 0?self2:null)!==null?Object.defineProperty(type,"ref",{enumerable:!1,get:elementRefGetterWithDeprecationWarning}):Object.defineProperty(type,"ref",{enumerable:!1,value:null}),type._store={},Object.defineProperty(type._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(type,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(type,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:debugStack}),Object.defineProperty(type,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:debugTask}),Object.freeze&&(Object.freeze(type.props),Object.freeze(type)),type}function jsxDEVImpl(type,config,maybeKey,isStaticChildren,source,self2,debugStack,debugTask){var children=config.children;if(children!==void 0)if(isStaticChildren)if(isArrayImpl(children)){for(isStaticChildren=0;isStaticChildren<children.length;isStaticChildren++)validateChildKeys(children[isStaticChildren]);Object.freeze&&Object.freeze(children)}else console.error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else validateChildKeys(children);if(hasOwnProperty.call(config,"key")){children=getComponentNameFromType(type);var keys=Object.keys(config).filter(function(k2){return k2!=="key"});isStaticChildren=0<keys.length?"{key: someKey, "+keys.join(": ..., ")+": ...}":"{key: someKey}",didWarnAboutKeySpread[children+isStaticChildren]||(keys=0<keys.length?"{"+keys.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
|
|
316
|
+
let props = %s;
|
|
317
|
+
<%s {...props} />
|
|
318
|
+
React keys must be passed directly to JSX without using spread:
|
|
319
|
+
let props = %s;
|
|
320
|
+
<%s key={someKey} {...props} />`,isStaticChildren,children,keys,children),didWarnAboutKeySpread[children+isStaticChildren]=!0)}if(children=null,maybeKey!==void 0&&(checkKeyStringCoercion(maybeKey),children=""+maybeKey),hasValidKey(config)&&(checkKeyStringCoercion(config.key),children=""+config.key),"key"in config){maybeKey={};for(var propName in config)propName!=="key"&&(maybeKey[propName]=config[propName])}else maybeKey=config;return children&&defineKeyPropWarningGetter(maybeKey,typeof type=="function"?type.displayName||type.name||"Unknown":type),ReactElement(type,children,self2,source,getOwner(),maybeKey,debugStack,debugTask)}function validateChildKeys(node){typeof node=="object"&&node!==null&&node.$$typeof===REACT_ELEMENT_TYPE&&node._store&&(node._store.validated=1)}var React2=requireReact(),REACT_ELEMENT_TYPE=Symbol.for("react.transitional.element"),REACT_PORTAL_TYPE=Symbol.for("react.portal"),REACT_FRAGMENT_TYPE=Symbol.for("react.fragment"),REACT_STRICT_MODE_TYPE=Symbol.for("react.strict_mode"),REACT_PROFILER_TYPE=Symbol.for("react.profiler"),REACT_CONSUMER_TYPE=Symbol.for("react.consumer"),REACT_CONTEXT_TYPE=Symbol.for("react.context"),REACT_FORWARD_REF_TYPE=Symbol.for("react.forward_ref"),REACT_SUSPENSE_TYPE=Symbol.for("react.suspense"),REACT_SUSPENSE_LIST_TYPE=Symbol.for("react.suspense_list"),REACT_MEMO_TYPE=Symbol.for("react.memo"),REACT_LAZY_TYPE=Symbol.for("react.lazy"),REACT_ACTIVITY_TYPE=Symbol.for("react.activity"),REACT_CLIENT_REFERENCE=Symbol.for("react.client.reference"),ReactSharedInternals=React2.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,hasOwnProperty=Object.prototype.hasOwnProperty,isArrayImpl=Array.isArray,createTask=console.createTask?console.createTask:function(){return null};React2={"react-stack-bottom-frame":function(callStackForError){return callStackForError()}};var specialPropKeyWarningShown,didWarnAboutElementRef={},unknownOwnerDebugStack=React2["react-stack-bottom-frame"].bind(React2,UnknownOwner)(),unknownOwnerDebugTask=createTask(getTaskName(UnknownOwner)),didWarnAboutKeySpread={};reactJsxRuntime_development.Fragment=REACT_FRAGMENT_TYPE,reactJsxRuntime_development.jsx=function(type,config,maybeKey,source,self2){var trackActualOwner=1e4>ReactSharedInternals.recentlyCreatedOwnerStacks++;return jsxDEVImpl(type,config,maybeKey,!1,source,self2,trackActualOwner?Error("react-stack-top-frame"):unknownOwnerDebugStack,trackActualOwner?createTask(getTaskName(type)):unknownOwnerDebugTask)},reactJsxRuntime_development.jsxs=function(type,config,maybeKey,source,self2){var trackActualOwner=1e4>ReactSharedInternals.recentlyCreatedOwnerStacks++;return jsxDEVImpl(type,config,maybeKey,!0,source,self2,trackActualOwner?Error("react-stack-top-frame"):unknownOwnerDebugStack,trackActualOwner?createTask(getTaskName(type)):unknownOwnerDebugTask)}}()),reactJsxRuntime_development}var hasRequiredJsxRuntime;function requireJsxRuntime(){return hasRequiredJsxRuntime||(hasRequiredJsxRuntime=1,process.env.NODE_ENV==="production"?jsxRuntime.exports=requireReactJsxRuntime_production():jsxRuntime.exports=requireReactJsxRuntime_development()),jsxRuntime.exports}var jsxRuntimeExports=requireJsxRuntime(),reactDomExports=requireReactDom();function r(e){var t,f,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(f=r(e[t]))&&(n&&(n+=" "),n+=f)}else for(f in e)e[f]&&(n&&(n+=" "),n+=f);return n}function clsx(){for(var e,t,f=0,n="",o=arguments.length;f<o;f++)(e=arguments[f])&&(t=r(e))&&(n&&(n+=" "),n+=t);return n}function getColSpan(column,lastFrozenColumnIndex,args){const colSpan=typeof column.colSpan=="function"?column.colSpan(args):1;if(Number.isInteger(colSpan)&&colSpan>1&&(!column.frozen||column.idx+colSpan-1<=lastFrozenColumnIndex))return colSpan}function stopPropagation(event){event.stopPropagation()}function scrollIntoView(element){element==null||element.scrollIntoView({inline:"nearest",block:"nearest"})}function createCellEvent(event){let defaultPrevented=!1;const cellEvent={...event,preventGridDefault(){defaultPrevented=!0},isGridDefaultPrevented(){return defaultPrevented}};return Object.setPrototypeOf(cellEvent,Object.getPrototypeOf(event)),cellEvent}const nonInputKeys=new Set(["Unidentified","Alt","AltGraph","CapsLock","Control","Fn","FnLock","Meta","NumLock","ScrollLock","Shift","Tab","ArrowDown","ArrowLeft","ArrowRight","ArrowUp","End","Home","PageDown","PageUp","Insert","ContextMenu","Escape","Pause","Play","PrintScreen","F1","F3","F4","F5","F6","F7","F8","F9","F10","F11","F12"]);function isCtrlKeyHeldDown(e){return(e.ctrlKey||e.metaKey)&&e.key!=="Control"}function isDefaultCellInput(event){return isCtrlKeyHeldDown(event)&&event.keyCode!==86?!1:!nonInputKeys.has(event.key)}function onEditorNavigation({key,target}){var _a;return key==="Tab"&&(target instanceof HTMLInputElement||target instanceof HTMLTextAreaElement||target instanceof HTMLSelectElement)?((_a=target.closest(".rdg-editor-container"))==null?void 0:_a.querySelectorAll("input, textarea, select").length)===1:!1}const measuringCellClassname="mlln6zg7-0-0-beta-51";function renderMeasuringCells(viewportColumns){return viewportColumns.map(({key,idx,minWidth,maxWidth})=>jsxRuntimeExports.jsx("div",{className:measuringCellClassname,style:{gridColumnStart:idx+1,minWidth,maxWidth},"data-measuring-cell-key":key},key))}function isSelectedCellEditable({selectedPosition,columns,rows}){const column=columns[selectedPosition.idx],row$1=rows[selectedPosition.rowIdx];return isCellEditableUtil(column,row$1)}function isCellEditableUtil(column,row$1){return column.renderEditCell!=null&&(typeof column.editable=="function"?column.editable(row$1):column.editable)!==!1}function getSelectedCellColSpan({rows,topSummaryRows,bottomSummaryRows,rowIdx,mainHeaderRowIdx,lastFrozenColumnIndex,column}){const topSummaryRowsCount=(topSummaryRows==null?void 0:topSummaryRows.length)??0;if(rowIdx===mainHeaderRowIdx)return getColSpan(column,lastFrozenColumnIndex,{type:"HEADER"});if(topSummaryRows&&rowIdx>mainHeaderRowIdx&&rowIdx<=topSummaryRowsCount+mainHeaderRowIdx)return getColSpan(column,lastFrozenColumnIndex,{type:"SUMMARY",row:topSummaryRows[rowIdx+topSummaryRowsCount]});if(rowIdx>=0&&rowIdx<rows.length){const row$1=rows[rowIdx];return getColSpan(column,lastFrozenColumnIndex,{type:"ROW",row:row$1})}if(bottomSummaryRows)return getColSpan(column,lastFrozenColumnIndex,{type:"SUMMARY",row:bottomSummaryRows[rowIdx-rows.length]})}function getNextSelectedCellPosition({moveUp,moveNext,cellNavigationMode,columns,colSpanColumns,rows,topSummaryRows,bottomSummaryRows,minRowIdx,mainHeaderRowIdx,maxRowIdx,currentPosition:{idx:currentIdx,rowIdx:currentRowIdx},nextPosition,lastFrozenColumnIndex,isCellWithinBounds}){let{idx:nextIdx,rowIdx:nextRowIdx}=nextPosition;const columnsCount=columns.length,setColSpan=moveNext$1=>{for(const column of colSpanColumns){const colIdx=column.idx;if(colIdx>nextIdx)break;const colSpan=getSelectedCellColSpan({rows,topSummaryRows,bottomSummaryRows,rowIdx:nextRowIdx,mainHeaderRowIdx,lastFrozenColumnIndex,column});if(colSpan&&nextIdx>colIdx&&nextIdx<colSpan+colIdx){nextIdx=colIdx+(moveNext$1?colSpan:0);break}}},getParentRowIdx=parent=>parent.level+mainHeaderRowIdx,setHeaderGroupColAndRowSpan=()=>{if(moveNext){let parent=columns[nextIdx].parent;for(;parent!==void 0;){const parentRowIdx=getParentRowIdx(parent);if(nextRowIdx===parentRowIdx){nextIdx=parent.idx+parent.colSpan;break}parent=parent.parent}}else if(moveUp){let parent=columns[nextIdx].parent,found=!1;for(;parent!==void 0;){const parentRowIdx=getParentRowIdx(parent);if(nextRowIdx>=parentRowIdx){nextIdx=parent.idx,nextRowIdx=parentRowIdx,found=!0;break}parent=parent.parent}found||(nextIdx=currentIdx,nextRowIdx=currentRowIdx)}};if(isCellWithinBounds(nextPosition)&&(setColSpan(moveNext),nextRowIdx<mainHeaderRowIdx&&setHeaderGroupColAndRowSpan()),cellNavigationMode==="CHANGE_ROW"&&(nextIdx===columnsCount?nextRowIdx===maxRowIdx||(nextIdx=0,nextRowIdx+=1):nextIdx===-1&&(nextRowIdx===minRowIdx||(nextRowIdx-=1,nextIdx=columnsCount-1),setColSpan(!1))),nextRowIdx<mainHeaderRowIdx){let parent=columns[nextIdx].parent;const nextParentRowIdx=nextRowIdx;for(nextRowIdx=mainHeaderRowIdx;parent!==void 0;){const parentRowIdx=getParentRowIdx(parent);parentRowIdx>=nextParentRowIdx&&(nextRowIdx=parentRowIdx,nextIdx=parent.idx),parent=parent.parent}}return{idx:nextIdx,rowIdx:nextRowIdx}}function canExitGrid({maxColIdx,minRowIdx,maxRowIdx,selectedPosition:{rowIdx,idx},shiftKey}){return shiftKey?idx===0&&rowIdx===minRowIdx:idx===maxColIdx&&rowIdx===maxRowIdx}const cell="cj343x07-0-0-beta-51",cellClassname=`rdg-cell ${cell}`,cellFrozen="csofj7r7-0-0-beta-51",cellFrozenClassname=`rdg-cell-frozen ${cellFrozen}`;function getRowStyle(rowIdx){return{"--rdg-grid-row-start":rowIdx}}function getHeaderCellStyle(column,rowIdx,rowSpan){const gridRowEnd=rowIdx+1,paddingBlockStart=`calc(${rowSpan-1} * var(--rdg-header-row-height))`;return column.parent===void 0?{insetBlockStart:0,gridRowStart:1,gridRowEnd,paddingBlockStart}:{insetBlockStart:`calc(${rowIdx-rowSpan} * var(--rdg-header-row-height))`,gridRowStart:gridRowEnd-rowSpan,gridRowEnd,paddingBlockStart}}function getCellStyle(column,colSpan=1){const index=column.idx+1;return{gridColumnStart:index,gridColumnEnd:index+colSpan,insetInlineStart:column.frozen?`var(--rdg-frozen-left-${column.idx})`:void 0}}function getCellClassname(column,...extraClasses){return clsx(cellClassname,{[cellFrozenClassname]:column.frozen},...extraClasses)}const{min,max,floor,sign,abs}=Math;function assertIsValidKeyGetter(keyGetter){if(typeof keyGetter!="function")throw new Error("Please specify the rowKeyGetter prop to use selection")}function clampColumnWidth(width,{minWidth,maxWidth}){return width=max(width,minWidth),typeof maxWidth=="number"&&maxWidth>=minWidth?min(width,maxWidth):width}function getHeaderCellRowSpan(column,rowIdx){return column.parent===void 0?rowIdx:column.level-column.parent.level}const checkbox="c1bn88vv7-0-0-beta-51",checkboxClassname=`rdg-checkbox-input ${checkbox}`;function renderCheckbox({onChange,indeterminate,...props}){function handleChange(e){onChange(e.target.checked,e.nativeEvent.shiftKey)}return jsxRuntimeExports.jsx("input",{ref:el=>{el&&(el.indeterminate=indeterminate===!0)},type:"checkbox",className:checkboxClassname,onChange:handleChange,...props})}function renderValue(props){try{return props.row[props.column.key]}catch{return null}}const DataGridDefaultRenderersContext=reactExports.createContext(void 0);function useDefaultRenderers(){return reactExports.useContext(DataGridDefaultRenderersContext)}function SelectCellFormatter({value,tabIndex,indeterminate,disabled,onChange,"aria-label":ariaLabel,"aria-labelledby":ariaLabelledBy}){const renderCheckbox$1=useDefaultRenderers().renderCheckbox;return renderCheckbox$1({"aria-label":ariaLabel,"aria-labelledby":ariaLabelledBy,tabIndex,indeterminate,disabled,checked:value,onChange})}const RowSelectionContext=reactExports.createContext(void 0),RowSelectionChangeContext=reactExports.createContext(void 0);function useRowSelection(){const rowSelectionContext=reactExports.useContext(RowSelectionContext),rowSelectionChangeContext=reactExports.useContext(RowSelectionChangeContext);if(rowSelectionContext===void 0||rowSelectionChangeContext===void 0)throw new Error("useRowSelection must be used within renderCell");return{isRowSelectionDisabled:rowSelectionContext.isRowSelectionDisabled,isRowSelected:rowSelectionContext.isRowSelected,onRowSelectionChange:rowSelectionChangeContext}}const HeaderRowSelectionContext=reactExports.createContext(void 0),HeaderRowSelectionChangeContext=reactExports.createContext(void 0);function useHeaderRowSelection(){const headerRowSelectionContext=reactExports.useContext(HeaderRowSelectionContext),headerRowSelectionChangeContext=reactExports.useContext(HeaderRowSelectionChangeContext);if(headerRowSelectionContext===void 0||headerRowSelectionChangeContext===void 0)throw new Error("useHeaderRowSelection must be used within renderHeaderCell");return{isIndeterminate:headerRowSelectionContext.isIndeterminate,isRowSelected:headerRowSelectionContext.isRowSelected,onRowSelectionChange:headerRowSelectionChangeContext}}const SELECT_COLUMN_KEY="rdg-select-column";function HeaderRenderer(props){const{isIndeterminate,isRowSelected,onRowSelectionChange}=useHeaderRowSelection();return jsxRuntimeExports.jsx(SelectCellFormatter,{"aria-label":"Select All",tabIndex:props.tabIndex,indeterminate:isIndeterminate,value:isRowSelected,onChange:checked=>{onRowSelectionChange({checked:isIndeterminate?!1:checked})}})}function SelectFormatter(props){const{isRowSelectionDisabled,isRowSelected,onRowSelectionChange}=useRowSelection();return jsxRuntimeExports.jsx(SelectCellFormatter,{"aria-label":"Select",tabIndex:props.tabIndex,disabled:isRowSelectionDisabled,value:isRowSelected,onChange:(checked,isShiftClick)=>{onRowSelectionChange({row:props.row,checked,isShiftClick})}})}function SelectGroupFormatter(props){const{isRowSelected,onRowSelectionChange}=useRowSelection();return jsxRuntimeExports.jsx(SelectCellFormatter,{"aria-label":"Select Group",tabIndex:props.tabIndex,value:isRowSelected,onChange:checked=>{onRowSelectionChange({row:props.row,checked,isShiftClick:!1})}})}const SelectColumn={key:SELECT_COLUMN_KEY,name:"",width:35,minWidth:35,maxWidth:35,resizable:!1,sortable:!1,frozen:!0,renderHeaderCell(props){return jsxRuntimeExports.jsx(HeaderRenderer,{...props})},renderCell(props){return jsxRuntimeExports.jsx(SelectFormatter,{...props})},renderGroupCell(props){return jsxRuntimeExports.jsx(SelectGroupFormatter,{...props})}},headerSortCellClassname="h44jtk67-0-0-beta-51",headerSortName="hcgkhxz7-0-0-beta-51",headerSortNameClassname=`rdg-header-sort-name ${headerSortName}`;function renderHeaderCell({column,sortDirection,priority}){return column.sortable?jsxRuntimeExports.jsx(SortableHeaderCell,{sortDirection,priority,children:column.name}):column.name}function SortableHeaderCell({sortDirection,priority,children}){const renderSortStatus$1=useDefaultRenderers().renderSortStatus;return jsxRuntimeExports.jsxs("span",{className:headerSortCellClassname,children:[jsxRuntimeExports.jsx("span",{className:headerSortNameClassname,children}),jsxRuntimeExports.jsx("span",{children:renderSortStatus$1({sortDirection,priority})})]})}const DEFAULT_COLUMN_WIDTH="auto",DEFAULT_COLUMN_MIN_WIDTH=50;function useCalculatedColumns({rawColumns,defaultColumnOptions,getColumnWidth,viewportWidth,scrollLeft,enableVirtualization}){const defaultWidth=(defaultColumnOptions==null?void 0:defaultColumnOptions.width)??DEFAULT_COLUMN_WIDTH,defaultMinWidth=(defaultColumnOptions==null?void 0:defaultColumnOptions.minWidth)??DEFAULT_COLUMN_MIN_WIDTH,defaultMaxWidth=(defaultColumnOptions==null?void 0:defaultColumnOptions.maxWidth)??void 0,defaultCellRenderer=(defaultColumnOptions==null?void 0:defaultColumnOptions.renderCell)??renderValue,defaultHeaderCellRenderer=(defaultColumnOptions==null?void 0:defaultColumnOptions.renderHeaderCell)??renderHeaderCell,defaultSortable=(defaultColumnOptions==null?void 0:defaultColumnOptions.sortable)??!1,defaultResizable=(defaultColumnOptions==null?void 0:defaultColumnOptions.resizable)??!1,defaultDraggable=(defaultColumnOptions==null?void 0:defaultColumnOptions.draggable)??!1,{columns,colSpanColumns,lastFrozenColumnIndex,headerRowsCount}=reactExports.useMemo(()=>{let lastFrozenColumnIndex$1=-1,headerRowsCount$1=1;const columns$1=[];collectColumns(rawColumns,1);function collectColumns(rawColumns$1,level,parent){for(const rawColumn of rawColumns$1){if("children"in rawColumn){const calculatedColumnParent={name:rawColumn.name,parent,idx:-1,colSpan:0,level:0,headerCellClass:rawColumn.headerCellClass};collectColumns(rawColumn.children,level+1,calculatedColumnParent);continue}const frozen=rawColumn.frozen??!1,column={...rawColumn,parent,idx:0,level:0,frozen,width:rawColumn.width??defaultWidth,minWidth:rawColumn.minWidth??defaultMinWidth,maxWidth:rawColumn.maxWidth??defaultMaxWidth,sortable:rawColumn.sortable??defaultSortable,resizable:rawColumn.resizable??defaultResizable,draggable:rawColumn.draggable??defaultDraggable,renderCell:rawColumn.renderCell??defaultCellRenderer,renderHeaderCell:rawColumn.renderHeaderCell??defaultHeaderCellRenderer};columns$1.push(column),frozen&&lastFrozenColumnIndex$1++,level>headerRowsCount$1&&(headerRowsCount$1=level)}}columns$1.sort(({key:aKey,frozen:frozenA},{key:bKey,frozen:frozenB})=>aKey===SELECT_COLUMN_KEY?-1:bKey===SELECT_COLUMN_KEY?1:frozenA?frozenB?0:-1:frozenB?1:0);const colSpanColumns$1=[];return columns$1.forEach((column,idx)=>{column.idx=idx,updateColumnParent(column,idx,0),column.colSpan!=null&&colSpanColumns$1.push(column)}),{columns:columns$1,colSpanColumns:colSpanColumns$1,lastFrozenColumnIndex:lastFrozenColumnIndex$1,headerRowsCount:headerRowsCount$1}},[rawColumns,defaultWidth,defaultMinWidth,defaultMaxWidth,defaultCellRenderer,defaultHeaderCellRenderer,defaultResizable,defaultSortable,defaultDraggable]),{templateColumns,layoutCssVars,totalFrozenColumnWidth,columnMetrics}=reactExports.useMemo(()=>{const columnMetrics$1=new Map;let left=0,totalFrozenColumnWidth$1=0;const templateColumns$1=[];for(const column of columns){let width=getColumnWidth(column);typeof width=="number"?width=clampColumnWidth(width,column):width=column.minWidth,templateColumns$1.push(`${width}px`),columnMetrics$1.set(column,{width,left}),left+=width}if(lastFrozenColumnIndex!==-1){const columnMetric=columnMetrics$1.get(columns[lastFrozenColumnIndex]);totalFrozenColumnWidth$1=columnMetric.left+columnMetric.width}const layoutCssVars$1={};for(let i=0;i<=lastFrozenColumnIndex;i++){const column=columns[i];layoutCssVars$1[`--rdg-frozen-left-${column.idx}`]=`${columnMetrics$1.get(column).left}px`}return{templateColumns:templateColumns$1,layoutCssVars:layoutCssVars$1,totalFrozenColumnWidth:totalFrozenColumnWidth$1,columnMetrics:columnMetrics$1}},[getColumnWidth,columns,lastFrozenColumnIndex]),[colOverscanStartIdx,colOverscanEndIdx]=reactExports.useMemo(()=>{if(!enableVirtualization)return[0,columns.length-1];const viewportLeft=scrollLeft+totalFrozenColumnWidth,viewportRight=scrollLeft+viewportWidth,lastColIdx=columns.length-1,firstUnfrozenColumnIdx=min(lastFrozenColumnIndex+1,lastColIdx);if(viewportLeft>=viewportRight)return[firstUnfrozenColumnIdx,firstUnfrozenColumnIdx];let colVisibleStartIdx=firstUnfrozenColumnIdx;for(;colVisibleStartIdx<lastColIdx;){const{left,width}=columnMetrics.get(columns[colVisibleStartIdx]);if(left+width>viewportLeft)break;colVisibleStartIdx++}let colVisibleEndIdx=colVisibleStartIdx;for(;colVisibleEndIdx<lastColIdx;){const{left,width}=columnMetrics.get(columns[colVisibleEndIdx]);if(left+width>=viewportRight)break;colVisibleEndIdx++}const colOverscanStartIdx$1=max(firstUnfrozenColumnIdx,colVisibleStartIdx-1),colOverscanEndIdx$1=min(lastColIdx,colVisibleEndIdx+1);return[colOverscanStartIdx$1,colOverscanEndIdx$1]},[columnMetrics,columns,lastFrozenColumnIndex,scrollLeft,totalFrozenColumnWidth,viewportWidth,enableVirtualization]);return{columns,colSpanColumns,colOverscanStartIdx,colOverscanEndIdx,templateColumns,layoutCssVars,headerRowsCount,lastFrozenColumnIndex,totalFrozenColumnWidth}}function updateColumnParent(column,index,level){if(level<column.level&&(column.level=level),column.parent!==void 0){const{parent}=column;parent.idx===-1&&(parent.idx=index),parent.colSpan+=1,updateColumnParent(parent,index,level-1)}}function useColumnWidths(columns,viewportColumns,templateColumns,gridRef,gridWidth,resizedColumnWidths,measuredColumnWidths,setResizedColumnWidths,setMeasuredColumnWidths,onColumnResize){const prevGridWidthRef=reactExports.useRef(gridWidth),columnsCanFlex=columns.length===viewportColumns.length,ignorePreviouslyMeasuredColumns=columnsCanFlex&&gridWidth!==prevGridWidthRef.current,newTemplateColumns=[...templateColumns],columnsToMeasure=[];for(const{key,idx,width}of viewportColumns)typeof width=="string"&&(ignorePreviouslyMeasuredColumns||!measuredColumnWidths.has(key))&&!resizedColumnWidths.has(key)&&(newTemplateColumns[idx]=width,columnsToMeasure.push(key));const gridTemplateColumns=newTemplateColumns.join(" ");reactExports.useLayoutEffect(()=>{prevGridWidthRef.current=gridWidth,updateMeasuredWidths(columnsToMeasure)});function updateMeasuredWidths(columnsToMeasure$1){columnsToMeasure$1.length!==0&&setMeasuredColumnWidths(measuredColumnWidths$1=>{const newMeasuredColumnWidths=new Map(measuredColumnWidths$1);let hasChanges=!1;for(const key of columnsToMeasure$1){const measuredWidth=measureColumnWidth(gridRef,key);hasChanges||(hasChanges=measuredWidth!==measuredColumnWidths$1.get(key)),measuredWidth===void 0?newMeasuredColumnWidths.delete(key):newMeasuredColumnWidths.set(key,measuredWidth)}return hasChanges?newMeasuredColumnWidths:measuredColumnWidths$1})}function handleColumnResize(column,nextWidth){const{key:resizingKey}=column,newTemplateColumns$1=[...templateColumns],columnsToMeasure$1=[];for(const{key,idx,width}of viewportColumns)if(resizingKey===key){const width$1=typeof nextWidth=="number"?`${nextWidth}px`:nextWidth;newTemplateColumns$1[idx]=width$1}else columnsCanFlex&&typeof width=="string"&&!resizedColumnWidths.has(key)&&(newTemplateColumns$1[idx]=width,columnsToMeasure$1.push(key));gridRef.current.style.gridTemplateColumns=newTemplateColumns$1.join(" ");const measuredWidth=typeof nextWidth=="number"?nextWidth:measureColumnWidth(gridRef,resizingKey);reactDomExports.flushSync(()=>{setResizedColumnWidths(resizedColumnWidths$1=>{const newResizedColumnWidths=new Map(resizedColumnWidths$1);return newResizedColumnWidths.set(resizingKey,measuredWidth),newResizedColumnWidths}),updateMeasuredWidths(columnsToMeasure$1)}),onColumnResize==null||onColumnResize(column,measuredWidth)}return{gridTemplateColumns,handleColumnResize}}function measureColumnWidth(gridRef,key){var _a;const selector=`[data-measuring-cell-key="${CSS.escape(key)}"]`,measuringCell=(_a=gridRef.current)==null?void 0:_a.querySelector(selector);return measuringCell==null?void 0:measuringCell.getBoundingClientRect().width}function useGridDimensions(){const gridRef=reactExports.useRef(null),[inlineSize,setInlineSize]=reactExports.useState(1),[blockSize,setBlockSize]=reactExports.useState(1),[horizontalScrollbarHeight,setHorizontalScrollbarHeight]=reactExports.useState(0);return reactExports.useLayoutEffect(()=>{const{ResizeObserver}=window;if(ResizeObserver==null)return;const{clientWidth,clientHeight,offsetWidth,offsetHeight}=gridRef.current,{width,height}=gridRef.current.getBoundingClientRect(),initialHorizontalScrollbarHeight=offsetHeight-clientHeight,initialWidth=width-offsetWidth+clientWidth,initialHeight=height-initialHorizontalScrollbarHeight;setInlineSize(initialWidth),setBlockSize(initialHeight),setHorizontalScrollbarHeight(initialHorizontalScrollbarHeight);const resizeObserver=new ResizeObserver(entries=>{const size=entries[0].contentBoxSize[0],{clientHeight:clientHeight$1,offsetHeight:offsetHeight$1}=gridRef.current;reactDomExports.flushSync(()=>{setInlineSize(size.inlineSize),setBlockSize(size.blockSize),setHorizontalScrollbarHeight(offsetHeight$1-clientHeight$1)})});return resizeObserver.observe(gridRef.current),()=>{resizeObserver.disconnect()}},[]),[gridRef,inlineSize,blockSize,horizontalScrollbarHeight]}function useLatestFunc(fn){const ref=reactExports.useRef(fn);reactExports.useEffect(()=>{ref.current=fn});const callbackFn=reactExports.useCallback((...args)=>{ref.current(...args)},[]);return fn&&callbackFn}function useRovingTabIndex(isSelected){const[isChildFocused,setIsChildFocused]=reactExports.useState(!1);isChildFocused&&!isSelected&&setIsChildFocused(!1);function onFocus(event){event.target!==event.currentTarget&&setIsChildFocused(!0)}return{tabIndex:isSelected&&!isChildFocused?0:-1,childTabIndex:isSelected?0:-1,onFocus:isSelected?onFocus:void 0}}function useViewportColumns({columns,colSpanColumns,rows,topSummaryRows,bottomSummaryRows,colOverscanStartIdx,colOverscanEndIdx,lastFrozenColumnIndex,rowOverscanStartIdx,rowOverscanEndIdx}){const startIdx=reactExports.useMemo(()=>{if(colOverscanStartIdx===0)return 0;let startIdx$1=colOverscanStartIdx;const updateStartIdx=(colIdx,colSpan)=>colSpan!==void 0&&colIdx+colSpan>colOverscanStartIdx?(startIdx$1=colIdx,!0):!1;for(const column of colSpanColumns){const colIdx=column.idx;if(colIdx>=startIdx$1||updateStartIdx(colIdx,getColSpan(column,lastFrozenColumnIndex,{type:"HEADER"})))break;for(let rowIdx=rowOverscanStartIdx;rowIdx<=rowOverscanEndIdx;rowIdx++){const row$1=rows[rowIdx];if(updateStartIdx(colIdx,getColSpan(column,lastFrozenColumnIndex,{type:"ROW",row:row$1})))break}if(topSummaryRows!=null){for(const row$1 of topSummaryRows)if(updateStartIdx(colIdx,getColSpan(column,lastFrozenColumnIndex,{type:"SUMMARY",row:row$1})))break}if(bottomSummaryRows!=null){for(const row$1 of bottomSummaryRows)if(updateStartIdx(colIdx,getColSpan(column,lastFrozenColumnIndex,{type:"SUMMARY",row:row$1})))break}}return startIdx$1},[rowOverscanStartIdx,rowOverscanEndIdx,rows,topSummaryRows,bottomSummaryRows,colOverscanStartIdx,lastFrozenColumnIndex,colSpanColumns]);return reactExports.useMemo(()=>{const viewportColumns=[];for(let colIdx=0;colIdx<=colOverscanEndIdx;colIdx++){const column=columns[colIdx];colIdx<startIdx&&!column.frozen||viewportColumns.push(column)}return viewportColumns},[startIdx,colOverscanEndIdx,columns])}function useViewportRows({rows,rowHeight,clientHeight,scrollTop,enableVirtualization}){const{totalRowHeight,gridTemplateRows,getRowTop,getRowHeight,findRowIdx}=reactExports.useMemo(()=>{if(typeof rowHeight=="number")return{totalRowHeight:rowHeight*rows.length,gridTemplateRows:` repeat(${rows.length}, ${rowHeight}px)`,getRowTop:rowIdx=>rowIdx*rowHeight,getRowHeight:()=>rowHeight,findRowIdx:offset=>floor(offset/rowHeight)};let totalRowHeight$1=0,gridTemplateRows$1=" ";const rowPositions=rows.map(row$1=>{const currentRowHeight=rowHeight(row$1),position={top:totalRowHeight$1,height:currentRowHeight};return gridTemplateRows$1+=`${currentRowHeight}px `,totalRowHeight$1+=currentRowHeight,position}),validateRowIdx=rowIdx=>max(0,min(rows.length-1,rowIdx));return{totalRowHeight:totalRowHeight$1,gridTemplateRows:gridTemplateRows$1,getRowTop:rowIdx=>rowPositions[validateRowIdx(rowIdx)].top,getRowHeight:rowIdx=>rowPositions[validateRowIdx(rowIdx)].height,findRowIdx(offset){let start=0,end=rowPositions.length-1;for(;start<=end;){const middle=start+floor((end-start)/2),currentOffset=rowPositions[middle].top;if(currentOffset===offset)return middle;if(currentOffset<offset?start=middle+1:currentOffset>offset&&(end=middle-1),start>end)return end}return 0}}},[rowHeight,rows]);let rowOverscanStartIdx=0,rowOverscanEndIdx=rows.length-1;if(enableVirtualization){const rowVisibleStartIdx=findRowIdx(scrollTop),rowVisibleEndIdx=findRowIdx(scrollTop+clientHeight);rowOverscanStartIdx=max(0,rowVisibleStartIdx-4),rowOverscanEndIdx=min(rows.length-1,rowVisibleEndIdx+4)}return{rowOverscanStartIdx,rowOverscanEndIdx,totalRowHeight,gridTemplateRows,getRowTop,getRowHeight,findRowIdx}}const cellCopied="c6ra8a37-0-0-beta-51",cellCopiedClassname=`rdg-cell-copied ${cellCopied}`,cellDraggedOver="cq910m07-0-0-beta-51",cellDraggedOverClassname=`rdg-cell-dragged-over ${cellDraggedOver}`;function Cell$1({column,colSpan,isCellSelected,isCopied,isDraggedOver,row:row$1,rowIdx,className,onClick,onDoubleClick,onContextMenu,onRowChange,selectCell,style,...props}){const{tabIndex,childTabIndex,onFocus}=useRovingTabIndex(isCellSelected),{cellClass}=column;className=getCellClassname(column,{[cellCopiedClassname]:isCopied,[cellDraggedOverClassname]:isDraggedOver},typeof cellClass=="function"?cellClass(row$1):cellClass,className);const isEditable=isCellEditableUtil(column,row$1);function selectCellWrapper(openEditor){selectCell({rowIdx,idx:column.idx},openEditor)}function handleClick(event){if(onClick){const cellEvent=createCellEvent(event);if(onClick({rowIdx,row:row$1,column,selectCell:selectCellWrapper},cellEvent),cellEvent.isGridDefaultPrevented())return}selectCellWrapper()}function handleContextMenu(event){if(onContextMenu){const cellEvent=createCellEvent(event);if(onContextMenu({rowIdx,row:row$1,column,selectCell:selectCellWrapper},cellEvent),cellEvent.isGridDefaultPrevented())return}selectCellWrapper()}function handleDoubleClick(event){if(onDoubleClick){const cellEvent=createCellEvent(event);if(onDoubleClick({rowIdx,row:row$1,column,selectCell:selectCellWrapper},cellEvent),cellEvent.isGridDefaultPrevented())return}selectCellWrapper(!0)}function handleRowChange(newRow){onRowChange(column,newRow)}return jsxRuntimeExports.jsx("div",{role:"gridcell","aria-colindex":column.idx+1,"aria-colspan":colSpan,"aria-selected":isCellSelected,"aria-readonly":!isEditable||void 0,tabIndex,className,style:{...getCellStyle(column,colSpan),...style},onClick:handleClick,onDoubleClick:handleDoubleClick,onContextMenu:handleContextMenu,onFocus,...props,children:column.renderCell({column,row:row$1,rowIdx,isCellEditable:isEditable,tabIndex:childTabIndex,onRowChange:handleRowChange})})}const CellComponent=reactExports.memo(Cell$1);function defaultRenderCell(key,props){return jsxRuntimeExports.jsx(CellComponent,{...props},key)}const cellDragHandle="c1w9bbhr7-0-0-beta-51",cellDragHandleFrozenClassname="c1creorc7-0-0-beta-51",cellDragHandleClassname=`rdg-cell-drag-handle ${cellDragHandle}`;function DragHandle({gridRowStart,rows,column,columnWidth,maxColIdx,isLastRow,selectedPosition,latestDraggedOverRowIdx,isCellEditable,onRowsChange,onFill,onClick,setDragging,setDraggedOverRowIdx}){const{idx,rowIdx}=selectedPosition;function handleMouseDown(event){if(event.preventDefault(),event.buttons!==1)return;setDragging(!0),window.addEventListener("mouseover",onMouseOver),window.addEventListener("mouseup",onMouseUp);function onMouseOver(event$1){event$1.buttons!==1&&onMouseUp()}function onMouseUp(){window.removeEventListener("mouseover",onMouseOver),window.removeEventListener("mouseup",onMouseUp),setDragging(!1),handleDragEnd()}}function handleDragEnd(){const overRowIdx=latestDraggedOverRowIdx.current;if(overRowIdx===void 0)return;const startRowIndex=rowIdx<overRowIdx?rowIdx+1:overRowIdx,endRowIndex=rowIdx<overRowIdx?overRowIdx+1:rowIdx;updateRows(startRowIndex,endRowIndex),setDraggedOverRowIdx(void 0)}function handleDoubleClick(event){event.stopPropagation(),updateRows(rowIdx+1,rows.length)}function updateRows(startRowIdx,endRowIdx){const sourceRow=rows[rowIdx],updatedRows=[...rows],indexes=[];for(let i=startRowIdx;i<endRowIdx;i++)if(isCellEditable({rowIdx:i,idx})){const updatedRow=onFill({columnKey:column.key,sourceRow,targetRow:rows[i]});updatedRow!==rows[i]&&(updatedRows[i]=updatedRow,indexes.push(i))}indexes.length>0&&(onRowsChange==null||onRowsChange(updatedRows,{indexes,column}))}function getStyle(){var _a;const colSpan=((_a=column.colSpan)==null?void 0:_a.call(column,{type:"ROW",row:rows[rowIdx]}))??1,{insetInlineStart,...style}=getCellStyle(column,colSpan),marginEnd="calc(var(--rdg-drag-handle-size) * -0.5 + 1px)",isLastColumn=column.idx+colSpan-1===maxColIdx;return{...style,gridRowStart,marginInlineEnd:isLastColumn?void 0:marginEnd,marginBlockEnd:isLastRow?void 0:marginEnd,insetInlineStart:insetInlineStart?`calc(${insetInlineStart} + ${columnWidth}px + var(--rdg-drag-handle-size) * -0.5 - 1px)`:void 0}}return jsxRuntimeExports.jsx("div",{style:getStyle(),className:clsx(cellDragHandleClassname,column.frozen&&cellDragHandleFrozenClassname),onClick,onMouseDown:handleMouseDown,onDoubleClick:handleDoubleClick})}const cellEditing="cis5rrm7-0-0-beta-51";function EditCell({column,colSpan,row:row$1,rowIdx,onRowChange,closeEditor,onKeyDown,navigate}){var _a,_b,_c;const frameRequestRef=reactExports.useRef(void 0),commitOnOutsideClick=((_a=column.editorOptions)==null?void 0:_a.commitOnOutsideClick)!==!1,commitOnOutsideMouseDown=useLatestFunc(()=>{onClose(!0,!1)});reactExports.useEffect(()=>{if(!commitOnOutsideClick)return;function onWindowCaptureMouseDown(){frameRequestRef.current=requestAnimationFrame(commitOnOutsideMouseDown)}return addEventListener("mousedown",onWindowCaptureMouseDown,{capture:!0}),()=>{removeEventListener("mousedown",onWindowCaptureMouseDown,{capture:!0}),cancelFrameRequest()}},[commitOnOutsideClick,commitOnOutsideMouseDown]);function cancelFrameRequest(){cancelAnimationFrame(frameRequestRef.current)}function handleKeyDown(event){if(onKeyDown){const cellEvent=createCellEvent(event);if(onKeyDown({mode:"EDIT",row:row$1,column,rowIdx,navigate(){navigate(event)},onClose},cellEvent),cellEvent.isGridDefaultPrevented())return}event.key==="Escape"?onClose():event.key==="Enter"?onClose(!0):onEditorNavigation(event)&&navigate(event)}function onClose(commitChanges=!1,shouldFocusCell=!0){commitChanges?onRowChange(row$1,!0,shouldFocusCell):closeEditor(shouldFocusCell)}function onEditorRowChange(row$2,commitChangesAndFocus=!1){onRowChange(row$2,commitChangesAndFocus,commitChangesAndFocus)}const{cellClass}=column,className=getCellClassname(column,"rdg-editor-container",!((_b=column.editorOptions)!=null&&_b.displayCellContent)&&cellEditing,typeof cellClass=="function"?cellClass(row$1):cellClass);return jsxRuntimeExports.jsx("div",{role:"gridcell","aria-colindex":column.idx+1,"aria-colspan":colSpan,"aria-selected":!0,className,style:getCellStyle(column,colSpan),onKeyDown:handleKeyDown,onMouseDownCapture:cancelFrameRequest,children:column.renderEditCell!=null&&jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[column.renderEditCell({column,row:row$1,rowIdx,onRowChange:onEditorRowChange,onClose}),((_c=column.editorOptions)==null?void 0:_c.displayCellContent)&&column.renderCell({column,row:row$1,rowIdx,isCellEditable:!0,tabIndex:-1,onRowChange:onEditorRowChange})]})})}function GroupedColumnHeaderCell({column,rowIdx,isCellSelected,selectCell}){const{tabIndex,onFocus}=useRovingTabIndex(isCellSelected),{colSpan}=column,rowSpan=getHeaderCellRowSpan(column,rowIdx),index=column.idx+1;function onClick(){selectCell({idx:column.idx,rowIdx})}return jsxRuntimeExports.jsx("div",{role:"columnheader","aria-colindex":index,"aria-colspan":colSpan,"aria-rowspan":rowSpan,"aria-selected":isCellSelected,tabIndex,className:clsx(cellClassname,column.headerCellClass),style:{...getHeaderCellStyle(column,rowIdx,rowSpan),gridColumnStart:index,gridColumnEnd:index+colSpan},onFocus,onClick,children:column.name})}const cellSortableClassname="c6l2wv17-0-0-beta-51",cellResizable="c1kqdw7y7-0-0-beta-51",cellResizableClassname=`rdg-cell-resizable ${cellResizable}`,resizeHandleClassname="r1y6ywlx7-0-0-beta-51",cellDraggableClassname="rdg-cell-draggable",cellDragging="c1bezg5o7-0-0-beta-51",cellDraggingClassname=`rdg-cell-dragging ${cellDragging}`,cellOver="c1vc96037-0-0-beta-51",cellOverClassname=`rdg-cell-drag-over ${cellOver}`;function HeaderCell({column,colSpan,rowIdx,isCellSelected,onColumnResize,onColumnsReorder,sortColumns,onSortColumnsChange,selectCell,shouldFocusGrid,direction,dragDropKey}){const hasDoubleClickedRef=reactExports.useRef(!1),[isDragging,setIsDragging]=reactExports.useState(!1),[isOver,setIsOver]=reactExports.useState(!1),isRtl=direction==="rtl",rowSpan=getHeaderCellRowSpan(column,rowIdx),{tabIndex,childTabIndex,onFocus}=useRovingTabIndex(isCellSelected),sortIndex=sortColumns==null?void 0:sortColumns.findIndex(sort=>sort.columnKey===column.key),sortColumn=sortIndex!==void 0&&sortIndex>-1?sortColumns[sortIndex]:void 0,sortDirection=sortColumn==null?void 0:sortColumn.direction,priority=sortColumn!==void 0&&sortColumns.length>1?sortIndex+1:void 0,ariaSort=sortDirection&&!priority?sortDirection==="ASC"?"ascending":"descending":void 0,{sortable,resizable,draggable}=column,className=getCellClassname(column,column.headerCellClass,{[cellSortableClassname]:sortable,[cellResizableClassname]:resizable,[cellDraggableClassname]:draggable,[cellDraggingClassname]:isDragging,[cellOverClassname]:isOver});function onPointerDown(event){if(event.pointerType==="mouse"&&event.buttons!==1)return;event.preventDefault();const{currentTarget,pointerId}=event,headerCell=currentTarget.parentElement,{right,left}=headerCell.getBoundingClientRect(),offset=isRtl?event.clientX-left:right-event.clientX;hasDoubleClickedRef.current=!1;function onPointerMove(event$1){const{width,right:right$1,left:left$1}=headerCell.getBoundingClientRect();let newWidth=isRtl?right$1+offset-event$1.clientX:event$1.clientX+offset-left$1;newWidth=clampColumnWidth(newWidth,column),width>0&&newWidth!==width&&onColumnResize(column,newWidth)}function onLostPointerCapture(event$1){hasDoubleClickedRef.current||onPointerMove(event$1),currentTarget.removeEventListener("pointermove",onPointerMove),currentTarget.removeEventListener("lostpointercapture",onLostPointerCapture)}currentTarget.setPointerCapture(pointerId),currentTarget.addEventListener("pointermove",onPointerMove),currentTarget.addEventListener("lostpointercapture",onLostPointerCapture)}function onDoubleClick(){hasDoubleClickedRef.current=!0,onColumnResize(column,"max-content")}function onSort(ctrlClick){if(onSortColumnsChange==null)return;const{sortDescendingFirst}=column;if(sortColumn===void 0){const nextSort={columnKey:column.key,direction:sortDescendingFirst?"DESC":"ASC"};onSortColumnsChange(sortColumns&&ctrlClick?[...sortColumns,nextSort]:[nextSort])}else{let nextSortColumn;if((sortDescendingFirst===!0&&sortDirection==="DESC"||sortDescendingFirst!==!0&&sortDirection==="ASC")&&(nextSortColumn={columnKey:column.key,direction:sortDirection==="ASC"?"DESC":"ASC"}),ctrlClick){const nextSortColumns=[...sortColumns];nextSortColumn?nextSortColumns[sortIndex]=nextSortColumn:nextSortColumns.splice(sortIndex,1),onSortColumnsChange(nextSortColumns)}else onSortColumnsChange(nextSortColumn?[nextSortColumn]:[])}}function onClick(event){selectCell({idx:column.idx,rowIdx}),sortable&&onSort(event.ctrlKey||event.metaKey)}function handleFocus(event){onFocus==null||onFocus(event),shouldFocusGrid&&selectCell({idx:0,rowIdx})}function onKeyDown(event){(event.key===" "||event.key==="Enter")&&(event.preventDefault(),onSort(event.ctrlKey||event.metaKey))}function onDragStart(event){event.dataTransfer.setData(dragDropKey,column.key),event.dataTransfer.dropEffect="move",setIsDragging(!0)}function onDragEnd(){setIsDragging(!1)}function onDragOver(event){event.preventDefault(),event.dataTransfer.dropEffect="move"}function onDrop(event){if(setIsOver(!1),event.dataTransfer.types.includes(dragDropKey.toLowerCase())){const sourceKey=event.dataTransfer.getData(dragDropKey.toLowerCase());sourceKey!==column.key&&(event.preventDefault(),onColumnsReorder==null||onColumnsReorder(sourceKey,column.key))}}function onDragEnter(event){isEventPertinent(event)&&setIsOver(!0)}function onDragLeave(event){isEventPertinent(event)&&setIsOver(!1)}let draggableProps;return draggable&&(draggableProps={draggable:!0,onDragStart,onDragEnd,onDragOver,onDragEnter,onDragLeave,onDrop}),jsxRuntimeExports.jsxs("div",{role:"columnheader","aria-colindex":column.idx+1,"aria-colspan":colSpan,"aria-rowspan":rowSpan,"aria-selected":isCellSelected,"aria-sort":ariaSort,tabIndex:shouldFocusGrid?0:tabIndex,className,style:{...getHeaderCellStyle(column,rowIdx,rowSpan),...getCellStyle(column,colSpan)},onFocus:handleFocus,onClick,onKeyDown:sortable?onKeyDown:void 0,...draggableProps,children:[column.renderHeaderCell({column,sortDirection,priority,tabIndex:childTabIndex}),resizable&&jsxRuntimeExports.jsx("div",{className:resizeHandleClassname,onClick:stopPropagation,onPointerDown,onDoubleClick})]})}function isEventPertinent(event){const relatedTarget=event.relatedTarget;return!event.currentTarget.contains(relatedTarget)}const row="r1upfr807-0-0-beta-51",rowClassname=`rdg-row ${row}`,rowSelected="r190mhd37-0-0-beta-51",rowSelectedClassname="rdg-row-selected",rowSelectedWithFrozenCell="r139qu9m7-0-0-beta-51",topSummaryRowClassname="rdg-top-summary-row",bottomSummaryRowClassname="rdg-bottom-summary-row",headerRow="h10tskcx7-0-0-beta-51",headerRowClassname=`rdg-header-row ${headerRow}`;function HeaderRow({rowIdx,columns,onColumnResize,onColumnsReorder,sortColumns,onSortColumnsChange,lastFrozenColumnIndex,selectedCellIdx,selectCell,shouldFocusGrid,direction}){const dragDropKey=reactExports.useId(),cells=[];for(let index=0;index<columns.length;index++){const column=columns[index],colSpan=getColSpan(column,lastFrozenColumnIndex,{type:"HEADER"});colSpan!==void 0&&(index+=colSpan-1),cells.push(jsxRuntimeExports.jsx(HeaderCell,{column,colSpan,rowIdx,isCellSelected:selectedCellIdx===column.idx,onColumnResize,onColumnsReorder,onSortColumnsChange,sortColumns,selectCell,shouldFocusGrid:shouldFocusGrid&&index===0,direction,dragDropKey},column.key))}return jsxRuntimeExports.jsx("div",{role:"row","aria-rowindex":rowIdx,className:clsx(headerRowClassname,{[rowSelectedClassname]:selectedCellIdx===-1}),children:cells})}var HeaderRow_default=reactExports.memo(HeaderRow);function GroupedColumnHeaderRow({rowIdx,level,columns,selectedCellIdx,selectCell}){const cells=[],renderedParents=new Set;for(const column of columns){let{parent}=column;if(parent!==void 0){for(;parent.level>level&&parent.parent!==void 0;)parent=parent.parent;if(parent.level===level&&!renderedParents.has(parent)){renderedParents.add(parent);const{idx}=parent;cells.push(jsxRuntimeExports.jsx(GroupedColumnHeaderCell,{column:parent,rowIdx,isCellSelected:selectedCellIdx===idx,selectCell},idx))}}}return jsxRuntimeExports.jsx("div",{role:"row","aria-rowindex":rowIdx,className:headerRowClassname,children:cells})}var GroupedColumnHeaderRow_default=reactExports.memo(GroupedColumnHeaderRow);function Row({className,rowIdx,gridRowStart,selectedCellIdx,isRowSelectionDisabled,isRowSelected,copiedCellIdx,draggedOverCellIdx,lastFrozenColumnIndex,row:row$1,viewportColumns,selectedCellEditor,onCellClick,onCellDoubleClick,onCellContextMenu,rowClass,setDraggedOverRowIdx,onMouseEnter,onRowChange,selectCell,...props}){const renderCell=useDefaultRenderers().renderCell,handleRowChange=useLatestFunc((column,newRow)=>{onRowChange(column,rowIdx,newRow)});function handleDragEnter(event){setDraggedOverRowIdx==null||setDraggedOverRowIdx(rowIdx),onMouseEnter==null||onMouseEnter(event)}className=clsx(rowClassname,`rdg-row-${rowIdx%2===0?"even":"odd"}`,{[rowSelectedClassname]:selectedCellIdx===-1},rowClass==null?void 0:rowClass(row$1,rowIdx),className);const cells=[];for(let index=0;index<viewportColumns.length;index++){const column=viewportColumns[index],{idx}=column,colSpan=getColSpan(column,lastFrozenColumnIndex,{type:"ROW",row:row$1});colSpan!==void 0&&(index+=colSpan-1);const isCellSelected=selectedCellIdx===idx;isCellSelected&&selectedCellEditor?cells.push(selectedCellEditor):cells.push(renderCell(column.key,{column,colSpan,row:row$1,rowIdx,isCopied:copiedCellIdx===idx,isDraggedOver:draggedOverCellIdx===idx,isCellSelected,onClick:onCellClick,onDoubleClick:onCellDoubleClick,onContextMenu:onCellContextMenu,onRowChange:handleRowChange,selectCell}))}const selectionValue=reactExports.useMemo(()=>({isRowSelected,isRowSelectionDisabled}),[isRowSelectionDisabled,isRowSelected]);return jsxRuntimeExports.jsx(RowSelectionContext,{value:selectionValue,children:jsxRuntimeExports.jsx("div",{role:"row",className,onMouseEnter:handleDragEnter,style:getRowStyle(gridRowStart),...props,children:cells})})}const RowComponent=reactExports.memo(Row);function defaultRenderRow(key,props){return jsxRuntimeExports.jsx(RowComponent,{...props},key)}function ScrollToCell({scrollToPosition:{idx,rowIdx},gridRef,setScrollToCellPosition}){const ref=reactExports.useRef(null);return reactExports.useLayoutEffect(()=>{scrollIntoView(ref.current)}),reactExports.useLayoutEffect(()=>{function removeScrollToCell(){setScrollToCellPosition(null)}const observer=new IntersectionObserver(removeScrollToCell,{root:gridRef.current,threshold:1});return observer.observe(ref.current),()=>{observer.disconnect()}},[gridRef,setScrollToCellPosition]),jsxRuntimeExports.jsx("div",{ref,style:{gridColumn:idx===void 0?"1/-1":idx+1,gridRow:rowIdx===void 0?"1/-1":rowIdx+2}})}const arrow="a3ejtar7-0-0-beta-51",arrowClassname=`rdg-sort-arrow ${arrow}`;function renderSortStatus({sortDirection,priority}){return jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[renderSortIcon({sortDirection}),renderSortPriority({priority})]})}function renderSortIcon({sortDirection}){return sortDirection===void 0?null:jsxRuntimeExports.jsx("svg",{viewBox:"0 0 12 8",width:"12",height:"8",className:arrowClassname,"aria-hidden":!0,children:jsxRuntimeExports.jsx("path",{d:sortDirection==="ASC"?"M0 8 6 0 12 8":"M0 0 6 8 12 0"})})}function renderSortPriority({priority}){return priority}const root="rnvodz57-0-0-beta-51",rootClassname=`rdg ${root}`,viewportDragging="vlqv91k7-0-0-beta-51",viewportDraggingClassname=`rdg-viewport-dragging ${viewportDragging}`,focusSinkClassname="f1lsfrzw7-0-0-beta-51",focusSinkHeaderAndSummaryClassname="f1cte0lg7-0-0-beta-51",summaryCellClassname="s8wc6fl7-0-0-beta-51";function SummaryCell({column,colSpan,row:row$1,rowIdx,isCellSelected,selectCell}){var _a;const{tabIndex,childTabIndex,onFocus}=useRovingTabIndex(isCellSelected),{summaryCellClass}=column,className=getCellClassname(column,summaryCellClassname,typeof summaryCellClass=="function"?summaryCellClass(row$1):summaryCellClass);function onClick(){selectCell({rowIdx,idx:column.idx})}return jsxRuntimeExports.jsx("div",{role:"gridcell","aria-colindex":column.idx+1,"aria-colspan":colSpan,"aria-selected":isCellSelected,tabIndex,className,style:getCellStyle(column,colSpan),onClick,onFocus,children:(_a=column.renderSummaryCell)==null?void 0:_a.call(column,{column,row:row$1,tabIndex:childTabIndex})})}var SummaryCell_default=reactExports.memo(SummaryCell);const summaryRow="skuhp557-0-0-beta-51",topSummaryRow="tf8l5ub7-0-0-beta-51",summaryRowClassname=`rdg-summary-row ${summaryRow}`;function SummaryRow({rowIdx,gridRowStart,row:row$1,viewportColumns,top,bottom,lastFrozenColumnIndex,selectedCellIdx,isTop,selectCell,"aria-rowindex":ariaRowIndex}){const cells=[];for(let index=0;index<viewportColumns.length;index++){const column=viewportColumns[index],colSpan=getColSpan(column,lastFrozenColumnIndex,{type:"SUMMARY",row:row$1});colSpan!==void 0&&(index+=colSpan-1);const isCellSelected=selectedCellIdx===column.idx;cells.push(jsxRuntimeExports.jsx(SummaryCell_default,{column,colSpan,row:row$1,rowIdx,isCellSelected,selectCell},column.key))}return jsxRuntimeExports.jsx("div",{role:"row","aria-rowindex":ariaRowIndex,className:clsx(rowClassname,`rdg-row-${rowIdx%2===0?"even":"odd"}`,summaryRowClassname,{[rowSelectedClassname]:selectedCellIdx===-1,[`${topSummaryRowClassname} ${topSummaryRow}`]:isTop,[bottomSummaryRowClassname]:!isTop}),style:{...getRowStyle(gridRowStart),"--rdg-summary-row-top":top!==void 0?`${top}px`:void 0,"--rdg-summary-row-bottom":bottom!==void 0?`${bottom}px`:void 0},children:cells})}var SummaryRow_default=reactExports.memo(SummaryRow);function DataGrid(props){const{ref,columns:rawColumns,rows,topSummaryRows,bottomSummaryRows,rowKeyGetter,onRowsChange,rowHeight:rawRowHeight,headerRowHeight:rawHeaderRowHeight,summaryRowHeight:rawSummaryRowHeight,selectedRows,isRowSelectionDisabled,onSelectedRowsChange,sortColumns,onSortColumnsChange,defaultColumnOptions,onCellClick,onCellDoubleClick,onCellContextMenu,onCellKeyDown,onSelectedCellChange,onScroll,onColumnResize,onColumnsReorder,onFill,onCopy,onPaste,enableVirtualization:rawEnableVirtualization,renderers,className,style,rowClass,direction:rawDirection,role:rawRole,"aria-label":ariaLabel,"aria-labelledby":ariaLabelledBy,"aria-description":ariaDescription,"aria-describedby":ariaDescribedBy,"aria-rowcount":rawAriaRowCount,"data-testid":testId,"data-cy":dataCy}=props,defaultRenderers=useDefaultRenderers(),role=rawRole??"grid",rowHeight=rawRowHeight??35,headerRowHeight=rawHeaderRowHeight??(typeof rowHeight=="number"?rowHeight:35),summaryRowHeight=rawSummaryRowHeight??(typeof rowHeight=="number"?rowHeight:35),renderRow=(renderers==null?void 0:renderers.renderRow)??(defaultRenderers==null?void 0:defaultRenderers.renderRow)??defaultRenderRow,renderCell=(renderers==null?void 0:renderers.renderCell)??(defaultRenderers==null?void 0:defaultRenderers.renderCell)??defaultRenderCell,renderSortStatus$1=(renderers==null?void 0:renderers.renderSortStatus)??(defaultRenderers==null?void 0:defaultRenderers.renderSortStatus)??renderSortStatus,renderCheckbox$1=(renderers==null?void 0:renderers.renderCheckbox)??(defaultRenderers==null?void 0:defaultRenderers.renderCheckbox)??renderCheckbox,noRowsFallback=(renderers==null?void 0:renderers.noRowsFallback)??(defaultRenderers==null?void 0:defaultRenderers.noRowsFallback),enableVirtualization=rawEnableVirtualization??!0,direction=rawDirection??"ltr",[scrollTop,setScrollTop]=reactExports.useState(0),[scrollLeft,setScrollLeft]=reactExports.useState(0),[resizedColumnWidths,setResizedColumnWidths]=reactExports.useState(()=>new Map),[measuredColumnWidths,setMeasuredColumnWidths]=reactExports.useState(()=>new Map),[copiedCell,setCopiedCell]=reactExports.useState(null),[isDragging,setDragging]=reactExports.useState(!1),[draggedOverRowIdx,setOverRowIdx]=reactExports.useState(void 0),[scrollToPosition,setScrollToPosition]=reactExports.useState(null),[shouldFocusCell,setShouldFocusCell]=reactExports.useState(!1),[previousRowIdx,setPreviousRowIdx]=reactExports.useState(-1),getColumnWidth=reactExports.useCallback(column=>resizedColumnWidths.get(column.key)??measuredColumnWidths.get(column.key)??column.width,[measuredColumnWidths,resizedColumnWidths]),[gridRef,gridWidth,gridHeight,horizontalScrollbarHeight]=useGridDimensions(),{columns,colSpanColumns,lastFrozenColumnIndex,headerRowsCount,colOverscanStartIdx,colOverscanEndIdx,templateColumns,layoutCssVars,totalFrozenColumnWidth}=useCalculatedColumns({rawColumns,defaultColumnOptions,getColumnWidth,scrollLeft,viewportWidth:gridWidth,enableVirtualization}),topSummaryRowsCount=(topSummaryRows==null?void 0:topSummaryRows.length)??0,bottomSummaryRowsCount=(bottomSummaryRows==null?void 0:bottomSummaryRows.length)??0,summaryRowsCount=topSummaryRowsCount+bottomSummaryRowsCount,headerAndTopSummaryRowsCount=headerRowsCount+topSummaryRowsCount,groupedColumnHeaderRowsCount=headerRowsCount-1,minRowIdx=-headerAndTopSummaryRowsCount,mainHeaderRowIdx=minRowIdx+groupedColumnHeaderRowsCount,maxRowIdx=rows.length+bottomSummaryRowsCount-1,[selectedPosition,setSelectedPosition]=reactExports.useState(()=>({idx:-1,rowIdx:minRowIdx-1,mode:"SELECT"})),latestDraggedOverRowIdx=reactExports.useRef(draggedOverRowIdx),focusSinkRef=reactExports.useRef(null),isTreeGrid=role==="treegrid",headerRowsHeight=headerRowsCount*headerRowHeight,summaryRowsHeight=summaryRowsCount*summaryRowHeight,clientHeight=gridHeight-headerRowsHeight-summaryRowsHeight,isSelectable=selectedRows!=null&&onSelectedRowsChange!=null,isRtl=direction==="rtl",leftKey=isRtl?"ArrowRight":"ArrowLeft",rightKey=isRtl?"ArrowLeft":"ArrowRight",ariaRowCount=rawAriaRowCount??headerRowsCount+rows.length+summaryRowsCount,defaultGridComponents=reactExports.useMemo(()=>({renderCheckbox:renderCheckbox$1,renderSortStatus:renderSortStatus$1,renderCell}),[renderCheckbox$1,renderSortStatus$1,renderCell]),headerSelectionValue=reactExports.useMemo(()=>{let hasSelectedRow=!1,hasUnselectedRow=!1;if(rowKeyGetter!=null&&selectedRows!=null&&selectedRows.size>0){for(const row$1 of rows)if(selectedRows.has(rowKeyGetter(row$1))?hasSelectedRow=!0:hasUnselectedRow=!0,hasSelectedRow&&hasUnselectedRow)break}return{isRowSelected:hasSelectedRow&&!hasUnselectedRow,isIndeterminate:hasSelectedRow&&hasUnselectedRow}},[rows,selectedRows,rowKeyGetter]),{rowOverscanStartIdx,rowOverscanEndIdx,totalRowHeight,gridTemplateRows,getRowTop,getRowHeight,findRowIdx}=useViewportRows({rows,rowHeight,clientHeight,scrollTop,enableVirtualization}),viewportColumns=useViewportColumns({columns,colSpanColumns,colOverscanStartIdx,colOverscanEndIdx,lastFrozenColumnIndex,rowOverscanStartIdx,rowOverscanEndIdx,rows,topSummaryRows,bottomSummaryRows}),{gridTemplateColumns,handleColumnResize}=useColumnWidths(columns,viewportColumns,templateColumns,gridRef,gridWidth,resizedColumnWidths,measuredColumnWidths,setResizedColumnWidths,setMeasuredColumnWidths,onColumnResize),minColIdx=isTreeGrid?-1:0,maxColIdx=columns.length-1,selectedCellIsWithinSelectionBounds=isCellWithinSelectionBounds(selectedPosition),selectedCellIsWithinViewportBounds=isCellWithinViewportBounds(selectedPosition),scrollHeight=headerRowHeight+totalRowHeight+summaryRowsHeight+horizontalScrollbarHeight,handleColumnResizeLatest=useLatestFunc(handleColumnResize),onColumnsReorderLastest=useLatestFunc(onColumnsReorder),onSortColumnsChangeLatest=useLatestFunc(onSortColumnsChange),onCellClickLatest=useLatestFunc(onCellClick),onCellDoubleClickLatest=useLatestFunc(onCellDoubleClick),onCellContextMenuLatest=useLatestFunc(onCellContextMenu),selectHeaderRowLatest=useLatestFunc(selectHeaderRow),selectRowLatest=useLatestFunc(selectRow),handleFormatterRowChangeLatest=useLatestFunc(updateRow),selectCellLatest=useLatestFunc(selectCell),selectHeaderCellLatest=useLatestFunc(({idx,rowIdx})=>{selectCell({rowIdx:minRowIdx+rowIdx-1,idx})}),setDraggedOverRowIdx=reactExports.useCallback(rowIdx=>{setOverRowIdx(rowIdx),latestDraggedOverRowIdx.current=rowIdx},[]),focusCellOrCellContent=reactExports.useCallback(()=>{const cell$1=getCellToScroll(gridRef.current);cell$1!==null&&(scrollIntoView(cell$1),(cell$1.querySelector('[tabindex="0"]')??cell$1).focus({preventScroll:!0}))},[gridRef]);reactExports.useLayoutEffect(()=>{focusSinkRef.current!==null&&selectedCellIsWithinSelectionBounds&&selectedPosition.idx===-1&&(focusSinkRef.current.focus({preventScroll:!0}),scrollIntoView(focusSinkRef.current))},[selectedCellIsWithinSelectionBounds,selectedPosition]),reactExports.useLayoutEffect(()=>{shouldFocusCell&&(setShouldFocusCell(!1),focusCellOrCellContent())},[shouldFocusCell,focusCellOrCellContent]),reactExports.useImperativeHandle(ref,()=>({element:gridRef.current,scrollToCell({idx,rowIdx}){const scrollToIdx=idx!==void 0&&idx>lastFrozenColumnIndex&&idx<columns.length?idx:void 0,scrollToRowIdx=rowIdx!==void 0&&isRowIdxWithinViewportBounds(rowIdx)?rowIdx:void 0;(scrollToIdx!==void 0||scrollToRowIdx!==void 0)&&setScrollToPosition({idx:scrollToIdx,rowIdx:scrollToRowIdx})},selectCell}));function selectHeaderRow(args){if(!onSelectedRowsChange)return;assertIsValidKeyGetter(rowKeyGetter);const newSelectedRows=new Set(selectedRows);for(const row$1 of rows){if((isRowSelectionDisabled==null?void 0:isRowSelectionDisabled(row$1))===!0)continue;const rowKey=rowKeyGetter(row$1);args.checked?newSelectedRows.add(rowKey):newSelectedRows.delete(rowKey)}onSelectedRowsChange(newSelectedRows)}function selectRow(args){if(!onSelectedRowsChange)return;assertIsValidKeyGetter(rowKeyGetter);const{row:row$1,checked,isShiftClick}=args;if((isRowSelectionDisabled==null?void 0:isRowSelectionDisabled(row$1))===!0)return;const newSelectedRows=new Set(selectedRows),rowKey=rowKeyGetter(row$1),rowIdx=rows.indexOf(row$1);if(setPreviousRowIdx(rowIdx),checked?newSelectedRows.add(rowKey):newSelectedRows.delete(rowKey),isShiftClick&&previousRowIdx!==-1&&previousRowIdx!==rowIdx&&previousRowIdx<rows.length){const step=sign(rowIdx-previousRowIdx);for(let i=previousRowIdx+step;i!==rowIdx;i+=step){const row$2=rows[i];(isRowSelectionDisabled==null?void 0:isRowSelectionDisabled(row$2))!==!0&&(checked?newSelectedRows.add(rowKeyGetter(row$2)):newSelectedRows.delete(rowKeyGetter(row$2)))}}onSelectedRowsChange(newSelectedRows)}function handleKeyDown(event){var _a;const{idx,rowIdx,mode}=selectedPosition;if(mode==="EDIT")return;if(onCellKeyDown&&isRowIdxWithinViewportBounds(rowIdx)){const row$1=rows[rowIdx],cellEvent=createCellEvent(event);if(onCellKeyDown({mode:"SELECT",row:row$1,column:columns[idx],rowIdx,selectCell},cellEvent),cellEvent.isGridDefaultPrevented())return}if(!(event.target instanceof Element))return;const isCellEvent=event.target.closest(".rdg-cell")!==null,isRowEvent=isTreeGrid&&event.target===focusSinkRef.current;if(!isCellEvent&&!isRowEvent)return;const{keyCode}=event;if(selectedCellIsWithinViewportBounds&&(onPaste!=null||onCopy!=null)&&isCtrlKeyHeldDown(event)){if(keyCode===67){if(((_a=window.getSelection())==null?void 0:_a.isCollapsed)===!1)return;handleCopy();return}if(keyCode===86){handlePaste();return}}switch(event.key){case"Escape":setCopiedCell(null);return;case"ArrowUp":case"ArrowDown":case"ArrowLeft":case"ArrowRight":case"Tab":case"Home":case"End":case"PageUp":case"PageDown":navigate(event);break;default:handleCellInput(event);break}}function handleScroll(event){const{scrollTop:scrollTop$1,scrollLeft:scrollLeft$1}=event.currentTarget;reactDomExports.flushSync(()=>{setScrollTop(scrollTop$1),setScrollLeft(abs(scrollLeft$1))}),onScroll==null||onScroll(event)}function updateRow(column,rowIdx,row$1){if(typeof onRowsChange!="function"||row$1===rows[rowIdx])return;const updatedRows=[...rows];updatedRows[rowIdx]=row$1,onRowsChange(updatedRows,{indexes:[rowIdx],column})}function commitEditorChanges(){selectedPosition.mode==="EDIT"&&updateRow(columns[selectedPosition.idx],selectedPosition.rowIdx,selectedPosition.row)}function handleCopy(){const{idx,rowIdx}=selectedPosition,sourceRow=rows[rowIdx],sourceColumnKey=columns[idx].key;setCopiedCell({row:sourceRow,columnKey:sourceColumnKey}),onCopy==null||onCopy({sourceRow,sourceColumnKey})}function handlePaste(){if(!onPaste||!onRowsChange||copiedCell===null||!isCellEditable(selectedPosition))return;const{idx,rowIdx}=selectedPosition,targetColumn=columns[idx],targetRow=rows[rowIdx],updatedTargetRow=onPaste({sourceRow:copiedCell.row,sourceColumnKey:copiedCell.columnKey,targetRow,targetColumnKey:targetColumn.key});updateRow(targetColumn,rowIdx,updatedTargetRow)}function handleCellInput(event){if(!selectedCellIsWithinViewportBounds)return;const row$1=rows[selectedPosition.rowIdx],{key,shiftKey}=event;if(isSelectable&&shiftKey&&key===" "){assertIsValidKeyGetter(rowKeyGetter);const rowKey=rowKeyGetter(row$1);selectRow({row:row$1,checked:!selectedRows.has(rowKey),isShiftClick:!1}),event.preventDefault();return}isCellEditable(selectedPosition)&&isDefaultCellInput(event)&&setSelectedPosition(({idx,rowIdx})=>({idx,rowIdx,mode:"EDIT",row:row$1,originalRow:row$1}))}function isColIdxWithinSelectionBounds(idx){return idx>=minColIdx&&idx<=maxColIdx}function isRowIdxWithinViewportBounds(rowIdx){return rowIdx>=0&&rowIdx<rows.length}function isCellWithinSelectionBounds({idx,rowIdx}){return rowIdx>=minRowIdx&&rowIdx<=maxRowIdx&&isColIdxWithinSelectionBounds(idx)}function isCellWithinEditBounds({idx,rowIdx}){return isRowIdxWithinViewportBounds(rowIdx)&&idx>=0&&idx<=maxColIdx}function isCellWithinViewportBounds({idx,rowIdx}){return isRowIdxWithinViewportBounds(rowIdx)&&isColIdxWithinSelectionBounds(idx)}function isCellEditable(position){return isCellWithinEditBounds(position)&&isSelectedCellEditable({columns,rows,selectedPosition:position})}function selectCell(position,enableEditor){if(!isCellWithinSelectionBounds(position))return;commitEditorChanges();const samePosition=isSamePosition(selectedPosition,position);if(enableEditor&&isCellEditable(position)){const row$1=rows[position.rowIdx];setSelectedPosition({...position,mode:"EDIT",row:row$1,originalRow:row$1})}else samePosition?scrollIntoView(getCellToScroll(gridRef.current)):(setShouldFocusCell(!0),setSelectedPosition({...position,mode:"SELECT"}));onSelectedCellChange&&!samePosition&&onSelectedCellChange({rowIdx:position.rowIdx,row:isRowIdxWithinViewportBounds(position.rowIdx)?rows[position.rowIdx]:void 0,column:columns[position.idx]})}function getNextPosition(key,ctrlKey,shiftKey){const{idx,rowIdx}=selectedPosition,isRowSelected=selectedCellIsWithinSelectionBounds&&idx===-1;switch(key){case"ArrowUp":return{idx,rowIdx:rowIdx-1};case"ArrowDown":return{idx,rowIdx:rowIdx+1};case leftKey:return{idx:idx-1,rowIdx};case rightKey:return{idx:idx+1,rowIdx};case"Tab":return{idx:idx+(shiftKey?-1:1),rowIdx};case"Home":return isRowSelected?{idx,rowIdx:minRowIdx}:{idx:0,rowIdx:ctrlKey?minRowIdx:rowIdx};case"End":return isRowSelected?{idx,rowIdx:maxRowIdx}:{idx:maxColIdx,rowIdx:ctrlKey?maxRowIdx:rowIdx};case"PageUp":{if(selectedPosition.rowIdx===minRowIdx)return selectedPosition;const nextRowY=getRowTop(rowIdx)+getRowHeight(rowIdx)-clientHeight;return{idx,rowIdx:nextRowY>0?findRowIdx(nextRowY):0}}case"PageDown":{if(selectedPosition.rowIdx>=rows.length)return selectedPosition;const nextRowY=getRowTop(rowIdx)+clientHeight;return{idx,rowIdx:nextRowY<totalRowHeight?findRowIdx(nextRowY):rows.length-1}}default:return selectedPosition}}function navigate(event){const{key,shiftKey}=event;let cellNavigationMode="NONE";if(key==="Tab"){if(canExitGrid({shiftKey,maxColIdx,minRowIdx,maxRowIdx,selectedPosition})){commitEditorChanges();return}cellNavigationMode="CHANGE_ROW"}event.preventDefault();const ctrlKey=isCtrlKeyHeldDown(event),nextPosition=getNextPosition(key,ctrlKey,shiftKey);if(isSamePosition(selectedPosition,nextPosition))return;const nextSelectedCellPosition=getNextSelectedCellPosition({moveUp:key==="ArrowUp",moveNext:key===rightKey||key==="Tab"&&!shiftKey,columns,colSpanColumns,rows,topSummaryRows,bottomSummaryRows,minRowIdx,mainHeaderRowIdx,maxRowIdx,lastFrozenColumnIndex,cellNavigationMode,currentPosition:selectedPosition,nextPosition,isCellWithinBounds:isCellWithinSelectionBounds});selectCell(nextSelectedCellPosition)}function getDraggedOverCellIdx(currentRowIdx){if(draggedOverRowIdx===void 0)return;const{rowIdx}=selectedPosition;return(rowIdx<draggedOverRowIdx?rowIdx<currentRowIdx&¤tRowIdx<=draggedOverRowIdx:rowIdx>currentRowIdx&¤tRowIdx>=draggedOverRowIdx)?selectedPosition.idx:void 0}function renderDragHandle(){if(onFill==null||selectedPosition.mode==="EDIT"||!isCellWithinViewportBounds(selectedPosition))return;const{idx,rowIdx}=selectedPosition,column=columns[idx];if(column.renderEditCell==null||column.editable===!1)return;const columnWidth=getColumnWidth(column);return jsxRuntimeExports.jsx(DragHandle,{gridRowStart:headerAndTopSummaryRowsCount+rowIdx+1,rows,column,columnWidth,maxColIdx,isLastRow:rowIdx===maxRowIdx,selectedPosition,isCellEditable,latestDraggedOverRowIdx,onRowsChange,onClick:focusCellOrCellContent,onFill,setDragging,setDraggedOverRowIdx})}function getCellEditor(rowIdx){if(selectedPosition.rowIdx!==rowIdx||selectedPosition.mode==="SELECT")return;const{idx,row:row$1}=selectedPosition,column=columns[idx],colSpan=getColSpan(column,lastFrozenColumnIndex,{type:"ROW",row:row$1}),closeEditor=shouldFocusCell$1=>{setShouldFocusCell(shouldFocusCell$1),setSelectedPosition(({idx:idx$1,rowIdx:rowIdx$1})=>({idx:idx$1,rowIdx:rowIdx$1,mode:"SELECT"}))},onRowChange=(row$2,commitChanges,shouldFocusCell$1)=>{commitChanges?reactDomExports.flushSync(()=>{updateRow(column,selectedPosition.rowIdx,row$2),closeEditor(shouldFocusCell$1)}):setSelectedPosition(position=>({...position,row:row$2}))};return rows[selectedPosition.rowIdx]!==selectedPosition.originalRow&&closeEditor(!1),jsxRuntimeExports.jsx(EditCell,{column,colSpan,row:row$1,rowIdx,onRowChange,closeEditor,onKeyDown:onCellKeyDown,navigate},column.key)}function getRowViewportColumns(rowIdx){const selectedColumn=selectedPosition.idx===-1?void 0:columns[selectedPosition.idx];return selectedColumn!==void 0&&selectedPosition.rowIdx===rowIdx&&!viewportColumns.includes(selectedColumn)?selectedPosition.idx>colOverscanEndIdx?[...viewportColumns,selectedColumn]:[...viewportColumns.slice(0,lastFrozenColumnIndex+1),selectedColumn,...viewportColumns.slice(lastFrozenColumnIndex+1)]:viewportColumns}function getViewportRows(){const rowElements=[],{idx:selectedIdx,rowIdx:selectedRowIdx}=selectedPosition,startRowIdx=selectedCellIsWithinViewportBounds&&selectedRowIdx<rowOverscanStartIdx?rowOverscanStartIdx-1:rowOverscanStartIdx,endRowIdx=selectedCellIsWithinViewportBounds&&selectedRowIdx>rowOverscanEndIdx?rowOverscanEndIdx+1:rowOverscanEndIdx;for(let viewportRowIdx=startRowIdx;viewportRowIdx<=endRowIdx;viewportRowIdx++){const isRowOutsideViewport=viewportRowIdx===rowOverscanStartIdx-1||viewportRowIdx===rowOverscanEndIdx+1,rowIdx=isRowOutsideViewport?selectedRowIdx:viewportRowIdx;let rowColumns=viewportColumns;const selectedColumn=selectedIdx===-1?void 0:columns[selectedIdx];selectedColumn!==void 0&&(isRowOutsideViewport?rowColumns=[selectedColumn]:rowColumns=getRowViewportColumns(rowIdx));const row$1=rows[rowIdx],gridRowStart=headerAndTopSummaryRowsCount+rowIdx+1;let key=rowIdx,isRowSelected=!1;typeof rowKeyGetter=="function"&&(key=rowKeyGetter(row$1),isRowSelected=(selectedRows==null?void 0:selectedRows.has(key))??!1),rowElements.push(renderRow(key,{"aria-rowindex":headerAndTopSummaryRowsCount+rowIdx+1,"aria-selected":isSelectable?isRowSelected:void 0,rowIdx,row:row$1,viewportColumns:rowColumns,isRowSelectionDisabled:(isRowSelectionDisabled==null?void 0:isRowSelectionDisabled(row$1))??!1,isRowSelected,onCellClick:onCellClickLatest,onCellDoubleClick:onCellDoubleClickLatest,onCellContextMenu:onCellContextMenuLatest,rowClass,gridRowStart,copiedCellIdx:copiedCell!==null&&copiedCell.row===row$1?columns.findIndex(c2=>c2.key===copiedCell.columnKey):void 0,selectedCellIdx:selectedRowIdx===rowIdx?selectedIdx:void 0,draggedOverCellIdx:getDraggedOverCellIdx(rowIdx),setDraggedOverRowIdx:isDragging?setDraggedOverRowIdx:void 0,lastFrozenColumnIndex,onRowChange:handleFormatterRowChangeLatest,selectCell:selectCellLatest,selectedCellEditor:getCellEditor(rowIdx)}))}return rowElements}(selectedPosition.idx>maxColIdx||selectedPosition.rowIdx>maxRowIdx)&&(setSelectedPosition({idx:-1,rowIdx:minRowIdx-1,mode:"SELECT"}),setDraggedOverRowIdx(void 0));let templateRows=`repeat(${headerRowsCount}, ${headerRowHeight}px)`;topSummaryRowsCount>0&&(templateRows+=` repeat(${topSummaryRowsCount}, ${summaryRowHeight}px)`),rows.length>0&&(templateRows+=gridTemplateRows),bottomSummaryRowsCount>0&&(templateRows+=` repeat(${bottomSummaryRowsCount}, ${summaryRowHeight}px)`);const isGroupRowFocused=selectedPosition.idx===-1&&selectedPosition.rowIdx!==minRowIdx-1;return jsxRuntimeExports.jsxs("div",{role,"aria-label":ariaLabel,"aria-labelledby":ariaLabelledBy,"aria-description":ariaDescription,"aria-describedby":ariaDescribedBy,"aria-multiselectable":isSelectable?!0:void 0,"aria-colcount":columns.length,"aria-rowcount":ariaRowCount,className:clsx(rootClassname,{[viewportDraggingClassname]:isDragging},className),style:{...style,scrollPaddingInlineStart:selectedPosition.idx>lastFrozenColumnIndex||(scrollToPosition==null?void 0:scrollToPosition.idx)!==void 0?`${totalFrozenColumnWidth}px`:void 0,scrollPaddingBlock:isRowIdxWithinViewportBounds(selectedPosition.rowIdx)||(scrollToPosition==null?void 0:scrollToPosition.rowIdx)!==void 0?`${headerRowsHeight+topSummaryRowsCount*summaryRowHeight}px ${bottomSummaryRowsCount*summaryRowHeight}px`:void 0,gridTemplateColumns,gridTemplateRows:templateRows,"--rdg-header-row-height":`${headerRowHeight}px`,"--rdg-scroll-height":`${scrollHeight}px`,...layoutCssVars},dir:direction,ref:gridRef,onScroll:handleScroll,onKeyDown:handleKeyDown,"data-testid":testId,"data-cy":dataCy,children:[jsxRuntimeExports.jsxs(DataGridDefaultRenderersContext,{value:defaultGridComponents,children:[jsxRuntimeExports.jsx(HeaderRowSelectionChangeContext,{value:selectHeaderRowLatest,children:jsxRuntimeExports.jsxs(HeaderRowSelectionContext,{value:headerSelectionValue,children:[Array.from({length:groupedColumnHeaderRowsCount},(_,index)=>jsxRuntimeExports.jsx(GroupedColumnHeaderRow_default,{rowIdx:index+1,level:-groupedColumnHeaderRowsCount+index,columns:getRowViewportColumns(minRowIdx+index),selectedCellIdx:selectedPosition.rowIdx===minRowIdx+index?selectedPosition.idx:void 0,selectCell:selectHeaderCellLatest},index)),jsxRuntimeExports.jsx(HeaderRow_default,{rowIdx:headerRowsCount,columns:getRowViewportColumns(mainHeaderRowIdx),onColumnResize:handleColumnResizeLatest,onColumnsReorder:onColumnsReorderLastest,sortColumns,onSortColumnsChange:onSortColumnsChangeLatest,lastFrozenColumnIndex,selectedCellIdx:selectedPosition.rowIdx===mainHeaderRowIdx?selectedPosition.idx:void 0,selectCell:selectHeaderCellLatest,shouldFocusGrid:!selectedCellIsWithinSelectionBounds,direction})]})}),rows.length===0&&noRowsFallback?noRowsFallback:jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[topSummaryRows==null?void 0:topSummaryRows.map((row$1,rowIdx)=>{const gridRowStart=headerRowsCount+1+rowIdx,summaryRowIdx=mainHeaderRowIdx+1+rowIdx,isSummaryRowSelected=selectedPosition.rowIdx===summaryRowIdx,top=headerRowsHeight+summaryRowHeight*rowIdx;return jsxRuntimeExports.jsx(SummaryRow_default,{"aria-rowindex":gridRowStart,rowIdx:summaryRowIdx,gridRowStart,row:row$1,top,bottom:void 0,viewportColumns:getRowViewportColumns(summaryRowIdx),lastFrozenColumnIndex,selectedCellIdx:isSummaryRowSelected?selectedPosition.idx:void 0,isTop:!0,selectCell:selectCellLatest},rowIdx)}),jsxRuntimeExports.jsx(RowSelectionChangeContext,{value:selectRowLatest,children:getViewportRows()}),bottomSummaryRows==null?void 0:bottomSummaryRows.map((row$1,rowIdx)=>{const gridRowStart=headerAndTopSummaryRowsCount+rows.length+rowIdx+1,summaryRowIdx=rows.length+rowIdx,isSummaryRowSelected=selectedPosition.rowIdx===summaryRowIdx,top=clientHeight>totalRowHeight?gridHeight-summaryRowHeight*(bottomSummaryRows.length-rowIdx):void 0,bottom=top===void 0?summaryRowHeight*(bottomSummaryRows.length-1-rowIdx):void 0;return jsxRuntimeExports.jsx(SummaryRow_default,{"aria-rowindex":ariaRowCount-bottomSummaryRowsCount+rowIdx+1,rowIdx:summaryRowIdx,gridRowStart,row:row$1,top,bottom,viewportColumns:getRowViewportColumns(summaryRowIdx),lastFrozenColumnIndex,selectedCellIdx:isSummaryRowSelected?selectedPosition.idx:void 0,isTop:!1,selectCell:selectCellLatest},rowIdx)})]})]}),renderDragHandle(),renderMeasuringCells(viewportColumns),isTreeGrid&&jsxRuntimeExports.jsx("div",{ref:focusSinkRef,tabIndex:isGroupRowFocused?0:-1,className:clsx(focusSinkClassname,{[focusSinkHeaderAndSummaryClassname]:!isRowIdxWithinViewportBounds(selectedPosition.rowIdx),[rowSelected]:isGroupRowFocused,[rowSelectedWithFrozenCell]:isGroupRowFocused&&lastFrozenColumnIndex!==-1}),style:{gridRowStart:selectedPosition.rowIdx+headerAndTopSummaryRowsCount+1}}),scrollToPosition!==null&&jsxRuntimeExports.jsx(ScrollToCell,{scrollToPosition,setScrollToCellPosition:setScrollToPosition,gridRef})]})}function getCellToScroll(gridEl){return gridEl.querySelector(':scope > [role="row"] > [tabindex="0"]')}function isSamePosition(p1,p2){return p1.idx===p2.idx&&p1.rowIdx===p2.rowIdx}function GroupCell({id,groupKey,childRows,isExpanded,isCellSelected,column,row:row$1,groupColumnIndex,isGroupByColumn,toggleGroup:toggleGroupWrapper}){var _a;const{tabIndex,childTabIndex,onFocus}=useRovingTabIndex(isCellSelected);function toggleGroup(){toggleGroupWrapper(id)}const isLevelMatching=isGroupByColumn&&groupColumnIndex===column.idx;return jsxRuntimeExports.jsx("div",{role:"gridcell","aria-colindex":column.idx+1,"aria-selected":isCellSelected,tabIndex,className:getCellClassname(column),style:{...getCellStyle(column),cursor:isLevelMatching?"pointer":"default"},onClick:isLevelMatching?toggleGroup:void 0,onFocus,children:(!isGroupByColumn||isLevelMatching)&&((_a=column.renderGroupCell)==null?void 0:_a.call(column,{groupKey,childRows,column,row:row$1,isExpanded,tabIndex:childTabIndex,toggleGroup}))},column.key)}var GroupCell_default=reactExports.memo(GroupCell);const groupRow="g1yxluv37-0-0-beta-51",groupRowClassname=`rdg-group-row ${groupRow}`;function GroupedRow({className,row:row$1,rowIdx,viewportColumns,selectedCellIdx,isRowSelected,selectCell,gridRowStart,groupBy,toggleGroup,isRowSelectionDisabled,...props}){const idx=viewportColumns[0].key===SELECT_COLUMN_KEY?row$1.level+1:row$1.level;function handleSelectGroup(){selectCell({rowIdx,idx:-1})}const selectionValue=reactExports.useMemo(()=>({isRowSelectionDisabled:!1,isRowSelected}),[isRowSelected]);return jsxRuntimeExports.jsx(RowSelectionContext,{value:selectionValue,children:jsxRuntimeExports.jsx("div",{role:"row","aria-level":row$1.level+1,"aria-setsize":row$1.setSize,"aria-posinset":row$1.posInSet+1,"aria-expanded":row$1.isExpanded,className:clsx(rowClassname,groupRowClassname,`rdg-row-${rowIdx%2===0?"even":"odd"}`,selectedCellIdx===-1&&rowSelectedClassname,className),onClick:handleSelectGroup,style:getRowStyle(gridRowStart),...props,children:viewportColumns.map(column=>jsxRuntimeExports.jsx(GroupCell_default,{id:row$1.id,groupKey:row$1.groupKey,childRows:row$1.childRows,isExpanded:row$1.isExpanded,isCellSelected:selectedCellIdx===column.idx,column,row:row$1,groupColumnIndex:idx,toggleGroup,isGroupByColumn:groupBy.includes(column.key)},column.key))})})}reactExports.memo(GroupedRow);class ErrorBoundary extends reactExports.Component{constructor(){super(...arguments),__publicField$1(this,"state",{hasError:!1,error:null}),__publicField$1(this,"handleReset",()=>{this.setState({hasError:!1,error:null})})}static getDerivedStateFromError(error){return{hasError:!0,error}}componentDidCatch(error,errorInfo){console.error("Error caught by boundary:",error),console.error("Component stack:",errorInfo.componentStack)}render(){var _a;return this.state.hasError?this.props.fallback?this.props.fallback:jsxRuntimeExports.jsx("div",{className:"min-h-[200px] flex items-center justify-center p-8 bg-red-50 rounded-lg border border-red-100",children:jsxRuntimeExports.jsxs("div",{className:"text-center",children:[jsxRuntimeExports.jsx("h2",{className:"text-xl font-semibold text-red-700 mb-2",children:"Something went wrong"}),jsxRuntimeExports.jsx("p",{className:"text-red-600",children:(_a=this.state.error)==null?void 0:_a.message}),jsxRuntimeExports.jsx("button",{onClick:this.handleReset,className:"mt-4 px-4 py-2 bg-red-600 text-white rounded-md hover:bg-red-700 transition-colors",children:"Try again"})]})}):this.props.children}}function useData(widget){const columns=React.useMemo(()=>widget.columns(),[widget,widget.dataChecksum()]),data=React.useMemo(()=>widget.data(),[widget,widget.dataChecksum()]);return[columns,data]}function copyAndSort(items,attribute,descending){const key=attribute;return[...items].sort((a2,b)=>a2[key]<b[key]?descending?1:-1:a2[key]>b[key]?descending?-1:1:0)}const EmptyRowsRenderer=({message})=>jsxRuntimeExports.jsx("div",{style:{textAlign:"center",gridColumn:"1/-1"},children:message}),ReactTable=({table,sort})=>{const[columns,data]=useData(table),multiSelect=table.multiSelect(),columnTypes=table.columnTypes(),columnPatterns=table.columnPatterns(),columnFormats=table.columnFormats(),[listColumns,setListColumns]=reactExports.useState([]),[sortColumn,setSortColumn]=reactExports.useState(),[rows,setRows]=reactExports.useState([]),[selectedRows,setSelectedRows]=reactExports.useState(new Set);reactExports.useEffect(()=>{setListColumns([...multiSelect?[SelectColumn]:[],...columns.map(column=>{const type=columnTypes[column]??"string";let formatter,__hpcc_pattern,__hpcc_format;switch(type){case"time":__hpcc_pattern=columnPatterns[column]!==void 0?common.timeParse(columnPatterns[column]):void 0,__hpcc_format=columnFormats[column]!==void 0?common.timeFormat(columnFormats[column]):void 0;break;case"number":formatter=props=>jsxRuntimeExports.jsx("div",{style:{textAlign:"right"},children:props.row[props.column.key]});default:__hpcc_format=columnFormats[column]!==void 0?common.format(columnFormats[column]):void 0}return{key:column,name:column,resizable:!0,sortable:!0,minWidth:80,renderCell:formatter,__hpcc_pattern,__hpcc_format}})])},[columnFormats,columnPatterns,columnTypes,columns,multiSelect]);const onSortColumnsChange=reactExports.useCallback(sortColumns=>{const futureSortColumn=sortColumns.slice(-1)[0],sorted=futureSortColumn!==void 0,isSortedDescending=(futureSortColumn==null?void 0:futureSortColumn.direction)==="DESC";setSortColumn(futureSortColumn),setRows(copyAndSort(rows,sorted?futureSortColumn.columnKey:"key",sorted?isSortedDescending:!1))},[rows]),rowKeyGetter=reactExports.useCallback(row2=>row2.key,[]),onSelectedRowsChange=reactExports.useCallback(selectedRows2=>{setSelectedRows(selectedRows2)},[]),onCellClick=reactExports.useCallback((row2,column)=>{table.onRowClickCallback(row2,column.key)},[table]);return reactExports.useEffect(()=>{let items=data.map((row2,index)=>{const retVal={key:index};return listColumns.forEach((column,index2)=>{let val=row2[index2];column.__hpcc_pattern&&column.__hpcc_format?val=column.__hpcc_format(column.__hpcc_pattern(val)):column.__hpcc_pattern?val=column.__hpcc_pattern(val).toString():column.__hpcc_format&&(val=column.__hpcc_format(val)),retVal[column.key]=val}),retVal});sort!=null&&sort.attribute&&(items=copyAndSort(items,sort.attribute,sort.descending)),setRows(items)},[listColumns,data,sort]),jsxRuntimeExports.jsx(ErrorBoundary,{fallback:jsxRuntimeExports.jsx("div",{children:"Error loading table"}),children:jsxRuntimeExports.jsx(DataGrid,{columns:listColumns,headerRowHeight:24,rows,rowKeyGetter,rowHeight:20,renderers:{noRowsFallback:jsxRuntimeExports.jsx(EmptyRowsRenderer,{message:table.noDataMessage()})},className:table.darkMode()?"rdg-dark":"rdg-light",sortColumns:sortColumn?[sortColumn]:[],onSortColumnsChange,selectedRows,onSelectedRowsChange:multiSelect?onSelectedRowsChange:void 0,onCellClick:multiSelect?void 0:(args,event)=>onCellClick(args.row,args.column),style:{height:"100%"}})})};class Table extends common.HTMLWidget{constructor(){super(),__publicField$1(this,"_div"),__publicField$1(this,"_root"),__publicField$1(this,"_component"),__publicField$1(this,"_prevRow"),__publicField$1(this,"_prevColumn")}columnType(column,type){return arguments.length===1?this.columnTypes()[column]:(this.columnTypes({...this.columnTypes(),[column]:type}),this)}columnPattern(column,pattern){return arguments.length===1?this.columnPatterns()[column]:(this.columnPatterns({...this.columnPatterns(),[column]:pattern}),this)}columnFormat(column,format2){return arguments.length===1?this.columnFormats()[column]:(this.columnFormats({...this.columnFormats(),[column]:format2}),this)}onRowClickCallback(row2,column){this._prevRow&&JSON.stringify(this._prevRow)!==JSON.stringify(row2)&&this.click(this._prevRow,this._prevColumn??"",!1),row2&&this.click(row2,column,!0),this._prevRow=row2,this._prevColumn=column}enter(domNode,element){super.enter(domNode,element),this._div=element.append("div").style("display","grid"),this._root=clientExports.createRoot(this._div.node(),{identifierPrefix:this.id()}),this._component=reactExports.createElement(ReactTable,{table:this})}update(domNode,element){super.update(domNode,element),this._div.style("width",this.width()+"px"),this._div.style("height",this.height()+"px"),this._root.render(this._component)}exit(domNode,element){this._div.remove(),super.exit(domNode,element)}click(row2,col,sel){}}Table.prototype._class+=" dgrid2_Table",Table.prototype.publish("noDataMessage","...empty...","string","No Data Message"),Table.prototype.publish("darkMode",!1,"boolean","Dark Mode"),Table.prototype.publish("multiSelect",!1,"boolean","Multiple Selection"),Table.prototype.publish("columnTypes",{},"object",'Column Types ("boolean" | "number" | "string" | "time"'),Table.prototype.publish("columnPatterns",{},"object","Column Patterns"),Table.prototype.publish("columnFormats",{},"object","Column Formats"),function(){try{if(typeof document<"u"){var o=document.createElement("style");o.appendChild(document.createTextNode('.layout_AbsoluteSurface{pointer-events:none!important}.layout_AbsoluteSurface>.placeholder{position:relative;overflow:hidden;pointer-events:all}.layout_Accordion>ul{position:relative}.layout_Accordion.open>span{font-style:italic}.layout_Accordion.closed>ul{height:0px;overflow:hidden}.layout_Accordion.open>ul{display:block}.layout_Accordion>.collapsible-icon,.layout_Accordion>.collapsible-title{cursor:pointer;box-sizing:border-box}.layout_Accordion>.collapsible-title{display:block;width:100%}.layout_Accordion>.collapsible-title{font-size:13px;color:#fff;padding:4px 8px;height:26px;-webkit-box-shadow:inset 0px -1px 1px 0px rgba(0,0,0,.2);-moz-box-shadow:inset 0px -1px 1px 0px rgba(0,0,0,.2);box-shadow:inset 0 -1px 1px #0003}.layout_Accordion li{background-color:#fff}.layout_Accordion>ul,.layout_Accordion>.collapsible-title{background-color:#333}.layout_Accordion .layout_Accordion>ul,.layout_Accordion .layout_Accordion>.collapsible-title{background-color:#555}.layout_Accordion .layout_Accordion .layout_Accordion>ul,.layout_Accordion .layout_Accordion .layout_Accordion>.collapsible-title{background-color:#777}.layout_Accordion .layout_Accordion .layout_Accordion .layout_Accordion>ul,.layout_Accordion .layout_Accordion .layout_Accordion .layout_Accordion>.collapsible-title{background-color:#999}.layout_Accordion .layout_Accordion .layout_Accordion .layout_Accordion .layout_Accordion>ul,.layout_Accordion .layout_Accordion .layout_Accordion .layout_Accordion .layout_Accordion>.collapsible-title{background-color:#bbb}.layout_Accordion .layout_Accordion .layout_Accordion .layout_Accordion .layout_Accordion .layout_Accordion>ul,.layout_Accordion .layout_Accordion .layout_Accordion .layout_Accordion .layout_Accordion .layout_Accordion>.collapsible-title{background-color:#ccc}.layout_Accordion .layout_Accordion .layout_Accordion .layout_Accordion .layout_Accordion .layout_Accordion .layout_Accordion>ul,.layout_Accordion .layout_Accordion .layout_Accordion .layout_Accordion .layout_Accordion .layout_Accordion .layout_Accordion>.collapsible-title{background-color:#ddd}.layout_Accordion>ul,.layout_Accordion>span{padding-left:0}.layout_Accordion .layout_Accordion>ul,.layout_Accordion .layout_Accordion>span{padding-left:12px}.layout_Accordion>.collapsible-title:before{padding:4px 8px;position:absolute;left:0;top:0}.layout_Accordion>.collapsible-icon{position:absolute;top:0;right:0;width:24px;height:24px;color:#fff}.layout_Surface{box-sizing:border-box;margin:0;border:1px solid #e5e5e5;overflow:hidden;height:100%;width:100%}.layout_Surface.shadow2{box-shadow:0 2px 2px #00000024,0 3px 1px -2px #0003,0 1px 5px #0000001f}.layout_Surface>h3{margin:0;padding:2px;background-color:#e5e5e5}.layout_Surface .html-button-container{position:absolute;right:0;top:3px}.layout_Surface>div{padding:8px}.layout_Surface .html-button-container .surface-button{margin-right:5px}.layout_Surface .html-button-container .surface-button i{opacity:.8}.layout_Surface .html-button-container .surface-button:hover{opacity:1}.layout_Surface .html-button-container .surface-button:active{opacity:.5}div[draggable=true].hideDragCellContent.content-icon:before{content:"";font-family:FontAwesome;position:absolute;top:calc(50% - 74px);left:calc(50% - 56px);font-size:100px}div[draggable=true].hideDragCellContent.content-icon-Line:before{content:""}div[draggable=true].hideDragCellContent.content-icon-Pie:before{top:calc(50% - 72px);left:calc(50% - 45px);content:""}div[draggable=true].hideDragCellContent.content-icon-Area:before{content:""}div[draggable=true].hideDragCellContent.content-icon-Gauge:before{content:""}div[draggable=true].hideDragCellContent.content-icon-Table:before{content:""}div[draggable=true].hideDragCellContent.content-icon-Form:before{content:""}div[draggable=true].hideDragCellContent.content-icon-Grid:before,div[draggable=true].hideDragCellContent.content-icon-Graph:before,div[draggable=true].hideDragCellContent.content-icon-Border:before,div[draggable=true].hideDragCellContent.content-icon-Tabbed:before,div[draggable=true].hideDragCellContent.content-icon-Accordion:before,div[draggable=true].hideDragCellContent.content-icon-MultiChart:before,div[draggable=true].hideDragCellContent.content-icon-MultiChartSurface:before{content:""}div[draggable=true].hideDragCellContent.content-icon-ChoroplethStates:before,div[draggable=true].hideDragCellContent.content-icon-ChoroplethStatesHeat:before,div[draggable=true].hideDragCellContent.content-icon-ChoroplethCounties:before,div[draggable=true].hideDragCellContent.content-icon-ChoroplethCountries:before,div[draggable=true].hideDragCellContent.content-icon-GMap:before,div[draggable=true].hideDragCellContent.content-icon-GMapHeat:before,div[draggable=true].hideDragCellContent.content-icon-GMapGraph:before{content:""}div[draggable=true].hideDragCellContent.content-icon-Text:before,div[draggable=true].hideDragCellContent.content-icon-TextBox:before,div[draggable=true].hideDragCellContent.content-icon-FAChar:before{content:""}.layout_Cell .update-indicator{box-sizing:border-box;position:absolute;top:0;left:0;padding:0;z-index:1000;border-width:0px;border-style:solid;pointer-events:none}.layout_Border{width:100%;height:100%}.layout_Border>.border-content{width:100%;height:100%;position:relative}.layout_Border>.borderHandle{width:6px;height:6px;background-color:#444;opacity:.3;position:absolute;visibility:hidden}.layout_Border.design-mode>.borderHandle{visibility:visible}.layout_Border>.borderHandle:hover{background-color:#666}.layout_Border>.borderHandle.borderHandleDisabled{display:none}.layout_Border>.borderHandle_top,.layout_Border>.borderHandle_bottom{cursor:ns-resize}.layout_Border>.borderHandle_left,.layout_Border>.borderHandle_right{cursor:ew-resize}.layout_Border .cell{border-radius:5px;border:1px solid #e5e5e5;display:inline-block;overflow:hidden}.layout_Border .cell h2{margin:0;padding-top:4px;-webkit-margin:0px;text-align:center}.layout_Border .layout_BorderCell.over{border:2px dashed #000}.layout_Border .dragItem{z-index:-1;opacity:.33}.layout_Border .notDragItem{z-index:-1;opacity:1}.layout_Border div[draggable=true]{opacity:.75;cursor:default}.layout_Border div[draggable=true] .dragHandle{opacity:1}.layout_Border div[draggable=true] .dragHandle_n,.layout_Border div[draggable=true] .dragHandle_e,.layout_Border div[draggable=true] .dragHandle_s,.layout_Border div[draggable=true] .dragHandle_w{background-color:#aaa}.layout_Border div[draggable=true] .dragHandle_nw,.layout_Border div[draggable=true] .dragHandle_ne,.layout_Border div[draggable=true] .dragHandle_se,.layout_Border div[draggable=true] .dragHandle_sw{background-color:#333}.layout_Border div[draggable=true] .dragHandle_nw{cursor:nw-resize}.layout_Border div[draggable=true] .dragHandle_n{cursor:n-resize}.layout_Border div[draggable=true] .dragHandle_ne{cursor:ne-resize}.layout_Border div[draggable=true] .dragHandle_e{cursor:e-resize}.layout_Border div[draggable=true] .dragHandle_se{cursor:se-resize}.layout_Border div[draggable=true] .dragHandle_s{cursor:s-resize}.layout_Border div[draggable=true] .dragHandle_sw{cursor:sw-resize}.layout_Border div[draggable=true] .dragHandle_w{cursor:w-resize}.layout_Border div[draggable=false]>div>.dragHandle{display:none}.layout_Border .grid-drop-target{position:fixed;box-sizing:border-box;border:2px dashed #7f8c8d;border-radius:0;background:repeating-linear-gradient(-45deg,#0000,#0000 4px,#6464641a 4px,#6464641a 8px)}.layout_Border .grid-drop-target.drop-target-over{border:2px dashed #179BD7;background:repeating-linear-gradient(-45deg,#0000,#0000 6px,#119bd71a 6px,#119bd71a 12px)}.layout_Border2{display:flex;flex-direction:column}.layout_Border2>.body{margin:0;padding:0;display:flex;flex-flow:row}.layout_Border2>.body>.center{flex:1}.layout_Border2>.header{display:block}.layout_Border2>.footer{display:block}.layout_Carousel>div{position:relative;overflow:hidden}.layout_Carousel>div>.carouselItem{position:absolute}.layout_Modal-header{background-color:#3f51b5;overflow:hidden}.layout_Modal-body{background-color:#fff;overflow-y:scroll;overflow-x:hidden}.layout_Modal-title,.layout_Modal-annotations{position:absolute}.layout_Modal-closeButton{cursor:pointer}.layout_Modal-closeButton:hover{opacity:.7}.layout_Modal-closeButton:active{opacity:.5}.layout_Modal-fade{position:fixed;background-color:#000;opacity:.5;z-index:10000}.layout_Modal-content{position:fixed;background-color:#fff;z-index:10100}.layout_Modal-fade-hidden{display:none}.layout_Modal-fadeClickable{cursor:pointer}.layout_ChartPanel .series.highlight{stroke-width:2px;opacity:1}.layout_ChartPanel .series.lowlight{opacity:.3!important}.layout_FlexGrid{display:flex}.FlexGrid-list-item{overflow:hidden;border-style:solid;flex-grow:1}.layout_Grid>.ddCell{position:absolute}.layout_Grid>.laneBackground{position:absolute;border-style:solid;border-width:1px;background:#f5f5f5}.layout_Grid>.lane{position:absolute;border-style:none;opacity:.25;border-radius:0;pointer-events:none}.layout_Grid>.ddCell.draggable{border-style:solid;border-width:1px;background-color:#f8f8ff;border-radius:0;cursor:move}.layout_Grid>.ddCell.draggable>.resizeHandle{bottom:0;right:0;width:8px;height:8px;border-style:none;position:absolute;cursor:nwse-resize}.layout_Grid>.ddCell.draggable .resizeHandleDisplay{bottom:2px;right:2px;width:4px;height:4px;border-style:solid;border-left-width:0px;border-top-width:0px;border-right-width:2px;border-bottom-width:2px;border-color:#a9a9a9;background-color:none;position:absolute}.layout_Grid>.ddCell.draggable .resizeHandleDisplay:hover{border-color:orange}.layout_Grid>.dragging{border-style:solid;border-width:1px;border-color:gray;border-radius:0;position:absolute;background:repeating-linear-gradient(-45deg,#0000,#0000 4px,#6464641a 4px,#6464641a 8px)}.layout_Grid>.resizing{border-style:solid;border-width:1px;border-color:gray;background-color:orange;border-radius:0;position:absolute;opacity:.3;background:repeating-linear-gradient(-45deg,#0000,#0000 4px,orange 4px,orange 8px)}.layout_Grid>.ddCell.draggable .common_Widget.selected{border-style:solid;border-width:1px;border-color:red;background-color:gray;border-radius:0;position:absolute;background:repeating-linear-gradient(-45deg,#0000,#0000 4px,#6400001a 4px,#6400001a 8px)}.layout_Grid #drag-me:before{content:"#" attr(id);font-weight:700}.layout_Layered{pointer-events:none}.layout_Layered>.container>.content{position:absolute}.layout_Layered>.container>.content>div>.common_Widget,.layout_Layered>.container>.content>div>svg>.common_Widget{pointer-events:all}.layout_Tabbed .tab-button{position:relative;top:1px;display:inline-block;border-left:1px solid #ddd;border-top:1px solid #ddd;border-right:1px solid #ddd;background-color:transparent;margin-right:4px;padding:2px 2px 4px;background-color:#ccc}.layout_Tabbed .tab-button.active{background-color:#fff;z-index:999}.layout_Tabbed .on_bottom .tab-button{border-bottom:1px solid #ddd;border-top:none;top:-1px}.layout_Toolbar{height:100%;background-color:#ddd;white-space:nowrap;overflow:hidden}.layout_Toolbar .toolbar-title{display:inline-block;position:relative;top:50%;transform:translateY(-50%);-ms-transform:translateY(-50%);margin-left:4px;font-weight:700;text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.layout_Toolbar .toolbar-child{position:relative;top:50%;transform:translateY(-50%);-ms-transform:translateY(-50%);float:right;margin-left:4px;margin-right:4px;line-height:16px}')),document.head.appendChild(o)}}catch(e){console.error("vite-plugin-css-injected-by-js",e)}}();var __defProp2=Object.defineProperty,__defNormalProp2=(obj,key,value)=>key in obj?__defProp2(obj,key,{enumerable:!0,configurable:!0,writable:!0,value}):obj[key]=value,__publicField2=(obj,key,value)=>__defNormalProp2(obj,typeof key!="symbol"?key+"":key,value);function _mergeNamespaces$1(n,m){for(var i=0;i<m.length;i++){const e=m[i];if(typeof e!="string"&&!Array.isArray(e)){for(const k2 in e)if(k2!=="default"&&!(k2 in n)){const d=Object.getOwnPropertyDescriptor(e,k2);d&&Object.defineProperty(n,k2,d.get?d:{enumerable:!0,get:()=>e[k2]})}}}return Object.freeze(Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}))}class AbsoluteSurface extends common.HTMLWidget{constructor(){super(),this._tag="div"}enter(domNode,element){super.enter(domNode,element)}update(domNode,element){super.update(domNode,element);let xPos=0,yPos=0,width=this.clientWidth(),height=this.clientHeight();switch(this.units()){case"pixels":xPos=this.widgetX(),yPos=this.widgetY(),width=this.widgetWidth()===""?width-xPos:Number(this.widgetWidth()),height=this.widgetHeight()===""?height-yPos:Number(this.widgetHeight());break;case"percent":xPos=this.widgetX()*width/100,yPos=this.widgetY()*height/100,width=this.widgetWidth()===""?width-xPos:Number(this.widgetWidth())*width/100,height=this.widgetHeight()===""?height-yPos:Number(this.widgetHeight())*height/100;break}element.style("opacity",this.opacity());const widgets=element.selectAll("#"+this._id+" > .placeholder").data(this.widget()?[this.widget()]:[],function(d){return d._id});widgets.enter().append("div").attr("class","placeholder").each(function(d){d.target(this)}).merge(widgets).style("left",xPos+"px").style("top",yPos+"px").style("width",width+"px").style("bottom",height+"px").each(function(d){d.resize({width,height})}),widgets.exit().each(function(d){d.target(null)}).remove()}exit(domNode,element){this.widget()&&this.widget().target(null),super.exit(domNode,element)}}AbsoluteSurface.prototype._class+=" layout_AbsoluteSurface",AbsoluteSurface.prototype.publish("units","percent","set","Units",["pixels","percent"]),AbsoluteSurface.prototype.publish("widgetX",0,"number","Widget XPos"),AbsoluteSurface.prototype.publish("widgetY",0,"number","Widget YPos"),AbsoluteSurface.prototype.publish("widgetWidth","100","string","Widget Width, omit for full"),AbsoluteSurface.prototype.publish("widgetHeight","100","string","Widget Height, omit for full"),AbsoluteSurface.prototype.publish("widget",null,"widget","Widget",null,{tags:["Private"]}),AbsoluteSurface.prototype.publish("opacity",1,"number","Opacity");class Accordion extends common.HTMLWidget{constructor(){super(),__publicField2(this,"_isClosed"),__publicField2(this,"titleSpan"),__publicField2(this,"iconDiv"),__publicField2(this,"ul"),__publicField2(this,"icon"),this._tag="div",this._isClosed=!1}pushListItem(widget,prepend=!1,protect=!1){const contentArr=this.content();return widget._protected=protect,prepend?contentArr.unshift(widget):contentArr.push(widget),this.content(contentArr),this}clearListItems(){const arr=[];for(const i in this.content())this.content()[i]._protected&&arr.push(this.content()[i]);return this.content(arr),this}collapseClick(element){element.classed("closed")?(this._isClosed=!1,element.classed("open",!0),element.classed("closed",!1)):(this._isClosed=!0,element.classed("open",!1),element.classed("closed",!0))}enter(domNode,element){super.enter(domNode,element);const context=this;this._isClosed=this.defaultCollapsed(),element.classed(this._isClosed?"closed":"open",!0),this.titleSpan=element.append("span").classed("collapsible-title",!0),this.iconDiv=element.append("div").classed("collapsible-icon",!0),this.ul=element.append("ul"),this.icon=new common.FAChar().size({height:24,width:24}).target(this.iconDiv.node()),this.iconDiv.on("click",function(){context.collapseClick(element),context.render()}),this.titleSpan.on("click",function(){context.collapseClick(element),context.render()})}update(domNode,element){super.update(domNode,element);const context=this,this_id="";this.titleSpan.text(context.title().length>0?context.title()+this_id:"Accordion ["+context._id+"]"+this_id);const rows=this.ul.selectAll("#"+context._id+" > ul > li").data(this.content(),function(d){return d._id});rows.enter().append(function(widget){const li=document.createElement("li");if(widget._target===null){const wSize=widget.size();if(wSize.width===0||wSize.height===0){const cSize=context.size();widget.size({width:cSize.width,height:cSize.width})}widget.target(li)}else return widget._target;return li}),rows.exit().remove(),this.icon.text_colorFill(this.titleFontColor()).char(this._isClosed?this.closedIcon():this.openIcon()).render()}exit(domNode,element){super.exit(domNode,element)}}Accordion.prototype._class+=" layout_Accordion",Accordion.prototype.publish("content",[],"widgetArray","Array of widgets",null,{tags:["Basic"]}),Accordion.prototype.publish("title","","string","Title of collapsible section",null,{tags:["Private"]}),Accordion.prototype.publish("openIcon","","string","Icon to display when list is open",null,{tags:["Private"]}),Accordion.prototype.publish("closedIcon","","string","Icon to display when list is closed",null,{tags:["Private"]}),Accordion.prototype.publish("titleFontColor","#FFFFFF","html-color","Title font color",null,{tags:["Private"]}),Accordion.prototype.publish("titleBackgroundColor","#333333","html-color","Title background color",null,{tags:["Private"]}),Accordion.prototype.publish("defaultCollapsed",!1,"boolean","Collapsed by default if true",null,{tags:["Private"]});class Surface extends common.HTMLWidget{constructor(){super(),__publicField2(this,"_surfaceButtons"),this._tag="div",this._surfaceButtons=[]}widgetSize(titleDiv,widgetDiv){let width=this.clientWidth(),height=this.clientHeight();return this.title()&&(height-=this.calcHeight(titleDiv)),height-=this.calcFrameHeight(widgetDiv),width-=this.calcFrameWidth(widgetDiv),{width,height}}enter(domNode,element){super.enter(domNode,element)}update(domNode,element2){super.update(domNode,element2);const context=this;element2.classed("shadow2",this.surfaceShadow()).style("border-width",this.surfaceBorderWidth_exists()?this.surfaceBorderWidth()+"px":null).style("border-color",this.surfaceBorderColor()).style("border-radius",this.surfaceBorderRadius_exists()?this.surfaceBorderRadius()+"px":null).style("background-color",this.surfaceBackgroundColor());const titles=element2.selectAll(".surfaceTitle").data(this.title()?[this.title()]:[]);titles.enter().insert("h3","div").attr("class","surfaceTitle").merge(titles).text(function(d){return d}).style("text-align",this.surfaceTitleAlignment()).style("color",this.surfaceTitleFontColor()).style("font-size",this.surfaceTitleFontSize_exists()?this.surfaceTitleFontSize()+"px":null).style("font-family",this.surfaceTitleFontFamily()).style("font-weight",this.surfaceTitleFontBold()?"bold":"normal").style("background-color",this.surfaceTitleBackgroundColor()).style("padding",this.surfaceTitlePadding_exists()?this.surfaceTitlePadding()+"px":null).style("title",this.altText_exists()?this.altText():null),titles.exit().remove();const surfaceButtons=element2.select(".surfaceTitle").append("div").attr("class","html-button-container").selectAll(".surface-button").data(this.buttonAnnotations());surfaceButtons.enter().append("button").classed("surface-button",!0).each(function(button,idx){const el=context._surfaceButtons[idx]=common.select(this).attr("class","surface-button"+(button.class?" "+button.class:"")).attr("id",button.id).style("padding",button.padding).style("width",button.width).style("height",button.height).style("cursor","pointer");button.font==="FontAwesome"?el.style("background","transparent").style("border","none").on("click",function(d){context.click(d)}).append("i").attr("class","fa").text(function(){return button.label}):el.text(function(){return button.label}).on("click",function(d){context.click(d)})}),surfaceButtons.exit().each(function(_d,idx){const element=common.select(this);delete context._surfaceButtons[idx],element.remove()});const widgets=element2.selectAll("#"+this._id+" > .surfaceWidget").data(this.widget()?[this.widget()]:[],function(d){return d._id});widgets.enter().append("div").attr("class","surfaceWidget").each(function(d){common.select(context.element().node().parentElement).classed("content-icon content-icon-"+d.classID().split("_")[1],!0),d.target(this)}).merge(widgets).style("padding",this.surfacePadding_exists()?this.surfacePadding()+"px":null).each(function(d){const widgetSize=context.widgetSize(element2.select("h3"),common.select(this));widgetSize.width<0&&(widgetSize.width=0),widgetSize.height<0&&(widgetSize.height=0),d.resize({width:widgetSize.width,height:widgetSize.height})}),widgets.exit().each(function(d){d.target(null)}).remove()}exit(domNode,element){this.widget()&&this.widget().target(null),super.exit(domNode,element)}click(obj){}}Surface.prototype._class+=" layout_Surface",Surface.prototype.publish("title","","string","Title",null,{tags:["Intermediate"]}),Surface.prototype.publish("altText",null,"string","Alt text",null,{optional:!0}),Surface.prototype.publish("surfaceTitlePadding",null,"number","Title Padding (px)",null,{tags:["Advanced"],disable:w=>!w.title()}),Surface.prototype.publish("surfaceTitleFontSize",null,"number","Title Font Size (px)",null,{tags:["Advanced"],disable:w=>!w.title()}),Surface.prototype.publish("surfaceTitleFontColor",null,"html-color","Title Font Color",null,{tags:["Advanced"],disable:w=>!w.title()}),Surface.prototype.publish("surfaceTitleFontFamily",null,"string","Title Font Family",null,{tags:["Advanced"],disable:w=>!w.title()}),Surface.prototype.publish("surfaceTitleFontBold",!0,"boolean","Enable Bold Title Font",null,{tags:["Advanced"],disable:w=>!w.title()}),Surface.prototype.publish("surfaceTitleBackgroundColor",null,"html-color","Title Background Color",null,{tags:["Advanced"],disable:w=>!w.title()}),Surface.prototype.publish("surfaceTitleAlignment","center","set","Title Alignment",["left","right","center"],{tags:["Basic"],disable:w=>!w.title()}),Surface.prototype.publish("surfaceShadow",!1,"boolean","3D Shadow"),Surface.prototype.publish("surfacePadding",null,"string","Surface Padding (px)",null,{tags:["Intermediate"]}),Surface.prototype.publish("surfaceBackgroundColor",null,"html-color","Surface Background Color",null,{tags:["Advanced"]}),Surface.prototype.publish("surfaceBorderWidth",null,"number","Surface Border Width (px)",null,{tags:["Advanced"]}),Surface.prototype.publish("surfaceBorderColor",null,"html-color","Surface Border Color",null,{tags:["Advanced"]}),Surface.prototype.publish("surfaceBorderRadius",null,"number","Surface Border Radius (px)",null,{tags:["Advanced"]}),Surface.prototype.publish("buttonAnnotations",[],"array","Button Array",null,{tags:["Private"]}),Surface.prototype.publish("widget",null,"widget","Widget",null,{tags:["Basic"]});class Cell extends Surface{constructor(){super(),__publicField2(this,"_indicateTheseIds"),this._indicateTheseIds=[]}indicateTheseIds(_){return arguments.length?(this._indicateTheseIds=_,this):this._indicateTheseIds}enter(domNode,element){super.enter(domNode,element);const context=this;element.classed("layout_Surface",!0).on("mouseenter",function(){context.onMouseEnter()}).on("mouseleave",function(){context.onMouseLeave()})}update(domNode,element){super.update(domNode,element)}onMouseEnter(){const arr=this.indicateTheseIds(),opacity=this.indicatorOpacity(),indicatorBorderColor=this.indicatorBorderColor(),indicatorGlowColor=this.indicatorGlowColor();for(let i=0;i<arr.length;i++){const otherElement=common.select("#"+arr[i]),otherWidget=otherElement.datum();otherElement&&otherWidget&&otherElement.append("div").attr("class","update-indicator").style("width",otherWidget.width()+"px").style("height",otherWidget.height()+"px").style("opacity",opacity).style("border-color",indicatorBorderColor).style("-webkit-box-shadow","inset 0px 0px 30px 0px "+indicatorGlowColor).style("-moz-box-shadow","inset 0px 0px 30px 0px "+indicatorGlowColor).style("box-shadow","inset 0px 0px 30px 0px "+indicatorGlowColor)}}onMouseLeave(){const arr=this.indicateTheseIds();for(let i=0;i<arr.length;i++)common.selectAll("#"+arr[i]+" > div.update-indicator").remove()}}Cell.prototype._class+=" layout_Cell",Cell.prototype.publish("gridRow",0,"number","Grid Row Position",null,{tags:["Private"]}),Cell.prototype.publish("gridCol",0,"number","Grid Column Position",null,{tags:["Private"]}),Cell.prototype.publish("gridRowSpan",1,"number","Grid Row Span",null,{tags:["Private"]}),Cell.prototype.publish("gridColSpan",1,"number","Grid Column Span",null,{tags:["Private"]}),Cell.prototype.publish("indicatorGlowColor","#EEEE11","html-color","Glow color of update-indicator",null,{tags:["Basic"]}),Cell.prototype.publish("indicatorBorderColor","#F48A00","html-color","Border color of update-indicator",null,{tags:["Basic"]}),Cell.prototype.publish("indicatorOpacity",.8,"number","Opacity of update-indicator",null,{tags:["Basic"]});class Border extends common.HTMLWidget{constructor(){super(),__publicField2(this,"_colCount"),__publicField2(this,"_rowCount"),__publicField2(this,"_colSize"),__publicField2(this,"_rowSize"),__publicField2(this,"_shrinkWrapBoxes"),__publicField2(this,"_watch"),__publicField2(this,"_offsetX"),__publicField2(this,"_offsetY"),__publicField2(this,"_dragCell"),__publicField2(this,"_dragCellSize"),__publicField2(this,"_dragCellStartSize"),__publicField2(this,"_handleTop"),__publicField2(this,"_handleLeft"),__publicField2(this,"_dragPrevX"),__publicField2(this,"_dragPrevY"),__publicField2(this,"_cellSizes"),__publicField2(this,"contentDiv"),__publicField2(this,"_scrollBarWidth"),__publicField2(this,"_borderHandles"),__publicField2(this,"_sectionTypeArr"),__publicField2(this,"lazyPostUpdate",common.Utility.debounce(function(){this.postUpdate()},100)),this._tag="div",this._colCount=0,this._rowCount=0,this._colSize=0,this._rowSize=0,this._shrinkWrapBoxes={},this.content([]),this.sectionTypes([])}watchWidget(widget){if(this._watch===void 0&&(this._watch={}),this._watch[widget.id()]&&(this._watch[widget.id()].remove(),delete this._watch[widget.id()]),widget){const context=this;this._watch[widget.id()]=widget.monitor(function(paramId,newVal,oldVal){oldVal!==newVal&&context.lazyPostUpdate()})}}applyLayoutType(){const layoutObj=this.borderLayoutObject();this.content().forEach(function(cell2,i){cell2._fixedLeft=layoutObj[this.sectionTypes()[i]].left,cell2._fixedTop=layoutObj[this.sectionTypes()[i]].top,cell2._fixedWidth=layoutObj[this.sectionTypes()[i]].width,cell2._fixedHeight=layoutObj[this.sectionTypes()[i]].height,cell2._dragHandles=this.cellSpecificDragHandles(this.sectionTypes()[i])},this)}cellSpecificDragHandles(sectionType){switch(sectionType){case"top":return["s"];case"right":return["w"];case"bottom":return["n"];case"left":return["e"];case"center":return[]}}borderLayoutObject(layoutType){const retObj={},context=this;let topSize,topPerc,bottomSize,bottomPerc,leftSize,leftPerc,rightSize,rightPerc;const bcRect=this.target().getBoundingClientRect();bcRect.top,bcRect.left,bcRect.bottom,bcRect.right,this.target()instanceof SVGElement?(parseFloat(this.target().getAttribute("width")),parseFloat(this.target().getAttribute("height"))):(bcRect.width,bcRect.height),this.sectionTypes().indexOf("top")!==-1&&(topSize=this.topSize(),topPerc=this.topPercentage(),typeof this._shrinkWrapBoxes.top<"u"&&(topSize=this._shrinkWrapBoxes.top.height+this.gutter(),topPerc=0)),this.sectionTypes().indexOf("bottom")!==-1&&(bottomSize=this.bottomSize(),bottomPerc=this.bottomPercentage(),typeof this._shrinkWrapBoxes.bottom<"u"&&(bottomSize=this._shrinkWrapBoxes.bottom.height+this.gutter(),bottomPerc=0)),this.sectionTypes().indexOf("left")!==-1&&(leftSize=this.leftSize(),leftPerc=this.leftPercentage(),typeof this._shrinkWrapBoxes.left<"u"&&(leftSize=this._shrinkWrapBoxes.left.width+this.gutter(),leftPerc=0)),this.sectionTypes().indexOf("right")!==-1&&(rightSize=this.rightSize(),rightPerc=this.rightPercentage(),typeof this._shrinkWrapBoxes.right<"u"&&(rightSize=this._shrinkWrapBoxes.right.width+this.gutter(),rightPerc=0));const t=_sectionPlacementObject({width:{px:0,"%":100},height:{px:topSize,"%":topPerc},top:{px:0,"%":0},left:{px:0,"%":0}}),b=_sectionPlacementObject({width:{px:0,"%":100},height:{px:bottomSize,"%":bottomPerc},top:{px:0,"%":100},left:{px:0,"%":0}});b.top-=b.height;const l=_sectionPlacementObject({width:{px:leftSize,"%":leftPerc},height:{px:-t.height-b.height,"%":100},top:{px:t.height,"%":0},left:{px:0,"%":0}}),r2=_sectionPlacementObject({width:{px:rightSize,"%":rightPerc},height:{px:-t.height-b.height,"%":100},top:{px:t.height,"%":0},left:{px:0,"%":100}});r2.left-=r2.width;const c2=_sectionPlacementObject({width:{px:-r2.width-l.width,"%":100},height:{px:-t.height-b.height,"%":100},top:{px:t.height,"%":0},left:{px:l.width,"%":0}});return retObj.top=t,retObj.bottom=b,retObj.right=r2,retObj.left=l,retObj.center=c2,retObj;function _sectionPlacementObject(obj){return obj.width.px=typeof obj.width.px<"u"?obj.width.px:0,obj.width["%"]=typeof obj.width["%"]<"u"?obj.width["%"]:0,obj.height.px=typeof obj.height.px<"u"?obj.height.px:0,obj.height["%"]=typeof obj.height["%"]<"u"?obj.height["%"]:0,{width:obj.width.px+obj.width["%"]/100*context.width(),height:obj.height.px+obj.height["%"]/100*context.height(),top:obj.top.px+obj.top["%"]/100*context.height()+context.gutter()/2,left:obj.left.px+obj.left["%"]/100*context.width()+context.gutter()/2}}}clearContent(sectionType){if(!sectionType)this.content().forEach(function(contentWidget){return contentWidget.target(null),!1}),common.select("#"+this.id()+" > div.borderHandle").classed("borderHandleDisabled",!0),delete this._watch,this.content([]),this.sectionTypes([]);else{const idx=this.sectionTypes().indexOf(sectionType);idx>=0&&(this._watch&&this.content()[idx]&&delete this._watch[this.content()[idx].id()],this.content()[idx].target(null),common.select("#"+this.id()+" > div.borderHandle_"+sectionType).classed("borderHandleDisabled",!0),this.content().splice(idx,1),this.sectionTypes().splice(idx,1))}}hasContent(sectionType,widget,title){return this.sectionTypes().indexOf(sectionType)>=0}setContent(sectionType,widget,title){if(this.clearContent(sectionType),title=typeof title<"u"?title:"",widget){const cell2=new Cell().surfaceBorderWidth(0).widget(widget).title(title);this.watchWidget(widget),this.content().push(cell2),this.sectionTypes().push(sectionType)}return this}getCell(id){const idx=this.sectionTypes().indexOf(id);return idx>=0?this.content()[idx]:null}getContent(id){const idx=this.sectionTypes().indexOf(id);return idx>=0?this.content()[idx].widget():null}setLayoutOffsets(){this._offsetX=this._element.node().getBoundingClientRect().left+this.gutter()/2,this._offsetY=this._element.node().getBoundingClientRect().top+this.gutter()/2}dragStart(handle){const event=common.d3Event();event.sourceEvent.stopPropagation();const context=this;this._dragCell=handle,this._dragCellStartSize=this[handle+"Size"](),this[handle+"ShrinkWrap"]()&&(this[handle+"Percentage"](0),this[handle+"ShrinkWrap"](!1));const handleElm=common.select("#"+context.id()+" > div.borderHandle_"+handle);context._handleTop=parseFloat(handleElm.style("top").split("px")[0]),context._handleLeft=parseFloat(handleElm.style("left").split("px")[0]),this._dragPrevX=event.sourceEvent.clientX,this._dragPrevY=event.sourceEvent.clientY}dragTick(handle){const context=this,event=common.d3Event(),xDelta=this._dragPrevX-event.sourceEvent.clientX,yDelta=this._dragPrevY-event.sourceEvent.clientY;switch(handle){case"top":case"bottom":_moveHandles(handle,yDelta);break;case"right":case"left":_moveHandles(handle,xDelta);break}function _moveHandles(handle2,delta){if(delta===0)return;const handles=common.selectAll("#"+context.id()+" > div.borderHandle"),grabbedHandle=common.select("#"+context.id()+" > div.borderHandle_"+handle2);grabbedHandle.classed("borderHandle_top")?(grabbedHandle.style("top",context._handleTop-delta+"px"),context._cellSizes.topHeight=context._handleTop-delta,context._cellSizes.leftHeight=context._cellSizes.height,context._cellSizes.leftHeight-=context._cellSizes.topHeight,context._cellSizes.leftHeight-=context._cellSizes.bottomHeight,context._cellSizes.rightHeight=context._cellSizes.leftHeight):grabbedHandle.classed("borderHandle_right")?(grabbedHandle.style("left",context._handleLeft-delta+"px"),context._cellSizes.rightWidth=context._cellSizes.width-context._handleLeft+delta):grabbedHandle.classed("borderHandle_bottom")?(grabbedHandle.style("top",context._handleTop-delta+"px"),context._cellSizes.bottomHeight=context._cellSizes.height-context._handleTop+delta,context._cellSizes.leftHeight=context._cellSizes.height,context._cellSizes.leftHeight-=context._cellSizes.bottomHeight,context._cellSizes.leftHeight-=context._cellSizes.topHeight,context._cellSizes.rightHeight=context._cellSizes.leftHeight):grabbedHandle.classed("borderHandle_left")&&(grabbedHandle.style("left",context._handleLeft-delta+"px"),context._cellSizes.leftWidth=context._handleLeft-delta),handles.each(function(){const handle3=common.select(this);handle3.classed("borderHandle_top")?(handle3.style("width",context._cellSizes.width+"px"),handle3.style("top",context._cellSizes.topHeight-3+"px")):handle3.classed("borderHandle_right")?(handle3.style("left",context._cellSizes.width-context._cellSizes.rightWidth+"px"),handle3.style("top",context._cellSizes.topHeight+3+"px"),handle3.style("height",context._cellSizes.rightHeight+"px")):handle3.classed("borderHandle_bottom")?(handle3.style("width",context._cellSizes.width+"px"),handle3.style("top",context._cellSizes.height-context._cellSizes.bottomHeight-3+"px")):handle3.classed("borderHandle_left")&&(handle3.style("left",context._cellSizes.leftWidth+"px"),handle3.style("height",context._cellSizes.leftHeight+"px"),handle3.style("top",context._cellSizes.topHeight+3+"px"))})}}dragEnd(handle){if(handle){const event=common.d3Event(),xDelta=this._dragPrevX-event.sourceEvent.clientX,yDelta=this._dragPrevY-event.sourceEvent.clientY;switch(handle){case"top":yDelta!==0&&(this.topPercentage(0),this.topSize(this.topSize()===0?this.getContent("top").getBBox().height-yDelta:this.topSize()-yDelta));break;case"right":xDelta!==0&&(this.rightPercentage(0),this.rightSize(this.rightSize()===0?this.getContent("right").getBBox().width+xDelta:this.rightSize()+xDelta));break;case"bottom":yDelta!==0&&(this.bottomPercentage(0),this.bottomSize(this.bottomSize()===0?this.getContent("bottom").getBBox().height+yDelta:this.bottomSize()+yDelta));break;case"left":xDelta!==0&&(this.leftPercentage(0),this.leftSize(this.leftSize()===0?this.getContent("left").getBBox().width-xDelta:this.leftSize()-xDelta));break}this._dragPrevX=event.sourceEvent.clientX,this._dragPrevY=event.sourceEvent.clientY}this.render()}size(_){const retVal=common.HTMLWidget.prototype.size.apply(this,arguments);return arguments.length&&this.contentDiv&&this.contentDiv.style("width",this._size.width+"px").style("height",this._size.height+"px"),retVal}enter(domNode,element){super.enter(domNode,element);const context=this;element.style("position","relative"),this.contentDiv=element.append("div").classed("border-content",!0),this._scrollBarWidth=common.Platform.getScrollbarWidth(),this._borderHandles=["top","left","right","bottom"],element.selectAll("div.borderHandle").data(this._borderHandles).enter().append("div").classed("borderHandle",!0).each(function(handle){common.select(this).classed("borderHandle_"+handle,!0).classed("borderHandleDisabled",context.getContent(handle)===null)})}update(domNode,element){super.update(domNode,element),this._sectionTypeArr=this.sectionTypes();const context=this;element.classed("design-mode",this.designMode()),this.setLayoutOffsets();const rows=this.contentDiv.selectAll(".cell_"+this._id).data(this.content(),function(d){return d._id}),rowsUpdate=rows.enter().append("div").classed("cell_"+this._id,!0).style("position","absolute").each(function(d,i){common.select(this).classed("border-cell border-cell-"+context._sectionTypeArr[i],!0),d.target(this),common.select("#"+context.id()+" > div.borderHandle_"+context._sectionTypeArr[i]).classed("borderHandleDisabled",!1)}).merge(rows);rowsUpdate.each(function(d,idx){const sectionType=context.sectionTypes()[idx];typeof context[sectionType+"ShrinkWrap"]<"u"&&context[sectionType+"ShrinkWrap"]()?(d.render(),context._shrinkWrapBoxes[sectionType]=d.widget().getBBox(!0)):delete context._shrinkWrapBoxes[sectionType]});const drag$1=common.drag().on("start",function(d,i){context.dragStart.call(context,d,i)}).on("drag",function(d,i){context.dragTick.call(context,d,i)}).on("end",function(d,i){context.dragEnd.call(context,d,i)});this.designMode()?element.selectAll("#"+this.id()+" > div.borderHandle").call(drag$1):element.selectAll("#"+this.id()+" > div.borderHandle").on(".drag",null);const layoutObj=this.borderLayoutObject();this.content().forEach(function(cell2,i){cell2._fixedLeft=layoutObj[this.sectionTypes()[i]].left,cell2._fixedTop=layoutObj[this.sectionTypes()[i]].top,cell2._fixedWidth=layoutObj[this.sectionTypes()[i]].width,cell2._fixedHeight=layoutObj[this.sectionTypes()[i]].height,cell2._dragHandles=[]},this),rowsUpdate.style("left",function(d){return d._fixedLeft+"px"}).style("top",function(d){return d._fixedTop+"px"}).style("width",function(d){return d._fixedWidth-context.gutter()+"px"}).style("height",function(d){return d._fixedHeight-context.gutter()+"px"}).each(function(d){d._placeholderElement.attr("draggable",context.designMode()).selectAll(".dragHandle").attr("draggable",context.designMode()),d.surfacePadding(context.surfacePadding()).resize()}),rows.exit().each(function(d){d.target(null)}).remove(),this.getCellSizes(),element.selectAll("#"+this.id()+" > div.borderHandle").each(function(){const handle=common.select(this);handle.classed("borderHandle_top")?(handle.style("width",context._cellSizes.width+"px"),handle.style("top",context._cellSizes.topHeight-3+"px")):handle.classed("borderHandle_right")?(handle.style("left",context._cellSizes.width-context._cellSizes.rightWidth+"px"),handle.style("top",context._cellSizes.topHeight+3+"px"),handle.style("height",context._cellSizes.rightHeight+"px")):handle.classed("borderHandle_bottom")?(handle.style("width",context._cellSizes.width+"px"),handle.style("top",context._cellSizes.height-context._cellSizes.bottomHeight-3+"px")):handle.classed("borderHandle_left")&&(handle.style("left",context._cellSizes.leftWidth+"px"),handle.style("height",context._cellSizes.leftHeight+"px"),handle.style("top",context._cellSizes.topHeight+3+"px"))})}getCellSizes(){const context=this;context._cellSizes={};const contentRect=this.element().node().getBoundingClientRect();context._cellSizes.width=contentRect.width,context._cellSizes.height=contentRect.height,this.element().selectAll("#"+this.id()+" > div > div.border-cell").each(function(){const cell2=common.select(this);if(typeof cell2.node=="function"){const rect=cell2.node().getBoundingClientRect();cell2.classed("border-cell-top")?context._cellSizes.topHeight=rect.height:cell2.classed("border-cell-left")?(context._cellSizes.leftWidth=rect.width,context._cellSizes.leftHeight=rect.height):cell2.classed("border-cell-right")?(context._cellSizes.rightWidth=rect.width,context._cellSizes.rightHeight=rect.height):cell2.classed("border-cell-bottom")&&(context._cellSizes.bottomHeight=rect.height)}}),["height","width","topHeight","bottomHeight","leftHeight","rightHeight","leftWidth","rightWidth"].forEach(function(size){context._cellSizes[size]=context._cellSizes[size]===void 0?0:context._cellSizes[size]})}postUpdate(domNode,element){const context=this;this.content().forEach(function(n){if(n._element.node()!==null&&n.widget()){const prevBox=n.widget().getBBox(!1,!0),currBox=n.widget().getBBox(!0,!0);(prevBox.width!==currBox.width||prevBox.height!==currBox.height)&&context.lazyRender()}})}exit(domNode,element){this.content().forEach(w=>w.target(null)),super.exit(domNode,element)}}Border.prototype._class+=" layout_Border",Border.prototype.publish("designMode",!1,"boolean","Design Mode",null,{tags:["Basic"]}),Border.prototype.publish("content",[],"widgetArray","widgets",null,{tags:["Intermediate"]}),Border.prototype.publish("gutter",0,"number","Gap Between Widgets",null,{tags:["Basic"]}),Border.prototype.publish("topShrinkWrap",!1,"boolean","'Top' Cell shrinks to fit content",null,{tags:["Intermediate"]}),Border.prototype.publish("leftShrinkWrap",!1,"boolean","'Left' Cell shrinks to fit content",null,{tags:["Intermediate"]}),Border.prototype.publish("rightShrinkWrap",!1,"boolean","'Right' Cell shrinks to fit content",null,{tags:["Intermediate"]}),Border.prototype.publish("bottomShrinkWrap",!1,"boolean","'Bottom' Cell shrinks to fit content",null,{tags:["Intermediate"]}),Border.prototype.publish("topSize",0,"number","Height of the 'Top' Cell (px)",null,{tags:["Private"]}),Border.prototype.publish("leftSize",0,"number","Width of the 'Left' Cell (px)",null,{tags:["Private"]}),Border.prototype.publish("rightSize",0,"number","Width of the 'Right' Cell (px)",null,{tags:["Private"]}),Border.prototype.publish("bottomSize",0,"number","Height of the 'Bottom' Cell (px)",null,{tags:["Private"]}),Border.prototype.publish("topPercentage",20,"number","Percentage (of parent) Height of the 'Top' Cell",null,{tags:["Private"]}),Border.prototype.publish("leftPercentage",20,"number","Percentage (of parent) Width of the 'Left' Cell",null,{tags:["Private"]}),Border.prototype.publish("rightPercentage",20,"number","Percentage (of parent) Width of the 'Right' Cell",null,{tags:["Private"]}),Border.prototype.publish("bottomPercentage",20,"number","Percentage (of parent) Height of the 'Bottom' Cell",null,{tags:["Private"]}),Border.prototype.publish("surfacePadding",0,"number","Cell Padding (px)",null,{tags:["Intermediate"]}),Border.prototype.publish("sectionTypes",[],"array","Section Types sharing an index with 'content' - Used to determine position/size.",null,{tags:["Private"]});class WidgetDiv{constructor(div){__publicField2(this,"_div"),__publicField2(this,"_overlay",!1),__publicField2(this,"_overflowX","visible"),__publicField2(this,"_overflowY","visible"),__publicField2(this,"_widget"),this._div=div}overlay(_){return arguments.length?(this._overlay=_,this):this._overlay}overflowX(_){return arguments.length?(this._overflowX=_,this._div.style("overflow-x",_),this):this._overflowX}overflowY(_){return arguments.length?(this._overflowY=_,this._div.style("overflow-y",_),this):this._overflowY}element(){return this._div}node(){return this._div.node()}widget(_){return arguments.length?(this._widget!==_&&(this._widget&&this._widget.target(null),this._widget=_,this._widget&&this._widget.target(this._div.node())),this):this._widget}resize(size){return this._widget&&(this._div.style("width",`${size.width}px`).style("height",`${size.height}px`),this._widget.resize(size)),this}async render(getBBox,availableHeight,availableWidth){let overflowX=this.overflowX();!this.overlay()&&overflowX==="visible"&&(overflowX=null);let overflowY=this.overflowY();return!this.overlay()&&overflowY==="visible"&&(overflowY=null),this._div.style("height",this.overlay()?"0px":null).style("overflow-x",overflowX).style("overflow-y",overflowY),this._widget?this._widget.renderPromise().then(w=>{if(getBBox&&this._widget.visible()){const retVal=this._widget.getBBox();return retVal.width+=8,availableHeight!==void 0&&retVal.height>availableHeight&&(retVal.width+=common.Platform.getScrollbarWidth()),availableWidth!==void 0&&retVal.width>availableWidth&&(retVal.height+=common.Platform.getScrollbarWidth()),this.overlay()?retVal.height=0:retVal.height+=4,retVal}return getBBox?{x:0,y:0,width:0,height:0}:void 0}):Promise.resolve(getBBox?{x:0,y:0,width:0,height:0}:void 0)}}class Border2 extends common.HTMLWidget{constructor(){super(),__publicField2(this,"_bodyElement"),__publicField2(this,"_topWA"),__publicField2(this,"_leftWA"),__publicField2(this,"_centerWA"),__publicField2(this,"_rightWA"),__publicField2(this,"_bottomWA"),__publicField2(this,"_topPrevOverflow"),__publicField2(this,"_leftPrevOverflow"),__publicField2(this,"_rightPrevOverflow"),__publicField2(this,"_bottomPrevOverflow"),this._tag="div"}enter(domNode,element){super.enter(domNode,element);const topElement=element.append("header");this._bodyElement=element.append("div").attr("class","body");const centerElement=this._bodyElement.append("div").attr("class","center"),leftElement=this._bodyElement.append("div").attr("class","lhs"),rightElement=this._bodyElement.append("div").attr("class","rhs"),bottomElement=element.append("div").attr("class","footer");this._topWA=new WidgetDiv(topElement),this._centerWA=new WidgetDiv(centerElement),this._leftWA=new WidgetDiv(leftElement),this._rightWA=new WidgetDiv(rightElement),this._bottomWA=new WidgetDiv(bottomElement)}update(domNode,element){super.update(domNode,element),this._topWA.element().style("display",this.showTop()?null:"none"),this._rightWA.element().style("display",this.showRight()?null:"none"),this._bottomWA.element().style("display",this.showBottom()?null:"none"),this._leftWA.element().style("display",this.showLeft()?null:"none"),this.topOverflowX()!==this._topWA.overflowX()&&this._topWA.overflowX(this.topOverflowX()),this.rightOverflowX()!==this._rightWA.overflowX()&&this._rightWA.overflowX(this.rightOverflowX()),this.bottomOverflowX()!==this._bottomWA.overflowX()&&this._bottomWA.overflowX(this.bottomOverflowX()),this.leftOverflowX()!==this._leftWA.overflowX()&&this._leftWA.overflowX(this.leftOverflowX()),this.topOverflowY()!==this._topWA.overflowY()&&this._topWA.overflowY(this.topOverflowY()),this.rightOverflowY()!==this._rightWA.overflowY()&&this._rightWA.overflowY(this.rightOverflowY()),this.bottomOverflowY()!==this._bottomWA.overflowY()&&this._bottomWA.overflowY(this.bottomOverflowY()),this.leftOverflowY()!==this._leftWA.overflowY()&&this._leftWA.overflowY(this.leftOverflowY()),this.element().style("width",`${this.width()}px`).style("height",`${this.height()}px`)}targetNull(w){w&&w.target(null)}exit(domNode,element){this.targetNull(this.center()),this.targetNull(this.bottom()),this.targetNull(this.right()),this.targetNull(this.left()),this.targetNull(this.top()),super.exit(domNode,element)}swap(sectionA,sectionB){const a2=this[sectionA](),b=this[sectionB]();return this.targetNull(a2),this.targetNull(b),this[`_${sectionA}WA`].widget(null),this[`_${sectionB}WA`].widget(null),this[sectionA](b),this[sectionB](a2),this}render(callback){return super.render(w=>{this._topWA?this._topWA.widget(this.top()).overlay(this.topOverlay()).render(!0).then(async topBBox=>{const bottomBBox=await this._bottomWA.widget(this.bottom()).render(!0,void 0,this.width()),availableHeight=this.height()-(topBBox.height+bottomBBox.height),leftBBox=await this._leftWA.widget(this.left()).render(!0,availableHeight),rightBBox=await this._rightWA.widget(this.right()).render(!0,availableHeight);this.bottomHeight_exists()&&(bottomBBox.height=this.bottomHeight());const bodyWidth=this.width()-(leftBBox.width+rightBBox.width),bodyHeight=this.height()-(topBBox.height+bottomBBox.height),centerOverflowX=this.centerOverflowX(),centerOverflowY=this.centerOverflowY(),scrollCenterX=["auto","scroll"].indexOf(centerOverflowX)!==-1,scrollCenterY=["auto","scroll"].indexOf(centerOverflowY)!==-1;(scrollCenterX||scrollCenterY)&&this._centerWA.overflowX(this.centerOverflowX()).overflowY(this.centerOverflowY()).widget(this.center()).resize({width:bodyWidth,height:bodyHeight}).render(),this._bodyElement.style("height",`${bodyHeight}px`);const promises=[this._topWA.overflowX(this.topOverflowX()).overflowY(this.topOverflowY()).resize({width:this.width(),height:topBBox.height}).render(),this._leftWA.overflowX(this.leftOverflowX()).overflowY(this.leftOverflowY()).resize({width:leftBBox.width,height:bodyHeight}).render(),this._rightWA.overflowX(this.rightOverflowX()).overflowY(this.rightOverflowY()).resize({width:rightBBox.width,height:bodyHeight}).render(),this._centerWA.overflowX(this.centerOverflowX()).overflowY(this.centerOverflowY()).widget(this.center()).resize({width:bodyWidth,height:bodyHeight}).render(),this._bottomWA.overflowX(this.bottomOverflowX()).overflowY(this.bottomOverflowY()).resize({width:this.width(),height:bottomBBox.height}).render()];Promise.all(promises).then(promises2=>{callback&&callback(this)})}):callback&&callback(this)})}}Border2.prototype._class+=" layout_Border2",Border2.prototype.publish("showTop",!0,"boolean","If true, top widget adapter will display"),Border2.prototype.publish("showRight",!0,"boolean","If true, right widget adapter will display"),Border2.prototype.publish("showBottom",!0,"boolean","If true, bottom widget adapter will display"),Border2.prototype.publish("showLeft",!0,"boolean","If true, left widget adapter will display"),Border2.prototype.publish("topOverflowX","visible","set","Sets the overflow-x css style for the top widget adapter",["hidden","scroll","visible","auto"]),Border2.prototype.publish("rightOverflowX","visible","set","Sets the overflow-x css style for the right widget adapter",["hidden","scroll","visible","auto"]),Border2.prototype.publish("bottomOverflowX","visible","set","Sets the overflow-x css style for the bottom widget adapter",["hidden","scroll","visible","auto"]),Border2.prototype.publish("leftOverflowX","visible","set","Sets the overflow-x css style for the left widget adapter",["hidden","scroll","visible","auto"]),Border2.prototype.publish("centerOverflowX","visible","set","Sets the overflow-x css style for the center widget adapter",["hidden","scroll","visible","auto"]),Border2.prototype.publish("topOverflowY","visible","set","Sets the overflow-y css style for the top widget adapter",["hidden","scroll","visible","auto"]),Border2.prototype.publish("rightOverflowY","visible","set","Sets the overflow-y css style for the right widget adapter",["hidden","scroll","visible","auto"]),Border2.prototype.publish("bottomOverflowY","visible","set","Sets the overflow-y css style for the bottom widget adapter",["hidden","scroll","visible","auto"]),Border2.prototype.publish("leftOverflowY","visible","set","Sets the overflow-y css style for the left widget adapter",["hidden","scroll","visible","auto"]),Border2.prototype.publish("centerOverflowY","visible","set","Sets the overflow-y css style for the center widget adapter",["hidden","scroll","visible","auto"]),Border2.prototype.publish("top",null,"widget","Top Widget",void 0,{render:!1}),Border2.prototype.publish("topOverlay",!1,"boolean","Overlay Top Widget"),Border2.prototype.publish("left",null,"widget","Left Widget",void 0,{render:!1}),Border2.prototype.publish("center",null,"widget","Center Widget",void 0,{render:!1}),Border2.prototype.publish("right",null,"widget","Right Widget",void 0,{render:!1}),Border2.prototype.publish("bottom",null,"widget","Bottom Widget",void 0,{render:!1}),Border2.prototype.publish("bottomHeight",null,"number","Bottom Fixed Height",void 0,{optional:!0});class Carousel extends common.HTMLWidget{constructor(){super(...arguments),__publicField2(this,"_prevActive",0),__publicField2(this,"_root")}activeWidget(){return this.widgets()[this.active()]}enter(domNode,element){super.enter(domNode,element),this._root=element.append("div").attr("id",`${this.id()}_root`)}update(domNode,element){super.update(domNode,element);const active=this.active(),width=this.width();this._root.style("width",`${width}px`).style("height",`${this.height()}px`);const widgetElements=this._root.selectAll(`#${this.id()}_root > .carouselItem`).data(this.widgets(),d=>d.id()),update=widgetElements.enter().append("div").attr("class","carouselItem").each(function(w){w.target(this)}).merge(widgetElements).style("left",(d,i)=>`${(i-this._prevActive)*width}px`).style("width",`${width}px`);this._prevActive!==active&&(update.style("display",(d,i)=>i===this._prevActive||i===active?null:"none").transition().duration(this.transitionDuration()).style("left",(d,i)=>`${(i-active)*width}px`).on("end",function(d,i){common.select(this).style("display",()=>i===active?null:"none")}),this._prevActive=active),widgetElements.exit().each(function(w){w.target(null)}).remove()}exit(domNode,element){this.widgets().forEach(w=>w.target(null)),super.exit(domNode,element)}render(callback){return super.render(w=>{if(!this.visible()||this.isDOMHidden())callback&&callback(w);else{const aw=this.activeWidget();aw&&aw.resize(this.size()).render(w2=>{callback&&callback(w)})}})}}Carousel.prototype._class+=" layout_Carousel",Carousel.prototype.publish("widgets",[],"widgetArray","Widgets",null,{render:!1}),Carousel.prototype.publish("active",0,"number","Active widget"),Carousel.prototype.publish("transitionDuration",500,"number","Transition duration");var pi$1=Math.PI,tau$1=2*pi$1,epsilon=1e-6,tauEpsilon=tau$1-epsilon;function Path(){this._x0=this._y0=this._x1=this._y1=null,this._=""}function path(){return new Path}Path.prototype=path.prototype={constructor:Path,moveTo:function(x,y){this._+="M"+(this._x0=this._x1=+x)+","+(this._y0=this._y1=+y)},closePath:function(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},lineTo:function(x,y){this._+="L"+(this._x1=+x)+","+(this._y1=+y)},quadraticCurveTo:function(x1,y1,x,y){this._+="Q"+ +x1+","+ +y1+","+(this._x1=+x)+","+(this._y1=+y)},bezierCurveTo:function(x1,y1,x2,y2,x,y){this._+="C"+ +x1+","+ +y1+","+ +x2+","+ +y2+","+(this._x1=+x)+","+(this._y1=+y)},arcTo:function(x1,y1,x2,y2,r2){x1=+x1,y1=+y1,x2=+x2,y2=+y2,r2=+r2;var x0=this._x1,y0=this._y1,x21=x2-x1,y21=y2-y1,x01=x0-x1,y01=y0-y1,l01_2=x01*x01+y01*y01;if(r2<0)throw new Error("negative radius: "+r2);if(this._x1===null)this._+="M"+(this._x1=x1)+","+(this._y1=y1);else if(l01_2>epsilon)if(!(Math.abs(y01*x21-y21*x01)>epsilon)||!r2)this._+="L"+(this._x1=x1)+","+(this._y1=y1);else{var x20=x2-x0,y20=y2-y0,l21_2=x21*x21+y21*y21,l20_2=x20*x20+y20*y20,l21=Math.sqrt(l21_2),l01=Math.sqrt(l01_2),l=r2*Math.tan((pi$1-Math.acos((l21_2+l01_2-l20_2)/(2*l21*l01)))/2),t01=l/l01,t21=l/l21;Math.abs(t01-1)>epsilon&&(this._+="L"+(x1+t01*x01)+","+(y1+t01*y01)),this._+="A"+r2+","+r2+",0,0,"+ +(y01*x20>x01*y20)+","+(this._x1=x1+t21*x21)+","+(this._y1=y1+t21*y21)}},arc:function(x,y,r2,a0,a1,ccw){x=+x,y=+y,r2=+r2,ccw=!!ccw;var dx=r2*Math.cos(a0),dy=r2*Math.sin(a0),x0=x+dx,y0=y+dy,cw=1^ccw,da=ccw?a0-a1:a1-a0;if(r2<0)throw new Error("negative radius: "+r2);this._x1===null?this._+="M"+x0+","+y0:(Math.abs(this._x1-x0)>epsilon||Math.abs(this._y1-y0)>epsilon)&&(this._+="L"+x0+","+y0),r2&&(da<0&&(da=da%tau$1+tau$1),da>tauEpsilon?this._+="A"+r2+","+r2+",0,1,"+cw+","+(x-dx)+","+(y-dy)+"A"+r2+","+r2+",0,1,"+cw+","+(this._x1=x0)+","+(this._y1=y0):da>epsilon&&(this._+="A"+r2+","+r2+",0,"+ +(da>=pi$1)+","+cw+","+(this._x1=x+r2*Math.cos(a1))+","+(this._y1=y+r2*Math.sin(a1))))},rect:function(x,y,w,h){this._+="M"+(this._x0=this._x1=+x)+","+(this._y0=this._y1=+y)+"h"+ +w+"v"+ +h+"h"+-w+"Z"},toString:function(){return this._}};function constant(x){return function(){return x}}var pi=Math.PI,tau=2*pi;const d3SymbolCircle={draw:function(context,size){var r2=Math.sqrt(size/pi);context.moveTo(r2,0),context.arc(0,0,r2,0,tau)}},d3SymbolCross={draw:function(context,size){var r2=Math.sqrt(size/5)/2;context.moveTo(-3*r2,-r2),context.lineTo(-r2,-r2),context.lineTo(-r2,-3*r2),context.lineTo(r2,-3*r2),context.lineTo(r2,-r2),context.lineTo(3*r2,-r2),context.lineTo(3*r2,r2),context.lineTo(r2,r2),context.lineTo(r2,3*r2),context.lineTo(-r2,3*r2),context.lineTo(-r2,r2),context.lineTo(-3*r2,r2),context.closePath()}};var tan30=Math.sqrt(1/3),tan30_2=tan30*2;const d3SymbolDiamond={draw:function(context,size){var y=Math.sqrt(size/tan30_2),x=y*tan30;context.moveTo(0,-y),context.lineTo(x,0),context.lineTo(0,y),context.lineTo(-x,0),context.closePath()}};var ka=.8908130915292852,kr=Math.sin(pi/10)/Math.sin(7*pi/10),kx=Math.sin(tau/10)*kr,ky=-Math.cos(tau/10)*kr;const d3SymbolStar={draw:function(context,size){var r2=Math.sqrt(size*ka),x=kx*r2,y=ky*r2;context.moveTo(0,-r2),context.lineTo(x,y);for(var i=1;i<5;++i){var a2=tau*i/5,c2=Math.cos(a2),s2=Math.sin(a2);context.lineTo(s2*r2,-c2*r2),context.lineTo(c2*x-s2*y,s2*x+c2*y)}context.closePath()}},d3SymbolSquare={draw:function(context,size){var w=Math.sqrt(size),x=-w/2;context.rect(x,x,w,w)}};var sqrt3=Math.sqrt(3);const d3SymbolTriangle={draw:function(context,size){var y=-Math.sqrt(size/(sqrt3*3));context.moveTo(0,y*2),context.lineTo(-sqrt3*y,-y),context.lineTo(sqrt3*y,-y),context.closePath()}};var c=-.5,s=Math.sqrt(3)/2,k=1/Math.sqrt(12),a=(k/2+1)*3;const d3SymbolWye={draw:function(context,size){var r2=Math.sqrt(size/a),x0=r2/2,y0=r2*k,x1=x0,y1=r2*k+r2,x2=-x1,y2=y1;context.moveTo(x0,y0),context.lineTo(x1,y1),context.lineTo(x2,y2),context.lineTo(c*x0-s*y0,s*x0+c*y0),context.lineTo(c*x1-s*y1,s*x1+c*y1),context.lineTo(c*x2-s*y2,s*x2+c*y2),context.lineTo(c*x0+s*y0,c*y0-s*x0),context.lineTo(c*x1+s*y1,c*y1-s*x1),context.lineTo(c*x2+s*y2,c*y2-s*x2),context.closePath()}};function d3Symbol(){var type=constant(d3SymbolCircle),size=constant(64),context=null;function symbol(){var buffer;if(context||(context=buffer=path()),type.apply(this,arguments).draw(context,+size.apply(this,arguments)),buffer)return context=null,buffer+""||null}return symbol.type=function(_){return arguments.length?(type=typeof _=="function"?_:constant(_),symbol):type},symbol.size=function(_){return arguments.length?(size=typeof _=="function"?_:constant(+_),symbol):size},symbol.context=function(_){return arguments.length?(context=_??null,symbol):context},symbol}var _typeof=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(obj){return typeof obj}:function(obj){return obj&&typeof Symbol=="function"&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj},d3_identity=function(d){return d},d3_reverse=function(arr){for(var mirror=[],i=0,l=arr.length;i<l;i++)mirror[i]=arr[l-i-1];return mirror},d3_textWrapping=function(text,width){text.each(function(){var text2=common.select(this),words=text2.text().split(/\s+/).reverse(),word,line=[],lineHeight=1.2;text2.attr("y");for(var dy=parseFloat(text2.attr("dy"))||0,tspan=text2.text(null).append("tspan").attr("x",0).attr("dy",dy+"em");word=words.pop();)line.push(word),tspan.text(line.join(" ")),tspan.node().getComputedTextLength()>width&&line.length>1&&(line.pop(),tspan.text(line.join(" ")),line=[word],tspan=text2.append("tspan").attr("x",0).attr("dy",lineHeight+dy+"em").text(word))})},d3_mergeLabels=function(){var gen=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],labels=arguments[1],domain=arguments[2],range=arguments[3],labelDelimiter=arguments[4];if((typeof labels>"u"?"undefined":_typeof(labels))==="object"){if(labels.length===0)return gen;for(var i=labels.length;i<gen.length;i++)labels.push(gen[i]);return labels}else if(typeof labels=="function"){for(var customLabels=[],genLength=gen.length,_i=0;_i<genLength;_i++)customLabels.push(labels({i:_i,genLength,generatedLabels:gen,domain,range,labelDelimiter}));return customLabels}return gen},d3_linearLegend=function(scale,cells,labelFormat){var data=[];if(cells.length>1)data=cells;else for(var domain=scale.domain(),increment=(domain[domain.length-1]-domain[0])/(cells-1),i=0;i<cells;i++)data.push(domain[0]+i*increment);var labels=data.map(labelFormat);return{data,labels,feature:function(d){return scale(d)}}},d3_quantLegend=function(scale,labelFormat,labelDelimiter){var labels=scale.range().map(function(d){var invert=scale.invertExtent(d);return labelFormat(invert[0])+" "+labelDelimiter+" "+labelFormat(invert[1])});return{data:scale.range(),labels,feature:d3_identity}},d3_ordinalLegend=function(scale){return{data:scale.domain(),labels:scale.domain(),feature:function(d){return scale(d)}}},d3_cellOver=function(cellDispatcher,d,obj){cellDispatcher.call("cellover",obj,d)},d3_cellOut=function(cellDispatcher,d,obj){cellDispatcher.call("cellout",obj,d)},d3_cellClick=function(cellDispatcher,d,obj){cellDispatcher.call("cellclick",obj,d)},helper={d3_drawShapes:function(shape,shapes,shapeHeight,shapeWidth,shapeRadius,path2){shape==="rect"?shapes.attr("height",shapeHeight).attr("width",shapeWidth):shape==="circle"?shapes.attr("r",shapeRadius):shape==="line"?shapes.attr("x1",0).attr("x2",shapeWidth).attr("y1",0).attr("y2",0):shape==="path"&&shapes.attr("d",path2)},d3_addText:function(svg,enter,labels,classPrefix,labelWidth){enter.append("text").attr("class",classPrefix+"label");var text=svg.selectAll("g."+classPrefix+"cell text."+classPrefix+"label").data(labels).text(d3_identity);return labelWidth&&svg.selectAll("g."+classPrefix+"cell text."+classPrefix+"label").call(d3_textWrapping,labelWidth),text},d3_calcType:function(scale,ascending,cells,labels,labelFormat,labelDelimiter){var type=scale.invertExtent?d3_quantLegend(scale,labelFormat,labelDelimiter):scale.ticks?d3_linearLegend(scale,cells,labelFormat):d3_ordinalLegend(scale),range=scale.range&&scale.range()||scale.domain();return type.labels=d3_mergeLabels(type.labels,labels,scale.domain(),range,labelDelimiter),ascending&&(type.labels=d3_reverse(type.labels),type.data=d3_reverse(type.data)),type},d3_filterCells:function(type,cellFilter){var filterCells=type.data.map(function(d,i){return{data:d,label:type.labels[i]}}).filter(cellFilter),dataValues=filterCells.map(function(d){return d.data}),labelValues=filterCells.map(function(d){return d.label});return type.data=type.data.filter(function(d){return dataValues.indexOf(d)!==-1}),type.labels=type.labels.filter(function(d){return labelValues.indexOf(d)!==-1}),type},d3_placement:function(orient,cell2,cellTrans,text,textTrans,labelAlign){cell2.attr("transform",cellTrans),text.attr("transform",textTrans),orient==="horizontal"&&text.style("text-anchor",labelAlign)},d3_addEvents:function(cells,dispatcher){cells.on("mouseover.legend",function(d){d3_cellOver(dispatcher,d,this)}).on("mouseout.legend",function(d){d3_cellOut(dispatcher,d,this)}).on("click.legend",function(d){d3_cellClick(dispatcher,d,this)})},d3_title:function(svg,title,classPrefix,titleWidth){if(title!==""){var titleText=svg.selectAll("text."+classPrefix+"legendTitle");titleText.data([title]).enter().append("text").attr("class",classPrefix+"legendTitle"),svg.selectAll("text."+classPrefix+"legendTitle").text(title),titleWidth&&svg.selectAll("text."+classPrefix+"legendTitle").call(d3_textWrapping,titleWidth);var cellsSvg=svg.select("."+classPrefix+"legendCells"),yOffset=svg.select("."+classPrefix+"legendTitle").nodes().map(function(d){return d.getBBox().height})[0],xOffset=-cellsSvg.nodes().map(function(d){return d.getBBox().x})[0];cellsSvg.attr("transform","translate("+xOffset+","+yOffset+")")}},d3_defaultLocale:{format:common.format,formatPrefix:common.formatPrefix},d3_defaultFormatSpecifier:".01f",d3_defaultDelimiter:"to"};function color(){var scale=common.scaleLinear(),shape="rect",shapeWidth=15,shapeHeight=15,shapeRadius=10,shapePadding=2,cells=[5],cellFilter=void 0,labels=[],classPrefix="",useClass=!1,title="",locale=helper.d3_defaultLocale,specifier=helper.d3_defaultFormatSpecifier,labelOffset=10,labelAlign="middle",labelDelimiter=helper.d3_defaultDelimiter,labelWrap=void 0,orient="vertical",ascending=!1,path2=void 0,titleWidth=void 0,legendDispatcher=common.dispatch("cellover","cellout","cellclick");function legend(svg){var type=helper.d3_calcType(scale,ascending,cells,labels,locale.format(specifier),labelDelimiter),legendG=svg.selectAll("g").data([scale]);legendG.enter().append("g").attr("class",classPrefix+"legendCells"),cellFilter&&helper.d3_filterCells(type,cellFilter);var cell2=svg.select("."+classPrefix+"legendCells").selectAll("."+classPrefix+"cell").data(type.data),cellEnter=cell2.enter().append("g").attr("class",classPrefix+"cell");cellEnter.append(shape).attr("class",classPrefix+"swatch");var shapes=svg.selectAll("g."+classPrefix+"cell "+shape+"."+classPrefix+"swatch").data(type.data);helper.d3_addEvents(cellEnter,legendDispatcher),cell2.exit().transition().style("opacity",0).remove(),shapes.exit().transition().style("opacity",0).remove(),shapes=shapes.merge(shapes),helper.d3_drawShapes(shape,shapes,shapeHeight,shapeWidth,shapeRadius,path2);var text=helper.d3_addText(svg,cellEnter,type.labels,classPrefix,labelWrap);cell2=cellEnter.merge(cell2);var textSize=text.nodes().map(function(d){return d.getBBox()}),shapeSize=shapes.nodes().map(function(d){return d.getBBox()});useClass?shapes.attr("class",function(d){return classPrefix+"swatch "+type.feature(d)}):shape=="line"?shapes.style("stroke",type.feature):shapes.style("fill",type.feature);var cellTrans=void 0,textTrans=void 0,textAlign=labelAlign=="start"?0:labelAlign=="middle"?.5:1;orient==="vertical"?function(){var cellSize=textSize.map(function(d,i){return Math.max(d.height,shapeSize[i].height)});cellTrans=function(d,i){var height=common.sum(cellSize.slice(0,i));return"translate(0, "+(height+i*shapePadding)+")"},textTrans=function(d,i){return"translate( "+(shapeSize[i].width+shapeSize[i].x+labelOffset)+", "+(shapeSize[i].y+shapeSize[i].height/2+5)+")"}}():orient==="horizontal"&&(cellTrans=function(d,i){return"translate("+i*(shapeSize[i].width+shapePadding)+",0)"},textTrans=function(d,i){return"translate("+(shapeSize[i].width*textAlign+shapeSize[i].x)+`,
|
|
321
|
+
`+(shapeSize[i].height+shapeSize[i].y+labelOffset+8)+")"}),helper.d3_placement(orient,cell2,cellTrans,text,textTrans,labelAlign),helper.d3_title(svg,title,classPrefix,titleWidth),cell2.transition().style("opacity",1)}return legend.scale=function(_){return arguments.length?(scale=_,legend):scale},legend.cells=function(_){return arguments.length?((_.length>1||_>=2)&&(cells=_),legend):cells},legend.cellFilter=function(_){return arguments.length?(cellFilter=_,legend):cellFilter},legend.shape=function(_,d){return arguments.length?((_=="rect"||_=="circle"||_=="line"||_=="path"&&typeof d=="string")&&(shape=_,path2=d),legend):shape},legend.shapeWidth=function(_){return arguments.length?(shapeWidth=+_,legend):shapeWidth},legend.shapeHeight=function(_){return arguments.length?(shapeHeight=+_,legend):shapeHeight},legend.shapeRadius=function(_){return arguments.length?(shapeRadius=+_,legend):shapeRadius},legend.shapePadding=function(_){return arguments.length?(shapePadding=+_,legend):shapePadding},legend.labels=function(_){return arguments.length?(labels=_,legend):labels},legend.labelAlign=function(_){return arguments.length?((_=="start"||_=="end"||_=="middle")&&(labelAlign=_),legend):labelAlign},legend.locale=function(_){return arguments.length?(locale=common.formatLocale(_),legend):locale},legend.labelFormat=function(_){return arguments.length?(specifier=common.formatSpecifier(_),legend):legend.locale().format(specifier)},legend.labelOffset=function(_){return arguments.length?(labelOffset=+_,legend):labelOffset},legend.labelDelimiter=function(_){return arguments.length?(labelDelimiter=_,legend):labelDelimiter},legend.labelWrap=function(_){return arguments.length?(labelWrap=_,legend):labelWrap},legend.useClass=function(_){return arguments.length?((_===!0||_===!1)&&(useClass=_),legend):useClass},legend.orient=function(_){return arguments.length?(_=_.toLowerCase(),(_=="horizontal"||_=="vertical")&&(orient=_),legend):orient},legend.ascending=function(_){return arguments.length?(ascending=!!_,legend):ascending},legend.classPrefix=function(_){return arguments.length?(classPrefix=_,legend):classPrefix},legend.title=function(_){return arguments.length?(title=_,legend):title},legend.titleWidth=function(_){return arguments.length?(titleWidth=_,legend):titleWidth},legend.textWrap=function(_){return arguments.length?(textWrap=_,legend):textWrap},legend.on=function(){var value=legendDispatcher.on.apply(legendDispatcher,arguments);return value===legendDispatcher?legend:value},legend}class Legend extends common.SVGWidget{constructor(owner){super(),__publicField2(this,"_owner"),__publicField2(this,"_targetWidget"),__publicField2(this,"_targetWidgetMonitor"),__publicField2(this,"_legendOrdinal"),__publicField2(this,"_disabled",[]),__publicField2(this,"_symbolTypeMap",{circle:d3SymbolCircle,cross:d3SymbolCross,diamond:d3SymbolDiamond,square:d3SymbolSquare,star:d3SymbolStar,triangle:d3SymbolTriangle,wye:d3SymbolWye}),__publicField2(this,"_g"),__publicField2(this,"_containerSize"),this._owner=owner,this._drawStartPos="origin";const context=this;this._legendOrdinal=color().shape("path",d3Symbol().type(d3SymbolCircle).size(150)()).shapePadding(10).shapeRadius(10).on("cellclick",function(d){context.onClick(d,this)}).on("cellover",d=>{context.onOver(d,this)}).on("cellout",d=>{context.onOut(d,this)})}isDisabled(d){return typeof d>"u"?!1:typeof d=="string"?d.indexOf("__")===0||this._disabled.indexOf(d)>=0:d instanceof common.Database.Field?d.id().indexOf("__")===0||this._disabled.indexOf(d.id())>=0:this._disabled.indexOf(d)>=0}filteredFields(){switch(this.dataFamily()){case"2D":return this.fields();case"ND":return this.fields().filter(d=>!this.isDisabled(d))}return this.fields()}filteredColumns(){switch(this.dataFamily()){case"2D":return this.columns();case"ND":return this.columns().filter(d=>!this.isDisabled(d))}return this.columns()}filteredData(){switch(this.dataFamily()){case"2D":return this.data().filter(row2=>!this.isDisabled(row2[0]));case"ND":const disabledCols={};let anyDisabled=!1;return this.columns().forEach((col,idx)=>{const disabled=this.isDisabled(col);disabledCols[idx]=disabled,disabled&&(anyDisabled=!0)}),anyDisabled?this.data().map(row2=>row2.filter((cell2,idx)=>!disabledCols[idx])):this.data()}return this.data()}isRainbow(){const widget=this.getWidget();return widget&&widget._palette&&widget._palette.type()==="rainbow"}targetWidget(_){if(!arguments.length)return this._targetWidget;if(this._targetWidget=_,this._targetWidgetMonitor&&(this._targetWidgetMonitor.remove(),delete this._targetWidgetMonitor),this._targetWidget){const context=this;this._targetWidgetMonitor=this._targetWidget.monitor(function(key,newProp,oldProp,source){switch(key){case"chart":case"columns":case"data":case"paletteID":context.lazyRender();break}})}return this}getWidget(){if(this._targetWidget)switch(this._targetWidget.classID()){case"composite_MultiChart":return this._targetWidget.chart()}return this._targetWidget}getPalette(){const widget=this.getWidget();if(widget&&widget._palette)switch(widget._palette.type()){case"ordinal":return common.Palette.ordinal(widget._palette.id());case"rainbow":return common.Palette.rainbow(widget._palette.id())}return common.Palette.ordinal("default")}getPaletteType(){return this.getPalette().type()}fillColorFunc(){const widget=this.getWidget();if(widget&&widget.fillColor)return widget._palette&&widget.paletteID&&widget._palette.name!==widget.paletteID()&&(widget._palette=widget._palette.switch(widget.paletteID())),(row2,col,sel)=>widget.fillColor(row2,col,sel);const palette=common.Palette.ordinal(widget&&widget.paletteID&&widget.paletteID()||"default");return(row2,col,sel)=>palette(col)}fillColor(row2,col,sel){return this.fillColorFunc()(row2,col,sel)}enter(domNode,element){super.enter(domNode,element),this._g=element.append("g").attr("class","legendOrdinal")}calcMetaData(){let dataArr=[],total=0,maxLabelWidth=0;const colLength=this.columns().length;if(this._targetWidget){const columns=this.columns();switch(this.getPaletteType()){case"ordinal":const fillColor=this.fillColorFunc();let val=0;switch(this.dataFamily()){case"2D":dataArr=this.data().map(function(n,i){val=this.data()[i].slice(1,colLength).reduce((acc,n2)=>acc+n2,0);const disabled=this.isDisabled(n[0]);disabled||(total+=val);const label=n[0]+(!disabled&&this.showSeriesTotal()?` (${val})`:""),textSize=this.textSize(label);return maxLabelWidth<textSize.width&&(maxLabelWidth=textSize.width),[fillColor(n,n[0],!1),n[0],label]},this);break;case"ND":dataArr=this.columns().filter(col=>col.indexOf("__")!==0).filter(function(n,i){return i>0}).map(function(n,i){val=this.data().reduce((acc,n2)=>acc+n2[i+1],0);const disabled=this.isDisabled(columns[i+1]),label=n+(!disabled&&this.showSeriesTotal()?` (${val})`:"");disabled||(total+=val);const textSize=this.textSize(label);return maxLabelWidth<textSize.width&&(maxLabelWidth=textSize.width),[fillColor(void 0,n,!1),n,label]},this);break;default:dataArr=this.columns().map(function(n){return[fillColor(void 0,n,!1),n]},this);break}break;case"rainbow":const palette=this.getPalette(),format$1=common.format(this.rainbowFormat()),widget=this.getWidget(),steps=this.rainbowBins(),weightMin=widget._dataMinWeight,weightMax=widget._dataMaxWeight,stepWeightDiff=(weightMax-weightMin)/(steps-1);dataArr.push([palette(weightMin,weightMin,weightMax),format$1(weightMin)]);for(let x=1;x<steps-1;++x){let mid=stepWeightDiff*x;Math.floor(mid)>parseInt(dataArr[0][1])&&(mid=Math.floor(mid)),dataArr.push([palette(mid,weightMin,weightMax),format$1(mid)])}dataArr.push([palette(weightMax,weightMin,weightMax),format$1(weightMax)]);break}}return{dataArr,total,maxLabelWidth}}update(domNode,element){super.update(domNode,element);const{dataArr,maxLabelWidth,total}=this.calcMetaData(),radius=this.shapeRadius(),size=this.radiusToSymbolSize(radius),strokeWidth=1;let shapePadding=this.itemPadding();this.orientation()==="horizontal"&&(shapePadding+=maxLabelWidth-radius*2);const ordinal=common.scaleOrdinal().domain(dataArr.map(row2=>row2[1])).range(dataArr.map(row2=>row2[0]));this._legendOrdinal.shape("path",d3Symbol().type(this._symbolTypeMap[this.symbolType()]).size(size)()).orient(this.orientation()).title(this.title()).labelWrap(this.labelMaxWidth()).labelAlign(this.labelAlign()).shapePadding(shapePadding).scale(ordinal).labels(d=>dataArr[d.i][2]),this._g.call(this._legendOrdinal),this.updateDisabled(element,dataArr);const legendCellsBbox=this._g.select(".legendCells").node().getBBox();let offsetX=Math.abs(legendCellsBbox.x),offsetY=Math.abs(legendCellsBbox.y)+strokeWidth;if(this.orientation()==="horizontal"){if(this.labelAlign()==="start"?offsetX+=strokeWidth:this.labelAlign()==="end"&&(offsetX-=strokeWidth),this.width()>legendCellsBbox.width){const extraWidth=this.width()-legendCellsBbox.width;offsetX+=extraWidth/2}}else if(this.orientation()==="vertical"&&(offsetX+=strokeWidth,this._containerSize.height>legendCellsBbox.height)){const extraHeight=this.height()-legendCellsBbox.height;offsetY+=extraHeight/2}this._g.attr("transform",`translate(${offsetX}, ${offsetY})`),this.pos({x:0,y:0}),this._legendOrdinal.labelOffset(this.itemPadding());const legendTotal=this._g.selectAll(".legendTotal").data(dataArr.length&&this.showLegendTotal()?[total]:[]),totalText=`Total: ${total}`,totalOffsetX=-offsetX,totalOffsetY=legendCellsBbox.height+this.itemPadding()+strokeWidth;this.enableOverflowScroll(!1),this.enableOverflow(!0),legendTotal.enter().append("text").classed("legendTotal",!0).merge(legendTotal).attr("transform",`translate(${totalOffsetX}, ${totalOffsetY})`).text(totalText),legendTotal.exit().remove()}updateDisabled(element,dataArr){element.style("cursor","pointer").selectAll("path.swatch").filter((d,i)=>i<dataArr.length).style("stroke",(d,i)=>dataArr[i][0]).style("fill",(d,i)=>this._disabled.indexOf(d)<0?dataArr[i][0]:"white")}postUpdate(domNode,element){let w;this._boundingBox&&(w=this._boundingBox.width,this._boundingBox.width=this._size.width),super.postUpdate(domNode,element),w!==void 0&&(this._boundingBox.width=w),this._parentRelativeDiv.style("overflow","hidden")}exit(domNode,element){super.exit(domNode,element)}radiusToSymbolSize(radius){const circleSize=Math.pow(radius,2)*Math.PI;switch(this.symbolType()){case"star":return circleSize*.45;case"triangle":return circleSize*.65;case"cross":case"diamond":case"wye":return circleSize*.75;case"circle":return circleSize;case"square":return circleSize*1.3}}onClick(d,domNode){switch(this.getPaletteType()){case"ordinal":switch(this.dataFamily()){case"2D":case"ND":const disabledIdx=this._disabled.indexOf(d);disabledIdx<0?this._disabled.push(d):this._disabled.splice(disabledIdx,1),this._owner.refreshColumns(),this._owner.refreshData(),this._owner.render();break}break}}onOver(d,domNode){if(api.instanceOfIHighlight(this._owner))switch(this.getPaletteType()){case"ordinal":switch(this.dataFamily()){case"2D":case"ND":this._disabled.indexOf(d)<0&&this._owner.highlightColumn(d);break}break}}onOut(d,domNode){if(api.instanceOfIHighlight(this._owner))switch(this.getPaletteType()){case"ordinal":switch(this.dataFamily()){case"2D":case"ND":this._owner.highlightColumn();break}break}}onDblClick(rowData,rowIdx){}onMouseOver(rowData,rowIdx){}resize(_size){let retVal;if(this.fitToContent()){this._containerSize=_size;const bbox=this.getBBox();_size.width>bbox.width&&(bbox.width=_size.width),_size.height>bbox.height&&(bbox.height=_size.height),retVal=super.resize.apply(this,[{...bbox}])}else retVal=super.resize.apply(this,arguments);return retVal}}Legend.prototype._class+=" layout_Legend",Legend.prototype.publish("title","","string","Title"),Legend.prototype.publish("symbolType","circle","set","Shape of each legend item",["circle","cross","diamond","square","star","triangle","wye"]),Legend.prototype.publish("labelMaxWidth",null,"number","Max Label Width (pixels)",null,{optional:!0}),Legend.prototype.publish("orientation","vertical","set","Orientation of Legend rows",["vertical","horizontal"],{tags:["Private"]}),Legend.prototype.publish("dataFamily","ND","set","Type of data",["1D","2D","ND","map","graph","any"],{tags:["Private"]}),Legend.prototype.publish("rainbowFormat",",","string","Rainbow number formatting",null,{tags:["Private"],optional:!0,disable:w=>!w.isRainbow()}),Legend.prototype.publish("rainbowBins",8,"number","Number of rainbow bins",null,{tags:["Private"],disable:w=>!w.isRainbow()}),Legend.prototype.publish("showSeriesTotal",!1,"boolean","Show value next to series"),Legend.prototype.publish("showLegendTotal",!1,"boolean","Show a total of the series values under the legend",null),Legend.prototype.publish("itemPadding",8,"number","Padding between legend items (pixels)"),Legend.prototype.publish("shapeRadius",7,"number","Radius of legend shape (pixels)"),Legend.prototype.publish("fitToContent",!0,"boolean","If true, resize will simply reapply the bounding box dimensions"),Legend.prototype.publish("labelAlign","start","set","Horizontal alignment of legend item label (for horizontal orientation only)",["start","middle","end"],{optional:!0,disable:w=>w.orientation()==="vertical"});class Modal extends common.HTMLWidget{constructor(){super(),__publicField2(this,"_widget"),__publicField2(this,"_relativeTarget"),__publicField2(this,"_fade"),__publicField2(this,"_modal"),__publicField2(this,"_modalHeader"),__publicField2(this,"_modalBody"),__publicField2(this,"_modalHeaderAnnotations"),__publicField2(this,"_modalHeaderCloseButton"),__publicField2(this,"_close"),this._tag="div"}closeModal(){this.visible(!1)}getRelativeTarget(){let relativeTarget;return this.relativeTargetId()&&(relativeTarget=document.getElementById(this.relativeTargetId()),relativeTarget)?relativeTarget:!relativeTarget&&(relativeTarget=this.locateAncestor("layout_Grid"),relativeTarget&&relativeTarget.element)?relativeTarget.element().node():document.body}setModalSize(){this.fixedHeight()!==null&&this.fixedWidth()!==null?this._modal.style("height",this.fixedHeight()).style("width",this.fixedWidth()).style("min-height",null).style("min-width",null).style("max-height",null).style("max-width",null):(this.minHeight()||this.minWidth())&&this._modal.style("min-height",this.minHeight()).style("min-width",this.minWidth()).style("max-height",this.maxHeight()).style("max-width",this.maxWidth());const modalRect=this._modal.node().getBoundingClientRect(),headerRect=this._modalHeader.node().getBoundingClientRect();return this._modalBody.style("height",modalRect.height-headerRect.height+"px").style("width",modalRect.width),modalRect}setFadePosition(rect){this._fade.style("top",rect.top+"px").style("left",rect.left+"px").style("width",rect.width+"px").style("height",rect.height+"px")}setModalPosition(rect){const modalRect=this.setModalSize();if(this.fixedTop()!==null&&this.fixedLeft()!==null)this._modal.style("top",`calc(${this.fixedTop()} + ${rect.top}px)`).style("left",`calc(${this.fixedLeft()} + ${rect.left}px)`);else if(this.fixedHeight()!==null&&this.fixedWidth()!==null)this._modal.style("top",rect.top+rect.height/2-modalRect.height/2+"px").style("left",rect.left+rect.width/2-modalRect.width/2+"px");else if(this.minHeight()||this.minWidth()){const contentRect=this._modal.node().getBoundingClientRect();this._modal.style("top",rect.top+rect.height/2-contentRect.height/2+"px").style("left",rect.left+rect.width/2-contentRect.width/2+"px")}}resize(size){return super.resize(),this._modal&&this.setModalSize(),this}resizeBodySync(width,height){const headerRect=this._modalHeader.node().getBoundingClientRect();return this._modal.style("width",width+"px").style("height",height+headerRect.height+"px").style("min-width",width+"px").style("min-height",height+headerRect.height+"px"),this._modalHeader.style("width",width+"px"),this._modalBody.style("width",width+"px").style("height",height+"px"),this.minWidth(width+"px").minHeight(height+headerRect.height+"px").resize({height:height+headerRect.height,width})}enter(domNode,element){super.enter(domNode,element),this._fade=element.append("div").classed("layout_Modal-fade",!0).classed("layout_Modal-fadeClickable",this.enableClickFadeToClose()).classed("layout_Modal-fade-hidden",!this.showFade());const header_h=this.titleFontSize()*2;this._modal=element.append("div").classed("layout_Modal-content",!0),this._modalHeader=this._modal.append("div").classed("layout_Modal-header",!0).style("color",this.titleFontColor()).style("font-size",this.titleFontSize()+"px").style("height",header_h+"px"),this._modalBody=this._modal.append("div").classed("layout_Modal-body",!0).style("height",`calc( 100% - ${header_h}px )`).style("overflow-x",this.overflowX()).style("overflow-y",this.overflowY()),this._modalHeader.append("div").classed("layout_Modal-title",!0).style("line-height",this.titleFontSize()+"px").style("top",this.titleFontSize()/2+"px").style("left",this.titleFontSize()/2+"px").text(this.formattedTitle()),this._modalHeaderAnnotations=this._modalHeader.append("div").classed("layout_Modal-annotations",!0),this._modalHeaderCloseButton=this._modalHeaderAnnotations.append("div").classed("layout_Modal-closeButton",!0).html('<i class="fa fa-close"></i>'),this._modalHeaderAnnotations.style("line-height",this.titleFontSize()+"px").style("right",this.titleFontSize()/2+"px").style("top",this.titleFontSize()/2+"px"),this._modalHeaderCloseButton.on("click",()=>{this.closeModal()}),this._fade.on("click",n=>{this.enableClickFadeToClose()&&this.closeModal()})}update(domNode,element){super.update(domNode,element),element.style("display",this.show()?null:"none"),this._fade.classed("layout_Modal-fade-hidden",!this.showFade()),this._relativeTarget=this.getRelativeTarget(),this.setModalSize();const rect=this._relativeTarget.getBoundingClientRect();this.setFadePosition(rect),this.setModalPosition(rect),this.show()?(this._widget.target()||this._widget.target(this._modalBody.node()),this._widget.resize().render()):this._widget.target(null).render()}exit(domNode,element){this._widget&&this._widget.target(null),super.exit(domNode,element)}formattedTitle(){const title=this.title_exists()?this.title().trim():"";return title.length>0&&title.slice(0,1)==="("&&title.slice(-1)===")"?title.slice(1,-1):this.title()}}Modal.prototype._class+=" layout_Modal",Modal.prototype.publish("title",null,"string","title"),Modal.prototype.publish("widget",null,"widget","widget"),Modal.prototype.publish("titleFontSize",18,"number","titleFontSize (in pixels)"),Modal.prototype.publish("titleFontColor","#ffffff","html-color","titleFontColor"),Modal.prototype.publish("relativeTargetId",null,"string","relativeTargetId"),Modal.prototype.publish("show",!0,"boolean","show"),Modal.prototype.publish("showFade",!0,"boolean","showFade"),Modal.prototype.publish("enableClickFadeToClose",!0,"boolean","enableClickFadeToClose"),Modal.prototype.publish("minWidth","400px","string","minWidth"),Modal.prototype.publish("minHeight","400px","string","minHeight"),Modal.prototype.publish("maxWidth","800px","string","maxWidth"),Modal.prototype.publish("maxHeight","800px","string","maxHeight"),Modal.prototype.publish("fixedWidth",null,"string","fixedWidth"),Modal.prototype.publish("fixedHeight",null,"string","fixedHeight"),Modal.prototype.publish("fixedTop",null,"string","fixedTop"),Modal.prototype.publish("fixedLeft",null,"string","fixedLeft"),Modal.prototype.publish("overflowX","hidden","string","overflowX"),Modal.prototype.publish("overflowY","scroll","string","overflowY");class ChartPanel extends Border2{constructor(){super(),__publicField2(this,"_legend",new Legend(this).enableOverflow(!0)),__publicField2(this,"_progressBar",new common.ProgressBar),__publicField2(this,"_autoScale",!1),__publicField2(this,"_resolutions",{tiny:{width:100,height:100},small:{width:300,height:300}}),__publicField2(this,"_modal",new Modal),__publicField2(this,"_highlight"),__publicField2(this,"_scale"),__publicField2(this,"_orig_size"),__publicField2(this,"_toggleInfo",new common.ToggleButton().faChar("fa-info-circle").tooltip(".Description").selected(!1).on("enabled",()=>this.description()!=="").on("click",()=>{if(this._toggleInfo.selected()){this._modal.title(this.title()).widget(new common.Text().text(this.description())).show(!0).render();const origCloseFunc=this._modal._close;this._modal._close=()=>{this._toggleInfo.selected(!1).render(),this._modal._close=origCloseFunc}}}).on("mouseMove",()=>{}).on("mouseOut",()=>{})),__publicField2(this,"_toggleData",new common.ToggleButton().faChar("fa-table").tooltip("Data").on("click",()=>{this.dataVisible(this._toggleData.selected()),this.render()})),__publicField2(this,"_buttonDownload",new common.Button().faChar("fa-download").tooltip("Download").on("click",()=>{this.downloadCSV()})),__publicField2(this,"_buttonDownloadImage",new common.Button().faChar("fa-image").tooltip("Download Image").on("click",()=>{this.downloadPNG()})),__publicField2(this,"_toggleLegend",new common.ToggleButton().faChar("fa-list-ul").tooltip("Legend").selected(!1).on("click",()=>{const selected=this._toggleLegend.selected();this.legendPosition()==="bottom"?this.showBottom(selected):this.legendPosition()==="right"&&this.showRight(selected),this.legendVisible(selected),this.render()})),__publicField2(this,"_spacer",new common.Spacer),__publicField2(this,"_titleBar",new common.TitleBar().buttons([this._toggleData,this._buttonDownload,this._buttonDownloadImage,this._spacer,this._toggleLegend])),__publicField2(this,"_carousel",new Carousel),__publicField2(this,"_table",new Table),__publicField2(this,"_widget"),__publicField2(this,"_hideLegendToggleList",["dgrid_Table"]),__publicField2(this,"_prevdataVisible"),__publicField2(this,"_prevlegendVisible"),__publicField2(this,"_prevLegendPosition"),__publicField2(this,"_prevChartDataFamily"),__publicField2(this,"_prevChart"),__publicField2(this,"_prevButtons"),this._tag="div"}fields(_){return arguments.length?(super.fields(_),this._legend.fields(_),this.refreshFields(),this):super.fields()}refreshFields(){return this._widget.fields(this._legend.filteredFields()),this._table.fields(this._legend.filteredFields()),this}columns(_,asDefault){return arguments.length?(super.columns(_,asDefault),this._legend.columns(_,asDefault),this.refreshColumns(),this):super.columns()}refreshColumns(){return this._widget.columns(this._legend.filteredColumns()),this._table.columns(this._legend.filteredColumns()),this}data(_){return arguments.length?(super.data(_),this._legend.data(_),this.refreshData(),this):super.data()}refreshData(){return this._widget.data(this._legend.filteredData()),this._table.data(this._legend.filteredData()),this}highlight(_){return arguments.length?(this._highlight=_,this):this._highlight}startProgress(){this._progressBar.start()}finishProgress(){this._progressBar.finish()}buttons(_){return arguments.length?(this._titleBar.buttons(_),this):this._titleBar.buttons()}downloadCSV(){const namePrefix=this.downloadTitle()?this.downloadTitle():this.title()?this.title():"data",nameSuffix=this.downloadTimestampSuffix()?"_"+common.Utility.timestamp():"";return common.Utility.downloadString("CSV",this._widget.export("CSV"),namePrefix+nameSuffix),this}downloadPNG(){const widget=this.widget();return widget instanceof common.SVGWidget&&(this.legendVisible()?widget.downloadPNG(this.title(),void 0,this._legend):widget.downloadPNG(this.title())),this}highlightColumn(column){if(column){const cssTag=`series-${this.cssTag(column)}`;this._centerWA.element().selectAll(".series").each(function(){const element=common.select(this),highlight=element.classed(cssTag);element.classed("highlight",highlight).classed("lowlight",!highlight)})}else this._centerWA.element().selectAll(".series").classed("highlight",!1).classed("lowlight",!1);return this}getResponsiveMode(){return this.enableAutoscaling()?this._autoScale?this.size().width<=this._resolutions.tiny.width||this.size().height<=this._resolutions.tiny.height?"tiny":this.size().width<=this._resolutions.small.width||this.size().height<=this._resolutions.small.height?"small":"regular":"regular":"none"}setOrigSize(){this._orig_size=JSON.parse(JSON.stringify(this.size()))}enter(domNode,element){super.enter(domNode,element),this._modal.target(this.target()).relativeTargetId(this.id()),this.top(this._titleBar),this.center(this._carousel),this._legend.targetWidget(this._widget).orientation("vertical").title("").visible(!1),this._progressBar.enter(domNode,element),this.setOrigSize()}preUpdateTiny(element){element.selectAll("div.body,div.title-text,div.icon-bar").style("display","none")}preUpdateSmall(element){const scale_x=this._orig_size.width/this._resolutions.small.width,scale_y=this._orig_size.height/this._resolutions.small.height;this._scale=Math.min(scale_x,scale_y);const x_is_smaller=this._scale===scale_x;this.size({width:x_is_smaller?this._resolutions.small.width:this._orig_size.width*(1/this._scale),height:x_is_smaller?this._orig_size.height*(1/this._scale):this._resolutions.small.height}),element.select("div.title-icon").style("position","static"),element.selectAll("lhs").style("display","none"),element.selectAll("div.body,div.title-text,div.icon-bar").style("display",""),element.selectAll("div.data-count").style("visibility","hidden"),element.style("transform",`scale(${this._scale})`)}preUpdateRegular(element){element.selectAll("div.body,div.title-text,div.icon-bar").style("display",""),element.selectAll("div.data-count").style("visibility","hidden"),element.select("div.title-icon").style("position","static"),element.style("transform","translate(0px,0px) scale(1)")}update(domNode,element){if(super.update(domNode,element),this._table&&this.widget_exists()&&this.widget().class().indexOf("chart_XYAxis")>=0){const chart=this.widget();this._table.columns().forEach((column,idx)=>{switch(idx===0?chart.xAxisType():chart.yAxisType()){case"linear":case"log":case"pow":this._table.columnType(column,"number");break;case"time":this._table.columnType(column,"time");break;case"ordinal":default:this._table.columnType(column,"string")}this._table.columnPattern(column,idx===0?chart.xAxisTypeTimePattern():chart.yAxisTypeTimePattern()),this._table.columnFormat(column,idx===0?chart.xAxisTickFormat():chart.yAxisTickFormat())})}}preUpdate(domNode,element){switch(super.preUpdate(domNode,element),this._prevLegendPosition!==this.legendPosition()&&(this._legend.target()!==null&&this._legend.target(null),this._prevLegendPosition!==void 0?this.swap(this._prevLegendPosition,this.legendPosition()):this[this.legendPosition()](this._legend),this.legendPosition()==="right"?(this.rightOverflowX("hidden"),this.rightOverflowY("auto"),this.bottomOverflowX("visible"),this.bottomOverflowY("visible")):(this.rightOverflowX("visible"),this.rightOverflowY("visible"),this.bottomOverflowX("auto"),this.bottomOverflowY("hidden")),this._prevLegendPosition=this.legendPosition()),this._prevdataVisible!==this.dataVisible()&&(this._prevdataVisible=this.dataVisible(),this._toggleData.selected(this._prevdataVisible),this._legend.visible(this._prevlegendVisible&&!this._prevdataVisible),this._carousel.active(this._prevdataVisible?1:0)),this._prevlegendVisible!==this.legendVisible()&&(this._prevlegendVisible=this.legendVisible(),this._toggleLegend.selected(this._prevlegendVisible),this._legend.visible(this._prevlegendVisible&&!this._prevdataVisible)),this._legend.orientation(this.legendPosition()==="bottom"?"horizontal":"vertical"),this.showLeft(!this.left()),this.getResponsiveMode()){case"tiny":this.preUpdateTiny(element);break;case"small":this.preUpdateSmall(element);break;case"regular":this.preUpdateRegular(element);break}const chart=this._widget.classID()==="composite_MultiChart"?this._widget.chart():this._widget;if(this._legend.dataFamily(chart._dataFamily||"any"),this._prevChartDataFamily!==this._legend.dataFamily())switch(this._prevChartDataFamily=this._legend.dataFamily(),this._prevChartDataFamily){case"any":this._toggleLegend.selected(!1),this._legend.visible(!1);break}if(element.style("box-shadow",this.highlight()?`inset 0px 0px 0px ${this.highlightSize()}px ${this.highlightColor()}`:"none"),this._hideLegendToggleList.indexOf(chart.classID())!==-1?(this._spacer.visible(!1),this._toggleLegend.visible(!1)):(this._spacer.visible(!0),this._toggleLegend.visible(!0)),this._prevChart!==chart){this._prevChart=chart;const widgetIconBar=chart?chart._titleBar||chart._iconBar:void 0;if(widgetIconBar&&widgetIconBar instanceof common.IconBar){this._prevButtons=this._prevButtons||[...this.buttons()];const buttons=[...widgetIconBar.buttons(),new common.Spacer,...this._prevButtons];widgetIconBar.buttons([]).render(),this.buttons(buttons)}else this._prevButtons&&this.buttons(this._prevButtons)}const hiddenButtons=[];this.dataButtonVisible()||hiddenButtons.push(this._toggleData),this.downloadButtonVisible()||hiddenButtons.push(this._buttonDownload),this.downloadImageButtonVisible()||hiddenButtons.push(this._buttonDownloadImage),this.legendButtonVisible()||hiddenButtons.push(this._toggleLegend),this._buttonDownloadImage.enabled(this.widget()instanceof common.SVGWidget),this._titleBar.hiddenButtons(hiddenButtons).visible(this.titleVisible()),this.topOverlay(this.titleOverlay()||!this.titleVisible())}postUpdate(domNode,element){switch(super.postUpdate(domNode,element),this.getResponsiveMode()){case"tiny":this.postUpdateTiny(element);break;case"small":this.postUpdateSmall(element);break;case"regular":this.postUpdateRegular(element);break}}postUpdateTiny(element){element.selectAll("div.body,div.title-text,div.icon-bar").style("display","none"),element.selectAll("div.data-count").style("visibility","visible").style("font-size",this.titleIconFontSize()/3+"px").style("line-height",this.titleIconFontSize()/3+"px").style("left",this.titleIconFontSize()+"px").text(this.data().length),element.style("transform","translate(0px,0px) scale(1)");const iconDiv=element.selectAll("div.title-icon"),_node=iconDiv.node(),containerRect=element.node().parentElement.getBoundingClientRect();if(_node){const rect=iconDiv.node().getBoundingClientRect(),icon_top=containerRect.height/2;iconDiv.style("position","absolute").style("left",`calc(50% - ${rect.width/2}px)`).style("top",`${icon_top-rect.height/2}px`),element.selectAll("div.data-count").style("position","absolute").style("left",`calc(50% + ${rect.width/2}px)`).style("top",`${icon_top-rect.height/2}px`)}}postUpdateSmall(element){element.selectAll("lhs").style("display","none"),element.selectAll("div.title-icon").style("position","static"),element.selectAll("div.body,div.title-text,div.icon-bar").style("display",""),element.selectAll("div.data-count").style("visibility","hidden");const rect=element.node().getBoundingClientRect(),parentRect=element.node().parentElement.getBoundingClientRect();element.style("transform",`translate(${parentRect.x-rect.x}px, ${parentRect.y-rect.y}px) scale(${this._scale})`)}postUpdateRegular(element){element.selectAll("div.title-icon").style("position","static"),element.selectAll("div.body,div.title-text,div.icon-bar").style("display",""),element.selectAll("div.data-count").style("visibility","hidden")}exit(domNode,element){this._progressBar.exit(domNode,element),this.right(null),this._legend.target(null),this.center(null),this._carousel.target(null),this.top(null),this._titleBar.target(null),this._modal.target(null),delete this._prevChart,delete this._prevButtons,delete this._prevChartDataFamily,delete this._prevPos,delete this._prevdataVisible,delete this._prevlegendVisible,super.exit(domNode,element)}click(row2,column,selected){}dblclick(row2,column,selected){}vertex_click(row2,col,sel,more){more&&more.vertex}vertex_dblclick(row2,col,sel,more){more&&more.vertex}edge_click(row2,col,sel,more){more&&more.edge}edge_dblclick(row2,col,sel,more){more&&more.edge}}ChartPanel.prototype._class+=" layout_ChartPanel",ChartPanel.prototype.publishReset(),ChartPanel.prototype.publishProxy("title","_titleBar"),ChartPanel.prototype.publish("titleVisible",!0,"boolean"),ChartPanel.prototype.publish("titleOverlay",!1,"boolean"),ChartPanel.prototype.publishProxy("titleIcon","_titleBar"),ChartPanel.prototype.publishProxy("titleIconFont","_titleBar"),ChartPanel.prototype.publishProxy("titleFont","_titleBar"),ChartPanel.prototype.publishProxy("titleIconFontSize","_titleBar"),ChartPanel.prototype.publishProxy("titleFontSize","_titleBar"),ChartPanel.prototype.publishProxy("description","_titleBar"),ChartPanel.prototype.publishProxy("descriptionFont","_titleBar"),ChartPanel.prototype.publishProxy("descriptionFontSize","_titleBar"),ChartPanel.prototype.publish("dataVisible",!1,"boolean","Show data table"),ChartPanel.prototype.publish("dataButtonVisible",!0,"boolean","Show data table button"),ChartPanel.prototype.publish("downloadButtonVisible",!0,"boolean","Show data download button"),ChartPanel.prototype.publish("downloadImageButtonVisible",!1,"boolean","Show image download button"),ChartPanel.prototype.publish("downloadTitle","","string","File name when downloaded"),ChartPanel.prototype.publish("downloadTimestampSuffix",!0,"boolean","Use timestamp as file name suffix"),ChartPanel.prototype.publish("legendVisible",!1,"boolean","Show legend"),ChartPanel.prototype.publish("legendButtonVisible",!0,"boolean","Show legend button"),ChartPanel.prototype.publish("legendPosition","right","set","Position of legend",["right","bottom"]),ChartPanel.prototype.publishProxy("legend_labelMaxWidth","_legend","labelMaxWidth"),ChartPanel.prototype.publishProxy("legend_showSeriesTotal","_legend","showSeriesTotal"),ChartPanel.prototype.publishProxy("legend_showLegendTotal","_legend","showLegendTotal"),ChartPanel.prototype.publishProxy("legend_itemPadding","_legend","itemPadding"),ChartPanel.prototype.publishProxy("legend_shapeRadius","_legend","shapeRadius"),ChartPanel.prototype.publishProxy("legend_symbolType","_legend","symbolType"),ChartPanel.prototype.publishProxy("legend_labelAlign","_legend","labelAlign"),ChartPanel.prototype.publish("widget",null,"widget","Widget",void 0,{render:!1}),ChartPanel.prototype.publish("enableAutoscaling",!1,"boolean"),ChartPanel.prototype.publish("highlightSize",4,"number"),ChartPanel.prototype.publish("highlightColor","#e67e22","html-color"),ChartPanel.prototype.publishProxy("progress_halfLife","_progressBar","halfLife"),ChartPanel.prototype.publishProxy("progress_decay","_progressBar","decay"),ChartPanel.prototype.publishProxy("progress_size","_progressBar","size"),ChartPanel.prototype.publishProxy("progress_color","_progressBar","color"),ChartPanel.prototype.publishProxy("progress_blurBar","_progressBar","blurBar"),ChartPanel.prototype.publishProxy("progress_blurSize","_progressBar","blurSize"),ChartPanel.prototype.publishProxy("progress_blurColor","_progressBar","blurColor"),ChartPanel.prototype.publishProxy("progress_blurOpacity","_progressBar","blurOpacity"),ChartPanel.prototype.widget=function(_){if(!arguments.length)return this._widget;this._carousel.widgets([_,this._table]),this._widget=_,this._widget.fields(this._legend.filteredFields()).data(this._legend.filteredData());const context=this,tmpAny=this._widget;return tmpAny.click=function(){context.click.apply(context,arguments)},tmpAny.dblclick=function(){context.dblclick.apply(context,arguments)},tmpAny.vertex_click=function(){context.vertex_click.apply(context,arguments)},tmpAny.vertex_dblclick=function(){context.vertex_dblclick.apply(context,arguments)},tmpAny.edge_click=function(){context.edge_click.apply(context,arguments)},tmpAny.edge_dblclick=function(){context.edge_dblclick.apply(context,arguments)},this};class FlexGrid extends common.HTMLWidget{constructor(){super()}enter(domNode,element){super.enter(domNode,element),common.select(domNode.parentNode).style("height","100%").style("width","100%")}update(domNode,element){super.update(domNode,element);const context=this,cachedSizes=[];this.updateFlexParent(element);const listItems=element.selectAll(".FlexGrid-list-item").data(this.widgets(),w=>w.id());listItems.enter().append("div").classed("FlexGrid-list-item",!0).each(function(w){w.target(this)}).merge(listItems).style("min-height",this.itemMinHeight()+"px").style("min-width",this.itemMinWidth()+"px").style("flex-basis",(n,i)=>{const flexBasis=this.widgetsFlexBasis()[i];return typeof flexBasis<"u"?flexBasis:this.flexBasis()}).style("flex-grow",(n,i)=>{const flexGrow=this.widgetsFlexGrow()[i];return typeof flexGrow<"u"?flexGrow:this.flexGrow()}).style("border-width",this.borderWidth()+"px").style("border-color",this.itemBorderColor()).each(function(){this.firstChild.style.display="none"}).each(function(){const rect=this.getBoundingClientRect();cachedSizes.push([rect.width,rect.height])}).each(function(w,i){this.firstChild.style.display="block",w.resize({width:cachedSizes[i][0]-2*context.borderWidth(),height:cachedSizes[i][1]-2*context.borderWidth()})}),listItems.exit().remove()}exit(domNode,element){super.exit(domNode,element)}updateFlexParent(element){element.style("height","100%").style("flex-direction",this.orientation()==="horizontal"?"row":"column").style("flex-wrap",this.flexWrap()).style("align-items",this.alignItems()).style("align-content",this.alignContent()).style("overflow-x",()=>this.forceXScroll()||this.orientation()==="horizontal"&&this.flexWrap()==="nowrap"&&!this.disableScroll()?"scroll":"hidden").style("overflow-y",()=>this.forceYScroll()||this.orientation()==="vertical"&&this.flexWrap()==="nowrap"&&!this.disableScroll()?"scroll":"hidden")}}FlexGrid.prototype._class+=" layout_FlexGrid",FlexGrid.prototype.publish("itemBorderColor","transparent","html-color","Color of list item borders"),FlexGrid.prototype.publish("borderWidth",0,"number","Width of list item borders (pixels)"),FlexGrid.prototype.publish("orientation","horizontal","set","Controls the flex-direction of the list items",["horizontal","vertical"]),FlexGrid.prototype.publish("flexWrap","wrap","set","Controls the line wrap when overflow occurs",["nowrap","wrap","wrap-reverse"]),FlexGrid.prototype.publish("disableScroll",!1,"boolean","If false, scrollbar will show (when flexWrap is set to 'nowrap')",null,{disable:w=>w.flexWrap()!=="nowrap"}),FlexGrid.prototype.publish("forceXScroll",!1,"boolean","If true, horzontal scrollbar will show"),FlexGrid.prototype.publish("forceYScroll",!1,"boolean","If true, vertical scrollbar will show"),FlexGrid.prototype.publish("itemMinHeight",64,"number","Minimum height of a list item (pixels)"),FlexGrid.prototype.publish("itemMinWidth",64,"number","Minimum width of a list item (pixels)"),FlexGrid.prototype.publish("alignItems","stretch","set","Controls normal alignment of items",["flex-start","center","flex-end","stretch"]),FlexGrid.prototype.publish("alignContent","stretch","set","Controls normal alignment of item rows",["flex-start","center","flex-end","stretch","space-between","space-around"]),FlexGrid.prototype.publish("flexGrow",1,"number","Default flex-grow style for all list items"),FlexGrid.prototype.publish("flexBasis","10%","string","Default flex-basis style for all list items"),FlexGrid.prototype.publish("widgetsFlexGrow",[],"array","Array of flex-grow values keyed on the widgets array"),FlexGrid.prototype.publish("widgetsFlexBasis",[],"array","Array of flex-basis values keyed on the widgets array"),FlexGrid.prototype.publish("widgets",[],"widgetArray","Array of widgets to be rendered as list items");function getDefaultExportFromCjs(x){return x&&x.__esModule&&Object.prototype.hasOwnProperty.call(x,"default")?x.default:x}var gridList$2={exports:{}},gridList$1=gridList$2.exports,hasRequiredGridList;function requireGridList(){return hasRequiredGridList||(hasRequiredGridList=1,function(module2,exports3){(function(root2,factory){module2.exports=factory()})(gridList$1,function(){var GridList2=function(items,options){this._options=options;for(var k2 in this.defaults)this._options.hasOwnProperty(k2)||(this._options[k2]=this.defaults[k2]);this.items=items,this._adjustSizeOfItems(),this.generateGrid()};GridList2.cloneItems=function(items,_items){var i,k2;for(_items===void 0&&(_items=[]),i=0;i<items.length;i++){_items[i]||(_items[i]={});for(k2 in items[i])_items[i][k2]=items[i][k2]}return _items},GridList2.prototype={defaults:{lanes:5,direction:"horizontal"},toString:function(){var widthOfGrid=this.grid.length,output=`
|
|
4
322
|
#|`,border=`
|
|
5
|
-
--`,item,
|
|
6
|
-
`+this._padNumber(
|
|
7
|
-
`,output},generateGrid:function(){var i2;for(this._resetGrid(),i2=0;i2<this.items.length;i2++)this._markItemPositionToGrid(this.items[i2])},resizeGrid:function(lanes){var currentColumn=0;this._options.lanes=lanes,this._adjustSizeOfItems(),this._sortItemsByPosition(),this._resetGrid();for(var i2=0;i2<this.items.length;i2++){var item=this.items[i2],position=this._getItemPosition(item);this._updateItemPosition(item,this.findPositionForItem(item,{x:currentColumn,y:0})),currentColumn=Math.max(currentColumn,position.x)}this._pullItemsToLeft()},findPositionForItem:function(item,start,fixedRow){var x2,y2,position;for(x2=start.x;x2<this.grid.length;x2++)if(fixedRow!==void 0){if(position=[x2,fixedRow],this._itemFitsAtPosition(item,position))return position}else for(y2=start.y;y2<this._options.lanes;y2++)if(position=[x2,y2],this._itemFitsAtPosition(item,position))return position;var newCol=this.grid.length,newRow=0;return fixedRow!==void 0&&this._itemFitsAtPosition(item,[newCol,fixedRow])&&(newRow=fixedRow),[newCol,newRow]},moveItemToPosition:function(item,newPosition){var position=this._getItemPosition({x:newPosition[0],y:newPosition[1],w:item.w,h:item.h});this._updateItemPosition(item,[position.x,position.y]),this._resolveCollisions(item)},resizeItem:function(item,size){var width=size.w||item.w,height=size.h||item.h;this._updateItemSize(item,width,height),this._resolveCollisions(item),this._pullItemsToLeft()},getChangedItems:function(initialItems,idAttribute){for(var changedItems=[],i2=0;i2<initialItems.length;i2++){var item=this._getItemByAttribute(idAttribute,initialItems[i2][idAttribute]);(item.x!==initialItems[i2].x||item.y!==initialItems[i2].y||item.w!==initialItems[i2].w||item.h!==initialItems[i2].h)&&changedItems.push(item)}return changedItems},_sortItemsByPosition:function(){this.items.sort((function(item1,item2){var position1=this._getItemPosition(item1),position2=this._getItemPosition(item2);return position1.x!=position2.x?position1.x-position2.x:position1.y!=position2.y?position1.y-position2.y:0}).bind(this))},_adjustSizeOfItems:function(){for(var i2=0;i2<this.items.length;i2++){var item=this.items[i2];item.autoSize===void 0&&(item.autoSize=item.w===0||item.h===0),item.autoSize&&(this._options.direction==="horizontal"?item.h=this._options.lanes:item.w=this._options.lanes)}},_resetGrid:function(){this.grid=[]},_itemFitsAtPosition:function(item,newPosition){var position=this._getItemPosition(item),x2,y2;if(newPosition[0]<0||newPosition[1]<0||newPosition[1]+position.h>this._options.lanes)return!1;for(x2=newPosition[0];x2<newPosition[0]+position.w;x2++){var col=this.grid[x2];if(col){for(y2=newPosition[1];y2<newPosition[1]+position.h;y2++)if(col[y2]&&col[y2]!==item)return!1}}return!0},_updateItemPosition:function(item,position){item.x!==null&&item.y!==null&&this._deleteItemPositionFromGrid(item),this._setItemPosition(item,position),this._markItemPositionToGrid(item)},_updateItemSize:function(item,width,height){item.x!==null&&item.y!==null&&this._deleteItemPositionFromGrid(item),item.w=width,item.h=height,this._markItemPositionToGrid(item)},_markItemPositionToGrid:function(item){var position=this._getItemPosition(item),x2,y2;for(this._ensureColumns(position.x+position.w),x2=position.x;x2<position.x+position.w;x2++)for(y2=position.y;y2<position.y+position.h;y2++)this.grid[x2][y2]=item},_deleteItemPositionFromGrid:function(item){var position=this._getItemPosition(item),x2,y2;for(x2=position.x;x2<position.x+position.w;x2++)if(this.grid[x2])for(y2=position.y;y2<position.y+position.h;y2++)this.grid[x2][y2]==item&&(this.grid[x2][y2]=null)},_ensureColumns:function(N2){var i2;for(i2=0;i2<N2;i2++)this.grid[i2]||this.grid.push(new GridCol(this._options.lanes))},_getItemsCollidingWithItem:function(item){for(var collidingItems=[],i2=0;i2<this.items.length;i2++)item!=this.items[i2]&&this._itemsAreColliding(item,this.items[i2])&&collidingItems.push(i2);return collidingItems},_itemsAreColliding:function(item1,item2){var position1=this._getItemPosition(item1),position2=this._getItemPosition(item2);return!(position2.x>=position1.x+position1.w||position2.x+position2.w<=position1.x||position2.y>=position1.y+position1.h||position2.y+position2.h<=position1.y)},_resolveCollisions:function(item){this._tryToResolveCollisionsLocally(item)||this._pullItemsToLeft(item),this._pullItemsToLeft()},_tryToResolveCollisionsLocally:function(item){var collidingItems=this._getItemsCollidingWithItem(item);if(!collidingItems.length)return!0;var _gridList=new GridList2([],this._options),leftOfItem,rightOfItem,aboveOfItem,belowOfItem;GridList2.cloneItems(this.items,_gridList.items),_gridList.generateGrid();for(var i2=0;i2<collidingItems.length;i2++){var collidingItem=_gridList.items[collidingItems[i2]],collidingPosition=this._getItemPosition(collidingItem),position=this._getItemPosition(item);if(leftOfItem=[position.x-collidingPosition.w,collidingPosition.y],rightOfItem=[position.x+position.w,collidingPosition.y],aboveOfItem=[collidingPosition.x,position.y-collidingPosition.h],belowOfItem=[collidingPosition.x,position.y+position.h],_gridList._itemFitsAtPosition(collidingItem,leftOfItem))_gridList._updateItemPosition(collidingItem,leftOfItem);else if(_gridList._itemFitsAtPosition(collidingItem,aboveOfItem))_gridList._updateItemPosition(collidingItem,aboveOfItem);else if(_gridList._itemFitsAtPosition(collidingItem,belowOfItem))_gridList._updateItemPosition(collidingItem,belowOfItem);else if(_gridList._itemFitsAtPosition(collidingItem,rightOfItem))_gridList._updateItemPosition(collidingItem,rightOfItem);else return!1}return GridList2.cloneItems(_gridList.items,this.items),this.generateGrid(),!0},_pullItemsToLeft:function(fixedItem){if(this._sortItemsByPosition(),this._resetGrid(),fixedItem){var fixedPosition=this._getItemPosition(fixedItem);this._updateItemPosition(fixedItem,[fixedPosition.x,fixedPosition.y])}for(var i2=0;i2<this.items.length;i2++){var item=this.items[i2],position=this._getItemPosition(item);if(!(fixedItem&&item==fixedItem)){var x2=this._findLeftMostPositionForItem(item),newPosition=this.findPositionForItem(item,{x:x2,y:0},position.y);this._updateItemPosition(item,newPosition)}}},_findLeftMostPositionForItem:function(item){for(var tail=0,position=this._getItemPosition(item),i2=0;i2<this.grid.length;i2++)for(var j2=position.y;j2<position.y+position.h;j2++){var otherItem=this.grid[i2][j2];if(otherItem){var otherPosition=this._getItemPosition(otherItem);this.items.indexOf(otherItem)<this.items.indexOf(item)&&(tail=otherPosition.x+otherPosition.w)}}return tail},_getItemByAttribute:function(key,value){for(var i2=0;i2<this.items.length;i2++)if(this.items[i2][key]===value)return this.items[i2];return null},_padNumber:function(nr,prefix){return nr>=10?nr:prefix+nr},_getItemPosition:function(item){return this._options.direction==="horizontal"?item:{x:item.y,y:item.x,w:item.h,h:item.w}},_setItemPosition:function(item,position){this._options.direction==="horizontal"?(item.x=position[0],item.y=position[1]):(item.x=position[1],item.y=position[0])}};var GridCol=function(lanes){for(var i2=0;i2<lanes;i2++)this.push(null)};return GridCol.prototype=[],GridList2})}(gridList$2)),gridList$2.exports}var gridListExports=requireGridList();const gridList=getDefaultExportFromCjs(gridListExports),_GridList=_mergeNamespaces$1({__proto__:null,default:gridList},[gridListExports]),GridList=_GridList&&gridList||_GridList;class Grid extends common.HTMLWidget{constructor(){super(),__publicField2(this,"divItems"),__publicField2(this,"gridList"),__publicField2(this,"items"),__publicField2(this,"itemsMap"),__publicField2(this,"origItems"),__publicField2(this,"cellWidth"),__publicField2(this,"cellHeight"),__publicField2(this,"dragItem"),__publicField2(this,"dragItemPos"),__publicField2(this,"_d3Drag"),__publicField2(this,"_d3DragResize"),__publicField2(this,"_selectionBag"),__publicField2(this,"_scrollBarWidth"),this._tag="div",this._selectionBag=new common.Utility.Selection(this),this.content([])}getDimensions(){const size={width:0,height:0};return this.content().forEach(function(cell2){size.width<cell2.gridCol()+cell2.gridColSpan()&&(size.width=cell2.gridCol()+cell2.gridColSpan()),size.height<cell2.gridRow()+cell2.gridRowSpan()&&(size.height=cell2.gridRow()+cell2.gridRowSpan())},this),size}clearContent(widget){this.content(this.content().filter(function(contentWidget){if(!widget)return contentWidget.target(null),!1;let w2=contentWidget;for(;w2;){if(widget===w2)return contentWidget.target(null),!1;w2=w2.widget?w2.widget():null}return!0}))}setContent(row2,col,widget,title,rowSpan,colSpan){if(rowSpan=rowSpan||1,colSpan=colSpan||1,title=title||"",this.content(this.content().filter(function(contentWidget){return contentWidget.gridRow()===row2&&contentWidget.gridCol()===col?(contentWidget.target(null),!1):!0})),widget){const cell2=new Cell().gridRow(row2).gridCol(col).widget(widget).title(title).gridRowSpan(rowSpan).gridColSpan(colSpan);this.content().push(cell2)}return this}sortedContent(){return this.content().sort(function(l2,r2){return l2.gridRow()===r2.gridRow()?l2.gridCol()-r2.gridCol():l2.gridRow()-r2.gridRow()})}getCell(row2,col){let retVal=null;return this.content().some(function(cell2){return row2>=cell2.gridRow()&&row2<cell2.gridRow()+cell2.gridRowSpan()&&col>=cell2.gridCol()&&col<cell2.gridCol()+cell2.gridColSpan()?(retVal=cell2,!0):!1}),retVal}getWidgetCell(id){let retVal=null;return this.content().some(function(cell2){return cell2.widget().id()===id?(retVal=cell2,!0):!1}),retVal}getContent(id){let retVal=null;return this.content().some(function(cell2){return cell2.widget().id()===id?(retVal=cell2.widget(),!0):!1}),retVal}cellToGridItem(cell2){return{x:cell2.gridCol(),y:cell2.gridRow(),w:cell2.gridColSpan(),h:cell2.gridRowSpan(),id:cell2.id(),cell:cell2}}gridItemToCell(item){item.cell.gridCol(item.x).gridRow(item.y).gridColSpan(item.w).gridRowSpan(item.h)}resetItemsPos(){this.origItems.forEach(function(origItem){const item=this.itemsMap[origItem.id];item.x=origItem.x,item.y=origItem.y},this)}initGridList(){this.itemsMap={},this.items=this.content().map(function(cell2){const retVal=this.cellToGridItem(cell2);return this.itemsMap[retVal.id]=retVal,retVal},this),this.origItems=this.content().map(this.cellToGridItem),this.gridList=new GridList(this.items,{direction:this.snapping(),lanes:this.snapping()==="horizontal"?this.snappingRows():this.snappingColumns()})}killGridList(){this.gridList=null,delete this.items,delete this.itemsMap}enter(domNode,element){super.enter(domNode,element),this._scrollBarWidth=common.Platform.getScrollbarWidth();const context=this;this._d3Drag=common.drag().subject(function(_d){const d2=context.cellToGridItem(_d);return{x:d2.x*context.cellWidth,y:d2.y*context.cellHeight}}).on("start",function(_d){if(!context.designMode())return;common.d3Event().sourceEvent.stopPropagation(),context.initGridList();const d2=context.itemsMap[_d.id()];context.dragItem=element.append("div").attr("class","dragging").style("transform",function(){return"translate("+d2.x*context.cellWidth+"px, "+d2.y*context.cellHeight+"px)"}).style("width",function(){return d2.w*context.cellWidth-context.gutter()+"px"}).style("height",function(){return d2.h*context.cellHeight-context.gutter()+"px"}),context.selectionBagClick(_d)}).on("drag",function(_d){if(!context.designMode())return;const event=common.d3Event();event.sourceEvent.stopPropagation();const d2=context.itemsMap[_d.id()];event.x<0&&(event.x=0),event.x+d2.w*context.cellWidth>context.snappingColumns()*context.cellWidth&&(event.x=context.snappingColumns()*context.cellWidth-d2.w*context.cellWidth),event.y<0&&(event.y=0),event.y+d2.h*context.cellWidth>context.snappingRows()*context.cellWidth&&(event.y=context.snappingRows()*context.cellWidth-d2.h*context.cellWidth);const pos=[Math.max(0,Math.floor((event.x+context.cellWidth/2)/context.cellWidth)),Math.max(0,Math.floor((event.y+context.cellHeight/2)/context.cellHeight))];(d2.x!==pos[0]||d2.y!==pos[1])&&(context.snapping()!=="none"?(context.resetItemsPos(),context.gridList.moveItemToPosition(d2,pos)):(d2.x=pos[0],d2.y=pos[1]),(_d.gridCol()!==d2.x||_d.gridRow()!==d2.y)&&(context.items.forEach(context.gridItemToCell),context.updateGrid(!1,100))),context.dragItem.style("transform",function(){return"translate("+event.x+"px, "+event.y+"px)"}).style("width",function(){return d2.w*context.cellWidth+"px"}).style("height",function(){return d2.h*context.cellHeight+"px"})}).on("end",function(){context.designMode()&&(common.d3Event().sourceEvent.stopPropagation(),context.dragItem.remove(),context.dragItem=null,context.killGridList())}),this._d3DragResize=common.drag().subject(function(_d){const d2=context.cellToGridItem(_d);return{x:(d2.x+d2.w-1)*context.cellWidth,y:(d2.y+d2.h-1)*context.cellHeight}}).on("start",function(_d){if(!context.designMode())return;common.d3Event().sourceEvent.stopPropagation(),context.initGridList();const d2=context.itemsMap[_d.id()];context.dragItem=element.append("div").attr("class","resizing").style("transform",function(){return"translate("+d2.x*context.cellWidth+"px, "+d2.y*context.cellHeight+"px)"}).style("width",function(){return d2.w*context.cellWidth-context.gutter()+"px"}).style("height",function(){return d2.h*context.cellHeight-context.gutter()+"px"}),context.dragItemPos={x:d2.x,y:d2.y}}).on("drag",function(_d){if(!context.designMode())return;const event=common.d3Event();event.sourceEvent.stopPropagation();const d2=context.itemsMap[_d.id()],pos=[Math.max(0,Math.round(event.x/context.cellWidth)),Math.max(0,Math.round(event.y/context.cellHeight))],size={w:Math.max(1,pos[0]-d2.x+1),h:Math.max(1,pos[1]-d2.y+1)};(d2.w!==size.w||d2.h!==size.h)&&(context.snapping()!=="none"?(context.resetItemsPos(),context.gridList.resizeItem(d2,size)):(d2.w=size.w,d2.h=size.h),(_d.gridColSpan()!==d2.w||_d.gridRowSpan()!==d2.h)&&(context.items.forEach(context.gridItemToCell),context.updateGrid(d2.id,100))),context.dragItem.style("width",function(){return(-d2.x+1)*context.cellWidth+event.x-context.gutter()+"px"}).style("height",function(){return(-d2.y+1)*context.cellHeight+event.y-context.gutter()+"px"})}).on("end",function(){context.designMode()&&(common.d3Event().sourceEvent.stopPropagation(),context.dragItem.remove(),context.dragItem=null,context.killGridList())})}updateGrid(resize,transitionDuration=0,_noRender=!1){transitionDuration=transitionDuration||0;const context=this;this.divItems.classed("draggable",this.designMode()).transition().duration(transitionDuration).style("left",function(d2){return d2.gridCol()*context.cellWidth+context.gutter()/2+"px"}).style("top",function(d2){return d2.gridRow()*context.cellHeight+context.gutter()/2+"px"}).style("width",function(d2){return d2.gridColSpan()*context.cellWidth-context.gutter()+"px"}).style("height",function(d2){return d2.gridRowSpan()*context.cellHeight-context.gutter()+"px"}).on("end",function(d2){d2.surfaceShadow_default(context.surfaceShadow()).surfacePadding_default(context.surfacePadding()).surfaceBorderWidth_default(context.surfaceBorderWidth()).surfaceBackgroundColor_default(context.surfaceBackgroundColor()),(resize===!0||resize===d2.id())&&d2.resize().lazyRender()})}update(domNode,element2){super.update(domNode,element2),this._placeholderElement.style("overflow-x",this.fitTo()==="width"?"hidden":null),this._placeholderElement.style("overflow-y",this.fitTo()==="width"?"scroll":null);const dimensions=this.getDimensions(),clientWidth=this.width()-(this.fitTo()==="width"?this._scrollBarWidth:0);if(this.cellWidth=clientWidth/dimensions.width,this.cellHeight=this.fitTo()==="all"?this.height()/dimensions.height:this.cellWidth,this.designMode()){const cellLaneRatio=Math.min(this.width()/this.snappingColumns(),this.height()/this.snappingRows()),laneWidth=Math.floor(cellLaneRatio);this.cellWidth=laneWidth,this.cellHeight=this.cellWidth}const context=this,divItems=element2.selectAll("#"+this.id()+" > .ddCell").data(this.content(),function(d2){return d2.id()});this.divItems=divItems.enter().append("div").attr("class","ddCell").each(function(d2){d2.target(this),d2.__grid_watch=d2.monitor(function(key,newVal,oldVal){context._renderCount&&(key==="snapping"||key.indexOf("grid")===0)&&newVal!==oldVal&&(context.gridList||(context.initGridList(),context.snapping()!=="none"&&context.gridList.resizeGrid(context.snapping()==="horizontal"?context.snappingRows():context.snappingColumns()),context.items.forEach(context.gridItemToCell),context.updateGrid(d2.id(),100),context.killGridList()))}),common.select(this).append("div").attr("class","resizeHandle").call(context._d3DragResize).append("div").attr("class","resizeHandleDisplay")}).merge(divItems),this.divItems.each(function(d2){const element=common.select(this);context.designMode()?element.call(context._d3Drag):element.on("mousedown.drag",null).on("touchstart.drag",null)}),this.divItems.select(".resizeHandle").style("display",this.designMode()?null:"none"),this.updateGrid(!0),divItems.exit().each(function(d2){d2.target(null),d2.__grid_watch&&d2.__grid_watch.remove()}).remove();const lanesBackground=element2.selectAll("#"+this.id()+" > .laneBackground").data(this.designMode()?[""]:[]);lanesBackground.enter().insert("div",":first-child").attr("class","laneBackground").style("left","1px").style("top","1px").on("click",function(){context.selectionBagClear()}).merge(lanesBackground).style("width",this.snappingColumns()*this.cellWidth+"px").style("height",this.snappingRows()*this.cellHeight+"px"),lanesBackground.exit().each(function(){context.selectionBagClear()}).remove();const lanes=element2.selectAll("#"+this.id()+" > .lane").data(this.designMode()?[""]:[]);lanes.enter().append("div").attr("class","lane").style("left","1px").style("top","1px"),lanes.style("display",this.showLanes()?null:"none").style("width",this.snappingColumns()*this.cellWidth+"px").style("height",this.snappingRows()*this.cellHeight+"px").style("background-image","linear-gradient(to right, grey 1px, transparent 1px), linear-gradient(to bottom, grey 1px, transparent 1px)").style("background-size",this.cellWidth+"px "+this.cellHeight+"px"),lanes.exit().remove()}exit(domNode,element){this.content().forEach(w2=>w2.target(null)),super.exit(domNode,element)}_createSelectionObject(d2){return{_id:d2._id,element:()=>d2._element,widget:d2}}selection(_2){return arguments.length?(this._selectionBag.set(_2.map(function(row2){return this._createSelectionObject(row2)},this)),this):this._selectionBag.get().map(function(d2){return d2._id})}selectionBagClear(){this._selectionBag.isEmpty()||(this._selectionBag.clear(),this.postSelectionChange())}selectionBagClick(d2){if(d2!==null){const selectionObj=this._createSelectionObject(d2);if(common.d3Event().sourceEvent.ctrlKey)this._selectionBag.isSelected(selectionObj)?(this._selectionBag.remove(selectionObj),this.postSelectionChange()):(this._selectionBag.append(selectionObj),this.postSelectionChange());else{const selected=this._selectionBag.get();selected.length===1&&selected[0]._id===selectionObj._id?this.selectionBagClear():this._selectionBag.set([selectionObj]),this.postSelectionChange()}}}postSelectionChange(){}applyLayout(layoutArr){this.divItems.each((d2,i2)=>{if(layoutArr[i2]){const[x2,y2,w2,h2]=layoutArr[i2];d2.gridCol(x2).gridRow(y2).gridColSpan(w2).gridRowSpan(h2)}}),this.updateGrid(!0)}vizActivation(elem){}}Grid.prototype._class+=" layout_Grid",Grid.prototype.publish("designMode",!1,"boolean","Design Mode",null,{tags:["Basic"]}),Grid.prototype.publish("showLanes",!0,"boolean","Show snapping lanes when in design mode",null,{tags:["Basic"],disable:w2=>!w2.designMode()}),Grid.prototype.publish("fitTo","all","set","Sizing Strategy",["all","width"],{tags:["Basic"]}),Grid.prototype.publish("snapping","vertical","set","Snapping Strategy",["vertical","horizontal","none"]),Grid.prototype.publish("snappingColumns",12,"number","Snapping Columns"),Grid.prototype.publish("snappingRows",16,"number","Snapping Rows"),Grid.prototype.publish("gutter",6,"number","Gap Between Widgets",null,{tags:["Basic"]}),Grid.prototype.publish("surfaceShadow",!0,"boolean","3D Shadow"),Grid.prototype.publish("surfacePadding",null,"string","Cell Padding (px)",null,{tags:["Intermediate"]}),Grid.prototype.publish("surfaceBorderWidth",1,"number","Width (px) of Cell Border",null,{tags:["Intermediate"]}),Grid.prototype.publish("surfaceBackgroundColor",null,"html-color","Surface Background Color",null,{tags:["Advanced"]}),Grid.prototype.publish("content",[],"widgetArray","widgets",null,{tags:["Basic"],render:!1});class HorizontalList extends FlexGrid{constructor(){super(),this.orientation_default("horizontal"),this.flexWrap_default("nowrap")}}HorizontalList.prototype._class+=" layout_HorizontalList";class Layered extends common.HTMLWidget{constructor(){super(),__publicField2(this,"_contentContainer"),__publicField2(this,"_widgetPlacements"),__publicField2(this,"_widgetRatios"),this._tag="div",this._widgetPlacements=[],this._widgetRatios=[]}addLayer(widget,placement="default",widthRatio=1,heightRatio=1){const widgets=this.widgets();return widgets.push(widget||new common.Text().text("No widget defined for layer.")),this.widgets(widgets),this._widgetPlacements.push(placement),this._widgetRatios.push([widthRatio,heightRatio]),this}enter(domNode,element){super.enter(domNode,element),this._contentContainer=element.append("div").attr("class","container")}update(domNode,element){super.update(domNode,element);const context=this;element.style("padding",this.surfacePadding()+"px");const content=this._contentContainer.selectAll(".content.id"+this.id()).data(this.widgets(),function(d2){return d2.id()});content.enter().append("div").attr("class","content id"+this.id()).each(function(widget,idx){widget.target(this)}).merge(content).each(function(widget,idx){const clientSize={width:context.clientWidth(),height:context.clientHeight()},widgetSize=context.widgetSize(idx,clientSize),widgetPosition=context.widgetPosition(idx,clientSize,widgetSize);this.style.top=widgetPosition.y+"px",this.style.left=widgetPosition.x+"px",widget.resize(widgetSize).render()}),content.exit().each(function(widget,idx){widget.target(null)}).remove(),content.order()}widgetSize(idx,clientSize){return this._widgetPlacements[idx]==="default"?{width:clientSize.width*this._widgetRatios[idx][0],height:clientSize.height*this._widgetRatios[idx][1]}:{width:clientSize.width*this._widgetRatios[idx][0],height:clientSize.height*this._widgetRatios[idx][1]}}widgetPosition(idx,clientSize,widgetSize){switch(this._widgetPlacements[idx]){default:return{x:0,y:0};case"top":return{x:clientSize.width/2-widgetSize.width/2,y:0};case"bottom":return{x:clientSize.width/2-widgetSize.width/2,y:clientSize.height-widgetSize.height};case"left":return{x:0,y:clientSize.height/2-widgetSize.height/2};case"right":return{x:clientSize.width-widgetSize.width,y:clientSize.height/2-widgetSize.height/2};case"center":return{x:clientSize.width/2-widgetSize.width/2,y:clientSize.height/2-widgetSize.height/2}}}}Layered.prototype._class+=" layout_Layered",Layered.prototype.publish("surfacePadding",0,"number","Padding"),Layered.prototype.publish("widgets",[],"widgetArray","widgets",null,{tags:["Private"]});class Popup extends common.HTMLWidget{constructor(){super(),__publicField2(this,"_surfaceButtons"),__publicField2(this,"_originalPosition"),this._tag="div",this._surfaceButtons=[]}updateState(visible){visible=visible||!this.popupState(),this.popupState(visible).render()}enter(domNode,element){super.enter(domNode,element),this.widget().target(domNode),this._originalPosition=this.position()}update(domNode,element){super.update(domNode,element),element.style("visibility",this.popupState()?null:"hidden").style("opacity",this.popupState()?null:0).style("width",this.shrinkWrap()?this.widget().width()+"px":this._size.width+"px").style("height",this.shrinkWrap()?this.widget().height()+"px":this._size.height+"px"),this.widget().size().height===0&&this.widget().resize(this.size())}postUpdate(domNode,element){let left,top;switch(this.centerPopup()){case"container":this._placeholderElement&&(left=parseInt(this._placeholderElement.style("width"))/2-this.widget().width()/2,top=parseInt(this._placeholderElement.style("height"))/2-this.widget().height()/2),this.position("absolute");break;case"window":left=window.innerWidth/2-this.widget().width()/2,top=window.innerHeight/2-this.widget().height()/2,this.position("fixed");break;default:left=0,top=0,this.position(this._originalPosition);break}this.pos({x:left,y:top}),super.postUpdate(domNode,element),element.style("position",this.position()).style("left",this.left()+"px").style("right",this.right()+"px").style("top",this.top()+"px").style("bottom",this.bottom()+"px")}exit(domNode,element){this.widget()&&this.widget().target(null),super.exit(domNode,element)}click(obj){}}Popup.prototype._class+=" layout_Popup",Popup.prototype.publish("popupState",!1,"boolean","State of the popup, visible (true) or hidden (false)",null,{}),Popup.prototype.publish("shrinkWrap",!1,"boolean","The popup parent container either shrinks to the size of its contents (true) or expands to fit thge popup's parentDiv (false)",null,{}),Popup.prototype.publish("centerPopup","none","set","Center the widget in its container element (target) or in the window",["none","container","window"],{}),Popup.prototype.publish("top",null,"number","Top position property of popup",null,{}),Popup.prototype.publish("bottom",null,"number","Bottom position property of popup",null,{}),Popup.prototype.publish("left",null,"number","Left position property of popup",null,{}),Popup.prototype.publish("right",null,"number","Right position property of popup",null,{}),Popup.prototype.publish("position","relative","set","Value of the 'position' property",["absolute","relative","fixed","static","initial","inherit"],{tags:["Private"]}),Popup.prototype.publish("widget",null,"widget","Widget",null,{tags:["Private"]});class Tabbed extends common.HTMLWidget{constructor(){super(),__publicField2(this,"_tabContainer"),__publicField2(this,"_contentContainer"),this._tag="div"}clearTabs(){return this.labels([]),this.widgets([]),this}addTab(widget,label,isActive,callback){const widgetSize=widget.size();widgetSize.width===0&&widgetSize.height===0&&widget.size({width:"100%",height:"100%"});const labels=this.labels(),widgets=this.widgets();isActive&&this.activeTabIdx(this.widgets().length),labels.push(label);const surface=new Surface().widget(widget||new common.Text().text("No widget defined for tab"));return widgets.push(surface),this.labels(labels),this.widgets(widgets),callback&&callback(surface),this}widgetSize(widgetDiv){const width=this.clientWidth();let height=this.clientHeight();const tcBox=this._tabContainer.node().getBoundingClientRect();return typeof tcBox.height<"u"&&(height-=tcBox.height),{width,height}}enter(domNode,element){super.enter(domNode,element),this._tabContainer=element.append("div"),this._contentContainer=element.append("div")}update(domNode,element){super.update(domNode,element);const context=this;element.style("padding",this.surfacePadding_exists()?this.surfacePadding()+"px":null);const tabs=this._tabContainer.selectAll(".tab-button.id"+this.id()).data(this.showTabs()?this.labels():[],function(d2){return d2});tabs.enter().append("span").attr("class","tab-button id"+this.id()).style("cursor","pointer").on("click",function(d2,idx){context.click(context.widgets()[idx].widget(),d2,idx),context.activeTabIdx(idx).render()}).merge(tabs).classed("active",function(d2,idx){return context.activeTabIdx()===idx}).text(function(d2){return d2}),tabs.exit().remove();const content=this._contentContainer.selectAll(".tab-content.id"+this.id()).data(this.widgets(),function(d2){return d2.id()});switch(content.enter().append("div").attr("class","tab-content id"+this.id()).each(function(widget,idx){widget.target(this)}).merge(content).classed("active",function(d2,idx){return context.activeTabIdx()===idx}).style("display",function(d2,idx){return context.activeTabIdx()===idx?"block":"none"}).each(function(surface,idx){if(surface.visible(context.activeTabIdx()===idx),context.activeTabIdx()===idx){const wSize=context.widgetSize(common.select(this));surface.surfaceBorderWidth(context.showTabs()?null:0).surfacePadding(context.showTabs()?null:0).resize(wSize)}}),content.exit().each(function(widget,idx){widget.target(null)}).remove(),this.tabLocation()){case"bottom":this._tabContainer.attr("class","on_bottom").style("top",this._contentContainer.node().offsetHeight+this.surfacePadding()+"px").style("position","absolute"),this._contentContainer.style("top",this.surfacePadding_exists()?this.surfacePadding()+"px":null).style("position","absolute");break;default:this._tabContainer.attr("class","on_top").style("top",null).style("position","relative"),this._contentContainer.style("top",this._tabContainer.node().offsetHeight+this.surfacePadding()+"px").style("position","absolute");break}}click(widget,column,idx){}}Tabbed.prototype._class+=" layout_Tabbed",Tabbed.prototype.publish("showTabs",!0,"boolean","Show Tabs",null,{}),Tabbed.prototype.publish("surfacePadding",4,"number","Padding"),Tabbed.prototype.publish("activeTabIdx",0,"number","Index of active tab",null,{}),Tabbed.prototype.publish("labels",[],"array","Array of tab labels sharing an index with ",null,{tags:["Private"]}),Tabbed.prototype.publish("tabLocation","top","set","Position the tabs at the bottom of the widget",["top","bottom"],{tags:["Private"]}),Tabbed.prototype.publish("widgets",[],"widgetArray","widgets",null,{tags:["Private"]});class Toolbar extends common.HTMLWidget{constructor(){super(),this._tag="div"}enter(domNode,element){super.enter(domNode,element)}update(domNode,element){super.update(domNode,element);const context=this;element.attr("title",context.title()).style("background-color",this.backgroundColor());const title=element.selectAll("div.toolbar-title").data(this.title()?[this.title()]:[]);title.enter().append("div").classed("toolbar-title",!0).append("span"),title.selectAll("div.toolbar-title > span").style("font-size",this.fontSize_exists()?this.fontSize()+"px":null).style("color",this.fontColor_exists()?this.fontColor():null).style("font-family",this.fontFamily_exists()?this.fontFamily():null).style("font-weight",this.fontBold_exists()?this.fontBold()?"bold":"normal":null).style("background-color",this.backgroundColor_exists()?this.backgroundColor():null).text(context.title()),title.exit().remove();const childWidgets=element.selectAll("div.toolbar-child").data(this.widgets()!==null?this.widgets():[],function(d2){return d2.id()});childWidgets.enter().insert("div","div.toolbar-title").each(function(d2,i2){const widgetClass=context.widgetClasses()[i2]?context.widgetClasses()[i2]+" toolbar-child":"toolbar-child";common.select(this).classed(widgetClass,!0),d2.target(this)}),childWidgets.exit().each(function(d2){d2.target(null)}).remove(),childWidgets.order()}render(callback){const context=this;return super.render(function(w2){const toolbarBBox=context.element().node().getBoundingClientRect();let minX=toolbarBBox.left+toolbarBBox.width;context.element().selectAll("div.toolbar-child").each(function(d2,i2){const childBBox=this.getBoundingClientRect();minX>childBBox.left&&(minX=childBBox.left)}),context.element().select(".toolbar-title").style("width",minX-toolbarBBox.left-4+"px"),callback&&callback(w2)})}exit(domNode,element){this.widgets().forEach(function(w2){w2.target(null)}),super.exit(domNode,element)}}Toolbar.prototype._class+=" layout_Toolbar",Toolbar.prototype.publish("title","","string","Title",null,{tags:["Intermediate"]}),Toolbar.prototype.publish("fontSize",null,"number","Title Font Size (px)",null,{tags:["Advanced"],optional:!0}),Toolbar.prototype.publish("fontColor",null,"html-color","Title Font Color",null,{tags:["Advanced"],optional:!0}),Toolbar.prototype.publish("fontFamily",null,"string","Title Font Family",null,{tags:["Advanced"],optional:!0}),Toolbar.prototype.publish("fontBold",!0,"boolean","Enable Bold Title Font",null,{tags:["Advanced"],optional:!0}),Toolbar.prototype.publish("backgroundColor",null,"html-color","Background Color",null,{tags:["Intermediate"],optional:!0}),Toolbar.prototype.publish("responsive",!0,"boolean","Adapts to pixel width",null,{tags:["Basic"]}),Toolbar.prototype.publish("widgets",[],"widgetArray","Child widgets of the toolbar",null,{tags:["Basic"]}),Toolbar.prototype.publish("widgetClasses",[],"array","Array of Html Element classes to be assigned to the child widgets (shares index with widgets param)",null,{tags:["Basic"]});class VerticalList extends FlexGrid{constructor(){super(),this.orientation_default("vertical"),this.flexWrap_default("nowrap")}}VerticalList.prototype._class+=" layout_VerticalList";function requireWidget(classID){return new Promise(function(resolve,_reject){const parsedClassID=common.Utility.parseClassID(classID);require&&require([parsedClassID.package],function(Package){let Widget=null;Package&&Package[parsedClassID.widgetID]&&(Widget=Package[parsedClassID.widgetID]),resolve(parsedClassID.memberWidgetID?Widget.prototype?Widget.prototype[parsedClassID.memberWidgetID]:Widget[parsedClassID.memberWidgetID]:Widget)})})}function requireWidgets(classIDs){return Promise.all(classIDs.map(requireWidget))}const Utility=Object.freeze(Object.defineProperty({__proto__:null,requireWidget,requireWidgets},Symbol.toStringTag,{value:"Module"}));class MultiChart extends common.HTMLWidget{constructor(){super();__publicField(this,"_allCharts",{});__publicField(this,"_chartTypeDefaults");__publicField(this,"_chartTypeProperties");__publicField(this,"_chartMonitor");__publicField(this,"_switchingTo");api.INDChart.call(this),api.IGraph.call(this),this._tag="div",this._allCharts={},this._allChartTypes.forEach(function(item){const newItem=JSON.parse(JSON.stringify(item));newItem.widget=null,this._allCharts[item.id]=newItem,this._allCharts[item.display]=newItem,this._allCharts[item.widgetClass]=newItem},this),this._chartTypeDefaults={},this._chartTypeProperties={}}fields(_2){const retVal=super.fields.apply(this,arguments);if(this.chart()){if(!arguments.length)return this.chart().fields();this.chart().fields(_2)}return retVal}columns(_2,asDefault){const retVal=common.HTMLWidget.prototype.columns.apply(this,arguments);if(this.chart()){if(!arguments.length)return this.chart().columns();this.chart().columns(_2,asDefault)}return retVal}data(_2){const retVal=common.HTMLWidget.prototype.data.apply(this,arguments);if(this.chart()){if(!arguments.length)return this.chart().data();this.chart().data(_2)}return retVal}hasOverlay(){return this.chart()&&this.chart().hasOverlay()}visible(_2){return arguments.length?(this.chart()&&this.chart().visible(_2),this):this.chart()&&this.chart().visible()}chartTypeDefaults(_2){return arguments.length?(this._chartTypeDefaults=_2,this):this._chartTypeDefaults}chartTypeProperties(_2){return arguments.length?(this._chartTypeProperties=_2,this):this._chartTypeProperties}getChartDataFamily(){return this._allCharts[this.chartType()].family}requireContent(chartType,callback){const classInfo=common.Utility.parseClassID(this._allCharts[chartType].widgetClass);switch(classInfo.package){case"@hpcc-js/chart":import("@hpcc-js/chart").then(mod=>{callback(new mod[classInfo.widgetID])});break;case"@hpcc-js/dgrid":import("@hpcc-js/dgrid").then(mod=>{callback(new mod[classInfo.widgetID])});break;default:requireWidget(this._allCharts[chartType].widgetClass).then(function(WidgetClass){callback(new WidgetClass)})}}switchChart(callback){if(this._switchingTo===this.chartType()){callback&&callback(this);return}else this._switchingTo&&console.warn("Attempting switch to: "+this.chartType()+", before previous switch is complete ("+this._switchingTo+")");this._switchingTo=this.chartType();const oldContent=this.chart(),context=this;this.requireContent(this.chartType(),function(newContent){if(newContent!==oldContent){const size=context.size();newContent.fields(context.fields()).data(context.data()).size(size),context.chart(newContent),oldContent&&oldContent.size({width:1,height:1}).render()}delete context._switchingTo,callback&&callback(this)})}update(domNode,element){super.update(domNode,element);const content=element.selectAll(".multiChart").data(this.chart()?[this.chart()]:[],function(d2){return d2._id});content.enter().append("div").attr("class","multiChart").each(function(d2){d2.target(this)});const currChart=this.chart();if(currChart){for(const key in this._chartTypeDefaults)if(currChart[key+"_default"])try{currChart[key+"_default"](this._chartTypeDefaults[key])}catch{console.warn("Exception Setting Default: "+key)}else console.warn("Unknown Default: "+key);this._chartTypeDefaults={};for(const propKey in this._chartTypeProperties)if(currChart[propKey])try{currChart[propKey](this._chartTypeProperties[propKey])}catch{console.warn("Exception Setting Property: "+propKey)}else console.warn("Unknown Property: "+propKey);this._chartTypeProperties={}}const context=this;content.each(function(d2){d2.resize(context.size())}),content.exit().transition().each(function(d2){d2.target(null)}).remove()}exit(domNode,element){this._chartMonitor&&(this._chartMonitor.remove(),delete this._chartMonitor),this.chart()&&this.chart().target(null),super.exit(domNode,element)}render(_callback){if(this.chartType()&&(!this.chart()||this.chart().classID()!==this._allCharts[this.chartType()].widgetClass)){const context=this,args=arguments;return this.switchChart(function(){common.HTMLWidget.prototype.render.apply(context,args)}),this}return common.HTMLWidget.prototype.render.apply(this,arguments)}}MultiChart.prototype._class+=" composite_MultiChart",MultiChart.prototype.implements(api.INDChart.prototype),MultiChart.prototype.implements(api.IGraph.prototype),MultiChart.prototype._otherChartTypes=[{id:"FORM",display:"Form",widgetClass:"form_FieldForm"}].map(function(item){return item.family="other",item}),MultiChart.prototype._graphChartTypes=[{id:"GRAPH",display:"Graph",widgetClass:"graph_Graph"},{id:"ADJACENCY_GRAPH",display:"Graph",widgetClass:"graph_AdjacencyGraph"},{id:"GRAPHC",display:"GraphC",widgetClass:"graph_GraphC"}].map(function(item){return item.family="GRAPH",item}),MultiChart.prototype._1DChartTypes=[].map(function(item){return item.family="1D",item}),MultiChart.prototype._2DChartTypes=[{id:"SUMMARY",display:"Summary",widgetClass:"chart_Summary"},{id:"BUBBLE",display:"Bubble",widgetClass:"chart_Bubble"},{id:"PIE",display:"Pie",widgetClass:"chart_Pie"},{id:"WORD_CLOUD",display:"Word Cloud",widgetClass:"other_WordCloud"}].map(function(item){return item.family="2D",item}),MultiChart.prototype._NDChartTypes=[{id:"COLUMN",display:"Column",widgetClass:"chart_Column"},{id:"BAR",display:"Bar",widgetClass:"chart_Bar"},{id:"LINE",display:"Line",widgetClass:"chart_Line"},{id:"AREA",display:"Area",widgetClass:"chart_Area"},{id:"STEP",display:"Step",widgetClass:"chart_Step"},{id:"SCATTER",display:"Scatter",widgetClass:"chart_Scatter"},{id:"HEXBIN",display:"Hex Bin",widgetClass:"chart_HexBin"}].map(function(item){return item.family="ND",item}),MultiChart.prototype._mapChartTypes=[{id:"CHORO_USSTATES",display:"US State Choropleth",widgetClass:"map_ChoroplethStates"},{id:"CHORO_USCOUNTIES",display:"US County Choropleth",widgetClass:"map_ChoroplethCounties"},{id:"CHORO_COUNTRIES",display:"Country Choropleth",widgetClass:"map_ChoroplethCountries"},{id:"GMAP_CHORO_USCOUNTIES",display:"Google Map US County Choropleth",widgetClass:"map_GMapCounties"},{id:"GOOGLE_MAP",display:"Google Map",widgetClass:"map_GMapLayered"},{id:"OPENSTREET",display:"Open Street Map",widgetClass:"map_OpenStreet"}].map(function(item){return item.family="map",item}),MultiChart.prototype._anyChartTypes=[{id:"TABLE",display:"Table",widgetClass:"dgrid_Table"},{id:"TABLE_LEGACY",display:"Table (legacy)",widgetClass:"other_Table"},{id:"TABLE_NESTED",display:"Nested Table",widgetClass:"other_NestedTable"},{id:"TABLE_CALENDAR",display:"Table driven Calendar Heat Map",widgetClass:"other_CalendarHeatMap"},{id:"TABLE_BULLET",display:"Table driven bullet chart",widgetClass:"chart_Bullet"},{id:"TABLE_SELECT",display:"Table driven select",widgetClass:"other_Select"},{id:"TABLE_AUTOCOMPLETE",display:"Table driven auto complete",widgetClass:"other_AutoCompleteText"},{id:"TABLE_OPPORTUNITY",display:"Table driven opportunity widget",widgetClass:"graph_Opportunity"},{id:"TABLE_TREE",display:"Table driven tree",widgetClass:"tree_Dendrogram"},{id:"TABLE_TREEMAP",display:"Table driven Treemap",widgetClass:"tree_Treemap"},{id:"TABLE_SANKEY",display:"Table driven Sankey",widgetClass:"graph_Sankey"},{id:"TABLE_GMAP_PIN",display:"Table driven Google Map (pins)",widgetClass:"map_GMapPin"},{id:"TABLE_GMAP_PINLINE",display:"Table driven Google Map (pins/lines)",widgetClass:"map_GMapPinLine"},{id:"TABLE_XML_TREE",display:"Table driven XML Tree",widgetClass:"tree_Indented"}].map(function(item){return item.family="any",item}),MultiChart.prototype._allChartTypes=MultiChart.prototype._otherChartTypes.concat(MultiChart.prototype._graphChartTypes.concat(MultiChart.prototype._1DChartTypes.concat(MultiChart.prototype._2DChartTypes.concat(MultiChart.prototype._NDChartTypes.concat(MultiChart.prototype._mapChartTypes.concat(MultiChart.prototype._anyChartTypes)))))),MultiChart.prototype._allMap=common.map(MultiChart.prototype._allChartTypes,function(item){return item.family}),MultiChart.prototype._allFamilies=MultiChart.prototype._allMap.keys(),MultiChart.prototype._allChartTypesMap={},MultiChart.prototype._allChartTypesByClass={},MultiChart.prototype._allChartTypes.forEach(function(item){item.widgetPath=common.Utility.widgetPath(item.widgetClass),MultiChart.prototype._allChartTypesMap[item.id]=item,MultiChart.prototype._allChartTypesByClass[item.widgetClass]=item}),MultiChart.prototype.publishReset(),MultiChart.prototype.publish("hideRowOnLegendClick",!1,"boolean","Enable/Disable hiding row on legend clicks",null,{tags:["Basic"]}),MultiChart.prototype.publish("chartType","BUBBLE","set","Chart Type",MultiChart.prototype._allChartTypes.map(function(item){return item.id}),{tags:["Basic"]}),MultiChart.prototype.publish("chart",null,"widget","Chart",null,{tags:["Basic"]});const _origChart=MultiChart.prototype.chart;MultiChart.prototype.chart=function(_2){const retVal=_origChart.apply(this,arguments);if(arguments.length){const context=this;this._allChartTypesByClass[_2.classID()]?this.chartType(this._allChartTypesByClass[_2.classID()].id):console.warn("Unknown Class ID: "+_2.classID()),_2.click=function(_row,_column,_selected){context.click.apply(context,arguments)},_2.dblclick=function(_row,_column,_selected){context.dblclick.apply(context,arguments)},_2.vertex_click=function(row2,column,selected,more){context.vertex_click.apply(context,arguments)},_2.vertex_dblclick=function(row2,column,selected,more){context.vertex_dblclick.apply(context,arguments)},_2.edge_click=function(row2,column,selected,more){context.edge_click.apply(context,arguments)},_2.edge_dblclick=function(row2,column,selected,more){context.edge_dblclick.apply(context,arguments)},this._chartMonitor&&(this._chartMonitor.remove(),delete this._chartMonitor),this._chartMonitor=_2.monitor(function(key,newVal,oldVal){context.broadcast(key,newVal,oldVal,_2)})}return retVal};class Summary extends common.HTMLWidget{constructor(){super()}enter(domNode,element){super.enter(domNode,element),element.append("p")}update(domNode,element){super.update(domNode,element),element.select("p").text(this.text())}}Summary.prototype.publish("text","","string");class MultiChartPanel extends ChartPanel{constructor(){super(),this.widget(new MultiChart().chartType("COLUMN"))}multiChart(){return this._widget}chartType(_2){return arguments.length?(this._widget.chartType(_2),this):this._widget.chartType()}chart(_2){return arguments.length?(this._widget.chart(_2),this):this._widget.chart()}chartTypeDefaults(_2){return arguments.length?(this._widget.chartTypeDefaults(_2),this):this._widget.chartTypeDefaults()}chartTypeProperties(_2){return arguments.length?(this._widget.chartTypeProperties(_2),this):this._widget.chartTypeProperties()}update(domNode,element){super.update(domNode,element),this._widget instanceof MultiChart&&this._legend.dataFamily(this._widget.getChartDataFamily()),super.update(domNode,element)}}MultiChartPanel.prototype._class+=" composite_MultiChartPanel";class Dermatology extends Border{constructor(){super();__publicField(this,"_toolbar");__publicField(this,"_propEditor");__publicField(this,"_showProperties");__publicField(this,"_propsButton");__publicField(this,"_prevWidget");__publicField(this,"showToolbar");__publicField(this,"showToolbar_exists");__publicField(this,"widget");__publicField(this,"widget_exists");this._toolbar=new Toolbar().title("Dermatology"),this._propEditor=new other.PropertyEditor().show_settings(!0)}showProperties(_2){if(!arguments.length)return this._showProperties;this._showProperties=_2,this.rightPercentage(0).rightSize(this._showProperties?360:0).setContent("right",this._showProperties?this._propEditor:null);const widget=this.widget();return widget&&widget.designMode&&widget.designMode(this._showProperties),this}toggleProperties(){return this.showProperties(!this.showProperties())}enter(domNode,element){super.enter(domNode,element),this.topPercentage(0).topSize(0).setContent("top",this._toolbar),this.getCell("top").surfaceShadow(!0);const context=this;this._propsButton=new form.OnOff().id(this.id()+"_props").value("Properties").on("click",function(){context.toggleProperties().render()}),this._toolbar.widgets([this._propsButton])}update(domNode,element){this.topPercentage(0).topSize(this.showToolbar()?32:0),super.update(domNode,element);const widget=this.widget();element.style("background-color",widget&&widget.surfaceShadow?null:"white")}render(callback){const widget=this.widget();return widget!==this._prevWidget&&(widget&&widget.surfaceShadow&&widget.surfaceBackgroundColor_default("white"),this.setContent("center",widget),this._propEditor.widget(widget),this._prevWidget=widget),super.render(callback)}}Dermatology.prototype._class+=" composite_Dermatology",Dermatology.prototype.publish("showToolbar",!0,"boolean","Show Toolbar"),Dermatology.prototype.publish("widget",null,"widget","Widget");class MegaChart extends Border{constructor(){super();__publicField(this,"_chart",new MultiChart);__publicField(this,"_toolbar",new Toolbar);__publicField(this,"_valueTitle",new common.Text);__publicField(this,"_domainTitle",new common.Text);__publicField(this,"_legend",new other.Legend);__publicField(this,"_csvButton");__publicField(this,"_infoButton");__publicField(this,"_maximizeButton");__publicField(this,"_legendButton");__publicField(this,"_chartTypeSelect");__publicField(this,"_prevLegendPosition");__publicField(this,"_prevShowToolbar");__publicField(this,"_1DChartTypes");__publicField(this,"_2DChartTypes");__publicField(this,"_NDChartTypes");__publicField(this,"_anyChartTypes");__publicField(this,"_allChartTypes");__publicField(this,"_contentClasses");__publicField(this,"_dataCount");__publicField(this,"hideRowOnLegendClick");__publicField(this,"hideRowOnLegendClick_exists");__publicField(this,"showToolbar");__publicField(this,"showToolbar_exists");__publicField(this,"titleFontSize");__publicField(this,"titleFontSize_exists");__publicField(this,"titleFontColor");__publicField(this,"titleFontColor_exists");__publicField(this,"titleFontFamily");__publicField(this,"titleFontFamily_exists");__publicField(this,"titleFontBold");__publicField(this,"titleFontBold_exists");__publicField(this,"titleBackgroundColor");__publicField(this,"titleBackgroundColor_exists");__publicField(this,"maximizedBackgroundColor");__publicField(this,"maximizedBackgroundColor_exists");__publicField(this,"showChartSelect");__publicField(this,"showChartSelect_exists");__publicField(this,"showCSV");__publicField(this,"showCSV_exists");__publicField(this,"showCount");__publicField(this,"showCount_exists");__publicField(this,"showMaximize");__publicField(this,"showMaximize_exists");__publicField(this,"toolbarShowLegend");__publicField(this,"toolbarShowLegend_exists");__publicField(this,"showInfoButton");__publicField(this,"showInfoButton_exists");__publicField(this,"infoIcon");__publicField(this,"infoIcon_exists");__publicField(this,"legendPosition");__publicField(this,"legendPosition_exists");__publicField(this,"title");__publicField(this,"title_exists");__publicField(this,"domainAxisTitle");__publicField(this,"domainAxisTitle_exists");__publicField(this,"valueAxisTitle");__publicField(this,"valueAxisTitle_exists");__publicField(this,"chartType");__publicField(this,"chartType_exists");__publicField(this,"chart");__publicField(this,"chart_exists");this._tag="div";const context=this;this._chart.click=function(){context.click.apply(context,arguments)},this._chart.dblclick=function(){context.dblclick.apply(context,arguments)},this._chart.vertex_click=function(){context.vertex_click.apply(context,arguments)},this._chart.vertex_dblclick=function(){context.vertex_dblclick.apply(context,arguments)},this._chart.edge_click=function(){context.edge_click.apply(context,arguments)},this._chart.edge_dblclick=function(){context.edge_dblclick.apply(context,arguments)}}toolbarWidgets(_2){return arguments.length?(this._toolbar.widgets(_2),this):this._toolbar.widgets()}chartTypeDefaults(_2){return arguments.length?(this._chart.chartTypeDefaults(_2),this):this._chart.chartTypeDefaults()}chartTypeProperties(_2){return arguments.length?(this._chart.chartTypeProperties(_2),this):this._chart.chartTypeProperties()}fields(_2){return arguments.length?(this._chart.fields(_2),this):this._chart.fields()}columns(_2,asDefault){return arguments.length?(this._chart.columns(_2,asDefault),this):this._chart.columns()}data(_2){return arguments.length?(this._chart.data(_2),this):this._chart.data()}downloadCSV(){return common.Utility.downloadString("CSV",this._chart.export("CSV")),this}enter(domNode,element){super.enter(domNode,element);const context=this;this.topShrinkWrap(!1).topPercentage(0).topSize(30),this._dataCount=new other.Html().classed({"composite_MegaChart-dataCount":!0}).id(this.id()+"_dataCount").html('<span class="MegaChart-dataCount-label">Count:</span> <span class="MegaChart-dataCount-value">'+(this.data()?this.data().length:"0")+"</span>").overflowX("visible").overflowY("visible"),this._csvButton=new form.Button().classed({"composite_MegaChart-CSV":!0}).id(this.id()+"_csv").value("CSV"),this._csvButton.click=function(a2){context.downloadCSV()},this._infoButton=new form.Button().classed({"composite_MegaChart-Info":!0}).id(this.id()+"_info").value(this.infoIcon()),this._maximizeButton=new form.Button().classed({"composite_MegaChart-Maximize":!0}).id(this.id()+"_maximize").value(""),this._maximizeButton.click=function(buttonWidget){const target=context.target();let node=target;const isMaximized=common.select(target).classed("__hpccisMaximized"),parentGrid=context.locateAncestor("layout_Grid");parentGrid?node=parentGrid.element().node():node=document.body;const targetElement=common.select(context.target());if(isMaximized){const targetParentBox=target.parentElement.getBoundingClientRect(),targetPaddingTop=parseInt(getComputedStyle(target,null).getPropertyValue("padding-top").replace("px","")),targetPaddingLeft=parseInt(getComputedStyle(target,null).getPropertyValue("padding-left").replace("px","")),targetPaddingRight=parseInt(getComputedStyle(target,null).getPropertyValue("padding-right").replace("px","")),targetPaddingBottom=parseInt(getComputedStyle(target,null).getPropertyValue("padding-bottom").replace("px",""));context.contentDiv.style("opacity",0).transition(100),targetElement.transition().style("top",targetParentBox.top+"px").style("left",targetParentBox.left+"px").style("width",targetParentBox.width-targetPaddingLeft-targetPaddingRight+"px").style("height",targetParentBox.height-targetPaddingTop-targetPaddingBottom+"px").each("end",function(){targetElement.style("position",target.__old_position),targetElement.style("z-index",target.__old_zindex),targetElement.style("background-color",target.__old_backgroundColor),targetElement.style("box-shadow",target.__old_boxshadow),context.resize({width:targetParentBox.width-targetPaddingLeft-targetPaddingRight,height:targetParentBox.height-targetPaddingTop-targetPaddingBottom}).render(function(){context.contentDiv.transition().style("opacity",1)}),buttonWidget.value("").render()})}else{target.__old_position=target.style.position,target.__old_zindex=target.style.zIndex,target.__old_boxshadow=target.style.boxShadow,target.__old_backgroundColor=context.element().style("background-color");const grid=common.select(node).datum(),gridTarget=grid.target(),gridBox=grid?gridTarget.getBoundingClientRect():node.getBoundingClientRect(),gridPaddingTop=parseInt(getComputedStyle(gridTarget,null).getPropertyValue("padding-top").replace("px","")),gridPaddingLeft=parseInt(getComputedStyle(gridTarget,null).getPropertyValue("padding-left").replace("px","")),gridPaddingRight=parseInt(getComputedStyle(gridTarget,null).getPropertyValue("padding-right").replace("px","")),gridPaddingBottom=parseInt(getComputedStyle(gridTarget,null).getPropertyValue("padding-bottom").replace("px",""));context.contentDiv.style("opacity",0).transition(100),targetElement.style("position","fixed").style("z-index",999999).style("box-shadow","0 8px 8px 0 rgba(0,0,0,.14),0 12px 4px -8px rgba(0,0,0,.2),0 4px 20px 0 rgba(0,0,0,.12)").style("background-color",target.__old_backgroundColor).transition().style("top",gridBox.top+gridPaddingTop+"px").style("left",gridBox.left+gridPaddingLeft+"px").style("width",gridBox.width-gridPaddingLeft-gridPaddingRight+"px").style("height",gridBox.height-gridPaddingTop-gridPaddingBottom+"px").each("end",function(){targetElement.style("background-color",context.maximizedBackgroundColor()),context.resize({width:gridBox.width-gridPaddingLeft-gridPaddingRight,height:gridBox.height-gridPaddingTop-gridPaddingBottom}).render(function(){context.contentDiv.transition().style("opacity",1)}),buttonWidget.value("").render()})}common.select(target).classed("__hpccisMaximized",!isMaximized)},this._legendButton=new form.Input().classed({"composite_MegaChart-legend":!0}).id(this.id()+"_legend").type("checkbox").inlineLabel("Legend: "),this._legendButton.click=function(a2){context.render()},this._chartTypeSelect=new form.Select().classed({"composite_MegaChart-chartType":!0}).id(this.id()+"_chartType").selectOptions(this._allChartTypes.map(function(a2){return[a2.id,a2.display]})).value(this.chartType()),this._chartTypeSelect.change=function(a2){context.chartType(a2.value()).render()},this.setContent("center",this._chart),this._legend.targetWidget(this._chart).orientation(["top","bottom"].indexOf(this.legendPosition())!==-1?"horizontal":"vertical").fixedSize(!0),this._prevLegendPosition=this.legendPosition(),this.valueAxisTitle()&&this.setContent("left",this._valueTitle.rotation(-90)).leftShrinkWrap(!0),this.domainAxisTitle()&&this.setContent("bottom",this._domainTitle).bottomShrinkWrap(!0),this.legendPosition()!=="none"&&this.setContent(this.legendPosition(),this._legend)[this.legendPosition()+"ShrinkWrap"](!0)}update(domNode,element){function showHideButton(twArr2,button,show){if(show&&twArr2.indexOf(button)===-1)twArr2.push(button);else if(!show){const idx=twArr2.indexOf(button);idx>=0&&twArr2.splice(idx,1)}}this._chart&&typeof this._chart.hideRowOnLegendClick=="function"&&this._chart.hideRowOnLegendClick(this.hideRowOnLegendClick()),this._dataCount.html('<span class="MegaChart-dataCount-label">Count:</span> <span class="MegaChart-dataCount-value">'+(this.data()?this.data().length:"0")+"</span>"),this._chartTypeSelect.value(this.chartType());const twArr=this.toolbarWidgets();showHideButton(twArr,this._csvButton,this.showCSV()),showHideButton(twArr,this._maximizeButton,this.showMaximize()),showHideButton(twArr,this._legendButton,this.toolbarShowLegend()),showHideButton(twArr,this._chartTypeSelect,this.showChartSelect()),showHideButton(twArr,this._infoButton,this.showInfoButton()),showHideButton(twArr,this._dataCount,this.showCount()),this.toolbarWidgets(twArr),this._prevShowToolbar!==this.showToolbar()&&(this.setContent("top",this.showToolbar()?this._toolbar:null),this._prevShowToolbar=this.showToolbar()),this._toolbar.fontSize(this.titleFontSize()).fontColor(this.titleFontColor()).fontFamily(this.titleFontFamily()).fontBold(this.titleFontBold()).backgroundColor(this.titleBackgroundColor()),this._chart.data(this.data()),this._chart.chartType()!==this.chartType()&&this._chart.chartType(this.chartType());let legendPosition=this.legendPosition();this.toolbarShowLegend()&&!this._legendButton.checked()&&(legendPosition="none"),this._prevLegendPosition!==legendPosition&&(this._prevLegendPosition!=="none"&&this.clearContent(this._prevLegendPosition),this._prevLegendPosition=legendPosition,legendPosition!=="none"&&(this._legend=new other.Legend().targetWidget(this.getContent("center").fixedSize(!0)),this.setContent(legendPosition,this._legend),this._legend.orientation(["top","bottom"].indexOf(legendPosition)!==-1?"horizontal":"vertical"))),this._contentClasses=this.getContentClasses(),this.valueAxisTitle()&&this._contentClasses.left!=="common_Text"&&legendPosition!=="left"&&this.setContent("left",this._valueTitle.rotation(-90)),this.domainAxisTitle()&&this._contentClasses.bottom!=="common_Text"&&legendPosition!=="bottom"&&this.setContent("bottom",this._domainTitle).bottomShrinkWrap(!0),this._legend.dataFamily(this._chart.getChartDataFamily()),super.update(domNode,element)}exit(domNode,element){super.exit(domNode,element)}getContentClasses(){const obj={},t2=this.getContent("top"),r2=this.getContent("right"),b2=this.getContent("bottom"),l2=this.getContent("left");return obj.top=t2!==null?t2.classID():void 0,obj.right=r2!==null?r2.classID():void 0,obj.bottom=b2!==null?b2.classID():void 0,obj.left=l2!==null?l2.classID():void 0,obj}serializeState(){const state={title:this.title(),data:this.data()},chart=this.chart();return chart&&chart.serializeState&&(state.chart=chart.serializeState(),delete state.chart.data),state}deserializeState(state){if(state){this.title(state.title).data(state.data);const chart=this.chart();chart&&state.chart&&chart.serializeState&&chart.deserializeState(state.chart)}return this}click(row2,column,selected){}dblclick(row2,column,selected){}vertex_click(row2,col,sel,more){more&&more.vertex}vertex_dblclick(row2,col,sel,more){more&&more.vertex}edge_click(row2,col,sel,more){more&&more.edge}edge_dblclick(row2,col,sel,more){more&&more.edge}}MegaChart.prototype._class+=" composite_MegaChart",MegaChart.prototype._1DChartTypes=MultiChart.prototype._1DChartTypes,MegaChart.prototype._2DChartTypes=MultiChart.prototype._2DChartTypes,MegaChart.prototype._NDChartTypes=MultiChart.prototype._NDChartTypes,MegaChart.prototype._anyChartTypes=MultiChart.prototype._anyChartTypes,MegaChart.prototype._allChartTypes=MultiChart.prototype._allChartTypes,MegaChart.prototype.publishReset(),MegaChart.prototype.publish("hideRowOnLegendClick",!1,"boolean","Enable/Disable hiding row on legend clicks",null,{tags:["Basic"]}),MegaChart.prototype.publish("showToolbar",!0,"boolean","Enable/Disable Toolbar widget",null,{tags:["Basic"]}),MegaChart.prototype.publishProxy("title","_toolbar","title"),MegaChart.prototype.publish("ddlParamsFormat","","string","DDL Param Format '{fname}, {lname}'",null,{tags:["Advanced"],optional:!0}),MegaChart.prototype.publish("titleFontSize",null,"number","Title Font Size (px)",null,{tags:["Advanced"],optional:!0}),MegaChart.prototype.publish("titleFontColor",null,"html-color","Title Font Color",null,{tags:["Advanced"],optional:!0}),MegaChart.prototype.publish("titleFontFamily",null,"string","Title Font Family",null,{tags:["Advanced"],optional:!0}),MegaChart.prototype.publish("titleFontBold",!0,"boolean","Enable Bold Title Font",null,{tags:["Advanced"],optional:!0}),MegaChart.prototype.publish("titleBackgroundColor",null,"html-color","Background Color",null,{tags:["Intermediate"],optional:!0}),MegaChart.prototype.publish("maximizedBackgroundColor","#FFFFFF","html-color","Background Color while maximized",null,{tags:["Intermediate"],optional:!0}),MegaChart.prototype.publish("showChartSelect",!0,"boolean","Show/Hide the chartType dropdown in the toolbar",null,{tags:["Basic"]}),MegaChart.prototype.publish("showCSV",!0,"boolean","Show/Hide CSV button",null,{tags:["Basic"]}),MegaChart.prototype.publish("showCount",!1,"boolean","Show/Hide Data Count",null,{tags:["Basic"]}),MegaChart.prototype.publish("showMaximize",!1,"boolean","Show/Hide Maximize button",null,{tags:["Basic"]}),MegaChart.prototype.publish("toolbarShowLegend",!1,"boolean","Show/Hide Legend button",null,{tags:["Basic"]}),MegaChart.prototype.publish("showInfoButton",!1,"boolean","Show/Hide Info button in toolbar",null,{tags:["Basic"]}),MegaChart.prototype.publish("infoIcon","","string","Help Icon",null,{tags:["Basic"]}),MegaChart.prototype.publish("legendPosition","none","set","Position of the Legend widget",["none","top","right","bottom","left"],{tags:["Basic"]}),MegaChart.prototype.publishProxy("legendFormat","_legend","rainbowFormat"),MegaChart.prototype.publishProxy("legendBins","_legend","rainbowBins"),MegaChart.prototype.publishProxy("domainAxisTitle","_domainTitle","text"),MegaChart.prototype.publishProxy("valueAxisTitle","_valueTitle","text"),MegaChart.prototype.publishProxy("chartType","_chart","chartType"),MegaChart.prototype.publishProxy("chart","_chart","chart");function retrofit_114_serialization(state,replacement_version){if(replacement_version=!replacement_version||replacement_version==="1.14.2-dev"?"1.18.0":replacement_version,!state.__version)return state;const state_version_obj=common.Utility.parseVersionString(state.__version),target_version_obj=common.Utility.parseVersionString(replacement_version);if(state_version_obj.major===1&&state_version_obj.minor===14){console.info("Upgrading old persist from "+state.__version+" to "+replacement_version);let _json_str=JSON.stringify(state);_json_str=_json_str.split('"'+state.__version).join('"'+replacement_version);const ret_obj=JSON.parse(_json_str);return ret_obj.__properties&&ret_obj.__properties.content&&ret_obj.__properties.content.forEach(function(n2){JSON.stringify(n2).split("graph_Graph").length>1&&target_version_obj.minor>=16&&(n2.__properties.widget.__id=n2.__properties.widget.__properties.widget.__id,n2.__properties.widget.__class="composite_MegaChart",n2.__properties.widget.__properties.showCSV=!1,n2.__properties.widget.__properties.chartType="GRAPH",n2.__properties.widget.__properties.chart=n2.__properties.widget.__properties.widget,delete n2.__properties.widget.__properties.chart.__id,delete n2.__properties.widget.__properties.widget),typeof n2.__properties.fields>"u"&&(n2.__properties.fields=[])}),ret_obj}else return state}function deserializeFromObject(widget,state){const promises=[];return other.Persist.widgetPropertyWalker(widget,null,(w2,item)=>{if(w2[item.id+"_reset"](),state.__properties[item.id]!==void 0)switch(item.type){case"widget":const widgetKey=item.id;promises.push(create(state.__properties[item.id]).then(w22=>(w22._owner=w2,w2[widgetKey](w22),w22)));break;case"widgetArray":case"propertyArray":const widgetArrayKey=item.id,widgetStateArray=state.__properties[item.id];if(widgetStateArray.length){const arrPromises=[];for(const widgetState of widgetStateArray)arrPromises.push(create(widgetState).then(widgetItem=>(widgetItem._owner=w2,widgetItem)));promises.push(Promise.all(arrPromises).then(widgetArray=>{w2[widgetArrayKey](widgetArray)}))}break;default:w2[item.id](state.__properties[item.id]);break}}),Promise.all(promises).then(widgets=>{if(state.__data){for(const key in state.__data)if(state.__data.HasOwnProperty(key))switch(key){case"data":widget.data(state.__data[key]);break;default:console.warn("Unexpected __data item: "+key),widget[key](state.__data[key]);break}}return state.__state&&(widget.deserializeState?widget.deserializeState(state.__state):state.__state.data&&widget.data&&widget.data(state.__state.data)),widget})}function deserialize(widget,state){typeof state=="string"&&(state=JSON.parse(state)),state.__id&&state.__id.indexOf(widget._idSeed)!==0&&widget._id!==state.__id&&console.warn("Deserialize: IDs do not match - "+widget._id),deserializeFromObject(widget,state)}function create(state){return typeof state=="string"&&(state=JSON.parse(state)),state=retrofit_114_serialization(state,common.Platform.version()),requireWidget(state.__class).then(WidgetClass=>{const widget=new WidgetClass;return state.__id&&state.__id.indexOf(widget._idSeed)!==0&&state.__id.indexOf("_pe")!==0&&(widget._id=state.__id),deserializeFromObject(widget,state)}).catch(function(e2){console.error("Persist.create: ***exception***"),console.error(e2)})}function clone(widget){create(other.Persist.serializeToObject(widget,void 0,!0,!0))}const Persist=Object.freeze(Object.defineProperty({__proto__:null,clone,create,deserialize,deserializeFromObject,retrofit_114_serialization},Symbol.toStringTag,{value:"Module"}));exports2.BUILD_VERSION=BUILD_VERSION,exports2.Dermatology=Dermatology,exports2.MegaChart=MegaChart,exports2.MultiChart=MultiChart,exports2.MultiChartPanel=MultiChartPanel,exports2.PKG_NAME=PKG_NAME,exports2.PKG_VERSION=PKG_VERSION,exports2.Persist=Persist,exports2.Utility=Utility,Object.defineProperty(exports2,Symbol.toStringTag,{value:"Module"})});
|
|
323
|
+
--`,item,i,j;for(i=0;i<widthOfGrid;i++)output+=" "+this._padNumber(i," "),border+="---";for(output+=border,i=0;i<this._options.lanes;i++)for(output+=`
|
|
324
|
+
`+this._padNumber(i," ")+"|",j=0;j<widthOfGrid;j++)output+=" ",item=this.grid[j][i],output+=item?this._padNumber(this.items.indexOf(item),"0"):"--";return output+=`
|
|
325
|
+
`,output},generateGrid:function(){var i;for(this._resetGrid(),i=0;i<this.items.length;i++)this._markItemPositionToGrid(this.items[i])},resizeGrid:function(lanes){var currentColumn=0;this._options.lanes=lanes,this._adjustSizeOfItems(),this._sortItemsByPosition(),this._resetGrid();for(var i=0;i<this.items.length;i++){var item=this.items[i],position=this._getItemPosition(item);this._updateItemPosition(item,this.findPositionForItem(item,{x:currentColumn,y:0})),currentColumn=Math.max(currentColumn,position.x)}this._pullItemsToLeft()},findPositionForItem:function(item,start,fixedRow){var x,y,position;for(x=start.x;x<this.grid.length;x++)if(fixedRow!==void 0){if(position=[x,fixedRow],this._itemFitsAtPosition(item,position))return position}else for(y=start.y;y<this._options.lanes;y++)if(position=[x,y],this._itemFitsAtPosition(item,position))return position;var newCol=this.grid.length,newRow=0;return fixedRow!==void 0&&this._itemFitsAtPosition(item,[newCol,fixedRow])&&(newRow=fixedRow),[newCol,newRow]},moveItemToPosition:function(item,newPosition){var position=this._getItemPosition({x:newPosition[0],y:newPosition[1],w:item.w,h:item.h});this._updateItemPosition(item,[position.x,position.y]),this._resolveCollisions(item)},resizeItem:function(item,size){var width=size.w||item.w,height=size.h||item.h;this._updateItemSize(item,width,height),this._resolveCollisions(item),this._pullItemsToLeft()},getChangedItems:function(initialItems,idAttribute){for(var changedItems=[],i=0;i<initialItems.length;i++){var item=this._getItemByAttribute(idAttribute,initialItems[i][idAttribute]);(item.x!==initialItems[i].x||item.y!==initialItems[i].y||item.w!==initialItems[i].w||item.h!==initialItems[i].h)&&changedItems.push(item)}return changedItems},_sortItemsByPosition:function(){this.items.sort((function(item1,item2){var position1=this._getItemPosition(item1),position2=this._getItemPosition(item2);return position1.x!=position2.x?position1.x-position2.x:position1.y!=position2.y?position1.y-position2.y:0}).bind(this))},_adjustSizeOfItems:function(){for(var i=0;i<this.items.length;i++){var item=this.items[i];item.autoSize===void 0&&(item.autoSize=item.w===0||item.h===0),item.autoSize&&(this._options.direction==="horizontal"?item.h=this._options.lanes:item.w=this._options.lanes)}},_resetGrid:function(){this.grid=[]},_itemFitsAtPosition:function(item,newPosition){var position=this._getItemPosition(item),x,y;if(newPosition[0]<0||newPosition[1]<0||newPosition[1]+position.h>this._options.lanes)return!1;for(x=newPosition[0];x<newPosition[0]+position.w;x++){var col=this.grid[x];if(col){for(y=newPosition[1];y<newPosition[1]+position.h;y++)if(col[y]&&col[y]!==item)return!1}}return!0},_updateItemPosition:function(item,position){item.x!==null&&item.y!==null&&this._deleteItemPositionFromGrid(item),this._setItemPosition(item,position),this._markItemPositionToGrid(item)},_updateItemSize:function(item,width,height){item.x!==null&&item.y!==null&&this._deleteItemPositionFromGrid(item),item.w=width,item.h=height,this._markItemPositionToGrid(item)},_markItemPositionToGrid:function(item){var position=this._getItemPosition(item),x,y;for(this._ensureColumns(position.x+position.w),x=position.x;x<position.x+position.w;x++)for(y=position.y;y<position.y+position.h;y++)this.grid[x][y]=item},_deleteItemPositionFromGrid:function(item){var position=this._getItemPosition(item),x,y;for(x=position.x;x<position.x+position.w;x++)if(this.grid[x])for(y=position.y;y<position.y+position.h;y++)this.grid[x][y]==item&&(this.grid[x][y]=null)},_ensureColumns:function(N){var i;for(i=0;i<N;i++)this.grid[i]||this.grid.push(new GridCol(this._options.lanes))},_getItemsCollidingWithItem:function(item){for(var collidingItems=[],i=0;i<this.items.length;i++)item!=this.items[i]&&this._itemsAreColliding(item,this.items[i])&&collidingItems.push(i);return collidingItems},_itemsAreColliding:function(item1,item2){var position1=this._getItemPosition(item1),position2=this._getItemPosition(item2);return!(position2.x>=position1.x+position1.w||position2.x+position2.w<=position1.x||position2.y>=position1.y+position1.h||position2.y+position2.h<=position1.y)},_resolveCollisions:function(item){this._tryToResolveCollisionsLocally(item)||this._pullItemsToLeft(item),this._pullItemsToLeft()},_tryToResolveCollisionsLocally:function(item){var collidingItems=this._getItemsCollidingWithItem(item);if(!collidingItems.length)return!0;var _gridList=new GridList2([],this._options),leftOfItem,rightOfItem,aboveOfItem,belowOfItem;GridList2.cloneItems(this.items,_gridList.items),_gridList.generateGrid();for(var i=0;i<collidingItems.length;i++){var collidingItem=_gridList.items[collidingItems[i]],collidingPosition=this._getItemPosition(collidingItem),position=this._getItemPosition(item);if(leftOfItem=[position.x-collidingPosition.w,collidingPosition.y],rightOfItem=[position.x+position.w,collidingPosition.y],aboveOfItem=[collidingPosition.x,position.y-collidingPosition.h],belowOfItem=[collidingPosition.x,position.y+position.h],_gridList._itemFitsAtPosition(collidingItem,leftOfItem))_gridList._updateItemPosition(collidingItem,leftOfItem);else if(_gridList._itemFitsAtPosition(collidingItem,aboveOfItem))_gridList._updateItemPosition(collidingItem,aboveOfItem);else if(_gridList._itemFitsAtPosition(collidingItem,belowOfItem))_gridList._updateItemPosition(collidingItem,belowOfItem);else if(_gridList._itemFitsAtPosition(collidingItem,rightOfItem))_gridList._updateItemPosition(collidingItem,rightOfItem);else return!1}return GridList2.cloneItems(_gridList.items,this.items),this.generateGrid(),!0},_pullItemsToLeft:function(fixedItem){if(this._sortItemsByPosition(),this._resetGrid(),fixedItem){var fixedPosition=this._getItemPosition(fixedItem);this._updateItemPosition(fixedItem,[fixedPosition.x,fixedPosition.y])}for(var i=0;i<this.items.length;i++){var item=this.items[i],position=this._getItemPosition(item);if(!(fixedItem&&item==fixedItem)){var x=this._findLeftMostPositionForItem(item),newPosition=this.findPositionForItem(item,{x,y:0},position.y);this._updateItemPosition(item,newPosition)}}},_findLeftMostPositionForItem:function(item){for(var tail=0,position=this._getItemPosition(item),i=0;i<this.grid.length;i++)for(var j=position.y;j<position.y+position.h;j++){var otherItem=this.grid[i][j];if(otherItem){var otherPosition=this._getItemPosition(otherItem);this.items.indexOf(otherItem)<this.items.indexOf(item)&&(tail=otherPosition.x+otherPosition.w)}}return tail},_getItemByAttribute:function(key,value){for(var i=0;i<this.items.length;i++)if(this.items[i][key]===value)return this.items[i];return null},_padNumber:function(nr,prefix){return nr>=10?nr:prefix+nr},_getItemPosition:function(item){return this._options.direction==="horizontal"?item:{x:item.y,y:item.x,w:item.h,h:item.w}},_setItemPosition:function(item,position){this._options.direction==="horizontal"?(item.x=position[0],item.y=position[1]):(item.x=position[1],item.y=position[0])}};var GridCol=function(lanes){for(var i=0;i<lanes;i++)this.push(null)};return GridCol.prototype=[],GridList2})}(gridList$2)),gridList$2.exports}var gridListExports=requireGridList();const gridList=getDefaultExportFromCjs(gridListExports),_GridList=_mergeNamespaces$1({__proto__:null,default:gridList},[gridListExports]),GridList=_GridList&&gridList||_GridList;class Grid extends common.HTMLWidget{constructor(){super(),__publicField2(this,"divItems"),__publicField2(this,"gridList"),__publicField2(this,"items"),__publicField2(this,"itemsMap"),__publicField2(this,"origItems"),__publicField2(this,"cellWidth"),__publicField2(this,"cellHeight"),__publicField2(this,"dragItem"),__publicField2(this,"dragItemPos"),__publicField2(this,"_d3Drag"),__publicField2(this,"_d3DragResize"),__publicField2(this,"_selectionBag"),__publicField2(this,"_scrollBarWidth"),this._tag="div",this._selectionBag=new common.Utility.Selection(this),this.content([])}getDimensions(){const size={width:0,height:0};return this.content().forEach(function(cell2){size.width<cell2.gridCol()+cell2.gridColSpan()&&(size.width=cell2.gridCol()+cell2.gridColSpan()),size.height<cell2.gridRow()+cell2.gridRowSpan()&&(size.height=cell2.gridRow()+cell2.gridRowSpan())},this),size}clearContent(widget){this.content(this.content().filter(function(contentWidget){if(!widget)return contentWidget.target(null),!1;let w=contentWidget;for(;w;){if(widget===w)return contentWidget.target(null),!1;w=w.widget?w.widget():null}return!0}))}setContent(row2,col,widget,title,rowSpan,colSpan){if(rowSpan=rowSpan||1,colSpan=colSpan||1,title=title||"",this.content(this.content().filter(function(contentWidget){return contentWidget.gridRow()===row2&&contentWidget.gridCol()===col?(contentWidget.target(null),!1):!0})),widget){const cell2=new Cell().gridRow(row2).gridCol(col).widget(widget).title(title).gridRowSpan(rowSpan).gridColSpan(colSpan);this.content().push(cell2)}return this}sortedContent(){return this.content().sort(function(l,r2){return l.gridRow()===r2.gridRow()?l.gridCol()-r2.gridCol():l.gridRow()-r2.gridRow()})}getCell(row2,col){let retVal=null;return this.content().some(function(cell2){return row2>=cell2.gridRow()&&row2<cell2.gridRow()+cell2.gridRowSpan()&&col>=cell2.gridCol()&&col<cell2.gridCol()+cell2.gridColSpan()?(retVal=cell2,!0):!1}),retVal}getWidgetCell(id){let retVal=null;return this.content().some(function(cell2){return cell2.widget().id()===id?(retVal=cell2,!0):!1}),retVal}getContent(id){let retVal=null;return this.content().some(function(cell2){return cell2.widget().id()===id?(retVal=cell2.widget(),!0):!1}),retVal}cellToGridItem(cell2){return{x:cell2.gridCol(),y:cell2.gridRow(),w:cell2.gridColSpan(),h:cell2.gridRowSpan(),id:cell2.id(),cell:cell2}}gridItemToCell(item){item.cell.gridCol(item.x).gridRow(item.y).gridColSpan(item.w).gridRowSpan(item.h)}resetItemsPos(){this.origItems.forEach(function(origItem){const item=this.itemsMap[origItem.id];item.x=origItem.x,item.y=origItem.y},this)}initGridList(){this.itemsMap={},this.items=this.content().map(function(cell2){const retVal=this.cellToGridItem(cell2);return this.itemsMap[retVal.id]=retVal,retVal},this),this.origItems=this.content().map(this.cellToGridItem),this.gridList=new GridList(this.items,{direction:this.snapping(),lanes:this.snapping()==="horizontal"?this.snappingRows():this.snappingColumns()})}killGridList(){this.gridList=null,delete this.items,delete this.itemsMap}enter(domNode,element){super.enter(domNode,element),this._scrollBarWidth=common.Platform.getScrollbarWidth();const context=this;this._d3Drag=common.drag().subject(function(_d){const d=context.cellToGridItem(_d);return{x:d.x*context.cellWidth,y:d.y*context.cellHeight}}).on("start",function(_d){if(!context.designMode())return;common.d3Event().sourceEvent.stopPropagation(),context.initGridList();const d=context.itemsMap[_d.id()];context.dragItem=element.append("div").attr("class","dragging").style("transform",function(){return"translate("+d.x*context.cellWidth+"px, "+d.y*context.cellHeight+"px)"}).style("width",function(){return d.w*context.cellWidth-context.gutter()+"px"}).style("height",function(){return d.h*context.cellHeight-context.gutter()+"px"}),context.selectionBagClick(_d)}).on("drag",function(_d){if(!context.designMode())return;const event=common.d3Event();event.sourceEvent.stopPropagation();const d=context.itemsMap[_d.id()];event.x<0&&(event.x=0),event.x+d.w*context.cellWidth>context.snappingColumns()*context.cellWidth&&(event.x=context.snappingColumns()*context.cellWidth-d.w*context.cellWidth),event.y<0&&(event.y=0),event.y+d.h*context.cellWidth>context.snappingRows()*context.cellWidth&&(event.y=context.snappingRows()*context.cellWidth-d.h*context.cellWidth);const pos=[Math.max(0,Math.floor((event.x+context.cellWidth/2)/context.cellWidth)),Math.max(0,Math.floor((event.y+context.cellHeight/2)/context.cellHeight))];(d.x!==pos[0]||d.y!==pos[1])&&(context.snapping()!=="none"?(context.resetItemsPos(),context.gridList.moveItemToPosition(d,pos)):(d.x=pos[0],d.y=pos[1]),(_d.gridCol()!==d.x||_d.gridRow()!==d.y)&&(context.items.forEach(context.gridItemToCell),context.updateGrid(!1,100))),context.dragItem.style("transform",function(){return"translate("+event.x+"px, "+event.y+"px)"}).style("width",function(){return d.w*context.cellWidth+"px"}).style("height",function(){return d.h*context.cellHeight+"px"})}).on("end",function(){context.designMode()&&(common.d3Event().sourceEvent.stopPropagation(),context.dragItem.remove(),context.dragItem=null,context.killGridList())}),this._d3DragResize=common.drag().subject(function(_d){const d=context.cellToGridItem(_d);return{x:(d.x+d.w-1)*context.cellWidth,y:(d.y+d.h-1)*context.cellHeight}}).on("start",function(_d){if(!context.designMode())return;common.d3Event().sourceEvent.stopPropagation(),context.initGridList();const d=context.itemsMap[_d.id()];context.dragItem=element.append("div").attr("class","resizing").style("transform",function(){return"translate("+d.x*context.cellWidth+"px, "+d.y*context.cellHeight+"px)"}).style("width",function(){return d.w*context.cellWidth-context.gutter()+"px"}).style("height",function(){return d.h*context.cellHeight-context.gutter()+"px"}),context.dragItemPos={x:d.x,y:d.y}}).on("drag",function(_d){if(!context.designMode())return;const event=common.d3Event();event.sourceEvent.stopPropagation();const d=context.itemsMap[_d.id()],pos=[Math.max(0,Math.round(event.x/context.cellWidth)),Math.max(0,Math.round(event.y/context.cellHeight))],size={w:Math.max(1,pos[0]-d.x+1),h:Math.max(1,pos[1]-d.y+1)};(d.w!==size.w||d.h!==size.h)&&(context.snapping()!=="none"?(context.resetItemsPos(),context.gridList.resizeItem(d,size)):(d.w=size.w,d.h=size.h),(_d.gridColSpan()!==d.w||_d.gridRowSpan()!==d.h)&&(context.items.forEach(context.gridItemToCell),context.updateGrid(d.id,100))),context.dragItem.style("width",function(){return(-d.x+1)*context.cellWidth+event.x-context.gutter()+"px"}).style("height",function(){return(-d.y+1)*context.cellHeight+event.y-context.gutter()+"px"})}).on("end",function(){context.designMode()&&(common.d3Event().sourceEvent.stopPropagation(),context.dragItem.remove(),context.dragItem=null,context.killGridList())})}updateGrid(resize,transitionDuration=0,_noRender=!1){transitionDuration=transitionDuration||0;const context=this;this.divItems.classed("draggable",this.designMode()).transition().duration(transitionDuration).style("left",function(d){return d.gridCol()*context.cellWidth+context.gutter()/2+"px"}).style("top",function(d){return d.gridRow()*context.cellHeight+context.gutter()/2+"px"}).style("width",function(d){return d.gridColSpan()*context.cellWidth-context.gutter()+"px"}).style("height",function(d){return d.gridRowSpan()*context.cellHeight-context.gutter()+"px"}).on("end",function(d){d.surfaceShadow_default(context.surfaceShadow()).surfacePadding_default(context.surfacePadding()).surfaceBorderWidth_default(context.surfaceBorderWidth()).surfaceBackgroundColor_default(context.surfaceBackgroundColor()),(resize===!0||resize===d.id())&&d.resize().lazyRender()})}update(domNode,element2){super.update(domNode,element2),this._placeholderElement.style("overflow-x",this.fitTo()==="width"?"hidden":null),this._placeholderElement.style("overflow-y",this.fitTo()==="width"?"scroll":null);const dimensions=this.getDimensions(),clientWidth=this.width()-(this.fitTo()==="width"?this._scrollBarWidth:0);if(this.cellWidth=clientWidth/dimensions.width,this.cellHeight=this.fitTo()==="all"?this.height()/dimensions.height:this.cellWidth,this.designMode()){const cellLaneRatio=Math.min(this.width()/this.snappingColumns(),this.height()/this.snappingRows()),laneWidth=Math.floor(cellLaneRatio);this.cellWidth=laneWidth,this.cellHeight=this.cellWidth}const context=this,divItems=element2.selectAll("#"+this.id()+" > .ddCell").data(this.content(),function(d){return d.id()});this.divItems=divItems.enter().append("div").attr("class","ddCell").each(function(d){d.target(this),d.__grid_watch=d.monitor(function(key,newVal,oldVal){context._renderCount&&(key==="snapping"||key.indexOf("grid")===0)&&newVal!==oldVal&&(context.gridList||(context.initGridList(),context.snapping()!=="none"&&context.gridList.resizeGrid(context.snapping()==="horizontal"?context.snappingRows():context.snappingColumns()),context.items.forEach(context.gridItemToCell),context.updateGrid(d.id(),100),context.killGridList()))}),common.select(this).append("div").attr("class","resizeHandle").call(context._d3DragResize).append("div").attr("class","resizeHandleDisplay")}).merge(divItems),this.divItems.each(function(d){const element=common.select(this);context.designMode()?element.call(context._d3Drag):element.on("mousedown.drag",null).on("touchstart.drag",null)}),this.divItems.select(".resizeHandle").style("display",this.designMode()?null:"none"),this.updateGrid(!0),divItems.exit().each(function(d){d.target(null),d.__grid_watch&&d.__grid_watch.remove()}).remove();const lanesBackground=element2.selectAll("#"+this.id()+" > .laneBackground").data(this.designMode()?[""]:[]);lanesBackground.enter().insert("div",":first-child").attr("class","laneBackground").style("left","1px").style("top","1px").on("click",function(){context.selectionBagClear()}).merge(lanesBackground).style("width",this.snappingColumns()*this.cellWidth+"px").style("height",this.snappingRows()*this.cellHeight+"px"),lanesBackground.exit().each(function(){context.selectionBagClear()}).remove();const lanes=element2.selectAll("#"+this.id()+" > .lane").data(this.designMode()?[""]:[]);lanes.enter().append("div").attr("class","lane").style("left","1px").style("top","1px"),lanes.style("display",this.showLanes()?null:"none").style("width",this.snappingColumns()*this.cellWidth+"px").style("height",this.snappingRows()*this.cellHeight+"px").style("background-image","linear-gradient(to right, grey 1px, transparent 1px), linear-gradient(to bottom, grey 1px, transparent 1px)").style("background-size",this.cellWidth+"px "+this.cellHeight+"px"),lanes.exit().remove()}exit(domNode,element){this.content().forEach(w=>w.target(null)),super.exit(domNode,element)}_createSelectionObject(d){return{_id:d._id,element:()=>d._element,widget:d}}selection(_){return arguments.length?(this._selectionBag.set(_.map(function(row2){return this._createSelectionObject(row2)},this)),this):this._selectionBag.get().map(function(d){return d._id})}selectionBagClear(){this._selectionBag.isEmpty()||(this._selectionBag.clear(),this.postSelectionChange())}selectionBagClick(d){if(d!==null){const selectionObj=this._createSelectionObject(d);if(common.d3Event().sourceEvent.ctrlKey)this._selectionBag.isSelected(selectionObj)?(this._selectionBag.remove(selectionObj),this.postSelectionChange()):(this._selectionBag.append(selectionObj),this.postSelectionChange());else{const selected=this._selectionBag.get();selected.length===1&&selected[0]._id===selectionObj._id?this.selectionBagClear():this._selectionBag.set([selectionObj]),this.postSelectionChange()}}}postSelectionChange(){}applyLayout(layoutArr){this.divItems.each((d,i)=>{if(layoutArr[i]){const[x,y,w,h]=layoutArr[i];d.gridCol(x).gridRow(y).gridColSpan(w).gridRowSpan(h)}}),this.updateGrid(!0)}vizActivation(elem){}}Grid.prototype._class+=" layout_Grid",Grid.prototype.publish("designMode",!1,"boolean","Design Mode",null,{tags:["Basic"]}),Grid.prototype.publish("showLanes",!0,"boolean","Show snapping lanes when in design mode",null,{tags:["Basic"],disable:w=>!w.designMode()}),Grid.prototype.publish("fitTo","all","set","Sizing Strategy",["all","width"],{tags:["Basic"]}),Grid.prototype.publish("snapping","vertical","set","Snapping Strategy",["vertical","horizontal","none"]),Grid.prototype.publish("snappingColumns",12,"number","Snapping Columns"),Grid.prototype.publish("snappingRows",16,"number","Snapping Rows"),Grid.prototype.publish("gutter",6,"number","Gap Between Widgets",null,{tags:["Basic"]}),Grid.prototype.publish("surfaceShadow",!0,"boolean","3D Shadow"),Grid.prototype.publish("surfacePadding",null,"string","Cell Padding (px)",null,{tags:["Intermediate"]}),Grid.prototype.publish("surfaceBorderWidth",1,"number","Width (px) of Cell Border",null,{tags:["Intermediate"]}),Grid.prototype.publish("surfaceBackgroundColor",null,"html-color","Surface Background Color",null,{tags:["Advanced"]}),Grid.prototype.publish("content",[],"widgetArray","widgets",null,{tags:["Basic"],render:!1});class HorizontalList extends FlexGrid{constructor(){super(),this.orientation_default("horizontal"),this.flexWrap_default("nowrap")}}HorizontalList.prototype._class+=" layout_HorizontalList";class Layered extends common.HTMLWidget{constructor(){super(),__publicField2(this,"_contentContainer"),__publicField2(this,"_widgetPlacements"),__publicField2(this,"_widgetRatios"),this._tag="div",this._widgetPlacements=[],this._widgetRatios=[]}addLayer(widget,placement="default",widthRatio=1,heightRatio=1){const widgets=this.widgets();return widgets.push(widget||new common.Text().text("No widget defined for layer.")),this.widgets(widgets),this._widgetPlacements.push(placement),this._widgetRatios.push([widthRatio,heightRatio]),this}enter(domNode,element){super.enter(domNode,element),this._contentContainer=element.append("div").attr("class","container")}update(domNode,element){super.update(domNode,element);const context=this;element.style("padding",this.surfacePadding()+"px");const content=this._contentContainer.selectAll(".content.id"+this.id()).data(this.widgets(),function(d){return d.id()});content.enter().append("div").attr("class","content id"+this.id()).each(function(widget,idx){widget.target(this)}).merge(content).each(function(widget,idx){const clientSize={width:context.clientWidth(),height:context.clientHeight()},widgetSize=context.widgetSize(idx,clientSize),widgetPosition=context.widgetPosition(idx,clientSize,widgetSize);this.style.top=widgetPosition.y+"px",this.style.left=widgetPosition.x+"px",widget.resize(widgetSize).render()}),content.exit().each(function(widget,idx){widget.target(null)}).remove(),content.order()}widgetSize(idx,clientSize){return this._widgetPlacements[idx]==="default"?{width:clientSize.width*this._widgetRatios[idx][0],height:clientSize.height*this._widgetRatios[idx][1]}:{width:clientSize.width*this._widgetRatios[idx][0],height:clientSize.height*this._widgetRatios[idx][1]}}widgetPosition(idx,clientSize,widgetSize){switch(this._widgetPlacements[idx]){default:return{x:0,y:0};case"top":return{x:clientSize.width/2-widgetSize.width/2,y:0};case"bottom":return{x:clientSize.width/2-widgetSize.width/2,y:clientSize.height-widgetSize.height};case"left":return{x:0,y:clientSize.height/2-widgetSize.height/2};case"right":return{x:clientSize.width-widgetSize.width,y:clientSize.height/2-widgetSize.height/2};case"center":return{x:clientSize.width/2-widgetSize.width/2,y:clientSize.height/2-widgetSize.height/2}}}}Layered.prototype._class+=" layout_Layered",Layered.prototype.publish("surfacePadding",0,"number","Padding"),Layered.prototype.publish("widgets",[],"widgetArray","widgets",null,{tags:["Private"]});class Popup extends common.HTMLWidget{constructor(){super(),__publicField2(this,"_surfaceButtons"),__publicField2(this,"_originalPosition"),this._tag="div",this._surfaceButtons=[]}updateState(visible){visible=visible||!this.popupState(),this.popupState(visible).render()}enter(domNode,element){super.enter(domNode,element),this.widget().target(domNode),this._originalPosition=this.position()}update(domNode,element){super.update(domNode,element),element.style("visibility",this.popupState()?null:"hidden").style("opacity",this.popupState()?null:0).style("width",this.shrinkWrap()?this.widget().width()+"px":this._size.width+"px").style("height",this.shrinkWrap()?this.widget().height()+"px":this._size.height+"px"),this.widget().size().height===0&&this.widget().resize(this.size())}postUpdate(domNode,element){let left,top;switch(this.centerPopup()){case"container":this._placeholderElement&&(left=parseInt(this._placeholderElement.style("width"))/2-this.widget().width()/2,top=parseInt(this._placeholderElement.style("height"))/2-this.widget().height()/2),this.position("absolute");break;case"window":left=window.innerWidth/2-this.widget().width()/2,top=window.innerHeight/2-this.widget().height()/2,this.position("fixed");break;default:left=0,top=0,this.position(this._originalPosition);break}this.pos({x:left,y:top}),super.postUpdate(domNode,element),element.style("position",this.position()).style("left",this.left()+"px").style("right",this.right()+"px").style("top",this.top()+"px").style("bottom",this.bottom()+"px")}exit(domNode,element){this.widget()&&this.widget().target(null),super.exit(domNode,element)}click(obj){}}Popup.prototype._class+=" layout_Popup",Popup.prototype.publish("popupState",!1,"boolean","State of the popup, visible (true) or hidden (false)",null,{}),Popup.prototype.publish("shrinkWrap",!1,"boolean","The popup parent container either shrinks to the size of its contents (true) or expands to fit thge popup's parentDiv (false)",null,{}),Popup.prototype.publish("centerPopup","none","set","Center the widget in its container element (target) or in the window",["none","container","window"],{}),Popup.prototype.publish("top",null,"number","Top position property of popup",null,{}),Popup.prototype.publish("bottom",null,"number","Bottom position property of popup",null,{}),Popup.prototype.publish("left",null,"number","Left position property of popup",null,{}),Popup.prototype.publish("right",null,"number","Right position property of popup",null,{}),Popup.prototype.publish("position","relative","set","Value of the 'position' property",["absolute","relative","fixed","static","initial","inherit"],{tags:["Private"]}),Popup.prototype.publish("widget",null,"widget","Widget",null,{tags:["Private"]});class Tabbed extends common.HTMLWidget{constructor(){super(),__publicField2(this,"_tabContainer"),__publicField2(this,"_contentContainer"),this._tag="div"}clearTabs(){return this.labels([]),this.widgets([]),this}addTab(widget,label,isActive,callback){const widgetSize=widget.size();widgetSize.width===0&&widgetSize.height===0&&widget.size({width:"100%",height:"100%"});const labels=this.labels(),widgets=this.widgets();isActive&&this.activeTabIdx(this.widgets().length),labels.push(label);const surface=new Surface().widget(widget||new common.Text().text("No widget defined for tab"));return widgets.push(surface),this.labels(labels),this.widgets(widgets),callback&&callback(surface),this}widgetSize(widgetDiv){const width=this.clientWidth();let height=this.clientHeight();const tcBox=this._tabContainer.node().getBoundingClientRect();return typeof tcBox.height<"u"&&(height-=tcBox.height),{width,height}}enter(domNode,element){super.enter(domNode,element),this._tabContainer=element.append("div"),this._contentContainer=element.append("div")}update(domNode,element){super.update(domNode,element);const context=this;element.style("padding",this.surfacePadding_exists()?this.surfacePadding()+"px":null);const tabs=this._tabContainer.selectAll(".tab-button.id"+this.id()).data(this.showTabs()?this.labels():[],function(d){return d});tabs.enter().append("span").attr("class","tab-button id"+this.id()).style("cursor","pointer").on("click",function(d,idx){context.click(context.widgets()[idx].widget(),d,idx),context.activeTabIdx(idx).render()}).merge(tabs).classed("active",function(d,idx){return context.activeTabIdx()===idx}).text(function(d){return d}),tabs.exit().remove();const content=this._contentContainer.selectAll(".tab-content.id"+this.id()).data(this.widgets(),function(d){return d.id()});switch(content.enter().append("div").attr("class","tab-content id"+this.id()).each(function(widget,idx){widget.target(this)}).merge(content).classed("active",function(d,idx){return context.activeTabIdx()===idx}).style("display",function(d,idx){return context.activeTabIdx()===idx?"block":"none"}).each(function(surface,idx){if(surface.visible(context.activeTabIdx()===idx),context.activeTabIdx()===idx){const wSize=context.widgetSize(common.select(this));surface.surfaceBorderWidth(context.showTabs()?null:0).surfacePadding(context.showTabs()?null:0).resize(wSize)}}),content.exit().each(function(widget,idx){widget.target(null)}).remove(),this.tabLocation()){case"bottom":this._tabContainer.attr("class","on_bottom").style("top",this._contentContainer.node().offsetHeight+this.surfacePadding()+"px").style("position","absolute"),this._contentContainer.style("top",this.surfacePadding_exists()?this.surfacePadding()+"px":null).style("position","absolute");break;default:this._tabContainer.attr("class","on_top").style("top",null).style("position","relative"),this._contentContainer.style("top",this._tabContainer.node().offsetHeight+this.surfacePadding()+"px").style("position","absolute");break}}click(widget,column,idx){}}Tabbed.prototype._class+=" layout_Tabbed",Tabbed.prototype.publish("showTabs",!0,"boolean","Show Tabs",null,{}),Tabbed.prototype.publish("surfacePadding",4,"number","Padding"),Tabbed.prototype.publish("activeTabIdx",0,"number","Index of active tab",null,{}),Tabbed.prototype.publish("labels",[],"array","Array of tab labels sharing an index with ",null,{tags:["Private"]}),Tabbed.prototype.publish("tabLocation","top","set","Position the tabs at the bottom of the widget",["top","bottom"],{tags:["Private"]}),Tabbed.prototype.publish("widgets",[],"widgetArray","widgets",null,{tags:["Private"]});class Toolbar extends common.HTMLWidget{constructor(){super(),this._tag="div"}enter(domNode,element){super.enter(domNode,element)}update(domNode,element){super.update(domNode,element);const context=this;element.attr("title",context.title()).style("background-color",this.backgroundColor());const title=element.selectAll("div.toolbar-title").data(this.title()?[this.title()]:[]);title.enter().append("div").classed("toolbar-title",!0).append("span"),title.selectAll("div.toolbar-title > span").style("font-size",this.fontSize_exists()?this.fontSize()+"px":null).style("color",this.fontColor_exists()?this.fontColor():null).style("font-family",this.fontFamily_exists()?this.fontFamily():null).style("font-weight",this.fontBold_exists()?this.fontBold()?"bold":"normal":null).style("background-color",this.backgroundColor_exists()?this.backgroundColor():null).text(context.title()),title.exit().remove();const childWidgets=element.selectAll("div.toolbar-child").data(this.widgets()!==null?this.widgets():[],function(d){return d.id()});childWidgets.enter().insert("div","div.toolbar-title").each(function(d,i){const widgetClass=context.widgetClasses()[i]?context.widgetClasses()[i]+" toolbar-child":"toolbar-child";common.select(this).classed(widgetClass,!0),d.target(this)}),childWidgets.exit().each(function(d){d.target(null)}).remove(),childWidgets.order()}render(callback){const context=this;return super.render(function(w){const toolbarBBox=context.element().node().getBoundingClientRect();let minX=toolbarBBox.left+toolbarBBox.width;context.element().selectAll("div.toolbar-child").each(function(d,i){const childBBox=this.getBoundingClientRect();minX>childBBox.left&&(minX=childBBox.left)}),context.element().select(".toolbar-title").style("width",minX-toolbarBBox.left-4+"px"),callback&&callback(w)})}exit(domNode,element){this.widgets().forEach(function(w){w.target(null)}),super.exit(domNode,element)}}Toolbar.prototype._class+=" layout_Toolbar",Toolbar.prototype.publish("title","","string","Title",null,{tags:["Intermediate"]}),Toolbar.prototype.publish("fontSize",null,"number","Title Font Size (px)",null,{tags:["Advanced"],optional:!0}),Toolbar.prototype.publish("fontColor",null,"html-color","Title Font Color",null,{tags:["Advanced"],optional:!0}),Toolbar.prototype.publish("fontFamily",null,"string","Title Font Family",null,{tags:["Advanced"],optional:!0}),Toolbar.prototype.publish("fontBold",!0,"boolean","Enable Bold Title Font",null,{tags:["Advanced"],optional:!0}),Toolbar.prototype.publish("backgroundColor",null,"html-color","Background Color",null,{tags:["Intermediate"],optional:!0}),Toolbar.prototype.publish("responsive",!0,"boolean","Adapts to pixel width",null,{tags:["Basic"]}),Toolbar.prototype.publish("widgets",[],"widgetArray","Child widgets of the toolbar",null,{tags:["Basic"]}),Toolbar.prototype.publish("widgetClasses",[],"array","Array of Html Element classes to be assigned to the child widgets (shares index with widgets param)",null,{tags:["Basic"]});class VerticalList extends FlexGrid{constructor(){super(),this.orientation_default("vertical"),this.flexWrap_default("nowrap")}}VerticalList.prototype._class+=" layout_VerticalList";function requireWidget(classID){return new Promise(function(resolve,_reject){const parsedClassID=common.Utility.parseClassID(classID);require&&require([parsedClassID.package],function(Package){let Widget=null;Package&&Package[parsedClassID.widgetID]&&(Widget=Package[parsedClassID.widgetID]),resolve(parsedClassID.memberWidgetID?Widget.prototype?Widget.prototype[parsedClassID.memberWidgetID]:Widget[parsedClassID.memberWidgetID]:Widget)})})}function requireWidgets(classIDs){return Promise.all(classIDs.map(requireWidget))}const Utility=Object.freeze(Object.defineProperty({__proto__:null,requireWidget,requireWidgets},Symbol.toStringTag,{value:"Module"}));class MultiChart extends common.HTMLWidget{constructor(){super();__publicField(this,"_allCharts",{});__publicField(this,"_chartTypeDefaults");__publicField(this,"_chartTypeProperties");__publicField(this,"_chartMonitor");__publicField(this,"_switchingTo");api.INDChart.call(this),api.IGraph.call(this),this._tag="div",this._allCharts={},this._allChartTypes.forEach(function(item){const newItem=JSON.parse(JSON.stringify(item));newItem.widget=null,this._allCharts[item.id]=newItem,this._allCharts[item.display]=newItem,this._allCharts[item.widgetClass]=newItem},this),this._chartTypeDefaults={},this._chartTypeProperties={}}fields(_){const retVal=super.fields.apply(this,arguments);if(this.chart()){if(!arguments.length)return this.chart().fields();this.chart().fields(_)}return retVal}columns(_,asDefault){const retVal=common.HTMLWidget.prototype.columns.apply(this,arguments);if(this.chart()){if(!arguments.length)return this.chart().columns();this.chart().columns(_,asDefault)}return retVal}data(_){const retVal=common.HTMLWidget.prototype.data.apply(this,arguments);if(this.chart()){if(!arguments.length)return this.chart().data();this.chart().data(_)}return retVal}hasOverlay(){return this.chart()&&this.chart().hasOverlay()}visible(_){return arguments.length?(this.chart()&&this.chart().visible(_),this):this.chart()&&this.chart().visible()}chartTypeDefaults(_){return arguments.length?(this._chartTypeDefaults=_,this):this._chartTypeDefaults}chartTypeProperties(_){return arguments.length?(this._chartTypeProperties=_,this):this._chartTypeProperties}getChartDataFamily(){return this._allCharts[this.chartType()].family}requireContent(chartType,callback){const classInfo=common.Utility.parseClassID(this._allCharts[chartType].widgetClass);switch(classInfo.package){case"@hpcc-js/chart":import("@hpcc-js/chart").then(mod=>{callback(new mod[classInfo.widgetID])});break;case"@hpcc-js/dgrid":import("@hpcc-js/dgrid").then(mod=>{callback(new mod[classInfo.widgetID])});break;default:requireWidget(this._allCharts[chartType].widgetClass).then(function(WidgetClass){callback(new WidgetClass)})}}switchChart(callback){if(this._switchingTo===this.chartType()){callback&&callback(this);return}else this._switchingTo&&console.warn("Attempting switch to: "+this.chartType()+", before previous switch is complete ("+this._switchingTo+")");this._switchingTo=this.chartType();const oldContent=this.chart(),context=this;this.requireContent(this.chartType(),function(newContent){if(newContent!==oldContent){const size=context.size();newContent.fields(context.fields()).data(context.data()).size(size),context.chart(newContent),oldContent&&oldContent.size({width:1,height:1}).render()}delete context._switchingTo,callback&&callback(this)})}update(domNode,element){super.update(domNode,element);const content=element.selectAll(".multiChart").data(this.chart()?[this.chart()]:[],function(d){return d._id});content.enter().append("div").attr("class","multiChart").each(function(d){d.target(this)});const currChart=this.chart();if(currChart){for(const key in this._chartTypeDefaults)if(currChart[key+"_default"])try{currChart[key+"_default"](this._chartTypeDefaults[key])}catch{console.warn("Exception Setting Default: "+key)}else console.warn("Unknown Default: "+key);this._chartTypeDefaults={};for(const propKey in this._chartTypeProperties)if(currChart[propKey])try{currChart[propKey](this._chartTypeProperties[propKey])}catch{console.warn("Exception Setting Property: "+propKey)}else console.warn("Unknown Property: "+propKey);this._chartTypeProperties={}}const context=this;content.each(function(d){d.resize(context.size())}),content.exit().transition().each(function(d){d.target(null)}).remove()}exit(domNode,element){this._chartMonitor&&(this._chartMonitor.remove(),delete this._chartMonitor),this.chart()&&this.chart().target(null),super.exit(domNode,element)}render(_callback){if(this.chartType()&&(!this.chart()||this.chart().classID()!==this._allCharts[this.chartType()].widgetClass)){const context=this,args=arguments;return this.switchChart(function(){common.HTMLWidget.prototype.render.apply(context,args)}),this}return common.HTMLWidget.prototype.render.apply(this,arguments)}}MultiChart.prototype._class+=" composite_MultiChart",MultiChart.prototype.implements(api.INDChart.prototype),MultiChart.prototype.implements(api.IGraph.prototype),MultiChart.prototype._otherChartTypes=[{id:"FORM",display:"Form",widgetClass:"form_FieldForm"}].map(function(item){return item.family="other",item}),MultiChart.prototype._graphChartTypes=[{id:"GRAPH",display:"Graph",widgetClass:"graph_Graph"},{id:"ADJACENCY_GRAPH",display:"Graph",widgetClass:"graph_AdjacencyGraph"},{id:"GRAPHC",display:"GraphC",widgetClass:"graph_GraphC"}].map(function(item){return item.family="GRAPH",item}),MultiChart.prototype._1DChartTypes=[].map(function(item){return item.family="1D",item}),MultiChart.prototype._2DChartTypes=[{id:"SUMMARY",display:"Summary",widgetClass:"chart_Summary"},{id:"BUBBLE",display:"Bubble",widgetClass:"chart_Bubble"},{id:"PIE",display:"Pie",widgetClass:"chart_Pie"},{id:"WORD_CLOUD",display:"Word Cloud",widgetClass:"other_WordCloud"}].map(function(item){return item.family="2D",item}),MultiChart.prototype._NDChartTypes=[{id:"COLUMN",display:"Column",widgetClass:"chart_Column"},{id:"BAR",display:"Bar",widgetClass:"chart_Bar"},{id:"LINE",display:"Line",widgetClass:"chart_Line"},{id:"AREA",display:"Area",widgetClass:"chart_Area"},{id:"STEP",display:"Step",widgetClass:"chart_Step"},{id:"SCATTER",display:"Scatter",widgetClass:"chart_Scatter"},{id:"HEXBIN",display:"Hex Bin",widgetClass:"chart_HexBin"}].map(function(item){return item.family="ND",item}),MultiChart.prototype._mapChartTypes=[{id:"CHORO_USSTATES",display:"US State Choropleth",widgetClass:"map_ChoroplethStates"},{id:"CHORO_USCOUNTIES",display:"US County Choropleth",widgetClass:"map_ChoroplethCounties"},{id:"CHORO_COUNTRIES",display:"Country Choropleth",widgetClass:"map_ChoroplethCountries"},{id:"GMAP_CHORO_USCOUNTIES",display:"Google Map US County Choropleth",widgetClass:"map_GMapCounties"},{id:"GOOGLE_MAP",display:"Google Map",widgetClass:"map_GMapLayered"},{id:"OPENSTREET",display:"Open Street Map",widgetClass:"map_OpenStreet"}].map(function(item){return item.family="map",item}),MultiChart.prototype._anyChartTypes=[{id:"TABLE",display:"Table",widgetClass:"dgrid_Table"},{id:"TABLE_LEGACY",display:"Table (legacy)",widgetClass:"other_Table"},{id:"TABLE_NESTED",display:"Nested Table",widgetClass:"other_NestedTable"},{id:"TABLE_CALENDAR",display:"Table driven Calendar Heat Map",widgetClass:"other_CalendarHeatMap"},{id:"TABLE_BULLET",display:"Table driven bullet chart",widgetClass:"chart_Bullet"},{id:"TABLE_SELECT",display:"Table driven select",widgetClass:"other_Select"},{id:"TABLE_AUTOCOMPLETE",display:"Table driven auto complete",widgetClass:"other_AutoCompleteText"},{id:"TABLE_OPPORTUNITY",display:"Table driven opportunity widget",widgetClass:"graph_Opportunity"},{id:"TABLE_TREE",display:"Table driven tree",widgetClass:"tree_Dendrogram"},{id:"TABLE_TREEMAP",display:"Table driven Treemap",widgetClass:"tree_Treemap"},{id:"TABLE_SANKEY",display:"Table driven Sankey",widgetClass:"graph_Sankey"},{id:"TABLE_GMAP_PIN",display:"Table driven Google Map (pins)",widgetClass:"map_GMapPin"},{id:"TABLE_GMAP_PINLINE",display:"Table driven Google Map (pins/lines)",widgetClass:"map_GMapPinLine"},{id:"TABLE_XML_TREE",display:"Table driven XML Tree",widgetClass:"tree_Indented"}].map(function(item){return item.family="any",item}),MultiChart.prototype._allChartTypes=MultiChart.prototype._otherChartTypes.concat(MultiChart.prototype._graphChartTypes.concat(MultiChart.prototype._1DChartTypes.concat(MultiChart.prototype._2DChartTypes.concat(MultiChart.prototype._NDChartTypes.concat(MultiChart.prototype._mapChartTypes.concat(MultiChart.prototype._anyChartTypes)))))),MultiChart.prototype._allMap=common.map(MultiChart.prototype._allChartTypes,function(item){return item.family}),MultiChart.prototype._allFamilies=MultiChart.prototype._allMap.keys(),MultiChart.prototype._allChartTypesMap={},MultiChart.prototype._allChartTypesByClass={},MultiChart.prototype._allChartTypes.forEach(function(item){item.widgetPath=common.Utility.widgetPath(item.widgetClass),MultiChart.prototype._allChartTypesMap[item.id]=item,MultiChart.prototype._allChartTypesByClass[item.widgetClass]=item}),MultiChart.prototype.publishReset(),MultiChart.prototype.publish("hideRowOnLegendClick",!1,"boolean","Enable/Disable hiding row on legend clicks",null,{tags:["Basic"]}),MultiChart.prototype.publish("chartType","BUBBLE","set","Chart Type",MultiChart.prototype._allChartTypes.map(function(item){return item.id}),{tags:["Basic"]}),MultiChart.prototype.publish("chart",null,"widget","Chart",null,{tags:["Basic"]});const _origChart=MultiChart.prototype.chart;MultiChart.prototype.chart=function(_){const retVal=_origChart.apply(this,arguments);if(arguments.length){const context=this;this._allChartTypesByClass[_.classID()]?this.chartType(this._allChartTypesByClass[_.classID()].id):console.warn("Unknown Class ID: "+_.classID()),_.click=function(_row,_column,_selected){context.click.apply(context,arguments)},_.dblclick=function(_row,_column,_selected){context.dblclick.apply(context,arguments)},_.vertex_click=function(row2,column,selected,more){context.vertex_click.apply(context,arguments)},_.vertex_dblclick=function(row2,column,selected,more){context.vertex_dblclick.apply(context,arguments)},_.edge_click=function(row2,column,selected,more){context.edge_click.apply(context,arguments)},_.edge_dblclick=function(row2,column,selected,more){context.edge_dblclick.apply(context,arguments)},this._chartMonitor&&(this._chartMonitor.remove(),delete this._chartMonitor),this._chartMonitor=_.monitor(function(key,newVal,oldVal){context.broadcast(key,newVal,oldVal,_)})}return retVal};class Summary extends common.HTMLWidget{constructor(){super()}enter(domNode,element){super.enter(domNode,element),element.append("p")}update(domNode,element){super.update(domNode,element),element.select("p").text(this.text())}}Summary.prototype.publish("text","","string");class MultiChartPanel extends ChartPanel{constructor(){super(),this.widget(new MultiChart().chartType("COLUMN"))}multiChart(){return this._widget}chartType(_){return arguments.length?(this._widget.chartType(_),this):this._widget.chartType()}chart(_){return arguments.length?(this._widget.chart(_),this):this._widget.chart()}chartTypeDefaults(_){return arguments.length?(this._widget.chartTypeDefaults(_),this):this._widget.chartTypeDefaults()}chartTypeProperties(_){return arguments.length?(this._widget.chartTypeProperties(_),this):this._widget.chartTypeProperties()}update(domNode,element){super.update(domNode,element),this._widget instanceof MultiChart&&this._legend.dataFamily(this._widget.getChartDataFamily()),super.update(domNode,element)}}MultiChartPanel.prototype._class+=" composite_MultiChartPanel";class Dermatology extends Border{constructor(){super();__publicField(this,"_toolbar");__publicField(this,"_propEditor");__publicField(this,"_showProperties");__publicField(this,"_propsButton");__publicField(this,"_prevWidget");__publicField(this,"showToolbar");__publicField(this,"showToolbar_exists");__publicField(this,"widget");__publicField(this,"widget_exists");this._toolbar=new Toolbar().title("Dermatology"),this._propEditor=new other.PropertyEditor().show_settings(!0)}showProperties(_){if(!arguments.length)return this._showProperties;this._showProperties=_,this.rightPercentage(0).rightSize(this._showProperties?360:0).setContent("right",this._showProperties?this._propEditor:null);const widget=this.widget();return widget&&widget.designMode&&widget.designMode(this._showProperties),this}toggleProperties(){return this.showProperties(!this.showProperties())}enter(domNode,element){super.enter(domNode,element),this.topPercentage(0).topSize(0).setContent("top",this._toolbar),this.getCell("top").surfaceShadow(!0);const context=this;this._propsButton=new form.OnOff().id(this.id()+"_props").value("Properties").on("click",function(){context.toggleProperties().render()}),this._toolbar.widgets([this._propsButton])}update(domNode,element){this.topPercentage(0).topSize(this.showToolbar()?32:0),super.update(domNode,element);const widget=this.widget();element.style("background-color",widget&&widget.surfaceShadow?null:"white")}render(callback){const widget=this.widget();return widget!==this._prevWidget&&(widget&&widget.surfaceShadow&&widget.surfaceBackgroundColor_default("white"),this.setContent("center",widget),this._propEditor.widget(widget),this._prevWidget=widget),super.render(callback)}}Dermatology.prototype._class+=" composite_Dermatology",Dermatology.prototype.publish("showToolbar",!0,"boolean","Show Toolbar"),Dermatology.prototype.publish("widget",null,"widget","Widget");class MegaChart extends Border{constructor(){super();__publicField(this,"_chart",new MultiChart);__publicField(this,"_toolbar",new Toolbar);__publicField(this,"_valueTitle",new common.Text);__publicField(this,"_domainTitle",new common.Text);__publicField(this,"_legend",new other.Legend);__publicField(this,"_csvButton");__publicField(this,"_infoButton");__publicField(this,"_maximizeButton");__publicField(this,"_legendButton");__publicField(this,"_chartTypeSelect");__publicField(this,"_prevLegendPosition");__publicField(this,"_prevShowToolbar");__publicField(this,"_1DChartTypes");__publicField(this,"_2DChartTypes");__publicField(this,"_NDChartTypes");__publicField(this,"_anyChartTypes");__publicField(this,"_allChartTypes");__publicField(this,"_contentClasses");__publicField(this,"_dataCount");__publicField(this,"hideRowOnLegendClick");__publicField(this,"hideRowOnLegendClick_exists");__publicField(this,"showToolbar");__publicField(this,"showToolbar_exists");__publicField(this,"titleFontSize");__publicField(this,"titleFontSize_exists");__publicField(this,"titleFontColor");__publicField(this,"titleFontColor_exists");__publicField(this,"titleFontFamily");__publicField(this,"titleFontFamily_exists");__publicField(this,"titleFontBold");__publicField(this,"titleFontBold_exists");__publicField(this,"titleBackgroundColor");__publicField(this,"titleBackgroundColor_exists");__publicField(this,"maximizedBackgroundColor");__publicField(this,"maximizedBackgroundColor_exists");__publicField(this,"showChartSelect");__publicField(this,"showChartSelect_exists");__publicField(this,"showCSV");__publicField(this,"showCSV_exists");__publicField(this,"showCount");__publicField(this,"showCount_exists");__publicField(this,"showMaximize");__publicField(this,"showMaximize_exists");__publicField(this,"toolbarShowLegend");__publicField(this,"toolbarShowLegend_exists");__publicField(this,"showInfoButton");__publicField(this,"showInfoButton_exists");__publicField(this,"infoIcon");__publicField(this,"infoIcon_exists");__publicField(this,"legendPosition");__publicField(this,"legendPosition_exists");__publicField(this,"title");__publicField(this,"title_exists");__publicField(this,"domainAxisTitle");__publicField(this,"domainAxisTitle_exists");__publicField(this,"valueAxisTitle");__publicField(this,"valueAxisTitle_exists");__publicField(this,"chartType");__publicField(this,"chartType_exists");__publicField(this,"chart");__publicField(this,"chart_exists");this._tag="div";const context=this;this._chart.click=function(){context.click.apply(context,arguments)},this._chart.dblclick=function(){context.dblclick.apply(context,arguments)},this._chart.vertex_click=function(){context.vertex_click.apply(context,arguments)},this._chart.vertex_dblclick=function(){context.vertex_dblclick.apply(context,arguments)},this._chart.edge_click=function(){context.edge_click.apply(context,arguments)},this._chart.edge_dblclick=function(){context.edge_dblclick.apply(context,arguments)}}toolbarWidgets(_){return arguments.length?(this._toolbar.widgets(_),this):this._toolbar.widgets()}chartTypeDefaults(_){return arguments.length?(this._chart.chartTypeDefaults(_),this):this._chart.chartTypeDefaults()}chartTypeProperties(_){return arguments.length?(this._chart.chartTypeProperties(_),this):this._chart.chartTypeProperties()}fields(_){return arguments.length?(this._chart.fields(_),this):this._chart.fields()}columns(_,asDefault){return arguments.length?(this._chart.columns(_,asDefault),this):this._chart.columns()}data(_){return arguments.length?(this._chart.data(_),this):this._chart.data()}downloadCSV(){return common.Utility.downloadString("CSV",this._chart.export("CSV")),this}enter(domNode,element){super.enter(domNode,element);const context=this;this.topShrinkWrap(!1).topPercentage(0).topSize(30),this._dataCount=new other.Html().classed({"composite_MegaChart-dataCount":!0}).id(this.id()+"_dataCount").html('<span class="MegaChart-dataCount-label">Count:</span> <span class="MegaChart-dataCount-value">'+(this.data()?this.data().length:"0")+"</span>").overflowX("visible").overflowY("visible"),this._csvButton=new form.Button().classed({"composite_MegaChart-CSV":!0}).id(this.id()+"_csv").value("CSV"),this._csvButton.click=function(a2){context.downloadCSV()},this._infoButton=new form.Button().classed({"composite_MegaChart-Info":!0}).id(this.id()+"_info").value(this.infoIcon()),this._maximizeButton=new form.Button().classed({"composite_MegaChart-Maximize":!0}).id(this.id()+"_maximize").value(""),this._maximizeButton.click=function(buttonWidget){const target=context.target();let node=target;const isMaximized=common.select(target).classed("__hpccisMaximized"),parentGrid=context.locateAncestor("layout_Grid");parentGrid?node=parentGrid.element().node():node=document.body;const targetElement=common.select(context.target());if(isMaximized){const targetParentBox=target.parentElement.getBoundingClientRect(),targetPaddingTop=parseInt(getComputedStyle(target,null).getPropertyValue("padding-top").replace("px","")),targetPaddingLeft=parseInt(getComputedStyle(target,null).getPropertyValue("padding-left").replace("px","")),targetPaddingRight=parseInt(getComputedStyle(target,null).getPropertyValue("padding-right").replace("px","")),targetPaddingBottom=parseInt(getComputedStyle(target,null).getPropertyValue("padding-bottom").replace("px",""));context.contentDiv.style("opacity",0).transition(100),targetElement.transition().style("top",targetParentBox.top+"px").style("left",targetParentBox.left+"px").style("width",targetParentBox.width-targetPaddingLeft-targetPaddingRight+"px").style("height",targetParentBox.height-targetPaddingTop-targetPaddingBottom+"px").each("end",function(){targetElement.style("position",target.__old_position),targetElement.style("z-index",target.__old_zindex),targetElement.style("background-color",target.__old_backgroundColor),targetElement.style("box-shadow",target.__old_boxshadow),context.resize({width:targetParentBox.width-targetPaddingLeft-targetPaddingRight,height:targetParentBox.height-targetPaddingTop-targetPaddingBottom}).render(function(){context.contentDiv.transition().style("opacity",1)}),buttonWidget.value("").render()})}else{target.__old_position=target.style.position,target.__old_zindex=target.style.zIndex,target.__old_boxshadow=target.style.boxShadow,target.__old_backgroundColor=context.element().style("background-color");const grid=common.select(node).datum(),gridTarget=grid.target(),gridBox=grid?gridTarget.getBoundingClientRect():node.getBoundingClientRect(),gridPaddingTop=parseInt(getComputedStyle(gridTarget,null).getPropertyValue("padding-top").replace("px","")),gridPaddingLeft=parseInt(getComputedStyle(gridTarget,null).getPropertyValue("padding-left").replace("px","")),gridPaddingRight=parseInt(getComputedStyle(gridTarget,null).getPropertyValue("padding-right").replace("px","")),gridPaddingBottom=parseInt(getComputedStyle(gridTarget,null).getPropertyValue("padding-bottom").replace("px",""));context.contentDiv.style("opacity",0).transition(100),targetElement.style("position","fixed").style("z-index",999999).style("box-shadow","0 8px 8px 0 rgba(0,0,0,.14),0 12px 4px -8px rgba(0,0,0,.2),0 4px 20px 0 rgba(0,0,0,.12)").style("background-color",target.__old_backgroundColor).transition().style("top",gridBox.top+gridPaddingTop+"px").style("left",gridBox.left+gridPaddingLeft+"px").style("width",gridBox.width-gridPaddingLeft-gridPaddingRight+"px").style("height",gridBox.height-gridPaddingTop-gridPaddingBottom+"px").each("end",function(){targetElement.style("background-color",context.maximizedBackgroundColor()),context.resize({width:gridBox.width-gridPaddingLeft-gridPaddingRight,height:gridBox.height-gridPaddingTop-gridPaddingBottom}).render(function(){context.contentDiv.transition().style("opacity",1)}),buttonWidget.value("").render()})}common.select(target).classed("__hpccisMaximized",!isMaximized)},this._legendButton=new form.Input().classed({"composite_MegaChart-legend":!0}).id(this.id()+"_legend").type("checkbox").inlineLabel("Legend: "),this._legendButton.click=function(a2){context.render()},this._chartTypeSelect=new form.Select().classed({"composite_MegaChart-chartType":!0}).id(this.id()+"_chartType").selectOptions(this._allChartTypes.map(function(a2){return[a2.id,a2.display]})).value(this.chartType()),this._chartTypeSelect.change=function(a2){context.chartType(a2.value()).render()},this.setContent("center",this._chart),this._legend.targetWidget(this._chart).orientation(["top","bottom"].indexOf(this.legendPosition())!==-1?"horizontal":"vertical").fixedSize(!0),this._prevLegendPosition=this.legendPosition(),this.valueAxisTitle()&&this.setContent("left",this._valueTitle.rotation(-90)).leftShrinkWrap(!0),this.domainAxisTitle()&&this.setContent("bottom",this._domainTitle).bottomShrinkWrap(!0),this.legendPosition()!=="none"&&this.setContent(this.legendPosition(),this._legend)[this.legendPosition()+"ShrinkWrap"](!0)}update(domNode,element){function showHideButton(twArr2,button,show){if(show&&twArr2.indexOf(button)===-1)twArr2.push(button);else if(!show){const idx=twArr2.indexOf(button);idx>=0&&twArr2.splice(idx,1)}}this._chart&&typeof this._chart.hideRowOnLegendClick=="function"&&this._chart.hideRowOnLegendClick(this.hideRowOnLegendClick()),this._dataCount.html('<span class="MegaChart-dataCount-label">Count:</span> <span class="MegaChart-dataCount-value">'+(this.data()?this.data().length:"0")+"</span>"),this._chartTypeSelect.value(this.chartType());const twArr=this.toolbarWidgets();showHideButton(twArr,this._csvButton,this.showCSV()),showHideButton(twArr,this._maximizeButton,this.showMaximize()),showHideButton(twArr,this._legendButton,this.toolbarShowLegend()),showHideButton(twArr,this._chartTypeSelect,this.showChartSelect()),showHideButton(twArr,this._infoButton,this.showInfoButton()),showHideButton(twArr,this._dataCount,this.showCount()),this.toolbarWidgets(twArr),this._prevShowToolbar!==this.showToolbar()&&(this.setContent("top",this.showToolbar()?this._toolbar:null),this._prevShowToolbar=this.showToolbar()),this._toolbar.fontSize(this.titleFontSize()).fontColor(this.titleFontColor()).fontFamily(this.titleFontFamily()).fontBold(this.titleFontBold()).backgroundColor(this.titleBackgroundColor()),this._chart.data(this.data()),this._chart.chartType()!==this.chartType()&&this._chart.chartType(this.chartType());let legendPosition=this.legendPosition();this.toolbarShowLegend()&&!this._legendButton.checked()&&(legendPosition="none"),this._prevLegendPosition!==legendPosition&&(this._prevLegendPosition!=="none"&&this.clearContent(this._prevLegendPosition),this._prevLegendPosition=legendPosition,legendPosition!=="none"&&(this._legend=new other.Legend().targetWidget(this.getContent("center").fixedSize(!0)),this.setContent(legendPosition,this._legend),this._legend.orientation(["top","bottom"].indexOf(legendPosition)!==-1?"horizontal":"vertical"))),this._contentClasses=this.getContentClasses(),this.valueAxisTitle()&&this._contentClasses.left!=="common_Text"&&legendPosition!=="left"&&this.setContent("left",this._valueTitle.rotation(-90)),this.domainAxisTitle()&&this._contentClasses.bottom!=="common_Text"&&legendPosition!=="bottom"&&this.setContent("bottom",this._domainTitle).bottomShrinkWrap(!0),this._legend.dataFamily(this._chart.getChartDataFamily()),super.update(domNode,element)}exit(domNode,element){super.exit(domNode,element)}getContentClasses(){const obj={},t=this.getContent("top"),r2=this.getContent("right"),b=this.getContent("bottom"),l=this.getContent("left");return obj.top=t!==null?t.classID():void 0,obj.right=r2!==null?r2.classID():void 0,obj.bottom=b!==null?b.classID():void 0,obj.left=l!==null?l.classID():void 0,obj}serializeState(){const state={title:this.title(),data:this.data()},chart=this.chart();return chart&&chart.serializeState&&(state.chart=chart.serializeState(),delete state.chart.data),state}deserializeState(state){if(state){this.title(state.title).data(state.data);const chart=this.chart();chart&&state.chart&&chart.serializeState&&chart.deserializeState(state.chart)}return this}click(row2,column,selected){}dblclick(row2,column,selected){}vertex_click(row2,col,sel,more){more&&more.vertex}vertex_dblclick(row2,col,sel,more){more&&more.vertex}edge_click(row2,col,sel,more){more&&more.edge}edge_dblclick(row2,col,sel,more){more&&more.edge}}MegaChart.prototype._class+=" composite_MegaChart",MegaChart.prototype._1DChartTypes=MultiChart.prototype._1DChartTypes,MegaChart.prototype._2DChartTypes=MultiChart.prototype._2DChartTypes,MegaChart.prototype._NDChartTypes=MultiChart.prototype._NDChartTypes,MegaChart.prototype._anyChartTypes=MultiChart.prototype._anyChartTypes,MegaChart.prototype._allChartTypes=MultiChart.prototype._allChartTypes,MegaChart.prototype.publishReset(),MegaChart.prototype.publish("hideRowOnLegendClick",!1,"boolean","Enable/Disable hiding row on legend clicks",null,{tags:["Basic"]}),MegaChart.prototype.publish("showToolbar",!0,"boolean","Enable/Disable Toolbar widget",null,{tags:["Basic"]}),MegaChart.prototype.publishProxy("title","_toolbar","title"),MegaChart.prototype.publish("ddlParamsFormat","","string","DDL Param Format '{fname}, {lname}'",null,{tags:["Advanced"],optional:!0}),MegaChart.prototype.publish("titleFontSize",null,"number","Title Font Size (px)",null,{tags:["Advanced"],optional:!0}),MegaChart.prototype.publish("titleFontColor",null,"html-color","Title Font Color",null,{tags:["Advanced"],optional:!0}),MegaChart.prototype.publish("titleFontFamily",null,"string","Title Font Family",null,{tags:["Advanced"],optional:!0}),MegaChart.prototype.publish("titleFontBold",!0,"boolean","Enable Bold Title Font",null,{tags:["Advanced"],optional:!0}),MegaChart.prototype.publish("titleBackgroundColor",null,"html-color","Background Color",null,{tags:["Intermediate"],optional:!0}),MegaChart.prototype.publish("maximizedBackgroundColor","#FFFFFF","html-color","Background Color while maximized",null,{tags:["Intermediate"],optional:!0}),MegaChart.prototype.publish("showChartSelect",!0,"boolean","Show/Hide the chartType dropdown in the toolbar",null,{tags:["Basic"]}),MegaChart.prototype.publish("showCSV",!0,"boolean","Show/Hide CSV button",null,{tags:["Basic"]}),MegaChart.prototype.publish("showCount",!1,"boolean","Show/Hide Data Count",null,{tags:["Basic"]}),MegaChart.prototype.publish("showMaximize",!1,"boolean","Show/Hide Maximize button",null,{tags:["Basic"]}),MegaChart.prototype.publish("toolbarShowLegend",!1,"boolean","Show/Hide Legend button",null,{tags:["Basic"]}),MegaChart.prototype.publish("showInfoButton",!1,"boolean","Show/Hide Info button in toolbar",null,{tags:["Basic"]}),MegaChart.prototype.publish("infoIcon","","string","Help Icon",null,{tags:["Basic"]}),MegaChart.prototype.publish("legendPosition","none","set","Position of the Legend widget",["none","top","right","bottom","left"],{tags:["Basic"]}),MegaChart.prototype.publishProxy("legendFormat","_legend","rainbowFormat"),MegaChart.prototype.publishProxy("legendBins","_legend","rainbowBins"),MegaChart.prototype.publishProxy("domainAxisTitle","_domainTitle","text"),MegaChart.prototype.publishProxy("valueAxisTitle","_valueTitle","text"),MegaChart.prototype.publishProxy("chartType","_chart","chartType"),MegaChart.prototype.publishProxy("chart","_chart","chart");function retrofit_114_serialization(state,replacement_version){if(replacement_version=!replacement_version||replacement_version==="1.14.2-dev"?"1.18.0":replacement_version,!state.__version)return state;const state_version_obj=common.Utility.parseVersionString(state.__version),target_version_obj=common.Utility.parseVersionString(replacement_version);if(state_version_obj.major===1&&state_version_obj.minor===14){console.info("Upgrading old persist from "+state.__version+" to "+replacement_version);let _json_str=JSON.stringify(state);_json_str=_json_str.split('"'+state.__version).join('"'+replacement_version);const ret_obj=JSON.parse(_json_str);return ret_obj.__properties&&ret_obj.__properties.content&&ret_obj.__properties.content.forEach(function(n){JSON.stringify(n).split("graph_Graph").length>1&&target_version_obj.minor>=16&&(n.__properties.widget.__id=n.__properties.widget.__properties.widget.__id,n.__properties.widget.__class="composite_MegaChart",n.__properties.widget.__properties.showCSV=!1,n.__properties.widget.__properties.chartType="GRAPH",n.__properties.widget.__properties.chart=n.__properties.widget.__properties.widget,delete n.__properties.widget.__properties.chart.__id,delete n.__properties.widget.__properties.widget),typeof n.__properties.fields>"u"&&(n.__properties.fields=[])}),ret_obj}else return state}function deserializeFromObject(widget,state){const promises=[];return other.Persist.widgetPropertyWalker(widget,null,(w,item)=>{if(w[item.id+"_reset"](),state.__properties[item.id]!==void 0)switch(item.type){case"widget":const widgetKey=item.id;promises.push(create(state.__properties[item.id]).then(w2=>(w2._owner=w,w[widgetKey](w2),w2)));break;case"widgetArray":case"propertyArray":const widgetArrayKey=item.id,widgetStateArray=state.__properties[item.id];if(widgetStateArray.length){const arrPromises=[];for(const widgetState of widgetStateArray)arrPromises.push(create(widgetState).then(widgetItem=>(widgetItem._owner=w,widgetItem)));promises.push(Promise.all(arrPromises).then(widgetArray=>{w[widgetArrayKey](widgetArray)}))}break;default:w[item.id](state.__properties[item.id]);break}}),Promise.all(promises).then(widgets=>{if(state.__data){for(const key in state.__data)if(state.__data.HasOwnProperty(key))switch(key){case"data":widget.data(state.__data[key]);break;default:console.warn("Unexpected __data item: "+key),widget[key](state.__data[key]);break}}return state.__state&&(widget.deserializeState?widget.deserializeState(state.__state):state.__state.data&&widget.data&&widget.data(state.__state.data)),widget})}function deserialize(widget,state){typeof state=="string"&&(state=JSON.parse(state)),state.__id&&state.__id.indexOf(widget._idSeed)!==0&&widget._id!==state.__id&&console.warn("Deserialize: IDs do not match - "+widget._id),deserializeFromObject(widget,state)}function create(state){return typeof state=="string"&&(state=JSON.parse(state)),state=retrofit_114_serialization(state,common.Platform.version()),requireWidget(state.__class).then(WidgetClass=>{const widget=new WidgetClass;return state.__id&&state.__id.indexOf(widget._idSeed)!==0&&state.__id.indexOf("_pe")!==0&&(widget._id=state.__id),deserializeFromObject(widget,state)}).catch(function(e){console.error("Persist.create: ***exception***"),console.error(e)})}function clone(widget){create(other.Persist.serializeToObject(widget,void 0,!0,!0))}const Persist=Object.freeze(Object.defineProperty({__proto__:null,clone,create,deserialize,deserializeFromObject,retrofit_114_serialization},Symbol.toStringTag,{value:"Module"}));exports2.BUILD_VERSION=BUILD_VERSION,exports2.Dermatology=Dermatology,exports2.MegaChart=MegaChart,exports2.MultiChart=MultiChart,exports2.MultiChartPanel=MultiChartPanel,exports2.PKG_NAME=PKG_NAME,exports2.PKG_VERSION=PKG_VERSION,exports2.Persist=Persist,exports2.Utility=Utility,Object.defineProperty(exports2,Symbol.toStringTag,{value:"Module"})});
|
|
8
326
|
//# sourceMappingURL=index.umd.cjs.map
|