ttnn-visualizer 0.33.1__py3-none-any.whl → 0.33.2__py3-none-any.whl

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.
@@ -69,7 +69,7 @@ Error generating stack: `+u.message+`
69
69
  Copyright (c) 2018 Jed Watson.
70
70
  Licensed under the MIT License (MIT), see
71
71
  http://jedwatson.github.io/classnames
72
- */(function(t){(function(){var r={}.hasOwnProperty;function e(){for(var u="",o=0;o<arguments.length;o++){var f=arguments[o];f&&(u=a(u,n(f)))}return u}function n(u){if(typeof u=="string"||typeof u=="number")return u;if(typeof u!="object")return"";if(Array.isArray(u))return e.apply(null,u);if(u.toString!==Object.prototype.toString&&!u.toString.toString().includes("[native code]"))return u.toString();var o="";for(var f in u)r.call(u,f)&&u[f]&&(o=a(o,f));return o}function a(u,o){return o?u?u+" "+o:u+o:u}t.exports?(e.default=e,t.exports=e):window.classNames=e})()})(wde);var Y4e=wde.exports;const _i=ly(Y4e);function Tde(t,r){r===void 0&&(r=[]),St.useEffect(function(){e1("production")||t()},r)}var X4e={defaultTabIndex:void 0,disabledTabIndex:-1};function _de(t,r,e,n){n===void 0&&(n=X4e);var a=n.defaultTabIndex,u=n.disabledTabIndex,o=r.active,f=r.onClick,i=r.onFocus,s=r.onKeyDown,d=r.onKeyUp,l=r.onBlur,h=r.tabIndex,y=h===void 0?a:h,b=St.useState(),C=b[0],m=b[1],c=St.useState(!1),v=c[0],g=c[1],p=St.useRef(null),I=St.useCallback(function(E){v&&g(!1),l==null||l(E)},[v,l]),A=St.useCallback(function(E){WT(E)&&(E.preventDefault(),E.key!==C&&g(!0)),m(E.key),s==null||s(E)},[C,s]),T=St.useCallback(function(E){var x;WT(E)&&(g(!1),(x=p.current)===null||x===void 0||x.click()),m(void 0),d==null||d(E)},[d,p]),_=t&&(o||v);return[_,{onBlur:I,onClick:t?f:void 0,onFocus:t?i:void 0,onKeyDown:A,onKeyUp:T,ref:hA(p,e),tabIndex:t?y:u}]}function K4e(t){return t.toLowerCase()}var Q4e=[/([a-z0-9])([A-Z])/g,/([A-Z])([A-Z][a-z])/g],J4e=/[^A-Z0-9]+/gi;function Sde(t,r){r===void 0&&(r={});for(var e=r.splitRegexp,n=e===void 0?Q4e:e,a=r.stripRegexp,u=a===void 0?J4e:a,o=r.transform,f=o===void 0?K4e:o,i=r.delimiter,s=i===void 0?" ":i,d=cQ(cQ(t,n,"$1\0$2"),u,"\0"),l=0,h=d.length;d.charAt(l)==="\0";)l++;for(;d.charAt(h-1)==="\0";)h--;return d.slice(l,h).split("\0").map(f).join(s)}function cQ(t,r,e){return r instanceof RegExp?t.replace(r,e):r.reduce(function(n,a){return n.replace(a,e)},t)}function q4e(t,r){var e=t.charAt(0),n=t.substr(1).toLowerCase();return r>0&&e>="0"&&e<="9"?"_"+e+n:""+e.toUpperCase()+n}function eRe(t,r){return r===void 0&&(r={}),Sde(t,Qn({delimiter:"",transform:q4e},r))}function tRe(t,r){return r===void 0&&(r={}),Sde(t,Qn({delimiter:"."},r))}function rRe(t,r){return r===void 0&&(r={}),tRe(t,Qn({delimiter:"_"},r))}var Fa;(function(t){t[t.STANDARD=16]="STANDARD",t[t.LARGE=20]="LARGE"})(Fa||(Fa={}));const nRe="modulepreload",iRe=function(t){return"/"+t},fQ={},hQ=function(r,e,n){let a=Promise.resolve();if(e&&e.length>0){document.getElementsByTagName("link");const o=document.querySelector("meta[property=csp-nonce]"),f=(o==null?void 0:o.nonce)||(o==null?void 0:o.getAttribute("nonce"));a=Promise.allSettled(e.map(i=>{if(i=iRe(i),i in fQ)return;fQ[i]=!0;const s=i.endsWith(".css"),d=s?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${i}"]${d}`))return;const l=document.createElement("link");if(l.rel=s?"stylesheet":nRe,s||(l.as="script"),l.crossOrigin="",l.href=i,f&&l.setAttribute("nonce",f),document.head.appendChild(l),s)return new Promise((h,y)=>{l.addEventListener("load",h),l.addEventListener("error",()=>y(new Error(`Unable to preload CSS for ${i}`)))})}))}function u(o){const f=new Event("vite:preloadError",{cancelable:!0});if(f.payload=o,window.dispatchEvent(f),!f.defaultPrevented)throw o}return a.then(o=>{for(const f of o||[])f.status==="rejected"&&u(f.reason);return r().catch(u)})};var Qt,Kt;(function(t){t.AddClip="add-clip",t.AddColumnLeft="add-column-left",t.AddColumnRight="add-column-right",t.AddLocation="add-location",t.AddRowBottom="add-row-bottom",t.AddRowTop="add-row-top",t.AddToArtifact="add-to-artifact",t.AddToFolder="add-to-folder",t.Add="add",t.AimpointsTarget="aimpoints-target",t.Airplane="airplane",t.AlignCenter="align-center",t.AlignJustify="align-justify",t.AlignLeft="align-left",t.AlignRight="align-right",t.AlignmentBottom="alignment-bottom",t.AlignmentHorizontalCenter="alignment-horizontal-center",t.AlignmentLeft="alignment-left",t.AlignmentRight="alignment-right",t.AlignmentTop="alignment-top",t.AlignmentVerticalCenter="alignment-vertical-center",t.Ammunition="ammunition",t.Anchor="anchor",t.Annotation="annotation",t.Announcement="announcement",t.Antenna="antenna",t.AppHeader="app-header",t.Application="application",t.Applications="applications",t.Archive="archive",t.AreaOfInterest="area-of-interest",t.ArrayBoolean="array-boolean",t.ArrayDate="array-date",t.ArrayFloatingPoint="array-floating-point",t.ArrayNumeric="array-numeric",t.ArrayObject="array-object",t.ArrayString="array-string",t.ArrayTimestamp="array-timestamp",t.Array="array",t.ArrowBottomLeft="arrow-bottom-left",t.ArrowBottomRight="arrow-bottom-right",t.ArrowDown="arrow-down",t.ArrowLeft="arrow-left",t.ArrowRight="arrow-right",t.ArrowTopLeft="arrow-top-left",t.ArrowTopRight="arrow-top-right",t.ArrowUp="arrow-up",t.ArrowsArc="arrows-arc",t.ArrowsHorizontal="arrows-horizontal",t.ArrowsVertical="arrows-vertical",t.Asterisk="asterisk",t.At="at",t.AutomaticUpdates="automatic-updates",t.Axle="axle",t.Backlink="backlink",t.BackwardTen="backward-ten",t.Badge="badge",t.BanCircle="ban-circle",t.BankAccount="bank-account",t.Barcode="barcode",t.BinaryNumber="binary-number",t.Blank="blank",t.BlockPromote="block-promote",t.BlockedPerson="blocked-person",t.Bold="bold",t.Book="book",t.Bookmark="bookmark",t.Box="box",t.Briefcase="briefcase",t.BringData="bring-data",t.BringForward="bring-forward",t.BritishPound="british-pound",t.Bug="bug",t.Buggy="buggy",t.Build="build",t.Bullseye="bullseye",t.Calculator="calculator",t.Calendar="calendar",t.Camera="camera",t.CaretDown="caret-down",t.CaretLeft="caret-left",t.CaretRight="caret-right",t.CaretUp="caret-up",t.CargoShip="cargo-ship",t.CellTower="cell-tower",t.Changes="changes",t.Chart="chart",t.Chat="chat",t.ChevronBackward="chevron-backward",t.ChevronDown="chevron-down",t.ChevronForward="chevron-forward",t.ChevronLeft="chevron-left",t.ChevronRight="chevron-right",t.ChevronUp="chevron-up",t.CircleArrowDown="circle-arrow-down",t.CircleArrowLeft="circle-arrow-left",t.CircleArrowRight="circle-arrow-right",t.CircleArrowUp="circle-arrow-up",t.Circle="circle",t.Citation="citation",t.Clean="clean",t.Clip="clip",t.ClipboardFile="clipboard-file",t.Clipboard="clipboard",t.CloudDownload="cloud-download",t.CloudServer="cloud-server",t.CloudTick="cloud-tick",t.CloudUpload="cloud-upload",t.Cloud="cloud",t.CodeBlock="code-block",t.Code="code",t.Cog="cog",t.CollapseAll="collapse-all",t.ColorFill="color-fill",t.ColumnLayout="column-layout",t.Comment="comment",t.Comparison="comparison",t.Compass="compass",t.Compressed="compressed",t.Confirm="confirm",t.Console="console",t.Construction="construction",t.Contrast="contrast",t.Control="control",t.CreditCard="credit-card",t.Crop="crop",t.CrossCircle="cross-circle",t.Cross="cross",t.Crown="crown",t.CssStyle="css-style",t.CubeAdd="cube-add",t.CubeEdit="cube-edit",t.CubeRemove="cube-remove",t.Cube="cube",t.Cubes="cubes",t.CurlyBraces="curly-braces",t.CurvedRangeChart="curved-range-chart",t.Cut="cut",t.Cycle="cycle",t.Dashboard="dashboard",t.DataCloud="data-cloud",t.DataConnection="data-connection",t.DataLineage="data-lineage",t.DataSearch="data-search",t.DataSync="data-sync",t.Database="database",t.Delete="delete",t.Delta="delta",t.DeriveColumn="derive-column",t.Desktop="desktop",t.Detection="detection",t.Diagnosis="diagnosis",t.DiagramTree="diagram-tree",t.DirectionLeft="direction-left",t.DirectionRight="direction-right",t.Disable="disable",t.Divide="divide",t.DocumentOpen="document-open",t.DocumentShare="document-share",t.Document="document",t.Dollar="dollar",t.Dot="dot",t.DoubleCaretHorizontal="double-caret-horizontal",t.DoubleCaretVertical="double-caret-vertical",t.DoubleChevronDown="double-chevron-down",t.DoubleChevronLeft="double-chevron-left",t.DoubleChevronRight="double-chevron-right",t.DoubleChevronUp="double-chevron-up",t.DoughnutChart="doughnut-chart",t.Download="download",t.DragHandleHorizontal="drag-handle-horizontal",t.DragHandleVertical="drag-handle-vertical",t.Draw="draw",t.DrawerLeftFilled="drawer-left-filled",t.DrawerLeft="drawer-left",t.DrawerRightFilled="drawer-right-filled",t.DrawerRight="drawer-right",t.DriveTime="drive-time",t.Duplicate="duplicate",t.Edit="edit",t.Eject="eject",t.Emoji="emoji",t.Endnote="endnote",t.Endorsed="endorsed",t.Envelope="envelope",t.Equals="equals",t.Eraser="eraser",t.Error="error",t.Euro="euro",t.Excavator="excavator",t.Exchange="exchange",t.ExcludeRow="exclude-row",t.ExpandAll="expand-all",t.Explain="explain",t.Export="export",t.EyeOff="eye-off",t.EyeOn="eye-on",t.EyeOpen="eye-open",t.FastBackward="fast-backward",t.FastForward="fast-forward",t.FeedSubscribed="feed-subscribed",t.Feed="feed",t.FighterJet="fighter-jet",t.Film="film",t.FilterKeep="filter-keep",t.FilterList="filter-list",t.FilterOpen="filter-open",t.FilterRemove="filter-remove",t.FilterSortAsc="filter-sort-asc",t.FilterSortDesc="filter-sort-desc",t.Filter="filter",t.Flag="flag",t.Flame="flame",t.Flash="flash",t.FloatingPoint="floating-point",t.FloppyDisk="floppy-disk",t.FlowBranch="flow-branch",t.FlowEnd="flow-end",t.FlowLinear="flow-linear",t.FlowReviewBranch="flow-review-branch",t.FlowReview="flow-review",t.Flows="flows",t.FolderClose="folder-close",t.FolderNew="folder-new",t.FolderOpen="folder-open",t.FolderSharedOpen="folder-shared-open",t.FolderShared="folder-shared",t.Follower="follower",t.Following="following",t.Font="font",t.Fork="fork",t.Form="form",t.ForwardTen="forward-ten",t.Fuel="fuel",t.FullCircle="full-circle",t.FullStackedChart="full-stacked-chart",t.Fullscreen="fullscreen",t.Function="function",t.GanttChart="gantt-chart",t.Generate="generate",t.Geofence="geofence",t.Geolocation="geolocation",t.Geosearch="geosearch",t.Geotime="geotime",t.GitBranch="git-branch",t.GitCommit="git-commit",t.GitMerge="git-merge",t.GitNewBranch="git-new-branch",t.GitPull="git-pull",t.GitPush="git-push",t.GitRepo="git-repo",t.Glass="glass",t.GlobeNetworkAdd="globe-network-add",t.GlobeNetwork="globe-network",t.Globe="globe",t.GraphRemove="graph-remove",t.Graph="graph",t.GreaterThanOrEqualTo="greater-than-or-equal-to",t.GreaterThan="greater-than",t.GridView="grid-view",t.Grid="grid",t.GroupItem="group-item",t.GroupObjects="group-objects",t.GroupedBarChart="grouped-bar-chart",t.HandDown="hand-down",t.HandLeft="hand-left",t.HandRight="hand-right",t.HandUp="hand-up",t.Hand="hand",t.Hat="hat",t.HeaderOne="header-one",t.HeaderThree="header-three",t.HeaderTwo="header-two",t.Header="header",t.Headset="headset",t.HeartBroken="heart-broken",t.Heart="heart",t.HeatGrid="heat-grid",t.Heatmap="heatmap",t.Helicopter="helicopter",t.Help="help",t.HelperManagement="helper-management",t.Hexagon="hexagon",t.HighPriority="high-priority",t.HighVoltagePole="high-voltage-pole",t.Highlight="highlight",t.History="history",t.Home="home",t.HorizontalBarChartAsc="horizontal-bar-chart-asc",t.HorizontalBarChartDesc="horizontal-bar-chart-desc",t.HorizontalBarChart="horizontal-bar-chart",t.HorizontalDistribution="horizontal-distribution",t.HorizontalInbetween="horizontal-inbetween",t.Hurricane="hurricane",t.IdNumber="id-number",t.ImageRotateLeft="image-rotate-left",t.ImageRotateRight="image-rotate-right",t.Import="import",t.InboxFiltered="inbox-filtered",t.InboxGeo="inbox-geo",t.InboxSearch="inbox-search",t.InboxUpdate="inbox-update",t.Inbox="inbox",t.InfoSign="info-sign",t.Inheritance="inheritance",t.InheritedGroup="inherited-group",t.InnerJoin="inner-join",t.Input="input",t.Insert="insert",t.Intelligence="intelligence",t.Intersection="intersection",t.IpAddress="ip-address",t.IssueClosed="issue-closed",t.IssueNew="issue-new",t.Issue="issue",t.Italic="italic",t.JoinTable="join-table",t.KeyBackspace="key-backspace",t.KeyCommand="key-command",t.KeyControl="key-control",t.KeyDelete="key-delete",t.KeyEnter="key-enter",t.KeyEscape="key-escape",t.KeyOption="key-option",t.KeyShift="key-shift",t.KeyTab="key-tab",t.Key="key",t.KnownVehicle="known-vehicle",t.LabTest="lab-test",t.Label="label",t.LayerOutline="layer-outline",t.Layer="layer",t.Layers="layers",t.LayoutAuto="layout-auto",t.LayoutBalloon="layout-balloon",t.LayoutBottomRowThreeTiles="layout-bottom-row-three-tiles",t.LayoutBottomRowTwoTiles="layout-bottom-row-two-tiles",t.LayoutCircle="layout-circle",t.LayoutGrid="layout-grid",t.LayoutGroupBy="layout-group-by",t.LayoutHierarchy="layout-hierarchy",t.LayoutLeftColumnThreeTiles="layout-left-column-three-tiles",t.LayoutLeftColumnTwoTiles="layout-left-column-two-tiles",t.LayoutLinear="layout-linear",t.LayoutRightColumnThreeTiles="layout-right-column-three-tiles",t.LayoutRightColumnTwoTiles="layout-right-column-two-tiles",t.LayoutSkewGrid="layout-skew-grid",t.LayoutSortedClusters="layout-sorted-clusters",t.LayoutThreeColumns="layout-three-columns",t.LayoutThreeRows="layout-three-rows",t.LayoutTopRowThreeTiles="layout-top-row-three-tiles",t.LayoutTopRowTwoTiles="layout-top-row-two-tiles",t.LayoutTwoColumns="layout-two-columns",t.LayoutTwoRows="layout-two-rows",t.Layout="layout",t.Learning="learning",t.LeftJoin="left-join",t.LengthenText="lengthen-text",t.LessThanOrEqualTo="less-than-or-equal-to",t.LessThan="less-than",t.Lifesaver="lifesaver",t.Lightbulb="lightbulb",t.Lightning="lightning",t.Link="link",t.LinkedSquares="linked-squares",t.ListColumns="list-columns",t.ListDetailView="list-detail-view",t.List="list",t.Locate="locate",t.Lock="lock",t.Locomotive="locomotive",t.LogIn="log-in",t.LogOut="log-out",t.LowVoltagePole="low-voltage-pole",t.Manual="manual",t.ManuallyEnteredData="manually-entered-data",t.ManyToMany="many-to-many",t.ManyToOne="many-to-one",t.MapCreate="map-create",t.MapMarker="map-marker",t.Map="map",t.Maximize="maximize",t.Media="media",t.MenuClosed="menu-closed",t.MenuOpen="menu-open",t.Menu="menu",t.MergeColumns="merge-columns",t.MergeLinks="merge-links",t.Microphone="microphone",t.Minimize="minimize",t.Minus="minus",t.MobilePhone="mobile-phone",t.MobileVideo="mobile-video",t.ModalFilled="modal-filled",t.Modal="modal",t.Model="model",t.Moon="moon",t.More="more",t.Mountain="mountain",t.Move="move",t.Mugshot="mugshot",t.MultiSelect="multi-select",t.Music="music",t.Nest="nest",t.NewDrawing="new-drawing",t.NewGridItem="new-grid-item",t.NewLayer="new-layer",t.NewLayers="new-layers",t.NewLink="new-link",t.NewObject="new-object",t.NewPerson="new-person",t.NewPrescription="new-prescription",t.NewShield="new-shield",t.NewTextBox="new-text-box",t.Ninja="ninja",t.NotEqualTo="not-equal-to",t.NotificationsAdd="notifications-add",t.NotificationsSnooze="notifications-snooze",t.NotificationsUpdated="notifications-updated",t.Notifications="notifications",t.NumberedList="numbered-list",t.Numerical="numerical",t.ObjectView="object-view",t.Office="office",t.Offline="offline",t.OilField="oil-field",t.OneColumn="one-column",t.OneToMany="one-to-many",t.OneToOne="one-to-one",t.OpenApplication="open-application",t.Outdated="outdated",t.Output="output",t.Package="package",t.PageLayout="page-layout",t.PanelStats="panel-stats",t.PanelTable="panel-table",t.Panel="panel",t.Paperclip="paperclip",t.Paragraph="paragraph",t.PasteVariable="paste-variable",t.PathSearch="path-search",t.Path="path",t.Pause="pause",t.People="people",t.Percentage="percentage",t.Person="person",t.PhoneCall="phone-call",t.PhoneForward="phone-forward",t.PhoneSearch="phone-search",t.Phone="phone",t.PieChart="pie-chart",t.Pill="pill",t.Pin="pin",t.Pistol="pistol",t.PivotTable="pivot-table",t.Pivot="pivot",t.Play="play",t.Playbook="playbook",t.Plus="plus",t.PolygonFilter="polygon-filter",t.Power="power",t.PredictiveAnalysis="predictive-analysis",t.Prescription="prescription",t.Presentation="presentation",t.Print="print",t.Projects="projects",t.Properties="properties",t.Property="property",t.PublishFunction="publish-function",t.Pulse="pulse",t.Rain="rain",t.Random="random",t.RangeRing="range-ring",t.Record="record",t.RectHeight="rect-height",t.RectWidth="rect-width",t.Rectangle="rectangle",t.Redo="redo",t.Refresh="refresh",t.Regex="regex",t.RegressionChart="regression-chart",t.RemoveColumnLeft="remove-column-left",t.RemoveColumnRight="remove-column-right",t.RemoveColumn="remove-column",t.RemoveRowBottom="remove-row-bottom",t.RemoveRowTop="remove-row-top",t.Remove="remove",t.Repeat="repeat",t.Reset="reset",t.Resolve="resolve",t.Rig="rig",t.RightJoin="right-join",t.Ring="ring",t.RocketSlant="rocket-slant",t.Rocket="rocket",t.RotateCcw="rotate-ccw",t.RotateCw="rotate-cw",t.RotateDocument="rotate-document",t.RotatePage="rotate-page",t.Route="route",t.RunHistory="run-history",t.Satellite="satellite",t.Saved="saved",t.ScatterPlot="scatter-plot",t.SearchAround="search-around",t.SearchTemplate="search-template",t.SearchText="search-text",t.Search="search",t.SegmentedControl="segmented-control",t.Select="select",t.SelectionBoxAdd="selection-box-add",t.SelectionBoxEdit="selection-box-edit",t.SelectionBox="selection-box",t.Selection="selection",t.SendBackward="send-backward",t.SendMessage="send-message",t.SendToGraph="send-to-graph",t.SendToMap="send-to-map",t.SendTo="send-to",t.Sensor="sensor",t.SeriesAdd="series-add",t.SeriesConfiguration="series-configuration",t.SeriesDerived="series-derived",t.SeriesFiltered="series-filtered",t.SeriesSearch="series-search",t.ServerInstall="server-install",t.Server="server",t.Settings="settings",t.Shapes="shapes",t.Share="share",t.SharedFilter="shared-filter",t.Shield="shield",t.Ship="ship",t.Shop="shop",t.ShoppingCart="shopping-cart",t.ShortenText="shorten-text",t.SignalSearch="signal-search",t.SimCard="sim-card",t.Slash="slash",t.SmallCross="small-cross",t.SmallInfoSign="small-info-sign",t.SmallMinus="small-minus",t.SmallPlus="small-plus",t.SmallSquare="small-square",t.SmallTick="small-tick",t.Snowflake="snowflake",t.SoccerBall="soccer-ball",t.SocialMedia="social-media",t.SortAlphabeticalDesc="sort-alphabetical-desc",t.SortAlphabetical="sort-alphabetical",t.SortAsc="sort-asc",t.SortDesc="sort-desc",t.SortNumericalDesc="sort-numerical-desc",t.SortNumerical="sort-numerical",t.Sort="sort",t.SpellCheck="spell-check",t.SplitColumns="split-columns",t.SportsStadium="sports-stadium",t.Square="square",t.StackedChart="stacked-chart",t.StadiumGeometry="stadium-geometry",t.StarEmpty="star-empty",t.Star="star",t.StepBackward="step-backward",t.StepChart="step-chart",t.StepForward="step-forward",t.Stop="stop",t.Stopwatch="stopwatch",t.Strikethrough="strikethrough",t.Style="style",t.Subscript="subscript",t.SubtractRightJoin="subtract-right-join",t.Superscript="superscript",t.SwapHorizontal="swap-horizontal",t.SwapVertical="swap-vertical",t.Switch="switch",t.SymbolCircle="symbol-circle",t.SymbolCross="symbol-cross",t.SymbolDiamond="symbol-diamond",t.SymbolRectangle="symbol-rectangle",t.SymbolSquare="symbol-square",t.SymbolTriangleDown="symbol-triangle-down",t.SymbolTriangleUp="symbol-triangle-up",t.Syringe="syringe",t.TableSync="table-sync",t.TagAdd="tag-add",t.TagPromote="tag-promote",t.TagRefresh="tag-refresh",t.TagUndo="tag-undo",t.Tag="tag",t.Tags="tags",t.TakeAction="take-action",t.Tank="tank",t.Target="target",t.Taxi="taxi",t.Team="team",t.Temperature="temperature",t.TextHighlight="text-highlight",t.ThAdd="th-add",t.ThDerived="th-derived",t.ThDisconnect="th-disconnect",t.ThFiltered="th-filtered",t.ThListAdd="th-list-add",t.ThList="th-list",t.ThVirtualAdd="th-virtual-add",t.ThVirtual="th-virtual",t.Th="th",t.ThirdParty="third-party",t.ThumbsDown="thumbs-down",t.ThumbsUp="thumbs-up",t.TickCircle="tick-circle",t.Tick="tick",t.Time="time",t.TimelineAreaChart="timeline-area-chart",t.TimelineBarChart="timeline-bar-chart",t.TimelineEvents="timeline-events",t.TimelineLineChart="timeline-line-chart",t.Tint="tint",t.Torch="torch",t.Tractor="tractor",t.Train="train",t.Translate="translate",t.Trash="trash",t.Tree="tree",t.TrendingDown="trending-down",t.TrendingUp="trending-up",t.Trophy="trophy",t.Truck="truck",t.TwoColumns="two-columns",t.Unarchive="unarchive",t.Underline="underline",t.Undo="undo",t.UngroupObjects="ungroup-objects",t.UnknownVehicle="unknown-vehicle",t.Unlink="unlink",t.Unlock="unlock",t.Unpin="unpin",t.Unresolve="unresolve",t.Updated="updated",t.Upload="upload",t.User="user",t.Variable="variable",t.Vector="vector",t.VerticalBarChartAsc="vertical-bar-chart-asc",t.VerticalBarChartDesc="vertical-bar-chart-desc",t.VerticalDistribution="vertical-distribution",t.VerticalInbetween="vertical-inbetween",t.Video="video",t.Virus="virus",t.VolumeDown="volume-down",t.VolumeOff="volume-off",t.VolumeUp="volume-up",t.Walk="walk",t.WarningSign="warning-sign",t.WaterfallChart="waterfall-chart",t.Waves="waves",t.WidgetButton="widget-button",t.WidgetFooter="widget-footer",t.WidgetHeader="widget-header",t.Widget="widget",t.Wind="wind",t.WrenchRedo="wrench-redo",t.WrenchSnooze="wrench-snooze",t.WrenchTime="wrench-time",t.Wrench="wrench",t.ZoomIn="zoom-in",t.ZoomOut="zoom-out",t.ZoomToFit="zoom-to-fit"})(Kt||(Kt={}));Qt={},Qt[Kt.AddClip]="61697",Qt[Kt.AddColumnLeft]="61698",Qt[Kt.AddColumnRight]="61699",Qt[Kt.AddLocation]="61700",Qt[Kt.AddRowBottom]="61701",Qt[Kt.AddRowTop]="61702",Qt[Kt.AddToArtifact]="61703",Qt[Kt.AddToFolder]="61704",Qt[Kt.Add]="61705",Qt[Kt.AimpointsTarget]="62261",Qt[Kt.Airplane]="61706",Qt[Kt.AlignCenter]="61707",Qt[Kt.AlignJustify]="61708",Qt[Kt.AlignLeft]="61709",Qt[Kt.AlignRight]="61710",Qt[Kt.AlignmentBottom]="61711",Qt[Kt.AlignmentHorizontalCenter]="61712",Qt[Kt.AlignmentLeft]="61713",Qt[Kt.AlignmentRight]="61714",Qt[Kt.AlignmentTop]="61715",Qt[Kt.AlignmentVerticalCenter]="61716",Qt[Kt.Ammunition]="62274",Qt[Kt.Anchor]="62256",Qt[Kt.Annotation]="61717",Qt[Kt.Announcement]="62358",Qt[Kt.Antenna]="61718",Qt[Kt.AppHeader]="61719",Qt[Kt.Application]="61720",Qt[Kt.Applications]="61721",Qt[Kt.Archive]="61722",Qt[Kt.AreaOfInterest]="61723",Qt[Kt.ArrayBoolean]="61724",Qt[Kt.ArrayDate]="61725",Qt[Kt.ArrayFloatingPoint]="62253",Qt[Kt.ArrayNumeric]="61726",Qt[Kt.ArrayObject]="62356",Qt[Kt.ArrayString]="61727",Qt[Kt.ArrayTimestamp]="61728",Qt[Kt.Array]="61729",Qt[Kt.ArrowBottomLeft]="61730",Qt[Kt.ArrowBottomRight]="61731",Qt[Kt.ArrowDown]="61732",Qt[Kt.ArrowLeft]="61733",Qt[Kt.ArrowRight]="61734",Qt[Kt.ArrowTopLeft]="61735",Qt[Kt.ArrowTopRight]="61736",Qt[Kt.ArrowUp]="61737",Qt[Kt.ArrowsArc]="62343",Qt[Kt.ArrowsHorizontal]="61738",Qt[Kt.ArrowsVertical]="61739",Qt[Kt.Asterisk]="61740",Qt[Kt.At]="62257",Qt[Kt.AutomaticUpdates]="61741",Qt[Kt.Axle]="62264",Qt[Kt.Backlink]="61742",Qt[Kt.BackwardTen]="62300",Qt[Kt.Badge]="61743",Qt[Kt.BanCircle]="61744",Qt[Kt.BankAccount]="61745",Qt[Kt.Barcode]="61746",Qt[Kt.BinaryNumber]="62295",Qt[Kt.Blank]="61747",Qt[Kt.BlockPromote]="62322",Qt[Kt.BlockedPerson]="61748",Qt[Kt.Bold]="61749",Qt[Kt.Book]="61750",Qt[Kt.Bookmark]="61751",Qt[Kt.Box]="61752",Qt[Kt.Briefcase]="61753",Qt[Kt.BringData]="61754",Qt[Kt.BringForward]="62292",Qt[Kt.BritishPound]="62342",Qt[Kt.Bug]="62254",Qt[Kt.Buggy]="61755",Qt[Kt.Build]="61756",Qt[Kt.Bullseye]="62297",Qt[Kt.Calculator]="61757",Qt[Kt.Calendar]="61758",Qt[Kt.Camera]="61759",Qt[Kt.CaretDown]="61760",Qt[Kt.CaretLeft]="61761",Qt[Kt.CaretRight]="61762",Qt[Kt.CaretUp]="61763",Qt[Kt.CargoShip]="61764",Qt[Kt.CellTower]="61765",Qt[Kt.Changes]="61766",Qt[Kt.Chart]="61767",Qt[Kt.Chat]="61768",Qt[Kt.ChevronBackward]="61769",Qt[Kt.ChevronDown]="61770",Qt[Kt.ChevronForward]="61771",Qt[Kt.ChevronLeft]="61772",Qt[Kt.ChevronRight]="61773",Qt[Kt.ChevronUp]="61774",Qt[Kt.CircleArrowDown]="61775",Qt[Kt.CircleArrowLeft]="61776",Qt[Kt.CircleArrowRight]="61777",Qt[Kt.CircleArrowUp]="61778",Qt[Kt.Circle]="61779",Qt[Kt.Citation]="61780",Qt[Kt.Clean]="61781",Qt[Kt.Clip]="61782",Qt[Kt.ClipboardFile]="62299",Qt[Kt.Clipboard]="61783",Qt[Kt.CloudDownload]="61784",Qt[Kt.CloudServer]="62298",Qt[Kt.CloudTick]="62286",Qt[Kt.CloudUpload]="61785",Qt[Kt.Cloud]="61786",Qt[Kt.CodeBlock]="61787",Qt[Kt.Code]="61788",Qt[Kt.Cog]="61789",Qt[Kt.CollapseAll]="61790",Qt[Kt.ColorFill]="62248",Qt[Kt.ColumnLayout]="61791",Qt[Kt.Comment]="61792",Qt[Kt.Comparison]="61793",Qt[Kt.Compass]="61794",Qt[Kt.Compressed]="61795",Qt[Kt.Confirm]="61796",Qt[Kt.Console]="61797",Qt[Kt.Construction]="62357",Qt[Kt.Contrast]="61798",Qt[Kt.Control]="61799",Qt[Kt.CreditCard]="61800",Qt[Kt.Crop]="62291",Qt[Kt.CrossCircle]="62262",Qt[Kt.Cross]="61801",Qt[Kt.Crown]="61802",Qt[Kt.CssStyle]="62315",Qt[Kt.CubeAdd]="61803",Qt[Kt.CubeEdit]="62339",Qt[Kt.CubeRemove]="61804",Qt[Kt.Cube]="61805",Qt[Kt.Cubes]="62323",Qt[Kt.CurlyBraces]="62296",Qt[Kt.CurvedRangeChart]="61806",Qt[Kt.Cut]="61807",Qt[Kt.Cycle]="61808",Qt[Kt.Dashboard]="61809",Qt[Kt.DataCloud]="62353",Qt[Kt.DataConnection]="61810",Qt[Kt.DataLineage]="61811",Qt[Kt.DataSearch]="62319",Qt[Kt.DataSync]="62316",Qt[Kt.Database]="61812",Qt[Kt.Delete]="61813",Qt[Kt.Delta]="61814",Qt[Kt.DeriveColumn]="61815",Qt[Kt.Desktop]="61816",Qt[Kt.Detection]="62273",Qt[Kt.Diagnosis]="61817",Qt[Kt.DiagramTree]="61818",Qt[Kt.DirectionLeft]="61819",Qt[Kt.DirectionRight]="61820",Qt[Kt.Disable]="61821",Qt[Kt.Divide]="62247",Qt[Kt.DocumentOpen]="61822",Qt[Kt.DocumentShare]="61823",Qt[Kt.Document]="61824",Qt[Kt.Dollar]="61825",Qt[Kt.Dot]="61826",Qt[Kt.DoubleCaretHorizontal]="61827",Qt[Kt.DoubleCaretVertical]="61828",Qt[Kt.DoubleChevronDown]="61829",Qt[Kt.DoubleChevronLeft]="61830",Qt[Kt.DoubleChevronRight]="61831",Qt[Kt.DoubleChevronUp]="61832",Qt[Kt.DoughnutChart]="61833",Qt[Kt.Download]="61834",Qt[Kt.DragHandleHorizontal]="61835",Qt[Kt.DragHandleVertical]="61836",Qt[Kt.Draw]="61837",Qt[Kt.DrawerLeftFilled]="61838",Qt[Kt.DrawerLeft]="61839",Qt[Kt.DrawerRightFilled]="61840",Qt[Kt.DrawerRight]="61841",Qt[Kt.DriveTime]="61842",Qt[Kt.Duplicate]="61843",Qt[Kt.Edit]="61844",Qt[Kt.Eject]="61845",Qt[Kt.Emoji]="61846",Qt[Kt.Endnote]="62294",Qt[Kt.Endorsed]="61847",Qt[Kt.Envelope]="61848",Qt[Kt.Equals]="61849",Qt[Kt.Eraser]="61850",Qt[Kt.Error]="61851",Qt[Kt.Euro]="61852",Qt[Kt.Excavator]="62317",Qt[Kt.Exchange]="61853",Qt[Kt.ExcludeRow]="61854",Qt[Kt.ExpandAll]="61855",Qt[Kt.Explain]="62285",Qt[Kt.Export]="61856",Qt[Kt.EyeOff]="61857",Qt[Kt.EyeOn]="61858",Qt[Kt.EyeOpen]="61859",Qt[Kt.FastBackward]="61860",Qt[Kt.FastForward]="61861",Qt[Kt.FeedSubscribed]="61862",Qt[Kt.Feed]="61863",Qt[Kt.FighterJet]="62340",Qt[Kt.Film]="61864",Qt[Kt.FilterKeep]="61865",Qt[Kt.FilterList]="61866",Qt[Kt.FilterOpen]="61867",Qt[Kt.FilterRemove]="61868",Qt[Kt.FilterSortAsc]="62350",Qt[Kt.FilterSortDesc]="62351",Qt[Kt.Filter]="61869",Qt[Kt.Flag]="61870",Qt[Kt.Flame]="61871",Qt[Kt.Flash]="61872",Qt[Kt.FloatingPoint]="62252",Qt[Kt.FloppyDisk]="61873",Qt[Kt.FlowBranch]="61874",Qt[Kt.FlowEnd]="61875",Qt[Kt.FlowLinear]="61876",Qt[Kt.FlowReviewBranch]="61877",Qt[Kt.FlowReview]="61878",Qt[Kt.Flows]="61879",Qt[Kt.FolderClose]="61880",Qt[Kt.FolderNew]="61881",Qt[Kt.FolderOpen]="61882",Qt[Kt.FolderSharedOpen]="61883",Qt[Kt.FolderShared]="61884",Qt[Kt.Follower]="61885",Qt[Kt.Following]="61886",Qt[Kt.Font]="61887",Qt[Kt.Fork]="61888",Qt[Kt.Form]="61889",Qt[Kt.ForwardTen]="62301",Qt[Kt.Fuel]="62243",Qt[Kt.FullCircle]="61890",Qt[Kt.FullStackedChart]="61891",Qt[Kt.Fullscreen]="61892",Qt[Kt.Function]="61893",Qt[Kt.GanttChart]="61894",Qt[Kt.Generate]="62284",Qt[Kt.Geofence]="61895",Qt[Kt.Geolocation]="61896",Qt[Kt.Geosearch]="61897",Qt[Kt.Geotime]="62276",Qt[Kt.GitBranch]="61898",Qt[Kt.GitCommit]="61899",Qt[Kt.GitMerge]="61900",Qt[Kt.GitNewBranch]="61901",Qt[Kt.GitPull]="61902",Qt[Kt.GitPush]="61903",Qt[Kt.GitRepo]="61904",Qt[Kt.Glass]="61905",Qt[Kt.GlobeNetworkAdd]="62338",Qt[Kt.GlobeNetwork]="61906",Qt[Kt.Globe]="61907",Qt[Kt.GraphRemove]="61908",Qt[Kt.Graph]="61909",Qt[Kt.GreaterThanOrEqualTo]="61910",Qt[Kt.GreaterThan]="61911",Qt[Kt.GridView]="61912",Qt[Kt.Grid]="61913",Qt[Kt.GroupItem]="62282",Qt[Kt.GroupObjects]="61914",Qt[Kt.GroupedBarChart]="61915",Qt[Kt.HandDown]="61916",Qt[Kt.HandLeft]="61917",Qt[Kt.HandRight]="61918",Qt[Kt.HandUp]="61919",Qt[Kt.Hand]="61920",Qt[Kt.Hat]="61921",Qt[Kt.HeaderOne]="61922",Qt[Kt.HeaderThree]="61923",Qt[Kt.HeaderTwo]="61924",Qt[Kt.Header]="61925",Qt[Kt.Headset]="61926",Qt[Kt.HeartBroken]="61927",Qt[Kt.Heart]="61928",Qt[Kt.HeatGrid]="61929",Qt[Kt.Heatmap]="61930",Qt[Kt.Helicopter]="61931",Qt[Kt.Help]="61932",Qt[Kt.HelperManagement]="61933",Qt[Kt.Hexagon]="62324",Qt[Kt.HighPriority]="61934",Qt[Kt.HighVoltagePole]="62259",Qt[Kt.Highlight]="61935",Qt[Kt.History]="61936",Qt[Kt.Home]="61937",Qt[Kt.HorizontalBarChartAsc]="61938",Qt[Kt.HorizontalBarChartDesc]="61939",Qt[Kt.HorizontalBarChart]="61940",Qt[Kt.HorizontalDistribution]="61941",Qt[Kt.HorizontalInbetween]="62249",Qt[Kt.Hurricane]="61942",Qt[Kt.IdNumber]="61943",Qt[Kt.ImageRotateLeft]="61944",Qt[Kt.ImageRotateRight]="61945",Qt[Kt.Import]="61946",Qt[Kt.InboxFiltered]="61947",Qt[Kt.InboxGeo]="61948",Qt[Kt.InboxSearch]="61949",Qt[Kt.InboxUpdate]="61950",Qt[Kt.Inbox]="61951",Qt[Kt.InfoSign]="61952",Qt[Kt.Inheritance]="61953",Qt[Kt.InheritedGroup]="61954",Qt[Kt.InnerJoin]="61955",Qt[Kt.Input]="62283",Qt[Kt.Insert]="61956",Qt[Kt.Intelligence]="62263",Qt[Kt.Intersection]="61957",Qt[Kt.IpAddress]="61958",Qt[Kt.IssueClosed]="61959",Qt[Kt.IssueNew]="61960",Qt[Kt.Issue]="61961",Qt[Kt.Italic]="61962",Qt[Kt.JoinTable]="61963",Qt[Kt.KeyBackspace]="61964",Qt[Kt.KeyCommand]="61965",Qt[Kt.KeyControl]="61966",Qt[Kt.KeyDelete]="61967",Qt[Kt.KeyEnter]="61968",Qt[Kt.KeyEscape]="61969",Qt[Kt.KeyOption]="61970",Qt[Kt.KeyShift]="61971",Qt[Kt.KeyTab]="61972",Qt[Kt.Key]="61973",Qt[Kt.KnownVehicle]="61974",Qt[Kt.LabTest]="61975",Qt[Kt.Label]="61976",Qt[Kt.LayerOutline]="61977",Qt[Kt.Layer]="61978",Qt[Kt.Layers]="61979",Qt[Kt.LayoutAuto]="61980",Qt[Kt.LayoutBalloon]="61981",Qt[Kt.LayoutBottomRowThreeTiles]="62308",Qt[Kt.LayoutBottomRowTwoTiles]="62307",Qt[Kt.LayoutCircle]="61982",Qt[Kt.LayoutGrid]="61983",Qt[Kt.LayoutGroupBy]="61984",Qt[Kt.LayoutHierarchy]="61985",Qt[Kt.LayoutLeftColumnThreeTiles]="62310",Qt[Kt.LayoutLeftColumnTwoTiles]="62309",Qt[Kt.LayoutLinear]="61986",Qt[Kt.LayoutRightColumnThreeTiles]="62312",Qt[Kt.LayoutRightColumnTwoTiles]="62311",Qt[Kt.LayoutSkewGrid]="61987",Qt[Kt.LayoutSortedClusters]="61988",Qt[Kt.LayoutThreeColumns]="62305",Qt[Kt.LayoutThreeRows]="62306",Qt[Kt.LayoutTopRowThreeTiles]="62314",Qt[Kt.LayoutTopRowTwoTiles]="62313",Qt[Kt.LayoutTwoColumns]="62303",Qt[Kt.LayoutTwoRows]="62304",Qt[Kt.Layout]="61989",Qt[Kt.Learning]="61990",Qt[Kt.LeftJoin]="61991",Qt[Kt.LengthenText]="62270",Qt[Kt.LessThanOrEqualTo]="61992",Qt[Kt.LessThan]="61993",Qt[Kt.Lifesaver]="61994",Qt[Kt.Lightbulb]="61995",Qt[Kt.Lightning]="61996",Qt[Kt.Link]="61997",Qt[Kt.LinkedSquares]="62341",Qt[Kt.ListColumns]="61998",Qt[Kt.ListDetailView]="61999",Qt[Kt.List]="62000",Qt[Kt.Locate]="62001",Qt[Kt.Lock]="62002",Qt[Kt.Locomotive]="62267",Qt[Kt.LogIn]="62003",Qt[Kt.LogOut]="62004",Qt[Kt.LowVoltagePole]="62258",Qt[Kt.Manual]="62005",Qt[Kt.ManuallyEnteredData]="62006",Qt[Kt.ManyToMany]="62007",Qt[Kt.ManyToOne]="62008",Qt[Kt.MapCreate]="62009",Qt[Kt.MapMarker]="62010",Qt[Kt.Map]="62011",Qt[Kt.Maximize]="62012",Qt[Kt.Media]="62013",Qt[Kt.MenuClosed]="62014",Qt[Kt.MenuOpen]="62015",Qt[Kt.Menu]="62016",Qt[Kt.MergeColumns]="62017",Qt[Kt.MergeLinks]="62018",Qt[Kt.Microphone]="62275",Qt[Kt.Minimize]="62019",Qt[Kt.Minus]="62020",Qt[Kt.MobilePhone]="62021",Qt[Kt.MobileVideo]="62022",Qt[Kt.ModalFilled]="62023",Qt[Kt.Modal]="62024",Qt[Kt.Model]="62269",Qt[Kt.Moon]="62025",Qt[Kt.More]="62026",Qt[Kt.Mountain]="62027",Qt[Kt.Move]="62028",Qt[Kt.Mugshot]="62029",Qt[Kt.MultiSelect]="62030",Qt[Kt.Music]="62031",Qt[Kt.Nest]="62032",Qt[Kt.NewDrawing]="62033",Qt[Kt.NewGridItem]="62034",Qt[Kt.NewLayer]="62035",Qt[Kt.NewLayers]="62036",Qt[Kt.NewLink]="62037",Qt[Kt.NewObject]="62038",Qt[Kt.NewPerson]="62039",Qt[Kt.NewPrescription]="62040",Qt[Kt.NewShield]="62281",Qt[Kt.NewTextBox]="62041",Qt[Kt.Ninja]="62042",Qt[Kt.NotEqualTo]="62043",Qt[Kt.NotificationsAdd]="62360",Qt[Kt.NotificationsSnooze]="62044",Qt[Kt.NotificationsUpdated]="62045",Qt[Kt.Notifications]="62046",Qt[Kt.NumberedList]="62047",Qt[Kt.Numerical]="62048",Qt[Kt.ObjectView]="62352",Qt[Kt.Office]="62049",Qt[Kt.Offline]="62050",Qt[Kt.OilField]="62051",Qt[Kt.OneColumn]="62052",Qt[Kt.OneToMany]="62053",Qt[Kt.OneToOne]="62054",Qt[Kt.OpenApplication]="62251",Qt[Kt.Outdated]="62055",Qt[Kt.Output]="62320",Qt[Kt.Package]="62325",Qt[Kt.PageLayout]="62056",Qt[Kt.PanelStats]="62057",Qt[Kt.PanelTable]="62058",Qt[Kt.Panel]="62337",Qt[Kt.Paperclip]="62059",Qt[Kt.Paragraph]="62060",Qt[Kt.PasteVariable]="62278",Qt[Kt.PathSearch]="62061",Qt[Kt.Path]="62062",Qt[Kt.Pause]="62063",Qt[Kt.People]="62064",Qt[Kt.Percentage]="62065",Qt[Kt.Person]="62066",Qt[Kt.PhoneCall]="62279",Qt[Kt.PhoneForward]="62280",Qt[Kt.PhoneSearch]="62359",Qt[Kt.Phone]="62067",Qt[Kt.PieChart]="62068",Qt[Kt.Pill]="62326",Qt[Kt.Pin]="62069",Qt[Kt.Pistol]="62364",Qt[Kt.PivotTable]="62070",Qt[Kt.Pivot]="62071",Qt[Kt.Play]="62072",Qt[Kt.Playbook]="62244",Qt[Kt.Plus]="62073",Qt[Kt.PolygonFilter]="62074",Qt[Kt.Power]="62075",Qt[Kt.PredictiveAnalysis]="62076",Qt[Kt.Prescription]="62077",Qt[Kt.Presentation]="62078",Qt[Kt.Print]="62079",Qt[Kt.Projects]="62080",Qt[Kt.Properties]="62081",Qt[Kt.Property]="62082",Qt[Kt.PublishFunction]="62083",Qt[Kt.Pulse]="62084",Qt[Kt.Rain]="62085",Qt[Kt.Random]="62086",Qt[Kt.RangeRing]="62321",Qt[Kt.Record]="62087",Qt[Kt.RectHeight]="62245",Qt[Kt.RectWidth]="62246",Qt[Kt.Rectangle]="62241",Qt[Kt.Redo]="62088",Qt[Kt.Refresh]="62089",Qt[Kt.Regex]="62255",Qt[Kt.RegressionChart]="62090",Qt[Kt.RemoveColumnLeft]="62091",Qt[Kt.RemoveColumnRight]="62092",Qt[Kt.RemoveColumn]="62093",Qt[Kt.RemoveRowBottom]="62094",Qt[Kt.RemoveRowTop]="62095",Qt[Kt.Remove]="62096",Qt[Kt.Repeat]="62097",Qt[Kt.Reset]="62098",Qt[Kt.Resolve]="62099",Qt[Kt.Rig]="62100",Qt[Kt.RightJoin]="62101",Qt[Kt.Ring]="62102",Qt[Kt.RocketSlant]="62103",Qt[Kt.Rocket]="62104",Qt[Kt.RotateCcw]="62345",Qt[Kt.RotateCw]="62344",Qt[Kt.RotateDocument]="62105",Qt[Kt.RotatePage]="62106",Qt[Kt.Route]="62107",Qt[Kt.RunHistory]="62355",Qt[Kt.Satellite]="62108",Qt[Kt.Saved]="62109",Qt[Kt.ScatterPlot]="62110",Qt[Kt.SearchAround]="62111",Qt[Kt.SearchTemplate]="62112",Qt[Kt.SearchText]="62113",Qt[Kt.Search]="62114",Qt[Kt.SegmentedControl]="62115",Qt[Kt.Select]="62116",Qt[Kt.SelectionBoxAdd]="62362",Qt[Kt.SelectionBoxEdit]="62363",Qt[Kt.SelectionBox]="62361",Qt[Kt.Selection]="62117",Qt[Kt.SendBackward]="62293",Qt[Kt.SendMessage]="62118",Qt[Kt.SendToGraph]="62119",Qt[Kt.SendToMap]="62120",Qt[Kt.SendTo]="62121",Qt[Kt.Sensor]="62268",Qt[Kt.SeriesAdd]="62122",Qt[Kt.SeriesConfiguration]="62123",Qt[Kt.SeriesDerived]="62124",Qt[Kt.SeriesFiltered]="62125",Qt[Kt.SeriesSearch]="62126",Qt[Kt.ServerInstall]="62327",Qt[Kt.Server]="62328",Qt[Kt.Settings]="62127",Qt[Kt.Shapes]="62128",Qt[Kt.Share]="62129",Qt[Kt.SharedFilter]="62130",Qt[Kt.Shield]="62131",Qt[Kt.Ship]="62132",Qt[Kt.Shop]="62133",Qt[Kt.ShoppingCart]="62134",Qt[Kt.ShortenText]="62271",Qt[Kt.SignalSearch]="62135",Qt[Kt.SimCard]="62136",Qt[Kt.Slash]="62137",Qt[Kt.SmallCross]="62138",Qt[Kt.SmallInfoSign]="62260",Qt[Kt.SmallMinus]="62139",Qt[Kt.SmallPlus]="62140",Qt[Kt.SmallSquare]="62141",Qt[Kt.SmallTick]="62142",Qt[Kt.Snowflake]="62143",Qt[Kt.SoccerBall]="62288",Qt[Kt.SocialMedia]="62144",Qt[Kt.SortAlphabeticalDesc]="62145",Qt[Kt.SortAlphabetical]="62146",Qt[Kt.SortAsc]="62147",Qt[Kt.SortDesc]="62148",Qt[Kt.SortNumericalDesc]="62149",Qt[Kt.SortNumerical]="62150",Qt[Kt.Sort]="62151",Qt[Kt.SpellCheck]="62272",Qt[Kt.SplitColumns]="62152",Qt[Kt.SportsStadium]="62289",Qt[Kt.Square]="62153",Qt[Kt.StackedChart]="62154",Qt[Kt.StadiumGeometry]="62155",Qt[Kt.StarEmpty]="62156",Qt[Kt.Star]="62157",Qt[Kt.StepBackward]="62158",Qt[Kt.StepChart]="62159",Qt[Kt.StepForward]="62160",Qt[Kt.Stop]="62161",Qt[Kt.Stopwatch]="62162",Qt[Kt.Strikethrough]="62163",Qt[Kt.Style]="62164",Qt[Kt.Subscript]="62265",Qt[Kt.SubtractRightJoin]="62354",Qt[Kt.Superscript]="62266",Qt[Kt.SwapHorizontal]="62165",Qt[Kt.SwapVertical]="62166",Qt[Kt.Switch]="62167",Qt[Kt.SymbolCircle]="62168",Qt[Kt.SymbolCross]="62169",Qt[Kt.SymbolDiamond]="62170",Qt[Kt.SymbolRectangle]="62242",Qt[Kt.SymbolSquare]="62171",Qt[Kt.SymbolTriangleDown]="62172",Qt[Kt.SymbolTriangleUp]="62173",Qt[Kt.Syringe]="62174",Qt[Kt.TableSync]="62318",Qt[Kt.TagAdd]="62329",Qt[Kt.TagPromote]="62330",Qt[Kt.TagRefresh]="62331",Qt[Kt.TagUndo]="62332",Qt[Kt.Tag]="62175",Qt[Kt.Tags]="62333",Qt[Kt.TakeAction]="62176",Qt[Kt.Tank]="62177",Qt[Kt.Target]="62178",Qt[Kt.Taxi]="62179",Qt[Kt.Team]="62290",Qt[Kt.Temperature]="62180",Qt[Kt.TextHighlight]="62181",Qt[Kt.ThAdd]="62346",Qt[Kt.ThDerived]="62182",Qt[Kt.ThDisconnect]="62183",Qt[Kt.ThFiltered]="62184",Qt[Kt.ThListAdd]="62347",Qt[Kt.ThList]="62185",Qt[Kt.ThVirtualAdd]="62349",Qt[Kt.ThVirtual]="62348",Qt[Kt.Th]="62186",Qt[Kt.ThirdParty]="62187",Qt[Kt.ThumbsDown]="62188",Qt[Kt.ThumbsUp]="62189",Qt[Kt.TickCircle]="62190",Qt[Kt.Tick]="62191",Qt[Kt.Time]="62192",Qt[Kt.TimelineAreaChart]="62193",Qt[Kt.TimelineBarChart]="62194",Qt[Kt.TimelineEvents]="62195",Qt[Kt.TimelineLineChart]="62196",Qt[Kt.Tint]="62197",Qt[Kt.Torch]="62198",Qt[Kt.Tractor]="62199",Qt[Kt.Train]="62200",Qt[Kt.Translate]="62201",Qt[Kt.Trash]="62202",Qt[Kt.Tree]="62203",Qt[Kt.TrendingDown]="62204",Qt[Kt.TrendingUp]="62205",Qt[Kt.Trophy]="62287",Qt[Kt.Truck]="62206",Qt[Kt.TwoColumns]="62207",Qt[Kt.Unarchive]="62208",Qt[Kt.Underline]="62209",Qt[Kt.Undo]="62210",Qt[Kt.UngroupObjects]="62211",Qt[Kt.UnknownVehicle]="62212",Qt[Kt.Unlink]="62277",Qt[Kt.Unlock]="62213",Qt[Kt.Unpin]="62214",Qt[Kt.Unresolve]="62215",Qt[Kt.Updated]="62216",Qt[Kt.Upload]="62217",Qt[Kt.User]="62218",Qt[Kt.Variable]="62219",Qt[Kt.Vector]="62302",Qt[Kt.VerticalBarChartAsc]="62220",Qt[Kt.VerticalBarChartDesc]="62221",Qt[Kt.VerticalDistribution]="62222",Qt[Kt.VerticalInbetween]="62250",Qt[Kt.Video]="62223",Qt[Kt.Virus]="62224",Qt[Kt.VolumeDown]="62225",Qt[Kt.VolumeOff]="62226",Qt[Kt.VolumeUp]="62227",Qt[Kt.Walk]="62228",Qt[Kt.WarningSign]="62229",Qt[Kt.WaterfallChart]="62230",Qt[Kt.Waves]="62231",Qt[Kt.WidgetButton]="62232",Qt[Kt.WidgetFooter]="62233",Qt[Kt.WidgetHeader]="62234",Qt[Kt.Widget]="62235",Qt[Kt.Wind]="62236",Qt[Kt.WrenchRedo]="62334",Qt[Kt.WrenchSnooze]="62335",Qt[Kt.WrenchTime]="62336",Qt[Kt.Wrench]="62237",Qt[Kt.ZoomIn]="62238",Qt[Kt.ZoomOut]="62239",Qt[Kt.ZoomToFit]="62240";var Ede={},Mde={};for(var lF=0,dQ=Object.values(Kt);lF<dQ.length;lF++){var XR=dQ[lF];Ede[eRe(XR)]=XR,Mde[rRe(XR).toUpperCase()]=XR}var ki=Qn(Qn({},Ede),Mde),aRe=new Set(Object.values(ki));function oRe(t){return typeof NODE_ENV<"u"&&NODE_ENV===t}function sRe(t,r){return V2(this,void 0,void 0,function(){var e,n,a;return G2(this,function(u){switch(u.label){case 0:return e=oRe("development")&&typeof performance<"u",e&&(n=performance.now(),console.info("Started '".concat(t,"'..."))),[4,r()];case 1:return u.sent(),e&&(a=Math.round(performance.now()-n),console.info("Finished '".concat(t,"' in ").concat(a,"ms"))),[2]}})})}function lRe(t){return V2(this,void 0,void 0,function(){var r,e;return G2(this,function(n){switch(n.label){case 0:return r=t.loader,e=r===void 0?_2.defaultLoader:r,typeof e!="function"?[3,1]:[2,e];case 1:return e!=="all"?[3,3]:[4,hQ(()=>import("./allPathsLoader-B9-8qUsI.js"),[])];case 2:return[2,n.sent().allPathsLoader];case 3:return[4,hQ(()=>import("./splitPathsBySizeLoader-D4rn6EzK.js"),[])];case 4:return[2,n.sent().splitPathsBySizeLoader]}})})}var US=function(){function t(){this.defaultLoader="split-by-size",this.loadedIconPaths16=new Map,this.loadedIconPaths20=new Map}return t.setLoaderOptions=function(r){r.loader!==void 0&&(_2.defaultLoader=r.loader)},t.load=function(r,e,n){return V2(this,void 0,void 0,function(){var a=this;return G2(this,function(u){switch(u.label){case 0:return Array.isArray(r)||(r=[r]),[4,Promise.all(r.map(function(o){return a.loadImpl(o,e,n)}))];case 1:return u.sent(),[2]}})})},t.loadAll=function(r){return V2(this,void 0,void 0,function(){var e,n=this;return G2(this,function(a){return e=Object.values(ki),sRe("[Blueprint] loading all icons",function(){return V2(n,void 0,void 0,function(){return G2(this,function(u){switch(u.label){case 0:return[4,Promise.all([this.load(e,Fa.STANDARD,r),this.load(e,Fa.LARGE,r)])];case 1:return u.sent(),[2]}})})}),[2]})})},t.getPaths=function(r,e){if(this.isValidIconName(r)){var n=e<Fa.LARGE?_2.loadedIconPaths16:_2.loadedIconPaths20;return n.get(r)}},t.loadImpl=function(r,e,n){return n===void 0&&(n={}),V2(this,void 0,void 0,function(){var a,u,o,f,i;return G2(this,function(s){switch(s.label){case 0:return this.isValidIconName(r)?(a=e<Fa.LARGE?_2.loadedIconPaths16:_2.loadedIconPaths20,a.has(r)?[2]:[4,lRe(n)]):(console.error("[Blueprint] Unknown icon '".concat(r,"'")),[2]);case 1:u=s.sent(),s.label=2;case 2:return s.trys.push([2,4,,5]),o=e<Fa.LARGE?Fa.STANDARD:Fa.LARGE,[4,u(r,o)];case 3:return f=s.sent(),a.set(r,f),[3,5];case 4:return i=s.sent(),console.error("[Blueprint] Unable to load ".concat(e,"px icon '").concat(r,"'"),i),[3,5];case 5:return[2]}})})},t.isValidIconName=function(r){return aRe.has(r)},t}(),_2=new US,uRe="bp5",vQ="".concat(uRe,"-icon"),gQ=new Map;function cRe(t){var r,e=(r=gQ.get(t))!==null&&r!==void 0?r:0;return gQ.set(t,e+1),"".concat(t,"-").concat(e)}var Ph=St.forwardRef(function(t,r){var e=t.children,n=t.className,a=t.color,u=t.htmlTitle,o=t.iconName,f=t.size,i=f===void 0?Fa.STANDARD:f,s=t.svgProps,d=t.tagName,l=d===void 0?"span":d,h=t.title,y=Ls(t,["children","className","color","htmlTitle","iconName","size","svgProps","tagName","title"]),b=i>=Fa.LARGE,C=b?Fa.LARGE:Fa.STANDARD,m="0 0 ".concat(C," ").concat(C),c=cRe("iconTitle"),v=Qn({fill:a,height:i,role:"img",viewBox:m,width:i},s);return l===null?St.createElement("svg",Qn({"aria-labelledby":h?c:void 0,"data-icon":o,ref:r},v,y,{className:_i(n,s==null?void 0:s.className)}),h&&St.createElement("title",{id:c},h),e):St.createElement(l,Qn(Qn({"aria-hidden":h?void 0:!0},y),{className:_i(vQ,"".concat(vQ,"-").concat(o),n),ref:r,title:u}),St.createElement("svg",Qn({"data-icon":o},v,{className:s==null?void 0:s.className}),h&&St.createElement("title",null,h),e))});Ph.displayName="Blueprint5.SVGIconContainer";var wG=St.forwardRef(function(t,r){var e=t.size>=Fa.LARGE,n=e?Fa.LARGE:Fa.STANDARD,a="".concat(-1*n/.05/2),u={transformOrigin:"center"};return St.createElement(Ph,Qn({iconName:"arrow-down",ref:r},t),St.createElement("path",{d:e?"M320 180C314 180 310 178 306 174L220 88V360C220 370 212 380 200 380S180 370 180 360V88L94 174C90 178 86 180 80 180C70 180 60 172 60 160C60 154 62 150 66 146L186 26C190 22 194 20 200 20S210 22 214 26L334 146C338 150 340 154 340 160C340 172 330 180 320 180L320 180z":"M260 160C254 160 250 158 246 154L180 88V280C180 290 172 300 160 300S140 290 140 280V88L74 154C70 158 66 160 60 160C50 160 40 150 40 140C40 134 42 130 46 126L146 26C150 22 154 20 160 20S170 22 174 26L274 126C278 130 280 134 280 140C280 152 272 160 260 160L260 160z",fillRule:"evenodd",transform:"scale(0.05, -0.05) translate(".concat(a,", ").concat(a,")"),style:u}))});wG.defaultProps={size:Fa.STANDARD};wG.displayName="Blueprint5.Icon.ArrowDown";var TG=St.forwardRef(function(t,r){var e=t.size>=Fa.LARGE,n=e?Fa.LARGE:Fa.STANDARD,a="".concat(-1*n/.05/2),u={transformOrigin:"center"};return St.createElement(Ph,Qn({iconName:"arrow-left",ref:r},t),St.createElement("path",{d:e?"M360 220H88.2L174 305.8C177.8 309.4 180 314.4 180 320C180 331 171 340 160 340C154.4 340 149.4 337.8 145.8 334.2L25.8 214.2C22.2 210.6 20 205.6 20 200C20 194.4 22.2 189.4 25.8 185.8L145.8 65.8C149.4 62.2 154.4 60 160 60C171 60 180 69 180 80C180 85.6 177.8 90.6 174.2 94.2000000000001L88.2 180H360C371 180 380 189 380 200C380 211 371 220 360 220z":"M279.8 180.2H88.2L154 246C157.6 249.6 159.8 254.6 159.8 260.2C159.8 271.2 150.8 280.2 139.8 280.2C134.2 280.2 129.2 278 125.6 274.4L25.6 174.4C22 170.6 19.8 165.6 19.8 160.2S22 149.6 25.6 146L125.6 46C129.2 42.4 134.2 40.2 139.8 40.2C150.8 40.2 159.8 49.2 159.8 60.2000000000001C159.8 65.8 157.6 70.8 154 74.4L88.2 140.2H280C291 140.2 300 149.2 300 160.2S290.8 180.2 279.8 180.2z",fillRule:"evenodd",transform:"scale(0.05, -0.05) translate(".concat(a,", ").concat(a,")"),style:u}))});TG.defaultProps={size:Fa.STANDARD};TG.displayName="Blueprint5.Icon.ArrowLeft";var _G=St.forwardRef(function(t,r){var e=t.size>=Fa.LARGE,n=e?Fa.LARGE:Fa.STANDARD,a="".concat(-1*n/.05/2),u={transformOrigin:"center"};return St.createElement(Ph,Qn({iconName:"arrow-right",ref:r},t),St.createElement("path",{d:e?"M374.2000000000001 214.2L254.2 334.2000000000001C250.6 337.8 245.6 340 240 340C229 340 220 331 220 320C220 314.4 222.2 309.4 225.8 305.8L311.8 220H40C29 220 20 211 20 200C20 189 29 180 40 180H311.8L226 94.2000000000001C222.2 90.6 220 85.6 220 80C220 69 229 60 240 60C245.6 60 250.6 62.2 254.2 65.8L374.2000000000001 185.8C377.8 189.4 380 194.4 380 200C380 205.6 377.8 210.6 374.2000000000001 214.2z":"M294 174.2L194 274.2C190.4 278 185.4 280.2 179.8 280.2C168.8 280.2 159.8 271.2 159.8 260.2C159.8 254.6 162 249.6 165.6 246L231.4 180.2H39.8C28.8 180.2 19.8 171.2 19.8 160.2S28.8 140.2 39.8 140.2H231.6L165.8 74.4C162.2 70.8 160 65.8 160 60.1999999999999C160 49.1999999999999 169 40.1999999999999 180 40.1999999999999C185.6 40.1999999999999 190.6 42.4 194.2 45.9999999999999L294.2000000000001 146C297.8 149.5999999999999 300 154.5999999999999 300 160.1999999999999S297.6 170.6 294 174.2z",fillRule:"evenodd",transform:"scale(0.05, -0.05) translate(".concat(a,", ").concat(a,")"),style:u}))});_G.defaultProps={size:Fa.STANDARD};_G.displayName="Blueprint5.Icon.ArrowRight";var SG=St.forwardRef(function(t,r){var e=t.size>=Fa.LARGE,n=e?Fa.LARGE:Fa.STANDARD,a="".concat(-1*n/.05/2),u={transformOrigin:"center"};return St.createElement(Ph,Qn({iconName:"arrow-up",ref:r},t),St.createElement("path",{d:e?"M334 254L214 374C210 378 206 380 200 380S190 378 186 374L66 254C62 250 60 246 60 240C60 228 70 220 80 220C86 220 90 222 94 226L180 312V40C180 30 188 20 200 20S220 30 220 40V312L306 226C310 222 314 220 320 220C330 220 340 228 340 240C340 246 338 250 334 254L334 254z":"M274 194L174 294C170 298 166 300 160 300S150 298 146 294L46 194C42 190 40 186 40 180C40 168 50 160 60 160C66 160 70 162 74 166L140 232V40C140 28 148 20 160 20S180 28 180 40V232L246 166C250 162 254 160 260 160C272 160 280 168 280 180C280 186 278 190 274 194L274 194z",fillRule:"evenodd",transform:"scale(0.05, -0.05) translate(".concat(a,", ").concat(a,")"),style:u}))});SG.defaultProps={size:Fa.STANDARD};SG.displayName="Blueprint5.Icon.ArrowUp";var EG=St.forwardRef(function(t,r){var e=t.size>=Fa.LARGE,n=e?Fa.LARGE:Fa.STANDARD,a="".concat(-1*n/.05/2),u={transformOrigin:"center"};return St.createElement(Ph,Qn({iconName:"caret-right",ref:r},t),St.createElement("path",{d:e?"M280 200C280 206.2 277 211.4 272.6 215.2L272.8 215.4L152.8 315.4L152.6 315.2C149.2 318 144.8 320 140 320C129 320 120 311 120 300V100C120 89 129 80 140 80C144.8 80 149.2 82 152.6 84.8L152.8 84.6L272.8 184.6L272.6 184.8C277 188.6 280 193.8 280 200z":"M220 160C220 163 218.6 165.6 216.6 167.4L216.6 167.4L136.6 237.4L136.6 237.4C134.8 239 132.6 240 130 240C124.4 240 120 235.6 120 230V90C120 84.4 124.4 80 130 80C132.6 80 134.8 81 136.6 82.6C136.6 82.6 136.6 82.6 136.6 82.6L216.6 152.6L216.6 152.6C218.6 154.4 220 157 220 160z",fillRule:"evenodd",transform:"scale(0.05, -0.05) translate(".concat(a,", ").concat(a,")"),style:u}))});EG.defaultProps={size:Fa.STANDARD};EG.displayName="Blueprint5.Icon.CaretRight";var aD=St.forwardRef(function(t,r){var e=t.size>=Fa.LARGE,n=e?Fa.LARGE:Fa.STANDARD,a="".concat(-1*n/.05/2),u={transformOrigin:"center"};return St.createElement(Ph,Qn({iconName:"cross",ref:r},t),St.createElement("path",{d:e?"M228.2 200L314 285.8C317.8 289.4 320 294.4 320 300C320 311 311 320 300 320C294.4000000000001 320 289.4000000000001 317.8 285.8 314.2L200 228.2L114.2 314.2C110.6 317.8 105.6 320 100 320C89 320 80 311 80 300C80 294.4 82.2 289.4 85.8 285.8L171.8 200L86 114.2000000000001C82.2 110.6 80 105.6 80 100C80 89 89 80 100 80C105.6 80 110.6 82.2 114.2 85.8L200 171.8L285.8 86C289.4000000000001 82.2 294.4000000000001 80 300 80C311 80 320 89 320 100C320 105.6 317.8 110.6 314.2000000000001 114.2000000000001L228.2 200z":"M188.2 160L254 225.8C257.8 229.4 260 234.4 260 240C260 251 251 260 240 260C234.4 260 229.4 257.8 225.8 254.2L160 188.2L94.2 254.2C90.6 257.8 85.6 260 80 260C69 260 60 251 60 240C60 234.4 62.2 229.4 65.8 225.8L131.8 160L66 94.2C62.2 90.6 60 85.6 60 80C60 69 69 60 80 60C85.6 60 90.6 62.2 94.2 65.8L160 131.8L225.8 66C229.4 62.2 234.4 60 240 60C251 60 260 69 260 80C260 85.6 257.8 90.6 254.2 94.2L188.2 160z",fillRule:"evenodd",transform:"scale(0.05, -0.05) translate(".concat(a,", ").concat(a,")"),style:u}))});aD.defaultProps={size:Fa.STANDARD};aD.displayName="Blueprint5.Icon.Cross";var MG=St.forwardRef(function(t,r){var e=t.size>=Fa.LARGE,n=e?Fa.LARGE:Fa.STANDARD,a="".concat(-1*n/.05/2),u={transformOrigin:"center"};return St.createElement(Ph,Qn({iconName:"drag-handle-vertical",ref:r},t),St.createElement("path",{d:e?"M150 280C133.4 280 120 266.6 120 250S133.4 220 150 220S180 233.4 180 250S166.6 280 150 280zM150 180C133.4 180 120 166.6 120 150S133.4 120 150 120S180 133.4 180 150S166.6 180 150 180zM150 80C133.4 80 120 66.6 120 50S133.4 20 150 20S180 33.4 180 50S166.6 80 150 80zM250 320C266.6 320 280 333.4 280 350S266.6 380 250 380S220 366.6 220 350S233.4 320 250 320zM150 380C133.4 380 120 366.6 120 350S133.4 320 150 320S180 333.4 180 350S166.6 380 150 380zM250 180C233.4 180 220 166.6 220 150S233.4 120 250 120S280 133.4 280 150S266.6 180 250 180zM250 80C233.4 80 220 66.6 220 50S233.4 20 250 20S280 33.4 280 50S266.6 80 250 80zM250 280C233.4 280 220 266.6 220 250S233.4 220 250 220S280 233.4 280 250S266.6 280 250 280z":"M120 140C109 140 100 131 100 120C100 109 109 100 120 100S140 109 140 120C140 131 131 140 120 140zM200 260C211 260 220 269 220 280C220 291 211 300 200 300S180 291 180 280C180 269 189 260 200 260zM120 60C109 60 100 51 100 40C100 29 109 20 120 20S140 29 140 40C140 51 131 60 120 60zM120 220C109 220 100 211 100 200C100 189 109 180 120 180S140 189 140 200C140 211 131 220 120 220zM120 300C109 300 100 291 100 280C100 269 109 260 120 260S140 269 140 280C140 291 131 300 120 300zM200 140C189 140 180 131 180 120C180 109 189 100 200 100S220 109 220 120C220 131 211 140 200 140zM200 220C189 220 180 211 180 200C180 189 189 180 200 180S220 189 220 200C220 211 211 220 200 220zM200 60C189 60 180 51 180 40C180 29 189 20 200 20S220 29 220 40C220 51 211 60 200 60z",fillRule:"evenodd",transform:"scale(0.05, -0.05) translate(".concat(a,", ").concat(a,")"),style:u}))});MG.defaultProps={size:Fa.STANDARD};MG.displayName="Blueprint5.Icon.DragHandleVertical";var CO=St.forwardRef(function(t,r){var e=t.size>=Fa.LARGE,n=e?Fa.LARGE:Fa.STANDARD,a="".concat(-1*n/.05/2),u={transformOrigin:"center"};return St.createElement(Ph,Qn({iconName:"key-command",ref:r},t),St.createElement("path",{d:e?"M310 160H280V240H310C348.6 240 380 271.4 380 310S348.6 380 310 380S240 348.6 240 310V280H160V310C160 348.6 128.6 380 90 380S20 348.6 20 310S51.4 240 90 240H120V160H90C51.4 160 20 128.6 20 90S51.4 20 90 20S160 51.4 160 90V120H240V90C240 51.4 271.4 20 310 20S380 51.4 380 90S348.6 160 310 160zM310 340C326.6 340 340 326.6 340 310S326.6 280 310 280S280 293.4 280 310S293.4 340 310 340zM90 60C73.4 60 60 73.4 60 90S73.4 120 90 120S120 106.6 120 90S106.6 60 90 60zM90 280C73.4 280 60 293.4 60 310S73.4 340 90 340S120 326.6 120 310S106.6 280 90 280zM240 160H160V240H240V160zM310 60C293.4 60 280 73.4 280 90S293.4 120 310 120S340 106.6 340 90S326.6 60 310 60z":"M240 140H220V180H240C273.2 180 300 206.8 300 240S273.2 300 240 300S180 273.2 180 240V220H140V240C140 273.2 113.2 300 80 300S20 273.2 20 240S46.8 180 80 180H100V140H80C46.8 140 20 113.2 20 80S46.8 20 80 20S140 46.8 140 80V100H180V80C180 46.8 206.8 20 240 20S300 46.8 300 80S273.2 140 240 140zM240 260C251 260 260 251 260 240C260 229 251 220 240 220S220 229 220 240C220 251 229 260 240 260zM80 60C69 60 60 69 60 80C60 91 69 100 80 100S100 91 100 80C100 69 91 60 80 60zM80 220C69 220 60 229 60 240C60 251 69 260 80 260S100 251 100 240C100 229 91 220 80 220zM180 140H140V180H180V140zM240 60C229 60 220 69 220 80C220 91 229 100 240 100S260 91 260 80C260 69 251 60 240 60z",fillRule:"evenodd",transform:"scale(0.05, -0.05) translate(".concat(a,", ").concat(a,")"),style:u}))});CO.defaultProps={size:Fa.STANDARD};CO.displayName="Blueprint5.Icon.KeyCommand";var RG=St.forwardRef(function(t,r){var e=t.size>=Fa.LARGE,n=e?Fa.LARGE:Fa.STANDARD,a="".concat(-1*n/.05/2),u={transformOrigin:"center"};return St.createElement(Ph,Qn({iconName:"key-control",ref:r},t),St.createElement("path",{d:e?"M334.2000000000001 254.2L214.2 374.2C210.6 377.8 205.6 380 200 380S189.4 377.8 185.8 374.2L65.8 254.2C62.2 250.6 60 245.6 60 240C60 229 69 220 80 220C85.6 220 90.6 222.2 94.2 225.8L200 331.8L305.8 226C309.4000000000001 222.2 314.4000000000001 220 320 220C331 220 340 229 340 240C340 245.6 337.8 250.6 334.2000000000001 254.2z":"M254.2 214.2L174.2 294.2C170.6 297.8 165.6 300 160 300S149.4 297.8 145.8 294.2L65.8 214.2C62.2 210.6 60 205.6 60 200C60 189 69 180 80 180C85.6 180 90.6 182.2 94.2 185.8L160 251.8L225.8 186C229.4 182.2 234.4 180 240 180C251 180 260 189 260 200C260 205.6 257.8 210.6 254.2 214.2z",fillRule:"evenodd",transform:"scale(0.05, -0.05) translate(".concat(a,", ").concat(a,")"),style:u}))});RG.defaultProps={size:Fa.STANDARD};RG.displayName="Blueprint5.Icon.KeyControl";var PG=St.forwardRef(function(t,r){var e=t.size>=Fa.LARGE,n=e?Fa.LARGE:Fa.STANDARD,a="".concat(-1*n/.05/2),u={transformOrigin:"center"};return St.createElement(Ph,Qn({iconName:"key-delete",ref:r},t),St.createElement("path",{d:e?"M394.2000000000001 214.2L274.2000000000001 334.2000000000001C270.6 337.8 265.6 340 260 340H20C9 340 0 331 0 320V80C0 69 9 60 20 60H260C265.6 60 270.6 62.2 274.2000000000001 65.8L394.2000000000001 185.8C397.8 189.4 400 194.4 400 200C400 205.6 397.8 210.6 394.2000000000001 214.2zM214.2 154.2C217.8 150.6 220 145.6 220 140C220 129 211 120 200 120C194.4 120 189.4 122.2 185.8 125.8L140 171.8L94.2 126C90.6 122.2 85.6 120 80 120C69 120 60 129 60 140C60 145.6 62.2 150.6 65.8 154.2L111.8 200L65.8 245.8C62.2 249.4 60 254.4 60 260C60 271 69 280 80 280C85.6 280 90.6 277.8 94.2 274.2L140 228.2L185.8 274C189.4 277.8 194.4 280 200 280C211 280 220 271 220 260C220 254.4 217.8 249.4 214.2 245.8L168.2 200L214.2 154.2z":"M314.2000000000001 174.2L214.2 274.2C210.6 277.8 205.6 280 200 280H20C9 280 0 271 0 260V60C0 49 9 40 20 40H200C205.6 40 210.6 42.2 214.2 45.8L314.2000000000001 145.8C317.8 149.4 320 154.4 320 160C320 165.6 317.8 170.6 314.2000000000001 174.2zM174.2 134.2C177.8 130.6 180 125.6 180 120C180 109 171 100 160 100C154.4 100 149.4 102.2 145.8 105.8L120 131.8L94.2 106C90.6 102.2 85.6 100 80 100C69 100 60 109 60 120C60 125.6 62.2 130.6 65.8 134.2L91.8 160L65.8 185.8C62.2 189.4 60 194.4 60 200C60 211 69 220 80 220C85.6 220 90.6 217.8 94.2 214.2L120 188.2L145.8 214C149.4 217.8 154.4 220 160 220C171 220 180 211 180 200C180 194.4 177.8 189.4 174.2 185.8L148.2 160L174.2 134.2z",fillRule:"evenodd",transform:"scale(0.05, -0.05) translate(".concat(a,", ").concat(a,")"),style:u}))});PG.defaultProps={size:Fa.STANDARD};PG.displayName="Blueprint5.Icon.KeyDelete";var LG=St.forwardRef(function(t,r){var e=t.size>=Fa.LARGE,n=e?Fa.LARGE:Fa.STANDARD,a="".concat(-1*n/.05/2),u={transformOrigin:"center"};return St.createElement(Ph,Qn({iconName:"key-enter",ref:r},t),St.createElement("path",{d:e?"M360 360C349 360 340 351 340 340V240C340 195.8 304.2000000000001 160 260 160H88.2L134 205.8C137.8 209.4 140 214.4 140 220C140 231 131 240 120 240C114.4 240 109.4 237.8 105.8 234.2L25.8 154.2C22.2 150.6 20 145.6 20 140C20 134.4 22.2 129.4 25.8 125.8L105.8 45.8C109.4 42.2 114.4 40 120 40C131 40 140 49 140 60C140 65.6 137.8 70.6 134.2 74.2000000000001L88.2 120H260C326.2 120 380 173.8 380 240V340C380 351 371 360 360 360z":"M280 280C269 280 260 271 260 260V200C260 166.8 233.2 140 200 140H88.2L114 165.8C117.8 169.4 120 174.4 120 180C120 191 111 200 100 200C94.4 200 89.4 197.8 85.8 194.2L25.8 134.2C22.2 130.6 20 125.6 20 120C20 114.4 22.2 109.4 25.8 105.8L85.8 45.8C89.4 42.2 94.4 40 100 40C111 40 120 49 120 60C120 65.6 117.8 70.6 114.2 74.2L88.2 100H200C255.2 100 300 144.8 300 200V260C300 271 291 280 280 280z",fillRule:"evenodd",transform:"scale(0.05, -0.05) translate(".concat(a,", ").concat(a,")"),style:u}))});LG.defaultProps={size:Fa.STANDARD};LG.displayName="Blueprint5.Icon.KeyEnter";var OG=St.forwardRef(function(t,r){var e=t.size>=Fa.LARGE,n=e?Fa.LARGE:Fa.STANDARD,a="".concat(-1*n/.05/2),u={transformOrigin:"center"};return St.createElement(Ph,Qn({iconName:"key-option",ref:r},t),St.createElement("path",{d:e?"M260 320H380C391 320 400 329 400 340C400 351 391 360 380 360H260C249 360 240 351 240 340C240 329 249 320 260 320zM380 80H291.6L137.4 350L137 349.8C133.6 355.8 127.4 360 120 360H20C9 360 0 351 0 340C0 329 9 320 20 320H108.4L262.6 50L262.8 50.2C266.4 44.2 272.6 40 280 40H380C391 40 400 49 400 60C400 71 391 80 380 80z":"M220 240H300C311 240 320 249 320 260C320 271 311 280 300 280H220C209 280 200 271 200 260C200 249 209 240 220 240zM300 80H231.4L117.2 270.2L116.8 270.2C113.4 276 107.2 280 100 280H20C9 280 0 271 0 260C0 249 9 240 20 240H88.6L202.8 49.8L203 50C206.6 44 212.8 40 220 40H300C311 40 320 49 320 60C320 71 311 80 300 80z",fillRule:"evenodd",transform:"scale(0.05, -0.05) translate(".concat(a,", ").concat(a,")"),style:u}))});OG.defaultProps={size:Fa.STANDARD};OG.displayName="Blueprint5.Icon.KeyOption";var kG=St.forwardRef(function(t,r){var e=t.size>=Fa.LARGE,n=e?Fa.LARGE:Fa.STANDARD,a="".concat(-1*n/.05/2),u={transformOrigin:"center"};return St.createElement(Ph,Qn({iconName:"key-shift",ref:r},t),St.createElement("path",{d:e?"M354.8 193L354.8 193L215 353.2L214.8 353C211.2 357.2 206 360 200 360S188.8 357.2 185.2 353L185 353.2L45 193.2L45.2 193C42 189.6 40 185 40 180C40 169 49 160 60 160H120V60C120 49 129 40 140 40H260C271 40 280 49 280 60V160H340C351 160 360 169 360 180C360 185 358 189.6 354.8 193z":"M274.2000000000001 174.2L174.2 274.2C170.6 277.8 165.6 280 160 280S149.4 277.8 145.8 274.2L45.8 174.2C42.2 170.6 40 165.6 40 160C40 149 49 140 60 140H100V60C100 49 109 40 120 40H200C211 40 220 49 220 60V140H260C271 140 280 149 280 160C280 165.6 277.8 170.6 274.2000000000001 174.2z",fillRule:"evenodd",transform:"scale(0.05, -0.05) translate(".concat(a,", ").concat(a,")"),style:u}))});kG.defaultProps={size:Fa.STANDARD};kG.displayName="Blueprint5.Icon.KeyShift";var IO=St.forwardRef(function(t,r){var e=t.size>=Fa.LARGE,n=e?Fa.LARGE:Fa.STANDARD,a="".concat(-1*n/.05/2),u={transformOrigin:"center"};return St.createElement(Ph,Qn({iconName:"more",ref:r},t),St.createElement("path",{d:e?"M20 190A50 50 0 0 1 120 190A50 50 0 0 1 20 190M300 190A50 50 0 0 1 400 190A50 50 0 0 1 300 190M160 190A50 50 0 0 1 260 190A50 50 0 0 1 160 190":"M0 159.4A40 40 0 0 1 80 159.4A40 40 0 0 1 0 159.4M240 159.4A40 40 0 0 1 320 159.4A40 40 0 0 1 240 159.4M120 159.4A40 40 0 0 1 200 159.4A40 40 0 0 1 120 159.4",fillRule:"evenodd",transform:"scale(0.05, -0.05) translate(".concat(a,", ").concat(a,")"),style:u}))});IO.defaultProps={size:Fa.STANDARD};IO.displayName="Blueprint5.Icon.More";var DG=St.forwardRef(function(t,r){var e=t.size>=Fa.LARGE,n=e?Fa.LARGE:Fa.STANDARD,a="".concat(-1*n/.05/2),u={transformOrigin:"center"};return St.createElement(Ph,Qn({iconName:"search",ref:r},t),St.createElement("path",{d:e?"M391.2 51.2L292.4 150C309.8 175.8 320 206.6 320 240C320 328.4 248.4 400 160 400S0 328.4 0 240S71.6 80 160 80C193.4 80 224.2 90.2 250 107.6L348.8 8.8C354.2000000000001 3.4 361.8 0 370 0C386.6 0 400 13.4 400 30C400 38.2 396.6 45.8 391.2 51.2zM160 120C93.8 120 40 173.8 40 240S93.8 360 160 360S280 306.2000000000001 280 240S226.2 120 160 120z":"M311 51.4L257.6 105C271.6 126.8 279.8 152.6 279.8 180.2C279.8 257.6 217.2 320.2 139.8 320.2S-0.2 257.6 -0.2 180.2S62.4 40.2 139.8 40.2C167.6 40.2 193.4 48.6 215 62.4L268.6 9C274 3.6 281.6 0.2 289.8 0.2C306.4 0.2 319.8 13.6 319.8 30.2C319.8 38.4 316.4 46 311 51.4zM139.8 80.2C84.6 80.2 39.8 125 39.8 180.2S84.6 280.2 139.8 280.2S239.8 235.4 239.8 180.2S195 80.2 139.8 80.2z",fillRule:"evenodd",transform:"scale(0.05, -0.05) translate(".concat(a,", ").concat(a,")"),style:u}))});DG.defaultProps={size:Fa.STANDARD};DG.displayName="Blueprint5.Icon.Search";var oD=St.forwardRef(function(t,r){var e=t.size>=Fa.LARGE,n=e?Fa.LARGE:Fa.STANDARD,a="".concat(-1*n/.05/2),u={transformOrigin:"center"};return St.createElement(Ph,Qn({iconName:"small-cross",ref:r},t),St.createElement("path",{d:e?"M228.2 200L294 265.8C297.8 269.4 300 274.4 300 280C300 291 291 300 280 300C274.4000000000001 300 269.4000000000001 297.8 265.8 294.2L200 228.2L134.2 294.2C130.6 297.8 125.6 300 120 300C109 300 100 291 100 280C100 274.4 102.2 269.4 105.8 265.8L171.8 200L106 134.2000000000001C102.2 130.6 100 125.6 100 120C100 109 109 100 120 100C125.6 100 130.6 102.2 134.2 105.8L200 171.8L265.8 106C269.4000000000001 102.2 274.4000000000001 100 280 100C291 100 300 109 300 120C300 125.6 297.8 130.6 294.2000000000001 134.2000000000001L228.2 200z":"M188.2 160L234 205.8C237.8 209.4 240 214.4 240 220C240 231 231 240 220 240C214.4 240 209.4 237.8 205.8 234.2L160 188.2L114.2 234.2C110.6 237.8 105.6 240 100 240C89 240 80 231 80 220C80 214.4 82.2 209.4 85.8 205.8L131.8 160L86 114.2C82.2 110.6 80 105.6 80 100C80 89 89 80 100 80C105.6 80 110.6 82.2 114.2 85.8L160 131.8L205.8 86C209.4 82.2 214.4 80 220 80C231 80 240 89 240 100C240 105.6 237.8 110.6 234.2 114.2L188.2 160z",fillRule:"evenodd",transform:"scale(0.05, -0.05) translate(".concat(a,", ").concat(a,")"),style:u}))});oD.defaultProps={size:Fa.STANDARD};oD.displayName="Blueprint5.Icon.SmallCross";var NG=St.forwardRef(function(t,r){var e=t.size>=Fa.LARGE,n=e?Fa.LARGE:Fa.STANDARD,a="".concat(-1*n/.05/2),u={transformOrigin:"center"};return St.createElement(Ph,Qn({iconName:"small-tick",ref:r},t),St.createElement("path",{d:e?"M300 300C294.4000000000001 300 289.4000000000001 297.8 285.8 294.2L160 168.2L114.2 214.2C110.6 217.8 105.6 220 100 220C89 220 80 211 80 200C80 194.4 82.2 189.4 85.8 185.8L145.8 125.8C149.4 122.2 154.4 120 160 120S170.6 122.2 174.2 125.8L314.2000000000001 265.8C317.8 269.4 320 274.4 320 280C320 291 311 300 300 300z":"M240 220C234.4 220 229.4 217.8 225.8 214.2L140 128.2L94.2 174.2C90.6 177.8 85.6 180 80 180C69 180 60 171 60 160C60 154.4 62.2 149.4 65.8 145.8L125.8 85.8C129.4 82.2 134.4 80 140 80S150.6 82.2 154.2 85.8L254.2 185.8C257.8 189.4 260 194.4 260 200C260 211 251 220 240 220z",fillRule:"evenodd",transform:"scale(0.05, -0.05) translate(".concat(a,", ").concat(a,")"),style:u}))});NG.defaultProps={size:Fa.STANDARD};NG.displayName="Blueprint5.Icon.SmallTick";var tl=St.forwardRef(function(t,r){var e,n,a=t.autoLoad,u=a===void 0?!0:a,o=t.className,f=t.color,i=t.icon,s=t.intent,d=t.tagName,l=d===void 0?"span":d,h=t.svgProps,y=t.title,b=t.htmlTitle,C=Ls(t,["autoLoad","className","color","icon","intent","tagName","svgProps","title","htmlTitle"]),m=(n=(e=t.iconSize)!==null&&e!==void 0?e:t.size)!==null&&n!==void 0?n:Fa.STANDARD,c=St.useState(function(){return typeof i=="string"?US.getPaths(i,m):void 0}),v=c[0],g=c[1];if(St.useEffect(function(){var A=!1;if(typeof i=="string"){var T=US.getPaths(i,m);T!==void 0?g(T):u?US.load(i,m).then(function(){A||g(US.getPaths(i,m))}).catch(function(_){console.error("[Blueprint] Icon '".concat(i,"' (").concat(m,"px) could not be loaded."),_)}):console.error("[Blueprint] Icon '".concat(i,"' (").concat(m,"px) is not loaded yet and autoLoad={false}, did you call Icons.load('").concat(i,"', ").concat(m,")?"))}return function(){A=!0}},[u,i,m]),i==null||typeof i=="boolean")return null;if(typeof i!="string")return i;if(v==null){var p=m===Fa.STANDARD?ZMe:m===Fa.LARGE?YMe:void 0;return St.createElement(l||"span",Qn(Qn({"aria-hidden":y?void 0:!0},cI(C)),{className:_i(CG,p,XMe(i),Yd(s),o),"data-icon":i,ref:r,title:b}))}else{var I=v.map(function(A,T){return St.createElement("path",{d:A,key:T,fillRule:"evenodd"})});return St.createElement(Ph,Qn({children:I,className:_i(Yd(s),o),color:f,htmlTitle:b,iconName:i,ref:r,size:m,svgProps:h,tagName:l,title:y},cI(C)))}});tl.displayName="".concat(Vo,".Icon");var sx;(function(t){t[t.SMALL=20]="SMALL",t[t.STANDARD=50]="STANDARD",t[t.LARGE=100]="LARGE"})(sx||(sx={}));var fC=45,pQ="M 50,50 m 0,-".concat(fC," a ").concat(fC,",").concat(fC," 0 1 1 0,").concat(fC*2," a ").concat(fC,",").concat(fC," 0 1 1 0,-").concat(fC*2),dS=280,fRe=10,hRe=4,dRe=16,FG=function(t){var r,e=t.className,n=e===void 0?"":e,a=t.intent,u=t.value,o=t.tagName,f=o===void 0?"div":o,i=t.size,s=Ls(t,["className","intent","value","tagName","size"]);Tde(function(){var b=i!=null,C=n.indexOf(AO)>=0||n.indexOf(jT)>=0;b&&C&&console.warn(L4e)},[n,i]);var d=vRe(i,n),l=Math.min(dRe,hRe*sx.LARGE/d),h=dS-dS*(u==null?.25:P3(u,0,1)),y=_i(tD,Yd(a),(r={},r[FMe]=u!=null,r),n);return St.createElement(f,Qn({"aria-label":"loading","aria-valuemax":100,"aria-valuemin":0,"aria-valuenow":u===void 0?void 0:u*100,className:y,role:"progressbar"},s),St.createElement(f,{className:DMe},St.createElement("svg",{width:d,height:d,strokeWidth:l.toFixed(2),viewBox:gRe(l)},St.createElement("path",{className:zMe,d:pQ}),St.createElement("path",{className:NMe,d:pQ,pathLength:dS,strokeDasharray:"".concat(dS," ").concat(dS),strokeDashoffset:h}))))};FG.displayName="".concat(Vo,".Spinner");var vRe=function(t,r){return t==null?r.indexOf(AO)>=0?sx.SMALL:r.indexOf(jT)>=0?sx.LARGE:sx.STANDARD:Math.max(fRe,t)},gRe=function(t){var r=fC+t/2,e=(50-r).toFixed(2),n=(r*2).toFixed(2);return"".concat(e," ").concat(e," ").concat(n," ").concat(n)},pRe=Ade()?St.useLayoutEffect:St.useEffect,sD=St.forwardRef(function(t,r){var e,n=t.children,a=t.tagName,u=a===void 0?"div":a,o=t.title,f=t.className,i=t.ellipsize,s=i===void 0?!1:i,d=Ls(t,["children","tagName","title","className","ellipsize"]),l=St.useRef(),h=St.useMemo(function(){return hA(l,r)},[r]),y=St.useState(""),b=y[0],C=y[1],m=St.useState(),c=m[0],v=m[1];return pRe(function(){var g;((g=l.current)===null||g===void 0?void 0:g.textContent)!=null&&(v(s&&l.current.scrollWidth>l.current.clientWidth),C(l.current.textContent))},[l,n,s]),St.createElement(u,Qn(Qn({},d),{className:_i((e={},e[m5e]=s,e),f),ref:h,title:o??(c?b:void 0)}),n)});sD.displayName="".concat(Vo,".Text");var Na=St.forwardRef(function(t,r){var e=Rde(t,r);return St.createElement("button",Qn({type:"button"},cI(t),e),Pde(t))});Na.displayName="".concat(Vo,".Button");var Nx=St.forwardRef(function(t,r){var e=t.href,n=Rde(t,r,{defaultTabIndex:0,disabledTabIndex:-1});return St.createElement("a",Qn({role:"button"},cI(t),n,{"aria-disabled":n.disabled,href:n.disabled?void 0:e}),Pde(t))});Nx.displayName="".concat(Vo,".AnchorButton");function Rde(t,r,e){var n,a=t.alignText,u=t.fill,o=t.large,f=t.loading,i=f===void 0?!1:f,s=t.minimal,d=t.outlined,l=t.size,h=l===void 0?"medium":l,y=t.small,b=t.variant,C=b===void 0?"solid":b,m=t.disabled||i,c=_de(!m,t,r,e),v=c[0],g=c[1],p=_i(rM,(n={},n[Ox]=v,n[TA]=m,n[up]=u,n[pG]=i,n),rD(a),Yd(t.intent),EA(h,{large:o,small:y}),yde(C,{minimal:s,outlined:d}),t.className);return Qn(Qn({},g),{className:p,disabled:m})}function Pde(t){var r=t.children,e=t.ellipsizeText,n=t.endIcon,a=t.icon,u=t.loading,o=t.rightIcon,f=t.text,i=t.textClassName,s=!o5(f)||!o5(r);return St.createElement(St.Fragment,null,u&&St.createElement(FG,{className:b5e,size:sx.SMALL}),St.createElement(tl,{icon:a}),s&&St.createElement(sD,{className:_i(x5e,i),ellipsize:e,tagName:"span"},f,r),St.createElement(tl,{icon:n??o}))}function s0(t,r){return St.forwardRef(function(e,n){var a=e.className,u=e.children,o=Ls(e,["className","children"]);return St.createElement(t,Qn(Qn({},o),{className:_i(r,a),ref:n}),u)})}s0("h1",E3);s0("h2",E3);s0("h3",E3);var mRe=s0("h4",E3);s0("h5",E3);var yRe=s0("h6",E3);s0("blockquote",y5e);s0("code",A5e);s0("pre",C5e);var ARe=s0("label",sde);s0("ol",qhe);s0("ul",qhe);function zG(t,r){if(t==null)return{};var e={};for(var n in t)if({}.hasOwnProperty.call(t,n)){if(r.indexOf(n)!==-1)continue;e[n]=t[n]}return e}var Lde={exports:{}},CRe="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",IRe=CRe,bRe=IRe;function Ode(){}function kde(){}kde.resetWarningCache=Ode;var xRe=function(){function t(n,a,u,o,f,i){if(i!==bRe){var s=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}t.isRequired=t;function r(){return t}var e={array:t,bigint:t,bool:t,func:t,number:t,object:t,string:t,symbol:t,any:t,arrayOf:r,element:t,elementType:t,instanceOf:r,node:t,objectOf:r,oneOf:r,oneOfType:r,shape:r,exact:r,checkPropTypes:kde,resetWarningCache:Ode};return e.PropTypes=e,e};Lde.exports=xRe();var wRe=Lde.exports;function TRe(t,r){return t.classList?!!r&&t.classList.contains(r):(" "+(t.className.baseVal||t.className)+" ").indexOf(" "+r+" ")!==-1}function _Re(t,r){t.classList?t.classList.add(r):TRe(t,r)||(typeof t.className=="string"?t.className=t.className+" "+r:t.setAttribute("class",(t.className&&t.className.baseVal||"")+" "+r))}function mQ(t,r){return t.replace(new RegExp("(^|\\s)"+r+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}function SRe(t,r){t.classList?t.classList.remove(r):typeof t.className=="string"?t.className=mQ(t.className,r):t.setAttribute("class",mQ(t.className&&t.className.baseVal||"",r))}const yQ={disabled:!1},bO=co.createContext(null);var Dde=function(r){return r.scrollTop},HS="unmounted",kb="exited",Db="entering",S2="entered",MU="exiting",MA=function(t){xI(r,t);function r(n,a){var u;u=t.call(this,n,a)||this;var o=a,f=o&&!o.isMounting?n.enter:n.appear,i;return u.appearStatus=null,n.in?f?(i=kb,u.appearStatus=Db):i=S2:n.unmountOnExit||n.mountOnEnter?i=HS:i=kb,u.state={status:i},u.nextCallback=null,u}r.getDerivedStateFromProps=function(a,u){var o=a.in;return o&&u.status===HS?{status:kb}:null};var e=r.prototype;return e.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},e.componentDidUpdate=function(a){var u=null;if(a!==this.props){var o=this.state.status;this.props.in?o!==Db&&o!==S2&&(u=Db):(o===Db||o===S2)&&(u=MU)}this.updateStatus(!1,u)},e.componentWillUnmount=function(){this.cancelNextCallback()},e.getTimeouts=function(){var a=this.props.timeout,u,o,f;return u=o=f=a,a!=null&&typeof a!="number"&&(u=a.exit,o=a.enter,f=a.appear!==void 0?a.appear:o),{exit:u,enter:o,appear:f}},e.updateStatus=function(a,u){if(a===void 0&&(a=!1),u!==null)if(this.cancelNextCallback(),u===Db){if(this.props.unmountOnExit||this.props.mountOnEnter){var o=this.props.nodeRef?this.props.nodeRef.current:BS.findDOMNode(this);o&&Dde(o)}this.performEnter(a)}else this.performExit();else this.props.unmountOnExit&&this.state.status===kb&&this.setState({status:HS})},e.performEnter=function(a){var u=this,o=this.props.enter,f=this.context?this.context.isMounting:a,i=this.props.nodeRef?[f]:[BS.findDOMNode(this),f],s=i[0],d=i[1],l=this.getTimeouts(),h=f?l.appear:l.enter;if(!a&&!o||yQ.disabled){this.safeSetState({status:S2},function(){u.props.onEntered(s)});return}this.props.onEnter(s,d),this.safeSetState({status:Db},function(){u.props.onEntering(s,d),u.onTransitionEnd(h,function(){u.safeSetState({status:S2},function(){u.props.onEntered(s,d)})})})},e.performExit=function(){var a=this,u=this.props.exit,o=this.getTimeouts(),f=this.props.nodeRef?void 0:BS.findDOMNode(this);if(!u||yQ.disabled){this.safeSetState({status:kb},function(){a.props.onExited(f)});return}this.props.onExit(f),this.safeSetState({status:MU},function(){a.props.onExiting(f),a.onTransitionEnd(o.exit,function(){a.safeSetState({status:kb},function(){a.props.onExited(f)})})})},e.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},e.safeSetState=function(a,u){u=this.setNextCallback(u),this.setState(a,u)},e.setNextCallback=function(a){var u=this,o=!0;return this.nextCallback=function(f){o&&(o=!1,u.nextCallback=null,a(f))},this.nextCallback.cancel=function(){o=!1},this.nextCallback},e.onTransitionEnd=function(a,u){this.setNextCallback(u);var o=this.props.nodeRef?this.props.nodeRef.current:BS.findDOMNode(this),f=a==null&&!this.props.addEndListener;if(!o||f){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var i=this.props.nodeRef?[this.nextCallback]:[o,this.nextCallback],s=i[0],d=i[1];this.props.addEndListener(s,d)}a!=null&&setTimeout(this.nextCallback,a)},e.render=function(){var a=this.state.status;if(a===HS)return null;var u=this.props,o=u.children;u.in,u.mountOnEnter,u.unmountOnExit,u.appear,u.enter,u.exit,u.timeout,u.addEndListener,u.onEnter,u.onEntering,u.onEntered,u.onExit,u.onExiting,u.onExited,u.nodeRef;var f=zG(u,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return co.createElement(bO.Provider,{value:null},typeof o=="function"?o(a,f):co.cloneElement(co.Children.only(o),f))},r}(co.Component);MA.contextType=bO;MA.propTypes={};function t2(){}MA.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:t2,onEntering:t2,onEntered:t2,onExit:t2,onExiting:t2,onExited:t2};MA.UNMOUNTED=HS;MA.EXITED=kb;MA.ENTERING=Db;MA.ENTERED=S2;MA.EXITING=MU;var ERe=function(r,e){return r&&e&&e.split(" ").forEach(function(n){return _Re(r,n)})},uF=function(r,e){return r&&e&&e.split(" ").forEach(function(n){return SRe(r,n)})},cE=function(t){xI(r,t);function r(){for(var n,a=arguments.length,u=new Array(a),o=0;o<a;o++)u[o]=arguments[o];return n=t.call.apply(t,[this].concat(u))||this,n.appliedClasses={appear:{},enter:{},exit:{}},n.onEnter=function(f,i){var s=n.resolveArguments(f,i),d=s[0],l=s[1];n.removeClasses(d,"exit"),n.addClass(d,l?"appear":"enter","base"),n.props.onEnter&&n.props.onEnter(f,i)},n.onEntering=function(f,i){var s=n.resolveArguments(f,i),d=s[0],l=s[1],h=l?"appear":"enter";n.addClass(d,h,"active"),n.props.onEntering&&n.props.onEntering(f,i)},n.onEntered=function(f,i){var s=n.resolveArguments(f,i),d=s[0],l=s[1],h=l?"appear":"enter";n.removeClasses(d,h),n.addClass(d,h,"done"),n.props.onEntered&&n.props.onEntered(f,i)},n.onExit=function(f){var i=n.resolveArguments(f),s=i[0];n.removeClasses(s,"appear"),n.removeClasses(s,"enter"),n.addClass(s,"exit","base"),n.props.onExit&&n.props.onExit(f)},n.onExiting=function(f){var i=n.resolveArguments(f),s=i[0];n.addClass(s,"exit","active"),n.props.onExiting&&n.props.onExiting(f)},n.onExited=function(f){var i=n.resolveArguments(f),s=i[0];n.removeClasses(s,"exit"),n.addClass(s,"exit","done"),n.props.onExited&&n.props.onExited(f)},n.resolveArguments=function(f,i){return n.props.nodeRef?[n.props.nodeRef.current,f]:[f,i]},n.getClassNames=function(f){var i=n.props.classNames,s=typeof i=="string",d=s&&i?i+"-":"",l=s?""+d+f:i[f],h=s?l+"-active":i[f+"Active"],y=s?l+"-done":i[f+"Done"];return{baseClassName:l,activeClassName:h,doneClassName:y}},n}var e=r.prototype;return e.addClass=function(a,u,o){var f=this.getClassNames(u)[o+"ClassName"],i=this.getClassNames("enter"),s=i.doneClassName;u==="appear"&&o==="done"&&s&&(f+=" "+s),o==="active"&&a&&Dde(a),f&&(this.appliedClasses[u][o]=f,ERe(a,f))},e.removeClasses=function(a,u){var o=this.appliedClasses[u],f=o.base,i=o.active,s=o.done;this.appliedClasses[u]={},f&&uF(a,f),i&&uF(a,i),s&&uF(a,s)},e.render=function(){var a=this.props;a.classNames;var u=zG(a,["classNames"]);return co.createElement(MA,Fl({},u,{onEnter:this.onEnter,onEntered:this.onEntered,onEntering:this.onEntering,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}))},r}(co.Component);cE.defaultProps={classNames:""};cE.propTypes={};function MRe(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function BG(t,r){var e=function(u){return r&&St.isValidElement(u)?r(u):u},n=Object.create(null);return t&&St.Children.map(t,function(a){return a}).forEach(function(a){n[a.key]=e(a)}),n}function RRe(t,r){t=t||{},r=r||{};function e(d){return d in r?r[d]:t[d]}var n=Object.create(null),a=[];for(var u in t)u in r?a.length&&(n[u]=a,a=[]):a.push(u);var o,f={};for(var i in r){if(n[i])for(o=0;o<n[i].length;o++){var s=n[i][o];f[n[i][o]]=e(s)}f[i]=e(i)}for(o=0;o<a.length;o++)f[a[o]]=e(a[o]);return f}function Xb(t,r,e){return e[r]!=null?e[r]:t.props[r]}function PRe(t,r){return BG(t.children,function(e){return St.cloneElement(e,{onExited:r.bind(null,e),in:!0,appear:Xb(e,"appear",t),enter:Xb(e,"enter",t),exit:Xb(e,"exit",t)})})}function LRe(t,r,e){var n=BG(t.children),a=RRe(r,n);return Object.keys(a).forEach(function(u){var o=a[u];if(St.isValidElement(o)){var f=u in r,i=u in n,s=r[u],d=St.isValidElement(s)&&!s.props.in;i&&(!f||d)?a[u]=St.cloneElement(o,{onExited:e.bind(null,o),in:!0,exit:Xb(o,"exit",t),enter:Xb(o,"enter",t)}):!i&&f&&!d?a[u]=St.cloneElement(o,{in:!1}):i&&f&&St.isValidElement(s)&&(a[u]=St.cloneElement(o,{onExited:e.bind(null,o),in:s.props.in,exit:Xb(o,"exit",t),enter:Xb(o,"enter",t)}))}}),a}var ORe=Object.values||function(t){return Object.keys(t).map(function(r){return t[r]})},kRe={component:"div",childFactory:function(r){return r}},$G=function(t){xI(r,t);function r(n,a){var u;u=t.call(this,n,a)||this;var o=u.handleExited.bind(MRe(u));return u.state={contextValue:{isMounting:!0},handleExited:o,firstRender:!0},u}var e=r.prototype;return e.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},e.componentWillUnmount=function(){this.mounted=!1},r.getDerivedStateFromProps=function(a,u){var o=u.children,f=u.handleExited,i=u.firstRender;return{children:i?PRe(a,f):LRe(a,o,f),firstRender:!1}},e.handleExited=function(a,u){var o=BG(this.props.children);a.key in o||(a.props.onExited&&a.props.onExited(u),this.mounted&&this.setState(function(f){var i=Fl({},f.children);return delete i[a.key],{children:i}}))},e.render=function(){var a=this.props,u=a.component,o=a.childFactory,f=zG(a,["component","childFactory"]),i=this.state.contextValue,s=ORe(this.state.children).map(o);return delete f.appear,delete f.enter,delete f.exit,u===null?co.createElement(bO.Provider,{value:i},s):co.createElement(bO.Provider,{value:i},co.createElement(u,f,s))},r}(co.Component);$G.propTypes={};$G.defaultProps=kRe;var DRe=function(){var t=1,r=new WeakMap,e=function(n,a){return typeof n=="number"||typeof n=="string"?a?"idx-".concat(a):"val-".concat(n):r.has(n)?"uid"+r.get(n):(r.set(n,t++),e(n))};return e},Nde=function(t){return t===void 0&&(t=""),{value:1,prefix:t,uid:DRe()}},NRe=Nde(),FRe=St.createContext(Nde()),zRe=function(t){return t.value++},BRe=function(t){return t?t.prefix:""},$Re=function(t){var r=t||NRe,e=BRe(r),n=zRe(r),a=e+n,u=function(o){return a+r.uid(o)};return{uid:a,gen:u}},URe=function(){var t=St.useContext(FRe),r=St.useState(function(){return $Re(t)})[0];return r},HRe=function(){var t=URe().uid;return t},Fde=St.createContext({hasProvider:!1,stack:{current:[]}}),jRe=function(t){var r=t.children,e=St.useRef([]),n=St.useMemo(function(){return{hasProvider:!0,stack:e}},[e]);return St.createElement(Fde.Provider,{value:n},r)},zde={exports:{}},Bde={};/**
72
+ */(function(t){(function(){var r={}.hasOwnProperty;function e(){for(var u="",o=0;o<arguments.length;o++){var f=arguments[o];f&&(u=a(u,n(f)))}return u}function n(u){if(typeof u=="string"||typeof u=="number")return u;if(typeof u!="object")return"";if(Array.isArray(u))return e.apply(null,u);if(u.toString!==Object.prototype.toString&&!u.toString.toString().includes("[native code]"))return u.toString();var o="";for(var f in u)r.call(u,f)&&u[f]&&(o=a(o,f));return o}function a(u,o){return o?u?u+" "+o:u+o:u}t.exports?(e.default=e,t.exports=e):window.classNames=e})()})(wde);var Y4e=wde.exports;const _i=ly(Y4e);function Tde(t,r){r===void 0&&(r=[]),St.useEffect(function(){e1("production")||t()},r)}var X4e={defaultTabIndex:void 0,disabledTabIndex:-1};function _de(t,r,e,n){n===void 0&&(n=X4e);var a=n.defaultTabIndex,u=n.disabledTabIndex,o=r.active,f=r.onClick,i=r.onFocus,s=r.onKeyDown,d=r.onKeyUp,l=r.onBlur,h=r.tabIndex,y=h===void 0?a:h,b=St.useState(),C=b[0],m=b[1],c=St.useState(!1),v=c[0],g=c[1],p=St.useRef(null),I=St.useCallback(function(E){v&&g(!1),l==null||l(E)},[v,l]),A=St.useCallback(function(E){WT(E)&&(E.preventDefault(),E.key!==C&&g(!0)),m(E.key),s==null||s(E)},[C,s]),T=St.useCallback(function(E){var x;WT(E)&&(g(!1),(x=p.current)===null||x===void 0||x.click()),m(void 0),d==null||d(E)},[d,p]),_=t&&(o||v);return[_,{onBlur:I,onClick:t?f:void 0,onFocus:t?i:void 0,onKeyDown:A,onKeyUp:T,ref:hA(p,e),tabIndex:t?y:u}]}function K4e(t){return t.toLowerCase()}var Q4e=[/([a-z0-9])([A-Z])/g,/([A-Z])([A-Z][a-z])/g],J4e=/[^A-Z0-9]+/gi;function Sde(t,r){r===void 0&&(r={});for(var e=r.splitRegexp,n=e===void 0?Q4e:e,a=r.stripRegexp,u=a===void 0?J4e:a,o=r.transform,f=o===void 0?K4e:o,i=r.delimiter,s=i===void 0?" ":i,d=cQ(cQ(t,n,"$1\0$2"),u,"\0"),l=0,h=d.length;d.charAt(l)==="\0";)l++;for(;d.charAt(h-1)==="\0";)h--;return d.slice(l,h).split("\0").map(f).join(s)}function cQ(t,r,e){return r instanceof RegExp?t.replace(r,e):r.reduce(function(n,a){return n.replace(a,e)},t)}function q4e(t,r){var e=t.charAt(0),n=t.substr(1).toLowerCase();return r>0&&e>="0"&&e<="9"?"_"+e+n:""+e.toUpperCase()+n}function eRe(t,r){return r===void 0&&(r={}),Sde(t,Qn({delimiter:"",transform:q4e},r))}function tRe(t,r){return r===void 0&&(r={}),Sde(t,Qn({delimiter:"."},r))}function rRe(t,r){return r===void 0&&(r={}),tRe(t,Qn({delimiter:"_"},r))}var Fa;(function(t){t[t.STANDARD=16]="STANDARD",t[t.LARGE=20]="LARGE"})(Fa||(Fa={}));const nRe="modulepreload",iRe=function(t){return"/"+t},fQ={},hQ=function(r,e,n){let a=Promise.resolve();if(e&&e.length>0){document.getElementsByTagName("link");const o=document.querySelector("meta[property=csp-nonce]"),f=(o==null?void 0:o.nonce)||(o==null?void 0:o.getAttribute("nonce"));a=Promise.allSettled(e.map(i=>{if(i=iRe(i),i in fQ)return;fQ[i]=!0;const s=i.endsWith(".css"),d=s?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${i}"]${d}`))return;const l=document.createElement("link");if(l.rel=s?"stylesheet":nRe,s||(l.as="script"),l.crossOrigin="",l.href=i,f&&l.setAttribute("nonce",f),document.head.appendChild(l),s)return new Promise((h,y)=>{l.addEventListener("load",h),l.addEventListener("error",()=>y(new Error(`Unable to preload CSS for ${i}`)))})}))}function u(o){const f=new Event("vite:preloadError",{cancelable:!0});if(f.payload=o,window.dispatchEvent(f),!f.defaultPrevented)throw o}return a.then(o=>{for(const f of o||[])f.status==="rejected"&&u(f.reason);return r().catch(u)})};var Qt,Kt;(function(t){t.AddClip="add-clip",t.AddColumnLeft="add-column-left",t.AddColumnRight="add-column-right",t.AddLocation="add-location",t.AddRowBottom="add-row-bottom",t.AddRowTop="add-row-top",t.AddToArtifact="add-to-artifact",t.AddToFolder="add-to-folder",t.Add="add",t.AimpointsTarget="aimpoints-target",t.Airplane="airplane",t.AlignCenter="align-center",t.AlignJustify="align-justify",t.AlignLeft="align-left",t.AlignRight="align-right",t.AlignmentBottom="alignment-bottom",t.AlignmentHorizontalCenter="alignment-horizontal-center",t.AlignmentLeft="alignment-left",t.AlignmentRight="alignment-right",t.AlignmentTop="alignment-top",t.AlignmentVerticalCenter="alignment-vertical-center",t.Ammunition="ammunition",t.Anchor="anchor",t.Annotation="annotation",t.Announcement="announcement",t.Antenna="antenna",t.AppHeader="app-header",t.Application="application",t.Applications="applications",t.Archive="archive",t.AreaOfInterest="area-of-interest",t.ArrayBoolean="array-boolean",t.ArrayDate="array-date",t.ArrayFloatingPoint="array-floating-point",t.ArrayNumeric="array-numeric",t.ArrayObject="array-object",t.ArrayString="array-string",t.ArrayTimestamp="array-timestamp",t.Array="array",t.ArrowBottomLeft="arrow-bottom-left",t.ArrowBottomRight="arrow-bottom-right",t.ArrowDown="arrow-down",t.ArrowLeft="arrow-left",t.ArrowRight="arrow-right",t.ArrowTopLeft="arrow-top-left",t.ArrowTopRight="arrow-top-right",t.ArrowUp="arrow-up",t.ArrowsArc="arrows-arc",t.ArrowsHorizontal="arrows-horizontal",t.ArrowsVertical="arrows-vertical",t.Asterisk="asterisk",t.At="at",t.AutomaticUpdates="automatic-updates",t.Axle="axle",t.Backlink="backlink",t.BackwardTen="backward-ten",t.Badge="badge",t.BanCircle="ban-circle",t.BankAccount="bank-account",t.Barcode="barcode",t.BinaryNumber="binary-number",t.Blank="blank",t.BlockPromote="block-promote",t.BlockedPerson="blocked-person",t.Bold="bold",t.Book="book",t.Bookmark="bookmark",t.Box="box",t.Briefcase="briefcase",t.BringData="bring-data",t.BringForward="bring-forward",t.BritishPound="british-pound",t.Bug="bug",t.Buggy="buggy",t.Build="build",t.Bullseye="bullseye",t.Calculator="calculator",t.Calendar="calendar",t.Camera="camera",t.CaretDown="caret-down",t.CaretLeft="caret-left",t.CaretRight="caret-right",t.CaretUp="caret-up",t.CargoShip="cargo-ship",t.CellTower="cell-tower",t.Changes="changes",t.Chart="chart",t.Chat="chat",t.ChevronBackward="chevron-backward",t.ChevronDown="chevron-down",t.ChevronForward="chevron-forward",t.ChevronLeft="chevron-left",t.ChevronRight="chevron-right",t.ChevronUp="chevron-up",t.CircleArrowDown="circle-arrow-down",t.CircleArrowLeft="circle-arrow-left",t.CircleArrowRight="circle-arrow-right",t.CircleArrowUp="circle-arrow-up",t.Circle="circle",t.Citation="citation",t.Clean="clean",t.Clip="clip",t.ClipboardFile="clipboard-file",t.Clipboard="clipboard",t.CloudDownload="cloud-download",t.CloudServer="cloud-server",t.CloudTick="cloud-tick",t.CloudUpload="cloud-upload",t.Cloud="cloud",t.CodeBlock="code-block",t.Code="code",t.Cog="cog",t.CollapseAll="collapse-all",t.ColorFill="color-fill",t.ColumnLayout="column-layout",t.Comment="comment",t.Comparison="comparison",t.Compass="compass",t.Compressed="compressed",t.Confirm="confirm",t.Console="console",t.Construction="construction",t.Contrast="contrast",t.Control="control",t.CreditCard="credit-card",t.Crop="crop",t.CrossCircle="cross-circle",t.Cross="cross",t.Crown="crown",t.CssStyle="css-style",t.CubeAdd="cube-add",t.CubeEdit="cube-edit",t.CubeRemove="cube-remove",t.Cube="cube",t.Cubes="cubes",t.CurlyBraces="curly-braces",t.CurvedRangeChart="curved-range-chart",t.Cut="cut",t.Cycle="cycle",t.Dashboard="dashboard",t.DataCloud="data-cloud",t.DataConnection="data-connection",t.DataLineage="data-lineage",t.DataSearch="data-search",t.DataSync="data-sync",t.Database="database",t.Delete="delete",t.Delta="delta",t.DeriveColumn="derive-column",t.Desktop="desktop",t.Detection="detection",t.Diagnosis="diagnosis",t.DiagramTree="diagram-tree",t.DirectionLeft="direction-left",t.DirectionRight="direction-right",t.Disable="disable",t.Divide="divide",t.DocumentOpen="document-open",t.DocumentShare="document-share",t.Document="document",t.Dollar="dollar",t.Dot="dot",t.DoubleCaretHorizontal="double-caret-horizontal",t.DoubleCaretVertical="double-caret-vertical",t.DoubleChevronDown="double-chevron-down",t.DoubleChevronLeft="double-chevron-left",t.DoubleChevronRight="double-chevron-right",t.DoubleChevronUp="double-chevron-up",t.DoughnutChart="doughnut-chart",t.Download="download",t.DragHandleHorizontal="drag-handle-horizontal",t.DragHandleVertical="drag-handle-vertical",t.Draw="draw",t.DrawerLeftFilled="drawer-left-filled",t.DrawerLeft="drawer-left",t.DrawerRightFilled="drawer-right-filled",t.DrawerRight="drawer-right",t.DriveTime="drive-time",t.Duplicate="duplicate",t.Edit="edit",t.Eject="eject",t.Emoji="emoji",t.Endnote="endnote",t.Endorsed="endorsed",t.Envelope="envelope",t.Equals="equals",t.Eraser="eraser",t.Error="error",t.Euro="euro",t.Excavator="excavator",t.Exchange="exchange",t.ExcludeRow="exclude-row",t.ExpandAll="expand-all",t.Explain="explain",t.Export="export",t.EyeOff="eye-off",t.EyeOn="eye-on",t.EyeOpen="eye-open",t.FastBackward="fast-backward",t.FastForward="fast-forward",t.FeedSubscribed="feed-subscribed",t.Feed="feed",t.FighterJet="fighter-jet",t.Film="film",t.FilterKeep="filter-keep",t.FilterList="filter-list",t.FilterOpen="filter-open",t.FilterRemove="filter-remove",t.FilterSortAsc="filter-sort-asc",t.FilterSortDesc="filter-sort-desc",t.Filter="filter",t.Flag="flag",t.Flame="flame",t.Flash="flash",t.FloatingPoint="floating-point",t.FloppyDisk="floppy-disk",t.FlowBranch="flow-branch",t.FlowEnd="flow-end",t.FlowLinear="flow-linear",t.FlowReviewBranch="flow-review-branch",t.FlowReview="flow-review",t.Flows="flows",t.FolderClose="folder-close",t.FolderNew="folder-new",t.FolderOpen="folder-open",t.FolderSharedOpen="folder-shared-open",t.FolderShared="folder-shared",t.Follower="follower",t.Following="following",t.Font="font",t.Fork="fork",t.Form="form",t.ForwardTen="forward-ten",t.Fuel="fuel",t.FullCircle="full-circle",t.FullStackedChart="full-stacked-chart",t.Fullscreen="fullscreen",t.Function="function",t.GanttChart="gantt-chart",t.Generate="generate",t.Geofence="geofence",t.Geolocation="geolocation",t.Geosearch="geosearch",t.Geotime="geotime",t.GitBranch="git-branch",t.GitCommit="git-commit",t.GitMerge="git-merge",t.GitNewBranch="git-new-branch",t.GitPull="git-pull",t.GitPush="git-push",t.GitRepo="git-repo",t.Glass="glass",t.GlobeNetworkAdd="globe-network-add",t.GlobeNetwork="globe-network",t.Globe="globe",t.GraphRemove="graph-remove",t.Graph="graph",t.GreaterThanOrEqualTo="greater-than-or-equal-to",t.GreaterThan="greater-than",t.GridView="grid-view",t.Grid="grid",t.GroupItem="group-item",t.GroupObjects="group-objects",t.GroupedBarChart="grouped-bar-chart",t.HandDown="hand-down",t.HandLeft="hand-left",t.HandRight="hand-right",t.HandUp="hand-up",t.Hand="hand",t.Hat="hat",t.HeaderOne="header-one",t.HeaderThree="header-three",t.HeaderTwo="header-two",t.Header="header",t.Headset="headset",t.HeartBroken="heart-broken",t.Heart="heart",t.HeatGrid="heat-grid",t.Heatmap="heatmap",t.Helicopter="helicopter",t.Help="help",t.HelperManagement="helper-management",t.Hexagon="hexagon",t.HighPriority="high-priority",t.HighVoltagePole="high-voltage-pole",t.Highlight="highlight",t.History="history",t.Home="home",t.HorizontalBarChartAsc="horizontal-bar-chart-asc",t.HorizontalBarChartDesc="horizontal-bar-chart-desc",t.HorizontalBarChart="horizontal-bar-chart",t.HorizontalDistribution="horizontal-distribution",t.HorizontalInbetween="horizontal-inbetween",t.Hurricane="hurricane",t.IdNumber="id-number",t.ImageRotateLeft="image-rotate-left",t.ImageRotateRight="image-rotate-right",t.Import="import",t.InboxFiltered="inbox-filtered",t.InboxGeo="inbox-geo",t.InboxSearch="inbox-search",t.InboxUpdate="inbox-update",t.Inbox="inbox",t.InfoSign="info-sign",t.Inheritance="inheritance",t.InheritedGroup="inherited-group",t.InnerJoin="inner-join",t.Input="input",t.Insert="insert",t.Intelligence="intelligence",t.Intersection="intersection",t.IpAddress="ip-address",t.IssueClosed="issue-closed",t.IssueNew="issue-new",t.Issue="issue",t.Italic="italic",t.JoinTable="join-table",t.KeyBackspace="key-backspace",t.KeyCommand="key-command",t.KeyControl="key-control",t.KeyDelete="key-delete",t.KeyEnter="key-enter",t.KeyEscape="key-escape",t.KeyOption="key-option",t.KeyShift="key-shift",t.KeyTab="key-tab",t.Key="key",t.KnownVehicle="known-vehicle",t.LabTest="lab-test",t.Label="label",t.LayerOutline="layer-outline",t.Layer="layer",t.Layers="layers",t.LayoutAuto="layout-auto",t.LayoutBalloon="layout-balloon",t.LayoutBottomRowThreeTiles="layout-bottom-row-three-tiles",t.LayoutBottomRowTwoTiles="layout-bottom-row-two-tiles",t.LayoutCircle="layout-circle",t.LayoutGrid="layout-grid",t.LayoutGroupBy="layout-group-by",t.LayoutHierarchy="layout-hierarchy",t.LayoutLeftColumnThreeTiles="layout-left-column-three-tiles",t.LayoutLeftColumnTwoTiles="layout-left-column-two-tiles",t.LayoutLinear="layout-linear",t.LayoutRightColumnThreeTiles="layout-right-column-three-tiles",t.LayoutRightColumnTwoTiles="layout-right-column-two-tiles",t.LayoutSkewGrid="layout-skew-grid",t.LayoutSortedClusters="layout-sorted-clusters",t.LayoutThreeColumns="layout-three-columns",t.LayoutThreeRows="layout-three-rows",t.LayoutTopRowThreeTiles="layout-top-row-three-tiles",t.LayoutTopRowTwoTiles="layout-top-row-two-tiles",t.LayoutTwoColumns="layout-two-columns",t.LayoutTwoRows="layout-two-rows",t.Layout="layout",t.Learning="learning",t.LeftJoin="left-join",t.LengthenText="lengthen-text",t.LessThanOrEqualTo="less-than-or-equal-to",t.LessThan="less-than",t.Lifesaver="lifesaver",t.Lightbulb="lightbulb",t.Lightning="lightning",t.Link="link",t.LinkedSquares="linked-squares",t.ListColumns="list-columns",t.ListDetailView="list-detail-view",t.List="list",t.Locate="locate",t.Lock="lock",t.Locomotive="locomotive",t.LogIn="log-in",t.LogOut="log-out",t.LowVoltagePole="low-voltage-pole",t.Manual="manual",t.ManuallyEnteredData="manually-entered-data",t.ManyToMany="many-to-many",t.ManyToOne="many-to-one",t.MapCreate="map-create",t.MapMarker="map-marker",t.Map="map",t.Maximize="maximize",t.Media="media",t.MenuClosed="menu-closed",t.MenuOpen="menu-open",t.Menu="menu",t.MergeColumns="merge-columns",t.MergeLinks="merge-links",t.Microphone="microphone",t.Minimize="minimize",t.Minus="minus",t.MobilePhone="mobile-phone",t.MobileVideo="mobile-video",t.ModalFilled="modal-filled",t.Modal="modal",t.Model="model",t.Moon="moon",t.More="more",t.Mountain="mountain",t.Move="move",t.Mugshot="mugshot",t.MultiSelect="multi-select",t.Music="music",t.Nest="nest",t.NewDrawing="new-drawing",t.NewGridItem="new-grid-item",t.NewLayer="new-layer",t.NewLayers="new-layers",t.NewLink="new-link",t.NewObject="new-object",t.NewPerson="new-person",t.NewPrescription="new-prescription",t.NewShield="new-shield",t.NewTextBox="new-text-box",t.Ninja="ninja",t.NotEqualTo="not-equal-to",t.NotificationsAdd="notifications-add",t.NotificationsSnooze="notifications-snooze",t.NotificationsUpdated="notifications-updated",t.Notifications="notifications",t.NumberedList="numbered-list",t.Numerical="numerical",t.ObjectView="object-view",t.Office="office",t.Offline="offline",t.OilField="oil-field",t.OneColumn="one-column",t.OneToMany="one-to-many",t.OneToOne="one-to-one",t.OpenApplication="open-application",t.Outdated="outdated",t.Output="output",t.Package="package",t.PageLayout="page-layout",t.PanelStats="panel-stats",t.PanelTable="panel-table",t.Panel="panel",t.Paperclip="paperclip",t.Paragraph="paragraph",t.PasteVariable="paste-variable",t.PathSearch="path-search",t.Path="path",t.Pause="pause",t.People="people",t.Percentage="percentage",t.Person="person",t.PhoneCall="phone-call",t.PhoneForward="phone-forward",t.PhoneSearch="phone-search",t.Phone="phone",t.PieChart="pie-chart",t.Pill="pill",t.Pin="pin",t.Pistol="pistol",t.PivotTable="pivot-table",t.Pivot="pivot",t.Play="play",t.Playbook="playbook",t.Plus="plus",t.PolygonFilter="polygon-filter",t.Power="power",t.PredictiveAnalysis="predictive-analysis",t.Prescription="prescription",t.Presentation="presentation",t.Print="print",t.Projects="projects",t.Properties="properties",t.Property="property",t.PublishFunction="publish-function",t.Pulse="pulse",t.Rain="rain",t.Random="random",t.RangeRing="range-ring",t.Record="record",t.RectHeight="rect-height",t.RectWidth="rect-width",t.Rectangle="rectangle",t.Redo="redo",t.Refresh="refresh",t.Regex="regex",t.RegressionChart="regression-chart",t.RemoveColumnLeft="remove-column-left",t.RemoveColumnRight="remove-column-right",t.RemoveColumn="remove-column",t.RemoveRowBottom="remove-row-bottom",t.RemoveRowTop="remove-row-top",t.Remove="remove",t.Repeat="repeat",t.Reset="reset",t.Resolve="resolve",t.Rig="rig",t.RightJoin="right-join",t.Ring="ring",t.RocketSlant="rocket-slant",t.Rocket="rocket",t.RotateCcw="rotate-ccw",t.RotateCw="rotate-cw",t.RotateDocument="rotate-document",t.RotatePage="rotate-page",t.Route="route",t.RunHistory="run-history",t.Satellite="satellite",t.Saved="saved",t.ScatterPlot="scatter-plot",t.SearchAround="search-around",t.SearchTemplate="search-template",t.SearchText="search-text",t.Search="search",t.SegmentedControl="segmented-control",t.Select="select",t.SelectionBoxAdd="selection-box-add",t.SelectionBoxEdit="selection-box-edit",t.SelectionBox="selection-box",t.Selection="selection",t.SendBackward="send-backward",t.SendMessage="send-message",t.SendToGraph="send-to-graph",t.SendToMap="send-to-map",t.SendTo="send-to",t.Sensor="sensor",t.SeriesAdd="series-add",t.SeriesConfiguration="series-configuration",t.SeriesDerived="series-derived",t.SeriesFiltered="series-filtered",t.SeriesSearch="series-search",t.ServerInstall="server-install",t.Server="server",t.Settings="settings",t.Shapes="shapes",t.Share="share",t.SharedFilter="shared-filter",t.Shield="shield",t.Ship="ship",t.Shop="shop",t.ShoppingCart="shopping-cart",t.ShortenText="shorten-text",t.SignalSearch="signal-search",t.SimCard="sim-card",t.Slash="slash",t.SmallCross="small-cross",t.SmallInfoSign="small-info-sign",t.SmallMinus="small-minus",t.SmallPlus="small-plus",t.SmallSquare="small-square",t.SmallTick="small-tick",t.Snowflake="snowflake",t.SoccerBall="soccer-ball",t.SocialMedia="social-media",t.SortAlphabeticalDesc="sort-alphabetical-desc",t.SortAlphabetical="sort-alphabetical",t.SortAsc="sort-asc",t.SortDesc="sort-desc",t.SortNumericalDesc="sort-numerical-desc",t.SortNumerical="sort-numerical",t.Sort="sort",t.SpellCheck="spell-check",t.SplitColumns="split-columns",t.SportsStadium="sports-stadium",t.Square="square",t.StackedChart="stacked-chart",t.StadiumGeometry="stadium-geometry",t.StarEmpty="star-empty",t.Star="star",t.StepBackward="step-backward",t.StepChart="step-chart",t.StepForward="step-forward",t.Stop="stop",t.Stopwatch="stopwatch",t.Strikethrough="strikethrough",t.Style="style",t.Subscript="subscript",t.SubtractRightJoin="subtract-right-join",t.Superscript="superscript",t.SwapHorizontal="swap-horizontal",t.SwapVertical="swap-vertical",t.Switch="switch",t.SymbolCircle="symbol-circle",t.SymbolCross="symbol-cross",t.SymbolDiamond="symbol-diamond",t.SymbolRectangle="symbol-rectangle",t.SymbolSquare="symbol-square",t.SymbolTriangleDown="symbol-triangle-down",t.SymbolTriangleUp="symbol-triangle-up",t.Syringe="syringe",t.TableSync="table-sync",t.TagAdd="tag-add",t.TagPromote="tag-promote",t.TagRefresh="tag-refresh",t.TagUndo="tag-undo",t.Tag="tag",t.Tags="tags",t.TakeAction="take-action",t.Tank="tank",t.Target="target",t.Taxi="taxi",t.Team="team",t.Temperature="temperature",t.TextHighlight="text-highlight",t.ThAdd="th-add",t.ThDerived="th-derived",t.ThDisconnect="th-disconnect",t.ThFiltered="th-filtered",t.ThListAdd="th-list-add",t.ThList="th-list",t.ThVirtualAdd="th-virtual-add",t.ThVirtual="th-virtual",t.Th="th",t.ThirdParty="third-party",t.ThumbsDown="thumbs-down",t.ThumbsUp="thumbs-up",t.TickCircle="tick-circle",t.Tick="tick",t.Time="time",t.TimelineAreaChart="timeline-area-chart",t.TimelineBarChart="timeline-bar-chart",t.TimelineEvents="timeline-events",t.TimelineLineChart="timeline-line-chart",t.Tint="tint",t.Torch="torch",t.Tractor="tractor",t.Train="train",t.Translate="translate",t.Trash="trash",t.Tree="tree",t.TrendingDown="trending-down",t.TrendingUp="trending-up",t.Trophy="trophy",t.Truck="truck",t.TwoColumns="two-columns",t.Unarchive="unarchive",t.Underline="underline",t.Undo="undo",t.UngroupObjects="ungroup-objects",t.UnknownVehicle="unknown-vehicle",t.Unlink="unlink",t.Unlock="unlock",t.Unpin="unpin",t.Unresolve="unresolve",t.Updated="updated",t.Upload="upload",t.User="user",t.Variable="variable",t.Vector="vector",t.VerticalBarChartAsc="vertical-bar-chart-asc",t.VerticalBarChartDesc="vertical-bar-chart-desc",t.VerticalDistribution="vertical-distribution",t.VerticalInbetween="vertical-inbetween",t.Video="video",t.Virus="virus",t.VolumeDown="volume-down",t.VolumeOff="volume-off",t.VolumeUp="volume-up",t.Walk="walk",t.WarningSign="warning-sign",t.WaterfallChart="waterfall-chart",t.Waves="waves",t.WidgetButton="widget-button",t.WidgetFooter="widget-footer",t.WidgetHeader="widget-header",t.Widget="widget",t.Wind="wind",t.WrenchRedo="wrench-redo",t.WrenchSnooze="wrench-snooze",t.WrenchTime="wrench-time",t.Wrench="wrench",t.ZoomIn="zoom-in",t.ZoomOut="zoom-out",t.ZoomToFit="zoom-to-fit"})(Kt||(Kt={}));Qt={},Qt[Kt.AddClip]="61697",Qt[Kt.AddColumnLeft]="61698",Qt[Kt.AddColumnRight]="61699",Qt[Kt.AddLocation]="61700",Qt[Kt.AddRowBottom]="61701",Qt[Kt.AddRowTop]="61702",Qt[Kt.AddToArtifact]="61703",Qt[Kt.AddToFolder]="61704",Qt[Kt.Add]="61705",Qt[Kt.AimpointsTarget]="62261",Qt[Kt.Airplane]="61706",Qt[Kt.AlignCenter]="61707",Qt[Kt.AlignJustify]="61708",Qt[Kt.AlignLeft]="61709",Qt[Kt.AlignRight]="61710",Qt[Kt.AlignmentBottom]="61711",Qt[Kt.AlignmentHorizontalCenter]="61712",Qt[Kt.AlignmentLeft]="61713",Qt[Kt.AlignmentRight]="61714",Qt[Kt.AlignmentTop]="61715",Qt[Kt.AlignmentVerticalCenter]="61716",Qt[Kt.Ammunition]="62274",Qt[Kt.Anchor]="62256",Qt[Kt.Annotation]="61717",Qt[Kt.Announcement]="62358",Qt[Kt.Antenna]="61718",Qt[Kt.AppHeader]="61719",Qt[Kt.Application]="61720",Qt[Kt.Applications]="61721",Qt[Kt.Archive]="61722",Qt[Kt.AreaOfInterest]="61723",Qt[Kt.ArrayBoolean]="61724",Qt[Kt.ArrayDate]="61725",Qt[Kt.ArrayFloatingPoint]="62253",Qt[Kt.ArrayNumeric]="61726",Qt[Kt.ArrayObject]="62356",Qt[Kt.ArrayString]="61727",Qt[Kt.ArrayTimestamp]="61728",Qt[Kt.Array]="61729",Qt[Kt.ArrowBottomLeft]="61730",Qt[Kt.ArrowBottomRight]="61731",Qt[Kt.ArrowDown]="61732",Qt[Kt.ArrowLeft]="61733",Qt[Kt.ArrowRight]="61734",Qt[Kt.ArrowTopLeft]="61735",Qt[Kt.ArrowTopRight]="61736",Qt[Kt.ArrowUp]="61737",Qt[Kt.ArrowsArc]="62343",Qt[Kt.ArrowsHorizontal]="61738",Qt[Kt.ArrowsVertical]="61739",Qt[Kt.Asterisk]="61740",Qt[Kt.At]="62257",Qt[Kt.AutomaticUpdates]="61741",Qt[Kt.Axle]="62264",Qt[Kt.Backlink]="61742",Qt[Kt.BackwardTen]="62300",Qt[Kt.Badge]="61743",Qt[Kt.BanCircle]="61744",Qt[Kt.BankAccount]="61745",Qt[Kt.Barcode]="61746",Qt[Kt.BinaryNumber]="62295",Qt[Kt.Blank]="61747",Qt[Kt.BlockPromote]="62322",Qt[Kt.BlockedPerson]="61748",Qt[Kt.Bold]="61749",Qt[Kt.Book]="61750",Qt[Kt.Bookmark]="61751",Qt[Kt.Box]="61752",Qt[Kt.Briefcase]="61753",Qt[Kt.BringData]="61754",Qt[Kt.BringForward]="62292",Qt[Kt.BritishPound]="62342",Qt[Kt.Bug]="62254",Qt[Kt.Buggy]="61755",Qt[Kt.Build]="61756",Qt[Kt.Bullseye]="62297",Qt[Kt.Calculator]="61757",Qt[Kt.Calendar]="61758",Qt[Kt.Camera]="61759",Qt[Kt.CaretDown]="61760",Qt[Kt.CaretLeft]="61761",Qt[Kt.CaretRight]="61762",Qt[Kt.CaretUp]="61763",Qt[Kt.CargoShip]="61764",Qt[Kt.CellTower]="61765",Qt[Kt.Changes]="61766",Qt[Kt.Chart]="61767",Qt[Kt.Chat]="61768",Qt[Kt.ChevronBackward]="61769",Qt[Kt.ChevronDown]="61770",Qt[Kt.ChevronForward]="61771",Qt[Kt.ChevronLeft]="61772",Qt[Kt.ChevronRight]="61773",Qt[Kt.ChevronUp]="61774",Qt[Kt.CircleArrowDown]="61775",Qt[Kt.CircleArrowLeft]="61776",Qt[Kt.CircleArrowRight]="61777",Qt[Kt.CircleArrowUp]="61778",Qt[Kt.Circle]="61779",Qt[Kt.Citation]="61780",Qt[Kt.Clean]="61781",Qt[Kt.Clip]="61782",Qt[Kt.ClipboardFile]="62299",Qt[Kt.Clipboard]="61783",Qt[Kt.CloudDownload]="61784",Qt[Kt.CloudServer]="62298",Qt[Kt.CloudTick]="62286",Qt[Kt.CloudUpload]="61785",Qt[Kt.Cloud]="61786",Qt[Kt.CodeBlock]="61787",Qt[Kt.Code]="61788",Qt[Kt.Cog]="61789",Qt[Kt.CollapseAll]="61790",Qt[Kt.ColorFill]="62248",Qt[Kt.ColumnLayout]="61791",Qt[Kt.Comment]="61792",Qt[Kt.Comparison]="61793",Qt[Kt.Compass]="61794",Qt[Kt.Compressed]="61795",Qt[Kt.Confirm]="61796",Qt[Kt.Console]="61797",Qt[Kt.Construction]="62357",Qt[Kt.Contrast]="61798",Qt[Kt.Control]="61799",Qt[Kt.CreditCard]="61800",Qt[Kt.Crop]="62291",Qt[Kt.CrossCircle]="62262",Qt[Kt.Cross]="61801",Qt[Kt.Crown]="61802",Qt[Kt.CssStyle]="62315",Qt[Kt.CubeAdd]="61803",Qt[Kt.CubeEdit]="62339",Qt[Kt.CubeRemove]="61804",Qt[Kt.Cube]="61805",Qt[Kt.Cubes]="62323",Qt[Kt.CurlyBraces]="62296",Qt[Kt.CurvedRangeChart]="61806",Qt[Kt.Cut]="61807",Qt[Kt.Cycle]="61808",Qt[Kt.Dashboard]="61809",Qt[Kt.DataCloud]="62353",Qt[Kt.DataConnection]="61810",Qt[Kt.DataLineage]="61811",Qt[Kt.DataSearch]="62319",Qt[Kt.DataSync]="62316",Qt[Kt.Database]="61812",Qt[Kt.Delete]="61813",Qt[Kt.Delta]="61814",Qt[Kt.DeriveColumn]="61815",Qt[Kt.Desktop]="61816",Qt[Kt.Detection]="62273",Qt[Kt.Diagnosis]="61817",Qt[Kt.DiagramTree]="61818",Qt[Kt.DirectionLeft]="61819",Qt[Kt.DirectionRight]="61820",Qt[Kt.Disable]="61821",Qt[Kt.Divide]="62247",Qt[Kt.DocumentOpen]="61822",Qt[Kt.DocumentShare]="61823",Qt[Kt.Document]="61824",Qt[Kt.Dollar]="61825",Qt[Kt.Dot]="61826",Qt[Kt.DoubleCaretHorizontal]="61827",Qt[Kt.DoubleCaretVertical]="61828",Qt[Kt.DoubleChevronDown]="61829",Qt[Kt.DoubleChevronLeft]="61830",Qt[Kt.DoubleChevronRight]="61831",Qt[Kt.DoubleChevronUp]="61832",Qt[Kt.DoughnutChart]="61833",Qt[Kt.Download]="61834",Qt[Kt.DragHandleHorizontal]="61835",Qt[Kt.DragHandleVertical]="61836",Qt[Kt.Draw]="61837",Qt[Kt.DrawerLeftFilled]="61838",Qt[Kt.DrawerLeft]="61839",Qt[Kt.DrawerRightFilled]="61840",Qt[Kt.DrawerRight]="61841",Qt[Kt.DriveTime]="61842",Qt[Kt.Duplicate]="61843",Qt[Kt.Edit]="61844",Qt[Kt.Eject]="61845",Qt[Kt.Emoji]="61846",Qt[Kt.Endnote]="62294",Qt[Kt.Endorsed]="61847",Qt[Kt.Envelope]="61848",Qt[Kt.Equals]="61849",Qt[Kt.Eraser]="61850",Qt[Kt.Error]="61851",Qt[Kt.Euro]="61852",Qt[Kt.Excavator]="62317",Qt[Kt.Exchange]="61853",Qt[Kt.ExcludeRow]="61854",Qt[Kt.ExpandAll]="61855",Qt[Kt.Explain]="62285",Qt[Kt.Export]="61856",Qt[Kt.EyeOff]="61857",Qt[Kt.EyeOn]="61858",Qt[Kt.EyeOpen]="61859",Qt[Kt.FastBackward]="61860",Qt[Kt.FastForward]="61861",Qt[Kt.FeedSubscribed]="61862",Qt[Kt.Feed]="61863",Qt[Kt.FighterJet]="62340",Qt[Kt.Film]="61864",Qt[Kt.FilterKeep]="61865",Qt[Kt.FilterList]="61866",Qt[Kt.FilterOpen]="61867",Qt[Kt.FilterRemove]="61868",Qt[Kt.FilterSortAsc]="62350",Qt[Kt.FilterSortDesc]="62351",Qt[Kt.Filter]="61869",Qt[Kt.Flag]="61870",Qt[Kt.Flame]="61871",Qt[Kt.Flash]="61872",Qt[Kt.FloatingPoint]="62252",Qt[Kt.FloppyDisk]="61873",Qt[Kt.FlowBranch]="61874",Qt[Kt.FlowEnd]="61875",Qt[Kt.FlowLinear]="61876",Qt[Kt.FlowReviewBranch]="61877",Qt[Kt.FlowReview]="61878",Qt[Kt.Flows]="61879",Qt[Kt.FolderClose]="61880",Qt[Kt.FolderNew]="61881",Qt[Kt.FolderOpen]="61882",Qt[Kt.FolderSharedOpen]="61883",Qt[Kt.FolderShared]="61884",Qt[Kt.Follower]="61885",Qt[Kt.Following]="61886",Qt[Kt.Font]="61887",Qt[Kt.Fork]="61888",Qt[Kt.Form]="61889",Qt[Kt.ForwardTen]="62301",Qt[Kt.Fuel]="62243",Qt[Kt.FullCircle]="61890",Qt[Kt.FullStackedChart]="61891",Qt[Kt.Fullscreen]="61892",Qt[Kt.Function]="61893",Qt[Kt.GanttChart]="61894",Qt[Kt.Generate]="62284",Qt[Kt.Geofence]="61895",Qt[Kt.Geolocation]="61896",Qt[Kt.Geosearch]="61897",Qt[Kt.Geotime]="62276",Qt[Kt.GitBranch]="61898",Qt[Kt.GitCommit]="61899",Qt[Kt.GitMerge]="61900",Qt[Kt.GitNewBranch]="61901",Qt[Kt.GitPull]="61902",Qt[Kt.GitPush]="61903",Qt[Kt.GitRepo]="61904",Qt[Kt.Glass]="61905",Qt[Kt.GlobeNetworkAdd]="62338",Qt[Kt.GlobeNetwork]="61906",Qt[Kt.Globe]="61907",Qt[Kt.GraphRemove]="61908",Qt[Kt.Graph]="61909",Qt[Kt.GreaterThanOrEqualTo]="61910",Qt[Kt.GreaterThan]="61911",Qt[Kt.GridView]="61912",Qt[Kt.Grid]="61913",Qt[Kt.GroupItem]="62282",Qt[Kt.GroupObjects]="61914",Qt[Kt.GroupedBarChart]="61915",Qt[Kt.HandDown]="61916",Qt[Kt.HandLeft]="61917",Qt[Kt.HandRight]="61918",Qt[Kt.HandUp]="61919",Qt[Kt.Hand]="61920",Qt[Kt.Hat]="61921",Qt[Kt.HeaderOne]="61922",Qt[Kt.HeaderThree]="61923",Qt[Kt.HeaderTwo]="61924",Qt[Kt.Header]="61925",Qt[Kt.Headset]="61926",Qt[Kt.HeartBroken]="61927",Qt[Kt.Heart]="61928",Qt[Kt.HeatGrid]="61929",Qt[Kt.Heatmap]="61930",Qt[Kt.Helicopter]="61931",Qt[Kt.Help]="61932",Qt[Kt.HelperManagement]="61933",Qt[Kt.Hexagon]="62324",Qt[Kt.HighPriority]="61934",Qt[Kt.HighVoltagePole]="62259",Qt[Kt.Highlight]="61935",Qt[Kt.History]="61936",Qt[Kt.Home]="61937",Qt[Kt.HorizontalBarChartAsc]="61938",Qt[Kt.HorizontalBarChartDesc]="61939",Qt[Kt.HorizontalBarChart]="61940",Qt[Kt.HorizontalDistribution]="61941",Qt[Kt.HorizontalInbetween]="62249",Qt[Kt.Hurricane]="61942",Qt[Kt.IdNumber]="61943",Qt[Kt.ImageRotateLeft]="61944",Qt[Kt.ImageRotateRight]="61945",Qt[Kt.Import]="61946",Qt[Kt.InboxFiltered]="61947",Qt[Kt.InboxGeo]="61948",Qt[Kt.InboxSearch]="61949",Qt[Kt.InboxUpdate]="61950",Qt[Kt.Inbox]="61951",Qt[Kt.InfoSign]="61952",Qt[Kt.Inheritance]="61953",Qt[Kt.InheritedGroup]="61954",Qt[Kt.InnerJoin]="61955",Qt[Kt.Input]="62283",Qt[Kt.Insert]="61956",Qt[Kt.Intelligence]="62263",Qt[Kt.Intersection]="61957",Qt[Kt.IpAddress]="61958",Qt[Kt.IssueClosed]="61959",Qt[Kt.IssueNew]="61960",Qt[Kt.Issue]="61961",Qt[Kt.Italic]="61962",Qt[Kt.JoinTable]="61963",Qt[Kt.KeyBackspace]="61964",Qt[Kt.KeyCommand]="61965",Qt[Kt.KeyControl]="61966",Qt[Kt.KeyDelete]="61967",Qt[Kt.KeyEnter]="61968",Qt[Kt.KeyEscape]="61969",Qt[Kt.KeyOption]="61970",Qt[Kt.KeyShift]="61971",Qt[Kt.KeyTab]="61972",Qt[Kt.Key]="61973",Qt[Kt.KnownVehicle]="61974",Qt[Kt.LabTest]="61975",Qt[Kt.Label]="61976",Qt[Kt.LayerOutline]="61977",Qt[Kt.Layer]="61978",Qt[Kt.Layers]="61979",Qt[Kt.LayoutAuto]="61980",Qt[Kt.LayoutBalloon]="61981",Qt[Kt.LayoutBottomRowThreeTiles]="62308",Qt[Kt.LayoutBottomRowTwoTiles]="62307",Qt[Kt.LayoutCircle]="61982",Qt[Kt.LayoutGrid]="61983",Qt[Kt.LayoutGroupBy]="61984",Qt[Kt.LayoutHierarchy]="61985",Qt[Kt.LayoutLeftColumnThreeTiles]="62310",Qt[Kt.LayoutLeftColumnTwoTiles]="62309",Qt[Kt.LayoutLinear]="61986",Qt[Kt.LayoutRightColumnThreeTiles]="62312",Qt[Kt.LayoutRightColumnTwoTiles]="62311",Qt[Kt.LayoutSkewGrid]="61987",Qt[Kt.LayoutSortedClusters]="61988",Qt[Kt.LayoutThreeColumns]="62305",Qt[Kt.LayoutThreeRows]="62306",Qt[Kt.LayoutTopRowThreeTiles]="62314",Qt[Kt.LayoutTopRowTwoTiles]="62313",Qt[Kt.LayoutTwoColumns]="62303",Qt[Kt.LayoutTwoRows]="62304",Qt[Kt.Layout]="61989",Qt[Kt.Learning]="61990",Qt[Kt.LeftJoin]="61991",Qt[Kt.LengthenText]="62270",Qt[Kt.LessThanOrEqualTo]="61992",Qt[Kt.LessThan]="61993",Qt[Kt.Lifesaver]="61994",Qt[Kt.Lightbulb]="61995",Qt[Kt.Lightning]="61996",Qt[Kt.Link]="61997",Qt[Kt.LinkedSquares]="62341",Qt[Kt.ListColumns]="61998",Qt[Kt.ListDetailView]="61999",Qt[Kt.List]="62000",Qt[Kt.Locate]="62001",Qt[Kt.Lock]="62002",Qt[Kt.Locomotive]="62267",Qt[Kt.LogIn]="62003",Qt[Kt.LogOut]="62004",Qt[Kt.LowVoltagePole]="62258",Qt[Kt.Manual]="62005",Qt[Kt.ManuallyEnteredData]="62006",Qt[Kt.ManyToMany]="62007",Qt[Kt.ManyToOne]="62008",Qt[Kt.MapCreate]="62009",Qt[Kt.MapMarker]="62010",Qt[Kt.Map]="62011",Qt[Kt.Maximize]="62012",Qt[Kt.Media]="62013",Qt[Kt.MenuClosed]="62014",Qt[Kt.MenuOpen]="62015",Qt[Kt.Menu]="62016",Qt[Kt.MergeColumns]="62017",Qt[Kt.MergeLinks]="62018",Qt[Kt.Microphone]="62275",Qt[Kt.Minimize]="62019",Qt[Kt.Minus]="62020",Qt[Kt.MobilePhone]="62021",Qt[Kt.MobileVideo]="62022",Qt[Kt.ModalFilled]="62023",Qt[Kt.Modal]="62024",Qt[Kt.Model]="62269",Qt[Kt.Moon]="62025",Qt[Kt.More]="62026",Qt[Kt.Mountain]="62027",Qt[Kt.Move]="62028",Qt[Kt.Mugshot]="62029",Qt[Kt.MultiSelect]="62030",Qt[Kt.Music]="62031",Qt[Kt.Nest]="62032",Qt[Kt.NewDrawing]="62033",Qt[Kt.NewGridItem]="62034",Qt[Kt.NewLayer]="62035",Qt[Kt.NewLayers]="62036",Qt[Kt.NewLink]="62037",Qt[Kt.NewObject]="62038",Qt[Kt.NewPerson]="62039",Qt[Kt.NewPrescription]="62040",Qt[Kt.NewShield]="62281",Qt[Kt.NewTextBox]="62041",Qt[Kt.Ninja]="62042",Qt[Kt.NotEqualTo]="62043",Qt[Kt.NotificationsAdd]="62360",Qt[Kt.NotificationsSnooze]="62044",Qt[Kt.NotificationsUpdated]="62045",Qt[Kt.Notifications]="62046",Qt[Kt.NumberedList]="62047",Qt[Kt.Numerical]="62048",Qt[Kt.ObjectView]="62352",Qt[Kt.Office]="62049",Qt[Kt.Offline]="62050",Qt[Kt.OilField]="62051",Qt[Kt.OneColumn]="62052",Qt[Kt.OneToMany]="62053",Qt[Kt.OneToOne]="62054",Qt[Kt.OpenApplication]="62251",Qt[Kt.Outdated]="62055",Qt[Kt.Output]="62320",Qt[Kt.Package]="62325",Qt[Kt.PageLayout]="62056",Qt[Kt.PanelStats]="62057",Qt[Kt.PanelTable]="62058",Qt[Kt.Panel]="62337",Qt[Kt.Paperclip]="62059",Qt[Kt.Paragraph]="62060",Qt[Kt.PasteVariable]="62278",Qt[Kt.PathSearch]="62061",Qt[Kt.Path]="62062",Qt[Kt.Pause]="62063",Qt[Kt.People]="62064",Qt[Kt.Percentage]="62065",Qt[Kt.Person]="62066",Qt[Kt.PhoneCall]="62279",Qt[Kt.PhoneForward]="62280",Qt[Kt.PhoneSearch]="62359",Qt[Kt.Phone]="62067",Qt[Kt.PieChart]="62068",Qt[Kt.Pill]="62326",Qt[Kt.Pin]="62069",Qt[Kt.Pistol]="62364",Qt[Kt.PivotTable]="62070",Qt[Kt.Pivot]="62071",Qt[Kt.Play]="62072",Qt[Kt.Playbook]="62244",Qt[Kt.Plus]="62073",Qt[Kt.PolygonFilter]="62074",Qt[Kt.Power]="62075",Qt[Kt.PredictiveAnalysis]="62076",Qt[Kt.Prescription]="62077",Qt[Kt.Presentation]="62078",Qt[Kt.Print]="62079",Qt[Kt.Projects]="62080",Qt[Kt.Properties]="62081",Qt[Kt.Property]="62082",Qt[Kt.PublishFunction]="62083",Qt[Kt.Pulse]="62084",Qt[Kt.Rain]="62085",Qt[Kt.Random]="62086",Qt[Kt.RangeRing]="62321",Qt[Kt.Record]="62087",Qt[Kt.RectHeight]="62245",Qt[Kt.RectWidth]="62246",Qt[Kt.Rectangle]="62241",Qt[Kt.Redo]="62088",Qt[Kt.Refresh]="62089",Qt[Kt.Regex]="62255",Qt[Kt.RegressionChart]="62090",Qt[Kt.RemoveColumnLeft]="62091",Qt[Kt.RemoveColumnRight]="62092",Qt[Kt.RemoveColumn]="62093",Qt[Kt.RemoveRowBottom]="62094",Qt[Kt.RemoveRowTop]="62095",Qt[Kt.Remove]="62096",Qt[Kt.Repeat]="62097",Qt[Kt.Reset]="62098",Qt[Kt.Resolve]="62099",Qt[Kt.Rig]="62100",Qt[Kt.RightJoin]="62101",Qt[Kt.Ring]="62102",Qt[Kt.RocketSlant]="62103",Qt[Kt.Rocket]="62104",Qt[Kt.RotateCcw]="62345",Qt[Kt.RotateCw]="62344",Qt[Kt.RotateDocument]="62105",Qt[Kt.RotatePage]="62106",Qt[Kt.Route]="62107",Qt[Kt.RunHistory]="62355",Qt[Kt.Satellite]="62108",Qt[Kt.Saved]="62109",Qt[Kt.ScatterPlot]="62110",Qt[Kt.SearchAround]="62111",Qt[Kt.SearchTemplate]="62112",Qt[Kt.SearchText]="62113",Qt[Kt.Search]="62114",Qt[Kt.SegmentedControl]="62115",Qt[Kt.Select]="62116",Qt[Kt.SelectionBoxAdd]="62362",Qt[Kt.SelectionBoxEdit]="62363",Qt[Kt.SelectionBox]="62361",Qt[Kt.Selection]="62117",Qt[Kt.SendBackward]="62293",Qt[Kt.SendMessage]="62118",Qt[Kt.SendToGraph]="62119",Qt[Kt.SendToMap]="62120",Qt[Kt.SendTo]="62121",Qt[Kt.Sensor]="62268",Qt[Kt.SeriesAdd]="62122",Qt[Kt.SeriesConfiguration]="62123",Qt[Kt.SeriesDerived]="62124",Qt[Kt.SeriesFiltered]="62125",Qt[Kt.SeriesSearch]="62126",Qt[Kt.ServerInstall]="62327",Qt[Kt.Server]="62328",Qt[Kt.Settings]="62127",Qt[Kt.Shapes]="62128",Qt[Kt.Share]="62129",Qt[Kt.SharedFilter]="62130",Qt[Kt.Shield]="62131",Qt[Kt.Ship]="62132",Qt[Kt.Shop]="62133",Qt[Kt.ShoppingCart]="62134",Qt[Kt.ShortenText]="62271",Qt[Kt.SignalSearch]="62135",Qt[Kt.SimCard]="62136",Qt[Kt.Slash]="62137",Qt[Kt.SmallCross]="62138",Qt[Kt.SmallInfoSign]="62260",Qt[Kt.SmallMinus]="62139",Qt[Kt.SmallPlus]="62140",Qt[Kt.SmallSquare]="62141",Qt[Kt.SmallTick]="62142",Qt[Kt.Snowflake]="62143",Qt[Kt.SoccerBall]="62288",Qt[Kt.SocialMedia]="62144",Qt[Kt.SortAlphabeticalDesc]="62145",Qt[Kt.SortAlphabetical]="62146",Qt[Kt.SortAsc]="62147",Qt[Kt.SortDesc]="62148",Qt[Kt.SortNumericalDesc]="62149",Qt[Kt.SortNumerical]="62150",Qt[Kt.Sort]="62151",Qt[Kt.SpellCheck]="62272",Qt[Kt.SplitColumns]="62152",Qt[Kt.SportsStadium]="62289",Qt[Kt.Square]="62153",Qt[Kt.StackedChart]="62154",Qt[Kt.StadiumGeometry]="62155",Qt[Kt.StarEmpty]="62156",Qt[Kt.Star]="62157",Qt[Kt.StepBackward]="62158",Qt[Kt.StepChart]="62159",Qt[Kt.StepForward]="62160",Qt[Kt.Stop]="62161",Qt[Kt.Stopwatch]="62162",Qt[Kt.Strikethrough]="62163",Qt[Kt.Style]="62164",Qt[Kt.Subscript]="62265",Qt[Kt.SubtractRightJoin]="62354",Qt[Kt.Superscript]="62266",Qt[Kt.SwapHorizontal]="62165",Qt[Kt.SwapVertical]="62166",Qt[Kt.Switch]="62167",Qt[Kt.SymbolCircle]="62168",Qt[Kt.SymbolCross]="62169",Qt[Kt.SymbolDiamond]="62170",Qt[Kt.SymbolRectangle]="62242",Qt[Kt.SymbolSquare]="62171",Qt[Kt.SymbolTriangleDown]="62172",Qt[Kt.SymbolTriangleUp]="62173",Qt[Kt.Syringe]="62174",Qt[Kt.TableSync]="62318",Qt[Kt.TagAdd]="62329",Qt[Kt.TagPromote]="62330",Qt[Kt.TagRefresh]="62331",Qt[Kt.TagUndo]="62332",Qt[Kt.Tag]="62175",Qt[Kt.Tags]="62333",Qt[Kt.TakeAction]="62176",Qt[Kt.Tank]="62177",Qt[Kt.Target]="62178",Qt[Kt.Taxi]="62179",Qt[Kt.Team]="62290",Qt[Kt.Temperature]="62180",Qt[Kt.TextHighlight]="62181",Qt[Kt.ThAdd]="62346",Qt[Kt.ThDerived]="62182",Qt[Kt.ThDisconnect]="62183",Qt[Kt.ThFiltered]="62184",Qt[Kt.ThListAdd]="62347",Qt[Kt.ThList]="62185",Qt[Kt.ThVirtualAdd]="62349",Qt[Kt.ThVirtual]="62348",Qt[Kt.Th]="62186",Qt[Kt.ThirdParty]="62187",Qt[Kt.ThumbsDown]="62188",Qt[Kt.ThumbsUp]="62189",Qt[Kt.TickCircle]="62190",Qt[Kt.Tick]="62191",Qt[Kt.Time]="62192",Qt[Kt.TimelineAreaChart]="62193",Qt[Kt.TimelineBarChart]="62194",Qt[Kt.TimelineEvents]="62195",Qt[Kt.TimelineLineChart]="62196",Qt[Kt.Tint]="62197",Qt[Kt.Torch]="62198",Qt[Kt.Tractor]="62199",Qt[Kt.Train]="62200",Qt[Kt.Translate]="62201",Qt[Kt.Trash]="62202",Qt[Kt.Tree]="62203",Qt[Kt.TrendingDown]="62204",Qt[Kt.TrendingUp]="62205",Qt[Kt.Trophy]="62287",Qt[Kt.Truck]="62206",Qt[Kt.TwoColumns]="62207",Qt[Kt.Unarchive]="62208",Qt[Kt.Underline]="62209",Qt[Kt.Undo]="62210",Qt[Kt.UngroupObjects]="62211",Qt[Kt.UnknownVehicle]="62212",Qt[Kt.Unlink]="62277",Qt[Kt.Unlock]="62213",Qt[Kt.Unpin]="62214",Qt[Kt.Unresolve]="62215",Qt[Kt.Updated]="62216",Qt[Kt.Upload]="62217",Qt[Kt.User]="62218",Qt[Kt.Variable]="62219",Qt[Kt.Vector]="62302",Qt[Kt.VerticalBarChartAsc]="62220",Qt[Kt.VerticalBarChartDesc]="62221",Qt[Kt.VerticalDistribution]="62222",Qt[Kt.VerticalInbetween]="62250",Qt[Kt.Video]="62223",Qt[Kt.Virus]="62224",Qt[Kt.VolumeDown]="62225",Qt[Kt.VolumeOff]="62226",Qt[Kt.VolumeUp]="62227",Qt[Kt.Walk]="62228",Qt[Kt.WarningSign]="62229",Qt[Kt.WaterfallChart]="62230",Qt[Kt.Waves]="62231",Qt[Kt.WidgetButton]="62232",Qt[Kt.WidgetFooter]="62233",Qt[Kt.WidgetHeader]="62234",Qt[Kt.Widget]="62235",Qt[Kt.Wind]="62236",Qt[Kt.WrenchRedo]="62334",Qt[Kt.WrenchSnooze]="62335",Qt[Kt.WrenchTime]="62336",Qt[Kt.Wrench]="62237",Qt[Kt.ZoomIn]="62238",Qt[Kt.ZoomOut]="62239",Qt[Kt.ZoomToFit]="62240";var Ede={},Mde={};for(var lF=0,dQ=Object.values(Kt);lF<dQ.length;lF++){var XR=dQ[lF];Ede[eRe(XR)]=XR,Mde[rRe(XR).toUpperCase()]=XR}var ki=Qn(Qn({},Ede),Mde),aRe=new Set(Object.values(ki));function oRe(t){return typeof NODE_ENV<"u"&&NODE_ENV===t}function sRe(t,r){return V2(this,void 0,void 0,function(){var e,n,a;return G2(this,function(u){switch(u.label){case 0:return e=oRe("development")&&typeof performance<"u",e&&(n=performance.now(),console.info("Started '".concat(t,"'..."))),[4,r()];case 1:return u.sent(),e&&(a=Math.round(performance.now()-n),console.info("Finished '".concat(t,"' in ").concat(a,"ms"))),[2]}})})}function lRe(t){return V2(this,void 0,void 0,function(){var r,e;return G2(this,function(n){switch(n.label){case 0:return r=t.loader,e=r===void 0?_2.defaultLoader:r,typeof e!="function"?[3,1]:[2,e];case 1:return e!=="all"?[3,3]:[4,hQ(()=>import("./allPathsLoader-B5Ah5bqG.js"),[])];case 2:return[2,n.sent().allPathsLoader];case 3:return[4,hQ(()=>import("./splitPathsBySizeLoader-BHVWfA4U.js"),[])];case 4:return[2,n.sent().splitPathsBySizeLoader]}})})}var US=function(){function t(){this.defaultLoader="split-by-size",this.loadedIconPaths16=new Map,this.loadedIconPaths20=new Map}return t.setLoaderOptions=function(r){r.loader!==void 0&&(_2.defaultLoader=r.loader)},t.load=function(r,e,n){return V2(this,void 0,void 0,function(){var a=this;return G2(this,function(u){switch(u.label){case 0:return Array.isArray(r)||(r=[r]),[4,Promise.all(r.map(function(o){return a.loadImpl(o,e,n)}))];case 1:return u.sent(),[2]}})})},t.loadAll=function(r){return V2(this,void 0,void 0,function(){var e,n=this;return G2(this,function(a){return e=Object.values(ki),sRe("[Blueprint] loading all icons",function(){return V2(n,void 0,void 0,function(){return G2(this,function(u){switch(u.label){case 0:return[4,Promise.all([this.load(e,Fa.STANDARD,r),this.load(e,Fa.LARGE,r)])];case 1:return u.sent(),[2]}})})}),[2]})})},t.getPaths=function(r,e){if(this.isValidIconName(r)){var n=e<Fa.LARGE?_2.loadedIconPaths16:_2.loadedIconPaths20;return n.get(r)}},t.loadImpl=function(r,e,n){return n===void 0&&(n={}),V2(this,void 0,void 0,function(){var a,u,o,f,i;return G2(this,function(s){switch(s.label){case 0:return this.isValidIconName(r)?(a=e<Fa.LARGE?_2.loadedIconPaths16:_2.loadedIconPaths20,a.has(r)?[2]:[4,lRe(n)]):(console.error("[Blueprint] Unknown icon '".concat(r,"'")),[2]);case 1:u=s.sent(),s.label=2;case 2:return s.trys.push([2,4,,5]),o=e<Fa.LARGE?Fa.STANDARD:Fa.LARGE,[4,u(r,o)];case 3:return f=s.sent(),a.set(r,f),[3,5];case 4:return i=s.sent(),console.error("[Blueprint] Unable to load ".concat(e,"px icon '").concat(r,"'"),i),[3,5];case 5:return[2]}})})},t.isValidIconName=function(r){return aRe.has(r)},t}(),_2=new US,uRe="bp5",vQ="".concat(uRe,"-icon"),gQ=new Map;function cRe(t){var r,e=(r=gQ.get(t))!==null&&r!==void 0?r:0;return gQ.set(t,e+1),"".concat(t,"-").concat(e)}var Ph=St.forwardRef(function(t,r){var e=t.children,n=t.className,a=t.color,u=t.htmlTitle,o=t.iconName,f=t.size,i=f===void 0?Fa.STANDARD:f,s=t.svgProps,d=t.tagName,l=d===void 0?"span":d,h=t.title,y=Ls(t,["children","className","color","htmlTitle","iconName","size","svgProps","tagName","title"]),b=i>=Fa.LARGE,C=b?Fa.LARGE:Fa.STANDARD,m="0 0 ".concat(C," ").concat(C),c=cRe("iconTitle"),v=Qn({fill:a,height:i,role:"img",viewBox:m,width:i},s);return l===null?St.createElement("svg",Qn({"aria-labelledby":h?c:void 0,"data-icon":o,ref:r},v,y,{className:_i(n,s==null?void 0:s.className)}),h&&St.createElement("title",{id:c},h),e):St.createElement(l,Qn(Qn({"aria-hidden":h?void 0:!0},y),{className:_i(vQ,"".concat(vQ,"-").concat(o),n),ref:r,title:u}),St.createElement("svg",Qn({"data-icon":o},v,{className:s==null?void 0:s.className}),h&&St.createElement("title",null,h),e))});Ph.displayName="Blueprint5.SVGIconContainer";var wG=St.forwardRef(function(t,r){var e=t.size>=Fa.LARGE,n=e?Fa.LARGE:Fa.STANDARD,a="".concat(-1*n/.05/2),u={transformOrigin:"center"};return St.createElement(Ph,Qn({iconName:"arrow-down",ref:r},t),St.createElement("path",{d:e?"M320 180C314 180 310 178 306 174L220 88V360C220 370 212 380 200 380S180 370 180 360V88L94 174C90 178 86 180 80 180C70 180 60 172 60 160C60 154 62 150 66 146L186 26C190 22 194 20 200 20S210 22 214 26L334 146C338 150 340 154 340 160C340 172 330 180 320 180L320 180z":"M260 160C254 160 250 158 246 154L180 88V280C180 290 172 300 160 300S140 290 140 280V88L74 154C70 158 66 160 60 160C50 160 40 150 40 140C40 134 42 130 46 126L146 26C150 22 154 20 160 20S170 22 174 26L274 126C278 130 280 134 280 140C280 152 272 160 260 160L260 160z",fillRule:"evenodd",transform:"scale(0.05, -0.05) translate(".concat(a,", ").concat(a,")"),style:u}))});wG.defaultProps={size:Fa.STANDARD};wG.displayName="Blueprint5.Icon.ArrowDown";var TG=St.forwardRef(function(t,r){var e=t.size>=Fa.LARGE,n=e?Fa.LARGE:Fa.STANDARD,a="".concat(-1*n/.05/2),u={transformOrigin:"center"};return St.createElement(Ph,Qn({iconName:"arrow-left",ref:r},t),St.createElement("path",{d:e?"M360 220H88.2L174 305.8C177.8 309.4 180 314.4 180 320C180 331 171 340 160 340C154.4 340 149.4 337.8 145.8 334.2L25.8 214.2C22.2 210.6 20 205.6 20 200C20 194.4 22.2 189.4 25.8 185.8L145.8 65.8C149.4 62.2 154.4 60 160 60C171 60 180 69 180 80C180 85.6 177.8 90.6 174.2 94.2000000000001L88.2 180H360C371 180 380 189 380 200C380 211 371 220 360 220z":"M279.8 180.2H88.2L154 246C157.6 249.6 159.8 254.6 159.8 260.2C159.8 271.2 150.8 280.2 139.8 280.2C134.2 280.2 129.2 278 125.6 274.4L25.6 174.4C22 170.6 19.8 165.6 19.8 160.2S22 149.6 25.6 146L125.6 46C129.2 42.4 134.2 40.2 139.8 40.2C150.8 40.2 159.8 49.2 159.8 60.2000000000001C159.8 65.8 157.6 70.8 154 74.4L88.2 140.2H280C291 140.2 300 149.2 300 160.2S290.8 180.2 279.8 180.2z",fillRule:"evenodd",transform:"scale(0.05, -0.05) translate(".concat(a,", ").concat(a,")"),style:u}))});TG.defaultProps={size:Fa.STANDARD};TG.displayName="Blueprint5.Icon.ArrowLeft";var _G=St.forwardRef(function(t,r){var e=t.size>=Fa.LARGE,n=e?Fa.LARGE:Fa.STANDARD,a="".concat(-1*n/.05/2),u={transformOrigin:"center"};return St.createElement(Ph,Qn({iconName:"arrow-right",ref:r},t),St.createElement("path",{d:e?"M374.2000000000001 214.2L254.2 334.2000000000001C250.6 337.8 245.6 340 240 340C229 340 220 331 220 320C220 314.4 222.2 309.4 225.8 305.8L311.8 220H40C29 220 20 211 20 200C20 189 29 180 40 180H311.8L226 94.2000000000001C222.2 90.6 220 85.6 220 80C220 69 229 60 240 60C245.6 60 250.6 62.2 254.2 65.8L374.2000000000001 185.8C377.8 189.4 380 194.4 380 200C380 205.6 377.8 210.6 374.2000000000001 214.2z":"M294 174.2L194 274.2C190.4 278 185.4 280.2 179.8 280.2C168.8 280.2 159.8 271.2 159.8 260.2C159.8 254.6 162 249.6 165.6 246L231.4 180.2H39.8C28.8 180.2 19.8 171.2 19.8 160.2S28.8 140.2 39.8 140.2H231.6L165.8 74.4C162.2 70.8 160 65.8 160 60.1999999999999C160 49.1999999999999 169 40.1999999999999 180 40.1999999999999C185.6 40.1999999999999 190.6 42.4 194.2 45.9999999999999L294.2000000000001 146C297.8 149.5999999999999 300 154.5999999999999 300 160.1999999999999S297.6 170.6 294 174.2z",fillRule:"evenodd",transform:"scale(0.05, -0.05) translate(".concat(a,", ").concat(a,")"),style:u}))});_G.defaultProps={size:Fa.STANDARD};_G.displayName="Blueprint5.Icon.ArrowRight";var SG=St.forwardRef(function(t,r){var e=t.size>=Fa.LARGE,n=e?Fa.LARGE:Fa.STANDARD,a="".concat(-1*n/.05/2),u={transformOrigin:"center"};return St.createElement(Ph,Qn({iconName:"arrow-up",ref:r},t),St.createElement("path",{d:e?"M334 254L214 374C210 378 206 380 200 380S190 378 186 374L66 254C62 250 60 246 60 240C60 228 70 220 80 220C86 220 90 222 94 226L180 312V40C180 30 188 20 200 20S220 30 220 40V312L306 226C310 222 314 220 320 220C330 220 340 228 340 240C340 246 338 250 334 254L334 254z":"M274 194L174 294C170 298 166 300 160 300S150 298 146 294L46 194C42 190 40 186 40 180C40 168 50 160 60 160C66 160 70 162 74 166L140 232V40C140 28 148 20 160 20S180 28 180 40V232L246 166C250 162 254 160 260 160C272 160 280 168 280 180C280 186 278 190 274 194L274 194z",fillRule:"evenodd",transform:"scale(0.05, -0.05) translate(".concat(a,", ").concat(a,")"),style:u}))});SG.defaultProps={size:Fa.STANDARD};SG.displayName="Blueprint5.Icon.ArrowUp";var EG=St.forwardRef(function(t,r){var e=t.size>=Fa.LARGE,n=e?Fa.LARGE:Fa.STANDARD,a="".concat(-1*n/.05/2),u={transformOrigin:"center"};return St.createElement(Ph,Qn({iconName:"caret-right",ref:r},t),St.createElement("path",{d:e?"M280 200C280 206.2 277 211.4 272.6 215.2L272.8 215.4L152.8 315.4L152.6 315.2C149.2 318 144.8 320 140 320C129 320 120 311 120 300V100C120 89 129 80 140 80C144.8 80 149.2 82 152.6 84.8L152.8 84.6L272.8 184.6L272.6 184.8C277 188.6 280 193.8 280 200z":"M220 160C220 163 218.6 165.6 216.6 167.4L216.6 167.4L136.6 237.4L136.6 237.4C134.8 239 132.6 240 130 240C124.4 240 120 235.6 120 230V90C120 84.4 124.4 80 130 80C132.6 80 134.8 81 136.6 82.6C136.6 82.6 136.6 82.6 136.6 82.6L216.6 152.6L216.6 152.6C218.6 154.4 220 157 220 160z",fillRule:"evenodd",transform:"scale(0.05, -0.05) translate(".concat(a,", ").concat(a,")"),style:u}))});EG.defaultProps={size:Fa.STANDARD};EG.displayName="Blueprint5.Icon.CaretRight";var aD=St.forwardRef(function(t,r){var e=t.size>=Fa.LARGE,n=e?Fa.LARGE:Fa.STANDARD,a="".concat(-1*n/.05/2),u={transformOrigin:"center"};return St.createElement(Ph,Qn({iconName:"cross",ref:r},t),St.createElement("path",{d:e?"M228.2 200L314 285.8C317.8 289.4 320 294.4 320 300C320 311 311 320 300 320C294.4000000000001 320 289.4000000000001 317.8 285.8 314.2L200 228.2L114.2 314.2C110.6 317.8 105.6 320 100 320C89 320 80 311 80 300C80 294.4 82.2 289.4 85.8 285.8L171.8 200L86 114.2000000000001C82.2 110.6 80 105.6 80 100C80 89 89 80 100 80C105.6 80 110.6 82.2 114.2 85.8L200 171.8L285.8 86C289.4000000000001 82.2 294.4000000000001 80 300 80C311 80 320 89 320 100C320 105.6 317.8 110.6 314.2000000000001 114.2000000000001L228.2 200z":"M188.2 160L254 225.8C257.8 229.4 260 234.4 260 240C260 251 251 260 240 260C234.4 260 229.4 257.8 225.8 254.2L160 188.2L94.2 254.2C90.6 257.8 85.6 260 80 260C69 260 60 251 60 240C60 234.4 62.2 229.4 65.8 225.8L131.8 160L66 94.2C62.2 90.6 60 85.6 60 80C60 69 69 60 80 60C85.6 60 90.6 62.2 94.2 65.8L160 131.8L225.8 66C229.4 62.2 234.4 60 240 60C251 60 260 69 260 80C260 85.6 257.8 90.6 254.2 94.2L188.2 160z",fillRule:"evenodd",transform:"scale(0.05, -0.05) translate(".concat(a,", ").concat(a,")"),style:u}))});aD.defaultProps={size:Fa.STANDARD};aD.displayName="Blueprint5.Icon.Cross";var MG=St.forwardRef(function(t,r){var e=t.size>=Fa.LARGE,n=e?Fa.LARGE:Fa.STANDARD,a="".concat(-1*n/.05/2),u={transformOrigin:"center"};return St.createElement(Ph,Qn({iconName:"drag-handle-vertical",ref:r},t),St.createElement("path",{d:e?"M150 280C133.4 280 120 266.6 120 250S133.4 220 150 220S180 233.4 180 250S166.6 280 150 280zM150 180C133.4 180 120 166.6 120 150S133.4 120 150 120S180 133.4 180 150S166.6 180 150 180zM150 80C133.4 80 120 66.6 120 50S133.4 20 150 20S180 33.4 180 50S166.6 80 150 80zM250 320C266.6 320 280 333.4 280 350S266.6 380 250 380S220 366.6 220 350S233.4 320 250 320zM150 380C133.4 380 120 366.6 120 350S133.4 320 150 320S180 333.4 180 350S166.6 380 150 380zM250 180C233.4 180 220 166.6 220 150S233.4 120 250 120S280 133.4 280 150S266.6 180 250 180zM250 80C233.4 80 220 66.6 220 50S233.4 20 250 20S280 33.4 280 50S266.6 80 250 80zM250 280C233.4 280 220 266.6 220 250S233.4 220 250 220S280 233.4 280 250S266.6 280 250 280z":"M120 140C109 140 100 131 100 120C100 109 109 100 120 100S140 109 140 120C140 131 131 140 120 140zM200 260C211 260 220 269 220 280C220 291 211 300 200 300S180 291 180 280C180 269 189 260 200 260zM120 60C109 60 100 51 100 40C100 29 109 20 120 20S140 29 140 40C140 51 131 60 120 60zM120 220C109 220 100 211 100 200C100 189 109 180 120 180S140 189 140 200C140 211 131 220 120 220zM120 300C109 300 100 291 100 280C100 269 109 260 120 260S140 269 140 280C140 291 131 300 120 300zM200 140C189 140 180 131 180 120C180 109 189 100 200 100S220 109 220 120C220 131 211 140 200 140zM200 220C189 220 180 211 180 200C180 189 189 180 200 180S220 189 220 200C220 211 211 220 200 220zM200 60C189 60 180 51 180 40C180 29 189 20 200 20S220 29 220 40C220 51 211 60 200 60z",fillRule:"evenodd",transform:"scale(0.05, -0.05) translate(".concat(a,", ").concat(a,")"),style:u}))});MG.defaultProps={size:Fa.STANDARD};MG.displayName="Blueprint5.Icon.DragHandleVertical";var CO=St.forwardRef(function(t,r){var e=t.size>=Fa.LARGE,n=e?Fa.LARGE:Fa.STANDARD,a="".concat(-1*n/.05/2),u={transformOrigin:"center"};return St.createElement(Ph,Qn({iconName:"key-command",ref:r},t),St.createElement("path",{d:e?"M310 160H280V240H310C348.6 240 380 271.4 380 310S348.6 380 310 380S240 348.6 240 310V280H160V310C160 348.6 128.6 380 90 380S20 348.6 20 310S51.4 240 90 240H120V160H90C51.4 160 20 128.6 20 90S51.4 20 90 20S160 51.4 160 90V120H240V90C240 51.4 271.4 20 310 20S380 51.4 380 90S348.6 160 310 160zM310 340C326.6 340 340 326.6 340 310S326.6 280 310 280S280 293.4 280 310S293.4 340 310 340zM90 60C73.4 60 60 73.4 60 90S73.4 120 90 120S120 106.6 120 90S106.6 60 90 60zM90 280C73.4 280 60 293.4 60 310S73.4 340 90 340S120 326.6 120 310S106.6 280 90 280zM240 160H160V240H240V160zM310 60C293.4 60 280 73.4 280 90S293.4 120 310 120S340 106.6 340 90S326.6 60 310 60z":"M240 140H220V180H240C273.2 180 300 206.8 300 240S273.2 300 240 300S180 273.2 180 240V220H140V240C140 273.2 113.2 300 80 300S20 273.2 20 240S46.8 180 80 180H100V140H80C46.8 140 20 113.2 20 80S46.8 20 80 20S140 46.8 140 80V100H180V80C180 46.8 206.8 20 240 20S300 46.8 300 80S273.2 140 240 140zM240 260C251 260 260 251 260 240C260 229 251 220 240 220S220 229 220 240C220 251 229 260 240 260zM80 60C69 60 60 69 60 80C60 91 69 100 80 100S100 91 100 80C100 69 91 60 80 60zM80 220C69 220 60 229 60 240C60 251 69 260 80 260S100 251 100 240C100 229 91 220 80 220zM180 140H140V180H180V140zM240 60C229 60 220 69 220 80C220 91 229 100 240 100S260 91 260 80C260 69 251 60 240 60z",fillRule:"evenodd",transform:"scale(0.05, -0.05) translate(".concat(a,", ").concat(a,")"),style:u}))});CO.defaultProps={size:Fa.STANDARD};CO.displayName="Blueprint5.Icon.KeyCommand";var RG=St.forwardRef(function(t,r){var e=t.size>=Fa.LARGE,n=e?Fa.LARGE:Fa.STANDARD,a="".concat(-1*n/.05/2),u={transformOrigin:"center"};return St.createElement(Ph,Qn({iconName:"key-control",ref:r},t),St.createElement("path",{d:e?"M334.2000000000001 254.2L214.2 374.2C210.6 377.8 205.6 380 200 380S189.4 377.8 185.8 374.2L65.8 254.2C62.2 250.6 60 245.6 60 240C60 229 69 220 80 220C85.6 220 90.6 222.2 94.2 225.8L200 331.8L305.8 226C309.4000000000001 222.2 314.4000000000001 220 320 220C331 220 340 229 340 240C340 245.6 337.8 250.6 334.2000000000001 254.2z":"M254.2 214.2L174.2 294.2C170.6 297.8 165.6 300 160 300S149.4 297.8 145.8 294.2L65.8 214.2C62.2 210.6 60 205.6 60 200C60 189 69 180 80 180C85.6 180 90.6 182.2 94.2 185.8L160 251.8L225.8 186C229.4 182.2 234.4 180 240 180C251 180 260 189 260 200C260 205.6 257.8 210.6 254.2 214.2z",fillRule:"evenodd",transform:"scale(0.05, -0.05) translate(".concat(a,", ").concat(a,")"),style:u}))});RG.defaultProps={size:Fa.STANDARD};RG.displayName="Blueprint5.Icon.KeyControl";var PG=St.forwardRef(function(t,r){var e=t.size>=Fa.LARGE,n=e?Fa.LARGE:Fa.STANDARD,a="".concat(-1*n/.05/2),u={transformOrigin:"center"};return St.createElement(Ph,Qn({iconName:"key-delete",ref:r},t),St.createElement("path",{d:e?"M394.2000000000001 214.2L274.2000000000001 334.2000000000001C270.6 337.8 265.6 340 260 340H20C9 340 0 331 0 320V80C0 69 9 60 20 60H260C265.6 60 270.6 62.2 274.2000000000001 65.8L394.2000000000001 185.8C397.8 189.4 400 194.4 400 200C400 205.6 397.8 210.6 394.2000000000001 214.2zM214.2 154.2C217.8 150.6 220 145.6 220 140C220 129 211 120 200 120C194.4 120 189.4 122.2 185.8 125.8L140 171.8L94.2 126C90.6 122.2 85.6 120 80 120C69 120 60 129 60 140C60 145.6 62.2 150.6 65.8 154.2L111.8 200L65.8 245.8C62.2 249.4 60 254.4 60 260C60 271 69 280 80 280C85.6 280 90.6 277.8 94.2 274.2L140 228.2L185.8 274C189.4 277.8 194.4 280 200 280C211 280 220 271 220 260C220 254.4 217.8 249.4 214.2 245.8L168.2 200L214.2 154.2z":"M314.2000000000001 174.2L214.2 274.2C210.6 277.8 205.6 280 200 280H20C9 280 0 271 0 260V60C0 49 9 40 20 40H200C205.6 40 210.6 42.2 214.2 45.8L314.2000000000001 145.8C317.8 149.4 320 154.4 320 160C320 165.6 317.8 170.6 314.2000000000001 174.2zM174.2 134.2C177.8 130.6 180 125.6 180 120C180 109 171 100 160 100C154.4 100 149.4 102.2 145.8 105.8L120 131.8L94.2 106C90.6 102.2 85.6 100 80 100C69 100 60 109 60 120C60 125.6 62.2 130.6 65.8 134.2L91.8 160L65.8 185.8C62.2 189.4 60 194.4 60 200C60 211 69 220 80 220C85.6 220 90.6 217.8 94.2 214.2L120 188.2L145.8 214C149.4 217.8 154.4 220 160 220C171 220 180 211 180 200C180 194.4 177.8 189.4 174.2 185.8L148.2 160L174.2 134.2z",fillRule:"evenodd",transform:"scale(0.05, -0.05) translate(".concat(a,", ").concat(a,")"),style:u}))});PG.defaultProps={size:Fa.STANDARD};PG.displayName="Blueprint5.Icon.KeyDelete";var LG=St.forwardRef(function(t,r){var e=t.size>=Fa.LARGE,n=e?Fa.LARGE:Fa.STANDARD,a="".concat(-1*n/.05/2),u={transformOrigin:"center"};return St.createElement(Ph,Qn({iconName:"key-enter",ref:r},t),St.createElement("path",{d:e?"M360 360C349 360 340 351 340 340V240C340 195.8 304.2000000000001 160 260 160H88.2L134 205.8C137.8 209.4 140 214.4 140 220C140 231 131 240 120 240C114.4 240 109.4 237.8 105.8 234.2L25.8 154.2C22.2 150.6 20 145.6 20 140C20 134.4 22.2 129.4 25.8 125.8L105.8 45.8C109.4 42.2 114.4 40 120 40C131 40 140 49 140 60C140 65.6 137.8 70.6 134.2 74.2000000000001L88.2 120H260C326.2 120 380 173.8 380 240V340C380 351 371 360 360 360z":"M280 280C269 280 260 271 260 260V200C260 166.8 233.2 140 200 140H88.2L114 165.8C117.8 169.4 120 174.4 120 180C120 191 111 200 100 200C94.4 200 89.4 197.8 85.8 194.2L25.8 134.2C22.2 130.6 20 125.6 20 120C20 114.4 22.2 109.4 25.8 105.8L85.8 45.8C89.4 42.2 94.4 40 100 40C111 40 120 49 120 60C120 65.6 117.8 70.6 114.2 74.2L88.2 100H200C255.2 100 300 144.8 300 200V260C300 271 291 280 280 280z",fillRule:"evenodd",transform:"scale(0.05, -0.05) translate(".concat(a,", ").concat(a,")"),style:u}))});LG.defaultProps={size:Fa.STANDARD};LG.displayName="Blueprint5.Icon.KeyEnter";var OG=St.forwardRef(function(t,r){var e=t.size>=Fa.LARGE,n=e?Fa.LARGE:Fa.STANDARD,a="".concat(-1*n/.05/2),u={transformOrigin:"center"};return St.createElement(Ph,Qn({iconName:"key-option",ref:r},t),St.createElement("path",{d:e?"M260 320H380C391 320 400 329 400 340C400 351 391 360 380 360H260C249 360 240 351 240 340C240 329 249 320 260 320zM380 80H291.6L137.4 350L137 349.8C133.6 355.8 127.4 360 120 360H20C9 360 0 351 0 340C0 329 9 320 20 320H108.4L262.6 50L262.8 50.2C266.4 44.2 272.6 40 280 40H380C391 40 400 49 400 60C400 71 391 80 380 80z":"M220 240H300C311 240 320 249 320 260C320 271 311 280 300 280H220C209 280 200 271 200 260C200 249 209 240 220 240zM300 80H231.4L117.2 270.2L116.8 270.2C113.4 276 107.2 280 100 280H20C9 280 0 271 0 260C0 249 9 240 20 240H88.6L202.8 49.8L203 50C206.6 44 212.8 40 220 40H300C311 40 320 49 320 60C320 71 311 80 300 80z",fillRule:"evenodd",transform:"scale(0.05, -0.05) translate(".concat(a,", ").concat(a,")"),style:u}))});OG.defaultProps={size:Fa.STANDARD};OG.displayName="Blueprint5.Icon.KeyOption";var kG=St.forwardRef(function(t,r){var e=t.size>=Fa.LARGE,n=e?Fa.LARGE:Fa.STANDARD,a="".concat(-1*n/.05/2),u={transformOrigin:"center"};return St.createElement(Ph,Qn({iconName:"key-shift",ref:r},t),St.createElement("path",{d:e?"M354.8 193L354.8 193L215 353.2L214.8 353C211.2 357.2 206 360 200 360S188.8 357.2 185.2 353L185 353.2L45 193.2L45.2 193C42 189.6 40 185 40 180C40 169 49 160 60 160H120V60C120 49 129 40 140 40H260C271 40 280 49 280 60V160H340C351 160 360 169 360 180C360 185 358 189.6 354.8 193z":"M274.2000000000001 174.2L174.2 274.2C170.6 277.8 165.6 280 160 280S149.4 277.8 145.8 274.2L45.8 174.2C42.2 170.6 40 165.6 40 160C40 149 49 140 60 140H100V60C100 49 109 40 120 40H200C211 40 220 49 220 60V140H260C271 140 280 149 280 160C280 165.6 277.8 170.6 274.2000000000001 174.2z",fillRule:"evenodd",transform:"scale(0.05, -0.05) translate(".concat(a,", ").concat(a,")"),style:u}))});kG.defaultProps={size:Fa.STANDARD};kG.displayName="Blueprint5.Icon.KeyShift";var IO=St.forwardRef(function(t,r){var e=t.size>=Fa.LARGE,n=e?Fa.LARGE:Fa.STANDARD,a="".concat(-1*n/.05/2),u={transformOrigin:"center"};return St.createElement(Ph,Qn({iconName:"more",ref:r},t),St.createElement("path",{d:e?"M20 190A50 50 0 0 1 120 190A50 50 0 0 1 20 190M300 190A50 50 0 0 1 400 190A50 50 0 0 1 300 190M160 190A50 50 0 0 1 260 190A50 50 0 0 1 160 190":"M0 159.4A40 40 0 0 1 80 159.4A40 40 0 0 1 0 159.4M240 159.4A40 40 0 0 1 320 159.4A40 40 0 0 1 240 159.4M120 159.4A40 40 0 0 1 200 159.4A40 40 0 0 1 120 159.4",fillRule:"evenodd",transform:"scale(0.05, -0.05) translate(".concat(a,", ").concat(a,")"),style:u}))});IO.defaultProps={size:Fa.STANDARD};IO.displayName="Blueprint5.Icon.More";var DG=St.forwardRef(function(t,r){var e=t.size>=Fa.LARGE,n=e?Fa.LARGE:Fa.STANDARD,a="".concat(-1*n/.05/2),u={transformOrigin:"center"};return St.createElement(Ph,Qn({iconName:"search",ref:r},t),St.createElement("path",{d:e?"M391.2 51.2L292.4 150C309.8 175.8 320 206.6 320 240C320 328.4 248.4 400 160 400S0 328.4 0 240S71.6 80 160 80C193.4 80 224.2 90.2 250 107.6L348.8 8.8C354.2000000000001 3.4 361.8 0 370 0C386.6 0 400 13.4 400 30C400 38.2 396.6 45.8 391.2 51.2zM160 120C93.8 120 40 173.8 40 240S93.8 360 160 360S280 306.2000000000001 280 240S226.2 120 160 120z":"M311 51.4L257.6 105C271.6 126.8 279.8 152.6 279.8 180.2C279.8 257.6 217.2 320.2 139.8 320.2S-0.2 257.6 -0.2 180.2S62.4 40.2 139.8 40.2C167.6 40.2 193.4 48.6 215 62.4L268.6 9C274 3.6 281.6 0.2 289.8 0.2C306.4 0.2 319.8 13.6 319.8 30.2C319.8 38.4 316.4 46 311 51.4zM139.8 80.2C84.6 80.2 39.8 125 39.8 180.2S84.6 280.2 139.8 280.2S239.8 235.4 239.8 180.2S195 80.2 139.8 80.2z",fillRule:"evenodd",transform:"scale(0.05, -0.05) translate(".concat(a,", ").concat(a,")"),style:u}))});DG.defaultProps={size:Fa.STANDARD};DG.displayName="Blueprint5.Icon.Search";var oD=St.forwardRef(function(t,r){var e=t.size>=Fa.LARGE,n=e?Fa.LARGE:Fa.STANDARD,a="".concat(-1*n/.05/2),u={transformOrigin:"center"};return St.createElement(Ph,Qn({iconName:"small-cross",ref:r},t),St.createElement("path",{d:e?"M228.2 200L294 265.8C297.8 269.4 300 274.4 300 280C300 291 291 300 280 300C274.4000000000001 300 269.4000000000001 297.8 265.8 294.2L200 228.2L134.2 294.2C130.6 297.8 125.6 300 120 300C109 300 100 291 100 280C100 274.4 102.2 269.4 105.8 265.8L171.8 200L106 134.2000000000001C102.2 130.6 100 125.6 100 120C100 109 109 100 120 100C125.6 100 130.6 102.2 134.2 105.8L200 171.8L265.8 106C269.4000000000001 102.2 274.4000000000001 100 280 100C291 100 300 109 300 120C300 125.6 297.8 130.6 294.2000000000001 134.2000000000001L228.2 200z":"M188.2 160L234 205.8C237.8 209.4 240 214.4 240 220C240 231 231 240 220 240C214.4 240 209.4 237.8 205.8 234.2L160 188.2L114.2 234.2C110.6 237.8 105.6 240 100 240C89 240 80 231 80 220C80 214.4 82.2 209.4 85.8 205.8L131.8 160L86 114.2C82.2 110.6 80 105.6 80 100C80 89 89 80 100 80C105.6 80 110.6 82.2 114.2 85.8L160 131.8L205.8 86C209.4 82.2 214.4 80 220 80C231 80 240 89 240 100C240 105.6 237.8 110.6 234.2 114.2L188.2 160z",fillRule:"evenodd",transform:"scale(0.05, -0.05) translate(".concat(a,", ").concat(a,")"),style:u}))});oD.defaultProps={size:Fa.STANDARD};oD.displayName="Blueprint5.Icon.SmallCross";var NG=St.forwardRef(function(t,r){var e=t.size>=Fa.LARGE,n=e?Fa.LARGE:Fa.STANDARD,a="".concat(-1*n/.05/2),u={transformOrigin:"center"};return St.createElement(Ph,Qn({iconName:"small-tick",ref:r},t),St.createElement("path",{d:e?"M300 300C294.4000000000001 300 289.4000000000001 297.8 285.8 294.2L160 168.2L114.2 214.2C110.6 217.8 105.6 220 100 220C89 220 80 211 80 200C80 194.4 82.2 189.4 85.8 185.8L145.8 125.8C149.4 122.2 154.4 120 160 120S170.6 122.2 174.2 125.8L314.2000000000001 265.8C317.8 269.4 320 274.4 320 280C320 291 311 300 300 300z":"M240 220C234.4 220 229.4 217.8 225.8 214.2L140 128.2L94.2 174.2C90.6 177.8 85.6 180 80 180C69 180 60 171 60 160C60 154.4 62.2 149.4 65.8 145.8L125.8 85.8C129.4 82.2 134.4 80 140 80S150.6 82.2 154.2 85.8L254.2 185.8C257.8 189.4 260 194.4 260 200C260 211 251 220 240 220z",fillRule:"evenodd",transform:"scale(0.05, -0.05) translate(".concat(a,", ").concat(a,")"),style:u}))});NG.defaultProps={size:Fa.STANDARD};NG.displayName="Blueprint5.Icon.SmallTick";var tl=St.forwardRef(function(t,r){var e,n,a=t.autoLoad,u=a===void 0?!0:a,o=t.className,f=t.color,i=t.icon,s=t.intent,d=t.tagName,l=d===void 0?"span":d,h=t.svgProps,y=t.title,b=t.htmlTitle,C=Ls(t,["autoLoad","className","color","icon","intent","tagName","svgProps","title","htmlTitle"]),m=(n=(e=t.iconSize)!==null&&e!==void 0?e:t.size)!==null&&n!==void 0?n:Fa.STANDARD,c=St.useState(function(){return typeof i=="string"?US.getPaths(i,m):void 0}),v=c[0],g=c[1];if(St.useEffect(function(){var A=!1;if(typeof i=="string"){var T=US.getPaths(i,m);T!==void 0?g(T):u?US.load(i,m).then(function(){A||g(US.getPaths(i,m))}).catch(function(_){console.error("[Blueprint] Icon '".concat(i,"' (").concat(m,"px) could not be loaded."),_)}):console.error("[Blueprint] Icon '".concat(i,"' (").concat(m,"px) is not loaded yet and autoLoad={false}, did you call Icons.load('").concat(i,"', ").concat(m,")?"))}return function(){A=!0}},[u,i,m]),i==null||typeof i=="boolean")return null;if(typeof i!="string")return i;if(v==null){var p=m===Fa.STANDARD?ZMe:m===Fa.LARGE?YMe:void 0;return St.createElement(l||"span",Qn(Qn({"aria-hidden":y?void 0:!0},cI(C)),{className:_i(CG,p,XMe(i),Yd(s),o),"data-icon":i,ref:r,title:b}))}else{var I=v.map(function(A,T){return St.createElement("path",{d:A,key:T,fillRule:"evenodd"})});return St.createElement(Ph,Qn({children:I,className:_i(Yd(s),o),color:f,htmlTitle:b,iconName:i,ref:r,size:m,svgProps:h,tagName:l,title:y},cI(C)))}});tl.displayName="".concat(Vo,".Icon");var sx;(function(t){t[t.SMALL=20]="SMALL",t[t.STANDARD=50]="STANDARD",t[t.LARGE=100]="LARGE"})(sx||(sx={}));var fC=45,pQ="M 50,50 m 0,-".concat(fC," a ").concat(fC,",").concat(fC," 0 1 1 0,").concat(fC*2," a ").concat(fC,",").concat(fC," 0 1 1 0,-").concat(fC*2),dS=280,fRe=10,hRe=4,dRe=16,FG=function(t){var r,e=t.className,n=e===void 0?"":e,a=t.intent,u=t.value,o=t.tagName,f=o===void 0?"div":o,i=t.size,s=Ls(t,["className","intent","value","tagName","size"]);Tde(function(){var b=i!=null,C=n.indexOf(AO)>=0||n.indexOf(jT)>=0;b&&C&&console.warn(L4e)},[n,i]);var d=vRe(i,n),l=Math.min(dRe,hRe*sx.LARGE/d),h=dS-dS*(u==null?.25:P3(u,0,1)),y=_i(tD,Yd(a),(r={},r[FMe]=u!=null,r),n);return St.createElement(f,Qn({"aria-label":"loading","aria-valuemax":100,"aria-valuemin":0,"aria-valuenow":u===void 0?void 0:u*100,className:y,role:"progressbar"},s),St.createElement(f,{className:DMe},St.createElement("svg",{width:d,height:d,strokeWidth:l.toFixed(2),viewBox:gRe(l)},St.createElement("path",{className:zMe,d:pQ}),St.createElement("path",{className:NMe,d:pQ,pathLength:dS,strokeDasharray:"".concat(dS," ").concat(dS),strokeDashoffset:h}))))};FG.displayName="".concat(Vo,".Spinner");var vRe=function(t,r){return t==null?r.indexOf(AO)>=0?sx.SMALL:r.indexOf(jT)>=0?sx.LARGE:sx.STANDARD:Math.max(fRe,t)},gRe=function(t){var r=fC+t/2,e=(50-r).toFixed(2),n=(r*2).toFixed(2);return"".concat(e," ").concat(e," ").concat(n," ").concat(n)},pRe=Ade()?St.useLayoutEffect:St.useEffect,sD=St.forwardRef(function(t,r){var e,n=t.children,a=t.tagName,u=a===void 0?"div":a,o=t.title,f=t.className,i=t.ellipsize,s=i===void 0?!1:i,d=Ls(t,["children","tagName","title","className","ellipsize"]),l=St.useRef(),h=St.useMemo(function(){return hA(l,r)},[r]),y=St.useState(""),b=y[0],C=y[1],m=St.useState(),c=m[0],v=m[1];return pRe(function(){var g;((g=l.current)===null||g===void 0?void 0:g.textContent)!=null&&(v(s&&l.current.scrollWidth>l.current.clientWidth),C(l.current.textContent))},[l,n,s]),St.createElement(u,Qn(Qn({},d),{className:_i((e={},e[m5e]=s,e),f),ref:h,title:o??(c?b:void 0)}),n)});sD.displayName="".concat(Vo,".Text");var Na=St.forwardRef(function(t,r){var e=Rde(t,r);return St.createElement("button",Qn({type:"button"},cI(t),e),Pde(t))});Na.displayName="".concat(Vo,".Button");var Nx=St.forwardRef(function(t,r){var e=t.href,n=Rde(t,r,{defaultTabIndex:0,disabledTabIndex:-1});return St.createElement("a",Qn({role:"button"},cI(t),n,{"aria-disabled":n.disabled,href:n.disabled?void 0:e}),Pde(t))});Nx.displayName="".concat(Vo,".AnchorButton");function Rde(t,r,e){var n,a=t.alignText,u=t.fill,o=t.large,f=t.loading,i=f===void 0?!1:f,s=t.minimal,d=t.outlined,l=t.size,h=l===void 0?"medium":l,y=t.small,b=t.variant,C=b===void 0?"solid":b,m=t.disabled||i,c=_de(!m,t,r,e),v=c[0],g=c[1],p=_i(rM,(n={},n[Ox]=v,n[TA]=m,n[up]=u,n[pG]=i,n),rD(a),Yd(t.intent),EA(h,{large:o,small:y}),yde(C,{minimal:s,outlined:d}),t.className);return Qn(Qn({},g),{className:p,disabled:m})}function Pde(t){var r=t.children,e=t.ellipsizeText,n=t.endIcon,a=t.icon,u=t.loading,o=t.rightIcon,f=t.text,i=t.textClassName,s=!o5(f)||!o5(r);return St.createElement(St.Fragment,null,u&&St.createElement(FG,{className:b5e,size:sx.SMALL}),St.createElement(tl,{icon:a}),s&&St.createElement(sD,{className:_i(x5e,i),ellipsize:e,tagName:"span"},f,r),St.createElement(tl,{icon:n??o}))}function s0(t,r){return St.forwardRef(function(e,n){var a=e.className,u=e.children,o=Ls(e,["className","children"]);return St.createElement(t,Qn(Qn({},o),{className:_i(r,a),ref:n}),u)})}s0("h1",E3);s0("h2",E3);s0("h3",E3);var mRe=s0("h4",E3);s0("h5",E3);var yRe=s0("h6",E3);s0("blockquote",y5e);s0("code",A5e);s0("pre",C5e);var ARe=s0("label",sde);s0("ol",qhe);s0("ul",qhe);function zG(t,r){if(t==null)return{};var e={};for(var n in t)if({}.hasOwnProperty.call(t,n)){if(r.indexOf(n)!==-1)continue;e[n]=t[n]}return e}var Lde={exports:{}},CRe="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",IRe=CRe,bRe=IRe;function Ode(){}function kde(){}kde.resetWarningCache=Ode;var xRe=function(){function t(n,a,u,o,f,i){if(i!==bRe){var s=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}t.isRequired=t;function r(){return t}var e={array:t,bigint:t,bool:t,func:t,number:t,object:t,string:t,symbol:t,any:t,arrayOf:r,element:t,elementType:t,instanceOf:r,node:t,objectOf:r,oneOf:r,oneOfType:r,shape:r,exact:r,checkPropTypes:kde,resetWarningCache:Ode};return e.PropTypes=e,e};Lde.exports=xRe();var wRe=Lde.exports;function TRe(t,r){return t.classList?!!r&&t.classList.contains(r):(" "+(t.className.baseVal||t.className)+" ").indexOf(" "+r+" ")!==-1}function _Re(t,r){t.classList?t.classList.add(r):TRe(t,r)||(typeof t.className=="string"?t.className=t.className+" "+r:t.setAttribute("class",(t.className&&t.className.baseVal||"")+" "+r))}function mQ(t,r){return t.replace(new RegExp("(^|\\s)"+r+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}function SRe(t,r){t.classList?t.classList.remove(r):typeof t.className=="string"?t.className=mQ(t.className,r):t.setAttribute("class",mQ(t.className&&t.className.baseVal||"",r))}const yQ={disabled:!1},bO=co.createContext(null);var Dde=function(r){return r.scrollTop},HS="unmounted",kb="exited",Db="entering",S2="entered",MU="exiting",MA=function(t){xI(r,t);function r(n,a){var u;u=t.call(this,n,a)||this;var o=a,f=o&&!o.isMounting?n.enter:n.appear,i;return u.appearStatus=null,n.in?f?(i=kb,u.appearStatus=Db):i=S2:n.unmountOnExit||n.mountOnEnter?i=HS:i=kb,u.state={status:i},u.nextCallback=null,u}r.getDerivedStateFromProps=function(a,u){var o=a.in;return o&&u.status===HS?{status:kb}:null};var e=r.prototype;return e.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},e.componentDidUpdate=function(a){var u=null;if(a!==this.props){var o=this.state.status;this.props.in?o!==Db&&o!==S2&&(u=Db):(o===Db||o===S2)&&(u=MU)}this.updateStatus(!1,u)},e.componentWillUnmount=function(){this.cancelNextCallback()},e.getTimeouts=function(){var a=this.props.timeout,u,o,f;return u=o=f=a,a!=null&&typeof a!="number"&&(u=a.exit,o=a.enter,f=a.appear!==void 0?a.appear:o),{exit:u,enter:o,appear:f}},e.updateStatus=function(a,u){if(a===void 0&&(a=!1),u!==null)if(this.cancelNextCallback(),u===Db){if(this.props.unmountOnExit||this.props.mountOnEnter){var o=this.props.nodeRef?this.props.nodeRef.current:BS.findDOMNode(this);o&&Dde(o)}this.performEnter(a)}else this.performExit();else this.props.unmountOnExit&&this.state.status===kb&&this.setState({status:HS})},e.performEnter=function(a){var u=this,o=this.props.enter,f=this.context?this.context.isMounting:a,i=this.props.nodeRef?[f]:[BS.findDOMNode(this),f],s=i[0],d=i[1],l=this.getTimeouts(),h=f?l.appear:l.enter;if(!a&&!o||yQ.disabled){this.safeSetState({status:S2},function(){u.props.onEntered(s)});return}this.props.onEnter(s,d),this.safeSetState({status:Db},function(){u.props.onEntering(s,d),u.onTransitionEnd(h,function(){u.safeSetState({status:S2},function(){u.props.onEntered(s,d)})})})},e.performExit=function(){var a=this,u=this.props.exit,o=this.getTimeouts(),f=this.props.nodeRef?void 0:BS.findDOMNode(this);if(!u||yQ.disabled){this.safeSetState({status:kb},function(){a.props.onExited(f)});return}this.props.onExit(f),this.safeSetState({status:MU},function(){a.props.onExiting(f),a.onTransitionEnd(o.exit,function(){a.safeSetState({status:kb},function(){a.props.onExited(f)})})})},e.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},e.safeSetState=function(a,u){u=this.setNextCallback(u),this.setState(a,u)},e.setNextCallback=function(a){var u=this,o=!0;return this.nextCallback=function(f){o&&(o=!1,u.nextCallback=null,a(f))},this.nextCallback.cancel=function(){o=!1},this.nextCallback},e.onTransitionEnd=function(a,u){this.setNextCallback(u);var o=this.props.nodeRef?this.props.nodeRef.current:BS.findDOMNode(this),f=a==null&&!this.props.addEndListener;if(!o||f){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var i=this.props.nodeRef?[this.nextCallback]:[o,this.nextCallback],s=i[0],d=i[1];this.props.addEndListener(s,d)}a!=null&&setTimeout(this.nextCallback,a)},e.render=function(){var a=this.state.status;if(a===HS)return null;var u=this.props,o=u.children;u.in,u.mountOnEnter,u.unmountOnExit,u.appear,u.enter,u.exit,u.timeout,u.addEndListener,u.onEnter,u.onEntering,u.onEntered,u.onExit,u.onExiting,u.onExited,u.nodeRef;var f=zG(u,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return co.createElement(bO.Provider,{value:null},typeof o=="function"?o(a,f):co.cloneElement(co.Children.only(o),f))},r}(co.Component);MA.contextType=bO;MA.propTypes={};function t2(){}MA.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:t2,onEntering:t2,onEntered:t2,onExit:t2,onExiting:t2,onExited:t2};MA.UNMOUNTED=HS;MA.EXITED=kb;MA.ENTERING=Db;MA.ENTERED=S2;MA.EXITING=MU;var ERe=function(r,e){return r&&e&&e.split(" ").forEach(function(n){return _Re(r,n)})},uF=function(r,e){return r&&e&&e.split(" ").forEach(function(n){return SRe(r,n)})},cE=function(t){xI(r,t);function r(){for(var n,a=arguments.length,u=new Array(a),o=0;o<a;o++)u[o]=arguments[o];return n=t.call.apply(t,[this].concat(u))||this,n.appliedClasses={appear:{},enter:{},exit:{}},n.onEnter=function(f,i){var s=n.resolveArguments(f,i),d=s[0],l=s[1];n.removeClasses(d,"exit"),n.addClass(d,l?"appear":"enter","base"),n.props.onEnter&&n.props.onEnter(f,i)},n.onEntering=function(f,i){var s=n.resolveArguments(f,i),d=s[0],l=s[1],h=l?"appear":"enter";n.addClass(d,h,"active"),n.props.onEntering&&n.props.onEntering(f,i)},n.onEntered=function(f,i){var s=n.resolveArguments(f,i),d=s[0],l=s[1],h=l?"appear":"enter";n.removeClasses(d,h),n.addClass(d,h,"done"),n.props.onEntered&&n.props.onEntered(f,i)},n.onExit=function(f){var i=n.resolveArguments(f),s=i[0];n.removeClasses(s,"appear"),n.removeClasses(s,"enter"),n.addClass(s,"exit","base"),n.props.onExit&&n.props.onExit(f)},n.onExiting=function(f){var i=n.resolveArguments(f),s=i[0];n.addClass(s,"exit","active"),n.props.onExiting&&n.props.onExiting(f)},n.onExited=function(f){var i=n.resolveArguments(f),s=i[0];n.removeClasses(s,"exit"),n.addClass(s,"exit","done"),n.props.onExited&&n.props.onExited(f)},n.resolveArguments=function(f,i){return n.props.nodeRef?[n.props.nodeRef.current,f]:[f,i]},n.getClassNames=function(f){var i=n.props.classNames,s=typeof i=="string",d=s&&i?i+"-":"",l=s?""+d+f:i[f],h=s?l+"-active":i[f+"Active"],y=s?l+"-done":i[f+"Done"];return{baseClassName:l,activeClassName:h,doneClassName:y}},n}var e=r.prototype;return e.addClass=function(a,u,o){var f=this.getClassNames(u)[o+"ClassName"],i=this.getClassNames("enter"),s=i.doneClassName;u==="appear"&&o==="done"&&s&&(f+=" "+s),o==="active"&&a&&Dde(a),f&&(this.appliedClasses[u][o]=f,ERe(a,f))},e.removeClasses=function(a,u){var o=this.appliedClasses[u],f=o.base,i=o.active,s=o.done;this.appliedClasses[u]={},f&&uF(a,f),i&&uF(a,i),s&&uF(a,s)},e.render=function(){var a=this.props;a.classNames;var u=zG(a,["classNames"]);return co.createElement(MA,Fl({},u,{onEnter:this.onEnter,onEntered:this.onEntered,onEntering:this.onEntering,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}))},r}(co.Component);cE.defaultProps={classNames:""};cE.propTypes={};function MRe(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function BG(t,r){var e=function(u){return r&&St.isValidElement(u)?r(u):u},n=Object.create(null);return t&&St.Children.map(t,function(a){return a}).forEach(function(a){n[a.key]=e(a)}),n}function RRe(t,r){t=t||{},r=r||{};function e(d){return d in r?r[d]:t[d]}var n=Object.create(null),a=[];for(var u in t)u in r?a.length&&(n[u]=a,a=[]):a.push(u);var o,f={};for(var i in r){if(n[i])for(o=0;o<n[i].length;o++){var s=n[i][o];f[n[i][o]]=e(s)}f[i]=e(i)}for(o=0;o<a.length;o++)f[a[o]]=e(a[o]);return f}function Xb(t,r,e){return e[r]!=null?e[r]:t.props[r]}function PRe(t,r){return BG(t.children,function(e){return St.cloneElement(e,{onExited:r.bind(null,e),in:!0,appear:Xb(e,"appear",t),enter:Xb(e,"enter",t),exit:Xb(e,"exit",t)})})}function LRe(t,r,e){var n=BG(t.children),a=RRe(r,n);return Object.keys(a).forEach(function(u){var o=a[u];if(St.isValidElement(o)){var f=u in r,i=u in n,s=r[u],d=St.isValidElement(s)&&!s.props.in;i&&(!f||d)?a[u]=St.cloneElement(o,{onExited:e.bind(null,o),in:!0,exit:Xb(o,"exit",t),enter:Xb(o,"enter",t)}):!i&&f&&!d?a[u]=St.cloneElement(o,{in:!1}):i&&f&&St.isValidElement(s)&&(a[u]=St.cloneElement(o,{onExited:e.bind(null,o),in:s.props.in,exit:Xb(o,"exit",t),enter:Xb(o,"enter",t)}))}}),a}var ORe=Object.values||function(t){return Object.keys(t).map(function(r){return t[r]})},kRe={component:"div",childFactory:function(r){return r}},$G=function(t){xI(r,t);function r(n,a){var u;u=t.call(this,n,a)||this;var o=u.handleExited.bind(MRe(u));return u.state={contextValue:{isMounting:!0},handleExited:o,firstRender:!0},u}var e=r.prototype;return e.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},e.componentWillUnmount=function(){this.mounted=!1},r.getDerivedStateFromProps=function(a,u){var o=u.children,f=u.handleExited,i=u.firstRender;return{children:i?PRe(a,f):LRe(a,o,f),firstRender:!1}},e.handleExited=function(a,u){var o=BG(this.props.children);a.key in o||(a.props.onExited&&a.props.onExited(u),this.mounted&&this.setState(function(f){var i=Fl({},f.children);return delete i[a.key],{children:i}}))},e.render=function(){var a=this.props,u=a.component,o=a.childFactory,f=zG(a,["component","childFactory"]),i=this.state.contextValue,s=ORe(this.state.children).map(o);return delete f.appear,delete f.enter,delete f.exit,u===null?co.createElement(bO.Provider,{value:i},s):co.createElement(bO.Provider,{value:i},co.createElement(u,f,s))},r}(co.Component);$G.propTypes={};$G.defaultProps=kRe;var DRe=function(){var t=1,r=new WeakMap,e=function(n,a){return typeof n=="number"||typeof n=="string"?a?"idx-".concat(a):"val-".concat(n):r.has(n)?"uid"+r.get(n):(r.set(n,t++),e(n))};return e},Nde=function(t){return t===void 0&&(t=""),{value:1,prefix:t,uid:DRe()}},NRe=Nde(),FRe=St.createContext(Nde()),zRe=function(t){return t.value++},BRe=function(t){return t?t.prefix:""},$Re=function(t){var r=t||NRe,e=BRe(r),n=zRe(r),a=e+n,u=function(o){return a+r.uid(o)};return{uid:a,gen:u}},URe=function(){var t=St.useContext(FRe),r=St.useState(function(){return $Re(t)})[0];return r},HRe=function(){var t=URe().uid;return t},Fde=St.createContext({hasProvider:!1,stack:{current:[]}}),jRe=function(t){var r=t.children,e=St.useRef([]),n=St.useMemo(function(){return{hasProvider:!0,stack:e}},[e]);return St.createElement(Fde.Provider,{value:n},r)},zde={exports:{}},Bde={};/**
73
73
  * @license React
74
74
  * use-sync-external-store-shim.production.js
75
75
  *
@@ -97,7 +97,7 @@ License: MIT
97
97
  `&&(x=`
98
98
  `);var M=0,R=!1;this.parse=function(D,O,H){if(typeof D!="string")throw new Error("Input must be a string");var G=D.length,W=E.length,X=x.length,Y=S.length,Q=T(w),V=[],K=[],re=[],oe=M=0;if(!D)return de();if(k||k!==!1&&D.indexOf(P)===-1){for(var le=D.split(x),me=0;me<le.length;me++){if(re=le[me],M+=re.length,me!==le.length-1)M+=x.length;else if(H)return de();if(!S||re.substring(0,Y)!==S){if(Q){if(V=[],he(re.split(E)),Ae(),R)return de()}else he(re.split(E));if(L&&L<=me)return V=V.slice(0,L),de(!0)}}return de()}for(var pe=D.indexOf(E,M),se=D.indexOf(x,M),ne=new RegExp(m(z)+m(P),"g"),J=D.indexOf(P,M);;)if(D[M]===P)for(J=M,M++;;){if((J=D.indexOf(P,J+1))===-1)return H||K.push({type:"Quotes",code:"MissingQuotes",message:"Quoted field unterminated",row:V.length,index:M}),te();if(J===G-1)return te(D.substring(M,J).replace(ne,P));if(P===z&&D[J+1]===z)J++;else if(P===z||J===0||D[J-1]!==z){pe!==-1&&pe<J+1&&(pe=D.indexOf(E,J+1));var ce=ue((se=se!==-1&&se<J+1?D.indexOf(x,J+1):se)===-1?pe:Math.min(pe,se));if(D.substr(J+1+ce,W)===E){re.push(D.substring(M,J).replace(ne,P)),D[M=J+1+ce+W]!==P&&(J=D.indexOf(P,M)),pe=D.indexOf(E,M),se=D.indexOf(x,M);break}if(ce=ue(se),D.substring(J+1+ce,J+1+ce+X)===x){if(re.push(D.substring(M,J).replace(ne,P)),ge(J+1+ce+X),pe=D.indexOf(E,M),J=D.indexOf(P,M),Q&&(Ae(),R))return de();if(L&&V.length>=L)return de(!0);break}K.push({type:"Quotes",code:"InvalidQuotes",message:"Trailing quote on quoted field is malformed",row:V.length,index:M}),J++}}else if(S&&re.length===0&&D.substring(M,M+Y)===S){if(se===-1)return de();M=se+X,se=D.indexOf(x,M),pe=D.indexOf(E,M)}else if(pe!==-1&&(pe<se||se===-1))re.push(D.substring(M,pe)),M=pe+W,pe=D.indexOf(E,M);else{if(se===-1)break;if(re.push(D.substring(M,se)),ge(se+X),Q&&(Ae(),R))return de();if(L&&V.length>=L)return de(!0)}return te();function he(be){V.push(be),oe=M}function ue(be){var Re=0;return Re=be!==-1&&(be=D.substring(J+1,be))&&be.trim()===""?be.length:Re}function te(be){return H||(be===void 0&&(be=D.substring(M)),re.push(be),M=G,he(re),Q&&Ae()),de()}function ge(be){M=be,he(re),re=[],se=D.indexOf(x,M)}function de(be){if(_.header&&!O&&V.length&&!N){var Re=V[0],Le={},We=new Set(Re);let et=!1;for(let tt=0;tt<Re.length;tt++){let Xe=Re[tt];if(Le[Xe=T(_.transformHeader)?_.transformHeader(Xe,tt):Xe]){let Fe,De=Le[Xe];for(;Fe=Xe+"_"+De,De++,We.has(Fe););We.add(Fe),Re[tt]=Fe,Le[Xe]++,et=!0,(F=F===null?{}:F)[Fe]=Xe}else Le[Xe]=1,Re[tt]=Xe;We.add(Xe)}et&&console.warn("Duplicate headers found and renamed."),N=!0}return{data:V,errors:K,meta:{delimiter:E,linebreak:x,aborted:R,truncated:!!be,cursor:oe+(O||0),renamedHeaders:F}}}function Ae(){w(de()),V=[],K=[]}},this.abort=function(){R=!0},this.getCharIndex=function(){return M}}function v(_){var E=_.data,x=f[E.workerId],S=!1;if(E.error)x.userError(E.error,E.file);else if(E.results&&E.results.data){var w={abort:function(){S=!0,g(E.workerId,{data:[],errors:[],meta:{aborted:!0}})},pause:p,resume:p};if(T(x.userStep)){for(var L=0;L<E.results.data.length&&(x.userStep({data:E.results.data[L],errors:E.results.errors,meta:E.results.meta},w),!S);L++);delete E.results}else T(x.userChunk)&&(x.userChunk(E.results,w,E.file),delete E.results)}E.finished&&!S&&g(E.workerId,E.results)}function g(_,E){var x=f[_];T(x.userComplete)&&x.userComplete(E),x.terminate(),delete f[_]}function p(){throw new Error("Not implemented.")}function I(_){if(typeof _!="object"||_===null)return _;var E,x=Array.isArray(_)?[]:{};for(E in _)x[E]=I(_[E]);return x}function A(_,E){return function(){_.apply(E,arguments)}}function T(_){return typeof _=="function"}return s.parse=function(_,E){var x=(E=E||{}).dynamicTyping||!1;if(T(x)&&(E.dynamicTypingFunction=x,x={}),E.dynamicTyping=x,E.transform=!!T(E.transform)&&E.transform,!E.worker||!s.WORKERS_SUPPORTED)return x=null,s.NODE_STREAM_INPUT,typeof _=="string"?(_=(S=>S.charCodeAt(0)!==65279?S:S.slice(1))(_),x=new(E.download?l:y)(E)):_.readable===!0&&T(_.read)&&T(_.on)?x=new b(E):(n.File&&_ instanceof File||_ instanceof Object)&&(x=new h(E)),x.stream(_);(x=(()=>{var S;return!!s.WORKERS_SUPPORTED&&(S=(()=>{var w=n.URL||n.webkitURL||null,L=e.toString();return s.BLOB_URL||(s.BLOB_URL=w.createObjectURL(new Blob(["var global = (function() { if (typeof self !== 'undefined') { return self; } if (typeof window !== 'undefined') { return window; } if (typeof global !== 'undefined') { return global; } return {}; })(); global.IS_PAPA_WORKER=true; ","(",L,")();"],{type:"text/javascript"})))})(),(S=new n.Worker(S)).onmessage=v,S.id=i++,f[S.id]=S)})()).userStep=E.step,x.userChunk=E.chunk,x.userComplete=E.complete,x.userError=E.error,E.step=T(E.step),E.chunk=T(E.chunk),E.complete=T(E.complete),E.error=T(E.error),delete E.worker,x.postMessage({input:_,config:E,workerId:x.id})},s.unparse=function(_,E){var x=!1,S=!0,w=",",L=`\r
99
99
  `,k='"',F=k+k,N=!1,P=null,z=!1,M=((()=>{if(typeof E=="object"){if(typeof E.delimiter!="string"||s.BAD_DELIMITERS.filter(function(O){return E.delimiter.indexOf(O)!==-1}).length||(w=E.delimiter),typeof E.quotes!="boolean"&&typeof E.quotes!="function"&&!Array.isArray(E.quotes)||(x=E.quotes),typeof E.skipEmptyLines!="boolean"&&typeof E.skipEmptyLines!="string"||(N=E.skipEmptyLines),typeof E.newline=="string"&&(L=E.newline),typeof E.quoteChar=="string"&&(k=E.quoteChar),typeof E.header=="boolean"&&(S=E.header),Array.isArray(E.columns)){if(E.columns.length===0)throw new Error("Option columns is empty");P=E.columns}E.escapeChar!==void 0&&(F=E.escapeChar+k),E.escapeFormulae instanceof RegExp?z=E.escapeFormulae:typeof E.escapeFormulae=="boolean"&&E.escapeFormulae&&(z=/^[=+\-@\t\r].*$/)}})(),new RegExp(m(k),"g"));if(typeof _=="string"&&(_=JSON.parse(_)),Array.isArray(_)){if(!_.length||Array.isArray(_[0]))return R(null,_,N);if(typeof _[0]=="object")return R(P||Object.keys(_[0]),_,N)}else if(typeof _=="object")return typeof _.data=="string"&&(_.data=JSON.parse(_.data)),Array.isArray(_.data)&&(_.fields||(_.fields=_.meta&&_.meta.fields||P),_.fields||(_.fields=Array.isArray(_.data[0])?_.fields:typeof _.data[0]=="object"?Object.keys(_.data[0]):[]),Array.isArray(_.data[0])||typeof _.data[0]=="object"||(_.data=[_.data])),R(_.fields||[],_.data||[],N);throw new Error("Unable to serialize unrecognized input");function R(O,H,G){var W="",X=(typeof O=="string"&&(O=JSON.parse(O)),typeof H=="string"&&(H=JSON.parse(H)),Array.isArray(O)&&0<O.length),Y=!Array.isArray(H[0]);if(X&&S){for(var Q=0;Q<O.length;Q++)0<Q&&(W+=w),W+=D(O[Q],Q);0<H.length&&(W+=L)}for(var V=0;V<H.length;V++){var K=(X?O:H[V]).length,re=!1,oe=X?Object.keys(H[V]).length===0:H[V].length===0;if(G&&!X&&(re=G==="greedy"?H[V].join("").trim()==="":H[V].length===1&&H[V][0].length===0),G==="greedy"&&X){for(var le=[],me=0;me<K;me++){var pe=Y?O[me]:me;le.push(H[V][pe])}re=le.join("").trim()===""}if(!re){for(var se=0;se<K;se++){0<se&&!oe&&(W+=w);var ne=X&&Y?O[se]:se;W+=D(H[V][ne],se)}V<H.length-1&&(!G||0<K&&!oe)&&(W+=L)}}return W}function D(O,H){var G,W;return O==null?"":O.constructor===Date?JSON.stringify(O).slice(1,25):(W=!1,z&&typeof O=="string"&&z.test(O)&&(O="'"+O,W=!0),G=O.toString().replace(M,F),(W=W||x===!0||typeof x=="function"&&x(O,H)||Array.isArray(x)&&x[H]||((X,Y)=>{for(var Q=0;Q<Y.length;Q++)if(-1<X.indexOf(Y[Q]))return!0;return!1})(G,s.BAD_DELIMITERS)||-1<G.indexOf(w)||G.charAt(0)===" "||G.charAt(G.length-1)===" ")?k+G+k:G)}},s.RECORD_SEP="",s.UNIT_SEP="",s.BYTE_ORDER_MARK="\uFEFF",s.BAD_DELIMITERS=["\r",`
100
- `,'"',s.BYTE_ORDER_MARK],s.WORKERS_SUPPORTED=!u&&!!n.Worker,s.NODE_STREAM_INPUT=1,s.LocalChunkSize=10485760,s.RemoteChunkSize=5242880,s.DefaultDelimiter=",",s.Parser=c,s.ParserHandle=C,s.NetworkStreamer=l,s.FileStreamer=h,s.StringStreamer=y,s.ReadableStreamStreamer=b,n.jQuery&&((a=n.jQuery).fn.parse=function(_){var E=_.config||{},x=[];return this.each(function(L){if(!(a(this).prop("tagName").toUpperCase()==="INPUT"&&a(this).attr("type").toLowerCase()==="file"&&n.FileReader)||!this.files||this.files.length===0)return!0;for(var k=0;k<this.files.length;k++)x.push({file:this.files[k],inputElem:this,instanceConfig:a.extend({},E)})}),S(),this;function S(){if(x.length===0)T(_.complete)&&_.complete();else{var L,k,F,N,P=x[0];if(T(_.before)){var z=_.before(P.file,P.inputElem);if(typeof z=="object"){if(z.action==="abort")return L="AbortError",k=P.file,F=P.inputElem,N=z.reason,void(T(_.error)&&_.error({name:L},k,F,N));if(z.action==="skip")return void w();typeof z.config=="object"&&(P.instanceConfig=a.extend(P.instanceConfig,z.config))}else if(z==="skip")return void w()}var M=P.instanceConfig.complete;P.instanceConfig.complete=function(R){T(M)&&M(R,P.file,P.inputElem),w()},s.parse(P.file,P.instanceConfig)}}function w(){x.splice(0,1),S()}}),o&&(n.onmessage=function(_){_=_.data,s.WORKER_ID===void 0&&_&&(s.WORKER_ID=_.workerId),typeof _.input=="string"?n.postMessage({workerId:s.WORKER_ID,results:s.parse(_.input,_.config),finished:!0}):(n.File&&_.input instanceof File||_.input instanceof Object)&&(_=s.parse(_.input,_.config))&&n.postMessage({workerId:s.WORKER_ID,results:_,finished:!0})}),(l.prototype=Object.create(d.prototype)).constructor=l,(h.prototype=Object.create(d.prototype)).constructor=h,(y.prototype=Object.create(y.prototype)).constructor=y,(b.prototype=Object.create(d.prototype)).constructor=b,s})})(vge);var iDe=vge.exports;const aDe=ly(iDe),Tu=_c.create({baseURL:"/"}),hW=()=>{let t=sessionStorage.getItem("instanceId");const r=new URLSearchParams(window.location.search).get("instanceId");return r&&(t=r,sessionStorage.setItem("instanceId",t)),t||(t=Math.random().toString(36).substring(2,15),sessionStorage.setItem("instanceId",t)),t};Tu.interceptors.request.use(t=>{const r=hW();return r&&(t.params={...t.params,instanceId:r}),t},t=>Promise.reject(t));var Rh=(t=>(t[t.DRAM=0]="DRAM",t[t.L1=1]="L1",t[t.SYSTEM_MEMORY=2]="SYSTEM_MEMORY",t[t.L1_SMALL=3]="L1_SMALL",t[t.TRACE=4]="TRACE",t))(Rh||{});const SC={0:"DRAM",1:"L1",2:"System Memory",3:"L1 Small",4:"Trace"};var tL=(t=>(t.INTERLEAVED="TensorMemoryLayout::INTERLEAVED",t.HEIGHT_SHARDED="TensorMemoryLayout::HEIGHT_SHARDED",t.BLOCK_SHARDED="TensorMemoryLayout::BLOCK_SHARDED",t.WIDTH_SHARDED="TensorMemoryLayout::WIDTH_SHARDED",t))(tL||{});const gge=/MemoryConfig\((.*)\)$/,oDe=/memory_layout=([A-Za-z_:]+)/,sDe=/shard_spec=ShardSpec\((?:grid=\{(\[.*?\])\},?)?(?:shape=\{(\d+), (\d+)\},?)?(?:orientation=ShardOrientation::([A-Za-z_]+),?)?(?:halo=(\d+),?)?(?:mode=ShardMode::([A-Z_]+),?)?(?:physical_shard_shape=std::([A-Za-z_]+),?)?/,lDe=t=>{const r=t.match(gge);if(r){const e=r[1],n=e.match(oDe),a=e.match(sDe),u=n?n[1]:"",o=a?{grid:a[1],shape:[parseInt(a[2],10),parseInt(a[3],10)],orientation:a[4],halo:parseInt(a[5],10),mode:a[6],physical_shard_shape:a[7]}:"std::nullopt";return{memory_layout:u,shard_spec:o}}return null},pge={shard_spec:"ShardSpec",memory_layout:"MemoryLayout",grid:"CoreRangeSet",shape:"Shape",orientation:"ShardOrientation",halo:"Halo",mode:"Mode",physical_shard_shape:"PhysicalShardShape"};function dJ(t){return pge[t]}const uDe=t=>!t.includes("(torch)")&&!t.includes("::")&&!t.includes("ttnn.")&&t!=="",cDe={"SPDX-FileCopyrightText":"© 2025 Tenstorrent AI ULC","SPDX-License-Identifier":"Apache-2.0"},fDe={x_size:10,y_size:12},hDe=["0-10"],dDe=["0-3"],vDe=[["0-0","0-1","0-11"],["0-5","0-6","0-7"],["5-0","5-1","5-11"],["5-2","5-9","5-10"],["5-3","5-4","5-8"],["5-5","5-6","5-7"]],gDe=["9-0","1-0","8-0","2-0","7-0","3-0","6-0","4-0","9-6","1-6","8-6","2-6","7-6","3-6","6-6","4-6"],pDe=["1-1","2-1","3-1","4-1","6-1","7-1","8-1","9-1","1-2","2-2","3-2","4-2","6-2","7-2","8-2","9-2","1-3","2-3","3-3","4-3","6-3","7-3","8-3","9-3","1-4","2-4","3-4","4-4","6-4","7-4","8-4","9-4","1-5","2-5","3-5","4-5","6-5","7-5","8-5","9-5","1-7","2-7","3-7","4-7","6-7","7-7","8-7","9-7","1-8","2-8","3-8","4-8","6-8","7-8","8-8","9-8","1-9","2-9","3-9","4-9","6-9","7-9","8-9","9-9","1-10","2-10","3-10","4-10","6-10","7-10","8-10","9-10","1-11","2-11","3-11","4-11","6-11","7-11","8-11","9-11"],mDe=[],yDe=["0-2","0-4","0-8","0-9"],ADe=1499136,CDe=2147483648,IDe=262144,bDe="WORMHOLE",xDe={unpacker:{version:2,inline_srca_trans_without_srca_trans_instr:!0},math:{dst_size_alignment:131072},packer:{version:2},overlay:{version:2}},wDe={license:cDe,grid:fDe,arc:hDe,pcie:dDe,dram:vDe,eth:gDe,functional_workers:pDe,harvested_workers:mDe,router_only:yDe,worker_l1_size:ADe,dram_bank_size:CDe,eth_l1_size:IDe,arch_name:bDe,features:xDe},TDe={"SPDX-FileCopyrightText":"© 2025 Tenstorrent AI ULC","SPDX-License-Identifier":"Apache-2.0"},_De={x_size:16,y_size:12},SDe="DRAM banks are NOT grouped by modules",EDe=[["0-0","0-1","0-2","0-3","0-4","0-5","0-6","0-7","0-8","0-9","0-10","0-11","9-0","9-1","9-2","9-3","9-4","9-5","9-6","9-7","9-8","9-9","9-10","9-11"]],MDe=["1-1","2-1","3-1","4-1","5-1","6-1","7-1","9-1","10-1","11-1","12-1","13-1","14-1","15-1"],RDe=["1-2","2-2","3-2","4-2","5-2","6-2","7-2","10-2","11-2","12-2","13-2","14-2","15-2","16-2","1-3","2-3","3-3","4-3","5-3","6-3","7-3","10-3","11-3","12-3","13-3","14-3","15-3","16-3","1-4","2-4","3-4","4-4","5-4","6-4","7-4","10-4","11-4","12-4","13-4","14-4","15-4","16-4","1-5","2-5","3-5","4-5","5-5","6-5","7-5","10-5","11-5","12-5","13-5","14-5","15-5","16-5","1-6","2-6","3-6","4-6","5-6","6-6","7-6","10-6","11-6","12-6","13-6","14-6","15-6","16-6","1-7","2-7","3-7","4-7","5-7","6-7","7-7","10-7","11-7","12-7","13-7","14-7","15-7","16-7","1-8","2-8","3-8","4-8","5-8","6-8","7-8","10-8","11-8","12-8","13-8","14-8","15-8","16-8","1-9","2-9","3-9","4-9","5-9","6-9","7-9","10-9","11-9","12-9","13-9","14-9","15-9","16-9","1-10","2-10","3-10","4-10","5-10","6-10","7-10","10-10","11-10","12-10","13-10","14-10","15-10","16-10","1-11","2-11","3-11","4-11","5-11","6-11","7-11","10-11","11-11","12-11","13-11","14-11","15-11","16-11"],PDe=["8-0"],LDe=["2-0","11-0"],ODe=[],kDe=["1-0","2-0","3-0","4-0","5-0","6-0","7-0","10-0","11-0","12-0","13-0","14-0","15-0","16-0"],DDe=1499136,NDe=2147483648,FDe=262144,zDe="BLACKHOLE",BDe={unpacker:{version:2,inline_srca_trans_without_srca_trans_instr:!0},math:{dst_size_alignment:131072},packer:{version:2},overlay:{version:2}},$De={license:TDe,grid:_De,_dram_comment:SDe,dram:EDe,eth:MDe,functional_workers:RDe,arc:PDe,pcie:LDe,harvested_workers:ODe,router_only:kDe,worker_l1_size:DDe,dram_bank_size:NDe,eth_l1_size:FDe,arch_name:zDe,features:BDe};var LO=(t=>(t.UNKNOWN="",t.GRAYSKULL="grayskull",t.WORMHOLE="wormhole_b0",t.BLACKHOLE="blackhole",t))(LO||{});const UDe=t=>t.toLowerCase().includes("wormhole")?"wormhole_b0":t.toLowerCase().includes("blackhole")?"blackhole":"",XU=t=>{const r=/File\s+"(?:.+\/)?([^/]+)",\s+line\s+(\d+)/,e=t.match(r);return e?`${e[1]}:${e[2]}`:""},HDe=async()=>{const t=await Tu.get("/api/session").catch();return t==null?void 0:t.data},vJ=async t=>{const r=await Tu.put("/api/session",t).catch();return r==null?void 0:r.data},jDe=async(t,r,e)=>(await Tu.get("/api/buffer-pages",{params:{operation_id:t,address:r,buffer_type:e}})).data,VDe=async t=>{if(t===null)return qQ;try{const{data:r}=await Tu.get(`/api/operations/${t}`,{maxRedirects:1});return{...r,operationFileIdentifier:XU(r.stack_trace)}}catch(r){if(_c.isAxiosError(r)&&(r.response&&r.response.status>=400&&r.response.status<500||r.response&&r.response.status>=500))throw r}return qQ},mge=async()=>{const t=new Map,{data:r}=await Tu.get("/api/operations");return r.map(e=>{e.operationFileIdentifier=XU(e.stack_trace);const n=e.outputs.map(o=>{const f={...o,producerOperation:e,operationIdentifier:`${e.id} ${e.name} ${e.operationFileIdentifier}`};return t.set(o.id,f),{...f,io:"output"}}),a=e.inputs.map(o=>{const f=t.get(o.id);return f?{...f,io:"input"}:{...o,io:"input"}}),u=e.arguments.map(o=>o.name==="memory_config"||gge.test(o.value)?{...o,parsedValue:o.value?lDe(o.value):null}:o);return{...e,operationFileIdentifier:XU(e.stack_trace),outputs:n,inputs:a,arguments:u}})},GDe=async t=>{const r={buffer_type:t},{data:e}=await Tu.get("/api/operation-buffers",{params:r});return e},WDe=async t=>{const r={buffer_type:t},{data:e}=await Tu.get("/api/buffers",{params:r});return e},ZDe=t=>{const r=rs(l0);return mg({queryFn:()=>WDe(t),queryKey:["fetch-all-buffers",t,r],staleTime:1/0})},dW=()=>{const{data:t}=ZDe(Rh.L1_SMALL);return St.useMemo(()=>{const r=(t==null?void 0:t.map(e=>e.address))||[0];return Math.min(...r)},[t])},vW=()=>{const{data:t}=wD();return St.useMemo(()=>t&&t.length>0?t[0].address_at_first_l1_cb_buffer:0,[t])},YDe=async()=>{const{data:t}=await Tu.get("/api/devices");return t.length===0&&console.error(" Data integrity warning: No device information provided."),[...new Map(t.map(r=>[r.device_id,r])).values()]},yge=async t=>{const{data:r}=await Tu.get("/api/performance/perf-results/report",{params:{name:t}});return r},XDe=async()=>{const{data:t}=await Tu.get("/api/performance/device-log/raw");function r(e){const n=e.match(/ARCH:\s*([\w\d_]+)/),a=e.match(/CHIP_FREQ\[MHz\]:\s*(\d+)/),u=n?n[1]:null,o=a?parseInt(a[1],10):null;return{architecture:u,frequency:o}}return new Promise((e,n)=>{const a=t.split(`
100
+ `,'"',s.BYTE_ORDER_MARK],s.WORKERS_SUPPORTED=!u&&!!n.Worker,s.NODE_STREAM_INPUT=1,s.LocalChunkSize=10485760,s.RemoteChunkSize=5242880,s.DefaultDelimiter=",",s.Parser=c,s.ParserHandle=C,s.NetworkStreamer=l,s.FileStreamer=h,s.StringStreamer=y,s.ReadableStreamStreamer=b,n.jQuery&&((a=n.jQuery).fn.parse=function(_){var E=_.config||{},x=[];return this.each(function(L){if(!(a(this).prop("tagName").toUpperCase()==="INPUT"&&a(this).attr("type").toLowerCase()==="file"&&n.FileReader)||!this.files||this.files.length===0)return!0;for(var k=0;k<this.files.length;k++)x.push({file:this.files[k],inputElem:this,instanceConfig:a.extend({},E)})}),S(),this;function S(){if(x.length===0)T(_.complete)&&_.complete();else{var L,k,F,N,P=x[0];if(T(_.before)){var z=_.before(P.file,P.inputElem);if(typeof z=="object"){if(z.action==="abort")return L="AbortError",k=P.file,F=P.inputElem,N=z.reason,void(T(_.error)&&_.error({name:L},k,F,N));if(z.action==="skip")return void w();typeof z.config=="object"&&(P.instanceConfig=a.extend(P.instanceConfig,z.config))}else if(z==="skip")return void w()}var M=P.instanceConfig.complete;P.instanceConfig.complete=function(R){T(M)&&M(R,P.file,P.inputElem),w()},s.parse(P.file,P.instanceConfig)}}function w(){x.splice(0,1),S()}}),o&&(n.onmessage=function(_){_=_.data,s.WORKER_ID===void 0&&_&&(s.WORKER_ID=_.workerId),typeof _.input=="string"?n.postMessage({workerId:s.WORKER_ID,results:s.parse(_.input,_.config),finished:!0}):(n.File&&_.input instanceof File||_.input instanceof Object)&&(_=s.parse(_.input,_.config))&&n.postMessage({workerId:s.WORKER_ID,results:_,finished:!0})}),(l.prototype=Object.create(d.prototype)).constructor=l,(h.prototype=Object.create(d.prototype)).constructor=h,(y.prototype=Object.create(y.prototype)).constructor=y,(b.prototype=Object.create(d.prototype)).constructor=b,s})})(vge);var iDe=vge.exports;const aDe=ly(iDe),Tu=_c.create({baseURL:"/"}),hW=()=>{let t=sessionStorage.getItem("instanceId");const r=new URLSearchParams(window.location.search).get("instanceId");return r&&(t=r,sessionStorage.setItem("instanceId",t)),t||(t=Math.random().toString(36).substring(2,15)+Math.random().toString(36).substring(2,15)+Math.random().toString(36).substring(2,15)+Math.random().toString(36).substring(2,15),sessionStorage.setItem("instanceId",t)),t};Tu.interceptors.request.use(t=>{const r=hW();return r&&(t.params={...t.params,instanceId:r}),t},t=>Promise.reject(t));var Rh=(t=>(t[t.DRAM=0]="DRAM",t[t.L1=1]="L1",t[t.SYSTEM_MEMORY=2]="SYSTEM_MEMORY",t[t.L1_SMALL=3]="L1_SMALL",t[t.TRACE=4]="TRACE",t))(Rh||{});const SC={0:"DRAM",1:"L1",2:"System Memory",3:"L1 Small",4:"Trace"};var tL=(t=>(t.INTERLEAVED="TensorMemoryLayout::INTERLEAVED",t.HEIGHT_SHARDED="TensorMemoryLayout::HEIGHT_SHARDED",t.BLOCK_SHARDED="TensorMemoryLayout::BLOCK_SHARDED",t.WIDTH_SHARDED="TensorMemoryLayout::WIDTH_SHARDED",t))(tL||{});const gge=/MemoryConfig\((.*)\)$/,oDe=/memory_layout=([A-Za-z_:]+)/,sDe=/shard_spec=ShardSpec\((?:grid=\{(\[.*?\])\},?)?(?:shape=\{(\d+), (\d+)\},?)?(?:orientation=ShardOrientation::([A-Za-z_]+),?)?(?:halo=(\d+),?)?(?:mode=ShardMode::([A-Z_]+),?)?(?:physical_shard_shape=std::([A-Za-z_]+),?)?/,lDe=t=>{const r=t.match(gge);if(r){const e=r[1],n=e.match(oDe),a=e.match(sDe),u=n?n[1]:"",o=a?{grid:a[1],shape:[parseInt(a[2],10),parseInt(a[3],10)],orientation:a[4],halo:parseInt(a[5],10),mode:a[6],physical_shard_shape:a[7]}:"std::nullopt";return{memory_layout:u,shard_spec:o}}return null},pge={shard_spec:"ShardSpec",memory_layout:"MemoryLayout",grid:"CoreRangeSet",shape:"Shape",orientation:"ShardOrientation",halo:"Halo",mode:"Mode",physical_shard_shape:"PhysicalShardShape"};function dJ(t){return pge[t]}const uDe=t=>!t.includes("(torch)")&&!t.includes("::")&&!t.includes("ttnn.")&&t!=="",cDe={"SPDX-FileCopyrightText":"© 2025 Tenstorrent AI ULC","SPDX-License-Identifier":"Apache-2.0"},fDe={x_size:10,y_size:12},hDe=["0-10"],dDe=["0-3"],vDe=[["0-0","0-1","0-11"],["0-5","0-6","0-7"],["5-0","5-1","5-11"],["5-2","5-9","5-10"],["5-3","5-4","5-8"],["5-5","5-6","5-7"]],gDe=["9-0","1-0","8-0","2-0","7-0","3-0","6-0","4-0","9-6","1-6","8-6","2-6","7-6","3-6","6-6","4-6"],pDe=["1-1","2-1","3-1","4-1","6-1","7-1","8-1","9-1","1-2","2-2","3-2","4-2","6-2","7-2","8-2","9-2","1-3","2-3","3-3","4-3","6-3","7-3","8-3","9-3","1-4","2-4","3-4","4-4","6-4","7-4","8-4","9-4","1-5","2-5","3-5","4-5","6-5","7-5","8-5","9-5","1-7","2-7","3-7","4-7","6-7","7-7","8-7","9-7","1-8","2-8","3-8","4-8","6-8","7-8","8-8","9-8","1-9","2-9","3-9","4-9","6-9","7-9","8-9","9-9","1-10","2-10","3-10","4-10","6-10","7-10","8-10","9-10","1-11","2-11","3-11","4-11","6-11","7-11","8-11","9-11"],mDe=[],yDe=["0-2","0-4","0-8","0-9"],ADe=1499136,CDe=2147483648,IDe=262144,bDe="WORMHOLE",xDe={unpacker:{version:2,inline_srca_trans_without_srca_trans_instr:!0},math:{dst_size_alignment:131072},packer:{version:2},overlay:{version:2}},wDe={license:cDe,grid:fDe,arc:hDe,pcie:dDe,dram:vDe,eth:gDe,functional_workers:pDe,harvested_workers:mDe,router_only:yDe,worker_l1_size:ADe,dram_bank_size:CDe,eth_l1_size:IDe,arch_name:bDe,features:xDe},TDe={"SPDX-FileCopyrightText":"© 2025 Tenstorrent AI ULC","SPDX-License-Identifier":"Apache-2.0"},_De={x_size:16,y_size:12},SDe="DRAM banks are NOT grouped by modules",EDe=[["0-0","0-1","0-2","0-3","0-4","0-5","0-6","0-7","0-8","0-9","0-10","0-11","9-0","9-1","9-2","9-3","9-4","9-5","9-6","9-7","9-8","9-9","9-10","9-11"]],MDe=["1-1","2-1","3-1","4-1","5-1","6-1","7-1","9-1","10-1","11-1","12-1","13-1","14-1","15-1"],RDe=["1-2","2-2","3-2","4-2","5-2","6-2","7-2","10-2","11-2","12-2","13-2","14-2","15-2","16-2","1-3","2-3","3-3","4-3","5-3","6-3","7-3","10-3","11-3","12-3","13-3","14-3","15-3","16-3","1-4","2-4","3-4","4-4","5-4","6-4","7-4","10-4","11-4","12-4","13-4","14-4","15-4","16-4","1-5","2-5","3-5","4-5","5-5","6-5","7-5","10-5","11-5","12-5","13-5","14-5","15-5","16-5","1-6","2-6","3-6","4-6","5-6","6-6","7-6","10-6","11-6","12-6","13-6","14-6","15-6","16-6","1-7","2-7","3-7","4-7","5-7","6-7","7-7","10-7","11-7","12-7","13-7","14-7","15-7","16-7","1-8","2-8","3-8","4-8","5-8","6-8","7-8","10-8","11-8","12-8","13-8","14-8","15-8","16-8","1-9","2-9","3-9","4-9","5-9","6-9","7-9","10-9","11-9","12-9","13-9","14-9","15-9","16-9","1-10","2-10","3-10","4-10","5-10","6-10","7-10","10-10","11-10","12-10","13-10","14-10","15-10","16-10","1-11","2-11","3-11","4-11","5-11","6-11","7-11","10-11","11-11","12-11","13-11","14-11","15-11","16-11"],PDe=["8-0"],LDe=["2-0","11-0"],ODe=[],kDe=["1-0","2-0","3-0","4-0","5-0","6-0","7-0","10-0","11-0","12-0","13-0","14-0","15-0","16-0"],DDe=1499136,NDe=2147483648,FDe=262144,zDe="BLACKHOLE",BDe={unpacker:{version:2,inline_srca_trans_without_srca_trans_instr:!0},math:{dst_size_alignment:131072},packer:{version:2},overlay:{version:2}},$De={license:TDe,grid:_De,_dram_comment:SDe,dram:EDe,eth:MDe,functional_workers:RDe,arc:PDe,pcie:LDe,harvested_workers:ODe,router_only:kDe,worker_l1_size:DDe,dram_bank_size:NDe,eth_l1_size:FDe,arch_name:zDe,features:BDe};var LO=(t=>(t.UNKNOWN="",t.GRAYSKULL="grayskull",t.WORMHOLE="wormhole_b0",t.BLACKHOLE="blackhole",t))(LO||{});const UDe=t=>t.toLowerCase().includes("wormhole")?"wormhole_b0":t.toLowerCase().includes("blackhole")?"blackhole":"",XU=t=>{const r=/File\s+"(?:.+\/)?([^/]+)",\s+line\s+(\d+)/,e=t.match(r);return e?`${e[1]}:${e[2]}`:""},HDe=async()=>{const t=await Tu.get("/api/session").catch();return t==null?void 0:t.data},vJ=async t=>{const r=await Tu.put("/api/session",t).catch();return r==null?void 0:r.data},jDe=async(t,r,e)=>(await Tu.get("/api/buffer-pages",{params:{operation_id:t,address:r,buffer_type:e}})).data,VDe=async t=>{if(t===null)return qQ;try{const{data:r}=await Tu.get(`/api/operations/${t}`,{maxRedirects:1});return{...r,operationFileIdentifier:XU(r.stack_trace)}}catch(r){if(_c.isAxiosError(r)&&(r.response&&r.response.status>=400&&r.response.status<500||r.response&&r.response.status>=500))throw r}return qQ},mge=async()=>{const t=new Map,{data:r}=await Tu.get("/api/operations");return r.map(e=>{e.operationFileIdentifier=XU(e.stack_trace);const n=e.outputs.map(o=>{const f={...o,producerOperation:e,operationIdentifier:`${e.id} ${e.name} ${e.operationFileIdentifier}`};return t.set(o.id,f),{...f,io:"output"}}),a=e.inputs.map(o=>{const f=t.get(o.id);return f?{...f,io:"input"}:{...o,io:"input"}}),u=e.arguments.map(o=>o.name==="memory_config"||gge.test(o.value)?{...o,parsedValue:o.value?lDe(o.value):null}:o);return{...e,operationFileIdentifier:XU(e.stack_trace),outputs:n,inputs:a,arguments:u}})},GDe=async t=>{const r={buffer_type:t},{data:e}=await Tu.get("/api/operation-buffers",{params:r});return e},WDe=async t=>{const r={buffer_type:t},{data:e}=await Tu.get("/api/buffers",{params:r});return e},ZDe=t=>{const r=rs(l0);return mg({queryFn:()=>WDe(t),queryKey:["fetch-all-buffers",t,r],staleTime:1/0})},dW=()=>{const{data:t}=ZDe(Rh.L1_SMALL);return St.useMemo(()=>{const r=(t==null?void 0:t.map(e=>e.address))||[0];return Math.min(...r)},[t])},vW=()=>{const{data:t}=wD();return St.useMemo(()=>t&&t.length>0?t[0].address_at_first_l1_cb_buffer:0,[t])},YDe=async()=>{const{data:t}=await Tu.get("/api/devices");return t.length===0&&console.error(" Data integrity warning: No device information provided."),[...new Map(t.map(r=>[r.device_id,r])).values()]},yge=async t=>{const{data:r}=await Tu.get("/api/performance/perf-results/report",{params:{name:t}});return r},XDe=async()=>{const{data:t}=await Tu.get("/api/performance/device-log/raw");function r(e){const n=e.match(/ARCH:\s*([\w\d_]+)/),a=e.match(/CHIP_FREQ\[MHz\]:\s*(\d+)/),u=n?n[1]:null,o=a?parseInt(a[1],10):null;return{architecture:u,frequency:o}}return new Promise((e,n)=>{const a=t.split(`
101
101
  `),u=a.slice(1),o=r(a[0]),i=[u.shift().split(/,\s{1,2}/).join(","),...u].join(`
102
102
  `);aDe.parse(i,{header:!0,complete:s=>e({deviceMeta:o,deviceLog:s}),error:s=>n(s)})})},KDe=async()=>{const{data:t}=await Tu.get("/api/cluster-descriptor");return t},Age=()=>{const t=rs(l0);return mg({queryFn:()=>KDe(),queryKey:["get-cluster-description",t],initialData:null})},yg=()=>{const t=rs(l0);return mg({queryFn:()=>t!==null?mge():Promise.resolve([]),queryKey:["get-operations",t],retry:!1,staleTime:1/0})},QDe=()=>{const t=yg();return St.useMemo(()=>{var r,e,n;return(r=t==null?void 0:t.data)!=null&&r.length?[(e=t.data)==null?void 0:e[0].id,(n=t.data)==null?void 0:n[t.data.length-1].id]:null},[t.isLoading])},JDe=async()=>{const t=await Tu.get("/api/npe");return t==null?void 0:t.data},qDe=t=>mg({queryFn:()=>JDe(),queryKey:["fetch-npe",t],retry:!1,staleTime:1/0}),bD=t=>{const{data:r}=yg(),e=St.useMemo(()=>(r==null?void 0:r.find(o=>o.id===t))||null,[r,t]),n=St.useCallback(()=>VDe(t),[t]),a=mg(["get-operation-detail",t],n,{retry:2,retryDelay:o=>Math.min(o*100,500),staleTime:1/0}),u=St.useMemo(()=>{if(!a.data)return[];const o=new Map;return a.data.buffers.forEach(f=>{const{address:i,max_size_per_bank:s}=f;if(i){const d=o.get(i);(!d||s>d.max_size_per_bank)&&o.set(i,f)}}),Array.from(o.values())},[a.data]);return a.data&&(a.data.buffersSummary=u),{operation:e,operationDetails:a}},e8e=t=>{const{data:r}=yg(),e=r==null?void 0:r.find((n,a,u)=>{var o;return((o=u[a+1])==null?void 0:o.id)===t});return bD(e?e.id:null)},t8e=t=>{const{data:r}=yg(),e=r==null?void 0:r.find((n,a,u)=>{var o;return((o=u[a+1])==null?void 0:o.id)===t});return e?{id:e.id,name:e.name}:void 0},r8e=t=>{const{data:r}=yg(),e=r==null?void 0:r.find((n,a,u)=>{var o;return((o=u[a-1])==null?void 0:o.id)===t});return e?{id:e.id,name:e.name}:void 0},n8e=()=>{const{data:t}=yg(),{data:r}=wD(),e=(n,a)=>{if(a===1)return n;const u=[],o=new Map;for(const{name:i,id:s}of n){const d=`${i}-${s}`;o.set(d,(o.get(d)||0)+1)}const f=new Set;for(const i of n){const s=`${i.name}-${i.id}`;!f.has(s)&&o.get(s)===a&&(u.push(i),f.add(s))}return u};return St.useMemo(()=>{if(!t||!r)return[];const n=t.flatMap(a=>a.device_operations.filter(u=>u.node_type===ms.function_start&&u.params.name&&uDe(u.params.name)).map(u=>({name:u.params.name,id:a.id,operationName:a.name})));return e(n,r.length)},[t,r])},i8e=()=>{const t=rs(Lh),r=TD(t);return St.useMemo(()=>r.data?r.data:[],[r.isLoading])},xD=()=>{const t=n8e(),r=i8e();return St.useMemo(()=>t.every((n,a)=>{const u=r[a];return u&&u.raw_op_code===n.name?(n.perfData=u,!0):!1})?t:[],[r,t])},Cge=()=>{const t=xD();return St.useMemo(()=>t.map(({id:r,perfData:e})=>({opId:r,perfId:e==null?void 0:e.id})),[t])},Ige=()=>{const t=rs(Lh),{data:r}=TD(t);return St.useMemo(()=>r!=null&&r.length?[Math.min(...r.map(e=>parseInt(e.id,10))),Math.max(...r.map(e=>parseInt(e.id,10)))]:null,[r])},a8e=(t,r,e)=>mg(["get-buffer-pages",t,r,e],()=>jDe(t,r,e),{staleTime:1/0}),o8e=async()=>{try{const{data:t}=await Tu.get("/api/tensors",{maxRedirects:1}),r=await mge();for(const e of t)if(e.producers.length>0){const n=e.producers[0],a=r.find(o=>o.id===n),u=a==null?void 0:a.outputs.find(o=>o.id===e.id);u&&(e.operationIdentifier=u.operationIdentifier)}return t}catch(t){if(_c.isAxiosError(t)&&(t.response&&t.response.status>=400&&t.response.status<500||t.response&&t.response.status>=500))throw t}return[IOe]},bge=()=>{const t=rs(l0);return mg({queryFn:()=>o8e(),queryKey:["get-tensors",t],retry:!1,staleTime:1/0})},wD=()=>{const t=rs(l0);return mg({queryFn:()=>t!==null?YDe():Promise.resolve([]),queryKey:["get-devices",t],retry:!1,staleTime:1/0})},KU=(t,r)=>{const e=rs(O3),n=rs(l0),a=mg({queryFn:()=>GDe(t),queryKey:["fetch-all-buffers",t,n],staleTime:1/0});return St.useMemo(()=>(a.data&&e&&r&&(a.data=a.data.filter(u=>u.id>=e[0]&&u.id<=e[1])),a),[e,a.isLoading,r])},s8e=()=>{const t=rs(Lh);return mg({queryFn:()=>XDe(),queryKey:["get-device-log-raw",t],staleTime:1/0})},TD=t=>{const r=mg({queryFn:()=>t!==null?yge(t):Promise.resolve([]),queryKey:["get-performance-report",t],enabled:t!==null});return St.useMemo(()=>{if(r.data){const e=r.data.slice().filter(n=>{var a;return!((a=n.op_code)!=null&&a.includes("(torch)"))&&n.op_code!==""});r.data=e}return r},[r.isLoading])},l8e=t=>{const r=mg({queryFn:()=>t!==null?yge(t):Promise.resolve([]),queryKey:["get-performance-comparison-report",t],staleTime:1/0,enabled:t!==null});return St.useMemo(()=>{if(r.data){const e=r.data.slice().filter(n=>{var a;return!((a=n.op_code)!=null&&a.includes("(torch)"))&&n.op_code!==""});r.data=e}return r},[r.isLoading,t])},gW=()=>{const t=rs(l0),r=rs(Lh),e=rs(vD);return mg({queryFn:()=>HDe(),queryKey:["get-session",t,r,e],initialData:null})},xge=t=>{switch(t){case LO.WORMHOLE:return wDe;case LO.BLACKHOLE:return $De;default:return console.error(`Unsupported arch: ${t}`),{}}},u8e=t=>{const{data:r}=bge(),e=KU(Rh.L1,!1);return t.map(n=>{var u;const a=r==null?void 0:r.find(o=>o.id===n);if(a){const o=a==null?void 0:a.producers[0],f=(u=e.data)==null?void 0:u.find(s=>s.id===o),i=f==null?void 0:f.buffers.find(s=>s.address===a.address);return{id:a.id,size:(i==null?void 0:i.size)||null}}return null}).filter(n=>n!==null)},c8e=t=>{const r=xge(t),e=St.useMemo(()=>{var o;return(o=r.functional_workers)==null?void 0:o.map(f=>f.split("-").reverse().map(i=>parseInt(i,10)))},[r]),n=St.useMemo(()=>{var o;return(o=r.dram)==null?void 0:o.flat().map(f=>f.split("-").reverse().map(i=>parseInt(i,10)))},[r]),a=St.useMemo(()=>{var o;return(o=r.eth)==null?void 0:o.flat().map(f=>f.split("-").reverse().map(i=>parseInt(i,10)))},[r]),u=St.useMemo(()=>{var o;return(o=r.pcie)==null?void 0:o.map(f=>f.split("-").reverse().map(i=>parseInt(i,10)))},[r]);return{architecture:r,cores:e,dram:n,eth:a,pcie:u}},wge="fetch-profiler-folder-list",f8e=async()=>{const{data:t}=await Tu.get("/api/profiler");return t},h8e=async t=>{const{data:r}=await Tu.delete(`/api/profiler/${t}`);return r},d8e=()=>mg({queryFn:()=>f8e(),queryKey:[wge],initialData:null}),Tge="fetch-performance-folder-list",v8e=async()=>{const{data:t}=await Tu.get("/api/performance");return t},g8e=async t=>{const{data:r}=await Tu.delete(`/api/performance/${t}`);return r},_ge=()=>mg({queryFn:()=>v8e(),queryKey:[Tge],initialData:null});function p8e(){const t=bI(),r=uy(),e=rs(l0),n=rs(Lh),a=d=>{t(d)},u=d=>{t(d,{state:{background:r}})},o=Age(),f=!!e,i=!!n;return Ge.jsx(qT,{className:"navbar",children:Ge.jsxs(qT.Group,{align:Yb.END,children:[Ge.jsx(Na,{text:"Reports",onClick:()=>a(os.HOME),active:s(os.HOME),icon:ki.DOCUMENT_OPEN,variant:"minimal",size:"large",className:"reports-button"}),Ge.jsx(Na,{text:"Operations",onClick:()=>a(os.OPERATIONS),active:s(os.OPERATIONS),icon:ki.CUBE,disabled:!f,variant:"minimal",size:"large",className:"operations-button"}),Ge.jsx(Na,{text:"Tensors",onClick:()=>a(os.TENSORS),active:s(os.TENSORS),icon:ki.FLOW_LINEAR,disabled:!f,variant:"minimal",size:"large",className:"tensors-button"}),Ge.jsx(Na,{text:"Buffers",onClick:()=>a(os.BUFFERS),active:s(os.BUFFERS),icon:ki.SMALL_SQUARE,disabled:!f,variant:"minimal",size:"large",className:"buffers-button"}),Ge.jsx(Na,{text:"Graph",onClick:()=>a(os.GRAPHTREE),active:s(os.GRAPHTREE),icon:ki.GRAPH,disabled:!f,variant:"minimal",size:"large",className:"graph-button"}),Ge.jsx(Na,{text:"Performance",onClick:()=>a(os.PERFORMANCE),active:s(os.PERFORMANCE),icon:ki.LIGHTNING,disabled:!i,variant:"minimal",size:"large",className:"performance-button"}),Ge.jsx(Na,{text:"NPE",onClick:()=>a(os.NPE),active:s(os.NPE),icon:ki.Random,variant:"minimal",size:"large",className:"npe-button",children:Ge.jsx("small",{children:"beta"})}),Ge.jsx(Na,{text:"Topology",onClick:()=>u(os.CLUSTER),active:s(os.CLUSTER),disabled:o.data===null,icon:ki.LayoutGrid,variant:"minimal",size:"large",className:"cluster-button modal"})]})});function s(d){var l,h,y,b;return!!(r.pathname===d||r.pathname.includes(d)&&d!==os.HOME||((h=(l=r.state)==null?void 0:l.background)==null?void 0:h.pathname)===d||(b=(y=r.state)==null?void 0:y.background)!=null&&b.pathname.includes(d)&&d!==os.HOME)}}const m8e=()=>{const r=xD().length>0;return Ge.jsx("span",{children:r?Ge.jsxs("strong",{children:[Ge.jsx(tl,{icon:ki.TickCircle,intent:uo.SUCCESS})," ","Profiler and perf reports synchronised"]}):Ge.jsxs("strong",{children:[Ge.jsx(tl,{icon:ki.ISSUE,intent:uo.DANGER})," ","Profiler and perf reports can't be synchronized"]})})};var pW=(t=>(t.SMALL="small",t))(pW||{});function Tv({size:t}){return Ge.jsxs("div",{className:_i("loading-spinner",{small:t===pW.SMALL}),children:[Ge.jsx("div",{}),Ge.jsx("div",{}),Ge.jsx("div",{}),Ge.jsx("div",{})]})}const gJ=25;function y8e(){const t=rs(Lh),r=qm(Uve),[e,n]=Yl(O3),a=qm(Hve),[u,o]=Yl(jve),f=rs(PA),[i,s]=St.useState(!1),[d,l]=St.useState(!1),{data:h}=yg(),{data:y}=TD(t),b=uy(),C=xD(),m=(C==null?void 0:C.length)>0,c=Cge(),v=QDe(),g=Ige(),p=v==null?void 0:v[0],I=v==null?void 0:v[1],A=g==null?void 0:g[0],T=g==null?void 0:g[1],_=b.pathname.includes(`${os.OPERATIONS}/`),E=b.pathname===os.PERFORMANCE,x=_||E,S=()=>{n(v),o(g)};return St.useEffect(()=>{v&&(r(v),n(v))},[v,r,n]),St.useEffect(()=>{g&&(a(g),o(g))},[g,a,o]),St.useEffect(()=>{var w,L;if(m&&e&&g&&u&&i){const k=((w=c.find(z=>e[0]===z.opId))==null?void 0:w.perfId)??c.reduce((z,M)=>Math.abs((M.opId??0)-e[0])<Math.abs((z.opId??0)-e[0])?M:z).perfId,F=((L=c.find(z=>e[1]===z.opId))==null?void 0:L.perfId)??c.reduce((z,M)=>Math.abs((M.opId??0)-e[1])<Math.abs((z.opId??0)-e[1])?M:z).perfId,N=Number(k)||(e[0]<c[0].opId?A:u[0]),P=Number(F)||(e[1]>c[c.length-1].opId?T:u[1]);o([N,P]),s(!1)}},[m,e]),St.useEffect(()=>{var w,L,k,F;if(m&&e&&g&&u&&d){const N=((w=c.find(R=>u[0]===Number(R.perfId)))==null?void 0:w.opId)??c.reduce((R,D)=>Math.abs((Number(D.perfId)??0)-u[0])<Math.abs((Number(R.perfId)??0)-u[0])?D:R).opId,P=((L=c.find(R=>u[1]===Number(R.perfId)))==null?void 0:L.opId)??c.reduce((R,D)=>Math.abs((Number(D.perfId)??0)-u[1])<Math.abs((Number(R.perfId)??0)-u[1])?D:R).opId,z=N||(u[0]<Number(((k=c==null?void 0:c[0])==null?void 0:k.perfId)??0)?p:e[0]),M=P||(u[1]>Number(((F=c==null?void 0:c[c.length-1])==null?void 0:F.perfId)??0)?I:e[1]);n([z,M]),l(!1)}},[m,u]),e||u?Ge.jsxs("div",{className:"range-slider",children:[u&&Ge.jsxs("div",{className:"slider",children:[Ge.jsx("div",{className:"inputs",children:Ge.jsxs("div",{className:"group",children:[Ge.jsx(_h,{value:u[0].toString(),onValueChange:w=>{o([parseInt(w,10)||A,u[1]]),l(!0)},fill:!1,disabled:!E,size:"small"}),Ge.jsx(_h,{value:u[1].toString(),onValueChange:w=>{o([u[0],parseInt(w,10)||T]),l(!0)},fill:!1,disabled:!E,size:"small"})]})}),A&&T&&u&&Ge.jsxs("div",{className:"slider-container",children:[Ge.jsx($Q,{value:u,onChange:w=>{o(w),l(!0)},min:A,max:T,labelStepSize:pJ(T),disabled:!E||!!f,labelRenderer:(w,L)=>C8e(w,y,L==null?void 0:L.isHandleTooltip)}),Ge.jsx("p",{children:"Performance"})]}),Ge.jsx("div",{className:"inputs",children:g&&Ge.jsx(Es,{content:"Reset range",children:Ge.jsx(Na,{icon:ki.RESET,onClick:()=>m?S():o(g),disabled:!E,size:"small"})})})]}),Ge.jsxs("div",{className:"slider",children:[e&&Ge.jsx("div",{className:"inputs",children:Ge.jsxs("div",{className:"group",children:[Ge.jsx(_h,{value:e[0].toString(),onValueChange:w=>{n([parseInt(w,10)||p,e[1]]),s(!0)},fill:!1,disabled:x,size:"small"}),Ge.jsx(_h,{value:e[1].toString(),onValueChange:w=>{n([e[0],parseInt(w,10)||I]),s(!0)},fill:!1,disabled:x,size:"small"})]})}),p&&I&&e&&Ge.jsxs("div",{className:"slider-container",children:[Ge.jsx($Q,{value:e,onChange:w=>{n(w),s(!0)},min:p,max:I,labelStepSize:pJ(I),disabled:x,labelRenderer:(w,L)=>A8e(w,h,L==null?void 0:L.isHandleTooltip)}),Ge.jsx("p",{children:"Operations"})]}),v&&Ge.jsx(Es,{content:"Reset range",children:Ge.jsx(Na,{icon:ki.RESET,onClick:()=>m?S():n(v),disabled:x,size:"small"})})]})]}):Ge.jsx(Tv,{})}const pJ=t=>gJ>t?1:Math.ceil(t/gJ),A8e=(t,r,e)=>{const n=r==null?void 0:r.find(a=>a.id===t);return n&&e?`${n.id} ${n.name}`:t.toString()},C8e=(t,r,e)=>{const n=r==null?void 0:r.find(a=>parseInt(a.id,10)===t);return n&&e?`${n.id} ${n.raw_op_code}`:t.toString()},aP=20;function I8e(){const[t,r]=St.useState(!1),e=rs(O3),n=rs(Uve),a=rs(Hve),u=rs(l0),o=rs(Lh),f=uy(),i=f.pathname.includes(`${os.OPERATIONS}/`),s=f.pathname===os.PERFORMANCE,d=f.pathname.includes(`${os.NPE}`);St.useEffect(()=>{(i||d)&&r(!1)},[d,i]);const l=()=>s?a&&`Selected Performance: ${a[0]} - ${a[1]}`:e&&`Selected: ${e[0]} - ${e[1]}`;return Ge.jsxs("footer",{className:_i("app-footer",{"is-open":t}),children:[Ge.jsxs("div",{className:"current-data",children:[Ge.jsxs("div",{className:"active-reports",children:[u&&(u.length>aP?Ge.jsx(Es,{content:u,className:_i("title",{"is-lengthy":u.length>aP}),children:Ge.jsxs("span",{children:[Ge.jsx("strong",{children:"Report:"})," ",u]})}):Ge.jsxs("span",{children:[Ge.jsx("strong",{children:"Report:"})," ",u]})),o&&(o.length>aP?Ge.jsx(Es,{content:o,className:_i("title",{"is-lengthy":o.length>aP}),children:Ge.jsxs("span",{children:[Ge.jsx("strong",{children:"Performance:"})," ",o]})}):Ge.jsxs("span",{children:[Ge.jsx("strong",{children:"Performance:"})," ",o]})),u&&o&&Ge.jsx(m8e,{})]}),(n||a)&&Ge.jsxs("div",{className:"slider-controls",children:[!t&&!b8e(e,n)&&Ge.jsx("span",{className:"current-range",children:l()}),Ge.jsx(Na,{icon:t?ki.CARET_DOWN:ki.CARET_UP,onClick:()=>r(!t),disabled:i,size:"small",children:"Range"})]})]}),(u||o)&&Ge.jsx(KG,{className:"slider-container",isOpen:t,keepChildrenMounted:!0,children:Ge.jsx(y8e,{})})]})}const b8e=(t,r)=>!!(t&&r&&t[0]===r[0]&&t[1]===r[1]);var j1=(t=>(t.TOP="top",t.BOTTOM="bottom",t.LEFT="left",t.RIGHT="right",t))(j1||{}),tg=(t=>(t[t.X=0]="X",t[t.Y=1]="Y",t[t.R=2]="R",t[t.S=3]="S",t))(tg||{});const x8e="Wormhole",pE=6,w8e=350,mJ=250,T8e=150;function _8e(){const t=bI(),r=Age(),e=r==null?void 0:r.data,n=UDe((e==null?void 0:e.arch.length)&&(e==null?void 0:e.arch[0])||x8e),a=xge(n);let u=w8e;const o=Ge.jsx("h1",{className:"cluster-view-header",children:Ge.jsx(Na,{icon:ki.CROSS,onClick:()=>{t(-1)}})});if(!e)return Ge.jsxs("div",{className:"cluster-view-wrap",children:[o,Ge.jsx("p",{children:"Loading..."})]});let f=0;const i=e.chips_with_mmio.map(l=>Object.values(l)[0]),s=e.ethernet_connections,d=Object.entries(e.chips).map(([l,h])=>{const y=parseInt(l,10);f=Math.max(f,h[tg.X]);const b={id:y,coords:h,mmio:i.includes(y),connectedChipsByEthId:new Map,eth:a.eth.map(C=>`${l}-${C}`)};return b.design=a,b});return d.length>=8&&(u=mJ),d.length>=32&&(u=T8e),s.forEach(l=>{const h=d[l[0].chip],y=d[l[1].chip];h&&y&&(h.connectedChipsByEthId.set(h.eth[l[0].chan]??"",y),y.connectedChipsByEthId.set(y.eth[l[1].chan]??"",h))}),Ge.jsxs("div",{className:"cluster-view-renderer",children:[o,Ge.jsx("div",{className:"cluster-view-wrap",children:Ge.jsx("div",{className:"cluster",style:{gridTemplateColumns:`repeat(${f||0}, ${u}px)`},children:d.map(l=>{var y;const h=new Map;return(y=l.design)==null||y.eth.forEach(b=>{var v;const C=`${l.id}-${b}`,m=l.connectedChipsByEthId.get(C);let c=null;m&&((m==null?void 0:m.coords[tg.X])<l.coords[tg.X]&&(c=j1.LEFT),(m==null?void 0:m.coords[tg.X])>l.coords[tg.X]&&(c=j1.RIGHT),(m==null?void 0:m.coords[tg.Y])<l.coords[tg.Y]&&(c=j1.TOP),(m==null?void 0:m.coords[tg.Y])>l.coords[tg.Y]&&(c=j1.BOTTOM)),c&&(h.has(c)?(v=h.get(c))==null||v.push(C):h.set(c,[C]))}),Ge.jsxs("div",{className:"chip",style:{display:"grid",width:`${u}px`,height:`${u}px`,gridColumn:l.coords[tg.X]+1,gridRow:l.coords[tg.Y]+1,gridTemplateColumns:`repeat(${pE}, 1fr)`,gridTemplateRows:`repeat(${pE}, 1fr)`},children:[Ge.jsxs("span",{className:"chip-id",style:{lineHeight:`${u}px`,paddingRight:`${u/4}px`,paddingTop:`${u/5}px`},children:[u>=mJ&&"Device"," ",l.id]}),[...h.entries()].map(([b,C])=>C.map((m,c)=>{const{x:v,y:g}=S8e(b,c),p=u/pE-5;return Ge.jsx("div",{title:`${m}`,className:`eth eth-position-${b}`,style:{gridColumn:v,gridRow:g,width:`${p}px`,height:`${p}px`},children:Ge.jsx("span",{children:m})},m)})),l.mmio&&Ge.jsx("div",{className:"mmio",children:"PCIe"})]},l.id)})})})]})}const S8e=(t,r)=>{let e=0,n=0;switch(t){case j1.TOP:e=r+2,n=1;break;case j1.BOTTOM:e=r+2,n=pE;break;case j1.LEFT:e=1,n=r+2;break;case j1.RIGHT:e=pE,n=r+2;break;default:return{x:e,y:n}}return{x:e,y:n}};function E8e({routes:t}){const r=uy(),e=r.state,n=e==null?void 0:e.background;return sEe(t,n||r)}const Sge=()=>{function t(f){const s=Array.from(f).map(h=>h.webkitRelativePath);if(s.length===0)return null;const l=s.reduce((h,y)=>h.split("/").filter((C,m)=>C===y.split("/")[m]).join("/")).split("/");return l.length>=1?l[l.length-1]:null}function r(f,i=["tensors"]){const d=Array.from(f).filter(h=>!i.some(y=>{var b;return(b=h.webkitRelativePath)==null?void 0:b.includes(`/${y}/`)})),l=new DataTransfer;return d.forEach(h=>l.items.add(h)),l.files}return{getUploadedFolderName:t,checkRequiredReportFiles:f=>{const i=["db.sqlite","config.json"],s=new Set;return Array.from(f).forEach(d=>{const l=d.webkitRelativePath.split("/");l.length===2&&s.add(l[1])}),i.every(d=>s.has(d))},checkRequiredProfilerFiles:f=>{const i=["profile_log_device.csv","tracy_profile_log_host.tracy"],s="ops_perf_results",d=new Set;Array.from(f).forEach(y=>{const b=y.webkitRelativePath.split("/");b.length===2&&d.add(b[1])});const l=i.every(y=>d.has(y)),h=Array.from(d).some(y=>y.startsWith(s));return l&&h},uploadLocalFolder:async f=>{const i=K6(),s=new FormData;return Array.from(f).forEach(d=>{s.append("files",d)}),Tu.post("api/local/upload/profiler",s,{headers:{"Content-Type":"multipart/form-data"},onUploadProgress:d=>{if(d&&d.total!==null&&d.total!==void 0){const l=Math.round(d.loaded*100/d.total);i.set(AC,{percentOfCurrent:l,currentFileName:"",finishedFiles:0,numberOfFiles:f.length,status:em.UPLOADING})}}}).catch(d=>d).finally(()=>{i.set(AC,{percentOfCurrent:0,currentFileName:"",finishedFiles:0,numberOfFiles:f.length,status:em.INACTIVE})})},uploadLocalPerformanceFolder:async f=>{const i=new FormData,s=K6();return Array.from(f).forEach(d=>{i.append("files",d)}),Tu.post("api/local/upload/performance",i,{headers:{"Content-Type":"multipart/form-data"},onUploadProgress:d=>{if(d&&d.total!==null&&d.total!==void 0){const l=Math.round(d.loaded*100/d.total);s.set(AC,{percentOfCurrent:l,currentFileName:"",finishedFiles:0,numberOfFiles:f.length,status:em.UPLOADING})}}}).catch(d=>d).finally(()=>{s.set(AC,{percentOfCurrent:0,currentFileName:"",finishedFiles:0,numberOfFiles:f.length,status:em.INACTIVE})})},uploadNpeFile:async f=>{const i=K6(),s=new FormData;return Array.from(f).forEach(d=>{s.append("files",d)}),Tu.post("api/local/upload/npe",s,{headers:{"Content-Type":"multipart/form-data"},onUploadProgress:d=>{if(d&&d.total!==null&&d.total!==void 0){const l=Math.round(d.loaded*100/d.total);i.set(AC,{percentOfCurrent:l,currentFileName:"",finishedFiles:0,numberOfFiles:f.length,status:em.UPLOADING})}}}).catch(d=>d).finally(()=>{i.set(AC,{percentOfCurrent:0,currentFileName:"",finishedFiles:0,numberOfFiles:f.length,status:em.INACTIVE})})},filterReportFiles:r}};var jo=(t=>(t[t.IDLE=0]="IDLE",t[t.PROGRESS=1]="PROGRESS",t[t.FAILED=2]="FAILED",t[t.OK=3]="OK",t))(jo||{});function Ege({isOpen:t,onClose:r,children:e,hideCloseButton:n=!1,canEscapeKeyClose:a=!0,canOutsideClickClose:u=!0}){return Ge.jsx(dA,{isOpen:t,onClose:r,className:ude,canEscapeKeyClose:a,canOutsideClickClose:u,children:Ge.jsxs("div",{className:_i("overlay-contents",HT,ede,v5e),children:[e,!n&&Ge.jsx("div",{className:rde,children:Ge.jsx(Na,{intent:uo.DANGER,onClick:r,children:"Close"})})]})})}function rL({progress:t,estimated:r}){return Ge.jsxs("div",{className:"progress-bar",children:[Ge.jsx(dve,{value:t}),t&&r?Ge.jsxs("span",{className:"status",children:[t>0?`${Math.round(t*100)}%`:"100%"," - ",r>0?`${Math.round(r)}s left`:"0s left"]}):null]})}const M8e=()=>{const t=f=>f.toFixed(2).padStart(5,"0"),[r]=Yl(AC),{currentFileName:e,finishedFiles:n,numberOfFiles:a,percentOfCurrent:u,status:o}=r;return Ge.jsxs(Ege,{isOpen:[em.STARTED,em.COMPRESSING,em.DOWNLOADING,em.UPLOADING].includes(o),hideCloseButton:!0,canEscapeKeyClose:!1,canOutsideClickClose:!1,children:[Ge.jsxs("div",{className:"overlay",children:[Ge.jsx("h2",{children:"File Transfer Progress"}),e&&Ge.jsxs("p",{children:["Current File: ",e]}),a&&Ge.jsxs("p",{children:["Files Transferred: ",n,"/",a]}),Ge.jsxs("p",{children:["Current File Progress: ",t(u),"%"]}),o&&Ge.jsxs("p",{children:["Status: ",o.valueOf()]})]}),Ge.jsx(rL,{progress:u/100})]})},R8e=({message:t,fileName:r})=>Ge.jsxs("div",{children:[t,Ge.jsx("br",{}),Ge.jsx("strong",{children:r})]});function N1(t,r){pu(Ge.jsx(R8e,{message:t,fileName:r}),{position:"bottom-right",autoClose:5e3,hideProgressBar:!1,closeOnClick:!0,pauseOnHover:!1,draggable:!0,progress:void 0,theme:"light"})}var Mge=IG(),uM="".concat(Mge,"-multi-select"),P8e="".concat(uM,"-popover"),L8e="".concat(uM,"-popover-default-width"),O8e="".concat(uM,"-popover-tag-input-margin"),yJ="".concat(uM,"-tag-input-input"),k8e="".concat(Mge,"-select-popover");function D8e(t,r,e){if(t.query.length===0&&e!==void 0)return e;var n=t.filteredItems.map(t.renderItem).filter(function(a){return a!=null});return n.length>0?n:r}function oP(t,r,e){return t===void 0||r==null||e==null?r===e:ld(t)?t(r,e):r[t]===e[t]}function AJ(){return{__blueprintCreateNewItemBrand:"blueprint-create-new-item"}}function E2(t){if(t==null)return!1;var r=Object.keys(t);return r.length!==1||r[0]!=="__blueprintCreateNewItemBrand"?!1:t.__blueprintCreateNewItemBrand==="blueprint-create-new-item"}function sP(t){return t==null||E2(t)?null:t}var Rge=function(t){_s(r,t);function r(e){var n,a,u=t.call(this,e)||this;u.itemRefs=new Map,u.refHandlers={itemsParent:function(d){return u.itemsParentRef=d}},u.shouldCheckActiveItemInViewport=!1,u.expectedNextActiveItem=null,u.isEnterKeyPressed=!1,u.renderItemList=function(d){var l=u.props,h=l.initialContent,y=l.noResults,b=d.renderCreateItem(),C=b!=null?null:y,m=D8e(d,C,h);if(m==null&&b==null)return null;var c=u.isCreateItemFirst();return St.createElement(UG,Qn({role:"listbox"},d.menuProps,{ulRef:d.itemsParentRef}),c&&b,m,!c&&b)},u.renderItem=function(d,l){if(u.props.disabled!==!0){var h=u.state,y=h.activeItem,b=h.query,C=h.filteredItems,m={active:oP(u.props.itemsEqual,sP(y),d),disabled:QU(d,l,u.props.itemDisabled),matchesPredicate:C.indexOf(d)>=0};return u.props.itemRenderer(d,{handleClick:function(c){return u.handleItemSelect(d,c)},handleFocus:function(){return u.setActiveItem(d)},index:l,modifiers:m,query:b,ref:function(c){c?u.itemRefs.set(l,c):u.itemRefs.delete(l)}})}return null},u.renderCreateItemMenuItem=function(){if(u.isCreateItemRendered(u.state.createNewItem)){var d=u.state,l=d.activeItem,h=d.query,y=h.trim(),b=function(m){u.handleItemCreate(y,m)},C=E2(l);return u.props.createNewItemRenderer(y,C,b)}return null},u.handleItemCreate=function(d,l){var h,y,b,C,m=(y=(h=u.props).createNewItemFromQuery)===null||y===void 0?void 0:y.call(h,d);if(m!=null){for(var c=Array.isArray(m)?m:[m],v=0,g=c;v<g.length;v++){var p=g[v];(C=(b=u.props).onItemSelect)===null||C===void 0||C.call(b,p,l)}u.maybeResetQuery()}},u.handleItemSelect=function(d,l){var h,y;u.setActiveItem(d),(y=(h=u.props).onItemSelect)===null||y===void 0||y.call(h,d,l),u.maybeResetQuery()},u.handlePaste=function(d){for(var l=u.props,h=l.createNewItemFromQuery,y=l.onItemsPaste,b,C=[],m=[],c=0,v=d;c<v.length;c++){var g=v[c],p=N8e(g,u.props);if(p!==void 0)b=p,m.push(p);else if(u.canCreateItems()){var I=h==null?void 0:h(g);if(I!==void 0){var A=Array.isArray(I)?I:[I];m.push.apply(m,A)}}else C.push(g)}u.setQuery(C.join(", "),!1),b!==void 0&&u.setActiveItem(b),y==null||y(m)},u.handleKeyDown=function(d){var l,h;if(!d.nativeEvent.isComposing){var y=d.key,b=iD(d,["ArrowUp"],["ArrowDown"]);if(b!==void 0){d.preventDefault();var C=u.getNextActiveItem(b);C!=null&&u.setActiveItem(C)}else y==="Enter"&&(u.isEnterKeyPressed=!0)}(h=(l=u.props).onKeyDown)===null||h===void 0||h.call(l,d)},u.handleKeyUp=function(d){var l=u.props.onKeyUp,h=u.state.activeItem;d.key==="Enter"&&u.isEnterKeyPressed&&(d.preventDefault(),h==null||E2(h)?u.handleItemCreate(u.state.query,d):u.handleItemSelect(h,d),u.isEnterKeyPressed=!1),l==null||l(d)},u.handleInputQueryChange=function(d){var l,h,y=d==null?"":d.target.value;u.setQuery(y),(h=(l=u.props).onQueryChange)===null||h===void 0||h.call(l,y,d)};var o=e.query,f=o===void 0?"":o,i=(n=e.createNewItemFromQuery)===null||n===void 0?void 0:n.call(e,f),s=IJ(f,e);return u.state={activeItem:e.activeItem!==void 0?e.activeItem:(a=e.initialActiveItem)!==null&&a!==void 0?a:TF(s,e.itemDisabled),createNewItem:i,filteredItems:s,query:f},u}return r.ofType=function(){return r},r.prototype.render=function(){var e=this.props,n=e.className,a=e.items,u=e.renderer,o=e.itemListRenderer,f=o===void 0?this.renderItemList:o,i=e.menuProps,s=this.state;s.createNewItem;var d=Ls(s,["createNewItem"]);return u(Qn(Qn({},d),{className:n,handleItemSelect:this.handleItemSelect,handleKeyDown:this.handleKeyDown,handleKeyUp:this.handleKeyUp,handlePaste:this.handlePaste,handleQueryChange:this.handleInputQueryChange,itemList:f(Qn(Qn({},d),{items:a,itemsParentRef:this.refHandlers.itemsParent,menuProps:i,renderCreateItem:this.renderCreateItemMenuItem,renderItem:this.renderItem}))}))},r.prototype.componentDidUpdate=function(e){var n=this;this.props.activeItem!==void 0&&this.props.activeItem!==this.state.activeItem&&(this.shouldCheckActiveItemInViewport=!0,this.setState({activeItem:this.props.activeItem})),this.props.query!=null&&this.props.query!==e.query?this.setQuery(this.props.query,this.props.resetOnQuery,this.props):wv(this.props,e,{include:["items","itemListPredicate","itemPredicate"]})||this.setQuery(this.state.query),this.shouldCheckActiveItemInViewport&&(this.requestAnimationFrame(function(){return n.scrollActiveItemIntoView()}),this.shouldCheckActiveItemInViewport=!1)},r.prototype.scrollActiveItemIntoView=function(){var e=this.props.scrollToActiveItem!==!1,n=!oP(this.props.itemsEqual,sP(this.expectedNextActiveItem),sP(this.props.activeItem));if(this.expectedNextActiveItem=null,!(!e&&n)){var a=this.getActiveElement();if(this.itemsParentRef!=null&&a!=null){var u=a.offsetTop,o=a.offsetHeight,f=this.itemsParentRef,i=f.offsetTop,s=f.scrollTop,d=f.clientHeight,l=this.getItemsParentPadding(),h=l.paddingTop,y=l.paddingBottom,b=u+o+y-i,C=u-h-i;b>=s+d?this.itemsParentRef.scrollTop=b+o-d:C<=s&&(this.itemsParentRef.scrollTop=C-o)}}},r.prototype.setQuery=function(e,n,a){var u;n===void 0&&(n=this.props.resetOnQuery),a===void 0&&(a=this.props);var o=a.createNewItemFromQuery;this.shouldCheckActiveItemInViewport=!0;var f=e!==this.state.query;f&&((u=a.onQueryChange)===null||u===void 0||u.call(a,e));var i=e.trim(),s=IJ(i,a),d=o!=null&&i!==""?o(i):void 0;this.setState({createNewItem:d,filteredItems:s,query:e});var l=this.getActiveIndex(s),h=n||l<0||QU(sP(this.state.activeItem),l,a.itemDisabled);h&&(this.isCreateItemRendered(d)&&this.isCreateItemFirst()?this.setActiveItem(AJ()):this.setActiveItem(TF(s,a.itemDisabled)))},r.prototype.setActiveItem=function(e){var n,a,u,o;this.expectedNextActiveItem=e,this.props.activeItem===void 0&&(this.shouldCheckActiveItemInViewport=!0,this.setState({activeItem:e})),E2(e)?(a=(n=this.props).onActiveItemChange)===null||a===void 0||a.call(n,null,!0):(o=(u=this.props).onActiveItemChange)===null||o===void 0||o.call(u,e,!1)},r.prototype.getActiveElement=function(){var e,n=this.state.activeItem;if(this.itemsParentRef!=null)if(E2(n)){var a=this.isCreateItemFirst()?0:this.state.filteredItems.length;return this.itemsParentRef.children.item(a)}else{var u=this.getActiveIndex();return(e=this.itemRefs.get(u))!==null&&e!==void 0?e:this.itemsParentRef.children.item(u)}},r.prototype.getActiveIndex=function(e){e===void 0&&(e=this.state.filteredItems);var n=this.state.activeItem;if(n==null||E2(n))return-1;for(var a=0;a<e.length;++a)if(oP(this.props.itemsEqual,e[a],n))return a;return-1},r.prototype.getItemsParentPadding=function(){var e=getComputedStyle(this.itemsParentRef),n=e.paddingTop,a=e.paddingBottom;return{paddingBottom:CJ(a),paddingTop:CJ(n)}},r.prototype.getNextActiveItem=function(e,n){if(n===void 0&&(n=this.getActiveIndex()),this.isCreateItemRendered(this.state.createNewItem)){var a=n===0&&e===-1||n===this.state.filteredItems.length-1&&e===1;if(a)return AJ()}return TF(this.state.filteredItems,this.props.itemDisabled,e,n)},r.prototype.isCreateItemRendered=function(e){return this.canCreateItems()&&this.state.query!==""&&!this.wouldCreatedItemMatchSomeExistingItem(e)},r.prototype.isCreateItemFirst=function(){return this.props.createNewItemPosition==="first"},r.prototype.canCreateItems=function(){return this.props.createNewItemFromQuery!=null&&this.props.createNewItemRenderer!=null},r.prototype.wouldCreatedItemMatchSomeExistingItem=function(e){var n=this;return this.state.filteredItems.some(function(a){var u=Array.isArray(e)?e:[e];return u.some(function(o){return oP(n.props.itemsEqual,a,o)})})},r.prototype.maybeResetQuery=function(){this.props.resetOnSelect&&this.setQuery("",!0)},r.displayName="".concat(Vo,".QueryList"),r.defaultProps={disabled:!1,resetOnQuery:!0},r}(L3);function CJ(t){return t==null?0:parseInt(t.slice(0,-2),10)}function N8e(t,r){var e=r.items,n=r.itemPredicate;if(ld(n))for(var a=0;a<e.length;a++){var u=e[a];if(n(t,u,a,!0))return u}}function IJ(t,r){var e=r.items,n=r.itemPredicate,a=r.itemListPredicate;return ld(a)?a(t,e):ld(n)?e.filter(function(u,o){return n(t,u,o)}):e}function F8e(t,r,e){return t<r?e:t>e?r:t}function QU(t,r,e){return e==null||t==null?!1:ld(e)?e(t,r):!!t[e]}function TF(t,r,e,n){if(e===void 0&&(e=1),n===void 0&&(n=t.length-1),t.length===0)return null;var a=n,u=t.length-1;do if(a=F8e(a+e,0,u),!QU(t[a],a,r))return t[a];while(a!==n&&n!==-1);return null}var Pge=function(t){_s(r,t);function r(){var e,n=t.apply(this,arguments)||this;return n.listboxId=bG("listbox"),n.state={isOpen:n.props.popoverProps&&n.props.popoverProps.isOpen||!1},n.input=null,n.queryList=null,n.refHandlers={input:Dx(n,"input",(e=n.props.tagInputProps)===null||e===void 0?void 0:e.inputRef),popover:St.createRef(),queryList:function(a){return n.queryList=a}},n.renderQueryList=function(a){var u,o=n.props,f=o.disabled,i=o.popoverContentProps,s=i===void 0?{}:i,d=o.popoverProps,l=d===void 0?{}:d,h=a.handleKeyDown,y=a.handleKeyUp;return St.createElement(nw,Qn({autoFocus:!1,canEscapeKeyClose:!0,disabled:f,enforceFocus:!1,isOpen:n.state.isOpen,placement:l.position||l.placement?void 0:"bottom-start"},l,{className:_i(a.className,l.className),content:St.createElement("div",Qn({className:n.props.customTarget!=null&&!(!((u=n.props.popoverProps)===null||u===void 0)&&u.matchTargetWidth)?L8e:void 0},s,{onKeyDown:h,onKeyUp:y}),n.props.customTarget!=null&&n.getTagInput(a,_i(up,O8e)),a.itemList),interactionKind:"click",onInteraction:n.handlePopoverInteraction,onOpened:n.handlePopoverOpened,popoverClassName:_i(P8e,l.popoverClassName),popupKind:SO.LISTBOX,ref:hA(n.refHandlers.popover,n.props.popoverRef),renderTarget:n.getPopoverTargetRenderer(a,n.state.isOpen)}))},n.getPopoverTargetRenderer=function(a,u){return function(o){var f;o.isOpen;var i=o.ref,s=Ls(o,["isOpen","ref"]),d=n.props,l=d.disabled,h=d.fill,y=d.selectedItems,b=d.popoverProps,C=b===void 0?{}:b,m=d.popoverTargetProps,c=m===void 0?{}:m,v=a.handleKeyDown,g=a.handleKeyUp,p=C.targetTagName,I=p===void 0?"div":p;return St.createElement(I,Qn(Qn(Qn({"aria-autocomplete":"list","aria-controls":n.listboxId},c),s),{"aria-disabled":l,"aria-expanded":u,className:_i(s.className,c.className,(f={},f[up]=h,f)),onKeyDown:n.getTagInputKeyDownHandler(v),onKeyUp:n.getTagInputKeyUpHandler(g),ref:i,role:"combobox"}),n.props.customTarget!=null?n.props.customTarget(y,u):n.getTagInput(a))}},n.getTagInput=function(a,u){var o,f=n.props,i=f.disabled,s=f.fill,d=f.onClear,l=f.placeholder,h=f.selectedItems,y=f.tagInputProps,b=y===void 0?{}:y,C=d!==void 0&&h.length>0?St.createElement(Na,{"aria-label":"Clear selected items",disabled:i,icon:St.createElement(aD,null),onClick:n.handleClearButtonClick,title:"Clear selected items",variant:"minimal"}):void 0,m=Qn(Qn({},b.inputProps),{className:_i((o=b.inputProps)===null||o===void 0?void 0:o.className,yJ)});return St.createElement(ALe,Qn({placeholder:l,rightElement:C},b,{className:_i(u,uM,b.className),disabled:i,fill:s,inputRef:n.refHandlers.input,inputProps:m,inputValue:a.query,onAdd:n.getTagInputAddHandler(a),onInputChange:a.handleQueryChange,onRemove:n.handleTagRemove,values:h.map(n.props.tagRenderer)}))},n.handleItemSelect=function(a,u){var o,f,i;n.input!=null&&n.input.focus(),(f=(o=n.props).onItemSelect)===null||f===void 0||f.call(o,a,u),(i=n.refHandlers.popover.current)===null||i===void 0||i.reposition()},n.handleQueryChange=function(a,u){var o,f;n.setState({isOpen:a.length>0||n.props.customTarget==null&&!n.props.openOnKeyDown}),(f=(o=n.props).onQueryChange)===null||f===void 0||f.call(o,a,u)},n.handlePopoverInteraction=function(a,u){var o,f;if(n.props.customTarget!=null){n.setState({isOpen:a}),(f=(o=n.props.popoverProps)===null||o===void 0?void 0:o.onInteraction)===null||f===void 0||f.call(o,a,u);return}n.requestAnimationFrame(function(){var i,s,d=n.input===GT(n.input);n.input!=null&&!d?n.setState({isOpen:!1}):n.props.openOnKeyDown||n.setState({isOpen:!0}),(s=(i=n.props.popoverProps)===null||i===void 0?void 0:i.onInteraction)===null||s===void 0||s.call(i,a,u)})},n.handlePopoverOpened=function(a){var u,o,f,i;n.queryList!=null&&n.queryList.scrollActiveItemIntoView();var s=n.props.customTarget!=null;if(s&&n.input!=null){var d=((o=(u=n.props.tagInputProps)===null||u===void 0?void 0:u.inputProps)===null||o===void 0?void 0:o.autoFocus)!==!1;d&&n.input.focus()}(i=(f=n.props.popoverProps)===null||f===void 0?void 0:f.onOpened)===null||i===void 0||i.call(f,a)},n.handleTagRemove=function(a,u){var o,f,i=n.props,s=i.selectedItems,d=i.onRemove,l=i.tagInputProps;d==null||d(s[u],u),(o=l==null?void 0:l.onRemove)===null||o===void 0||o.call(l,a,u),(f=n.refHandlers.popover.current)===null||f===void 0||f.reposition()},n.getTagInputAddHandler=function(a){return function(u,o){o==="paste"&&a.handlePaste(u)}},n.getTagInputKeyDownHandler=function(a){return function(u){var o,f,i;u.key==="Escape"||u.key==="Tab"?(u.key==="Escape"&&((o=n.input)===null||o===void 0||o.blur()),n.setState({isOpen:!1})):u.key==="Backspace"||u.key==="ArrowLeft"||u.key==="ArrowRight"||(n.props.customTarget!=null?u.key===" "?(u.preventDefault(),n.setState({isOpen:!0})):u.key==="Enter"&&n.setState({isOpen:!0}):n.setState({isOpen:!0}));var s=u.target.closest(".".concat(pde))!=null;n.state.isOpen&&!s&&(a==null||a(u)),(i=(f=n.props.popoverTargetProps)===null||f===void 0?void 0:f.onKeyDown)===null||i===void 0||i.call(f,u)}},n.getTagInputKeyUpHandler=function(a){return function(u){var o,f,i=u.target.classList.contains(yJ);n.state.isOpen&&i&&(a==null||a(u)),(f=(o=n.props.popoverTargetProps)===null||o===void 0?void 0:o.onKeyDown)===null||f===void 0||f.call(o,u)}},n.handleClearButtonClick=function(){var a,u,o;(u=(a=n.props).onClear)===null||u===void 0||u.call(a),(o=n.refHandlers.popover.current)===null||o===void 0||o.reposition()},n}return r.ofType=function(){return r},r.prototype.componentDidUpdate=function(e){var n,a,u,o,f;((n=e.tagInputProps)===null||n===void 0?void 0:n.inputRef)!==((a=this.props.tagInputProps)===null||a===void 0?void 0:a.inputRef)&&(rm((u=e.tagInputProps)===null||u===void 0?void 0:u.inputRef,null),this.refHandlers.input=Dx(this,"input",(o=this.props.tagInputProps)===null||o===void 0?void 0:o.inputRef),rm((f=this.props.tagInputProps)===null||f===void 0?void 0:f.inputRef,this.input)),(e.onClear===void 0&&this.props.onClear!==void 0||e.onClear!==void 0&&this.props.onClear===void 0)&&this.forceUpdate()},r.prototype.render=function(){var e=this.props,n=e.menuProps;e.openOnKeyDown,e.popoverProps,e.tagInputProps,e.customTarget;var a=Ls(e,["menuProps","openOnKeyDown","popoverProps","tagInputProps","customTarget"]);return St.createElement(Rge,Qn({},a,{menuProps:Qn(Qn({"aria-label":"selectable options"},n),{"aria-multiselectable":!0,id:this.listboxId}),onItemSelect:this.handleItemSelect,onQueryChange:this.handleQueryChange,ref:this.refHandlers.queryList,renderer:this.renderQueryList}))},r.displayName="".concat(Vo,".MultiSelect"),r.defaultProps={disabled:!1,fill:!1,placeholder:"Search..."},r}(Sc),mW=function(t){_s(r,t);function r(){var e,n=t.apply(this,arguments)||this;return n.state={isOpen:!1},n.inputElement=null,n.queryList=null,n.handleInputRef=Dx(n,"inputElement",(e=n.props.inputProps)===null||e===void 0?void 0:e.inputRef),n.handleQueryListRef=function(a){return n.queryList=a},n.listboxId=bG("listbox"),n.renderQueryList=function(a){var u=n.props,o=u.filterable,f=o===void 0?!0:o,i=u.disabled,s=i===void 0?!1:i,d=u.inputProps,l=d===void 0?{}:d,h=u.placeholder,y=h===void 0?"Filter...":h,b=u.popoverContentProps,C=b===void 0?{}:b,m=u.popoverProps,c=m===void 0?{}:m,v=u.popoverRef,g=St.createElement(_h,Qn({"aria-autocomplete":"list",leftIcon:St.createElement(DG,null),placeholder:y,rightElement:n.maybeRenderClearButton(a.query)},l,{inputRef:n.handleInputRef,onChange:a.handleQueryChange,value:a.query})),p=a.handleKeyDown,I=a.handleKeyUp;return St.createElement(nw,Qn({autoFocus:!1,enforceFocus:!1,isOpen:n.state.isOpen,disabled:s,placement:c.position||c.placement?void 0:"bottom-start"},c,{className:_i(a.className,c.className),content:St.createElement("div",Qn({},C,{onKeyDown:p,onKeyUp:I}),f?g:void 0,a.itemList),onClosing:n.handlePopoverClosing,onInteraction:n.handlePopoverInteraction,onOpened:n.handlePopoverOpened,onOpening:n.handlePopoverOpening,popoverClassName:_i(k8e,c.popoverClassName),popupKind:SO.LISTBOX,ref:v,renderTarget:n.getPopoverTargetRenderer(a,n.state.isOpen)}))},n.getPopoverTargetRenderer=function(a,u){return function(o){var f;o.isOpen;var i=o.ref,s=Ls(o,["isOpen","ref"]),d=n.props,l=d.disabled,h=d.popoverProps,y=h===void 0?{}:h,b=d.popoverTargetProps,C=a.handleKeyDown,m=a.handleKeyUp,c=y.targetTagName,v=c===void 0?"div":c;return St.createElement(v,Qn(Qn(Qn({"aria-controls":n.listboxId},b),s),{"aria-disabled":l,"aria-expanded":u,className:_i(s.className,b==null?void 0:b.className,(f={},f[up]=n.props.fill,f)),onKeyDown:n.withPopoverTargetPropsHandler("keydown",u?C:n.handleTargetKeyDown),onKeyUp:n.withPopoverTargetPropsHandler("keyup",u?m:void 0),ref:i,role:"combobox"}),n.props.children)}},n.withPopoverTargetPropsHandler=function(a,u){switch(a){case"keydown":return function(o){var f,i;u==null||u(o),(i=(f=n.props.popoverTargetProps)===null||f===void 0?void 0:f.onKeyDown)===null||i===void 0||i.call(f,o)};case"keyup":return function(o){var f,i;u==null||u(o),(i=(f=n.props.popoverTargetProps)===null||f===void 0?void 0:f.onKeyUp)===null||i===void 0||i.call(f,o)}}},n.handleTargetKeyDown=function(a){a.key==="ArrowUp"||a.key==="ArrowDown"?(a.preventDefault(),n.setState({isOpen:!0})):WT(a)&&n.setState({isOpen:!0})},n.handleItemSelect=function(a,u){var o,f,i=u==null?void 0:u.target,s=i==null?void 0:i.closest(".".concat(R3)),d=s==null?void 0:s.matches(".".concat(a5)),l=d??!0;n.setState({isOpen:!l}),(f=(o=n.props).onItemSelect)===null||f===void 0||f.call(o,a,u)},n.handlePopoverInteraction=function(a,u){var o,f;n.setState({isOpen:a}),(f=(o=n.props.popoverProps)===null||o===void 0?void 0:o.onInteraction)===null||f===void 0||f.call(o,a,u)},n.handlePopoverOpening=function(a){var u,o,f;n.previousFocusedElement=(u=GT(n.inputElement))!==null&&u!==void 0?u:void 0,n.props.resetOnClose&&n.resetQuery(),(f=(o=n.props.popoverProps)===null||o===void 0?void 0:o.onOpening)===null||f===void 0||f.call(o,a)},n.handlePopoverOpened=function(a){var u,o;n.queryList!=null&&n.queryList.scrollActiveItemIntoView(),n.requestAnimationFrame(function(){var f,i=n.props.inputProps,s=i===void 0?{}:i;s.autoFocus!==!1&&((f=n.inputElement)===null||f===void 0||f.focus())}),(o=(u=n.props.popoverProps)===null||u===void 0?void 0:u.onOpened)===null||o===void 0||o.call(u,a)},n.handlePopoverClosing=function(a){var u,o;n.requestAnimationFrame(function(){n.previousFocusedElement!==void 0&&(n.previousFocusedElement.focus(),n.previousFocusedElement=void 0)}),(o=(u=n.props.popoverProps)===null||u===void 0?void 0:u.onClosing)===null||o===void 0||o.call(u,a)},n.resetQuery=function(){return n.queryList&&n.queryList.setQuery("",!0)},n}return r.ofType=function(){return r},r.prototype.render=function(){var e=this.props;e.filterable,e.inputProps;var n=e.menuProps;e.popoverProps;var a=Ls(e,["filterable","inputProps","menuProps","popoverProps"]);return St.createElement(Rge,Qn({},a,{menuProps:Qn(Qn({"aria-label":"selectable options"},n),{id:this.listboxId}),onItemSelect:this.handleItemSelect,ref:this.handleQueryListRef,renderer:this.renderQueryList}))},r.prototype.componentDidUpdate=function(e,n){var a,u,o,f,i;((a=e.inputProps)===null||a===void 0?void 0:a.inputRef)!==((u=this.props.inputProps)===null||u===void 0?void 0:u.inputRef)&&(rm((o=e.inputProps)===null||o===void 0?void 0:o.inputRef,null),this.handleInputRef=Dx(this,"inputElement",(f=this.props.inputProps)===null||f===void 0?void 0:f.inputRef),rm((i=this.props.inputProps)===null||i===void 0?void 0:i.inputRef,this.inputElement)),this.state.isOpen&&!n.isOpen&&this.queryList!=null&&this.queryList.scrollActiveItemIntoView()},r.prototype.maybeRenderClearButton=function(e){return e.length>0?St.createElement(Na,{"aria-label":"Clear filter query",icon:St.createElement(aD,null),onClick:this.resetQuery,title:"Clear filter query",variant:"minimal"}):void 0},r.displayName="".concat(Vo,".Select"),r}(Sc);const JU=({items:t,value:r,handleSelect:e,handleDelete:n,defaultLabel:a="Select a report..."})=>{const{data:u}=gW(),o=!t||t.length===0,f=(i,{handleClick:s,handleFocus:d,modifiers:l})=>l.matchesPredicate?Ge.jsxs("div",{className:"folder-picker-menu-item",children:[Ge.jsx(gA,{text:`/${i}`,roleStructure:"listoption",active:i===r,disabled:l.disabled,onClick:s,onFocus:d,icon:l.active?ki.FOLDER_OPEN:ki.FOLDER_CLOSE},i),n&&Ge.jsx(Na,{icon:ki.TRASH,onClick:()=>n(i),variant:s5.MINIMAL,intent:uo.DANGER})]},i):null;return Ge.jsx(mW,{className:"folder-picker",items:t??[],itemPredicate:(i,s)=>!i||s.toLowerCase().includes(i.toLowerCase()),itemRenderer:f,noResults:Ge.jsx(gA,{disabled:!0,text:"No results.",roleStructure:"listoption"}),onItemSelect:e,disabled:!t||!u,fill:!0,children:Ge.jsx(Na,{className:"folder-picker-button",text:r?`/${r}`:a,disabled:o||!u,alignText:"start",icon:ki.FOLDER_OPEN,endIcon:ki.CARET_DOWN,variant:s5.OUTLINED,fill:!0})})},bJ={[jo.IDLE]:ki.DOT,[jo.PROGRESS]:ki.DOT,[jo.FAILED]:ki.CROSS,[jo.OK]:ki.TICK},xJ={[jo.IDLE]:uo.NONE,[jo.PROGRESS]:uo.WARNING,[jo.FAILED]:uo.DANGER,[jo.OK]:uo.SUCCESS},wJ={status:jo.OK,message:"Files uploaded successfully"},z8e={status:jo.FAILED,message:"Selected directory does not contain a valid report"},B8e={status:jo.FAILED,message:"Selected directory is not a valid profiler run"},TJ={status:jo.FAILED,message:"Selected directory does not contain a valid report."},_J={status:jo.FAILED,message:"Unable to upload selected directory."},$8e=()=>{const t=gG(),r=qm(aW),e=qm(sW),[n,a]=Yl(l0),[u,o]=Yl(Lh),{uploadLocalFolder:f,uploadLocalPerformanceFolder:i,checkRequiredReportFiles:s,checkRequiredProfilerFiles:d,filterReportFiles:l}=Sge(),{data:h}=_ge(),{data:y}=d8e(),{data:b}=gW(),[C,m]=St.useState(),[c,v]=St.useState(!1),[g,p]=St.useState(!1),[I,A]=St.useState("Choose directory..."),[T,_]=St.useState(),[E,x]=St.useState("Choose directory..."),S=navigator.userAgent.toLowerCase(),w=S.includes("safari")&&!S.includes("chrome")&&!S.includes("android"),L=async M=>{var G;if(!M.target.files)return;const{files:R}=M.target,D=l(R);if(!s(D)){m(z8e);return}let O=wJ;v(!0),A(`${D.length} files selected.`);const H=await f(D);if(H.status!==200)O=_J;else if(((G=H==null?void 0:H.data)==null?void 0:G.status)!==jo.OK)O=TJ;else{const W=SJ(D);A(`${D.length} files uploaded`),r("local"),e(MO),a(W),N1("Active memory report",W)}t.clear(),v(!1),m(O)},k=async M=>{var G;if(!M.target.files)return;const{files:R}=M.target,D=l(R);if(!d(D)){_(B8e);return}let O=wJ;p(!0),x(`${D.length} files selected`);const H=await i(D);if(H.status!==200)O=_J;else if(((G=H==null?void 0:H.data)==null?void 0:G.status)!==jo.OK)O=TJ;else{const W=SJ(D);x(`${D.length} files uploaded`),r("local"),o(W),N1("Active performance report",W)}t.clear(),p(!1),_(O)};St.useEffect(()=>{c&&m({status:jo.PROGRESS,message:"Files uploading..."}),g&&_({status:jo.PROGRESS,message:"Files uploading..."})},[c,g]);const F=async M=>{await vJ({...b,active_report:{profiler_name:M}}),N1("Active memory report",M),a(M)},N=async M=>{await h8e(M),await t.invalidateQueries([wge]),N1("Memory report deleted",M),n===M&&(a(null),A("Choose directory..."),m(void 0))},P=async M=>{await vJ({...b,active_report:{performance_name:M}}),N1("Active performance report",M),o(M)},z=async M=>{await g8e(M),await t.invalidateQueries([Tge]),N1("Performance report deleted",M),u===M&&(o(null),x("Choose directory..."),_(void 0))};return Ge.jsxs(Ge.Fragment,{children:[w&&Ge.jsxs(Ge.Fragment,{children:[Ge.jsxs("h3",{children:[Ge.jsx(tl,{icon:ki.WARNING_SIGN,size:20,intent:uo.WARNING})," ","This functionality is not supported in safari browser"]}),Ge.jsx("p",{children:"Please use Chrome or Firefox to upload a local report "})]}),Ge.jsxs("div",{children:[Ge.jsx(Df,{className:"form-group",label:Ge.jsx("h3",{className:"label",children:"Memory report"}),subLabel:"Select a memory report",children:Ge.jsx(JU,{items:y,value:y!=null&&y.includes(n)?n:null,handleSelect:F,handleDelete:N})}),Ge.jsx(Df,{subLabel:"Upload a local memory report",children:Ge.jsxs("div",{className:"buttons-container",children:[Ge.jsxs("label",{className:"bp5-file-input",htmlFor:"local-upload",children:[Ge.jsx("input",{id:"local-upload",type:"file",multiple:!0,directory:"",webkitdirectory:"",disabled:w,onChange:L}),Ge.jsx("span",{className:"bp5-file-upload-input",children:I})]}),Ge.jsx(M8e,{}),C&&!c&&Ge.jsxs("div",{className:`verify-connection-item status-${jo[C.status]}`,children:[Ge.jsx(tl,{className:"connection-status-icon",icon:bJ[C.status],size:20,intent:xJ[C.status]}),Ge.jsx("span",{className:"connection-status-text",children:C.message})]})]})}),Ge.jsx(Df,{className:"form-group",label:Ge.jsx("h3",{className:"label",children:"Performance report"}),subLabel:"Select a performance report",children:Ge.jsx(JU,{items:h,value:h!=null&&h.includes(u)?u:null,handleSelect:P,handleDelete:z})}),Ge.jsx(Df,{subLabel:"Upload a local performance report",children:Ge.jsxs("div",{className:"buttons-container",children:[Ge.jsxs("label",{className:"bp5-file-input",htmlFor:"local-performance-upload",children:[Ge.jsx("input",{id:"local-performance-upload",type:"file",multiple:!0,directory:"",webkitdirectory:"",disabled:w,onChange:k}),Ge.jsx("span",{className:"bp5-file-upload-input",children:E})]}),T&&!g&&Ge.jsxs("div",{className:`verify-connection-item status-${jo[T.status]}`,children:[Ge.jsx(tl,{className:"connection-status-icon",icon:bJ[T.status],size:20,intent:xJ[T.status]}),Ge.jsx("span",{className:"connection-status-text",children:T.message})]})]})})]})]})},SJ=t=>t[0].webkitRelativePath.split("/")[0],jS=t=>{const{lastSynced:r,lastModified:e}=t;return r?e>r:!0},U8e=()=>({getAppConfig:t=>localStorage.getItem(t),setAppConfig:(t,r)=>{localStorage.setItem(t,r)},deleteAppConfig:t=>{localStorage.removeItem(t)}}),cM=()=>{const{getAppConfig:t,setAppConfig:r,deleteAppConfig:e}=U8e();return{testConnection:async l=>{if(!l.host||!l.port)return[{status:jo.FAILED,message:"No connection provided"}];const{data:h}=await Tu.post("api/remote/test",l);return h},syncRemoteFolder:async(l,h,y)=>{if(!l||!l.host||!l.port||!l.profilerPath)throw new Error("No connection provided");if(!h&&!y)throw new Error("No remote folder provided");return Tu.post("api/remote/sync",{connection:l,folder:h,profile:y})},listReportFolders:async l=>{if(!l||!l.host||!l.port)throw new Error("No connection provided");return(await Tu.post("api/remote/profiler",l)).data},listPerformanceFolders:async l=>{if(!l||!l.host||!l.port)throw new Error("No connection provided");return(await Tu.post("api/remote/performance",{connection:l})).data},mountRemoteFolder:async(l,h,y)=>Tu.post("api/remote/use",{connection:l,folder:h,profile:y}),fetchSqlitePath:async l=>{const{data:h}=await Tu.post("api/remote/sqlite/detect-path",l);return h},persistentState:{get savedConnectionList(){return JSON.parse(t("remoteConnections")??"[]")},set savedConnectionList(l){r("remoteConnections",JSON.stringify(l))},get selectedConnection(){return JSON.parse(t("selectedConnection")??"null")??this.savedConnectionList[0]},set selectedConnection(l){r("selectedConnection",JSON.stringify(l??null))},getSavedReportFolders:l=>JSON.parse(t(`${l==null?void 0:l.name} - reportFolders`)??"[]").map(h=>{const{reportPath:y,...b}=h;return h.profilerPath?{...b,profilerPath:y||b.profilerPath}:b}),setSavedReportFolders:(l,h)=>{r(`${l==null?void 0:l.name} - reportFolders`,JSON.stringify(h))},deleteSavedReportFolders:l=>{e(`${l==null?void 0:l.name} - reportFolders`)},getSavedPerformanceFolders:l=>JSON.parse(t(`${l==null?void 0:l.name} - performanceFolders`)??"[]"),setSavedPerformanceFolders:(l,h)=>{r(`${l==null?void 0:l.name} - performanceFolders`,JSON.stringify(h))},deleteSavedPerformanceFolders:l=>{e(`${l==null?void 0:l.name} - performanceFolders`)},updateSavedRemoteFoldersConnection(l,h){const y=this.getSavedReportFolders(l),b=this.getSavedPerformanceFolders(l);this.deleteSavedReportFolders(l),this.deleteSavedPerformanceFolders(l),this.setSavedReportFolders(h,y),this.setSavedPerformanceFolders(h,b)}},readRemoteFile:async l=>{try{return(await Tu.post("api/remote/read",l)).data}catch(h){return _c.isAxiosError(h)?h.message:h}}}},H8e={[jo.IDLE]:ki.DOT,[jo.PROGRESS]:ki.DOT,[jo.FAILED]:ki.CROSS,[jo.OK]:ki.TICK},j8e={[jo.IDLE]:uo.NONE,[jo.PROGRESS]:uo.WARNING,[jo.FAILED]:uo.DANGER,[jo.OK]:uo.SUCCESS};function VS({status:t,message:r}){return Ge.jsxs("div",{className:`verify-connection-item status-${jo[t].toLowerCase()}`,children:[Ge.jsx(tl,{className:"connection-status-icon",icon:H8e[t],size:20,intent:j8e[t]}),Ge.jsx("span",{className:"connection-status-text",children:r})]})}const Lge=({open:t,onClose:r,onAddConnection:e,title:n="Add new remote connection",buttonLabel:a="Add connection",remoteConnection:u})=>{var A;const o=u??{name:"",host:"",port:22,profilerPath:"",username:""},f=[{status:jo.IDLE,message:"Test connection"},{status:jo.IDLE,message:"Test memory report folder path"}],[i,s]=St.useState(o),[d,l]=St.useState(f),{testConnection:h,fetchSqlitePath:y}=cM(),[b,C]=St.useState(!1),[m,c]=St.useState(!1),v=d.every(T=>T.status===jo.OK),g=async()=>{c(!0);const T=await y(i);T.status===jo.OK&&s({...i,sqliteBinaryPath:T.message}),T.status===jo.FAILED&&s({...i,sqliteBinaryPath:"Path Not Found"}),c(!1)},p=async()=>{C(!0);const T={status:jo.PROGRESS,message:"Testing connection"},_={status:jo.PROGRESS,message:"Testing memory report folder path"},E={status:jo.PROGRESS,message:"Testing performance report folder path"};l([T,_,E]);try{const x=await h(i);l(x)}catch{l([{status:jo.FAILED,message:"Connection failed"},{status:jo.FAILED,message:"Memory report folder path failed"}])}finally{C(!1)}},I=()=>{s(o),l(f),r()};return Ge.jsxs(Hde,{className:"remote-connection-dialog",title:n,icon:"info-sign",canOutsideClickClose:!1,isOpen:t,onClose:I,children:[Ge.jsxs(JG,{children:[Ge.jsx(Df,{label:"Name",subLabel:"Connection name",children:Ge.jsx(_h,{className:"bp5-light",value:i.name,onChange:T=>s({...i,name:T.target.value})},"name")}),Ge.jsx(Df,{label:"SSH Host",subLabel:"SSH host name. E.g.: localhost",children:Ge.jsx(_h,{value:i.host,onChange:T=>s({...i,host:T.target.value})},"host")}),Ge.jsx(Df,{label:"Username",subLabel:"Username to connect with",children:Ge.jsx(_h,{value:i.username??"",onChange:T=>{s({...i,username:T.target.value})}},"username")}),Ge.jsx(Df,{label:"SSH Port",subLabel:"Port to use for the SSH connection. E.g.: port 22",children:Ge.jsx(_h,{value:((A=i.port)==null?void 0:A.toString())??"",onChange:T=>{const _=Number.parseInt(T.target.value,10);T.target.value===""?s({...i,port:void 0}):_>0&&_<99999&&s({...i,port:_})}},"port")}),Ge.jsx(Df,{label:"Memory report folder path",subLabel:'Path to a remote folder containing memory reports e.g. "$HOME/work/profiler-reports/"',children:Ge.jsx(_h,{value:i.profilerPath,onChange:T=>s({...i,profilerPath:T.target.value})},"path")}),Ge.jsx(Df,{label:"Performance report folder path (optional)",subLabel:'Path to a remote folder containing performance reports e.g. "$HOME/perf/perf-reports/"',children:Ge.jsx(_h,{value:i.performancePath,onChange:T=>s({...i,performancePath:T.target.value})},"path")}),i.useRemoteQuerying&&Ge.jsxs("fieldset",{className:"remote-querying-fieldset",children:[Ge.jsx("legend",{children:"Remote Querying Configuration"}),Ge.jsx(Df,{label:"Remote SQLite Binary Location",subLabel:"SQLite Binary Location",children:Ge.jsx(_h,{value:i.sqliteBinaryPath,onChange:T=>s({...i,sqliteBinaryPath:T.target.value})},"sqliteBinaryPath")}),Ge.jsx(ny,{className:"remote-sql-test-buttons",children:Ge.jsx(Na,{text:"Detect Path",disabled:m,loading:m,onClick:g})})]}),Ge.jsxs("fieldset",{children:[Ge.jsx("legend",{children:"Test Connection"}),d.map((T,_)=>Ge.jsx(VS,{status:T.status,message:T.message},`${T.message}-${_}`)),Ge.jsx("br",{}),Ge.jsx(Na,{text:"Test Connection",disabled:b||m,loading:b,onClick:p})]})]}),Ge.jsx(ove,{minimal:!0,actions:Ge.jsx(Na,{text:a,disabled:!v,onClick:()=>{v&&(e(i),I())}})})]})},V8e=({disabled:t,onAddConnection:r})=>{const[e,n]=St.useState(!1);return Ge.jsxs("div",{className:"buttons-container",children:[Ge.jsx(Na,{icon:ki.PLUS,text:"Add new connection",disabled:t,onClick:()=>n(!0)}),Ge.jsx(Lge,{open:e,onAddConnection:a=>{r(a),n(!1)},onClose:()=>n(!1)})]})},pA=t=>`0x${(t>>>0).toString(16).toUpperCase()}`,Sh=(t,r)=>new Intl.NumberFormat("en-US",{maximumFractionDigits:r}).format(t),G8e=(t,r=1e3)=>t<r?"":`( ${(t/1e6).toFixed(3)}s )`,yW=(t,r)=>t===null?"NULL":t.toString().padStart(r==null?void 0:r.toString().length,"0"),OO=(t,r)=>{if(t===r)return!0;if(typeof t!=typeof r||t===null||r===null)return!1;if(typeof t!="object")return Object.is(t,r);if(Array.isArray(t)&&Array.isArray(r))return t.length!==r.length?!1:t.every((o,f)=>OO(o,r[f]));if(Array.isArray(t)||Array.isArray(r))return!1;const e=t,n=r,a=Object.keys(e),u=Object.keys(n);return a.length!==u.length?!1:a.every(o=>o in n?OO(e[o],n[o]):!1)},iy=t=>{const r=t.match(/Shape\((\[.*\])\)/);return r?r[1]:t},fI=t=>t.replace(/^DataType\./,""),EJ=t=>{const r=/\(x=(\d+),y=(\d+)\)/g,e=[...t.matchAll(r)];if(e.length!==2)return 0;const[n,a]=e[0].slice(1).map(Number),[u,o]=e[1].slice(1).map(Number);return(u-n+1)*(o-a+1)},W8e=({connectionList:t,connection:r,disabled:e,loading:n,offline:a,onSelectConnection:u,onEditConnection:o,onRemoveConnection:f,onSyncRemoteFolderList:i})=>{const[s,d]=St.useState(!1),l=r??t[0];return Ge.jsxs("div",{className:"buttons-container",children:[Ge.jsx(mW,{className:"remote-connection-select",items:t,itemRenderer:(h,y)=>Y8e(h,y,l),disabled:e,filterable:!0,itemPredicate:Z8e,noResults:Ge.jsx(gA,{disabled:!0,text:"No results",roleStructure:"listoption"}),onItemSelect:u,children:Ge.jsx(Na,{icon:a?ki.BAN_CIRCLE:ki.CLOUD,endIcon:ki.CARET_DOWN,disabled:e,text:kO(l)})}),Ge.jsx(Es,{content:"Edit selected connection",children:Ge.jsx(Nx,{icon:ki.EDIT,disabled:e||!l,onClick:()=>d(!0)})}),Ge.jsx(Es,{content:"Remove selected connection",children:Ge.jsx(Nx,{icon:ki.TRASH,disabled:e||!l,onClick:()=>f(l)})}),Ge.jsx(Lge,{open:s,onAddConnection:h=>{d(!1),o(h,r)},onClose:()=>{d(!1)},title:"Edit remote connection",buttonLabel:"Save connection",remoteConnection:l},`${l==null?void 0:l.name}${l==null?void 0:l.host}${l==null?void 0:l.port}${l==null?void 0:l.profilerPath}`),Ge.jsx(Na,{icon:ki.LOCATE,disabled:e||!l,loading:n,text:"Fetch remote folders list",onClick:()=>i(l)})]})},kO=t=>{var r;return t?`${t.name} - ssh://${t.host}:${t.port}/${(r=t==null?void 0:t.profilerPath)==null?void 0:r.replace(/^\//gi,"")}`:"(No connection)"},Z8e=(t,r)=>kO(r).toLowerCase().includes(t.toLowerCase()),Y8e=(t,{handleClick:r,modifiers:e},n)=>e.matchesPredicate?Ge.jsx(gA,{active:OO(t,n),disabled:e.disabled,onClick:r,text:kO(t)},kO(t)):null,X8e=new Intl.DateTimeFormat("en-US",{dateStyle:"long",timeStyle:"short"}),DO=(t,r,e)=>{if(!t||!e)return"n/a";const a={profiler:e.profilerPath||e.reportPath,performance:e.performancePath}[r];return t.remotePath.toLowerCase().replace(a.toLowerCase(),"")},K8e=(t,r)=>(e,n)=>DO(n,t,r).toLowerCase().includes(e.toLowerCase()),Q8e=(t,r,e,n)=>(a,{handleClick:u,modifiers:o})=>{var C;const{persistentState:f}=cM(),i=(C=f.selectedConnection)==null?void 0:C.useRemoteQuerying;if(!o.matchesPredicate)return null;const{lastSynced:s,lastModified:d,testName:l}=a,h=s?X8e.format(new Date(s)):"Never";let y=Ge.jsx(Es,{content:`Fetching folder status, last sync: ${h}`,children:Ge.jsx(FG,{size:16})});t||(jS(a)?y=Ge.jsx(Es,{content:`Folder is stale, last sync: ${h}`,children:Ge.jsx(tl,{icon:ki.HISTORY,color:"goldenrod"})}):y=Ge.jsx(Es,{content:`Folder is up to date, last sync: ${h}`,children:Ge.jsx(tl,{icon:ki.UPDATED,color:"green"})}));const b=()=>!i&&y;return Ge.jsx(gA,{className:"remote-folder-item",active:(e==null?void 0:e.testName)===l,disabled:o.disabled,onClick:u,text:DO(a,r,n),textClassName:"folder-path",icon:ki.FOLDER_CLOSE,labelElement:b(),labelClassName:"remote-folder-status-icon"},`${DO(a,r,n)}${s??d}`)},MJ=({remoteFolder:t,remoteFolderList:r=[],loading:e=!1,updatingFolderList:n=!1,onSelectFolder:a,children:u,fallbackLabel:o="(No selection)",icon:f=ki.FOLDER_OPEN,type:i})=>{const{persistentState:s}=cM(),d=s.selectedConnection;return Ge.jsxs("div",{className:"buttons-container",children:[Ge.jsx(mW,{className:"remote-folder-select",items:r??[],itemRenderer:Q8e(n,i,t,d),filterable:!0,itemPredicate:K8e(i,d),noResults:Ge.jsx(gA,{disabled:!0,text:"No results",roleStructure:"listoption"}),disabled:e||(r==null?void 0:r.length)===0,onItemSelect:a,children:Ge.jsx(Na,{icon:f,endIcon:(r==null?void 0:r.length)>0?ki.CARET_DOWN:void 0,disabled:e||(r==null?void 0:r.length)===0,text:t?DO(t,i,d):o})}),u]})},J8e=()=>{var P,z;const t=cM(),r=gG(),e=qm(aW),n=qm(sW),[a,u]=Yl(l0),[o,f]=Yl(Lh),[i,s]=St.useState(!1),[d,l]=St.useState(!1),[h,y]=St.useState(t.persistentState.getSavedReportFolders(t.persistentState.selectedConnection)),[b,C]=St.useState(!1),[m,c]=St.useState(a?h.find(M=>M.testName.includes(a)):h[0]),[v,g]=St.useState(t.persistentState.getSavedPerformanceFolders(t.persistentState.selectedConnection)),[p,I]=St.useState(!1),[A,T]=St.useState(o?v.find(M=>M.testName.includes(o)):v[0]),_=M=>{t.persistentState.selectedConnection=M,y(t.persistentState.getSavedReportFolders(M)),g(t.persistentState.getSavedPerformanceFolders(M)),c(t.persistentState.getSavedReportFolders(M)[0]),T(t.persistentState.getSavedPerformanceFolders(M)[0])},E=(M,R)=>{if(!M)return[];const D=t.persistentState.getSavedReportFolders(M),O=(R??[]).map(H=>({...D==null?void 0:D.find(W=>W.remotePath===H.remotePath),...H}));return t.persistentState.setSavedReportFolders(M,O),y(O),O},x=(M,R)=>{if(!M)return[];const D=t.persistentState.getSavedPerformanceFolders(M),O=(R??[]).map(H=>({...D==null?void 0:D.find(W=>W.remotePath===H.remotePath),...H}));return t.persistentState.setSavedPerformanceFolders(M,O),g(O),O},S=M=>t.persistentState.savedConnectionList.findIndex(R=>{const D=R.name===(M==null?void 0:M.name),O=R.host===(M==null?void 0:M.host),H=R.port===(M==null?void 0:M.port);return D&&O&&H}),w=(P=t.persistentState.selectedConnection)==null?void 0:P.useRemoteQuerying,L=b||p,k=d||L,F=M=>{r.clear(),e("remote"),n(MO),u(M),N1("Active memory report",M)},N=M=>{r.clear(),e("remote"),n(MO),f(M),N1("Active performance report",M)};return Ge.jsxs(Ge.Fragment,{children:[Ge.jsx(Df,{className:"form-group",label:Ge.jsx("h3",{className:"label",children:"Add remote sync server"}),subLabel:"Add new server connection details",children:Ge.jsx(V8e,{disabled:k,onAddConnection:M=>{t.persistentState.savedConnectionList=[...t.persistentState.savedConnectionList,M],_(M)}})}),Ge.jsx(Df,{className:"form-group",label:Ge.jsx("h3",{className:"label",children:"Use remote sync server"}),subLabel:"Select remote server that will be used for syncing folders",children:Ge.jsx(W8e,{connection:t.persistentState.selectedConnection,connectionList:t.persistentState.savedConnectionList,disabled:k,loading:d,offline:i,onEditConnection:(M,R)=>{const D=[...t.persistentState.savedConnectionList];D[S(R)]=M,t.persistentState.savedConnectionList=D,t.persistentState.updateSavedRemoteFoldersConnection(R,M),_(M)},onRemoveConnection:M=>{const R=[...t.persistentState.savedConnectionList];R.splice(S(M),1),t.persistentState.savedConnectionList=R,t.persistentState.deleteSavedReportFolders(M),t.persistentState.deleteSavedPerformanceFolders(M),_(R[0]),c(void 0),T(void 0)},onSelectConnection:async M=>{try{l(!0),_(M);const R=await t.listReportFolders(M),D=M.performancePath?await t.listPerformanceFolders(M):[],O=E(M,R),H=x(M,D);s(!1),c(O[0]),T(H[0])}catch{s(!0)}finally{l(!1)}},onSyncRemoteFolderList:async()=>{try{if(l(!0),t.persistentState.selectedConnection){const M=await t.listReportFolders(t.persistentState.selectedConnection),R=t.persistentState.selectedConnection.performancePath?await t.listPerformanceFolders(t.persistentState.selectedConnection):[],D=E(t.persistentState.selectedConnection,M),O=x(t.persistentState.selectedConnection,R);c(D[0]),T(O[0])}}catch{alert("Unable to connect to remote server.")}finally{l(!1)}}})}),Ge.jsx(Df,{className:"form-group",label:Ge.jsx("h3",{className:"label",children:"Memory report"}),subLabel:"Select a memory report",children:Ge.jsx(MJ,{remoteFolder:m,remoteFolderList:h,loading:L||d,updatingFolderList:d,onSelectFolder:async M=>{c(M),t.persistentState.selectedConnection&&(w||!w&&!jS(M))&&(await t.mountRemoteFolder(t.persistentState.selectedConnection,M,A)).status===200&&F(M.testName)},type:"profiler",children:!w&&Ge.jsx(Es,{content:"Sync remote folder",children:Ge.jsx(Nx,{icon:ki.REFRESH,loading:b,disabled:k||!m||(h==null?void 0:h.length)===0,onClick:async()=>{try{if(C(!0),t.persistentState.selectedConnection){const{data:M}=await t.syncRemoteFolder(t.persistentState.selectedConnection,m),R=t.persistentState.getSavedReportFolders(t.persistentState.selectedConnection),D=R.findIndex(O=>O.remotePath===(m==null?void 0:m.remotePath));R[D]=M,E(t.persistentState.selectedConnection,R),c(R[D])}}catch{alert("Unable to sync remote folder")}finally{if(C(!1),e("remote"),t.persistentState.selectedConnection&&m&&(!w||w&&jS(m))&&(await t.mountRemoteFolder(t.persistentState.selectedConnection,m,A)).status===200){const R=m.testName,D=A==null?void 0:A.testName;F(R),D&&N(D)}}}})})})}),((z=t.persistentState.selectedConnection)==null?void 0:z.performancePath)&&Ge.jsx(Df,{className:"form-group",label:Ge.jsx("h3",{className:"label",children:"Performance report"}),subLabel:"Select a performance report",children:Ge.jsx(MJ,{remoteFolder:A,remoteFolderList:v,loading:L||d,updatingFolderList:d,onSelectFolder:async M=>{if(T(M),t.persistentState.selectedConnection&&(w||!w&&!jS(M))&&(await t.mountRemoteFolder(t.persistentState.selectedConnection,m,M)).status===200){const D=M.testName;N(D)}},type:"performance",children:!w&&Ge.jsx(Es,{content:"Sync remote folder",children:Ge.jsx(Nx,{icon:ki.REFRESH,loading:p,disabled:k||!A||(v==null?void 0:v.length)===0,onClick:async()=>{try{if(I(!0),t.persistentState.selectedConnection){const{data:M}=await t.syncRemoteFolder(t.persistentState.selectedConnection,void 0,A),R=t.persistentState.getSavedPerformanceFolders(t.persistentState.selectedConnection),D=R.findIndex(O=>O.remotePath===(A==null?void 0:A.remotePath));if(R[D]=M,x(t.persistentState.selectedConnection,R),T(R[D]),t.persistentState.selectedConnection&&A&&(w||!w&&jS(A))&&(await t.mountRemoteFolder(t.persistentState.selectedConnection,m,A)).status===200){const H=A.testName;N(H)}}}catch{alert("Unable to sync remote folder")}finally{I(!1)}}})})})})]})},RJ=["rgb(63,181,143)","rgb(74,217,225)","rgb(247,66,78)","rgb(52,163,188)","rgb(113,168,31)","rgb(95,188,255)","rgb(96,157,255)","rgb(152,218,29)","rgb(187,141,255)","rgb(136,217,141)","rgb(226,177,30)","rgb(255,137,229)","rgb(190,39,130)","rgb(252,194,251)","rgb(209,109,255)","rgb(158,183,229)","rgb(201,151,13)","rgb(250,163,140)","rgb(255,92,111)","rgb(247,147,30)","rgb(227,215,105)","rgb(90,51,137)","rgb(23,244,111)"];function*Oge(){let t=0;for(;;)yield RJ[t],t=(t+1)%RJ.length}const q8e=Oge(),_F=new Map,aw=t=>t===null?"rgb(255,255,255)":(_F.has(t)||_F.set(t,q8e.next().value),_F.get(t)),e9e=Oge(),SF=new Map,lp=t=>{if(t!==void 0)return SF.has(t)||SF.set(t,e9e.next().value),SF.get(t)},t9e=({tensorId:t,address:r,colour:e})=>Ge.jsxs("div",{className:"toast-tensor-message",children:[Ge.jsx("div",{className:"memory-color-block",style:e?{backgroundColor:e}:{}}),Ge.jsxs("strong",{children:[t?`Tensor ${t}`:"Buffer",Ge.jsx("span",{className:"light",children:" at "}),r?pA(r):"NULL",Ge.jsx("span",{className:"light",children:" selected"})]})]}),_D=()=>{const[t,r]=Yl(SOe),e=qm(oM),n=qm(iw),a=()=>{e(null),n(null),r(null),pu.dismiss()};return{activeToast:t,resetToasts:a,setActiveToast:r,createToast:(o,f)=>{t&&pu.dismiss(t);let i=lp(f);o&&!i&&(i=aw(o));const s=pu(Ge.jsx(t9e,{tensorId:f,address:o,colour:i}),{position:"bottom-right",hideProgressBar:!0,closeOnClick:!0,onClick:a,theme:"light"});r(s)}}};function N3(){const{resetToasts:t}=_D();St.useEffect(()=>{t()},[])}function r9e(){return N3(),Ge.jsx("div",{className:"splash-screen home",children:Ge.jsxs("div",{className:"folder-picker-options",children:[Ge.jsxs("fieldset",{children:[Ge.jsx("legend",{children:"Local folder"}),Ge.jsx(tl,{icon:ki.FOLDER_OPEN,size:150}),Ge.jsx("div",{className:"folder-picker-wrapper",children:Ge.jsx($8e,{})})]}),Ge.jsxs("fieldset",{children:[Ge.jsx("legend",{children:"Remote Sync"}),Ge.jsx(tl,{icon:ki.CLOUD,size:150}),Ge.jsx("div",{className:"folder-picker-wrapper",children:Ge.jsx(J8e,{})})]})]})})}function n2(t,r,e){let n=e.initialDeps??[],a;return()=>{var u,o,f,i;let s;e.key&&((u=e.debug)!=null&&u.call(e))&&(s=Date.now());const d=t();if(!(d.length!==n.length||d.some((y,b)=>n[b]!==y)))return a;n=d;let h;if(e.key&&((o=e.debug)!=null&&o.call(e))&&(h=Date.now()),a=r(...d),e.key&&((f=e.debug)!=null&&f.call(e))){const y=Math.round((Date.now()-s)*100)/100,b=Math.round((Date.now()-h)*100)/100,C=b/16,m=(c,v)=>{for(c=String(c);c.length<v;)c=" "+c;return c};console.info(`%c⏱ ${m(b,5)} /${m(y,5)} ms`,`
103
103
  font-size: .6rem;
@@ -5244,4 +5244,4 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
5244
5244
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var u=!0,o=!1,f;return{s:function(){e=e.call(t)},n:function(){var s=e.next();return u=s.done,s},e:function(s){o=!0,f=s},f:function(){try{!u&&e.return!=null&&e.return()}finally{if(o)throw f}}}}function ytr(t,r){var e;if(t){if(typeof t=="string")return zue(t,r);var n=Vd(e=Object.prototype.toString.call(t)).call(e,8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return Tw(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return zue(t,r)}}function zue(t,r){(r==null||r>t.length)&&(r=t.length);for(var e=0,n=new Array(r);e<r;e++)n[e]=t[e];return n}function Atr(t,r){var e=new Hb;return ku(t).call(t,function(n){var a;ku(a=n.edges).call(a,function(u){u.connected&&e.add(u)})}),ku(e).call(e,function(n){var a=n.from.id,u=n.to.id;r[a]==null&&(r[a]=0),(r[u]==null||r[a]>=r[u])&&(r[u]=r[a]+1)}),r}function Ctr(t){return hTe(function(r){var e,n;return fTe(e=ep(n=r.edges).call(n,function(a){return t.has(a.toId)})).call(e,function(a){return a.to===r})},function(r,e){return e>r},"from",t)}function Itr(t){return hTe(function(r){var e,n;return fTe(e=ep(n=r.edges).call(n,function(a){return t.has(a.toId)})).call(e,function(a){return a.from===r})},function(r,e){return e<r},"to",t)}function hTe(t,r,e,n){var a,u=wx(null),o=lTe(a=Fy(U2e(n).call(n))).call(a,function(y,b){return y+1+b.edges.length},0),f=e+"Id",i=e==="to"?1:-1,s=mtr(n),d;try{var l=function(){var b=nf(d.value,2),C=b[0],m=b[1];if(!n.has(C)||!t(m))return 0;u[C]=0;for(var c=[m],v=0,g,p=function(){var T,_;if(!n.has(C))return 0;var E=u[g.id]+i;if(ku(T=ep(_=g.edges).call(_,function(x){return x.connected&&x.to!==x.from&&x[e]!==g&&n.has(x.toId)&&n.has(x.fromId)})).call(T,function(x){var S=x[f],w=u[S];(w==null||r(E,w))&&(u[S]=E,c.push(x[e]))}),v>o)return{v:{v:Atr(n,u)}};++v},I;g=c.pop();)if(I=p(),I!==0&&I)return I.v},h;for(s.s();!(d=s.n()).done;)if(h=l(),h!==0&&h)return h.v}catch(y){s.e(y)}finally{s.f()}return u}var btr=function(){function t(){Qa(this,t),this.childrenReference={},this.parentReference={},this.trees={},this.distributionOrdering={},this.levels={},this.distributionIndex={},this.isTree=!1,this.treeIndex=-1}return Ja(t,[{key:"addRelation",value:function(e,n){this.childrenReference[e]===void 0&&(this.childrenReference[e]=[]),this.childrenReference[e].push(n),this.parentReference[n]===void 0&&(this.parentReference[n]=[]),this.parentReference[n].push(e)}},{key:"checkIfTree",value:function(){for(var e in this.parentReference)if(this.parentReference[e].length>1){this.isTree=!1;return}this.isTree=!0}},{key:"numTrees",value:function(){return this.treeIndex+1}},{key:"setTreeIndex",value:function(e,n){n!==void 0&&this.trees[e.id]===void 0&&(this.trees[e.id]=n,this.treeIndex=Math.max(n,this.treeIndex))}},{key:"ensureLevel",value:function(e){this.levels[e]===void 0&&(this.levels[e]=0)}},{key:"getMaxLevel",value:function(e){var n=this,a={},u=function o(f){if(a[f]!==void 0)return a[f];var i=n.levels[f];if(n.childrenReference[f]){var s=n.childrenReference[f];if(s.length>0)for(var d=0;d<s.length;d++)i=Math.max(i,o(s[d]))}return a[f]=i,i};return u(e)}},{key:"levelDownstream",value:function(e,n){this.levels[n.id]===void 0&&(this.levels[e.id]===void 0&&(this.levels[e.id]=0),this.levels[n.id]=this.levels[e.id]+1)}},{key:"setMinLevelToZero",value:function(e){var n=1e9;for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&this.levels[a]!==void 0&&(n=Math.min(this.levels[a],n));for(var u in e)Object.prototype.hasOwnProperty.call(e,u)&&this.levels[u]!==void 0&&(this.levels[u]-=n)}},{key:"getTreeSize",value:function(e,n){var a=1e9,u=-1e9,o=1e9,f=-1e9;for(var i in this.trees)if(Object.prototype.hasOwnProperty.call(this.trees,i)&&this.trees[i]===n){var s=e[i];a=Math.min(s.x,a),u=Math.max(s.x,u),o=Math.min(s.y,o),f=Math.max(s.y,f)}return{min_x:a,max_x:u,min_y:o,max_y:f}}},{key:"hasSameParent",value:function(e,n){var a=this.parentReference[e.id],u=this.parentReference[n.id];if(a===void 0||u===void 0)return!1;for(var o=0;o<a.length;o++)for(var f=0;f<u.length;f++)if(a[o]==u[f])return!0;return!1}},{key:"inSameSubNetwork",value:function(e,n){return this.trees[e.id]===this.trees[n.id]}},{key:"getLevels",value:function(){return tf(this.distributionOrdering)}},{key:"addToOrdering",value:function(e,n){this.distributionOrdering[n]===void 0&&(this.distributionOrdering[n]=[]);var a=!1,u=this.distributionOrdering[n];for(var o in u)if(u[o]===e){a=!0;break}a||(this.distributionOrdering[n].push(e),this.distributionIndex[e.id]=this.distributionOrdering[n].length-1)}}]),t}(),xtr=function(){function t(r){Qa(this,t),this.body=r,this._resetRNG(Math.random()+":"+wk()),this.setPhysics=!1,this.options={},this.optionsBackup={physics:{}},this.defaultOptions={randomSeed:void 0,improvedLayout:!0,clusterThreshold:150,hierarchical:{enabled:!1,levelSeparation:150,nodeSpacing:100,treeSpacing:200,blockShifting:!0,edgeMinimization:!0,parentCentralization:!0,direction:"UD",sortMethod:"hubsize"}},oh(this.options,this.defaultOptions),this.bindEventListeners()}return Ja(t,[{key:"bindEventListeners",value:function(){var e=this;this.body.emitter.on("_dataChanged",function(){e.setupHierarchicalLayout()}),this.body.emitter.on("_dataLoaded",function(){e.layoutNetwork()}),this.body.emitter.on("_resetHierarchicalLayout",function(){e.setupHierarchicalLayout()}),this.body.emitter.on("_adjustEdgesForHierarchicalLayout",function(){if(e.options.hierarchical.enabled===!0){var n=e.direction.curveType();e.body.emitter.emit("_forceDisableDynamicCurves",n,!1)}})}},{key:"setOptions",value:function(e,n){if(e!==void 0){var a=this.options.hierarchical,u=a.enabled;if(x_(["randomSeed","improvedLayout","clusterThreshold"],this.options,e),jm(this.options,e,"hierarchical"),e.randomSeed!==void 0&&this._resetRNG(e.randomSeed),a.enabled===!0)return u===!0&&this.body.emitter.emit("refresh",!0),a.direction==="RL"||a.direction==="DU"?a.levelSeparation>0&&(a.levelSeparation*=-1):a.levelSeparation<0&&(a.levelSeparation*=-1),this.setDirectionStrategy(),this.body.emitter.emit("_resetHierarchicalLayout"),this.adaptAllOptionsForHierarchicalLayout(n);if(u===!0)return this.body.emitter.emit("refresh"),Yu(n,this.optionsBackup)}return n}},{key:"_resetRNG",value:function(e){this.initialRandomSeed=e,this._rng=a9(this.initialRandomSeed)}},{key:"adaptAllOptionsForHierarchicalLayout",value:function(e){if(this.options.hierarchical.enabled===!0){var n=this.optionsBackup.physics;e.physics===void 0||e.physics===!0?(e.physics={enabled:n.enabled===void 0?!0:n.enabled,solver:"hierarchicalRepulsion"},n.enabled=n.enabled===void 0?!0:n.enabled,n.solver=n.solver||"barnesHut"):_u(e.physics)==="object"?(n.enabled=e.physics.enabled===void 0?!0:e.physics.enabled,n.solver=e.physics.solver||"barnesHut",e.physics.solver="hierarchicalRepulsion"):e.physics!==!1&&(n.solver="barnesHut",e.physics={solver:"hierarchicalRepulsion"});var a=this.direction.curveType();if(e.edges===void 0)this.optionsBackup.edges={smooth:{enabled:!0,type:"dynamic"}},e.edges={smooth:!1};else if(e.edges.smooth===void 0)this.optionsBackup.edges={smooth:{enabled:!0,type:"dynamic"}},e.edges.smooth=!1;else if(typeof e.edges.smooth=="boolean")this.optionsBackup.edges={smooth:e.edges.smooth},e.edges.smooth={enabled:e.edges.smooth,type:a};else{var u=e.edges.smooth;u.type!==void 0&&u.type!=="dynamic"&&(a=u.type),this.optionsBackup.edges={smooth:{enabled:u.enabled===void 0?!0:u.enabled,type:u.type===void 0?"dynamic":u.type,roundness:u.roundness===void 0?.5:u.roundness,forceDirection:u.forceDirection===void 0?!1:u.forceDirection}},e.edges.smooth={enabled:u.enabled===void 0?!0:u.enabled,type:a,roundness:u.roundness===void 0?.5:u.roundness,forceDirection:u.forceDirection===void 0?!1:u.forceDirection}}this.body.emitter.emit("_forceDisableDynamicCurves",a)}return e}},{key:"positionInitially",value:function(e){if(this.options.hierarchical.enabled!==!0){this._resetRNG(this.initialRandomSeed);for(var n=e.length+50,a=0;a<e.length;a++){var u=e[a],o=2*Math.PI*this._rng();u.x===void 0&&(u.x=n*Math.cos(o)),u.y===void 0&&(u.y=n*Math.sin(o))}}}},{key:"layoutNetwork",value:function(){if(this.options.hierarchical.enabled!==!0&&this.options.improvedLayout===!0){for(var e=this.body.nodeIndices,n=0,a=0;a<e.length;a++){var u=this.body.nodes[e[a]];u.predefinedPosition===!0&&(n+=1)}if(n<.5*e.length){var o=10,f=0,i=this.options.clusterThreshold,s={clusterNodeProperties:{shape:"ellipse",label:"",group:"",font:{multi:!1}},clusterEdgeProperties:{label:"",font:{multi:!1},smooth:{enabled:!1}}};if(e.length>i){for(var d=e.length;e.length>i&&f<=o;){f+=1;var l=e.length;f%3===0?this.body.modules.clustering.clusterBridges(s):this.body.modules.clustering.clusterOutliers(s);var h=e.length;if(l==h&&f%3!==0){this._declusterAll(),this.body.emitter.emit("_layoutFailed"),console.info("This network could not be positioned by this version of the improved layout algorithm. Please disable improvedLayout for better performance.");return}}this.body.modules.kamadaKawai.setOptions({springLength:Math.max(150,2*d)})}f>o&&console.info("The clustering didn't succeed within the amount of interations allowed, progressing with partial result."),this.body.modules.kamadaKawai.solve(e,this.body.edgeIndices,!0),this._shiftToCenter();for(var y=70,b=0;b<e.length;b++){var C=this.body.nodes[e[b]];C.predefinedPosition===!1&&(C.x+=(.5-this._rng())*y,C.y+=(.5-this._rng())*y)}this._declusterAll(),this.body.emitter.emit("_repositionBezierNodes")}}}},{key:"_shiftToCenter",value:function(){for(var e=lg.getRangeCore(this.body.nodes,this.body.nodeIndices),n=lg.findCenter(e),a=0;a<this.body.nodeIndices.length;a++){var u=this.body.nodes[this.body.nodeIndices[a]];u.x-=n.x,u.y-=n.y}}},{key:"_declusterAll",value:function(){for(var e=!0;e===!0;){e=!1;for(var n=0;n<this.body.nodeIndices.length;n++)this.body.nodes[this.body.nodeIndices[n]].isCluster===!0&&(e=!0,this.body.modules.clustering.openCluster(this.body.nodeIndices[n],{},!1));e===!0&&this.body.emitter.emit("_dataChanged")}}},{key:"getSeed",value:function(){return this.initialRandomSeed}},{key:"setupHierarchicalLayout",value:function(){if(this.options.hierarchical.enabled===!0&&this.body.nodeIndices.length>0){var e,n,a=!1,u=!1;this.lastNodeOnLevel={},this.hierarchical=new btr;for(n in this.body.nodes)Object.prototype.hasOwnProperty.call(this.body.nodes,n)&&(e=this.body.nodes[n],e.options.level!==void 0?(a=!0,this.hierarchical.levels[n]=e.options.level):u=!0);if(u===!0&&a===!0)throw new Error("To use the hierarchical layout, nodes require either no predefined levels or levels have to be defined for all nodes.");if(u===!0){var o=this.options.hierarchical.sortMethod;o==="hubsize"?this._determineLevelsByHubsize():o==="directed"?this._determineLevelsDirected():o==="custom"&&this._determineLevelsCustomCallback()}for(var f in this.body.nodes)Object.prototype.hasOwnProperty.call(this.body.nodes,f)&&this.hierarchical.ensureLevel(f);var i=this._getDistribution();this._generateMap(),this._placeNodesByHierarchy(i),this._condenseHierarchy(),this._shiftToCenter()}}},{key:"_condenseHierarchy",value:function(){var e=this,n=!1,a={},u=function(){for(var g=f(),p=0,I=0;I<g.length-1;I++){var A=g[I].max-g[I+1].min;p+=A+e.options.hierarchical.treeSpacing,o(I+1,p)}},o=function(g,p){var I=e.hierarchical.trees;for(var A in I)Object.prototype.hasOwnProperty.call(I,A)&&I[A]===g&&e.direction.shift(A,p)},f=function(){for(var g=[],p=0;p<e.hierarchical.numTrees();p++)g.push(e.direction.getTreeSize(p));return g},i=function v(g,p){if(!p[g.id]&&(p[g.id]=!0,e.hierarchical.childrenReference[g.id])){var I=e.hierarchical.childrenReference[g.id];if(I.length>0)for(var A=0;A<I.length;A++)v(e.body.nodes[I[A]],p)}},s=function(g){var p=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1e9,I=1e9,A=1e9,T=1e9,_=-1e9;for(var E in g)if(Object.prototype.hasOwnProperty.call(g,E)){var x=e.body.nodes[E],S=e.hierarchical.levels[x.id],w=e.direction.getPosition(x),L=e._getSpaceAroundNode(x,g),k=nf(L,2),F=k[0],N=k[1];I=Math.min(F,I),A=Math.min(N,A),S<=p&&(T=Math.min(w,T),_=Math.max(w,_))}return[T,_,I,A]},d=function(g,p){var I=e.hierarchical.getMaxLevel(g.id),A=e.hierarchical.getMaxLevel(p.id);return Math.min(I,A)},l=function(g,p,I){for(var A=e.hierarchical,T=0;T<p.length;T++){var _=p[T],E=A.distributionOrdering[_];if(E.length>1)for(var x=0;x<E.length-1;x++){var S=E[x],w=E[x+1];A.hasSameParent(S,w)&&A.inSameSubNetwork(S,w)&&g(S,w,I)}}},h=function(g,p){var I=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,A=e.direction.getPosition(g),T=e.direction.getPosition(p),_=Math.abs(T-A),E=e.options.hierarchical.nodeSpacing;if(_>E){var x={},S={};i(g,x),i(p,S);var w=d(g,p),L=s(x,w),k=s(S,w),F=L[1],N=k[0],P=k[2],z=Math.abs(F-N);if(z>E){var M=F-N+E;M<-P+E&&(M=-P+E),M<0&&(e._shiftBlock(p.id,M),n=!0,I===!0&&e._centerParent(p))}}},y=function(g,p){for(var I=p.id,A=p.edges,T=e.hierarchical.levels[p.id],_=e.options.hierarchical.levelSeparation*e.options.hierarchical.levelSeparation,E={},x=[],S=0;S<A.length;S++){var w=A[S];if(w.toId!=w.fromId){var L=w.toId==I?w.from:w.to;E[A[S].id]=L,e.hierarchical.levels[L.id]<T&&x.push(w)}}var k=function(D,O){for(var H=0,G=0;G<O.length;G++)if(E[O[G].id]!==void 0){var W=e.direction.getPosition(E[O[G].id])-D;H+=W/Math.sqrt(W*W+_)}return H},F=function(D,O){for(var H=0,G=0;G<O.length;G++)if(E[O[G].id]!==void 0){var W=e.direction.getPosition(E[O[G].id])-D;H-=_*Math.pow(W*W+_,-1.5)}return H},N=function(D,O){for(var H=e.direction.getPosition(p),G={},W=0;W<D;W++){var X=k(H,O),Y=F(H,O),Q=40,V=Math.max(-Q,Math.min(Q,Math.round(X/Y)));if(H=H-V,G[H]!==void 0)break;G[H]=W}return H},P=function(D){var O=e.direction.getPosition(p);if(a[p.id]===void 0){var H={};i(p,H),a[p.id]=H}var G=s(a[p.id]),W=G[2],X=G[3],Y=D-O,Q=0;Y>0?Q=Math.min(Y,X-e.options.hierarchical.nodeSpacing):Y<0&&(Q=-Math.min(-Y,W-e.options.hierarchical.nodeSpacing)),Q!=0&&(e._shiftBlock(p.id,Q),n=!0)},z=function(D){var O=e.direction.getPosition(p),H=e._getSpaceAroundNode(p),G=nf(H,2),W=G[0],X=G[1],Y=D-O,Q=O;Y>0?Q=Math.min(O+(X-e.options.hierarchical.nodeSpacing),D):Y<0&&(Q=Math.max(O-(W-e.options.hierarchical.nodeSpacing),D)),Q!==O&&(e.direction.setPosition(p,Q),n=!0)},M=N(g,x);P(M),M=N(g,A),z(M)},b=function(g){var p=e.hierarchical.getLevels();p=xx(p).call(p);for(var I=0;I<g;I++){n=!1;for(var A=0;A<p.length;A++)for(var T=p[A],_=e.hierarchical.distributionOrdering[T],E=0;E<_.length;E++)y(1e3,_[E]);if(n!==!0)break}},C=function(g){var p=e.hierarchical.getLevels();p=xx(p).call(p);for(var I=0;I<g&&(n=!1,l(h,p,!0),n===!0);I++);},m=function(){for(var g in e.body.nodes)Object.prototype.hasOwnProperty.call(e.body.nodes,g)&&e._centerParent(e.body.nodes[g])},c=function(){var g=e.hierarchical.getLevels();g=xx(g).call(g);for(var p=0;p<g.length;p++)for(var I=g[p],A=e.hierarchical.distributionOrdering[I],T=0;T<A.length;T++)e._centerParent(A[T])};this.options.hierarchical.blockShifting===!0&&(C(5),m()),this.options.hierarchical.edgeMinimization===!0&&b(20),this.options.hierarchical.parentCentralization===!0&&c(),u()}},{key:"_getSpaceAroundNode",value:function(e,n){var a=!0;n===void 0&&(a=!1);var u=this.hierarchical.levels[e.id];if(u!==void 0){var o=this.hierarchical.distributionIndex[e.id],f=this.direction.getPosition(e),i=this.hierarchical.distributionOrdering[u],s=1e9,d=1e9;if(o!==0){var l=i[o-1];if(a===!0&&n[l.id]===void 0||a===!1){var h=this.direction.getPosition(l);s=f-h}}if(o!=i.length-1){var y=i[o+1];if(a===!0&&n[y.id]===void 0||a===!1){var b=this.direction.getPosition(y);d=Math.min(d,b-f)}}return[s,d]}else return[0,0]}},{key:"_centerParent",value:function(e){if(this.hierarchical.parentReference[e.id])for(var n=this.hierarchical.parentReference[e.id],a=0;a<n.length;a++){var u=n[a],o=this.body.nodes[u],f=this.hierarchical.childrenReference[u];if(f!==void 0){var i=this._getCenterPosition(f),s=this.direction.getPosition(o),d=this._getSpaceAroundNode(o),l=nf(d,2),h=l[0],y=l[1],b=s-i;(b<0&&Math.abs(b)<y-this.options.hierarchical.nodeSpacing||b>0&&Math.abs(b)<h-this.options.hierarchical.nodeSpacing)&&this.direction.setPosition(o,i)}}}},{key:"_placeNodesByHierarchy",value:function(e){this.positionedNodes={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var a,u=tf(e[n]);u=this._indexArrayToNodes(u),kE(a=this.direction).call(a,u);for(var o=0,f=0;f<u.length;f++){var i=u[f];if(this.positionedNodes[i.id]===void 0){var s=this.options.hierarchical.nodeSpacing,d=s*o;o>0&&(d=this.direction.getPosition(u[f-1])+s),this.direction.setPosition(i,d,n),this._validatePositionAndContinue(i,n,d),o++}}}}},{key:"_placeBranchNodes",value:function(e,n){var a,u=this.hierarchical.childrenReference[e];if(u!==void 0){for(var o=[],f=0;f<u.length;f++)o.push(this.body.nodes[u[f]]);kE(a=this.direction).call(a,o);for(var i=0;i<o.length;i++){var s=o[i],d=this.hierarchical.levels[s.id];if(d>n&&this.positionedNodes[s.id]===void 0){var l=this.options.hierarchical.nodeSpacing,h=void 0;i===0?h=this.direction.getPosition(this.body.nodes[e]):h=this.direction.getPosition(o[i-1])+l,this.direction.setPosition(s,h,d),this._validatePositionAndContinue(s,d,h)}else return}var y=this._getCenterPosition(o);this.direction.setPosition(this.body.nodes[e],y,n)}}},{key:"_validatePositionAndContinue",value:function(e,n,a){if(this.hierarchical.isTree){if(this.lastNodeOnLevel[n]!==void 0){var u=this.direction.getPosition(this.body.nodes[this.lastNodeOnLevel[n]]);if(a-u<this.options.hierarchical.nodeSpacing){var o=u+this.options.hierarchical.nodeSpacing-a,f=this._findCommonParent(this.lastNodeOnLevel[n],e.id);this._shiftBlock(f.withChild,o)}}this.lastNodeOnLevel[n]=e.id,this.positionedNodes[e.id]=!0,this._placeBranchNodes(e.id,n)}}},{key:"_indexArrayToNodes",value:function(e){for(var n=[],a=0;a<e.length;a++)n.push(this.body.nodes[e[a]]);return n}},{key:"_getDistribution",value:function(){var e={},n,a;for(n in this.body.nodes)if(Object.prototype.hasOwnProperty.call(this.body.nodes,n)){a=this.body.nodes[n];var u=this.hierarchical.levels[n]===void 0?0:this.hierarchical.levels[n];this.direction.fix(a,u),e[u]===void 0&&(e[u]={}),e[u][n]=a}return e}},{key:"_getActiveEdges",value:function(e){var n=this,a=[];return fl(e.edges,function(u){var o;Kl(o=n.body.edgeIndices).call(o,u.id)!==-1&&a.push(u)}),a}},{key:"_getHubSizes",value:function(){var e=this,n={},a=this.body.nodeIndices;fl(a,function(o){var f=e.body.nodes[o],i=e._getActiveEdges(f).length;n[i]=!0});var u=[];return fl(n,function(o){u.push(Number(o))}),kE(u).call(u,function(o,f){return f-o}),u}},{key:"_determineLevelsByHubsize",value:function(){for(var e=this,n=function(i,s){e.hierarchical.levelDownstream(i,s)},a=this._getHubSizes(),u=function(){var i=a[o];if(i===0)return 1;fl(e.body.nodeIndices,function(s){var d=e.body.nodes[s];i===e._getActiveEdges(d).length&&e._crawlNetwork(n,s)})},o=0;o<a.length&&!u();++o);}},{key:"_determineLevelsCustomCallback",value:function(){var e=this,n=1e5,a=function(f,i,s){},u=function(f,i,s){var d=e.hierarchical.levels[f.id];d===void 0&&(d=e.hierarchical.levels[f.id]=n);var l=a(lg.cloneOptions(f,"node"),lg.cloneOptions(i,"node"),lg.cloneOptions(s,"edge"));e.hierarchical.levels[i.id]=d+l};this._crawlNetwork(u),this.hierarchical.setMinLevelToZero(this.body.nodes)}},{key:"_determineLevelsDirected",value:function(){var e,n=this,a=lTe(e=this.body.nodeIndices).call(e,function(u,o){return u.set(o,n.body.nodes[o]),u},new R2e);this.options.hierarchical.shakeTowards==="roots"?this.hierarchical.levels=Itr(a):this.hierarchical.levels=Ctr(a),this.hierarchical.setMinLevelToZero(this.body.nodes)}},{key:"_generateMap",value:function(){var e=this,n=function(u,o){e.hierarchical.levels[o.id]>e.hierarchical.levels[u.id]&&e.hierarchical.addRelation(u.id,o.id)};this._crawlNetwork(n),this.hierarchical.checkIfTree()}},{key:"_crawlNetwork",value:function(){var e=this,n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:function(){},a=arguments.length>1?arguments[1]:void 0,u={},o=function h(y,b){if(u[y.id]===void 0){e.hierarchical.setTreeIndex(y,b),u[y.id]=!0;for(var C,m=e._getActiveEdges(y),c=0;c<m.length;c++){var v=m[c];v.connected===!0&&(v.toId==y.id?C=v.from:C=v.to,y.id!=C.id&&(n(y,C,v),h(C,b)))}}};if(a===void 0)for(var f=0,i=0;i<this.body.nodeIndices.length;i++){var s=this.body.nodeIndices[i];if(u[s]===void 0){var d=this.body.nodes[s];o(d,f),f+=1}}else{var l=this.body.nodes[a];if(l===void 0){console.error("Node not found:",a);return}o(l)}}},{key:"_shiftBlock",value:function(e,n){var a=this,u={},o=function f(i){if(!u[i]){u[i]=!0,a.direction.shift(i,n);var s=a.hierarchical.childrenReference[i];if(s!==void 0)for(var d=0;d<s.length;d++)f(s[d])}};o(e)}},{key:"_findCommonParent",value:function(e,n){var a=this,u={},o=function i(s,d){var l=a.hierarchical.parentReference[d];if(l!==void 0)for(var h=0;h<l.length;h++){var y=l[h];s[y]=!0,i(s,y)}},f=function i(s,d){var l=a.hierarchical.parentReference[d];if(l!==void 0)for(var h=0;h<l.length;h++){var y=l[h];if(s[y]!==void 0)return{foundParent:y,withChild:d};var b=i(s,y);if(b.foundParent!==null)return b}return{foundParent:null,withChild:d}};return o(u,e),f(u,n)}},{key:"setDirectionStrategy",value:function(){var e=this.options.hierarchical.direction==="UD"||this.options.hierarchical.direction==="DU";e?this.direction=new ntr(this):this.direction=new itr(this)}},{key:"_getCenterPosition",value:function(e){for(var n=1e9,a=-1e9,u=0;u<e.length;u++){var o=void 0;if(e[u].id!==void 0)o=e[u];else{var f=e[u];o=this.body.nodes[f]}var i=this.direction.getPosition(o);n=Math.min(n,i),a=Math.max(a,i)}return .5*(n+a)}}]),t}();function wtr(t,r){var e=typeof $I<"u"&&_w(t)||t["@@iterator"];if(!e){if(Au(t)||(e=Ttr(t))||r){e&&(t=e);var n=0,a=function(){};return{s:a,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(s){throw s},f:a}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
5245
5245
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var u=!0,o=!1,f;return{s:function(){e=e.call(t)},n:function(){var s=e.next();return u=s.done,s},e:function(s){o=!0,f=s},f:function(){try{!u&&e.return!=null&&e.return()}finally{if(o)throw f}}}}function Ttr(t,r){var e;if(t){if(typeof t=="string")return Bue(t,r);var n=Vd(e=Object.prototype.toString.call(t)).call(e,8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return Tw(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Bue(t,r)}}function Bue(t,r){(r==null||r>t.length)&&(r=t.length);for(var e=0,n=new Array(r);e<r;e++)n[e]=t[e];return n}var _tr=function(){function t(r,e,n,a){var u=this,o,f;Qa(this,t),this.body=r,this.canvas=e,this.selectionHandler=n,this.interactionHandler=a,this.editMode=!1,this.manipulationDiv=void 0,this.editModeDiv=void 0,this.closeDiv=void 0,this._domEventListenerCleanupQueue=[],this.temporaryUIFunctions={},this.temporaryEventFunctions=[],this.touchTime=0,this.temporaryIds={nodes:[],edges:[]},this.guiEnabled=!1,this.inMode=!1,this.selectedControlNode=void 0,this.options={},this.defaultOptions={enabled:!1,initiallyActive:!1,addNode:!0,addEdge:!0,editNode:void 0,editEdge:!0,deleteNode:!0,deleteEdge:!0,controlNodeStyle:{shape:"dot",size:6,color:{background:"#ff0000",border:"#3c3c3c",highlight:{background:"#07f968",border:"#3c3c3c"}},borderWidth:2,borderWidthSelected:2}},oh(this.options,this.defaultOptions),this.body.emitter.on("destroy",function(){u._clean()}),this.body.emitter.on("_dataChanged",Da(o=this._restore).call(o,this)),this.body.emitter.on("_resetData",Da(f=this._restore).call(f,this))}return Ja(t,[{key:"_restore",value:function(){this.inMode!==!1&&(this.options.initiallyActive===!0?this.enableEditMode():this.disableEditMode())}},{key:"setOptions",value:function(e,n,a){n!==void 0&&(n.locale!==void 0?this.options.locale=n.locale:this.options.locale=a.locale,n.locales!==void 0?this.options.locales=n.locales:this.options.locales=a.locales),e!==void 0&&(typeof e=="boolean"?this.options.enabled=e:(this.options.enabled=!0,Yu(this.options,e)),this.options.initiallyActive===!0&&(this.editMode=!0),this._setup())}},{key:"toggleEditMode",value:function(){this.editMode===!0?this.disableEditMode():this.enableEditMode()}},{key:"enableEditMode",value:function(){this.editMode=!0,this._clean(),this.guiEnabled===!0&&(this.manipulationDiv.style.display="block",this.closeDiv.style.display="block",this.editModeDiv.style.display="none",this.showManipulatorToolbar())}},{key:"disableEditMode",value:function(){this.editMode=!1,this._clean(),this.guiEnabled===!0&&(this.manipulationDiv.style.display="none",this.closeDiv.style.display="none",this.editModeDiv.style.display="block",this._createEditButton())}},{key:"showManipulatorToolbar",value:function(){if(this._clean(),this.manipulationDOM={},this.guiEnabled===!0){var e,n;this.editMode=!0,this.manipulationDiv.style.display="block",this.closeDiv.style.display="block";var a=this.selectionHandler.getSelectedNodeCount(),u=this.selectionHandler.getSelectedEdgeCount(),o=a+u,f=this.options.locales[this.options.locale],i=!1;this.options.addNode!==!1&&(this._createAddNodeButton(f),i=!0),this.options.addEdge!==!1&&(i===!0?this._createSeperator(1):i=!0,this._createAddEdgeButton(f)),a===1&&typeof this.options.editNode=="function"?(i===!0?this._createSeperator(2):i=!0,this._createEditNodeButton(f)):u===1&&a===0&&this.options.editEdge!==!1&&(i===!0?this._createSeperator(3):i=!0,this._createEditEdgeButton(f)),o!==0&&(a>0&&this.options.deleteNode!==!1?(i===!0&&this._createSeperator(4),this._createDeleteButton(f)):a===0&&this.options.deleteEdge!==!1&&(i===!0&&this._createSeperator(4),this._createDeleteButton(f))),this._bindElementEvents(this.closeDiv,Da(e=this.toggleEditMode).call(e,this)),this._temporaryBindEvent("select",Da(n=this.showManipulatorToolbar).call(n,this))}this.body.emitter.emit("_redraw")}},{key:"addNodeMode",value:function(){var e;if(this.editMode!==!0&&this.enableEditMode(),this._clean(),this.inMode="addNode",this.guiEnabled===!0){var n,a=this.options.locales[this.options.locale];this.manipulationDOM={},this._createBackButton(a),this._createSeperator(),this._createDescription(a.addDescription||this.options.locales.en.addDescription),this._bindElementEvents(this.closeDiv,Da(n=this.toggleEditMode).call(n,this))}this._temporaryBindEvent("click",Da(e=this._performAddNode).call(e,this))}},{key:"editNode",value:function(){var e=this;this.editMode!==!0&&this.enableEditMode(),this._clean();var n=this.selectionHandler.getSelectedNodes()[0];if(n!==void 0)if(this.inMode="editNode",typeof this.options.editNode=="function")if(n.isCluster!==!0){var a=Yu({},n.options,!1);if(a.x=n.x,a.y=n.y,this.options.editNode.length===2)this.options.editNode(a,function(u){u!=null&&e.inMode==="editNode"&&e.body.data.nodes.getDataSet().update(u),e.showManipulatorToolbar()});else throw new Error("The function for edit does not support two arguments (data, callback)")}else alert(this.options.locales[this.options.locale].editClusterError||this.options.locales.en.editClusterError);else throw new Error("No function has been configured to handle the editing of nodes.");else this.showManipulatorToolbar()}},{key:"addEdgeMode",value:function(){var e,n,a,u,o;if(this.editMode!==!0&&this.enableEditMode(),this._clean(),this.inMode="addEdge",this.guiEnabled===!0){var f,i=this.options.locales[this.options.locale];this.manipulationDOM={},this._createBackButton(i),this._createSeperator(),this._createDescription(i.edgeDescription||this.options.locales.en.edgeDescription),this._bindElementEvents(this.closeDiv,Da(f=this.toggleEditMode).call(f,this))}this._temporaryBindUI("onTouch",Da(e=this._handleConnect).call(e,this)),this._temporaryBindUI("onDragEnd",Da(n=this._finishConnect).call(n,this)),this._temporaryBindUI("onDrag",Da(a=this._dragControlNode).call(a,this)),this._temporaryBindUI("onRelease",Da(u=this._finishConnect).call(u,this)),this._temporaryBindUI("onDragStart",Da(o=this._dragStartEdge).call(o,this)),this._temporaryBindUI("onHold",function(){})}},{key:"editEdgeMode",value:function(){if(this.editMode!==!0&&this.enableEditMode(),this._clean(),this.inMode="editEdge",_u(this.options.editEdge)==="object"&&typeof this.options.editEdge.editWithoutDrag=="function"&&(this.edgeBeingEditedId=this.selectionHandler.getSelectedEdgeIds()[0],this.edgeBeingEditedId!==void 0)){var e=this.body.edges[this.edgeBeingEditedId];this._performEditEdge(e.from.id,e.to.id);return}if(this.guiEnabled===!0){var n,a=this.options.locales[this.options.locale];this.manipulationDOM={},this._createBackButton(a),this._createSeperator(),this._createDescription(a.editEdgeDescription||this.options.locales.en.editEdgeDescription),this._bindElementEvents(this.closeDiv,Da(n=this.toggleEditMode).call(n,this))}if(this.edgeBeingEditedId=this.selectionHandler.getSelectedEdgeIds()[0],this.edgeBeingEditedId!==void 0){var u,o,f,i,s=this.body.edges[this.edgeBeingEditedId],d=this._getNewTargetNode(s.from.x,s.from.y),l=this._getNewTargetNode(s.to.x,s.to.y);this.temporaryIds.nodes.push(d.id),this.temporaryIds.nodes.push(l.id),this.body.nodes[d.id]=d,this.body.nodeIndices.push(d.id),this.body.nodes[l.id]=l,this.body.nodeIndices.push(l.id),this._temporaryBindUI("onTouch",Da(u=this._controlNodeTouch).call(u,this)),this._temporaryBindUI("onTap",function(){}),this._temporaryBindUI("onHold",function(){}),this._temporaryBindUI("onDragStart",Da(o=this._controlNodeDragStart).call(o,this)),this._temporaryBindUI("onDrag",Da(f=this._controlNodeDrag).call(f,this)),this._temporaryBindUI("onDragEnd",Da(i=this._controlNodeDragEnd).call(i,this)),this._temporaryBindUI("onMouseMove",function(){}),this._temporaryBindEvent("beforeDrawing",function(h){var y=s.edgeType.findBorderPositions(h);d.selected===!1&&(d.x=y.from.x,d.y=y.from.y),l.selected===!1&&(l.x=y.to.x,l.y=y.to.y)}),this.body.emitter.emit("_redraw")}else this.showManipulatorToolbar()}},{key:"deleteSelected",value:function(){var e=this;this.editMode!==!0&&this.enableEditMode(),this._clean(),this.inMode="delete";var n=this.selectionHandler.getSelectedNodeIds(),a=this.selectionHandler.getSelectedEdgeIds(),u=void 0;if(n.length>0){for(var o=0;o<n.length;o++)if(this.body.nodes[n[o]].isCluster===!0){alert(this.options.locales[this.options.locale].deleteClusterError||this.options.locales.en.deleteClusterError);return}typeof this.options.deleteNode=="function"&&(u=this.options.deleteNode)}else a.length>0&&typeof this.options.deleteEdge=="function"&&(u=this.options.deleteEdge);if(typeof u=="function"){var f={nodes:n,edges:a};if(u.length===2)u(f,function(i){i!=null&&e.inMode==="delete"?(e.body.data.edges.getDataSet().remove(i.edges),e.body.data.nodes.getDataSet().remove(i.nodes),e.body.emitter.emit("startSimulation"),e.showManipulatorToolbar()):(e.body.emitter.emit("startSimulation"),e.showManipulatorToolbar())});else throw new Error("The function for delete does not support two arguments (data, callback)")}else this.body.data.edges.getDataSet().remove(a),this.body.data.nodes.getDataSet().remove(n),this.body.emitter.emit("startSimulation"),this.showManipulatorToolbar()}},{key:"_setup",value:function(){this.options.enabled===!0?(this.guiEnabled=!0,this._createWrappers(),this.editMode===!1?this._createEditButton():this.showManipulatorToolbar()):(this._removeManipulationDOM(),this.guiEnabled=!1)}},{key:"_createWrappers",value:function(){if(this.manipulationDiv===void 0&&(this.manipulationDiv=document.createElement("div"),this.manipulationDiv.className="vis-manipulation",this.editMode===!0?this.manipulationDiv.style.display="block":this.manipulationDiv.style.display="none",this.canvas.frame.appendChild(this.manipulationDiv)),this.editModeDiv===void 0&&(this.editModeDiv=document.createElement("div"),this.editModeDiv.className="vis-edit-mode",this.editMode===!0?this.editModeDiv.style.display="none":this.editModeDiv.style.display="block",this.canvas.frame.appendChild(this.editModeDiv)),this.closeDiv===void 0){var e,n;this.closeDiv=document.createElement("button"),this.closeDiv.className="vis-close",this.closeDiv.setAttribute("aria-label",(e=(n=this.options.locales[this.options.locale])===null||n===void 0?void 0:n.close)!==null&&e!==void 0?e:this.options.locales.en.close),this.closeDiv.style.display=this.manipulationDiv.style.display,this.canvas.frame.appendChild(this.closeDiv)}}},{key:"_getNewTargetNode",value:function(e,n){var a=Yu({},this.options.controlNodeStyle);a.id="targetNode"+LE(),a.hidden=!1,a.physics=!1,a.x=e,a.y=n;var u=this.body.functions.createNode(a);return u.shape.boundingBox={left:e,right:e,top:n,bottom:n},u}},{key:"_createEditButton",value:function(){var e;this._clean(),this.manipulationDOM={},bC(this.editModeDiv);var n=this.options.locales[this.options.locale],a=this._createButton("editMode","vis-edit vis-edit-mode",n.edit||this.options.locales.en.edit);this.editModeDiv.appendChild(a),this._bindElementEvents(a,Da(e=this.toggleEditMode).call(e,this))}},{key:"_clean",value:function(){this.inMode=!1,this.guiEnabled===!0&&(bC(this.editModeDiv),bC(this.manipulationDiv),this._cleanupDOMEventListeners()),this._cleanupTemporaryNodesAndEdges(),this._unbindTemporaryUIs(),this._unbindTemporaryEvents(),this.body.emitter.emit("restorePhysics")}},{key:"_cleanupDOMEventListeners",value:function(){var e,n=wtr(iA(e=this._domEventListenerCleanupQueue).call(e,0)),a;try{for(n.s();!(a=n.n()).done;){var u=a.value;u()}}catch(o){n.e(o)}finally{n.f()}}},{key:"_removeManipulationDOM",value:function(){this._clean(),bC(this.manipulationDiv),bC(this.editModeDiv),bC(this.closeDiv),this.manipulationDiv&&this.canvas.frame.removeChild(this.manipulationDiv),this.editModeDiv&&this.canvas.frame.removeChild(this.editModeDiv),this.closeDiv&&this.canvas.frame.removeChild(this.closeDiv),this.manipulationDiv=void 0,this.editModeDiv=void 0,this.closeDiv=void 0}},{key:"_createSeperator",value:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:1;this.manipulationDOM["seperatorLineDiv"+e]=document.createElement("div"),this.manipulationDOM["seperatorLineDiv"+e].className="vis-separator-line",this.manipulationDiv.appendChild(this.manipulationDOM["seperatorLineDiv"+e])}},{key:"_createAddNodeButton",value:function(e){var n,a=this._createButton("addNode","vis-add",e.addNode||this.options.locales.en.addNode);this.manipulationDiv.appendChild(a),this._bindElementEvents(a,Da(n=this.addNodeMode).call(n,this))}},{key:"_createAddEdgeButton",value:function(e){var n,a=this._createButton("addEdge","vis-connect",e.addEdge||this.options.locales.en.addEdge);this.manipulationDiv.appendChild(a),this._bindElementEvents(a,Da(n=this.addEdgeMode).call(n,this))}},{key:"_createEditNodeButton",value:function(e){var n,a=this._createButton("editNode","vis-edit",e.editNode||this.options.locales.en.editNode);this.manipulationDiv.appendChild(a),this._bindElementEvents(a,Da(n=this.editNode).call(n,this))}},{key:"_createEditEdgeButton",value:function(e){var n,a=this._createButton("editEdge","vis-edit",e.editEdge||this.options.locales.en.editEdge);this.manipulationDiv.appendChild(a),this._bindElementEvents(a,Da(n=this.editEdgeMode).call(n,this))}},{key:"_createDeleteButton",value:function(e){var n,a;this.options.rtl?a="vis-delete-rtl":a="vis-delete";var u=this._createButton("delete",a,e.del||this.options.locales.en.del);this.manipulationDiv.appendChild(u),this._bindElementEvents(u,Da(n=this.deleteSelected).call(n,this))}},{key:"_createBackButton",value:function(e){var n,a=this._createButton("back","vis-back",e.back||this.options.locales.en.back);this.manipulationDiv.appendChild(a),this._bindElementEvents(a,Da(n=this.showManipulatorToolbar).call(n,this))}},{key:"_createButton",value:function(e,n,a){var u=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"vis-label";return this.manipulationDOM[e+"Div"]=document.createElement("button"),this.manipulationDOM[e+"Div"].className="vis-button "+n,this.manipulationDOM[e+"Label"]=document.createElement("div"),this.manipulationDOM[e+"Label"].className=u,this.manipulationDOM[e+"Label"].innerText=a,this.manipulationDOM[e+"Div"].appendChild(this.manipulationDOM[e+"Label"]),this.manipulationDOM[e+"Div"]}},{key:"_createDescription",value:function(e){this.manipulationDOM.descriptionLabel=document.createElement("div"),this.manipulationDOM.descriptionLabel.className="vis-none",this.manipulationDOM.descriptionLabel.innerText=e,this.manipulationDiv.appendChild(this.manipulationDOM.descriptionLabel)}},{key:"_temporaryBindEvent",value:function(e,n){this.temporaryEventFunctions.push({event:e,boundFunction:n}),this.body.emitter.on(e,n)}},{key:"_temporaryBindUI",value:function(e,n){if(this.body.eventListeners[e]!==void 0)this.temporaryUIFunctions[e]=this.body.eventListeners[e],this.body.eventListeners[e]=n;else throw new Error("This UI function does not exist. Typo? You tried: "+e+" possible are: "+b4(tf(this.body.eventListeners)))}},{key:"_unbindTemporaryUIs",value:function(){for(var e in this.temporaryUIFunctions)Object.prototype.hasOwnProperty.call(this.temporaryUIFunctions,e)&&(this.body.eventListeners[e]=this.temporaryUIFunctions[e],delete this.temporaryUIFunctions[e]);this.temporaryUIFunctions={}}},{key:"_unbindTemporaryEvents",value:function(){for(var e=0;e<this.temporaryEventFunctions.length;e++){var n=this.temporaryEventFunctions[e].event,a=this.temporaryEventFunctions[e].boundFunction;this.body.emitter.off(n,a)}this.temporaryEventFunctions=[]}},{key:"_bindElementEvents",value:function(e,n){var a=new RT(e,{});Lk(a,n),this._domEventListenerCleanupQueue.push(function(){a.destroy()});var u=function(f){var i=f.keyCode,s=f.key;(s==="Enter"||s===" "||i===13||i===32)&&n()};e.addEventListener("keyup",u,!1),this._domEventListenerCleanupQueue.push(function(){e.removeEventListener("keyup",u,!1)})}},{key:"_cleanupTemporaryNodesAndEdges",value:function(){for(var e=0;e<this.temporaryIds.edges.length;e++){var n;this.body.edges[this.temporaryIds.edges[e]].disconnect(),delete this.body.edges[this.temporaryIds.edges[e]];var a=Kl(n=this.body.edgeIndices).call(n,this.temporaryIds.edges[e]);if(a!==-1){var u;iA(u=this.body.edgeIndices).call(u,a,1)}}for(var o=0;o<this.temporaryIds.nodes.length;o++){var f;delete this.body.nodes[this.temporaryIds.nodes[o]];var i=Kl(f=this.body.nodeIndices).call(f,this.temporaryIds.nodes[o]);if(i!==-1){var s;iA(s=this.body.nodeIndices).call(s,i,1)}}this.temporaryIds={nodes:[],edges:[]}}},{key:"_controlNodeTouch",value:function(e){this.selectionHandler.unselectAll(),this.lastTouch=this.body.functions.getPointer(e.center),this.lastTouch.translation=oh({},this.body.view.translation)}},{key:"_controlNodeDragStart",value:function(){var e=this.lastTouch,n=this.selectionHandler._pointerToPositionObject(e),a=this.body.nodes[this.temporaryIds.nodes[0]],u=this.body.nodes[this.temporaryIds.nodes[1]],o=this.body.edges[this.edgeBeingEditedId];this.selectedControlNode=void 0;var f=a.isOverlappingWith(n),i=u.isOverlappingWith(n);f===!0?(this.selectedControlNode=a,o.edgeType.from=a):i===!0&&(this.selectedControlNode=u,o.edgeType.to=u),this.selectedControlNode!==void 0&&this.selectionHandler.selectObject(this.selectedControlNode),this.body.emitter.emit("_redraw")}},{key:"_controlNodeDrag",value:function(e){this.body.emitter.emit("disablePhysics");var n=this.body.functions.getPointer(e.center),a=this.canvas.DOMtoCanvas(n);this.selectedControlNode!==void 0?(this.selectedControlNode.x=a.x,this.selectedControlNode.y=a.y):this.interactionHandler.onDrag(e),this.body.emitter.emit("_redraw")}},{key:"_controlNodeDragEnd",value:function(e){var n=this.body.functions.getPointer(e.center),a=this.selectionHandler._pointerToPositionObject(n),u=this.body.edges[this.edgeBeingEditedId];if(this.selectedControlNode!==void 0){this.selectionHandler.unselectAll();for(var o=this.selectionHandler._getAllNodesOverlappingWith(a),f=void 0,i=o.length-1;i>=0;i--)if(o[i]!==this.selectedControlNode.id){f=this.body.nodes[o[i]];break}if(f!==void 0&&this.selectedControlNode!==void 0)if(f.isCluster===!0)alert(this.options.locales[this.options.locale].createEdgeError||this.options.locales.en.createEdgeError);else{var s=this.body.nodes[this.temporaryIds.nodes[0]];this.selectedControlNode.id===s.id?this._performEditEdge(f.id,u.to.id):this._performEditEdge(u.from.id,f.id)}else u.updateEdgeType(),this.body.emitter.emit("restorePhysics");this.body.emitter.emit("_redraw")}}},{key:"_handleConnect",value:function(e){if(new Date().valueOf()-this.touchTime>100){this.lastTouch=this.body.functions.getPointer(e.center),this.lastTouch.translation=oh({},this.body.view.translation),this.interactionHandler.drag.pointer=this.lastTouch,this.interactionHandler.drag.translation=this.lastTouch.translation;var n=this.lastTouch,a=this.selectionHandler.getNodeAt(n);if(a!==void 0)if(a.isCluster===!0)alert(this.options.locales[this.options.locale].createEdgeError||this.options.locales.en.createEdgeError);else{var u=this._getNewTargetNode(a.x,a.y);this.body.nodes[u.id]=u,this.body.nodeIndices.push(u.id);var o=this.body.functions.createEdge({id:"connectionEdge"+LE(),from:a.id,to:u.id,physics:!1,smooth:{enabled:!0,type:"continuous",roundness:.5}});this.body.edges[o.id]=o,this.body.edgeIndices.push(o.id),this.temporaryIds.nodes.push(u.id),this.temporaryIds.edges.push(o.id)}this.touchTime=new Date().valueOf()}}},{key:"_dragControlNode",value:function(e){var n=this.body.functions.getPointer(e.center),a=this.selectionHandler._pointerToPositionObject(n),u=void 0;this.temporaryIds.edges[0]!==void 0&&(u=this.body.edges[this.temporaryIds.edges[0]].fromId);for(var o=this.selectionHandler._getAllNodesOverlappingWith(a),f=void 0,i=o.length-1;i>=0;i--){var s;if(Kl(s=this.temporaryIds.nodes).call(s,o[i])===-1){f=this.body.nodes[o[i]];break}}if(e.controlEdge={from:u,to:f?f.id:void 0},this.selectionHandler.generateClickEvent("controlNodeDragging",e,n),this.temporaryIds.nodes[0]!==void 0){var d=this.body.nodes[this.temporaryIds.nodes[0]];d.x=this.canvas._XconvertDOMtoCanvas(n.x),d.y=this.canvas._YconvertDOMtoCanvas(n.y),this.body.emitter.emit("_redraw")}else this.interactionHandler.onDrag(e)}},{key:"_finishConnect",value:function(e){var n=this.body.functions.getPointer(e.center),a=this.selectionHandler._pointerToPositionObject(n),u=void 0;this.temporaryIds.edges[0]!==void 0&&(u=this.body.edges[this.temporaryIds.edges[0]].fromId);for(var o=this.selectionHandler._getAllNodesOverlappingWith(a),f=void 0,i=o.length-1;i>=0;i--){var s;if(Kl(s=this.temporaryIds.nodes).call(s,o[i])===-1){f=this.body.nodes[o[i]];break}}this._cleanupTemporaryNodesAndEdges(),f!==void 0&&(f.isCluster===!0?alert(this.options.locales[this.options.locale].createEdgeError||this.options.locales.en.createEdgeError):this.body.nodes[u]!==void 0&&this.body.nodes[f.id]!==void 0&&this._performAddEdge(u,f.id)),e.controlEdge={from:u,to:f?f.id:void 0},this.selectionHandler.generateClickEvent("controlNodeDragEnd",e,n),this.body.emitter.emit("_redraw")}},{key:"_dragStartEdge",value:function(e){var n=this.lastTouch;this.selectionHandler.generateClickEvent("dragStart",e,n,void 0,!0)}},{key:"_performAddNode",value:function(e){var n=this,a={id:LE(),x:e.pointer.canvas.x,y:e.pointer.canvas.y,label:"new"};if(typeof this.options.addNode=="function")if(this.options.addNode.length===2)this.options.addNode(a,function(u){u!=null&&n.inMode==="addNode"&&n.body.data.nodes.getDataSet().add(u),n.showManipulatorToolbar()});else throw this.showManipulatorToolbar(),new Error("The function for add does not support two arguments (data,callback)");else this.body.data.nodes.getDataSet().add(a),this.showManipulatorToolbar()}},{key:"_performAddEdge",value:function(e,n){var a=this,u={from:e,to:n};if(typeof this.options.addEdge=="function")if(this.options.addEdge.length===2)this.options.addEdge(u,function(o){o!=null&&a.inMode==="addEdge"&&(a.body.data.edges.getDataSet().add(o),a.selectionHandler.unselectAll(),a.showManipulatorToolbar())});else throw new Error("The function for connect does not support two arguments (data,callback)");else this.body.data.edges.getDataSet().add(u),this.selectionHandler.unselectAll(),this.showManipulatorToolbar()}},{key:"_performEditEdge",value:function(e,n){var a=this,u={id:this.edgeBeingEditedId,from:e,to:n,label:this.body.data.edges.get(this.edgeBeingEditedId).label},o=this.options.editEdge;if(_u(o)==="object"&&(o=o.editWithoutDrag),typeof o=="function")if(o.length===2)o(u,function(f){f==null||a.inMode!=="editEdge"?(a.body.edges[u.id].updateEdgeType(),a.body.emitter.emit("_redraw"),a.showManipulatorToolbar()):(a.body.data.edges.getDataSet().update(f),a.selectionHandler.unselectAll(),a.showManipulatorToolbar())});else throw new Error("The function for edit does not support two arguments (data, callback)");else this.body.data.edges.getDataSet().update(u),this.selectionHandler.unselectAll(),this.showManipulatorToolbar()}}]),t}(),Xa="string",La="boolean",Vi="number",JS="array",Ho="object",dTe="dom",Str="any",m$=["arrow","bar","box","circle","crow","curve","diamond","image","inv_curve","inv_triangle","triangle","vee"],y$={borderWidth:{number:Vi},borderWidthSelected:{number:Vi,undefined:"undefined"},brokenImage:{string:Xa,undefined:"undefined"},chosen:{label:{boolean:La,function:"function"},node:{boolean:La,function:"function"},__type__:{object:Ho,boolean:La}},color:{border:{string:Xa},background:{string:Xa},highlight:{border:{string:Xa},background:{string:Xa},__type__:{object:Ho,string:Xa}},hover:{border:{string:Xa},background:{string:Xa},__type__:{object:Ho,string:Xa}},__type__:{object:Ho,string:Xa}},opacity:{number:Vi,undefined:"undefined"},fixed:{x:{boolean:La},y:{boolean:La},__type__:{object:Ho,boolean:La}},font:{align:{string:Xa},color:{string:Xa},size:{number:Vi},face:{string:Xa},background:{string:Xa},strokeWidth:{number:Vi},strokeColor:{string:Xa},vadjust:{number:Vi},multi:{boolean:La,string:Xa},bold:{color:{string:Xa},size:{number:Vi},face:{string:Xa},mod:{string:Xa},vadjust:{number:Vi},__type__:{object:Ho,string:Xa}},boldital:{color:{string:Xa},size:{number:Vi},face:{string:Xa},mod:{string:Xa},vadjust:{number:Vi},__type__:{object:Ho,string:Xa}},ital:{color:{string:Xa},size:{number:Vi},face:{string:Xa},mod:{string:Xa},vadjust:{number:Vi},__type__:{object:Ho,string:Xa}},mono:{color:{string:Xa},size:{number:Vi},face:{string:Xa},mod:{string:Xa},vadjust:{number:Vi},__type__:{object:Ho,string:Xa}},__type__:{object:Ho,string:Xa}},group:{string:Xa,number:Vi,undefined:"undefined"},heightConstraint:{minimum:{number:Vi},valign:{string:Xa},__type__:{object:Ho,boolean:La,number:Vi}},hidden:{boolean:La},icon:{face:{string:Xa},code:{string:Xa},size:{number:Vi},color:{string:Xa},weight:{string:Xa,number:Vi},__type__:{object:Ho}},id:{string:Xa,number:Vi},image:{selected:{string:Xa,undefined:"undefined"},unselected:{string:Xa,undefined:"undefined"},__type__:{object:Ho,string:Xa}},imagePadding:{top:{number:Vi},right:{number:Vi},bottom:{number:Vi},left:{number:Vi},__type__:{object:Ho,number:Vi}},label:{string:Xa,undefined:"undefined"},labelHighlightBold:{boolean:La},level:{number:Vi,undefined:"undefined"},margin:{top:{number:Vi},right:{number:Vi},bottom:{number:Vi},left:{number:Vi},__type__:{object:Ho,number:Vi}},mass:{number:Vi},physics:{boolean:La},scaling:{min:{number:Vi},max:{number:Vi},label:{enabled:{boolean:La},min:{number:Vi},max:{number:Vi},maxVisible:{number:Vi},drawThreshold:{number:Vi},__type__:{object:Ho,boolean:La}},customScalingFunction:{function:"function"},__type__:{object:Ho}},shadow:{enabled:{boolean:La},color:{string:Xa},size:{number:Vi},x:{number:Vi},y:{number:Vi},__type__:{object:Ho,boolean:La}},shape:{string:["custom","ellipse","circle","database","box","text","image","circularImage","diamond","dot","star","triangle","triangleDown","square","icon","hexagon"]},ctxRenderer:{function:"function"},shapeProperties:{borderDashes:{boolean:La,array:JS},borderRadius:{number:Vi},interpolation:{boolean:La},useImageSize:{boolean:La},useBorderWithImage:{boolean:La},coordinateOrigin:{string:["center","top-left"]},__type__:{object:Ho}},size:{number:Vi},title:{string:Xa,dom:dTe,undefined:"undefined"},value:{number:Vi,undefined:"undefined"},widthConstraint:{minimum:{number:Vi},maximum:{number:Vi},__type__:{object:Ho,boolean:La,number:Vi}},x:{number:Vi},y:{number:Vi},__type__:{object:Ho}},Etr={configure:{enabled:{boolean:La},filter:{boolean:La,string:Xa,array:JS,function:"function"},container:{dom:dTe},showButton:{boolean:La},__type__:{object:Ho,boolean:La,string:Xa,array:JS,function:"function"}},edges:{arrows:{to:{enabled:{boolean:La},scaleFactor:{number:Vi},type:{string:m$},imageHeight:{number:Vi},imageWidth:{number:Vi},src:{string:Xa},__type__:{object:Ho,boolean:La}},middle:{enabled:{boolean:La},scaleFactor:{number:Vi},type:{string:m$},imageWidth:{number:Vi},imageHeight:{number:Vi},src:{string:Xa},__type__:{object:Ho,boolean:La}},from:{enabled:{boolean:La},scaleFactor:{number:Vi},type:{string:m$},imageWidth:{number:Vi},imageHeight:{number:Vi},src:{string:Xa},__type__:{object:Ho,boolean:La}},__type__:{string:["from","to","middle"],object:Ho}},endPointOffset:{from:{number:Vi},to:{number:Vi},__type__:{object:Ho,number:Vi}},arrowStrikethrough:{boolean:La},background:{enabled:{boolean:La},color:{string:Xa},size:{number:Vi},dashes:{boolean:La,array:JS},__type__:{object:Ho,boolean:La}},chosen:{label:{boolean:La,function:"function"},edge:{boolean:La,function:"function"},__type__:{object:Ho,boolean:La}},color:{color:{string:Xa},highlight:{string:Xa},hover:{string:Xa},inherit:{string:["from","to","both"],boolean:La},opacity:{number:Vi},__type__:{object:Ho,string:Xa}},dashes:{boolean:La,array:JS},font:{color:{string:Xa},size:{number:Vi},face:{string:Xa},background:{string:Xa},strokeWidth:{number:Vi},strokeColor:{string:Xa},align:{string:["horizontal","top","middle","bottom"]},vadjust:{number:Vi},multi:{boolean:La,string:Xa},bold:{color:{string:Xa},size:{number:Vi},face:{string:Xa},mod:{string:Xa},vadjust:{number:Vi},__type__:{object:Ho,string:Xa}},boldital:{color:{string:Xa},size:{number:Vi},face:{string:Xa},mod:{string:Xa},vadjust:{number:Vi},__type__:{object:Ho,string:Xa}},ital:{color:{string:Xa},size:{number:Vi},face:{string:Xa},mod:{string:Xa},vadjust:{number:Vi},__type__:{object:Ho,string:Xa}},mono:{color:{string:Xa},size:{number:Vi},face:{string:Xa},mod:{string:Xa},vadjust:{number:Vi},__type__:{object:Ho,string:Xa}},__type__:{object:Ho,string:Xa}},hidden:{boolean:La},hoverWidth:{function:"function",number:Vi},label:{string:Xa,undefined:"undefined"},labelHighlightBold:{boolean:La},length:{number:Vi,undefined:"undefined"},physics:{boolean:La},scaling:{min:{number:Vi},max:{number:Vi},label:{enabled:{boolean:La},min:{number:Vi},max:{number:Vi},maxVisible:{number:Vi},drawThreshold:{number:Vi},__type__:{object:Ho,boolean:La}},customScalingFunction:{function:"function"},__type__:{object:Ho}},selectionWidth:{function:"function",number:Vi},selfReferenceSize:{number:Vi},selfReference:{size:{number:Vi},angle:{number:Vi},renderBehindTheNode:{boolean:La},__type__:{object:Ho}},shadow:{enabled:{boolean:La},color:{string:Xa},size:{number:Vi},x:{number:Vi},y:{number:Vi},__type__:{object:Ho,boolean:La}},smooth:{enabled:{boolean:La},type:{string:["dynamic","continuous","discrete","diagonalCross","straightCross","horizontal","vertical","curvedCW","curvedCCW","cubicBezier"]},roundness:{number:Vi},forceDirection:{string:["horizontal","vertical","none"],boolean:La},__type__:{object:Ho,boolean:La}},title:{string:Xa,undefined:"undefined"},width:{number:Vi},widthConstraint:{maximum:{number:Vi},__type__:{object:Ho,boolean:La,number:Vi}},value:{number:Vi,undefined:"undefined"},__type__:{object:Ho}},groups:{useDefaultGroups:{boolean:La},__any__:y$,__type__:{object:Ho}},interaction:{dragNodes:{boolean:La},dragView:{boolean:La},hideEdgesOnDrag:{boolean:La},hideEdgesOnZoom:{boolean:La},hideNodesOnDrag:{boolean:La},hover:{boolean:La},keyboard:{enabled:{boolean:La},speed:{x:{number:Vi},y:{number:Vi},zoom:{number:Vi},__type__:{object:Ho}},bindToWindow:{boolean:La},autoFocus:{boolean:La},__type__:{object:Ho,boolean:La}},multiselect:{boolean:La},navigationButtons:{boolean:La},selectable:{boolean:La},selectConnectedEdges:{boolean:La},hoverConnectedEdges:{boolean:La},tooltipDelay:{number:Vi},zoomView:{boolean:La},zoomSpeed:{number:Vi},__type__:{object:Ho}},layout:{randomSeed:{undefined:"undefined",number:Vi,string:Xa},improvedLayout:{boolean:La},clusterThreshold:{number:Vi},hierarchical:{enabled:{boolean:La},levelSeparation:{number:Vi},nodeSpacing:{number:Vi},treeSpacing:{number:Vi},blockShifting:{boolean:La},edgeMinimization:{boolean:La},parentCentralization:{boolean:La},direction:{string:["UD","DU","LR","RL"]},sortMethod:{string:["hubsize","directed"]},shakeTowards:{string:["leaves","roots"]},__type__:{object:Ho,boolean:La}},__type__:{object:Ho}},manipulation:{enabled:{boolean:La},initiallyActive:{boolean:La},addNode:{boolean:La,function:"function"},addEdge:{boolean:La,function:"function"},editNode:{function:"function"},editEdge:{editWithoutDrag:{function:"function"},__type__:{object:Ho,boolean:La,function:"function"}},deleteNode:{boolean:La,function:"function"},deleteEdge:{boolean:La,function:"function"},controlNodeStyle:y$,__type__:{object:Ho,boolean:La}},nodes:y$,physics:{enabled:{boolean:La},barnesHut:{theta:{number:Vi},gravitationalConstant:{number:Vi},centralGravity:{number:Vi},springLength:{number:Vi},springConstant:{number:Vi},damping:{number:Vi},avoidOverlap:{number:Vi},__type__:{object:Ho}},forceAtlas2Based:{theta:{number:Vi},gravitationalConstant:{number:Vi},centralGravity:{number:Vi},springLength:{number:Vi},springConstant:{number:Vi},damping:{number:Vi},avoidOverlap:{number:Vi},__type__:{object:Ho}},repulsion:{centralGravity:{number:Vi},springLength:{number:Vi},springConstant:{number:Vi},nodeDistance:{number:Vi},damping:{number:Vi},__type__:{object:Ho}},hierarchicalRepulsion:{centralGravity:{number:Vi},springLength:{number:Vi},springConstant:{number:Vi},nodeDistance:{number:Vi},damping:{number:Vi},avoidOverlap:{number:Vi},__type__:{object:Ho}},maxVelocity:{number:Vi},minVelocity:{number:Vi},solver:{string:["barnesHut","repulsion","hierarchicalRepulsion","forceAtlas2Based"]},stabilization:{enabled:{boolean:La},iterations:{number:Vi},updateInterval:{number:Vi},onlyDynamicEdges:{boolean:La},fit:{boolean:La},__type__:{object:Ho,boolean:La}},timestep:{number:Vi},adaptiveTimestep:{boolean:La},wind:{x:{number:Vi},y:{number:Vi},__type__:{object:Ho}},__type__:{object:Ho,boolean:La}},autoResize:{boolean:La},clickToUse:{boolean:La},locale:{string:Xa},locales:{__any__:{any:Str},__type__:{object:Ho}},height:{string:Xa},width:{string:Xa},__type__:{object:Ho}},vTe={nodes:{borderWidth:[1,0,10,1],borderWidthSelected:[2,0,10,1],color:{border:["color","#2B7CE9"],background:["color","#97C2FC"],highlight:{border:["color","#2B7CE9"],background:["color","#D2E5FF"]},hover:{border:["color","#2B7CE9"],background:["color","#D2E5FF"]}},opacity:[0,0,1,.1],fixed:{x:!1,y:!1},font:{color:["color","#343434"],size:[14,0,100,1],face:["arial","verdana","tahoma"],background:["color","none"],strokeWidth:[0,0,50,1],strokeColor:["color","#ffffff"]},hidden:!1,labelHighlightBold:!0,physics:!0,scaling:{min:[10,0,200,1],max:[30,0,200,1],label:{enabled:!1,min:[14,0,200,1],max:[30,0,200,1],maxVisible:[30,0,200,1],drawThreshold:[5,0,20,1]}},shadow:{enabled:!1,color:"rgba(0,0,0,0.5)",size:[10,0,20,1],x:[5,-30,30,1],y:[5,-30,30,1]},shape:["ellipse","box","circle","database","diamond","dot","square","star","text","triangle","triangleDown","hexagon"],shapeProperties:{borderDashes:!1,borderRadius:[6,0,20,1],interpolation:!0,useImageSize:!1},size:[25,0,200,1]},edges:{arrows:{to:{enabled:!1,scaleFactor:[1,0,3,.05],type:"arrow"},middle:{enabled:!1,scaleFactor:[1,0,3,.05],type:"arrow"},from:{enabled:!1,scaleFactor:[1,0,3,.05],type:"arrow"}},endPointOffset:{from:[0,-10,10,1],to:[0,-10,10,1]},arrowStrikethrough:!0,color:{color:["color","#848484"],highlight:["color","#848484"],hover:["color","#848484"],inherit:["from","to","both",!0,!1],opacity:[1,0,1,.05]},dashes:!1,font:{color:["color","#343434"],size:[14,0,100,1],face:["arial","verdana","tahoma"],background:["color","none"],strokeWidth:[2,0,50,1],strokeColor:["color","#ffffff"],align:["horizontal","top","middle","bottom"]},hidden:!1,hoverWidth:[1.5,0,5,.1],labelHighlightBold:!0,physics:!0,scaling:{min:[1,0,100,1],max:[15,0,100,1],label:{enabled:!0,min:[14,0,200,1],max:[30,0,200,1],maxVisible:[30,0,200,1],drawThreshold:[5,0,20,1]}},selectionWidth:[1.5,0,5,.1],selfReferenceSize:[20,0,200,1],selfReference:{size:[20,0,200,1],angle:[Math.PI/2,-6*Math.PI,6*Math.PI,Math.PI/8],renderBehindTheNode:!0},shadow:{enabled:!1,color:"rgba(0,0,0,0.5)",size:[10,0,20,1],x:[5,-30,30,1],y:[5,-30,30,1]},smooth:{enabled:!0,type:["dynamic","continuous","discrete","diagonalCross","straightCross","horizontal","vertical","curvedCW","curvedCCW","cubicBezier"],forceDirection:["horizontal","vertical","none"],roundness:[.5,0,1,.05]},width:[1,0,30,1]},layout:{hierarchical:{enabled:!1,levelSeparation:[150,20,500,5],nodeSpacing:[100,20,500,5],treeSpacing:[200,20,500,5],blockShifting:!0,edgeMinimization:!0,parentCentralization:!0,direction:["UD","DU","LR","RL"],sortMethod:["hubsize","directed"],shakeTowards:["leaves","roots"]}},interaction:{dragNodes:!0,dragView:!0,hideEdgesOnDrag:!1,hideEdgesOnZoom:!1,hideNodesOnDrag:!1,hover:!1,keyboard:{enabled:!1,speed:{x:[10,0,40,1],y:[10,0,40,1],zoom:[.02,0,.1,.005]},bindToWindow:!0,autoFocus:!0},multiselect:!1,navigationButtons:!1,selectable:!0,selectConnectedEdges:!0,hoverConnectedEdges:!0,tooltipDelay:[300,0,1e3,25],zoomView:!0,zoomSpeed:[1,.1,2,.1]},manipulation:{enabled:!1,initiallyActive:!1},physics:{enabled:!0,barnesHut:{theta:[.5,.1,1,.05],gravitationalConstant:[-2e3,-3e4,0,50],centralGravity:[.3,0,10,.05],springLength:[95,0,500,5],springConstant:[.04,0,1.2,.005],damping:[.09,0,1,.01],avoidOverlap:[0,0,1,.01]},forceAtlas2Based:{theta:[.5,.1,1,.05],gravitationalConstant:[-50,-500,0,1],centralGravity:[.01,0,1,.005],springLength:[95,0,500,5],springConstant:[.08,0,1.2,.005],damping:[.4,0,1,.01],avoidOverlap:[0,0,1,.01]},repulsion:{centralGravity:[.2,0,10,.05],springLength:[200,0,500,5],springConstant:[.05,0,1.2,.005],nodeDistance:[100,0,500,5],damping:[.09,0,1,.01]},hierarchicalRepulsion:{centralGravity:[.2,0,10,.05],springLength:[100,0,500,5],springConstant:[.01,0,1.2,.005],nodeDistance:[120,0,500,5],damping:[.09,0,1,.01],avoidOverlap:[0,0,1,.01]},maxVelocity:[50,0,150,1],minVelocity:[.1,.01,.5,.01],solver:["barnesHut","forceAtlas2Based","repulsion","hierarchicalRepulsion"],timestep:[.5,.01,1,.01],wind:{x:[0,-10,10,.1],y:[0,-10,10,.1]}}},Mtr=function(r,e,n){var a;return!!(rI(r).call(r,"physics")&&rI(a=vTe.physics.solver).call(a,e)&&n.physics.solver!==e&&e!=="wind")},Rtr=function(){function t(){Qa(this,t)}return Ja(t,[{key:"getDistances",value:function(e,n,a){for(var u={},o=e.edges,f=0;f<n.length;f++){var i=n[f],s={};u[i]=s;for(var d=0;d<n.length;d++)s[n[d]]=f==d?0:1e9}for(var l=0;l<a.length;l++){var h=o[a[l]];h.connected===!0&&u[h.fromId]!==void 0&&u[h.toId]!==void 0&&(u[h.fromId][h.toId]=1,u[h.toId][h.fromId]=1)}for(var y=n.length,b=0;b<y;b++)for(var C=n[b],m=u[C],c=0;c<y-1;c++)for(var v=n[c],g=u[v],p=c+1;p<y;p++){var I=n[p],A=u[I],T=Math.min(g[I],g[C]+m[I]);g[I]=T,A[v]=T}return u}}]),t}(),Ptr=function(){function t(r,e,n){Qa(this,t),this.body=r,this.springLength=e,this.springConstant=n,this.distanceSolver=new Rtr}return Ja(t,[{key:"setOptions",value:function(e){e&&(e.springLength&&(this.springLength=e.springLength),e.springConstant&&(this.springConstant=e.springConstant))}},{key:"solve",value:function(e,n){var a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,u=this.distanceSolver.getDistances(this.body,e,n);this._createL_matrix(u),this._createK_matrix(u),this._createE_matrix();for(var o=.01,f=1,i=0,s=Math.max(1e3,Math.min(10*this.body.nodeIndices.length,6e3)),d=5,l=1e9,h=0,y=0,b=0,C=0,m=0;l>o&&i<s;){i+=1;var c=this._getHighestEnergyNode(a),v=nf(c,4);for(h=v[0],l=v[1],y=v[2],b=v[3],C=l,m=0;C>f&&m<d;){m+=1,this._moveNode(h,y,b);var g=this._getEnergy(h),p=nf(g,3);C=p[0],y=p[1],b=p[2]}}}},{key:"_getHighestEnergyNode",value:function(e){for(var n=this.body.nodeIndices,a=this.body.nodes,u=0,o=n[0],f=0,i=0,s=0;s<n.length;s++){var d=n[s];if(a[d].predefinedPosition!==!0||a[d].isCluster===!0&&e===!0||a[d].options.fixed.x!==!0||a[d].options.fixed.y!==!0){var l=this._getEnergy(d),h=nf(l,3),y=h[0],b=h[1],C=h[2];u<y&&(u=y,o=d,f=b,i=C)}}return[o,u,f,i]}},{key:"_getEnergy",value:function(e){var n=nf(this.E_sums[e],2),a=n[0],u=n[1],o=Math.sqrt(Math.pow(a,2)+Math.pow(u,2));return[o,a,u]}},{key:"_moveNode",value:function(e,n,a){for(var u=this.body.nodeIndices,o=this.body.nodes,f=0,i=0,s=0,d=o[e].x,l=o[e].y,h=this.K_matrix[e],y=this.L_matrix[e],b=0;b<u.length;b++){var C=u[b];if(C!==e){var m=o[C].x,c=o[C].y,v=h[C],g=y[C],p=1/Math.pow(Math.pow(d-m,2)+Math.pow(l-c,2),1.5);f+=v*(1-g*Math.pow(l-c,2)*p),i+=v*(g*(d-m)*(l-c)*p),s+=v*(1-g*Math.pow(d-m,2)*p)}}var I=f,A=i,T=n,_=s,E=a,x=(T/I+E/A)/(A/I-_/A),S=-(A*x+T)/I;o[e].x+=S,o[e].y+=x,this._updateE_matrix(e)}},{key:"_createL_matrix",value:function(e){var n=this.body.nodeIndices,a=this.springLength;this.L_matrix=[];for(var u=0;u<n.length;u++){this.L_matrix[n[u]]={};for(var o=0;o<n.length;o++)this.L_matrix[n[u]][n[o]]=a*e[n[u]][n[o]]}}},{key:"_createK_matrix",value:function(e){var n=this.body.nodeIndices,a=this.springConstant;this.K_matrix=[];for(var u=0;u<n.length;u++){this.K_matrix[n[u]]={};for(var o=0;o<n.length;o++)this.K_matrix[n[u]][n[o]]=a*Math.pow(e[n[u]][n[o]],-2)}}},{key:"_createE_matrix",value:function(){var e=this.body.nodeIndices,n=this.body.nodes;this.E_matrix={},this.E_sums={};for(var a=0;a<e.length;a++)this.E_matrix[e[a]]=[];for(var u=0;u<e.length;u++){for(var o=e[u],f=n[o].x,i=n[o].y,s=0,d=0,l=u;l<e.length;l++){var h=e[l];if(h!==o){var y=n[h].x,b=n[h].y,C=1/Math.sqrt(Math.pow(f-y,2)+Math.pow(i-b,2));this.E_matrix[o][l]=[this.K_matrix[o][h]*(f-y-this.L_matrix[o][h]*(f-y)*C),this.K_matrix[o][h]*(i-b-this.L_matrix[o][h]*(i-b)*C)],this.E_matrix[h][u]=this.E_matrix[o][l],s+=this.E_matrix[o][l][0],d+=this.E_matrix[o][l][1]}}this.E_sums[o]=[s,d]}}},{key:"_updateE_matrix",value:function(e){for(var n=this.body.nodeIndices,a=this.body.nodes,u=this.E_matrix[e],o=this.K_matrix[e],f=this.L_matrix[e],i=a[e].x,s=a[e].y,d=0,l=0,h=0;h<n.length;h++){var y=n[h];if(y!==e){var b=u[h],C=b[0],m=b[1],c=a[y].x,v=a[y].y,g=1/Math.sqrt(Math.pow(i-c,2)+Math.pow(s-v,2)),p=o[y]*(i-c-f[y]*(i-c)*g),I=o[y]*(s-v-f[y]*(s-v)*g);u[h]=[p,I],d+=p,l+=I;var A=this.E_sums[y];A[0]+=p-C,A[1]+=I-m}}this.E_sums[e]=[d,l]}}]),t}();function Fo(t,r,e){var n,a,u,o,f=this;if(!(this instanceof Fo))throw new SyntaxError("Constructor must be called with the new operator");this.options={},this.defaultOptions={locale:"en",locales:SWt,clickToUse:!1},oh(this.options,this.defaultOptions),this.body={container:t,nodes:{},nodeIndices:[],edges:{},edgeIndices:[],emitter:{on:Da(n=this.on).call(n,this),off:Da(a=this.off).call(a,this),emit:Da(u=this.emit).call(u,this),once:Da(o=this.once).call(o,this)},eventListeners:{onTap:function(){},onTouch:function(){},onDoubleTap:function(){},onHold:function(){},onDragStart:function(){},onDrag:function(){},onDragEnd:function(){},onMouseWheel:function(){},onPinch:function(){},onMouseMove:function(){},onRelease:function(){},onContext:function(){}},data:{nodes:null,edges:null},functions:{createNode:function(){},createEdge:function(){},getPointer:function(){}},modules:{},view:{scale:1,translation:{x:0,y:0}},selectionBox:{show:!1,position:{start:{x:0,y:0},end:{x:0,y:0}}}},this.bindEventListeners(),this.images=new RWt(function(){return f.body.emitter.emit("_requestRedraw")}),this.groups=new ZZt,this.canvas=new cqt(this.body),this.selectionHandler=new eer(this.body,this.canvas),this.interactionHandler=new pqt(this.body,this.canvas,this.selectionHandler),this.view=new hqt(this.body,this.canvas),this.renderer=new aqt(this.body,this.canvas),this.physics=new XJt(this.body),this.layoutEngine=new xtr(this.body),this.clustering=new nqt(this.body),this.manipulation=new _tr(this.body,this.canvas,this.selectionHandler,this.interactionHandler),this.nodesHandler=new LQt(this.body,this.images,this.groups,this.layoutEngine),this.edgesHandler=new BJt(this.body,this.images,this.groups),this.body.modules.kamadaKawai=new Ptr(this.body,150,.05),this.body.modules.clustering=this.clustering,this.canvas._create(),this.setOptions(e),this.setData(r)}hxe(Fo.prototype);Fo.prototype.setOptions=function(t){var r=this;if(t===null&&(t=void 0),t!==void 0){var e=iWt.validate(t,Etr);e===!0&&console.error("%cErrors have been found in the supplied options object.",p2e);var n=["locale","locales","clickToUse"];if(x_(n,this.options,t),t.locale!==void 0&&(t.locale=EWt(t.locales||this.options.locales,t.locale)),t=this.layoutEngine.setOptions(t.layout,t),this.canvas.setOptions(t),this.groups.setOptions(t.groups),this.nodesHandler.setOptions(t.nodes),this.edgesHandler.setOptions(t.edges),this.physics.setOptions(t.physics),this.manipulation.setOptions(t.manipulation,t,this.options),this.interactionHandler.setOptions(t.interaction),this.renderer.setOptions(t.interaction),this.selectionHandler.setOptions(t.interaction),t.groups!==void 0&&this.body.emitter.emit("refreshNodes"),"configure"in t&&(this.configurator||(this.configurator=new rWt(this,this.body.container,vTe,this.canvas.pixelRatio,Mtr)),this.configurator.setOptions(t.configure)),this.configurator&&this.configurator.options.enabled===!0){var a={nodes:{},edges:{},layout:{},interaction:{},manipulation:{},physics:{},global:{}};Yu(a.nodes,this.nodesHandler.options),Yu(a.edges,this.edgesHandler.options),Yu(a.layout,this.layoutEngine.options),Yu(a.interaction,this.selectionHandler.options),Yu(a.interaction,this.renderer.options),Yu(a.interaction,this.interactionHandler.options),Yu(a.manipulation,this.manipulation.options),Yu(a.physics,this.physics.options),Yu(a.global,this.canvas.options),Yu(a.global,this.options),this.configurator.setModuleOptions(a)}t.clickToUse!==void 0?t.clickToUse===!0?this.activator===void 0&&(this.activator=new tWt(this.canvas.frame),this.activator.on("change",function(){r.body.emitter.emit("activate")})):(this.activator!==void 0&&(this.activator.destroy(),delete this.activator),this.body.emitter.emit("activate")):this.body.emitter.emit("activate"),this.canvas.setSize(),this.body.emitter.emit("startSimulation")}};Fo.prototype._updateVisibleIndices=function(){var t=this.body.nodes,r=this.body.edges;this.body.nodeIndices=[],this.body.edgeIndices=[];for(var e in t)Object.prototype.hasOwnProperty.call(t,e)&&!this.clustering._isClusteredNode(e)&&t[e].options.hidden===!1&&this.body.nodeIndices.push(t[e].id);for(var n in r)if(Object.prototype.hasOwnProperty.call(r,n)){var a=r[n],u=t[a.fromId],o=t[a.toId],f=u!==void 0&&o!==void 0,i=!this.clustering._isClusteredEdge(n)&&a.options.hidden===!1&&f&&u.options.hidden===!1&&o.options.hidden===!1;i&&this.body.edgeIndices.push(a.id)}};Fo.prototype.bindEventListeners=function(){var t=this;this.body.emitter.on("_dataChanged",function(){t.edgesHandler._updateState(),t.body.emitter.emit("_dataUpdated")}),this.body.emitter.on("_dataUpdated",function(){t.clustering._updateState(),t._updateVisibleIndices(),t._updateValueRange(t.body.nodes),t._updateValueRange(t.body.edges),t.body.emitter.emit("startSimulation"),t.body.emitter.emit("_requestRedraw")})};Fo.prototype.setData=function(t){if(this.body.emitter.emit("resetPhysics"),this.body.emitter.emit("_resetData"),this.selectionHandler.unselectAll(),t&&t.dot&&(t.nodes||t.edges))throw new SyntaxError('Data must contain either parameter "dot" or parameter pair "nodes" and "edges", but not both.');if(this.setOptions(t&&t.options),t&&t.dot){console.warn("The dot property has been deprecated. Please use the static convertDot method to convert DOT into vis.network format and use the normal data format with nodes and edges. This converter is used like this: var data = vis.network.convertDot(dotString);");var r=vWt(t.dot);this.setData(r);return}else if(t&&t.gephi){console.warn("The gephi property has been deprecated. Please use the static convertGephi method to convert gephi into vis.network format and use the normal data format with nodes and edges. This converter is used like this: var data = vis.network.convertGephi(gephiJson);");var e=gWt(t.gephi);this.setData(e);return}else this.nodesHandler.setData(t&&t.nodes,!0),this.edgesHandler.setData(t&&t.edges,!0);this.body.emitter.emit("_dataChanged"),this.body.emitter.emit("_dataLoaded"),this.body.emitter.emit("initPhysics")};Fo.prototype.destroy=function(){this.body.emitter.emit("destroy"),this.body.emitter.off(),this.off(),delete this.groups,delete this.canvas,delete this.selectionHandler,delete this.interactionHandler,delete this.view,delete this.renderer,delete this.physics,delete this.layoutEngine,delete this.clustering,delete this.manipulation,delete this.nodesHandler,delete this.edgesHandler,delete this.configurator,delete this.images;for(var t in this.body.nodes)Object.prototype.hasOwnProperty.call(this.body.nodes,t)&&delete this.body.nodes[t];for(var r in this.body.edges)Object.prototype.hasOwnProperty.call(this.body.edges,r)&&delete this.body.edges[r];bC(this.body.container)};Fo.prototype._updateValueRange=function(t){var r,e=void 0,n=void 0,a=0;for(r in t)if(Object.prototype.hasOwnProperty.call(t,r)){var u=t[r].getValue();u!==void 0&&(e=e===void 0?u:Math.min(u,e),n=n===void 0?u:Math.max(u,n),a+=u)}if(e!==void 0&&n!==void 0)for(r in t)Object.prototype.hasOwnProperty.call(t,r)&&t[r].setValueRange(e,n,a)};Fo.prototype.isActive=function(){return!this.activator||this.activator.active};Fo.prototype.setSize=function(){return this.canvas.setSize.apply(this.canvas,arguments)};Fo.prototype.canvasToDOM=function(){return this.canvas.canvasToDOM.apply(this.canvas,arguments)};Fo.prototype.DOMtoCanvas=function(){return this.canvas.DOMtoCanvas.apply(this.canvas,arguments)};Fo.prototype.findNode=function(){return this.clustering.findNode.apply(this.clustering,arguments)};Fo.prototype.isCluster=function(){return this.clustering.isCluster.apply(this.clustering,arguments)};Fo.prototype.openCluster=function(){return this.clustering.openCluster.apply(this.clustering,arguments)};Fo.prototype.cluster=function(){return this.clustering.cluster.apply(this.clustering,arguments)};Fo.prototype.getNodesInCluster=function(){return this.clustering.getNodesInCluster.apply(this.clustering,arguments)};Fo.prototype.clusterByConnection=function(){return this.clustering.clusterByConnection.apply(this.clustering,arguments)};Fo.prototype.clusterByHubsize=function(){return this.clustering.clusterByHubsize.apply(this.clustering,arguments)};Fo.prototype.updateClusteredNode=function(){return this.clustering.updateClusteredNode.apply(this.clustering,arguments)};Fo.prototype.getClusteredEdges=function(){return this.clustering.getClusteredEdges.apply(this.clustering,arguments)};Fo.prototype.getBaseEdge=function(){return this.clustering.getBaseEdge.apply(this.clustering,arguments)};Fo.prototype.getBaseEdges=function(){return this.clustering.getBaseEdges.apply(this.clustering,arguments)};Fo.prototype.updateEdge=function(){return this.clustering.updateEdge.apply(this.clustering,arguments)};Fo.prototype.clusterOutliers=function(){return this.clustering.clusterOutliers.apply(this.clustering,arguments)};Fo.prototype.getSeed=function(){return this.layoutEngine.getSeed.apply(this.layoutEngine,arguments)};Fo.prototype.enableEditMode=function(){return this.manipulation.enableEditMode.apply(this.manipulation,arguments)};Fo.prototype.disableEditMode=function(){return this.manipulation.disableEditMode.apply(this.manipulation,arguments)};Fo.prototype.addNodeMode=function(){return this.manipulation.addNodeMode.apply(this.manipulation,arguments)};Fo.prototype.editNode=function(){return this.manipulation.editNode.apply(this.manipulation,arguments)};Fo.prototype.editNodeMode=function(){return console.warn("Deprecated: Please use editNode instead of editNodeMode."),this.manipulation.editNode.apply(this.manipulation,arguments)};Fo.prototype.addEdgeMode=function(){return this.manipulation.addEdgeMode.apply(this.manipulation,arguments)};Fo.prototype.editEdgeMode=function(){return this.manipulation.editEdgeMode.apply(this.manipulation,arguments)};Fo.prototype.deleteSelected=function(){return this.manipulation.deleteSelected.apply(this.manipulation,arguments)};Fo.prototype.getPositions=function(){return this.nodesHandler.getPositions.apply(this.nodesHandler,arguments)};Fo.prototype.getPosition=function(){return this.nodesHandler.getPosition.apply(this.nodesHandler,arguments)};Fo.prototype.storePositions=function(){return this.nodesHandler.storePositions.apply(this.nodesHandler,arguments)};Fo.prototype.moveNode=function(){return this.nodesHandler.moveNode.apply(this.nodesHandler,arguments)};Fo.prototype.getBoundingBox=function(){return this.nodesHandler.getBoundingBox.apply(this.nodesHandler,arguments)};Fo.prototype.getConnectedNodes=function(t){return this.body.nodes[t]!==void 0?this.nodesHandler.getConnectedNodes.apply(this.nodesHandler,arguments):this.edgesHandler.getConnectedNodes.apply(this.edgesHandler,arguments)};Fo.prototype.getConnectedEdges=function(){return this.nodesHandler.getConnectedEdges.apply(this.nodesHandler,arguments)};Fo.prototype.startSimulation=function(){return this.physics.startSimulation.apply(this.physics,arguments)};Fo.prototype.stopSimulation=function(){return this.physics.stopSimulation.apply(this.physics,arguments)};Fo.prototype.stabilize=function(){return this.physics.stabilize.apply(this.physics,arguments)};Fo.prototype.getSelection=function(){return this.selectionHandler.getSelection.apply(this.selectionHandler,arguments)};Fo.prototype.setSelection=function(){return this.selectionHandler.setSelection.apply(this.selectionHandler,arguments)};Fo.prototype.getSelectedNodes=function(){return this.selectionHandler.getSelectedNodeIds.apply(this.selectionHandler,arguments)};Fo.prototype.getSelectedEdges=function(){return this.selectionHandler.getSelectedEdgeIds.apply(this.selectionHandler,arguments)};Fo.prototype.getNodeAt=function(){var t=this.selectionHandler.getNodeAt.apply(this.selectionHandler,arguments);return t!==void 0&&t.id!==void 0?t.id:t};Fo.prototype.getEdgeAt=function(){var t=this.selectionHandler.getEdgeAt.apply(this.selectionHandler,arguments);return t!==void 0&&t.id!==void 0?t.id:t};Fo.prototype.selectNodes=function(){return this.selectionHandler.selectNodes.apply(this.selectionHandler,arguments)};Fo.prototype.selectEdges=function(){return this.selectionHandler.selectEdges.apply(this.selectionHandler,arguments)};Fo.prototype.unselectAll=function(){this.selectionHandler.unselectAll.apply(this.selectionHandler,arguments),this.selectionHandler.commitWithoutEmitting.apply(this.selectionHandler),this.redraw()};Fo.prototype.redraw=function(){return this.renderer.redraw.apply(this.renderer,arguments)};Fo.prototype.getScale=function(){return this.view.getScale.apply(this.view,arguments)};Fo.prototype.getViewPosition=function(){return this.view.getViewPosition.apply(this.view,arguments)};Fo.prototype.fit=function(){return this.view.fit.apply(this.view,arguments)};Fo.prototype.moveTo=function(){return this.view.moveTo.apply(this.view,arguments)};Fo.prototype.focus=function(){return this.view.focus.apply(this.view,arguments)};Fo.prototype.releaseNode=function(){return this.view.releaseNode.apply(this.view,arguments)};Fo.prototype.getOptionsFromConfigurator=function(){var t={};return this.configurator&&(t=this.configurator.getOptions.apply(this.configurator)),t};const Ltr=({operationList:t,operationId:r})=>{var I,A,T,_;const e=St.useRef(null),n=bI(),a=St.useRef(null),[u,o]=St.useState(!0),[f,i]=St.useState(1),s=r!==void 0?r:t[0].id??0,[d,l]=St.useState(r??0),h=St.useRef(d),y=St.useMemo(()=>t.flatMap(E=>E.outputs.flatMap(x=>x.consumers.map(S=>({from:E.id,to:S,arrows:"to",label:`${iy(x.shape)}
5246
5246
  ${fI(x.dtype)}`})))),[t]),b=St.useMemo(()=>{const E=new Set;return y.forEach(({from:x,to:S})=>{E.add(x),E.add(S)}),E},[y]),C=St.useMemo(()=>new F5(t.filter(E=>b.has(E.id)).map(E=>({id:E.id,label:`${E.id} ${E.name}
5247
- ${E.operationFileIdentifier}`,shape:"box"}))),[t,b]),m=St.useCallback(E=>{var S;const x=Math.min(E,3);i(x),(S=a.current)==null||S.moveTo({scale:x})},[a]);St.useEffect(()=>(o(!0),setTimeout(()=>{e.current&&requestAnimationFrame(()=>{a.current=new Fo(e.current,{nodes:C,edges:y},{nodes:{font:{color:"#202020"},color:{background:"#ccd2f9",border:"none",hover:{background:"#9ca8f2",border:"none"},highlight:{background:"#74c5df",border:"#f6bc42"}},size:20,labelHighlightBold:!1,shape:"box"},edges:{font:{color:"#f5e2ba",size:20,strokeColor:"#000"},color:"#f5e2ba",arrows:{to:{enabled:!0,scaleFactor:.5}},smooth:{enabled:!0,type:"cubicBezier",roundness:.5}},autoResize:!0,layout:{hierarchical:{enabled:!0,levelSeparation:200,nodeSpacing:200,treeSpacing:300,blockShifting:!0,edgeMinimization:!0,direction:"UD",sortMethod:"directed",shakeTowards:"leaves"}},interaction:{hover:!0,keyboard:!0,dragView:!0,zoomView:!0,zoomSpeed:.2},physics:{enabled:!1}}),a.current.once("afterDrawing",()=>{var E,x;o(!1),(E=a.current)==null||E.focus(s,{scale:f,animation:{duration:500,easingFunction:"easeInOutQuad"}}),(x=a.current)==null||x.selectNodes([s],!0),l(s),h.current=s}),a.current.on("click",E=>{var x;if(E.edges.length>0){const S=E.edges[0],w=y.find(L=>L.id===S);(w==null?void 0:w.to)===h.current?g((w==null?void 0:w.from)||null):g((w==null?void 0:w.to)||null)}else(x=a.current)==null||x.selectNodes([],!0),l(null),h.current=null}),a.current.on("zoom",E=>{var x;E.scale<=3?i(E.scale):(x=a.current)==null||x.moveTo({scale:3})})})}),()=>{var E,x,S,w,L;(E=a.current)==null||E.off("zoom"),(x=a.current)==null||x.off("click"),(S=a.current)==null||S.off("dragEnd"),(w=a.current)==null||w.off("afterDrawing"),(L=a.current)==null||L.destroy(),a.current=null}),[y]);const c=E=>{if(C===null||E===null)return null;const x=C.getIds(),S=x.indexOf(E);return S!==-1&&S<x.length-1?x[S+1]:null},v=E=>{if(C===null||E===null)return null;const x=C.getIds(),S=x.indexOf(E);return S>0?x[S-1]:null},g=St.useCallback(E=>{E!==null&&a.current&&(a.current.focus(E,{scale:f,animation:{duration:500,easingFunction:"easeInOutCubic"}}),a.current.selectNodes([E],!0),l(E),h.current=E)},[a,f]),p=d??t[0].id;return Ge.jsxs("div",{className:"operation-graph-component",children:[Ge.jsxs("div",{className:"operation-graph-header",children:[Ge.jsxs("div",{className:"operation-graph-nav",children:[Ge.jsx(Es,{placement:sl.TOP,content:`Go to previous operation ${v(d)}`,disabled:u,children:Ge.jsx(Na,{icon:ki.ArrowLeft,onClick:()=>g(v(d)||0),disabled:!v(d)||u,variant:"outlined"})}),Ge.jsx(Es,{disabled:u,placement:sl.TOP,content:`Center on operation ${p}`,children:Ge.jsx(Na,{variant:"outlined",onClick:()=>g(p),disabled:u,children:p})}),Ge.jsx(Es,{placement:sl.TOP,content:`Go to next operation ${c(d)}`,disabled:u,children:Ge.jsx(Na,{icon:ki.ArrowRight,onClick:()=>g(c(d)||0),disabled:!c(d)||u,variant:"outlined"})})]}),Ge.jsxs("div",{className:"slider-wrapper",children:[Ge.jsx(ARe,{disabled:u,children:"Scale"}),Ge.jsx(DU,{min:.1,max:3,labelRenderer:E=>`${E.toFixed(2)}`,stepSize:.01,labelStepSize:.75,labelPrecision:1,value:f,onChange:m,disabled:u})]})]}),d!==null&&!u&&Ge.jsxs("div",{className:"operation-graph-props",children:[Ge.jsxs("h2",{className:"operation-name",children:[d," ",(I=t.find(E=>E.id===d))==null?void 0:I.name," (",(A=t.find(E=>E.id===d))==null?void 0:A.operationFileIdentifier,")"]}),Ge.jsx(Na,{className:"navigate-button",endIcon:ki.SEGMENTED_CONTROL,intent:uo.PRIMARY,onClick:()=>n(`/operations/${d}`),children:"Memory Details"}),Ge.jsx("h3",{children:"Inputs 123:"}),Ge.jsx("div",{className:"tensors",children:(T=t.find(E=>E.id===d))==null?void 0:T.inputs.map((E,x)=>Ge.jsx($ue,{tensor:E},`input-${d} ${E.id} ${x}`))}),Ge.jsx("h3",{children:"Outputs:"}),Ge.jsx("div",{className:"tensors",children:(_=t.find(E=>E.id===d))==null?void 0:_.outputs.map((E,x)=>Ge.jsx($ue,{tensor:E},`output-${d} ${E.id} ${x}`))})]}),u&&Ge.jsx("div",{className:"graph-tree-loader",children:Ge.jsx(Tv,{})}),Ge.jsx("div",{className:"operation-graph-container",ref:e}),Ge.jsx("aside",{className:"aside",children:"Scroll to zoom. Drag to pan. Click a node to see operation details."})]})},$ue=({tensor:t})=>Ge.jsxs("div",{className:"tensor-details",children:[Ge.jsx("h3",{children:iy(t.shape)}),Ge.jsx("div",{children:t.dtype}),Ge.jsx("div",{children:t.layout}),Ge.jsx("div",{children:t.buffer_type!==null&&Rh[t.buffer_type]}),Ge.jsx("div",{children:t.operationIdentifier&&[t.operationIdentifier]}),t!=null&&t.memory_config?Object.entries(t.memory_config).map(([r,e])=>Ge.jsx("table",{children:Ge.jsx("tbody",{children:Ge.jsx(AW,{header:r,value:e},r)})},r)):null]}),Otr=()=>{const{data:t,isLoading:r}=yg(),{operationId:e}=Lhe(),n=rs(O3);N3();const a=St.useMemo(()=>n?t==null?void 0:t.filter(u=>n[0]&&u.id<=n[1]):t,[t,n]);return Ge.jsxs("div",{className:"data-padding",children:[Ge.jsx(RA,{title:"GraphTree"}),r||!a?Ge.jsx("div",{className:"graph-tree-loader",children:Ge.jsx(Tv,{})}):Ge.jsx(Ltr,{operationList:a,operationId:e?parseInt(e,10):void 0})]})},LS=[{label:"ID",key:"id",sortable:!0},{label:"Total %",key:"total_percent",unit:"%",decimals:1,sortable:!0},{label:"Bound",key:"bound",colour:"yellow"},{label:"OP Code",key:"op_code",colour:"blue",sortable:!0,filterable:!0},{label:"Device Time",key:"device_time",unit:"µs",decimals:0,sortable:!0},{label:"Op-to-Op Gap",key:"op_to_op_gap",colour:"red",unit:"µs",decimals:0,sortable:!0},{label:"Cores",key:"cores",colour:"green",sortable:!0},{label:"DRAM",key:"dram",colour:"yellow",unit:"GB/s",sortable:!0},{label:"DRAM %",key:"dram_percent",colour:"yellow",unit:"%",sortable:!0},{label:"FLOPs",key:"flops",unit:"TFLOPs",sortable:!0},{label:"FLOPs %",key:"flops_percent",unit:"%",sortable:!0},{label:"Math Fidelity",key:"math_fidelity",colour:"cyan"}],Uue=1,Hue=5,ktr=({data:t})=>{const{getFilterOptions:r,updateFilters:e,activeFilters:n,FilterItem:a}=P1e("math_fidelity",t||[]),{sortTableFields:u,changeSorting:o,sortingColumn:f,sortDirection:i}=uAe(null),[s,d]=St.useState(!0),[l,h]=St.useState(!1),[y,b]=St.useState(!1),[C,m]=St.useState(!1),c=Cge(),{data:v}=yg(),g=St.useMemo(()=>LS.filter(x=>x.filterable).map(x=>x.key),[]),[p,I]=St.useState(Object.fromEntries(g.map(x=>[x,""]))),A=St.useMemo(()=>(t==null?void 0:t.map(x=>{var L;const S=parseInt(x.op_to_op_gap,10),w=(L=c.find(k=>k.perfId===x.id))==null?void 0:L.opId;return{...x,high_dispatch:!!S&&S>6.5,op:w}}))||[],[t,c]),T=St.useMemo(()=>{let x=A;Dtr(p)&&g&&(x=x.filter(w=>!(p&&Object.entries(p).filter(([k,F])=>String(F).length).some(([k,F])=>!Ntr(w,k).toLowerCase().includes(F.toLowerCase()))))),(n==null?void 0:n.length)>0&&(x=x.filter(w=>(w==null?void 0:w.math_fidelity)!==null&&n.includes(w.math_fidelity)));const S=x.map(w=>({...w,id:parseInt(w.id,10),total_percent:parseFloat(w.total_percent),device_time:parseFloat(w.device_time),op_to_op_gap:w.op_to_op_gap?parseFloat(w.op_to_op_gap):null,cores:parseInt(w.cores,10),dram:w.dram?parseFloat(w.dram):null,dram_percent:w.dram_percent?parseFloat(w.dram_percent):null,flops:w.flops?parseFloat(w.flops):null,flops_percent:w.flops_percent?parseFloat(w.flops_percent):null}));return u(S)},[A,u,p,g,n]),_=[...LS.slice(0,Uue),...c.length>0?[{label:"OP",key:"op",sortable:!0}]:[],...LS.slice(Uue,Hue),...y?[{label:"Slow",key:"high_dispatch"}]:[],...LS.slice(Hue)],E=(x,S)=>{I({...p,[x]:S??""})};return Ge.jsxs(Ge.Fragment,{children:[Ge.jsx(Wd,{className:"expand-button",label:s?"Merged device data":"Expanded device data",onChange:()=>d(!s),checked:s&&C,disabled:!C}),Ge.jsx(Wd,{className:"expand-button",label:l?"Hide Matmul optimization analysis":"Show Matmul optimization analysis",onChange:()=>h(!l),checked:l}),Ge.jsx(Wd,{className:"expand-button",label:"Highlight high dispatch ops",onChange:()=>b(!y),checked:y}),Ge.jsxs("div",{className:"perf-report",children:[Ge.jsxs("div",{className:"table-header",children:[Ge.jsx("h3",{className:"title",children:"Performance report"}),Ge.jsx("div",{className:"header-aside",children:Ge.jsx("p",{className:"result-count",children:T.length!==(t==null?void 0:t.length)?`Showing ${T.length} of ${t==null?void 0:t.length} rows`:`Showing ${T.length} rows`})})]}),Ge.jsxs("div",{className:"filters",children:[g.map(x=>{var S;return Ge.jsx(ED,{onQueryChanged:w=>E(x,w),placeholder:`Filter ${(S=LS.find(w=>w.key===x))==null?void 0:S.label}`,searchQuery:(p==null?void 0:p[x])||""},x)}),Ge.jsx(Pge,{items:t?r():[],placeholder:"Math fidelity filter...",onItemSelect:x=>e(x),selectedItems:n,itemRenderer:(x,S)=>a(String(x)),tagRenderer:x=>x,onRemove:x=>e(x),itemPredicate:(x,S)=>!x||String(S).toLowerCase().includes(x.toLowerCase()),noResults:Ge.jsx(gA,{disabled:!0,text:"No results.",roleStructure:"listoption"}),resetOnSelect:!0}),Ge.jsx(Na,{onClick:()=>o(null)(null),variant:s5.OUTLINED,disabled:f===null,children:"Reset sort"})]}),Ge.jsxs("table",{className:"perf-table monospace",children:[Ge.jsx("thead",{children:Ge.jsx("tr",{children:_.map(x=>{const S=f===x.key?i===G1.ASC?G1.DESC:G1.ASC:i;return Ge.jsx("th",{className:"cell-header",children:x.sortable?Ge.jsxs(Na,{onClick:()=>o(x.key)(S),variant:s5.MINIMAL,size:xde.SMALL,children:[Ge.jsx("span",{className:"header-label",children:x.label}),f===x.key?Ge.jsx(tl,{className:_i({"is-active":f===x.key},"sort-icon"),icon:i===G1.ASC?ki.CARET_DOWN:ki.CARET_UP}):Ge.jsx(tl,{className:_i("sort-icon"),icon:ki.CARET_DOWN})]}):Ge.jsx("span",{className:"header-label no-button",children:x.label})},x.key)})})}),Ge.jsx("tbody",{children:T.map((x,S)=>Ge.jsxs(St.Fragment,{children:[Ge.jsx("tr",{children:_.map(w=>Ge.jsx("td",{className:_i("cell",{"align-right":w.key==="math_fidelity"}),children:I9e(x,w,v,p==null?void 0:p[w.key])},w.key))}),l&&x.op_code.includes("Matmul")&&Ge.jsx("tr",{children:Ge.jsx("td",{colSpan:_.length,className:"cell advice",children:Ge.jsx("ul",{children:x==null?void 0:x.advice.map((w,L)=>Ge.jsx("li",{children:w},`advice-${L}`))})})})]},S))})]})]}),Ge.jsx("hr",{}),y&&w9e(A)]})};function Dtr(t){return t?Object.values(t).some(r=>r.length>0):!1}const Ntr=(t,r)=>{var n;return((n=t[r])==null?void 0:n.toString())||""},jue={grayskull:108,wormhole_b0:64};function Ftr(t,r){const e=Math.max(...r.filter(n=>n.cores).map(n=>parseInt(n.cores??"0",10)));return e>jue[t]?e:jue[t]}const A$="#575757",C$="#575757",w2="#FFF";function w_({chartData:t,configuration:r,title:e}){var u,o,f,i,s,d,l,h,y,b,C,m,c,v,g;const n={autosize:!0,paper_bgcolor:"transparent",plot_bgcolor:"transparent",showlegend:r.showLegend||!1,legend:{orientation:"h",font:{family:"sans-serif"},bgcolor:"#dee2e6",bordercolor:"#fff",borderwidth:2,x:.5,y:-.25,xanchor:"center"},margin:{l:50,r:0,b:50,t:0},barmode:r.barMode,xaxis:{gridcolor:A$,linecolor:C$,color:w2,title:{font:{color:w2},text:(o=(u=r.xAxis)==null?void 0:u.title)==null?void 0:o.text},fixedrange:!0,zeroline:!1,range:(f=r.xAxis)==null?void 0:f.range,tickformat:(i=r.xAxis)==null?void 0:i.tickformat,hoverformat:(s=r.xAxis)==null?void 0:s.hoverformat},yaxis:{gridcolor:A$,linecolor:C$,color:w2,title:{standoff:20,font:{color:w2},text:(l=(d=r.yAxis)==null?void 0:d.title)==null?void 0:l.text},automargin:!0,fixedrange:!0,zeroline:!1,range:(h=r.yAxis)==null?void 0:h.range,tickformat:(y=r.yAxis)==null?void 0:y.tickformat,hoverformat:(b=r.yAxis)==null?void 0:b.hoverformat},yaxis2:{gridcolor:A$,linecolor:C$,color:w2,title:{standoff:20,font:{color:w2},text:(m=(C=r.yAxis2)==null?void 0:C.title)==null?void 0:m.text},overlaying:"y",side:"right",automargin:!0,fixedrange:!0,zeroline:!1,range:(c=r.yAxis2)==null?void 0:c.range,tickformat:(v=r.yAxis2)==null?void 0:v.tickformat,hoverformat:(g=r.yAxis2)==null?void 0:g.hoverformat}},a={displayModeBar:!1,displaylogo:!1,responsive:!0};return Ge.jsxs("div",{className:"chart-container",children:[Ge.jsx("h3",{children:e}),Ge.jsx(TW,{className:"chart",data:t,layout:n,config:a,useResizeHandler:!0})]})}const i1=(t,r="",e="")=>t!==0?e:r,ztr=["#008BF8","#58B73B"],Btr=["#E27414","#E8C547"],R4=t=>ztr[t],iX=t=>Btr[t];function $tr({datasets:t=[]}){const r=rs(Lh),e=rs(PA),n=St.useMemo(()=>t.map((u,o)=>({x:u==null?void 0:u.map(f=>f.cores),y:u==null?void 0:u.map(f=>f.device_time),mode:"markers",type:"scatter",name:i1(o,r,e),marker:{size:10,color:R4(o)},hovertemplate:"Cores: %{x}<br />Device Kernel Duration: %{y} ns"})),[t,e,r]),a={showLegend:!0,xAxis:{title:{text:"Core Count"}},yAxis:{title:{text:"Device Kernel Duration (ns)"},tickformat:"d",hoverformat:",.2r"}};return Ge.jsx(w_,{title:"Device Kernel Duration vs Core Count",chartData:n,configuration:a})}function Utr({maxCores:t,datasets:r=[]}){const e=rs(Lh),n=rs(PA),a=r.reduce((i,s)=>Math.max(i,(s==null?void 0:s.length)||0),0),u=St.useMemo(()=>r.map((i,s)=>({x:i==null?void 0:i.map((d,l)=>l+1),y:i==null?void 0:i.map(d=>d.cores),type:"bar",hovertemplate:"Operation: %{x}<br />Cores: %{y}",name:i1(s,e,n),showlegend:!0,legendgroup:`group${s}`,marker:{color:R4(s)}})),[r,e,n]),o=St.useMemo(()=>r.map((i,s)=>({x:i==null?void 0:i.map((d,l)=>l+1),y:i==null?void 0:i.map(d=>d.device_time),yaxis:"y2",hovertemplate:"Operation: %{x}<br />Device Kernel Duration: %{y} ns",name:i1(s,e,n),showlegend:!0,legendgroup:`group${s}`,marker:{color:iX(s)}})),[r,e,n]),f={margin:{l:100,r:0,b:50,t:0},showLegend:!0,xAxis:{title:{text:"Operation"},range:[0,a]},yAxis:{title:{text:"Core Count"},tickformat:"d",hoverformat:",.2r",range:[0,t]},yAxis2:{title:{text:"Device Kernel Duration (ns)"},tickformat:"d",hoverformat:",.2r"}};return Ge.jsx(w_,{title:"Core Count + Device Kernel Runtime",chartData:[...u,...o],configuration:f})}function Htr({selectedOpCodes:t,datasets:r=[]}){const e=rs(Lh),n=rs(PA),a=r.flat(),u=St.useMemo(()=>[...new Set(a==null?void 0:a.filter(s=>s.raw_op_code!==void 0).map(s=>s.raw_op_code))],[a]),o=St.useMemo(()=>r.map((s,d)=>u.map(l=>{var h;return{x:[`Op Count ${r.length>1?`(${d+1})`:""}`],y:[s.filter(y=>y.raw_op_code===l).length/s.length],type:"bar",name:i1(d,e,n),hovertemplate:`${l}<br />%{y:.1%}`,marker:{color:(h=t.find(y=>y.opCode===l))==null?void 0:h.colour}}})),[r,u,t,e,n]),f=St.useMemo(()=>r.map((s,d)=>u.map(l=>{var h;return{x:[`Runtime % ${r.length>1?`(${d+1})`:""}`],y:[s.filter(y=>y.raw_op_code===l).reduce(Vue,0)/s.reduce(Vue,0)],type:"bar",name:i1(d,e,n),hovertemplate:`${l}<br />%{y:.1%}`,marker:{color:(h=t.find(y=>y.opCode===l))==null?void 0:h.colour}}})),[r,u,t,e,n]),i={margin:{l:0,r:0,b:0,t:0},barMode:"stack",yAxis:{tickformat:".0%",range:[0,1]}};return Ge.jsx(w_,{title:"Operation Count vs Runtime Contribution",chartData:[...o.flat(),...f.flat()],configuration:i})}const Vue=(t,r)=>t+(r.device_time?parseInt(r.device_time,10):0),jtr=({filteredPerfData:t,comparisonData:r,maxCores:e,selectedOpCodes:n})=>{const a=[t,...r||[]].filter(u=>u.length>0);return Ge.jsxs("div",{className:"charts",children:[Ge.jsx(Htr,{datasets:a,selectedOpCodes:n}),Ge.jsx(Utr,{datasets:a,maxCores:e}),Ge.jsx($tr,{datasets:a})]})},Vtr=25;function Gtr({opCodeOptions:t,selectedOpCodes:r,updateOpCodes:e}){const[n,a]=St.useState(!0),[u,o]=St.useState(!1);St.useEffect(()=>{r.length===0&&(a(!1),o(!1)),r.length>0&&r.length<t.length&&(a(!1),o(!0)),r.length===t.length&&(a(!0),o(!1))},[r,t]);const f=()=>{e(n?[]:t)},i=()=>n?"Deselect all":"Select all",s=d=>Ge.jsxs(Ge.Fragment,{children:[Ge.jsx("span",{className:"label",children:d.opCode.length>Vtr?Ge.jsx("span",{className:"abbreviated-label",title:d.opCode,children:d.opCode}):d.opCode}),Ge.jsx("div",{className:"memory-color-block",style:{backgroundColor:d.colour}})]});return Ge.jsx("aside",{className:"op-code-menu-container",children:Ge.jsxs("div",{className:"op-code-menu",children:[Ge.jsx("p",{className:"header",children:Ge.jsx("strong",{children:"Operation codes"})}),Ge.jsx("div",{className:"option select-all",children:Ge.jsx(JT,{checked:n,indeterminate:u,id:"select-all",onChange:f,label:i()})}),t.sort((d,l)=>d.opCode.localeCompare(l.opCode)).map(d=>Ge.jsx("div",{className:"option",children:Ge.jsx(JT,{className:"label-container",checked:r.map(l=>l.opCode).includes(d.opCode),id:d.opCode,labelElement:s(d),onChange:()=>{const l=r.includes(d)?r.filter(h=>h!==d):[...r,d];e(l)}},d.opCode)},d.opCode))]})})}const Wtr=["rgb(31, 119, 180)","rgb(255, 127, 14)","rgb(44, 160, 44)","rgb(214, 39, 40)","rgb(148, 103, 189)","rgb(140, 86, 75)","rgb(227, 119, 194)","rgb(188, 189, 34)","rgb(23, 190, 207)","rgb(255, 187, 120)","rgb(40, 108, 26)","rgb(255, 152, 150)","rgb(197, 176, 213)","rgb(196, 156, 148)","rgb(247, 182, 210)","rgb(199, 199, 199)","rgb(219, 219, 141)","rgb(158, 218, 229)","rgb(57, 59, 121)","rgb(82, 84, 163)","rgb(107, 110, 207)","rgb(156, 158, 222)","rgb(255, 127, 14)"];function aX(t,r){const e=t.pm_ideal_ns?parseFloat(t.pm_ideal_ns):null,n=t.device_time?parseFloat(t.device_time):null,a=t.cores?parseInt(t.cores,10):null;if(!cg(e)||!cg(n)||!cg(a))return 0;const u=n*1e3,o=e/u*(r/a);return cg(o)?o:0}function Gue({datasets:t=[],maxCores:r}){const e=rs(Lh),n=rs(PA),a=St.useMemo(()=>t.map((f,i)=>({x:f==null?void 0:f.map((s,d)=>d+1),y:f==null?void 0:f.map(s=>s.cores),type:"bar",hovertemplate:"<b>%{data.name}</b><br />Operation: %{x}<br />Cores: %{y}<extra></extra>",name:i1(i,e,n),legendgroup:`group${i}`,marker:{color:R4(i)}})),[t,e,n]),u=St.useMemo(()=>t.map((f,i)=>({x:f==null?void 0:f.map((s,d)=>d+1),y:f==null?void 0:f.map(s=>aX(s,r)).filter(s=>s!==-1),yaxis:"y2",hovertemplate:"<b>%{data.name}</b><br />Operation: %{x}<br />Utilization: %{y}<extra></extra>",name:i1(i,e,n),legendgroup:`group${i}`,marker:{color:iX(i)}})),[t,e,n,r]),o={margin:{l:100,r:0,b:50,t:0},showLegend:!0,xAxis:{title:{text:"Operation"},range:[0,Bge(t)]},yAxis:{title:{text:"Core Count"},tickformat:"d",hoverformat:",.2r",range:[0,r]},yAxis2:{title:{text:"Utilization (%)"},tickformat:".0%",hoverformat:".2%",range:[0,1]}};return Ge.jsx(w_,{title:"Core Count + Utilization",chartData:[...a,...u],configuration:o})}const Ztr={autosize:!0,paper_bgcolor:"transparent",margin:{l:50,r:50,b:50,t:50},showlegend:!1};function Wue({reportTitle:t,data:r=[],opCodes:e,className:n=""}){const a=St.useMemo(()=>[...new Set(r==null?void 0:r.filter(o=>o.raw_op_code!==void 0).map(o=>o.raw_op_code))],[r]),u=St.useMemo(()=>({values:a.map(o=>r.filter(f=>f.raw_op_code===o).length),labels:[...a],type:"pie",textinfo:"percent",hovertemplate:"%{label}<br />Count: %{value}<extra></extra>",marker:{colors:a.map(o=>{var f;return(f=e.find(i=>i.opCode===o))==null?void 0:f.colour})},outsidetextfont:{color:"white"}}),[r,e,a]);return Ge.jsxs("div",{className:_i("operation-types-chart",n),children:[Ge.jsx("h3",{children:"Operation Types"}),Ge.jsx("p",{children:t}),Ge.jsx(TW,{className:"chart",data:[u],layout:Ztr,config:ONe,useResizeHandler:!0})]})}const Zue=()=>Ge.jsxs("div",{className:"dummy-chart-container",children:[Ge.jsx("div",{className:"title"}),Ge.jsxs("div",{className:"dummy-chart",children:[Ge.jsx("div",{className:"bar",style:{height:"40%"}}),Ge.jsx("div",{className:"bar",style:{height:"60%"}}),Ge.jsx("div",{className:"bar",style:{height:"80%"}}),Ge.jsx("div",{className:"bar",style:{height:"50%"}}),Ge.jsx("div",{className:"bar",style:{height:"90%"}}),Ge.jsx("div",{className:"bar",style:{height:"30%"}}),Ge.jsx("div",{className:"bar",style:{height:"40%"}}),Ge.jsx("div",{className:"bar",style:{height:"60%"}}),Ge.jsx("div",{className:"bar",style:{height:"80%"}}),Ge.jsx("div",{className:"bar",style:{height:"50%"}}),Ge.jsx("div",{className:"bar",style:{height:"90%"}}),Ge.jsx("div",{className:"bar",style:{height:"30%"}})]})]});function Yue({datasets:t=[],maxCores:r}){const e=rs(Lh),n=rs(PA),a=St.useMemo(()=>t.map((i,s)=>({x:i==null?void 0:i.map((d,l)=>l+1),y:i==null?void 0:i.map(d=>d.device_time),type:"bar",hovertemplate:"<b>%{data.name}</b><br />Operation: %{x}<br />Duration: %{y} ns<extra></extra>",name:i1(s,e,n),legendgroup:`group${s}`,marker:{color:R4(s)}})),[t,e,n]),u=St.useMemo(()=>t.map((i,s)=>({x:i==null?void 0:i.map((d,l)=>l+1),y:(i==null?void 0:i.map(d=>aX(d,r)).filter(d=>d!==-1))??[],yaxis:"y2",hovertemplate:"<b>%{data.name}</b><br />Operation: %{x}<br />Utilization: %{y}<extra></extra>",name:i1(s,e,n),legendgroup:`group${s}`,marker:{color:iX(s)}})),[t,r,e,n]),o=Math.max(...a.flatMap(i=>i.y??[])),f={margin:{l:100,r:0,b:50,t:0},showLegend:!0,xAxis:{range:[0,Bge(t)],title:{text:"Operation"}},yAxis:{title:{text:"Device Kernel Duration (ns)"},tickformat:"d",hoverformat:",.2r",range:[0,o]},yAxis2:{title:{text:"Utilization (%)"},tickformat:".0%",hoverformat:".2%",range:[0,1]}};return Ge.jsx(w_,{title:"Device Kernel Duration + Utilization",chartData:[...a,...u],configuration:f})}function Xue({datasets:t,maxCores:r}){const e=rs(Lh),n=rs(PA),a=St.useMemo(()=>t.map((o,f)=>({x:o==null?void 0:o.map(i=>i.device_time),y:o==null?void 0:o.map(i=>aX(i,r)).filter(i=>i!==-1),mode:"markers",type:"scatter",name:i1(f,e,n),marker:{size:10,color:R4(f)},hovertemplate:"Duration: %{x} ns<br />Utilization: %{y}"})),[t,r,e,n]),u={showLegend:!0,xAxis:{title:{text:"Device Kernel Duration (ns)"},tickformat:"d",hoverformat:",.2r"},yAxis:{title:{text:"Utilization (%)"},tickformat:".0%",hoverformat:".2%"}};return Ge.jsx(w_,{title:"Utilization vs Device Kernel Duration",chartData:a,configuration:u})}const Ytr=({chartData:t,secondaryData:r=[],maxCores:e,opCodeOptions:n})=>{const a=rs(Lh),u=rs(PA),o=[t,...r||[]].filter(s=>s.length>0),f=St.useMemo(()=>o.map(s=>s.filter(d=>d.raw_op_code.toLowerCase().includes("matmul"))),[o]),i=St.useMemo(()=>o.map(s=>s.filter(d=>d.raw_op_code.toLowerCase().includes("conv"))),[o]);return Ge.jsxs("div",{className:"charts",children:[Ge.jsx("h2",{children:"Matmul operations"}),f.filter(s=>s.length).length>0?Ge.jsxs(Ge.Fragment,{children:[Ge.jsx(Gue,{datasets:f,maxCores:e}),Ge.jsx(Yue,{datasets:f,maxCores:e}),Ge.jsx(Xue,{datasets:f,maxCores:e})]}):Ge.jsx(Zue,{}),Ge.jsx("h2",{children:"Conv operations"}),i.filter(s=>s.length).length>0?Ge.jsxs(Ge.Fragment,{children:[Ge.jsx(Gue,{datasets:i,maxCores:e}),Ge.jsx(Yue,{datasets:i,maxCores:e}),Ge.jsx(Xue,{datasets:i,maxCores:e})]}):Ge.jsx(Zue,{}),Ge.jsx("h2",{children:"All operations"}),Ge.jsxs("div",{className:"operation-types-charts",children:[a&&Ge.jsx(Wue,{className:"flex-chart",reportTitle:u?a:"",data:t,opCodes:n}),u&&Ge.jsx(Wue,{className:"flex-chart",reportTitle:a?u:"",data:r[0],opCodes:n})]})]})};function Xtr(){var _;const[t,r]=Yl(PA),e=rs(Lh),[n,a]=Yl(jve),{data:u,isLoading:o}=s8e(),{data:f,isLoading:i}=TD(e),{data:s}=l8e(t),{data:d}=_ge(),l=Ige();N3();const h=St.useMemo(()=>Array.from(new Set([...(f==null?void 0:f.map(x=>x.raw_op_code).filter(x=>x!==void 0))||[],...(s==null?void 0:s.map(x=>x.raw_op_code).filter(x=>x!==void 0))||[]])).map((x,S)=>({opCode:x,colour:Wtr[S]})),[f,s]),[y,b]=St.useState("tab-1"),[C,m]=St.useState([]),[c,v]=St.useState([]),[g,p]=St.useState(h);St.useEffect(()=>{t===e&&r(null)},[t,e,r]),St.useEffect(()=>{t&&l&&a([l[0],l[1]])},[t,a,l]),St.useEffect(()=>{v((s==null?void 0:s.filter(E=>g.length?g.map(x=>x.opCode).includes(E.raw_op_code??""):!1))||[])},[g,s]),St.useEffect(()=>{m((f==null?void 0:f.filter(E=>g.length?g.map(x=>x.opCode).includes(E.raw_op_code??""):!1))||[])},[g,f]),St.useEffect(()=>{p(h)},[h]);const I=St.useMemo(()=>!t&&n&&C.length>0?C.filter(E=>{const x=parseInt(E==null?void 0:E.id,10);return x>=n[0]&&x<=n[1]}):C,[n,C,t]);if(i||o)return Ge.jsx(Tv,{});const A=((_=u==null?void 0:u.deviceMeta)==null?void 0:_.architecture)??LO.WORMHOLE,T=f?Ftr(A,f):0;return Ge.jsxs("div",{className:"performance data-padding",children:[Ge.jsx(RA,{title:"Performance"}),Ge.jsx("h1",{className:"page-title",children:"Performance analysis"}),d?Ge.jsx(Df,{className:"form-group",label:Ge.jsx("h3",{className:"label",children:"Compare"}),subLabel:"Select a performance report to compare",children:Ge.jsxs("div",{className:"folder-selection",children:[Ge.jsx(JU,{items:d.filter(E=>E!==e),value:t,handleSelect:E=>r(E)}),Ge.jsx(Na,{className:"clear-selection",variant:s5.OUTLINED,icon:ki.CROSS,onClick:()=>r(null)})]})}):Ge.jsx(Tv,{}),Ge.jsxs(Ave,{id:"performance-tabs",selectedTabId:y,onChange:b,renderActiveTabPanelOnly:!0,size:xde.LARGE,children:[Ge.jsx(e3,{id:"tab-1",title:"Table",icon:ki.TH,panel:Ge.jsx(ktr,{data:I})}),Ge.jsx(e3,{id:"tab-2",title:"Charts",icon:ki.TIMELINE_AREA_CHART,panel:Ge.jsxs("div",{className:"chart-tab",children:[Ge.jsxs("p",{children:[Ge.jsx("strong",{children:"Arch:"})," ",A]}),Ge.jsxs("p",{children:[Ge.jsx("strong",{children:"Cores:"})," ",T]}),f?Ge.jsxs(Ge.Fragment,{children:[Ge.jsxs("div",{className:"charts-container",children:[Ge.jsx(Gtr,{opCodeOptions:h,selectedOpCodes:g,updateOpCodes:p}),Ge.jsx(jtr,{filteredPerfData:I,comparisonData:[c],maxCores:T,selectedOpCodes:g})]}),Ge.jsxs("div",{className:"charts-container non-filterable-charts",children:[Ge.jsx("span",{}),Ge.jsx("div",{children:Ge.jsx(Ytr,{chartData:I,secondaryData:[s||[]],maxCores:T,opCodeOptions:h})})]})]}):null]})})]})]})}const Ktr={[jo.IDLE]:ki.DOT,[jo.PROGRESS]:ki.DOT,[jo.FAILED]:ki.CROSS,[jo.OK]:ki.TICK},Qtr={[jo.IDLE]:uo.NONE,[jo.PROGRESS]:uo.WARNING,[jo.FAILED]:uo.DANGER,[jo.OK]:uo.SUCCESS},Jtr=()=>{const[t,r]=St.useState(null),{uploadNpeFile:e}=Sge(),[n,a]=Yl(vD),[u,o]=St.useState(jo.IDLE),f=async i=>{var l,h,y,b;if(r("Uploading..."),o(jo.PROGRESS),!i.target.files)return;const s=(l=i.target.files)==null?void 0:l[0],d=await e(i.target.files);if(d.status!==200)o(jo.FAILED),r((h=d==null?void 0:d.data)==null?void 0:h.message);else if(((y=d==null?void 0:d.data)==null?void 0:y.status)!==jo.OK)o(jo.FAILED),r((b=d==null?void 0:d.data)==null?void 0:b.message);else{const C=s.name;a(C),N1("Active NPE",C),o(jo.OK),r(`${C} uploaded successfully`)}};return Ge.jsxs("div",{className:"npe-file-loader",children:[Ge.jsx(sve,{text:n??"Choose file...",onInputChange:f}),Ge.jsx("div",{className:`verify-connection-item status-${jo[u]}`,children:u?Ge.jsxs(Ge.Fragment,{children:[Ge.jsx(tl,{className:"connection-status-icon",icon:Ktr[u],size:20,intent:Qtr[u]}),Ge.jsx("span",{className:"connection-status-text",children:t})]}):null})]})},OS={version:null,arch:{units:"",label:"Architecture",description:"Architecture used (e.g. wormhole_b0, blackhole)"},congestion_model_name:{units:"",label:"Congestion Model",description:"Congestion model used in simulation to infer congestion (default: fast)"},cycles_per_timestep:{units:"cycles",label:"Device Cycles Per Timestep",description:"How many cycles each simulation timestep/frame spans"},device_name:{units:"",label:"Device Name",description:"Device simulated (e.g. wormhole_b0, blackhole)"},dram_bw_util:{units:"%",label:"DRAM Bandwidth Utilization",description:"% of DRAM RW bandwidth used over entire operation runtime (100% is maximum)"},link_demand:{units:"%",label:"NoC Link Demand",description:"Average demand for NoC links over entire runtime. Multiple packets requesting results in demand exceeding 100% for a given link. Demand be compared with link utilization to understand how localized congestion is."},link_util:{units:"%",label:"NoC Link Utilization",description:"Average utilization of NoC links over entire runtime. Link utilization saturates at 100% for every NoC link, no matter how much demand there is. Useful for understanding NoC toggle rate and overall efficiency of communication."},max_link_demand:{units:"%",label:"Max NoC Link Demand",description:"Maximum observed link demand over all timesteps. See link_demand for more details."},num_cols:{decimals:0,units:"",label:"Cols",description:"Number of core columns on the device."},num_rows:{decimals:0,units:"",label:"Rows",description:"Number of core rows on the device."}};var P1=(t=>(t.NOC1_NORTH="NOC1_NORTH",t.NOC0_SOUTH="NOC0_SOUTH",t.NOC0_EAST="NOC0_EAST",t.NOC1_WEST="NOC1_WEST",t.NOC0_IN="NOC0_IN",t.NOC0_OUT="NOC0_OUT",t.NOC1_IN="NOC1_IN",t.NOC1_OUT="NOC1_OUT",t))(P1||{}),Ss=(t=>(t[t.CHIP_ID=0]="CHIP_ID",t[t.Y=1]="Y",t[t.X=2]="X",t[t.NOC_ID=3]="NOC_ID",t[t.DEMAND=4]="DEMAND",t))(Ss||{});const I$=({width:t,height:r,data:e,isMulticolor:n=!1,style:a})=>{const o=new Map,f=new Map,i=e.filter((d,l,h)=>l===h.findIndex(y=>y.nocId===d.nocId&&y.color===d.color));i.forEach(d=>{if(!o.has(d.nocId))o.set(d.nocId,1);else{const l=o.get(d.nocId);o.set(d.nocId,l+1)}}),o.forEach((d,l)=>{f.set(l,[5,(d-1)*5])});const s=[];return Ge.jsx("svg",{width:t,height:r,style:a,"aria-description":i.map(d=>d.nocId).join(","),children:Ge.jsx("g",{children:i.map((d,l)=>{const h=s.find(b=>b.nocId===d.nocId),y=h?h.counter:0;return h?h.counter+=1:s.push({nocId:d.nocId,counter:1}),Ge.jsxs(St.Fragment,{children:[Ge.jsx("line",{x1:d.x1,y1:d.y1,x2:d.x2,y2:d.y2,stroke:d.color,strokeWidth:1,...n?{strokeDasharray:f.get(d.nocId).join(",")}:{},...n?{strokeDashoffset:y*f.get(d.nocId)[0]}:{}}),d.arrow&&!n&&Ge.jsx("polygon",{transform:d.transform,points:`${d.arrow.p1} ${d.arrow.p2} ${d.arrow.p3}`,fill:d.color||"white"}),d.arrow&&n&&Ge.jsx("polygon",{transform:d.transform,points:`${d.arrow.p1} ${d.arrow.p2} ${d.arrow.p3}`,fill:"#999"})]},`${l}-${d.x1}-${d.y1}-${d.x2}-${d.y2}`)})})})},W5=50,eh={x:25,y:W5-25},gTe=5,Eb=-5,Mb=-5,Rb=gTe,Pb=gTe,uC={x:W5-10,y:10},Av=2,Kue=["#FFFFFF","#FF0000","#0000FF","#FFFF00","#FF00FF","#FF4500","rgb(91,131,19)","#9400D3","#FFD700","#1E90FF","#007500","#FF69B4","#BA55D3","#7FFF00","#B22222"];function*qtr(){let t=0;for(;;)yield Kue[t],t=(t+1)%Kue.length}const err=qtr(),DL=new Map,pTe=t=>(DL.has(t)||DL.set(t,err.next().value),DL.get(t)||"#ffffff"),trr=()=>{DL.clear()},mTe=(t,r)=>{let e=0,n=0,a=0,u=0,o=9,f=9,i="",s=0,d=0,l={p1:"",p2:"",p3:""};switch(t){case P1.NOC1_NORTH:d=0,e=eh.x+Rb,a=eh.y+Pb,n=eh.x+Rb,u=0,l={p1:`${n-f/2},${u+o+d}`,p2:`${n+f/2},${u+o+d}`,p3:`${n},${u+d}`};break;case P1.NOC1_WEST:d=0,e=eh.x+Rb,n=0,a=eh.y+Pb,u=eh.y+Pb,l={p1:`${n+o+d},${u-f/2}`,p2:`${n+o+d},${u+f/2}`,p3:`${n+d},${u}`};break;case P1.NOC0_SOUTH:d=2,e=eh.x+Eb,n=eh.x+Eb,a=eh.y+Mb,u=W5,l={p1:`${n-f/2},${u-o-d}`,p2:`${n+f/2},${u-o-d}`,p3:`${n},${u-d}`};break;case P1.NOC0_EAST:d=2,e=eh.x+Eb,n=W5,a=eh.y+Mb,u=eh.y+Mb,l={p1:`${n-o-d},${u-f/2}`,p2:`${n-o-d},${u+f/2}`,p3:`${n-d},${u}`};break;case P1.NOC0_OUT:f=7,o=7,d=2,e=eh.x+Eb-Av,n=uC.x+Eb-Av,a=eh.y+Mb-Av,u=uC.y+Mb-Av,l={p1:`${n-f/2},${u+o-d}`,p2:`${n+f/2},${u+o-d}`,p3:`${n},${u-d}`},s=Math.atan2(u-a,n-e)*180/Math.PI+90,i=`rotate(${s} ${n} ${u})`;break;case P1.NOC0_IN:f=7,o=7,d=2,e=uC.x+Eb+Av,n=eh.x+Eb+Av,u=eh.y+Mb+Av,a=uC.y+Mb+Av,l={p1:`${n-f/2},${u+o-d}`,p2:`${n+f/2},${u+o-d}`,p3:`${n},${u-d}`},s=Math.atan2(u-a,n-e)*180/Math.PI+90,i=`rotate(${s} ${n} ${u})`;break;case P1.NOC1_OUT:f=7,o=7,d=0,e=eh.x+Rb-Av,n=uC.x+Rb-Av,a=eh.y+Pb-Av,u=uC.y+Pb-Av,l={p1:`${n-f/2},${u+o-d}`,p2:`${n+f/2},${u+o-d}`,p3:`${n},${u-d}`},s=Math.atan2(u-a,n-e)*180/Math.PI+90,i=`rotate(${s} ${n} ${u})`;break;case P1.NOC1_IN:f=7,o=7,d=0,e=uC.x+Rb+Av,n=eh.x+Rb+Av,u=eh.y+Pb+Av,a=uC.y+Pb+Av,l={p1:`${n-f/2},${u+o-d}`,p2:`${n+f/2},${u+o-d}`,p3:`${n},${u-d}`},s=Math.atan2(u-a,n-e)*180/Math.PI+90,i=`rotate(${s} ${n} ${u})`;break}return{x2:n,y2:u,x1:e,y1:a,arrow:l,transform:i,color:r,nocId:t}},DE=(t,r=0,e=!1)=>{if(t===-1)return"rgb(100, 100, 100)";const n=150,u=(Math.min(t,n)-r)/(n-r),o=Math.round(u*255);return e?`rgb(${o},${o},${255-o})`:`rgb(${o}, ${255-o}, 0)`},Que=t=>t.map(r=>mTe(r.nocId,pTe(r.transfer))),rrr=({timestepList:t,canvasWidth:r})=>{const e=St.useRef(null),n=30,[a,u]=St.useState(null),o=St.useMemo(()=>({worst:t.map(s=>{const d=Math.max(-1,...s.link_demand.map(h=>h[Ss.DEMAND])),l=DE(d);return{value:d,color:l}}),utilization:t.map(s=>({value:s.avg_link_util,color:DE(s.avg_link_util)})),demand:t.map(s=>{const d=DE(s.avg_link_demand);return{value:s.avg_link_demand,color:d}})}),[t]);St.useEffect(()=>{const s=e.current,d=s==null?void 0:s.getContext("2d");if(!s||!d)return;d.clearRect(0,0,s.width,s.height);const l=s.width/o.worst.length;o.worst.forEach(({color:h},y)=>{d.fillStyle=h,d.fillRect(y*l,0,l,s.height/3)}),o.utilization.forEach(({color:h},y)=>{d.fillStyle=h,d.fillRect(y*l,s.height/3,l,s.height/3*2)}),o.demand.forEach(({color:h},y)=>{d.fillStyle=h,d.fillRect(y*l,s.height/3*2,l,s.height)})},[o,r,n]);const f=s=>{const d=e.current;if(d){const l=d.getBoundingClientRect(),h=s.clientX-l.left,y=l.width/o.worst.length,b=Math.floor(h/y);b>-1?u({x:h,y:0,text:Ge.jsxs("div",{children:[Ge.jsxs("div",{children:[Ge.jsx("span",{style:{width:"10px",height:"10px",display:"inline-block",backgroundColor:o.worst[b].color}})," ","Max Demand:"," ",o.worst[b].value>-1?`${o.worst[b].value.toFixed(3)} %`:"N/A"]}),Ge.jsxs("div",{children:[Ge.jsx("span",{style:{width:"10px",height:"10px",display:"inline-block",backgroundColor:o.utilization[b].color}}),` Avg Utilization: ${o.utilization[b].value.toFixed(3)} %`]}),Ge.jsxs("div",{children:[Ge.jsx("span",{style:{width:"10px",height:"10px",display:"inline-block",backgroundColor:o.demand[b].color}}),` Avg Demand: ${o.demand[b].value.toFixed(3)} %`]})]})}):(e.current&&(e.current.style.cursor="default"),u(null))}},i=()=>{u(null)};return Ge.jsxs(Ge.Fragment,{children:[a&&Ge.jsx(Es,{content:a.text,position:sl.TOP,hoverOpenDelay:0,hoverCloseDelay:0,isOpen:!0,usePortal:!0,minimal:!0,modifiers:{offset:{enabled:!0,options:{offset:[a.x,n*1.5]}}},children:Ge.jsx("div",{style:{position:"absolute",top:0,left:`${a.x}px`,width:"0",height:"0",backgroundColor:"red",zIndex:100}})}),Ge.jsx("canvas",{style:{width:"100%",height:`${n}px`},ref:e,width:r,height:n,onMouseMove:f,onMouseLeave:i})]})},nrr=({groupedTransfersByNoCID:t,selectedNode:r,showActiveTransfers:e,highlightedTransfer:n,setHighlightedTransfer:a,congestionData:u})=>Ge.jsx("div",{className:"side-data",children:Object.keys(t).length!==0&&Ge.jsxs(Ge.Fragment,{children:[Ge.jsxs("h3",{children:["Active transfers through ",r==null?void 0:r.coords.join("-"),Ge.jsx(Na,{variant:"minimal",icon:ki.CROSS,onClick:()=>e(null)})]}),Object.entries(t).map(([o,f])=>{const i=u.find(d=>d[Ss.NOC_ID]===o),s=i?i[Ss.DEMAND]:0;return Ge.jsxs("div",{className:"local-transfer-ctn",children:[Ge.jsxs("h4",{children:["NOC ID: ",o,Ge.jsx("span",{className:"color-square",style:{backgroundColor:DE(s)}}),s.toFixed(2)]}),f.map(d=>Ge.jsxs("div",{className:"local-transfer",style:{opacity:n===null||n===d?1:.25},onMouseOver:()=>a(d),onMouseOut:()=>a(null),children:[Ge.jsx("div",{className:"color-square",style:{backgroundColor:pTe(d.id)}}),d.id,Ge.jsxs("div",{children:[Ge.jsx("span",{className:"transfer-src",children:d.src.join("-")})," ",Ge.jsx(tl,{size:12,icon:ki.ArrowRight})," ",Ge.jsx("span",{className:"transfer-dst",children:d.dst.length===1?d.dst[0].join("-"):`${d.dst[0].join("-")} - ${d.dst[d.dst.length-1].join("-")}`})]}),Ge.jsxs("div",{children:[Sh(d.total_bytes),"B"]}),Ge.jsx("div",{children:d.noc_event_type}),Ge.jsx("div",{children:Ge.jsxs("div",{className:"route",children:[d.route[0].injection_rate.toFixed(2)," b/cycle"]})})]},d.id))]},o)})]})}),irr=({info:t,numTransfers:r})=>{const e=u=>OS[u]!==void 0&&OS[u]!==null,n=(u,o)=>{if(!OS[u])return null;const i=OS[u],s=i.units,d=i.decimals!==void 0?i.decimals:2;return`${typeof o=="number"?Number(o).toFixed(d):o} ${s}`},a=u=>{const o=OS[u];if(!o)return null;const{label:f,description:i}=o;return Ge.jsx(Es,{content:i,children:f?`${f}: `:u})};return Ge.jsx("div",{className:"metadata",children:Ge.jsxs(MD,{label:Ge.jsx("h3",{className:"title",children:"Run summary"}),isOpen:!0,children:[Ge.jsx("div",{children:t&&Object.keys(t).map(u=>e(u)&&t[u]!==void 0?Ge.jsxs("div",{children:[Ge.jsxs("span",{children:[a(u),": "]}),Ge.jsx("span",{children:n(u,t[u])})]},u):null)}),Ge.jsx("hr",{}),Ge.jsxs("div",{children:[Ge.jsx("span",{children:"Active transfers:"}),Ge.jsx("span",{children:r})]})]})})},arr=({id:t,width:r,height:e,cores:n,dram:a,eth:u,pcie:o,showActiveTransfers:f,isAnnotatingCores:i,TENSIX_SIZE:s})=>{const d=l=>{const[h,y]=l;return n!=null&&n.some(b=>b[0]===h&&b[1]===y)?Ge.jsx("div",{className:"node-type-label node-type-c",children:"T"}):a!=null&&a.some(b=>b[0]===h&&b[1]===y)?Ge.jsx("div",{className:"node-type-label node-type-d",children:"d"}):u!=null&&u.some(b=>b[0]===h&&b[1]===y)?Ge.jsx("div",{className:"node-type-label node-type-e",children:"e"}):o!=null&&o.some(b=>b[0]===h&&b[1]===y)?Ge.jsx("div",{className:"node-type-label node-type-p",children:"p"}):Ge.jsx("div",{className:"node-type-label"})};return Ge.jsxs("div",{className:"tensix-grid empty",style:{display:"grid",gridTemplateColumns:`repeat(${r||0}, ${s}px)`,gridTemplateRows:`repeat(${e||0}, ${s}px)`},children:[Ge.jsx("div",{className:"chip-id",children:t}),Array.from({length:r}).map((l,h)=>Array.from({length:e}).map((y,b)=>Ge.jsx("div",{className:"tensix empty-tensix",onClick:()=>f(null),style:{gridColumn:h+1,gridRow:b+1,width:`${s}px`,height:`${s}px`},children:i?d([b,h]):""},`${h}-${b}`)))]})},orr=({transfer:t,clusterChip:r,index:e,getOriginOpacity:n})=>Ge.jsxs(Ge.Fragment,{children:[t.src&&r.id===t.src[Ss.CHIP_ID]&&Ge.jsx("div",{className:"tensix src-dst src",style:{gridColumn:t.src[Ss.X]+1,gridRow:t.src[Ss.Y]+1,opacity:n(t)}},`${t.id}-src-${e}`),t.dst.map(a=>{var o;const u=((o=t.src)==null?void 0:o.toString())===a.toString()?"both":"dst";return r.id===a[Ss.CHIP_ID]?Ge.jsx("div",{className:_i("tensix src-dst",u),style:{gridColumn:a[Ss.X]+1,gridRow:a[Ss.Y]+1,opacity:n(t)}},`${t.id}-dst-${e}-${a[Ss.Y]}-${a[Ss.X]}`):null})]}),srr=25,Jue=25,L1=W5,T2=L1,que=1,ece=2,lrr=({npeData:t})=>{var re,oe;const[r,e]=St.useState(null),[n,a]=St.useState(0),u=t.timestep_data[n],o=t.noc_transfers.filter(le=>u==null?void 0:u.active_transfers.includes(le.id)),[f,i]=St.useState(null),[s,d]=St.useState([]),[l,h]=St.useState(null),[y,b]=St.useState(0);let C=0;const[m,c]=St.useState(.75),v=Object.entries(t.chips).map(([le,me])=>(C=Math.max(C,me[tg.X]),{id:parseInt(le,10),coords:me})),[g,p]=St.useState(!1),[I,A]=St.useState(!0),[T,_]=St.useState(window.innerWidth);St.useEffect(()=>{const le=()=>_(window.innerWidth);return window.addEventListener("resize",le),()=>window.removeEventListener("resize",le)},[]);const{architecture:E,cores:x,dram:S,eth:w,pcie:L}=c8e(t.common_info.arch),k=((re=E.grid)==null?void 0:re.x_size)||10,F=((oe=E.grid)==null?void 0:oe.y_size)||12;St.useEffect(()=>{trr(),g&&Q()},[n,g]),St.useEffect(()=>{M(),a(0),h(null),d([]),e(null)},[t]);const N=St.useMemo(()=>{const le=new Map;return s.forEach(me=>{me.route.forEach(pe=>{pe.links.forEach(se=>{const[ne,J,ce]=se,he=le.get(ne)||[];he[J]=he[J]||[],he[J][ce]=he[J][ce]||[],he[J][ce].push({transfer:me.id,nocId:se[Ss.NOC_ID]}),le.set(ne,he)})})}),le},[s]),P=St.useMemo(()=>{if(!(l!=null&&l.coords))return{};const[le,me,pe]=l.coords,se={};return s.forEach(ne=>{ne.route.forEach(J=>{J.links.forEach(ce=>{const[he,ue,te]=ce;if(me===ue&&pe===te&&le===he){const ge=ce[Ss.NOC_ID];se[ge]||(se[ge]=[]),se[ge].push(ne)}})})}),se},[s,l]),z=(le=que)=>{b(le),clearInterval(f);const me=t.timestep_data.length,pe=setInterval(()=>{a(se=>se<me-1?se+1:0)},100/le);i(pe)},M=()=>(b(0),clearInterval(f)),R=()=>{z()},D=()=>{z(ece)},O=()=>{M()},H=()=>{M();const le=t.timestep_data.length;h(null),d([]),a(me=>me>0?me-1:le-1)},G=()=>{M(),h(null),d([]);const le=t.timestep_data.length;a(me=>me<le-1?me+1:0)},W=le=>{M(),a(le),h(null),d([])},X=(le,me)=>{if(Y(),le===null){d([]),h(null);return}if((l==null?void 0:l.index)===me){h(null),d([]);return}me!==void 0&&h({index:me,coords:[le[Ss.CHIP_ID],le[Ss.Y],le[Ss.X]]}),O();const pe=t.timestep_data[n].active_transfers.map(se=>{var ce;const ne=t.noc_transfers.find(he=>he.id===se),J=(ce=ne==null?void 0:ne.route)==null?void 0:ce.map(he=>he.links.some(ue=>ue[Ss.Y]===le[Ss.Y]&&ue[Ss.X]===le[Ss.X])?he:null).filter(he=>he!==null);if(J&&J.length>0)return ne}).filter(se=>se!==void 0);d(pe)},Y=()=>{p(!1),d([])},Q=()=>{p(!0),h(null);const le=t.timestep_data[n].active_transfers.map(me=>t.noc_transfers.find(pe=>pe.id===me)).filter(me=>me!==void 0);d(le)},V=le=>{if(g)return 0;if(r!==null&&r.id===le.id)return 1;if(r!==null)return .15;if(s.length===0)return 0;const me=s.some(pe=>pe.id===le.id);return s.length!==0&&!me?.15:.5},K=T-T/t.timestep_data.length-Jue;return Ge.jsxs("div",{className:"npe",children:[Ge.jsx(irr,{info:t.common_info,numTransfers:o.length}),Ge.jsxs("div",{className:"header",children:[Ge.jsxs(ny,{className:"npe-controls",children:[Ge.jsx(Na,{icon:ki.StepBackward,onClick:H}),Ge.jsx(Na,{icon:ki.Play,intent:y===que?uo.PRIMARY:uo.NONE,onClick:R}),Ge.jsx(Na,{icon:ki.FastForward,onClick:D,intent:y===ece?uo.PRIMARY:uo.NONE}),Ge.jsx(Na,{icon:ki.STOP,onClick:O}),Ge.jsx(Na,{icon:ki.StepForward,onClick:G}),"|",Ge.jsx(Wd,{label:"Show all active transfers",checked:g,onChange:()=>g?Y():Q()}),Ge.jsx(Wd,{label:"Annotate cores",checked:I,onChange:()=>A(!I)}),"|",Ge.jsxs("label",{children:["Zoom",Ge.jsx(DU,{"aria-label":"zoom",min:.1,max:2,stepSize:.1,labelStepSize:1,value:m,onChange:le=>c(le),labelRenderer:le=>`${le.toFixed(1)}`})]})]}),Ge.jsxs("div",{style:{position:"relative",width:`${K}px`},children:[Ge.jsx(DU,{min:0,max:t.timestep_data.length-1,stepSize:1,labelStepSize:t.timestep_data.length>srr?t.timestep_data.length/20:1,value:n,onChange:le=>W(le)}),Ge.jsx("div",{className:"bp5-slider-progress duplicate",style:{width:`${T-Jue}px`}})]}),Ge.jsx(rrr,{timestepList:t.timestep_data,canvasWidth:T})]}),Ge.jsxs("div",{className:"split-grid",children:[Ge.jsx("div",{className:_i("chip-cluster-wrap",{"details-open":l!==null}),style:{gridTemplateColumns:`repeat(${C||0}, ${(L1+1)*k}px)`,zoom:m},children:v.map(le=>{var me;return Ge.jsxs("div",{className:"chip",style:{gridColumn:le.coords[tg.X]+1,gridRow:le.coords[tg.Y]+1},children:[Ge.jsx(arr,{id:le.id,width:k,height:F,cores:x,dram:S,eth:w,pcie:L,showActiveTransfers:X,isAnnotatingCores:I,TENSIX_SIZE:L1}),Ge.jsxs("div",{className:"tensix-grid congestion",style:{display:"grid",gridTemplateColumns:`repeat(${k}, ${L1}px)`,gridTemplateRows:`repeat(${F}, ${L1}px)`},children:[o.map((pe,se)=>Ge.jsx(orr,{transfer:pe,clusterChip:le,index:se,getOriginOpacity:V},`${pe.id}-${se}`)),u==null?void 0:u.link_demand.map((pe,se)=>pe[Ss.CHIP_ID]===le.id?Ge.jsxs("button",{type:"button",className:`tensix ${pe[Ss.Y]}-${pe[Ss.X]}`,style:{position:"relative",gridColumn:pe[Ss.X]+1,gridRow:pe[Ss.Y]+1},onClick:()=>X(pe,se),children:[Ge.jsx(I$,{style:{opacity:r!==null||s.length!==0?.15:1},width:T2,height:T2,data:[mTe(pe[Ss.NOC_ID],DE(pe[Ss.DEMAND]))],isMulticolor:!1}),Ge.jsxs("div",{style:{fontSize:"9px",position:"absolute",top:0},children:[pe[Ss.Y],"-",pe[Ss.X]]})]},`${se}-${pe[Ss.Y]}-${pe[Ss.X]}-${pe[Ss.NOC_ID]}`):null)]}),Ge.jsx("div",{className:"tensix-grid transfers",style:{gridTemplateColumns:`repeat(${k}, ${L1}px)`,gridTemplateRows:`repeat(${F}, ${L1}px)`},children:(me=N.get(le.id))==null?void 0:me.map((pe,se)=>Ge.jsx(Ge.Fragment,{children:pe.map((ne,J)=>Ge.jsx("div",{className:(l==null?void 0:l.coords[Ss.Y])===se&&(l==null?void 0:l.coords[Ss.X])===J?"selected tensix no-click":"tensix no-click",style:{gridColumn:J+1,gridRow:se+1},children:Ge.jsx("div",{className:"transfer-render-ctn",children:Ge.jsx(I$,{style:{...r!==null?{opacity:.25}:{opacity:1}},width:T2,height:T2,data:Que(ne),isMulticolor:!0})})},`selected-transfer-${se}-${J}`))},`device-${le.id}-row-${se}`))}),r!==null&&Ge.jsx("div",{className:"tensix-grid transfer-single",style:{gridTemplateColumns:`repeat(${k}, ${L1}px)`,gridTemplateRows:`repeat(${F}, ${L1}px)`},children:r==null?void 0:r.route.map(pe=>pe.links.map(se=>se[Ss.CHIP_ID]===le.id?Ge.jsx("div",{className:"tensix",style:{position:"relative",gridColumn:se[Ss.X]+1,gridRow:se[Ss.Y]+1},children:Ge.jsx("div",{className:"transfer-render-ctn",children:Ge.jsx(I$,{width:T2,height:T2,data:Que([{transfer:r.id,nocId:se[Ss.NOC_ID]}]),isMulticolor:!1})})},`${se[Ss.Y]}-${se[Ss.X]}-${se[Ss.NOC_ID]}`):null))})]})})}),Ge.jsx(nrr,{groupedTransfersByNoCID:P,selectedNode:l,congestionData:u==null?void 0:u.link_demand.filter(le=>le[Ss.Y]===(l==null?void 0:l.coords[Ss.Y])&&le[Ss.X]===(l==null?void 0:l.coords[Ss.X])),showActiveTransfers:X,highlightedTransfer:r,setHighlightedTransfer:e})]})]})},sV=t=>{if(!t)return null;const r=/^(\d+)\.(\d+)\.(\d+)(?:-([\w.-]+))?$/,e=t.match(r);if(!e)return null;const[,n,a,u,o]=e;return{major:parseInt(n,10),minor:parseInt(a,10),patch:parseInt(u,10),...o?{prerelease:o}:{}}},yTe="1.0.0",tce=Ge.jsx("a",{target:"_blank",href:"https://github.com/tenstorrent/tt-npe",rel:"noreferrer",children:"tt-npe"}),urr=()=>{const t=rs(vD),{data:r,isLoading:e}=qDe(t);return Ge.jsxs(Ge.Fragment,{children:[Ge.jsx(RA,{title:"NPE"}),Ge.jsx("h1",{className:"page-title",children:"NOC performance estimator"}),Ge.jsx(Jtr,{}),e?Ge.jsx(Tv,{}):r?crr(r)?Ge.jsx(lrr,{npeData:r}):Ge.jsxs(Ge.Fragment,{children:[Ge.jsxs("p",{children:["Invalid NPE data or version. Current supported version is ",yTe," got ",r.common_info.version||"null",";"]}),Ge.jsxs("p",{children:["Use ",tce," to generate new NPE dataset",rce(r.common_info.version)?Ge.jsxs(Ge.Fragment,{children:[" ","or install an older version of the visualizer"," ",Ge.jsxs("pre",{children:["pip install ttnn-visualizer==",rce(r.common_info.version)]})]}):null]})]}):Ge.jsxs(Ge.Fragment,{children:[Ge.jsx("p",{children:"Please upload a NPE file for analysis."}),Ge.jsxs("p",{children:["See ",tce," for details on how to generate NPE files."]})]})]})},crr=t=>{if(!["common_info","noc_transfers","timestep_data"].every(u=>u in t))return!1;const n=sV(t.common_info.version);if(!n)return!1;const a=sV(yTe);return(n==null?void 0:n.major)===(a==null?void 0:a.major)},rce=t=>{switch(sV(t)){case null:case void 0:return"0.32.3";default:return""}},ATe=[{index:!0,element:Ge.jsx(r9e,{})},{path:os.OPERATIONS,element:Ge.jsx(R9e,{})},{path:`${os.OPERATIONS}/:operationId`,element:Ge.jsx(Wht,{})},{path:os.TENSORS,element:Ge.jsx(Jht,{})},{path:os.BUFFERS,element:Ge.jsx(kgt,{})},{path:os.STYLEGUIDE,element:Ge.jsx(Fgt,{})},{path:`${os.GRAPHTREE}/:operationId?`,element:Ge.jsx(Otr,{})},{path:os.PERFORMANCE,element:Ge.jsx(Xtr,{})},{path:os.NPE,element:Ge.jsx(urr,{})},{path:os.CLUSTER,element:null}],frr=aM({enter:"Toastify--animate Toastify__bounce-enter",exit:" no-toast-animation Toastify__bounce-exit",appendPosition:!0,collapseDuration:0,collapse:!0});function hrr(){const t="0.33.1",r=qm(l0),e=qm(Lh),n=qm(vD),{data:a}=gW(),u=uy(),o=u.state;return St.useEffect(()=>{var f,i,s;a!=null&&a.active_report&&(r(((f=a.active_report)==null?void 0:f.profiler_name)??null),e(((i=a.active_report)==null?void 0:i.performance_name)??null),n(((s=a.active_report)==null?void 0:s.npe_name)??null))},[a,r,e,n]),Ge.jsxs("div",{className:HT,children:[Ge.jsx(RA,{defaultTitle:"TT-NN Visualizer",titleTemplate:"%s | TT-NN Visualizer",children:Ge.jsx("meta",{charSet:"utf-8"})}),Ge.jsx("header",{className:"app-header",children:Ge.jsxs("nav",{className:"nav-container",children:[Ge.jsxs("a",{href:os.HOME,className:"title",children:[Ge.jsxs("h1",{children:[Ge.jsx("img",{width:250,alt:"tenstorrent",src:"https://docs.tenstorrent.com/tt-tm-assets/Logo/Standard%20Lockup/svg/tt_logo_color-orange-whitetext.svg"}),Ge.jsx("span",{className:"visualizer-title",children:"TT-NN Visualizer"})]}),Ge.jsxs("sup",{className:"version",children:["v",t]})]}),Ge.jsx(p8e,{})]})}),Ge.jsxs("main",{children:[Ge.jsx(E8e,{routes:ATe}),u.pathname===os.CLUSTER&&(o==null?void 0:o.background)&&Ge.jsx(_8e,{}),Ge.jsx(pOe,{position:"top-right",autoClose:!1,newestOnTop:!1,closeOnClick:!0,closeButton:!1,theme:"light",transition:frr})]}),Ge.jsx(I8e,{})]})}const a1=Object.create(null);a1.open="0";a1.close="1";a1.ping="2";a1.pong="3";a1.message="4";a1.upgrade="5";a1.noop="6";const NL=Object.create(null);Object.keys(a1).forEach(t=>{NL[a1[t]]=t});const lV={type:"error",data:"parser error"},CTe=typeof Blob=="function"||typeof Blob<"u"&&Object.prototype.toString.call(Blob)==="[object BlobConstructor]",ITe=typeof ArrayBuffer=="function",bTe=t=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(t):t&&t.buffer instanceof ArrayBuffer,oX=({type:t,data:r},e,n)=>CTe&&r instanceof Blob?e?n(r):nce(r,n):ITe&&(r instanceof ArrayBuffer||bTe(r))?e?n(r):nce(new Blob([r]),n):n(a1[t]+(r||"")),nce=(t,r)=>{const e=new FileReader;return e.onload=function(){const n=e.result.split(",")[1];r("b"+(n||""))},e.readAsDataURL(t)};function ice(t){return t instanceof Uint8Array?t:t instanceof ArrayBuffer?new Uint8Array(t):new Uint8Array(t.buffer,t.byteOffset,t.byteLength)}let b$;function drr(t,r){if(CTe&&t.data instanceof Blob)return t.data.arrayBuffer().then(ice).then(r);if(ITe&&(t.data instanceof ArrayBuffer||bTe(t.data)))return r(ice(t.data));oX(t,!1,e=>{b$||(b$=new TextEncoder),r(b$.encode(e))})}const ace="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",qS=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(let t=0;t<ace.length;t++)qS[ace.charCodeAt(t)]=t;const vrr=t=>{let r=t.length*.75,e=t.length,n,a=0,u,o,f,i;t[t.length-1]==="="&&(r--,t[t.length-2]==="="&&r--);const s=new ArrayBuffer(r),d=new Uint8Array(s);for(n=0;n<e;n+=4)u=qS[t.charCodeAt(n)],o=qS[t.charCodeAt(n+1)],f=qS[t.charCodeAt(n+2)],i=qS[t.charCodeAt(n+3)],d[a++]=u<<2|o>>4,d[a++]=(o&15)<<4|f>>2,d[a++]=(f&3)<<6|i&63;return s},grr=typeof ArrayBuffer=="function",sX=(t,r)=>{if(typeof t!="string")return{type:"message",data:xTe(t,r)};const e=t.charAt(0);return e==="b"?{type:"message",data:prr(t.substring(1),r)}:NL[e]?t.length>1?{type:NL[e],data:t.substring(1)}:{type:NL[e]}:lV},prr=(t,r)=>{if(grr){const e=vrr(t);return xTe(e,r)}else return{base64:!0,data:t}},xTe=(t,r)=>{switch(r){case"blob":return t instanceof Blob?t:new Blob([t]);case"arraybuffer":default:return t instanceof ArrayBuffer?t:t.buffer}},wTe="",mrr=(t,r)=>{const e=t.length,n=new Array(e);let a=0;t.forEach((u,o)=>{oX(u,!1,f=>{n[o]=f,++a===e&&r(n.join(wTe))})})},yrr=(t,r)=>{const e=t.split(wTe),n=[];for(let a=0;a<e.length;a++){const u=sX(e[a],r);if(n.push(u),u.type==="error")break}return n};function Arr(){return new TransformStream({transform(t,r){drr(t,e=>{const n=e.length;let a;if(n<126)a=new Uint8Array(1),new DataView(a.buffer).setUint8(0,n);else if(n<65536){a=new Uint8Array(3);const u=new DataView(a.buffer);u.setUint8(0,126),u.setUint16(1,n)}else{a=new Uint8Array(9);const u=new DataView(a.buffer);u.setUint8(0,127),u.setBigUint64(1,BigInt(n))}t.data&&typeof t.data!="string"&&(a[0]|=128),r.enqueue(a),r.enqueue(e)})}})}let x$;function S6(t){return t.reduce((r,e)=>r+e.length,0)}function E6(t,r){if(t[0].length===r)return t.shift();const e=new Uint8Array(r);let n=0;for(let a=0;a<r;a++)e[a]=t[0][n++],n===t[0].length&&(t.shift(),n=0);return t.length&&n<t[0].length&&(t[0]=t[0].slice(n)),e}function Crr(t,r){x$||(x$=new TextDecoder);const e=[];let n=0,a=-1,u=!1;return new TransformStream({transform(o,f){for(e.push(o);;){if(n===0){if(S6(e)<1)break;const i=E6(e,1);u=(i[0]&128)===128,a=i[0]&127,a<126?n=3:a===126?n=1:n=2}else if(n===1){if(S6(e)<2)break;const i=E6(e,2);a=new DataView(i.buffer,i.byteOffset,i.length).getUint16(0),n=3}else if(n===2){if(S6(e)<8)break;const i=E6(e,8),s=new DataView(i.buffer,i.byteOffset,i.length),d=s.getUint32(0);if(d>Math.pow(2,21)-1){f.enqueue(lV);break}a=d*Math.pow(2,32)+s.getUint32(4),n=3}else{if(S6(e)<a)break;const i=E6(e,a);f.enqueue(sX(u?i:x$.decode(i),r)),n=0}if(a===0||a>t){f.enqueue(lV);break}}}})}const TTe=4;function nh(t){if(t)return Irr(t)}function Irr(t){for(var r in nh.prototype)t[r]=nh.prototype[r];return t}nh.prototype.on=nh.prototype.addEventListener=function(t,r){return this._callbacks=this._callbacks||{},(this._callbacks["$"+t]=this._callbacks["$"+t]||[]).push(r),this};nh.prototype.once=function(t,r){function e(){this.off(t,e),r.apply(this,arguments)}return e.fn=r,this.on(t,e),this};nh.prototype.off=nh.prototype.removeListener=nh.prototype.removeAllListeners=nh.prototype.removeEventListener=function(t,r){if(this._callbacks=this._callbacks||{},arguments.length==0)return this._callbacks={},this;var e=this._callbacks["$"+t];if(!e)return this;if(arguments.length==1)return delete this._callbacks["$"+t],this;for(var n,a=0;a<e.length;a++)if(n=e[a],n===r||n.fn===r){e.splice(a,1);break}return e.length===0&&delete this._callbacks["$"+t],this};nh.prototype.emit=function(t){this._callbacks=this._callbacks||{};for(var r=new Array(arguments.length-1),e=this._callbacks["$"+t],n=1;n<arguments.length;n++)r[n-1]=arguments[n];if(e){e=e.slice(0);for(var n=0,a=e.length;n<a;++n)e[n].apply(this,r)}return this};nh.prototype.emitReserved=nh.prototype.emit;nh.prototype.listeners=function(t){return this._callbacks=this._callbacks||{},this._callbacks["$"+t]||[]};nh.prototype.hasListeners=function(t){return!!this.listeners(t).length};const c9=typeof Promise=="function"&&typeof Promise.resolve=="function"?r=>Promise.resolve().then(r):(r,e)=>e(r,0),Wm=typeof self<"u"?self:typeof window<"u"?window:Function("return this")(),brr="arraybuffer";function _Te(t,...r){return r.reduce((e,n)=>(t.hasOwnProperty(n)&&(e[n]=t[n]),e),{})}const xrr=Wm.setTimeout,wrr=Wm.clearTimeout;function f9(t,r){r.useNativeTimers?(t.setTimeoutFn=xrr.bind(Wm),t.clearTimeoutFn=wrr.bind(Wm)):(t.setTimeoutFn=Wm.setTimeout.bind(Wm),t.clearTimeoutFn=Wm.clearTimeout.bind(Wm))}const Trr=1.33;function _rr(t){return typeof t=="string"?Srr(t):Math.ceil((t.byteLength||t.size)*Trr)}function Srr(t){let r=0,e=0;for(let n=0,a=t.length;n<a;n++)r=t.charCodeAt(n),r<128?e+=1:r<2048?e+=2:r<55296||r>=57344?e+=3:(n++,e+=4);return e}function STe(){return Date.now().toString(36).substring(3)+Math.random().toString(36).substring(2,5)}function Err(t){let r="";for(let e in t)t.hasOwnProperty(e)&&(r.length&&(r+="&"),r+=encodeURIComponent(e)+"="+encodeURIComponent(t[e]));return r}function Mrr(t){let r={},e=t.split("&");for(let n=0,a=e.length;n<a;n++){let u=e[n].split("=");r[decodeURIComponent(u[0])]=decodeURIComponent(u[1])}return r}class Rrr extends Error{constructor(r,e,n){super(r),this.description=e,this.context=n,this.type="TransportError"}}class lX extends nh{constructor(r){super(),this.writable=!1,f9(this,r),this.opts=r,this.query=r.query,this.socket=r.socket,this.supportsBinary=!r.forceBase64}onError(r,e,n){return super.emitReserved("error",new Rrr(r,e,n)),this}open(){return this.readyState="opening",this.doOpen(),this}close(){return(this.readyState==="opening"||this.readyState==="open")&&(this.doClose(),this.onClose()),this}send(r){this.readyState==="open"&&this.write(r)}onOpen(){this.readyState="open",this.writable=!0,super.emitReserved("open")}onData(r){const e=sX(r,this.socket.binaryType);this.onPacket(e)}onPacket(r){super.emitReserved("packet",r)}onClose(r){this.readyState="closed",super.emitReserved("close",r)}pause(r){}createUri(r,e={}){return r+"://"+this._hostname()+this._port()+this.opts.path+this._query(e)}_hostname(){const r=this.opts.hostname;return r.indexOf(":")===-1?r:"["+r+"]"}_port(){return this.opts.port&&(this.opts.secure&&+(this.opts.port!==443)||!this.opts.secure&&Number(this.opts.port)!==80)?":"+this.opts.port:""}_query(r){const e=Err(r);return e.length?"?"+e:""}}class Prr extends lX{constructor(){super(...arguments),this._polling=!1}get name(){return"polling"}doOpen(){this._poll()}pause(r){this.readyState="pausing";const e=()=>{this.readyState="paused",r()};if(this._polling||!this.writable){let n=0;this._polling&&(n++,this.once("pollComplete",function(){--n||e()})),this.writable||(n++,this.once("drain",function(){--n||e()}))}else e()}_poll(){this._polling=!0,this.doPoll(),this.emitReserved("poll")}onData(r){const e=n=>{if(this.readyState==="opening"&&n.type==="open"&&this.onOpen(),n.type==="close")return this.onClose({description:"transport closed by the server"}),!1;this.onPacket(n)};yrr(r,this.socket.binaryType).forEach(e),this.readyState!=="closed"&&(this._polling=!1,this.emitReserved("pollComplete"),this.readyState==="open"&&this._poll())}doClose(){const r=()=>{this.write([{type:"close"}])};this.readyState==="open"?r():this.once("open",r)}write(r){this.writable=!1,mrr(r,e=>{this.doWrite(e,()=>{this.writable=!0,this.emitReserved("drain")})})}uri(){const r=this.opts.secure?"https":"http",e=this.query||{};return this.opts.timestampRequests!==!1&&(e[this.opts.timestampParam]=STe()),!this.supportsBinary&&!e.sid&&(e.b64=1),this.createUri(r,e)}}let ETe=!1;try{ETe=typeof XMLHttpRequest<"u"&&"withCredentials"in new XMLHttpRequest}catch{}const Lrr=ETe;function Orr(){}class krr extends Prr{constructor(r){if(super(r),typeof location<"u"){const e=location.protocol==="https:";let n=location.port;n||(n=e?"443":"80"),this.xd=typeof location<"u"&&r.hostname!==location.hostname||n!==r.port}}doWrite(r,e){const n=this.request({method:"POST",data:r});n.on("success",e),n.on("error",(a,u)=>{this.onError("xhr post error",a,u)})}doPoll(){const r=this.request();r.on("data",this.onData.bind(this)),r.on("error",(e,n)=>{this.onError("xhr poll error",e,n)}),this.pollXhr=r}}let LT=class FL extends nh{constructor(r,e,n){super(),this.createRequest=r,f9(this,n),this._opts=n,this._method=n.method||"GET",this._uri=e,this._data=n.data!==void 0?n.data:null,this._create()}_create(){var r;const e=_Te(this._opts,"agent","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","autoUnref");e.xdomain=!!this._opts.xd;const n=this._xhr=this.createRequest(e);try{n.open(this._method,this._uri,!0);try{if(this._opts.extraHeaders){n.setDisableHeaderCheck&&n.setDisableHeaderCheck(!0);for(let a in this._opts.extraHeaders)this._opts.extraHeaders.hasOwnProperty(a)&&n.setRequestHeader(a,this._opts.extraHeaders[a])}}catch{}if(this._method==="POST")try{n.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch{}try{n.setRequestHeader("Accept","*/*")}catch{}(r=this._opts.cookieJar)===null||r===void 0||r.addCookies(n),"withCredentials"in n&&(n.withCredentials=this._opts.withCredentials),this._opts.requestTimeout&&(n.timeout=this._opts.requestTimeout),n.onreadystatechange=()=>{var a;n.readyState===3&&((a=this._opts.cookieJar)===null||a===void 0||a.parseCookies(n.getResponseHeader("set-cookie"))),n.readyState===4&&(n.status===200||n.status===1223?this._onLoad():this.setTimeoutFn(()=>{this._onError(typeof n.status=="number"?n.status:0)},0))},n.send(this._data)}catch(a){this.setTimeoutFn(()=>{this._onError(a)},0);return}typeof document<"u"&&(this._index=FL.requestsCount++,FL.requests[this._index]=this)}_onError(r){this.emitReserved("error",r,this._xhr),this._cleanup(!0)}_cleanup(r){if(!(typeof this._xhr>"u"||this._xhr===null)){if(this._xhr.onreadystatechange=Orr,r)try{this._xhr.abort()}catch{}typeof document<"u"&&delete FL.requests[this._index],this._xhr=null}}_onLoad(){const r=this._xhr.responseText;r!==null&&(this.emitReserved("data",r),this.emitReserved("success"),this._cleanup())}abort(){this._cleanup()}};LT.requestsCount=0;LT.requests={};if(typeof document<"u"){if(typeof attachEvent=="function")attachEvent("onunload",oce);else if(typeof addEventListener=="function"){const t="onpagehide"in Wm?"pagehide":"unload";addEventListener(t,oce,!1)}}function oce(){for(let t in LT.requests)LT.requests.hasOwnProperty(t)&&LT.requests[t].abort()}const Drr=function(){const t=MTe({xdomain:!1});return t&&t.responseType!==null}();class Nrr extends krr{constructor(r){super(r);const e=r&&r.forceBase64;this.supportsBinary=Drr&&!e}request(r={}){return Object.assign(r,{xd:this.xd},this.opts),new LT(MTe,this.uri(),r)}}function MTe(t){const r=t.xdomain;try{if(typeof XMLHttpRequest<"u"&&(!r||Lrr))return new XMLHttpRequest}catch{}if(!r)try{return new Wm[["Active"].concat("Object").join("X")]("Microsoft.XMLHTTP")}catch{}}const RTe=typeof navigator<"u"&&typeof navigator.product=="string"&&navigator.product.toLowerCase()==="reactnative";class Frr extends lX{get name(){return"websocket"}doOpen(){const r=this.uri(),e=this.opts.protocols,n=RTe?{}:_Te(this.opts,"agent","perMessageDeflate","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","localAddress","protocolVersion","origin","maxPayload","family","checkServerIdentity");this.opts.extraHeaders&&(n.headers=this.opts.extraHeaders);try{this.ws=this.createSocket(r,e,n)}catch(a){return this.emitReserved("error",a)}this.ws.binaryType=this.socket.binaryType,this.addEventListeners()}addEventListeners(){this.ws.onopen=()=>{this.opts.autoUnref&&this.ws._socket.unref(),this.onOpen()},this.ws.onclose=r=>this.onClose({description:"websocket connection closed",context:r}),this.ws.onmessage=r=>this.onData(r.data),this.ws.onerror=r=>this.onError("websocket error",r)}write(r){this.writable=!1;for(let e=0;e<r.length;e++){const n=r[e],a=e===r.length-1;oX(n,this.supportsBinary,u=>{try{this.doWrite(n,u)}catch{}a&&c9(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){typeof this.ws<"u"&&(this.ws.onerror=()=>{},this.ws.close(),this.ws=null)}uri(){const r=this.opts.secure?"wss":"ws",e=this.query||{};return this.opts.timestampRequests&&(e[this.opts.timestampParam]=STe()),this.supportsBinary||(e.b64=1),this.createUri(r,e)}}const w$=Wm.WebSocket||Wm.MozWebSocket;class zrr extends Frr{createSocket(r,e,n){return RTe?new w$(r,e,n):e?new w$(r,e):new w$(r)}doWrite(r,e){this.ws.send(e)}}class Brr extends lX{get name(){return"webtransport"}doOpen(){try{this._transport=new WebTransport(this.createUri("https"),this.opts.transportOptions[this.name])}catch(r){return this.emitReserved("error",r)}this._transport.closed.then(()=>{this.onClose()}).catch(r=>{this.onError("webtransport error",r)}),this._transport.ready.then(()=>{this._transport.createBidirectionalStream().then(r=>{const e=Crr(Number.MAX_SAFE_INTEGER,this.socket.binaryType),n=r.readable.pipeThrough(e).getReader(),a=Arr();a.readable.pipeTo(r.writable),this._writer=a.writable.getWriter();const u=()=>{n.read().then(({done:f,value:i})=>{f||(this.onPacket(i),u())}).catch(f=>{})};u();const o={type:"open"};this.query.sid&&(o.data=`{"sid":"${this.query.sid}"}`),this._writer.write(o).then(()=>this.onOpen())})})}write(r){this.writable=!1;for(let e=0;e<r.length;e++){const n=r[e],a=e===r.length-1;this._writer.write(n).then(()=>{a&&c9(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){var r;(r=this._transport)===null||r===void 0||r.close()}}const $rr={websocket:zrr,webtransport:Brr,polling:Nrr},Urr=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,Hrr=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];function uV(t){if(t.length>8e3)throw"URI too long";const r=t,e=t.indexOf("["),n=t.indexOf("]");e!=-1&&n!=-1&&(t=t.substring(0,e)+t.substring(e,n).replace(/:/g,";")+t.substring(n,t.length));let a=Urr.exec(t||""),u={},o=14;for(;o--;)u[Hrr[o]]=a[o]||"";return e!=-1&&n!=-1&&(u.source=r,u.host=u.host.substring(1,u.host.length-1).replace(/;/g,":"),u.authority=u.authority.replace("[","").replace("]","").replace(/;/g,":"),u.ipv6uri=!0),u.pathNames=jrr(u,u.path),u.queryKey=Vrr(u,u.query),u}function jrr(t,r){const e=/\/{2,9}/g,n=r.replace(e,"/").split("/");return(r.slice(0,1)=="/"||r.length===0)&&n.splice(0,1),r.slice(-1)=="/"&&n.splice(n.length-1,1),n}function Vrr(t,r){const e={};return r.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(n,a,u){a&&(e[a]=u)}),e}const cV=typeof addEventListener=="function"&&typeof removeEventListener=="function",zL=[];cV&&addEventListener("offline",()=>{zL.forEach(t=>t())},!1);class aI extends nh{constructor(r,e){if(super(),this.binaryType=brr,this.writeBuffer=[],this._prevBufferLen=0,this._pingInterval=-1,this._pingTimeout=-1,this._maxPayload=-1,this._pingTimeoutTime=1/0,r&&typeof r=="object"&&(e=r,r=null),r){const n=uV(r);e.hostname=n.host,e.secure=n.protocol==="https"||n.protocol==="wss",e.port=n.port,n.query&&(e.query=n.query)}else e.host&&(e.hostname=uV(e.host).host);f9(this,e),this.secure=e.secure!=null?e.secure:typeof location<"u"&&location.protocol==="https:",e.hostname&&!e.port&&(e.port=this.secure?"443":"80"),this.hostname=e.hostname||(typeof location<"u"?location.hostname:"localhost"),this.port=e.port||(typeof location<"u"&&location.port?location.port:this.secure?"443":"80"),this.transports=[],this._transportsByName={},e.transports.forEach(n=>{const a=n.prototype.name;this.transports.push(a),this._transportsByName[a]=n}),this.opts=Object.assign({path:"/engine.io",agent:!1,withCredentials:!1,upgrade:!0,timestampParam:"t",rememberUpgrade:!1,addTrailingSlash:!0,rejectUnauthorized:!0,perMessageDeflate:{threshold:1024},transportOptions:{},closeOnBeforeunload:!1},e),this.opts.path=this.opts.path.replace(/\/$/,"")+(this.opts.addTrailingSlash?"/":""),typeof this.opts.query=="string"&&(this.opts.query=Mrr(this.opts.query)),cV&&(this.opts.closeOnBeforeunload&&(this._beforeunloadEventListener=()=>{this.transport&&(this.transport.removeAllListeners(),this.transport.close())},addEventListener("beforeunload",this._beforeunloadEventListener,!1)),this.hostname!=="localhost"&&(this._offlineEventListener=()=>{this._onClose("transport close",{description:"network connection lost"})},zL.push(this._offlineEventListener))),this.opts.withCredentials&&(this._cookieJar=void 0),this._open()}createTransport(r){const e=Object.assign({},this.opts.query);e.EIO=TTe,e.transport=r,this.id&&(e.sid=this.id);const n=Object.assign({},this.opts,{query:e,socket:this,hostname:this.hostname,secure:this.secure,port:this.port},this.opts.transportOptions[r]);return new this._transportsByName[r](n)}_open(){if(this.transports.length===0){this.setTimeoutFn(()=>{this.emitReserved("error","No transports available")},0);return}const r=this.opts.rememberUpgrade&&aI.priorWebsocketSuccess&&this.transports.indexOf("websocket")!==-1?"websocket":this.transports[0];this.readyState="opening";const e=this.createTransport(r);e.open(),this.setTransport(e)}setTransport(r){this.transport&&this.transport.removeAllListeners(),this.transport=r,r.on("drain",this._onDrain.bind(this)).on("packet",this._onPacket.bind(this)).on("error",this._onError.bind(this)).on("close",e=>this._onClose("transport close",e))}onOpen(){this.readyState="open",aI.priorWebsocketSuccess=this.transport.name==="websocket",this.emitReserved("open"),this.flush()}_onPacket(r){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing")switch(this.emitReserved("packet",r),this.emitReserved("heartbeat"),r.type){case"open":this.onHandshake(JSON.parse(r.data));break;case"ping":this._sendPacket("pong"),this.emitReserved("ping"),this.emitReserved("pong"),this._resetPingTimeout();break;case"error":const e=new Error("server error");e.code=r.data,this._onError(e);break;case"message":this.emitReserved("data",r.data),this.emitReserved("message",r.data);break}}onHandshake(r){this.emitReserved("handshake",r),this.id=r.sid,this.transport.query.sid=r.sid,this._pingInterval=r.pingInterval,this._pingTimeout=r.pingTimeout,this._maxPayload=r.maxPayload,this.onOpen(),this.readyState!=="closed"&&this._resetPingTimeout()}_resetPingTimeout(){this.clearTimeoutFn(this._pingTimeoutTimer);const r=this._pingInterval+this._pingTimeout;this._pingTimeoutTime=Date.now()+r,this._pingTimeoutTimer=this.setTimeoutFn(()=>{this._onClose("ping timeout")},r),this.opts.autoUnref&&this._pingTimeoutTimer.unref()}_onDrain(){this.writeBuffer.splice(0,this._prevBufferLen),this._prevBufferLen=0,this.writeBuffer.length===0?this.emitReserved("drain"):this.flush()}flush(){if(this.readyState!=="closed"&&this.transport.writable&&!this.upgrading&&this.writeBuffer.length){const r=this._getWritablePackets();this.transport.send(r),this._prevBufferLen=r.length,this.emitReserved("flush")}}_getWritablePackets(){if(!(this._maxPayload&&this.transport.name==="polling"&&this.writeBuffer.length>1))return this.writeBuffer;let e=1;for(let n=0;n<this.writeBuffer.length;n++){const a=this.writeBuffer[n].data;if(a&&(e+=_rr(a)),n>0&&e>this._maxPayload)return this.writeBuffer.slice(0,n);e+=2}return this.writeBuffer}_hasPingExpired(){if(!this._pingTimeoutTime)return!0;const r=Date.now()>this._pingTimeoutTime;return r&&(this._pingTimeoutTime=0,c9(()=>{this._onClose("ping timeout")},this.setTimeoutFn)),r}write(r,e,n){return this._sendPacket("message",r,e,n),this}send(r,e,n){return this._sendPacket("message",r,e,n),this}_sendPacket(r,e,n,a){if(typeof e=="function"&&(a=e,e=void 0),typeof n=="function"&&(a=n,n=null),this.readyState==="closing"||this.readyState==="closed")return;n=n||{},n.compress=n.compress!==!1;const u={type:r,data:e,options:n};this.emitReserved("packetCreate",u),this.writeBuffer.push(u),a&&this.once("flush",a),this.flush()}close(){const r=()=>{this._onClose("forced close"),this.transport.close()},e=()=>{this.off("upgrade",e),this.off("upgradeError",e),r()},n=()=>{this.once("upgrade",e),this.once("upgradeError",e)};return(this.readyState==="opening"||this.readyState==="open")&&(this.readyState="closing",this.writeBuffer.length?this.once("drain",()=>{this.upgrading?n():r()}):this.upgrading?n():r()),this}_onError(r){if(aI.priorWebsocketSuccess=!1,this.opts.tryAllTransports&&this.transports.length>1&&this.readyState==="opening")return this.transports.shift(),this._open();this.emitReserved("error",r),this._onClose("transport error",r)}_onClose(r,e){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing"){if(this.clearTimeoutFn(this._pingTimeoutTimer),this.transport.removeAllListeners("close"),this.transport.close(),this.transport.removeAllListeners(),cV&&(this._beforeunloadEventListener&&removeEventListener("beforeunload",this._beforeunloadEventListener,!1),this._offlineEventListener)){const n=zL.indexOf(this._offlineEventListener);n!==-1&&zL.splice(n,1)}this.readyState="closed",this.id=null,this.emitReserved("close",r,e),this.writeBuffer=[],this._prevBufferLen=0}}}aI.protocol=TTe;class Grr extends aI{constructor(){super(...arguments),this._upgrades=[]}onOpen(){if(super.onOpen(),this.readyState==="open"&&this.opts.upgrade)for(let r=0;r<this._upgrades.length;r++)this._probe(this._upgrades[r])}_probe(r){let e=this.createTransport(r),n=!1;aI.priorWebsocketSuccess=!1;const a=()=>{n||(e.send([{type:"ping",data:"probe"}]),e.once("packet",l=>{if(!n)if(l.type==="pong"&&l.data==="probe"){if(this.upgrading=!0,this.emitReserved("upgrading",e),!e)return;aI.priorWebsocketSuccess=e.name==="websocket",this.transport.pause(()=>{n||this.readyState!=="closed"&&(d(),this.setTransport(e),e.send([{type:"upgrade"}]),this.emitReserved("upgrade",e),e=null,this.upgrading=!1,this.flush())})}else{const h=new Error("probe error");h.transport=e.name,this.emitReserved("upgradeError",h)}}))};function u(){n||(n=!0,d(),e.close(),e=null)}const o=l=>{const h=new Error("probe error: "+l);h.transport=e.name,u(),this.emitReserved("upgradeError",h)};function f(){o("transport closed")}function i(){o("socket closed")}function s(l){e&&l.name!==e.name&&u()}const d=()=>{e.removeListener("open",a),e.removeListener("error",o),e.removeListener("close",f),this.off("close",i),this.off("upgrading",s)};e.once("open",a),e.once("error",o),e.once("close",f),this.once("close",i),this.once("upgrading",s),this._upgrades.indexOf("webtransport")!==-1&&r!=="webtransport"?this.setTimeoutFn(()=>{n||e.open()},200):e.open()}onHandshake(r){this._upgrades=this._filterUpgrades(r.upgrades),super.onHandshake(r)}_filterUpgrades(r){const e=[];for(let n=0;n<r.length;n++)~this.transports.indexOf(r[n])&&e.push(r[n]);return e}}let Wrr=class extends Grr{constructor(r,e={}){const n=typeof r=="object"?r:e;(!n.transports||n.transports&&typeof n.transports[0]=="string")&&(n.transports=(n.transports||["polling","websocket","webtransport"]).map(a=>$rr[a]).filter(a=>!!a)),super(r,n)}};function Zrr(t,r="",e){let n=t;e=e||typeof location<"u"&&location,t==null&&(t=e.protocol+"//"+e.host),typeof t=="string"&&(t.charAt(0)==="/"&&(t.charAt(1)==="/"?t=e.protocol+t:t=e.host+t),/^(https?|wss?):\/\//.test(t)||(typeof e<"u"?t=e.protocol+"//"+t:t="https://"+t),n=uV(t)),n.port||(/^(http|ws)$/.test(n.protocol)?n.port="80":/^(http|ws)s$/.test(n.protocol)&&(n.port="443")),n.path=n.path||"/";const u=n.host.indexOf(":")!==-1?"["+n.host+"]":n.host;return n.id=n.protocol+"://"+u+":"+n.port+r,n.href=n.protocol+"://"+u+(e&&e.port===n.port?"":":"+n.port),n}const Yrr=typeof ArrayBuffer=="function",Xrr=t=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(t):t.buffer instanceof ArrayBuffer,PTe=Object.prototype.toString,Krr=typeof Blob=="function"||typeof Blob<"u"&&PTe.call(Blob)==="[object BlobConstructor]",Qrr=typeof File=="function"||typeof File<"u"&&PTe.call(File)==="[object FileConstructor]";function uX(t){return Yrr&&(t instanceof ArrayBuffer||Xrr(t))||Krr&&t instanceof Blob||Qrr&&t instanceof File}function BL(t,r){if(!t||typeof t!="object")return!1;if(Array.isArray(t)){for(let e=0,n=t.length;e<n;e++)if(BL(t[e]))return!0;return!1}if(uX(t))return!0;if(t.toJSON&&typeof t.toJSON=="function"&&arguments.length===1)return BL(t.toJSON(),!0);for(const e in t)if(Object.prototype.hasOwnProperty.call(t,e)&&BL(t[e]))return!0;return!1}function Jrr(t){const r=[],e=t.data,n=t;return n.data=fV(e,r),n.attachments=r.length,{packet:n,buffers:r}}function fV(t,r){if(!t)return t;if(uX(t)){const e={_placeholder:!0,num:r.length};return r.push(t),e}else if(Array.isArray(t)){const e=new Array(t.length);for(let n=0;n<t.length;n++)e[n]=fV(t[n],r);return e}else if(typeof t=="object"&&!(t instanceof Date)){const e={};for(const n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=fV(t[n],r));return e}return t}function qrr(t,r){return t.data=hV(t.data,r),delete t.attachments,t}function hV(t,r){if(!t)return t;if(t&&t._placeholder===!0){if(typeof t.num=="number"&&t.num>=0&&t.num<r.length)return r[t.num];throw new Error("illegal attachments")}else if(Array.isArray(t))for(let e=0;e<t.length;e++)t[e]=hV(t[e],r);else if(typeof t=="object")for(const e in t)Object.prototype.hasOwnProperty.call(t,e)&&(t[e]=hV(t[e],r));return t}const enr=["connect","connect_error","disconnect","disconnecting","newListener","removeListener"],tnr=5;var bl;(function(t){t[t.CONNECT=0]="CONNECT",t[t.DISCONNECT=1]="DISCONNECT",t[t.EVENT=2]="EVENT",t[t.ACK=3]="ACK",t[t.CONNECT_ERROR=4]="CONNECT_ERROR",t[t.BINARY_EVENT=5]="BINARY_EVENT",t[t.BINARY_ACK=6]="BINARY_ACK"})(bl||(bl={}));class rnr{constructor(r){this.replacer=r}encode(r){return(r.type===bl.EVENT||r.type===bl.ACK)&&BL(r)?this.encodeAsBinary({type:r.type===bl.EVENT?bl.BINARY_EVENT:bl.BINARY_ACK,nsp:r.nsp,data:r.data,id:r.id}):[this.encodeAsString(r)]}encodeAsString(r){let e=""+r.type;return(r.type===bl.BINARY_EVENT||r.type===bl.BINARY_ACK)&&(e+=r.attachments+"-"),r.nsp&&r.nsp!=="/"&&(e+=r.nsp+","),r.id!=null&&(e+=r.id),r.data!=null&&(e+=JSON.stringify(r.data,this.replacer)),e}encodeAsBinary(r){const e=Jrr(r),n=this.encodeAsString(e.packet),a=e.buffers;return a.unshift(n),a}}function sce(t){return Object.prototype.toString.call(t)==="[object Object]"}class cX extends nh{constructor(r){super(),this.reviver=r}add(r){let e;if(typeof r=="string"){if(this.reconstructor)throw new Error("got plaintext data when reconstructing a packet");e=this.decodeString(r);const n=e.type===bl.BINARY_EVENT;n||e.type===bl.BINARY_ACK?(e.type=n?bl.EVENT:bl.ACK,this.reconstructor=new nnr(e),e.attachments===0&&super.emitReserved("decoded",e)):super.emitReserved("decoded",e)}else if(uX(r)||r.base64)if(this.reconstructor)e=this.reconstructor.takeBinaryData(r),e&&(this.reconstructor=null,super.emitReserved("decoded",e));else throw new Error("got binary data when not reconstructing a packet");else throw new Error("Unknown type: "+r)}decodeString(r){let e=0;const n={type:Number(r.charAt(0))};if(bl[n.type]===void 0)throw new Error("unknown packet type "+n.type);if(n.type===bl.BINARY_EVENT||n.type===bl.BINARY_ACK){const u=e+1;for(;r.charAt(++e)!=="-"&&e!=r.length;);const o=r.substring(u,e);if(o!=Number(o)||r.charAt(e)!=="-")throw new Error("Illegal attachments");n.attachments=Number(o)}if(r.charAt(e+1)==="/"){const u=e+1;for(;++e&&!(r.charAt(e)===","||e===r.length););n.nsp=r.substring(u,e)}else n.nsp="/";const a=r.charAt(e+1);if(a!==""&&Number(a)==a){const u=e+1;for(;++e;){const o=r.charAt(e);if(o==null||Number(o)!=o){--e;break}if(e===r.length)break}n.id=Number(r.substring(u,e+1))}if(r.charAt(++e)){const u=this.tryParse(r.substr(e));if(cX.isPayloadValid(n.type,u))n.data=u;else throw new Error("invalid payload")}return n}tryParse(r){try{return JSON.parse(r,this.reviver)}catch{return!1}}static isPayloadValid(r,e){switch(r){case bl.CONNECT:return sce(e);case bl.DISCONNECT:return e===void 0;case bl.CONNECT_ERROR:return typeof e=="string"||sce(e);case bl.EVENT:case bl.BINARY_EVENT:return Array.isArray(e)&&(typeof e[0]=="number"||typeof e[0]=="string"&&enr.indexOf(e[0])===-1);case bl.ACK:case bl.BINARY_ACK:return Array.isArray(e)}}destroy(){this.reconstructor&&(this.reconstructor.finishedReconstruction(),this.reconstructor=null)}}class nnr{constructor(r){this.packet=r,this.buffers=[],this.reconPack=r}takeBinaryData(r){if(this.buffers.push(r),this.buffers.length===this.reconPack.attachments){const e=qrr(this.reconPack,this.buffers);return this.finishedReconstruction(),e}return null}finishedReconstruction(){this.reconPack=null,this.buffers=[]}}const inr=Object.freeze(Object.defineProperty({__proto__:null,Decoder:cX,Encoder:rnr,get PacketType(){return bl},protocol:tnr},Symbol.toStringTag,{value:"Module"}));function B0(t,r,e){return t.on(r,e),function(){t.off(r,e)}}const anr=Object.freeze({connect:1,connect_error:1,disconnect:1,disconnecting:1,newListener:1,removeListener:1});class LTe extends nh{constructor(r,e,n){super(),this.connected=!1,this.recovered=!1,this.receiveBuffer=[],this.sendBuffer=[],this._queue=[],this._queueSeq=0,this.ids=0,this.acks={},this.flags={},this.io=r,this.nsp=e,n&&n.auth&&(this.auth=n.auth),this._opts=Object.assign({},n),this.io._autoConnect&&this.open()}get disconnected(){return!this.connected}subEvents(){if(this.subs)return;const r=this.io;this.subs=[B0(r,"open",this.onopen.bind(this)),B0(r,"packet",this.onpacket.bind(this)),B0(r,"error",this.onerror.bind(this)),B0(r,"close",this.onclose.bind(this))]}get active(){return!!this.subs}connect(){return this.connected?this:(this.subEvents(),this.io._reconnecting||this.io.open(),this.io._readyState==="open"&&this.onopen(),this)}open(){return this.connect()}send(...r){return r.unshift("message"),this.emit.apply(this,r),this}emit(r,...e){var n,a,u;if(anr.hasOwnProperty(r))throw new Error('"'+r.toString()+'" is a reserved event name');if(e.unshift(r),this._opts.retries&&!this.flags.fromQueue&&!this.flags.volatile)return this._addToQueue(e),this;const o={type:bl.EVENT,data:e};if(o.options={},o.options.compress=this.flags.compress!==!1,typeof e[e.length-1]=="function"){const d=this.ids++,l=e.pop();this._registerAckCallback(d,l),o.id=d}const f=(a=(n=this.io.engine)===null||n===void 0?void 0:n.transport)===null||a===void 0?void 0:a.writable,i=this.connected&&!(!((u=this.io.engine)===null||u===void 0)&&u._hasPingExpired());return this.flags.volatile&&!f||(i?(this.notifyOutgoingListeners(o),this.packet(o)):this.sendBuffer.push(o)),this.flags={},this}_registerAckCallback(r,e){var n;const a=(n=this.flags.timeout)!==null&&n!==void 0?n:this._opts.ackTimeout;if(a===void 0){this.acks[r]=e;return}const u=this.io.setTimeoutFn(()=>{delete this.acks[r];for(let f=0;f<this.sendBuffer.length;f++)this.sendBuffer[f].id===r&&this.sendBuffer.splice(f,1);e.call(this,new Error("operation has timed out"))},a),o=(...f)=>{this.io.clearTimeoutFn(u),e.apply(this,f)};o.withError=!0,this.acks[r]=o}emitWithAck(r,...e){return new Promise((n,a)=>{const u=(o,f)=>o?a(o):n(f);u.withError=!0,e.push(u),this.emit(r,...e)})}_addToQueue(r){let e;typeof r[r.length-1]=="function"&&(e=r.pop());const n={id:this._queueSeq++,tryCount:0,pending:!1,args:r,flags:Object.assign({fromQueue:!0},this.flags)};r.push((a,...u)=>n!==this._queue[0]?void 0:(a!==null?n.tryCount>this._opts.retries&&(this._queue.shift(),e&&e(a)):(this._queue.shift(),e&&e(null,...u)),n.pending=!1,this._drainQueue())),this._queue.push(n),this._drainQueue()}_drainQueue(r=!1){if(!this.connected||this._queue.length===0)return;const e=this._queue[0];e.pending&&!r||(e.pending=!0,e.tryCount++,this.flags=e.flags,this.emit.apply(this,e.args))}packet(r){r.nsp=this.nsp,this.io._packet(r)}onopen(){typeof this.auth=="function"?this.auth(r=>{this._sendConnectPacket(r)}):this._sendConnectPacket(this.auth)}_sendConnectPacket(r){this.packet({type:bl.CONNECT,data:this._pid?Object.assign({pid:this._pid,offset:this._lastOffset},r):r})}onerror(r){this.connected||this.emitReserved("connect_error",r)}onclose(r,e){this.connected=!1,delete this.id,this.emitReserved("disconnect",r,e),this._clearAcks()}_clearAcks(){Object.keys(this.acks).forEach(r=>{if(!this.sendBuffer.some(n=>String(n.id)===r)){const n=this.acks[r];delete this.acks[r],n.withError&&n.call(this,new Error("socket has been disconnected"))}})}onpacket(r){if(r.nsp===this.nsp)switch(r.type){case bl.CONNECT:r.data&&r.data.sid?this.onconnect(r.data.sid,r.data.pid):this.emitReserved("connect_error",new Error("It seems you are trying to reach a Socket.IO server in v2.x with a v3.x client, but they are not compatible (more information here: https://socket.io/docs/v3/migrating-from-2-x-to-3-0/)"));break;case bl.EVENT:case bl.BINARY_EVENT:this.onevent(r);break;case bl.ACK:case bl.BINARY_ACK:this.onack(r);break;case bl.DISCONNECT:this.ondisconnect();break;case bl.CONNECT_ERROR:this.destroy();const n=new Error(r.data.message);n.data=r.data.data,this.emitReserved("connect_error",n);break}}onevent(r){const e=r.data||[];r.id!=null&&e.push(this.ack(r.id)),this.connected?this.emitEvent(e):this.receiveBuffer.push(Object.freeze(e))}emitEvent(r){if(this._anyListeners&&this._anyListeners.length){const e=this._anyListeners.slice();for(const n of e)n.apply(this,r)}super.emit.apply(this,r),this._pid&&r.length&&typeof r[r.length-1]=="string"&&(this._lastOffset=r[r.length-1])}ack(r){const e=this;let n=!1;return function(...a){n||(n=!0,e.packet({type:bl.ACK,id:r,data:a}))}}onack(r){const e=this.acks[r.id];typeof e=="function"&&(delete this.acks[r.id],e.withError&&r.data.unshift(null),e.apply(this,r.data))}onconnect(r,e){this.id=r,this.recovered=e&&this._pid===e,this._pid=e,this.connected=!0,this.emitBuffered(),this.emitReserved("connect"),this._drainQueue(!0)}emitBuffered(){this.receiveBuffer.forEach(r=>this.emitEvent(r)),this.receiveBuffer=[],this.sendBuffer.forEach(r=>{this.notifyOutgoingListeners(r),this.packet(r)}),this.sendBuffer=[]}ondisconnect(){this.destroy(),this.onclose("io server disconnect")}destroy(){this.subs&&(this.subs.forEach(r=>r()),this.subs=void 0),this.io._destroy(this)}disconnect(){return this.connected&&this.packet({type:bl.DISCONNECT}),this.destroy(),this.connected&&this.onclose("io client disconnect"),this}close(){return this.disconnect()}compress(r){return this.flags.compress=r,this}get volatile(){return this.flags.volatile=!0,this}timeout(r){return this.flags.timeout=r,this}onAny(r){return this._anyListeners=this._anyListeners||[],this._anyListeners.push(r),this}prependAny(r){return this._anyListeners=this._anyListeners||[],this._anyListeners.unshift(r),this}offAny(r){if(!this._anyListeners)return this;if(r){const e=this._anyListeners;for(let n=0;n<e.length;n++)if(r===e[n])return e.splice(n,1),this}else this._anyListeners=[];return this}listenersAny(){return this._anyListeners||[]}onAnyOutgoing(r){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.push(r),this}prependAnyOutgoing(r){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.unshift(r),this}offAnyOutgoing(r){if(!this._anyOutgoingListeners)return this;if(r){const e=this._anyOutgoingListeners;for(let n=0;n<e.length;n++)if(r===e[n])return e.splice(n,1),this}else this._anyOutgoingListeners=[];return this}listenersAnyOutgoing(){return this._anyOutgoingListeners||[]}notifyOutgoingListeners(r){if(this._anyOutgoingListeners&&this._anyOutgoingListeners.length){const e=this._anyOutgoingListeners.slice();for(const n of e)n.apply(this,r.data)}}}function T_(t){t=t||{},this.ms=t.min||100,this.max=t.max||1e4,this.factor=t.factor||2,this.jitter=t.jitter>0&&t.jitter<=1?t.jitter:0,this.attempts=0}T_.prototype.duration=function(){var t=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var r=Math.random(),e=Math.floor(r*this.jitter*t);t=Math.floor(r*10)&1?t+e:t-e}return Math.min(t,this.max)|0};T_.prototype.reset=function(){this.attempts=0};T_.prototype.setMin=function(t){this.ms=t};T_.prototype.setMax=function(t){this.max=t};T_.prototype.setJitter=function(t){this.jitter=t};class dV extends nh{constructor(r,e){var n;super(),this.nsps={},this.subs=[],r&&typeof r=="object"&&(e=r,r=void 0),e=e||{},e.path=e.path||"/socket.io",this.opts=e,f9(this,e),this.reconnection(e.reconnection!==!1),this.reconnectionAttempts(e.reconnectionAttempts||1/0),this.reconnectionDelay(e.reconnectionDelay||1e3),this.reconnectionDelayMax(e.reconnectionDelayMax||5e3),this.randomizationFactor((n=e.randomizationFactor)!==null&&n!==void 0?n:.5),this.backoff=new T_({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(e.timeout==null?2e4:e.timeout),this._readyState="closed",this.uri=r;const a=e.parser||inr;this.encoder=new a.Encoder,this.decoder=new a.Decoder,this._autoConnect=e.autoConnect!==!1,this._autoConnect&&this.open()}reconnection(r){return arguments.length?(this._reconnection=!!r,r||(this.skipReconnect=!0),this):this._reconnection}reconnectionAttempts(r){return r===void 0?this._reconnectionAttempts:(this._reconnectionAttempts=r,this)}reconnectionDelay(r){var e;return r===void 0?this._reconnectionDelay:(this._reconnectionDelay=r,(e=this.backoff)===null||e===void 0||e.setMin(r),this)}randomizationFactor(r){var e;return r===void 0?this._randomizationFactor:(this._randomizationFactor=r,(e=this.backoff)===null||e===void 0||e.setJitter(r),this)}reconnectionDelayMax(r){var e;return r===void 0?this._reconnectionDelayMax:(this._reconnectionDelayMax=r,(e=this.backoff)===null||e===void 0||e.setMax(r),this)}timeout(r){return arguments.length?(this._timeout=r,this):this._timeout}maybeReconnectOnOpen(){!this._reconnecting&&this._reconnection&&this.backoff.attempts===0&&this.reconnect()}open(r){if(~this._readyState.indexOf("open"))return this;this.engine=new Wrr(this.uri,this.opts);const e=this.engine,n=this;this._readyState="opening",this.skipReconnect=!1;const a=B0(e,"open",function(){n.onopen(),r&&r()}),u=f=>{this.cleanup(),this._readyState="closed",this.emitReserved("error",f),r?r(f):this.maybeReconnectOnOpen()},o=B0(e,"error",u);if(this._timeout!==!1){const f=this._timeout,i=this.setTimeoutFn(()=>{a(),u(new Error("timeout")),e.close()},f);this.opts.autoUnref&&i.unref(),this.subs.push(()=>{this.clearTimeoutFn(i)})}return this.subs.push(a),this.subs.push(o),this}connect(r){return this.open(r)}onopen(){this.cleanup(),this._readyState="open",this.emitReserved("open");const r=this.engine;this.subs.push(B0(r,"ping",this.onping.bind(this)),B0(r,"data",this.ondata.bind(this)),B0(r,"error",this.onerror.bind(this)),B0(r,"close",this.onclose.bind(this)),B0(this.decoder,"decoded",this.ondecoded.bind(this)))}onping(){this.emitReserved("ping")}ondata(r){try{this.decoder.add(r)}catch(e){this.onclose("parse error",e)}}ondecoded(r){c9(()=>{this.emitReserved("packet",r)},this.setTimeoutFn)}onerror(r){this.emitReserved("error",r)}socket(r,e){let n=this.nsps[r];return n?this._autoConnect&&!n.active&&n.connect():(n=new LTe(this,r,e),this.nsps[r]=n),n}_destroy(r){const e=Object.keys(this.nsps);for(const n of e)if(this.nsps[n].active)return;this._close()}_packet(r){const e=this.encoder.encode(r);for(let n=0;n<e.length;n++)this.engine.write(e[n],r.options)}cleanup(){this.subs.forEach(r=>r()),this.subs.length=0,this.decoder.destroy()}_close(){this.skipReconnect=!0,this._reconnecting=!1,this.onclose("forced close")}disconnect(){return this._close()}onclose(r,e){var n;this.cleanup(),(n=this.engine)===null||n===void 0||n.close(),this.backoff.reset(),this._readyState="closed",this.emitReserved("close",r,e),this._reconnection&&!this.skipReconnect&&this.reconnect()}reconnect(){if(this._reconnecting||this.skipReconnect)return this;const r=this;if(this.backoff.attempts>=this._reconnectionAttempts)this.backoff.reset(),this.emitReserved("reconnect_failed"),this._reconnecting=!1;else{const e=this.backoff.duration();this._reconnecting=!0;const n=this.setTimeoutFn(()=>{r.skipReconnect||(this.emitReserved("reconnect_attempt",r.backoff.attempts),!r.skipReconnect&&r.open(a=>{a?(r._reconnecting=!1,r.reconnect(),this.emitReserved("reconnect_error",a)):r.onreconnect()}))},e);this.opts.autoUnref&&n.unref(),this.subs.push(()=>{this.clearTimeoutFn(n)})}}onreconnect(){const r=this.backoff.attempts;this._reconnecting=!1,this.backoff.reset(),this.emitReserved("reconnect",r)}}const kS={};function $L(t,r){typeof t=="object"&&(r=t,t=void 0),r=r||{};const e=Zrr(t,r.path||"/socket.io"),n=e.source,a=e.id,u=e.path,o=kS[a]&&u in kS[a].nsps,f=r.forceNew||r["force new connection"]||r.multiplex===!1||o;let i;return f?i=new dV(n,r):(kS[a]||(kS[a]=new dV(n,r)),i=kS[a]),e.query&&!r.query&&(r.query=e.queryKey),i.socket(e.path,r)}Object.assign($L,{Manager:dV,Socket:LTe,io:$L,connect:$L});const k0=$L(`http://localhost:8000?instanceId=${hW()}`),onr=St.createContext(null),snr=({children:t})=>{const[r,e]=Yl(AC),n=hW();return St.useEffect(()=>(k0.on("connect",()=>{e(a=>({...a,status:em.INACTIVE})),console.log(`Socket connected with ID: ${k0.id}`)}),k0.on("disconnect",a=>{console.log(`Socket disconnected: ${a}`)}),k0.on("connect_error",a=>{console.error(`Socket connection error: ${a.message}`)}),k0.on("reconnect",a=>{console.log(`Socket reconnected after ${a} attempts`)}),k0.on("fileTransferProgress",a=>{a.instanceId===n&&e({currentFileName:a.current_file_name,numberOfFiles:a.number_of_files,percentOfCurrent:a.percent_of_current,finishedFiles:a.finished_files,status:a.status})}),()=>{k0.off("connect"),k0.off("disconnect"),k0.off("connect_error"),k0.off("reconnect")}),[n,e]),Ge.jsx(onr.Provider,{value:k0,children:t})},lnr=MEe([{path:os.HOME,element:Ge.jsx(hrr,{}),errorElement:Ge.jsx(HLe,{}),children:ATe}]);JMe.onlyShowFocusOnTabs();const unr=new qEe({defaultOptions:{queries:{refetchOnWindowFocus:!1}}});_$.createRoot(document.getElementById("root")).render(Ge.jsx(i5e,{client:unr,children:Ge.jsx(Sve,{children:Ge.jsx(co.StrictMode,{children:Ge.jsx(snr,{children:Ge.jsx(jRe,{children:Ge.jsx(CEe,{router:lnr})})})})})}));export{Fa as I,V2 as _,G2 as a,hQ as b,eRe as p};
5247
+ ${E.operationFileIdentifier}`,shape:"box"}))),[t,b]),m=St.useCallback(E=>{var S;const x=Math.min(E,3);i(x),(S=a.current)==null||S.moveTo({scale:x})},[a]);St.useEffect(()=>(o(!0),setTimeout(()=>{e.current&&requestAnimationFrame(()=>{a.current=new Fo(e.current,{nodes:C,edges:y},{nodes:{font:{color:"#202020"},color:{background:"#ccd2f9",border:"none",hover:{background:"#9ca8f2",border:"none"},highlight:{background:"#74c5df",border:"#f6bc42"}},size:20,labelHighlightBold:!1,shape:"box"},edges:{font:{color:"#f5e2ba",size:20,strokeColor:"#000"},color:"#f5e2ba",arrows:{to:{enabled:!0,scaleFactor:.5}},smooth:{enabled:!0,type:"cubicBezier",roundness:.5}},autoResize:!0,layout:{hierarchical:{enabled:!0,levelSeparation:200,nodeSpacing:200,treeSpacing:300,blockShifting:!0,edgeMinimization:!0,direction:"UD",sortMethod:"directed",shakeTowards:"leaves"}},interaction:{hover:!0,keyboard:!0,dragView:!0,zoomView:!0,zoomSpeed:.2},physics:{enabled:!1}}),a.current.once("afterDrawing",()=>{var E,x;o(!1),(E=a.current)==null||E.focus(s,{scale:f,animation:{duration:500,easingFunction:"easeInOutQuad"}}),(x=a.current)==null||x.selectNodes([s],!0),l(s),h.current=s}),a.current.on("click",E=>{var x;if(E.edges.length>0){const S=E.edges[0],w=y.find(L=>L.id===S);(w==null?void 0:w.to)===h.current?g((w==null?void 0:w.from)||null):g((w==null?void 0:w.to)||null)}else(x=a.current)==null||x.selectNodes([],!0),l(null),h.current=null}),a.current.on("zoom",E=>{var x;E.scale<=3?i(E.scale):(x=a.current)==null||x.moveTo({scale:3})})})}),()=>{var E,x,S,w,L;(E=a.current)==null||E.off("zoom"),(x=a.current)==null||x.off("click"),(S=a.current)==null||S.off("dragEnd"),(w=a.current)==null||w.off("afterDrawing"),(L=a.current)==null||L.destroy(),a.current=null}),[y]);const c=E=>{if(C===null||E===null)return null;const x=C.getIds(),S=x.indexOf(E);return S!==-1&&S<x.length-1?x[S+1]:null},v=E=>{if(C===null||E===null)return null;const x=C.getIds(),S=x.indexOf(E);return S>0?x[S-1]:null},g=St.useCallback(E=>{E!==null&&a.current&&(a.current.focus(E,{scale:f,animation:{duration:500,easingFunction:"easeInOutCubic"}}),a.current.selectNodes([E],!0),l(E),h.current=E)},[a,f]),p=d??t[0].id;return Ge.jsxs("div",{className:"operation-graph-component",children:[Ge.jsxs("div",{className:"operation-graph-header",children:[Ge.jsxs("div",{className:"operation-graph-nav",children:[Ge.jsx(Es,{placement:sl.TOP,content:`Go to previous operation ${v(d)}`,disabled:u,children:Ge.jsx(Na,{icon:ki.ArrowLeft,onClick:()=>g(v(d)||0),disabled:!v(d)||u,variant:"outlined"})}),Ge.jsx(Es,{disabled:u,placement:sl.TOP,content:`Center on operation ${p}`,children:Ge.jsx(Na,{variant:"outlined",onClick:()=>g(p),disabled:u,children:p})}),Ge.jsx(Es,{placement:sl.TOP,content:`Go to next operation ${c(d)}`,disabled:u,children:Ge.jsx(Na,{icon:ki.ArrowRight,onClick:()=>g(c(d)||0),disabled:!c(d)||u,variant:"outlined"})})]}),Ge.jsxs("div",{className:"slider-wrapper",children:[Ge.jsx(ARe,{disabled:u,children:"Scale"}),Ge.jsx(DU,{min:.1,max:3,labelRenderer:E=>`${E.toFixed(2)}`,stepSize:.01,labelStepSize:.75,labelPrecision:1,value:f,onChange:m,disabled:u})]})]}),d!==null&&!u&&Ge.jsxs("div",{className:"operation-graph-props",children:[Ge.jsxs("h2",{className:"operation-name",children:[d," ",(I=t.find(E=>E.id===d))==null?void 0:I.name," (",(A=t.find(E=>E.id===d))==null?void 0:A.operationFileIdentifier,")"]}),Ge.jsx(Na,{className:"navigate-button",endIcon:ki.SEGMENTED_CONTROL,intent:uo.PRIMARY,onClick:()=>n(`/operations/${d}`),children:"Memory Details"}),Ge.jsx("h3",{children:"Inputs 123:"}),Ge.jsx("div",{className:"tensors",children:(T=t.find(E=>E.id===d))==null?void 0:T.inputs.map((E,x)=>Ge.jsx($ue,{tensor:E},`input-${d} ${E.id} ${x}`))}),Ge.jsx("h3",{children:"Outputs:"}),Ge.jsx("div",{className:"tensors",children:(_=t.find(E=>E.id===d))==null?void 0:_.outputs.map((E,x)=>Ge.jsx($ue,{tensor:E},`output-${d} ${E.id} ${x}`))})]}),u&&Ge.jsx("div",{className:"graph-tree-loader",children:Ge.jsx(Tv,{})}),Ge.jsx("div",{className:"operation-graph-container",ref:e}),Ge.jsx("aside",{className:"aside",children:"Scroll to zoom. Drag to pan. Click a node to see operation details."})]})},$ue=({tensor:t})=>Ge.jsxs("div",{className:"tensor-details",children:[Ge.jsx("h3",{children:iy(t.shape)}),Ge.jsx("div",{children:t.dtype}),Ge.jsx("div",{children:t.layout}),Ge.jsx("div",{children:t.buffer_type!==null&&Rh[t.buffer_type]}),Ge.jsx("div",{children:t.operationIdentifier&&[t.operationIdentifier]}),t!=null&&t.memory_config?Object.entries(t.memory_config).map(([r,e])=>Ge.jsx("table",{children:Ge.jsx("tbody",{children:Ge.jsx(AW,{header:r,value:e},r)})},r)):null]}),Otr=()=>{const{data:t,isLoading:r}=yg(),{operationId:e}=Lhe(),n=rs(O3);N3();const a=St.useMemo(()=>n?t==null?void 0:t.filter(u=>n[0]&&u.id<=n[1]):t,[t,n]);return Ge.jsxs("div",{className:"data-padding",children:[Ge.jsx(RA,{title:"GraphTree"}),r||!a?Ge.jsx("div",{className:"graph-tree-loader",children:Ge.jsx(Tv,{})}):Ge.jsx(Ltr,{operationList:a,operationId:e?parseInt(e,10):void 0})]})},LS=[{label:"ID",key:"id",sortable:!0},{label:"Total %",key:"total_percent",unit:"%",decimals:1,sortable:!0},{label:"Bound",key:"bound",colour:"yellow"},{label:"OP Code",key:"op_code",colour:"blue",sortable:!0,filterable:!0},{label:"Device Time",key:"device_time",unit:"µs",decimals:0,sortable:!0},{label:"Op-to-Op Gap",key:"op_to_op_gap",colour:"red",unit:"µs",decimals:0,sortable:!0},{label:"Cores",key:"cores",colour:"green",sortable:!0},{label:"DRAM",key:"dram",colour:"yellow",unit:"GB/s",sortable:!0},{label:"DRAM %",key:"dram_percent",colour:"yellow",unit:"%",sortable:!0},{label:"FLOPs",key:"flops",unit:"TFLOPs",sortable:!0},{label:"FLOPs %",key:"flops_percent",unit:"%",sortable:!0},{label:"Math Fidelity",key:"math_fidelity",colour:"cyan"}],Uue=1,Hue=5,ktr=({data:t})=>{const{getFilterOptions:r,updateFilters:e,activeFilters:n,FilterItem:a}=P1e("math_fidelity",t||[]),{sortTableFields:u,changeSorting:o,sortingColumn:f,sortDirection:i}=uAe(null),[s,d]=St.useState(!0),[l,h]=St.useState(!1),[y,b]=St.useState(!1),[C,m]=St.useState(!1),c=Cge(),{data:v}=yg(),g=St.useMemo(()=>LS.filter(x=>x.filterable).map(x=>x.key),[]),[p,I]=St.useState(Object.fromEntries(g.map(x=>[x,""]))),A=St.useMemo(()=>(t==null?void 0:t.map(x=>{var L;const S=parseInt(x.op_to_op_gap,10),w=(L=c.find(k=>k.perfId===x.id))==null?void 0:L.opId;return{...x,high_dispatch:!!S&&S>6.5,op:w}}))||[],[t,c]),T=St.useMemo(()=>{let x=A;Dtr(p)&&g&&(x=x.filter(w=>!(p&&Object.entries(p).filter(([k,F])=>String(F).length).some(([k,F])=>!Ntr(w,k).toLowerCase().includes(F.toLowerCase()))))),(n==null?void 0:n.length)>0&&(x=x.filter(w=>(w==null?void 0:w.math_fidelity)!==null&&n.includes(w.math_fidelity)));const S=x.map(w=>({...w,id:parseInt(w.id,10),total_percent:parseFloat(w.total_percent),device_time:parseFloat(w.device_time),op_to_op_gap:w.op_to_op_gap?parseFloat(w.op_to_op_gap):null,cores:parseInt(w.cores,10),dram:w.dram?parseFloat(w.dram):null,dram_percent:w.dram_percent?parseFloat(w.dram_percent):null,flops:w.flops?parseFloat(w.flops):null,flops_percent:w.flops_percent?parseFloat(w.flops_percent):null}));return u(S)},[A,u,p,g,n]),_=[...LS.slice(0,Uue),...c.length>0?[{label:"OP",key:"op",sortable:!0}]:[],...LS.slice(Uue,Hue),...y?[{label:"Slow",key:"high_dispatch"}]:[],...LS.slice(Hue)],E=(x,S)=>{I({...p,[x]:S??""})};return Ge.jsxs(Ge.Fragment,{children:[Ge.jsx(Wd,{className:"expand-button",label:s?"Merged device data":"Expanded device data",onChange:()=>d(!s),checked:s&&C,disabled:!C}),Ge.jsx(Wd,{className:"expand-button",label:l?"Hide Matmul optimization analysis":"Show Matmul optimization analysis",onChange:()=>h(!l),checked:l}),Ge.jsx(Wd,{className:"expand-button",label:"Highlight high dispatch ops",onChange:()=>b(!y),checked:y}),Ge.jsxs("div",{className:"perf-report",children:[Ge.jsxs("div",{className:"table-header",children:[Ge.jsx("h3",{className:"title",children:"Performance report"}),Ge.jsx("div",{className:"header-aside",children:Ge.jsx("p",{className:"result-count",children:T.length!==(t==null?void 0:t.length)?`Showing ${T.length} of ${t==null?void 0:t.length} rows`:`Showing ${T.length} rows`})})]}),Ge.jsxs("div",{className:"filters",children:[g.map(x=>{var S;return Ge.jsx(ED,{onQueryChanged:w=>E(x,w),placeholder:`Filter ${(S=LS.find(w=>w.key===x))==null?void 0:S.label}`,searchQuery:(p==null?void 0:p[x])||""},x)}),Ge.jsx(Pge,{items:t?r():[],placeholder:"Math fidelity filter...",onItemSelect:x=>e(x),selectedItems:n,itemRenderer:(x,S)=>a(String(x)),tagRenderer:x=>x,onRemove:x=>e(x),itemPredicate:(x,S)=>!x||String(S).toLowerCase().includes(x.toLowerCase()),noResults:Ge.jsx(gA,{disabled:!0,text:"No results.",roleStructure:"listoption"}),resetOnSelect:!0}),Ge.jsx(Na,{onClick:()=>o(null)(null),variant:s5.OUTLINED,disabled:f===null,children:"Reset sort"})]}),Ge.jsxs("table",{className:"perf-table monospace",children:[Ge.jsx("thead",{children:Ge.jsx("tr",{children:_.map(x=>{const S=f===x.key?i===G1.ASC?G1.DESC:G1.ASC:i;return Ge.jsx("th",{className:"cell-header",children:x.sortable?Ge.jsxs(Na,{onClick:()=>o(x.key)(S),variant:s5.MINIMAL,size:xde.SMALL,children:[Ge.jsx("span",{className:"header-label",children:x.label}),f===x.key?Ge.jsx(tl,{className:_i({"is-active":f===x.key},"sort-icon"),icon:i===G1.ASC?ki.CARET_DOWN:ki.CARET_UP}):Ge.jsx(tl,{className:_i("sort-icon"),icon:ki.CARET_DOWN})]}):Ge.jsx("span",{className:"header-label no-button",children:x.label})},x.key)})})}),Ge.jsx("tbody",{children:T.map((x,S)=>Ge.jsxs(St.Fragment,{children:[Ge.jsx("tr",{children:_.map(w=>Ge.jsx("td",{className:_i("cell",{"align-right":w.key==="math_fidelity"}),children:I9e(x,w,v,p==null?void 0:p[w.key])},w.key))}),l&&x.op_code.includes("Matmul")&&Ge.jsx("tr",{children:Ge.jsx("td",{colSpan:_.length,className:"cell advice",children:Ge.jsx("ul",{children:x==null?void 0:x.advice.map((w,L)=>Ge.jsx("li",{children:w},`advice-${L}`))})})})]},S))})]})]}),Ge.jsx("hr",{}),y&&w9e(A)]})};function Dtr(t){return t?Object.values(t).some(r=>r.length>0):!1}const Ntr=(t,r)=>{var n;return((n=t[r])==null?void 0:n.toString())||""},jue={grayskull:108,wormhole_b0:64};function Ftr(t,r){const e=Math.max(...r.filter(n=>n.cores).map(n=>parseInt(n.cores??"0",10)));return e>jue[t]?e:jue[t]}const A$="#575757",C$="#575757",w2="#FFF";function w_({chartData:t,configuration:r,title:e}){var u,o,f,i,s,d,l,h,y,b,C,m,c,v,g;const n={autosize:!0,paper_bgcolor:"transparent",plot_bgcolor:"transparent",showlegend:r.showLegend||!1,legend:{orientation:"h",font:{family:"sans-serif"},bgcolor:"#dee2e6",bordercolor:"#fff",borderwidth:2,x:.5,y:-.25,xanchor:"center"},margin:{l:50,r:0,b:50,t:0},barmode:r.barMode,xaxis:{gridcolor:A$,linecolor:C$,color:w2,title:{font:{color:w2},text:(o=(u=r.xAxis)==null?void 0:u.title)==null?void 0:o.text},fixedrange:!0,zeroline:!1,range:(f=r.xAxis)==null?void 0:f.range,tickformat:(i=r.xAxis)==null?void 0:i.tickformat,hoverformat:(s=r.xAxis)==null?void 0:s.hoverformat},yaxis:{gridcolor:A$,linecolor:C$,color:w2,title:{standoff:20,font:{color:w2},text:(l=(d=r.yAxis)==null?void 0:d.title)==null?void 0:l.text},automargin:!0,fixedrange:!0,zeroline:!1,range:(h=r.yAxis)==null?void 0:h.range,tickformat:(y=r.yAxis)==null?void 0:y.tickformat,hoverformat:(b=r.yAxis)==null?void 0:b.hoverformat},yaxis2:{gridcolor:A$,linecolor:C$,color:w2,title:{standoff:20,font:{color:w2},text:(m=(C=r.yAxis2)==null?void 0:C.title)==null?void 0:m.text},overlaying:"y",side:"right",automargin:!0,fixedrange:!0,zeroline:!1,range:(c=r.yAxis2)==null?void 0:c.range,tickformat:(v=r.yAxis2)==null?void 0:v.tickformat,hoverformat:(g=r.yAxis2)==null?void 0:g.hoverformat}},a={displayModeBar:!1,displaylogo:!1,responsive:!0};return Ge.jsxs("div",{className:"chart-container",children:[Ge.jsx("h3",{children:e}),Ge.jsx(TW,{className:"chart",data:t,layout:n,config:a,useResizeHandler:!0})]})}const i1=(t,r="",e="")=>t!==0?e:r,ztr=["#008BF8","#58B73B"],Btr=["#E27414","#E8C547"],R4=t=>ztr[t],iX=t=>Btr[t];function $tr({datasets:t=[]}){const r=rs(Lh),e=rs(PA),n=St.useMemo(()=>t.map((u,o)=>({x:u==null?void 0:u.map(f=>f.cores),y:u==null?void 0:u.map(f=>f.device_time),mode:"markers",type:"scatter",name:i1(o,r,e),marker:{size:10,color:R4(o)},hovertemplate:"Cores: %{x}<br />Device Kernel Duration: %{y} ns"})),[t,e,r]),a={showLegend:!0,xAxis:{title:{text:"Core Count"}},yAxis:{title:{text:"Device Kernel Duration (ns)"},tickformat:"d",hoverformat:",.2r"}};return Ge.jsx(w_,{title:"Device Kernel Duration vs Core Count",chartData:n,configuration:a})}function Utr({maxCores:t,datasets:r=[]}){const e=rs(Lh),n=rs(PA),a=r.reduce((i,s)=>Math.max(i,(s==null?void 0:s.length)||0),0),u=St.useMemo(()=>r.map((i,s)=>({x:i==null?void 0:i.map((d,l)=>l+1),y:i==null?void 0:i.map(d=>d.cores),type:"bar",hovertemplate:"Operation: %{x}<br />Cores: %{y}",name:i1(s,e,n),showlegend:!0,legendgroup:`group${s}`,marker:{color:R4(s)}})),[r,e,n]),o=St.useMemo(()=>r.map((i,s)=>({x:i==null?void 0:i.map((d,l)=>l+1),y:i==null?void 0:i.map(d=>d.device_time),yaxis:"y2",hovertemplate:"Operation: %{x}<br />Device Kernel Duration: %{y} ns",name:i1(s,e,n),showlegend:!0,legendgroup:`group${s}`,marker:{color:iX(s)}})),[r,e,n]),f={margin:{l:100,r:0,b:50,t:0},showLegend:!0,xAxis:{title:{text:"Operation"},range:[0,a]},yAxis:{title:{text:"Core Count"},tickformat:"d",hoverformat:",.2r",range:[0,t]},yAxis2:{title:{text:"Device Kernel Duration (ns)"},tickformat:"d",hoverformat:",.2r"}};return Ge.jsx(w_,{title:"Core Count + Device Kernel Runtime",chartData:[...u,...o],configuration:f})}function Htr({selectedOpCodes:t,datasets:r=[]}){const e=rs(Lh),n=rs(PA),a=r.flat(),u=St.useMemo(()=>[...new Set(a==null?void 0:a.filter(s=>s.raw_op_code!==void 0).map(s=>s.raw_op_code))],[a]),o=St.useMemo(()=>r.map((s,d)=>u.map(l=>{var h;return{x:[`Op Count ${r.length>1?`(${d+1})`:""}`],y:[s.filter(y=>y.raw_op_code===l).length/s.length],type:"bar",name:i1(d,e,n),hovertemplate:`${l}<br />%{y:.1%}`,marker:{color:(h=t.find(y=>y.opCode===l))==null?void 0:h.colour}}})),[r,u,t,e,n]),f=St.useMemo(()=>r.map((s,d)=>u.map(l=>{var h;return{x:[`Runtime % ${r.length>1?`(${d+1})`:""}`],y:[s.filter(y=>y.raw_op_code===l).reduce(Vue,0)/s.reduce(Vue,0)],type:"bar",name:i1(d,e,n),hovertemplate:`${l}<br />%{y:.1%}`,marker:{color:(h=t.find(y=>y.opCode===l))==null?void 0:h.colour}}})),[r,u,t,e,n]),i={margin:{l:0,r:0,b:0,t:0},barMode:"stack",yAxis:{tickformat:".0%",range:[0,1]}};return Ge.jsx(w_,{title:"Operation Count vs Runtime Contribution",chartData:[...o.flat(),...f.flat()],configuration:i})}const Vue=(t,r)=>t+(r.device_time?parseInt(r.device_time,10):0),jtr=({filteredPerfData:t,comparisonData:r,maxCores:e,selectedOpCodes:n})=>{const a=[t,...r||[]].filter(u=>u.length>0);return Ge.jsxs("div",{className:"charts",children:[Ge.jsx(Htr,{datasets:a,selectedOpCodes:n}),Ge.jsx(Utr,{datasets:a,maxCores:e}),Ge.jsx($tr,{datasets:a})]})},Vtr=25;function Gtr({opCodeOptions:t,selectedOpCodes:r,updateOpCodes:e}){const[n,a]=St.useState(!0),[u,o]=St.useState(!1);St.useEffect(()=>{r.length===0&&(a(!1),o(!1)),r.length>0&&r.length<t.length&&(a(!1),o(!0)),r.length===t.length&&(a(!0),o(!1))},[r,t]);const f=()=>{e(n?[]:t)},i=()=>n?"Deselect all":"Select all",s=d=>Ge.jsxs(Ge.Fragment,{children:[Ge.jsx("span",{className:"label",children:d.opCode.length>Vtr?Ge.jsx("span",{className:"abbreviated-label",title:d.opCode,children:d.opCode}):d.opCode}),Ge.jsx("div",{className:"memory-color-block",style:{backgroundColor:d.colour}})]});return Ge.jsx("aside",{className:"op-code-menu-container",children:Ge.jsxs("div",{className:"op-code-menu",children:[Ge.jsx("p",{className:"header",children:Ge.jsx("strong",{children:"Operation codes"})}),Ge.jsx("div",{className:"option select-all",children:Ge.jsx(JT,{checked:n,indeterminate:u,id:"select-all",onChange:f,label:i()})}),t.sort((d,l)=>d.opCode.localeCompare(l.opCode)).map(d=>Ge.jsx("div",{className:"option",children:Ge.jsx(JT,{className:"label-container",checked:r.map(l=>l.opCode).includes(d.opCode),id:d.opCode,labelElement:s(d),onChange:()=>{const l=r.includes(d)?r.filter(h=>h!==d):[...r,d];e(l)}},d.opCode)},d.opCode))]})})}const Wtr=["rgb(31, 119, 180)","rgb(255, 127, 14)","rgb(44, 160, 44)","rgb(214, 39, 40)","rgb(148, 103, 189)","rgb(140, 86, 75)","rgb(227, 119, 194)","rgb(188, 189, 34)","rgb(23, 190, 207)","rgb(255, 187, 120)","rgb(40, 108, 26)","rgb(255, 152, 150)","rgb(197, 176, 213)","rgb(196, 156, 148)","rgb(247, 182, 210)","rgb(199, 199, 199)","rgb(219, 219, 141)","rgb(158, 218, 229)","rgb(57, 59, 121)","rgb(82, 84, 163)","rgb(107, 110, 207)","rgb(156, 158, 222)","rgb(255, 127, 14)"];function aX(t,r){const e=t.pm_ideal_ns?parseFloat(t.pm_ideal_ns):null,n=t.device_time?parseFloat(t.device_time):null,a=t.cores?parseInt(t.cores,10):null;if(!cg(e)||!cg(n)||!cg(a))return 0;const u=n*1e3,o=e/u*(r/a);return cg(o)?o:0}function Gue({datasets:t=[],maxCores:r}){const e=rs(Lh),n=rs(PA),a=St.useMemo(()=>t.map((f,i)=>({x:f==null?void 0:f.map((s,d)=>d+1),y:f==null?void 0:f.map(s=>s.cores),type:"bar",hovertemplate:"<b>%{data.name}</b><br />Operation: %{x}<br />Cores: %{y}<extra></extra>",name:i1(i,e,n),legendgroup:`group${i}`,marker:{color:R4(i)}})),[t,e,n]),u=St.useMemo(()=>t.map((f,i)=>({x:f==null?void 0:f.map((s,d)=>d+1),y:f==null?void 0:f.map(s=>aX(s,r)).filter(s=>s!==-1),yaxis:"y2",hovertemplate:"<b>%{data.name}</b><br />Operation: %{x}<br />Utilization: %{y}<extra></extra>",name:i1(i,e,n),legendgroup:`group${i}`,marker:{color:iX(i)}})),[t,e,n,r]),o={margin:{l:100,r:0,b:50,t:0},showLegend:!0,xAxis:{title:{text:"Operation"},range:[0,Bge(t)]},yAxis:{title:{text:"Core Count"},tickformat:"d",hoverformat:",.2r",range:[0,r]},yAxis2:{title:{text:"Utilization (%)"},tickformat:".0%",hoverformat:".2%",range:[0,1]}};return Ge.jsx(w_,{title:"Core Count + Utilization",chartData:[...a,...u],configuration:o})}const Ztr={autosize:!0,paper_bgcolor:"transparent",margin:{l:50,r:50,b:50,t:50},showlegend:!1};function Wue({reportTitle:t,data:r=[],opCodes:e,className:n=""}){const a=St.useMemo(()=>[...new Set(r==null?void 0:r.filter(o=>o.raw_op_code!==void 0).map(o=>o.raw_op_code))],[r]),u=St.useMemo(()=>({values:a.map(o=>r.filter(f=>f.raw_op_code===o).length),labels:[...a],type:"pie",textinfo:"percent",hovertemplate:"%{label}<br />Count: %{value}<extra></extra>",marker:{colors:a.map(o=>{var f;return(f=e.find(i=>i.opCode===o))==null?void 0:f.colour})},outsidetextfont:{color:"white"}}),[r,e,a]);return Ge.jsxs("div",{className:_i("operation-types-chart",n),children:[Ge.jsx("h3",{children:"Operation Types"}),Ge.jsx("p",{children:t}),Ge.jsx(TW,{className:"chart",data:[u],layout:Ztr,config:ONe,useResizeHandler:!0})]})}const Zue=()=>Ge.jsxs("div",{className:"dummy-chart-container",children:[Ge.jsx("div",{className:"title"}),Ge.jsxs("div",{className:"dummy-chart",children:[Ge.jsx("div",{className:"bar",style:{height:"40%"}}),Ge.jsx("div",{className:"bar",style:{height:"60%"}}),Ge.jsx("div",{className:"bar",style:{height:"80%"}}),Ge.jsx("div",{className:"bar",style:{height:"50%"}}),Ge.jsx("div",{className:"bar",style:{height:"90%"}}),Ge.jsx("div",{className:"bar",style:{height:"30%"}}),Ge.jsx("div",{className:"bar",style:{height:"40%"}}),Ge.jsx("div",{className:"bar",style:{height:"60%"}}),Ge.jsx("div",{className:"bar",style:{height:"80%"}}),Ge.jsx("div",{className:"bar",style:{height:"50%"}}),Ge.jsx("div",{className:"bar",style:{height:"90%"}}),Ge.jsx("div",{className:"bar",style:{height:"30%"}})]})]});function Yue({datasets:t=[],maxCores:r}){const e=rs(Lh),n=rs(PA),a=St.useMemo(()=>t.map((i,s)=>({x:i==null?void 0:i.map((d,l)=>l+1),y:i==null?void 0:i.map(d=>d.device_time),type:"bar",hovertemplate:"<b>%{data.name}</b><br />Operation: %{x}<br />Duration: %{y} ns<extra></extra>",name:i1(s,e,n),legendgroup:`group${s}`,marker:{color:R4(s)}})),[t,e,n]),u=St.useMemo(()=>t.map((i,s)=>({x:i==null?void 0:i.map((d,l)=>l+1),y:(i==null?void 0:i.map(d=>aX(d,r)).filter(d=>d!==-1))??[],yaxis:"y2",hovertemplate:"<b>%{data.name}</b><br />Operation: %{x}<br />Utilization: %{y}<extra></extra>",name:i1(s,e,n),legendgroup:`group${s}`,marker:{color:iX(s)}})),[t,r,e,n]),o=Math.max(...a.flatMap(i=>i.y??[])),f={margin:{l:100,r:0,b:50,t:0},showLegend:!0,xAxis:{range:[0,Bge(t)],title:{text:"Operation"}},yAxis:{title:{text:"Device Kernel Duration (ns)"},tickformat:"d",hoverformat:",.2r",range:[0,o]},yAxis2:{title:{text:"Utilization (%)"},tickformat:".0%",hoverformat:".2%",range:[0,1]}};return Ge.jsx(w_,{title:"Device Kernel Duration + Utilization",chartData:[...a,...u],configuration:f})}function Xue({datasets:t,maxCores:r}){const e=rs(Lh),n=rs(PA),a=St.useMemo(()=>t.map((o,f)=>({x:o==null?void 0:o.map(i=>i.device_time),y:o==null?void 0:o.map(i=>aX(i,r)).filter(i=>i!==-1),mode:"markers",type:"scatter",name:i1(f,e,n),marker:{size:10,color:R4(f)},hovertemplate:"Duration: %{x} ns<br />Utilization: %{y}"})),[t,r,e,n]),u={showLegend:!0,xAxis:{title:{text:"Device Kernel Duration (ns)"},tickformat:"d",hoverformat:",.2r"},yAxis:{title:{text:"Utilization (%)"},tickformat:".0%",hoverformat:".2%"}};return Ge.jsx(w_,{title:"Utilization vs Device Kernel Duration",chartData:a,configuration:u})}const Ytr=({chartData:t,secondaryData:r=[],maxCores:e,opCodeOptions:n})=>{const a=rs(Lh),u=rs(PA),o=[t,...r||[]].filter(s=>s.length>0),f=St.useMemo(()=>o.map(s=>s.filter(d=>d.raw_op_code.toLowerCase().includes("matmul"))),[o]),i=St.useMemo(()=>o.map(s=>s.filter(d=>d.raw_op_code.toLowerCase().includes("conv"))),[o]);return Ge.jsxs("div",{className:"charts",children:[Ge.jsx("h2",{children:"Matmul operations"}),f.filter(s=>s.length).length>0?Ge.jsxs(Ge.Fragment,{children:[Ge.jsx(Gue,{datasets:f,maxCores:e}),Ge.jsx(Yue,{datasets:f,maxCores:e}),Ge.jsx(Xue,{datasets:f,maxCores:e})]}):Ge.jsx(Zue,{}),Ge.jsx("h2",{children:"Conv operations"}),i.filter(s=>s.length).length>0?Ge.jsxs(Ge.Fragment,{children:[Ge.jsx(Gue,{datasets:i,maxCores:e}),Ge.jsx(Yue,{datasets:i,maxCores:e}),Ge.jsx(Xue,{datasets:i,maxCores:e})]}):Ge.jsx(Zue,{}),Ge.jsx("h2",{children:"All operations"}),Ge.jsxs("div",{className:"operation-types-charts",children:[a&&Ge.jsx(Wue,{className:"flex-chart",reportTitle:u?a:"",data:t,opCodes:n}),u&&Ge.jsx(Wue,{className:"flex-chart",reportTitle:a?u:"",data:r[0],opCodes:n})]})]})};function Xtr(){var _;const[t,r]=Yl(PA),e=rs(Lh),[n,a]=Yl(jve),{data:u,isLoading:o}=s8e(),{data:f,isLoading:i}=TD(e),{data:s}=l8e(t),{data:d}=_ge(),l=Ige();N3();const h=St.useMemo(()=>Array.from(new Set([...(f==null?void 0:f.map(x=>x.raw_op_code).filter(x=>x!==void 0))||[],...(s==null?void 0:s.map(x=>x.raw_op_code).filter(x=>x!==void 0))||[]])).map((x,S)=>({opCode:x,colour:Wtr[S]})),[f,s]),[y,b]=St.useState("tab-1"),[C,m]=St.useState([]),[c,v]=St.useState([]),[g,p]=St.useState(h);St.useEffect(()=>{t===e&&r(null)},[t,e,r]),St.useEffect(()=>{t&&l&&a([l[0],l[1]])},[t,a,l]),St.useEffect(()=>{v((s==null?void 0:s.filter(E=>g.length?g.map(x=>x.opCode).includes(E.raw_op_code??""):!1))||[])},[g,s]),St.useEffect(()=>{m((f==null?void 0:f.filter(E=>g.length?g.map(x=>x.opCode).includes(E.raw_op_code??""):!1))||[])},[g,f]),St.useEffect(()=>{p(h)},[h]);const I=St.useMemo(()=>!t&&n&&C.length>0?C.filter(E=>{const x=parseInt(E==null?void 0:E.id,10);return x>=n[0]&&x<=n[1]}):C,[n,C,t]);if(i||o)return Ge.jsx(Tv,{});const A=((_=u==null?void 0:u.deviceMeta)==null?void 0:_.architecture)??LO.WORMHOLE,T=f?Ftr(A,f):0;return Ge.jsxs("div",{className:"performance data-padding",children:[Ge.jsx(RA,{title:"Performance"}),Ge.jsx("h1",{className:"page-title",children:"Performance analysis"}),d?Ge.jsx(Df,{className:"form-group",label:Ge.jsx("h3",{className:"label",children:"Compare"}),subLabel:"Select a performance report to compare",children:Ge.jsxs("div",{className:"folder-selection",children:[Ge.jsx(JU,{items:d.filter(E=>E!==e),value:t,handleSelect:E=>r(E)}),Ge.jsx(Na,{className:"clear-selection",variant:s5.OUTLINED,icon:ki.CROSS,onClick:()=>r(null)})]})}):Ge.jsx(Tv,{}),Ge.jsxs(Ave,{id:"performance-tabs",selectedTabId:y,onChange:b,renderActiveTabPanelOnly:!0,size:xde.LARGE,children:[Ge.jsx(e3,{id:"tab-1",title:"Table",icon:ki.TH,panel:Ge.jsx(ktr,{data:I})}),Ge.jsx(e3,{id:"tab-2",title:"Charts",icon:ki.TIMELINE_AREA_CHART,panel:Ge.jsxs("div",{className:"chart-tab",children:[Ge.jsxs("p",{children:[Ge.jsx("strong",{children:"Arch:"})," ",A]}),Ge.jsxs("p",{children:[Ge.jsx("strong",{children:"Cores:"})," ",T]}),f?Ge.jsxs(Ge.Fragment,{children:[Ge.jsxs("div",{className:"charts-container",children:[Ge.jsx(Gtr,{opCodeOptions:h,selectedOpCodes:g,updateOpCodes:p}),Ge.jsx(jtr,{filteredPerfData:I,comparisonData:[c],maxCores:T,selectedOpCodes:g})]}),Ge.jsxs("div",{className:"charts-container non-filterable-charts",children:[Ge.jsx("span",{}),Ge.jsx("div",{children:Ge.jsx(Ytr,{chartData:I,secondaryData:[s||[]],maxCores:T,opCodeOptions:h})})]})]}):null]})})]})]})}const Ktr={[jo.IDLE]:ki.DOT,[jo.PROGRESS]:ki.DOT,[jo.FAILED]:ki.CROSS,[jo.OK]:ki.TICK},Qtr={[jo.IDLE]:uo.NONE,[jo.PROGRESS]:uo.WARNING,[jo.FAILED]:uo.DANGER,[jo.OK]:uo.SUCCESS},Jtr=()=>{const[t,r]=St.useState(null),{uploadNpeFile:e}=Sge(),[n,a]=Yl(vD),[u,o]=St.useState(jo.IDLE),f=async i=>{var l,h,y,b;if(r("Uploading..."),o(jo.PROGRESS),!i.target.files)return;const s=(l=i.target.files)==null?void 0:l[0],d=await e(i.target.files);if(d.status!==200)o(jo.FAILED),r((h=d==null?void 0:d.data)==null?void 0:h.message);else if(((y=d==null?void 0:d.data)==null?void 0:y.status)!==jo.OK)o(jo.FAILED),r((b=d==null?void 0:d.data)==null?void 0:b.message);else{const C=s.name;a(C),N1("Active NPE",C),o(jo.OK),r(`${C} uploaded successfully`)}};return Ge.jsxs("div",{className:"npe-file-loader",children:[Ge.jsx(sve,{text:n??"Choose file...",onInputChange:f}),Ge.jsx("div",{className:`verify-connection-item status-${jo[u]}`,children:u?Ge.jsxs(Ge.Fragment,{children:[Ge.jsx(tl,{className:"connection-status-icon",icon:Ktr[u],size:20,intent:Qtr[u]}),Ge.jsx("span",{className:"connection-status-text",children:t})]}):null})]})},OS={version:null,arch:{units:"",label:"Architecture",description:"Architecture used (e.g. wormhole_b0, blackhole)"},congestion_model_name:{units:"",label:"Congestion Model",description:"Congestion model used in simulation to infer congestion (default: fast)"},cycles_per_timestep:{units:"cycles",label:"Device Cycles Per Timestep",description:"How many cycles each simulation timestep/frame spans"},device_name:{units:"",label:"Device Name",description:"Device simulated (e.g. wormhole_b0, blackhole)"},dram_bw_util:{units:"%",label:"DRAM Bandwidth Utilization",description:"% of DRAM RW bandwidth used over entire operation runtime (100% is maximum)"},link_demand:{units:"%",label:"NoC Link Demand",description:"Average demand for NoC links over entire runtime. Multiple packets requesting results in demand exceeding 100% for a given link. Demand be compared with link utilization to understand how localized congestion is."},link_util:{units:"%",label:"NoC Link Utilization",description:"Average utilization of NoC links over entire runtime. Link utilization saturates at 100% for every NoC link, no matter how much demand there is. Useful for understanding NoC toggle rate and overall efficiency of communication."},max_link_demand:{units:"%",label:"Max NoC Link Demand",description:"Maximum observed link demand over all timesteps. See link_demand for more details."},num_cols:{decimals:0,units:"",label:"Cols",description:"Number of core columns on the device."},num_rows:{decimals:0,units:"",label:"Rows",description:"Number of core rows on the device."}};var P1=(t=>(t.NOC1_NORTH="NOC1_NORTH",t.NOC0_SOUTH="NOC0_SOUTH",t.NOC0_EAST="NOC0_EAST",t.NOC1_WEST="NOC1_WEST",t.NOC0_IN="NOC0_IN",t.NOC0_OUT="NOC0_OUT",t.NOC1_IN="NOC1_IN",t.NOC1_OUT="NOC1_OUT",t))(P1||{}),Ss=(t=>(t[t.CHIP_ID=0]="CHIP_ID",t[t.Y=1]="Y",t[t.X=2]="X",t[t.NOC_ID=3]="NOC_ID",t[t.DEMAND=4]="DEMAND",t))(Ss||{});const I$=({width:t,height:r,data:e,isMulticolor:n=!1,style:a})=>{const o=new Map,f=new Map,i=e.filter((d,l,h)=>l===h.findIndex(y=>y.nocId===d.nocId&&y.color===d.color));i.forEach(d=>{if(!o.has(d.nocId))o.set(d.nocId,1);else{const l=o.get(d.nocId);o.set(d.nocId,l+1)}}),o.forEach((d,l)=>{f.set(l,[5,(d-1)*5])});const s=[];return Ge.jsx("svg",{width:t,height:r,style:a,"aria-description":i.map(d=>d.nocId).join(","),children:Ge.jsx("g",{children:i.map((d,l)=>{const h=s.find(b=>b.nocId===d.nocId),y=h?h.counter:0;return h?h.counter+=1:s.push({nocId:d.nocId,counter:1}),Ge.jsxs(St.Fragment,{children:[Ge.jsx("line",{x1:d.x1,y1:d.y1,x2:d.x2,y2:d.y2,stroke:d.color,strokeWidth:1,...n?{strokeDasharray:f.get(d.nocId).join(",")}:{},...n?{strokeDashoffset:y*f.get(d.nocId)[0]}:{}}),d.arrow&&!n&&Ge.jsx("polygon",{transform:d.transform,points:`${d.arrow.p1} ${d.arrow.p2} ${d.arrow.p3}`,fill:d.color||"white"}),d.arrow&&n&&Ge.jsx("polygon",{transform:d.transform,points:`${d.arrow.p1} ${d.arrow.p2} ${d.arrow.p3}`,fill:"#999"})]},`${l}-${d.x1}-${d.y1}-${d.x2}-${d.y2}`)})})})},W5=50,eh={x:25,y:W5-25},gTe=5,Eb=-5,Mb=-5,Rb=gTe,Pb=gTe,uC={x:W5-10,y:10},Av=2,Kue=["#FFFFFF","#FF0000","#0000FF","#FFFF00","#FF00FF","#FF4500","rgb(91,131,19)","#9400D3","#FFD700","#1E90FF","#007500","#FF69B4","#BA55D3","#7FFF00","#B22222"];function*qtr(){let t=0;for(;;)yield Kue[t],t=(t+1)%Kue.length}const err=qtr(),DL=new Map,pTe=t=>(DL.has(t)||DL.set(t,err.next().value),DL.get(t)||"#ffffff"),trr=()=>{DL.clear()},mTe=(t,r)=>{let e=0,n=0,a=0,u=0,o=9,f=9,i="",s=0,d=0,l={p1:"",p2:"",p3:""};switch(t){case P1.NOC1_NORTH:d=0,e=eh.x+Rb,a=eh.y+Pb,n=eh.x+Rb,u=0,l={p1:`${n-f/2},${u+o+d}`,p2:`${n+f/2},${u+o+d}`,p3:`${n},${u+d}`};break;case P1.NOC1_WEST:d=0,e=eh.x+Rb,n=0,a=eh.y+Pb,u=eh.y+Pb,l={p1:`${n+o+d},${u-f/2}`,p2:`${n+o+d},${u+f/2}`,p3:`${n+d},${u}`};break;case P1.NOC0_SOUTH:d=2,e=eh.x+Eb,n=eh.x+Eb,a=eh.y+Mb,u=W5,l={p1:`${n-f/2},${u-o-d}`,p2:`${n+f/2},${u-o-d}`,p3:`${n},${u-d}`};break;case P1.NOC0_EAST:d=2,e=eh.x+Eb,n=W5,a=eh.y+Mb,u=eh.y+Mb,l={p1:`${n-o-d},${u-f/2}`,p2:`${n-o-d},${u+f/2}`,p3:`${n-d},${u}`};break;case P1.NOC0_OUT:f=7,o=7,d=2,e=eh.x+Eb-Av,n=uC.x+Eb-Av,a=eh.y+Mb-Av,u=uC.y+Mb-Av,l={p1:`${n-f/2},${u+o-d}`,p2:`${n+f/2},${u+o-d}`,p3:`${n},${u-d}`},s=Math.atan2(u-a,n-e)*180/Math.PI+90,i=`rotate(${s} ${n} ${u})`;break;case P1.NOC0_IN:f=7,o=7,d=2,e=uC.x+Eb+Av,n=eh.x+Eb+Av,u=eh.y+Mb+Av,a=uC.y+Mb+Av,l={p1:`${n-f/2},${u+o-d}`,p2:`${n+f/2},${u+o-d}`,p3:`${n},${u-d}`},s=Math.atan2(u-a,n-e)*180/Math.PI+90,i=`rotate(${s} ${n} ${u})`;break;case P1.NOC1_OUT:f=7,o=7,d=0,e=eh.x+Rb-Av,n=uC.x+Rb-Av,a=eh.y+Pb-Av,u=uC.y+Pb-Av,l={p1:`${n-f/2},${u+o-d}`,p2:`${n+f/2},${u+o-d}`,p3:`${n},${u-d}`},s=Math.atan2(u-a,n-e)*180/Math.PI+90,i=`rotate(${s} ${n} ${u})`;break;case P1.NOC1_IN:f=7,o=7,d=0,e=uC.x+Rb+Av,n=eh.x+Rb+Av,u=eh.y+Pb+Av,a=uC.y+Pb+Av,l={p1:`${n-f/2},${u+o-d}`,p2:`${n+f/2},${u+o-d}`,p3:`${n},${u-d}`},s=Math.atan2(u-a,n-e)*180/Math.PI+90,i=`rotate(${s} ${n} ${u})`;break}return{x2:n,y2:u,x1:e,y1:a,arrow:l,transform:i,color:r,nocId:t}},DE=(t,r=0,e=!1)=>{if(t===-1)return"rgb(100, 100, 100)";const n=150,u=(Math.min(t,n)-r)/(n-r),o=Math.round(u*255);return e?`rgb(${o},${o},${255-o})`:`rgb(${o}, ${255-o}, 0)`},Que=t=>t.map(r=>mTe(r.nocId,pTe(r.transfer))),rrr=({timestepList:t,canvasWidth:r})=>{const e=St.useRef(null),n=30,[a,u]=St.useState(null),o=St.useMemo(()=>({worst:t.map(s=>{const d=Math.max(-1,...s.link_demand.map(h=>h[Ss.DEMAND])),l=DE(d);return{value:d,color:l}}),utilization:t.map(s=>({value:s.avg_link_util,color:DE(s.avg_link_util)})),demand:t.map(s=>{const d=DE(s.avg_link_demand);return{value:s.avg_link_demand,color:d}})}),[t]);St.useEffect(()=>{const s=e.current,d=s==null?void 0:s.getContext("2d");if(!s||!d)return;d.clearRect(0,0,s.width,s.height);const l=s.width/o.worst.length;o.worst.forEach(({color:h},y)=>{d.fillStyle=h,d.fillRect(y*l,0,l,s.height/3)}),o.utilization.forEach(({color:h},y)=>{d.fillStyle=h,d.fillRect(y*l,s.height/3,l,s.height/3*2)}),o.demand.forEach(({color:h},y)=>{d.fillStyle=h,d.fillRect(y*l,s.height/3*2,l,s.height)})},[o,r,n]);const f=s=>{const d=e.current;if(d){const l=d.getBoundingClientRect(),h=s.clientX-l.left,y=l.width/o.worst.length,b=Math.floor(h/y);b>-1?u({x:h,y:0,text:Ge.jsxs("div",{children:[Ge.jsxs("div",{children:[Ge.jsx("span",{style:{width:"10px",height:"10px",display:"inline-block",backgroundColor:o.worst[b].color}})," ","Max Demand:"," ",o.worst[b].value>-1?`${o.worst[b].value.toFixed(3)} %`:"N/A"]}),Ge.jsxs("div",{children:[Ge.jsx("span",{style:{width:"10px",height:"10px",display:"inline-block",backgroundColor:o.utilization[b].color}}),` Avg Utilization: ${o.utilization[b].value.toFixed(3)} %`]}),Ge.jsxs("div",{children:[Ge.jsx("span",{style:{width:"10px",height:"10px",display:"inline-block",backgroundColor:o.demand[b].color}}),` Avg Demand: ${o.demand[b].value.toFixed(3)} %`]})]})}):(e.current&&(e.current.style.cursor="default"),u(null))}},i=()=>{u(null)};return Ge.jsxs(Ge.Fragment,{children:[a&&Ge.jsx(Es,{content:a.text,position:sl.TOP,hoverOpenDelay:0,hoverCloseDelay:0,isOpen:!0,usePortal:!0,minimal:!0,modifiers:{offset:{enabled:!0,options:{offset:[a.x,n*1.5]}}},children:Ge.jsx("div",{style:{position:"absolute",top:0,left:`${a.x}px`,width:"0",height:"0",backgroundColor:"red",zIndex:100}})}),Ge.jsx("canvas",{style:{width:"100%",height:`${n}px`},ref:e,width:r,height:n,onMouseMove:f,onMouseLeave:i})]})},nrr=({groupedTransfersByNoCID:t,selectedNode:r,showActiveTransfers:e,highlightedTransfer:n,setHighlightedTransfer:a,congestionData:u})=>Ge.jsx("div",{className:"side-data",children:Object.keys(t).length!==0&&Ge.jsxs(Ge.Fragment,{children:[Ge.jsxs("h3",{children:["Active transfers through ",r==null?void 0:r.coords.join("-"),Ge.jsx(Na,{variant:"minimal",icon:ki.CROSS,onClick:()=>e(null)})]}),Object.entries(t).map(([o,f])=>{const i=u.find(d=>d[Ss.NOC_ID]===o),s=i?i[Ss.DEMAND]:0;return Ge.jsxs("div",{className:"local-transfer-ctn",children:[Ge.jsxs("h4",{children:["NOC ID: ",o,Ge.jsx("span",{className:"color-square",style:{backgroundColor:DE(s)}}),s.toFixed(2)]}),f.map(d=>Ge.jsxs("div",{className:"local-transfer",style:{opacity:n===null||n===d?1:.25},onMouseOver:()=>a(d),onMouseOut:()=>a(null),children:[Ge.jsx("div",{className:"color-square",style:{backgroundColor:pTe(d.id)}}),d.id,Ge.jsxs("div",{children:[Ge.jsx("span",{className:"transfer-src",children:d.src.join("-")})," ",Ge.jsx(tl,{size:12,icon:ki.ArrowRight})," ",Ge.jsx("span",{className:"transfer-dst",children:d.dst.length===1?d.dst[0].join("-"):`${d.dst[0].join("-")} - ${d.dst[d.dst.length-1].join("-")}`})]}),Ge.jsxs("div",{children:[Sh(d.total_bytes),"B"]}),Ge.jsx("div",{children:d.noc_event_type}),Ge.jsx("div",{children:Ge.jsxs("div",{className:"route",children:[d.route[0].injection_rate.toFixed(2)," b/cycle"]})})]},d.id))]},o)})]})}),irr=({info:t,numTransfers:r})=>{const e=u=>OS[u]!==void 0&&OS[u]!==null,n=(u,o)=>{if(!OS[u])return null;const i=OS[u],s=i.units,d=i.decimals!==void 0?i.decimals:2;return`${typeof o=="number"?Number(o).toFixed(d):o} ${s}`},a=u=>{const o=OS[u];if(!o)return null;const{label:f,description:i}=o;return Ge.jsx(Es,{content:i,children:f?`${f}: `:u})};return Ge.jsx("div",{className:"metadata",children:Ge.jsxs(MD,{label:Ge.jsx("h3",{className:"title",children:"Run summary"}),isOpen:!0,children:[Ge.jsx("div",{children:t&&Object.keys(t).map(u=>e(u)&&t[u]!==void 0?Ge.jsxs("div",{children:[Ge.jsxs("span",{children:[a(u),": "]}),Ge.jsx("span",{children:n(u,t[u])})]},u):null)}),Ge.jsx("hr",{}),Ge.jsxs("div",{children:[Ge.jsx("span",{children:"Active transfers:"}),Ge.jsx("span",{children:r})]})]})})},arr=({id:t,width:r,height:e,cores:n,dram:a,eth:u,pcie:o,showActiveTransfers:f,isAnnotatingCores:i,TENSIX_SIZE:s})=>{const d=l=>{const[h,y]=l;return n!=null&&n.some(b=>b[0]===h&&b[1]===y)?Ge.jsx("div",{className:"node-type-label node-type-c",children:"T"}):a!=null&&a.some(b=>b[0]===h&&b[1]===y)?Ge.jsx("div",{className:"node-type-label node-type-d",children:"d"}):u!=null&&u.some(b=>b[0]===h&&b[1]===y)?Ge.jsx("div",{className:"node-type-label node-type-e",children:"e"}):o!=null&&o.some(b=>b[0]===h&&b[1]===y)?Ge.jsx("div",{className:"node-type-label node-type-p",children:"p"}):Ge.jsx("div",{className:"node-type-label"})};return Ge.jsxs("div",{className:"tensix-grid empty",style:{display:"grid",gridTemplateColumns:`repeat(${r||0}, ${s}px)`,gridTemplateRows:`repeat(${e||0}, ${s}px)`},children:[Ge.jsx("div",{className:"chip-id",children:t}),Array.from({length:r}).map((l,h)=>Array.from({length:e}).map((y,b)=>Ge.jsx("div",{className:"tensix empty-tensix",onClick:()=>f(null),style:{gridColumn:h+1,gridRow:b+1,width:`${s}px`,height:`${s}px`},children:i?d([b,h]):""},`${h}-${b}`)))]})},orr=({transfer:t,clusterChip:r,index:e,getOriginOpacity:n})=>Ge.jsxs(Ge.Fragment,{children:[t.src&&r.id===t.src[Ss.CHIP_ID]&&Ge.jsx("div",{className:"tensix src-dst src",style:{gridColumn:t.src[Ss.X]+1,gridRow:t.src[Ss.Y]+1,opacity:n(t)}},`${t.id}-src-${e}`),t.dst.map(a=>{var o;const u=((o=t.src)==null?void 0:o.toString())===a.toString()?"both":"dst";return r.id===a[Ss.CHIP_ID]?Ge.jsx("div",{className:_i("tensix src-dst",u),style:{gridColumn:a[Ss.X]+1,gridRow:a[Ss.Y]+1,opacity:n(t)}},`${t.id}-dst-${e}-${a[Ss.Y]}-${a[Ss.X]}`):null})]}),srr=25,Jue=25,L1=W5,T2=L1,que=1,ece=2,lrr=({npeData:t})=>{var re,oe;const[r,e]=St.useState(null),[n,a]=St.useState(0),u=t.timestep_data[n],o=t.noc_transfers.filter(le=>u==null?void 0:u.active_transfers.includes(le.id)),[f,i]=St.useState(null),[s,d]=St.useState([]),[l,h]=St.useState(null),[y,b]=St.useState(0);let C=0;const[m,c]=St.useState(.75),v=Object.entries(t.chips).map(([le,me])=>(C=Math.max(C,me[tg.X]),{id:parseInt(le,10),coords:me})),[g,p]=St.useState(!1),[I,A]=St.useState(!0),[T,_]=St.useState(window.innerWidth);St.useEffect(()=>{const le=()=>_(window.innerWidth);return window.addEventListener("resize",le),()=>window.removeEventListener("resize",le)},[]);const{architecture:E,cores:x,dram:S,eth:w,pcie:L}=c8e(t.common_info.arch),k=((re=E.grid)==null?void 0:re.x_size)||10,F=((oe=E.grid)==null?void 0:oe.y_size)||12;St.useEffect(()=>{trr(),g&&Q()},[n,g]),St.useEffect(()=>{M(),a(0),h(null),d([]),e(null)},[t]);const N=St.useMemo(()=>{const le=new Map;return s.forEach(me=>{me.route.forEach(pe=>{pe.links.forEach(se=>{const[ne,J,ce]=se,he=le.get(ne)||[];he[J]=he[J]||[],he[J][ce]=he[J][ce]||[],he[J][ce].push({transfer:me.id,nocId:se[Ss.NOC_ID]}),le.set(ne,he)})})}),le},[s]),P=St.useMemo(()=>{if(!(l!=null&&l.coords))return{};const[le,me,pe]=l.coords,se={};return s.forEach(ne=>{ne.route.forEach(J=>{J.links.forEach(ce=>{const[he,ue,te]=ce;if(me===ue&&pe===te&&le===he){const ge=ce[Ss.NOC_ID];se[ge]||(se[ge]=[]),se[ge].push(ne)}})})}),se},[s,l]),z=(le=que)=>{b(le),clearInterval(f);const me=t.timestep_data.length,pe=setInterval(()=>{a(se=>se<me-1?se+1:0)},100/le);i(pe)},M=()=>(b(0),clearInterval(f)),R=()=>{z()},D=()=>{z(ece)},O=()=>{M()},H=()=>{M();const le=t.timestep_data.length;h(null),d([]),a(me=>me>0?me-1:le-1)},G=()=>{M(),h(null),d([]);const le=t.timestep_data.length;a(me=>me<le-1?me+1:0)},W=le=>{M(),a(le),h(null),d([])},X=(le,me)=>{if(Y(),le===null){d([]),h(null);return}if((l==null?void 0:l.index)===me){h(null),d([]);return}me!==void 0&&h({index:me,coords:[le[Ss.CHIP_ID],le[Ss.Y],le[Ss.X]]}),O();const pe=t.timestep_data[n].active_transfers.map(se=>{var ce;const ne=t.noc_transfers.find(he=>he.id===se),J=(ce=ne==null?void 0:ne.route)==null?void 0:ce.map(he=>he.links.some(ue=>ue[Ss.Y]===le[Ss.Y]&&ue[Ss.X]===le[Ss.X])?he:null).filter(he=>he!==null);if(J&&J.length>0)return ne}).filter(se=>se!==void 0);d(pe)},Y=()=>{p(!1),d([])},Q=()=>{p(!0),h(null);const le=t.timestep_data[n].active_transfers.map(me=>t.noc_transfers.find(pe=>pe.id===me)).filter(me=>me!==void 0);d(le)},V=le=>{if(g)return 0;if(r!==null&&r.id===le.id)return 1;if(r!==null)return .15;if(s.length===0)return 0;const me=s.some(pe=>pe.id===le.id);return s.length!==0&&!me?.15:.5},K=T-T/t.timestep_data.length-Jue;return Ge.jsxs("div",{className:"npe",children:[Ge.jsx(irr,{info:t.common_info,numTransfers:o.length}),Ge.jsxs("div",{className:"header",children:[Ge.jsxs(ny,{className:"npe-controls",children:[Ge.jsx(Na,{icon:ki.StepBackward,onClick:H}),Ge.jsx(Na,{icon:ki.Play,intent:y===que?uo.PRIMARY:uo.NONE,onClick:R}),Ge.jsx(Na,{icon:ki.FastForward,onClick:D,intent:y===ece?uo.PRIMARY:uo.NONE}),Ge.jsx(Na,{icon:ki.STOP,onClick:O}),Ge.jsx(Na,{icon:ki.StepForward,onClick:G}),"|",Ge.jsx(Wd,{label:"Show all active transfers",checked:g,onChange:()=>g?Y():Q()}),Ge.jsx(Wd,{label:"Annotate cores",checked:I,onChange:()=>A(!I)}),"|",Ge.jsxs("label",{children:["Zoom",Ge.jsx(DU,{"aria-label":"zoom",min:.1,max:2,stepSize:.1,labelStepSize:1,value:m,onChange:le=>c(le),labelRenderer:le=>`${le.toFixed(1)}`})]})]}),Ge.jsxs("div",{style:{position:"relative",width:`${K}px`},children:[Ge.jsx(DU,{min:0,max:t.timestep_data.length-1,stepSize:1,labelStepSize:t.timestep_data.length>srr?t.timestep_data.length/20:1,value:n,onChange:le=>W(le)}),Ge.jsx("div",{className:"bp5-slider-progress duplicate",style:{width:`${T-Jue}px`}})]}),Ge.jsx(rrr,{timestepList:t.timestep_data,canvasWidth:T})]}),Ge.jsxs("div",{className:"split-grid",children:[Ge.jsx("div",{className:_i("chip-cluster-wrap",{"details-open":l!==null}),style:{gridTemplateColumns:`repeat(${C||0}, ${(L1+1)*k}px)`,zoom:m},children:v.map(le=>{var me;return Ge.jsxs("div",{className:"chip",style:{gridColumn:le.coords[tg.X]+1,gridRow:le.coords[tg.Y]+1},children:[Ge.jsx(arr,{id:le.id,width:k,height:F,cores:x,dram:S,eth:w,pcie:L,showActiveTransfers:X,isAnnotatingCores:I,TENSIX_SIZE:L1}),Ge.jsxs("div",{className:"tensix-grid congestion",style:{display:"grid",gridTemplateColumns:`repeat(${k}, ${L1}px)`,gridTemplateRows:`repeat(${F}, ${L1}px)`},children:[o.map((pe,se)=>Ge.jsx(orr,{transfer:pe,clusterChip:le,index:se,getOriginOpacity:V},`${pe.id}-${se}`)),u==null?void 0:u.link_demand.map((pe,se)=>pe[Ss.CHIP_ID]===le.id?Ge.jsxs("button",{type:"button",className:`tensix ${pe[Ss.Y]}-${pe[Ss.X]}`,style:{position:"relative",gridColumn:pe[Ss.X]+1,gridRow:pe[Ss.Y]+1},onClick:()=>X(pe,se),children:[Ge.jsx(I$,{style:{opacity:r!==null||s.length!==0?.15:1},width:T2,height:T2,data:[mTe(pe[Ss.NOC_ID],DE(pe[Ss.DEMAND]))],isMulticolor:!1}),Ge.jsxs("div",{style:{fontSize:"9px",position:"absolute",top:0},children:[pe[Ss.Y],"-",pe[Ss.X]]})]},`${se}-${pe[Ss.Y]}-${pe[Ss.X]}-${pe[Ss.NOC_ID]}`):null)]}),Ge.jsx("div",{className:"tensix-grid transfers",style:{gridTemplateColumns:`repeat(${k}, ${L1}px)`,gridTemplateRows:`repeat(${F}, ${L1}px)`},children:(me=N.get(le.id))==null?void 0:me.map((pe,se)=>Ge.jsx(Ge.Fragment,{children:pe.map((ne,J)=>Ge.jsx("div",{className:(l==null?void 0:l.coords[Ss.Y])===se&&(l==null?void 0:l.coords[Ss.X])===J?"selected tensix no-click":"tensix no-click",style:{gridColumn:J+1,gridRow:se+1},children:Ge.jsx("div",{className:"transfer-render-ctn",children:Ge.jsx(I$,{style:{...r!==null?{opacity:.25}:{opacity:1}},width:T2,height:T2,data:Que(ne),isMulticolor:!0})})},`selected-transfer-${se}-${J}`))},`device-${le.id}-row-${se}`))}),r!==null&&Ge.jsx("div",{className:"tensix-grid transfer-single",style:{gridTemplateColumns:`repeat(${k}, ${L1}px)`,gridTemplateRows:`repeat(${F}, ${L1}px)`},children:r==null?void 0:r.route.map(pe=>pe.links.map(se=>se[Ss.CHIP_ID]===le.id?Ge.jsx("div",{className:"tensix",style:{position:"relative",gridColumn:se[Ss.X]+1,gridRow:se[Ss.Y]+1},children:Ge.jsx("div",{className:"transfer-render-ctn",children:Ge.jsx(I$,{width:T2,height:T2,data:Que([{transfer:r.id,nocId:se[Ss.NOC_ID]}]),isMulticolor:!1})})},`${se[Ss.Y]}-${se[Ss.X]}-${se[Ss.NOC_ID]}`):null))})]})})}),Ge.jsx(nrr,{groupedTransfersByNoCID:P,selectedNode:l,congestionData:u==null?void 0:u.link_demand.filter(le=>le[Ss.Y]===(l==null?void 0:l.coords[Ss.Y])&&le[Ss.X]===(l==null?void 0:l.coords[Ss.X])),showActiveTransfers:X,highlightedTransfer:r,setHighlightedTransfer:e})]})]})},sV=t=>{if(!t)return null;const r=/^(\d+)\.(\d+)\.(\d+)(?:-([\w.-]+))?$/,e=t.match(r);if(!e)return null;const[,n,a,u,o]=e;return{major:parseInt(n,10),minor:parseInt(a,10),patch:parseInt(u,10),...o?{prerelease:o}:{}}},yTe="1.0.0",tce=Ge.jsx("a",{target:"_blank",href:"https://github.com/tenstorrent/tt-npe",rel:"noreferrer",children:"tt-npe"}),urr=()=>{const t=rs(vD),{data:r,isLoading:e}=qDe(t);return Ge.jsxs(Ge.Fragment,{children:[Ge.jsx(RA,{title:"NPE"}),Ge.jsx("h1",{className:"page-title",children:"NOC performance estimator"}),Ge.jsx(Jtr,{}),e?Ge.jsx(Tv,{}):r?crr(r)?Ge.jsx(lrr,{npeData:r}):Ge.jsxs(Ge.Fragment,{children:[Ge.jsxs("p",{children:["Invalid NPE data or version. Current supported version is ",yTe," got ",r.common_info.version||"null",";"]}),Ge.jsxs("p",{children:["Use ",tce," to generate new NPE dataset",rce(r.common_info.version)?Ge.jsxs(Ge.Fragment,{children:[" ","or install an older version of the visualizer"," ",Ge.jsxs("pre",{children:["pip install ttnn-visualizer==",rce(r.common_info.version)]})]}):null]})]}):Ge.jsxs(Ge.Fragment,{children:[Ge.jsx("p",{children:"Please upload a NPE file for analysis."}),Ge.jsxs("p",{children:["See ",tce," for details on how to generate NPE files."]})]})]})},crr=t=>{if(!["common_info","noc_transfers","timestep_data"].every(u=>u in t))return!1;const n=sV(t.common_info.version);if(!n)return!1;const a=sV(yTe);return(n==null?void 0:n.major)===(a==null?void 0:a.major)},rce=t=>{switch(sV(t)){case null:case void 0:return"0.32.3";default:return""}},ATe=[{index:!0,element:Ge.jsx(r9e,{})},{path:os.OPERATIONS,element:Ge.jsx(R9e,{})},{path:`${os.OPERATIONS}/:operationId`,element:Ge.jsx(Wht,{})},{path:os.TENSORS,element:Ge.jsx(Jht,{})},{path:os.BUFFERS,element:Ge.jsx(kgt,{})},{path:os.STYLEGUIDE,element:Ge.jsx(Fgt,{})},{path:`${os.GRAPHTREE}/:operationId?`,element:Ge.jsx(Otr,{})},{path:os.PERFORMANCE,element:Ge.jsx(Xtr,{})},{path:os.NPE,element:Ge.jsx(urr,{})},{path:os.CLUSTER,element:null}],frr=aM({enter:"Toastify--animate Toastify__bounce-enter",exit:" no-toast-animation Toastify__bounce-exit",appendPosition:!0,collapseDuration:0,collapse:!0});function hrr(){const t="0.33.2",r=qm(l0),e=qm(Lh),n=qm(vD),{data:a}=gW(),u=uy(),o=u.state;return St.useEffect(()=>{var f,i,s;a!=null&&a.active_report&&(r(((f=a.active_report)==null?void 0:f.profiler_name)??null),e(((i=a.active_report)==null?void 0:i.performance_name)??null),n(((s=a.active_report)==null?void 0:s.npe_name)??null))},[a,r,e,n]),Ge.jsxs("div",{className:HT,children:[Ge.jsx(RA,{defaultTitle:"TT-NN Visualizer",titleTemplate:"%s | TT-NN Visualizer",children:Ge.jsx("meta",{charSet:"utf-8"})}),Ge.jsx("header",{className:"app-header",children:Ge.jsxs("nav",{className:"nav-container",children:[Ge.jsxs("a",{href:os.HOME,className:"title",children:[Ge.jsxs("h1",{children:[Ge.jsx("img",{width:250,alt:"tenstorrent",src:"https://docs.tenstorrent.com/tt-tm-assets/Logo/Standard%20Lockup/svg/tt_logo_color-orange-whitetext.svg"}),Ge.jsx("span",{className:"visualizer-title",children:"TT-NN Visualizer"})]}),Ge.jsxs("sup",{className:"version",children:["v",t]})]}),Ge.jsx(p8e,{})]})}),Ge.jsxs("main",{children:[Ge.jsx(E8e,{routes:ATe}),u.pathname===os.CLUSTER&&(o==null?void 0:o.background)&&Ge.jsx(_8e,{}),Ge.jsx(pOe,{position:"top-right",autoClose:!1,newestOnTop:!1,closeOnClick:!0,closeButton:!1,theme:"light",transition:frr})]}),Ge.jsx(I8e,{})]})}const a1=Object.create(null);a1.open="0";a1.close="1";a1.ping="2";a1.pong="3";a1.message="4";a1.upgrade="5";a1.noop="6";const NL=Object.create(null);Object.keys(a1).forEach(t=>{NL[a1[t]]=t});const lV={type:"error",data:"parser error"},CTe=typeof Blob=="function"||typeof Blob<"u"&&Object.prototype.toString.call(Blob)==="[object BlobConstructor]",ITe=typeof ArrayBuffer=="function",bTe=t=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(t):t&&t.buffer instanceof ArrayBuffer,oX=({type:t,data:r},e,n)=>CTe&&r instanceof Blob?e?n(r):nce(r,n):ITe&&(r instanceof ArrayBuffer||bTe(r))?e?n(r):nce(new Blob([r]),n):n(a1[t]+(r||"")),nce=(t,r)=>{const e=new FileReader;return e.onload=function(){const n=e.result.split(",")[1];r("b"+(n||""))},e.readAsDataURL(t)};function ice(t){return t instanceof Uint8Array?t:t instanceof ArrayBuffer?new Uint8Array(t):new Uint8Array(t.buffer,t.byteOffset,t.byteLength)}let b$;function drr(t,r){if(CTe&&t.data instanceof Blob)return t.data.arrayBuffer().then(ice).then(r);if(ITe&&(t.data instanceof ArrayBuffer||bTe(t.data)))return r(ice(t.data));oX(t,!1,e=>{b$||(b$=new TextEncoder),r(b$.encode(e))})}const ace="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",qS=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(let t=0;t<ace.length;t++)qS[ace.charCodeAt(t)]=t;const vrr=t=>{let r=t.length*.75,e=t.length,n,a=0,u,o,f,i;t[t.length-1]==="="&&(r--,t[t.length-2]==="="&&r--);const s=new ArrayBuffer(r),d=new Uint8Array(s);for(n=0;n<e;n+=4)u=qS[t.charCodeAt(n)],o=qS[t.charCodeAt(n+1)],f=qS[t.charCodeAt(n+2)],i=qS[t.charCodeAt(n+3)],d[a++]=u<<2|o>>4,d[a++]=(o&15)<<4|f>>2,d[a++]=(f&3)<<6|i&63;return s},grr=typeof ArrayBuffer=="function",sX=(t,r)=>{if(typeof t!="string")return{type:"message",data:xTe(t,r)};const e=t.charAt(0);return e==="b"?{type:"message",data:prr(t.substring(1),r)}:NL[e]?t.length>1?{type:NL[e],data:t.substring(1)}:{type:NL[e]}:lV},prr=(t,r)=>{if(grr){const e=vrr(t);return xTe(e,r)}else return{base64:!0,data:t}},xTe=(t,r)=>{switch(r){case"blob":return t instanceof Blob?t:new Blob([t]);case"arraybuffer":default:return t instanceof ArrayBuffer?t:t.buffer}},wTe="",mrr=(t,r)=>{const e=t.length,n=new Array(e);let a=0;t.forEach((u,o)=>{oX(u,!1,f=>{n[o]=f,++a===e&&r(n.join(wTe))})})},yrr=(t,r)=>{const e=t.split(wTe),n=[];for(let a=0;a<e.length;a++){const u=sX(e[a],r);if(n.push(u),u.type==="error")break}return n};function Arr(){return new TransformStream({transform(t,r){drr(t,e=>{const n=e.length;let a;if(n<126)a=new Uint8Array(1),new DataView(a.buffer).setUint8(0,n);else if(n<65536){a=new Uint8Array(3);const u=new DataView(a.buffer);u.setUint8(0,126),u.setUint16(1,n)}else{a=new Uint8Array(9);const u=new DataView(a.buffer);u.setUint8(0,127),u.setBigUint64(1,BigInt(n))}t.data&&typeof t.data!="string"&&(a[0]|=128),r.enqueue(a),r.enqueue(e)})}})}let x$;function S6(t){return t.reduce((r,e)=>r+e.length,0)}function E6(t,r){if(t[0].length===r)return t.shift();const e=new Uint8Array(r);let n=0;for(let a=0;a<r;a++)e[a]=t[0][n++],n===t[0].length&&(t.shift(),n=0);return t.length&&n<t[0].length&&(t[0]=t[0].slice(n)),e}function Crr(t,r){x$||(x$=new TextDecoder);const e=[];let n=0,a=-1,u=!1;return new TransformStream({transform(o,f){for(e.push(o);;){if(n===0){if(S6(e)<1)break;const i=E6(e,1);u=(i[0]&128)===128,a=i[0]&127,a<126?n=3:a===126?n=1:n=2}else if(n===1){if(S6(e)<2)break;const i=E6(e,2);a=new DataView(i.buffer,i.byteOffset,i.length).getUint16(0),n=3}else if(n===2){if(S6(e)<8)break;const i=E6(e,8),s=new DataView(i.buffer,i.byteOffset,i.length),d=s.getUint32(0);if(d>Math.pow(2,21)-1){f.enqueue(lV);break}a=d*Math.pow(2,32)+s.getUint32(4),n=3}else{if(S6(e)<a)break;const i=E6(e,a);f.enqueue(sX(u?i:x$.decode(i),r)),n=0}if(a===0||a>t){f.enqueue(lV);break}}}})}const TTe=4;function nh(t){if(t)return Irr(t)}function Irr(t){for(var r in nh.prototype)t[r]=nh.prototype[r];return t}nh.prototype.on=nh.prototype.addEventListener=function(t,r){return this._callbacks=this._callbacks||{},(this._callbacks["$"+t]=this._callbacks["$"+t]||[]).push(r),this};nh.prototype.once=function(t,r){function e(){this.off(t,e),r.apply(this,arguments)}return e.fn=r,this.on(t,e),this};nh.prototype.off=nh.prototype.removeListener=nh.prototype.removeAllListeners=nh.prototype.removeEventListener=function(t,r){if(this._callbacks=this._callbacks||{},arguments.length==0)return this._callbacks={},this;var e=this._callbacks["$"+t];if(!e)return this;if(arguments.length==1)return delete this._callbacks["$"+t],this;for(var n,a=0;a<e.length;a++)if(n=e[a],n===r||n.fn===r){e.splice(a,1);break}return e.length===0&&delete this._callbacks["$"+t],this};nh.prototype.emit=function(t){this._callbacks=this._callbacks||{};for(var r=new Array(arguments.length-1),e=this._callbacks["$"+t],n=1;n<arguments.length;n++)r[n-1]=arguments[n];if(e){e=e.slice(0);for(var n=0,a=e.length;n<a;++n)e[n].apply(this,r)}return this};nh.prototype.emitReserved=nh.prototype.emit;nh.prototype.listeners=function(t){return this._callbacks=this._callbacks||{},this._callbacks["$"+t]||[]};nh.prototype.hasListeners=function(t){return!!this.listeners(t).length};const c9=typeof Promise=="function"&&typeof Promise.resolve=="function"?r=>Promise.resolve().then(r):(r,e)=>e(r,0),Wm=typeof self<"u"?self:typeof window<"u"?window:Function("return this")(),brr="arraybuffer";function _Te(t,...r){return r.reduce((e,n)=>(t.hasOwnProperty(n)&&(e[n]=t[n]),e),{})}const xrr=Wm.setTimeout,wrr=Wm.clearTimeout;function f9(t,r){r.useNativeTimers?(t.setTimeoutFn=xrr.bind(Wm),t.clearTimeoutFn=wrr.bind(Wm)):(t.setTimeoutFn=Wm.setTimeout.bind(Wm),t.clearTimeoutFn=Wm.clearTimeout.bind(Wm))}const Trr=1.33;function _rr(t){return typeof t=="string"?Srr(t):Math.ceil((t.byteLength||t.size)*Trr)}function Srr(t){let r=0,e=0;for(let n=0,a=t.length;n<a;n++)r=t.charCodeAt(n),r<128?e+=1:r<2048?e+=2:r<55296||r>=57344?e+=3:(n++,e+=4);return e}function STe(){return Date.now().toString(36).substring(3)+Math.random().toString(36).substring(2,5)}function Err(t){let r="";for(let e in t)t.hasOwnProperty(e)&&(r.length&&(r+="&"),r+=encodeURIComponent(e)+"="+encodeURIComponent(t[e]));return r}function Mrr(t){let r={},e=t.split("&");for(let n=0,a=e.length;n<a;n++){let u=e[n].split("=");r[decodeURIComponent(u[0])]=decodeURIComponent(u[1])}return r}class Rrr extends Error{constructor(r,e,n){super(r),this.description=e,this.context=n,this.type="TransportError"}}class lX extends nh{constructor(r){super(),this.writable=!1,f9(this,r),this.opts=r,this.query=r.query,this.socket=r.socket,this.supportsBinary=!r.forceBase64}onError(r,e,n){return super.emitReserved("error",new Rrr(r,e,n)),this}open(){return this.readyState="opening",this.doOpen(),this}close(){return(this.readyState==="opening"||this.readyState==="open")&&(this.doClose(),this.onClose()),this}send(r){this.readyState==="open"&&this.write(r)}onOpen(){this.readyState="open",this.writable=!0,super.emitReserved("open")}onData(r){const e=sX(r,this.socket.binaryType);this.onPacket(e)}onPacket(r){super.emitReserved("packet",r)}onClose(r){this.readyState="closed",super.emitReserved("close",r)}pause(r){}createUri(r,e={}){return r+"://"+this._hostname()+this._port()+this.opts.path+this._query(e)}_hostname(){const r=this.opts.hostname;return r.indexOf(":")===-1?r:"["+r+"]"}_port(){return this.opts.port&&(this.opts.secure&&+(this.opts.port!==443)||!this.opts.secure&&Number(this.opts.port)!==80)?":"+this.opts.port:""}_query(r){const e=Err(r);return e.length?"?"+e:""}}class Prr extends lX{constructor(){super(...arguments),this._polling=!1}get name(){return"polling"}doOpen(){this._poll()}pause(r){this.readyState="pausing";const e=()=>{this.readyState="paused",r()};if(this._polling||!this.writable){let n=0;this._polling&&(n++,this.once("pollComplete",function(){--n||e()})),this.writable||(n++,this.once("drain",function(){--n||e()}))}else e()}_poll(){this._polling=!0,this.doPoll(),this.emitReserved("poll")}onData(r){const e=n=>{if(this.readyState==="opening"&&n.type==="open"&&this.onOpen(),n.type==="close")return this.onClose({description:"transport closed by the server"}),!1;this.onPacket(n)};yrr(r,this.socket.binaryType).forEach(e),this.readyState!=="closed"&&(this._polling=!1,this.emitReserved("pollComplete"),this.readyState==="open"&&this._poll())}doClose(){const r=()=>{this.write([{type:"close"}])};this.readyState==="open"?r():this.once("open",r)}write(r){this.writable=!1,mrr(r,e=>{this.doWrite(e,()=>{this.writable=!0,this.emitReserved("drain")})})}uri(){const r=this.opts.secure?"https":"http",e=this.query||{};return this.opts.timestampRequests!==!1&&(e[this.opts.timestampParam]=STe()),!this.supportsBinary&&!e.sid&&(e.b64=1),this.createUri(r,e)}}let ETe=!1;try{ETe=typeof XMLHttpRequest<"u"&&"withCredentials"in new XMLHttpRequest}catch{}const Lrr=ETe;function Orr(){}class krr extends Prr{constructor(r){if(super(r),typeof location<"u"){const e=location.protocol==="https:";let n=location.port;n||(n=e?"443":"80"),this.xd=typeof location<"u"&&r.hostname!==location.hostname||n!==r.port}}doWrite(r,e){const n=this.request({method:"POST",data:r});n.on("success",e),n.on("error",(a,u)=>{this.onError("xhr post error",a,u)})}doPoll(){const r=this.request();r.on("data",this.onData.bind(this)),r.on("error",(e,n)=>{this.onError("xhr poll error",e,n)}),this.pollXhr=r}}let LT=class FL extends nh{constructor(r,e,n){super(),this.createRequest=r,f9(this,n),this._opts=n,this._method=n.method||"GET",this._uri=e,this._data=n.data!==void 0?n.data:null,this._create()}_create(){var r;const e=_Te(this._opts,"agent","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","autoUnref");e.xdomain=!!this._opts.xd;const n=this._xhr=this.createRequest(e);try{n.open(this._method,this._uri,!0);try{if(this._opts.extraHeaders){n.setDisableHeaderCheck&&n.setDisableHeaderCheck(!0);for(let a in this._opts.extraHeaders)this._opts.extraHeaders.hasOwnProperty(a)&&n.setRequestHeader(a,this._opts.extraHeaders[a])}}catch{}if(this._method==="POST")try{n.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch{}try{n.setRequestHeader("Accept","*/*")}catch{}(r=this._opts.cookieJar)===null||r===void 0||r.addCookies(n),"withCredentials"in n&&(n.withCredentials=this._opts.withCredentials),this._opts.requestTimeout&&(n.timeout=this._opts.requestTimeout),n.onreadystatechange=()=>{var a;n.readyState===3&&((a=this._opts.cookieJar)===null||a===void 0||a.parseCookies(n.getResponseHeader("set-cookie"))),n.readyState===4&&(n.status===200||n.status===1223?this._onLoad():this.setTimeoutFn(()=>{this._onError(typeof n.status=="number"?n.status:0)},0))},n.send(this._data)}catch(a){this.setTimeoutFn(()=>{this._onError(a)},0);return}typeof document<"u"&&(this._index=FL.requestsCount++,FL.requests[this._index]=this)}_onError(r){this.emitReserved("error",r,this._xhr),this._cleanup(!0)}_cleanup(r){if(!(typeof this._xhr>"u"||this._xhr===null)){if(this._xhr.onreadystatechange=Orr,r)try{this._xhr.abort()}catch{}typeof document<"u"&&delete FL.requests[this._index],this._xhr=null}}_onLoad(){const r=this._xhr.responseText;r!==null&&(this.emitReserved("data",r),this.emitReserved("success"),this._cleanup())}abort(){this._cleanup()}};LT.requestsCount=0;LT.requests={};if(typeof document<"u"){if(typeof attachEvent=="function")attachEvent("onunload",oce);else if(typeof addEventListener=="function"){const t="onpagehide"in Wm?"pagehide":"unload";addEventListener(t,oce,!1)}}function oce(){for(let t in LT.requests)LT.requests.hasOwnProperty(t)&&LT.requests[t].abort()}const Drr=function(){const t=MTe({xdomain:!1});return t&&t.responseType!==null}();class Nrr extends krr{constructor(r){super(r);const e=r&&r.forceBase64;this.supportsBinary=Drr&&!e}request(r={}){return Object.assign(r,{xd:this.xd},this.opts),new LT(MTe,this.uri(),r)}}function MTe(t){const r=t.xdomain;try{if(typeof XMLHttpRequest<"u"&&(!r||Lrr))return new XMLHttpRequest}catch{}if(!r)try{return new Wm[["Active"].concat("Object").join("X")]("Microsoft.XMLHTTP")}catch{}}const RTe=typeof navigator<"u"&&typeof navigator.product=="string"&&navigator.product.toLowerCase()==="reactnative";class Frr extends lX{get name(){return"websocket"}doOpen(){const r=this.uri(),e=this.opts.protocols,n=RTe?{}:_Te(this.opts,"agent","perMessageDeflate","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","localAddress","protocolVersion","origin","maxPayload","family","checkServerIdentity");this.opts.extraHeaders&&(n.headers=this.opts.extraHeaders);try{this.ws=this.createSocket(r,e,n)}catch(a){return this.emitReserved("error",a)}this.ws.binaryType=this.socket.binaryType,this.addEventListeners()}addEventListeners(){this.ws.onopen=()=>{this.opts.autoUnref&&this.ws._socket.unref(),this.onOpen()},this.ws.onclose=r=>this.onClose({description:"websocket connection closed",context:r}),this.ws.onmessage=r=>this.onData(r.data),this.ws.onerror=r=>this.onError("websocket error",r)}write(r){this.writable=!1;for(let e=0;e<r.length;e++){const n=r[e],a=e===r.length-1;oX(n,this.supportsBinary,u=>{try{this.doWrite(n,u)}catch{}a&&c9(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){typeof this.ws<"u"&&(this.ws.onerror=()=>{},this.ws.close(),this.ws=null)}uri(){const r=this.opts.secure?"wss":"ws",e=this.query||{};return this.opts.timestampRequests&&(e[this.opts.timestampParam]=STe()),this.supportsBinary||(e.b64=1),this.createUri(r,e)}}const w$=Wm.WebSocket||Wm.MozWebSocket;class zrr extends Frr{createSocket(r,e,n){return RTe?new w$(r,e,n):e?new w$(r,e):new w$(r)}doWrite(r,e){this.ws.send(e)}}class Brr extends lX{get name(){return"webtransport"}doOpen(){try{this._transport=new WebTransport(this.createUri("https"),this.opts.transportOptions[this.name])}catch(r){return this.emitReserved("error",r)}this._transport.closed.then(()=>{this.onClose()}).catch(r=>{this.onError("webtransport error",r)}),this._transport.ready.then(()=>{this._transport.createBidirectionalStream().then(r=>{const e=Crr(Number.MAX_SAFE_INTEGER,this.socket.binaryType),n=r.readable.pipeThrough(e).getReader(),a=Arr();a.readable.pipeTo(r.writable),this._writer=a.writable.getWriter();const u=()=>{n.read().then(({done:f,value:i})=>{f||(this.onPacket(i),u())}).catch(f=>{})};u();const o={type:"open"};this.query.sid&&(o.data=`{"sid":"${this.query.sid}"}`),this._writer.write(o).then(()=>this.onOpen())})})}write(r){this.writable=!1;for(let e=0;e<r.length;e++){const n=r[e],a=e===r.length-1;this._writer.write(n).then(()=>{a&&c9(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){var r;(r=this._transport)===null||r===void 0||r.close()}}const $rr={websocket:zrr,webtransport:Brr,polling:Nrr},Urr=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,Hrr=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];function uV(t){if(t.length>8e3)throw"URI too long";const r=t,e=t.indexOf("["),n=t.indexOf("]");e!=-1&&n!=-1&&(t=t.substring(0,e)+t.substring(e,n).replace(/:/g,";")+t.substring(n,t.length));let a=Urr.exec(t||""),u={},o=14;for(;o--;)u[Hrr[o]]=a[o]||"";return e!=-1&&n!=-1&&(u.source=r,u.host=u.host.substring(1,u.host.length-1).replace(/;/g,":"),u.authority=u.authority.replace("[","").replace("]","").replace(/;/g,":"),u.ipv6uri=!0),u.pathNames=jrr(u,u.path),u.queryKey=Vrr(u,u.query),u}function jrr(t,r){const e=/\/{2,9}/g,n=r.replace(e,"/").split("/");return(r.slice(0,1)=="/"||r.length===0)&&n.splice(0,1),r.slice(-1)=="/"&&n.splice(n.length-1,1),n}function Vrr(t,r){const e={};return r.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(n,a,u){a&&(e[a]=u)}),e}const cV=typeof addEventListener=="function"&&typeof removeEventListener=="function",zL=[];cV&&addEventListener("offline",()=>{zL.forEach(t=>t())},!1);class aI extends nh{constructor(r,e){if(super(),this.binaryType=brr,this.writeBuffer=[],this._prevBufferLen=0,this._pingInterval=-1,this._pingTimeout=-1,this._maxPayload=-1,this._pingTimeoutTime=1/0,r&&typeof r=="object"&&(e=r,r=null),r){const n=uV(r);e.hostname=n.host,e.secure=n.protocol==="https"||n.protocol==="wss",e.port=n.port,n.query&&(e.query=n.query)}else e.host&&(e.hostname=uV(e.host).host);f9(this,e),this.secure=e.secure!=null?e.secure:typeof location<"u"&&location.protocol==="https:",e.hostname&&!e.port&&(e.port=this.secure?"443":"80"),this.hostname=e.hostname||(typeof location<"u"?location.hostname:"localhost"),this.port=e.port||(typeof location<"u"&&location.port?location.port:this.secure?"443":"80"),this.transports=[],this._transportsByName={},e.transports.forEach(n=>{const a=n.prototype.name;this.transports.push(a),this._transportsByName[a]=n}),this.opts=Object.assign({path:"/engine.io",agent:!1,withCredentials:!1,upgrade:!0,timestampParam:"t",rememberUpgrade:!1,addTrailingSlash:!0,rejectUnauthorized:!0,perMessageDeflate:{threshold:1024},transportOptions:{},closeOnBeforeunload:!1},e),this.opts.path=this.opts.path.replace(/\/$/,"")+(this.opts.addTrailingSlash?"/":""),typeof this.opts.query=="string"&&(this.opts.query=Mrr(this.opts.query)),cV&&(this.opts.closeOnBeforeunload&&(this._beforeunloadEventListener=()=>{this.transport&&(this.transport.removeAllListeners(),this.transport.close())},addEventListener("beforeunload",this._beforeunloadEventListener,!1)),this.hostname!=="localhost"&&(this._offlineEventListener=()=>{this._onClose("transport close",{description:"network connection lost"})},zL.push(this._offlineEventListener))),this.opts.withCredentials&&(this._cookieJar=void 0),this._open()}createTransport(r){const e=Object.assign({},this.opts.query);e.EIO=TTe,e.transport=r,this.id&&(e.sid=this.id);const n=Object.assign({},this.opts,{query:e,socket:this,hostname:this.hostname,secure:this.secure,port:this.port},this.opts.transportOptions[r]);return new this._transportsByName[r](n)}_open(){if(this.transports.length===0){this.setTimeoutFn(()=>{this.emitReserved("error","No transports available")},0);return}const r=this.opts.rememberUpgrade&&aI.priorWebsocketSuccess&&this.transports.indexOf("websocket")!==-1?"websocket":this.transports[0];this.readyState="opening";const e=this.createTransport(r);e.open(),this.setTransport(e)}setTransport(r){this.transport&&this.transport.removeAllListeners(),this.transport=r,r.on("drain",this._onDrain.bind(this)).on("packet",this._onPacket.bind(this)).on("error",this._onError.bind(this)).on("close",e=>this._onClose("transport close",e))}onOpen(){this.readyState="open",aI.priorWebsocketSuccess=this.transport.name==="websocket",this.emitReserved("open"),this.flush()}_onPacket(r){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing")switch(this.emitReserved("packet",r),this.emitReserved("heartbeat"),r.type){case"open":this.onHandshake(JSON.parse(r.data));break;case"ping":this._sendPacket("pong"),this.emitReserved("ping"),this.emitReserved("pong"),this._resetPingTimeout();break;case"error":const e=new Error("server error");e.code=r.data,this._onError(e);break;case"message":this.emitReserved("data",r.data),this.emitReserved("message",r.data);break}}onHandshake(r){this.emitReserved("handshake",r),this.id=r.sid,this.transport.query.sid=r.sid,this._pingInterval=r.pingInterval,this._pingTimeout=r.pingTimeout,this._maxPayload=r.maxPayload,this.onOpen(),this.readyState!=="closed"&&this._resetPingTimeout()}_resetPingTimeout(){this.clearTimeoutFn(this._pingTimeoutTimer);const r=this._pingInterval+this._pingTimeout;this._pingTimeoutTime=Date.now()+r,this._pingTimeoutTimer=this.setTimeoutFn(()=>{this._onClose("ping timeout")},r),this.opts.autoUnref&&this._pingTimeoutTimer.unref()}_onDrain(){this.writeBuffer.splice(0,this._prevBufferLen),this._prevBufferLen=0,this.writeBuffer.length===0?this.emitReserved("drain"):this.flush()}flush(){if(this.readyState!=="closed"&&this.transport.writable&&!this.upgrading&&this.writeBuffer.length){const r=this._getWritablePackets();this.transport.send(r),this._prevBufferLen=r.length,this.emitReserved("flush")}}_getWritablePackets(){if(!(this._maxPayload&&this.transport.name==="polling"&&this.writeBuffer.length>1))return this.writeBuffer;let e=1;for(let n=0;n<this.writeBuffer.length;n++){const a=this.writeBuffer[n].data;if(a&&(e+=_rr(a)),n>0&&e>this._maxPayload)return this.writeBuffer.slice(0,n);e+=2}return this.writeBuffer}_hasPingExpired(){if(!this._pingTimeoutTime)return!0;const r=Date.now()>this._pingTimeoutTime;return r&&(this._pingTimeoutTime=0,c9(()=>{this._onClose("ping timeout")},this.setTimeoutFn)),r}write(r,e,n){return this._sendPacket("message",r,e,n),this}send(r,e,n){return this._sendPacket("message",r,e,n),this}_sendPacket(r,e,n,a){if(typeof e=="function"&&(a=e,e=void 0),typeof n=="function"&&(a=n,n=null),this.readyState==="closing"||this.readyState==="closed")return;n=n||{},n.compress=n.compress!==!1;const u={type:r,data:e,options:n};this.emitReserved("packetCreate",u),this.writeBuffer.push(u),a&&this.once("flush",a),this.flush()}close(){const r=()=>{this._onClose("forced close"),this.transport.close()},e=()=>{this.off("upgrade",e),this.off("upgradeError",e),r()},n=()=>{this.once("upgrade",e),this.once("upgradeError",e)};return(this.readyState==="opening"||this.readyState==="open")&&(this.readyState="closing",this.writeBuffer.length?this.once("drain",()=>{this.upgrading?n():r()}):this.upgrading?n():r()),this}_onError(r){if(aI.priorWebsocketSuccess=!1,this.opts.tryAllTransports&&this.transports.length>1&&this.readyState==="opening")return this.transports.shift(),this._open();this.emitReserved("error",r),this._onClose("transport error",r)}_onClose(r,e){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing"){if(this.clearTimeoutFn(this._pingTimeoutTimer),this.transport.removeAllListeners("close"),this.transport.close(),this.transport.removeAllListeners(),cV&&(this._beforeunloadEventListener&&removeEventListener("beforeunload",this._beforeunloadEventListener,!1),this._offlineEventListener)){const n=zL.indexOf(this._offlineEventListener);n!==-1&&zL.splice(n,1)}this.readyState="closed",this.id=null,this.emitReserved("close",r,e),this.writeBuffer=[],this._prevBufferLen=0}}}aI.protocol=TTe;class Grr extends aI{constructor(){super(...arguments),this._upgrades=[]}onOpen(){if(super.onOpen(),this.readyState==="open"&&this.opts.upgrade)for(let r=0;r<this._upgrades.length;r++)this._probe(this._upgrades[r])}_probe(r){let e=this.createTransport(r),n=!1;aI.priorWebsocketSuccess=!1;const a=()=>{n||(e.send([{type:"ping",data:"probe"}]),e.once("packet",l=>{if(!n)if(l.type==="pong"&&l.data==="probe"){if(this.upgrading=!0,this.emitReserved("upgrading",e),!e)return;aI.priorWebsocketSuccess=e.name==="websocket",this.transport.pause(()=>{n||this.readyState!=="closed"&&(d(),this.setTransport(e),e.send([{type:"upgrade"}]),this.emitReserved("upgrade",e),e=null,this.upgrading=!1,this.flush())})}else{const h=new Error("probe error");h.transport=e.name,this.emitReserved("upgradeError",h)}}))};function u(){n||(n=!0,d(),e.close(),e=null)}const o=l=>{const h=new Error("probe error: "+l);h.transport=e.name,u(),this.emitReserved("upgradeError",h)};function f(){o("transport closed")}function i(){o("socket closed")}function s(l){e&&l.name!==e.name&&u()}const d=()=>{e.removeListener("open",a),e.removeListener("error",o),e.removeListener("close",f),this.off("close",i),this.off("upgrading",s)};e.once("open",a),e.once("error",o),e.once("close",f),this.once("close",i),this.once("upgrading",s),this._upgrades.indexOf("webtransport")!==-1&&r!=="webtransport"?this.setTimeoutFn(()=>{n||e.open()},200):e.open()}onHandshake(r){this._upgrades=this._filterUpgrades(r.upgrades),super.onHandshake(r)}_filterUpgrades(r){const e=[];for(let n=0;n<r.length;n++)~this.transports.indexOf(r[n])&&e.push(r[n]);return e}}let Wrr=class extends Grr{constructor(r,e={}){const n=typeof r=="object"?r:e;(!n.transports||n.transports&&typeof n.transports[0]=="string")&&(n.transports=(n.transports||["polling","websocket","webtransport"]).map(a=>$rr[a]).filter(a=>!!a)),super(r,n)}};function Zrr(t,r="",e){let n=t;e=e||typeof location<"u"&&location,t==null&&(t=e.protocol+"//"+e.host),typeof t=="string"&&(t.charAt(0)==="/"&&(t.charAt(1)==="/"?t=e.protocol+t:t=e.host+t),/^(https?|wss?):\/\//.test(t)||(typeof e<"u"?t=e.protocol+"//"+t:t="https://"+t),n=uV(t)),n.port||(/^(http|ws)$/.test(n.protocol)?n.port="80":/^(http|ws)s$/.test(n.protocol)&&(n.port="443")),n.path=n.path||"/";const u=n.host.indexOf(":")!==-1?"["+n.host+"]":n.host;return n.id=n.protocol+"://"+u+":"+n.port+r,n.href=n.protocol+"://"+u+(e&&e.port===n.port?"":":"+n.port),n}const Yrr=typeof ArrayBuffer=="function",Xrr=t=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(t):t.buffer instanceof ArrayBuffer,PTe=Object.prototype.toString,Krr=typeof Blob=="function"||typeof Blob<"u"&&PTe.call(Blob)==="[object BlobConstructor]",Qrr=typeof File=="function"||typeof File<"u"&&PTe.call(File)==="[object FileConstructor]";function uX(t){return Yrr&&(t instanceof ArrayBuffer||Xrr(t))||Krr&&t instanceof Blob||Qrr&&t instanceof File}function BL(t,r){if(!t||typeof t!="object")return!1;if(Array.isArray(t)){for(let e=0,n=t.length;e<n;e++)if(BL(t[e]))return!0;return!1}if(uX(t))return!0;if(t.toJSON&&typeof t.toJSON=="function"&&arguments.length===1)return BL(t.toJSON(),!0);for(const e in t)if(Object.prototype.hasOwnProperty.call(t,e)&&BL(t[e]))return!0;return!1}function Jrr(t){const r=[],e=t.data,n=t;return n.data=fV(e,r),n.attachments=r.length,{packet:n,buffers:r}}function fV(t,r){if(!t)return t;if(uX(t)){const e={_placeholder:!0,num:r.length};return r.push(t),e}else if(Array.isArray(t)){const e=new Array(t.length);for(let n=0;n<t.length;n++)e[n]=fV(t[n],r);return e}else if(typeof t=="object"&&!(t instanceof Date)){const e={};for(const n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=fV(t[n],r));return e}return t}function qrr(t,r){return t.data=hV(t.data,r),delete t.attachments,t}function hV(t,r){if(!t)return t;if(t&&t._placeholder===!0){if(typeof t.num=="number"&&t.num>=0&&t.num<r.length)return r[t.num];throw new Error("illegal attachments")}else if(Array.isArray(t))for(let e=0;e<t.length;e++)t[e]=hV(t[e],r);else if(typeof t=="object")for(const e in t)Object.prototype.hasOwnProperty.call(t,e)&&(t[e]=hV(t[e],r));return t}const enr=["connect","connect_error","disconnect","disconnecting","newListener","removeListener"],tnr=5;var bl;(function(t){t[t.CONNECT=0]="CONNECT",t[t.DISCONNECT=1]="DISCONNECT",t[t.EVENT=2]="EVENT",t[t.ACK=3]="ACK",t[t.CONNECT_ERROR=4]="CONNECT_ERROR",t[t.BINARY_EVENT=5]="BINARY_EVENT",t[t.BINARY_ACK=6]="BINARY_ACK"})(bl||(bl={}));class rnr{constructor(r){this.replacer=r}encode(r){return(r.type===bl.EVENT||r.type===bl.ACK)&&BL(r)?this.encodeAsBinary({type:r.type===bl.EVENT?bl.BINARY_EVENT:bl.BINARY_ACK,nsp:r.nsp,data:r.data,id:r.id}):[this.encodeAsString(r)]}encodeAsString(r){let e=""+r.type;return(r.type===bl.BINARY_EVENT||r.type===bl.BINARY_ACK)&&(e+=r.attachments+"-"),r.nsp&&r.nsp!=="/"&&(e+=r.nsp+","),r.id!=null&&(e+=r.id),r.data!=null&&(e+=JSON.stringify(r.data,this.replacer)),e}encodeAsBinary(r){const e=Jrr(r),n=this.encodeAsString(e.packet),a=e.buffers;return a.unshift(n),a}}function sce(t){return Object.prototype.toString.call(t)==="[object Object]"}class cX extends nh{constructor(r){super(),this.reviver=r}add(r){let e;if(typeof r=="string"){if(this.reconstructor)throw new Error("got plaintext data when reconstructing a packet");e=this.decodeString(r);const n=e.type===bl.BINARY_EVENT;n||e.type===bl.BINARY_ACK?(e.type=n?bl.EVENT:bl.ACK,this.reconstructor=new nnr(e),e.attachments===0&&super.emitReserved("decoded",e)):super.emitReserved("decoded",e)}else if(uX(r)||r.base64)if(this.reconstructor)e=this.reconstructor.takeBinaryData(r),e&&(this.reconstructor=null,super.emitReserved("decoded",e));else throw new Error("got binary data when not reconstructing a packet");else throw new Error("Unknown type: "+r)}decodeString(r){let e=0;const n={type:Number(r.charAt(0))};if(bl[n.type]===void 0)throw new Error("unknown packet type "+n.type);if(n.type===bl.BINARY_EVENT||n.type===bl.BINARY_ACK){const u=e+1;for(;r.charAt(++e)!=="-"&&e!=r.length;);const o=r.substring(u,e);if(o!=Number(o)||r.charAt(e)!=="-")throw new Error("Illegal attachments");n.attachments=Number(o)}if(r.charAt(e+1)==="/"){const u=e+1;for(;++e&&!(r.charAt(e)===","||e===r.length););n.nsp=r.substring(u,e)}else n.nsp="/";const a=r.charAt(e+1);if(a!==""&&Number(a)==a){const u=e+1;for(;++e;){const o=r.charAt(e);if(o==null||Number(o)!=o){--e;break}if(e===r.length)break}n.id=Number(r.substring(u,e+1))}if(r.charAt(++e)){const u=this.tryParse(r.substr(e));if(cX.isPayloadValid(n.type,u))n.data=u;else throw new Error("invalid payload")}return n}tryParse(r){try{return JSON.parse(r,this.reviver)}catch{return!1}}static isPayloadValid(r,e){switch(r){case bl.CONNECT:return sce(e);case bl.DISCONNECT:return e===void 0;case bl.CONNECT_ERROR:return typeof e=="string"||sce(e);case bl.EVENT:case bl.BINARY_EVENT:return Array.isArray(e)&&(typeof e[0]=="number"||typeof e[0]=="string"&&enr.indexOf(e[0])===-1);case bl.ACK:case bl.BINARY_ACK:return Array.isArray(e)}}destroy(){this.reconstructor&&(this.reconstructor.finishedReconstruction(),this.reconstructor=null)}}class nnr{constructor(r){this.packet=r,this.buffers=[],this.reconPack=r}takeBinaryData(r){if(this.buffers.push(r),this.buffers.length===this.reconPack.attachments){const e=qrr(this.reconPack,this.buffers);return this.finishedReconstruction(),e}return null}finishedReconstruction(){this.reconPack=null,this.buffers=[]}}const inr=Object.freeze(Object.defineProperty({__proto__:null,Decoder:cX,Encoder:rnr,get PacketType(){return bl},protocol:tnr},Symbol.toStringTag,{value:"Module"}));function B0(t,r,e){return t.on(r,e),function(){t.off(r,e)}}const anr=Object.freeze({connect:1,connect_error:1,disconnect:1,disconnecting:1,newListener:1,removeListener:1});class LTe extends nh{constructor(r,e,n){super(),this.connected=!1,this.recovered=!1,this.receiveBuffer=[],this.sendBuffer=[],this._queue=[],this._queueSeq=0,this.ids=0,this.acks={},this.flags={},this.io=r,this.nsp=e,n&&n.auth&&(this.auth=n.auth),this._opts=Object.assign({},n),this.io._autoConnect&&this.open()}get disconnected(){return!this.connected}subEvents(){if(this.subs)return;const r=this.io;this.subs=[B0(r,"open",this.onopen.bind(this)),B0(r,"packet",this.onpacket.bind(this)),B0(r,"error",this.onerror.bind(this)),B0(r,"close",this.onclose.bind(this))]}get active(){return!!this.subs}connect(){return this.connected?this:(this.subEvents(),this.io._reconnecting||this.io.open(),this.io._readyState==="open"&&this.onopen(),this)}open(){return this.connect()}send(...r){return r.unshift("message"),this.emit.apply(this,r),this}emit(r,...e){var n,a,u;if(anr.hasOwnProperty(r))throw new Error('"'+r.toString()+'" is a reserved event name');if(e.unshift(r),this._opts.retries&&!this.flags.fromQueue&&!this.flags.volatile)return this._addToQueue(e),this;const o={type:bl.EVENT,data:e};if(o.options={},o.options.compress=this.flags.compress!==!1,typeof e[e.length-1]=="function"){const d=this.ids++,l=e.pop();this._registerAckCallback(d,l),o.id=d}const f=(a=(n=this.io.engine)===null||n===void 0?void 0:n.transport)===null||a===void 0?void 0:a.writable,i=this.connected&&!(!((u=this.io.engine)===null||u===void 0)&&u._hasPingExpired());return this.flags.volatile&&!f||(i?(this.notifyOutgoingListeners(o),this.packet(o)):this.sendBuffer.push(o)),this.flags={},this}_registerAckCallback(r,e){var n;const a=(n=this.flags.timeout)!==null&&n!==void 0?n:this._opts.ackTimeout;if(a===void 0){this.acks[r]=e;return}const u=this.io.setTimeoutFn(()=>{delete this.acks[r];for(let f=0;f<this.sendBuffer.length;f++)this.sendBuffer[f].id===r&&this.sendBuffer.splice(f,1);e.call(this,new Error("operation has timed out"))},a),o=(...f)=>{this.io.clearTimeoutFn(u),e.apply(this,f)};o.withError=!0,this.acks[r]=o}emitWithAck(r,...e){return new Promise((n,a)=>{const u=(o,f)=>o?a(o):n(f);u.withError=!0,e.push(u),this.emit(r,...e)})}_addToQueue(r){let e;typeof r[r.length-1]=="function"&&(e=r.pop());const n={id:this._queueSeq++,tryCount:0,pending:!1,args:r,flags:Object.assign({fromQueue:!0},this.flags)};r.push((a,...u)=>n!==this._queue[0]?void 0:(a!==null?n.tryCount>this._opts.retries&&(this._queue.shift(),e&&e(a)):(this._queue.shift(),e&&e(null,...u)),n.pending=!1,this._drainQueue())),this._queue.push(n),this._drainQueue()}_drainQueue(r=!1){if(!this.connected||this._queue.length===0)return;const e=this._queue[0];e.pending&&!r||(e.pending=!0,e.tryCount++,this.flags=e.flags,this.emit.apply(this,e.args))}packet(r){r.nsp=this.nsp,this.io._packet(r)}onopen(){typeof this.auth=="function"?this.auth(r=>{this._sendConnectPacket(r)}):this._sendConnectPacket(this.auth)}_sendConnectPacket(r){this.packet({type:bl.CONNECT,data:this._pid?Object.assign({pid:this._pid,offset:this._lastOffset},r):r})}onerror(r){this.connected||this.emitReserved("connect_error",r)}onclose(r,e){this.connected=!1,delete this.id,this.emitReserved("disconnect",r,e),this._clearAcks()}_clearAcks(){Object.keys(this.acks).forEach(r=>{if(!this.sendBuffer.some(n=>String(n.id)===r)){const n=this.acks[r];delete this.acks[r],n.withError&&n.call(this,new Error("socket has been disconnected"))}})}onpacket(r){if(r.nsp===this.nsp)switch(r.type){case bl.CONNECT:r.data&&r.data.sid?this.onconnect(r.data.sid,r.data.pid):this.emitReserved("connect_error",new Error("It seems you are trying to reach a Socket.IO server in v2.x with a v3.x client, but they are not compatible (more information here: https://socket.io/docs/v3/migrating-from-2-x-to-3-0/)"));break;case bl.EVENT:case bl.BINARY_EVENT:this.onevent(r);break;case bl.ACK:case bl.BINARY_ACK:this.onack(r);break;case bl.DISCONNECT:this.ondisconnect();break;case bl.CONNECT_ERROR:this.destroy();const n=new Error(r.data.message);n.data=r.data.data,this.emitReserved("connect_error",n);break}}onevent(r){const e=r.data||[];r.id!=null&&e.push(this.ack(r.id)),this.connected?this.emitEvent(e):this.receiveBuffer.push(Object.freeze(e))}emitEvent(r){if(this._anyListeners&&this._anyListeners.length){const e=this._anyListeners.slice();for(const n of e)n.apply(this,r)}super.emit.apply(this,r),this._pid&&r.length&&typeof r[r.length-1]=="string"&&(this._lastOffset=r[r.length-1])}ack(r){const e=this;let n=!1;return function(...a){n||(n=!0,e.packet({type:bl.ACK,id:r,data:a}))}}onack(r){const e=this.acks[r.id];typeof e=="function"&&(delete this.acks[r.id],e.withError&&r.data.unshift(null),e.apply(this,r.data))}onconnect(r,e){this.id=r,this.recovered=e&&this._pid===e,this._pid=e,this.connected=!0,this.emitBuffered(),this.emitReserved("connect"),this._drainQueue(!0)}emitBuffered(){this.receiveBuffer.forEach(r=>this.emitEvent(r)),this.receiveBuffer=[],this.sendBuffer.forEach(r=>{this.notifyOutgoingListeners(r),this.packet(r)}),this.sendBuffer=[]}ondisconnect(){this.destroy(),this.onclose("io server disconnect")}destroy(){this.subs&&(this.subs.forEach(r=>r()),this.subs=void 0),this.io._destroy(this)}disconnect(){return this.connected&&this.packet({type:bl.DISCONNECT}),this.destroy(),this.connected&&this.onclose("io client disconnect"),this}close(){return this.disconnect()}compress(r){return this.flags.compress=r,this}get volatile(){return this.flags.volatile=!0,this}timeout(r){return this.flags.timeout=r,this}onAny(r){return this._anyListeners=this._anyListeners||[],this._anyListeners.push(r),this}prependAny(r){return this._anyListeners=this._anyListeners||[],this._anyListeners.unshift(r),this}offAny(r){if(!this._anyListeners)return this;if(r){const e=this._anyListeners;for(let n=0;n<e.length;n++)if(r===e[n])return e.splice(n,1),this}else this._anyListeners=[];return this}listenersAny(){return this._anyListeners||[]}onAnyOutgoing(r){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.push(r),this}prependAnyOutgoing(r){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.unshift(r),this}offAnyOutgoing(r){if(!this._anyOutgoingListeners)return this;if(r){const e=this._anyOutgoingListeners;for(let n=0;n<e.length;n++)if(r===e[n])return e.splice(n,1),this}else this._anyOutgoingListeners=[];return this}listenersAnyOutgoing(){return this._anyOutgoingListeners||[]}notifyOutgoingListeners(r){if(this._anyOutgoingListeners&&this._anyOutgoingListeners.length){const e=this._anyOutgoingListeners.slice();for(const n of e)n.apply(this,r.data)}}}function T_(t){t=t||{},this.ms=t.min||100,this.max=t.max||1e4,this.factor=t.factor||2,this.jitter=t.jitter>0&&t.jitter<=1?t.jitter:0,this.attempts=0}T_.prototype.duration=function(){var t=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var r=Math.random(),e=Math.floor(r*this.jitter*t);t=Math.floor(r*10)&1?t+e:t-e}return Math.min(t,this.max)|0};T_.prototype.reset=function(){this.attempts=0};T_.prototype.setMin=function(t){this.ms=t};T_.prototype.setMax=function(t){this.max=t};T_.prototype.setJitter=function(t){this.jitter=t};class dV extends nh{constructor(r,e){var n;super(),this.nsps={},this.subs=[],r&&typeof r=="object"&&(e=r,r=void 0),e=e||{},e.path=e.path||"/socket.io",this.opts=e,f9(this,e),this.reconnection(e.reconnection!==!1),this.reconnectionAttempts(e.reconnectionAttempts||1/0),this.reconnectionDelay(e.reconnectionDelay||1e3),this.reconnectionDelayMax(e.reconnectionDelayMax||5e3),this.randomizationFactor((n=e.randomizationFactor)!==null&&n!==void 0?n:.5),this.backoff=new T_({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(e.timeout==null?2e4:e.timeout),this._readyState="closed",this.uri=r;const a=e.parser||inr;this.encoder=new a.Encoder,this.decoder=new a.Decoder,this._autoConnect=e.autoConnect!==!1,this._autoConnect&&this.open()}reconnection(r){return arguments.length?(this._reconnection=!!r,r||(this.skipReconnect=!0),this):this._reconnection}reconnectionAttempts(r){return r===void 0?this._reconnectionAttempts:(this._reconnectionAttempts=r,this)}reconnectionDelay(r){var e;return r===void 0?this._reconnectionDelay:(this._reconnectionDelay=r,(e=this.backoff)===null||e===void 0||e.setMin(r),this)}randomizationFactor(r){var e;return r===void 0?this._randomizationFactor:(this._randomizationFactor=r,(e=this.backoff)===null||e===void 0||e.setJitter(r),this)}reconnectionDelayMax(r){var e;return r===void 0?this._reconnectionDelayMax:(this._reconnectionDelayMax=r,(e=this.backoff)===null||e===void 0||e.setMax(r),this)}timeout(r){return arguments.length?(this._timeout=r,this):this._timeout}maybeReconnectOnOpen(){!this._reconnecting&&this._reconnection&&this.backoff.attempts===0&&this.reconnect()}open(r){if(~this._readyState.indexOf("open"))return this;this.engine=new Wrr(this.uri,this.opts);const e=this.engine,n=this;this._readyState="opening",this.skipReconnect=!1;const a=B0(e,"open",function(){n.onopen(),r&&r()}),u=f=>{this.cleanup(),this._readyState="closed",this.emitReserved("error",f),r?r(f):this.maybeReconnectOnOpen()},o=B0(e,"error",u);if(this._timeout!==!1){const f=this._timeout,i=this.setTimeoutFn(()=>{a(),u(new Error("timeout")),e.close()},f);this.opts.autoUnref&&i.unref(),this.subs.push(()=>{this.clearTimeoutFn(i)})}return this.subs.push(a),this.subs.push(o),this}connect(r){return this.open(r)}onopen(){this.cleanup(),this._readyState="open",this.emitReserved("open");const r=this.engine;this.subs.push(B0(r,"ping",this.onping.bind(this)),B0(r,"data",this.ondata.bind(this)),B0(r,"error",this.onerror.bind(this)),B0(r,"close",this.onclose.bind(this)),B0(this.decoder,"decoded",this.ondecoded.bind(this)))}onping(){this.emitReserved("ping")}ondata(r){try{this.decoder.add(r)}catch(e){this.onclose("parse error",e)}}ondecoded(r){c9(()=>{this.emitReserved("packet",r)},this.setTimeoutFn)}onerror(r){this.emitReserved("error",r)}socket(r,e){let n=this.nsps[r];return n?this._autoConnect&&!n.active&&n.connect():(n=new LTe(this,r,e),this.nsps[r]=n),n}_destroy(r){const e=Object.keys(this.nsps);for(const n of e)if(this.nsps[n].active)return;this._close()}_packet(r){const e=this.encoder.encode(r);for(let n=0;n<e.length;n++)this.engine.write(e[n],r.options)}cleanup(){this.subs.forEach(r=>r()),this.subs.length=0,this.decoder.destroy()}_close(){this.skipReconnect=!0,this._reconnecting=!1,this.onclose("forced close")}disconnect(){return this._close()}onclose(r,e){var n;this.cleanup(),(n=this.engine)===null||n===void 0||n.close(),this.backoff.reset(),this._readyState="closed",this.emitReserved("close",r,e),this._reconnection&&!this.skipReconnect&&this.reconnect()}reconnect(){if(this._reconnecting||this.skipReconnect)return this;const r=this;if(this.backoff.attempts>=this._reconnectionAttempts)this.backoff.reset(),this.emitReserved("reconnect_failed"),this._reconnecting=!1;else{const e=this.backoff.duration();this._reconnecting=!0;const n=this.setTimeoutFn(()=>{r.skipReconnect||(this.emitReserved("reconnect_attempt",r.backoff.attempts),!r.skipReconnect&&r.open(a=>{a?(r._reconnecting=!1,r.reconnect(),this.emitReserved("reconnect_error",a)):r.onreconnect()}))},e);this.opts.autoUnref&&n.unref(),this.subs.push(()=>{this.clearTimeoutFn(n)})}}onreconnect(){const r=this.backoff.attempts;this._reconnecting=!1,this.backoff.reset(),this.emitReserved("reconnect",r)}}const kS={};function $L(t,r){typeof t=="object"&&(r=t,t=void 0),r=r||{};const e=Zrr(t,r.path||"/socket.io"),n=e.source,a=e.id,u=e.path,o=kS[a]&&u in kS[a].nsps,f=r.forceNew||r["force new connection"]||r.multiplex===!1||o;let i;return f?i=new dV(n,r):(kS[a]||(kS[a]=new dV(n,r)),i=kS[a]),e.query&&!r.query&&(r.query=e.queryKey),i.socket(e.path,r)}Object.assign($L,{Manager:dV,Socket:LTe,io:$L,connect:$L});const k0=$L(`http://localhost:8000?instanceId=${hW()}`),onr=St.createContext(null),snr=({children:t})=>{const[r,e]=Yl(AC),n=hW();return St.useEffect(()=>(k0.on("connect",()=>{e(a=>({...a,status:em.INACTIVE})),console.log(`Socket connected with ID: ${k0.id}`)}),k0.on("disconnect",a=>{console.log(`Socket disconnected: ${a}`)}),k0.on("connect_error",a=>{console.error(`Socket connection error: ${a.message}`)}),k0.on("reconnect",a=>{console.log(`Socket reconnected after ${a} attempts`)}),k0.on("fileTransferProgress",a=>{a.instanceId===n&&e({currentFileName:a.current_file_name,numberOfFiles:a.number_of_files,percentOfCurrent:a.percent_of_current,finishedFiles:a.finished_files,status:a.status})}),()=>{k0.off("connect"),k0.off("disconnect"),k0.off("connect_error"),k0.off("reconnect")}),[n,e]),Ge.jsx(onr.Provider,{value:k0,children:t})},lnr=MEe([{path:os.HOME,element:Ge.jsx(hrr,{}),errorElement:Ge.jsx(HLe,{}),children:ATe}]);JMe.onlyShowFocusOnTabs();const unr=new qEe({defaultOptions:{queries:{refetchOnWindowFocus:!1}}});_$.createRoot(document.getElementById("root")).render(Ge.jsx(i5e,{client:unr,children:Ge.jsx(Sve,{children:Ge.jsx(co.StrictMode,{children:Ge.jsx(snr,{children:Ge.jsx(jRe,{children:Ge.jsx(CEe,{router:lnr})})})})})}));export{Fa as I,V2 as _,G2 as a,hQ as b,eRe as p};